ab0ad05581b5f03beb27816cca1d135cb7a95f5c
[gnulib.git] / ChangeLog
1 2012-02-26  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'fmal-ieee'.
4         * modules/fmal-ieee-tests: New file.
5         * tests/test-fmal-ieee.c: New file.
6
7         New module 'fmal-ieee'.
8         * modules/fmal-ieee: New file.
9
10         Tests for module 'fma-ieee'.
11         * modules/fma-ieee-tests: New file.
12         * tests/test-fma-ieee.c: New file.
13
14         New module 'fma-ieee'.
15         * modules/fma-ieee: New file.
16
17         Tests for module 'fmaf-ieee'.
18         * modules/fmaf-ieee-tests: New file.
19         * tests/test-fmaf-ieee.c: New file.
20         * tests/test-fma-ieee.h: New file.
21
22         New module 'fmaf-ieee'.
23         * modules/fmaf-ieee: New file.
24
25 2012-02-26  Bruno Haible  <bruno@clisp.org>
26
27         Tests for module 'ldexpl-ieee'.
28         * modules/ldexpl-ieee-tests: New file.
29         * tests/test-ldexpl-ieee.c: New file.
30
31         New module 'ldexpl-ieee'.
32         * modules/ldexpl-ieee: New file.
33
34         Tests for module 'ldexp-ieee'.
35         * modules/ldexp-ieee-tests: New file.
36         * tests/test-ldexp-ieee.c: New file.
37
38         New module 'ldexp-ieee'.
39         * modules/ldexp-ieee: New file.
40
41         Tests for module 'ldexpf-ieee'.
42         * modules/ldexpf-ieee-tests: New file.
43         * tests/test-ldexpf-ieee.c: New file.
44         * tests/test-ldexp-ieee.h: New file.
45
46         New module 'ldexpf-ieee'.
47         * modules/ldexpf-ieee: New file.
48
49 2012-02-26  Bruno Haible  <bruno@clisp.org>
50
51         Refactor frexp*-ieee tests.
52         * tests/test-frexp-ieee.h: New file.
53         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
54         (main): Just call test_function.
55         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
56         (main): Just call test_function.
57         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
58         (main): Just call test_function.
59         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
60         * modules/frexp-ieee-tests (Files): Likewise.
61         * modules/frexpl-ieee-tests (Files): Likewise.
62
63         Tests for module 'frexpl-ieee'.
64         * modules/frexpl-ieee-tests: New file.
65         * tests/test-frexpl-ieee.c: New file.
66
67         New module 'frexpl-ieee'.
68         * modules/frexpl-ieee: New file.
69
70         Tests for module 'frexp-ieee'.
71         * modules/frexp-ieee-tests: New file.
72         * tests/test-frexp-ieee.c: New file.
73
74         New module 'frexp-ieee'.
75         * modules/frexp-ieee: New file.
76
77         Tests for module 'frexpf-ieee'.
78         * modules/frexpf-ieee-tests: New file.
79         * tests/test-frexpf-ieee.c: New file.
80
81         New module 'frexpf-ieee'.
82         * modules/frexpf-ieee: New file.
83
84 2012-02-26  Bruno Haible  <bruno@clisp.org>
85
86         roundl-ieee tests: More tests.
87         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
88         (main): Add tests for [MX] shaded specification in POSIX.
89         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
90         (Depends-on): Add isnanl-nolibm.
91
92         round-ieee tests: More tests.
93         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
94         (main): Add tests for [MX] shaded specification in POSIX.
95         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
96         (Depends-on): Add isnand-nolibm.
97
98         roundf-ieee tests: More tests.
99         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
100         (main): Add tests for [MX] shaded specification in POSIX.
101         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
102         (Depends-on): Add isnanf-nolibm.
103
104         truncl-ieee tests: More tests.
105         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
106         (main): Add tests for [MX] shaded specification in POSIX.
107         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
108         (Depends-on): Add isnanl-nolibm.
109
110         trunc-ieee tests: More tests.
111         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
112         (main): Add tests for [MX] shaded specification in POSIX.
113         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
114         (Depends-on): Add isnand-nolibm.
115
116         truncf-ieee tests: More tests.
117         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
118         (main): Add tests for [MX] shaded specification in POSIX.
119         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
120         (Depends-on): Add isnanf-nolibm.
121
122         ceill-ieee tests: More tests.
123         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
124         (main): Add tests for [MX] shaded specification in POSIX.
125         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
126         (Depends-on): Add isnanl-nolibm.
127
128         ceil-ieee tests: More tests.
129         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
130         (main): Add tests for [MX] shaded specification in POSIX.
131         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
132         (Depends-on): Add isnand-nolibm.
133
134         ceilf-ieee tests: More tests.
135         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
136         (main): Add tests for [MX] shaded specification in POSIX.
137         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
138         (Depends-on): Add isnanf-nolibm.
139
140         floorl-ieee tests: More tests.
141         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
142         (main): Add tests for [MX] shaded specification in POSIX.
143         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
144         (Depends-on): Add isnanl-nolibm.
145
146         floor-ieee tests: More tests.
147         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
148         (main): Add tests for [MX] shaded specification in POSIX.
149         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
150         (Depends-on): Add isnand-nolibm.
151
152         floorf-ieee tests: More tests.
153         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
154         (main): Add tests for [MX] shaded specification in POSIX.
155         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
156         (Depends-on): Add isnanf-nolibm.
157
158 2012-02-26  Bruno Haible  <bruno@clisp.org>
159
160         fpieee: More comments.
161         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
162
163 2012-02-25  Bruno Haible  <bruno@clisp.org>
164
165         Tests for module 'log10l'.
166         * modules/log10l-tests: New file.
167         * tests/test-log10l.c: New file.
168         * tests/test-math-c++.cc: Check the declaration of log10l.
169
170         New module 'log10l'.
171         * lib/math.in.h (log10l): New declaration.
172         * lib/log10l.c: New file.
173         * m4/log10l.m4: New file.
174         * modules/log10l: New file.
175         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
177         HAVE_DECL_LOG10L.
178         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
179         HAVE_DECL_LOG10L.
180         * doc/posix-functions/log10l.texi: Mention the new module.
181
182 2012-02-25  Bruno Haible  <bruno@clisp.org>
183
184         fmodl, remainder*: Avoid wrong results due to rounding errors.
185         * lib/fmodl.c (fmodl): Correct the result if it is not within the
186         expected bounds.
187         * lib/remainderf.c (remainderf): Likewise.
188         * lib/remainder.c (remainder): Likewise.
189         * lib/remainderl.c (remainderl): Likewise.
190
191 2012-02-25  Bruno Haible  <bruno@clisp.org>
192
193         Tests for module 'remainderl'.
194         * modules/remainderl-tests: New file.
195         * tests/test-remainderl.c: New file.
196         * tests/test-math-c++.cc: Check the declaration of remainderl.
197
198         New module 'remainderl'.
199         * lib/math.in.h (remainderl): New declaration.
200         * lib/remainderl.c: New file.
201         * m4/remainderl.m4: New file.
202         * modules/remainderl: New file.
203         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
205         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
206         HAVE_REMAINDERL.
207         * doc/posix-functions/remainderl.texi: Mention the new module.
208
209 2012-02-25  Bruno Haible  <bruno@clisp.org>
210
211         Tests for module 'remainderf'.
212         * modules/remainderf-tests: New file.
213         * tests/test-remainderf.c: New file.
214         * tests/test-math-c++.cc: Check the declaration of remainderf.
215
216         New module 'remainderf'.
217         * lib/math.in.h (remainderf): New declaration.
218         * lib/remainderf.c: New file.
219         * m4/remainderf.m4: New file.
220         * modules/remainderf: New file.
221         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
223         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
224         HAVE_REMAINDERF.
225         * doc/posix-functions/remainderf.texi: Mention the new module.
226
227 2012-02-25  Bruno Haible  <bruno@clisp.org>
228
229         remainder: Support for MSVC.
230         * lib/math.in.h (remainder): New declaration.
231         * lib/remainder.c: New file.
232         * m4/remainder.m4: New file.
233         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
234         (Depends-on): Add math, round, fma.
235         (configure.ac): Use results of gl_FUNC_REMAINDER.
236         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
237         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
238         HAVE_DECL_REMAINDER.
239         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
240         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
241         * tests/test-math-c++.cc: Check the declaration of remainder.
242         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
243         problems are fixed.
244
245 2012-02-25  Bruno Haible  <bruno@clisp.org>
246
247         Tests for module 'fmodl'.
248         * modules/fmodl-tests: New file.
249         * tests/test-fmodl.c: New file.
250         * tests/test-math-c++.cc: Check the declaration of fmodl.
251
252         New module 'fmodl'.
253         * lib/math.in.h (fmodl): New declaration.
254         * lib/fmodl.c: New file.
255         * m4/fmodl.m4: New file.
256         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
257         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
258         REPLACE_FMODL.
259         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
260         REPLACE_FMODL.
261         * modules/fmodl: New file.
262         * doc/posix-functions/fmodl.texi: Mention the new module.
263
264 2012-02-25  Bruno Haible  <bruno@clisp.org>
265
266         Tests for module 'modfl'.
267         * modules/modfl-tests: New file.
268         * tests/test-modfl.c: New file.
269         * tests/test-math-c++.cc: Check the declaration of modfl.
270
271         New module 'modfl'.
272         * lib/math.in.h (modfl): New declaration.
273         * lib/modfl.c: New file.
274         * m4/modfl.m4: New file.
275         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
277         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
278         * modules/modfl: New file.
279         * doc/posix-functions/modfl.texi: Mention the new module.
280
281 2012-02-25  Bruno Haible  <bruno@clisp.org>
282
283         Tests for module 'fabsl'.
284         * modules/fabsl-tests: New file.
285         * tests/test-fabsl.c: New file.
286         * tests/test-math-c++.cc: Check the declaration of fabsl.
287
288         New module 'fabsl'.
289         * lib/math.in.h (fabsl): New declaration.
290         * lib/fabsl.c: New file.
291         * m4/fabsl.m4: New file.
292         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
294         REPLACE_FABSL.
295         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
296         REPLACE_FABSL.
297         * modules/fabsl: New file.
298         * doc/posix-functions/fabsl.texi: Mention the new module.
299
300 2012-02-25  Bruno Haible  <bruno@clisp.org>
301
302         fabs tests: More tests.
303         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
304         (zero): New variable.
305         (main): Add tests for signed zero.
306         * modules/fabs-tests (Files): Add tests/minus-zero.h.
307
308         fabsf tests: More tests.
309         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
310         (zero): New variable.
311         (main): Add tests for signed zero.
312         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
313
314 2012-02-24  Bruno Haible  <bruno@clisp.org>
315
316         atanl: Provide function definition on MSVC.
317         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
318         function pointer.
319         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
320
321 2012-02-24  Bruno Haible  <bruno@clisp.org>
322
323         acosl: Provide function definition on MSVC.
324         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
325         function pointer.
326         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
327
328 2012-02-24  Bruno Haible  <bruno@clisp.org>
329
330         asinl: Provide function definition on MSVC.
331         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
332         function pointer.
333         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
334
335 2012-02-24  Bruno Haible  <bruno@clisp.org>
336
337         tanl: Provide function definition on MSVC.
338         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
339         function pointer.
340         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
341
342 2012-02-24  Bruno Haible  <bruno@clisp.org>
343
344         cosl: Provide function definition on MSVC.
345         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
346         function pointer.
347         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
348
349 2012-02-24  Bruno Haible  <bruno@clisp.org>
350
351         sinl: Provide function definition on MSVC.
352         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
353         function pointer.
354         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
355
356 2012-02-24  Bruno Haible  <bruno@clisp.org>
357
358         logl: Provide function definition on MSVC.
359         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
360         function pointer.
361         * lib/math.in.h (logl): Undefine if it does not exist as a function.
362
363 2012-02-24  Bruno Haible  <bruno@clisp.org>
364
365         expl: Provide function definition on MSVC.
366         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
367         function pointer.
368         * lib/math.in.h (expl): Undefine if it does not exist as a function.
369
370 2012-02-24  Bruno Haible  <bruno@clisp.org>
371
372         sqrtl: Provide function definition on MSVC.
373         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
374         a function pointer.
375         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
376
377 2012-02-24  Bruno Haible  <bruno@clisp.org>
378
379         ceill: Provide function definition on MSVC.
380         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
381         used as a function pointer.
382         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
383
384 2012-02-24  Bruno Haible  <bruno@clisp.org>
385
386         floorl: Provide function definition on MSVC.
387         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
388         used as a function pointer.
389         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
390
391 2012-02-24  Bruno Haible  <bruno@clisp.org>
392
393         ceilf: Provide function definition on MSVC.
394         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
395         used as a function pointer.
396         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
397
398 2012-02-24  Bruno Haible  <bruno@clisp.org>
399
400         floorf: Provide function definition on MSVC.
401         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
402         used as a function pointer.
403         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
404
405 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
406
407         stdnoreturn: new module
408         This implements a replacement for C11's <stdnoreturn.h>.
409         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
410         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
411         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
412         * tests/test-stdnoreturn.c: New files.
413
414 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
415
416         regex: fix false multibyte matches in some regular expressions
417         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
418         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
419         * lib/regex_internal.c (re_string_skip_chars):
420         Fix miscomputation of remain_len that may cause incomplete
421         multi-byte character and false match.
422
423 2012-02-24  Jim Meyering  <meyering@redhat.com>
424
425         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
426         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
427         uses with "==" *before* the call, e.g., 0 == strcmp (...)
428         Remove now-unnecessary str''cmp obfuscation.
429         Suggested by Akim Demaille.
430
431 2012-02-24  Bruno Haible  <bruno@clisp.org>
432
433         streq: Rename macro.
434         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
435         * NEWS: Mention the change.
436         * lib/mbrtowc.c (mbrtowc): Update.
437         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
438         * lib/wcwidth.c (wcwidth): Update.
439         Suggested by Akim Demaille and Jim Meyering.
440
441 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
442
443         regex: fix typo in definition of MIN
444         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
445         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
446
447 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
448             Bruno Haible  <bruno@clisp.org>
449
450         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
451         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
452         entries into a stack-allocated buffer directly.
453         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
454
455 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
456             Bruno Haible  <bruno@clisp.org>
457
458         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
459
460          - There were several instances of this pattern:
461
462              for (;;) {
463                n = acl (f, GETACLCNT, 0, NULL);
464                [ allocate an array A of size N ]
465                if (acl (f, GETACL, n, a) == n)
466                  break;
467              }
468
469            This loop might never terminate if some other process is constantly
470            manipulating the file's ACL.  The loop should be rewritten to
471            terminate.
472
473          - The acl (... GETACLNT ...) call is merely an optimization; its value
474            is merely a hint as to how big to make the array.  A better
475            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
476            and just guess a reasonably-big size, growing the size and trying
477            again if it's not large enough.  This guarantees termination, and
478            saves a system call.
479
480         * lib/acl-internal.h: Include <limits.h>.
481         (MIN, SIZE_MAX): New macros.
482         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
483         a stack-allocated buffer, and use malloc if it does not fit. Don't
484         use GETACLCNT.
485         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
486
487 2012-02-19  Bruno Haible  <bruno@clisp.org>
488
489         acl: Fix endless loop on Solaris with vxfs.
490         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
491         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
492         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
493         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
494         * tests/test-sameacls.c (main)[Solaris]: Likewise.
495         Reported by Bill Jones in
496         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
497
498 2012-02-19  Bruno Haible  <bruno@clisp.org>
499
500         acl: Fix copy-acl test failure on Solaris 11 2011-11.
501         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
502         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
503         that this function returns 0 in some more cases.
504
505 2012-02-19  Bruno Haible  <bruno@clisp.org>
506
507         acl: Update doc references.
508         * doc/acl-resources.txt: Update links to Solaris documentation.
509
510 2012-02-19  Bruno Haible  <bruno@clisp.org>
511
512         Fix test failure in many locales on Solaris 11.
513         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
514         'tr' arguments.
515         * tests/test-pipe-filter-ii1.c (main): Likewise.
516         * build-aux/bootstrap (check_versions): Run 'tr' command with range
517         expressions in the C locale.
518         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
519         * m4/host-os.m4 (gl_HOST_OS): Likewise.
520
521 2012-02-19  Bruno Haible  <bruno@clisp.org>
522
523         gnulib-tool: Improve usage message.
524         * gnulib-tool (func_usage): Move doc of --help and --version to the
525         section "Operation modes".
526
527 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
528
529         README-release: make it easier to execute commands
530         * top/README-release: break commands out on to separate lines.
531
532 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
533
534         GNUmakefile: simplify detection of unconfigured trees
535         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
536         whether the tree make is being run from is already configured or
537         not.  Related simplifications.
538
539 2012-02-13  Simon Josefsson  <simon@josefsson.org>
540
541         * gnulib-tool (func_usage): Document --help and --version.
542
543 2012-02-11  Jim Meyering  <meyering@redhat.com>
544
545         bootstrap: don't exit 0 upon gnulib-tool failure
546         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
547         its exit status, not 0.
548
549 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
550
551         README-release: various improvements
552         * top/README-release: Give a command to push changes for the
553         release.  Add "distcheck" to list of other pre-release checks.
554         Fix instance of "make stable" which should be "make TYPE".
555
556 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
557
558         maint: replace FSF snail-mail addresses with URLs
559         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
560         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
561         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
562         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
563         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
564         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
565         * lib/check-version.c, lib/check-version.h, lib/config.charset:
566         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
567         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
568         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
569         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
570         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
571         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
572         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
573         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
574         * lib/glthread/thread.c, lib/glthread/thread.h:
575         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
576         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
577         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
578         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
579         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
580         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
581         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
582         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
583         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
584         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
585         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
586         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
587         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
588         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
589         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
590         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
591         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
592         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
593         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
594         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
595         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
596         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
597         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
598         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
599         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
600         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
601         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
602         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
603         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
604         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
605         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
606         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
607         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
608         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
609         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
610         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
611         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
612         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
613         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
614         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
615         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
616         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
617         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
618         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
619         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
620         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
621         * tests/test-poll.c, tests/test-quotearg-simple.c:
622         * tests/test-quotearg.c, tests/test-quotearg.h:
623         * tests/test-round-ieee.c, tests/test-round1.c:
624         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
625         * tests/test-roundl-ieee.c, tests/test-roundl.c:
626         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
627         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
628         * tests/test-strerror.c, tests/test-strerror_r.c:
629         * tests/test-strsignal.c, tests/test-strverscmp.c:
630         * tests/test-xmemdup0.c:
631         Replace FSF snail mail addresses with URLs, as per GNU coding
632         standards.  See glibc bug
633         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
634
635 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
636
637         README-release: capitalize a word and split a line
638         * top/README-release: Fix punctuation and spacing.
639
640 2012-02-08  Akim Demaille  <demaille@gostai.com>
641
642         fatal-signal: use C prototypes (with explicit void).
643         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
644         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
645
646 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
647
648         regex: spelling fix
649         * lib/regexec.c: spelling fix
650
651         regex: rely on stdint.h for SIZE_MAX
652         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
653
654 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
655
656         regex: merge glibc changes
657
658         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
659         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
660         (init_word_char): Work even if bitset words are not exactly 32 or
661         64 bits wide.  Don't assume there are no padding bits.
662         * lib/regex.c [_LIBC]: Do not include <config.h>.
663         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
664         and -Wtype-limits.
665         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
666         needless disagreement with glibc.  All uses changed.  Define it to
667         1 only if _GNU_SOURCE, to match glibc.
668         (_REG_RM_NAME): Remove; no longer needed, since the names in
669         question are now all protected by __USE_GNU.
670         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
671         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
672         * lib/regex_internal.h (MIN): New macro.
673
674         2012-01-03 Ulrich Drepper <drepper@gmail.com>
675         * lib/regcomp.c (init_word_char): Optimize regex a bit.
676
677         2011-12-30 Jakub Jelinek <jakub@redhat.com>
678         * lib/regex_internal.c (re_string_fetch_byte_case):
679         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
680         is miscompiled, and it turns out it is because of an incorrect
681         attribute on re_string_fetch_byte_case.  Unlike
682         re_string_peek_byte_case, this one is really not pure, it modifies
683         memory (increments pstr->cur_idx), and with the pure attribute GCC
684         assumed it doesn't and it cached the presumed value of
685         regexp->cur_idx in a variable across the
686          for (;; ++i)
687            {
688              if (i >= BRACKET_NAME_BUF_SIZE)
689                return REG_EBRACK;
690              if (token->type == OP_OPEN_CHAR_CLASS)
691                ch = re_string_fetch_byte_case (regexp);
692              else
693                ch = re_string_fetch_byte (regexp);
694              if (re_string_eoi(regexp))
695                return REG_EBRACK;
696              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
697                break;
698              elem->opr.name[i] = ch;
699            }
700
701         2011-11-29 Andreas Schwab <schwab@redhat.com>
702         * lib/regcomp.c (build_equiv_class):
703         Fix access after end of search string in regex matcher.
704
705         2011-11-12 Ulrich Drepper <drepper@redhat.com>
706         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
707
708         2011-10-12 Ulrich Drepper <drepper@redhat.com>
709         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
710
711         2011-10-11 Ulrich Drepper <drepper@redhat.com>
712         * lib/regcomp.c (parse_branch, parse_sub_exp):
713         More regex memory leak fixes and tests.
714         (parse_sub_exp, parse_bracket_exp):
715         Fix memory leak for some invalid regular expressions.
716
717         2011-05-28 Ulrich Drepper <drepper@gmail.com>
718         * lib/regex_internal.c, lib/regexec.c:
719         Fix unnecessary overallocation due to incomplete character.  When
720         incomplete characters are found at the end of a string the code
721         ran amok and allocated lots of memory.  Stricter limits are now in
722         place.
723
724         2011-05-20 Reuben Thomas <rrt@sc3d.org>
725         * lib/regex.h: Update documentation.
726
727         2011-05-16 Aharon Robbins <arnold@skeeve.com>
728         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
729
730         2010-05-05 Andreas Schwab <schwab@redhat.com>
731         * lib/regexec.c (find_collation_sequence_value):
732         Fix lookup of collation sequence value during regexp matching.
733
734         2010-01-22 Ulrich Drepper <drepper@redhat.com>
735         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
736
737         2008-01-16 Ulrich Drepper <drepper@redhat.com>
738         * lib/regex.h: Cleanup namespace.
739
740         2007-11-26 Ulrich Drepper <drepper@redhat.com>
741         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
742
743         2007-08-26 Ulrich Drepper <drepper@redhat.com>
744         * lib/regex_internal.h: Prevent some declarations and definitions
745         to be seen when used in tests.
746
747         2005-05-06 Ulrich Drepper <drepper@redhat.com>
748         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
749         __libc_lock_* macros if not _LIBC.
750         (struct re_dfa_t): Add lock.
751
752 2012-02-07  Eric Blake  <eblake@redhat.com>
753
754         maint.mk: also prohibit lower-case @var@
755         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
756         lower case, like @top_srcdir@.
757
758 2012-02-04  Eric Blake  <eblake@redhat.com>
759
760         canonicalize: avoid uninitialized memory use
761         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
762         random '/' left in dest.
763         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
764
765 2012-02-04  Bruno Haible  <bruno@clisp.org>
766
767         isatty: Fix test failure of ptsname_r on native Windows.
768         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
769         and don't set errno.
770         (isatty): Test first whether fd is valid. Set errno when returning 0.
771
772 2012-02-04  Bruno Haible  <bruno@clisp.org>
773
774         spawn-pipe tests: Fix a NULL program name in a diagnostic.
775         * tests/test-spawn-pipe-main.c: Include progname.h.
776         (main): Invoke set_program_name.
777         * modules/spawn-pipe-tests (Depends-on): Add progname.
778
779         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
780         * tests/test-nonblocking-socket-main.c: Include progname.h.
781         (main): Invoke set_program_name.
782         * modules/nonblocking-socket-tests (Depends-on): Add progname.
783
784         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
785         * tests/test-nonblocking-pipe-main.c: Include progname.h.
786         (main): Invoke set_program_name.
787         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
788
789 2012-02-04  Eric Blake  <eblake@redhat.com>
790
791         canonicalize-lgpl: fix // handling
792         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
793
794         canonicalize: fix // handling
795         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
796         /// to //, since only // is special.
797
798 2012-02-04  Bruno Haible  <bruno@clisp.org>
799
800         ioctl: Fix test failure on native Windows.
801         * lib/ioctl.c: Include msvc-nothrow.h.
802         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
803
804 2012-02-04  Bruno Haible  <bruno@clisp.org>
805
806         fsync: Avoid test failure on native Windows.
807         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
808         read-only.
809
810 2012-02-04  Bruno Haible  <bruno@clisp.org>
811
812         sys_select: Avoid syntax error on OpenBSD 5.0.
813         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
814         currently being included, just include the system's <sys/select.h>.
815
816 2012-02-04  Bruno Haible  <bruno@clisp.org>
817
818         sys_select: Avoid syntax error on OpenBSD 5.0.
819         * lib/sys_select.in.h: Include <signal.h> only after the include_next
820         <sys/select.h>, not before.
821         Reported by Jiri B <jirib@devio.us>.
822
823 2012-02-04  Bruno Haible  <bruno@clisp.org>
824
825         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
826         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
827         global variables.
828         * tests/test-get-rusage-data.c (main): Likewise.
829         Reported by Jim Meyering.
830
831 2012-02-04  Bruno Haible  <bruno@clisp.org>
832
833         stdioext: Fix last commit.
834         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
835
836 2012-02-03  Bruno Haible  <bruno@clisp.org>
837
838         stdioext: Add tentative support for Plan9.
839         * lib/stdio-impl.h: Include <errno.h>.
840         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
841         * lib/freadable.c (freadable): Likewise.
842         * lib/fwritable.c (fwritable): Likewise.
843         * lib/fbufmode.c (fbufmode): Likewise.
844         * lib/freading.c (freading): Likewise.
845         * lib/fwriting.c (fwriting): Likewise.
846         * lib/freadptr.c (freadptr): Likewise.
847         * lib/freadseek.c (freadptrinc): Likewise.
848         * lib/freadahead.c (freadahead): Likewise.
849         * lib/fpurge.c (fpurge): Likewise.
850         * lib/fseeko.c (rpl_fseeko): Likewise.
851         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
852         Reported by Jens Staal <staal1978@gmail.com>.
853
854 2012-02-02  Jim Meyering  <meyering@redhat.com>
855
856         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
857         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
858         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
859         not even to try to add the attribute.  Instead, add a pragma to suppress
860         the suggestion/warning.
861
862 2012-01-31  Karl Berry  <karl@gnu.org>
863
864         setstate doc: typo.
865         * doc/posix-functions/setstate.texi (setstate): { not (.
866
867 2012-01-31  Bruno Haible  <bruno@clisp.org>
868
869         popen: Make more robust on Windows.
870         * lib/popen.c: On native Windows, use the _popen based code even if
871         HAVE_POPEN is set.
872         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
873         environment variable on native Windows.
874
875 2012-01-30  Bruno Haible  <bruno@clisp.org>
876
877         pclose: Fix typo.
878         * lib/stdio.in.h (pclose): Fix typo in warning message.
879
880 2012-01-30  Bruno Haible  <bruno@clisp.org>
881
882         doc about getlogin_r, setstate.
883         * doc/posix-functions/getlogin_r.texi: List the incompatible
884         declaration problem under "not fixed by gnulib".
885         * doc/posix-functions/setstate.texi: Mention incompatible declaration
886         problem on Solaris 11 and other platforms.
887
888 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
889             Bruno Haible  <bruno@clisp.org>
890
891         poll tests: Make test more robust.
892         * tests/test-poll.c: Include macros.h.
893         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
894         return value of various I/O operations.
895         * modules/poll-tests (Files): Add tests/macros.h.
896
897 2012-01-30  Bruno Haible  <bruno@clisp.org>
898
899         sys_stat: Fix support for mingw64 and MSVC.
900         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
901         header files already do it.
902         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
903         stat itself.
904         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
905
906 2012-01-30  Bruno Haible  <bruno@clisp.org>
907
908         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
910         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
911
912 2012-01-29  Bruno Haible  <bruno@clisp.org>
913
914         quotearg: Fix test failure on MacOS X 10.5.
915         * tests/test-quotearg-simple.c: Include localcharset.h.
916         (main): If the locale encoding is not ASCII, bypass the tests of
917         locale_quoting_style and clocale_quoting_style.
918         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
919
920 2012-01-29  Jim Meyering  <meyering@redhat.com>
921
922         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
923         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
924         detect uses of canonicalize_file_name.
925
926 2012-01-28  Bruno Haible  <bruno@clisp.org>
927
928         test-framework-sh: Fix test failure with AIX 7.1 diff.
929         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
930         in column 1, like 'diff -c' does.
931         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
932         whether 'diff -u' is used. Instead, test whether the output contains
933         some '@' character.
934
935 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
936
937         strtoimax: eliminate need for stdint.h, inttypes.h checks
938         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
939         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
940         the prerequisites for a recently-introduced strtoimax test.
941         I guess this might cause strtoimax to be replaced when not
942         strictly necessary on older hosts, but this shouldn't introduce
943         any bugs and it should make Emacs 'configure' faster on typical
944         modern hosts.  Problem discovered when importing the latest gnulib
945         to an Emacs test version.
946         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
947
948 2012-01-28  Bruno Haible  <bruno@clisp.org>
949
950         sys_time: Override 'struct timeval' on some native Windows platforms.
951         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
952         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
953         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
954         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
955         needs to be overridden.
956         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
957         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
958         * tests/test-sys_select.c: Check that the tv_sec member has the same
959         size as a 'time_t'.
960         * tests/test-sys_time.c: Likewise.
961         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
962         is set, set also REPLACE_GETTIMEOFDAY.
963         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
964         convert the resulting 'struct timeval' before returning.
965         * lib/select.c: Include <sys/time.h>.
966         (select, timeval): Undefine at the right place.
967         * modules/select (Depends-on): Add sys_time.
968         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
969         some Windows platforms.
970         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
971
972 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
973
974         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
975         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
976         an integer.
977         * lib/fcntl.c (dupfd): Likewise.
978         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
979
980 2012-01-28  Bruno Haible  <bruno@clisp.org>
981
982         fcntl: Avoid compilation error on native Windows.
983         * modules/fcntl (Depends-on): Add 'close'.
984
985 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
986
987         select, poll, isatty: Avoid warnings on x86_64 mingw64.
988         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
989         pointer to an integer.
990         * lib/poll.c (IsConsoleHandle): Likewise.
991         * lib/isatty.c (IsConsoleHandle): Likewise.
992
993 2012-01-28  Jim Meyering  <meyering@redhat.com>
994
995         doc: clarify README-release
996         * top/README-release: Clarify: you should make a point to have
997         the latest stable versions of build tools in your PATH, and the
998         reference to buildreq is solely for its list of tool names, not
999         for its minimal-functional version numbers.
1000         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
1001
1002         maint.mk: use more readable (yet functionally equivalent) quoting
1003         It is common to quote a single quote in a single quoted string like
1004         this:  '...'\''...'.  Unless you know the idiom, that looks like
1005         gibberish, so prefer to double-quote the string when possible.
1006         Then you can use a more readable, lone single quote: "...'..."
1007         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
1008         "don't" is more readable than the equivalent 'don'\''t'.
1009         (sc_cast_of_x_alloc_return_value): Likewise.
1010         (sc_cast_of_alloca_return_value): Likewise.
1011         (sc_makefile_path_separator_check): Similar: use ":" in '...',
1012         rather than '\'':'\''.
1013
1014 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1015
1016         stdalign: relax _Alignof and tighten _Alignas test
1017         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
1018         as it was too strict: alignof must divide offsetof, but it need
1019         not equal offsetof.  Inspired by Joseph S. Myers's comment
1020         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
1021         Conversely, tighten the _Alignas test a bit, as the resulting
1022         alignment must be exactly 8.
1023
1024 2012-01-27  Bruno Haible  <bruno@clisp.org>
1025
1026         stdalign: Document the last change.
1027         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
1028
1029 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1030
1031         stdalign: check that alignof and offsetof are consistent
1032         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
1033         Problem reported for gnulib by Richard W.M. Jones in
1034         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
1035
1036 2012-01-27  Jim Meyering  <meyering@redhat.com>
1037
1038         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
1039         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
1040         convert a sequence with gaps to the minimal containing range.
1041         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
1042         * tests/test-update-copyright.sh: Test for this.
1043         The FSF confirmed it is ok to do this, assuming there is at
1044         least one significant change per year in the affected range:
1045         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
1046
1047 2012-01-26  Bruno Haible  <bruno@clisp.org>
1048
1049         pipe2: refine doc about thread-safety
1050         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
1051         multithread-safety problem.
1052         * doc/glibc-functions/accept4.texi: Likewise.
1053
1054 2012-01-26  Bruno Haible  <bruno@clisp.org>
1055
1056         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
1057         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
1058         In the test program, include <fcntl.h>, for O_RDONLY.
1059
1060 2012-01-26  Eric Blake  <eblake@redhat.com>
1061
1062         pipe2: document lack of thread-safety in replacement
1063         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
1064         issue in replacement.
1065         * doc/glibc-functions/accept4.texi (accept4): Likewise.
1066         Based on a report by Eric Wong.
1067
1068 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1069             Bruno Haible  <bruno@clisp.org>
1070
1071         malloca: Avoid warnings on x86_64 mingw64.
1072         * lib/malloca.c: Include <stdint.h>.
1073         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
1074         * modules/malloca (Depends-on): Add stdint.
1075         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
1076
1077 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1078
1079         obstack: remove __STDC__ conditionals
1080         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
1081         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
1082         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
1083         m4/include_next.m4 as the only gnulib-maintained places that still
1084         refer to __STDC__.
1085
1086 2012-01-24  Bruno Haible  <bruno@clisp.org>
1087
1088         havelib: Modern quoting.
1089         * build-aux/config.rpath: Quote 'like this', not `like this', as per
1090         the recent change to the GNU coding standards.
1091
1092 2012-01-24  Bruno Haible  <bruno@clisp.org>
1093
1094         stdint: Improve support for Android.
1095         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
1096         Reported by Simon Josefsson <simon@josefsson.org>.
1097
1098 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1099
1100         doc: omit trailing empty lines from INSTALL etc.
1101         * doc/Makefile (INSTALL): Omit trailing empty lines.
1102         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
1103         omit trailing empty lines.  This simplifies the build procedure.
1104
1105 2012-01-23  Jim Meyering  <meyering@redhat.com>
1106
1107         tests: avoid spurious warnings about gl_sockets_startup
1108         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
1109         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
1110         reporting a "statement with no effect".
1111         * tests/test-accept.c (main): Mark as "(void)".
1112         * tests/test-accept4.c (main): Likewise.
1113         * tests/test-bind.c (main): Likewise.
1114         * tests/test-connect.c (main): Likewise.
1115         * tests/test-getpeername.c (main): Likewise.
1116         * tests/test-getsockname.c (main): Likewise.
1117         * tests/test-getsockopt.c (main): Likewise.
1118         * tests/test-listen.c (main): Likewise.
1119         * tests/test-recv.c (main): Likewise.
1120         * tests/test-recvfrom.c (main): Likewise.
1121         * tests/test-send.c (main): Likewise.
1122         * tests/test-sendto.c (main): Likewise.
1123         * tests/test-setsockopt.c (main): Likewise.
1124         * tests/test-shutdown.c (main): Likewise.
1125
1126 2012-01-21  Bruno Haible  <bruno@clisp.org>
1127
1128         locale-fr.m4: Fix for Android.
1129         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
1130         failure of the test program on Bionic libc.
1131
1132 2012-01-21  Jim Meyering  <meyering@redhat.com>
1133
1134         bootstrap: fail when bootstrap_post_import_hook fails
1135         Otherwise, it's far too easy to miss diagnostics emitted
1136         between gnulib-tool's output and that of running configure.
1137         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
1138
1139 2012-01-17  Jim Meyering  <meyering@redhat.com>
1140
1141         maint: enable sc_trailing_blank
1142         * build-aux/pmccabe.css: Remove trailing blanks.
1143         * doc/acl-cygwin.txt: Likewise.
1144         * doc/gnu-oids.texi: Likewise
1145         * cfg.mk: Enable sc_trailing_blank.
1146         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
1147
1148 2012-01-17  Jim Meyering  <meyering@redhat.com>
1149
1150         maint: enable sc_prohibit_openat_without_use
1151         * cfg.mk: Enable sc_prohibit_openat_without_use.
1152         Exempt lib/selinux-at.c.
1153
1154 2012-01-17  Jim Meyering  <meyering@redhat.com>
1155
1156         maint: enable sc_prohibit_cloexec_without_use
1157         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
1158         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
1159
1160 2012-01-17  Jim Meyering  <meyering@redhat.com>
1161
1162         maint: enable sc_prohibit_intprops_without_use
1163         * cfg.mk: Enable sc_prohibit_intprops_without_use
1164         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
1165
1166 2012-01-17  Jim Meyering  <meyering@redhat.com>
1167
1168         maint: enable sc_prohibit_hash_pjw_without_use
1169         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
1170         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
1171         to match any use of \<hash_pjw\>, i.e., not necessarily with a
1172         following " (".
1173
1174 2012-01-17  Jim Meyering  <meyering@redhat.com>
1175
1176         maint: enable double-word-prohibiting rule
1177         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
1178         Exempt three files.
1179
1180 2012-01-17  Jim Meyering  <meyering@redhat.com>
1181
1182         maint: remove empty lines at EOF, but excluding modules/*
1183         Apply syntax rules at home as well as abroad.  Most changes
1184         were induced by running this:
1185           make srcdir=. _build-aux=build-aux -f top/maint.mk \
1186             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
1187             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
1188         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
1189         Exempt modules/* and two binary files.
1190         Also exempt doc/INSTALL*, per request from Bruno Haible.
1191         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
1192         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
1193         * doc/Copyright/request-assign.future: Likewise.
1194         * doc/Copyright/request-disclaim.changes: Likewise.
1195         * doc/INSTALL: Likewise.
1196         * doc/INSTALL.ISO: Likewise.
1197         * doc/INSTALL.UTF-8: Likewise.
1198         * doc/acl-cygwin.txt: Likewise.
1199         * doc/acl-resources.txt: Likewise.
1200         * doc/fdl-1.2.texi: Likewise.
1201         * doc/fdl-1.3.texi: Likewise.
1202         * doc/fdl.texi: Likewise.
1203         * lib/argp-pin.c: Likewise.
1204         * lib/round.c: Likewise.
1205         * lib/unicase/u16-totitle.c: Likewise.
1206         * lib/unictype/block_test.c: Likewise.
1207         * lib/uninorm/canonical-decomposition.c: Likewise.
1208         * m4/README: Likewise.
1209         * m4/relocatable-lib.m4: Likewise.
1210         * tests/test-isnand-nolibm.c: Likewise.
1211         * tests/test-isnand.c: Likewise.
1212         * tests/uninorm/NormalizationTest.txt: Likewise.
1213
1214 2012-01-17  Jim Meyering  <meyering@redhat.com>
1215
1216         maint: add framework to run syntax-check rules against gnulib sources
1217         * cfg.mk: New file, to disable all currently-failing tests.
1218         We'll enable them one by one, as they are made to pass.
1219         * Makefile (sc_maint): New rule.
1220
1221 2012-01-21  Bruno Haible  <bruno@clisp.org>
1222
1223         stdint: Add support for Android.
1224         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
1225         include the system's <stdint.h>.
1226         Reported by Simon Josefsson <simon@josefsson.org>.
1227
1228 2012-01-19  Jim Meyering  <meyering@redhat.com>
1229
1230         bootstrap: add bootstrap_post_import_hook
1231         Bison does still need something like the gnulib_mk_hook whose
1232         invocation I had to remove along with slurp in commit 767ccd40.
1233         Technically, we could get along without it, but doing so would
1234         have required living with a warning and a mandatory post-bootstrap
1235         automake rerun.
1236         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
1237         (bootstrap_post_import_hook): New function.
1238         Invoke it after gnulib-tool --import and before autoreconf.
1239
1240 2012-01-18  Jim Meyering  <meyering@redhat.com>
1241
1242         gitlog-to-changelog: don't use "no_"-prefixed variable name
1243         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
1244         to enable both --cluster and --no-cluster.  Change variable name,
1245         s/\$no_cluster/$cluster/, and reverse usage to match.
1246
1247         gitlog-to-changelog: use "||", not "or" in expressions
1248         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
1249         expressions.
1250
1251 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
1252
1253         gitlog-to-changelog: new option --no-cluster
1254         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
1255         clustering of adjacent commit messages.
1256
1257 2012-01-17  Jim Meyering  <meyering@redhat.com>
1258
1259         maint: spell file systems with two words, not one
1260         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
1261         two words, not one.
1262
1263 2012-01-16  Jim Meyering  <meyering@redhat.com>
1264
1265         bootstrap: add a FIXME comment to ensure we eventually remove the hack
1266         * build-aux/bootstrap (gnulib_tool_options): Add comment.
1267
1268 2012-01-16  Eric Blake  <eblake@redhat.com>
1269
1270         bootstrap: cater to autoconf 2.59
1271         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
1272         is not available.
1273
1274         bootstrap: properly check for libtool
1275         * build-aux/bootstrap (libtoolize): Also run libtool when older
1276         usage is detected.
1277
1278 2012-01-15  Bruno Haible  <bruno@clisp.org>
1279
1280         Improve support for MSVC 9.
1281         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
1282         clashes on MSVC.
1283         * lib/fcntl.in.h: Likewise.
1284         * lib/stdlib.in.h: Likewise.
1285         * lib/sys_stat.in.h: Likewise.
1286
1287 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
1288
1289         gnupload: we hold the master copy of this script now
1290         For motivation and more information, see:
1291         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
1292         * build-aux/gnupload: Make it clear in the heading comments that the
1293         master copy of this file is maintained by gnulib.  Since we are at
1294         it, bump its copyright year and ...
1295         ($scriptversion): ... the date in its version.
1296         ($usage): Patches and bug reports should be sent to the gnulib list,
1297         not the automake one.
1298         * config/srclist.txt: Don't try to sync 'gnupload' from automake
1299         anymore.
1300
1301 2012-01-15  Bruno Haible  <bruno@clisp.org>
1302
1303         Fix module 'random'.
1304         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
1305         initstate, setstate are declared.
1306
1307 2012-01-14  Bruno Haible  <bruno@clisp.org>
1308
1309         Tests for module 'random'.
1310         * modules/random-tests: New file.
1311         * tests/test-random.c: New file, based on tests/test-random_r.c.
1312
1313         New module 'random'.
1314         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
1315         declarations.
1316         * lib/random.c: New file, based on glibc/stdlib/random.c.
1317         * m4/random.m4: New file.
1318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
1319         HAVE_RANDOM.
1320         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
1321         * modules/random: New file.
1322         * config/srclist.txt: Add an entry for random.c.
1323         * doc/posix-functions/random.texi: Mention the 'random' module.
1324         * doc/posix-functions/initstate.texi: Likewise.
1325         * doc/posix-functions/setstate.texi: Likewise.
1326         * doc/posix-functions/srandom.texi: Likewise.
1327
1328 2012-01-12  Bruno Haible  <bruno@clisp.org>
1329
1330         random_r: Use common idioms.
1331         * lib/random_r.c: Include <stdlib.h> first.
1332
1333         random_r: Override incompatible API on AIX, OSF/1.
1334         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
1335         Override the system function if REPLACE_RANDOM_R is 1.
1336         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
1337         and OSF/1, set REPLACE_RANDOM_R.
1338         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
1339         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
1340         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
1341         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
1342         * doc/glibc-functions/random_r.texi: Likewise.
1343         * doc/glibc-functions/setstate_r.texi: Likewise.
1344
1345         random_r: Support for MSVC 9.
1346         * lib/random_r.c: Include stdint.h, not inttypes.h.
1347
1348 2012-01-12  Eric Blake  <eblake@redhat.com>
1349
1350         inet_ntop: guard extra work by IF_LINT
1351         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
1352         better code generation when not checking for warnings.
1353         Suggested by Paul Eggert and Jim Meyering.
1354
1355         strptime: fix regression on mingw
1356         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
1357         Fix regression.  Reported by Bruno Haible.
1358
1359 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
1360             Bruno Haible  <bruno@clisp.org>
1361
1362         copy-file: add error-code-returning variant.
1363         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
1364         (qcopy_file_preserving): New declaration.
1365         * lib/copy-file.c (qcopy_file_preserving): Renamed from
1366         copy_file_preserving. Change return type to 'int'. Don't emit an error
1367         message here.
1368         (copy_file_preserving): New function.
1369         * tests/test-copy-file.c: Include <stdlib.h>.
1370         (main): Test qcopy_file_preserving if the environment variable
1371         NO_STDERR_OUTPUT is set.
1372         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
1373         with NO_STDERR_OUTPUT
1374         * tests/test-copy-file-2.sh: Likewise.
1375
1376 2012-01-10  Bruno Haible  <bruno@clisp.org>
1377
1378         copy-file: Use 'quote' module consistently.
1379         * lib/copy-file.c (copy_file_preserving): Use quote().
1380
1381         copy-file: Refactor.
1382         * lib/copy-file.c: Include quote.h.
1383         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
1384         message here.
1385         * modules/copy-file (Depends-on): Add quote.
1386
1387         acl: Export qcopy_acl.
1388         * lib/acl.h (qcopy_acl): New declaration.
1389         * lib/copy-acl.c (qcopy_acl): Make non-static.
1390
1391         acl: Rename a local variable.
1392         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
1393
1394         acl: Align return values of copy_acl and qcopy_acl.
1395         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
1396         maybe < -1.
1397
1398 2012-01-11  Eric Blake  <eblake@redhat.com>
1399
1400         strptime: silence gcc warnings
1401         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
1402         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
1403         Reported by Daniel P. Berrange.
1404
1405         inet_ntop: silence gcc warning
1406         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
1407         Reported by Daniel P. Berrange.
1408
1409 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
1410
1411         getloadavg test: skip the test on GNU/Linux without /proc mounted
1412         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
1413         file.  When /proc is not mounted, it always fails with ENOENT.
1414         * tests/test-getloadavg.c (main): Treat ENOENT return code from
1415         getloadavg(3) the same way as ENOSYS and ENOTSUP.
1416
1417 2012-01-10  Bruno Haible  <bruno@clisp.org>
1418
1419         regex: Avoid link error on MSVC 9.
1420         * modules/regex (Depends-on): Add wctype.
1421
1422 2012-01-10  Bruno Haible  <bruno@clisp.org>
1423
1424         doc: Mention --with-tests option.
1425         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
1426         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
1427         --with-tests.
1428         Reported by Reuben Thomas.
1429
1430 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
1431
1432         users.txt: order package names lexicographically.
1433         * users.txt: Order package names lexicographically.
1434
1435 2012-01-10  Jim Meyering  <meyering@redhat.com>
1436
1437         maint.mk: fix description in comment
1438         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
1439
1440         ignore-value: remove deprecated ignore_ptr function
1441         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
1442         * NEWS: Note this.
1443
1444 2012-01-09  Jim Meyering  <meyering@redhat.com>
1445
1446         test-init.sh: avoid a subshell
1447         * tests/test-init.sh: Remove protective subshell.
1448         Suggested by Bernhard Voelker.  While a subshell is normally
1449         required to protect against older shells (Solaris, FreeBSD) that
1450         warn about a missing program before performing redirection, the
1451         shell-selection tests performed by init.sh probably exclude any
1452         offending shell.
1453
1454 2012-01-08  Bruno Haible  <bruno@clisp.org>
1455
1456         setlocale tests: Avoid test failure on Solaris 11 2011-11.
1457         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
1458         variable.
1459
1460 2012-01-08  Bruno Haible  <bruno@clisp.org>
1461
1462         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
1463         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1464         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1465         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
1466         macro.
1467         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
1468         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1469         * lib/spawn_faction_addopen.c: Add workaround implementation if
1470         HAVE_WORKING_POSIX_SPAWN.
1471         * modules/spawn (Makefile): Substitute
1472         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1473         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
1474         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
1475         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1476         (Depends-on): Update conditions.
1477         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1478         the Solaris 11 bug.
1479
1480 2012-01-08  Bruno Haible  <bruno@clisp.org>
1481
1482         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
1483         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1484         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1485         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
1486         macro.
1487         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
1488         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1489         * lib/spawn_faction_adddup2.c: Add workaround implementation if
1490         HAVE_WORKING_POSIX_SPAWN.
1491         * modules/spawn (Makefile): Substitute
1492         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1493         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
1494         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
1495         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1496         (Depends-on): Update conditions.
1497         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1498         the Solaris 11 bug.
1499
1500 2012-01-08  Bruno Haible  <bruno@clisp.org>
1501
1502         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
1503         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1504         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1505         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
1506         HAVE_WORKING_POSIX_SPAWN.
1507         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
1508         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
1509         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1510         * lib/spawn_faction_addclose.c: Add workaround implementation if
1511         HAVE_WORKING_POSIX_SPAWN.
1512         * modules/spawn (Makefile): Substitute
1513         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1514         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
1515         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
1516         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1517         (Depends-on): Update conditions.
1518         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1519         the Solaris 11 bug.
1520
1521 2012-01-08  Bruno Haible  <bruno@clisp.org>
1522
1523         doc: Update for Solaris 11 2011-11.
1524         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
1525         * m4/printf.m4: Update comments.
1526
1527 2012-01-08  Bruno Haible  <bruno@clisp.org>
1528
1529         mktime: Avoid compilation error on Solaris 11.
1530         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
1531
1532 2012-01-08  Bruno Haible  <bruno@clisp.org>
1533
1534         doc: Small fix.
1535         * doc/posix-headers/nl_types.texi: Correct platforms list.
1536
1537 2012-01-08  Simon Josefsson  <simon@josefsson.org>
1538
1539         Add lgpl-3.0 module.
1540         * MODULES.html.sh (Support for building documentation): Add
1541         lgpl-3.0.
1542         * modules/lgpl-3.0: New file.
1543
1544 2012-01-08  Jim Meyering  <meyering@redhat.com>
1545
1546         select.c: indent with spaces, not TABs
1547         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
1548
1549 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1550
1551         quotearg: do not use grave accent for left quote
1552         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
1553         locale_quoting_style.
1554         (quotearg_buffer_restyled): Fix example.
1555         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
1556
1557 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1558
1559         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
1560         Most programs do not have translation catalogs for English and much
1561         less separate catalogs for British and American English.  Drop the
1562         suggestion to translators about these two, and provide it
1563         automatically for Unicode locales.  Like most programs, even those
1564         using American English, we use single quotation marks.  This conflicts
1565         with the American typographic convention, but works better when you
1566         cite the entire error message within double quotes.  It also tries not
1567         to clash with established practice and with what non-gnulib programs
1568         will usually do.
1569         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
1570         using an UTF-8 or GB-18030 locale.  The list of other locales with
1571         quotes was provided by Bruno Haible.
1572         (quotearg_buffer_restyled): Adjust instructions to translators.
1573         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
1574         text, since this would be wrong when using Unicode.
1575         * modules/quotearg: Depend on c-strcaseeq.
1576
1577 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1578
1579         quotearg: fix Wikipedia link
1580         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
1581
1582 2012-01-07  Simon Josefsson  <simon@josefsson.org>
1583
1584         Fix for mingw with MSVC9.
1585         * m4/ld-version-script.m4: Check that compiler rejects version
1586         scripts with syntax errors.  Reported by Bruno Haible
1587         <bruno@clisp.org>.
1588
1589 2012-01-06  Bruno Haible  <bruno@clisp.org>
1590
1591         Talk about "native Windows API", not "Woe32".
1592         * lib/accept4.c: Update comments to mention native Windows.
1593         * lib/execute.c: Likewise.
1594         * lib/fatal-signal.c: Likewise.
1595         * lib/localcharset.c: Likewise.
1596         * lib/nanosleep.c: Likewise.
1597         * lib/nl_langinfo.c: Likewise.
1598         * lib/pclose.c: Likewise.
1599         * lib/pipe-filter-gi.c: Likewise.
1600         * lib/pipe-filter-ii.c: Likewise.
1601         * lib/pipe.c: Likewise.
1602         * lib/pipe2.c: Likewise.
1603         * lib/popen.c: Likewise.
1604         * lib/progreloc.c: Likewise.
1605         * lib/relocatable.c: Likewise.
1606         * lib/sigaction.c: Likewise.
1607         * lib/sigprocmask.c: Likewise.
1608         * lib/spawn-pipe.h: Likewise.
1609         * lib/spawn-pipe.c: Likewise.
1610         * lib/spawni.c: Likewise.
1611         * lib/stat-time.h: Likewise.
1612         * lib/w32spawn.h: Likewise.
1613         * tests/test-isatty.c: Likewise.
1614         * lib/config.charset: More comments.
1615         * doc/gnulib-intro.texi: Mention native Windows.
1616         * doc/posix-functions/_Exit_C99.texi: Likewise.
1617         * doc/posix-headers/fcntl.texi: Likewise.
1618
1619 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
1620
1621         argp: Avoid crash if translator uses % characters in a translation.
1622         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
1623         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1624
1625 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1626
1627         doc: C11 and C++11 are now official
1628         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
1629         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
1630         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
1631         * modules/stdalign:
1632         Replace references to draft C1X to C11, and to draft C++0X to C++11.
1633
1634 2012-01-06  Bruno Haible  <bruno@clisp.org>
1635
1636         uc-is-grapheme-break tests: Tweak.
1637         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
1638         message.
1639
1640 2012-01-06  Bruno Haible  <bruno@clisp.org>
1641
1642         test-init.sh: correct the test for diff -u
1643         * tests/test-init.sh: Also redirect stdout to /dev/null.
1644
1645 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1646
1647         Use ', not `, for quoting output.
1648         * build-aux/announce-gen (usage, sizes, print_news_deltas)
1649         (print_changelog_deltas, get_tool_versions, main program):
1650         * build-aux/git-version-gen:
1651         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
1652         * build-aux/move-if-change (help):
1653         * build-aux/useless-if-before-free (usage, main program):
1654         * check-module (parse_module_file, usage)
1655         (find_included_lib_files, check_module):
1656         * lib/argmatch.c (main) [TEST]:
1657         * lib/argp-help.c (_help):
1658         * lib/getopt1.c (main) [TEST]:
1659         * lib/git-merge-changelog.c (usage):
1660         * lib/xstrtol-error.c (xstrtol_error):
1661         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1662         * m4/argz.m4 (gl_FUNC_ARGZ):
1663         * m4/bison.m4 (gl_BISON):
1664         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
1665         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1666         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1667         * m4/fpending.m4 (gl_PREREQ_FPENDING):
1668         * m4/gc-random.m4 (gl_GC_RANDOM):
1669         * m4/intl.m4 (gt_CHECK_DECL):
1670         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
1671         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
1672         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1673         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
1674         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
1675         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
1676         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
1677         * tests/test-dirname.c (main):
1678         * tests/test-getpass.c (main):
1679         * tests/test-iconvme.c (main):
1680         * tests/test-parse-datetime.c (LOG):
1681         * tests/test-xstrtoimax.sh:
1682         * tests/test-xstrtol.sh:
1683         * tests/test-xstrtoll.sh:
1684         * tests/test-xstrtoumax.sh:
1685         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
1686         * top/GNUmakefile (abort-due-to-no-makefile):
1687         Quote 'like this', not `like this', as per the recent change to
1688         the GNU coding standards.
1689
1690 2012-01-05  Bruno Haible  <bruno@clisp.org>
1691
1692         strtoimax: Don't force a replacement on systems where intmax_t is int.
1693         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
1694         'intmax_t' is not larger than 'int'.
1695         Reported by Pádraig Brady <P@draigBrady.com>.
1696
1697 2012-01-05  Bruno Haible  <bruno@clisp.org>
1698
1699         doc: Mention NetBSD bugs.
1700         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
1701         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
1702
1703 2012-01-05  Bruno Haible  <bruno@clisp.org>
1704
1705         strtoumax tests: Enhance tests.
1706         * tests/test-strtoumax.c (main): Add tests for large values.
1707
1708 2012-01-05  Bruno Haible  <bruno@clisp.org>
1709
1710         strtoimax: Work around AIX 5.1 bug.
1711         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
1712         definition.
1713         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
1714         Set HAVE_STRTOIMAX.
1715         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
1716         REPLACE_STRTOIMAX.
1717         * modules/inttypes-incomplete (Makefile.am): Substitute
1718         REPLACE_STRTOIMAX.
1719         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
1720         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
1721         (Depends-on): Update conditions.
1722         * tests/test-strtoimax.c (main): Add tests for large values.
1723         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
1724
1725 2012-01-05  Bruno Haible  <bruno@clisp.org>
1726
1727         inttypes: Modernize.
1728         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
1729         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
1730         (Makefile.am): Update inttypes.h rule.
1731
1732 2012-01-05  Jim Meyering  <meyering@redhat.com>
1733
1734         init.sh: don't waste a subshell just to redirect stderr
1735         * tests/init.sh: In testing for diff -u and diff -c, use a
1736         stderr-redirecting exec inside `...` rather than a subshell.
1737
1738         test-init.sh: avoid failure on HP-UX 11.00
1739         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
1740         resolves to diff -c or cmp.  Reported by Bruno Haible.
1741
1742 2012-01-05  Bruno Haible  <bruno@clisp.org>
1743
1744         Tests for module 'strtoull'.
1745         * modules/strtoull-tests: New file.
1746         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
1747
1748 2012-01-05  Bruno Haible  <bruno@clisp.org>
1749
1750         Tests for module 'strtoll'.
1751         * modules/strtoll-tests: New file.
1752         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
1753
1754 2012-01-05  Bruno Haible  <bruno@clisp.org>
1755
1756         Tests for module 'strtoul'.
1757         * modules/strtoul-tests: New file.
1758         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
1759
1760 2012-01-05  Bruno Haible  <bruno@clisp.org>
1761
1762         Tests for module 'strtol'.
1763         * modules/strtol-tests: New file.
1764         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
1765
1766 2012-01-04  Jim Meyering  <meyering@redhat.com>
1767
1768         test-init.sh: accommodate Solaris 5.10's different diff -u output
1769         * tests/test-init.sh: Also exempt @@ lines from the comparison
1770         of diff output, since Solaris 5.10 and GNU diff formats differ.
1771         Reported by Stefano Lattarini.
1772
1773 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1774
1775         test-posixtm: don't assume signed integer wraparound
1776         * tests/test-posixtm.c (main): Don't assume wraparound semantics
1777         after signed integer overflow.  Inspired by (though it may not
1778         fix) Bruno Haible's bug report in
1779         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
1780
1781         Spell out "Windows 9x" and "Windows XP".
1782         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
1783         "Windows 9x" and "WinXP" with "Windows XP".
1784
1785 2012-01-04  Jim Meyering  <meyering@redhat.com>
1786
1787         test-vc-list-files-cvs.sh: remove obsolete comment
1788         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
1789         double exit.  Now that's all encapsulated via skip_ and Exit.
1790
1791 2012-01-04  Bruno Haible  <bruno@clisp.org>
1792
1793         Talk about "native Windows API", not "Win32".
1794         * lib/classpath.c: Update comments to mention native Windows.
1795         * lib/csharpexec.c: Likewise.
1796         * lib/dup2.c: Likewise.
1797         * lib/error.c: Likewise.
1798         * lib/fcntl.c: Likewise.
1799         * lib/filename.h: Likewise.
1800         * lib/findprog.c: Likewise.
1801         * lib/get-rusage-as.c: Likewise.
1802         * lib/get-rusage-data.c: Likewise.
1803         * lib/getpagesize.c: Likewise.
1804         * lib/javaexec.c: Likewise.
1805         * lib/msvc-inval.c: Likewise.
1806         * lib/msvc-nothrow.c: Likewise.
1807         * lib/nanosleep.c: Likewise.
1808         * lib/nonblocking.c: Likewise.
1809         * lib/printf-parse.c: Likewise.
1810         * lib/setlocale.c: Likewise.
1811         * lib/sigaction.c: Likewise.
1812         * lib/strerror_r.c: Likewise.
1813         * lib/tmpdir.c: Likewise.
1814         * lib/vasnprintf.c: Likewise.
1815         * lib/w32spawn.h: Likewise.
1816         * lib/waitpid.c: Likewise.
1817         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
1818         * m4/locale-ar.m4: Likewise.
1819         * m4/locale-fr.m4: Likewise.
1820         * m4/locale-ja.m4: Likewise.
1821         * m4/locale-tr.m4: Likewise.
1822         * m4/locale-zh.m4: Likewise.
1823         * m4/printf.m4: Likewise.
1824         * tests/test-cloexec.c: Likewise.
1825         * tests/test-copy-acl.sh: Likewise.
1826         * tests/test-copy-file.sh: Likewise.
1827         * tests/test-file-has-acl.sh: Likewise.
1828         * tests/test-set-mode-acl.sh: Likewise.
1829         * tests/test-dup-safer.c: Likewise.
1830         * tests/test-dup2.c: Likewise.
1831         * tests/test-dup3.c: Likewise.
1832         * tests/test-fcntl.c: Likewise.
1833         * tests/test-nonblocking-pipe.h: Likewise.
1834         * tests/test-nonblocking-socket.h: Likewise.
1835         * tests/test-pipe.c: Likewise.
1836         * tests/test-pipe2.c: Likewise.
1837         * tests/test-spawn-pipe-child.c: Likewise.
1838         * doc/acl-resources.txt: Likewise.
1839         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1840         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
1841         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
1842         * lib/localcharset.c: Update comments to mention native Windows.
1843         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1844         * lib/localename.c: Likewise.
1845         * lib/progreloc.c: Likewise.
1846         * lib/relocatable.c: Likewise.
1847         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1848         (windows_compute_revents): Renamed from win32_compute_revents.
1849         (windows_compute_revents_socket): Renamed from
1850         win32_compute_revents_socket.
1851         * lib/select.c: Update comments to mention native Windows.
1852         (windows_poll_handle): Renamed from win32_poll_handle.
1853         * m4/threadlib.m4: Update comments to mention native Windows.
1854         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
1855         --enable-threads=windows instead of --enable-threads=win32. Set
1856         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
1857         * lib/glthread/lock.h: Update comments to mention native Windows.
1858         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
1859         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
1860         USE_WIN32_THREADS.
1861         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
1862         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
1863         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
1864         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
1865         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
1866         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
1867         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
1868         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
1869         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
1870         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
1871         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
1872         * tests/test-tls.c: Likewise.
1873         Rationale:
1874         Microsoft renamed the "Win32 API" to "Windows API", as it is available
1875         on both 32-bit and 64-bit Windows systems.
1876         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
1877         line of distinction is between "native Windows" on one side and Unix/
1878         POSIX systems on the other side. More details in
1879         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
1880         Suggested by Paul Eggert.
1881
1882 2012-01-03  Bruno Haible  <bruno@clisp.org>
1883
1884         isatty: Support for MSVC 9.
1885         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
1886         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
1887         (_isatty_nothrow): New function.
1888         (isatty): Use it instead of _isatty.
1889         (IsConsoleHandle): Add comment, from Paolo Bonzini.
1890         * lib/poll.c (IsConsoleHandle): Likewise.
1891         * lib/select.c (IsConsoleHandle): Likewise.
1892         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
1893         (gl_PREREQ_ISATTY): New macro.
1894         * modules/isatty (Depends-on): Add msvc-inval.
1895         (configure.ac): Invoke gl_PREREQ_ISATTY.
1896
1897 2012-01-03  Jim Meyering  <meyering@redhat.com>
1898
1899         maint.mk: remove temporary transition aid from over 1.5 years ago
1900         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
1901         purpose was to aid in the transition (avoiding silent malfunction)
1902         from that old name to the new _sc_search_regexp.  This shim was
1903         added by commit 219c504b.
1904
1905         init.sh: do not try to accommodate compare arguments starting with "-"
1906         * tests/init.sh (compare_dev_null_): Do not try to accommodate
1907         compare arguments that start with "-".  Besides, we do not worry
1908         about this when invoking diff or cmp; why start now with sed?
1909         Using "--" to separate options from argument would trigger sed
1910         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
1911         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
1912
1913 2012-01-02  Bruno Haible  <bruno@clisp.org>
1914
1915         Enhance tests for module 'isatty'.
1916         * modules/isatty-tests (Depends-on): Add pipe-posix.
1917         * tests/test-isatty.c: Include <fcntl.h>.
1918         (DEV_NULL): New macro.
1919         (main): Test the resut of isatty() also on regular files, pipes, and
1920         /dev/null.
1921
1922         New module 'isatty'.
1923         * lib/unistd.in.h (isatty): New declaration.
1924         * lib/isatty.c: New file, based on an idea of
1925         Bastien Roucariès <roucaries.bastien@gmail.com>.
1926         * m4/isatty.m4: New file.
1927         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
1928         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
1929         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
1930         REPLACE_ISATTY.
1931         * modules/isatty: New file.
1932         * doc/posix-functions/isatty.texi: Mention the new module.
1933         Suggested by Paolo Bonzini.
1934
1935 2012-01-02  Bruno Haible  <bruno@clisp.org>
1936
1937         canonicalize: Tweak 2011-12-29 commit.
1938         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
1939         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
1940
1941 2012-01-02  Jim Meyering  <meyering@redhat.com>
1942
1943         gitlog-to-changelog: describe input syntax in --help output
1944         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
1945
1946         gitlog-to-changelog: fix typo in --help: show backslash before email @
1947         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
1948         in sources, but not in actual output.
1949
1950 2011-12-30  Jim Meyering  <meyering@redhat.com>
1951
1952         gitlog-to-changelog: don't malfunction when name contains %-directive
1953         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
1954         in a name string cause trouble.  E.g., with a user name of "%s",
1955         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
1956
1957 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
1958
1959         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
1960         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
1961         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
1962         the "  (tiny change)" notation that is appended to the standard
1963         ChangeLog "date  name  email" header line.
1964
1965 2012-01-01  Jim Meyering  <meyering@redhat.com>
1966
1967         test-framework-sh: init.sh: fix "make dist" failure
1968         When using gnulib-tool's --with-tests option and any module that
1969         depends on test-framework-sh, "make dist" would fail due to the
1970         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
1971         in the gltests directory, and not in the gllib/ directory.
1972         One way to work around that is to move the EXTRA_DIST += init.sh
1973         from the primary module to the -tests one:
1974         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
1975         * modules/test-framework-sh (Makefile.am): ...not here.
1976         Reported by Tom G. Christensen in
1977         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
1978
1979         version-etc: update copyright year reported by --version
1980         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
1981
1982 2011-12-31  Pádraig Brady  <P@draigBrady.com>
1983
1984         canonicalize: only stat() if required
1985         * lib/canonicalize.c (canonicalize_filename_mode):
1986         Avoid calling l?stat() when both CAN_MISSING,
1987         and CAN_NOLINKS are set, as we neither need
1988         to resolve symlinks or test component existence.
1989
1990 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1991
1992         doc: cover st_ino issues once; add OpenVMS etc.
1993         * doc/posix-functions/stat.texi (stat):
1994         * doc/posix-functions/lstat.texi (lstat):
1995         * doc/posix-functions/fstatat.texi (fstatat):
1996         * doc/posix-functions/fstat.texi (fstat):
1997         Move general 'struct stat' stuff to sys_stat.texi,
1998         leaving behind a pointer.
1999         * doc/posix-headers/sys_stat.texi (sys/stat.h):
2000         Merge duplicate info about 'struct stat' problems into here.
2001         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
2002         and suggest partial workarounds.
2003
2004         same-inode: port to OpenVMS
2005         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
2006         three st_ino values.
2007
2008 2011-12-30  Pádraig Brady  <P@draigBrady.com>
2009
2010         canonicalize: fix references to stat() and lstat()
2011         * lib/canonicalize.c (canonicalize_filename_mode):
2012         Ensure references always resolve to a replacement
2013         function if required (even via a macro).
2014
2015 2011-12-30  Jim Meyering  <meyering@redhat.com>
2016
2017         gitlog-to-changelog: remove a little duplication
2018         * build-aux/gitlog-to-changelog (main): Grep @lines once,
2019         rather than twice.
2020
2021 2011-12-29  Pádraig Brady  <P@draigBrady.com>
2022
2023         canonicalize: add support for not resolving symlinks
2024         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
2025         indicate we don't want to follow symlinks.  Also
2026         provide CAN_MODE_MASK to aid setting these existing
2027         mutually exclusive values.
2028         * lib/canonicalize.c (canonicalize_filename_mode):
2029         Extract the flags from can_mode parameter, which
2030         are currently just used to select between stat()
2031         and lstat().  Also ensure that mutually exclusive
2032         values are flagged immediately as invalid.
2033         * tests/test-canonicalize.c: Verify symlinks are
2034         not followed, and that invalid flag combinations
2035         are diagnosed.
2036
2037 2011-12-25  Jim Meyering  <meyering@redhat.com>
2038
2039         gitlog-to-changelog: do not clump multi-paragraph entries
2040         Identical header lines (date,name,email+coauthors) are suppressed,
2041         thus putting all entries with those same characteristics under
2042         a single header.  However, when a log entry consists of two or
2043         more paragraphs, it may not be clear where it starts and ends.
2044         This change makes it so that such an entry is always separated
2045         from others by a header line, even when that header would
2046         otherwise be suppressed.
2047         * build-aux/gitlog-to-changelog: Implement the above.
2048         Inspired by a related request from Stefano Lattarini in
2049         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
2050
2051 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2052
2053         announce-gen: fix `cmd' typo in diagnostic
2054         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
2055         diagnostic: a missing '$' meant that the command was not output.
2056
2057 2011-12-23  Jim Meyering  <meyering@redhat.com>
2058
2059         test-framework-sh: distribute init.sh
2060         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
2061         Otherwise, "make -C gnulib-tests check" (at least in grep) would
2062         fail due to the lack of init.sh.
2063
2064         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
2065         * modules/atexit-tests: Rather than listing tests/init.sh,
2066         now that there's a module for it, simply depend on that new module.
2067         * modules/closein-tests: Likewise.
2068         * modules/exclude-tests: Likewise.
2069         * modules/getcwd-tests: Likewise.
2070         * modules/perror-tests: Likewise.
2071         * modules/pread-tests: Likewise.
2072         * modules/pwrite-tests: Likewise.
2073         * modules/vc-list-files-tests: Likewise.
2074         * modules/verify-tests: Likewise.
2075         * modules/xalloc-die-tests: Likewise.
2076         * modules/xstrtoimax-tests: Likewise.
2077         * modules/xstrtol-tests: Likewise.
2078         * modules/xstrtoll-tests: Likewise.
2079         * modules/xstrtoumax-tests: Likewise.
2080         * modules/yesno-tests: Likewise.
2081
2082 2011-12-22  Jim Meyering  <meyering@redhat.com>
2083
2084         test-framework-sh: add minimal tests of init.sh's compare function
2085         * modules/test-framework-sh-tests: New file.
2086         * tests/test-init.sh: New file.
2087
2088         test-framework-sh: new module
2089         * modules/test-framework-sh: New file.
2090         * MODULES.html.sh (Support for maintaining and releasing projects):
2091         List it.
2092
2093         init.sh: do not emit simulated diff output to stderr
2094         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
2095
2096 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2097
2098         .gitignore: ignore gnulib.dvi and regex.info
2099         * doc/.gitignore:add gnulib.dvi and regex.info
2100
2101 2011-12-22  Jim Meyering  <meyering@redhat.com>
2102
2103         init.sh: correct previous change
2104         * tests/init.sh (compare): My previous change was wrong.
2105         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
2106
2107         init.sh: avoid unwarranted test failure when using "set -e"
2108         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
2109         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
2110         a use like "compare exp out" would get evoke an unconditional failure.
2111
2112 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
2113
2114         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
2115         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
2116         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
2117         autoreconf that did not.
2118         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
2119         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2120
2121 2011-12-17  Jim Meyering  <meyering@redhat.com>
2122
2123         bootstrap: remove some now-unneeded code
2124         This script arose back when gnulib-tool was young.
2125         Since then, it has seen improvements that render much of this
2126         script unnecessary.  In particular, it can now make symlinks
2127         to the files it uses.  Also, I no longer see as much value in
2128         marking files as read-only via comments.
2129         If you relied on the symlink-creation feature of the preceding
2130         version of this script, you can get most of that functionality
2131         by adding the --symlink option to the definition of
2132         gnulib_tool_option_extras in your bootstrap.conf file.
2133         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
2134         Run autopoint and libtoolize *before* gnulib-tool.
2135         After it, run an abbreviated autoreconf, rather than a loop around
2136         all tools.
2137         (slirp, bt_mark_as_generated): Remove functions.
2138
2139 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2140
2141         ftoastr: fix typo
2142         * lib/ftoastr.h: Fix misspelling in comment.
2143
2144 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
2145
2146         * top/README-release: fix punctuation.
2147
2148 2011-12-17  Jim Meyering  <meyering@redhat.com>
2149
2150         bootstrap: correct the recent buildreq change
2151         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
2152         had no effect.
2153         * build-aux/bootstrap (buildreq): Bracket each search term with
2154         "*...*", so that the shell "case" statement works as intended.
2155         Add comments.
2156
2157 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
2158
2159         build: let bootstrap resort to wget when downloading .po files
2160         * build-aux/bootstrap (download_po_files): Fallback to wget when
2161         downloading the .po files via rsync fails.  This is necessary to
2162         bootstrap from behind a strict firewall.
2163
2164 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2165
2166         stdint: don't assume C++11 when compiling with g++
2167         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
2168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
2169         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
2170         work also in C++ before C++11, as that improperly inhibits
2171         generating a substitute stdint.h for that case.
2172
2173 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2174
2175         alloca: protect comment from gnulib-tool
2176         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
2177         that gnulib-tool doesn't think it's a license, and munge it to
2178         say "GCC version 3".
2179
2180 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
2181
2182         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
2183         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
2184         $(abs_top_builddir) instead of $(top_builddir).
2185
2186 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
2187
2188         strftime-tests: also test nanoseconds
2189         * tests/test-strftime.c (T): Add a test of %N.
2190
2191 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
2192
2193         inttypes, stdint: add C++11 support
2194         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
2195         when including inttypes.h and stdint.h.  Support this change to
2196         the standard.
2197         * doc/posix-headers/inttypes.texi (inttypes.h):
2198         * doc/posix-headers/stdint.texi (stdint.h): Document this.
2199         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
2200         Define if not defined already, for the benefit of pre-C++11 hosts.
2201         Define the standard format macros (e.g., PRId8) always.
2202         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
2203         Likewise, if __cpluspus.  Define the standard constant and limit
2204         macros (e.g., INT8_C, INT8_MAX) always.
2205         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
2206         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
2207         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
2208         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
2209         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
2210         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
2211         Likewise.
2212
2213 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2214
2215         nonblocking tests: Fix test failure on Linux/PPC.
2216         Suggested by Prerna Saxena in
2217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
2218         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
2219         Set to 1100000.
2220
2221 2011-12-12  Jim Meyering  <meyering@redhat.com>
2222
2223         argmatch: don't hard-code `' when listing valid option arguments
2224         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
2225         use the quote function to add quotes.  Use fputs rather than
2226         fprintf for the format string with no format directive.
2227
2228 2011-12-07  Eric Blake  <eblake@redhat.com>
2229
2230         bootstrap: detect tools required by gnulib-tool
2231         * build-aux/bootstrap (buildreq): Provide minimum implicit
2232         dependencies.
2233         * DEPENDENCIES: Mention patch as a prereq.
2234
2235 2011-12-04  Bruno Haible  <bruno@clisp.org>
2236
2237         sethostname: Port to Windows platforms.
2238         * lib/sethostname.c: Provide an alternate implementation for Windows
2239         platforms.
2240         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
2241         (main): Skip the test if sethostname() fails with EPERM. On Windows
2242         platforms, don't check the result of gethostname().
2243
2244 2011-12-04  Bruno Haible  <bruno@clisp.org>
2245             Jim Meyering  <meyering@redhat.com>
2246
2247         tests: Avoid spurious error message on platforms without mktemp program.
2248         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
2249
2250 2011-12-04  Bruno Haible  <bruno@clisp.org>
2251
2252         sethostname: Fix documentation.
2253         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
2254         "not fixed" section.
2255
2256 2011-12-03  Bruno Haible  <bruno@clisp.org>
2257
2258         gnulib-tool: Verify that the License field is present and non-empty.
2259         * gnulib-tool (func_get_license_raw): New function, extracted from
2260         func_get_license.
2261         (func_get_license): Use it. Warn if the module is not a test module and
2262         has no license.
2263         Suggested by Jim Meyering.
2264
2265 2011-12-03  Bruno Haible  <bruno@clisp.org>
2266
2267         sethostname tests: Fix link error on mingw.
2268         * tests/test-sethostname1.c: New file, extracted from
2269         tests/test-sethostname.c.
2270         * tests/test-sethostname2.c: New file, extracted from
2271         tests/test-sethostname.c.
2272         * tests/test-sethostname.c: Remove file.
2273         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
2274         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
2275         (Depends-on): Add gethostname.
2276         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
2277         Link the latter with $(GETHOSTNAME_LIB).
2278
2279         sethostname tests: Fix compilation error on mingw.
2280         * tests/test-sethostname.c: Don't include <sys/types.h>.
2281         (geteuid): Use a dummy value without uid_t.
2282         * modules/sethostname-tests (Depends-on): Remove sys_types.
2283
2284         sethostname tests: Avoid a gcc warning.
2285         * tests/test-sethostname.c (main): Remove an unused variable.
2286
2287         Tweak last commit.
2288         * modules/sethostname-tests (Files): Sort by decreasing importance.
2289         (configure.ac): Check for geteuid.
2290         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
2291         the test when there's nothing to test. Drop an unnecessary cast.
2292         Improve an error message. Verify that the final sethostname() call
2293         succeeds.
2294
2295 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2296
2297         Add a test suite for the sethostname module.
2298         * modules/sethostname-tests: New file.  A test program
2299         for the sethostname module.
2300         * tests/test-sethostname.c: Likewise.
2301
2302 2011-12-03  Bruno Haible  <bruno@clisp.org>
2303
2304         Tweak last commit.
2305         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
2306         Fix preprocessor directives indentation. Fix typos.
2307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
2308         * modules/unistd (Makefile): Likewise.
2309
2310 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2311
2312         Integrate the sethostname module into unistd.
2313         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
2314         into the unistd.h header.
2315         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
2316         preprocessor directives.
2317         * modules/unistd: Setup the Makefile substitutions of the
2318         SETHOSTNAME preprocessor directives.
2319
2320 2011-12-03  Bruno Haible  <bruno@clisp.org>
2321
2322         Tweak last commit.
2323         * lib/sethostname.c: Don't include <string.h>.
2324         (sethostname): No need to copy the argument string to the stack. Don't
2325         call clearerr. Preserve errno when fprintf failed.
2326         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
2327         Don't invoke AC_REPLACE_FUNCS.
2328         * modules/sethostname (Link): Remove empty section.
2329         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
2330         failure problem.
2331
2332 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2333
2334         New module 'sethostname'.
2335         * lib/sethostname.c (sethostname): New file.  Provide sethostname
2336         for systems that lack it.
2337         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
2338         sethostname declaration and function.
2339         * modules/sethostname: New file.  Define the sethostname module.
2340
2341 2011-12-03  Bruno Haible  <bruno@clisp.org>
2342
2343         Tweak last commit.
2344         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
2345
2346 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2347
2348         Split the HOST_NAME_MAX detection into a separate m4 macro.
2349         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
2350         macro so it can be used by the pending sethostname module.
2351
2352 2011-12-03  Bruno Haible  <bruno@clisp.org>
2353
2354         Fix module descriptions syntax.
2355         * modules/argv-iter (License): Fix syntax.
2356         * modules/di-set (License): Likewise.
2357         * modules/ino-map (License): Likewise.
2358         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
2359
2360 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2361
2362         stdalign: port to Clang 3.0
2363         Problem reported by Simon Josefsson in
2364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
2365         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
2366         which has <stdalign.h> but which does not define alignof.
2367         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
2368
2369 2011-12-01  Eric Blake  <eblake@redhat.com>
2370
2371         mktempd: silence dd usage
2372         * build-aux/mktempd (rand_bytes): Silence dd.
2373
2374 2011-11-30  Simon Josefsson  <simon@josefsson.org>
2375
2376         manywarnings: Don't mention gcc version in docstring.
2377         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
2378         Jim Meyering <meyering@redhat.com>.
2379
2380 2011-11-30  Jim Meyering  <meyering@redhat.com>
2381
2382         hash: mark a few floating point constants with "f" suffix
2383         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
2384         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
2385         floating point constants with "f", since they're destined to be
2386         saved/used as "float"s.
2387
2388 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
2389
2390         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
2391         * tests/test-float.c (test_long_double): Correct and re-enable the
2392         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
2393
2394 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
2395
2396         Avoid subtracting two pointers that don't point into the same block.
2397         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
2398         only pointers into the same memory block are subtracted. We cannot
2399         assume that sizeof (ptrdiff_t) == sizeof (void *).
2400
2401 2011-11-29  Eric Blake  <eblake@redhat.com>
2402
2403         maint.mk: add syntax check for use of compare from init.sh
2404         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
2405         moved here from coreutils.
2406
2407         manywarnings: drop -Wunsuffixed-float-constants
2408         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
2409         '1.0D', which is the only way to silence this warning for 'double'.
2410
2411 2011-11-29  Jim Meyering  <meyering@redhat.com>
2412
2413         hash: mark compute_bucket_size with the pure attribute
2414         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
2415
2416         quotearg, propername: correct pragma guard expression
2417         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
2418         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
2419
2420 2011-11-28  Jim Meyering  <meyering@redhat.com>
2421
2422         propername: do not mark proper_name with the const attribute
2423         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
2424         since it examines data pointed to by its parameter.
2425         * lib/propername.c (proper_name): Instead, add a pragma to suppress
2426         the suggestion from -Wsuggest-attribute=const.
2427
2428         propername: mark one more function as const
2429         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
2430
2431 2011-11-27  Jim Meyering  <meyering@redhat.com>
2432
2433         mark functions with const and pure attributes
2434
2435         Mark functions per suggestions from gcc-4.6 when using these options:
2436         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
2437         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
2438         Follow these guidelines: when possible, apply the attribute to
2439         an extern declaration, not to its definition.  Apply it to the
2440         definition only when the definition is static.
2441         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
2442         * lib/argv-iter.h (argv_iter_n_args): Likewise.
2443         * lib/base64.h (isbase64): Likewise.
2444         * lib/basename-lgpl.c (last_component, base_len): Likewise.
2445         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
2446         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
2447         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
2448         (c_tolower, c_toupper): Likewise.
2449         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
2450         * lib/chdir-long.c (find_non_slash): Likewise.
2451         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
2452         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
2453         * lib/file-type.h (file_type): Likewise.
2454         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
2455         * lib/filevercmp.c (verrevcmp): Likewise.
2456         * lib/freadahead.h (freadahead): Likewise.
2457         * lib/fts.c (fts_maxarglen): Likewise.
2458         * lib/hash-pjw.h (hash_pjw): Likewise.
2459         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
2460         * lib/hash.c (is_prime, next_prime): Likewise.
2461         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
2462         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
2463         (hash_table_ok, hash_get_first, hash_string): Likewise.
2464         (compute_bucket_size): Likewise.
2465         * lib/i-ring.h (i_ring_empty): Likewise.
2466         * lib/isnan.c (isnanl): Likewise.
2467         * lib/math.h (isnanl, rpl_isnanl): Likewise.
2468         * lib/memcasecmp.h (memcasecmp): Likewise.
2469         * lib/memchr2.h (memchr2): Likewise.
2470         * lib/memcmp2.h (memcmp2): Likewise.
2471         * lib/parse-datetime.y (lookup_zone): Likewise.
2472         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
2473         [!WINDOWS_SOCKETS]: Likewise.
2474         * lib/strnlen1.h (strnlen1): Likewise.
2475         * lib/uniwidth.in.h (uc_width): Likewise.
2476         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
2477         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
2478         (quoting_options_from_style): Add a comment.
2479         * lib/propername.h (proper_name): Add a comment.
2480
2481 2011-11-27  Bruno Haible  <bruno@clisp.org>
2482
2483         Remove unused macros from !_LIBC code in glibc-borrowed files.
2484         * lib/fnmatch.c (STRCOLL): Remove macro.
2485         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
2486         * lib/glob.c (__stat, __readdir64): Remove macros.
2487         * lib/tempname.c (__open64, __xstat64): Remove macros.
2488         Suggested by Paul Eggert.
2489
2490 2011-11-27  Bruno Haible  <bruno@clisp.org>
2491
2492         getcwd: Fix link error on MSVC 9.
2493         * modules/getcwd (Depends-on): Add readdir, rewinddir.
2494
2495 2011-11-27  Bruno Haible  <bruno@clisp.org>
2496
2497         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
2498         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
2499         HAVE_OPENDIR is 0.
2500         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
2501         HAVE_CLOSEDIR is 0.
2502         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
2503         is 0.
2504         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
2505
2506 2011-11-27  Bruno Haible  <bruno@clisp.org>
2507
2508         getcwd: Fix bug from 2011-08-17.
2509         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
2510         platforms that need it.
2511         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
2512         code of 4 to be a failure, not a success. This ensures that
2513         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
2514
2515 2011-11-27  Bruno Haible  <bruno@clisp.org>
2516
2517         binary-io tests: Avoid test failure on mingw when libtool is used.
2518         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
2519         Don't verify the size of t-bin-out1.tmp here.
2520         * tests/test-binary-io.sh: Verify it here.
2521         Reported by Simon Josefsson.
2522
2523 2011-11-26  Bruno Haible  <bruno@clisp.org>
2524
2525         Fix conflict between two instantiations of module 'unistd'.
2526         * gnulib-tool (func_emit_autoconf_snippet): Substitute
2527         ${include_guard_prefix} also in the autoconf snippet.
2528         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
2529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
2530         GNULIB_UNISTD_H_GETOPT.
2531         * modules/getopt-posix (configure.ac): Set the
2532         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
2533         * modules/getopt-gnu (configure.ac): Likewise.
2534         * modules/unistd (Makefile.am): Change the substitution value of
2535         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
2536         Reported by Simon Josefsson.
2537
2538 2011-11-25  Bruno Haible  <bruno@clisp.org>
2539
2540         pagealign_alloc: Doc and comments.
2541         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
2542         module.
2543         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
2544
2545 2011-11-25  Jim Meyering  <meyering@redhat.com>
2546
2547         test-update-copyright.sh: avoid false-positive failure
2548         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
2549         around false positive failure on Cygwin/Windows.  The latter was
2550         matching erroneously-created files with names like
2551         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
2552
2553 2011-11-25  Simon Josefsson  <simon@josefsson.org>
2554
2555         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
2556         * m4/valgrind-tests.m4: Check that the parameters that will be
2557         used works, not just a subset of them.  Reported by Bruno Haible
2558         <bruno@clisp.org>.
2559
2560 2011-11-24  Jim Meyering  <meyering@redhat.com>
2561
2562         test-stdalign.c: comment out long double tests
2563         * tests/test-stdalign.c: Don't try to reduce alignment of long double
2564         variables.  That provokes errors like this from gcc-4.7.0 20111124:
2565         error: '_Alignas' specifiers cannot reduce alignment of \
2566         'static_longdouble_alignas'.
2567
2568 2011-11-22  Jim Meyering  <meyering@redhat.com>
2569
2570         init.sh: make "compare /dev/null FILE" output more readable
2571         * tests/init.sh (compare_): Document the preferred order of arguments.
2572         (emit_diff_u_header_): New function.
2573         (compare_dev_null_): Emit a simulated diff, rather than just the
2574         contents of the unexpected file.  Suggestion from Bruno Haible.
2575
2576 2011-11-21  Jim Meyering  <meyering@redhat.com>
2577             Eric Blake  <eblake@redhat.com>
2578
2579         init.sh: work around OSF/1 5.1's mishandling of /dev/null
2580         * tests/init.sh: Make our compare function slightly more portable.
2581         Reported by Bruno Haible in
2582         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
2583
2584 2011-11-21  Simon Josefsson  <simon@josefsson.org>
2585
2586         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
2587         before using it, in code that ends up in config.h.
2588
2589 2011-11-20  Bruno Haible  <bruno@clisp.org>
2590
2591         getcwd: Work around getcwd bug on AIX 5..7.
2592         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
2593         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
2594         Use a different value for gl_cv_func_getcwd_path_max. Move the
2595         definition of HAVE_PARTLY_WORKING_GETCWD from here...
2596         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
2597         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
2598         Define HAVE_MINIMALLY_WORKING_GETCWD.
2599         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
2600         where it is not even minimally working, that is, on AIX.
2601         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
2602         m4/getcwd-path-max.m4.
2603         (main): Update exit code computation.
2604         * doc/posix-functions/getcwd.texi: Mention list of platforms where
2605         getcwd does not handle long file names.
2606
2607 2011-11-20  Bruno Haible  <bruno@clisp.org>
2608
2609         getcwd: Fix bug from 2009-09-10.
2610         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
2611         like "no".
2612
2613 2011-11-20  Simon Josefsson  <simon@josefsson.org>
2614
2615         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
2616
2617 2011-11-20  Bruno Haible  <bruno@clisp.org>
2618
2619         fma tests: Avoid shadowing local variables.
2620         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
2621         expected.
2622
2623 2011-11-20  Bruno Haible  <bruno@clisp.org>
2624
2625         copysignf tests: Fix.
2626         * tests/test-copysignf.c: Fix signature check.
2627
2628 2011-11-20  Bruno Haible  <bruno@clisp.org>
2629
2630         fma: Remove unused code.
2631         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
2632         unused macros.
2633
2634 2011-11-20  Bruno Haible  <bruno@clisp.org>
2635
2636         sethostname: Fix doc about AIX.
2637         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
2638         sethostname; it has it.
2639
2640         sethostname: Mention more portability problems.
2641         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
2642         problem.
2643         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2644
2645 2011-11-19  Bruno Haible  <bruno@clisp.org>
2646
2647         Depend on module fcntl-h when AT_FDCWD is used.
2648         * modules/utimens (Depends-on): Add fcntl-h.
2649         * modules/areadlinkat (Depends-on): Likewise.
2650         * modules/areadlinkat-with-size (Depends-on): Likewise.
2651         * modules/faccessat (Depends-on): Likewise.
2652         * modules/fchmodat (Depends-on): Likewise.
2653         * modules/fchownat (Depends-on): Likewise.
2654         * modules/getcwd (Depends-on): Likewise.
2655         * modules/mkdirat (Depends-on): Likewise.
2656         * modules/mkfifoat (Depends-on): Likewise.
2657         * modules/readlinkat (Depends-on): Likewise.
2658         * modules/symlinkat (Depends-on): Likewise.
2659         * modules/dup2-tests (Depends-on): Likewise.
2660         * modules/fdutimensat-tests (Depends-on): Likewise.
2661         * modules/futimens-tests (Depends-on): Likewise.
2662
2663 2011-11-19  Bruno Haible  <bruno@clisp.org>
2664
2665         euidaccess: Update a comment.
2666         * lib/euidaccess.c: Update comment about platforms with faccessat.
2667
2668 2011-11-19  Bruno Haible  <bruno@clisp.org>
2669
2670         openat: Fix file list.
2671         * modules/openat (Files): Remove lib/at-func.c.
2672
2673 2011-11-19  Bruno Haible  <bruno@clisp.org>
2674
2675         fstatat: Simplify.
2676         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
2677         gnulib should define rpl_fstatat, there is a
2678         "#define fstatat rpl_fstatat" in <sys/stat.h>.
2679
2680 2011-11-19  Bruno Haible  <bruno@clisp.org>
2681
2682         Ensure 'inline' can be used in tests/test-utimens-common.h.
2683         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
2684         * modules/futimens-tests (configure.ac): Likewise.
2685         * modules/utimens-tests (configure.ac): Likewise.
2686         * modules/utimensat-tests (configure.ac): Likewise.
2687
2688 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2689
2690         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
2691         not hash_insert0.
2692         (hash_insert_if_absent): Doc fix.
2693
2694 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2695
2696         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
2697
2698 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2699
2700         test-getcwd: disambiguate exit status
2701         * tests/test-getcwd.c (test_long_name): Return 0..7.
2702         (main): Exit with an unambiguous exit status.  The old
2703         code yielded a mysterious mixture of two failure codes.
2704
2705         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
2706         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
2707         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
2708         rpl_fstatat or fstatat.  This should fix the other problem
2709         reported by Kai Habel in
2710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2711         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
2712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
2713         and I reproduced it on a Solaris 8 host we still have in production.
2714
2715 2011-11-18  Jim Meyering  <meyering@redhat.com>
2716
2717         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
2718         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
2719         Add a sentence to the comment.
2720         (hash_insert0): New function that simply calls hash_insert_if_absent.
2721         * lib/hash.h (hash_insert_if_absent): Declare it.
2722         (hash_insert0): Add deprecation attribute.
2723         (_GL_ATTRIBUTE_DEPRECATED): Define.
2724         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
2725         not hash_insert0.
2726         * NEWS: Mention it, even though it's not really an incompatible change.
2727
2728 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
2729
2730         openat: avoid compilation failure due to lack of <errno.h> inclusion
2731         * lib/openat.c: Include <errno.h>.
2732
2733 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2734
2735         * modules/getcwd (Depends-on): Add fdopendir.
2736         This fixes one of the two problems reported by Kai Habel in
2737         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2738
2739         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
2740         stdalign problem reported by Ian Beckwith in
2741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
2742         * modules/crypto/gc-arcfour (Depends-on):
2743         Depend conditionally on crypto/arcfour.
2744         * modules/crypto/gc-arctwo (Depends-on):
2745         Depend conditionally on crypto/arctwo.
2746         * modules/crypto/gc-des (Depends-on):
2747         Depend conditionally on crypto/des.
2748         * modules/crypto/gc-hmac-md5 (Depends-on):
2749         Depend conditionally on crypto/hmac-md5.
2750         * modules/crypto/gc-hmac-sha1 (Depends-on):
2751         Depend conditionally on crypto/hmac-sha1.
2752         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
2753         * modules/crypto/gc-md4 (Depends-on):
2754         Depend conditionally on crypto/md4.
2755         * modules/crypto/gc-md5 (Depends-on):
2756         Depend conditionally on crypto/md5.
2757         * modules/crypto/gc-rijndael (Depends-on):
2758         Depend conditionally on crypto/rijndael.
2759         * modules/crypto/gc-sha1 (Depends-on):
2760         Depend conditionally on crypto/sha1.
2761         * modules/crypto/gc-arcfour:
2762         * modules/crypto/gc-arctwo:
2763         * modules/crypto/gc-des:
2764         * modules/crypto/gc-hmac-md5:
2765         * modules/crypto/gc-hmac-sha1:
2766         * modules/crypto/gc-md2:
2767         * modules/crypto/gc-md4:
2768         * modules/crypto/gc-md5:
2769         * modules/crypto/gc-rijndael:
2770         * modules/crypto/gc-sha1:
2771         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
2772         now that the conditional dependencies do the work for us.
2773
2774 2011-11-17  Jim Meyering  <meyering@redhat.com>
2775
2776         tests: factor st_ctime-comparison out of two headers
2777         * tests/test-utimens-common.h (ctime_compare): Define.
2778         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
2779         * tests/test-lutimens.h (test_lutimens): Likewise.
2780         * tests/test-utimens.h (test_utimens): Likewise.
2781
2782         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
2783         Invoke the test program via an init.sh-using wrapper.
2784         * tests/test-getcwd.sh: New file.
2785         * modules/getcwd-tests (Files): Add it.
2786         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
2787
2788 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
2789
2790         gitlog-to-changelog: support multi-author commits.
2791         The FSF cares about keeping track of all authors of patches to its
2792         projects, but Git doesn't provide obvious support for multi-author
2793         changesets. Consensus seems to be forming around the use of extra
2794         Signed-off-by inspired lines in the log message formatted as
2795         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
2796         multi-author commits between version control systems.
2797         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
2798         log message and output in standard ChangeLog multi-author format.
2799         Reported by Peter Rosin <peda@lysator.liu.se>
2800
2801 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
2802             Bruno Haible  <bruno@clisp.org>
2803
2804         Fix some modules' file list.
2805         * modules/fstatat (Files): Add m4/lstat.m4.
2806         * modules/openat (Files): Likewise.
2807         * modules/unlinkat (Files): Likewise.
2808
2809 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
2810
2811         maint.mk: fix tight-scope.mk generation in VPATH builds.
2812         * top/maint.mk (tight-scope.mk): Make sure to prefix file
2813         reference with $(srcdir) so that the file is found correctly even
2814         when running `make syntax-check' in a VPATH build.
2815
2816 2011-11-13  Bruno Haible  <bruno@clisp.org>
2817             Jim Meyering  <meyering@redhat.com>
2818
2819         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
2820         * tests/init.sh (compare): Remove "No differences encountered" or
2821         synonymous output from the 'diff' program.
2822
2823 2011-11-13  Bruno Haible  <bruno@clisp.org>
2824
2825         Makefile: Tweak indentation.
2826         * Makefile: Use tab as first character in every line that contains rule
2827         commands.
2828
2829 2011-11-13  Bruno Haible  <bruno@clisp.org>
2830
2831         Syntax check for copyright statements.
2832         * check-copyright: New file.
2833         * Makefile (sc_check_copyright): New rule.
2834
2835 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2836
2837         * build-aux/git-version-gen: Add --prefix to configure the tag
2838         match string.
2839
2840 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2841
2842         * build-aux/git-version-gen: Add --help and --version.
2843
2844 2011-11-12  Jim Meyering  <meyering@redhat.com>
2845
2846         revamp the other test-exclude?.sh scripts to use init.sh, too
2847         * tests/test-exclude1.sh: Use init.sh.
2848         * tests/test-exclude2.sh: Likewise.
2849         * tests/test-exclude3.sh: Likewise.
2850         * tests/test-exclude4.sh: Likewise.
2851         * tests/test-exclude5.sh: Likewise.
2852         * tests/test-exclude6.sh: Likewise.
2853         * tests/test-exclude7.sh: Likewise.
2854         * tests/test-exclude8.sh: Likewise.
2855         * modules/exclude-tests (Files): List init.sh.
2856
2857         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
2858         These shell scripts ignored failure of the binary test-exclude,
2859         so making the latter return 77 didn't cause them to be skipped.
2860         * tests/test-exclude5.sh: Exit with test-exclude's error status
2861         when that program fails.  Revamp to use init.sh.
2862         * tests/test-exclude2.sh: Likewise.
2863
2864         test-exclude: fix a typo
2865         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
2866
2867 2011-11-11  Bruno Haible  <bruno@clisp.org>
2868
2869         obstack: Fix compilation error on MSVC 9.
2870         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
2871
2872 2011-11-11  Jim Meyering  <meyering@redhat.com>
2873
2874         test-exclude: skip tests rather than failing on deficient systems
2875         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
2876         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
2877         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
2878         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
2879
2880 2011-11-10  Bruno Haible  <bruno@clisp.org>
2881
2882         ptsname_r test: Avoid gcc warning on glibc systems.
2883         * tests/test-ptsname_r.c (null_ptr): New function.
2884         (test_errors): Use it.
2885
2886 2011-11-10  Bruno Haible  <bruno@clisp.org>
2887
2888         ptsname_r: Avoid compilation error on OSF/1 5.1.
2889         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
2890         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
2891         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
2892         function is not declared or incompatibly declared.
2893         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
2894         * modules/ptsname_r (Depends-on, configure.ac): Update.
2895         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
2896
2897 2011-11-10  Bruno Haible  <bruno@clisp.org>
2898
2899         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
2900         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
2901         When cross-compiling, guess yes on all platforms except AIX.
2902         Reported by Ludovic Courtès <ludo@gnu.org>.
2903
2904 2011-11-09  Bruno Haible  <bruno@clisp.org>
2905
2906         ptsname_r tests: Fix bugs.
2907         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
2908         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
2909
2910 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2911
2912         fstatat: work with cross-compilation
2913         Problem reported by Ludovic Courtès in
2914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
2915         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
2916         "cross-compiling" and assume the bug is present.  Replace
2917         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
2918         an inverted sense, to be more conservative about our assumptions.
2919         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
2920
2921 2011-11-09  Bruno Haible  <bruno@clisp.org>
2922
2923         Improve MODULES.html output.
2924         * modules/mkfifoat (Description): Use the word "function".
2925         * modules/readlinkat (Description): Likewise.
2926         * modules/symlinkat (Description): Likewise.
2927
2928 2011-11-09  Eric Blake  <eblake@redhat.com>
2929
2930         ptsname_r-tests: new test module
2931         * modules/ptsname_r-tests: New module.
2932         * tests/test-ptsname_r.c: New file.
2933
2934         ptsname_r: new module
2935         * modules/ptsname_r: New module.
2936         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
2937         * lib/ptsname.c (__ptsname_r): Split...
2938         * lib/ptsname_r.c: ...into new file.
2939         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2940         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
2941         * modules/stdlib (Makefile.am): Substitute witnesses.
2942         * lib/stdlib.in.h (ptsname_r): Declare it.
2943         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
2944         * MODULES.html.sh (Misc): Likewise.
2945         * modules/ptsname (Depends-on): Alter dependency.
2946         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
2947
2948 2011-11-09  Jim Meyering  <meyering@redhat.com>
2949
2950         announce-gen: be more concise when there's only one URL+tarball
2951         * build-aux/announce-gen (get_tool_versions): When you distribute
2952         only one type of tarball, combine the first two "Here are..."
2953         sections and make the key-checking grammar independent of
2954         how many tarballs there are.
2955
2956 2011-11-09  Eric Blake  <eblake@redhat.com>
2957
2958         openpty: provide a stub on mingw
2959         * lib/pty.in.h (includes): Provide forward declarations.
2960         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
2961
2962         raise: fix mingw handling of SIGPIPE
2963         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
2964
2965 2011-11-08  Bruno Haible  <bruno@clisp.org>
2966
2967         More conditional dependencies.
2968         * modules/faccessat (Depends-on): Add conditions.
2969         * modules/fchmodat (Depends-on): Likewise.
2970         * modules/fchownat (Depends-on): Likewise.
2971         * modules/fstatat (Depends-on): Likewise.
2972         * modules/mkfifoat (Depends-on): Likewise.
2973         * modules/readlinkat (Depends-on): Likewise.
2974         * modules/symlinkat (Depends-on): Likewise.
2975         * modules/unlinkat (Depends-on): Likewise.
2976         * modules/utimensat (Depends-on): Likewise.
2977         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
2978         * modules/linkat (Depends-on): Refine the conditions.
2979         * modules/renameat (Depends-on): Likewise.
2980
2981 2011-11-08  Bruno Haible  <bruno@clisp.org>
2982
2983         faccessat: Move AC_LIBOBJ invocation to module description.
2984         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
2985         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
2986         invocation from here...
2987         * modules/faccessat (configure.ac): ... to here. Invoke
2988         gl_PREREQ_FACCESSAT.
2989
2990 2011-11-08  Bruno Haible  <bruno@clisp.org>
2991
2992         faccessat: Simplify autoconf macro.
2993         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
2994         gl_FUNC_EUIDACCESS.
2995
2996 2011-11-08  Bruno Haible  <bruno@clisp.org>
2997
2998         renameat: Fix dependencies.
2999         * modules/renameat (Depends-on): Add stdbool.
3000
3001 2011-11-08  Bruno Haible  <bruno@clisp.org>
3002
3003         mkfifoat: Fix module description.
3004         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
3005         not gl_UNISTD_MODULE_INDICATOR.
3006
3007 2011-11-08  Bruno Haible  <bruno@clisp.org>
3008
3009         fstatat: Remove unused dependency.
3010         * modules/fstatat (Depends-on): Remove fstat.
3011
3012 2011-11-08  Simon Josefsson  <simon@josefsson.org>
3013
3014         GNUmakefile: behave when Makefile is missing.
3015         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
3016
3017 2011-11-08  Bruno Haible  <bruno@clisp.org>
3018
3019         openat: Conditionalize dependencies.
3020         * lib/openat.c: Reduce the scope of some #includes.
3021         * modules/openat (Depends-on): Add conditions.
3022
3023 2011-11-07  Jim Meyering  <meyering@redhat.com>
3024
3025         maint.mk: extract GPG key ID without using a temporary file
3026         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
3027         without using a temporary file.  Based on a suggestion from Werner Koch
3028         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
3029
3030 2011-11-07  Eric Blake  <eblake@redhat.com>
3031
3032         grantpt: fix typo
3033         * lib/stdlib.in.h (grantpt): Check correct function.
3034
3035         maint.mk: silence new syntax check
3036         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
3037
3038 2011-11-06  Bruno Haible  <bruno@clisp.org>
3039
3040         Doc about floating-point and math API.
3041         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
3042         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
3043
3044 2011-11-06  Bruno Haible  <bruno@clisp.org>
3045
3046         stdalign tests: Skip the test when compiled by Sun C.
3047         * tests/test-stdalign.c (main): Skip the test on Sun C.
3048
3049 2011-11-06  Bruno Haible  <bruno@clisp.org>
3050
3051         ansi-c++-opt: Complete the 2011-06-05 change.
3052         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
3053         does not support namespaces, set the variable to "no", not to ":".
3054
3055 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
3056
3057         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
3058
3059 2011-11-06  Bruno Haible  <bruno@clisp.org>
3060
3061         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
3062         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
3063         (minus_zerol) [HP-UX]: New macro.
3064         (unary_minus) [HP-UX]: New function.
3065         (copysignl) [HP-UX]: Use unary_minus function.
3066
3067 2011-11-06  Bruno Haible  <bruno@clisp.org>
3068
3069         ldexp, ldexpf, ldexpl: Enhance tests.
3070         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
3071         and tests/test-ldexpl.c.
3072         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
3073         LDEXP, MIN_EXP, MAX_EXP): New macros.
3074         Include test-ldexp.h.
3075         (main): Just call test_function.
3076         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
3077         infinity.h, nan.h.
3078         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3079         MAX_EXP): New macros.
3080         Include test-ldexp.h.
3081         (x, y): Remove variables.
3082         (main): Just call test_function.
3083         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
3084         infinity.h, nan.h.
3085         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3086         MAX_EXP): New macros.
3087         Include test-ldexp.h.
3088         (x, y): Remove variables.
3089         (main): Just call test_function.
3090         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
3091         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
3092         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3093         (Depends-on): Add isnand-nolibm, signbit, float.
3094         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
3095         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3096         (Depends-on): Add isnanf-nolibm, signbit, float.
3097
3098 2011-11-06  Bruno Haible  <bruno@clisp.org>
3099
3100         math tests: Cosmetics.
3101         * tests/test-math-c++.cc: Reorder declarations.
3102
3103 2011-11-05  Bruno Haible  <bruno@clisp.org>
3104
3105         fma*: Simplify test.
3106         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
3107         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
3108
3109         Tests for module 'fmal'.
3110         * modules/fmal-tests: New file.
3111         * tests/test-fmal1.c: New file.
3112         * tests/test-fmal2.c: New file.
3113
3114         New module 'fmal'.
3115         * lib/math.in.h (fmal): New declaration.
3116         * lib/fmal.c: New file.
3117         * m4/fmal.m4: New file.
3118         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
3119         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
3120         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
3121         REPLACE_FMAL.
3122         * modules/fmal: New file.
3123         * doc/posix-functions/fmal.texi: Mention the new module and the various
3124         bugs.
3125
3126         Tests for module 'fmaf'.
3127         * modules/fmaf-tests: New file.
3128         * tests/test-fmaf1.c: New file.
3129         * tests/test-fmaf2.c: New file.
3130
3131         New module 'fmaf'.
3132         * lib/math.in.h (fmaf): New declaration.
3133         * lib/fmaf.c: New file.
3134         * m4/fmaf.m4: New file.
3135         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
3136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
3137         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
3138         REPLACE_FMAF.
3139         * modules/fmaf: New file.
3140         * doc/posix-functions/fmaf.texi: Mention the new module and the various
3141         bugs.
3142
3143         Tests for module 'fma'.
3144         * modules/fma-tests: New file.
3145         * tests/test-fma1.c: New file.
3146         * tests/test-fma1.h: New file.
3147         * tests/test-fma2.c: New file.
3148         * tests/test-fma2.h: New file.
3149
3150         New module 'fma'.
3151         * lib/math.in.h (fma): New declaration.
3152         * lib/fma.c: New file.
3153         * m4/fma.m4: New file.
3154         * m4/fegetround.m4: New file.
3155         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
3156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
3157         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
3158         REPLACE_FMA.
3159         * modules/fma: New file.
3160         * doc/posix-functions/fma.texi: Mention the new module and the various
3161         bugs.
3162
3163         Extend gl_MATHFUNC.
3164         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
3165         Support 'void' as argument type.
3166         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
3167
3168 2011-11-05  Jim Meyering  <meyering@redhat.com>
3169
3170         maint.mk: also prohibit inclusion of dirent.h without use
3171         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
3172
3173 2011-11-05  Bruno Haible  <bruno@clisp.org>
3174
3175         ldexpl tests: Avoid test failure on MSVC 9.
3176         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
3177         value. Needed in order to enforce the conversion from a value greater
3178         than LDBL_MAX to Infinity.
3179
3180 2011-11-05  Bruno Haible  <bruno@clisp.org>
3181
3182         New modules 'at-internal', 'openat-h', split off from module 'openat'.
3183         * modules/at-internal: New file, extracted from modules/openat.
3184         * modules/openat-h: New file.
3185         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
3186         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
3187         * modules/openat (Description): Add reference to POSIX function.
3188         (Files): Remove lib/openat.h, lib/openat-proc.c.
3189         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
3190         intprops, unistd.
3191         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
3192         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
3193         gl_FCNTL_MODULE_INDICATOR.
3194         (Include): Remove unistd.h, openat.h.
3195         * modules/areadlinkat (Files): Add lib/at-func.c.
3196         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3197         openat-die, openat-h, save-cwd.
3198         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
3199         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3200         openat-die, openat-h, save-cwd, unistd.
3201         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
3202         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3203         openat-h, save-cwd. Remove fcntl-h, openat.
3204         * modules/fchmodat (Files): Remove lib/openat.h.
3205         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3206         openat, stdbool, unistd.
3207         * modules/fchownat (Files): Remove lib/openat.h.
3208         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3209         openat, stdbool, sys_stat.
3210         * modules/fdopendir (Files): Remove lib/openat-priv.h,
3211         lib/openat-proc.c.
3212         (Depends-on): Add at-internal.
3213         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
3214         * modules/fstatat (Files): Remove lib/openat.h.
3215         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3216         stdbool, unistd.
3217         * modules/fts (Depends-on): Add openat-h.
3218         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
3219         openat.
3220         * modules/mkdirat (Files): Remove lib/openat.h.
3221         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3222         openat, stdbool, sys_stat.
3223         * modules/mkfifoat (Files): Add lib/at-func.c.
3224         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3225         openat-h, save-cwd. Remove fcntl-h, openat.
3226         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
3227         * modules/readlinkat (Files): Add lib/at-func.c.
3228         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3229         openat-h, save-cwd. Remove fcntl-h, openat.
3230         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
3231         openat.
3232         * modules/selinux-at (Files): Add lib/at-func.c.
3233         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3234         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
3235         * modules/symlinkat (Files): Add lib/at-func.c.
3236         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3237         openat-h, save-cwd. Remove fcntl-h, openat.
3238         * modules/unlinkat (Files): Remove lib/openat.h.
3239         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3240         stdbool.
3241         * modules/utimensat (Files): Add lib/at-func.c.
3242         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
3243         openat-die, openat-h, save-cwd.
3244         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
3245         * modules/fdutimensat-tests (Depends-on): Add openat.
3246         * modules/fstatat-tests (Depends-on): Add openat-h.
3247         * modules/readlinkat-tests (Depends-on): Add openat.
3248         * modules/symlinkat-tests (Depends-on): Add openat.
3249
3250 2011-11-05  Bruno Haible  <bruno@clisp.org>
3251
3252         openat: Include <stdbool.h>.
3253         * lib/openat.c: Include <stdbool.h>.
3254
3255 2011-11-04  Bruno Haible  <bruno@clisp.org>
3256
3257         fchownat, renameat, unlinkat: Fix dependencies.
3258         * modules/fchownat (Depends-on): Add fstatat.
3259         * modules/renameat (Depends-on): Likewise.
3260         * modules/unlinkat (Depends-on): Likewise.
3261
3262 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
3263
3264         openat: remove direct dependency on dirent
3265         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
3266         and hasn't been needed ever since fdopendir was split into its own
3267         module on 2009-08-31.
3268         * modules/openat (Depends-on): Remove dirent.
3269
3270 2011-11-04  Bruno Haible  <bruno@clisp.org>
3271
3272         renameat: Optimize code size.
3273         * modules/renameat (configure.ac): Don't compile at-func2.c if
3274         REPLACE_RENAMEAT is 1.
3275
3276 2011-11-04  Bruno Haible  <bruno@clisp.org>
3277
3278         openat tests: Fix file list.
3279         * modules/openat-tests (Files): Add tests/test-open.h.
3280
3281 2011-11-04  Bruno Haible  <bruno@clisp.org>
3282
3283         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
3284         * modules/fchmodat (Depends-on): Add openat-die.
3285         * modules/fchownat (Depends-on): Likewise.
3286         * modules/linkat (Depends-on): Likewise.
3287         * modules/renameat (Depends-on): Likewise.
3288         * modules/openat (Depends-on): Add dirent.
3289
3290 2011-11-04  Jim Meyering  <meyering@redhat.com>
3291
3292         at-func*.c: fix comments
3293         * lib/at-func2.c: Correct/improve first-line comment.
3294         * lib/at-func.c: Correct grammar in first-line comment.
3295
3296 2011-11-04  Bruno Haible  <bruno@clisp.org>
3297
3298         New module 'mkdirat', split off from module 'openat'.
3299         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
3300         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
3301         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
3302         * modules/mkdirat: New file, extracted from modules/openat.
3303         * modules/openat (Files): Remove lib/mkdirat.c.
3304         (Depends-on): Remove mkdir.
3305         (configure.ac): Remove AC_LIBOBJ of mkdirat.
3306         (Include): Remove <sys/stat.h>.
3307         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
3308         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
3309         tests/test-mkdir.h.
3310         (Depends-on): Remove ignore-value.
3311         (Makefile.am): Remove rules for test-mkdirat.
3312         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
3313         of module 'openat'.
3314         * NEWS: Mention the change.
3315
3316 2011-11-04  Bruno Haible  <bruno@clisp.org>
3317
3318         closedir: Avoid warning on mingw.
3319         * lib/closedir.c: Include <unistd.h>.
3320
3321 2011-11-04  Bruno Haible  <bruno@clisp.org>
3322
3323         New module 'fstatat', split off from module 'openat'.
3324         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
3325         defined.
3326         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
3327         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
3328         gl_FUNC_FSTATAT.
3329         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
3330         * modules/fstatat: New file, extracted from modules/openat.
3331         * modules/openat (Files): Remove lib/fstatat.c.
3332         (Depends-on): Remove lstat.
3333         (configure.ac): Remove AC_LIBOBJ of fstatat.
3334         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
3335         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
3336         tests/test-lstat.h, tests/test-stat.h.
3337         (Depends-on): Remove getcwd-lgpl.
3338         (Makefile.am): Remove rules for test-fstatat.
3339         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
3340         of module 'openat'.
3341         * NEWS: Mention the change.
3342         * modules/getcwd (Depends-on): Add fstatat.
3343         * modules/linkat (Depends-on): Likewise.
3344         * modules/mkfifoat-tests (Depends-on): Likewise.
3345         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
3346
3347 2011-11-03  Bruno Haible  <bruno@clisp.org>
3348
3349         New module 'unlinkat', split off from module 'openat'.
3350         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
3351         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
3352         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
3353         * modules/unlinkat: New file, extracted from modules/openat. Correct
3354         the dependency conditions.
3355         * modules/openat (Files): Remove lib/unlinkat.c.
3356         (Depends-on): Remove rmdir, unlink.
3357         (configure.ac): Remove AC_LIBOBJ of unlinkat.
3358         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
3359         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
3360         tests/test-rmdir.h, tests/test-unlink.h.
3361         (Depends-on): Remove unlinkdir.
3362         (Makefile.am): Remove rules for test-unlinkat.
3363         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
3364         of module 'openat'.
3365         * NEWS: Mention the change.
3366         * modules/linkat-tests (Depends-on): Add unlinkat.
3367         * modules/mkfifoat-tests (Depends-on): Likewise.
3368         * modules/readlinkat-tests (Depends-on): Likewise.
3369
3370 2011-11-02  Bruno Haible  <bruno@clisp.org>
3371
3372         New module 'fchmodat', split off from module 'openat'.
3373         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
3374         defined.
3375         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
3376         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
3377         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
3378         * modules/fchmodat: New file, extracted from modules/openat.
3379         * modules/openat (Files): Remove lib/fchmodat.c.
3380         (configure.ac): Remove AC_LIBOBJ of fchmodat.
3381         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
3382         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
3383         (Makefile.am): Remove rules for test-fchmodat.
3384         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
3385         of module 'openat'.
3386         * NEWS: Mention the change.
3387
3388 2011-11-02  Jim Meyering  <meyering@redhat.com>
3389
3390         putenv: indent #definition of "environ" to placate cppi
3391         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
3392
3393         gitlog-to-changelog: provide a ChangeLog-repair mechanism
3394         Git logs are often treated as immutable, because editing them
3395         changes the SHA1 checksums of all descendants.  Thus, errors in
3396         git logs tend to stay there forever.  However, when we generate
3397         a ChangeLog file -- typically for distribution -- from that git log,
3398         we can actually make corrections in the generated file.  The key
3399         lies in recording in machine-readable/applicable form the desired
3400         corrections.  See --help for description and an example.
3401         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
3402         (usage): Describe it; alphabetize option descriptions.
3403         (main): Honor the new option, carefully.
3404
3405 2011-11-01  Jim Meyering  <meyering@redhat.com>
3406
3407         gitlog-to-changelog: avoid an infloop
3408         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
3409         that ends up being empty.
3410
3411 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3412
3413         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
3414         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
3415         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
3416         contains (possibly-quoted) backslashes.  This should avoid
3417         all-too-common shell bugs if COMPLICATED contains backslashes in
3418         the "wrong" places.  Reported by David Evans in
3419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
3420         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
3421         because we want ASCII ranges.  Is there some reason we don't use
3422         the C locale everywhere in this script?
3423         (func_module, top level): Avoid unwanted pathname expansion when
3424         $repo_url_prefix or $repo_url_suffix_repl contain shell
3425         metacharacters like '?' and '*'.
3426
3427 2011-11-01  Bruno Haible  <bruno@clisp.org>
3428
3429         fchownat: Improve description.
3430         * modules/fchownat (Description): Add link to function.
3431
3432 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3433
3434         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
3435         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
3436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
3437         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
3438
3439 2011-11-01  Bruno Haible  <bruno@clisp.org>
3440
3441         alignof: Avoid collision with stdalign module.
3442         * lib/alignof.h (alignof): Remove macro.
3443         * NEWS: Mention the change.
3444         Reported by Paul Eggert.
3445
3446 2011-11-01  Bruno Haible  <bruno@clisp.org>
3447
3448         New module 'fchownat', split off from module 'openat'.
3449         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
3450         defined.
3451         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
3452         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
3453         invoke gl_FUNC_FCHOWNAT.
3454         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
3455         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
3456         * modules/fchownat: New file, extracted from modules/openat.
3457         * modules/openat (Files): Remove lib/fchownat.c.
3458         (Depends-on): Remove lchown.
3459         (configure.ac): Remove AC_LIBOBJ of fchownat.
3460         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
3461         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
3462         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
3463         (Depends-on): Remove mgetgroups, usleep, stat-time.
3464         (configure.ac): Remove test for getegid.
3465         (Makefile.am): Remove rules for test-fchownat.
3466         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
3467         of module 'openat'.
3468         * NEWS: Mention the change.
3469
3470 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
3471
3472         stdalign: port better to MSVC and to Sun C 5.11
3473         This fixes some of the problems reported by Bruno Haible in
3474         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
3475         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
3476         shortcomings of MSVC and of Sun C 5.11.
3477         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
3478         around __declspec arg.
3479         * modules/stdalign-tests (Files): Add tests/macros.h.
3480         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
3481         Include macros.h, for ASSERT.
3482         (DECLARE_ALIGNED): Remove.
3483         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
3484         to catch bug), and to 1 if not (simplifies the rest of the code).
3485         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
3486         (CHECK_AUTO): Remove.
3487         (CHECK_ALIGNED): Check only the alignment of the static vars,
3488         since auto var alignment isn't supported by Sun C 5.11.
3489         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
3490         ASSERT failures are easier to diagnose.
3491
3492 2011-10-31  Bruno Haible  <bruno@clisp.org>
3493
3494         doc about some IRIX 5.3 problems.
3495         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
3496         on IRIX 5.3.
3497         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
3498         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
3499         5.3.
3500         * doc/posix-functions/grantpt.texi: Likewise.
3501         * doc/posix-functions/unlockpt.texi: Likewise.
3502         * doc/posix-functions/lgamma.texi: Likewise.
3503         * doc/posix-functions/nextafter.texi: Likewise.
3504         * doc/posix-functions/remainder.texi: Likewise.
3505         * doc/posix-functions/select.texi: Mention misplaced declaration on
3506         IRIX 5.3.
3507         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3508
3509 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
3510
3511         gitlog-to-changelog: fix git-log invocation.
3512         git-log mishandles date strings before 1970-01-01 UTC, and there is
3513         no use to specify --since=1970-01-01 by default anyway.
3514         * build-aux/gitlog-to-changelog: By default, when no --since option
3515         was given, do not specify explicit --since option to git-log.
3516
3517 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
3518
3519         gitlog-to-changelog: new option --append-dot.
3520         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
3521         first non-blank line of each commit message terminated with a dot.
3522
3523 2011-10-30  Bruno Haible  <bruno@clisp.org>
3524
3525         ffsl, ffsll: Avoid compilation error due to 'restrict'.
3526         * lib/ffsl.h: Include <config.h>.
3527         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
3528
3529 2011-10-30  Jim Meyering  <meyering@redhat.com>
3530
3531         GNUmakefile: reenable "make syntax-check" for most projects
3532         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
3533         build-aux variable", "syntax-check" would do nothing but succeed with
3534         the "No version control files detected..." diagnostic (unless you
3535         happened to override _build-aux via cfg.mk).
3536         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
3537         to precede inclusion of maint.mk.  Otherwise, these variables would
3538         be used undefined in any project that does not override the default.
3539
3540 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
3541
3542         gitlog-to-changelog: treat a message with only blank lines as empty.
3543         * build-aux/gitlog-to-changelog: Move the code that removes leading and
3544         trailing blank lines before the code that issues a warning about an
3545         empty commit message.
3546
3547 2011-10-30  Jim Meyering  <meyering@redhat.com>
3548
3549         test-parse-datetime.c: avoid new DST-related false positive test failure
3550         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
3551         based on the time/date we'll convert, not the current time.
3552         Otherwise, the moment we cross a DST boundary like today's in
3553         Europe, (CEST to CET), that offset ends up being one hour off.
3554
3555 2011-10-27  Bruno Haible  <bruno@clisp.org>
3556
3557         fstat: Tweak documentation.
3558         * modules/fstat (Description): More precise description.
3559
3560 2011-10-27  Bruno Haible  <bruno@clisp.org>
3561
3562         Update documentation regarding 'largefile' module.
3563         * doc/posix-functions/fstat.texi: Tweak wording.
3564         * doc/posix-functions/opendir.texi: Mention that the module fixes the
3565         problems with huge directories and/or small ino_t types.
3566         * doc/posix-functions/readdir.texi: Likewise.
3567         * doc/posix-functions/rewinddir.texi: Likewise.
3568
3569 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
3570
3571         maint.mk: don't maintain a second build-aux variable.
3572         * maint.mk (build_aux): Removed.  The maintainer-makefile module
3573         depends on GNUmakefile, which already maintains a cfg.mk
3574         overridable $(_build-aux) for projects with a non-standard
3575         build-aux directory location, although without the $(srcdir)
3576         prefix.  Use that variable consistently instead of introducing a
3577         second one.  Adjust all call sites.
3578
3579 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
3580
3581         Add stdalign module and use it in other modules.
3582         This is based on a previous proposal by Bruno Haible
3583         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
3584
3585         stdalign: new module
3586         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
3587         * modules/stdalign: New files.
3588         * MODULES.html.sh (c1x_core_properties): Add stdalign.
3589         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
3590
3591         stdalign-tests: new module
3592         * modules/stdalign-tests, tests/test-stdalign.c: New files.
3593
3594         argp: use stdalign
3595         * lib/argp-parse.c: Include <stdalign.h>.
3596         (alignof): Remove.
3597         * modules/argp (Depends-on): Add stdalign.
3598
3599         crypto libraries: use stdalign
3600         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3601         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
3602         Do not include <stdlib.h> twice, in md4.c.
3603         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
3604         because we are accessing a pointer's bit-pattern, not a size.
3605         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
3606         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
3607         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3608         * modules/crypto/sha512: Likewise.
3609
3610         sys_socket: use stdalign, not alignof
3611         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
3612         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
3613
3614 2011-10-27  Bruno Haible  <bruno@clisp.org>
3615
3616         raise test: Avoid a test failure on Linux/MIPS.
3617         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
3618         because 99 is a valid signal on Linux/MIPS.
3619
3620 2011-10-27  Bruno Haible  <bruno@clisp.org>
3621
3622         nonblocking tests: Fix test failure on Linux/MIPS.
3623         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
3624         Set to 270000.
3625
3626 2011-10-27  Bruno Haible  <bruno@clisp.org>
3627
3628         utimensat: Work around problem on Linux/hppa.
3629         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
3630         values.
3631         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
3632
3633 2011-10-25  Jim Meyering  <meyering@redhat.com>
3634
3635         maint.mk: fix a bug in sc_prohibit_stddef_without_use
3636         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
3637         after symbols like NULL, size_t, etc.
3638         Reported by Alfred M. Szmidt.
3639
3640         maint.mk: exempt ENODATA from a syntax-check rule
3641         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
3642         from the sc_prohibit_always-defined_macros syntax-check rule.
3643         Add a comment.  See this for more details:
3644         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
3645
3646 2011-10-23  Jim Meyering  <meyering@redhat.com>
3647
3648         fts: close parent dir FD before returning from post-traversal fts_read
3649         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
3650         unlink A, even though an FD open on A remained.  This is suboptimal
3651         (holding a file descriptor open longer than needed), but otherwise not
3652         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
3653         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
3654         that represents a real problem: it causes the removal of A to fail
3655         with e.g., "rm: cannot remove `A': Device or resource busy"
3656
3657         fts visits each directory twice and keeps a cache (fts_fd_ring) of
3658         directory file descriptors.  After completing the final, FTS_DP,
3659         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
3660         cache, but then proceeded to add a new FD to it via the subsequent
3661         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
3662         final file descriptor would be closed only via fts_close's call to
3663         fd_ring_clear.  Now, it is usually closed earlier, via the final
3664         FTS_DP-returning fts_read call.
3665         * lib/fts.c (restore_initial_cwd): New function, converted from
3666         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
3667         Update callers.
3668         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
3669         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
3670
3671 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
3672             Bruno Haible  <bruno@clisp.org>
3673             Jim Meyering  <jim@meyering.net>
3674
3675         readme-release: improve safety of release prep instructions.
3676         * README-release: Don't git pull all branches when only master
3677         is needed for the release process.
3678         Run make maintainer-clean before changing trees and merging.
3679         Don't try to run ./configure right after git pull in case files
3680         that influence the bootstrap process have changed, move the
3681         ./configure step to after running ./bootstrap.
3682         Don't bootstrap "one last time"... it's the first time!
3683
3684 2011-10-22  Bruno Haible  <bruno@clisp.org>
3685
3686         errno, strerror-override: Support for MSVC 10.
3687         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
3688         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
3689         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
3690         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
3691         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
3692         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
3693         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
3694         Assign values compatible with MSVC 10.
3695         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
3696         New macros.
3697         (GNULIB_defined_EWINSOCK): New macro.
3698         * lib/strerror-override.c (strerror_override): Update accordingly.
3699         * lib/strerror-override.h: Likewise.
3700         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
3701         longer equal to the corresponding errno value.
3702         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3703
3704 2011-10-22  Bruno Haible  <bruno@clisp.org>
3705
3706         perror: Recognize when test program crashes.
3707         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
3708         strerror, set gl_cv_func_perror_works to no.
3709         Reported by Daniel Richard G. <skunk@iskunk.org>.
3710
3711         perror: Fix indentation.
3712         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
3713
3714 2011-10-22  Bruno Haible  <bruno@clisp.org>
3715
3716         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
3717         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
3718         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
3719         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
3720         functions, not as a macro.
3721         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
3722         macros.
3723         (isfinite, isinf, isnan, signbit): Check overloaded functions and
3724         absence of macro.
3725         Suggested by Eric Blake.
3726         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3727
3728 2011-10-21  Bruno Haible  <bruno@clisp.org>
3729
3730         relocatable-prog-wrapper: Don't leave object files behind.
3731         * build-aux/install-reloc: Re-synchronize list of .o files to be
3732         removed with list of compilation units.
3733
3734 2011-10-20  Bruno Haible  <bruno@clisp.org>
3735
3736         openpty, posix_openpt: Remove code duplication.
3737         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
3738         * lib/openpty.c: Include <stdlib.h>.
3739         (openpty): Use posix_openpt on all platforms except IRIX.
3740         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
3741
3742 2011-10-20  Bruno Haible  <bruno@clisp.org>
3743
3744         unlockpt: Detect invalid argument.
3745         * lib/unlockpt.c: Include <fcntl.h>.
3746         (unlockpt): Check whether fd is valid, using fcntl().
3747         * modules/unlockpt (Depends-on): Add fcntl-h.
3748
3749 2011-10-20  Bruno Haible  <bruno@clisp.org>
3750
3751         openpty: Avoid compilation error on AIX 6.1.
3752         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
3753
3754 2011-10-20  Bruno Haible  <bruno@clisp.org>
3755
3756         posix_openpt: Support for OpenBSD.
3757         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
3758         (posix_openpt) [OpenBSD]: New code.
3759         * lib/grantpt.c: Include <fcntl.h>.
3760         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
3761         * modules/grantpt (Depends-on): Add fcntl-h.
3762
3763 2011-10-20  Bruno Haible  <bruno@clisp.org>
3764
3765         posix_openpt test: Coding style.
3766         * tests/test-posix_openpt.c: Use GNU coding style.
3767
3768 2011-10-20  Bruno Haible  <bruno@clisp.org>
3769
3770         grantpt: Support --avoid=pt_chown.
3771         * modules/grantpt (Files): Add lib/pty-private.h.
3772
3773 2011-10-20  Bruno Haible  <bruno@clisp.org>
3774
3775         posix_openpt: Fix autoconf macro.
3776         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
3777         unneeded check for _getpty.
3778
3779 2011-10-20  Bruno Haible  <bruno@clisp.org>
3780
3781         openpty: Update comments.
3782         * lib/openpty.c: Add comments about Minix.
3783
3784 2011-10-19  Eric Blake  <eblake@redhat.com>
3785
3786         openpty: relax license
3787         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
3788
3789         pt_chown: use configmake to simplify build
3790         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
3791
3792         ptsname and others: relax license
3793         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
3794         * modules/unlockpt (License): Likewise.
3795         * modules/pt_chown (License): Likewise.
3796         * modules/ptsname (License): Likewise.
3797         * modules/ttyname_r (License): Likewise.
3798
3799 2011-10-19  Jim Meyering  <meyering@redhat.com>
3800
3801         posix_openpt: remove spurious #endif
3802         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
3803
3804 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
3805
3806         maint.mk: Respect $(build_aux) in web-manual rule.
3807         * top/maint.mk (web-manual): Find gen-announce script in user's
3808         $(build_aux) directory instead of hard-coding 'build-aux'.
3809
3810 2011-10-19  Bruno Haible  <bruno@clisp.org>
3811
3812         posix_openpt: Fix compilation error.
3813         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
3814         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
3815         Mention the openpty module as an alternative.
3816
3817 2011-10-19  Bruno Haible  <bruno@clisp.org>
3818
3819         Support for old NeXTstep 3.3 frexp().
3820         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
3821         execution time of the test to 5 seconds.
3822         Reported by Daniel Richard G. <skunk@iskunk.org>.
3823
3824 2011-10-19  Bruno Haible  <bruno@clisp.org>
3825
3826         Support for old NeXTstep 3.3 sed.
3827         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
3828         part, use /.../, not \|...|. Escape periods in the header file name.
3829         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3830         Reported by Daniel Richard G. <skunk@iskunk.org>.
3831
3832 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3833
3834         Support for old NeXTstep 3.3 gcc.
3835         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
3836         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
3837         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
3838         * lib/spawn.in.h (_Restrict_arr_): Likewise.
3839         * lib/regex.h (_Restrict_arr_): Likewise.
3840         * lib/regex_internal.h (re_token_t): Likewise.
3841         * lib/regexec.c (check_node_accept_bytes): Likewise.
3842         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
3843
3844 2011-10-18  Eric Blake  <eblake@redhat.com>
3845
3846         posix_openpt: new module
3847         * modules/posix_openpt: New module.
3848         * m4/posix_openpt.m4: New file.
3849         * lib/posix_openpt.c: Likewise.
3850         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3851         (gl_STDLIB_H_DEFAULTS): Set defaults.
3852         * modules/stdlib (Makefile.am): Substitute macros.
3853         * lib/stdlib.in.h (posix_openpt): Declare.
3854         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
3855         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
3856         * modules/posix_openpt-tests: New test module.
3857         * tests/test-posix_openpt.c: New test.
3858
3859 2011-10-15  Bruno Haible  <bruno@clisp.org>
3860
3861         xstrtoll: Fix compilation failure.
3862         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
3863         from lib/strtol.c.
3864         * doc/posix-headers/limits.texi: Mention missing numerical limits on
3865         some platforms.
3866         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3867
3868 2011-10-15  Bruno Haible  <bruno@clisp.org>
3869
3870         vasnprintf: Optimize bit search operation.
3871         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
3872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
3873         gl_DOUBLE_EXPONENT_LOCATION.
3874         * modules/vasnprintf (Files): Add m4/exponentd.m4.
3875         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3876         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3877         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3878         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3879         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3880         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3881         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3882         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
3883
3884 2011-10-15  Bruno Haible  <bruno@clisp.org>
3885
3886         vasnprintf: Fix comments.
3887         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
3888
3889 2011-10-14  Bruno Haible  <bruno@clisp.org>
3890
3891         Tests for module 'integer_length_ll'.
3892         * modules/integer_length_ll-tests: New file.
3893         * tests/test-integer_length_ll.c: New file.
3894
3895         New module 'integer_length_ll'.
3896         * lib/integer_length_ll.c: New file.
3897         * modules/integer_length_ll: New file.
3898
3899 2011-10-14  Bruno Haible  <bruno@clisp.org>
3900
3901         Tests for module 'integer_length_l'.
3902         * modules/integer_length_l-tests: New file.
3903         * tests/test-integer_length_l.c: New file.
3904
3905         New module 'integer_length_l'.
3906         * lib/integer_length_l.c: New file.
3907         * modules/integer_length_l: New file.
3908
3909 2011-10-14  Bruno Haible  <bruno@clisp.org>
3910
3911         Tests for module 'integer_length'.
3912         * modules/integer_length-tests: New file.
3913         * tests/test-integer_length.c: New file.
3914
3915         New module 'integer_length'.
3916         * lib/integer_length.h: New file.
3917         * lib/integer_length.c: New file.
3918         * modules/integer_length: New file.
3919
3920 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3921
3922         popen: Fix dependency conditions.
3923         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
3924
3925 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3926
3927         perror: Fix autoconf test.
3928         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
3929         <stdlib.h> and <string.h>.
3930
3931 2011-10-14  Bruno Haible  <bruno@clisp.org>
3932
3933         ffsl: Optimize on 64-bit platforms.
3934         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
3935         unrolling.
3936
3937 2011-10-13  Bruno Haible  <bruno@clisp.org>
3938
3939         ffsl: Optimize on 32-bit platforms.
3940         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
3941         use ffs() without a loop.
3942
3943         ffsl, ffsll: Optimize for GCC.
3944         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
3945         * lib/ffsl.c (GCC_BUILTIN): New macro.
3946         * lib/ffsll.c (GCC_BUILTIN): Likewise.
3947
3948 2011-10-13  Bruno Haible  <bruno@clisp.org>
3949
3950         ffs, bcopy, memset: Support symbol renaming via config.h.
3951         * lib/ffs.c: Include <config.h>.
3952         * lib/bcopy.c: Likewise.
3953         * lib/memset.c: Likewise.
3954
3955 2011-10-10  Bruno Haible  <bruno@clisp.org>
3956
3957         atanl: Simplify for platforms where 'long double' == 'double'.
3958         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3959         alternative implementation.
3960         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3961         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3962         * modules/atanl (Depends-on): Add atan. Update conditions.
3963
3964 2011-10-10  Bruno Haible  <bruno@clisp.org>
3965
3966         acosl: Simplify for platforms where 'long double' == 'double'.
3967         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3968         alternative implementation.
3969         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3970         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3971         * modules/acosl (Depends-on): Add acos. Update conditions.
3972
3973 2011-10-10  Bruno Haible  <bruno@clisp.org>
3974
3975         asinl: Simplify for platforms where 'long double' == 'double'.
3976         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3977         alternative implementation.
3978         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3979         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3980         * modules/asinl (Depends-on): Add asin. Update conditions.
3981
3982 2011-10-10  Bruno Haible  <bruno@clisp.org>
3983
3984         tanl: Simplify for platforms where 'long double' == 'double'.
3985         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3986         implementation.
3987         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3988         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3989         * modules/tanl (Depends-on): Add tan. Update conditions.
3990         (configure.ac): Don't compile trigl.c if
3991         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3992
3993 2011-10-10  Bruno Haible  <bruno@clisp.org>
3994
3995         cosl: Simplify for platforms where 'long double' == 'double'.
3996         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3997         implementation.
3998         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3999         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4000         * modules/cosl (Depends-on): Add cos. Update conditions.
4001         (configure.ac): Don't compile sincosl.c and trigl.c if
4002         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4003
4004 2011-10-10  Bruno Haible  <bruno@clisp.org>
4005
4006         sinl: Simplify for platforms where 'long double' == 'double'.
4007         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4008         implementation.
4009         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4010         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4011         * modules/sinl (Depends-on): Add sin. Update conditions.
4012         (configure.ac): Don't compile sincosl.c and trigl.c if
4013         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4014
4015 2011-10-10  Bruno Haible  <bruno@clisp.org>
4016
4017         logl: Simplify for platforms where 'long double' == 'double'.
4018         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4019         implementation.
4020         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4021         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4022         * modules/logl (Depends-on): Add log. Update conditions.
4023
4024 2011-10-10  Bruno Haible  <bruno@clisp.org>
4025
4026         expl: Simplify for platforms where 'long double' == 'double'.
4027         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4028         implementation.
4029         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4030         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4031         * modules/expl (Depends-on): Add exp. Update conditions.
4032
4033 2011-10-10  Bruno Haible  <bruno@clisp.org>
4034
4035         sqrtl: Simplify for platforms where 'long double' == 'double'.
4036         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4037         alternative implementation.
4038         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4039         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4040         * modules/sqrtl (Depends-on): Update conditions.
4041
4042 2011-10-10  Bruno Haible  <bruno@clisp.org>
4043
4044         ldexpl: Simplify for platforms where 'long double' == 'double'.
4045         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4046         alternative implementation.
4047         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4048         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4049         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
4050
4051 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
4052
4053         ffsll: set correct witness
4054         * modules/ffsll (configure.ac): Fix typo.
4055
4056 2011-10-10  Bruno Haible  <bruno@clisp.org>
4057
4058         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
4059         * lib/printf-frexpl.c: Include <config.h>.
4060         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4061         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
4062         second time.
4063         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
4064         gl_LONG_DOUBLE_VS_DOUBLE.
4065         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
4066         conditions.
4067
4068 2011-10-10  Bruno Haible  <bruno@clisp.org>
4069
4070         frexpl: Simplify for platforms where 'long double' == 'double'.
4071         * lib/frexpl.c: Include <config.h>.
4072         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4073         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4074         time.
4075         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4076         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4077         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
4078         * modules/frexpl (Depends-on): Add frexp. Update conditions.
4079         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
4080         conditions.
4081
4082 2011-10-10  Jim Meyering  <meyering@redhat.com>
4083
4084         test-renameat: don't leave behind a temporary file
4085         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
4086           ERROR: files left in build directory after distclean:
4087           ./gltests/test-renameat.too
4088           make[1]: *** [distcleancheck] Error 1
4089         Reported by Tom G. Christensen.
4090
4091 2011-10-09  Bruno Haible  <bruno@clisp.org>
4092
4093         rint: Determine RINT_LIBM correctly on AIX 7.
4094         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
4095         directly, not only through a function pointer. Also accept an optional
4096         4th argument with extra code.
4097         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
4098         rintf() call by gcc when optimizing.
4099
4100         mathfunc.m4: Refactor.
4101         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
4102         m4 variable.
4103
4104 2011-10-09  Bruno Haible  <bruno@clisp.org>
4105
4106         rintl: Simplify for platforms where 'long double' == 'double'.
4107         * lib/rintl.c: Include <config.h>.
4108         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4109         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4110         time.
4111         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4112         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4113         * modules/rintl (Depends-on): Add rint. Update conditions.
4114
4115 2011-10-09  Bruno Haible  <bruno@clisp.org>
4116
4117         roundl: Simplify for platforms where 'long double' == 'double'.
4118         * lib/roundl.c: Include <config.h>.
4119         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4120         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4121         time.
4122         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4123         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4124         * modules/roundl (Depends-on): Add round. Update conditions.
4125
4126 2011-10-09  Bruno Haible  <bruno@clisp.org>
4127
4128         truncl: Simplify for platforms where 'long double' == 'double'.
4129         * lib/truncl.c: Include <config.h>.
4130         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4131         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4132         time.
4133         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4134         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4135         * modules/truncl (Depends-on): Add trunc. Update conditions.
4136
4137 2011-10-09  Bruno Haible  <bruno@clisp.org>
4138
4139         ceill: Simplify for platforms where 'long double' == 'double'.
4140         * lib/ceill.c: Include <config.h>.
4141         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4142         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4143         time.
4144         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4145         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4146         * modules/ceill (Depends-on): Add ceil. Update conditions.
4147
4148 2011-10-09  Bruno Haible  <bruno@clisp.org>
4149
4150         floorl: Simplify for platforms where 'long double' == 'double'.
4151         * lib/floorl.c: Include <config.h>.
4152         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4153         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4154         time.
4155         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4156         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4157         * modules/floorl (Depends-on): Add floor. Update conditions.
4158
4159 2011-10-09  Bruno Haible  <bruno@clisp.org>
4160
4161         rint: Fix ordering constraints.
4162         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
4163         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4164         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4165
4166 2011-10-09  Bruno Haible  <bruno@clisp.org>
4167
4168         copysignl: Simplify for platforms where 'long double' == 'double'.
4169         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4170         alternative.
4171         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4172         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4173         * modules/copysignl (Depends-on): Add copysign. Update conditions.
4174
4175 2011-10-09  Bruno Haible  <bruno@clisp.org>
4176
4177         Tests for module 'rintl'.
4178         * modules/rintl-tests: New file.
4179         * tests/test-rintl.c: New file.
4180
4181         New module 'rintl'.
4182         * lib/math.in.h (rintl): New declaration.
4183         * lib/rintl.c: New file.
4184         * m4/rintl.m4: New file.
4185         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
4186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
4187         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
4188         * modules/rintl: New file.
4189         * tests/test-math-c++.cc: Check the declaration of rintl.
4190         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4191         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
4192         * doc/posix-functions/rintl.texi: Mention the new module.
4193
4194 2011-10-09  Bruno Haible  <bruno@clisp.org>
4195
4196         Tests for module 'rintf'.
4197         * modules/rintf-tests: New file.
4198         * tests/test-rintf.c: New file.
4199
4200         New module 'rintf'.
4201         * lib/math.in.h (rintf): New declaration.
4202         * lib/rintf.c: New file.
4203         * m4/rintf.m4: New file.
4204         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
4205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
4206         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
4207         * modules/rintf: New file.
4208         * tests/test-math-c++.cc: Check the declaration of rintf.
4209         * doc/posix-functions/rintf.texi: Mention the new module.
4210
4211 2011-10-09  Bruno Haible  <bruno@clisp.org>
4212
4213         rint: Support for MSVC.
4214         * lib/math.in.h (rint): New declaration.
4215         * lib/rint.c: New file.
4216         * m4/rint.m4: New file.
4217         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
4218         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
4219         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
4220         * modules/rint (Description): Fix.
4221         (Files): Add lib/rint.c, m4/rint.m4.
4222         (Depends-on): Add math.
4223         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
4224         gl_MATH_MODULE_INDICATOR.
4225         * tests/test-math-c++.cc: Check the declaration of rint.
4226         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4227         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
4228         * doc/posix-functions/rint.texi: Mention the replacement provided by
4229         the module.
4230
4231         rint tests: More tests.
4232         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
4233         minus-zero.h, infinity.h, nan.h.
4234         (main): Skip the test if the current rounding mode is not standard. Add
4235         tests for negative numbers, minus zero, infinity, NaN.
4236         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
4237         tests/nan.h.
4238         (Depends-on): Add isnand-nolibm.
4239
4240 2011-10-09  Bruno Haible  <bruno@clisp.org>
4241
4242         Tests for module 'copysignl'.
4243         * modules/copysignl-tests: New file.
4244         * tests/test-copysignl.c: New file.
4245
4246         New module 'copysignl'.
4247         * lib/math.in.h (copysignl): New declaration.
4248         * lib/copysignl.c: New file.
4249         * m4/copysignl.m4: New file.
4250         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
4251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
4252         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
4253         HAVE_COPYSIGNL.
4254         * modules/copysignl: New file.
4255         * tests/test-math-c++.cc: Check the declaration of copysignl.
4256         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4257         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
4258         * doc/posix-functions/copysignl.texi: Mention the new module.
4259
4260 2011-10-09  Bruno Haible  <bruno@clisp.org>
4261
4262         Tests for module 'copysignf'.
4263         * modules/copysignf-tests: New file.
4264         * tests/test-copysignf.c: New file.
4265
4266         New module 'copysignf'.
4267         * lib/math.in.h (copysignf): New declaration.
4268         * lib/copysignf.c: New file.
4269         * m4/copysignf.m4: New file.
4270         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
4271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
4272         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
4273         HAVE_COPYSIGNF.
4274         * modules/copysignf: New file.
4275         * tests/test-math-c++.cc: Check the declaration of copysignf.
4276         * doc/posix-functions/copysignf.texi: Mention the new module.
4277
4278 2011-10-09  Bruno Haible  <bruno@clisp.org>
4279
4280         Ensure that HAVE_* variables are set to 1 before they are set to 0.
4281         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
4282         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
4283         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4284         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
4285         gl_SIGNAL_H_DEFAULTS.
4286
4287 2011-10-09  Bruno Haible  <bruno@clisp.org>
4288
4289         poll: Make macro safer.
4290         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
4291         ac_cv_header_poll_h is not set.
4292
4293 2011-10-09  Bruno Haible  <bruno@clisp.org>
4294
4295         copysign: Provide replacement.
4296         * lib/math.in.h (copysign): New declaration.
4297         * lib/copysign.c: New file.
4298         * m4/copysign.m4: New file.
4299         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
4300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
4301         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
4302         HAVE_COPYSIGN.
4303         * modules/copysign (Description): Clarify.
4304         (Files): Add lib/copysign.c, m4/copysign.m4.
4305         (Depends-on): Add math, signbit.
4306         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
4307         gl_MATH_MODULE_INDICATOR.
4308         * tests/test-math-c++.cc: Check the declaration of copysign.
4309         * doc/posix-functions/copysign.texi: Mention the effects of the module
4310         on Minix and MSVC.
4311
4312 2011-10-09  Bruno Haible  <bruno@clisp.org>
4313
4314         isinf: Ensure macro on AIX 5.1.
4315         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
4316         macro.
4317         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
4318
4319 2011-10-09  Bruno Haible  <bruno@clisp.org>
4320
4321         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
4322         * modules/snprintf-posix-tests (configure.ac): Require
4323         gl_LONG_DOUBLE_VS_DOUBLE.
4324         * modules/sprintf-posix-tests (configure.ac): Likewise.
4325         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
4326         * modules/vasprintf-posix-tests (configure.ac): Likewise.
4327         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
4328         * modules/vsprintf-posix-tests (configure.ac): Likewise.
4329         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
4330         tests on platforms where 'long double' is the same as 'double'.
4331         * tests/test-sprintf-posix.h (test_function): Likewise.
4332         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4333         * tests/test-vasprintf-posix.c (test_function): Likewise.
4334
4335         *printf: Fix for platforms where 'long double' == 'double'.
4336         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
4337         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
4338         * modules/dprintf-posix (Files): Add m4/math_h.m4.
4339         * modules/fprintf-posix (Files): Likewise.
4340         * modules/obstack-printf-posix (Files): Likewise.
4341         * modules/snprintf-posix (Files): Likewise.
4342         * modules/sprintf-posix (Files): Likewise.
4343         * modules/vasnprintf (Files): Likewise.
4344         * modules/vasnprintf-posix (Files): Likewise.
4345         * modules/vasprintf-posix (Files): Likewise.
4346         * modules/vdprintf-posix (Files): Likewise.
4347         * modules/vfprintf-posix (Files): Likewise.
4348         * modules/vsnprintf-posix (Files): Likewise.
4349         * modules/vsprintf-posix (Files): Likewise.
4350         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4351         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4352         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4353         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4354         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4355         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4356         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4357
4358         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
4359         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
4360         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4361         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
4362         'long double'.
4363         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
4364
4365         isinf: Fix for platforms where 'long double' == 'double'.
4366         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4367         Don't blindly assume 80-bit 'long double'.
4368
4369         isfinite: Fix for platforms where 'long double' == 'double'.
4370         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4371         Don't blindly assume 80-bit 'long double'.
4372
4373         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
4374         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
4375         * modules/isfinite-tests (configure.ac): Require
4376         gl_LONG_DOUBLE_VS_DOUBLE.
4377         * modules/isinf-tests (configure.ac): Likewise.
4378         * modules/isnan-tests (configure.ac): Likewise.
4379         * modules/isnanl-tests (configure.ac): Likewise.
4380         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
4381         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
4382         tests on platforms where 'long double' is the same as 'double'.
4383         * tests/test-isinf.c (test_isinfl): Likewise.
4384         * tests/test-isnan.c (test_long_double): Likewise.
4385         * tests/test-isnanl.h (main): Likewise.
4386
4387 2011-10-08  Bruno Haible  <bruno@clisp.org>
4388
4389         Tests for module 'tanhf'.
4390         * modules/tanhf-tests: New file.
4391         * tests/test-tanhf.c: New file.
4392
4393         New module 'tanhf'.
4394         * lib/math.in.h (tanhf): New declaration.
4395         * lib/tanhf.c: New file.
4396         * m4/tanhf.m4: New file.
4397         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
4398         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
4399         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
4400         * modules/tanhf: New file.
4401         * tests/test-math-c++.cc: Check the declaration of tanhf.
4402         * doc/posix-functions/tanhf.texi: Mention the new module.
4403
4404         tanh: Use a .m4 file.
4405         * m4/tanh.m4: New file.
4406         * modules/tanh (Files): Add it.
4407         (configure.ac): Just invoke gl_FUNC_TANH.
4408
4409 2011-10-08  Bruno Haible  <bruno@clisp.org>
4410
4411         Tests for module 'coshf'.
4412         * modules/coshf-tests: New file.
4413         * tests/test-coshf.c: New file.
4414
4415         New module 'coshf'.
4416         * lib/math.in.h (coshf): New declaration.
4417         * lib/coshf.c: New file.
4418         * m4/coshf.m4: New file.
4419         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
4420         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
4421         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
4422         * modules/coshf: New file.
4423         * tests/test-math-c++.cc: Check the declaration of coshf.
4424         * doc/posix-functions/coshf.texi: Mention the new module.
4425
4426         cosh: Use a .m4 file.
4427         * m4/cosh.m4: New file.
4428         * modules/cosh (Files): Add it.
4429         (configure.ac): Just invoke gl_FUNC_COSH.
4430
4431 2011-10-08  Bruno Haible  <bruno@clisp.org>
4432
4433         Tests for module 'sinhf'.
4434         * modules/sinhf-tests: New file.
4435         * tests/test-sinhf.c: New file.
4436
4437         New module 'sinhf'.
4438         * lib/math.in.h (sinhf): New declaration.
4439         * lib/sinhf.c: New file.
4440         * m4/sinhf.m4: New file.
4441         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
4442         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
4443         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
4444         * modules/sinhf: New file.
4445         * tests/test-math-c++.cc: Check the declaration of sinhf.
4446         * doc/posix-functions/sinhf.texi: Mention the new module.
4447
4448         sinh: Use a .m4 file.
4449         * m4/sinh.m4: New file.
4450         * modules/sinh (Files): Add it.
4451         (configure.ac): Just invoke gl_FUNC_SINH.
4452
4453 2011-10-08  Bruno Haible  <bruno@clisp.org>
4454
4455         Tests for module 'atan2f'.
4456         * modules/atan2f-tests: New file.
4457         * tests/test-atan2f.c: New file.
4458
4459         New module 'atan2f'.
4460         * lib/math.in.h (atan2f): New declaration.
4461         * lib/atan2f.c: New file.
4462         * m4/atan2f.m4: New file.
4463         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
4464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
4465         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
4466         * modules/atan2f: New file.
4467         * tests/test-math-c++.cc: Check the declaration of atan2f.
4468         * doc/posix-functions/atan2f.texi: Mention the new module.
4469
4470         atan2: Use a .m4 file.
4471         * m4/atan2.m4: New file.
4472         * modules/atan2 (Files): Add it.
4473         (configure.ac): Just invoke gl_FUNC_ATAN2.
4474
4475 2011-10-08  Bruno Haible  <bruno@clisp.org>
4476
4477         Tests for module 'atanf'.
4478         * modules/atanf-tests: New file.
4479         * tests/test-atanf.c: New file.
4480
4481         New module 'atanf'.
4482         * lib/math.in.h (atanf): New declaration.
4483         * lib/atanf.c: New file.
4484         * m4/atanf.m4: New file.
4485         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
4486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
4487         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
4488         * modules/atanf: New file.
4489         * tests/test-math-c++.cc: Check the declaration of atanf.
4490         * doc/posix-functions/atanf.texi: Mention the new module.
4491
4492         atan: Use a .m4 file.
4493         * m4/atan.m4: New file.
4494         * modules/atan (Files): Add it.
4495         (configure.ac): Just invoke gl_FUNC_ATAN.
4496
4497 2011-10-08  Bruno Haible  <bruno@clisp.org>
4498
4499         Tests for module 'acosf'.
4500         * modules/acosf-tests: New file.
4501         * tests/test-acosf.c: New file.
4502
4503         New module 'acosf'.
4504         * lib/math.in.h (acosf): New declaration.
4505         * lib/acosf.c: New file.
4506         * m4/acosf.m4: New file.
4507         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
4508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
4509         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
4510         * modules/acosf: New file.
4511         * tests/test-math-c++.cc: Check the declaration of acosf.
4512         * doc/posix-functions/acosf.texi: Mention the new module.
4513
4514         acos: Use a .m4 file.
4515         * m4/acos.m4: New file.
4516         * modules/acos (Files): Add it.
4517         (configure.ac): Just invoke gl_FUNC_ACOS.
4518
4519 2011-10-08  Bruno Haible  <bruno@clisp.org>
4520
4521         Tests for module 'asinf'.
4522         * modules/asinf-tests: New file.
4523         * tests/test-asinf.c: New file.
4524
4525         New module 'asinf'.
4526         * lib/math.in.h (asinf): New declaration.
4527         * lib/asinf.c: New file.
4528         * m4/asinf.m4: New file.
4529         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
4530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
4531         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
4532         * modules/asinf: New file.
4533         * tests/test-math-c++.cc: Check the declaration of asinf.
4534         * doc/posix-functions/asinf.texi: Mention the new module.
4535
4536         asin: Use a .m4 file.
4537         * m4/asin.m4: New file.
4538         * modules/asin (Files): Add it.
4539         (configure.ac): Just invoke gl_FUNC_ASIN.
4540
4541 2011-10-08  Bruno Haible  <bruno@clisp.org>
4542
4543         Tests for module 'tanf'.
4544         * modules/tanf-tests: New file.
4545         * tests/test-tanf.c: New file.
4546
4547         New module 'tanf'.
4548         * lib/math.in.h (tanf): New declaration.
4549         * lib/tanf.c: New file.
4550         * m4/tanf.m4: New file.
4551         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
4552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
4553         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
4554         * modules/tanf: New file.
4555         * tests/test-math-c++.cc: Check the declaration of tanf.
4556         * doc/posix-functions/tanf.texi: Mention the new module.
4557
4558         tan: Use a .m4 file.
4559         * m4/tan.m4: New file.
4560         * modules/tan (Files): Add it.
4561         (configure.ac): Just invoke gl_FUNC_TAN.
4562
4563 2011-10-08  Bruno Haible  <bruno@clisp.org>
4564
4565         Tests for module 'cosf'.
4566         * modules/cosf-tests: New file.
4567         * tests/test-cosf.c: New file.
4568
4569         New module 'cosf'.
4570         * lib/math.in.h (cosf): New declaration.
4571         * lib/cosf.c: New file.
4572         * m4/cosf.m4: New file.
4573         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
4574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
4575         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
4576         * modules/cosf: New file.
4577         * tests/test-math-c++.cc: Check the declaration of cosf.
4578         * doc/posix-functions/cosf.texi: Mention the new module.
4579
4580         cos: Use a .m4 file.
4581         * m4/cos.m4: New file.
4582         * modules/cos (Files): Add it.
4583         (configure.ac): Just invoke gl_FUNC_COS.
4584
4585 2011-10-08  Bruno Haible  <bruno@clisp.org>
4586
4587         Tests for module 'sinf'.
4588         * modules/sinf-tests: New file.
4589         * tests/test-sinf.c: New file.
4590
4591         New module 'sinf'.
4592         * lib/math.in.h (sinf): New declaration.
4593         * lib/sinf.c: New file.
4594         * m4/sinf.m4: New file.
4595         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
4596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
4597         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
4598         * modules/sinf: New file.
4599         * tests/test-math-c++.cc: Check the declaration of sinf.
4600         * doc/posix-functions/sinf.texi: Mention the new module.
4601
4602         sin: Use a .m4 file.
4603         * m4/sin.m4: New file.
4604         * modules/sin (Files): Add it.
4605         (configure.ac): Just invoke gl_FUNC_SIN.
4606
4607 2011-10-08  Bruno Haible  <bruno@clisp.org>
4608
4609         Tests for module 'powf'.
4610         * modules/powf-tests: New file.
4611         * tests/test-powf.c: New file.
4612
4613         New module 'powf'.
4614         * lib/math.in.h (powf): New declaration.
4615         * lib/powf.c: New file.
4616         * m4/powf.m4: New file.
4617         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
4618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
4619         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
4620         * modules/powf: New file.
4621         * tests/test-math-c++.cc: Check the declaration of powf.
4622         * doc/posix-functions/powf.texi: Mention the new module.
4623
4624         pow: Use a .m4 file.
4625         * m4/pow.m4: New file.
4626         * modules/pow (Files): Add it.
4627         (configure.ac): Just invoke gl_FUNC_POW.
4628
4629 2011-10-08  Bruno Haible  <bruno@clisp.org>
4630
4631         Tests for module 'log10f'.
4632         * modules/log10f-tests: New file.
4633         * tests/test-log10f.c: New file.
4634
4635         New module 'log10f'.
4636         * lib/math.in.h (log10f): New declaration.
4637         * lib/log10f.c: New file.
4638         * m4/log10f.m4: New file.
4639         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
4640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
4641         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
4642         * modules/log10f: New file.
4643         * tests/test-math-c++.cc: Check the declaration of log10f.
4644         * doc/posix-functions/log10f.texi: Mention the new module.
4645
4646         log10: Use a .m4 file.
4647         * m4/log10.m4: New file.
4648         * modules/log10 (Files): Add it.
4649         (configure.ac): Just invoke gl_FUNC_LOG10.
4650
4651 2011-10-08  Bruno Haible  <bruno@clisp.org>
4652
4653         Tests for module 'logf'.
4654         * modules/logf-tests: New file.
4655         * tests/test-logf.c: New file.
4656
4657         New module 'logf'.
4658         * lib/math.in.h (logf): New declaration.
4659         * lib/logf.c: New file.
4660         * m4/logf.m4: New file.
4661         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
4662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
4663         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
4664         * modules/logf: New file.
4665         * tests/test-math-c++.cc: Check the declaration of logf.
4666         * doc/posix-functions/logf.texi: Mention the new module.
4667
4668         log: Use a .m4 file.
4669         * m4/log.m4: New file.
4670         * modules/log (Files): Add it.
4671         (configure.ac): Just invoke gl_FUNC_LOG.
4672
4673 2011-10-08  Bruno Haible  <bruno@clisp.org>
4674
4675         Tests for module 'expf'.
4676         * modules/expf-tests: New file.
4677         * tests/test-expf.c: New file.
4678
4679         New module 'expf'.
4680         * lib/math.in.h (expf): New declaration.
4681         * lib/expf.c: New file.
4682         * m4/expf.m4: New file.
4683         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
4684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
4685         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
4686         * modules/expf: New file.
4687         * tests/test-math-c++.cc: Check the declaration of expf.
4688         * doc/posix-functions/expf.texi: Mention the new module.
4689
4690         exp: Use a .m4 file.
4691         * m4/exp.m4: New file.
4692         * modules/exp (Files): Add it.
4693         (configure.ac): Just invoke gl_FUNC_EXP.
4694
4695 2011-10-08  Bruno Haible  <bruno@clisp.org>
4696
4697         Tests for module 'sqrtf'.
4698         * modules/sqrtf-tests: New file.
4699         * tests/test-sqrtf.c: New file.
4700
4701         New module 'sqrtf'.
4702         * lib/math.in.h (sqrtf): New declaration.
4703         * lib/sqrtf.c: New file.
4704         * m4/sqrtf.m4: New file.
4705         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
4706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
4707         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
4708         * modules/sqrtf: New file.
4709         * tests/test-math-c++.cc: Check the declaration of sqrtf.
4710         * doc/posix-functions/sqrtf.texi: Mention the new module.
4711
4712 2011-10-08  Bruno Haible  <bruno@clisp.org>
4713
4714         Tests: Avoid link failures w.r.t. libintl.
4715         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
4716         $(LIBINTL).
4717         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
4718         $(LIBINTL).
4719         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
4720         against $(LIBINTL).
4721         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
4722         $(LIBINTL).
4723         * modules/openat-tests (Makefile.am): Link test-fchmodat against
4724         $(LIBINTL).
4725         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
4726
4727 2011-10-08  Bruno Haible  <bruno@clisp.org>
4728
4729         pow tests: Defeat compiler optimizations.
4730         * tests/test-pow.c (main): Assign arguments to x and y before use.
4731
4732 2011-10-08  Bruno Haible  <bruno@clisp.org>
4733
4734         gnulib-tool: Improve last commit.
4735         * gnulib-tool (func_modules_transitive_closure): Simplify code.
4736         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
4737         ignore dependencies that are not among the modules list.
4738
4739 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
4740
4741         gnulib-tool: don't follow dependencies to avoided modules
4742         This fixes a bug that is related to the previous one.
4743         * gnulib-tool (func_modules_transitive_closure)
4744         (func_emit_autoconf_snippets):
4745         Check whether a dependency is acceptable before using it.
4746         (--extract-dependencies): Report an error if --avoid is also used,
4747         since this combination of options is not yet supported.
4748
4749         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
4750         Problem reported by Peter Dyballa in
4751         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
4752         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
4753         when echoing "$condition".
4754
4755 2011-10-07  Bruno Haible  <bruno@clisp.org>
4756
4757         Fix documentation about math functions on MacOS X.
4758         * doc/posix-functions/exp2.texi: Don't say the function is missing on
4759         MacOS X 10.5.
4760         * doc/posix-functions/fdim.texi: Likewise.
4761         * doc/posix-functions/feclearexcept.texi: Likewise.
4762         * doc/posix-functions/fegetenv.texi: Likewise.
4763         * doc/posix-functions/fegetround.texi: Likewise.
4764         * doc/posix-functions/feholdexcept.texi: Likewise.
4765         * doc/posix-functions/feraiseexcept.texi: Likewise.
4766         * doc/posix-functions/fesetenv.texi: Likewise.
4767         * doc/posix-functions/fesetround.texi: Likewise.
4768         * doc/posix-functions/fetestexcept.texi: Likewise.
4769         * doc/posix-functions/feupdateenv.texi: Likewise.
4770         * doc/posix-functions/fmax.texi: Likewise.
4771         * doc/posix-functions/fmin.texi: Likewise.
4772         * doc/posix-functions/log2.texi: Likewise.
4773         * doc/posix-functions/modff.texi: Likewise.
4774         * doc/posix-functions/nan.texi: Likewise.
4775         * doc/posix-functions/nanf.texi: Likewise.
4776         * doc/posix-functions/nextafterf.texi: Likewise.
4777         * doc/posix-functions/remquo.texi: Likewise.
4778
4779 2011-10-07  Bruno Haible  <bruno@clisp.org>
4780
4781         modff: Drop assumption about library that defines modff.
4782         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
4783         AC_CHECK_FUNCS.
4784         * modules/modff (Files): Add m4/mathfunc.m4.
4785
4786 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
4787
4788         raise tests: Avoid a GCC warning.
4789         * tests/test-raise.c (handler): Use _Noreturn.
4790
4791 2011-10-07  Bruno Haible  <bruno@clisp.org>
4792
4793         Tests for module 'ldexpf'.
4794         * modules/ldexpf-tests: New file.
4795         * tests/test-ldexpf.c: New file.
4796
4797         New module 'ldexpf'.
4798         * lib/math.in.h (ldexpf): New declaration.
4799         * lib/ldexpf.c: New file.
4800         * m4/ldexpf.m4: New file.
4801         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
4802         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
4803         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
4804         * modules/ldexpf: New file.
4805         * tests/test-math-c++.cc: Check the declaration of ldexpf.
4806         * doc/posix-functions/ldexpf.texi: Mention the new module.
4807
4808 2011-10-06  Bruno Haible  <bruno@clisp.org>
4809
4810         frexpf: Work around problems on IRIX and mingw.
4811         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
4812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
4813         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
4814         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
4815         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
4816         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
4817         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
4818
4819 2011-10-06  Bruno Haible  <bruno@clisp.org>
4820
4821         fabsf: Drop assumption about library that defines fabsf.
4822         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
4823         AC_CHECK_FUNCS.
4824         * modules/fabsf (Files): Add m4/mathfunc.m4.
4825
4826 2011-10-06  Bruno Haible  <bruno@clisp.org>
4827
4828         frexpf: Drop assumption about library that defines frexpf.
4829         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
4830         'int *', 'float *', 'long double *', 'float', 'long double'.
4831         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
4832         AC_CHECK_FUNCS.
4833         * modules/frexpf (Files): Add m4/mathfunc.m4.
4834
4835         Tests for module 'frexpf'.
4836         * modules/frexpf-tests: New file.
4837         * tests/test-frexpf.c: New file.
4838
4839         New module 'frexpf'.
4840         * lib/math.in.h (frexpf): New declaration.
4841         * lib/frexpf.c: New file.
4842         * m4/frexpf.m4: New file.
4843         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
4844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
4845         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
4846         * modules/frexpf: New file.
4847         * tests/test-math-c++.cc: Check the declaration of frexpf.
4848         * doc/posix-functions/frexpf.texi: Mention the new module.
4849
4850 2011-10-06  Bruno Haible  <bruno@clisp.org>
4851
4852         math: Sort function declarations of math.in.h.
4853         * lib/math.in.h (frexp, logb): Move declarations.
4854
4855 2011-10-05  Bruno Haible  <bruno@clisp.org>
4856
4857         Tests for module 'modff'.
4858         * modules/modff-tests: New file.
4859         * tests/test-modff.c: New file.
4860
4861         New module 'modff'.
4862         * lib/math.in.h (modff): New declaration.
4863         * lib/modff.c: New file.
4864         * m4/modff.m4: New file.
4865         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
4866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
4867         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
4868         * modules/modff: New file.
4869         * tests/test-math-c++.cc: Check the declaration of modff.
4870         * doc/posix-functions/modff.texi: Mention the new module.
4871
4872         modf tests: Make test sharper.
4873         * tests/test-modf.c (main): Strengthen upper bound.
4874
4875         modf: Use a .m4 file.
4876         * m4/modf.m4: New file.
4877         * modules/modf (Files): Add it.
4878         (configure.ac): Just invoke gl_FUNC_MODF.
4879
4880 2011-10-05  Bruno Haible  <bruno@clisp.org>
4881
4882         Tests for module 'fmodf'.
4883         * modules/fmodf-tests: New file.
4884         * tests/test-fmodf.c: New file.
4885
4886         New module 'fmodf'.
4887         * lib/math.in.h (fmodf): New declaration.
4888         * lib/fmodf.c: New file.
4889         * m4/fmodf.m4: New file.
4890         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
4891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
4892         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
4893         * modules/fmodf: New file.
4894         * tests/test-math-c++.cc: Check the declaration of fmodf.
4895         * doc/posix-functions/fmodf.texi: Mention the new module.
4896
4897         fmod: Use a .m4 file.
4898         * m4/fmod.m4: New file.
4899         * modules/fmod (Files): Add it.
4900         (configure.ac): Just invoke gl_FUNC_FMOD.
4901
4902 2011-10-05  Bruno Haible  <bruno@clisp.org>
4903
4904         Tests for module 'fabsf'.
4905         * modules/fabsf-tests: New file.
4906         * tests/test-fabsf.c: New file.
4907
4908         New module 'fabsf'.
4909         * lib/math.in.h (fabsf): New declaration.
4910         * lib/fabsf.c: New file.
4911         * m4/fabsf.m4: New file.
4912         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
4913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
4914         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
4915         * modules/fabsf: New file.
4916         * tests/test-math-c++.cc: Check the declaration of fabsf.
4917         * doc/posix-functions/fabsf.texi: Mention the new module.
4918
4919         fabs: Use a .m4 file.
4920         * m4/fabs.m4: New file.
4921         * modules/fabs (Files): Add it.
4922         (configure.ac): Just invoke gl_FUNC_FABS.
4923
4924 2011-10-05  Jim Meyering  <meyering@redhat.com>
4925
4926         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
4927         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
4928         ls -lL regression introduced in coreutils-8.12, it does so at the
4929         cost of an additional stat call in the common case.  Besides, now
4930         that the kernel change that prompted commit 95f7c57f has been reverted
4931         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
4932         we have no use for commit 95f7c57f, "file-has-acl: use
4933         acl_extended_file_nofollow if available".
4934
4935 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
4936
4937         file-has-acl: revert unintended change in behavior of ls -L
4938         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
4939         derived from...
4940         (file_has_acl): ...code here.  Call it.
4941         This problem was introduced with 2011-07-22 commit 95f7c57f,
4942         "file-has-acl: use acl_extended_file_nofollow if available".
4943         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
4944
4945 2011-10-03  Bruno Haible  <bruno@clisp.org>
4946
4947         poll: Avoid link errors on MSVC.
4948         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
4949         * modules/poll (Depends-on): Add sockets.
4950         (Link): New section.
4951         * NEWS: Mention the change.
4952         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
4953         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
4954         $(LIB_POLL) instead of $(LIBSOCKET).
4955
4956 2011-10-03  Bruno Haible  <bruno@clisp.org>
4957
4958         sys_select tests: Fix link error on MSVC 9.
4959         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
4960         with $(LIB_SELECT) instead of $(LIBSOCKET).
4961
4962 2011-10-03  Bruno Haible  <bruno@clisp.org>
4963
4964         sys_select: Fix compilation error on mingw.
4965         * lib/sys_select.in.h: On native Windows, include <io.h>.
4966
4967 2011-10-03  Bruno Haible  <bruno@clisp.org>
4968
4969         wmemset: Support for MSVC.
4970         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
4971         whether wmemset() exists.
4972
4973 2011-10-03  Bruno Haible  <bruno@clisp.org>
4974
4975         wmemmove: Support for MSVC.
4976         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
4977         whether wmemmove() exists.
4978
4979 2011-10-03  Bruno Haible  <bruno@clisp.org>
4980
4981         wmemcpy: Support for MSVC.
4982         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
4983         whether wmemcpy() exists.
4984
4985 2011-10-03  Bruno Haible  <bruno@clisp.org>
4986
4987         wmemcmp: Support for MSVC.
4988         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
4989         whether wmemcmp() exists.
4990
4991 2011-10-03  Bruno Haible  <bruno@clisp.org>
4992
4993         wmemchr: Support for MSVC.
4994         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
4995         whether wmemchr() exists.
4996
4997 2011-10-03  Bruno Haible  <bruno@clisp.org>
4998
4999         glthread/*, strsignal: Support for MSVC.
5000         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
5001         including <winsock.h> on MSVC 9.
5002         * lib/glthread/lock.h: Likewise.
5003         * lib/glthread/thread.h: Likewise.
5004         * lib/glthread/tls.h: Likewise.
5005         * lib/glthread/yield.h: Likewise.
5006         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
5007         if HAVE_UNISTD_H is false.
5008         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
5009
5010 2011-10-03  Bruno Haible  <bruno@clisp.org>
5011
5012         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
5013         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
5014         Set to 100000.
5015
5016 2011-10-03  Bruno Haible  <bruno@clisp.org>
5017
5018         acl: Fix specification.
5019         * lib/file-has-acl.c (file_has_acl): Fix specification.
5020
5021 2011-10-03  Bruno Haible  <bruno@clisp.org>
5022
5023         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
5024         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
5025         (compute_curr_prefix, shared_library_fullname,
5026         find_shared_library_fullname, get_shared_library_fullname, relocate):
5027         Use it together with PIC && INSTALLDIR.
5028         Reported by <jojelino@gmail.com>
5029         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
5030
5031 2011-10-01  Jim Meyering  <meyering@redhat.com>
5032
5033         maint.mk: adjust a release-related rule not to require use of gzip
5034         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
5035         Instead, check each file in $(DIST_ARCHIVES).  This is better for
5036         projects that build only .tar.xz files.  Also fix an erroneous test.
5037
5038         test-linkat: don't leave behind a temporary file
5039         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
5040         Otherwise, coreutils' "make distcheck" would fail with this:
5041           Only in /c/cu/tests/torture/coreutils/test/\
5042             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
5043           make[2]: *** [my-distcheck] Error 1
5044
5045         float, math: add omitted file
5046         * lib/itold.c: Add file, required for yesterday's float change.
5047
5048 2011-10-01  Bruno Haible  <bruno@clisp.org>
5049
5050         isinf: Fix for OpenBSD/x86.
5051         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
5052         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
5053         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
5054
5055 2011-10-01  Bruno Haible  <bruno@clisp.org>
5056
5057         isfinite: Fix syntax error in configure test.
5058         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
5059
5060         isfinite: Fix typo.
5061         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
5062         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
5063
5064 2011-10-01  Bruno Haible  <bruno@clisp.org>
5065
5066         nonblocking tests: Fix test failure on Linux/IA-64.
5067         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
5068         Set to 270000.
5069
5070 2011-10-01  Bruno Haible  <bruno@clisp.org>
5071
5072         mkfifoat tests: Fix a test failure on mingw.
5073         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
5074         with error ENOSYS.
5075
5076 2011-09-30  Bruno Haible  <bruno@clisp.org>
5077
5078         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
5079         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
5080         'long double'. Set REPLACE_ITOLD.
5081         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
5082         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
5083         * lib/itold.c: New file.
5084         * modules/float (Files): Add lib/itold.c.
5085         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
5086         (Makefile.am): Substitute REPLACE_ITOLD.
5087         * modules/math (Depends-on): Add float.
5088         (Makefile.am): Substitute REPLACE_ITOLD.
5089         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
5090         * doc/posix-headers/math.texi: Likewise.
5091         * doc/posix-functions/logl.texi: Likewise.
5092
5093 2011-09-30  Bruno Haible  <bruno@clisp.org>
5094
5095         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
5096         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
5097         Set to 140000.
5098
5099 2011-09-30  Bruno Haible  <bruno@clisp.org>
5100
5101         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
5102         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
5103         invocation, say "right after AC_PROG_CC_STDC", not "right after
5104         AC_PROG_CC".
5105         Reported by Gary V. Vaughan <gary@gnu.org>.
5106
5107 2011-09-30  Bruno Haible  <bruno@clisp.org>
5108
5109         Centralize C99 requirement.
5110         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
5111         * modules/stdarg (configure.ac-early): Invoke it instead of
5112         AC_PROG_CC_STDC.
5113         Reported by Gary V. Vaughan and Paul Eggert.
5114
5115 2011-09-29  Bruno Haible  <bruno@clisp.org>
5116
5117         float: Fix LDBL_MAX value on Linux/PowerPC.
5118         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
5119         on Linux/PowerPC.
5120         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
5121         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
5122         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
5123         platform.
5124         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
5125
5126 2011-09-29  Bruno Haible  <bruno@clisp.org>
5127
5128         doc: Improve doc about gl_EARLY.
5129         * doc/gnulib-tool.texi (Initial import): Mention where to place an
5130         AC_PROG_CC_STDC invocation.
5131         Reported by Gary V. Vaughan <gary@gnu.org>.
5132
5133 2011-09-28  Bruno Haible  <bruno@clisp.org>
5134
5135         fgetc, fputc, fread, fwrite tests: Fix link error.
5136         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
5137         on non-MSVC platforms.
5138         * tests/test-fputc.c (main): Likewise.
5139         * tests/test-fread.c (main): Likewise.
5140         * tests/test-fwrite.c (main): Likewise.
5141         Reported by Jim Meyering.
5142
5143 2011-09-27  Bruno Haible  <bruno@clisp.org>
5144
5145         fputc, fwrite tests: Avoid test failure on MSVC.
5146         * tests/test-fgetc.c: Include msvc-inval.h.
5147         (main): Invoke gl_msvc_inval_ensure_handler.
5148         * tests/test-fputc.c: Include msvc-inval.h.
5149         (main): Invoke gl_msvc_inval_ensure_handler.
5150         * tests/test-fread.c: Include msvc-inval.h.
5151         (main): Invoke gl_msvc_inval_ensure_handler.
5152         * tests/test-fwrite.c: Include msvc-inval.h.
5153         (main): Invoke gl_msvc_inval_ensure_handler.
5154         * modules/fgetc-tests (Depends-on): Add msvc-inval.
5155         * modules/fputc-tests (Depends-on): Likewise.
5156         * modules/fread-tests (Depends-on): Likewise.
5157         * modules/fwrite-tests (Depends-on): Likewise.
5158
5159 2011-09-27  Bruno Haible  <bruno@clisp.org>
5160
5161         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
5162         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
5163         (raise): Remove older, duplicated declaration.
5164         (_gl_raise_SIGPIPE): New declaration.
5165         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
5166         (rpl_raise): Remove function.
5167         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
5168         a gnulib-defined SIGPIPE here.
5169         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
5170         'sigprocmask' has detected missing signal-blocking and the module
5171         'sigpipe' is enabled.
5172         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5173
5174 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
5175
5176         base64-tests: avoid memory leak
5177         * tests/test-base64.c (main): Plug memory leak.
5178
5179         base32: new module
5180         * modules/base32: New module.
5181         * lib/base32.c: New file.
5182         * lib/base32.h: Likewise.
5183         * m4/base32.m4: Likewise.
5184         * modules/base32-tests: New test.
5185         * tests/test-base32.c: Likewise.
5186         * MODULES.html.sh (Misc): Mention it.
5187
5188 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5189
5190         gnulib: use more-standard license notice wording
5191         * gnulib-tool (func_emit_copyright_notice): When emitting a
5192         license notice into a file, use the standard wording as suggested
5193         by the current information for GNU maintainers, except say "file"
5194         rather than "program".  The new wording gives a license version
5195         number, which addresses an issue raised by Glenn Morris in
5196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
5197         * m4/onceonly.m4: Use that same wording here, too.
5198
5199         dup2: minor simplification
5200         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
5201         as lib/dup2.c no longer uses 'inline'.
5202
5203 2011-09-25  Bruno Haible  <bruno@clisp.org>
5204
5205         strings: Fix compilation error on MSVC.
5206         * lib/strings.in.h: Include <stddef.h> for size_t.
5207
5208 2011-09-25  Bruno Haible  <bruno@clisp.org>
5209
5210         fflush et al.: Document limitation on MSVC.
5211         * doc/posix-functions/fflush.texi: Document possible crash in handling
5212         mode other than DEFAULT_HANDLING.
5213         * doc/posix-functions/fgetc.texi: Likewise.
5214         * doc/posix-functions/fputc.texi: Likewise.
5215         * doc/posix-functions/fread.texi: Likewise.
5216         * doc/posix-functions/fwrite.texi: Likewise.
5217
5218 2011-09-25  Bruno Haible  <bruno@clisp.org>
5219
5220         msvc-inval: Allow three invalid parameter handling modes.
5221         * lib/msvc-inval.h: Don't include <stdlib.h> here.
5222         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
5223         macros.
5224         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
5225         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
5226         SANE_LIBRARY_HANDLING as a no-op.
5227         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
5228         <stdlib.h>.
5229         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
5230
5231 2011-09-25  Bruno Haible  <bruno@clisp.org>
5232
5233         msvc-inval: Make handler multithread-safe.
5234         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
5235         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
5236         declarations.
5237         (gl_msvc_inval_current): New declaration.
5238         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5239         Operate on the structure returned by gl_msvc_inval_current().
5240         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
5241         Remove varaiables.
5242         (tls_index, tls_initialized): New variables.
5243         (not_per_thread): New variable.
5244         (gl_msvc_inval_current): New function.
5245         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
5246         returned by gl_msvc_inval_current().
5247
5248 2011-09-25  Bruno Haible  <bruno@clisp.org>
5249
5250         msvc-inval: Install handler globally.
5251         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
5252         !_MSC_VER.
5253         (gl_msvc_invalid_parameter_handler): Remove declaration.
5254         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
5255         declarations.
5256         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5257         Install the handler globally, don't uninstall it.
5258         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
5259         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
5260         currently valid, call RaiseException instead.
5261         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
5262         for !_MSC_VER.
5263
5264 2011-09-25  Bruno Haible  <bruno@clisp.org>
5265
5266         strerror_r-posix: Fix for MSVC 9.
5267         * lib/strerror_r.c (local_snprintf): New function.
5268         (snprintf): Define to local_snprintf, not to _snprintf.
5269
5270 2011-09-25  Bruno Haible  <bruno@clisp.org>
5271
5272         ftruncate: Support for MSVC 9.
5273         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
5274         (chsize_nothrow): New function.
5275         (chsize): Redefine as a macro.
5276         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
5277         * modules/ftruncate (Depends-on): Add msvc-inval.
5278
5279 2011-09-25  Bruno Haible  <bruno@clisp.org>
5280
5281         New module 'fstat'.
5282         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
5283         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
5284         * lib/fchdir.c (rpl_fstat): Remove function.
5285         * m4/fstat.m4: New file.
5286         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
5287         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
5288         declared.
5289         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
5290         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
5291         * modules/fstat: New file.
5292         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
5293         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
5294         is set.
5295         * doc/posix-functions/fstat.texi: Mention the new module and the
5296         problem on MSVC.
5297         * NEWS: Mention the change.
5298         * modules/acl (Depends-on): Add fstat.
5299         * modules/chdir-safer (Depends-on): Likewise.
5300         * modules/chown (Depends-on): Likewise.
5301         * modules/copy-file (Depends-on): Likewise.
5302         * modules/fchdir (Depends-on): Likewise.
5303         * modules/fdopendir (Depends-on): Likewise.
5304         * modules/fopen (Depends-on): Likewise.
5305         * modules/fts (Depends-on): Likewise.
5306         * modules/getcwd (Depends-on): Likewise.
5307         * modules/isapipe (Depends-on): Likewise.
5308         * modules/linkat (Depends-on): Likewise.
5309         * modules/lseek (Depends-on): Likewise.
5310         * modules/mkdir-p (Depends-on): Likewise.
5311         * modules/open (Depends-on): Likewise.
5312         * modules/openat (Depends-on): Likewise.
5313         * modules/read-file (Depends-on): Likewise.
5314         * modules/renameat (Depends-on): Likewise.
5315         * modules/utimens (Depends-on): Likewise.
5316
5317 2011-09-25  Bruno Haible  <bruno@clisp.org>
5318
5319         linkat: Fix compilation on MSVC 9.
5320         * lib/linkat.c: Don't include <stdint.h>.
5321
5322 2011-09-25  Bruno Haible  <bruno@clisp.org>
5323
5324         fclose: Support for MSVC 9.
5325         * lib/fclose.c: Include msvc-inval.h.
5326         (fclose_nothrow): New function.
5327         (rpl_fclose): Use it.
5328         * modules/fclose (Depends-on): Add msvc-inval.
5329         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
5330
5331 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
5332
5333         dup2: minor simplifications
5334         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
5335         that it's a performance win.
5336         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
5337         ! defined __CYGWIN__)" to "ifdef F_GETFL".
5338
5339 2011-09-24  Jim Meyering  <meyering@redhat.com>
5340
5341         test-futimens: avoid a warning from gcc -Wshadow
5342         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
5343         to avoid a shadowing warning.
5344
5345 2011-09-24  Bruno Haible  <bruno@clisp.org>
5346
5347         fdopen: Support for MSVC 9.
5348         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
5349         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
5350         * lib/fdopen.c: Include msvc-inval.h.
5351         (fdopen_nothrow): New function.
5352         (rpl_fdopen): Use it.
5353         * modules/fdopen (Depends-on): Add msvc-inval.
5354         * modules/fclose-tests (Depends-on): Add fdopen.
5355         * modules/fflush-tests (Depends-on): Likewise.
5356         * modules/fgetc-tests (Depends-on): Likewise.
5357         * modules/fputc-tests (Depends-on): Likewise.
5358         * modules/fread-tests (Depends-on): Likewise.
5359         * modules/freopen-tests (Depends-on): Likewise.
5360         * modules/fseeko-tests (Depends-on): Likewise.
5361         * modules/ftello-tests (Depends-on): Likewise.
5362         * modules/fwrite-tests  (Depends-on): Likewise.
5363         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
5364
5365 2011-09-24  Bruno Haible  <bruno@clisp.org>
5366
5367         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
5368         * modules/fgetc-tests (Depends-on): Add unistd.
5369         * modules/fputc-tests (Depends-on): Likewise.
5370         * modules/fread-tests (Depends-on): Likewise.
5371         * modules/fwrite-tests (Depends-on): Likewise.
5372
5373 2011-09-24  Bruno Haible  <bruno@clisp.org>
5374
5375         dup: Simplify autoconf test.
5376         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
5377         on gl_MSVC_INVAL's result.
5378
5379 2011-09-24  Bruno Haible  <bruno@clisp.org>
5380
5381         Tests for function fwrite().
5382         * modules/fwrite-tests: New file.
5383         * tests/test-fwrite.c: New file.
5384         * modules/stdio-tests (Depends-on): Add fwrite-tests.
5385
5386         Tests for function fread().
5387         * modules/fread-tests: New file.
5388         * tests/test-fread.c: New file.
5389         * modules/stdio-tests (Depends-on): Add fread-tests.
5390
5391         Activate fputc tests.
5392         * modules/stdio-tests (Depends-on): Add fputc-tests.
5393
5394         Enhance fgetc, fputc tests.
5395         * tests/test-fgetc.c (main): Also test the stream's error indicator.
5396         * tests/test-fputc.c (main): Likewise.
5397
5398 2011-09-24  Bruno Haible  <bruno@clisp.org>
5399
5400         write: Support for MSVC 9.
5401         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5402         is not 1.
5403         * lib/write.c (write_nothrow): New function.
5404         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
5405         not 1. Use write_nothrow.
5406         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
5407         invalid parameter handler.
5408         (gl_PREREQ_WRITE): New macro.
5409         * modules/write (Depends-on): Add msvc-inval.
5410         (configure.ac): Invoke gl_PREREQ_WRITE.
5411         * doc/posix-functions/write.texi: Mention the problem on MSVC.
5412
5413 2011-09-24  Bruno Haible  <bruno@clisp.org>
5414
5415         read: Fix last commit.
5416         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
5417
5418 2011-09-24  Bruno Haible  <bruno@clisp.org>
5419
5420         dup2: Fix last commit.
5421         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
5422         (rpl_dup2): Disable fcntl workaround on native Windows.
5423
5424         sigprocmask: Make code safer.
5425         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
5426         section that changes macro definitions for this compilation unit.
5427
5428 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5429
5430         dup2: clarify by coalescing Windows-specific material
5431         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
5432         "msvc-nothrow.h"' to the Windows-specific section, so that the
5433         Emacs source need not contain these include files.
5434         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
5435         Windows-specific fixes into this function rather than just the
5436         nothrow fix, as this shortens and clarifies the code.  Always
5437         define as a function, as that's a bit cleaner than having it be
5438         sometimes a function and sometimes a macro.
5439         (rpl_dup2): Move the Windows-specific stuff out of here and into
5440         ms_windows_dup2.  Don't protect the Haiku-related fix with
5441         "#if !defined __linux__", as the same code also works around
5442         a Linux kernel bug, and it doesn't add any system calls on any
5443         platform.  Add comment about FreeBSD 6.1.
5444
5445         sigprocmask: move #include directive
5446         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
5447         Windows-specific section, so that the Emacs source need not
5448         contain msvc-inval.h.
5449
5450 2011-09-23  Bruno Haible  <bruno@clisp.org>
5451
5452         read: Support for MSVC 9.
5453         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5454         is not 1.
5455         * lib/read.c (read_nothrow): New function.
5456         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
5457         read_nothrow.
5458         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
5459         invalid parameter handler.
5460         (gl_PREREQ_READ): New macro.
5461         * modules/read (Depends-on): Add msvc-inval.
5462         (configure.ac): Invoke gl_PREREQ_READ.
5463         * doc/posix-functions/read.texi: Mention the problem on MSVC.
5464
5465 2011-09-23  Bruno Haible  <bruno@clisp.org>
5466
5467         close: Support for MSVC 9.
5468         * lib/close.c: Include <errno.h>, msvc-inval.h.
5469         (close_nothrow): New function.
5470         (rpl_close): Use it.
5471         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
5472         invalid parameter handler.
5473         * modules/close (Depends-on): Add msvc-inval.
5474         * modules/dup2-tests (Depends-on): Add close.
5475         * modules/dup3-tests (Depends-on): Likewise.
5476         * modules/fcntl-tests (Depends-on): Likewise.
5477         * modules/spawn-pipe-tests (Depends-on): Likewise.
5478         * modules/unistd-safer-tests (Depends-on): Likewise.
5479         * doc/posix-functions/close.texi: Mention the problem on MSVC.
5480
5481 2011-09-23  Bruno Haible  <bruno@clisp.org>
5482
5483         New module 'dup'.
5484         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
5485         Allow replacement.
5486         * lib/dup.c: New file.
5487         * lib/fchdir.c (rpl_dup): Remove function.
5488         * m4/dup.m4: New file.
5489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
5490         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
5491         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
5492         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
5493         * modules/dup: New file.
5494         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
5495         'dup' module is in use.
5496         * modules/fdopendir (Depends-on): Add dup.
5497         * modules/fdutimensat-tests (Depends-on): Likewise.
5498         * modules/fts (Depends-on): Likewise.
5499         * modules/futimens-tests (Depends-on): Likewise.
5500         * modules/posix_spawnp-tests (Depends-on): Likewise.
5501         * modules/unistd-safer-tests (Depends-on): Likewise.
5502         * modules/utimens-tests (Depends-on): Likewise.
5503         * doc/posix-functions/dup.texi: Mention the new module and the problem
5504         on MSVC.
5505
5506 2011-09-23  Bruno Haible  <bruno@clisp.org>
5507
5508         getdtablesize: Support for MSVC 9.
5509         * lib/getdtablesize.c: Include msvc-inval.h.
5510         (_setmaxstdio_nothrow): New function.
5511         (_setmaxstdio): Redefine it.
5512         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
5513         * modules/getdtablesize (Depends-on): Add msvc-inval.
5514         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
5515
5516 2011-09-23  Bruno Haible  <bruno@clisp.org>
5517
5518         signal-h: Rename from signal.
5519         * modules/signal-h: Renamed from modules/signal.
5520         * modules/pthread_sigmask (Depends-on): Update.
5521         * modules/raise (Depends-on): Likewise.
5522         * modules/sigaction (Depends-on): Likewise.
5523         * modules/sigpipe (Depends-on): Likewise.
5524         * modules/sigprocmask (Depends-on): Likewise.
5525         * modules/sys_select (Depends-on): Likewise.
5526         * modules/signal-h-tests: Renamed from modules/signal-tests.
5527         (Files, Depends-on, Makefile.am): Update.
5528         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
5529         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
5530         (Files, Makefile.am): Update.
5531         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
5532         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
5533         * modules/signal: New placeholder file.
5534         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
5535         * doc/posix-headers/signal.texi: Update.
5536         * NEWS: Mention the change.
5537
5538 2011-09-23  Bruno Haible  <bruno@clisp.org>
5539
5540         sigprocmask: Avoid crashes through signal() on MSVC 9.
5541         * lib/sigprocmask.c: Include msvc-inval.h.
5542         (signal_nothrow): New function.
5543         (signal): Redefine it.
5544         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
5545         * modules/sigprocmask (Depends-on): Add msvc-inval.
5546         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
5547
5548 2011-09-23  Bruno Haible  <bruno@clisp.org>
5549
5550         Tests for module 'raise'.
5551         * modules/raise-tests: New file.
5552         * tests/test-raise.c: New file.
5553
5554         raise: Support for MSVC.
5555         * lib/signal.in.h (raise): New declaration.
5556         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
5557         for native Windows platforms.
5558         * m4/raise.m4: New file.
5559         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
5560         HAVE_RAISE, REPLACE_RAISE.
5561         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
5562         REPLACE_RAISE.
5563         * modules/raise (Status, Notice): Remove fields.
5564         (Files): Add m4/raise.m4.
5565         (Depends-on): Add signal, msvc-inval.
5566         (configure.ac): Use the common idioms.
5567         (Maintainer): Add me.
5568         * tests/test-signal-c++.cc: Check the signature of raise.
5569         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
5570
5571 2011-09-23  Bruno Haible  <bruno@clisp.org>
5572
5573         pipe2: Fix compilation on pre-C99 compilers.
5574         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
5575
5576 2011-09-23  Bruno Haible  <bruno@clisp.org>
5577
5578         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
5579         * lib/msvc-nothrow.h: New file.
5580         * lib/msvc-nothrow.c: New file.
5581         * m4/msvc-nothrow.m4: New file.
5582         * modules/msvc-nothrow: New file.
5583         * lib/dup2.c: Include msvc-nothrow.h.
5584         (rpl_dup2): No need to protect _get_osfhandle call here.
5585         * lib/accept4.c: Include msvc-nothrow.h.
5586         * lib/error.c: Likewise.
5587         * lib/fcntl.c: Likewise.
5588         * lib/lseek.c: Likewise.
5589         * lib/nonblocking.c: Likewise.
5590         * lib/poll.c: Likewise.
5591         * lib/read.c: Likewise.
5592         * lib/select.c: Likewise.
5593         * lib/sockets.h: Likewise.
5594         * lib/sockets.c: Likewise.
5595         * lib/stdio-read.c: Likewise.
5596         * lib/stdio-write.c: Likewise.
5597         * lib/write.c: Likewise.
5598         * lib/w32sock.h: Likewise.
5599         * lib/w32spawn.h: Likewise.
5600         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
5601         * lib/fsync.c: Likewise.
5602         * lib/isapipe.c: Likewise.
5603         * modules/dup2 (Depends-on): Add msvc-nothrow.
5604         * modules/accept4 (Depends-on): Likewise.
5605         * modules/error (Depends-on): Likewise.
5606         * modules/fcntl (Depends-on): Likewise.
5607         * modules/lseek (Depends-on): Likewise.
5608         * modules/nonblocking (Depends-on): Likewise.
5609         * modules/poll (Depends-on): Likewise.
5610         * modules/read (Depends-on): Likewise.
5611         * modules/select (Depends-on): Likewise.
5612         * modules/sockets (Depends-on): Likewise.
5613         * modules/sigpipe (Depends-on): Likewise.
5614         * modules/write (Depends-on): Likewise.
5615         * modules/accept (Depends-on): Likewise.
5616         * modules/bind (Depends-on): Likewise.
5617         * modules/connect (Depends-on): Likewise.
5618         * modules/gethostname (Depends-on): Likewise.
5619         * modules/getpeername (Depends-on): Likewise.
5620         * modules/getsockname (Depends-on): Likewise.
5621         * modules/getsockopt (Depends-on): Likewise.
5622         * modules/ioctl (Depends-on): Likewise.
5623         * modules/listen (Depends-on): Likewise.
5624         * modules/recv (Depends-on): Likewise.
5625         * modules/recvfrom (Depends-on): Likewise.
5626         * modules/send (Depends-on): Likewise.
5627         * modules/sendto (Depends-on): Likewise.
5628         * modules/setsockopt (Depends-on): Likewise.
5629         * modules/shutdown (Depends-on): Likewise.
5630         * modules/socket (Depends-on): Likewise.
5631         * modules/execute (Depends-on): Likewise.
5632         * modules/spawn-pipe (Depends-on): Likewise.
5633         * modules/flock (Depends-on): Likewise.
5634         * modules/fsync (Depends-on): Likewise.
5635         * modules/isapipe (Depends-on): Likewise.
5636         * tests/test-cloexec.c: Include msvc-nothrow.h.
5637         * tests/test-dup-safer.c: Likewise.
5638         * tests/test-dup2.c: Likewise.
5639         * tests/test-dup3.c: Likewise.
5640         * tests/test-fcntl.c: Likewise.
5641         * tests/test-pipe.c: Likewise.
5642         * tests/test-pipe2.c: Likewise.
5643         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
5644         * modules/unistd-safer-tests (Depends-on): Likewise.
5645         * modules/dup2-tests (Depends-on): Likewise.
5646         * modules/dup3-tests (Depends-on): Likewise.
5647         * modules/fcntl-tests (Depends-on): Likewise.
5648         * modules/pipe-posix-tests (Depends-on): Likewise.
5649         * modules/pipe2-tests (Depends-on): Likewise.
5650
5651 2011-09-23  Bruno Haible  <bruno@clisp.org>
5652
5653         dup2: Make code more maintainable.
5654         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
5655         (rpl_dup2): Use it.
5656         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
5657         * modules/dup2 (configure.ac): Invoke it.
5658         Reported by Paul Eggert.
5659
5660 2011-09-23  Bruno Haible  <bruno@clisp.org>
5661
5662         msvc-inval: Fix compilation error.
5663         * lib/msvc-inval.h: Include <excpt.h>.
5664
5665 2011-09-23  Bruno Haible  <bruno@clisp.org>
5666
5667         mkdir: Tweak for MSVC 9.
5668         * lib/sys_stat.in.h: Update comments.
5669         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
5670
5671         Tests for module 'chdir'.
5672         * modules/chdir-tests: New file.
5673         * tests/test-chdir.c: New file.
5674
5675         New module 'chdir'.
5676         * modules/chdir: New file.
5677         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
5678         (chdir): New declaration.
5679         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
5680         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
5681         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
5682         * tests/test-unistd-c++.cc: Check signature of chdir.
5683         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
5684         * modules/chdir-long (Depends-on): Add chdir.
5685         * modules/fchdir (Depends-on): Likewise.
5686         * modules/rename (Depends-on): Likewise.
5687         * modules/savewd (Depends-on): Likewise.
5688
5689         rmdir: Support for mingw, MSVC 9.
5690         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
5691         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
5692
5693         getcwd: Tweak for MSVC 9.
5694         * lib/unistd.in.h: Update comments.
5695         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
5696
5697 2011-09-22  Bruno Haible  <bruno@clisp.org>
5698
5699         strerror_r-posix: Avoid a link error on MSVC.
5700         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
5701         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
5702
5703 2011-09-22  Bruno Haible  <bruno@clisp.org>
5704
5705         select: Avoid link errors on MSVC.
5706         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
5707         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
5708         * modules/pselect (Link): Likewise.
5709         * NEWS: Mention the change.
5710         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
5711         test-select-stdin against $(LIB_SELECT).
5712         * modules/pselect-tests (Makefile.am): Link test-pselect against
5713         $(LIB_SELECT).
5714
5715 2011-09-22  Bruno Haible  <bruno@clisp.org>
5716
5717         select: Avoid compilation error on MSVC.
5718         * lib/select.c: Don't include <stdbool.h>.
5719
5720 2011-09-21  Bruno Haible  <bruno@clisp.org>
5721
5722         Consolidate all uses of PATH_MAX in *.m4 files.
5723         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
5724         macros.
5725         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
5726         and gl_PATHMAX_SNIPPET.
5727         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5728         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5729         * modules/chdir-long (Files): Add m4/pathmax.m4.
5730         * modules/getcwd (Files): Likewise.
5731
5732 2011-09-21  Bruno Haible  <bruno@clisp.org>
5733
5734         ftruncate: Un-deprecate, concentrate on Win32 support.
5735         * modules/ftruncate (Status, Notice): Remove sections.
5736         (Depends-on): Add largefile.
5737         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
5738         non-mingw platforms.
5739         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
5740         include <io.h>.
5741         * modules/perror-tests (Depends-on): Add ftruncate.
5742         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
5743         'ftruncate' module.
5744
5745 2011-09-21  Bruno Haible  <bruno@clisp.org>
5746
5747         Add dependencies to new dirent related modules.
5748         * modules/opendir (Depends-on): Add closedir.
5749         * modules/getcwd (Depends-on): Add opendir, closedir.
5750         * modules/dirent-safer-tests (Depends-on): Likewise.
5751         * modules/fdopendir-tests (Depends-on): Likewise.
5752         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
5753         * modules/renameat-tests (Depends-on): Likewise.
5754
5755 2011-09-21  Bruno Haible  <bruno@clisp.org>
5756
5757         opendir: Avoid compilation error on mingw.
5758         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
5759         * modules/opendir (Depends-on): Add unistd.
5760
5761 2011-09-21  Bruno Haible  <bruno@clisp.org>
5762
5763         ftruncate tests: Avoid a test failure on mingw.
5764         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
5765
5766 2011-09-21  Bruno Haible  <bruno@clisp.org>
5767
5768         select tests: Avoid test failures on OSF/1 5.1 and mingw.
5769         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
5770         native Windows.
5771
5772 2011-09-21  Bruno Haible  <bruno@clisp.org>
5773
5774         New module 'fdopen'.
5775         * lib/stdio.in.h (fdopen): New declaration.
5776         * lib/fdopen.c: New file.
5777         * m4/fdopen.m4: New file.
5778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
5779         REPLACE_FDOPEN.
5780         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
5781         REPLACE_FDOPEN.
5782         * modules/fdopen: New file.
5783         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
5784         * tests/test-stdio-c++.cc: Check signature of fdopen.
5785         * doc/posix-functions/fdopen.texi: Mention the new module.
5786
5787 2011-09-21  Bruno Haible  <bruno@clisp.org>
5788
5789         unlockpt tests: Avoid test failure on NetBSD 5.1.
5790         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
5791         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
5792
5793 2011-09-21  Bruno Haible  <bruno@clisp.org>
5794
5795         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
5796         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
5797         * tests/test-getlogin_r.c (main): Likewise.
5798
5799 2011-09-20  Bruno Haible  <bruno@clisp.org>
5800
5801         time tests: Don't require pid_t.
5802         * doc/posix-headers/time.texi: Revert last change.
5803         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
5804         * tests/test-time.c: Comment out the check for pid_t.
5805
5806 2011-09-20  Bruno Haible  <bruno@clisp.org>
5807
5808         fsync tests: Avoid a test failure on mingw.
5809         * tests/test-fsync.c (main): Allow a failure with EIO.
5810
5811 2011-09-20  Bruno Haible  <bruno@clisp.org>
5812
5813         euidaccess: Update comments.
5814         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
5815
5816 2011-09-20  Bruno Haible  <bruno@clisp.org>
5817
5818         Ensure EBADF returns for socket functions on mingw.
5819         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
5820         descriptor is invalid.
5821         * lib/bind.c (rpl_bind): Likewise.
5822         * lib/connect.c (rpl_connect): Likewise.
5823         * lib/getpeername.c (rpl_getpeername): Likewise.
5824         * lib/getsockname.c (rpl_getsockname): Likewise.
5825         * lib/getsockopt.c (rpl_getsockopt): Likewise.
5826         * lib/listen.c (rpl_listen): Likewise.
5827         * lib/recv.c (rpl_recv): Likewise.
5828         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5829         * lib/send.c (rpl_send): Likewise.
5830         * lib/sendto.c (rpl_sendto): Likewise.
5831         * lib/setsockopt.c (rpl_setsockopt): Likewise.
5832         * lib/shutdown.c (rpl_shutdown): Likewise.
5833
5834 2011-09-20  Bruno Haible  <bruno@clisp.org>
5835
5836         select tests: EBADF tests.
5837         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
5838         test_bad_fd): New functions.
5839         (test_function): Invoke also test_bad_fd.
5840
5841 2011-09-20  Bruno Haible  <bruno@clisp.org>
5842
5843         Tests for module 'posix_spawn_file_actions_addopen.
5844         * modules/posix_spawn_file_actions_addopen-tests: New file.
5845         * tests/test-posix_spawn_file_actions_addopen.c: New file.
5846
5847         Tests for module 'posix_spawn_file_actions_adddup2'.
5848         * modules/posix_spawn_file_actions_adddup2-tests: New file.
5849         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
5850
5851         Tests for module 'posix_spawn_file_actions_addclose'.
5852         * modules/posix_spawn_file_actions_addclose-tests: New file.
5853         * tests/test-posix_spawn_file_actions_addclose.c: New file.
5854
5855 2011-09-20  Bruno Haible  <bruno@clisp.org>
5856
5857         Tests for module 'unlockpt'.
5858         * modules/unlockpt-tests: New file.
5859         * tests/test-unlockpt.c: New file.
5860         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
5861
5862         Tests for module 'grantpt'.
5863         * modules/grantpt-tests: New file.
5864         * tests/test-grantpt.c: New file.
5865         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
5866
5867 2011-09-20  Bruno Haible  <bruno@clisp.org>
5868
5869         freopen tests: EBADF tests.
5870         * tests/test-freopen.c: Include errno.h, unistd.h.
5871         (main): Add tests for EBADF, commented out for the moment.
5872
5873         fclose tests: EBADF tests.
5874         * tests/test-fclose.c (main): Add tests for EBADF.
5875
5876         fflush tests: EBADF tests.
5877         * tests/test-fflush.c: Include errno.h, macros.h.
5878         (main): Add tests for EBADF.
5879
5880         ftello tests: EBADF tests.
5881         * tests/test-ftello4.sh: New file.
5882         * tests/test-ftello4.c: New file.
5883         * modules/ftello-tests (Files): Add them.
5884         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
5885
5886         fseeko tests: EBADF tests.
5887         * tests/test-fseeko4.sh: New file.
5888         * tests/test-fseeko4.c: New file.
5889         * modules/fseeko-tests (Files): Add them.
5890         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
5891
5892         Tests for function fputc().
5893         * modules/fputc-tests: New file.
5894         * tests/test-fputc.c: New file.
5895         * modules/stdio-tests (Depends-on): Add fputc-tests.
5896
5897         Tests for function fgetc().
5898         * modules/fgetc-tests: New file.
5899         * tests/test-fgetc.c: New file.
5900         * modules/stdio-tests (Depends-on): Add fgetc-tests.
5901
5902         Tests for function fdopen().
5903         * modules/fdopen-tests: New file.
5904         * tests/test-fdopen.c: New file.
5905         * modules/stdio-tests (Depends-on): Add fdopen-tests.
5906
5907         Tests for module 'vdprintf'.
5908         * modules/vdprintf-tests: New file.
5909         * tests/test-vdprintf.c: New file.
5910
5911         Tests for module 'dprintf'.
5912         * modules/dprintf-tests: New file.
5913         * tests/test-dprintf.c: New file.
5914
5915 2011-09-20  Bruno Haible  <bruno@clisp.org>
5916
5917         Tests for module 'ioctl'.
5918         * modules/ioctl-tests: New file.
5919         * tests/test-ioctl.c: New file.
5920
5921 2011-09-20  Bruno Haible  <bruno@clisp.org>
5922
5923         fcntl tests: EBADF tests.
5924         * tests/test-fcntl.c (main): Add more tests for EBADF.
5925
5926 2011-09-20  Bruno Haible  <bruno@clisp.org>
5927
5928         utimensat tests: EBADF tests.
5929         * tests/test-utimensat.c (main): Add tests for EBADF.
5930
5931         renameat tests: EBADF tests.
5932         * tests/test-renameat.c (main): Add tests for EBADF.
5933
5934         mkfifoat tests: EBADF tests.
5935         * tests/test-mkfifoat.c (main): Add tests for EBADF.
5936
5937         readlinkat tests: EBADF tests.
5938         * tests/test-readlinkat.c (main): Add tests for EBADF.
5939
5940         symlinkat tests: EBADF tests.
5941         * tests/test-symlinkat.c (main): Add tests for EBADF.
5942
5943         linkat tests: EBADF tests.
5944         * tests/test-linkat.c (main): Add tests for EBADF.
5945
5946         Tests for module 'faccessat'.
5947         * modules/faccessat-tests: New file.
5948         * tests/test-faccessat.c: New file.
5949
5950         fdopendir tests: EBADF tests.
5951         * tests/test-fdopendir.c (main): Add more tests for EBADF.
5952
5953         openat tests: EBADF tests.
5954         * tests/test-fchownat.c (main): Add tests for EBADF.
5955         * tests/test-fstatat.c (main): Likewise.
5956         * tests/test-mkdirat.c (main): Likewise.
5957         * tests/test-openat.c (main): Likewise.
5958         * tests/test-unlinkat.c (main): Likewise.
5959         * tests/test-fchmodat.c: New file.
5960         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
5961         (Makefile.am): Also run 'test-fchmodat'.
5962
5963 2011-09-20  Bruno Haible  <bruno@clisp.org>
5964
5965         utimens, futimens, fdutimensat tests: EBADF tests.
5966         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
5967
5968         Tests for function fstat().
5969         * modules/fstat-tests: New file.
5970         * tests/test-fstat.c: New file.
5971         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
5972
5973 2011-09-20  Bruno Haible  <bruno@clisp.org>
5974
5975         test-ttyname_r tests: EBADF tests.
5976         * tests/test-ttyname_r.c (main): Add tests for EBADF.
5977
5978         Tests for module 'isatty'.
5979         * modules/isatty-tests: New file.
5980         * tests/test-isatty.c: New file.
5981
5982         Tests for module 'write'.
5983         * modules/write-tests: New file.
5984         * tests/test-write.c: New file.
5985
5986         Tests for module 'read'.
5987         * modules/read-tests: New file.
5988         * tests/test-read.c: New file.
5989
5990         pwrite tests: EBADF tests.
5991         * tests/test-pwrite.c (main): Add tests for EBADF.
5992
5993         pread tests: EBADF tests.
5994         * tests/test-pread.c (main): Add tests for EBADF.
5995
5996         lseek tests: EBADF tests.
5997         * tests/test-lseek.c (main): Add more tests for EBADF.
5998
5999         Tests for module 'ftruncate'.
6000         * modules/ftruncate-tests: New file.
6001         * tests/test-ftruncate.sh: New file.
6002         * tests/test-ftruncate.c: New file.
6003
6004         fsync tests: EBADF tests.
6005         * tests/test-fsync.c (main): Add more tests for EBADF.
6006
6007         fdatasync tests: EBADF tests.
6008         * tests/test-fdatasync.c (main): Add more tests for EBADF.
6009
6010         Tests for module 'fchown'.
6011         * modules/fchown-tests: New file.
6012         * tests/test-fchown.c: New file.
6013
6014         Tests for module 'fchmod'.
6015         * modules/fchmod-tests: New file.
6016         * tests/test-fchmod.c: New file.
6017
6018         fchdir tests: EBADF tests.
6019         * tests/test-fchdir.c (main): Add more tests for EBADF.
6020
6021         dup2 tests: EBADF tests.
6022         * tests/test-dup2.c (main): Add more tests for EBADF.
6023
6024         Tests for module 'dup'.
6025         * modules/dup-tests: New file.
6026         * tests/test-dup.c: New file.
6027
6028         Tests for module 'close'.
6029         * modules/close-tests: New file.
6030         * tests/test-close.c: New file.
6031
6032 2011-09-20  Bruno Haible  <bruno@clisp.org>
6033
6034         Tests for module 'shutdown'.
6035         * modules/shutdown-tests: New file.
6036         * tests/test-shutdown.c: New file.
6037
6038         Tests for module 'setsockopt'.
6039         * modules/setsockopt-tests: New file.
6040         * tests/test-setsockopt.c: New file.
6041
6042         Tests for module 'sendto'.
6043         * modules/sendto-tests: New file.
6044         * tests/test-sendto.c: New file.
6045
6046         Tests for module 'send'.
6047         * modules/send-tests: New file.
6048         * tests/test-send.c: New file.
6049
6050         Tests for module 'recvfrom'.
6051         * modules/recvfrom-tests: New file.
6052         * tests/test-recvfrom.c: New file.
6053
6054         Tests for module 'recv'.
6055         * modules/recv-tests: New file.
6056         * tests/test-recv.c: New file.
6057
6058         Tests for module 'listen'.
6059         * modules/listen-tests: New file.
6060         * tests/test-listen.c: New file.
6061
6062         Tests for module 'getsockopt'.
6063         * modules/getsockopt-tests: New file.
6064         * tests/test-getsockopt.c: New file.
6065
6066         Tests for module 'getsockname'.
6067         * modules/getsockname-tests: New file.
6068         * tests/test-getsockname.c: New file.
6069
6070         Tests for module 'getpeername'.
6071         * modules/getpeername-tests: New file.
6072         * tests/test-getpeername.c: New file.
6073
6074         Tests for module 'connect'.
6075         * modules/connect-tests: New file.
6076         * tests/test-connect.c: New file.
6077
6078         Tests for module 'bind'.
6079         * modules/bind-tests: New file.
6080         * tests/test-bind.c: New file.
6081
6082         accept4 tests: Fix for native Windows.
6083         * tests/test-accept4.c: Include sockets.h.
6084         (main): Invoke gl_sockets_startup.
6085         * modules/accept4-tests (Depends-on): Add sockets.
6086
6087         accept tests: Fix for native Windows.
6088         * tests/test-accept.c: Include sockets.h.
6089         (main): Invoke gl_sockets_startup.
6090         * modules/accept-tests (Depends-on): Add sockets.
6091
6092 2011-09-19  Bruno Haible  <bruno@clisp.org>
6093
6094         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
6095         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
6096         do...while(0).
6097         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
6098         Suggested by Paul Eggert.
6099
6100 2011-09-19  Bruno Haible  <bruno@clisp.org>
6101
6102         sched: Ensure pid_t is defined.
6103         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
6104         not define pid_t.
6105         * lib/sched.in.h: Include <sys/types.h>.
6106         * doc/posix-headers/sched.texi: Mention the pid_t problem.
6107         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6108
6109 2011-09-19  Bruno Haible  <bruno@clisp.org>
6110
6111         msvc-inval: Ensure the entire expansion is a single statement.
6112         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
6113         of braces.
6114
6115 2011-09-19  Jim Meyering  <meyering@redhat.com>
6116
6117         tests: use printf, not echo in init.sh's warn_ function
6118         * tests/init.sh (warn_): Use printf, not echo.  The latter would
6119         misbehave when given strings containing a backslash or starting
6120         with e.g., -n.  James Youngman suggested setting IFS.
6121
6122 2011-09-19  Eric Blake  <eblake@redhat.com>
6123
6124         futimens: enhance test
6125         * tests/test-futimens.h (test_futimens): Also check for EBADF on
6126         closed non-negative fd.
6127
6128         date: accept 'hence' as opposite of 'ago'
6129         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
6130         * tests/test-parse-datetime.c (main): Enhance test.
6131         Suggested by Jesse Wilson.
6132
6133 2011-09-19  Jim Meyering  <meyering@redhat.com>
6134
6135         getcwd: don't fail in a deep directory on a system without openat
6136         Before this change, getcwd would fail when called from a directory
6137         of depth PATH_MAX / 3 or greater.  That was due to the fact that
6138         the non-openat implementation used "..", "../..", "../../..", etc.
6139         to access ancestor directories.  With too many, that string would
6140         be longer than PATH_MAX.
6141         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
6142         using gnulib's openat replacement.
6143         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
6144         we're using the replacement function.
6145
6146 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
6147
6148         maint.mk: avoid warnings from perl about missing files
6149         * top/maint.mk (def_sym_regex): Ignore files listed in
6150         $(gl_other_headers_) that do not exist, say because a project
6151         does not use a corresponding module.
6152
6153 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6154
6155         stat: use pathmax.h only if needed
6156         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
6157         This is better for Emacs, which does not have a mingw port and
6158         therefore can avoid the pathmax module.
6159
6160         utimens: remove dependency on dup2
6161         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
6162         to work around the Linux kernel bug.
6163         * modules/utimens (Depends-on): Remove dup2.
6164
6165 2011-09-18  Bruno Haible  <bruno@clisp.org>
6166
6167         inet_ntop, inet_pton: Look for it also in libresolv.
6168         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
6169         libnsl, search for it in libresolv.
6170         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6171         Needed on Solaris 7.
6172
6173 2011-09-18  Bruno Haible  <bruno@clisp.org>
6174
6175         accept, accept4 tests: Avoid link error on Solaris.
6176         * modules/accept-tests (Makefile.am): Link test-accept against
6177         $(LIBSOCKET).
6178         * modules/accept4-tests (Makefile.am): Link test-accept4 against
6179         $(LIBSOCKET).
6180
6181         accept4: Avoid link error on Solaris.
6182         * modules/accept4 (Link): New section.
6183
6184         socket functions: Avoid link errors on Solaris.
6185         * modules/accept (Depends-on): Add socketlib.
6186         (Link): New section.
6187         * modules/bind (Depends-on): Add socketlib.
6188         (Link): New section.
6189         * modules/connect (Depends-on): Add socketlib.
6190         (Link): New section.
6191         * modules/getpeername (Depends-on): Add socketlib.
6192         (Link): New section.
6193         * modules/getsockname (Depends-on): Add socketlib.
6194         (Link): New section.
6195         * modules/getsockopt (Depends-on): Add socketlib.
6196         (Link): New section.
6197         * modules/listen (Depends-on): Add socketlib.
6198         (Link): New section.
6199         * modules/recv (Depends-on): Add socketlib.
6200         (Link): New section.
6201         * modules/recvfrom (Depends-on): Add socketlib.
6202         (Link): New section.
6203         * modules/send (Depends-on): Add socketlib.
6204         (Link): New section.
6205         * modules/sendto (Depends-on): Add socketlib.
6206         (Link): New section.
6207         * modules/setsockopt (Depends-on): Add socketlib.
6208         (Link): New section.
6209         * modules/shutdown (Depends-on): Add socketlib.
6210         (Link): New section.
6211         * modules/socket (Depends-on): Add socketlib.
6212         (Link): New section.
6213
6214 2011-09-18  Bruno Haible  <bruno@clisp.org>
6215
6216         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
6217         * tests/test-ptsname.c (main): Terminate the test if it takes longer
6218         than 5 seconds.
6219         * modules/ptsname-tests (configure.ac): Test for alarm.
6220
6221 2011-09-18  Bruno Haible  <bruno@clisp.org>
6222
6223         posix_spawn_file_actions_add*: Fix module dependencies.
6224         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
6225         posix_spawn_file_actions_init.
6226         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
6227         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
6228
6229 2011-09-18  Bruno Haible  <bruno@clisp.org>
6230
6231         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
6232         * tests/test-rename.h (test_rename): Allow error code EEXIST.
6233         * tests/test-renameat.c (main): Likewise.
6234
6235 2011-09-18  Bruno Haible  <bruno@clisp.org>
6236
6237         Tests for module 'accept4'.
6238         * modules/accept4-tests: New file.
6239         * tests/test-accept4.c: New file.
6240
6241 2011-09-18  Bruno Haible  <bruno@clisp.org>
6242
6243         Tests for module 'accept'.
6244         * modules/accept-tests: New file.
6245         * tests/test-accept.c: New file.
6246
6247 2011-09-18  Bruno Haible  <bruno@clisp.org>
6248
6249         dup2: Support for MSVC.
6250         * lib/dup2.c: Include msvc-inval.h.
6251         (rpl_dup2): Handle invalid parameter notifications during dup2 and
6252         _get_osfhandle calls.
6253         * modules/dup2 (Depends-on): Add msvc-inval.
6254         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
6255
6256         New module 'msvc-inval'.
6257         * lib/msvc-inval.h: New file.
6258         * lib/msvc-inval.c: New file.
6259         * m4/msvc-inval.m4: New file.
6260         * modules/msvc-inval: New file.
6261
6262 2011-09-17  Bruno Haible  <bruno@clisp.org>
6263
6264         Tests for module 'pclose'.
6265         * modules/pclose-tests: New file.
6266
6267         New module 'pclose'.
6268         * lib/stdio.in.h (pclose): New declaration.
6269         * lib/pclose.c: New file.
6270         * m4/pclose.m4: New file.
6271         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
6272         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
6273         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
6274         * modules/pclose: New file.
6275         * modules/popen-tests (Depends-on): Add pclose.
6276         * modules/popen-safer-tests (Depends-on): Likewise.
6277         * doc/posix-functions/pclose.texi: Mention the new module.
6278
6279 2011-09-17  Bruno Haible  <bruno@clisp.org>
6280
6281         popen: Support for MSVC.
6282         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
6283         * lib/popen.c (popen): Provide alternate definition for native Windows.
6284         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
6285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
6286         * modules/popen (Depends-on, configure.ac): Update condition.
6287         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
6288         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
6289         fixed.
6290
6291 2011-09-17  Bruno Haible  <bruno@clisp.org>
6292
6293         isnanl, isnand, isnanf: Work around MSVC bug.
6294         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
6295
6296 2011-09-17  Bruno Haible  <bruno@clisp.org>
6297
6298         sys_socket tests: Fix recent mistake.
6299         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
6300
6301 2011-09-17  Bruno Haible  <bruno@clisp.org>
6302
6303         putenv: Support for MSVC.
6304         * modules/putenv (Depends-on): Add environ.
6305         * lib/putenv.c (environ): Disable declaration.
6306         * lib/unistd.in.h: Update comment.
6307
6308 2011-09-17  Bruno Haible  <bruno@clisp.org>
6309
6310         math: Avoid macro redefinition warnings on MSVC.
6311         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
6312         Undefine before redefining.
6313
6314 2011-09-17  Bruno Haible  <bruno@clisp.org>
6315
6316         doc: Mention functions which are declared as macros.
6317         * doc/posix-functions/*[fl].texi: Mention that some functions are
6318         defined as macros with arguments only.
6319
6320 2011-09-17  Bruno Haible  <bruno@clisp.org>
6321
6322         Add dependencies to new dirent related modules.
6323         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
6324         * modules/fts (Depends-on): Likewise.
6325         * modules/glob (Depends-on): Likewise.
6326         * modules/savedir (Depends-on): Likewise.
6327         * modules/scandir (Depends-on): Likewise.
6328         * modules/dirent-safer (Depends-on): Add opendir, closedir.
6329         * modules/fdopendir (Depends-on): Add opendir.
6330
6331 2011-09-17  Bruno Haible  <bruno@clisp.org>
6332
6333         inet_pton: Support for MSVC on Windows Vista or newer.
6334         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
6335         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
6336         HAVE_DECL_INET_PTON is defined.
6337         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6338         On platforms with <winsock2.h>, test whether inet_pton is declared in
6339         <ws2tcpip.h>. If so, arrange to replace it.
6340         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6341         REPLACE_INET_PTON.
6342         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
6343         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
6344         (Depends-on, configure.ac): Update condition.
6345         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
6346
6347 2011-09-17  Bruno Haible  <bruno@clisp.org>
6348
6349         inet_ntop: Support for MSVC on Windows Vista or newer.
6350         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
6351         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
6352         HAVE_DECL_INET_NTOP is defined.
6353         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6354         On platforms with <winsock2.h>, test whether inet_ntop is declared in
6355         <ws2tcpip.h>. If so, arrange to replace it.
6356         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6357         REPLACE_INET_NTOP.
6358         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
6359         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
6360         (Depends-on, configure.ac): Update condition.
6361         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
6362
6363 2011-09-16  Eric Blake  <eblake@redhat.com>
6364
6365         test-fsync: yet another enhancement
6366         * tests/test-fsync.c (main): Also test behavior on read-only text
6367         file.
6368
6369 2011-09-16  Bruno Haible  <bruno@clisp.org>
6370
6371         Enhance fsync, fdatasync tests.
6372         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
6373         * tests/test-fdatasync.c (main): Likewise.
6374
6375 2011-09-16  Bruno Haible  <bruno@clisp.org>
6376
6377         Support for MSVC compiler: Ensure mode_t gets defined.
6378         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
6379         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6380         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6381         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
6382         * tests/test-fcntl-h.c: Check that mode_t is defined.
6383         * tests/test-sys_stat.c: Likewise.
6384         * tests/test-sys_types.c: Likewise.
6385         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
6386         * doc/posix-headers/sys_stat.texi: Likewise.
6387         * doc/posix-headers/sys_types.texi: Likewise.
6388
6389 2011-09-16  Bruno Haible  <bruno@clisp.org>
6390
6391         sys_stat: Support for MSVC.
6392         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
6393         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
6394         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
6395         MSVC.
6396
6397 2011-09-16  Bruno Haible  <bruno@clisp.org>
6398
6399         Support for MSVC compiler: Ensure off_t gets defined.
6400         * lib/unistd.in.h: Include <sys/types.h>.
6401         * tests/test-fcntl-h.c: Check that off_t is defined.
6402         * tests/test-sys_stat.c: Likewise.
6403         * tests/test-sys_types.c: Likewise.
6404
6405 2011-09-16  Eric Blake  <eblake@redhat.com>
6406
6407         fdatasync: port to Solaris
6408         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
6409         * modules/fdatasync (Link): Document it.
6410         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
6411
6412         fdatasync: port to MacOS X 10.7
6413         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
6414         declared.
6415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
6416         * modules/unistd (Makefile.am): Substitute it.
6417         * lib/unistd.in.h (fdatasync): Declare on MacOS.
6418         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
6419
6420         fdatasync: minor improvements
6421         * modules/fdatasync (Depends-on): Add condition for fsync.
6422         * lib/fdatasync.c (fdatasync): Add comment.
6423         * tests/test-unistd-c++.cc: Test fdatasync.
6424
6425         unistd: update refs to newer POSIX
6426         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
6427         Suggested by Bruno Haible.
6428
6429         fdatasync: new module
6430         * modules/fsync (Description): Document difference to fdatasync.
6431         * modules/fdatasync: New module.
6432         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
6433         * lib/fdatasync.c (fdatasync): Likewise.
6434         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
6435         defaults.
6436         * modules/unistd (Makefile.am): Set witnesses.
6437         * lib/unistd.in.h (fdatasync): Declare.
6438         * MODULES.html.sh: Document it.
6439         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
6440         * modules/fdatasync-tests: New test.
6441         * tests/test-fdatasync.c: Likewise.
6442
6443 2011-09-16  Eric Blake  <eblake@redhat.com>
6444
6445         test-fsync: enhance tests
6446         * modules/fsync-tests (Depends-on): Add errno, for mingw.
6447         * tests/test-fsync.c (main): Enhance test.
6448
6449 2011-09-15  Bruno Haible  <bruno@clisp.org>
6450
6451         Support for MSVC compiler: Ensure ssize_t gets defined.
6452         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
6453         * doc/posix-headers/stdio.texi: Likewise.
6454         * modules/stdio (Depends-on): Add ssize_t.
6455         * modules/sys_socket (Depends-on): Likewise.
6456         * modules/sys_types (Depends-on): Likewise.
6457         * modules/sys_uio (Depends-on): Likewise.
6458         * modules/unistd (Depends-on): Likewise.
6459         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
6460         * tests/test-sys_types.c: Check that ssize_t is defined.
6461
6462 2011-09-14  Bruno Haible  <bruno@clisp.org>
6463
6464         Avoid using #, the m4 comment starter character, near brackets.
6465         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
6466         delimiter character in sed expressions.
6467         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6468         Suggested by Eric Blake.
6469
6470         Properly quote AC_CHECK_DECLS' 4th argument.
6471         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
6472         argument.
6473         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6474         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6475         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6476         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6477         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6478         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
6479         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
6480         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
6481         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
6482         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6483         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
6484         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6485         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6486         * m4/isinf.m4 (gl_ISINF): Likewise.
6487         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6488         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6489         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6490         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6491         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6492         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6493         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6494         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6495         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
6496         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6497         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6498         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6499         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
6500         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6501         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6502         Reported by Eric Blake.
6503
6504         Properly quote AC_CHECK_DECL's 4th argument.
6505         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
6506         argument.
6507         * m4/argp.m4 (gl_ARGP): Likewise.
6508         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6509         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6510         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6511         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6512         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
6513         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
6514         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6515         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6516         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6517         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6518         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6519         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6520         Reported by Eric Blake.
6521
6522 2011-09-14  Eric Blake  <eblake@redhat.com>
6523
6524         opendir: avoid compile warning
6525         * lib/opendir.c (includes): Always include errno.h.
6526         Reported by Tatsuro MATSUOKA.
6527
6528 2011-09-14  Jim Meyering  <meyering@redhat.com>
6529
6530         maint.mk: sc_tight_scope: propagate failure from sub-make
6531         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
6532         Reported by Martin von Gagern.
6533
6534 2011-09-13  Bruno Haible  <bruno@clisp.org>
6535
6536         tempname: Support for MSVC.
6537         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
6538         MSVC.
6539         * modules/tempname (Depends-on): Add fcntl-h.
6540
6541 2011-09-13  Bruno Haible  <bruno@clisp.org>
6542
6543         sys_time: Support for MSVC.
6544         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
6545         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
6546         include <winsock2.h>.
6547         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
6548         function declarations that collide with POSIX.
6549         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
6550         (Makefile.am): Substitute HAVE_WINSOCK2_H.
6551
6552 2011-09-13  Bruno Haible  <bruno@clisp.org>
6553
6554         stat: Support for MSVC.
6555         * lib/stat.c: Include pathmax.h.
6556         * modules/stat (Depends-on): Add pathmax.
6557
6558         pathmax: Support for native Windows.
6559         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
6560
6561 2011-09-12  Bruno Haible  <bruno@clisp.org>
6562
6563         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
6564         * lib/dirent.in.h (struct dirent): New type.
6565         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
6566         DT_WHT): New macros.
6567         (DIR): New type.
6568         (opendir, closedir): Declare only if the module 'opendir' is enabled.
6569         (readdir, rewinddir): New declarations.
6570         * lib/dirent-private.h: New file.
6571         * lib/opendir.c: New file.
6572         * lib/readdir.c: New file.
6573         * lib/rewinddir.c: New file.
6574         * lib/closedir.c: New file.
6575         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
6576         * m4/opendir.m4: New file.
6577         * m4/readdir.m4: New file.
6578         * m4/rewinddir.m4: New file.
6579         * m4/closedir.m4: New file.
6580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
6581         REPLACE_CLOSEDIR here.
6582         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
6583         readdir, rewinddir are declared.
6584         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
6585         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
6586         HAVE_REWINDDIR, HAVE_CLOSEDIR.
6587         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
6588         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
6589         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
6590         * modules/opendir: New file.
6591         * modules/readdir: New file.
6592         * modules/rewinddir: New file.
6593         * modules/closedir: New file.
6594         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
6595         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
6596         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
6597         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
6598         * NEWS: Mention the 'fchdir' change.
6599
6600 2011-09-11  Bruno Haible  <bruno@clisp.org>
6601
6602         asm-underscore.m4: Support for MSVC.
6603         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
6604         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
6605
6606 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
6607
6608         Doc about crypt functions.
6609         * doc/posix-functions/crypt.texi: Expand range of glibc versions
6610         needing for _GNU_SOURCE to get crypt.
6611         * doc/posix-functions/encrypt.texi: Likewise.
6612         * doc/posix-functions/setkey.texi: Likewise.
6613
6614 2011-09-11  Bruno Haible  <bruno@clisp.org>
6615
6616         doc: Update regarding MSVC 9.
6617         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
6618         tested".
6619         * doc/posix-functions/*.texi: Update with info about MSVC 9.
6620         * doc/posix-headers/*.texi: Likewise.
6621         * doc/pastposix-functions/*.texi: Likewise.
6622         * doc/glibc-functions/*.texi: Likewise.
6623         * doc/glibc-headers/*.texi: Likewise.
6624
6625 2011-09-11  Bruno Haible  <bruno@clisp.org>
6626
6627         unistd et al.: Don't assume <unistd.h> exists.
6628         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
6629         does not exist.
6630         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
6631         exist. But include <stdlib.h>.
6632         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
6633         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
6634         symlink() does not exist.
6635         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
6636         include <io.h> instead.
6637         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
6638         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
6639         include <direct.h> instead.
6640         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6641         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6642         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
6643         <io.h> instead.
6644         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
6645         correctly if the system does not have hard links.
6646         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
6647         <direct.h> instead.
6648         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
6649         it when looking for function declarations.
6650         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
6651         <direct.h> and <io.h> instead.
6652         * doc/posix-headers/unistd.texi: More details about MSVC problem.
6653
6654 2011-09-11  Bruno Haible  <bruno@clisp.org>
6655
6656         strcase: Support for MSVC.
6657         * modules/strcase (Status, Notice): Remove obsoletion mark.
6658         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
6659         * doc/posix-functions/strncasecmp.texi: Likewise.
6660
6661         strings: Don't assume <strings.h> exists.
6662         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
6663         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
6664         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
6665         * doc/posix-headers/strings.texi: Mention the MSVC problem.
6666
6667 2011-09-11  Bruno Haible  <bruno@clisp.org>
6668
6669         dirent: Don't assume <dirent.h> exists.
6670         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
6671         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
6672         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
6673         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
6674
6675 2011-09-11  Bruno Haible  <bruno@clisp.org>
6676
6677         Fix wint_t on MSVC.
6678         * lib/wchar.in.h (wint_t): On MSVC, override it.
6679         * lib/wctype.in.h (wint_t): Likewise.
6680         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
6681         MSVC.
6682         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
6683         * doc/posix-headers/wctype.texi: Likewise.
6684
6685 2011-09-11  Bruno Haible  <bruno@clisp.org>
6686
6687         sys_types: Fix typo.
6688         * lib/sys_types.in.h: Fix typo in comment.
6689         Reported by Paul Eggert.
6690
6691         Support for MSVC compiler: Ensure size_t gets defined.
6692         * modules/strings (Depends-on): Add 'sys_types'.
6693         * modules/sys_uio (Depends-on): Likewise.
6694         * lib/sys_uio.in.h: Update comment.
6695
6696         C++ tests for module 'sys_types'.
6697         * modules/sys_types-c++-tests: New file.
6698         * tests/test-sys_types-c++.cc: New file.
6699
6700         Tests for module 'sys_types'.
6701         * modules/sys_types-tests: New file.
6702         * tests/test-sys_types.c: New file.
6703
6704         New module 'sys_types'.
6705         * lib/sys_types.in.h: New file.
6706         * m4/sys_types_h.m4: New file.
6707         * modules/sys_types: New file.
6708         * doc/posix-headers/sys_types.texi: Mention the new module and the
6709         size_t problem on MSVC 9.
6710
6711 2011-09-11  Bruno Haible  <bruno@clisp.org>
6712
6713         Support for MSVC compiler: Avoid division by a literal 0.
6714         * lib/math.in.h (NAN): Define through a function call also on MSVC.
6715         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
6716         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
6717         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
6718         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
6719         * tests/infinity.h: New file.
6720         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
6721         on MSVC.
6722         * tests/test-ceilf1.c: Include infinity.h.
6723         (main): Use Infinityf.
6724         * tests/test-ceil1.c: Include infinity.h.
6725         (main): Use Infinityd.
6726         * tests/test-ceill.c: Include infinity.h.
6727         (main): Use Infinityl.
6728         * tests/test-dprintf-posix.c: Include infinity.h.
6729         (test_function): Use Infinityd.
6730         * tests/test-floorf1.c: Include infinity.h.
6731         (main): Use Infinityf.
6732         * tests/test-floor1.c: Include infinity.h.
6733         (main): Use Infinityd.
6734         * tests/test-floorl.c: Include infinity.h.
6735         (main): Use Infinityl.
6736         * tests/test-fprintf-posix.c: Include infinity.h.
6737         (test_function): Use Infinityd.
6738         * tests/test-frexp.c: Include infinity.h.
6739         (main): Use Infinityd.
6740         * tests/test-frexpl.c: Include infinity.h.
6741         (main): Use Infinityl.
6742         * tests/test-isfinite.c: Include infinity.h.
6743         (test_isfinitef): Use Infinityf.
6744         (test_isfinited): Use Infinityd.
6745         (test_isfinitel): Use Infinityl.
6746         * tests/test-isinf.c: Include infinity.h.
6747         (test_isinff): Use Infinityf.
6748         (test_isinfd): Use Infinityd.
6749         (test_isinfl): Use Infinityl.
6750         * tests/test-isnan.c: Include infinity.h.
6751         (test_float): Use Infinityf.
6752         (test_double): Use Infinityd.
6753         (test_long_double): Use Infinityl.
6754         * tests/test-isnanf.h: Include infinity.h.
6755         (main): Use Infinityf.
6756         * tests/test-isnand.h: Include infinity.h.
6757         (main): Use Infinityd.
6758         * tests/test-isnanl.h: Include infinity.h.
6759         (main): Use Infinityl.
6760         * tests/test-ldexpl.c: Include infinity.h.
6761         (main): Use Infinityl.
6762         * tests/test-printf-posix.h: Include infinity.h.
6763         (test_function): Use Infinityd.
6764         * tests/test-roundf1.c: Include infinity.h.
6765         (main): Use Infinityf.
6766         * tests/test-round1.c: Include infinity.h.
6767         (main): Use Infinityd.
6768         * tests/test-roundl.c: Include infinity.h.
6769         (main): Use Infinityl.
6770         * tests/test-signbit.c: Include infinity.h.
6771         (test_signbitf): Use Infinityf.
6772         (test_signbitd): Use Infinityd.
6773         (test_signbitl): Use Infinityl.
6774         * tests/test-snprintf-posix.h: Include infinity.h.
6775         (test_function): Use Infinityd, Infinityl.
6776         * tests/test-sprintf-posix.h: Include infinity.h.
6777         (test_function): Use Infinityd, Infinityl.
6778         * tests/test-truncf1.c: Include infinity.h.
6779         (main): Use Infinityf.
6780         * tests/test-trunc1.c: Include infinity.h.
6781         (main): Use Infinityd.
6782         * tests/test-truncl.c: Include infinity.h.
6783         (main): Use Infinityl.
6784         * tests/test-vasnprintf-posix.c: Include infinity.h.
6785         (test_function): Use Infinityd, Infinityl.
6786         * tests/test-vasprintf-posix.c: Include infinity.h.
6787         (test_function): Use Infinityd, Infinityl.
6788         * modules/ceilf-tests (Files): Add tests/infinity.h.
6789         * modules/ceil-tests (Files): Likewise.
6790         * modules/ceill-tests (Files): Likewise.
6791         * modules/dprintf-posix-tests (Files): Likewise.
6792         * modules/floorf-tests (Files): Likewise.
6793         * modules/floor-tests (Files): Likewise.
6794         * modules/floorl-tests (Files): Likewise.
6795         * modules/fprintf-posix-tests (Files): Likewise.
6796         * modules/frexp-tests (Files): Likewise.
6797         * modules/frexp-nolibm-tests (Files): Likewise.
6798         * modules/frexpl-tests (Files): Likewise.
6799         * modules/frexpl-nolibm-tests (Files): Likewise.
6800         * modules/isfinite-tests (Files): Likewise.
6801         * modules/isinf-tests (Files): Likewise.
6802         * modules/isnan-tests (Files): Likewise.
6803         * modules/isnanf-tests (Files): Likewise.
6804         * modules/isnanf-nolibm-tests (Files): Likewise.
6805         * modules/isnand-tests (Files): Likewise.
6806         * modules/isnand-nolibm-tests (Files): Likewise.
6807         * modules/isnanl-tests (Files): Likewise.
6808         * modules/isnanl-nolibm-tests (Files): Likewise.
6809         * modules/ldexpl-tests (Files): Likewise.
6810         * modules/printf-posix-tests (Files): Likewise.
6811         * modules/roundf-tests (Files): Likewise.
6812         * modules/round-tests (Files): Likewise.
6813         * modules/roundl-tests (Files): Likewise.
6814         * modules/signbit-tests (Files): Likewise.
6815         * modules/snprintf-posix-tests (Files): Likewise.
6816         * modules/sprintf-posix-tests (Files): Likewise.
6817         * modules/truncf-tests (Files): Likewise.
6818         * modules/trunc-tests (Files): Likewise.
6819         * modules/truncl-tests (Files): Likewise.
6820         * modules/vasnprintf-posix-tests (Files): Likewise.
6821         * modules/vasprintf-posix-tests (Files): Likewise.
6822         * modules/vdprintf-posix-tests (Files): Likewise.
6823         * modules/vfprintf-posix-tests (Files): Likewise.
6824         * modules/vprintf-posix-tests (Files): Likewise.
6825         * modules/vsnprintf-posix-tests (Files): Likewise.
6826         * modules/vsprintf-posix-tests (Files): Likewise.
6827         * modules/xprintf-posix-tests (Files): Likewise.
6828
6829 2011-09-11  Bruno Haible  <bruno@clisp.org>
6830
6831         Ensure pid_t gets defined.
6832         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
6833         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6834         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6835         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6836         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6837         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6838         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6839         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6840         * tests/test-fcntl-h.c: Check that pid_t is defined.
6841         * tests/test-sched.c: Likewise.
6842         * tests/test-termios.c: Likewise.
6843         * tests/test-time.c: Likewise.
6844         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
6845         * doc/posix-headers/signal.texi: Likewise.
6846         * doc/posix-headers/sys_types.texi: Likewise.
6847         * doc/posix-headers/time.texi: Likewise.
6848
6849 2011-09-11  Bruno Haible  <bruno@clisp.org>
6850
6851         acl: Fix compilation on Solaris 10 (older version).
6852         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
6853         of ACE_EVERYONE.
6854         * lib/set-mode-acl.c (qset_acl): Likewise.
6855         Reported by Christian Jullien <eligis@orange.fr>.
6856
6857 2011-09-10  Bruno Haible  <bruno@clisp.org>
6858
6859         iconv, unsetenv: Add support for MSVC compiler.
6860         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
6861         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
6862
6863 2011-09-10  Bruno Haible  <bruno@clisp.org>
6864
6865         *printf: Add support for MSVC compiler.
6866         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
6867         handles the exception caused by the %n directive. When cross-compiling,
6868         guess no on native Windows.
6869         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6870         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
6871         emulate it through vsnprintf.
6872         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
6873         * doc/posix-functions/dprintf.texi: Update documentation regarding
6874         MSVC 9.
6875         * doc/posix-functions/fprintf.texi: Likewise.
6876         * doc/posix-functions/printf.texi: Likewise.
6877         * doc/posix-functions/snprintf.texi: Likewise.
6878         * doc/posix-functions/sprintf.texi: Likewise.
6879         * doc/posix-functions/swprintf.texi: Likewise.
6880         * doc/posix-functions/vdprintf.texi: Likewise.
6881         * doc/posix-functions/vfprintf.texi: Likewise.
6882         * doc/posix-functions/vprintf.texi: Likewise.
6883         * doc/posix-functions/vsnprintf.texi: Likewise.
6884         * doc/posix-functions/vsprintf.texi: Likewise.
6885         * doc/glibc-functions/asprintf.texi: Likewise.
6886         * doc/glibc-functions/obstack_printf.texi: Likewise.
6887         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6888         * doc/glibc-functions/vasprintf.texi: Likewise.
6889
6890 2011-09-10  Bruno Haible  <bruno@clisp.org>
6891
6892         nocrash: Add support for native Windows.
6893         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
6894
6895 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
6896             Bruno Haible  <bruno@clisp.org>
6897
6898         absolute-header, include-next: Add support for MSVC compiler.
6899         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
6900         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
6901         directory separator in #line directives.
6902         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
6903         recognize also backslash as directory separator in #line directives.
6904
6905 2011-09-08  Jim Meyering  <meyering@redhat.com>
6906
6907         maint.mk: mark the post-release commit log with "maint: " prefix
6908         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
6909         one-line commit-log summary.
6910
6911 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
6912             Bruno Haible  <bruno@clisp.org>
6913
6914         Doc about crypt functions.
6915         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
6916         systems.
6917         * doc/posix-functions/encrypt.texi: Likewise.
6918         * doc/posix-functions/setkey.texi: Likewise.
6919
6920 2011-09-08  Simon Josefsson  <simon@josefsson.org>
6921
6922         * lib/gc.h: Fix copyright header.
6923
6924 2011-09-07  Bruno Haible  <bruno@clisp.org>
6925
6926         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
6927         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
6928         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
6929
6930 2011-09-07  Bruno Haible  <bruno@clisp.org>
6931
6932         openat: Work around compilation error with OSF/1 5.1 DTK cc.
6933         * lib/fopen.c: Use different syntax for include of <stdio.h>.
6934         * lib/freopen.c: Likewise.
6935         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
6936         * lib/lstat.c: Likewise.
6937         * lib/stat.c: Likewise.
6938         * lib/open.c: Use different syntax for include of <fcntl.h>.
6939         * lib/openat.c: Include fcntl.h again, explicitly.
6940
6941 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
6942
6943         parse-datetime: document the newly accepted format
6944         * doc/parse-datetime.texi (Combined date and time of day items):
6945         New section.
6946
6947 2011-09-06  Bruno Haible  <bruno@clisp.org>
6948
6949         acl: Fix a test failure on newer Solaris 10 with ZFS.
6950         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
6951         ENOSYS as no ACL.
6952         Reported by Jim Meyering.
6953
6954 2011-09-06  Bruno Haible  <bruno@clisp.org>
6955
6956         acl: Update for AIX >= 5.3 with NFS.
6957         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
6958         ENOSYS as no ACL.
6959
6960         acl: Fix a test failure on AIX >= 5.3 with NFS.
6961         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
6962         as no ACL.
6963
6964 2011-09-06  Bruno Haible  <bruno@clisp.org>
6965
6966         acl: Fix a test failure on IRIX 6.5 with NFS.
6967         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
6968         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
6969         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
6970         * lib/copy-acl.c (qcopy_acl): Likewise.
6971
6972 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6973
6974         openat: port to AIX 7.1 with large files
6975         AIX 7.1 does a "#define openat open64at" if large files are in use,
6976         so we can't simply #undef openat.  Use the orig_openat trick (similar
6977         to orig_open in lib/open.c) to work around the problem.  Problem
6978         reported by Kevin Brott for GNU tar, in the thread containing
6979         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
6980         * lib/openat.c (__need_system_fcntl_h): Define first.
6981         Include <fcntl.h> and <sys/types.h> before undefining.
6982         (orig_openat) [HAVE_OPENAT]: New inline function.
6983         (openat) [HAVE_OPENAT]: Do not undef.
6984         (rpl_openat): Use orig_openat, not openat.
6985
6986 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6987             Bruno Haible  <bruno@clisp.org>
6988
6989         acl: Avoid errors on NonStop Kernel.
6990         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
6991         ENOTSUP errors.
6992
6993 2011-09-05  Bruno Haible  <bruno@clisp.org>
6994
6995         acl: Clean up Solaris code.
6996         * lib/acl-internal.h: Remove no-op #if.
6997         * lib/file-has-acl.c: Likewise.
6998         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
6999         * lib/copy-acl.c (qcopy_acl): Likewise.
7000
7001 2011-09-05  Bruno Haible  <bruno@clisp.org>
7002
7003         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
7004         binaries built on the original Solaris 10.
7005         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
7006         trivial.
7007
7008 2011-09-05  Bruno Haible  <bruno@clisp.org>
7009
7010         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7011         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
7012         10.
7013         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
7014         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
7015         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
7016         instead of acl_get, facl_get, acl_set, facl_set.
7017
7018 2011-09-05  Bruno Haible  <bruno@clisp.org>
7019
7020         copy-file: Try unit tests on more file systems.
7021         * tests/test-copy-file-1.sh: New file.
7022         * tests/test-copy-file-2.sh: New file.
7023         * modules/copy-file-tests (Files): Add them.
7024         (Makefile.am): Add them to TESTS.
7025
7026         acl: Try unit tests on more file systems.
7027         * tests/test-file-has-acl-1.sh: New file.
7028         * tests/test-file-has-acl-2.sh: New file.
7029         * tests/test-set-mode-acl-1.sh: New file.
7030         * tests/test-set-mode-acl-2.sh: New file.
7031         * tests/test-copy-acl-1.sh: New file.
7032         * tests/test-copy-acl-2.sh: New file.
7033         * modules/acl-tests (Files): Add them.
7034         (Makefile.am): Add them to TESTS.
7035
7036 2011-09-04  Bruno Haible  <bruno@clisp.org>
7037
7038         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7039         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
7040         10.
7041         (OLD_ALLOW, OLD_DENY): New macros.
7042         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
7043         ACE_ACCESS_ALLOWED_ACE_TYPE.
7044         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
7045         ACE_ACCESS_DENIED_ACE_TYPE.
7046         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
7047         (NEW_ACE_EXECUTE): Fix value.
7048         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
7049         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
7050         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
7051         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
7052         NEW_ACE_SYNCHRONIZE): New macros.
7053         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
7054         instead of acl_fromtext, acl_set, facl_set.
7055         Fixes a coreutils/tests/cp/perm failure.
7056
7057 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
7058
7059         openat: test for fstatat (..., 0) bug
7060         Further testing with tar suggests that fstatat (..., 0)
7061         does not work in general, on AIX 7.1; see
7062         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
7063         So, give up entirely on AIX 7.1's fstatat, and fall back on our
7064         replacement fstatat (which is what older AIX releases were using
7065         anyway).
7066         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
7067         use is now changed to orig_fstatat.  This was probably the right
7068         thing to do anyway.
7069         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
7070         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
7071         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
7072         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
7073         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
7074         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
7075         if the bug is found.
7076
7077         openat: test for fstatat (AT_FDCWD, ..., 0) bug
7078         This tests for another fstatat bug on AIX 7.1:
7079         fstatat (AT_FDCWD, ..., 0) does not work.  See
7080         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
7081         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
7082         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
7083         (rpl_fstatat): Adjust so that it works around either (or both)
7084         bugs if present.
7085         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
7086
7087 2011-09-03  Karl Berry  <karl@gnu.org>
7088
7089         * doc/regex.texi (Character Class Operators): Avoid literal ":"
7090         in index entries.
7091
7092 2011-09-02  Bruno Haible  <bruno@clisp.org>
7093
7094         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
7095         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
7096         values of AR, ARFLAGS, RANLIB.
7097         Reported by John W. Eaton <jwe@gnu.org> for Octave.
7098
7099 2011-09-02  Bruno Haible  <bruno@clisp.org>
7100
7101         Find 'ar' program that fits with --host argument.
7102         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
7103
7104 2011-09-02  Bruno Haible  <bruno@clisp.org>
7105
7106         tests: init.sh: Support any non-GNU diff.
7107         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
7108         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
7109         Solaris 8.
7110
7111 2011-09-02  Bruno Haible  <bruno@clisp.org>
7112
7113         tests: init.sh: work also with any non-GNU diff that supports -u
7114         * tests/init.sh: Relax check for diff -u support.
7115         Rather than checking for GNU diff via --version, simply check
7116         for support for -u itself.  Useful at least on OpenBSD 4.9,
7117         AIX 7.1, IRIX 6.5, and Solaris 10.
7118
7119 2011-09-01  Bruno Haible  <bruno@clisp.org>
7120
7121         strtoimax, strtoumax: Document problem on HP-UX 11.
7122         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
7123         * doc/posix-functions/strtoumax.texi: Likewise.
7124
7125 2011-09-01  Bruno Haible  <bruno@clisp.org>
7126
7127         strtoumax: Avoid link error on OSF/1 with DTK cc.
7128         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
7129         defined as a function.
7130         * modules/strtoumax (Depends-on, configure.ac): Test only whether
7131         strtoumax is defined, not whether it is declared.
7132
7133 2011-09-01  Bruno Haible  <bruno@clisp.org>
7134
7135         strtoimax: Avoid link error on OSF/1 with DTK cc.
7136         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
7137         defined as a function.
7138         * modules/strtoimax (Depends-on, configure.ac): Test only whether
7139         strtoimax is defined, not whether it is declared.
7140
7141 2011-09-01  Bruno Haible  <bruno@clisp.org>
7142
7143         imaxdiv: Avoid link error on OSF/1 with DTK cc.
7144         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
7145         as a function.
7146         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
7147         whether it is declared.
7148
7149 2011-09-01  Bruno Haible  <bruno@clisp.org>
7150
7151         imaxabs: Avoid link error on OSF/1 with DTK cc.
7152         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
7153         as a function.
7154         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
7155         whether it is declared.
7156
7157 2011-09-01  Bruno Haible  <bruno@clisp.org>
7158
7159         Tests for module 'strtoumax'.
7160         * modules/strtoumax-tests: New file.
7161         * tests/test-strtoumax.c: New file.
7162
7163         Tests for module 'strtoimax'.
7164         * modules/strtoimax-tests: New file.
7165         * tests/test-strtoimax.c: New file.
7166
7167         Tests for module 'imaxdiv'.
7168         * modules/imaxdiv-tests: New file.
7169         * tests/test-imaxdiv.c: New file.
7170
7171         Tests for module 'imaxabs'.
7172         * modules/imaxabs-tests: New file.
7173         * tests/test-imaxabs.c: New file.
7174
7175 2011-09-01  Bruno Haible  <bruno@clisp.org>
7176
7177         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
7178         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
7179         pthread_create.
7180
7181 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7182
7183         openat: work around AIX 7.1 fstatat issue
7184         This should fix the problem that was not properly fixed
7185         in the previous change, dated 2011-08-30.
7186         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
7187         __need_system_stat_h defined.
7188         (orig_fstatat) [HAVE_FSTATAT]: New function.
7189         (rpl_fstatat): Go back to the old way of doing things,
7190         except call orig_fstatat instead of fstatat.
7191         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
7192         Remove unnecessary check whether fstatat fills in st_size etc.
7193
7194 2011-09-01  Bruno Haible  <bruno@clisp.org>
7195
7196         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
7197         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
7198         just include the system's header.
7199
7200 2011-08-31  Jim Meyering  <meyering@redhat.com>
7201
7202         tests: avoid spurious assertion failure in test-float.c on ppc64
7203         * tests/test-float.c (test_long_double): Comment out an assertion,
7204         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
7205         with gcc-4.4.4.
7206
7207         maint: indent with spaces, not TABs
7208         I need to get in the habit of running gnulib's "make check".
7209         Both of these would have been caught.
7210         * m4/largefile.m4: Indent with spaces, not TABs.
7211         * lib/parse-datetime.y (iso_8601_time): Likewise.
7212         Spotted by Pádraig Brady.
7213
7214         test-parse-datetime.c: accommodate a relatively strict gcc warning
7215         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
7216         to avoid a warning from gcc's -Werror=missing-declarations.
7217         Insert a few spaces-before-funcall-parenthesis.
7218
7219 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
7220
7221         parse-datetime: accept ISO 8601 date and time rep with "T" separator
7222         The parser now accepts ISO 8601 date-time strings with "T" as the
7223         separator.  It has long parsed dates like "2004-02-29 16:21:42"
7224         with a space between the date and time strings.  Now it also parses
7225         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
7226         variants like "2004-02-29T16:21:42.333-07:00"
7227         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
7228         of day representation using the 'T' separator character.
7229         * doc/parse-datetime.texi (General date syntax): replace use of
7230         deprecated --iso-8601 option with --rfc-3339 in example of date
7231         command output formats that can be parsed.
7232         * tests/test-parse-datetime.c (tm_diff): New function, taken from
7233         lib/parse-datetime.y.
7234         (gmt_offset): New function.
7235         (main): Add additional test cases to validate ISO8601 extended
7236         date and time of day parsing.
7237
7238 2011-08-31  Bruno Haible  <bruno@clisp.org>
7239
7240         freopen: Documentation.
7241         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
7242         name.
7243         Reported by Claudio Bley <claudio.bley@gmail.com>.
7244
7245 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
7246
7247         freopen: Don't crash if the filename argument is NULL.
7248         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
7249         NULL.
7250
7251 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
7252
7253         openat: work around AIX 7.1 fstatat bug
7254         Problem reported by Kevin Brott for GNU tar, in the thread containing
7255         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
7256         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
7257         FSTATAT_ST_SIZE_ETC_BROKEN.
7258         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
7259         rpl_fstatat.
7260         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
7261         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
7262         AC_CHECK_FUNCS_ONCE for fstatat.
7263         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
7264         fchmodat, mkdirat, openat and unlinkat.
7265
7266 2011-08-30  Bruno Haible  <bruno@clisp.org>
7267
7268         Avoid endless recursions if config.h includes some header files.
7269         * lib/fopen.c (__need_FILE): Define already before including config.h.
7270         * lib/freopen.c (__need_FILE): Likewise.
7271         * lib/open.c (__need_system_fcntl_h): Likewise.
7272         * lib/stat.c (__need_system_sys_stat_h): Likewise.
7273         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
7274         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7275
7276 2011-08-25  Karl Berry  <karl@gnu.org>
7277
7278         * config/srclist.txt (ylwrap): new try.
7279         * build-aux/ylwrap: new file.
7280
7281 2011-08-23  Bruno Haible  <bruno@clisp.org>
7282
7283         tmpdir: Use a good default directory on native Windows.
7284         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
7285         (P_tmpdir): Default to _P_tmpdir on native Windows.
7286         (path_search): On native Windows, try the value returned by GetTempPath
7287         before trying P_tmpdir.
7288         * modules/tmpdir (Depends-on): Add pathmax.
7289         Suggested by John Darrington <john@darrington.wattle.id.au>.
7290
7291 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
7292
7293         doc: fix typo in README-release
7294         * top/README-release: Capitalize first word of a sentence.
7295
7296 2011-08-19  Jim Meyering  <meyering@redhat.com>
7297
7298         fts: do not exhaust memory when processing million-entry directories
7299         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
7300         directory would require about 256*N bytes of memory.  Thus, it was
7301         easy to construct a directory too large to be processed by any of
7302         those tools.  With this change, fts' maximum memory utilization is
7303         now limited to around 30MB.
7304         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
7305         (fts_read): When we've processed the final entry (i.e., when
7306         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
7307         using the parent entry to read any remaining entries.  Dispatch
7308         depending on what fts_build returns:
7309         - NULL+stop, aka failure: stop
7310         - NULL otherwise: move up in the dir hierarchy
7311         - non-NULL: handle this new entry
7312         (fts_build): Declare and use new local, continue_readdir.
7313         Prepare to be called from fts_read, when the entries
7314         from a partially-read directory have just been exhausted.
7315         In that case, we'll skip the opendir and instead use the parent's
7316         fts_dirp and derive dir_fd from that.
7317         Finally, in the readdir loop, if we read max_entries entries,
7318         exit the loop ensuring *not* to call closedir.  This is required
7319         so that fts_dirp can be reused on a subsequent call.
7320         Prompted by Ben England's report of memory exhaustion in find
7321         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
7322
7323         maint: fts: move decl of `dp' down into while loop; split a long line
7324         * lib/fts.c (fts_build): No semantic change.
7325
7326         fts: add/use new struct member, fts_dirp
7327         We are about to use this to manage any directory with
7328         too many entries to read all of them into memory at once.
7329         To do that, we'll need to save the DIR* pointer in each
7330         affected FTSENT struct.
7331         * lib/fts_.h: Include <dirent.h>.
7332         (struct FTSENT) [fts_dirp]: New member.
7333         * lib/fts.c (closedir_and_clear): Define.
7334         Use it in place of closedir so that we are sure to
7335         clear the new fts_dirp member when done with it.
7336         (fts_alloc): Initialize the new member.
7337         (fts_lfree): Free, if needed.
7338
7339         maint: fts: give __opendir2 a new parameter and rename
7340         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
7341         than surreptitiously using sole caller's "dir_fd".
7342         (fts_opendir): Rename from __opendir2.
7343
7344         maint: fts.c: remove __opendir2's now-unused parameter, oflag
7345         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
7346
7347         maint: fts.c: correct off-by-one indentation
7348         * lib/fts.c (fts_build): Correct indentation, change style
7349         of a couple of block comments, and bracing style.
7350
7351         maint: fts.c: move __opendir2 #define "up" out of function body
7352         * lib/fts.c (__opendir2): Move "up".  No semantic change.
7353
7354         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
7355         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
7356         out for a long time and besides was useful only on BSD systems.
7357
7358 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7359
7360         regex: port to Stratus OpenVOS
7361         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
7362         define to empty, rather than attempting nonportable optimizations.
7363         Problem reported by Paul Green in:
7364         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
7365         and fix suggested by Eric Blake in:
7366         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
7367
7368 2011-08-17  Eric Blake  <eblake@redhat.com>
7369
7370         getcwd: fix test failures on mingw
7371         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
7372         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
7373         test if long directory cannot be created, and allow mingw errno.
7374
7375         getcwd-lgpl: fix m4 to match relaxed test for BSD
7376         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
7377         (gl_FUNC_GETCWD_SIGNATURE): New macro.
7378         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
7379         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
7380         signature problem.
7381
7382         getcwd: fix compilation on mingw64
7383         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
7384         getcwd.
7385         Reported by Marc-André Lureau.
7386
7387         pipe2: silence compiler warning
7388         * lib/pipe2.c (pipe2): Hide label if it is not used.
7389
7390 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
7391
7392         relocatable-prog: fix link error
7393         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
7394         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
7395         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
7396         into modules/relocatable-lib without noticing that
7397         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
7398         also needs to build relocatable.c.
7399
7400 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
7401
7402         getaddrinfo: fix sh typo in gai_strerrorA decl checking
7403         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
7404         shell code: it contained a 'break' that was not in a loop.
7405         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
7406         via a shell-language loop; this may have been true in old Autoconf
7407         versions, but it's not true in Autoconf 2.68.  I found this bug
7408         when testing coreutils git on Solaris 8, whose shell complains
7409         about the syntax error.
7410
7411 2011-08-12  Simon Josefsson  <simon@josefsson.org>
7412
7413         * lib/base64.c: Fix comment to reference RFC 4648.
7414         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
7415         <gvtulder@gmail.com>.
7416
7417 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7418
7419         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
7420
7421         po/Makefile.in.in: fix make -q problem
7422         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
7423         rule, since there's no file named 'check-macro-version' and its
7424         use as a file breaks make -q.
7425         (all): Don't depend on check-macro-version.
7426         (CHECK_MACRO_VERSION): New macro.
7427         (stamp-po): Use it.
7428
7429         configmake: fix make -q problem
7430         * modules/configmake (configmake.h): Update configmake.h's time stamp
7431         even if the file does not change.  Otherwise, 'make -q' fails.
7432         Problem reported by Simon Josefsson in
7433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
7434
7435 2011-08-11  Jim Meyering  <meyering@redhat.com>
7436
7437         git-version-gen: correct the advice in a comment
7438         * build-aux/git-version-gen: Correct comment.
7439         Don't recommend to list .tarball-version in .gitignore.
7440
7441 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7442
7443         base64: fix off-by-one buffer size bug
7444         Problem and (trivial) fix reported by Gijs van Tulder in
7445         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
7446         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
7447         * tests/test-base64.c (main): Catch the bug.
7448
7449 2011-08-10  Eric Blake  <eblake@redhat.com>
7450
7451         closein: correct comments
7452         * lib/closein.c (close_stdin): Improve comments.
7453
7454 2011-08-09  Bruno Haible  <bruno@clisp.org>
7455
7456         More tests for 'fseeko'.
7457         * tests/test-fseeko3.c: New file, from Eric Blake.
7458         * tests/test-fseeko3.sh: New file.
7459         * modules/fseeko-tests (Files): Add them.
7460         (TESTS): Add test-fseeko3.sh.
7461         (check_PROGRAMS): Add test-fseeko3.
7462
7463 2011-08-09  Eric Blake  <eblake@redhat.com>
7464
7465         fseeko: remove unneeded hack
7466         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
7467
7468         fseeko: fix bug on glibc
7469         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
7470         Reported by John W. Eaton.
7471
7472 2011-08-08  Bruno Haible  <bruno@clisp.org>
7473
7474         unictype/base: Fix interoperability with preinstalled libunistring.
7475         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
7476         Reported by Simon Josefsson.
7477
7478 2011-08-08  Bruno Haible  <bruno@clisp.org>
7479
7480         iswblank: Detect declaration correctly.
7481         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
7482         AC_CHECK_DECLS invocation.
7483
7484 2011-08-08  Bruno Haible  <bruno@clisp.org>
7485
7486         tcgetsid: Detect declaration correctly.
7487         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
7488         AC_CHECK_DECLS invocation.
7489         Reported by Simon Josefsson.
7490
7491 2011-08-08  Eric Blake  <eblake@redhat.com>
7492
7493         largefile: fix typo that regressed large file support
7494         * modules/largefile (configure.ac-early): Fix section name.
7495
7496 2011-08-06  Karl Berry  <karl@gnu.org>
7497
7498         * MODULES.html.sh (func_all_files): _Noreturn is no longer
7499         a separate module.
7500
7501 2011-08-05  Simon Josefsson  <simon@josefsson.org>
7502
7503         openat: Fix warnings and commens when building unlinkat.c on Hurd.
7504         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
7505         get prototype for free.
7506
7507 2011-08-04  Bruno Haible  <bruno@clisp.org>
7508
7509         Tests for module 'pathmax'.
7510         * modules/pathmax-tests: New file.
7511         * tests/test-pathmax.c: New file.
7512
7513         canonicalize-lgpl: Support larger filenames on the Hurd.
7514         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
7515         Reported by Paul Eggert.
7516
7517         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
7518         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
7519         * lib/chdir-long.h: Include pathmax.h.
7520         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
7521         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
7522         (PATH_MAX): Remove code that is done by pathmax.h.
7523         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
7524         * lib/tmpfile.c: Add a comment.
7525         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
7526         * modules/chdir-long (Depends-on): Add pathmax.
7527         * modules/getcwd (Depends-on): Add pathmax.
7528         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
7529         is not defined.
7530         * doc/posix-headers/limits.texi: Mention the pathmax module.
7531         * NEWS: Mention the change.
7532
7533 2011-08-02  Bruno Haible  <bruno@clisp.org>
7534
7535         pthread_sigmask: Actually use results of gl_THREADLIB.
7536         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
7537         gl_THREADLIB, not gl_[]THREADLIB.
7538         Reported by Eric Blake.
7539
7540 2011-08-02  Jim Meyering  <meyering@redhat.com>
7541
7542         maint.mk: relax the default _gl_TS_function_match regexp
7543         * top/maint.mk (_gl_TS_function_match): Don't require at least one
7544         space between function name and "(" in an "extern" declaration.
7545         That would fail to match a decl with no space there: extern void foo();
7546
7547 2011-07-31  Iain Nicol  <iain@thenicols.net>
7548
7549         git-version-gen: document that EXTRA_DIST must include .version
7550         * build-aux/git-version-gen: In the how-to-use comment, document
7551         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
7552         will fail when run from an unpacked distribution tarball.
7553
7554 2011-08-01  Bruno Haible  <bruno@clisp.org>
7555
7556         wctype-h: Fix last change.
7557         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
7558         REPLACE_TOWLOWER to 0.
7559         Reported by Sam Steingold <sds@gnu.org>.
7560
7561 2011-07-31  Bruno Haible  <bruno@clisp.org>
7562
7563         frexpl: Update autoconf test.
7564         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
7565         according to changes of 2011-06-20.
7566
7567 2011-07-31  Bruno Haible  <bruno@clisp.org>
7568
7569         sys_utsname: Add support for Minix.
7570         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
7571         <sys/utsname.h>.
7572         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7573         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
7574
7575 2011-07-31  Bruno Haible  <bruno@clisp.org>
7576
7577         strings: Add support for Minix.
7578         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
7579         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7580         * doc/posix-headers/strings.texi: Document the Minix problem.
7581
7582 2011-07-31  Bruno Haible  <bruno@clisp.org>
7583
7584         wctype-h: Add support for Minix.
7585         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
7586         REPLACE_TOWLOWER.
7587         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
7588         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
7589         REPLACE_ISWCNTRL.
7590
7591 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
7592
7593         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
7594         This is a performance improvement for 64-bit hosts: it causes the
7595         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
7596
7597 2011-07-31  Bruno Haible  <bruno@clisp.org>
7598
7599         stdioext: Add support for Minix.
7600         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
7601         * lib/fpurge.c (fpurge): Likewise.
7602         * lib/freadahead.c (freadahead): Likewise.
7603         * lib/freadable.c (freadable): Likewise.
7604         * lib/freading.c (freading): Likewise.
7605         * lib/freadptr.c (freadptr): Likewise.
7606         * lib/freadseek.c (freadptrinc): Likewise.
7607         * lib/fseeko.c (rpl_fseeko): Likewise.
7608         * lib/fseterr.c (fseterr): Likewise.
7609         * lib/fwritable.c (fwritable): Likewise.
7610         * lib/fwriting.c (fwriting): Likewise.
7611         * lib/fflush.c (clear_ungetc_buffer): Update comment.
7612         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
7613
7614 2011-07-31  Bruno Haible  <bruno@clisp.org>
7615
7616         errno: Port to Minix.
7617         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
7618         ECONNABORTED are defined.
7619         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
7620         GNULIB_defined_ECONNABORTED): New macros.
7621         * lib/strerror-override.h (strerror_override): Test also
7622         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
7623         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
7624         ECONNABORTED.
7625         * doc/posix-headers/errno.texi: Mention the Minix problem.
7626
7627 2011-07-31  Bruno Haible  <bruno@clisp.org>
7628
7629         Work around declaration collisions on Minix.
7630         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
7631         defined, set REPLACE_MBSINIT.
7632         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
7633         defined, set REPLACE_MBRTOWC.
7634         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
7635         set REPLACE_MBRLEN.
7636         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
7637         defined, set REPLACE_MBSRTOWCS.
7638         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
7639         defined, set REPLACE_WCRTOMB.
7640         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
7641         defined, set REPLACE_WCSRTOMBS.
7642
7643 2011-07-31  Bruno Haible  <bruno@clisp.org>
7644
7645         Add support for Minix with ACK compiler.
7646         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
7647         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
7648         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
7649
7650 2011-07-31  Bruno Haible  <bruno@clisp.org>
7651
7652         Documentation about Minix.
7653         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
7654         * doc/glibc-headers/*.texi: Likewise.
7655         * doc/posix-functions/*.texi: Likewise.
7656         * doc/glibc-functions/*.texi: Likewise.
7657
7658 2011-07-31  Bruno Haible  <bruno@clisp.org>
7659
7660         snippet/warn-on-use: Fix indentation.
7661         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
7662
7663 2011-07-25  Jim Meyering  <meyering@redhat.com>
7664
7665         tests: test-update-copyright.sh: remove unnecessary "rm" commands
7666         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
7667         commands.
7668
7669 2011-07-27  Jim Meyering  <meyering@redhat.com>
7670
7671         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
7672         * top/maint.mk (gl_extract_significant_defines_): Now that
7673         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
7674         gnulib/lib/signal.in.h, and now that we recommend to
7675         define-if-undefined those two symbols in application code,
7676         we must filter them out of the "significant" list.
7677         This avoids a "make syntax-check" failure in coreutils.
7678
7679 2011-07-26  Eric Blake  <eblake@redhat.com>
7680
7681         warnings: add comments about previous patch
7682         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
7683         * m4/include_next.m4: Likewise.
7684         * m4/warn-on-use.m4: Likewise.
7685         * m4/warnings.m4: Likewise, and simplify use.
7686         Suggested by Stefano Lattarini.
7687
7688         include-next, warnings: support older autoconf
7689         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
7690         AS_VAR_PUSHDEF in a way that works with older autoconf.
7691         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
7692         Reported by Daniel P. Berrange.
7693
7694 2011-07-25  Bruno Haible  <bruno@clisp.org>
7695
7696         fseek, ftell: Fix doc.
7697         * doc/posix-functions/fseek.texi: Reword statement about
7698         AC_SYS_LARGEFILE.
7699         * doc/posix-functions/ftell.texi: Likewise.
7700
7701 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7702             Bruno Haible  <bruno@clisp.org>
7703
7704         Add dependencies to the 'largefile' module.
7705         * modules/fopen (Depends-on): Add 'largefile'.
7706         * modules/freopen (Depends-on): Likewise.
7707         * modules/fseeko (Depends-on): Likewise.
7708         * modules/ftello (Depends-on): Likewise.
7709         * modules/glob (Depends-on): Likewise.
7710         * modules/lseek (Depends-on): Likewise.
7711         * modules/lstat (Depends-on): Likewise.
7712         * modules/mkostemp (Depends-on): Likewise.
7713         * modules/mkostemps (Depends-on): Likewise.
7714         * modules/mkstemp (Depends-on): Likewise.
7715         * modules/mkstemps (Depends-on): Likewise.
7716         * modules/open (Depends-on): Likewise.
7717         * modules/openat (Depends-on): Likewise.
7718         * modules/pread (Depends-on): Likewise.
7719         * modules/pwrite (Depends-on): Likewise.
7720         * modules/scandir (Depends-on): Likewise.
7721         * modules/stat (Depends-on): Likewise.
7722         * modules/tmpfile (Depends-on): Likewise.
7723         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
7724         since the containing module now depends on the largefile module.
7725         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
7726         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
7727         off_t is fixed by gnulib.
7728         * doc/posix-functions/freopen.texi: Likewise.
7729         * doc/posix-functions/fseeko.texi: Likewise.
7730         * doc/posix-functions/fstatat.texi: Likewise.
7731         * doc/posix-functions/ftello.texi: Likewise.
7732         * doc/posix-functions/glob.texi: Likewise.
7733         * doc/posix-functions/lseek.texi: Likewise.
7734         * doc/posix-functions/lstat.texi: Likewise.
7735         * doc/posix-functions/mkstemp.texi: Likewise.
7736         * doc/posix-functions/open.texi: Likewise.
7737         * doc/posix-functions/openat.texi: Likewise.
7738         * doc/posix-functions/pread.texi: Likewise.
7739         * doc/posix-functions/pwrite.texi: Likewise.
7740         * doc/posix-functions/scandir.texi: Likewise.
7741         * doc/posix-functions/stat.texi: Likewise.
7742         * doc/posix-functions/tmpfile.texi: Likewise.
7743         * doc/glibc-functions/mkostemp.texi: Likewise.
7744         * doc/glibc-functions/mkostemps.texi: Likewise.
7745         * doc/glibc-functions/mkstemps.texi: Likewise.
7746
7747 2011-07-25  Bruno Haible  <bruno@clisp.org>
7748
7749         fcntl: Move AC_LIBOBJ invocation to module description.
7750         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
7751         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
7752
7753         fcntl: Remove call-in from fchdir.m4.
7754         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
7755         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
7756
7757         dup3: Remove potential call-in from fchdir.m4.
7758         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
7759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
7760
7761         dup2: Move AC_LIBOBJ invocation to module description.
7762         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
7763         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
7764         Don't invoke AC_LIBOBJ.
7765         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
7766
7767         dup2: Remove call-in from fchdir.m4.
7768         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
7769         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
7770
7771         fclose: Move AC_LIBOBJ invocation to module description.
7772         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
7773         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
7774         to 1.
7775         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
7776
7777         fclose: Remove call-in from close.m4.
7778         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
7779         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
7780
7781         close: Move AC_LIBOBJ invocation to module description.
7782         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
7783         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
7784         1.
7785         * modules/close (configure.ac): Invoke AC_LIBOBJ.
7786
7787         close: Remove call-in from fchdir.m4.
7788         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
7789         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
7790
7791         open: Move AC_LIBOBJ invocation to module description.
7792         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
7793         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
7794         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
7795
7796         open: Remove call-in from fchdir.m4.
7797         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
7798         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
7799
7800         fchdir: Start to remove gl_REPLACE_* idiom.
7801         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
7802         (gl_FUNC_FCHDIR): Invoke it.
7803
7804 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7805
7806         * lib/ftell.c (ftell): Comment out cast.
7807
7808         close: use gl_REPLACE_FCLOSE only if defined
7809         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
7810         is defined.  The close module doesn't depend on the fclose module
7811         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
7812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
7813         I reproduced the problem with "./gnulib-tool --test close sys_socket".
7814
7815 2011-07-24  Jim Meyering  <meyering@redhat.com>
7816
7817         test-select.h: avoid warning when using gcc's -Wmissing-declarations
7818         * tests/test-select.h (test_function): Declare as "static".
7819
7820 2011-07-24  Bruno Haible  <bruno@clisp.org>
7821
7822         doc: Mention the effects of AC_SYS_LARGEFILE.
7823         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
7824         on this function.
7825         * doc/posix-functions/aio_error.texi: Likewise.
7826         * doc/posix-functions/aio_fsync.texi: Likewise.
7827         * doc/posix-functions/aio_read.texi: Likewise.
7828         * doc/posix-functions/aio_return.texi: Likewise.
7829         * doc/posix-functions/aio_suspend.texi: Likewise.
7830         * doc/posix-functions/aio_write.texi: Likewise.
7831         * doc/posix-functions/fgetpos.texi: Likewise.
7832         * doc/posix-functions/fopen.texi: Likewise.
7833         * doc/posix-functions/freopen.texi: Likewise.
7834         * doc/posix-functions/fsetpos.texi: Likewise.
7835         * doc/posix-functions/fstatvfs.texi: Likewise.
7836         * doc/posix-functions/ftruncate.texi: Likewise.
7837         * doc/posix-functions/ftw.texi: Likewise.
7838         * doc/posix-functions/getrlimit.texi: Likewise.
7839         * doc/posix-functions/glob.texi: Likewise.
7840         * doc/posix-functions/lio_listio.texi: Likewise.
7841         * doc/posix-functions/lockf.texi: Likewise.
7842         * doc/posix-functions/mkstemp.texi: Likewise.
7843         * doc/posix-functions/mmap.texi: Likewise.
7844         * doc/posix-functions/nftw.texi: Likewise.
7845         * doc/posix-functions/openat.texi: Likewise.
7846         * doc/posix-functions/opendir.texi: Likewise.
7847         * doc/posix-functions/posix_fadvise.texi: Likewise.
7848         * doc/posix-functions/posix_fallocate.texi: Likewise.
7849         * doc/posix-functions/pread.texi: Likewise.
7850         * doc/posix-functions/pwrite.texi: Likewise.
7851         * doc/posix-functions/readdir.texi: Likewise.
7852         * doc/posix-functions/readdir_r.texi: Likewise.
7853         * doc/posix-functions/rewinddir.texi: Likewise.
7854         * doc/posix-functions/scandir.texi: Likewise.
7855         * doc/posix-functions/seekdir.texi: Likewise.
7856         * doc/posix-functions/setrlimit.texi: Likewise.
7857         * doc/posix-functions/statvfs.texi: Likewise.
7858         * doc/posix-functions/telldir.texi: Likewise.
7859         * doc/posix-functions/tmpfile.texi: Likewise.
7860         * doc/posix-functions/truncate.texi: Likewise.
7861         * doc/glibc-functions/fallocate.texi: Likewise.
7862         * doc/glibc-functions/fstatfs.texi: Likewise.
7863         * doc/glibc-functions/fts_children.texi: Likewise.
7864         * doc/glibc-functions/fts_read.texi: Likewise.
7865         * doc/glibc-functions/getdirentries.texi: Likewise.
7866         * doc/glibc-functions/mkostemp.texi: Likewise.
7867         * doc/glibc-functions/mkostemps.texi: Likewise.
7868         * doc/glibc-functions/mkstemps.texi: Likewise.
7869         * doc/glibc-functions/preadv.texi: Likewise.
7870         * doc/glibc-functions/pwritev.texi: Likewise.
7871         * doc/glibc-functions/sendfile.texi: Likewise.
7872         * doc/glibc-functions/statfs.texi: Likewise.
7873
7874 2011-07-24  Bruno Haible  <bruno@clisp.org>
7875
7876         doc: Fix typo.
7877         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
7878
7879 2011-07-24  Bruno Haible  <bruno@clisp.org>
7880
7881         doc: Mention fsusage.
7882         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
7883
7884 2011-07-24  Bruno Haible  <bruno@clisp.org>
7885
7886         doc: Mention new glibc headers and functions.
7887         * doc/glibc-headers/gshadow.texi: New file.
7888         * doc/glibc-functions/endsgent.texi: New file.
7889         * doc/glibc-functions/fgetsgent.texi: New file.
7890         * doc/glibc-functions/fgetsgent_r.texi: New file.
7891         * doc/glibc-functions/getsgent.texi: New file.
7892         * doc/glibc-functions/getsgent_r.texi: New file.
7893         * doc/glibc-functions/getsgnam.texi: New file.
7894         * doc/glibc-functions/getsgnam_r.texi: New file.
7895         * doc/glibc-functions/putsgent.texi: New file.
7896         * doc/glibc-functions/setsgent.texi: New file.
7897         * doc/glibc-functions/sgetsgent.texi: New file.
7898         * doc/glibc-functions/sgetsgent_r.texi: New file.
7899         * doc/glibc-functions/malloc_info.texi: New file.
7900         * doc/glibc-functions/preadv.texi: New file.
7901         * doc/glibc-functions/pwritev.texi: New file.
7902         * doc/glibc-functions/register_printf_modifier.texi: New file.
7903         * doc/glibc-functions/register_printf_specifier.texi: New file.
7904         * doc/glibc-functions/register_printf_type.texi: New file.
7905         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
7906         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
7907         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
7908         * doc/glibc-functions/pthread_getname_np.texi: New file.
7909         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
7910         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
7911         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
7912         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
7913         * doc/glibc-functions/pthread_setname_np.texi: New file.
7914         * doc/glibc-functions/pthread_sigqueue.texi: New file.
7915         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
7916         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
7917         * doc/glibc-functions/qsort_r.texi: New file.
7918         * doc/glibc-functions/quick_exit.texi: New file.
7919         * doc/glibc-functions/syncfs.texi: New file.
7920         * doc/gnulib.texi: Include them.
7921         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
7922         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
7923         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
7924         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
7925         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
7926         * doc/glibc-functions/execvpe.texi: Likewise.
7927
7928 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7929
7930         ftell: don't include <unistd.h>
7931         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
7932         guaranteed to define off_t, and the ftell module depends on the
7933         stdio module.
7934
7935         ftell: do not assume wraparound signed arithmetic
7936         * lib/ftell.c: Include <limits.h>.
7937         (ftell): Don't assume wraparound signed arithmetic.
7938
7939 2011-07-24  Bruno Haible  <bruno@clisp.org>
7940
7941         close: No longer depend on module 'fclose'.
7942         * modules/close (Depends-on): Remove fclose.
7943         * NEWS: Mention the change.
7944         Suggested by Sam Steingold <sds@gnu.org>.
7945
7946 2011-07-24  Bruno Haible  <bruno@clisp.org>
7947
7948         fsusage: Enable large volume support on AIX >= 5.2.
7949         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
7950         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
7951         instead of STAT_STATVFS.
7952         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
7953
7954         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
7955         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
7956         f_blocks field only on MacOS X.
7957
7958         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
7959         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
7960         * modules/fsusage (Depends-on): Add largefile.
7961
7962 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7963
7964         * README: Modernize discussion of signed integers.
7965         Assuming overflow wraparound is no longer safe.
7966         Mention ones' complement and signed magnitude.
7967
7968 2011-07-22  Bruno Haible  <bruno@clisp.org>
7969
7970         select tests, pselect tests: Refactor.
7971         * tests/test-select.h: New file, extracted from tests/test-select.c.
7972         (select_fn): New type.
7973         (test, do_select, do_select_nowait, do_select_wait, test_tty,
7974         test_connect_first, test_accept_first, test_pair, test_socket_pair,
7975         test_pipe): Add my_select argument.
7976         (test_function): Renamed from main. Add my_select argument.
7977         * tests/test-select.c: Move most code to tests/test-select.h. Include
7978         test-select.h.
7979         * modules/select-tests (Files): Add tests/test-select.h.
7980         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
7981         (my_select, main): New functions.
7982         * modules/pselect-tests (Files): Add tests/test-select.h,
7983         tests/macros.h, tests/signature.h.
7984         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
7985         (configure.ac): Check for <sys/wait.h>.
7986
7987 2011-07-22  Bruno Haible  <bruno@clisp.org>
7988
7989         sys_select tests: Check the signature of FD_*.
7990         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
7991         signature tests from here...
7992         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
7993         here.
7994         * modules/sys_select-tests (Files): Add tests/signature.h.
7995
7996 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7997
7998         largefile: new module, replacing large-inode
7999         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
8000         * MODULES.html.sh: Add largefile, remove large-inode.
8001         * modules/largefile, m4/largefile.m4: New files.
8002         * modules/large-inode, m4/large-inode.m4: Remove.
8003
8004         fsusage: port to MacOS X 10.7 with 4 TiB file systems
8005         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
8006         implementations that use only 32 bits to count blocks.
8007         On typical hosts with 1024-byte blocks, this fails with file
8008         systems as small as 4 TiB.  Problem reported by Herb Wartens
8009         <http://debbugs.gnu.org/9140> and this should also fix a similar
8010         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
8011
8012         large-inode: New module
8013         * MODULES.html.sh: Add it.
8014         * modules/large-inode, m4/large-inode.m4: New files.
8015
8016         extensions: Enable extensions on MacOS X 10.5 and later.
8017         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
8018
8019 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
8020
8021         file-has-acl: use acl_extended_file_nofollow if available
8022         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
8023         (acl_extended_file): New macro.
8024         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
8025         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
8026
8027 2011-07-21  Bruno Haible  <bruno@clisp.org>
8028
8029         Declare system functions in a way that works with C++.
8030         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
8031         declare fdopendir as extern "C".
8032         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
8033         declare frexpl as extern "C".
8034         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
8035         declare gai_strerror as extern "C".
8036         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
8037         programs, declare gai_strerror as extern "C".
8038         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
8039         declare getlogin_r as extern "C".
8040         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
8041         as extern "C".
8042         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
8043         declare ldexpl as extern "C".
8044         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
8045         as extern "C".
8046         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
8047         program, declare getmntinfo as extern "C".
8048         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
8049         stpncpy as extern "C".
8050         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
8051         program, declare __xpg_strerror_r as extern "C".
8052         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
8053         strndup as extern "C".
8054         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
8055         declare memset and bzero as extern "C".
8056         Reported by Sam Steingold <sds@gnu.org>.
8057
8058 2011-07-12  Jim Meyering  <meyering@redhat.com>
8059
8060         maint.mk: prohibit inclusion of "verify.h" without use
8061         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
8062
8063 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8064
8065         timer-time: A new module to check for timer_settime()
8066         * m4/timer_time.m4: Check for the posix function.
8067         * modules/timer-time: Add the new module.
8068         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
8069         Mention it.
8070
8071 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
8072             Bruno Haible  <bruno@clisp.org>
8073
8074         pthread_sigmask: assume POSIX threads if --avoid=threadlib
8075         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
8076         not defined, assume POSIX threads and look for pthread_sigmask in
8077         $LIBS, without changing $CPPFLAGS.
8078
8079 2011-07-19  Bruno Haible  <bruno@clisp.org>
8080
8081         strstr: Update cross-compilation guess.
8082         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
8083         CPUs, guess no, in view of glibc
8084         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
8085         Suggested by Eric Blake. Reported by Reuben Thomas.
8086
8087 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8088
8089         getopt-gnu: suppress core dumps from detection code
8090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
8091         to suppress core dumps that may well occur on glibc systems.
8092         * modules/getopt-gnu: Depend on nocrash.
8093
8094 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
8095
8096         pthread_sigmask: ensure usleep is declared
8097         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
8098         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
8099
8100 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
8101
8102         doc: Document NonStop portability issues.
8103         * doc/posix-functions/sigaction.texi (sigaction):
8104         * doc/posix-headers/signal.texi (signal.h):
8105         Document NonStop.  See Joachim Schmitz in
8106         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
8107
8108 2011-07-15  Bruno Haible  <bruno@clisp.org>
8109
8110         ffsl, ffsll: Avoid unportable behaviour.
8111         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
8112
8113 2011-07-15  Bruno Haible  <bruno@clisp.org>
8114
8115         ffs: More tests.
8116         * tests/test-ffs.c (NBITS): New macro.
8117         (main): Add more tests.
8118         * tests/test-ffsl.c (NBITS): New macro.
8119         (main): Add more tests.
8120         * tests/test-ffsll.c (NBITS): New macro.
8121         (main): Add more tests.
8122
8123 2011-07-15  Eric Blake  <eblake@redhat.com>
8124
8125         ffsl, ffsll: new modules
8126         * modules/ffsl: New file.
8127         * modules/ffsll: Likewise.
8128         * m4/ffsl.m4: Likewise.
8129         * m4/ffsll.m4: Likewise.
8130         * lib/ffsl.c: Likewise.
8131         * lib/ffsl.h: Likewise.
8132         * lib/ffsll.c: Likewise.
8133         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
8134         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
8135         * modules/string (Makefile.am): Substitute witnesses.
8136         * lib/strings.in.h (ffsl, ffsll): Declare.
8137         * modules/ffsl-tests: New test file.
8138         * modules/ffsll-tests: Likewise.
8139         * tests/test-ffsl.c: Likewise.
8140         * tests/test-ffsll.c: Likewise.
8141         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8142         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
8143         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
8144
8145         ffs: fix m4 prerequisite
8146         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
8147
8148         ffs: avoid undefined behavior
8149         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
8150         * tests/test-ffs.c (naive, main): Avoid signed shifts.
8151         Reported by Bruno Haible.
8152
8153 2011-07-12  Bruno Haible  <bruno@clisp.org>
8154
8155         pthread_sigmask: Rely on module 'threadlib'.
8156         * modules/pthread_sigmask (Depends-on): Add threadlib.
8157         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
8158         is defined.
8159
8160 2011-07-12  Bruno Haible  <bruno@clisp.org>
8161
8162         regex: Depend on module 'strcase'.
8163         * modules/regex (Depends-on): Add strcase, for strcasecmp().
8164
8165 2011-07-12  Jim Meyering  <meyering@redhat.com>
8166
8167         warn-on-use: fix typo in file name
8168         * modules/snippet/warn-on-use (Files): Correct file name:
8169         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
8170
8171 2011-07-12  Bruno Haible  <bruno@clisp.org>
8172
8173         strings: Document module.
8174         * doc/posix-headers/strings.texi: Mention module 'strings'.
8175
8176 2011-07-12  Bruno Haible  <bruno@clisp.org>
8177
8178         Rename module '_Noreturn' to 'snippet/_Noreturn'.
8179         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
8180         (Files, Makefile.am): Update.
8181         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
8182         * modules/stdlib (Depends-on): Update.
8183
8184 2011-07-12  Bruno Haible  <bruno@clisp.org>
8185
8186         * NEWS: Mention the changes.
8187
8188         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
8189         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
8190         (Files, Makefile.am): Update.
8191         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
8192         * modules/arpa_inet (Depends-on): Update.
8193         * modules/ctype (Depends-on): Update.
8194         * modules/dirent (Depends-on): Update.
8195         * modules/fcntl-h (Depends-on): Update.
8196         * modules/glob (Depends-on): Update.
8197         * modules/iconv-h (Depends-on): Update.
8198         * modules/inttypes-incomplete (Depends-on): Update.
8199         * modules/langinfo (Depends-on): Update.
8200         * modules/locale (Depends-on): Update.
8201         * modules/math (Depends-on): Update.
8202         * modules/netdb (Depends-on): Update.
8203         * modules/poll-h (Depends-on): Update.
8204         * modules/pty (Depends-on): Update.
8205         * modules/search (Depends-on): Update.
8206         * modules/signal (Depends-on): Update.
8207         * modules/spawn (Depends-on): Update.
8208         * modules/stdio (Depends-on): Update.
8209         * modules/stdlib (Depends-on): Update.
8210         * modules/string (Depends-on): Update.
8211         * modules/strings (Depends-on): Update.
8212         * modules/sys_file (Depends-on): Update.
8213         * modules/sys_ioctl (Depends-on): Update.
8214         * modules/sys_select (Depends-on): Update.
8215         * modules/sys_socket (Depends-on): Update.
8216         * modules/sys_stat (Depends-on): Update.
8217         * modules/sys_time (Depends-on): Update.
8218         * modules/sys_times (Depends-on): Update.
8219         * modules/sys_utsname (Depends-on): Update.
8220         * modules/sys_wait (Depends-on): Update.
8221         * modules/termios (Depends-on): Update.
8222         * modules/time (Depends-on): Update.
8223         * modules/unistd (Depends-on): Update.
8224         * modules/wchar (Depends-on): Update.
8225         * modules/wctype-h (Depends-on): Update.
8226         * MODULES.html.sh (Support for building libraries and executables):
8227         Update.
8228
8229         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
8230         * modules/snippet/unused-parameter: Renamed from
8231         modules/unused-parameter.
8232         (Files, Makefile.am): Update.
8233         * build-aux/snippet/unused-parameter.h: Renamed from
8234         build-aux/unused-parameter.h.
8235         * modules/selinux-h (Depends-on): Update.
8236         * modules/unistr/base (Depends-on): Update.
8237         * MODULES.html.sh (Core language properties): Update.
8238
8239         Rename module 'link-warning' to 'snippet/link-warning'.
8240         * modules/snippet/link-warning: Renamed from modules/link-warning.
8241         (Files, Makefile.am): Update.
8242         * build-aux/snippet/link-warning.h: Renamed from
8243         build-aux/link-warning.h.
8244         * MODULES.html.sh (Support for building libraries and executables):
8245         Update.
8246
8247         Rename module 'c++defs' to 'snippet/c++defs'.
8248         * modules/snippet/c++defs: Renamed from modules/c++defs.
8249         (Files, Makefile.am): Update.
8250         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
8251         * modules/arpa_inet (Depends-on): Update.
8252         * modules/ctype (Depends-on): Update.
8253         * modules/dirent (Depends-on): Update.
8254         * modules/fcntl-h (Depends-on): Update.
8255         * modules/glob (Depends-on): Update.
8256         * modules/iconv-h (Depends-on): Update.
8257         * modules/langinfo (Depends-on): Update.
8258         * modules/locale (Depends-on): Update.
8259         * modules/math (Depends-on): Update.
8260         * modules/netdb (Depends-on): Update.
8261         * modules/poll-h (Depends-on): Update.
8262         * modules/pty (Depends-on): Update.
8263         * modules/search (Depends-on): Update.
8264         * modules/signal (Depends-on): Update.
8265         * modules/spawn (Depends-on): Update.
8266         * modules/stdio (Depends-on): Update.
8267         * modules/stdlib (Depends-on): Update.
8268         * modules/string (Depends-on): Update.
8269         * modules/strings (Depends-on): Update.
8270         * modules/sys_ioctl (Depends-on): Update.
8271         * modules/sys_select (Depends-on): Update.
8272         * modules/sys_socket (Depends-on): Update.
8273         * modules/sys_stat (Depends-on): Update.
8274         * modules/sys_time (Depends-on): Update.
8275         * modules/sys_wait (Depends-on): Update.
8276         * modules/termios (Depends-on): Update.
8277         * modules/time (Depends-on): Update.
8278         * modules/unistd (Depends-on): Update.
8279         * modules/wchar (Depends-on): Update.
8280         * modules/wctype-h (Depends-on): Update.
8281
8282         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
8283         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
8284         (Files, Makefile.am): Update.
8285         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
8286         * modules/argv-iter (Depends-on): Update.
8287         * modules/arpa_inet (Depends-on): Update.
8288         * modules/dirent (Depends-on): Update.
8289         * modules/fcntl-h (Depends-on): Update.
8290         * modules/fnmatch (Depends-on): Update.
8291         * modules/getopt-posix (Depends-on): Update.
8292         * modules/glob (Depends-on): Update.
8293         * modules/iconv-h (Depends-on): Update.
8294         * modules/inttypes-incomplete (Depends-on): Update.
8295         * modules/locale (Depends-on): Update.
8296         * modules/math (Depends-on): Update.
8297         * modules/netdb (Depends-on): Update.
8298         * modules/search (Depends-on): Update.
8299         * modules/signal (Depends-on): Update.
8300         * modules/spawn (Depends-on): Update.
8301         * modules/stdio (Depends-on): Update.
8302         * modules/stdlib (Depends-on): Update.
8303         * modules/string (Depends-on): Update.
8304         * modules/strings (Depends-on): Update.
8305         * modules/sys_socket (Depends-on): Update.
8306         * modules/sys_stat (Depends-on): Update.
8307         * modules/sys_time (Depends-on): Update.
8308         * modules/sys_times (Depends-on): Update.
8309         * modules/sys_utsname (Depends-on): Update.
8310         * modules/time (Depends-on): Update.
8311         * modules/unistd (Depends-on): Update.
8312         * modules/wchar (Depends-on): Update.
8313         * MODULES.html.sh (Support for building libraries and executables):
8314         Update.
8315
8316 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8317
8318         Improvements on _Noreturn and related modules.
8319
8320         modules/_Exit-tests: test _Noreturn too
8321         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
8322         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
8323         (main): Use them.
8324
8325         stdnoreturn, stdnoreturn-tests: remove modules
8326         They're not needed here and a bit premature for use elsewhere.  See
8327         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
8328         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8329         * tests/test-stdnoreturn.c: Remove files.
8330         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
8331         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
8332         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
8333         and using noreturn.
8334         * modules/openat, modules/sigpipe-die, modules/xalloc:
8335         * modules/xmemdup0, modules/xstrtol:
8336         Remove dependency on stdnoreturn.
8337
8338         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
8339         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
8340         Reparenthesize to avoid GCC warning.
8341         Support Microsoft's syntax.
8342         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
8343
8344         _Noreturn-tests: remove module
8345         * modules/_Noreturn-tests: Remove.
8346         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
8347         * tests/test-_Noreturn.c: Remove.
8348         * tests/test-stdnoreturn.c: Merge from the old
8349         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
8350
8351 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8352
8353         _Noreturn, stdnoreturn, and related modules.
8354
8355         * top/maint.mk: Adjust to new noreturn support.
8356         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
8357         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
8358
8359         xalloc: use stdnoreturn.h
8360         * lib/xalloc.h: Include <stdnoreturn.h>.
8361         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8362         * modules/xalloc (Depends-on): Add stdnoreturn.
8363
8364         xstrtol: use stdnoreturn.h
8365         * lib/xstrtol.h: Include <stdnoreturn.h>.
8366         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8367         * modules/xstrtol (Depends-on): Add stdnoreturn.
8368
8369         xmemdup0: use stdnoreturn.h
8370         * lib/xmemdup0.h: Include <stdnoreturn.h>.
8371         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8372         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
8373
8374         sigpipe-die: use stdnoreturn.h
8375         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
8376         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8377         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
8378
8379         openat: use stdnoreturn.h
8380         * lib/openat.h: Include <stdnoreturn.h>.
8381         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8382         * modules/openat (Depends-on): Add stdnoreturn.
8383
8384         * lib/openat-die.c (openat_save_fail): Modernize comment.
8385
8386         * lib/xalloc-die.c (xalloc_die): Modernize comment.
8387
8388         * lib/glthread/thread.h: Modernize comment.
8389
8390         obstack: use _Noreturn
8391         * lib/obstack.c (__attribute__): Remove macro.
8392         (print_and_abort): Use _Noreturn.
8393
8394         c-stack: use _Noreturn
8395         * lib/c-stack.c (die, overflow_handler, segv_handler):
8396         Use _Noreturn rather than __attribute__((noreturn)).
8397
8398         argmatch-tests, exclude_tests: use _Noreturn
8399         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
8400         Remove.
8401         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
8402
8403         stdlib: use _Noreturn
8404         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
8405         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
8406         * modules/stdlib (Depends-on): Add _Noreturn.
8407         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
8408
8409         stdnoreturn-tests: new module
8410         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
8411
8412         stdnoreturn: new module
8413         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
8414         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
8415
8416         _Noreturn-tests: new module
8417         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
8418
8419         _Noreturn: new module
8420         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
8421         New section, mentioning it.
8422         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
8423
8424         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
8425
8426 2011-07-11  Eric Blake  <eblake@redhat.com>
8427
8428         ffs: new module
8429         * modules/ffs: New file.
8430         * m4/ffs.m4: Likewise.
8431         * lib/ffs.c: Likewise.
8432         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
8433         * modules/strings (Makefile.am): Substitute witness.
8434         (Depends-on): Add c++defs.
8435         * lib/strings.in.h (ffs): Declare.
8436         * modules/ffs-tests: New test file.
8437         * tests/test-ffs.c: Test new module.
8438         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8439         * doc/posix-functions/ffs.texi (ffs): Likewise.
8440
8441         regex: avoid compiler warning
8442         * lib/regex.c (includes): Include <strings.h>, for use of
8443         strcasecmp in regcomp.c.
8444         Reported by Joachim Schmitz.
8445
8446 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8447
8448         stdint: respect system's intmax_t if INTMAX_MAX
8449         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
8450         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
8451         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
8452         long but int64_t is long long, and where we will clash with the
8453         system intmax_t if we override it.  See
8454         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
8455         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
8456         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
8457         similarly for UINTMAX_C.
8458
8459 2011-07-08  Bruno Haible  <bruno@clisp.org>
8460
8461         pthread_sigmask tests: Avoid a compiler warning.
8462         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
8463         non-zero.
8464
8465         sigprocmask tests: A better way to avoid a compiler warning.
8466         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
8467         (main): Complain if system() returns non-zero.
8468         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
8469
8470 2011-07-08  Bruno Haible  <bruno@clisp.org>
8471
8472         pthread_sigmask: Work around IRIX bug.
8473         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
8474         bug.
8475         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
8476         there may be unblocked pending signals.
8477         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
8478
8479 2011-07-08  Bruno Haible  <bruno@clisp.org>
8480
8481         pthread_sigmask: Work around Cygwin bug.
8482         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
8483         bug.
8484         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
8485         the system's pthread_sigmask function.
8486         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
8487
8488 2011-07-08  Bruno Haible  <bruno@clisp.org>
8489
8490         pthread_sigmask: Work around bug in single-threaded implementation.
8491         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
8492         FreeBSD, HP-UX, Solaris bug.
8493         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
8494         * lib/pthread_sigmask.c: Include <stddef.h>.
8495         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
8496         the system's pthread_sigmask function.
8497         * modules/pthread_sigmask (configure.ac): Invoke
8498         gl_PREREQ_PTHREAD_SIGMASK.
8499         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
8500         HP-UX, Solaris.
8501
8502 2011-07-08  Eric Blake  <eblake@redhat.com>
8503
8504         test-sigprocmask: avoid compiler warning
8505         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
8506         * tests/test-sigprocmask.c (main): Use it to silence warning.
8507         Reported by Jim Meyering.
8508
8509         test-snprintf: avoid compiler warning
8510         * tests/test-snprintf.c (main): Avoid shadowed declaration.
8511         * tests/test-vsnprintf.c (main): Likewise.
8512         Reported by Jim Meyering.
8513
8514 2011-07-08  Bruno Haible  <bruno@clisp.org>
8515
8516         Tests for module 'pthread_sigmask'.
8517         * modules/pthread_sigmask-tests: New file.
8518         * tests/test-pthread_sigmask1.c: New file, based on
8519         tests/test-sigprocmask.c.
8520         * tests/test-pthread_sigmask2.c: New file.
8521
8522 2011-07-08  Jim Meyering  <meyering@redhat.com>
8523
8524         test-getopt.h: avoid warning about an unused variable
8525         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
8526
8527 2011-07-07  Jim Meyering  <meyering@redhat.com>
8528
8529         maint: reduce list of files exempt from sc_prohibit_leading_TABs
8530         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
8531         now that it no longer contains leading TABs.
8532         Remove unused "url=FIXME" statement.
8533
8534 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8535
8536         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
8537         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8538         When gl_THREADLIB is not in use, assume that the POSIX sematics
8539         are desired.  This is better for Emacs, which uses POSIX semantics
8540         on GNUish and/or POSIXish platforms, and does not use threads at
8541         all otherwise.
8542
8543         pthread_sigmask: fix typo when testing for libraries
8544         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8545         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
8546
8547 2011-07-08  Eric Blake  <eblake@redhat.com>
8548
8549         fts: introduce FTS_NOATIME
8550         * lib/fts_.h (FTS_NOATIME): New bit flag.
8551         (FTS_OPTIONMASK): Adjust.
8552         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
8553         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
8554
8555 2011-07-08  Bruno Haible  <bruno@clisp.org>
8556
8557         Tests for module 'thread'.
8558         * modules/thread-tests: New file.
8559         * tests/test-thread_self.c: New file.
8560         * tests/test-thread_create.cc: New file.
8561
8562 2011-07-08  Bruno Haible  <bruno@clisp.org>
8563
8564         thread: Avoid gcc warnings when using gl_thread_self().
8565         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
8566         'void *'.
8567         (gl_thread_self_pointer): Update.
8568
8569 2011-07-07  Bruno Haible  <bruno@clisp.org>
8570
8571         signal-c++-tests: Check declaration of pthread_sigmask.
8572         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
8573         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
8574         $(LIB_PTHREAD_SIGMASK).
8575
8576 2011-07-07  Bruno Haible  <bruno@clisp.org>
8577
8578         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
8579         * lib/signal.in.h (pthread_sigmask): Override if
8580         REPLACE_PTHREAD_SIGMASK is 1.
8581         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8582         REPLACE_PTHREAD_SIGMASK.
8583         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
8584         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
8585         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
8586         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8587         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
8588
8589 2011-07-07  Bruno Haible  <bruno@clisp.org>
8590
8591         pthread_sigmask: Ensure declaration in <signal.h>.
8592         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
8593         include <pthread.h>.
8594         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
8595         problem.
8596
8597 2011-07-07  Bruno Haible  <bruno@clisp.org>
8598
8599         pthread_sigmask: Document the module.
8600         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
8601
8602 2011-07-07  Bruno Haible  <bruno@clisp.org>
8603
8604         pthread_sigmask: Follow gnulib conventions.
8605         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
8606         gl_PTHREAD_SIGMASK.
8607         * modules/pthread_sigmask (configure.ac): Update.
8608
8609 2011-07-07  Bruno Haible  <bruno@clisp.org>
8610
8611         pthread_sigmask: Make declaration C++ safe.
8612         * lib/signal.in.h: In two special conditions, just do an #include_next.
8613         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8614         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
8615         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8616         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8617         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
8618         not REPLACE_PTHREAD_MASK.
8619         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
8620         not REPLACE_PTHREAD_MASK.
8621         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8622
8623 2011-07-07  Bruno Haible  <bruno@clisp.org>
8624
8625         pthread_sigmask: Fix return value.
8626         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
8627         * lib/pthread_sigmask.c: New file.
8628         * modules/pthread_sigmask (Files): Add it.
8629         (configure.ac): Invoke AC_LIBOBJ.
8630
8631 2011-07-07  Eric Blake  <eblake@redhat.com>
8632
8633         getopt: more portable argv creation
8634         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
8635         const, use char arrays rather than strings.
8636         Suggested by Paul Eggert.
8637
8638 2011-07-07  Bruno Haible  <bruno@clisp.org>
8639
8640         Tests for module 'sigprocmask'.
8641         * modules/sigprocmask-tests: New file.
8642         * tests/test-sigprocmask.c: New file.
8643
8644 2011-07-07  Bruno Haible  <bruno@clisp.org>
8645
8646         float tests: Tweak.
8647         * tests/test-float.c (main): Tweak skip message.
8648
8649 2011-07-07  Eric Blake  <eblake@redhat.com>
8650
8651         getopt: avoid compiler warning during configure
8652         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
8653         assigning string literals to non-const pointer.
8654
8655         getopt-gnu: avoid crash in glibc getopt
8656         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
8657         * tests/test-getopt.h (test_getopt): Enhance test.
8658         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8659         * doc/posix-functions/getopt.texi (getopt): Document it.
8660         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8661         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8662         Likewise.
8663
8664 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8665
8666         getopt: handle W; without long options in getopt [BZ #12922]
8667         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
8668         but no long options are defined, just return 'W'.
8669
8670 2011-07-07  Bruno Haible  <bruno@clisp.org>
8671
8672         Avoid literal tabs.
8673         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
8674         variable containing a tab instead of a literal tab.
8675         Reported by Jim Meyering.
8676
8677 2011-07-07  Bruno Haible  <bruno@clisp.org>
8678
8679         Comments.
8680         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
8681
8682 2011-07-06  Bruno Haible  <bruno@clisp.org>
8683
8684         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
8685         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
8686         <winsock2.h>.
8687         (rpl_fd_isset, FD_ISSET): New definitions, copied from
8688         lib/sys_socket.in.h.
8689         (close, gethostname): Hide declarations from <winsock2.h>.
8690         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8691         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
8692         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
8693         (select): Don't override if gnulib's <sys/select.h> was already
8694         included.
8695         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8696         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8697         setsockopt, shutdown, select): Tweak indentation.
8698
8699 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8700
8701         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
8702         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
8703         in an application that does not use the sys_select module.
8704
8705 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
8706
8707         poll: do not return 0 on timeout=-1
8708         * lib/poll.c: Loop with yield if no events occured
8709
8710 2011-07-06  Eric Blake  <eblake@redhat.com>
8711
8712         pthread_sigmask: always replace when not using pthread
8713         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
8714         replacement when using some threading other than pthread.  Fix
8715         logic bug.
8716
8717 2011-07-06  Bruno Haible  <bruno@clisp.org>
8718
8719         Comments.
8720         * m4/printf.m4: Update comments about mingw.
8721
8722 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8723
8724         sys_select: define sigset_t more portably
8725         * lib/sys_select.in.h: Always include <sys/types.h>, since
8726         we now need sigset_t and mingw defines it there.
8727         Include <signal.h> before split inclusion guard, to avoid
8728         mishaps on Solaris, whose <signal.h> eventually includes us.
8729         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
8730         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
8731         which come from ...
8732         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
8733         gl_CHECK_TYPE_SIGSET_T.
8734         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
8735         does the real work.
8736         * modules/sys_select (Depends-on): Add 'signal'.
8737
8738         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
8739         Suggested by Bruno Haible.
8740
8741         pselect: Use pthread_sigmask, not sigprocmask.
8742         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
8743         multithreaded apps better than sigprocmask does.
8744         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
8745         sigprocmask directly.
8746
8747 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8748
8749         * lib/pselect.c (pselect): Use plain name, without "rpl_".
8750         Don't #undef,  since we don't need any underlying pselect.
8751         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
8752         (Depends-on): Add select.
8753         (Link): Add $(LIBSOCKET).
8754         These changes suggested by Bruno Haible.
8755
8756         pselect: document better
8757         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8758         * doc/posix-functions/pselect.texi (pselect): Document new module.
8759
8760         pthread_sigmask: new module
8761         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8762         * doc/posix-functions/pthread_sigmask.texi: Document new module.
8763         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
8764         This is done only as a macro; I don't know how well that'll
8765         work for C++.  Move <sys/types.h> include before the include_next,
8766         to avoid mishap on Solaris.
8767         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
8768         * modules/signal (Makefile.am): Substitute the check's results.
8769         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
8770
8771         test-pselect: new module
8772         * modules/pselect-tests, tests/test-pselect.c: New files.
8773         * tests/test-select.c, tests/test-sys_select-c++.cc:
8774         If TEST_PSELECT is defined, test pselect instead of testing select.
8775
8776         * tests/test-sys_select.c (sigset_t): Test for it, too.
8777         Suggested by Bruno Haible.
8778
8779 2011-07-05  Eric Blake  <eblake@redhat.com>
8780
8781         snprintf: guarantee %1$d, for libintl
8782         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
8783         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
8784         * doc/posix-functions/snprintf.texi (snprintf): Update.
8785         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8786         * tests/test-snprintf.c (main): Enhance test.
8787         * tests/test-vsnprintf.c (main): Likewise.
8788
8789 2011-07-05  Jim Meyering  <meyering@redhat.com>
8790
8791         maint: exempt stdio-read.c and stdio-write.c from the cppi check
8792         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
8793         per Bruno's request, to accommodate this idiom (no space after "#")
8794         even when the function is inside an #if block:
8795         char *
8796         gets (char *s)
8797         #undef gets
8798         {
8799           ...
8800         }
8801
8802 2011-07-04  Jim Meyering  <meyering@redhat.com>
8803
8804         maint: indent with spaces, not TABs, and add a rule to check this
8805         * tests/test-userspec.c: Indent with spaces, not TABs.
8806         * tests/test-argp.c: Likewise.
8807         * tests/test-c-stack2.sh: Likewise.
8808         * tests/test-parse-duration.sh: Likewise
8809         * m4/strtod.m4: Likewise.
8810         * m4/alloca.m4: Likewise.
8811         * m4/pselect.m4: Likewise.
8812         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
8813
8814 2011-07-03  Jim Meyering  <meyering@redhat.com>
8815
8816         maint.mk: correct omissions in prohibit_argmatch_without_use check
8817         This rule would mistakenly report that argmatch.h is included without
8818         use even when both the argmatch and invalid_arg macro were used.
8819         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
8820         of argmatch and invalid_arg.
8821
8822 2011-07-03  Bruno Haible  <bruno@clisp.org>
8823
8824         Comments about EINTR.
8825         * lib/safe-read.h: Explain the purpose of this module.
8826         * lib/safe-write.h: Likewise.
8827         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
8828         module.
8829         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
8830         module.
8831         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8832
8833 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8834
8835         xnanosleep: Rewrite to use new dtotimespec module.
8836         It has the conversion code that used to be in xnanosleep.
8837         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
8838         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
8839         (TIME_T_MAX): Remove.
8840         (xnanosleep): Rewrite in terms of dtotimespec.
8841         * modules/xnanosleep (Depends-on): Add dtotimespec.
8842         Remove intprops, stdbool.
8843
8844         timespec-add, timespec-sub: new modules
8845         * lib/timespec.h (timespec_add, timespec_sub): New decls.
8846         * lib/timespec-add.c, lib/timespec-sub.c:
8847         * modules/timespec-add, modules/timespec-sub: New files.
8848
8849         dtotimespec: new module
8850         * lib/timespec.h (dtotimespec): New decl.
8851         * lib/dtotimespec.c, modules/dtotimespec: New files.
8852
8853         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
8854
8855         pselect: new module
8856         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
8857         (pselect): New decls.
8858         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
8859         since the standard pselect decl uses 'restrict'.
8860         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
8861         HAVE_PSELECT, REPLACE_PSELECT.
8862         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
8863         HAVE_PSELECT, REPLACE_PSELECT.
8864         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
8865
8866         sys_select: don't depend on sys_socket
8867         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
8868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
8869         This fix works on GNU and GNU-like platforms, but has not been tested
8870         on native Windows.
8871         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
8872         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
8873         gl_HEADER_SYS_SOCKET.
8874         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
8875         gl_PREREQ_SYS_H_WINSOCK2.
8876
8877 2011-06-29  Eric Blake  <eblake@redhat.com>
8878
8879         pipe2: fix C89 compile problem
8880         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
8881         Reported by Bruno Haible.
8882
8883         pipe, pipe2: don't corrupt fd on error
8884         * lib/pipe.c (pipe): Leave fd unchanged on error.
8885         * lib/pipe2.c (pipe2): Likewise.
8886         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
8887         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8888
8889 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
8890
8891         mmap-anon: do not use regular expressions inadvertently
8892         * m4/mmap-anon.m4: Remove trailing period from strings sought
8893         in the output.
8894
8895 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
8896
8897         nanosleep: fix integer overflow problem
8898         * lib/nanosleep.c (my_usleep): Don't assume signed integer
8899         arithmetic wraps around on overflow.
8900
8901         nanosleep: simplify carrying
8902         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
8903         first call to the underyling nanosleep, not for the last one.
8904         This doesn't fix any bugs, but it simplifies the computation of
8905         the remaining delay.  Found while auditing integer overflow issues.
8906
8907         dup2: remove test for existence of fcntl
8908         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
8909         "#if HAVE_FCNTL", in the configure-time test program.
8910         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
8911         and therefore speeds up "configure" a bit.  Found while
8912         adding the dup2 module to Emacs.
8913
8914 2011-06-24  Eric Blake  <eblake@redhat.com>
8915
8916         maint.mk: enhance useless header checks
8917         * top/maint.mk (_sc_header_without_use): Check both include
8918         styles.
8919         (sc_prohibit_assert_without_use)
8920         (sc_prohibit_close_stream_without_use)
8921         (sc_prohibit_getopt_without_use)
8922         (sc_prohibit_quotearg_without_use)
8923         (sc_prohibit_quote_without_use)
8924         (sc_prohibit_long_options_without_use)
8925         (sc_prohibit_inttostr_without_use)
8926         (sc_prohibit_ignore_value_without_use)
8927         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
8928         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
8929         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
8930         (sc_prohibit_hash_pjw_without_use)
8931         (sc_prohibit_safe_read_without_use)
8932         (sc_prohibit_argmatch_without_use)
8933         (sc_prohibit_canonicalize_without_use)
8934         (sc_prohibit_root_dev_ino_without_use)
8935         (sc_prohibit_openat_without_use)
8936         (sc_prohibit_c_ctype_without_use)
8937         (sc_prohibit_signal_without_use)
8938         (sc_prohibit_stdio--_without_use)
8939         (sc_prohibit_stdio-safer_without_use)
8940         (sc_prohibit_strings_without_use)
8941         (sc_prohibit_intprops_without_use)
8942         (sc_prohibit_stddef_without_use)
8943         (sc_prohibit_xfreopen_without_use): Update clients.
8944
8945 2011-06-24  Jim Meyering  <meyering@redhat.com>
8946
8947         syntax-check: keep one maint.mk rule in sync with its header
8948         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
8949         of the bug Eric has just fixed, with today's commit 25e4c2ec.
8950         I prefer to avoid temporary files here, so use <(...), but that
8951         is not supported by /bin/sh, so...
8952         (SHELL): Define to /bin/bash.
8953
8954 2011-06-24  Eric Blake  <eblake@redhat.com>
8955
8956         maint.mk: update sc_prohibit_intprops_without_use
8957         * top/maint.mk (_intprops_names): Match recent changes.
8958
8959 2011-06-24  Bruno Haible  <bruno@clisp.org>
8960
8961         strerror-override: No-op tweak.
8962         * lib/strerror-override.h (strerror_override): Reorder conditions,
8963         for consistency with lib/strerror-override.c.
8964
8965 2011-06-23  Eric Blake  <eblake@redhat.com>
8966
8967         maint.mk: test further PATH_MAX issues
8968         * top/maint.mk (sc_prohibit_path_max_array): Rename...
8969         (sc_prohibit_path_max_allocation): ...and also test alloca.
8970         Suggested by Jim Meyering.
8971
8972 2011-06-22  Eric Blake  <eblake@redhat.com>
8973
8974         maint.mk: add syntax-check to avoid char[PATH_MAX]
8975         * top/maint.mk (sc_prohibit_path_max_array): New rule.
8976
8977         stat: be robust to PATH_MAX definition
8978         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
8979         * modules/stat (Depends-on): Add verify.
8980
8981         link: work around IRIX bug
8982         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
8983         * lib/link.c (rpl_link): Work around it.
8984         * tests/test-link.h (test_link): Enhance test.
8985         * doc/posix-functions/link.texi (link): Document the bug.
8986
8987         getopt: silence clang warning
8988         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
8989         dereference.
8990         Reported by Gustavo Martin Domato.
8991
8992 2011-06-22  Jim Meyering  <meyering@redhat.com>
8993
8994         bootstrap: do not insert a blank line into each .gitignore file
8995         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
8996
8997 2011-06-21  Eric Blake  <eblake@redhat.com>
8998
8999         perror: test for output mismatch
9000         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
9001         perror on IRIX.
9002
9003         strerror_r: fix OpenBSD behavior on out-of-range
9004         * lib/strerror_r.c (strerror_r): Always use maximal string.
9005         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9006
9007         strerror_r: fix OpenBSD behavior on 0
9008         * lib/strerror-override.c (strerror_override): Also override 0
9009         when needed.
9010         * lib/strerror-override.h (strerror_override): Likewise.
9011         * lib/strerror.c (strerror): Simplify, now that 0 override is done
9012         earlier.
9013         * lib/strerror_r.c (strerror_r): Likewise.
9014         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
9015         behavior...
9016         (gl_FUNC_STRERROR_0): ...into new macro.
9017         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
9018         is overridden.
9019         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
9020         * modules/strerror-override (Files): Add strerror.m4.
9021         (configure.ac): Also provide override for 0 when needed.
9022         * doc/posix-functions/strerror.texi (strerror): Document this.
9023         * doc/posix-functions/perror.texi (perror): Likewise.
9024
9025         perror: adjust array size
9026         * modules/perror (Depends-on): Add strerror-override.
9027         * lib/perror.c (perror): Use it to avoid magic number.
9028
9029         strerror-override: reduce size
9030         * lib/strerror-override.c (strerror_override): Use fewer lines.
9031
9032 2011-06-20  Bruno Haible  <bruno@clisp.org>
9033
9034         pathmax: Ensure correct value for PATH_MAX on HP-UX.
9035         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
9036
9037 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9038
9039         alloca: port to compilers that can optimize like GCC 4.6.0
9040         * lib/alloca.c (find_stack_direction): New signature, taken from
9041         Autoconf git.  This works with GCC 4.6.0.  This code should never
9042         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
9043         be used with other compilers that optimize as well as GCC 4.6.0 does.
9044         (alloca): Adjust to new signature.
9045         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
9046         New macro, which patches Autoconf in a similar way.
9047
9048         c-stack: stop worrying about stack direction
9049         * lib/c-stack.c (find_stack_direction): Remove.
9050         (segv_handler): Don't worry about stack direction growth, as it's
9051         too much of a pain to configure this correctly, given how compilers
9052         are optimizing-away our stack-growth detection code.  Instead, assume
9053         that any access to just before or just after the stack is OK.
9054         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
9055         Don't require AC_FUNC_ALLOCA; no longer needed.
9056
9057 2011-06-20  Eric Blake  <eblake@redhat.com>
9058
9059         test-stat: don't allocate PATH_MAX bytes
9060         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
9061         PATH_MAX-sized buffer.
9062         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
9063         * modules/stat-tests (Depends-on): Likewise.
9064         * tests/test-fstatat.c (includes): Drop pathmax.h.
9065         * tests/test-stat.c (includes): Likewise.
9066         Reported by Bruno Haible.
9067
9068 2011-06-20  Bruno Haible  <bruno@clisp.org>
9069
9070         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
9071         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
9072         * lib/float.c: New file.
9073         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
9074         REPLACE_FLOAT_LDBL.
9075         * modules/float (Files): Add lib/float.c.
9076         (configure.ac): Invoke AC_LIBOBJ.
9077         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
9078
9079 2011-06-20  Bruno Haible  <bruno@clisp.org>
9080
9081         Tests for module 'float'.
9082         * modules/float-tests: New file.
9083         * tests/test-float.c: New file.
9084
9085 2011-06-19  Bruno Haible  <bruno@clisp.org>
9086
9087         isinf: Coding style.
9088         * lib/isinf.c: Use GNU coding style.
9089
9090 2011-06-19  Bruno Haible  <bruno@clisp.org>
9091
9092         linkat test: Avoid test failure on AIX 7.1.
9093         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
9094         * tests/test-link.h (test_link): Likewise.
9095
9096 2011-06-19  Bruno Haible  <bruno@clisp.org>
9097
9098         pread test: Avoid test failure on OpenBSD 4.9.
9099         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
9100
9101 2011-06-19  Bruno Haible  <bruno@clisp.org>
9102
9103         sprintf-posix: Fix test failure on AIX 7.1.
9104         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
9105         * doc/posix-functions/dprintf.texi: Mention limited precision problem
9106         on AIX.
9107         * doc/posix-functions/fprintf.texi: Likewise.
9108         * doc/posix-functions/printf.texi: Likewise.
9109         * doc/posix-functions/snprintf.texi: Likewise.
9110         * doc/posix-functions/sprintf.texi: Likewise.
9111         * doc/posix-functions/vdprintf.texi: Likewise.
9112         * doc/posix-functions/vfprintf.texi: Likewise.
9113         * doc/posix-functions/vprintf.texi: Likewise.
9114         * doc/posix-functions/vsnprintf.texi: Likewise.
9115         * doc/posix-functions/vsprintf.texi: Likewise.
9116
9117 2011-06-19  Bruno Haible  <bruno@clisp.org>
9118
9119         roundl-ieee: Fix test failure on AIX 7.1.
9120         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
9121         * doc/posix-functions/roundl.texi: Mention problem with negative
9122         arguments.
9123
9124 2011-06-19  Bruno Haible  <bruno@clisp.org>
9125
9126         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9127         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
9128         * doc/posix-functions/round.texi: Mention problem with negative
9129         arguments.
9130         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
9131
9132 2011-06-19  Bruno Haible  <bruno@clisp.org>
9133
9134         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9135         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
9136         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
9137         * doc/posix-functions/roundf.texi: Mention problem with negative
9138         arguments.
9139         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
9140
9141 2011-06-19  Bruno Haible  <bruno@clisp.org>
9142
9143         ceilf-ieee: Work around bug on MacOS X 10.5.
9144         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
9145
9146         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
9147         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
9148         IEEE compliant, avoid compiler optimizations.
9149         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
9150         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9151         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
9152         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9153         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9154         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9155         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9156         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9157         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9158         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9159
9160 2011-06-19  Bruno Haible  <bruno@clisp.org>
9161
9162         ceilf-ieee: Work around bug on AIX 7.1.
9163         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
9164         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
9165
9166 2011-06-19  Bruno Haible  <bruno@clisp.org>
9167
9168         ceil-ieee: Work around bug on AIX 7.1.
9169         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
9170         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
9171
9172 2011-06-18  Bruno Haible  <bruno@clisp.org>
9173
9174         fsync test: Avoid test failure on MacOS X and AIX.
9175         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
9176         EINVAL.
9177
9178 2011-06-18  Bruno Haible  <bruno@clisp.org>
9179
9180         openat, fdopendir tests: Fix link errors.
9181         * modules/openat-tests (Depends-on): Add progname.
9182         * modules/fdopendir-tests (Depends-on): Likewise.
9183         * tests/test-fchownat.c: Include progname.h.
9184         (main): Call set_program_name.
9185         * tests/test-fstatat.c: Include progname.h.
9186         (main): Call set_program_name.
9187         * tests/test-mkdirat.c: Include progname.h.
9188         (main): Call set_program_name.
9189         * tests/test-openat.c: Include progname.h.
9190         (main): Call set_program_name.
9191         * tests/test-unlinkat.c: Include progname.h.
9192         (main): Call set_program_name.
9193         * tests/test-fdopendir.c: Include progname.h.
9194         (main): Call set_program_name.
9195
9196 2011-06-18  Bruno Haible  <bruno@clisp.org>
9197
9198         Doc update.
9199         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
9200         HP-UX.
9201         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
9202
9203 2011-06-18  Bruno Haible  <bruno@clisp.org>
9204
9205         getcwd tests: Avoid compilation error on HP-UX 11.31.
9206         * modules/getcwd-tests (Depends-on): Add pathmax.
9207         * tests/test-getcwd.c: Include pathmax.h.
9208
9209 2011-06-18  Bruno Haible  <bruno@clisp.org>
9210
9211         isfinite, isinf: Fix link error on AIX 6 and 7.
9212         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
9213         needed, also test the macro with a 'float' argument.
9214         * m4/isinf.m4 (gl_ISINF): Likewise.
9215
9216 2011-06-18  Bruno Haible  <bruno@clisp.org>
9217
9218         getloadavg: Don't clobber LIBS. Regression from previous commit.
9219         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
9220         AC_CHECK_LIB from here...
9221         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
9222         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
9223         gl_func_getloadavg_done.
9224         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9225
9226 2011-06-18  Bruno Haible  <bruno@clisp.org>
9227
9228         clean-temp: Improve documentation.
9229         * lib/clean-temp.h: Explain better how to use this module.
9230         Reported by John Darrington <john@darrington.wattle.id.au>.
9231
9232 2011-06-17  Bruno Haible  <bruno@clisp.org>
9233
9234         pread, pwrite: Avoid cc warning on AIX.
9235         * lib/unistd.in.h (pread): Undefine before defining as a macro.
9236         (pwrite): Likewise.
9237
9238 2011-06-17  Bruno Haible  <bruno@clisp.org>
9239
9240         spawn-pipe tests: Fix link error.
9241         * tests/test-spawn-pipe-child.c: Undefine fprintf.
9242         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9243
9244 2011-06-17  Bruno Haible  <bruno@clisp.org>
9245
9246         Tests: Remove unnecessary dependency.
9247         * modules/canonicalize-tests (Depends-on): Remove progname.
9248         * modules/chown-tests (Depends-on): Likewise.
9249         * modules/dirname-tests (Depends-on): Likewise.
9250         * modules/fdopendir-tests (Depends-on): Likewise.
9251         * modules/fdutimensat-tests (Depends-on): Likewise.
9252         * modules/hash-tests (Depends-on): Likewise.
9253         * modules/lchown-tests (Depends-on): Likewise.
9254         * modules/linkat-tests (Depends-on): Likewise.
9255         * modules/renameat-tests (Depends-on): Likewise.
9256         * modules/spawn-pipe-tests (Depends-on): Likewise.
9257         * modules/utimensat-tests (Depends-on): Likewise.
9258
9259 2011-06-17  Bruno Haible  <bruno@clisp.org>
9260
9261         spawn-pipe tests: Fix link error.
9262         * tests/test-spawn-pipe-child.c: Undefine fflush.
9263
9264 2011-06-17  Bruno Haible  <bruno@clisp.org>
9265
9266         Fix tests link errors.
9267         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
9268         * modules/chown-tests (Makefile.am): Don't link test-chown with
9269         LIBINTL.
9270         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
9271         LIBINTL.
9272         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
9273         LIBINTL.
9274         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
9275         LIBINTL.
9276
9277 2011-06-16  Bruno Haible  <bruno@clisp.org>
9278
9279         crypto/gc-sha1: Fix recent regression.
9280         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
9281         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
9282
9283         crypto/gc-md5: Fix recent regression.
9284         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
9285
9286         crypto/gc-md4: Fix recent regression.
9287         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
9288         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
9289
9290         crypto/gc-arctwo: Fix recent regression.
9291         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
9292         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
9293
9294         crypto/gc-rijndael: Fix recent regression.
9295         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
9296         (configure.ac): Invoke AC_LIBOBJ here.
9297         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
9298         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9299
9300         crypto/gc-hmac-sha1: Fix recent regression.
9301         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
9302         (configure.ac): Invoke AC_LIBOBJ here.
9303         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
9304         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9305
9306         crypto/gc-hmac-md5: Fix recent regression.
9307         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
9308         (configure.ac): Invoke AC_LIBOBJ here.
9309         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
9310         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9311
9312         crypto/gc-des: Fix recent regression.
9313         * modules/crypto/gc-des (Files): Remove m4/des.m4.
9314         (configure.ac): Invoke AC_LIBOBJ here.
9315         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
9316         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9317
9318         crypto/gc-arcfour: Fix recent regression.
9319         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
9320         (configure.ac): Invoke AC_LIBOBJ here.
9321         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
9322         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9323
9324 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
9325
9326         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
9327         After the 2011-05-21 change, this macro requires
9328         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
9329         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9330
9331 2011-06-16  Bruno Haible  <bruno@clisp.org>
9332
9333         fprintftime: Move AC_LIBOBJ invocations to module description.
9334         * m4/fprintftime.m4: Remove file.
9335         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
9336         (configure.ac): Remove gl_FPRINTFTIME call.
9337         (Makefile.am): Augment lib_SOURCES.
9338         Reported by Jim Meyering.
9339
9340 2011-06-16  Bruno Haible  <bruno@clisp.org>
9341
9342         tmpfile-safer: Finish 2011-05-23 commit.
9343         * m4/stdio-safer.m4: Really remove file.
9344         Reported by Jim Meyering.
9345
9346 2011-06-16  Bruno Haible  <bruno@clisp.org>
9347
9348         syntax-check: Fix typo.
9349         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
9350         printf-posix.m4.
9351         Reported by Jim Meyering.
9352
9353 2011-06-13  Jim Meyering  <meyering@redhat.com>
9354
9355         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
9356         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
9357
9358 2011-05-23  Bruno Haible  <bruno@clisp.org>
9359
9360         yesno: Move AC_LIBOBJ invocations to module description.
9361         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
9362         * modules/yesno (Makefile.am): Augment lib_SOURCES.
9363
9364 2011-05-23  Bruno Haible  <bruno@clisp.org>
9365
9366         xstrtol: Move AC_LIBOBJ invocations to module description.
9367         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
9368         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
9369
9370 2011-05-23  Bruno Haible  <bruno@clisp.org>
9371
9372         xstrtold: Move AC_LIBOBJ invocations to module description.
9373         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
9374         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
9375
9376 2011-05-23  Bruno Haible  <bruno@clisp.org>
9377
9378         xstrtod: Move AC_LIBOBJ invocations to module description.
9379         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
9380         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
9381
9382 2011-05-23  Bruno Haible  <bruno@clisp.org>
9383
9384         xnanosleep: Move AC_LIBOBJ invocations to module description.
9385         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
9386         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
9387
9388 2011-05-23  Bruno Haible  <bruno@clisp.org>
9389
9390         xgetcwd: Move AC_LIBOBJ invocations to module description.
9391         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
9392         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
9393
9394 2011-05-23  Bruno Haible  <bruno@clisp.org>
9395
9396         xalloc: Move AC_LIBOBJ invocations to module description.
9397         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
9398         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
9399
9400 2011-05-23  Bruno Haible  <bruno@clisp.org>
9401
9402         write-any-file: Move AC_LIBOBJ invocations to module description.
9403         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
9404         invocation.
9405         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
9406
9407 2011-05-23  Bruno Haible  <bruno@clisp.org>
9408
9409         utimens: Move AC_LIBOBJ invocations to module description.
9410         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
9411         * modules/utimens (Makefile.am): Augment lib_SOURCES.
9412
9413 2011-05-23  Bruno Haible  <bruno@clisp.org>
9414
9415         utimecmp: Move AC_LIBOBJ invocations to module description.
9416         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
9417         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
9418
9419 2011-05-23  Bruno Haible  <bruno@clisp.org>
9420
9421         userspec: Move AC_LIBOBJ invocations to module description.
9422         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
9423         * modules/userspec (Makefile.am): Augment lib_SOURCES.
9424
9425 2011-05-23  Bruno Haible  <bruno@clisp.org>
9426
9427         unlinkdir: Move AC_LIBOBJ invocations to module description.
9428         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
9429         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
9430
9431 2011-05-23  Bruno Haible  <bruno@clisp.org>
9432
9433         unistd-safer: Move AC_LIBOBJ invocations to module description.
9434         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
9435         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
9436
9437 2011-05-23  Bruno Haible  <bruno@clisp.org>
9438
9439         tempname: Move AC_LIBOBJ invocations to module description.
9440         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
9441         * modules/tempname (Makefile.am): Augment lib_SOURCES.
9442
9443 2011-05-23  Bruno Haible  <bruno@clisp.org>
9444
9445         strftime: Move AC_LIBOBJ invocations to module description.
9446         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
9447         * modules/strftime (Makefile.am): Augment lib_SOURCES.
9448
9449 2011-05-23  Bruno Haible  <bruno@clisp.org>
9450
9451         stdlib-safer: Move AC_LIBOBJ invocations to module description.
9452         * m4/stdlib-safer.m4: Remove file.
9453         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
9454         (configure.ac): Remove gl_STDLIB_SAFER call.
9455         (Makefile.am): Augment lib_SOURCES.
9456
9457 2011-05-23  Bruno Haible  <bruno@clisp.org>
9458
9459         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
9460         * m4/stdio-safer.m4: Remove file.
9461         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
9462         (configure.ac): Remove gl_TMPFILE_SAFER call.
9463         (Makefile.am): Augment lib_SOURCES.
9464
9465 2011-05-23  Bruno Haible  <bruno@clisp.org>
9466
9467         popen-safer: Move AC_LIBOBJ invocations to module description.
9468         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
9469         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
9470         (configure.ac): Remove gl_POPEN_SAFER call.
9471         (Makefile.am): Augment lib_SOURCES.
9472
9473 2011-05-23  Bruno Haible  <bruno@clisp.org>
9474
9475         freopen-safer: Move AC_LIBOBJ invocations to module description.
9476         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
9477         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
9478         (configure.ac): Remove gl_FREOPEN_SAFER call.
9479         (Makefile.am): Augment lib_SOURCES.
9480
9481 2011-05-23  Bruno Haible  <bruno@clisp.org>
9482
9483         fopen-safer: Move AC_LIBOBJ invocations to module description.
9484         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
9485         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
9486         (configure.ac): Remove gl_FOPEN_SAFER call.
9487         (Makefile.am): Augment lib_SOURCES.
9488
9489 2011-05-23  Bruno Haible  <bruno@clisp.org>
9490
9491         crypto/sha512: Move AC_LIBOBJ invocations to module description.
9492         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
9493         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
9494
9495 2011-05-23  Bruno Haible  <bruno@clisp.org>
9496
9497         crypto/sha256: Move AC_LIBOBJ invocations to module description.
9498         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
9499         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
9500
9501 2011-05-23  Bruno Haible  <bruno@clisp.org>
9502
9503         crypto/sha1: Move AC_LIBOBJ invocations to module description.
9504         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
9505         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
9506
9507 2011-05-23  Bruno Haible  <bruno@clisp.org>
9508
9509         settime: Move AC_LIBOBJ invocations to module description.
9510         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
9511         * modules/settime (Makefile.am): Augment lib_SOURCES.
9512
9513 2011-05-23  Bruno Haible  <bruno@clisp.org>
9514
9515         savedir: Move AC_LIBOBJ invocations to module description.
9516         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
9517         * modules/savedir (Makefile.am): Augment lib_SOURCES.
9518
9519 2011-05-23  Bruno Haible  <bruno@clisp.org>
9520
9521         save-cwd: Move AC_LIBOBJ invocations to module description.
9522         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
9523         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
9524
9525 2011-05-23  Bruno Haible  <bruno@clisp.org>
9526
9527         same: Move AC_LIBOBJ invocations to module description.
9528         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
9529         * modules/same (Makefile.am): Augment lib_SOURCES.
9530
9531 2011-05-23  Bruno Haible  <bruno@clisp.org>
9532
9533         safe-write: Move AC_LIBOBJ invocations to module description.
9534         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
9535         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
9536         instead of gl_SAFE_WRITE.
9537         (Makefile.am): Augment lib_SOURCES.
9538
9539 2011-05-23  Bruno Haible  <bruno@clisp.org>
9540
9541         safe-read: Move AC_LIBOBJ invocations to module description.
9542         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
9543         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
9544         of gl_SAFE_READ.
9545         (Makefile.am): Augment lib_SOURCES.
9546
9547 2011-05-23  Bruno Haible  <bruno@clisp.org>
9548
9549         safe-alloc: Move AC_LIBOBJ invocations to module description.
9550         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
9551         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
9552
9553 2011-05-23  Bruno Haible  <bruno@clisp.org>
9554
9555         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
9556         * m4/rijndael.m4: Remove file.
9557         * modules/crypto/rijndael (Files): Remove it.
9558         (configure.ac): Remove gl_RIJNDAEL call.
9559         (Makefile.am): Augment lib_SOURCES.
9560
9561 2011-05-23  Bruno Haible  <bruno@clisp.org>
9562
9563         readtokens: Move AC_LIBOBJ invocations to module description.
9564         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
9565         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
9566
9567 2011-05-23  Bruno Haible  <bruno@clisp.org>
9568
9569         read-file: Move AC_LIBOBJ invocations to module description.
9570         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
9571         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
9572         of gl_FUNC_READ_FILE.
9573         (Makefile.am): Augment lib_SOURCES.
9574
9575 2011-05-23  Bruno Haible  <bruno@clisp.org>
9576
9577         quotearg: Move AC_LIBOBJ invocations to module description.
9578         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
9579         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
9580
9581 2011-05-23  Bruno Haible  <bruno@clisp.org>
9582
9583         quote: Move AC_LIBOBJ invocations to module description.
9584         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
9585         * modules/quote (Makefile.am): Augment lib_SOURCES.
9586
9587 2011-05-23  Bruno Haible  <bruno@clisp.org>
9588
9589         posixver: Move AC_LIBOBJ invocations to module description.
9590         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
9591         * modules/posixver (Makefile.am): Augment lib_SOURCES.
9592
9593 2011-05-23  Bruno Haible  <bruno@clisp.org>
9594
9595         posixtm: Move AC_LIBOBJ invocations to module description.
9596         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
9597         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
9598
9599 2011-05-23  Bruno Haible  <bruno@clisp.org>
9600
9601         physmem: Move AC_LIBOBJ invocations to module description.
9602         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
9603         * modules/physmem (Makefile.am): Augment lib_SOURCES.
9604
9605 2011-05-23  Bruno Haible  <bruno@clisp.org>
9606
9607         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
9608         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
9609         invocation.
9610         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
9611
9612 2011-05-23  Bruno Haible  <bruno@clisp.org>
9613
9614         mpsort: Move AC_LIBOBJ invocations to module description.
9615         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
9616         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
9617
9618 2011-05-23  Bruno Haible  <bruno@clisp.org>
9619
9620         modechange: Move AC_LIBOBJ invocations to module description.
9621         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
9622         * modules/modechange (Makefile.am): Augment lib_SOURCES.
9623
9624 2011-05-23  Bruno Haible  <bruno@clisp.org>
9625
9626         mkdir-p: Move AC_LIBOBJ invocations to module description.
9627         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
9628         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
9629
9630 2011-05-23  Bruno Haible  <bruno@clisp.org>
9631
9632         mkancesdirs: Move AC_LIBOBJ invocations to module description.
9633         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
9634         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
9635
9636 2011-05-23  Bruno Haible  <bruno@clisp.org>
9637
9638         mgetgroups: Move AC_LIBOBJ invocations to module description.
9639         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
9640         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
9641
9642 2011-05-23  Bruno Haible  <bruno@clisp.org>
9643
9644         memxor: Move AC_LIBOBJ invocations to module description.
9645         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
9646         * modules/memxor (Makefile.am): Augment lib_SOURCES.
9647
9648 2011-05-23  Bruno Haible  <bruno@clisp.org>
9649
9650         memcoll: Move AC_LIBOBJ invocations to module description.
9651         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
9652         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
9653
9654 2011-05-23  Bruno Haible  <bruno@clisp.org>
9655
9656         memcasecmp: Move AC_LIBOBJ invocations to module description.
9657         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
9658         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
9659
9660 2011-05-23  Bruno Haible  <bruno@clisp.org>
9661
9662         crypto/md5: Move AC_LIBOBJ invocations to module description.
9663         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
9664         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
9665
9666 2011-05-23  Bruno Haible  <bruno@clisp.org>
9667
9668         crypto/md4: Move AC_LIBOBJ invocations to module description.
9669         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
9670         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
9671
9672 2011-05-23  Bruno Haible  <bruno@clisp.org>
9673
9674         crypto/md2: Move AC_LIBOBJ invocations to module description.
9675         * m4/md2.m4: Remove file.
9676         * modules/crypto/md2 (Files): Remove it.
9677         (configure.ac): Remove gl_MD2 call.
9678         (Makefile.am): Augment lib_SOURCES.
9679
9680 2011-05-23  Bruno Haible  <bruno@clisp.org>
9681
9682         long-options: Move AC_LIBOBJ invocations to module description.
9683         * m4/long-options.m4: Remove file.
9684         * modules/long-options (Files): Remove it.
9685         (configure.ac): Remove gl_LONG_OPTIONS call.
9686         (Makefile.am): Augment lib_SOURCES.
9687
9688 2011-05-23  Bruno Haible  <bruno@clisp.org>
9689
9690         i-ring: Move AC_LIBOBJ invocations to module description.
9691         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
9692         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
9693
9694 2011-05-23  Bruno Haible  <bruno@clisp.org>
9695
9696         idcache: Move AC_LIBOBJ invocations to module description.
9697         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
9698         * modules/idcache (Makefile.am): Augment lib_SOURCES.
9699
9700 2011-05-23  Bruno Haible  <bruno@clisp.org>
9701
9702         human: Move AC_LIBOBJ invocations to module description.
9703         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
9704         * modules/human (Makefile.am): Augment lib_SOURCES.
9705
9706 2011-05-23  Bruno Haible  <bruno@clisp.org>
9707
9708         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
9709         * m4/hmac-sha1.m4: Remove file.
9710         * modules/crypto/hmac-sha1 (Files): Remove it.
9711         (configure.ac): Remove gl_HMAC_SHA1 call.
9712         (Makefile.am): Augment lib_SOURCES.
9713
9714 2011-05-23  Bruno Haible  <bruno@clisp.org>
9715
9716         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
9717         * m4/hmac-md5.m4: Remove file.
9718         * modules/crypto/hmac-md5 (Files): Remove it.
9719         (configure.ac): Remove gl_HMAC_MD5 call.
9720         (Makefile.am): Augment lib_SOURCES.
9721
9722 2011-05-23  Bruno Haible  <bruno@clisp.org>
9723
9724         hash: Move AC_LIBOBJ invocations to module description.
9725         * m4/hash.m4: Remove file.
9726         * modules/hash (Files): Remove it.
9727         (configure.ac): Remove gl_HASH call.
9728         (Makefile.am): Augment lib_SOURCES.
9729
9730 2011-05-23  Bruno Haible  <bruno@clisp.org>
9731
9732         hard-locale: Move AC_LIBOBJ invocations to module description.
9733         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
9734         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
9735
9736 2011-05-23  Bruno Haible  <bruno@clisp.org>
9737
9738         getugroups: Move AC_LIBOBJ invocations to module description.
9739         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
9740         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
9741
9742 2011-05-23  Bruno Haible  <bruno@clisp.org>
9743
9744         gettime: Move AC_LIBOBJ invocations to module description.
9745         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
9746         * modules/gettime (Makefile.am): Augment lib_SOURCES.
9747
9748 2011-05-23  Bruno Haible  <bruno@clisp.org>
9749
9750         getndelim2: Move AC_LIBOBJ invocations to module description.
9751         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
9752         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
9753
9754 2011-05-23  Bruno Haible  <bruno@clisp.org>
9755
9756         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
9757         * m4/gc-pbkdf2-sha1.m4: Remove file.
9758         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
9759         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
9760         (Makefile.am): Augment lib_SOURCES.
9761
9762 2011-05-23  Bruno Haible  <bruno@clisp.org>
9763
9764         fts: Move AC_LIBOBJ invocations to module description.
9765         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
9766         * modules/fts (configure.ac): ... to here.
9767
9768 2011-05-23  Bruno Haible  <bruno@clisp.org>
9769
9770         file-type: Move AC_LIBOBJ invocations to module description.
9771         * m4/file-type.m4: Remove file.
9772         * modules/file-type (Files): Remove it.
9773         (configure.ac): Remove gl_FILE_TYPE call.
9774         (Makefile.am): Augment lib_SOURCES.
9775
9776 2011-05-23  Bruno Haible  <bruno@clisp.org>
9777
9778         filenamecat*: Respect rules for use of AC_LIBOBJ.
9779         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
9780         Remove AC_LIBOBJ invocation.
9781         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
9782         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
9783
9784 2011-05-23  Bruno Haible  <bruno@clisp.org>
9785
9786         filemode: Move AC_LIBOBJ invocations to module description.
9787         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
9788         * modules/filemode (Makefile.am): Augment lib_SOURCES.
9789
9790 2011-05-23  Bruno Haible  <bruno@clisp.org>
9791
9792         openat-safer: Move AC_LIBOBJ invocations to module description.
9793         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
9794         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
9795
9796 2011-05-23  Bruno Haible  <bruno@clisp.org>
9797
9798         fcntl-safer: Move AC_LIBOBJ invocations to module description.
9799         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
9800         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
9801
9802 2011-05-23  Bruno Haible  <bruno@clisp.org>
9803
9804         exclude: Move AC_LIBOBJ invocations to module description.
9805         * m4/exclude.m4: Remove file.
9806         * modules/exclude (Files): Remove it.
9807         (configure.ac): Remove gl_EXCLUDE call.
9808         (Makefile.am): Augment lib_SOURCES.
9809
9810 2011-05-23  Bruno Haible  <bruno@clisp.org>
9811
9812         dirname*: Respect rules for use of AC_LIBOBJ.
9813         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
9814         invocations.
9815         * modules/dirname (Makefile.am): Augment lib_SOURCES.
9816         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
9817
9818 2011-05-23  Bruno Haible  <bruno@clisp.org>
9819
9820         dirent-safer: Move AC_LIBOBJ invocations to module description.
9821         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
9822         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
9823
9824 2011-05-23  Bruno Haible  <bruno@clisp.org>
9825
9826         crypto/des: Move AC_LIBOBJ invocations to module description.
9827         * m4/des.m4: Remove file.
9828         * modules/crypto/des (Files): Remove it.
9829         (configure.ac): Remove gl_DES call.
9830         (Makefile.am): Augment lib_SOURCES.
9831
9832 2011-05-23  Bruno Haible  <bruno@clisp.org>
9833
9834         cycle-check: Move AC_LIBOBJ invocations to module description.
9835         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
9836         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
9837
9838 2011-05-23  Bruno Haible  <bruno@clisp.org>
9839
9840         c-strtold: Move AC_LIBOBJ invocations to module description.
9841         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
9842         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
9843
9844 2011-05-23  Bruno Haible  <bruno@clisp.org>
9845
9846         c-strtod: Move AC_LIBOBJ invocations to module description.
9847         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
9848         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
9849
9850 2011-05-23  Bruno Haible  <bruno@clisp.org>
9851
9852         crc: Move AC_LIBOBJ invocations to module description.
9853         * m4/crc.m4: Remove file.
9854         * modules/crc (Files): Remove it.
9855         (configure.ac): Remove gl_CRC call.
9856         (Makefile.am): Augment lib_SOURCES.
9857
9858 2011-05-23  Bruno Haible  <bruno@clisp.org>
9859
9860         close-stream: Move AC_LIBOBJ invocations to module description.
9861         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
9862         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
9863
9864 2011-05-23  Bruno Haible  <bruno@clisp.org>
9865
9866         closeout: Move AC_LIBOBJ invocations to module description.
9867         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
9868         * modules/closeout (Makefile.am): Augment lib_SOURCES.
9869
9870 2011-05-23  Bruno Haible  <bruno@clisp.org>
9871
9872         closein: Move AC_LIBOBJ invocations to module description.
9873         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
9874         * modules/closein (Makefile.am): Augment lib_SOURCES.
9875
9876 2011-05-23  Bruno Haible  <bruno@clisp.org>
9877
9878         cloexec: Move AC_LIBOBJ invocations to module description.
9879         * m4/cloexec.m4: Remove file.
9880         * modules/cloexec (Files): Remove it.
9881         (configure.ac): Remove gl_CLOEXEC call.
9882         (Makefile.am): Augment lib_SOURCES.
9883
9884 2011-05-23  Bruno Haible  <bruno@clisp.org>
9885
9886         check-version: Move AC_LIBOBJ invocations to module description.
9887         * m4/check-version.m4: Remove file.
9888         * modules/check-version (Files): Remove it.
9889         (configure.ac): Remove gl_CHECK_VERSION call.
9890         (Makefile.am): Augment lib_SOURCES.
9891
9892 2011-05-23  Bruno Haible  <bruno@clisp.org>
9893
9894         chdir-safer: Move AC_LIBOBJ invocations to module description.
9895         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
9896         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
9897
9898 2011-05-23  Bruno Haible  <bruno@clisp.org>
9899
9900         canonicalize: Move AC_LIBOBJ invocations to module description.
9901         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
9902         AC_LIBOBJ invocation.
9903         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
9904
9905 2011-05-23  Bruno Haible  <bruno@clisp.org>
9906
9907         canon-host: Move AC_LIBOBJ invocations to module description.
9908         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
9909         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
9910         instead of gl_CANON_HOST.
9911         (Makefile.am): Augment lib_SOURCES.
9912
9913 2011-05-23  Bruno Haible  <bruno@clisp.org>
9914
9915         backupfile: Move AC_LIBOBJ invocations to module description.
9916         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
9917         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
9918
9919 2011-05-23  Bruno Haible  <bruno@clisp.org>
9920
9921         argmatch: Move AC_LIBOBJ invocations to module description.
9922         * m4/argmatch.m4: Remove file.
9923         * modules/argmatch (Files): Remove it.
9924         (configure.ac): Remove gl_ARGMATCH call.
9925         (Makefile.am): Augment lib_SOURCES.
9926
9927 2011-05-23  Bruno Haible  <bruno@clisp.org>
9928
9929         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
9930         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
9931         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
9932
9933 2011-05-23  Bruno Haible  <bruno@clisp.org>
9934
9935         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
9936         * m4/arcfour.m4: Remove file.
9937         * modules/crypto/arcfour (Files): Remove it.
9938         (configure.ac): Remove gl_ARCFOUR call.
9939         (Makefile.am): Augment lib_SOURCES.
9940
9941 2011-05-22  Bruno Haible  <bruno@clisp.org>
9942
9943         write: Move AC_LIBOBJ invocations to module description.
9944         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
9945         * modules/write (configure.ac): ... to here.
9946
9947 2011-05-22  Bruno Haible  <bruno@clisp.org>
9948
9949         wmemset: Move AC_LIBOBJ invocations to module description.
9950         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
9951         here...
9952         * modules/wmemset (configure.ac): ... to here.
9953
9954 2011-05-22  Bruno Haible  <bruno@clisp.org>
9955
9956         wmemmove: Move AC_LIBOBJ invocations to module description.
9957         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
9958         here...
9959         * modules/wmemmove (configure.ac): ... to here.
9960
9961 2011-05-22  Bruno Haible  <bruno@clisp.org>
9962
9963         wmemcpy: Move AC_LIBOBJ invocations to module description.
9964         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
9965         here...
9966         * modules/wmemcpy (configure.ac): ... to here.
9967
9968 2011-05-22  Bruno Haible  <bruno@clisp.org>
9969
9970         wmemcmp: Move AC_LIBOBJ invocations to module description.
9971         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
9972         here...
9973         * modules/wmemcmp (configure.ac): ... to here.
9974
9975 2011-05-22  Bruno Haible  <bruno@clisp.org>
9976
9977         wmemchr: Move AC_LIBOBJ invocations to module description.
9978         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
9979         here...
9980         * modules/wmemchr (configure.ac): ... to here.
9981
9982 2011-05-22  Bruno Haible  <bruno@clisp.org>
9983
9984         wcswidth: Move AC_LIBOBJ invocations to module description.
9985         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
9986         here...
9987         * modules/wcswidth (configure.ac): ... to here.
9988
9989 2011-05-22  Bruno Haible  <bruno@clisp.org>
9990
9991         wcwidth: Respect rules for use of AC_LIBOBJ.
9992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
9993         invocation from here...
9994         * modules/wcwidth (configure.ac): ... to here.
9995         (Depends-on): Update conditions.
9996
9997 2011-05-22  Bruno Haible  <bruno@clisp.org>
9998
9999         wctype: Move AC_LIBOBJ invocations to module description.
10000         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
10001         invocation from here...
10002         * modules/wctype (configure.ac): ... to here.
10003         (Depends-on): Update conditions.
10004
10005 2011-05-22  Bruno Haible  <bruno@clisp.org>
10006
10007         wctrans: Move AC_LIBOBJ invocations to module description.
10008         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
10009         invocation from here...
10010         * modules/wctrans (configure.ac): ... to here.
10011
10012 2011-05-22  Bruno Haible  <bruno@clisp.org>
10013
10014         wctomb: Move AC_LIBOBJ invocations to module description.
10015         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
10016         invocations from here...
10017         * modules/wctomb (configure.ac): ... to here.
10018
10019 2011-05-22  Bruno Haible  <bruno@clisp.org>
10020
10021         wctob: Move AC_LIBOBJ invocations to module description.
10022         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
10023         gl_PREREQ_WCTOB invocations from here...
10024         * modules/wctob (configure.ac): ... to here.
10025         (Depends-on): Update conditions.
10026
10027 2011-05-22  Bruno Haible  <bruno@clisp.org>
10028
10029         wcsxfrm: Move AC_LIBOBJ invocations to module description.
10030         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
10031         here...
10032         * modules/wcsxfrm (configure.ac): ... to here.
10033
10034 2011-05-22  Bruno Haible  <bruno@clisp.org>
10035
10036         wcstok: Move AC_LIBOBJ invocations to module description.
10037         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
10038         * modules/wcstok (configure.ac): ... to here.
10039
10040 2011-05-22  Bruno Haible  <bruno@clisp.org>
10041
10042         wcsstr: Move AC_LIBOBJ invocations to module description.
10043         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
10044         * modules/wcsstr (configure.ac): ... to here.
10045
10046 2011-05-22  Bruno Haible  <bruno@clisp.org>
10047
10048         wcsspn: Move AC_LIBOBJ invocations to module description.
10049         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
10050         * modules/wcsspn (configure.ac): ... to here.
10051
10052 2011-05-22  Bruno Haible  <bruno@clisp.org>
10053
10054         wcsrtombs: Move AC_LIBOBJ invocations to module description.
10055         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
10056         gl_PREREQ_WCSRTOMBS invocations from here...
10057         * modules/wcsrtombs (configure.ac): ... to here.
10058
10059 2011-05-22  Bruno Haible  <bruno@clisp.org>
10060
10061         wcsrchr: Move AC_LIBOBJ invocations to module description.
10062         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
10063         here...
10064         * modules/wcsrchr (configure.ac): ... to here.
10065
10066 2011-05-22  Bruno Haible  <bruno@clisp.org>
10067
10068         wcspbrk: Move AC_LIBOBJ invocations to module description.
10069         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
10070         here...
10071         * modules/wcspbrk (configure.ac): ... to here.
10072
10073 2011-05-22  Bruno Haible  <bruno@clisp.org>
10074
10075         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
10076         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
10077         gl_PREREQ_WCSNRTOMBS invocations from here...
10078         * modules/wcsnrtombs (configure.ac): ... to here.
10079
10080 2011-05-22  Bruno Haible  <bruno@clisp.org>
10081
10082         wcsnlen: Move AC_LIBOBJ invocations to module description.
10083         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
10084         here...
10085         * modules/wcsnlen (configure.ac): ... to here.
10086
10087 2011-05-22  Bruno Haible  <bruno@clisp.org>
10088
10089         wcsncpy: Move AC_LIBOBJ invocations to module description.
10090         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
10091         here...
10092         * modules/wcsncpy (configure.ac): ... to here.
10093
10094 2011-05-22  Bruno Haible  <bruno@clisp.org>
10095
10096         wcsncmp: Move AC_LIBOBJ invocations to module description.
10097         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
10098         here...
10099         * modules/wcsncmp (configure.ac): ... to here.
10100
10101 2011-05-22  Bruno Haible  <bruno@clisp.org>
10102
10103         wcsncat: Move AC_LIBOBJ invocations to module description.
10104         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
10105         here...
10106         * modules/wcsncat (configure.ac): ... to here.
10107
10108 2011-05-22  Bruno Haible  <bruno@clisp.org>
10109
10110         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
10111         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
10112         from here...
10113         * modules/wcsncasecmp (configure.ac): ... to here.
10114
10115 2011-05-22  Bruno Haible  <bruno@clisp.org>
10116
10117         wcslen: Move AC_LIBOBJ invocations to module description.
10118         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
10119         * modules/wcslen (configure.ac): ... to here.
10120
10121 2011-05-22  Bruno Haible  <bruno@clisp.org>
10122
10123         wcsdup: Move AC_LIBOBJ invocations to module description.
10124         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
10125         * modules/wcsdup (configure.ac): ... to here.
10126
10127 2011-05-22  Bruno Haible  <bruno@clisp.org>
10128
10129         wcscspn: Move AC_LIBOBJ invocations to module description.
10130         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
10131         here...
10132         * modules/wcscspn (configure.ac): ... to here.
10133
10134 2011-05-22  Bruno Haible  <bruno@clisp.org>
10135
10136         wcscpy: Move AC_LIBOBJ invocations to module description.
10137         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
10138         * modules/wcscpy (configure.ac): ... to here.
10139
10140 2011-05-22  Bruno Haible  <bruno@clisp.org>
10141
10142         wcscoll: Move AC_LIBOBJ invocations to module description.
10143         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
10144         here...
10145         * modules/wcscoll (configure.ac): ... to here.
10146
10147 2011-05-22  Bruno Haible  <bruno@clisp.org>
10148
10149         wcscmp: Move AC_LIBOBJ invocations to module description.
10150         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
10151         * modules/wcscmp (configure.ac): ... to here.
10152
10153 2011-05-22  Bruno Haible  <bruno@clisp.org>
10154
10155         wcschr: Move AC_LIBOBJ invocations to module description.
10156         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
10157         * modules/wcschr (configure.ac): ... to here.
10158
10159 2011-05-22  Bruno Haible  <bruno@clisp.org>
10160
10161         wcscat: Move AC_LIBOBJ invocations to module description.
10162         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
10163         * modules/wcscat (configure.ac): ... to here.
10164
10165 2011-05-22  Bruno Haible  <bruno@clisp.org>
10166
10167         wcscasecmp: Move AC_LIBOBJ invocations to module description.
10168         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
10169         here...
10170         * modules/wcscasecmp (configure.ac): ... to here.
10171
10172 2011-05-22  Bruno Haible  <bruno@clisp.org>
10173
10174         wcrtomb: Move AC_LIBOBJ invocations to module description.
10175         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
10176         invocations from here...
10177         * modules/wcrtomb (configure.ac): ... to here.
10178
10179 2011-05-22  Bruno Haible  <bruno@clisp.org>
10180
10181         wcpncpy: Move AC_LIBOBJ invocations to module description.
10182         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
10183         here...
10184         * modules/wcpncpy (configure.ac): ... to here.
10185
10186 2011-05-22  Bruno Haible  <bruno@clisp.org>
10187
10188         wcpcpy: Move AC_LIBOBJ invocations to module description.
10189         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
10190         * modules/wcpcpy (configure.ac): ... to here.
10191
10192 2011-05-22  Bruno Haible  <bruno@clisp.org>
10193
10194         waitpid: Move AC_LIBOBJ invocations to module description.
10195         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
10196         invocation from here...
10197         * modules/waitpid (configure.ac): ... to here.
10198
10199 2011-05-22  Bruno Haible  <bruno@clisp.org>
10200
10201         utimensat: Move AC_LIBOBJ invocations to module description.
10202         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
10203         here...
10204         * modules/utimensat (configure.ac): ... to here.
10205
10206 2011-05-22  Bruno Haible  <bruno@clisp.org>
10207
10208         usleep: Move AC_LIBOBJ invocations to module description.
10209         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
10210         here...
10211         * modules/usleep (configure.ac): ... to here.
10212
10213 2011-05-22  Bruno Haible  <bruno@clisp.org>
10214
10215         unlockpt: Move AC_LIBOBJ invocations to module description.
10216         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
10217         gl_PREREQ_UNLOCKPT invocations from here...
10218         * modules/unlockpt (configure.ac): ... to here.
10219
10220 2011-05-22  Bruno Haible  <bruno@clisp.org>
10221
10222         unlink: Respect rules for use of AC_LIBOBJ.
10223         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
10224         * modules/unlink (configure.ac): ... to here.
10225
10226 2011-05-22  Bruno Haible  <bruno@clisp.org>
10227
10228         uname: Move AC_LIBOBJ invocations to module description.
10229         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
10230         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
10231         here...
10232         * modules/uname (configure.ac): ... to here.
10233
10234 2011-05-22  Bruno Haible  <bruno@clisp.org>
10235
10236         ttyname_r: Move AC_LIBOBJ invocations to module description.
10237         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
10238         gl_PREREQ_TTYNAME_R invocations from here...
10239         * modules/ttyname_r (configure.ac): ... to here.
10240
10241 2011-05-22  Bruno Haible  <bruno@clisp.org>
10242
10243         tsearch: Move AC_LIBOBJ invocations to module description.
10244         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
10245         invocations from here...
10246         * modules/tsearch (configure.ac): ... to here.
10247
10248 2011-05-22  Bruno Haible  <bruno@clisp.org>
10249
10250         towctrans: Move AC_LIBOBJ invocations to module description.
10251         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
10252         AC_LIBOBJ invocation from here...
10253         * modules/towctrans (configure.ac): ... to here.
10254
10255 2011-05-22  Bruno Haible  <bruno@clisp.org>
10256
10257         tmpfile: Move AC_LIBOBJ invocations to module description.
10258         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
10259         invocations from here...
10260         * modules/tmpfile (configure.ac): ... to here.
10261
10262 2011-05-22  Bruno Haible  <bruno@clisp.org>
10263
10264         times: Move AC_LIBOBJ invocations to module description.
10265         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
10266         * modules/times (configure.ac): ... to here.
10267
10268 2011-05-22  Bruno Haible  <bruno@clisp.org>
10269
10270         time_r: Move AC_LIBOBJ invocations to module description.
10271         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
10272         invocations from here...
10273         * modules/time_r (configure.ac): ... to here.
10274
10275 2011-05-22  Bruno Haible  <bruno@clisp.org>
10276
10277         timegm: Move AC_LIBOBJ invocations to module description.
10278         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
10279         invocations from here...
10280         * modules/timegm (configure.ac): ... to here.
10281
10282 2011-05-22  Bruno Haible  <bruno@clisp.org>
10283
10284         tcgetsid: Move AC_LIBOBJ invocations to module description.
10285         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
10286         and gl_PREREQ_TCGETSID invocations from here...
10287         * modules/tcgetsid (configure.ac): ... to here.
10288         (Depends-on): Update conditions.
10289
10290 2011-05-22  Bruno Haible  <bruno@clisp.org>
10291
10292         symlinkat: Move AC_LIBOBJ invocations to module description.
10293         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
10294         here...
10295         * modules/symlinkat (configure.ac): ... to here.
10296
10297 2011-05-22  Bruno Haible  <bruno@clisp.org>
10298
10299         symlink: Move AC_LIBOBJ invocations to module description.
10300         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
10301         here...
10302         * modules/symlink (configure.ac): ... to here.
10303
10304 2011-05-22  Bruno Haible  <bruno@clisp.org>
10305
10306         strverscmp: Move AC_LIBOBJ invocations to module description.
10307         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
10308         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
10309         from here...
10310         * modules/strverscmp (configure.ac): ... to here.
10311
10312 2011-05-22  Bruno Haible  <bruno@clisp.org>
10313
10314         strtok_r: Move AC_LIBOBJ invocations to module description.
10315         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
10316         and gl_PREREQ_STRTOK_R invocations from here...
10317         * modules/strtok_r (configure.ac): ... to here.
10318         (Depends-on): Update conditions.
10319
10320 2011-05-22  Bruno Haible  <bruno@clisp.org>
10321
10322         strtoumax: Move AC_LIBOBJ invocations to module description.
10323         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
10324         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
10325         from here...
10326         * modules/strtoumax (configure.ac): ... to here.
10327
10328 2011-05-22  Bruno Haible  <bruno@clisp.org>
10329
10330         strtoimax: Move AC_LIBOBJ invocations to module description.
10331         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
10332         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
10333         from here...
10334         * modules/strtoimax (configure.ac): ... to here.
10335
10336 2011-05-22  Bruno Haible  <bruno@clisp.org>
10337
10338         strtoull: Move AC_LIBOBJ invocations to module description.
10339         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
10340         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
10341         from here...
10342         * modules/strtoull (configure.ac): ... to here.
10343
10344 2011-05-22  Bruno Haible  <bruno@clisp.org>
10345
10346         strtoll: Move AC_LIBOBJ invocations to module description.
10347         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
10348         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
10349         here...
10350         * modules/strtoll (configure.ac): ... to here.
10351
10352 2011-05-22  Bruno Haible  <bruno@clisp.org>
10353
10354         strtoul: Move AC_LIBOBJ invocations to module description.
10355         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
10356         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10357         * modules/strtoul (configure.ac): ... to here.
10358
10359 2011-05-22  Bruno Haible  <bruno@clisp.org>
10360
10361         strtol: Move AC_LIBOBJ invocations to module description.
10362         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
10363         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10364         * modules/strtol (configure.ac): ... to here.
10365
10366 2011-05-22  Bruno Haible  <bruno@clisp.org>
10367
10368         strtod: Move AC_LIBOBJ invocations to module description.
10369         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
10370         invocations from here...
10371         * modules/strtod (configure.ac): ... to here.
10372
10373 2011-05-22  Bruno Haible  <bruno@clisp.org>
10374
10375         strstr*: Move AC_LIBOBJ invocations to module description.
10376         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
10377         invocations from here...
10378         * modules/strstr-simple (configure.ac): ... to here.
10379         * modules/strstr (configure.ac): ... and here.
10380
10381 2011-05-22  Bruno Haible  <bruno@clisp.org>
10382
10383         strsignal: Move AC_LIBOBJ invocations to module description.
10384         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
10385         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
10386         * modules/strsignal (configure.ac): ... to here.
10387         (Depends-on): Update conditions.
10388
10389 2011-05-22  Bruno Haible  <bruno@clisp.org>
10390
10391         strsep: Move AC_LIBOBJ invocations to module description.
10392         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
10393         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
10394         here...
10395         * modules/strsep (configure.ac): ... to here.
10396
10397 2011-05-22  Bruno Haible  <bruno@clisp.org>
10398
10399         strptime: Move AC_LIBOBJ invocations to module description.
10400         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
10401         gl_PREREQ_STRPTIME invocations from here...
10402         * modules/strptime (configure.ac): ... to here.
10403
10404 2011-05-22  Bruno Haible  <bruno@clisp.org>
10405
10406         strpbrk: Move AC_LIBOBJ invocations to module description.
10407         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
10408         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
10409         here...
10410         * modules/strpbrk (configure.ac): ... to here.
10411
10412 2011-05-22  Bruno Haible  <bruno@clisp.org>
10413
10414         strnlen: Move AC_LIBOBJ invocations to module description.
10415         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
10416         invocations from here...
10417         * modules/strnlen (configure.ac): ... to here.
10418
10419 2011-05-22  Bruno Haible  <bruno@clisp.org>
10420
10421         strndup: Move AC_LIBOBJ invocations to module description.
10422         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
10423         invocations from here...
10424         * modules/strndup (configure.ac): ... to here.
10425         (Depends-on): Update conditions.
10426
10427 2011-05-22  Bruno Haible  <bruno@clisp.org>
10428
10429         strncat: Move AC_LIBOBJ invocations to module description.
10430         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
10431         invocations from here...
10432         * modules/strncat (configure.ac): ... to here.
10433
10434 2011-05-22  Bruno Haible  <bruno@clisp.org>
10435
10436         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
10437         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
10438         invocations from here...
10439         * modules/strdup (configure.ac): ... to here.
10440         * modules/strdup-posix (configure.ac): ... and here.
10441
10442 2011-05-22  Bruno Haible  <bruno@clisp.org>
10443
10444         strcspn: Move AC_LIBOBJ invocations to module description.
10445         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
10446         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
10447         here...
10448         * modules/strcspn (configure.ac): ... to here.
10449
10450 2011-05-22  Bruno Haible  <bruno@clisp.org>
10451
10452         strchrnul: Move AC_LIBOBJ invocations to module description.
10453         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
10454         gl_PREREQ_STRCHRNUL invocations from here...
10455         * modules/strchrnul (configure.ac): ... to here.
10456
10457 2011-05-22  Bruno Haible  <bruno@clisp.org>
10458
10459         strcasestr*: Move AC_LIBOBJ invocations to module description.
10460         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10461         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
10462         * modules/strcasestr-simple (configure.ac): ... to here.
10463         * modules/strcasestr (configure.ac): ... and here.
10464
10465 2011-05-22  Bruno Haible  <bruno@clisp.org>
10466
10467         strcase: Move AC_LIBOBJ invocations to module description.
10468         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
10469         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
10470         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
10471         gl_PREREQ_STRNCASECMP invocations from here...
10472         * modules/strcase (configure.ac): ... to here.
10473
10474 2011-05-22  Bruno Haible  <bruno@clisp.org>
10475
10476         stpncpy: Move AC_LIBOBJ invocations to module description.
10477         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
10478         here...
10479         * modules/stpncpy (configure.ac): ... to here.
10480
10481 2011-05-22  Bruno Haible  <bruno@clisp.org>
10482
10483         stpcpy: Move AC_LIBOBJ invocations to module description.
10484         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
10485         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
10486         here...
10487         * modules/stpcpy (configure.ac): ... to here.
10488
10489 2011-05-21  Bruno Haible  <bruno@clisp.org>
10490
10491         stat: Move AC_LIBOBJ invocations to module description.
10492         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
10493         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
10494         here...
10495         * modules/stat (configure.ac): ... to here.
10496
10497 2011-05-21  Bruno Haible  <bruno@clisp.org>
10498
10499         sleep: Move AC_LIBOBJ invocations to module description.
10500         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
10501         * modules/sleep (configure.ac): ... to here.
10502
10503 2011-05-21  Bruno Haible  <bruno@clisp.org>
10504
10505         signbit: Move AC_LIBOBJ invocations to module description.
10506         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
10507         * modules/signbit (configure.ac): ... to here.
10508
10509 2011-05-21  Bruno Haible  <bruno@clisp.org>
10510
10511         sigprocmask: Move AC_LIBOBJ invocations to module description.
10512         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
10513         gl_PREREQ_SIGPROMASK invocations from here...
10514         * modules/sigprocmask (configure.ac): ... to here.
10515
10516 2011-05-21  Bruno Haible  <bruno@clisp.org>
10517
10518         sigaction: Move AC_LIBOBJ invocations to module description.
10519         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
10520         gl_PREREQ_SIGACTION invocations from here...
10521         * modules/sigaction (configure.ac): ... to here.
10522
10523 2011-05-21  Bruno Haible  <bruno@clisp.org>
10524
10525         sig2str: Move AC_LIBOBJ invocations to module description.
10526         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
10527         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
10528         here...
10529         * modules/sig2str (configure.ac): ... to here.
10530
10531 2011-05-21  Bruno Haible  <bruno@clisp.org>
10532
10533         setlocale: Move AC_LIBOBJ invocations to module description.
10534         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
10535         gl_PREREQ_SETLOCALE invocations from here...
10536         * modules/setlocale (configure.ac): ... to here.
10537
10538 2011-05-21  Bruno Haible  <bruno@clisp.org>
10539
10540         unsetenv: Move AC_LIBOBJ invocations to module description.
10541         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
10542         and gl_PREREQ_UNSETENV invocations from here...
10543         * modules/unsetenv (configure.ac): ... to here.
10544         (Depends-on): Update.
10545
10546 2011-05-21  Bruno Haible  <bruno@clisp.org>
10547
10548         setenv: Move AC_LIBOBJ invocations to module description.
10549         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
10550         here...
10551         * modules/setenv (configure.ac): ... to here.
10552
10553 2011-05-21  Bruno Haible  <bruno@clisp.org>
10554
10555         selinux-h: Move AC_LIBOBJ invocations to module description.
10556         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
10557         AC_LIBOBJ invocation from here...
10558         * modules/selinux-h (configure.ac): ... to here.
10559
10560 2011-05-21  Bruno Haible  <bruno@clisp.org>
10561
10562         select: Respect rules for use of AC_LIBOBJ.
10563         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
10564         here...
10565         * modules/select (configure.ac): ... to here.
10566
10567 2011-05-21  Bruno Haible  <bruno@clisp.org>
10568
10569         scandir: Move AC_LIBOBJ invocations to module description.
10570         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
10571         invocations from here...
10572         * modules/scandir (configure.ac): ... to here.
10573
10574 2011-05-21  Bruno Haible  <bruno@clisp.org>
10575
10576         rpmatch: Move AC_LIBOBJ invocations to module description.
10577         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
10578         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
10579         here...
10580         * modules/rpmatch (configure.ac): ... to here.
10581
10582 2011-05-21  Bruno Haible  <bruno@clisp.org>
10583
10584         rmdir: Respect rules for use of AC_LIBOBJ.
10585         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
10586         * modules/rmdir (configure.ac): ... to here.
10587
10588 2011-05-21  Bruno Haible  <bruno@clisp.org>
10589
10590         renameat: Move AC_LIBOBJ invocations to module description.
10591         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
10592         here...
10593         * modules/renameat (configure.ac): ... to here.
10594
10595 2011-05-21  Bruno Haible  <bruno@clisp.org>
10596
10597         rename: Respect rules for use of AC_LIBOBJ.
10598         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
10599         here...
10600         * modules/rename (configure.ac): ... to here.
10601
10602 2011-05-21  Bruno Haible  <bruno@clisp.org>
10603
10604         remove: Move AC_LIBOBJ invocations to module description.
10605         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
10606         here...
10607         * modules/remove (configure.ac): ... to here.
10608
10609 2011-05-21  Bruno Haible  <bruno@clisp.org>
10610
10611         relocatable-lib: Move AC_LIBOBJ invocations to module description.
10612         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
10613         macro.
10614         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
10615         * modules/relocatable-lib (configure.ac): ... to here.
10616         * modules/relocatable-prog-wrapper (configure.ac): Invoke
10617         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
10618
10619 2011-05-21  Bruno Haible  <bruno@clisp.org>
10620
10621         relocatable-prog: Move AC_LIBOBJ invocations to module description.
10622         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
10623         here...
10624         * modules/relocatable-prog (configure.ac): ... to here.
10625
10626 2011-05-21  Bruno Haible  <bruno@clisp.org>
10627
10628         regex: Move AC_LIBOBJ invocations to module description.
10629         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
10630         invocations from here...
10631         * modules/regex (configure.ac): ... to here.
10632
10633 2011-05-21  Bruno Haible  <bruno@clisp.org>
10634
10635         realloc-*: Move AC_LIBOBJ invocations to module description.
10636         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
10637         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
10638         AC_LIBOBJ invocations from here...
10639         * modules/realloc-gnu (configure.ac): ... to here.
10640         * modules/realloc-posix (configure.ac): ... and here.
10641
10642 2011-05-21  Bruno Haible  <bruno@clisp.org>
10643
10644         readutmp: Move AC_LIBOBJ invocations to module description.
10645         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
10646         * modules/readutmp (configure.ac): ... to here.
10647
10648 2011-05-21  Bruno Haible  <bruno@clisp.org>
10649
10650         readlinkat: Move AC_LIBOBJ invocations to module description.
10651         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
10652         here...
10653         * modules/readlinkat (configure.ac): ... to here.
10654
10655 2011-05-21  Bruno Haible  <bruno@clisp.org>
10656
10657         readlink: Move AC_LIBOBJ invocations to module description.
10658         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
10659         gl_PREREQ_READLINK invocations from here...
10660         * modules/readlink (configure.ac): ... to here.
10661
10662 2011-05-21  Bruno Haible  <bruno@clisp.org>
10663
10664         readline: Move AC_LIBOBJ invocations to module description.
10665         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
10666         gl_PREREQ_READLINE invocations from here...
10667         * modules/readline (configure.ac): ... to here.
10668
10669 2011-05-21  Bruno Haible  <bruno@clisp.org>
10670
10671         read: Move AC_LIBOBJ invocations to module description.
10672         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
10673         * modules/read (configure.ac): ... to here.
10674
10675 2011-05-21  Bruno Haible  <bruno@clisp.org>
10676
10677         rawmemchr: Move AC_LIBOBJ invocations to module description.
10678         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
10679         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
10680         from here...
10681         * modules/rawmemchr (configure.ac): ... to here.
10682
10683 2011-05-21  Bruno Haible  <bruno@clisp.org>
10684
10685         random_r: Move AC_LIBOBJ invocations to module description.
10686         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
10687         gl_PREREQ_RANDOM_R invocations from here...
10688         * modules/random_r (configure.ac): ... to here.
10689
10690 2011-05-21  Bruno Haible  <bruno@clisp.org>
10691
10692         pwrite: Move AC_LIBOBJ invocations to module description.
10693         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
10694         * modules/pwrite (configure.ac): ... to here.
10695
10696 2011-05-21  Bruno Haible  <bruno@clisp.org>
10697
10698         putenv: Move AC_LIBOBJ invocations to module description.
10699         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
10700         * modules/putenv (configure.ac): ... to here.
10701
10702 2011-05-21  Bruno Haible  <bruno@clisp.org>
10703
10704         login_tty: Move AC_LIBOBJ invocations to module description.
10705         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
10706         * modules/login_tty (configure.ac): ... to here.
10707
10708 2011-05-21  Bruno Haible  <bruno@clisp.org>
10709
10710         openpty: Move AC_LIBOBJ invocations to module description.
10711         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
10712         * modules/openpty (configure.ac): ... to here.
10713
10714 2011-05-21  Bruno Haible  <bruno@clisp.org>
10715
10716         forkpty: Move AC_LIBOBJ invocations to module description.
10717         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
10718         * modules/forkpty (configure.ac): ... to here.
10719
10720 2011-05-21  Bruno Haible  <bruno@clisp.org>
10721
10722         ptsname: Move AC_LIBOBJ invocations to module description.
10723         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
10724         invocations from here...
10725         * modules/ptsname (configure.ac): ... to here.
10726
10727 2011-05-21  Bruno Haible  <bruno@clisp.org>
10728
10729         pread: Move AC_LIBOBJ invocations to module description.
10730         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
10731         * modules/pread (configure.ac): ... to here.
10732
10733 2011-05-21  Bruno Haible  <bruno@clisp.org>
10734
10735         posix_spawn*: Move AC_LIBOBJ invocations to module description.
10736         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
10737         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
10738         * modules/posix_spawn (configure.ac): ... to here.
10739         * modules/posix_spawnp (configure.ac): ... and here.
10740
10741 2011-05-21  Bruno Haible  <bruno@clisp.org>
10742
10743         popen: Move AC_LIBOBJ invocations to module description.
10744         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
10745         invocations from here...
10746         * modules/popen (configure.ac): ... to here.
10747
10748 2011-05-21  Bruno Haible  <bruno@clisp.org>
10749
10750         poll: Move AC_LIBOBJ invocations to module description.
10751         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
10752         invocations from here...
10753         * modules/poll (configure.ac): ... to here.
10754
10755 2011-05-21  Bruno Haible  <bruno@clisp.org>
10756
10757         pipe-posix: Move AC_LIBOBJ invocations to module description.
10758         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
10759         * modules/pipe-posix (configure.ac): ... to here.
10760
10761 2011-05-21  Bruno Haible  <bruno@clisp.org>
10762
10763         openat: Respect rules for use of AC_LIBOBJ.
10764         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
10765         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10766         * modules/openat (configure.ac): ... to here.
10767
10768 2011-05-21  Bruno Haible  <bruno@clisp.org>
10769
10770         obstack-printf*: Move AC_LIBOBJ invocations to module description.
10771         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
10772         invocation from here...
10773         * modules/obstack-printf (configure.ac): ... to here.
10774         * modules/obstack-printf-posix (configure.ac): ... and here.
10775
10776 2011-05-21  Bruno Haible  <bruno@clisp.org>
10777
10778         nl_langinfo: Move AC_LIBOBJ invocations to module description.
10779         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
10780         from here...
10781         * modules/nl_langinfo (configure.ac): ... to here.
10782
10783 2011-05-21  Bruno Haible  <bruno@clisp.org>
10784
10785         nanosleep: Move AC_LIBOBJ invocations to module description.
10786         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
10787         gl_PREREQ_NANOSLEEP invocations from here...
10788         * modules/nanosleep (configure.ac): ... to here.
10789
10790 2011-05-21  Bruno Haible  <bruno@clisp.org>
10791
10792         mountlist: Move AC_LIBOBJ invocations to module description.
10793         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
10794         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
10795         * modules/mountlist (configure.ac): ... to here.
10796
10797 2011-05-21  Bruno Haible  <bruno@clisp.org>
10798
10799         mktime: Respect rules for use of AC_LIBOBJ.
10800         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
10801         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
10802         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
10803         (gl_FUNC_MKTIME_INTERNAL): ... and here...
10804         * modules/mktime (configure.ac): ... to here.
10805         * modules/mktime-internal (configure.ac): ... and here.
10806         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
10807
10808 2011-05-21  Bruno Haible  <bruno@clisp.org>
10809
10810         mkstemps: Move AC_LIBOBJ invocations to module description.
10811         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
10812         here...
10813         * modules/mkstemps (configure.ac): ... to here.
10814
10815 2011-05-21  Bruno Haible  <bruno@clisp.org>
10816
10817         mkstemp: Move AC_LIBOBJ invocations to module description.
10818         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
10819         gl_PREREQ_MKSTEMP invocations from here...
10820         * modules/mkstemp (configure.ac): ... to here.
10821
10822 2011-05-21  Bruno Haible  <bruno@clisp.org>
10823
10824         mkostemps: Move AC_LIBOBJ invocations to module description.
10825         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
10826         here...
10827         * modules/mkostemps (configure.ac): ... to here.
10828
10829 2011-05-21  Bruno Haible  <bruno@clisp.org>
10830
10831         mkostemp: Move AC_LIBOBJ invocations to module description.
10832         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
10833         gl_PREREQ_MKOSTEMP invocations from here...
10834         * modules/mkostemp (configure.ac): ... to here.
10835
10836 2011-05-21  Bruno Haible  <bruno@clisp.org>
10837
10838         mknod: Move AC_LIBOBJ invocations to module description.
10839         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
10840         * modules/mknod (configure.ac): ... to here.
10841
10842 2011-05-21  Bruno Haible  <bruno@clisp.org>
10843
10844         mkfifoat: Move AC_LIBOBJ invocations to module description.
10845         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
10846         here...
10847         * modules/mkfifoat (configure.ac): ... to here.
10848
10849 2011-05-21  Bruno Haible  <bruno@clisp.org>
10850
10851         mkfifo: Respect rules for use of AC_LIBOBJ.
10852         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
10853         here...
10854         * modules/mkfifo (configure.ac): ... to here.
10855
10856 2011-05-21  Bruno Haible  <bruno@clisp.org>
10857
10858         mkdtemp: Move AC_LIBOBJ invocations to module description.
10859         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
10860         invocations from here...
10861         * modules/mkdtemp (configure.ac): ... to here.
10862
10863 2011-05-21  Bruno Haible  <bruno@clisp.org>
10864
10865         mkdir: Move AC_LIBOBJ invocations to module description.
10866         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
10867         * modules/mkdir (configure.ac): ... to here.
10868
10869 2011-05-21  Bruno Haible  <bruno@clisp.org>
10870
10871         memset: Move AC_LIBOBJ invocations to module description.
10872         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
10873         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
10874         here...
10875         * modules/memset (configure.ac): ... to here.
10876
10877 2011-05-21  Bruno Haible  <bruno@clisp.org>
10878
10879         memrchr: Move AC_LIBOBJ invocations to module description.
10880         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
10881         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
10882         here...
10883         * modules/memrchr (configure.ac): ... to here.
10884
10885 2011-05-21  Bruno Haible  <bruno@clisp.org>
10886
10887         mempcpy: Move AC_LIBOBJ invocations to module description.
10888         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
10889         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
10890         here...
10891         * modules/mempcpy (configure.ac): ... to here.
10892
10893 2011-05-21  Bruno Haible  <bruno@clisp.org>
10894
10895         memmove: Move AC_LIBOBJ invocations to module description.
10896         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
10897         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
10898         here...
10899         * modules/memmove (configure.ac): ... to here.
10900
10901 2011-05-21  Bruno Haible  <bruno@clisp.org>
10902
10903         memmem*: Move AC_LIBOBJ invocations to module description.
10904         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
10905         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
10906         here...
10907         (gl_FUNC_MEMMEM): ... and here...
10908         * modules/memmem-simple (configure.ac): ... to here.
10909         * modules/memmem (configure.ac): ... and here.
10910
10911 2011-05-21  Bruno Haible  <bruno@clisp.org>
10912
10913         memcpy: Move AC_LIBOBJ invocations to module description.
10914         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
10915         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
10916         here...
10917         * modules/memcpy (configure.ac): ... to here.
10918
10919 2011-05-21  Bruno Haible  <bruno@clisp.org>
10920
10921         memcmp: Simplify autoconf macro.
10922         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
10923         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
10924         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
10925
10926 2011-05-21  Bruno Haible  <bruno@clisp.org>
10927
10928         memcmp: Move AC_LIBOBJ invocations to module description.
10929         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
10930         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
10931         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
10932         * modules/memcmp (configure.ac): ... to here.
10933         (Depends-on): Update conditions.
10934
10935 2011-05-21  Bruno Haible  <bruno@clisp.org>
10936
10937         memchr: Respect rules for use of AC_LIBOBJ.
10938         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
10939         invocations from here...
10940         * modules/memchr (configure.ac): ... to here.
10941
10942 2011-05-21  Bruno Haible  <bruno@clisp.org>
10943
10944         mbtowc: Move AC_LIBOBJ invocations to module description.
10945         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
10946         invocations from here...
10947         * modules/mbtowc (configure.ac): ... to here.
10948
10949 2011-05-21  Bruno Haible  <bruno@clisp.org>
10950
10951         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
10952         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
10953         gl_PREREQ_MBSRTOWCS invocations from here...
10954         * modules/mbsrtowcs (configure.ac): ... to here.
10955
10956 2011-05-21  Bruno Haible  <bruno@clisp.org>
10957
10958         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
10959         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
10960         gl_PREREQ_MBSNRTOWCS invocations from here...
10961         * modules/mbsnrtowcs (configure.ac): ... to here.
10962
10963 2011-05-21  Bruno Haible  <bruno@clisp.org>
10964
10965         mbsinit: Move AC_LIBOBJ invocations to module description.
10966         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
10967         invocations from here...
10968         * modules/mbsinit (configure.ac): ... to here.
10969
10970 2011-05-21  Bruno Haible  <bruno@clisp.org>
10971
10972         mbrlen: Move AC_LIBOBJ invocations to module description.
10973         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
10974         invocations from here...
10975         * modules/mbrlen (configure.ac): ... to here.
10976
10977 2011-05-21  Bruno Haible  <bruno@clisp.org>
10978
10979         mbrtowc: Respect rules for use of AC_LIBOBJ.
10980         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
10981         invocations from here...
10982         * modules/mbrtowc (configure.ac): ... to here.
10983
10984 2011-05-21  Bruno Haible  <bruno@clisp.org>
10985
10986         malloc-*: Move AC_LIBOBJ invocations to module description.
10987         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
10988         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
10989         AC_LIBOBJ invocations from here...
10990         * modules/malloc-gnu (configure.ac): ... to here.
10991         * modules/malloc-posix (configure.ac): ... and here.
10992
10993 2011-05-21  Bruno Haible  <bruno@clisp.org>
10994
10995         lstat, openat: Respect rules for use of AC_LIBOBJ.
10996         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
10997         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
10998         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
10999         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
11000         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
11001         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
11002         here.
11003         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
11004
11005 2011-05-21  Bruno Haible  <bruno@clisp.org>
11006
11007         lseek: Move AC_LIBOBJ invocations to module description.
11008         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
11009         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11010         * modules/lseek (configure.ac): ... to here.
11011
11012 2011-05-21  Bruno Haible  <bruno@clisp.org>
11013
11014         linkat: Move AC_LIBOBJ invocations to module description.
11015         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
11016         here...
11017         * modules/linkat (configure.ac): ... to here.
11018
11019 2011-05-21  Bruno Haible  <bruno@clisp.org>
11020
11021         link: Respect rules for use of AC_LIBOBJ.
11022         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
11023         * modules/link (configure.ac): ... to here.
11024
11025 2011-05-21  Bruno Haible  <bruno@clisp.org>
11026
11027         lchown: Move AC_LIBOBJ invocations to module description.
11028         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11029         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11030         * modules/lchown (configure.ac): ... to here.
11031
11032 2011-05-21  Bruno Haible  <bruno@clisp.org>
11033
11034         iswctype: Move AC_LIBOBJ invocations to module description.
11035         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
11036         here...
11037         * modules/iswctype (configure.ac): ... to here.
11038
11039 2011-05-21  Bruno Haible  <bruno@clisp.org>
11040
11041         iswblank: Move AC_LIBOBJ invocations to module description.
11042         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
11043         here...
11044         * modules/iswblank (configure.ac): ... to here.
11045
11046 2011-05-21  Bruno Haible  <bruno@clisp.org>
11047
11048         atanl: Move AC_LIBOBJ invocations to module description.
11049         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
11050         * modules/atanl (configure.ac): ... to here.
11051
11052 2011-05-21  Bruno Haible  <bruno@clisp.org>
11053
11054         acosl: Move AC_LIBOBJ invocations to module description.
11055         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
11056         * modules/acosl (configure.ac): ... to here.
11057
11058 2011-05-21  Bruno Haible  <bruno@clisp.org>
11059
11060         asinl: Respect rules for use of AC_LIBOBJ.
11061         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
11062         * modules/asinl (configure.ac): ... to here.
11063
11064 2011-05-21  Bruno Haible  <bruno@clisp.org>
11065
11066         tanl: Move AC_LIBOBJ invocations to module description.
11067         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
11068         * modules/tanl (configure.ac): ... to here.
11069
11070 2011-05-21  Bruno Haible  <bruno@clisp.org>
11071
11072         cosl: Move AC_LIBOBJ invocations to module description.
11073         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
11074         * modules/cosl (configure.ac): ... to here.
11075
11076 2011-05-21  Bruno Haible  <bruno@clisp.org>
11077
11078         sinl: Move AC_LIBOBJ invocations to module description.
11079         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
11080         * modules/sinl (configure.ac): ... to here.
11081
11082 2011-05-21  Bruno Haible  <bruno@clisp.org>
11083
11084         logl: Move AC_LIBOBJ invocations to module description.
11085         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
11086         * modules/logl (configure.ac): ... to here.
11087
11088 2011-05-21  Bruno Haible  <bruno@clisp.org>
11089
11090         expl: Move AC_LIBOBJ invocations to module description.
11091         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
11092         * modules/expl (configure.ac): ... to here.
11093
11094 2011-05-21  Bruno Haible  <bruno@clisp.org>
11095
11096         roundl: Move AC_LIBOBJ invocations to module description.
11097         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
11098         * modules/roundl (configure.ac): ... to here.
11099
11100 2011-05-21  Bruno Haible  <bruno@clisp.org>
11101
11102         round: Move AC_LIBOBJ invocations to module description.
11103         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
11104         * modules/round (configure.ac): ... to here.
11105
11106 2011-05-21  Bruno Haible  <bruno@clisp.org>
11107
11108         roundf: Move AC_LIBOBJ invocations to module description.
11109         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
11110         * modules/roundf (configure.ac): ... to here.
11111
11112 2011-05-21  Bruno Haible  <bruno@clisp.org>
11113
11114         truncl: Move AC_LIBOBJ invocations to module description.
11115         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
11116         * modules/truncl (configure.ac): ... to here.
11117
11118 2011-05-21  Bruno Haible  <bruno@clisp.org>
11119
11120         trunc: Move AC_LIBOBJ invocations to module description.
11121         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
11122         * modules/trunc (configure.ac): ... to here.
11123
11124 2011-05-21  Bruno Haible  <bruno@clisp.org>
11125
11126         truncf: Move AC_LIBOBJ invocations to module description.
11127         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
11128         * modules/truncf (configure.ac): ... to here.
11129
11130 2011-05-21  Bruno Haible  <bruno@clisp.org>
11131
11132         ceill: Move AC_LIBOBJ invocations to module description.
11133         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
11134         * modules/ceill (configure.ac): ... to here.
11135
11136 2011-05-21  Bruno Haible  <bruno@clisp.org>
11137
11138         ceil: Move AC_LIBOBJ invocations to module description.
11139         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
11140         * modules/ceil (configure.ac): ... to here.
11141
11142 2011-05-21  Bruno Haible  <bruno@clisp.org>
11143
11144         ceilf: Move AC_LIBOBJ invocations to module description.
11145         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
11146         * modules/ceilf (configure.ac): ... to here.
11147
11148 2011-05-21  Bruno Haible  <bruno@clisp.org>
11149
11150         floorl: Respect rules for use of AC_LIBOBJ.
11151         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
11152         * modules/floorl (configure.ac): ... to here.
11153
11154 2011-05-21  Bruno Haible  <bruno@clisp.org>
11155
11156         floor: Respect rules for use of AC_LIBOBJ.
11157         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
11158         * modules/floor (configure.ac): ... to here.
11159
11160 2011-05-21  Bruno Haible  <bruno@clisp.org>
11161
11162         floorf: Move AC_LIBOBJ invocations to module description.
11163         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
11164         * modules/floorf (configure.ac): ... to here.
11165
11166 2011-05-20  Bruno Haible  <bruno@clisp.org>
11167
11168         sqrtl: Respect rules for use of AC_LIBOBJ.
11169         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
11170         * modules/sqrtl (configure.ac): ... to here.
11171
11172 2011-05-20  Bruno Haible  <bruno@clisp.org>
11173
11174         ldexpl: Respect rules for use of AC_LIBOBJ.
11175         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
11176         * modules/ldexpl (configure.ac): ... to here.
11177
11178 2011-05-20  Bruno Haible  <bruno@clisp.org>
11179
11180         frexpl*: Respect rules for use of AC_LIBOBJ.
11181         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
11182         invocation from here...
11183         * modules/frexpl (configure.ac): ... to here.
11184         * modules/frexpl-nolibm (configure.ac): ... and here.
11185
11186 2011-05-20  Bruno Haible  <bruno@clisp.org>
11187
11188         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
11189         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
11190         invocation from here...
11191         * modules/frexp (configure.ac): ... to here.
11192         * modules/frexp-nolibm (configure.ac): ... and here.
11193
11194 2011-05-20  Bruno Haible  <bruno@clisp.org>
11195
11196         isnan: Respect rules for use of AC_LIBOBJ.
11197         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
11198         invocations here.
11199         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
11200         REPLACE_ISNAN.
11201         * modules/isnand (configure.ac): Likewise.
11202         * modules/isnanl (configure.ac): Likewise.
11203
11204 2011-05-20  Bruno Haible  <bruno@clisp.org>
11205
11206         isnanl*: Respect rules for use of AC_LIBOBJ.
11207         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
11208         invocation from here...
11209         * modules/isnanl (configure.ac): ... to here.
11210         * modules/isnanl-nolibm (configure.ac): ... and here.
11211
11212 2011-05-20  Bruno Haible  <bruno@clisp.org>
11213
11214         isnand*: Move AC_LIBOBJ invocations to module description.
11215         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
11216         invocation from here...
11217         * modules/isnand (configure.ac): ... to here.
11218         * modules/isnand-nolibm (configure.ac): ... and here.
11219
11220 2011-05-20  Bruno Haible  <bruno@clisp.org>
11221
11222         isnanf*: Move AC_LIBOBJ invocations to module description.
11223         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
11224         invocation from here...
11225         * modules/isnanf (configure.ac): ... to here.
11226         * modules/isnanf-nolibm (configure.ac): ... and here.
11227
11228 2011-05-20  Bruno Haible  <bruno@clisp.org>
11229
11230         isnan*: Separate the AC_LIBOBJ invocations.
11231         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
11232         AC_LIBOBJ invocation.
11233         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
11234         here.
11235         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
11236         AC_LIBOBJ invocation.
11237         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
11238         here.
11239         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
11240         AC_LIBOBJ invocation.
11241         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
11242         here.
11243         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
11244
11245 2011-05-08  Bruno Haible  <bruno@clisp.org>
11246
11247         isinf: Move AC_LIBOBJ invocations to module description.
11248         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
11249         * modules/isinf (configure.ac): ... to here.
11250
11251 2011-05-08  Bruno Haible  <bruno@clisp.org>
11252
11253         isfinite: Move AC_LIBOBJ invocations to module description.
11254         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
11255         * modules/isfinite (configure.ac): ... to here.
11256
11257 2011-05-08  Bruno Haible  <bruno@clisp.org>
11258
11259         isblank: Move AC_LIBOBJ invocations to module description.
11260         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
11261         here...
11262         * modules/isblank (configure.ac): ... to here.
11263
11264 2011-05-08  Bruno Haible  <bruno@clisp.org>
11265
11266         isapipe: Move AC_LIBOBJ invocations to module description.
11267         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
11268         gl_PREREQ_ISAPIPE invocations from here...
11269         * modules/isapipe (configure.ac): ... to here.
11270         (Depends-on): Update condition.
11271
11272 2011-05-08  Bruno Haible  <bruno@clisp.org>
11273
11274         ioctl: Move AC_LIBOBJ invocations to module description.
11275         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
11276         invocations from here...
11277         * modules/ioctl (configure.ac): ... to here.
11278         (Depends-on): Update condition.
11279
11280 2011-05-08  Bruno Haible  <bruno@clisp.org>
11281
11282         imaxdiv: Move AC_LIBOBJ invocations to module description.
11283         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
11284         invocations from here...
11285         * modules/imaxdiv (configure.ac): ... to here.
11286
11287 2011-05-08  Bruno Haible  <bruno@clisp.org>
11288
11289         imaxabs: Move AC_LIBOBJ invocations to module description.
11290         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
11291         invocations from here...
11292         * modules/imaxabs (configure.ac): ... to here.
11293
11294 2011-05-08  Bruno Haible  <bruno@clisp.org>
11295
11296         getaddrinfo: Move AC_LIBOBJ invocations to module description.
11297         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
11298         AC_LIBOBJ invocations from here...
11299         * modules/getaddrinfo (configure.ac): ... to here.
11300         (Depends-on): Add conditions.
11301
11302 2011-05-08  Bruno Haible  <bruno@clisp.org>
11303
11304         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11305         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
11306         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11307         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
11308         (gl_PREREQ_INET_PTON): ... from here.
11309         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
11310         gl_PREREQ_INET_PTON here.
11311         (Depends-on): Update condition.
11312
11313 2011-05-08  Bruno Haible  <bruno@clisp.org>
11314
11315         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11316         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
11317         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11318         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
11319         (gl_PREREQ_INET_NTOP): ... from here.
11320         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
11321         gl_PREREQ_INET_NTOP here.
11322         (Depends-on): Update condition.
11323
11324 2011-05-08  Bruno Haible  <bruno@clisp.org>
11325
11326         iconv_open: Move AC_LIBOBJ invocations to module description.
11327         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
11328         AC_LIBOBJ invocations from here...
11329         * modules/iconv_open (configure.ac): ... to here.
11330
11331 2011-05-08  Bruno Haible  <bruno@clisp.org>
11332
11333         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
11334         If module 'iconv_open' is among the main modules and module
11335         'iconv_open-utf' is among the tests dependencies, then
11336         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
11337         return the special iconv_t values. Therefore iconv() and iconv_close()
11338         must support these special iconv_t values, already in lib, not only in
11339         tests.
11340         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
11341         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
11342         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
11343         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
11344         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
11345         (Depends-on): Add the dependencies of iconv_open-utf.
11346         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
11347         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
11348         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
11349
11350 2011-05-08  Bruno Haible  <bruno@clisp.org>
11351
11352         group-member: Move AC_LIBOBJ invocations to module description.
11353         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
11354         gl_PREREQ_GROUP_MEMBER invocations from here...
11355         * modules/group-member (configure.ac): ... to here.
11356
11357 2011-05-08  Bruno Haible  <bruno@clisp.org>
11358
11359         grantpt: Move AC_LIBOBJ invocations to module description.
11360         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
11361         invocations from here...
11362         * modules/grantpt (configure.ac): ... to here.
11363
11364 2011-05-08  Bruno Haible  <bruno@clisp.org>
11365
11366         glob: Move AC_LIBOBJ invocations to module description.
11367         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
11368         from here...
11369         * modules/glob (configure.ac): ... to here.
11370
11371 2011-05-08  Bruno Haible  <bruno@clisp.org>
11372
11373         getusershell: Move AC_LIBOBJ invocations to module description.
11374         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
11375         Move AC_LIBOBJ invocation from here...
11376         * modules/getusershell (configure.ac): ... to here.
11377         (Depends-on): Update condition.
11378
11379 2011-05-08  Bruno Haible  <bruno@clisp.org>
11380
11381         gettimeofday: Move AC_LIBOBJ invocations to module description.
11382         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
11383         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
11384         gl_PREREQ_GETTIMEOFDAY invocations from here...
11385         * modules/gettimeofday (configure.ac): ... to here.
11386
11387 2011-05-08  Bruno Haible  <bruno@clisp.org>
11388
11389         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
11390         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
11391         just gl_FUNC_TZSET.
11392         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
11393         (gl_FUNC_TZSET_CLOBBER): Remove actions.
11394         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
11395         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
11396
11397 2011-05-08  Bruno Haible  <bruno@clisp.org>
11398
11399         getsubopt: Move AC_LIBOBJ invocations to module description.
11400         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
11401         gl_PREREQ_GETSUBOPT invocations from here...
11402         * modules/getsubopt (configure.ac): ... to here.
11403
11404 2011-05-08  Bruno Haible  <bruno@clisp.org>
11405
11406         getpass-gnu: Move AC_LIBOBJ invocations to module description.
11407         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
11408         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
11409         * modules/getpass-gnu (configure.ac): ... to here.
11410
11411 2011-05-08  Bruno Haible  <bruno@clisp.org>
11412
11413         getpass: Move AC_LIBOBJ invocations to module description.
11414         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
11415         gl_PREREQ_GETPASS invocations from here...
11416         * modules/getpass (configure.ac): ... to here.
11417
11418 2011-05-08  Bruno Haible  <bruno@clisp.org>
11419
11420         getpagesize: Move AC_LIBOBJ invocations to module description.
11421         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
11422         from here...
11423         * modules/getpagesize (configure.ac): ... to here.
11424
11425 2011-05-08  Bruno Haible  <bruno@clisp.org>
11426
11427         getopt: Move AC_LIBOBJ invocations to module description.
11428         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
11429         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
11430         invocations from here...
11431         * modules/getopt-gnu (configure.ac): ... to here.
11432         * modules/getopt-posix (configure.ac): ... and here.
11433         (Depends-on): Update condition.
11434
11435 2011-05-08  Bruno Haible  <bruno@clisp.org>
11436
11437         getopt, argp: Respect rules for use of AC_LIBOBJ.
11438         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
11439         (gl_REPLACE_GETOPT_ALWAYS): New macro.
11440         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
11441         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
11442
11443 2011-05-08  Bruno Haible  <bruno@clisp.org>
11444
11445         getlogin_r: Move AC_LIBOBJ invocations to module description.
11446         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
11447         gl_PREREQ_GETLOGIN_R invocations from here...
11448         * modules/getlogin_r (configure.ac): ... to here.
11449
11450 2011-05-08  Bruno Haible  <bruno@clisp.org>
11451
11452         getlogin: Move AC_LIBOBJ invocations to module description.
11453         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
11454         here...
11455         * modules/getlogin (configure.ac): ... to here.
11456
11457 2011-05-08  Bruno Haible  <bruno@clisp.org>
11458
11459         getloadavg: Move AC_LIBOBJ invocations to module description.
11460         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
11461         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
11462         * modules/getloadavg (configure.ac): ... to here.
11463
11464 2011-05-08  Bruno Haible  <bruno@clisp.org>
11465
11466         gethrxtime: Move AC_LIBOBJ invocations to module description.
11467         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
11468         LIB_GETHRXTIME from here...
11469         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
11470         invocations from here...
11471         * modules/gethrxtime (configure.ac): ... to here.
11472
11473 2011-05-08  Bruno Haible  <bruno@clisp.org>
11474
11475         gethostname: Move AC_LIBOBJ invocations to module description.
11476         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
11477         gl_PREREQ_GETHOSTNAME invocations from here...
11478         * modules/gethostname (configure.ac): ... to here.
11479
11480 2011-05-08  Bruno Haible  <bruno@clisp.org>
11481
11482         getgroups: Move AC_LIBOBJ invocations to module description.
11483         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
11484         here...
11485         * modules/getgroups (configure.ac): ... to here.
11486
11487 2011-05-08  Bruno Haible  <bruno@clisp.org>
11488
11489         getdtablesize: Move AC_LIBOBJ invocations to module description.
11490         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
11491         invocation from here...
11492         * modules/getdtablesize (configure.ac): ... to here.
11493
11494 2011-05-08  Bruno Haible  <bruno@clisp.org>
11495
11496         getdomainname: Move AC_LIBOBJ invocations to module description.
11497         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
11498         gl_PREREQ_GETDOMAINNAME invocations from here...
11499         * modules/getdomainname (configure.ac): ... to here.
11500
11501 2011-05-08  Bruno Haible  <bruno@clisp.org>
11502
11503         getline: Move AC_LIBOBJ invocations to module description.
11504         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
11505         invocations from here...
11506         * modules/getline (configure.ac): ... to here.
11507
11508 2011-05-08  Bruno Haible  <bruno@clisp.org>
11509
11510         getline: Simplify.
11511         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
11512         It's already handled through the module dependency.
11513
11514 2011-05-08  Bruno Haible  <bruno@clisp.org>
11515
11516         getdelim: Move AC_LIBOBJ invocations to module description.
11517         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
11518         and gl_PREREQ_GETDELIM invocations from here...
11519         * modules/getdelim (configure.ac): ... to here.
11520         (Depends-on): Fix condition.
11521
11522 2011-05-08  Bruno Haible  <bruno@clisp.org>
11523
11524         getcwd: Move AC_LIBOBJ invocations to module description.
11525         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
11526         invocations from here...
11527         * modules/getcwd (configure.ac): ... to here.
11528
11529 2011-05-08  Bruno Haible  <bruno@clisp.org>
11530
11531         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
11532         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
11533         here...
11534         * modules/getcwd-lgpl (configure.ac): ... to here.
11535
11536 2011-05-07  Bruno Haible  <bruno@clisp.org>
11537
11538         crypto/gc: Move AC_LIBOBJ invocations to module description.
11539         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
11540         * modules/crypto/gc (configure.ac): ... to here.
11541
11542 2011-05-07  Bruno Haible  <bruno@clisp.org>
11543
11544         fwriting: Move AC_LIBOBJ invocations to module description.
11545         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
11546         here...
11547         * modules/fwriting (configure.ac): ... to here.
11548
11549 2011-05-07  Bruno Haible  <bruno@clisp.org>
11550
11551         fwritable: Move AC_LIBOBJ invocations to module description.
11552         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
11553         here...
11554         * modules/fwritable (configure.ac): ... to here.
11555
11556 2011-05-07  Bruno Haible  <bruno@clisp.org>
11557
11558         futimens: Move AC_LIBOBJ invocations to module description.
11559         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
11560         here...
11561         * modules/futimens (configure.ac): ... to here.
11562
11563 2011-05-07  Bruno Haible  <bruno@clisp.org>
11564
11565         ftruncate: Move AC_LIBOBJ invocations to module description.
11566         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
11567         gl_PREREQ_FTRUNCATE invocations from here...
11568         * modules/ftruncate (configure.ac): ... to here.
11569
11570 2011-05-07  Bruno Haible  <bruno@clisp.org>
11571
11572         fsync: Move AC_LIBOBJ invocations to module description.
11573         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
11574         invocations from here...
11575         * modules/fsync (configure.ac): ... to here.
11576
11577 2011-05-07  Bruno Haible  <bruno@clisp.org>
11578
11579         fsusage: Move AC_LIBOBJ invocations to module description.
11580         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
11581         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
11582         * modules/fsusage (configure.ac): ... to here.
11583
11584 2011-05-07  Bruno Haible  <bruno@clisp.org>
11585
11586         freopen: Move AC_LIBOBJ invocations to module description.
11587         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
11588         invocations from here...
11589         * modules/freopen (configure.ac): ... to here.
11590
11591 2011-05-07  Bruno Haible  <bruno@clisp.org>
11592
11593         free: Move AC_LIBOBJ invocations to module description.
11594         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
11595         invocations from here...
11596         * modules/free (configure.ac): ... to here.
11597
11598 2011-05-07  Bruno Haible  <bruno@clisp.org>
11599
11600         freadable: Move AC_LIBOBJ invocations to module description.
11601         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
11602         here...
11603         * modules/freadable (configure.ac): ... to here.
11604
11605 2011-05-07  Bruno Haible  <bruno@clisp.org>
11606
11607         fpurge: Move AC_LIBOBJ invocations to module description.
11608         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
11609         invocations from here...
11610         * modules/fpurge (configure.ac): ... to here.
11611
11612 2011-05-07  Bruno Haible  <bruno@clisp.org>
11613
11614         fpending: Move AC_LIBOBJ invocations to module description.
11615         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
11616         gl_FUNC_FPENDING.
11617         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
11618         invocations from here...
11619         * modules/fpending (configure.ac): ... to here.
11620
11621 2011-05-07  Bruno Haible  <bruno@clisp.org>
11622
11623         fopen: Move AC_LIBOBJ invocations to module description.
11624         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
11625         invocations from here...
11626         * modules/fopen (configure.ac): ... to here.
11627
11628 2011-05-07  Bruno Haible  <bruno@clisp.org>
11629
11630         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
11631         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
11632         gl_FUNC_FNMATCH_POSIX.
11633         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
11634         invocations from here...
11635         * modules/fnmatch (configure.ac): ... to here.
11636         * modules/fnmatch-gnu (configure.ac): ... and here.
11637
11638 2011-05-07  Bruno Haible  <bruno@clisp.org>
11639
11640         flock: Move AC_LIBOBJ invocations to module description.
11641         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
11642         invocations from here...
11643         * modules/flock (configure.ac): ... to here.
11644
11645 2011-05-07  Bruno Haible  <bruno@clisp.org>
11646
11647         fileblocks: Move AC_LIBOBJ invocations to module description.
11648         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
11649         gl_PREREQ_FILEBLOCKS invocations from here...
11650         * modules/fileblocks (configure.ac): ... to here.
11651
11652 2011-05-06  Bruno Haible  <bruno@clisp.org>
11653
11654         fflush: Move AC_LIBOBJ invocations to module description.
11655         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
11656         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
11657         invocations from here...
11658         * modules/fflush (configure.ac): ... to here.
11659
11660 2011-05-06  Bruno Haible  <bruno@clisp.org>
11661
11662         fdopendir: Move AC_LIBOBJ invocations to module description.
11663         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
11664         here...
11665         * modules/fdopendir (configure.ac): ... to here.
11666         (Depends-on): Improve conditions.
11667
11668 2011-05-06  Bruno Haible  <bruno@clisp.org>
11669
11670         _Exit: Move AC_LIBOBJ invocations to module description.
11671         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
11672         invocations from here...
11673         * modules/_Exit (configure.ac): ... to here.
11674
11675 2011-05-21  Bruno Haible  <bruno@clisp.org>
11676
11677         euidaccess: Respect rules for use of AC_LIBOBJ.
11678         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11679         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
11680         from here...
11681         * modules/euidaccess (configure.ac): ... to here.
11682
11683 2011-05-06  Bruno Haible  <bruno@clisp.org>
11684
11685         error: Move AC_LIBOBJ invocations to module description.
11686         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
11687         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
11688         invocations from here...
11689         * modules/error (configure.ac): ... to here.
11690
11691 2011-05-06  Bruno Haible  <bruno@clisp.org>
11692
11693         duplocale: Move AC_LIBOBJ invocations to module description.
11694         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
11695         gl_PREREQ_DUPLOCALE invocations from here...
11696         * modules/duplocale (configure.ac): ... to here.
11697
11698 2011-05-05  Bruno Haible  <bruno@clisp.org>
11699
11700         dirfd: Move AC_LIBOBJ invocations to module description.
11701         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
11702         gl_FUNC_DIRFD.
11703         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
11704         here...
11705         * modules/dirfd (configure.ac): ... to here.
11706         (Depends-on): Fix condition.
11707
11708 2011-05-05  Bruno Haible  <bruno@clisp.org>
11709
11710         chown: Respect rules for use of AC_LIBOBJ.
11711         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
11712         * modules/chown (configure.ac): ... to here.
11713
11714 2011-05-05  Bruno Haible  <bruno@clisp.org>
11715
11716         chdir-long: Move AC_LIBOBJ invocations to module description.
11717         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
11718         gl_PREREQ_CHDIR_LONG invocations from here...
11719         * modules/chdir-long (configure.ac): ... to here.
11720
11721 2011-05-05  Bruno Haible  <bruno@clisp.org>
11722
11723         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
11724         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
11725         from here...
11726         * modules/canonicalize-lgpl (configure.ac): ... to here.
11727
11728 2011-05-05  Bruno Haible  <bruno@clisp.org>
11729
11730         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
11731         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
11732         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
11733         REPLACE_CALLOC.
11734         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
11735         * modules/calloc-gnu (configure.ac): Likewise.
11736
11737 2011-05-05  Bruno Haible  <bruno@clisp.org>
11738
11739         btowc: Move AC_LIBOBJ invocations to module description.
11740         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
11741         invocations from here...
11742         * modules/btowc (configure.ac): ... to here.
11743
11744 2011-05-21  Bruno Haible  <bruno@clisp.org>
11745
11746         atexit: Move AC_LIBOBJ invocations to module description.
11747         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
11748         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
11749         here...
11750         * modules/atexit (configure.ac): ... to here.
11751
11752 2011-05-05  Bruno Haible  <bruno@clisp.org>
11753
11754         atoll: Move AC_LIBOBJ invocations to module description.
11755         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
11756         invocations from here...
11757         * modules/atoll (configure.ac): ... to here.
11758
11759 2011-05-05  Bruno Haible  <bruno@clisp.org>
11760
11761         argz: Move AC_LIBOBJ invocations to module description.
11762         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
11763         * modules/argz (configure.ac): ... to here.
11764
11765 2011-05-05  Bruno Haible  <bruno@clisp.org>
11766
11767         alphasort: Move AC_LIBOBJ invocations to module description.
11768         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
11769         gl_PREREQ_ALPHASORT invocations from here...
11770         * modules/alphasort (configure.ac): ... to here.
11771
11772 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11773
11774         verify: new macro verify_expr; verify_true deprecated
11775         * NEWS: Mention this.
11776         * doc/verify.texi (Compile-time Assertions): Document this.
11777         * lib/verify.h (verify_true): Deprecate.
11778         (verify_expr): New macro.
11779         * tests/test-verify.c (function): Test verify_expr.
11780
11781 2011-06-14  Jim Meyering  <meyering@redhat.com>
11782
11783         init.sh: give more portable redirection-related advice in a comment
11784         * tests/init.sh (stderr_fileno_): Update the advice in comments.
11785         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
11786         for lots of discussion.  Stefano Lattarini suggested the solution
11787         of putting "9>&2" after the command.  Reported by Bruno Haible.
11788
11789 2011-06-13  Bruno Haible  <bruno@clisp.org>
11790
11791         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
11792         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
11793         'none'.
11794
11795 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11796
11797         ftoastr: use strtof only if HAVE_STRTOF
11798         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
11799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
11800         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
11801         * modules/ftoastr (configure.ac): Check for strtof.
11802
11803 2011-06-13  Bruno Haible  <bruno@clisp.org>
11804
11805         gnulib-tool: Addendum to 2011-06-08 commit.
11806         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
11807         and --witness-c-macro have been given, augment AM_CPPFLAGS.
11808
11809 2011-06-13  Bruno Haible  <bruno@clisp.org>
11810
11811         fseeko: Provide a non-inline replacement of fseek().
11812         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
11813         * modules/fseeko (Depends-on): Add fseek.
11814         * modules/fseek (License): Change to LGPLv2+.
11815
11816 2011-06-13  Bruno Haible  <bruno@clisp.org>
11817
11818         ftello: Provide a non-inline replacement of ftell().
11819         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
11820         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
11821         not have ftello() (such as on mingw).
11822         * modules/ftello (Depends-on): Add ftell.
11823         * modules/ftell (License): Change to LGPLv2+.
11824
11825 2011-05-07  Bruno Haible  <bruno@clisp.org>
11826
11827         ftell: Move AC_LIBOBJ invocations to module description.
11828         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
11829         * modules/ftell (configure.ac): ... to here.
11830
11831 2011-05-07  Bruno Haible  <bruno@clisp.org>
11832
11833         ftello: Respect rules for use of AC_LIBOBJ.
11834         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
11835         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
11836         here...
11837         * modules/ftello (configure.ac): ... to here.
11838
11839 2011-05-07  Bruno Haible  <bruno@clisp.org>
11840
11841         fseeko: Simplify.
11842         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
11843         (gl_FUNC_FSEEKO): Inline it here.
11844
11845 2011-05-07  Bruno Haible  <bruno@clisp.org>
11846
11847         fseek: Move AC_LIBOBJ invocations to module description.
11848         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
11849         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11850         * modules/fseek (configure.ac): ... to here.
11851
11852 2011-05-07  Bruno Haible  <bruno@clisp.org>
11853
11854         fseek: Respect rules for use of AC_LIBOBJ.
11855         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
11856         here...
11857         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
11858
11859 2011-05-07  Bruno Haible  <bruno@clisp.org>
11860
11861         fseeko: Respect rules for use of AC_LIBOBJ.
11862         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
11863         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
11864         here...
11865         * modules/fseeko (configure.ac): ... to here.
11866
11867 2011-06-13  Bruno Haible  <bruno@clisp.org>
11868
11869         gnulib-tool: Allow comments in the 'Depends-on' section.
11870         * doc/gnulib.texi (Module description): Mention comment syntax in the
11871         Depends-on section.
11872         * gnulib-tool (func_get_dependencies): Filter out comment lines.
11873
11874 2011-06-13  Bruno Haible  <bruno@clisp.org>
11875
11876         file-set.h: guard __attibute__ use, now that it's not always defined
11877         * lib/file-set.h (record_file): Use __attribute__ only with compiler
11878         versions that support it.  This fixes a coreutils build failure with
11879         the vendor cc on HP-UX 11.31.
11880
11881 2011-06-12  Bruno Haible  <bruno@clisp.org>
11882
11883         acl: Add support for HP-UX >= 11.11 JFS ACLs.
11884         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
11885         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
11886         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
11887         (acl, aclsort): New declarations.
11888         (aclv_nontrivial): New declaration.
11889         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
11890         (file_has_acl): Read also the second kind of HP-UX ACLs.
11891         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
11892         kind of HP-UX ACLs if the first kind fails.
11893         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
11894         second kind of HP-UX ACLs.
11895         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
11896         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
11897         agree.
11898         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11899         hpuxjfs.
11900         Handle hpuxjfs.
11901         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11902         hpuxjfs.
11903         Handle hpuxjfs.
11904         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11905         (func_test_same_acls): Use both lsacl and getacl.
11906         Handle hpuxjfs.
11907         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11908         (func_test_same_acls): Use both lsacl and getacl.
11909         Handle hpuxjfs.
11910
11911 2011-06-12  Bruno Haible  <bruno@clisp.org>
11912
11913         acl: Complete the 2010-08-10 fix.
11914         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
11915         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
11916         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
11917         explicitly.
11918         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
11919         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
11920
11921 2011-06-12  Bruno Haible  <bruno@clisp.org>
11922
11923         spawn-pipe tests: Comments.
11924         * tests/test-spawn-pipe-child.c (main): Update comment.
11925         Reported by James Youngman <jay@gnu.org>.
11926
11927 2011-06-11  James Youngman  <jay@gnu.org>
11928
11929         New module 'stat-size'.
11930         * modules/stat-size: New module.  Provides macros for accessing
11931         file size information in instances of struct stat.  Depends on the
11932         fileblocks module because it calls st_blocks.
11933         * lib/stat-size.h: New file, adapted from coreutils' system.h.
11934         * doc/gnulib.texi: Include stat-size.texi.
11935         * doc/stat-size.texi: Documentation for this module.
11936         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
11937         * m4/fileblocks.m4: Mention that stat-size depends on the call to
11938         AC_STRUCT_ST_BLOCKS.
11939
11940 2011-06-09  Bruno Haible  <bruno@clisp.org>
11941
11942         thread: Support pthreads-win32.
11943         * lib/glthread/thread.h (gl_thread_self): Define differently on
11944         pthreads-win32.
11945         (gl_null_thread): New declaration.
11946         (gl_thread_self_pointer): New macro.
11947         * lib/glthread/thread.c (gl_null_thread): New constant.
11948         * tests/test-lock.c: Use gl_thread_self_pointer instead of
11949         gl_thread_self.
11950         * tests/test-tls.c: Likewise.
11951         Suggested by Paul Eggert. Reported by Eric Blake.
11952
11953 2011-06-09  Bruno Haible  <bruno@clisp.org>
11954
11955         thread: Fix confusion between NULL and 0.
11956         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
11957         Reported by Paul Eggert.
11958
11959 2011-06-09  Bruno Haible  <bruno@clisp.org>
11960
11961         spawn-pipe tests: Avoid test failure on HP-UX 11.
11962         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
11963         is closed.
11964
11965 2011-06-09  Bruno Haible  <bruno@clisp.org>
11966
11967         acl tests: Fix compilation error on HP-UX 11.
11968         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11969
11970 2011-06-09  Bruno Haible  <bruno@clisp.org>
11971
11972         rmdir: Avoid test failure on HP-UX 10.20.
11973         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
11974         EEXIST.
11975
11976 2011-06-08  Eric Blake  <eblake@redhat.com>
11977
11978         perror: fix test on mingw
11979         * modules/perror-tests (Depends-on): Add dup2.
11980
11981         strerror_r-posix: fix on MacOS
11982         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
11983         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
11984         logic bug.
11985         * lib/strerror_r.c (strerror_r): Fix the bug.
11986         * lib/strerror.c (strerror): Likewise.
11987         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11988         problem.
11989         * doc/posix-functions/strerror.texi (strerror): Likewise.
11990         * doc/posix-functions/perror.texi (perror): Likewise.
11991         * tests/test-strerror.c (main): Enhance test.
11992         * tests/test-strerror_r.c (main): Likewise.
11993
11994 2011-06-08  Bruno Haible  <bruno@clisp.org>
11995
11996         gnulib-tool: Better isolation between different gnulib-tool invocations.
11997         * gnulib-tool: New option --witness-c-macro.
11998         (witness_c_macro): New variable.
11999         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
12000         AM_CPPFLAGS define it as a C macro.
12001         (func_emit_tests_Makefile_am): Likewise.
12002         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
12003         read it from there.
12004         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
12005         m4_define, not AC_DEFUN.
12006         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
12007         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
12008         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
12009         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
12010         s|...|...|, to substitute the values of the GNULIB_* module indicator
12011         variables.
12012         * modules/dirent (Makefile.am): Likewise.
12013         * modules/fcntl-h (Makefile.am): Likewise.
12014         * modules/iconv-h (Makefile.am): Likewise.
12015         * modules/langinfo (Makefile.am): Likewise.
12016         * modules/locale (Makefile.am): Likewise.
12017         * modules/math (Makefile.am): Likewise.
12018         * modules/netdb (Makefile.am): Likewise.
12019         * modules/poll-h (Makefile.am): Likewise.
12020         * modules/pty (Makefile.am): Likewise.
12021         * modules/search (Makefile.am): Likewise.
12022         * modules/signal (Makefile.am): Likewise.
12023         * modules/spawn (Makefile.am): Likewise.
12024         * modules/stdio (Makefile.am): Likewise.
12025         * modules/stdlib (Makefile.am): Likewise.
12026         * modules/string (Makefile.am): Likewise.
12027         * modules/sys_ioctl (Makefile.am): Likewise.
12028         * modules/sys_select (Makefile.am): Likewise.
12029         * modules/sys_socket (Makefile.am): Likewise.
12030         * modules/sys_stat (Makefile.am): Likewise.
12031         * modules/sys_times (Makefile.am): Likewise.
12032         * modules/sys_utsname (Makefile.am): Likewise.
12033         * modules/sys_wait (Makefile.am): Likewise.
12034         * modules/termios (Makefile.am): Likewise.
12035         * modules/time (Makefile.am): Likewise.
12036         * modules/unistd (Makefile.am): Likewise.
12037         * modules/wchar (Makefile.am): Likewise.
12038
12039 2011-06-08  Eric Blake  <eblake@redhat.com>
12040
12041         strerror: simplify replacement
12042         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
12043         * modules/strerror (configure.ac): No prereqs needed here...
12044         * modules/strerror-override (configure.ac): ...but this needs it.
12045         (Files): Add file for needed prereq macro.
12046
12047 2011-06-08  Bruno Haible  <bruno@clisp.org>
12048
12049         strerror_r-posix: Tweaks.
12050         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
12051         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
12052         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
12053         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
12054         (gl_FUNC_STRERROR_R): ... to here.
12055         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
12056
12057 2011-06-07  Eric Blake  <eblake@redhat.com>
12058
12059         perror: document fixed bugs
12060         * doc/posix-functions/perror.texi (perror): Document recent
12061         patches.
12062
12063 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
12064
12065         stat-time: get_stat_birthtime failure is better-defined
12066         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
12067         return a timestamp whose tv_sec and tv_nsec values are both -1.
12068         Previously, the spec said only that the tv_nsec value was negative.
12069         This upward-compatible change simplifies GNU tar a bit.
12070
12071 2011-06-07  Eric Blake  <eblake@redhat.com>
12072
12073         strerror_r-posix: work around cygwin 1.7.9
12074         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
12075         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
12076         bug without replacing strerror_r.
12077         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
12078         strerror_r is buggy, but without requiring strerror_r compilation.
12079         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
12080
12081         test-perror: relax test to ignore cygwin bug
12082         * tests/test-perror2.c (main): Relax test on requiring detection
12083         of stream errors, and use unbuffered stream.
12084         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
12085         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12086         * doc/posix-functions/fputc.texi (fputc): Likewise.
12087         * doc/posix-functions/fputs.texi (fputs): Likewise.
12088         * doc/posix-functions/fputws.texi (fputws): Likewise.
12089         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12090         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
12091         * doc/posix-functions/getopt.texi (getopt): Likewise.
12092         * doc/posix-functions/perror.texi (perror): Likewise.
12093         * doc/posix-functions/printf.texi (printf): Likewise.
12094         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
12095         * doc/posix-functions/psignal.texi (psignal): Likewise.
12096         * doc/posix-functions/putc.texi (putc): Likewise.
12097         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
12098         Likewise.
12099         * doc/posix-functions/putchar.texi (putchar): Likewise.
12100         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
12101         Likewise.
12102         * doc/posix-functions/puts.texi (puts): Likewise.
12103         * doc/posix-functions/putwc.texi (putwc): Likewise.
12104         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
12105         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12106         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12107         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12108         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12109         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12110         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12111         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12112
12113 2011-05-22  Bruno Haible  <bruno@clisp.org>
12114
12115         strerror: Move AC_LIBOBJ invocations to module description.
12116         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
12117         gl_PREREQ_STRERROR invocations from here...
12118         * modules/strerror (configure.ac): ... to here.
12119
12120 2011-05-21  Bruno Haible  <bruno@clisp.org>
12121
12122         perror: Use common idiom.
12123         * modules/perror (configure.ac): Reorder statements.
12124
12125 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12126
12127         tests: fix usage message in 'mktempd_'
12128         * tests/init.sh (mktempd_): In the usage message, use literal
12129         'mktempd_', not '$ME' (which is even undefined), as the name of
12130         the subroutine.
12131
12132 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12133
12134         tests init: new function 'fatal_', for hard errors
12135         Before this patch, the only way offered by tests/init.sh to
12136         properly signal a hard error was the `framework_failure_'
12137         function.  But the error message issued by that function,
12138         as its name would suggest, refers to a set-up failure in the
12139         testsuite, while hard errors can obviously also be due to
12140         other reasons.  The best way to fix this inconsistency is to
12141         introduce a new function with a more general error message.
12142         * tests/init.sh (fatal_): New function.
12143
12144 2011-06-06  Eric Blake  <eblake@redhat.com>
12145
12146         canonicalize-lgpl: use common idiom
12147         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
12148         over newer POSIX -Rf.
12149         Reported by Bruno Haible.
12150
12151         canonicalize-lgpl: work around AIX realpath bug
12152         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
12153         * doc/posix-functions/realpath.texi (realpath): Document it.
12154         Reported by Bruno Haible.
12155
12156         strerror: work around FreeBSD bug
12157         * lib/strerror.c (strerror): Special case 0.
12158         Reported by Bruno Haible.
12159
12160         strerror-override: avoid bloating errno module
12161         * modules/errno (Files, configure.ac): Move replacement strings...
12162         * modules/strerror-override: ...to new module.
12163         * modules/strerror (Depends-on): Add strerror-override.
12164         * modules/strerror_r-posix (Depends-on): Likewise.
12165         * MODULES.html.sh: Document new module.
12166         Reported by Bruno Haible.
12167
12168 2011-06-06  Bruno Haible  <bruno@clisp.org>
12169
12170         spawn-pipe tests: Rename program.
12171         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
12172         * tests/test-spawn-pipe-child.c: Update comment.
12173         * tests/test-spawn-pipe.sh: Update.
12174         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
12175
12176         spawn-pipe tests: Link the child program only against libc.
12177         * tests/test-spawn-pipe-child.c: New file, extracted from
12178         tests/test-spawn-pipe.c.
12179         (main): Expect only one argument.
12180         (is_open): New function, copied from tests/test-pipe.c.
12181         * tests/test-spawn-pipe.c: Don't include <errno.h>.
12182         (child_main): Remove function.
12183         (test_pipe): Pass only one argument to the child program.
12184         (main): Remove child process code. Expect the child program's name as
12185         first argument.
12186         * tests/test-spawn-pipe.sh: Pass the child program's name as first
12187         argument.
12188         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
12189         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
12190         test-spawn-pipe-child against no libraries.
12191
12192 2011-06-06  Bruno Haible  <bruno@clisp.org>
12193
12194         careadlinkat: Avoid mismatch between ssize_t and int.
12195         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
12196         * lib/careadlinkat.c (careadlinkatcwd): Define always.
12197
12198 2011-06-06  Jim Meyering  <meyering@redhat.com>
12199
12200         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
12201         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
12202         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
12203
12204 2011-06-05  Bruno Haible  <bruno@clisp.org>
12205
12206         ansi-c++-opt: Interoperability with libtool.
12207         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
12208         set the variable to "no", not to ":".
12209         * NEWS: Mention the change.
12210
12211 2011-06-05  Bruno Haible  <bruno@clisp.org>
12212
12213         acl: Fix test failure on AIX 7.
12214         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
12215         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
12216
12217 2011-06-05  Bruno Haible  <bruno@clisp.org>
12218
12219         pipe-filter-ii: Fix test failure on AIX and IRIX.
12220         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
12221         with EAGAIN, retry with a smaller buffer size.
12222
12223 2011-06-05  Bruno Haible  <bruno@clisp.org>
12224
12225         localename: Fix link dependencies.
12226         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
12227         * modules/localename-tests (Makefile.am): Link test-localename with
12228         $(LIBTHREAD).
12229
12230 2011-06-05  Bruno Haible  <bruno@clisp.org>
12231
12232         error: Avoid gcc warning.
12233         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
12234
12235 2011-06-05  Bruno Haible  <bruno@clisp.org>
12236
12237         unsetenv: Avoid gcc warning.
12238         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
12239
12240 2011-06-05  Bruno Haible  <bruno@clisp.org>
12241
12242         setenv: Avoid gcc warning.
12243         * lib/setenv.c (setenv): Provide declaration if system lacks it.
12244
12245 2011-06-05  Bruno Haible  <bruno@clisp.org>
12246
12247         sys_select: Ensure memset is declared also on AIX 7.
12248         * lib/sys_select.in.h: Include <string.h> also on AIX.
12249         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
12250         self-contained also on AIX 7.1.
12251
12252 2011-06-04  Jim Meyering  <meyering@redhat.com>
12253
12254         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
12255         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
12256         function name, "error".
12257         (_gl_translatable_diag_func_re): New configurable variable.
12258
12259 2011-06-04  Bruno Haible  <bruno@clisp.org>
12260
12261         getopt: Avoid gcc warning.
12262         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
12263
12264 2011-06-04  Bruno Haible  <bruno@clisp.org>
12265
12266         strerror_r: Fix comments.
12267         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
12268         commit.
12269
12270 2011-06-04  Bruno Haible  <bruno@clisp.org>
12271
12272         perror: Fix compilation error.
12273         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
12274         Undefine fprintf, not sprintf.
12275         * modules/perror (Depends-on): Remove intprops, verify.
12276
12277 2011-06-04  Bruno Haible  <bruno@clisp.org>
12278
12279         setlocale: Enable replacement on Cygwin 1.5.
12280         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
12281         Cygwin 1.5.x.
12282         * doc/posix-functions/setlocale.texi: Mention that the problem with the
12283         LC_CTYPE category also exists on Cygwin 1.5.x.
12284
12285 2011-06-04  Bruno Haible  <bruno@clisp.org>
12286
12287         strerror-override: Don't disable symbol renamings.
12288         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
12289         * lib/strerror-override.c: Include config.h.
12290         (strerror_override): Don't undefine.
12291
12292 2011-06-03  Bruno Haible  <bruno@clisp.org>
12293
12294         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
12295         * lib/localename.h: Update copyright header.
12296         * lib/localename.c: Likewise.
12297         * lib/relocatable.h: Likewise.
12298         * lib/relocatable.c: Likewise.
12299
12300 2011-06-02  Bruno Haible  <bruno@clisp.org>
12301
12302         doc: Fix a module name.
12303         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
12304
12305 2011-06-02  Bruno Haible  <bruno@clisp.org>
12306
12307         pipe2: Remove dependency on 'nonblocking' module.
12308         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
12309         O_NONBLOCK is defined by gnulib.
12310         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
12311         is zero.
12312         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
12313         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
12314         defined by gnulib.
12315         (get_nonblocking_flag): New function.
12316         (main): Test O_NONBLOCK flag only if it is nonzero.
12317         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
12318
12319 2011-06-03  Jim Meyering  <meyering@redhat.com>
12320
12321         maint: three new prohibit-header-without-use rules
12322         Prohibit use of cloexec.h, posixver.h, same.h without use.
12323         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
12324         (sc_prohibit_posixver_without_use): Likewise.
12325         (sc_prohibit_same_without_use): Likewise.
12326
12327 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12328
12329         allocator: 'die' routine is now given requested size
12330         * lib/allocator.h (struct allocator.die): New size arg.
12331         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
12332         If the actual problem is an ssize_t limitation, not a size_t or
12333         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
12334
12335 2011-06-01  Eric Blake  <eblake@redhat.com>
12336
12337         strerror: drop strerror_r dependency
12338         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
12339         * lib/strerror-override.c (strerror_override): ...to new file.
12340         * lib/strerror-override.h: Add prototype.
12341         * lib/strerror-impl.h: Delete.
12342         * lib/strerror.c (strerror): New implementation.
12343         * modules/errno (Files): Add new files.
12344         (configure.ac): Compile new file as appropriate.
12345         * modules/strerror (Files): Drop unused file.
12346         (Depends-on): Drop strerror_r-posix.
12347         * MODULES.html.sh: Document strerror_r-posix.
12348         Requested by Sam Steingold.
12349
12350         perror: call strerror_r directly
12351         * modules/perror (Files): Drop strerror-impl.h.
12352         * lib/perror.c (perror): Use our own stack buffer, rather than
12353         calling a wrapper that uses static storage.
12354         * doc/posix-functions/perror.texi (perror): Document a limitation
12355         of our replacement.
12356
12357         strerror_r: fix includes for FreeBSD
12358         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
12359         since we use abort on some platforms.
12360         Reported by Matthias Bolte.
12361
12362 2011-05-31  Bruno Haible  <bruno@clisp.org>
12363
12364         Fix link errors in tests: openat-die uses gettext-h.
12365         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
12366         against $(LIBINTL).
12367         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
12368         against $(LIBINTL).
12369         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
12370         $(LIBINTL).
12371         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
12372         against $(LIBINTL).
12373         * modules/linkat-tests (Makefile.am): Link test-linkat against
12374         $(LIBINTL).
12375         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
12376         $(LIBINTL).
12377         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
12378         against $(LIBINTL).
12379         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
12380         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
12381         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
12382         $(LIBINTL).
12383         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
12384         $(LIBINTL).
12385         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
12386         $(LIBINTL).
12387         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12388
12389 2011-05-31  Bruno Haible  <bruno@clisp.org>
12390
12391         Fix link errors in tests: wait-process uses gettext-h.
12392         * modules/nonblocking-pipe-tests (Makefile.am): Set
12393         test_nonblocking_pipe_main_LDADD.
12394         * modules/nonblocking-socket-tests (Makefile.am): Link
12395         test-nonblocking-socket-main against $(LIBINTL).
12396         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12397
12398 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12399
12400         assert-h: work around 'verify' incompatibility
12401         * lib/verify.h: Use @...@ directives, not ifdef.
12402         * modules/assert-h (assert.h): Implement the directives.
12403         (assert.h): Substitute the symbol-prefix more consistently.
12404
12405 2011-05-29  Jim Meyering  <meyering@redhat.com>
12406
12407         trim: remove three superfluous assignments
12408         * lib/trim.c (trim2): Remove three superfluous assignments
12409         and correct brace positioning.
12410
12411 2011-05-29  Bruno Haible  <bruno@clisp.org>
12412
12413         wctype-h: Avoid namespace pollution on Solaris 2.6.
12414         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
12415         identifiers.
12416         * doc/posix-headers/wctype.texi: Mention the problem.
12417         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12418
12419 2011-05-28  Jim Meyering  <meyering@redhat.com>
12420
12421         parse-datetime.y: accommodate -Wstrict-overflow
12422         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
12423         placate -Wstrict-overflow.
12424
12425         trim: avoid a warning from -O2 -Wstrict-overflow
12426         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
12427
12428 2011-05-29  Bruno Haible  <bruno@clisp.org>
12429
12430         gnulib-tool: Fix bug in yesterday's commit.
12431         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
12432         twice.
12433
12434 2011-05-29  Bruno Haible  <bruno@clisp.org>
12435
12436         Allow multiple gnulib generated include files to be combined.
12437         * gnulib-tool (func_compute_include_guard_prefix): New function.
12438         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
12439         ${gl_include_guard_prefix} references.
12440         (func_import, func_create_testdir): Invoke
12441         func_compute_include_guard_prefix.
12442         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
12443         * lib/ctype.in.h: Likewise.
12444         * lib/dirent.in.h: Likewise.
12445         * lib/errno.in.h: Likewise.
12446         * lib/fcntl.in.h: Likewise.
12447         * lib/float.in.h: Likewise.
12448         * lib/getopt.in.h: Likewise.
12449         * lib/iconv.in.h: Likewise.
12450         * lib/langinfo.in.h: Likewise.
12451         * lib/locale.in.h: Likewise.
12452         * lib/math.in.h: Likewise.
12453         * lib/netdb.in.h: Likewise.
12454         * lib/netinet_in.in.h: Likewise.
12455         * lib/poll.in.h: Likewise.
12456         * lib/pthread.in.h: Likewise.
12457         * lib/pty.in.h: Likewise.
12458         * lib/sched.in.h: Likewise.
12459         * lib/se-selinux.in.h: Likewise.
12460         * lib/search.in.h: Likewise.
12461         * lib/signal.in.h: Likewise.
12462         * lib/spawn.in.h: Likewise.
12463         * lib/stdarg.in.h: Likewise.
12464         * lib/stddef.in.h: Likewise.
12465         * lib/stdint.in.h: Likewise.
12466         * lib/stdio.in.h: Likewise.
12467         * lib/stdlib.in.h: Likewise.
12468         * lib/string.in.h: Likewise.
12469         * lib/strings.in.h: Likewise.
12470         * lib/sys_file.in.h: Likewise.
12471         * lib/sys_ioctl.in.h: Likewise.
12472         * lib/sys_select.in.h: Likewise.
12473         * lib/sys_socket.in.h: Likewise.
12474         * lib/sys_stat.in.h: Likewise.
12475         * lib/sys_time.in.h: Likewise.
12476         * lib/sys_times.in.h: Likewise.
12477         * lib/sys_uio.in.h: Likewise.
12478         * lib/sys_utsname.in.h: Likewise.
12479         * lib/sys_wait.in.h: Likewise.
12480         * lib/sysexits.in.h: Likewise.
12481         * lib/termios.in.h: Likewise.
12482         * lib/time.in.h: Likewise.
12483         * lib/unistd.in.h: Likewise.
12484         * lib/wchar.in.h: Likewise.
12485         * lib/wctype.in.h: Likewise.
12486         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
12487         * modules/ctype (Makefile.am): Likewise.
12488         * modules/dirent (Makefile.am): Likewise.
12489         * modules/errno (Makefile.am): Likewise.
12490         * modules/fcntl-h (Makefile.am): Likewise.
12491         * modules/float (Makefile.am): Likewise.
12492         * modules/getopt-posix (Makefile.am): Likewise.
12493         * modules/iconv-h (Makefile.am): Likewise.
12494         * modules/langinfo (Makefile.am): Likewise.
12495         * modules/locale (Makefile.am): Likewise.
12496         * modules/math (Makefile.am): Likewise.
12497         * modules/netdb (Makefile.am): Likewise.
12498         * modules/netinet_in (Makefile.am): Likewise.
12499         * modules/poll-h (Makefile.am): Likewise.
12500         * modules/pthread (Makefile.am): Likewise.
12501         * modules/pty (Makefile.am): Likewise.
12502         * modules/sched (Makefile.am): Likewise.
12503         * modules/search (Makefile.am): Likewise.
12504         * modules/selinux-h (Makefile.am): Likewise.
12505         * modules/signal (Makefile.am): Likewise.
12506         * modules/spawn (Makefile.am): Likewise.
12507         * modules/stdarg (Makefile.am): Likewise.
12508         * modules/stddef (Makefile.am): Likewise.
12509         * modules/stdint (Makefile.am): Likewise.
12510         * modules/stdio (Makefile.am): Likewise.
12511         * modules/stdlib (Makefile.am): Likewise.
12512         * modules/string (Makefile.am): Likewise.
12513         * modules/strings (Makefile.am): Likewise.
12514         * modules/sys_file (Makefile.am): Likewise.
12515         * modules/sys_ioctl (Makefile.am): Likewise.
12516         * modules/sys_select (Makefile.am): Likewise.
12517         * modules/sys_socket (Makefile.am): Likewise.
12518         * modules/sys_stat (Makefile.am): Likewise.
12519         * modules/sys_time (Makefile.am): Likewise.
12520         * modules/sys_times (Makefile.am): Likewise.
12521         * modules/sys_uio (Makefile.am): Likewise.
12522         * modules/sys_utsname (Makefile.am): Likewise.
12523         * modules/sys_wait (Makefile.am): Likewise.
12524         * modules/sysexits (Makefile.am): Likewise.
12525         * modules/termios (Makefile.am): Likewise.
12526         * modules/time (Makefile.am): Likewise.
12527         * modules/unistd (Makefile.am): Likewise.
12528         * modules/wchar (Makefile.am): Likewise.
12529         * modules/wctype-h (Makefile.am): Likewise.
12530         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
12531
12532 2011-05-29  Bruno Haible  <bruno@clisp.org>
12533
12534         assert-h: Allow multiple gnulib generated replacements to coexist.
12535         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
12536
12537 2011-05-29  Bruno Haible  <bruno@clisp.org>
12538
12539         argp: Allow coexistence with strerror_r-posix module.
12540         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
12541         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
12542         by gnulib's <string.h> replacement), assume it has the POSIX signature,
12543         not the glibc signature.
12544
12545 2011-05-28  Bruno Haible  <bruno@clisp.org>
12546
12547         gnulib-tool: Alternative structure of testdirs, similar to --import.
12548         * gnulib-tool: New option --single-configure.
12549         (func_usage): Document it.
12550         (single_configure): New variable.
12551         (func_modules_transitive_closure_separately,
12552         func_modules_transitive_closure_separately,
12553         func_determine_use_libtests, func_modules_add_dummy_separately,
12554         func_modules_to_filelist_separately): New functions, extracted from
12555         func_import.
12556         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
12557         (func_import): Use the new functions.
12558         (func_create_testdir): Set final_modules. Handle $single_configure =
12559         true case.
12560
12561 2011-05-28  Bruno Haible  <bruno@clisp.org>
12562
12563         getloadavg: Remove an unreliable safety check.
12564         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
12565         getloadavg.c is in place.
12566         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
12567         Reported by Sam Steingold <sds@gnu.org>.
12568
12569 2011-05-28  Bruno Haible  <bruno@clisp.org>
12570
12571         doc: Cleanup yet another file produced by texinfo.tex.
12572         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
12573
12574 2011-05-28  Bruno Haible  <bruno@clisp.org>
12575
12576         Finish the conditional dependencies mechanism.
12577         * gnulib-tool: New option --no-conditional-dependencies.
12578         (func_usage): Document it. Don't mark --conditional-dependencies as
12579         experimental.
12580         (cond_dependencies): The possible values can now be true, false, empty.
12581         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
12582         (func_import): Store setting in gnulib-cache.m4 and read it from there.
12583         * doc/gnulib-tool.texi (Conditional dependencies): New section.
12584
12585 2011-05-28  Bruno Haible  <bruno@clisp.org>
12586
12587         doc: Use a recent texinfo.tex.
12588         * doc/Makefile (tex_opts): New variable.
12589         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
12590
12591 2011-05-28  Jim Meyering  <meyering@redhat.com>
12592
12593         intprops.h: adjust comment to match code change
12594         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
12595         only once, it *may* have side effects.  Also fix an unrelated typo.
12596         (_GL_INT_SIGNED): Likewise.
12597
12598 2011-05-26  Simon Josefsson  <simon@josefsson.org>
12599
12600         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
12601
12602 2011-05-26  Bruno Haible  <bruno@clisp.org>
12603
12604         mbsrchr: Avoid collision with system function on Interix.
12605         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
12606         Reported by Markus Duft <mduft@gentoo.org>.
12607
12608 2011-05-15  James Youngman  <jay@gnu.org>
12609
12610         getopt: for ambiguous options, enumerate the possibilities.
12611         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
12612         the ambiguous options when an ambiguous prefix is given. This was
12613         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
12614         glibc change was
12615         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
12616
12617 2011-05-25  Eric Blake  <eblake@redhat.com>
12618
12619         getcwd: work around mingw bug
12620         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
12621         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12622         Reported by Matthias Bolte.
12623
12624 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
12625
12626         test-intprops: disable -Wtype-limits diagnostics
12627         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
12628         diagnostics.  Otherwise, the integer overflow macros generate many
12629         diagnostics.  Reported by Jim Meyering in
12630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12631
12632         intprops: shorten, to pacify gcc -Woverlength-strings
12633         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
12634         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
12635         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
12636         likely to run afoul of C compiler limits for string constant lengths.
12637         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12638
12639 2011-05-24  Eric Blake  <eblake@redhat.com>
12640
12641         docs: document recently fixed glibc printf bug
12642         * doc/posix-functions/fprintf.texi (fprintf): Document it.
12643         * doc/posix-functions/printf.texi (printf): Likewise.
12644         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12645         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12646
12647         closein-tests: convert to init.sh
12648         * modules/closein-tests (Files): Add init.sh
12649         * tests/test-closein.sh Use it.
12650
12651         yesno-tests: convert to init.sh
12652         * modules/yesno-tests (Files): Add init.sh.
12653         * tests/test-yesno.sh: Use it.
12654
12655         atexit-tests: ensure reliable exit status
12656         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
12657         Reported by Bruno Haible.
12658
12659 2011-05-24  Bruno Haible  <bruno@clisp.org>
12660
12661         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
12662         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
12663         gl_PREREQ_STRERROR_R invocations from here...
12664         * modules/strerror_r-posix (configure.ac): ... to here.
12665
12666 2011-05-24  Eric Blake  <eblake@redhat.com>
12667
12668         strerror_r: fix missing header
12669         * lib/strerror_r.c: Avoid compiler warning about snprintf.
12670
12671         strerror_r: fix AIX test failures
12672         * lib/strerror_r.c (strerror_r): Convert silent truncation to
12673         ERANGE failure.
12674
12675         strerror_r: fix Solaris test failures
12676         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
12677         failures.
12678         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12679
12680         strerror_r: enforce POSIX recommendations
12681         * lib/strerror_r.c (safe_copy): New helper method.
12682         (strerror_r): Guarantee a non-empty string.
12683         * tests/test-strerror_r.c (main): Enhance tests to incorporate
12684         recent POSIX rulings and to match our strerror guarantees.
12685         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12686
12687 2011-05-24  Jim Meyering  <meyering@redhat.com>
12688
12689         test-perror2.c: avoid warning about unused variable
12690         * tests/test-perror2.c (main): Remove declaration of unused "fp".
12691
12692 2011-05-24  Eric Blake  <eblake@redhat.com>
12693
12694         perror: avoid spurious test failure on HP-UX
12695         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
12696
12697         tests: fix logic bug in init.sh
12698         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
12699         shell.
12700
12701 2011-05-24  Jim Meyering  <meyering@redhat.com>
12702
12703         utimensat: do not reference an out-of-scope buffer
12704         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
12705         declared in an inner scope, yet "times" would be dereferenced outside
12706         the scope in which "ts" was valid.
12707         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
12708         of ts[2] "out/up", so that the use of aliased "times" (via
12709         "times = ts;") does not end up referencing an out-of-scope "ts"
12710
12711         opendir-safer.c: don't clobber errno; don't close negative FD
12712         * lib/opendir-safer.c (opendir_safer):
12713         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
12714         file descriptor, and more importantly, don't clobber the
12715         offending errno value with EINVAL.  Before, upon failure
12716         of dup_safer, we would pass the negative file descriptor to
12717         fdopendir, which would clobber errno.
12718
12719 2011-05-23  Bruno Haible  <bruno@clisp.org>
12720
12721         idcache: Fix module description.
12722         * modules/idcache (Include): Set to "idcache.h".
12723
12724 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
12725
12726         gnulib-tool: fix portability problem with MacOS sed
12727         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
12728         before the "}".  Problem reported by Leo in
12729         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
12730         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
12731         sed_extract_condition1, sed_extract_condition2.
12732
12733 2011-05-23  Bruno Haible  <bruno@clisp.org>
12734
12735         hash: Simplify autoconf macro.
12736         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
12737
12738 2011-05-23  Bruno Haible  <bruno@clisp.org>
12739
12740         getugroups: Fix module description.
12741         * modules/getugroups (Include): Set to "getugroups.h".
12742
12743 2011-05-23  Bruno Haible  <bruno@clisp.org>
12744
12745         linkat: Simplify autoconf macro.
12746         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
12747
12748 2011-05-23  Bruno Haible  <bruno@clisp.org>
12749             Eric Blake  <eblake@redhat.com>
12750
12751         linkat, renameat: Update dependencies.
12752         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
12753         * modules/linkat (Depends-on): Likewise. Remove also readlink,
12754         symlinkat.
12755
12756 2011-05-23  Jim Meyering  <meyering@redhat.com>
12757
12758         maint.mk: more tight_scope improvements
12759         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
12760         (_gl_TS_headers): Define only in if-0'd block.
12761         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
12762         sometimes we must *not* use it.  Adjust uses accordingly.
12763         (sc_tight_scope): Use much simpler grep-based test to determine
12764         whether we skip this rule.
12765
12766         maint.mk: generalize/improve the tight-scope rule
12767         * top/maint.mk: Emit a warning when the test is skipped.
12768         (_gl_TS_dir): Add $(srcdir)/ prefix.
12769         (_gl_TS_function_match): Simplify, rather than trying
12770         to enumerate common types.  Otherwise, it would fail to match an
12771         "extern unsigned char const *" declaration in idutils.
12772         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
12773         a way to support use of that type of macro.
12774         (_gl_TS_var_match): Simplify regexp.
12775         (_gl_TS_obj_files): New configurable variable.
12776         (_gl_TS_headers): Likewise.
12777
12778 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12779
12780         verify: fix bug when gnulib <assert.h> is also included
12781         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
12782         is defined, not if _GL_STATIC_ASSERT_H is not defined.
12783         Perhaps there's a better way, but this fixes the immediate problem.
12784         Problem reported by Bruno Haible in
12785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
12786
12787 2011-05-22  Bruno Haible  <bruno@clisp.org>
12788
12789         xgetcwd: Simplify autoconf macro.
12790         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
12791
12792 2011-05-22  Bruno Haible  <bruno@clisp.org>
12793
12794         New module 'mktime-internal'.
12795         * modules/mktime-internal: New file.
12796         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
12797         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
12798         mktime_internal as a C macro if libc has __mktime_internal.
12799         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
12800         conditions.
12801         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
12802
12803 2011-05-22  Bruno Haible  <bruno@clisp.org>
12804
12805         timegm: Correct mktime replacement statements.
12806         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
12807         defining mktime as a C macro. This completes a 2009-07-28 commit.
12808
12809 2011-05-22  Bruno Haible  <bruno@clisp.org>
12810
12811         timegm: Simplify autoconf macro.
12812         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
12813
12814 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
12815
12816         clock-time: change to LGPLv2+.
12817         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
12818         BSD-like but we have no mark for that; this is good enough for now.
12819
12820 2011-05-21  Bruno Haible  <bruno@clisp.org>
12821
12822         strerror_r: Fix comments.
12823         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
12824
12825 2011-05-21  Bruno Haible  <bruno@clisp.org>
12826
12827         relocatable-prog-wrapper: Fix possible link error.
12828         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
12829         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
12830         (gl_FUNC_SETENV): ... to here.
12831         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
12832         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
12833
12834 2011-05-21  Bruno Haible  <bruno@clisp.org>
12835
12836         relocatable-prog-wrapper: Assume strerror() exists.
12837         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
12838         m4/strerror.m4.
12839         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
12840         * lib/relocwrapper.c: Remove mention of strerror module.
12841         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
12842         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
12843         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
12844         C macro.
12845
12846 2011-05-21  Bruno Haible  <bruno@clisp.org>
12847
12848         select: Simplify replacement idiom.
12849         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
12850         Win32 platforms.
12851         * lib/sys_select.in.h (select): Simplify accordingly.
12852         * modules/select (Depends-on): Likewise.
12853
12854 2011-05-21  Bruno Haible  <bruno@clisp.org>
12855
12856         mkdir-p: Simplify autoconf macro.
12857         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
12858         gl_FUNC_LCHOWN.
12859
12860 2011-05-21  Eric Blake  <eblake@redhat.com>
12861
12862         strerror_r: avoid clobbering strerror on cygwin
12863         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
12864         fall back instead to sys_errlist.
12865         * modules/strerror (configure.ac): Add witness.
12866         * tests/test-strerror_r.c (main): Enhance test.
12867         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12868         * tests/test-perror2.c (main): Free memory before exit.
12869
12870 2011-05-21  Bruno Haible  <bruno@clisp.org>
12871
12872         mkdtemp: Use gnulib naming conventions.
12873         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
12874         * modules/mkdtemp (configure.ac): Update.
12875
12876 2011-05-20  Eric Blake  <eblake@redhat.com>
12877
12878         strerror_r: avoid corrupting errno on Solaris
12879         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
12880         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12881
12882         strerror_r: avoid compiler warning
12883         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
12884
12885         strerror_r: simplify AIX code
12886         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
12887
12888         test-perror: avoid spurious failure on FreeBSD
12889         * modules/perror-tests (Depends-on): Add strerror, now that
12890         strerror_r no longer pulls it in.
12891
12892 2011-05-20  Bruno Haible  <bruno@clisp.org>
12893
12894         strerror_r-posix: Remove unused dependencies.
12895         * modules/strerror_r-posix (Depends-on): Remove strerror.
12896         Reported by Eric Blake.
12897
12898 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12899
12900         intprops: remove assumption about A|B representation
12901         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
12902         is a valid integer if both A and B are.  Although this is true for
12903         all known practical hosts, the C standard doesn't guarantee it,
12904         and the code need not assume it.  Also, this change may work around
12905         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
12906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
12907
12908 2011-05-20  Eric Blake  <eblake@redhat.com>
12909
12910         perror: work around FreeBSD bug
12911         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
12912         is broken.  Move AC_LIBOBJ...
12913         * modules/perror (configure.ac): Here.
12914         * doc/posix-functions/perror.texi (perror): Document this.
12915         * tests/test-perror2.c (main): Enhance test.
12916
12917         test-perror: check for strerror interactions
12918         * tests/macros.h (STREQ): Add macro.
12919         * modules/perror-tests (Files): Add second test.
12920         * tests/test-perror2.c (main): New file.
12921         * doc/posix-functions/perror.texi (perror): Document glibc bug.
12922
12923         test-perror: rewrite to use init script
12924         * modules/perror-tests (Files): Add init.sh.
12925         * tests/test-perror.sh: Use temporary directory.
12926
12927 2011-05-20  Jim Meyering  <meyering@redhat.com>
12928
12929         maint: replace misused "a" with "an"
12930         * doc/intprops.texi: "a integer"
12931         * doc/regex.texi: "a explanation"
12932         * lib/alignof.h: "a object"
12933         * lib/argmatch.h: "a explanation"
12934         * lib/argp-help.c: "a option" and "a OPTION_DOC"
12935         * lib/stdint.in.h: "a integer"
12936         * lib/userspec.c: "a owner"
12937         * doc/gnulib.texi: Fix "a idea", and reword.
12938
12939 2011-05-19  Jim Meyering  <meyering@redhat.com>
12940
12941         maint: correct misuse of "a" and "an"
12942         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
12943         * lib/argp-help.c: "an docum...": s/an/a/
12944         * lib/argp-parse.c: "An vector": s/An/A/
12945         * lib/execute.c: "an native": s/an/a/
12946         * lib/spawn-pipe.c: Likewise.
12947         * lib/gc.h: "an Gc_rc": s/an/a/
12948         * lib/unigbrk.in.h: "an grapheme": s/an/a/
12949         * lib/fts.c: "an stat.st_dev": s/an/a/
12950
12951 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12952
12953         intprops-tests: work around HP-UX 11.23 cc bug with constants
12954         * tests/test-intprops.c (VERIFY): New macro.
12955         (main): Use it, instead of verify, to work around the compiler bug; see
12956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12957
12958         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
12959         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
12960         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
12961         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
12962         (_GL_REMAINDER_OVERFLOW): Use it.
12963
12964         intprops-tests: revert unsigned part of previous change
12965         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
12966         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
12967         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
12968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
12969
12970 2011-05-19  Bruno Haible  <bruno@clisp.org>
12971
12972         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
12973         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
12974         strerror_r() returned without filling the buffer.
12975         Reported by Eric Blake.
12976
12977 2011-05-19  Eric Blake  <eblake@redhat.com>
12978
12979         strerror_r: guarantee unchanged errno
12980         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
12981         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
12982         failure.
12983         * tests/test-strerror_r.c (main): Enhance test.
12984
12985 2011-05-19  Bruno Haible  <bruno@clisp.org>
12986
12987         strerror_r: Reorder #if blocks.
12988         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
12989         for consistency with the previous commit.
12990
12991 2011-05-19  Bruno Haible  <bruno@clisp.org>
12992
12993         perror: Avoid clobbering the strerror buffer when possible.
12994         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
12995         * lib/strerror.c: Include it.
12996         * modules/strerror (Files): Add lib/strerror-impl.h.
12997         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
12998         (my_strerror): New function, defined through lib/strerror-impl.h.
12999         (perror): Use it instead of strerror.
13000         * modules/perror (Files): Add lib/strerror-impl.h.
13001         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
13002
13003 2011-05-19  Eric Blake  <eblake@redhat.com>
13004
13005         strerror_r: fix on newer cygwin
13006         * lib/strerror_r.c (strerror_r): Cygwin now has
13007         __xpg_strerror_r, use it.
13008
13009 2011-05-19  Bruno Haible  <bruno@clisp.org>
13010
13011         strerror_r: Avoid clobbering the strerror buffer when possible.
13012         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
13013         (sys_nerr, sys_errlist): New declarations.
13014         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
13015         HP-UX, native Win32, IRIX, and 32-bit Solaris.
13016         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
13017
13018 2011-05-19  Bruno Haible  <bruno@clisp.org>
13019
13020         strerror_r: Fix test failure on mingw.
13021         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
13022         EXTEND_STRERROR_R.
13023         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
13024         macros from errno.in.h instead.
13025
13026 2011-05-19  Eric Blake  <eblake@redhat.com>
13027
13028         strerror: relax test for Solaris
13029         * tests/test-strerror.c (main): Permit Solaris behavior.
13030         * tests/test-strerror_r.c (main): Likewise.
13031
13032         strerror: enforce POSIX ruling on strerror(0)
13033         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
13034         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13035         * lib/strerror_r.c (rpl_strerror_r): Work around it.
13036         * doc/posix-functions/strerror.texi (strerror): Document it.
13037         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
13038         * tests/test-strerror.c (main): Strengthen test.
13039         * tests/test-strerror_r.c (main): Likewise.
13040
13041 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13042
13043         intprop-tests: port to older and more-pedantic compilers
13044         * modules/intprops-tests (Files): Add tests/macros.h.
13045         * tests/test-intprops.c: Include macros.h.
13046         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
13047         it's no longer documented to expand to an integer constant expression.
13048         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
13049         argument is floating point, as it's no longer documented to expand
13050         to an integer constant expression in that case.
13051         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
13052         compiler bugs reported by Bruno Haible.  See
13053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13054         (U0, U1): New constants, to work around the same bugs.  Also,
13055         in tests, use e.g., "(unsigned int) 39" rather than "39u".
13056
13057         intprops: work around C compiler bugs
13058         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
13059         bug in Sun C 5.11 2010/08/13 and other compilers; see
13060         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13061
13062         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
13063         * doc/intprops.texi (Integer Type Determination): Fix
13064         documentation for TYPE_IS_INTEGER: it returns an constant
13065         expression, not an integer constant expression.  Fix doc for
13066         TYPE_SIGNED: it returns an integer constant expression only if its
13067         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
13068         hardly worth documented that way....)
13069
13070 2011-05-18  Bruno Haible  <bruno@clisp.org>
13071
13072         strerror_r: Avoid clobbering the strerror buffer when possible.
13073         * lib/strerror_r.c (strerror_r): Merge the three implementations.
13074         Handle gnulib defined errno values here. When strerror() returns NULL
13075         or an empty string, return EINVAL.
13076         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
13077         gnulib defined errno values here.
13078         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
13079
13080 2011-05-18  Eric Blake  <eblake@redhat.com>
13081
13082         fnmatch: avoid compiler warning
13083         * lib/fnmatch_loop.c (FCT): Use correct type.
13084         Reported by Matthias Bolte.
13085
13086 2011-05-13  Jim Meyering  <meyering@redhat.com>
13087
13088         maint.mk: three new prohibit_<HDR>_without_use rules
13089         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
13090         (sc_prohibit_stdio-safer_without_use): Likewise.
13091         (sc_prohibit_xfreopen_without_use): Likewise.
13092
13093 2011-05-17  Jim Meyering  <meyering@redhat.com>
13094
13095         announce-gen: fail if the NEWS delta is empty
13096         If there's nothing noteworthy in NEWS, then either you forgot
13097         or you shouldn't be releasing.
13098         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
13099
13100 2011-05-17  Pádraig Brady <P@draigBrady.com>
13101
13102         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
13103         reserved symbols starting with double underscore from the check.
13104
13105 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13106
13107         intprops: add doc
13108         * doc/intprops.texi: New file, documenting intprops.
13109         * doc/gnulib.texi (Particular Modules): Include it.
13110
13111         verify: add doc to gnulib manual and fix example
13112         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
13113         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
13114         (Compile-time Assertions): Fix example so it can't overflow.
13115
13116 2011-05-17  Jim Meyering  <meyering@redhat.com>
13117
13118         warnings.m4: don't usurp save_CPPFLAGS variable name
13119         * m4/warnings.m4: Prefix local temporary variable name with gl_.
13120
13121         doc: fix typo
13122         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
13123
13124 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13125             Bruno Haible  <bruno@clisp.org>
13126
13127         doc: Tweak recent change.
13128         * README (Portability guidelines): Tweak new text.
13129         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
13130         Interix 6.1.
13131
13132 2011-05-16  Eric Blake  <eblake@redhat.com>
13133
13134         inttypes: avoid autoconf warning
13135         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
13136         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13137
13138 2011-05-16  Sam Steingold <sds@gnu.org>
13139         and Eric Blake  <eblake@redhat.com>
13140
13141         vc-list-files: accept multiple directory operands
13142         * build-aux/vc-list-files: Iterate over all remaining operands.
13143
13144 2011-05-16  Bruno Haible  <bruno@clisp.org>
13145
13146         Fix confusion regarding deprecated modules.
13147         * modules/calloc (Status, Notice): Mark module as deprecated, not
13148         obsolete.
13149         * modules/fnmatch-posix (Status, Notice): Likewise.
13150         * modules/getdate (Status, Notice): Likewise.
13151         * modules/getopt (Status, Notice): Likewise.
13152         * modules/malloc (Status, Notice): Likewise.
13153         * modules/pipe (Status, Notice): Likewise.
13154         * modules/realloc (Status, Notice): Likewise.
13155         * modules/rename-dest-slash (Status, Notice): Likewise.
13156         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
13157         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
13158         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
13159         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
13160         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
13161
13162 2011-05-16  Bruno Haible  <bruno@clisp.org>
13163
13164         doc: List the target platforms.
13165         * doc/gnulib-intro.texi (Target Platforms): New section.
13166         * doc/gnulib.texi (Introduction): Update menu.
13167         * README (Portability guidelines): Refer to the new section. Update
13168         statement about oldest supported environment. Remove rationale why
13169         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
13170         unportable C89 function.
13171         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
13172         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
13173
13174 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13175
13176         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
13177
13178 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13179
13180         intprops-tests: new module
13181         * modules/intprops-tests, tests/test-intprops.c: New files.
13182
13183         intprops: add safe, portable integer overflow checking
13184         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
13185         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
13186         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
13187         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
13188         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
13189         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
13190         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
13191         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
13192         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13193         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
13194         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
13195
13196 2011-05-12  James Youngman  <jay@gnu.org>
13197
13198         Add a test for glibc's Bugzilla bug #12378.
13199         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
13200         doesn't allow the literal matching of a lone "[" (which is
13201         required by POSIX).
13202         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
13203
13204 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
13205
13206         Sync glibc change fixing Bugzilla bug #12378.
13207         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
13208         beginning and fall back to matching as normal character if the
13209         string ends before the matching ']' is found.  This is what POSIX
13210         requires.
13211
13212 2011-05-13  Eric Blake  <eblake@redhat.com>
13213
13214         getcwd-lgpl: relax test for FreeBSD
13215         * doc/posix-functions/getcwd.texi (getcwd): Document portability
13216         issue.
13217         * tests/test-getcwd-lgpl.c (main): Relax test.
13218         Reported by Matthias Bolte.
13219
13220 2011-05-11  Eric Blake  <eblake@redhat.com>
13221
13222         test-fflush: silence compiler warning
13223         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
13224
13225 2011-05-11  Bruno Haible  <bruno@clisp.org>
13226
13227         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
13228         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
13229         * modules/canonicalize (Depends-on): Add 'nocrash'.
13230         * modules/canonicalize-lgpl (Depends-on): Likewise.
13231         * doc/posix-functions/realpath.texi: Update platforms list.
13232         Reported by Ryan Schmidt <ryandesign@macports.org>.
13233
13234 2011-05-11  Bruno Haible  <bruno@clisp.org>
13235
13236         group-member: Declare function in <unistd.h>.
13237         * lib/unistd.in.h (group_member): New declaration.
13238         * lib/group-member.h: Remove file.
13239         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
13240         * tests/test-unistd-c++.cc: Check signature of group_member.
13241         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
13242         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
13243         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
13244         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
13245         HAVE_GROUP_MEMBER.
13246         * modules/group-member (Files): Remove lib/group-member.h.
13247         (Depends-on): Add unistd. Specify conditions.
13248         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13249         (Include): Change to <unistd.h>.
13250         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
13251         HAVE_GROUP_MEMBER.
13252         * NEWS: Mention the change.
13253         * lib/euidaccess.c: Don't include group-member.h.
13254
13255 2011-05-11  Bruno Haible  <bruno@clisp.org>
13256
13257         group-member: Document module.
13258         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
13259         module.
13260
13261 2011-05-11  Bruno Haible  <bruno@clisp.org>
13262
13263         fclose: Fix mistake earlier today.
13264         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
13265
13266 2011-05-11  Eric Blake  <eblake@redhat.com>
13267
13268         fclose: preserve fflush errors
13269         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
13270         Reported by Jim Meyering.
13271
13272         bootstrap: support a prereq of 'rpcgen -' on RHEL5
13273         * build-aux/bootstrap (check_versions): When no specific version
13274         is required, merely check that the app produces an exit status
13275         that indicates its existence.
13276
13277         maint.mk: drop redundant check
13278         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
13279         the same but better.
13280
13281 2011-05-11  Bruno Haible  <bruno@clisp.org>
13282
13283         fclose: Fix possible link error.
13284         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
13285         unregister_shadow_fd. Improve comments.
13286         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
13287         Eric Blake.
13288
13289 2011-05-11  Jim Meyering  <meyering@redhat.com>
13290
13291         maint.mk: improve "can not" detection and generalize rule name
13292         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
13293         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
13294         Use the same technique as in sc_prohibit_doubled_word, so that
13295         we recognize "can not" also when the words are separated by a newline.
13296         Suggested by Eric Blake.
13297         (perl_filename_lineno_text_): Define.  Factored out of...
13298         (prohibit_doubled_word_): ...here.  Use the new definition.
13299         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
13300         (prohibit_undesirable_word_seq_RE_): New overridable variable.
13301         (ignore_undesirable_word_sequence_RE_): New overridable variable.
13302
13303 2011-05-10  Eric Blake  <eblake@redhat.com>
13304
13305         fclose: avoid double close race when possible
13306         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
13307         all but WINDOWS_SOCKETS.
13308
13309 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
13310
13311         openat: correct new comment
13312         * lib/openat-proc.c (openat_proc_name): Correct the comment.
13313
13314 2011-05-10  Jim Meyering  <meyering@redhat.com>
13315
13316         openat: add comments
13317         * lib/openat-proc.c (openat_proc_name): Add comments,
13318         mostly from Eric Blake.
13319
13320 2011-05-09  Eric Blake  <eblake@redhat.com>
13321
13322         openat: reduce syscalls in first probe of /proc
13323         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
13324         be a directory.  Simplify the probe for .. bugs.
13325         * modules/openat (Depends-on): Drop same-inode.
13326         Reported by Bastien ROUCARIES.
13327
13328 2011-05-09  Jim Meyering  <meyering@redhat.com>
13329
13330         maint.mk: change semantics/name of tight_scope variables
13331         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
13332         Rename variables to align with semantics that make them more useful.
13333
13334         maint.mk: tweak new rule's name not to impinge
13335         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
13336         (sc_tight_scope): Use new rule name rather than $@-0.
13337
13338         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
13339         * top/maint.mk (sc_tight_scope): New rule.
13340         (sc_tight_scope-0): New rule, ifdef'd out.
13341         (_gl_TS_dir): Default.
13342         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
13343         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
13344
13345 2011-05-09  Simon Josefsson  <simon@josefsson.org>
13346
13347         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
13348         Haible <bruno@clisp.org>.
13349
13350 2011-05-08  Bruno Haible  <bruno@clisp.org>
13351
13352         Comments.
13353         * m4/isnanf.m4: Add comment.
13354         * m4/isnanl.m4: Likewise.
13355
13356 2011-05-08  Bruno Haible  <bruno@clisp.org>
13357
13358         glob: Remove obsolete macro.
13359         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
13360
13361 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13362
13363         intprops: Sun C 5.11 supports __typeof__
13364         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
13365         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
13366         which is new.
13367         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
13368
13369         intprops: switch to usual gnulib indenting and naming
13370         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
13371         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
13372
13373         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
13374
13375 2011-05-08  Jim Meyering  <meyering@redhat.com>
13376
13377         maint.mk: suppress "Entering/Leaving directory" diag in announcement
13378         * top/maint.mk (release-prep): Use make's --no-print-directory
13379         option when generating the announcement.  This eliminates the
13380         pesky "make[2]: Entering/Leaving directory" diagnostics in the
13381         generated announcement template.
13382
13383 2011-05-08  Bruno Haible  <bruno@clisp.org>
13384
13385         tzset: Fix gettimeofday wrapper on Solaris 2.6.
13386         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
13387         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
13388
13389 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13390
13391         ignore-value, verify: Omit include files from lib_SOURCES.
13392         * modules/ignore-value, modules/verify (Makefile.am):
13393         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
13394         that leads Automake to duplicate use of am__objects_... variables
13395         in Makefile.in.  See
13396         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
13397
13398 2011-05-07  Bruno Haible  <bruno@clisp.org>
13399
13400         fclose: Simplify autoconf macro.
13401         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
13402         defined.
13403
13404 2011-05-07  Bruno Haible  <bruno@clisp.org>
13405
13406         canonicalize-lgpl: Fix autoconf macro ordering bug.
13407         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
13408         gl_STDLIB_H_DEFAULTS.
13409
13410 2011-05-06  Eric Blake  <eblake@redhat.com>
13411
13412         maintainer-makefile: make sc_po_check easier to tune
13413         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
13414         to probe for strings, such as an alternate location for gnulib.
13415
13416         fclose: guarantee behavior on seekable stdin
13417         * modules/fclose (Depends-on): Add fflush.
13418         * doc/posix-functions/fclose.texi (fclose): Document this.
13419         * tests/test-fclose.c (main): Make test for this unconditional.
13420
13421 2011-05-06  Bruno Haible  <bruno@clisp.org>
13422
13423         fflush, fpurge: Relicense under LGPLv2+.
13424         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
13425         * modules/fpurge (License): Likewise.
13426         With permission from Eric Blake and Jim Meyering.
13427         Suggested by Eric Blake.
13428
13429 2011-05-06  Karl Berry  <karl@gnu.org>
13430
13431         * MODULES.html.sh (func_all_modules): remove exit.
13432
13433 2011-05-06  Jim Meyering  <meyering@redhat.com>
13434
13435         maint.mk: use info-gnu@ as the default only for a stable release
13436         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
13437         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
13438         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
13439         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
13440
13441 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13442
13443         assert-h: new module, which supports C1X-style static_assert
13444         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
13445         * lib/verify.h: Revamp so that this can be copied into assert.h,
13446         while retaining the ability to use it standalone as before.
13447         Rename private identifiers so as not to encroach on the
13448         standard C namespace, since this is now used by assert.h.
13449         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
13450         the old verify_true.
13451         (_GL_VERIFY_TRUE): New macro, with much of the contents of
13452         the old verify_true.  Use _GL_VERIFY_TYPE.
13453         (_GL_VERIFY): New macro, with much of the contents of the old verify.
13454         (static_assert): New macro, if _GL_STATIC_ASSERT_H
13455         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
13456         defined when this file is copied into the replacement assert.h.
13457         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
13458         and _Static_assert is not built in.
13459         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
13460         defined, and use the new macros mentioned above.
13461         * doc/posix-headers/assert.texi: Document this.
13462
13463 2011-05-05  Bruno Haible  <bruno@clisp.org>
13464
13465         fclose, fflush: Respect rules for use of AC_LIBOBJ.
13466         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
13467         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
13468         gl_REPLACE_FCLOSE here.
13469         * modules/fflush (Depends-on): Remove fclose.
13470         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
13471         combination with module 'fclose'.
13472
13473 2011-05-05  Bruno Haible  <bruno@clisp.org>
13474
13475         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
13476         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
13477         gl_FUNC_FFLUSH.
13478         (gl_FUNC_FFLUSH): Use it.
13479         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
13480         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
13481         gl_REPLACE_FSEEKO here.
13482
13483 2011-05-05  Bruno Haible  <bruno@clisp.org>
13484
13485         tzset: Relicense under LGPL.
13486         * modules/tzset (License): Change to LGPL.
13487         No agreement needed; it's a no-op.
13488
13489         strtoimax, strtoumax: Relicense under LGPL.
13490         * modules/strtoimax (License): Change to LGPL.
13491         * modules/strtoumax (License): Likewise.
13492         With permission from Jim Meyering, Paul Eggert:
13493         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
13494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
13495
13496         getgroups: Relicense under LGPL.
13497         * modules/getgroups (License): Change to LGPL.
13498         With permission from Jim Meyering, Paul Eggert, Eric Blake:
13499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13500         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13502
13503         nanosleep: Relicense under LGPL.
13504         * modules/nanosleep (License): Change to LGPL.
13505         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
13506         Haible:
13507         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13508         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13509         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13511
13512         futimens: Relicense under LGPL.
13513         * modules/futimens (License): Change to LGPL.
13514         With permission from Eric Blake:
13515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13516
13517         fflush: Relicense under LGPL.
13518         * modules/fflush (License): Change to LGPL.
13519         With permission from Eric Blake, Bruno Haible, Jim Meyering:
13520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
13523
13524         tmpfile: Relicense under LGPL.
13525         * modules/tmpfile (License): Change to LGPL.
13526         With permission from Ben Pfaff:
13527         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13528
13529         isfinite: Relicense under LGPL.
13530         * modules/isfinite (License): Change to LGPL.
13531         With permission from Ben Pfaff, Bruno Haible:
13532         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
13534
13535         acosl..tanl: Relicense under LGPL.
13536         * modules/acosl (License): Change to LGPL.
13537         * modules/asinl (License): Likewise.
13538         * modules/atanl (License): Likewise.
13539         * modules/cosl (License): Likewise.
13540         * modules/expl (License): Likewise.
13541         * modules/logl (License): Likewise.
13542         * modules/sinl (License): Likewise.
13543         * modules/sqrtl (License): Likewise.
13544         * modules/tanl (License): Likewise.
13545         Source code originally from glibc and Paolo Bonzini. Agreements:
13546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
13547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
13548
13549 2011-05-05  Bruno Haible  <bruno@clisp.org>
13550
13551         signal: Define sighandler_t.
13552         * lib/signal.in.h (sighandler_t): New type.
13553         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
13554         whether sighandler_t is defined.
13555         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
13556         * modules/signal (Depends-on): Add extensions.
13557         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
13558         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
13559         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
13560
13561 2011-05-05  Eric Blake  <eblake@redhat.com>
13562
13563         maint: remove useless REPLACE_*_H macros
13564         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
13565         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13566         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13567         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
13568         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13569         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13570         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
13571         * m4/btowc.m4: Update callers.
13572         * m4/dirfd.m4: Likewise.
13573         * m4/duplocale.m4: Likewise.
13574         * m4/fchdir.m4: Likewise.
13575         * m4/fdopendir.m4: Likewise.
13576         * m4/inet_ntop.m4: Likewise.
13577         * m4/inet_pton.m4: Likewise.
13578         * m4/ioctl.m4: Likewise.
13579         * m4/mbrlen.m4: Likewise.
13580         * m4/mbrtowc.m4: Likewise.
13581         * m4/mbsinit.m4: Likewise.
13582         * m4/mbsnrtowcs.m4: Likewise.
13583         * m4/mbsrtowcs.m4: Likewise.
13584         * m4/poll.m4: Likewise.
13585         * m4/setlocale.m4: Likewise.
13586         * m4/wcrtomb.m4: Likewise.
13587         * m4/wcsnrtombs.m4: Likewise.
13588         * m4/wcsrtombs.m4: Likewise.
13589         * m4/wctob.m4: Likewise.
13590         * m4/wcwidth.m4: Likewise.
13591         * modules/posix_spawn: Likewise.
13592         * modules/posix_spawn_file_actions_addclose: Likewise.
13593         * modules/posix_spawn_file_actions_adddup2: Likewise.
13594         * modules/posix_spawn_file_actions_addopen: Likewise.
13595         * modules/posix_spawn_file_actions_destroy: Likewise.
13596         * modules/posix_spawn_file_actions_init: Likewise.
13597         * modules/posix_spawnattr_destroy: Likewise.
13598         * modules/posix_spawnattr_getflags: Likewise.
13599         * modules/posix_spawnattr_getpgroup: Likewise.
13600         * modules/posix_spawnattr_getschedparam: Likewise.
13601         * modules/posix_spawnattr_getschedpolicy: Likewise.
13602         * modules/posix_spawnattr_getsigdefault: Likewise.
13603         * modules/posix_spawnattr_getsigmask: Likewise.
13604         * modules/posix_spawnattr_init: Likewise.
13605         * modules/posix_spawnattr_setflags: Likewise.
13606         * modules/posix_spawnattr_setpgroup: Likewise.
13607         * modules/posix_spawnattr_setschedparam: Likewise.
13608         * modules/posix_spawnattr_setschedpolicy: Likewise.
13609         * modules/posix_spawnattr_setsigdefault: Likewise.
13610         * modules/posix_spawnattr_setsigmask: Likewise.
13611         * modules/posix_spawnp: Likewise.
13612
13613 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
13614
13615         Add option to do-release-commit-and-tag to specify branch.
13616         * build-aux/do-release-commit-and-tag: Add --branch.
13617
13618 2011-05-03  Bruno Haible  <bruno@clisp.org>
13619
13620         Avoid unnecessary compilation units, through conditional dependencies.
13621         * modules/accept (Depends-on): Add conditions to the dependencies.
13622         * modules/acosl (Depends-on): Likewise.
13623         * modules/argz (Depends-on): Likewise.
13624         * modules/asinl (Depends-on): Likewise.
13625         * modules/atanl (Depends-on): Likewise.
13626         * modules/atoll (Depends-on): Likewise.
13627         * modules/bind (Depends-on): Likewise.
13628         * modules/btowc (Depends-on): Likewise.
13629         * modules/canonicalize-lgpl (Depends-on): Likewise.
13630         * modules/ceil (Depends-on): Likewise.
13631         * modules/ceilf (Depends-on): Likewise.
13632         * modules/ceill (Depends-on): Likewise.
13633         * modules/chdir-long (Depends-on): Likewise.
13634         * modules/chown (Depends-on): Likewise.
13635         * modules/close (Depends-on): Likewise.
13636         * modules/connect (Depends-on): Likewise.
13637         * modules/cosl (Depends-on): Likewise.
13638         * modules/dirfd (Depends-on): Likewise.
13639         * modules/dprintf (Depends-on): Likewise.
13640         * modules/dprintf-posix (Depends-on): Likewise.
13641         * modules/error (Depends-on): Likewise.
13642         * modules/euidaccess (Depends-on): Likewise.
13643         * modules/expl (Depends-on): Likewise.
13644         * modules/faccessat (Depends-on): Likewise.
13645         * modules/fchdir (Depends-on): Likewise.
13646         * modules/fclose (Depends-on): Likewise.
13647         * modules/fcntl (Depends-on): Likewise.
13648         * modules/fdopendir (Depends-on): Likewise.
13649         * modules/fflush (Depends-on): Likewise.
13650         * modules/floor (Depends-on): Likewise.
13651         * modules/floorf (Depends-on): Likewise.
13652         * modules/floorl (Depends-on): Likewise.
13653         * modules/fnmatch (Depends-on): Likewise.
13654         * modules/fopen (Depends-on): Likewise.
13655         * modules/fprintf-posix (Depends-on): Likewise.
13656         * modules/frexp (Depends-on): Likewise.
13657         * modules/frexp-nolibm (Depends-on): Likewise.
13658         * modules/frexpl (Depends-on): Likewise.
13659         * modules/frexpl-nolibm (Depends-on): Likewise.
13660         * modules/fseek (Depends-on): Likewise.
13661         * modules/fsusage (Depends-on): Likewise.
13662         * modules/ftell (Depends-on): Likewise.
13663         * modules/ftello (Depends-on): Likewise.
13664         * modules/futimens (Depends-on): Likewise.
13665         * modules/getcwd (Depends-on): Likewise.
13666         * modules/getcwd-lgpl (Depends-on): Likewise.
13667         * modules/getdelim (Depends-on): Likewise.
13668         * modules/getdomainname (Depends-on): Likewise.
13669         * modules/getgroups (Depends-on): Likewise.
13670         * modules/gethostname (Depends-on): Likewise.
13671         * modules/getline (Depends-on): Likewise.
13672         * modules/getlogin_r (Depends-on): Likewise.
13673         * modules/getopt-posix (Depends-on): Likewise.
13674         * modules/getpeername (Depends-on): Likewise.
13675         * modules/getsockname (Depends-on): Likewise.
13676         * modules/getsockopt (Depends-on): Likewise.
13677         * modules/getsubopt (Depends-on): Likewise.
13678         * modules/getusershell (Depends-on): Likewise.
13679         * modules/glob (Depends-on): Likewise.
13680         * modules/grantpt (Depends-on): Likewise.
13681         * modules/iconv_open (Depends-on): Likewise.
13682         * modules/iconv_open-utf (Depends-on): Likewise.
13683         * modules/inet_ntop (Depends-on): Likewise.
13684         * modules/inet_pton (Depends-on): Likewise.
13685         * modules/ioctl (Depends-on): Likewise.
13686         * modules/isapipe (Depends-on): Likewise.
13687         * modules/isfinite (Depends-on): Likewise.
13688         * modules/isinf (Depends-on): Likewise.
13689         * modules/lchown (Depends-on): Likewise.
13690         * modules/ldexpl (Depends-on): Likewise.
13691         * modules/link (Depends-on): Likewise.
13692         * modules/linkat (Depends-on): Likewise.
13693         * modules/listen (Depends-on): Likewise.
13694         * modules/logl (Depends-on): Likewise.
13695         * modules/lstat (Depends-on): Likewise.
13696         * modules/mbrlen (Depends-on): Likewise.
13697         * modules/mbrtowc (Depends-on): Likewise.
13698         * modules/mbsinit (Depends-on): Likewise.
13699         * modules/mbsnrtowcs (Depends-on): Likewise.
13700         * modules/mbsrtowcs (Depends-on): Likewise.
13701         * modules/mbtowc (Depends-on): Likewise.
13702         * modules/memcmp (Depends-on): Likewise.
13703         * modules/mkdir (Depends-on): Likewise.
13704         * modules/mkdtemp (Depends-on): Likewise.
13705         * modules/mkfifo (Depends-on): Likewise.
13706         * modules/mkfifoat (Depends-on): Likewise.
13707         * modules/mknod (Depends-on): Likewise.
13708         * modules/mkostemp (Depends-on): Likewise.
13709         * modules/mkostemps (Depends-on): Likewise.
13710         * modules/mkstemp (Depends-on): Likewise.
13711         * modules/mkstemps (Depends-on): Likewise.
13712         * modules/mktime (Depends-on): Likewise.
13713         * modules/nanosleep (Depends-on): Likewise.
13714         * modules/open (Depends-on): Likewise.
13715         * modules/openat (Depends-on): Likewise.
13716         * modules/perror (Depends-on): Likewise.
13717         * modules/poll (Depends-on): Likewise.
13718         * modules/popen (Depends-on): Likewise.
13719         * modules/posix_spawn (Depends-on): Likewise.
13720         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
13721         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
13722         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
13723         * modules/posix_spawnp (Depends-on): Likewise.
13724         * modules/pread (Depends-on): Likewise.
13725         * modules/printf-posix (Depends-on): Likewise.
13726         * modules/ptsname (Depends-on): Likewise.
13727         * modules/putenv (Depends-on): Likewise.
13728         * modules/pwrite (Depends-on): Likewise.
13729         * modules/readline (Depends-on): Likewise.
13730         * modules/readlink (Depends-on): Likewise.
13731         * modules/readlinkat (Depends-on): Likewise.
13732         * modules/recv (Depends-on): Likewise.
13733         * modules/recvfrom (Depends-on): Likewise.
13734         * modules/regex (Depends-on): Likewise.
13735         * modules/remove (Depends-on): Likewise.
13736         * modules/rename (Depends-on): Likewise.
13737         * modules/renameat (Depends-on): Likewise.
13738         * modules/rmdir (Depends-on): Likewise.
13739         * modules/round (Depends-on): Likewise.
13740         * modules/roundf (Depends-on): Likewise.
13741         * modules/roundl (Depends-on): Likewise.
13742         * modules/rpmatch (Depends-on): Likewise.
13743         * modules/select (Depends-on): Likewise.
13744         * modules/send (Depends-on): Likewise.
13745         * modules/sendto (Depends-on): Likewise.
13746         * modules/setenv (Depends-on): Likewise.
13747         * modules/setlocale (Depends-on): Likewise.
13748         * modules/setsockopt (Depends-on): Likewise.
13749         * modules/shutdown (Depends-on): Likewise.
13750         * modules/sigaction (Depends-on): Likewise.
13751         * modules/signbit (Depends-on): Likewise.
13752         * modules/sigprocmask (Depends-on): Likewise.
13753         * modules/sinl (Depends-on): Likewise.
13754         * modules/sleep (Depends-on): Likewise.
13755         * modules/snprintf (Depends-on): Likewise.
13756         * modules/snprintf-posix (Depends-on): Likewise.
13757         * modules/socket (Depends-on): Likewise.
13758         * modules/sprintf-posix (Depends-on): Likewise.
13759         * modules/sqrtl (Depends-on): Likewise.
13760         * modules/stat (Depends-on): Likewise.
13761         * modules/strchrnul (Depends-on): Likewise.
13762         * modules/strdup-posix (Depends-on): Likewise.
13763         * modules/strerror (Depends-on): Likewise.
13764         * modules/strerror_r-posix (Depends-on): Likewise.
13765         * modules/strndup (Depends-on): Likewise.
13766         * modules/strnlen (Depends-on): Likewise.
13767         * modules/strptime (Depends-on): Likewise.
13768         * modules/strsep (Depends-on): Likewise.
13769         * modules/strsignal (Depends-on): Likewise.
13770         * modules/strstr-simple (Depends-on): Likewise.
13771         * modules/strtod (Depends-on): Likewise.
13772         * modules/strtoimax (Depends-on): Likewise.
13773         * modules/strtok_r (Depends-on): Likewise.
13774         * modules/strtoumax (Depends-on): Likewise.
13775         * modules/symlink (Depends-on): Likewise.
13776         * modules/symlinkat (Depends-on): Likewise.
13777         * modules/tanl (Depends-on): Likewise.
13778         * modules/tcgetsid (Depends-on): Likewise.
13779         * modules/tmpfile (Depends-on): Likewise.
13780         * modules/trunc (Depends-on): Likewise.
13781         * modules/truncf (Depends-on): Likewise.
13782         * modules/truncl (Depends-on): Likewise.
13783         * modules/uname (Depends-on): Likewise.
13784         * modules/unlink (Depends-on): Likewise.
13785         * modules/unlockpt (Depends-on): Likewise.
13786         * modules/unsetenv (Depends-on): Likewise.
13787         * modules/usleep (Depends-on): Likewise.
13788         * modules/utimensat (Depends-on): Likewise.
13789         * modules/vasprintf (Depends-on): Likewise.
13790         * modules/vdprintf (Depends-on): Likewise.
13791         * modules/vdprintf-posix (Depends-on): Likewise.
13792         * modules/vfprintf-posix (Depends-on): Likewise.
13793         * modules/vprintf-posix (Depends-on): Likewise.
13794         * modules/vsnprintf (Depends-on): Likewise.
13795         * modules/vsnprintf-posix (Depends-on): Likewise.
13796         * modules/vsprintf-posix (Depends-on): Likewise.
13797         * modules/wcrtomb (Depends-on): Likewise.
13798         * modules/wcscasecmp (Depends-on): Likewise.
13799         * modules/wcscspn (Depends-on): Likewise.
13800         * modules/wcsdup (Depends-on): Likewise.
13801         * modules/wcsncasecmp (Depends-on): Likewise.
13802         * modules/wcsnrtombs (Depends-on): Likewise.
13803         * modules/wcspbrk (Depends-on): Likewise.
13804         * modules/wcsrtombs (Depends-on): Likewise.
13805         * modules/wcsspn (Depends-on): Likewise.
13806         * modules/wcsstr (Depends-on): Likewise.
13807         * modules/wcstok (Depends-on): Likewise.
13808         * modules/wcswidth (Depends-on): Likewise.
13809         * modules/wctob (Depends-on): Likewise.
13810         * modules/wctomb (Depends-on): Likewise.
13811         * modules/wctype (Depends-on): Likewise.
13812         * modules/wcwidth (Depends-on): Likewise.
13813         * modules/write (Depends-on): Likewise.
13814
13815 2011-05-03  Bruno Haible  <bruno@clisp.org>
13816
13817         Support for conditional dependencies.
13818         * doc/gnulib.texi (Module description): Document the syntax of
13819         conditional dependencies.
13820         * gnulib-tool: New option --conditional-dependencies.
13821         (func_usage): Document it.
13822         (cond_dependencies): New variable.
13823         (func_get_automake_snippet_conditional,
13824         func_get_automake_snippet_unconditional): New functions, extracted from
13825         func_get_automake_snippet.
13826         (func_get_automake_snippet): Use them.
13827         (sed_first_32_chars): New variable.
13828         (func_module_shellfunc_name): New function.
13829         (func_module_shellvar_name): New function.
13830         (func_module_conditional_name): New function.
13831         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
13832         func_cond_module_condition): New functions.
13833         (func_modules_transitive_closure): Add support for conditional
13834         dependencies.
13835         (func_emit_lib_Makefile_am): For a conditional module, enclose the
13836         conditional automake snippet in an automake conditional.
13837         (func_emit_autoconf_snippets): Emit shell functions that contain the
13838         code for conditional modules.
13839         (func_import, func_create_testdir): Update specification.
13840
13841 2011-05-03  Eric Blake  <eblake@redhat.com>
13842
13843         test-getaddrinfo: report error information
13844         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
13845
13846 2011-05-03  Jim Meyering  <meyering@redhat.com>
13847
13848         bootstrap: avoid build failure when $GZIP is set
13849         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
13850         program name.  If defined at all, it is supposed to list gzip options.
13851         Reported by Alan Curry in http://debbugs.gnu.org/8609
13852
13853 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
13854
13855         readme-release: new module with release instructions
13856         * modules/readme-release: New module.
13857         * top/README-release: New file, from coreutils, grep, diffutils.
13858         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13859
13860 2011-05-02  Eric Blake  <eblake@redhat.com>
13861
13862         fflush: also replace fclose when fixing fflush
13863         * modules/fflush (Depends-on): Add fclose.
13864         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
13865         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
13866         memstreams with no backing fd.
13867         * doc/posix-functions/fclose.texi (fclose): Document the use of
13868         fflush module to fix the bug.
13869         * tests/test-fclose.c (main): Relax test when fclose is used in
13870         isolation.
13871
13872         fclose: add some tests
13873         * modules/fclose-tests: New test module.
13874         * tests/test-fclose.c: New file.
13875         * doc/posix-functions/fclose.texi (fclose): Document the bug.
13876
13877         fclose: reduced dependencies
13878         * modules/fclose (Depends-on): Switch from fflush/fseeko to
13879         simpler lseek.
13880         * lib/fclose.c (rpl_fclose): Likewise.
13881         Reported by Simon Josefsson.
13882
13883         exit: drop remaining clients
13884         * modules/argmatch (Depends-on): Replace exit with stdlib.
13885         * modules/copy-file (Depends-on): Likewise.
13886         * modules/execute (Depends-on): Likewise.
13887         * modules/exitfail (Depends-on): Likewise.
13888         * modules/obstack (Depends-on): Likewise.
13889         * modules/pagealign_alloc (Depends-on): Likewise.
13890         * modules/pipe-filter-gi (Depends-on): Likewise.
13891         * modules/pipe-filter-ii (Depends-on): Likewise.
13892         * modules/savewd (Depends-on): Likewise.
13893         * modules/spawn-pipe (Depends-on): Likewise.
13894         * modules/wait-process (Depends-on): Likewise.
13895         * modules/xsetenv (Depends-on): Likewise.
13896         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
13897         * modules/git-merge-changelog (Depends-on): Likewise.
13898         * modules/long-options (Depends-on): Likewise.
13899         * modules/pt_chown (Depends-on): Likewise.
13900         * modules/sysexits (Depends-on): Likewise.
13901
13902         freading: relax license from LGPLv3+ to LGPLv2+
13903         * modules/freading (License): Relax LGPL version.
13904
13905 2011-05-02  Bruno Haible  <bruno@clisp.org>
13906
13907         fchdir: Remove unused dependencies.
13908         * modules/fchdir (Depends-on): Remove include_next.
13909
13910 2011-05-02  Bruno Haible  <bruno@clisp.org>
13911
13912         gnulib-tool: Refactor.
13913         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
13914         from func_emit_autoconf_snippets.
13915         (func_emit_autoconf_snippets): Use it.
13916
13917 2011-05-02  Simon Josefsson  <simon@josefsson.org>
13918
13919         * NEWS: Document removal of 'exit'.
13920         * modules/exit: Remove file.
13921
13922 2011-05-01  Bruno Haible  <bruno@clisp.org>
13923
13924         Update DEPENDENCIES.
13925         * DEPENDENCIES (gettext): Recommend the newest release.
13926         Reported by Simon Josefsson.
13927
13928 2011-05-01  Bruno Haible  <bruno@clisp.org>
13929
13930         gnulib-tool: Reduce code duplication.
13931         * gnulib-tool (func_emit_autoconf_snippets): New function.
13932         (func_import, func_create_testdir): Use it.
13933
13934 2011-04-30  Eric Blake  <eblake@redhat.com>
13935
13936         fclose: don't fail on non-seekable input stream
13937         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
13938         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
13939         since fflush is allowed to fail in that case.
13940
13941 2011-04-30  Bruno Haible  <bruno@clisp.org>
13942
13943         dup3: cleanup
13944         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
13945
13946 2011-04-30  Bruno Haible  <bruno@clisp.org>
13947
13948         netdb: Make it work in C++ mode.
13949         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
13950         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
13951         module.
13952         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
13953         gl_MODULE_INDICATOR_FOR_TESTS.
13954         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
13955         * modules/netdb-c++-tests: New file.
13956         * tests/test-netdb-c++.cc: New file.
13957
13958 2011-04-30  Bruno Haible  <bruno@clisp.org>
13959
13960         New modules 'vfscanf', 'vscanf'.
13961         * modules/vfscanf: New file.
13962         * modules/vscanf: New file.
13963         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
13964         here.
13965         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
13966         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
13967
13968 2011-04-30  Bruno Haible  <bruno@clisp.org>
13969
13970         passfd: Add comments.
13971         * lib/passfd.c: Add comments about platforms.
13972
13973 2011-04-30  Bruno Haible  <bruno@clisp.org>
13974
13975         sys_uio: Make <sys/uio.h> self-contained.
13976         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
13977         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
13978
13979 2011-04-30  Bruno Haible  <bruno@clisp.org>
13980
13981         sys_socket: Ensure 'struct iovec' definition.
13982         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
13983         <sys/socket.h>.
13984         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
13985
13986 2011-04-30  Bruno Haible  <bruno@clisp.org>
13987
13988         sys_uio: Protect definition of 'struct iovec'.
13989         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
13990         it as a C struct.
13991
13992 2011-04-30  Bruno Haible  <bruno@clisp.org>
13993
13994         manywarnings: fix indentation
13995         * m4/manywarnings.m4: Indent by 2 spaces consistently.
13996
13997 2011-04-30  Pádraig Brady <P@draigBrady.com>
13998
13999         manywarnings: add -Wno-missing-field-initializers if needed.
14000         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
14001         option if it's needed to allow initialization with { 0, }
14002
14003 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
14004
14005         announce-gen: cosmetic improvement
14006         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
14007
14008 2011-04-29  Jim Meyering  <meyering@redhat.com>
14009
14010         vc-list-files: indent with spaces, not TABs
14011         * build-aux/vc-list-files: Convert leading TABs to spaces,
14012         to match the style of most other files in gnulib.
14013
14014         announce-gen: indent with spaces, not TABs
14015         * build-aux/announce-gen: Convert all TABs to spaces, to match
14016         the style of most other files in gnulib.
14017
14018 2011-04-29  Eric Blake  <eblake@redhat.com>
14019
14020         quotearg: avoid uninitialized variable use
14021         * lib/quotearg.c (quoting_options_from_style): Initialize
14022         remaining fields, and ensure that custom styles are only used via
14023         quoting_options rather than quoting_style.
14024
14025 2011-04-29  Jim Meyering  <meyering@redhat.com>
14026
14027         maint.mk: remove unused VC-tag variable
14028         * top/maint.mk (VC-tag): Remove unused variable.
14029
14030 2011-04-29  Bruno Haible  <bruno@clisp.org>
14031
14032         netdb: fix gai_strerror replacements
14033         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
14034         * modules/netdb: Substitute it.
14035
14036 2011-04-29  Jim Meyering  <meyering@redhat.com>
14037
14038         test-getcwd.c: avoid new set-but-not-used warning
14039         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
14040         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
14041         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
14042         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
14043
14044         test-hash.c: avoid a new shadowing warning
14045         * tests/test-hash.c (main): Don't shadow "dup".
14046
14047 2011-04-28  Eric Blake  <eblake@redhat.com>
14048
14049         getaddrinfo: fix gai_strerror signature
14050         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
14051         and work around mingw with UNICODE defined.
14052         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
14053         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
14054         * modules/netdb (Makefile.am): Substitute it.
14055         * lib/netdb.in.h (gai_strerror): Declare replacement.
14056         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
14057         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
14058         the fix.
14059
14060         getsockopt: avoid compiler warning
14061         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
14062         Reported by Matthias Bolte.
14063
14064         tests: drop unused link dependency
14065         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
14066         * modules/dirent-safer-tests (Makefile.am): Likewise.
14067         * modules/fdopendir-tests (Makefile.am): Likewise.
14068         * modules/mkfifoat-tests (Makefile.am): Likewise.
14069         * modules/openat-safer-tests (Makefile.am): Likewise.
14070         * modules/openat-tests (Makefile.am): Likewise.
14071         * modules/readlinkat-tests (Makefile.am): Likewise.
14072         * modules/symlinkat-tests (Makefile.am): Likewise.
14073         * modules/linkat-tests (Makefile.am): Likewise.
14074         (Depends-on): Switch to filenamecat-lgpl.
14075         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
14076         LIBINTL.
14077         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
14078         * tests/test-linkat.c (main): Don't require xalloc.
14079
14080         hash, mgetgroups: drop xalloc dependency
14081         * lib/hash.c (includes): Adjust includes.
14082         * lib/mgetgroups.c (includes): Likewise.
14083         (xgetgroups): Move...
14084         * lib/xgetgroups.c: ...to new file.
14085         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
14086         * modules/xgetgroups: New file, split from...
14087         * modules/mgetgroups: ...here.
14088         (Depends-on): Add xalloc-oversized.
14089         * modules/hash (Depends-on): Likewise.
14090         * modules/hash-tests (Depends-on): Drop xalloc.
14091         (test_hash_LDADD): Drop unused library.
14092         * tests/test-hash.c (main): Break xalloc dependency.
14093         (includes): Drop unused include.
14094
14095         xalloc-oversized: new module
14096         * modules/xalloc-oversized: New module.
14097         * modules/xalloc (Depends-on): Add it.
14098         * lib/xalloc.h (xalloc_oversized): Move...
14099         * lib/xalloc-oversized.h: ...into new file.
14100
14101         utimecmp: drop dependency on xmalloc
14102         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
14103         due to memory pressure.
14104         * modules/utimecmp (Depends-on): Drop xalloc.
14105
14106 2011-04-27  Eric Blake  <eblake@redhat.com>
14107
14108         getcwd: fix mingw bugs
14109         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
14110         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
14111         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
14112
14113 2011-04-27  Bruno Haible  <bruno@clisp.org>
14114
14115         mkstemps: Ensure declaration on MacOS X 10.5.
14116         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
14117         * doc/glibc-functions/mkstemps.texi: Document header file problem on
14118         MacOS X.
14119
14120 2011-04-27  Bruno Haible  <bruno@clisp.org>
14121
14122         mkstemp: More documentation.
14123         * doc/posix-functions/mkstemp.texi: Document header file problem on
14124         MacOS X.
14125
14126 2011-04-27  Bruno Haible  <bruno@clisp.org>
14127
14128         mkstemp: Tweak configure message when cross-compiling.
14129         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
14130         result as a guess.
14131
14132 2011-04-27  Bruno Haible  <bruno@clisp.org>
14133
14134         clean-temp: Clarify what it does.
14135         * lib/clean-temp.h: Add more comments.
14136         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
14137         module.
14138         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
14139         * doc/glibc-functions/mkstemps.texi: Likewise.
14140         * doc/glibc-functions/mkostemps.texi: Likewise.
14141
14142 2011-04-27  Eric Blake  <eblake@redhat.com>
14143
14144         fchdir: avoid extra chdir and fix test
14145         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
14146         getcwd-lgpl.
14147         * lib/fchdir.c (get_name): Any absolute name will do; it does not
14148         have to be canonical.
14149         (canonicalize_file_name): Drop unused macro.
14150         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
14151
14152         filenamecat-lgpl: fix licence
14153         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
14154         when it was first created.
14155
14156         linkat, renameat: add missing dependency
14157         * modules/linkat (Depends-on): Require getcwd-lgpl.
14158         * modules/renameat (Depends-on): Likewise.
14159
14160         tests: reduce dependencies
14161         * tests/test-linkat.c (main): Use lighter-weight getcwd.
14162         * tests/test-renameat.c (main): Likewise.
14163         * modules/linkat-tests (Depends-on): Relax dependency.
14164         * modules/renameat-tests (Depends-on): Likewise.
14165         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
14166         dependency explicit.
14167
14168         save-cwd: reduce default dependency
14169         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
14170         * lib/save-cwd.c: Update comments.
14171         * NEWS: Document the semantic change.
14172
14173         getcwd: enhance tests
14174         * tests/test-getcwd-lgpl.c: New file, taken from...
14175         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
14176         repeat long path stress tests from m4 probe.
14177         * modules/getcwd-lgpl-tests: New module.
14178         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
14179         * m4/getcwd-abort-bug.m4: Update comment.
14180         * m4/getcwd-path-max.m4: Likewise.
14181
14182         getcwd-lgpl: new module
14183         * modules/getcwd-lgpl: New module.
14184         * lib/getcwd-lgpl.c: New file.
14185         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14186         * MODULES.html.sh (lacking POSIX:2008): Likewise.
14187         * modules/getcwd (configure.ac): Set C witness.
14188         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
14189
14190         getcwd: tweak comments
14191         * m4/getcwd-abort-bug.m4: Fix comments.
14192         * m4/getcwd-path-max.m4: Likewise.
14193         * m4/getcwd.m4: Likewise.
14194
14195 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14196         and Eric Blake  <eblake@redhat.com>
14197
14198         mkstemp: replace if system version uses wrong permissions
14199         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
14200         read/write mode bits set in file created by mkstemp.
14201         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
14202
14203 2011-04-27  Eric Blake  <eblake@redhat.com>
14204
14205         passfd: avoid compiler warning
14206         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
14207         Reported by Laine Stump.
14208
14209 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
14210
14211         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
14212         required by the NetBSD (and perhaps other 4.4BSD derived) join.
14213
14214 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14215         and Eric Blake  <eblake@redhat.com>
14216
14217         mkstemp: mention clean-temp module
14218         * lib/mkstemp.c: Add comment.
14219         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
14220
14221 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14222
14223         inttypes: also provide default values for 32-bit tests
14224         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
14225         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
14226
14227 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14228
14229         strtoumax: remove dependency on strtoimax
14230         This is like the strtoull change of yesterday.
14231         * modules/strtoumax (Files): Add lib/strtoimax.c.
14232         (Depends-on): Remove strtoimax and add verify.
14233
14234         inttypes-incomplete: new module
14235         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
14236         all but the PRI* and SCN* parts of gl_INTTYPES_H.
14237         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
14238         of gl_INTTYPES_H.
14239         (gl_INTTYPES_H): Rewrite in terms of these new macros.
14240         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
14241         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
14242         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
14243         * modules/strtoumax, modules/xstrtol (Depends-on):
14244         Depend on inttypes-incomplete, not inttypes.
14245         * modules/inttypes-incomplete: New module, containing the contents
14246         of the old modules/inttypes module, except that the Files: section
14247         omits m4/inttypes-pri.m4, and the configure.ac section invokes
14248         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
14249         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
14250         (Depends-on): Depend only on inttypes-incomplete.
14251         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
14252
14253         inttypes: omit now-redundant strtoimax and strtoumax work
14254         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
14255         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
14256
14257         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
14258         This supports apps that need pointers to strtoimax and strtoumax,
14259         and ports to HP-UX 11.00 64.bit, which has macros that expand to
14260         nonexistent functions.  See
14261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
14262         et seq.
14263         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
14264         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
14265         a macro.
14266         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14267
14268 2011-04-25  Simon Josefsson  <simon@josefsson.org>
14269
14270         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
14271
14272 2011-04-25  Bruno Haible  <bruno@clisp.org>
14273
14274         strtol, strtoul: Mark modules as obsolete.
14275         * modules/strtol (Status, Notice): New sections.
14276         * modules/strtoul (Status, Notice): New sections.
14277
14278 2011-04-25  Bruno Haible  <bruno@clisp.org>
14279
14280         strtod: Remove check for strtod, unless supporting old platforms.
14281         * modules/strtod-obsolete: New file.
14282         * m4/strtod-obsolete.m4: New file.
14283         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
14284         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
14285         * modules/strtod (Depends-on): Add strtod-obsolete.
14286         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
14287
14288 2011-04-25  Bruno Haible  <bruno@clisp.org>
14289
14290         strcase: Make module obsolete.
14291         * modules/strcase (Status, Notice): New sections.
14292
14293 2011-04-25  Bruno Haible  <bruno@clisp.org>
14294
14295         dup2: Remove check for dup2, unless supporting old obsolete platforms.
14296         * modules/dup2-obsolete: New file.
14297         * m4/dup2-obsolete.m4: New file.
14298         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
14299         gl_FUNC_DUP2_OBSOLETE is not also defined.
14300         * modules/dup2 (Depends-on): Add dup2-obsolete.
14301         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
14302
14303 2011-04-25  Bruno Haible  <bruno@clisp.org>
14304
14305         strnlen: Avoid memchr related link error on old obsolete platforms.
14306         * modules/memchr-obsolete: New file.
14307         * m4/memchr-obsolete.m4: New file.
14308         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
14309         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
14310         * modules/memchr (Depends-on): Add memchr-obsolete.
14311         * modules/strnlen (Depends-on): Likewise.
14312         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
14313
14314 2011-04-25  Jim Meyering  <meyering@redhat.com>
14315
14316         maint.mk: makefile_at_at_check extend and clean up
14317         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
14318         in addition to */Makefile.am.
14319         Exempt legitimate uses of @VAR@ notation, e.g.,
14320         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
14321         Remove obsolete coreutils-specific comment.
14322         Prompted by discussion here:
14323         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
14324
14325 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14326
14327         strtoul: remove dependency on strtol
14328         This is so that 'configure' need not check for strtol merely because
14329         the application needs strtoul.
14330         * modules/strtoul (Files): Add lib/strtol.c.
14331         (Depends-on): Remove strtol.
14332
14333         strtoull: remove dependency on strtoul
14334         This is like the strtoll change.
14335         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
14336         (Depends-on): Remove strtoul.
14337
14338         strtoll: remove dependency on strtol
14339         This is so that 'configure' need not check for strtol merely because
14340         the application needs strtoll.
14341         * modules/strtoll (Files): Add lib/strtol.c.
14342         (Depends-on): Remove strtol.
14343
14344 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14345
14346         inttypes: Move some configure check to module 'imaxdiv'.
14347         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
14348         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
14349         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
14350
14351 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14352
14353         inttypes: Move some configure check to module 'imaxabs'.
14354         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
14355         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
14356         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
14357
14358 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14359
14360         inttypes: Remove configure tests that are not needed since 2009-12-31.
14361         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
14362         gl_cv_header_working_inttypes_h.
14363
14364 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14365
14366         * modules/strnlen (Depends-on): Remove memchr.
14367         The strnlen implementation doesn't need the memchr module's fixes; see
14368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
14369
14370         strtol: remove dependency on wchar
14371         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
14372         * modules/strtol (Depends-on): Remove wchar.
14373
14374 2011-04-21  Eric Blake  <eblake@redhat.com>
14375
14376         passfd: fix test regression on Linux
14377         * modules/passfd-tests (configure.ac): Correct socketpair check.
14378
14379         passfd: speed up configure and drop unused code
14380         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
14381         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
14382         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
14383         Instead of probing at configure for unix_scm_rights_bsd44_way,
14384         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
14385         check to a struct member probe.
14386         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
14387         (sendfd, recvfd): Update preprocessor checks.
14388         * modules/passfd (Files): Reflect rename, and drop unused file.
14389         (Depends-on): Drop unused dependency.
14390
14391         passfd: allow compilation on mingw
14392         * modules/sys_socket (Depends-on): Add sys_uio.
14393         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
14394         iovec and a minimal struct msghdr.
14395         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
14396         * tests/test-sys_socket.c (main): Enhance test.
14397         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
14398         guaranteed to provide what we need.
14399         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
14400         * modules/passfd-tests (Depends-on): Add sys_wait.
14401         * tests/test-passfd.c (main): Skip test on mingw, for now.
14402         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
14403         partial 'struct msghdr' implementation.
14404
14405         sys_uio: new module
14406         * modules/sys_uio: New module.
14407         * modules/sys_uio-tests: Likewise.
14408         * lib/sys_uio.in.h: New file.
14409         * m4/sys_uio_h.m4: Likewise.
14410         * tests/test-sys_uio.c: Likewise.
14411         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
14412         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
14413
14414 2011-04-20  Jim Meyering  <meyering@redhat.com>
14415
14416         useless-if-before-free: avoid false-positive
14417         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
14418         disjunct so that it too requires a terminating ";".  Without that,
14419         this script would identify as useless one statement from gcc that
14420         was not:
14421           if (aligned_ptr)
14422             free (((void **) aligned_ptr) [-1]);
14423
14424 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
14425
14426         doc: update users.txt.
14427         * users.txt: Add barcode.
14428
14429 2011-04-19  Bruno Haible  <bruno@clisp.org>
14430
14431         ioctl: Remove link dependency on native Windows.
14432         * lib/fd-hook.h: Renamed from lib/close-hook.h.
14433         (gl_close_fn, gl_ioctl_fn): New types.
14434         (struct fd_hook): Renamed from struct close_hook. Change type of
14435         private_close_fn field. Add private_ioctl_fn field.
14436         (close_hook_fn): Add parameter for primary close method.
14437         (execute_close_hooks, execute_all_close_hooks): Likewise.
14438         (ioctl_hook_fn): New type.
14439         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
14440         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14441         argument.
14442         (unregister_fd_hook): Renamed from unregister_close_hook.
14443         * lib/fd-hook.c: Renamed from lib/close-hook.c.
14444         Don't include <unistd.h>.
14445         (close): Remove undef.
14446         (anchor): Update.
14447         (execute_close_hooks): Add argument for primary close method.
14448         (execute_all_close_hooks): Likewise.
14449         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
14450         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14451         argument. Allow each argument to be NULL.
14452         (unregister_fd_hook): Renamed from unregister_close_hook.
14453         * lib/close.c (rpl_close): Pass 'close' function pointer to
14454         execute_all_close_hooks.
14455         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
14456         (primary_ioctl): New function.
14457         (ioctl): Don't call ioctlsocket here. Instead, call
14458         execute_all_ioctl_hooks.
14459         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
14460         close method.
14461         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
14462         (fd_sockets_hook): Renamed from close_sockets_hook.
14463         (gl_sockets_startup, gl_sockets_cleanup): Update.
14464         * modules/fd-hook: Renamed from modules/close-hook. Update.
14465         * modules/close (Depends-on): Add fd-hook, remove close-hook.
14466         * modules/sockets (Depends-on): Likewise.
14467         * modules/ioctl (Depends-on): Add fd-hook.
14468         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
14469         GNULIB_SOCKET.
14470
14471 2011-04-19  Bruno Haible  <bruno@clisp.org>
14472
14473         Move the support of O_NONBLOCK in open() to the 'open' module.
14474         * modules/nonblocking (Depends-on): Remove 'open'.
14475         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
14476         gl_cv_have_open_O_NONBLOCK.
14477         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
14478         O_NONBLOCK support.
14479         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
14480
14481 2011-04-17  Bruno Haible  <bruno@clisp.org>
14482
14483         pipe2: Simplify code.
14484         * lib/pipe2.c (pipe2): Reduce code duplication.
14485
14486 2011-04-17  Bruno Haible  <bruno@clisp.org>
14487
14488         nonblocking: Add comment.
14489         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
14490
14491 2011-04-17  Bruno Haible  <bruno@clisp.org>
14492
14493         nonblocking: Add tests for sockets.
14494         * tests/test-nonblocking-socket.sh: New file.
14495         * tests/test-nonblocking-socket-main.c: New file.
14496         * tests/test-nonblocking-socket-child.c: New file.
14497         * tests/test-nonblocking-socket.h: New file.
14498         * tests/socket-server.h: New file.
14499         * tests/socket-client.h: New file.
14500         * modules/nonblocking-socket-tests: New file.
14501         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
14502
14503 2011-04-17  Bruno Haible  <bruno@clisp.org>
14504
14505         nonblocking: Add tests for pipes.
14506         * tests/test-nonblocking-pipe.sh: New file.
14507         * tests/test-nonblocking-pipe-main.c: New file.
14508         * tests/test-nonblocking-pipe-child.c: New file.
14509         * tests/test-nonblocking-pipe.h: New file.
14510         * tests/test-nonblocking-writer.h: New file.
14511         * tests/test-nonblocking-reader.h: New file.
14512         * tests/test-nonblocking-misc.h: New file.
14513         * modules/nonblocking-pipe-tests: New file.
14514         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
14515
14516 2011-04-16  Bruno Haible  <bruno@clisp.org>
14517
14518         gettext: Clarify the needed programmer actions.
14519         * modules/gettext (Notice): New field.
14520         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
14521
14522 2011-04-16  Bruno Haible  <bruno@clisp.org>
14523
14524         strchrnul: Tweak last commit.
14525         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
14526         bug.
14527         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
14528         as in _GL_FUNCDECL_SYS.
14529         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
14530         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
14531
14532 2011-04-15  Eric Blake  <eblake@redhat.com>
14533
14534         strchrnul: work around cygwin bug
14535         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
14536         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
14537         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
14538         * modules/string (Makefile.am): Substitute it.
14539         * lib/string.in.h (strchrnul): Use it.
14540
14541 2011-04-15  Bruno Haible  <bruno@clisp.org>
14542
14543         Don't require lib/stdio-write.c when only module 'stdio' is used.
14544         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
14545         invocation.
14546         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
14547
14548 2011-04-14  Bruno Haible  <bruno@clisp.org>
14549
14550         Support non-blocking pipe I/O in read() on native Windows.
14551         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
14552         (read): New declaration.
14553         * lib/read.c: New file.
14554         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
14555         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
14556         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
14557         vscanf): New declarations.
14558         * lib/stdio-read.c: New file.
14559         * m4/read.m4: New file.
14560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
14561         REPLACE_READ.
14562         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
14563         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14564         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
14565         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
14566         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
14567         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14568         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14569         * modules/read: New file.
14570         * modules/nonblocking (Files): Add lib/stdio-read.c.
14571         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
14572         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
14573         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14574         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14575         * modules/pread (Depends-on): Add read.
14576         * modules/safe-read (Depends-on): Likewise.
14577         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
14578         gets, scanf, vfscanf, vscanf): Verify signatures.
14579         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
14580         problem with non-blocking pipes.
14581         * doc/posix-functions/fgetc.texi: Likewise.
14582         * doc/posix-functions/fgets.texi: Likewise.
14583         * doc/posix-functions/fread.texi: Likewise.
14584         * doc/posix-functions/fscanf.texi: Likewise.
14585         * doc/posix-functions/getc.texi: Likewise.
14586         * doc/posix-functions/getchar.texi: Likewise.
14587         * doc/posix-functions/gets.texi: Likewise.
14588         * doc/posix-functions/scanf.texi: Likewise.
14589         * doc/posix-functions/vfscanf.texi: Likewise.
14590         * doc/posix-functions/vscanf.texi: Likewise.
14591
14592 2011-04-14  Bruno Haible  <bruno@clisp.org>
14593
14594         Support non-blocking pipe I/O in write() on native Windows.
14595         * lib/write.c (rpl_write): Split a write request that failed merely
14596         because the byte count was larger than the pipe buffer's size.
14597         * doc/posix-functions/write.texi: Mention the problem with large byte
14598         counts.
14599
14600 2011-04-14  Bruno Haible  <bruno@clisp.org>
14601
14602         wchar: Ensure that wchar_t gets defined on uClibc.
14603         * lib/wchar.in.h: On uClibc, include <stddef.h>.
14604         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
14605
14606 2011-04-13  Bruno Haible  <bruno@clisp.org>
14607
14608         safe-write, full-read: Avoid unnecessary compilation units.
14609         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
14610         (Depends-on): Remove safe-read. Add ssize_t.
14611         * modules/full-read (Files): Add lib/full-write.c.
14612         (Depends-on): Add full-write.
14613
14614 2011-04-13  Bruno Haible  <bruno@clisp.org>
14615
14616         Support non-blocking pipe I/O and SIGPIPE in pwrite().
14617         * modules/pwrite (Depends-on): Add 'write'.
14618
14619 2011-04-13  Bruno Haible  <bruno@clisp.org>
14620
14621         Support non-blocking pipe I/O in write() on native Windows.
14622         * lib/unistd.in.h (write): Enable replacement also if
14623         GNULIB_UNISTD_H_NONBLOCKING is 1.
14624         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
14625         (rpl_write): When failing to write on a non-blocking pipe, change
14626         errno from ENOSPC to EAGAIN.
14627         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
14628         putchar, puts, vfprintf, vprintf): Enable replacement also if
14629         GNULIB_STDIO_H_NONBLOCKING is 1.
14630         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
14631         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
14632         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
14633         CALL_WITH_SIGPIPE_EMULATION.
14634         (CALL_WITH_SIGPIPE_EMULATION): Use them.
14635         * m4/nonblocking.m4: New file.
14636         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
14637         for non-blocking I/O support.
14638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14639         GNULIB_UNISTD_H_NONBLOCKING.
14640         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
14641         required for non-blocking I/O support.
14642         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
14643         * modules/nonblocking (Files): Add m4/nonblocking.m4,
14644         lib/stdio-write.c, m4/asm-underscore.m4.
14645         (Depends-on): Add stdio, unistd.
14646         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
14647         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
14648         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
14649         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
14650         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
14651         problem with non-blocking pipes.
14652         * doc/posix-functions/fputc.texi: Likewise.
14653         * doc/posix-functions/fputs.texi: Likewise.
14654         * doc/posix-functions/fwrite.texi: Likewise.
14655         * doc/posix-functions/printf.texi: Likewise.
14656         * doc/posix-functions/putc.texi: Likewise.
14657         * doc/posix-functions/putchar.texi: Likewise.
14658         * doc/posix-functions/puts.texi: Likewise.
14659         * doc/posix-functions/vfprintf.texi: Likewise.
14660         * doc/posix-functions/vprintf.texi: Likewise.
14661         * doc/posix-functions/write.texi: Likewise.
14662
14663 2011-04-10  Jim Meyering  <meyering@redhat.com>
14664
14665         maint.mk: prohibit doubled words
14666         Detect them also when they're separated by a newline.
14667         There are 3 ways to customize it:
14668           - disable the test on a per file basis, as usual with rules using
14669             $(VC_LIST_EXCEPT)
14670           - replace the default doubled-word-selecting regexp (affects all files)
14671           - ignore a particular file-vs-doubled-word match
14672         I nearly used that last one to ignore the "is is" match in
14673         coreutils' NEWS file, since the text was "ls -is is ..."
14674         To do that, I would have added this line to cfg.mk:
14675           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
14676         but it would have ignored any "is is" match in NEWS.
14677         Low probability, but still...
14678         Instead, I changed the text, slightly:
14679           -  ls -is is now consistent with ls -lis in ignoring values returned
14680           +  "ls -is" is now consistent with ls -lis in ignoring values returned
14681         * top/maint.mk (prohibit_double_word_RE_): Provide default.
14682         (prohibit_doubled_word_): Define.
14683         (sc_prohibit_doubled_word): New rule.
14684         (sc_prohibit_the_the): Remove.  Subsumed by the above.
14685
14686 2011-04-10  Jim Meyering  <meyering@redhat.com>
14687
14688         maint: fix doubled-word typo in comment
14689         * m4/gethostname.m4: s/is is/it is/
14690         * m4/getdomainname.m4: Likewise.
14691
14692 2011-04-10  Jim Meyering  <meyering@redhat.com>
14693
14694         maint: remove doubled word: s/it it/it/
14695         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
14696
14697 2011-04-10  Jim Meyering  <meyering@redhat.com>
14698
14699         maint.mk: remove useless semicolon and backslash
14700         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
14701         semicolon and backslash.
14702
14703 2011-04-10  Bruno Haible  <bruno@clisp.org>
14704
14705         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
14706         * modules/stdint-tests (Depends-on): Add wchar.
14707
14708 2011-04-10  Jim Meyering  <meyering@redhat.com>
14709
14710         maint: remove doubled words in comments, e.g., s/a a/a/
14711         * lib/strptime.c (day_of_the_week): s/the the/the/
14712         * tests/test-chown.h (test_chown): s/a a/a/
14713
14714         test-chown.h: correct a cast
14715         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
14716         when the destination is a stat.st_gid.
14717
14718 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
14719
14720         getaddrinfo: Fix test for sa_len member.
14721         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
14722         include <sys/types.h> before <sys/socket.h>.
14723
14724 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14725
14726         maint: change "can not" to "cannot"
14727         * doc/posix-functions/iconv.texi (iconv): This one crossed line
14728         boundaries.
14729
14730 2011-04-09  Jim Meyering  <meyering@redhat.com>
14731
14732         maint: change "a a" to "a"
14733         * tests/test-lchown.h (test_lchown): s/a a/a/
14734
14735         maint.mk: prohibit \<the the\>
14736         * top/maint.mk (sc_prohibit_the_the): New rule.
14737
14738         maint: fix "the the" in comment
14739         * lib/count-one-bits.h: s/the the/the/
14740
14741         maint: change "can not" to "cannot"
14742         But do not change the occurrences in maintain.texi or in
14743         build-aux/po/Makefile.in.in, which I presume comes from gettext.
14744         * doc/gnulib-tool.texi: s/can not/cannot/
14745         * doc/posix-functions/accept.texi (accept): Likewise.
14746         * doc/posix-functions/socket.texi (socket): Likewise.
14747         * lib/mbrtowc.c: Likewise.
14748
14749         maint.mk: prohibit use of "can not"
14750         * top/maint.mk (sc_prohibit_can_not): New rule.
14751         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
14752
14753 2011-04-09  Bruno Haible  <bruno@clisp.org>
14754
14755         careadlinkat: Guard against misuse of careadlinkatcwd.
14756         * lib/careadlinkat.c: Include <stdlib.h>.
14757         (careadlinkatcwd): Check that the fd argument is as expected.
14758
14759 2011-04-09  Bruno Haible  <bruno@clisp.org>
14760
14761         careadlinkat: Use common coding style.
14762         * lib/careadlinkat.c: Move gnulib includes after system includes.
14763
14764 2011-04-09  Bruno Haible  <bruno@clisp.org>
14765
14766         careadlinkat: Clarify specification.
14767         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
14768         (careadlinkatcwd): Add comment.
14769         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
14770
14771 2011-04-09  Bruno Haible  <bruno@clisp.org>
14772
14773         areadlinkat: Avoid link error on many platforms.
14774         * modules/areadlinkat (Depends-on): Add areadlink.
14775
14776 2011-04-09  Bruno Haible  <bruno@clisp.org>
14777
14778         allocator, careadlinkat: Fix double-inclusion guard.
14779         * lib/allocator.h: Fix double-inclusion guard.
14780         * lib/careadlinkat.h: Likewise.
14781
14782 2011-04-09  Bruno Haible  <bruno@clisp.org>
14783
14784         relocatable-prog-wrapper: Update after module 'areadlink' changed.
14785         * lib/relocwrapper.c: Update dependencies hierarchy.
14786         * build-aux/install-reloc: Update list of files to be compiled.
14787         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
14788         lib/allocator.[hc].
14789
14790 2011-04-08  Eric Blake  <eblake@redhat.com>
14791
14792         strftime: silence gnulib-tool warning
14793         * modules/strftime-tests (Depends-on): Drop automatic dependency.
14794
14795 2011-04-08  Bruno Haible  <bruno@clisp.org>
14796
14797         verify: Fix syntax error with GCC 4.6 in C++ mode.
14798         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
14799         (HAVE_STATIC_ASSERT): New macro.
14800         (verify_true, verify): Use 'static_assert' if it is supported and
14801         '_Static_assert' is not supported.
14802
14803 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
14804
14805         allocator: New module.
14806         * modules/allocator, lib/allocator.c: New files.
14807         * lib/allocator.h (stdlib_allocator): New decl.
14808         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
14809         Remove.  Do not include <stdlib.h>.
14810         (careadlinkat): Use stdlib_allocator instead of rolling our own.
14811         * modules/careadlinkat (Files): Remove lib/allocator.h.
14812         (Depends-on): Add allocator.
14813
14814         stdlib: let modules use system malloc, realloc
14815         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
14816         if !_GL_USE_STDLIB_ALLOC.
14817         (malloc, realloc): Limit this change to a smaller scope.
14818
14819         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
14820         (malloc, realloc): Don't #undef; no longer needed.
14821         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14822         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14823         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14824         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14825         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14826         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14827         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14828         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14829
14830         careadlinkat: rename members to avoid problem
14831         * lib/allocator.h (struct allocator): Rename members from
14832         malloc/realloc to allocate/reallocate, to avoid problems if malloc
14833         and realloc are #define'd.  Reported by Eric Blake in
14834         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
14835         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
14836
14837 2011-04-08  Eric Blake  <eblake@redhat.com>
14838
14839         nonblocking: reduce dependency
14840         * tests/test-nonblocking.c: Only test sockets when in use.
14841         * modules/nonblocking-tests (Depends-on): Drop socket.
14842         (Makefile.am): Link even if sockets are not present.
14843         * modules/pipe2-tests (Makefile.am): Likewise.
14844         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
14845
14846         pipe2: fix O_NONBLOCK support on mingw
14847         * modules/pipe2 (Depends-on): Add nonblocking.
14848         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
14849         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
14850         * tests/test-nonblocking.c (main): Likewise.
14851         * modules/pipe2-tests (Makefile.am): Avoid link failure.
14852
14853         fcntl-h: fix O_ACCMODE on cygwin
14854         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
14855         * lib/fcntl.in.h (O_ACCMODE): Fix it.
14856
14857         pipe-filter: drop O_NONBLOCK workarounds
14858         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
14859         * modules/pipe-filter-ii (Depends-on): Likewise.
14860         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
14861
14862         nonblocking: provide O_NONBLOCK for mingw
14863         * modules/nonblocking (Depends-on): Add open.
14864         (configure.ac): Set new witness macro.
14865         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
14866         * modules/fcntl-h (Makefile.am): Substitute it.
14867         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
14868         nonblocking module is in use.
14869         * lib/nonblocking.c: Adjust portability test.
14870         * lib/open.c (open): Don't let native open see gnulib flag.
14871         * tests/test-fcntl-h.c (main): Enhance test.
14872         * tests/test-open.h (test_open): Likewise.
14873         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
14874
14875         careadlinkat: fix compilation error on mingw
14876         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
14877         within struct allocator.
14878
14879 2011-04-06  Eric Blake  <eblake@redhat.com>
14880
14881         binary-io: relicense under LGPLv2+
14882         * modules/binary-io (License): Relax to LGPLv2+.
14883         Requested for libvirt, and required by pipe2.
14884
14885 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
14886
14887         verify: use _Static_assert if available
14888         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
14889         (verify_true, verify): Use it if available.  This generates better
14890         diagnostics with GCC 4.6.0 and later.
14891
14892 2011-04-05  Bruno Haible  <bruno@clisp.org>
14893
14894         Remove leftover generated .h files after config.status changed.
14895
14896         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
14897         GL_GENERATE_ALLOCA_H.
14898         * modules/alloca-opt (Makefile.am): Remove alloca.h if
14899         GL_GENERATE_ALLOCA_H evaluates to false.
14900
14901         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
14902         GL_GENERATE_ARGZ_H.
14903         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
14904         evaluates to false.
14905
14906         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
14907         GL_GENERATE_BYTESWAP_H.
14908         * modules/byteswap (Makefile.am): Remove byteswap.h if
14909         GL_GENERATE_BYTESWAP_H evaluates to false.
14910
14911         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
14912         GL_GENERATE_ERRNO_H.
14913         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
14914         evaluates to false.
14915
14916         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
14917         GL_GENERATE_FLOAT_H.
14918         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
14919         evaluates to false.
14920
14921         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
14922         GL_GENERATE_FNMATCH_H.
14923         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
14924         GL_GENERATE_FNMATCH_H evaluates to false.
14925
14926         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
14927         GL_GENERATE_GLOB_H.
14928         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
14929         evaluates to false.
14930
14931         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
14932         automake conditional GL_GENERATE_ICONV_H.
14933         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
14934         evaluates to false.
14935
14936         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
14937         GL_GENERATE_NETINET_IN_H.
14938         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
14939         GL_GENERATE_NETINET_IN_H evaluates to false.
14940
14941         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
14942         conditional GL_GENERATE_PTHREAD_H.
14943         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
14944         * modules/pthread (Makefile.am): Remove pthread.h if
14945         GL_GENERATE_PTHREAD_H evaluates to false.
14946
14947         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
14948         GL_GENERATE_SCHED_H.
14949         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
14950         evaluates to false.
14951
14952         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
14953         conditional GL_GENERATE_SELINUX_CONTEXT_H.
14954         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
14955         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
14956
14957         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
14958         GL_GENERATE_STDARG_H.
14959         * modules/stdarg (Makefile.am): Remove stdarg.h if
14960         GL_GENERATE_STDARG_H evaluates to false.
14961
14962         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
14963         GL_GENERATE_STDBOOL_H.
14964         * modules/stdbool (Makefile.am): Remove stdbool.h if
14965         GL_GENERATE_STDBOOL_H evaluates to false.
14966
14967         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
14968         conditional GL_GENERATE_STDDEF_H.
14969         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
14970         * modules/stddef (Makefile.am): Remove stddef.h if
14971         GL_GENERATE_STDDEF_H evaluates to false.
14972
14973         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
14974         GL_GENERATE_STDINT_H.
14975         * modules/stdint (Makefile.am): Remove stdint.h if
14976         GL_GENERATE_STDINT_H evaluates to false.
14977
14978         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
14979         GL_GENERATE_SYSEXITS_H.
14980         * modules/sysexits (Makefile.am): Remove sysexits.h if
14981         GL_GENERATE_SYSEXITS_H evaluates to false.
14982
14983         Reported by Karl Berry and Ralf Wildenhues.
14984
14985 2011-04-05  Bruno Haible  <bruno@clisp.org>
14986
14987         Ensure to rebuild generated .h files when config.status has changed.
14988         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
14989         config.status.
14990         * modules/ctype (Makefile.am): Likewise.
14991         * modules/dirent (Makefile.am): Likewise.
14992         * modules/errno (Makefile.am): Likewise.
14993         * modules/fcntl-h (Makefile.am): Likewise.
14994         * modules/float (Makefile.am): Likewise.
14995         * modules/getopt-posix (Makefile.am): Likewise.
14996         * modules/glob (Makefile.am): Likewise.
14997         * modules/iconv-h (Makefile.am): Likewise.
14998         * modules/inttypes (Makefile.am): Likewise.
14999         * modules/langinfo (Makefile.am): Likewise.
15000         * modules/locale (Makefile.am): Likewise.
15001         * modules/math (Makefile.am): Likewise.
15002         * modules/netdb (Makefile.am): Likewise.
15003         * modules/netinet_in (Makefile.am): Likewise.
15004         * modules/poll-h (Makefile.am): Likewise.
15005         * modules/pthread (Makefile.am): Likewise.
15006         * modules/pty (Makefile.am): Likewise.
15007         * modules/sched (Makefile.am): Likewise.
15008         * modules/search (Makefile.am): Likewise.
15009         * modules/selinux-h (Makefile.am): Likewise.
15010         * modules/signal (Makefile.am): Likewise.
15011         * modules/spawn (Makefile.am): Likewise.
15012         * modules/stdarg (Makefile.am): Likewise.
15013         * modules/stdbool (Makefile.am): Likewise.
15014         * modules/stddef (Makefile.am): Likewise.
15015         * modules/stdint (Makefile.am): Likewise.
15016         * modules/stdio (Makefile.am): Likewise.
15017         * modules/stdlib (Makefile.am): Likewise.
15018         * modules/string (Makefile.am): Likewise.
15019         * modules/strings (Makefile.am): Likewise.
15020         * modules/sys_file (Makefile.am): Likewise.
15021         * modules/sys_ioctl (Makefile.am): Likewise.
15022         * modules/sys_select (Makefile.am): Likewise.
15023         * modules/sys_socket (Makefile.am): Likewise.
15024         * modules/sys_stat (Makefile.am): Likewise.
15025         * modules/sys_time (Makefile.am): Likewise.
15026         * modules/sys_times (Makefile.am): Likewise.
15027         * modules/sys_utsname (Makefile.am): Likewise.
15028         * modules/sys_wait (Makefile.am): Likewise.
15029         * modules/sysexits (Makefile.am): Likewise.
15030         * modules/termios (Makefile.am): Likewise.
15031         * modules/time (Makefile.am): Likewise.
15032         * modules/unistd (Makefile.am): Likewise.
15033         * modules/wchar (Makefile.am): Likewise.
15034         * modules/wctype-h (Makefile.am): Likewise.
15035         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
15036
15037 2011-04-05  Bruno Haible  <bruno@clisp.org>
15038
15039         pipe2: Relicense under LGPLv2+.
15040         * modules/pipe2 (License): Change to LGPLv2+.
15041         Requested by Eric Blake, for libvirt.
15042
15043 2011-04-05  Bruce Korb  <bkorb@gnu.org>
15044
15045         bootstrap: compute gnulib_extra_files after updating build_aux
15046         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
15047         change build_aux or also supply gnulib_extra_files.  Handle correctly.
15048
15049 2011-04-05  Eric Blake  <eblake@redhat.com>
15050
15051         bootstrap: preserve git whitelist item sorting
15052         * build-aux/bootstrap (sort_patterns): New function.
15053         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
15054
15055 2011-04-05  Simon Josefsson  <simon@josefsson.org>
15056
15057         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
15058         sc_space_tab check.
15059
15060 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15061
15062         areadlink, areadlinkat: rewrite in terms of careadlinkat
15063         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
15064         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
15065         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
15066         (malloc, realloc): Remove #undefs.
15067         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
15068         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
15069         readlink, ssize_t, stdint, unistd.
15070         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
15071         areadlink, stdint.
15072
15073         careadlinkat: new module
15074         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
15075         * modules/careadlinkat: New files, written by me with
15076         a review and feedback from Ben Pfaff in
15077         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
15078
15079 2011-04-01  Bruno Haible  <bruno@clisp.org>
15080
15081         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
15082         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
15083         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
15084         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
15085         Reported by Bruce Korb <bruce.korb@gmail.com>.
15086
15087 2011-04-01  Bruno Haible  <bruno@clisp.org>
15088
15089         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
15090         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
15091         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
15092         * modules/wcpcpy (Depends-on): Add extensions.
15093         * modules/wcpncpy (Depends-on): Likewise.
15094         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
15095         systems.
15096         * doc/posix-functions/wcpncpy.texi: Likewise.
15097         * doc/posix-functions/wcwidth.texi: Likewise.
15098
15099 2011-03-31  Eric Blake  <eblake@redhat.com>
15100
15101         nonblocking: fix mingw test failures
15102         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
15103         non-blocking flag on regular file.
15104         (get_nonblocking_flag): Set errno on invalid fd.
15105         * tests/test-nonblocking.c (main): Avoid test failure on
15106         directories if fchdir is not active.
15107         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
15108
15109 2011-03-31  Bruno Haible  <bruno@clisp.org>
15110
15111         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
15112         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
15113         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
15114         Reported by Simon Josefsson <simon@josefsson.org>.
15115
15116 2011-03-31  Bruno Haible  <bruno@clisp.org>
15117         and Eric Blake  <eblake@redhat.com>
15118
15119         nonblocking: new module
15120         * modules/nonblocking: New module.
15121         * modules/nonblocking-tests: Likewise.
15122         * lib/nonblocking.h: New file.
15123         * lib/nonblocking.c: Likewise.
15124         * tests/test-nonblocking.c: New test.
15125         * lib/ioctl.c (ioctl) [mingw]: Update comment.
15126
15127 2011-03-30  Bruno Haible  <bruno@clisp.org>
15128
15129         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
15130         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
15131         instead of 'printf' format for GCC >= 4.4.
15132         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
15133         (fprintf, printf, vfprintf, vprintf): Declare with
15134         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
15135         the system's vfprintf() function.
15136         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
15137
15138 2011-03-30  Eric Blake  <eblake@redhat.com>
15139
15140         passfd: fix scoping bug
15141         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
15142         before sendmsg/recvmsg.
15143
15144         passfd: standardize coding conventions
15145         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
15146         can be learned at compile time.
15147         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
15148         ifdefs.
15149         (sendfd, recvfd): Follow gnulib code conventions.
15150
15151         passfd: fix incorrect sendmsg arguments
15152         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
15153         incorrect msg_controllen value.
15154         * modules/passfd-tests (Depends-on): Check for alarm.
15155         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
15156         Reported by Bastien ROUCARIES.
15157
15158 2011-03-30  Bruno Haible  <bruno@clisp.org>
15159
15160         c-strcasestr: Relicense under LGPLv2+.
15161         * modules/c-strcasestr (License): Change to LGPLv2+.
15162         Requested by Eric Blake, for libvirt.
15163
15164 2011-03-30  Simon Josefsson  <simon@josefsson.org>
15165
15166         * users.txt: Add libidn2.  Fix libtasn1 link.
15167
15168 2011-03-30  Jim Meyering  <meyering@redhat.com>
15169
15170         tests: readlink* ("",... fails with EINVAL on newer kernels
15171         readlink and readlinkat have typically failed with ENOENT for
15172         the invalid, empty file name,  "".  However, with the advent
15173         of linux-2.6.39, they fail with EINVAL.
15174         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
15175         when operating on the empty file name.
15176         * tests/test-readlink.h (test_readlink): Likewise.
15177
15178 2011-03-29  Bruno Haible  <bruno@clisp.org>
15179
15180         Relicense some modules under LGPLv2+, for libidn2.
15181         * modules/array-mergesort (License): Change to LGPLv2+.
15182         * modules/c-strcaseeq (License): Likewise.
15183         * modules/striconveh (License): Likewise.
15184         * modules/striconveha (License): Likewise.
15185         * modules/uniconv/base (License): Likewise.
15186         * modules/uniconv/u8-conv-from-enc (License): Likewise.
15187         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
15188         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
15189         * modules/unictype/base (License): Likewise.
15190         * modules/unictype/bidiclass-of (License): Likewise.
15191         * modules/unictype/category-M (License): Likewise.
15192         * modules/unictype/category-none (License): Likewise.
15193         * modules/unictype/category-of (License): Likewise.
15194         * modules/unictype/category-test (License): Likewise.
15195         * modules/unictype/category-test-withtable (License): Likewise.
15196         * modules/unictype/combining-class (License): Likewise.
15197         * modules/unictype/joiningtype-of (License): Likewise.
15198         * modules/unictype/scripts (License): Likewise.
15199         * modules/uninorm/base (License): Likewise.
15200         * modules/uninorm/canonical-decomposition (License): Likewise.
15201         * modules/uninorm/composition (License): Likewise.
15202         * modules/uninorm/decompose-internal (License): Likewise.
15203         * modules/uninorm/decomposition-table (License): Likewise.
15204         * modules/uninorm/nfc (License): Likewise.
15205         * modules/uninorm/nfd (License): Likewise.
15206         * modules/uninorm/u32-normalize (License): Likewise.
15207         * modules/unistr/base (License): Likewise.
15208         * modules/unistr/u32-cpy (License): Likewise.
15209         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
15210         * modules/unistr/u32-to-u8 (License): Likewise.
15211         * modules/unistr/u32-uctomb (License): Likewise.
15212         * modules/unistr/u8-check (License): Likewise.
15213         * modules/unistr/u8-mblen (License): Likewise.
15214         * modules/unistr/u8-mbtouc (License): Likewise.
15215         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
15216         * modules/unistr/u8-mbtoucr (License): Likewise.
15217         * modules/unistr/u8-prev (License): Likewise.
15218         * modules/unistr/u8-strlen (License): Likewise.
15219         * modules/unistr/u8-to-u32 (License): Likewise.
15220         * modules/unistr/u8-uctomb (License): Likewise.
15221         * modules/unitypes (License): Likewise.
15222         Requested by Simon Josefsson.
15223
15224 2011-03-29  Simon Josefsson  <simon@josefsson.org>
15225
15226         lib-symbol-visibility: Add a notice.
15227         * modules/lib-symbol-visibility (Notice): New field.
15228
15229 2011-03-29  Bruno Haible  <bruno@clisp.org>
15230
15231         getaddrinfo: Doc fix.
15232         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
15233         section "fixed in Gnulib".
15234
15235 2011-03-28  Simon Josefsson  <simon@josefsson.org>
15236
15237         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
15238         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
15239
15240 2011-03-26  Bruno Haible  <bruno@clisp.org>
15241
15242         unictype/property-byname: Reduce the number of load-time relocations.
15243         * lib/unictype/pr_byname.c: Include <stdlib.h>.
15244         (UC_PROPERTY_INDEX_*): New enumeration values.
15245         (uc_property_byname): Convert an index from the lookup table to an
15246         uc_property_t.
15247         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
15248         values.
15249
15250 2011-03-26  Bruno Haible  <bruno@clisp.org>
15251
15252         unictype/property-byname: Allow omitted word separators and aliases.
15253         * lib/unictype/pr_byname.gperf: Add property names without word
15254         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
15255         for 'space'.
15256
15257 2011-03-26  Bruno Haible  <bruno@clisp.org>
15258
15259         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
15260         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
15261         also hyphens to space.
15262         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
15263         without spaces.
15264         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
15265
15266 2011-03-26  Bruno Haible  <bruno@clisp.org>
15267
15268         unictype/joiningtype-byname: Recognize long names as well.
15269         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
15270         a long name.
15271         * lib/unictype/joiningtype_byname.c: Include <string.h>,
15272         unictype/joiningtype_byname.h.
15273         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
15274         * lib/unictype/joiningtype_byname.gperf: New file.
15275         * modules/unictype/joiningtype-byname (Files): Add
15276         lib/unictype/joiningtype_byname.gperf.
15277         (Depends-on): Add gperf.
15278         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
15279         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
15280         long names.
15281
15282         Tests for module 'unictype/joiningtype-longname'.
15283         * modules/unictype/joiningtype-longname-tests: New file.
15284         * tests/unictype/test-joiningtype_longname.c: New file.
15285
15286         New module 'unictype/joiningtype-longname'.
15287         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
15288         * lib/unictype/joiningtype_longname.c: New file.
15289         * modules/unictype/joiningtype-longname: New file.
15290         * modules/unictype/joiningtype-all (Depends-on): Add
15291         unictype/joiningtype-longname.
15292
15293 2011-03-26  Bruno Haible  <bruno@clisp.org>
15294
15295         unictype/bidiclass-byname: Recognize long names as well.
15296         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
15297         name.
15298         * lib/unictype/bidi_byname.c: Include <string.h>,
15299         unictype/bidi_byname.h.
15300         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
15301         * lib/unictype/bidi_byname.gperf: New file.
15302         * modules/unictype/bidiclass-byname (Files): Add
15303         lib/unictype/bidi_byname.gperf.
15304         (Depends-on): Add gperf.
15305         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
15306         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
15307         long names.
15308
15309         Tests for module 'unictype/bidiclass-longname'.
15310         * modules/unictype/bidiclass-longname-tests: New file.
15311         * tests/unictype/test-bidi_longname.c: New file.
15312
15313         New module 'unictype/bidiclass-longname'.
15314         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
15315         * lib/unictype/bidi_longname.c: New file.
15316         * modules/unictype/bidiclass-longname: New file.
15317         * modules/unictype/bidiclass-all (Depends-on): Add
15318         unictype/bidiclass-longname.
15319
15320 2011-03-26  Bruno Haible  <bruno@clisp.org>
15321
15322         unictype/bidi*: Rename modules.
15323         * modules/unictype/bidiclass-all: Renamed from
15324         modules/unictype/bidicategory-all.
15325         * modules/unictype/bidiclass-name: Renamed from
15326         modules/unictype/bidiclass-name.
15327         (Description): Update.
15328         * modules/unictype/bidiclass-name-tests: Renamed from
15329         modules/unictype/bidicategory-name-tests.
15330         * modules/unictype/bidiclass-byname: Renamed from
15331         modules/unictype/bidicategory-byname.
15332         (Description): Update.
15333         * modules/unictype/bidiclass-byname-tests: Renamed from
15334         modules/unictype/bidicategory-byname-tests.
15335         * modules/unictype/bidiclass-of: Renamed from
15336         modules/unictype/bidicategory-of.
15337         (Description): Update.
15338         * modules/unictype/bidiclass-of-tests: Renamed from
15339         modules/unictype/bidicategory-of-tests.
15340         * modules/unictype/bidiclass-test: Renamed from
15341         modules/unictype/bidicategory-test.
15342         (Description): Update.
15343         * modules/unictype/bidiclass-test-tests: Renamed from
15344         modules/unictype/bidicategory-test-tests.
15345         * modules/unictype/bidicategory-all: New file, a simple redirection.
15346         * modules/unictype/bidicategory-name: Likewise.
15347         * modules/unictype/bidicategory-byname: Likewise.
15348         * modules/unictype/bidicategory-of: Likewise.
15349         * modules/unictype/bidicategory-test: Likewise.
15350         * modules/unictype/property-bidi-* (Dependencies): Update.
15351         * lib/unictype/bidi_*.c: Update comment.
15352
15353 2011-03-26  Bruno Haible  <bruno@clisp.org>
15354
15355         unictype/bidi*: Rename functions, part 2.
15356         * modules/unictype/bidicategory-name (configure.ac): Update required
15357         libunistring version.
15358         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
15359
15360 2011-03-25  Bruno Haible  <bruno@clisp.org>
15361
15362         New module 'unictype/combining-class-all'.
15363         * modules/unictype/combining-class-all: New file.
15364
15365         Tests for module 'unictype/combining-class-byname'.
15366         * modules/unictype/combining-class-byname-tests: New file.
15367         * tests/unictype/test-combiningclass_byname.c: New file.
15368
15369         New module 'unictype/combining-class-byname'.
15370         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
15371         * lib/unictype/combiningclass_byname.c: New file.
15372         * lib/unictype/combiningclass_byname.gperf: New file.
15373         * modules/unictype/combining-class-byname: New file.
15374
15375         Tests for module 'unictype/combining-class-longname'.
15376         * modules/unictype/combining-class-longname-tests: New file.
15377         * tests/unictype/test-combiningclass_longname.c: New file.
15378
15379         New module 'unictype/combining-class-longname'.
15380         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
15381         * lib/unictype/combiningclass_longname.c: New file.
15382         * modules/unictype/combining-class-longname: New file.
15383
15384         Tests for module 'unictype/combining-class-name'.
15385         * modules/unictype/combining-class-name-tests: New file.
15386         * tests/unictype/test-combiningclass_name.c: New file.
15387
15388         New module 'unictype/combining-class-name'.
15389         * lib/unictype.in.h (uc_combining_class_name): New declaration.
15390         * lib/unictype/combiningclass_name.c: New file.
15391         * modules/unictype/combining-class-name: New file.
15392
15393 2011-03-25  Bruno Haible  <bruno@clisp.org>
15394
15395         unictype/combining-class: Rename source files.
15396         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
15397         of unictype/combining.h.
15398         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
15399         Update.
15400         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
15401         * modules/unictype/combining-class (Description): Fix.
15402         (Files, Makefile.am): Update.
15403         * tests/unictype/test-combiningclass.c: Renamed from
15404         tests/unictype/test-combining.c.
15405         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
15406
15407 2011-03-25  Bruno Haible  <bruno@clisp.org>
15408
15409         unictype: Update list of canonical combining classes.
15410         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
15411
15412 2011-03-25  Bruno Haible  <bruno@clisp.org>
15413
15414         unictype/category-byname: Recognize long names as well.
15415         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
15416         a long name.
15417         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
15418         unictype/categ_byname.h.
15419         (UC_CATEGORY_INDEX_*): New enumeration values.
15420         (uc_general_category_byname): Use uc_general_category_lookup and
15421         convert from index to value.
15422         * lib/unictype/categ_byname.gperf: New file.
15423         * modules/unictype/category-byname (Files): Add
15424         lib/unictype/categ_byname.gperf.
15425         (Depends-on): Add gperf.
15426         (Makefile.am): Add rule for generating unictype/categ_byname.h.
15427         * tests/unictype/test-categ_byname.c (main): Test the recognition of
15428         long names.
15429
15430         Tests for module 'unictype/category-longname'.
15431         * modules/unictype/category-longname-tests: New file.
15432         * tests/unictype/test-categ_longname.c: New file.
15433
15434         New module 'unictype/category-longname'.
15435         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
15436         * lib/unictype/categ_longname.c: New file.
15437         * modules/unictype/category-longname: New file.
15438         * modules/unictype/category-all (Depends-on): Add it.
15439
15440 2011-03-25  Bruno Haible  <bruno@clisp.org>
15441
15442         Tests for module 'unictype/category-LC'.
15443         * modules/unictype/category-LC-tests: New file.
15444         * tests/unictype/test-categ_LC.c: New file, automatically generated.
15445
15446         New module 'unictype/category-LC'.
15447         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
15448         (UC_CATEGORY_LC): New declaration.
15449         (UC_CASED_LETTER): New macro.
15450         * lib/gen-uni-tables.c (is_category_LC): New function.
15451         (output_categories): Also handle category LC.
15452         (UC_CATEGORY_MASK_LC): New enumeration value.
15453         (general_category_byname): Also handle category LC.
15454         * lib/unictype/categ_LC.c: New file.
15455         * lib/unictype/categ_LC.h: New file, automatically generated.
15456         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
15457         category LC.
15458         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
15459         * modules/unictype/category-LC: New file.
15460         * modules/unictype/category-byname (Depends-on): Add
15461         unictype/category-LC.
15462         * modules/unictype/category-all (Depends-on): Likewise.
15463
15464 2011-03-25  Eric Blake  <eblake@redhat.com>
15465
15466         xmalloc: revert yesterday's regression
15467         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
15468         realloc's underlying behavior (allowing allocation of zero-size
15469         objects, especially if malloc-gnu is also in use).
15470
15471 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
15472
15473         maint.mk: add missing version to VC-tag
15474         * top/maint.mk: git tag was missing actual tag name; add it.
15475
15476         valgrind: do leak checking, and exit with code 1 on error (not 0)
15477         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
15478         to VALGRIND.
15479
15480 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
15481
15482         posix-modules: say what it does.
15483         * posix-modules: Add a line to the --help output saying what it does.
15484
15485 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15486
15487         xmalloc: Do not leak if underlying realloc is C99 compatible.
15488         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
15489         This avoids a leak on C99-based systems.  See
15490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
15491
15492 2011-03-24  Eric Blake  <eblake@redhat.com>
15493
15494         realloc: document portability problem
15495         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
15496         passing 0 size to realloc.
15497
15498 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
15499
15500         doc: update users.txt
15501         * users.txt: Add cvsps, tmpwatch
15502
15503 2011-03-23  Matt Rice  <ratmice@gmail.com>
15504
15505         doc: update users.txt
15506         * users.txt: Add gdb.
15507
15508 2011-03-23  Jim Meyering  <meyering@redhat.com>
15509
15510         doc: update users.txt
15511         Looking through matches up to the following URL (there are still
15512         several more pages), I found several projects that use gnulib:
15513         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
15514         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
15515         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
15516
15517 2011-03-22  Bruno Haible  <bruno@clisp.org>
15518
15519         unictype/bidi*: Rename functions.
15520         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
15521         uc_bidi_class, uc_is_bidi_class): New declarations.
15522         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
15523         uc_bidi_category_byname.
15524         (uc_bidi_category_byname): New function.
15525         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
15526         u_bidi_category_name.
15527         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
15528         (uc_bidi_category_name): New function.
15529         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
15530         uc_bidi_category.
15531         (uc_bidi_category): New function.
15532         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
15533         uc_is_bidi_category. Invoke uc_bidi_class.
15534         (uc_is_bidi_category): New function.
15535         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
15536         instead of uc_bidi_category_byname.
15537         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
15538         instead of uc_bidi_category_name.
15539         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
15540         uc_bidi_category.
15541         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
15542         instead of uc_is_bidi_category.
15543
15544 2011-03-21  Bruno Haible  <bruno@clisp.org>
15545
15546         New module 'unictype/joininggroup-all'.
15547         * modules/unictype/joininggroup-all: New file.
15548
15549         Tests for module 'unictype/joininggroup-of'.
15550         * modules/unictype/joininggroup-of-tests: New file.
15551         * tests/unictype/test-joininggroup_of.c: New file.
15552         * tests/unictype/test-joininggroup_of.h: New file, automatically
15553         generated by gen-uni-tables.
15554
15555         New module 'unictype/joininggroup-of'.
15556         * modules/unictype/joininggroup-of: New file.
15557         * lib/unictype/joininggroup_of.c: New file.
15558         * lib/unictype/joininggroup_of.h: New file, automatically generated by
15559         gen-uni-tables.
15560
15561         Tests for module 'unictype/joininggroup-byname'.
15562         * modules/unictype/joininggroup-byname-tests: New file.
15563         * tests/unictype/test-joininggroup_byname.c: New file.
15564
15565         New module 'unictype/joininggroup-byname'.
15566         * modules/unictype/joininggroup-byname: New file.
15567         * lib/unictype/joininggroup_byname.c: New file.
15568         * lib/unictype/joininggroup_byname.gperf: New file.
15569
15570         Tests for module 'unictype/joininggroup-name'.
15571         * modules/unictype/joininggroup-name-tests: New file.
15572         * tests/unictype/test-joininggroup_name.c: New file.
15573
15574         New module 'unictype/joininggroup-name'.
15575         * modules/unictype/joininggroup-name: New file.
15576         * lib/unictype/joininggroup_name.c: New file.
15577         * lib/unictype/joininggroup_name.h: New file.
15578
15579         New module 'unictype/joiningtype-all'.
15580         * modules/unictype/joiningtype-all: New file.
15581
15582         Tests for module 'unictype/joiningtype-of'.
15583         * modules/unictype/joiningtype-of-tests: New file.
15584         * tests/unictype/test-joiningtype_of.c: New file.
15585         * tests/unictype/test-joiningtype_of.h: New file, automatically
15586         generated by gen-uni-tables.
15587
15588         New module 'unictype/joiningtype-of'.
15589         * modules/unictype/joiningtype-of: New file.
15590         * lib/unictype/joiningtype_of.c: New file.
15591         * lib/unictype/joiningtype_of.h: New file, automatically generated by
15592         gen-uni-tables.
15593
15594         Tests for module 'unictype/joiningtype-byname'.
15595         * modules/unictype/joiningtype-byname-tests: New file.
15596         * tests/unictype/test-joiningtype_byname.c: New file.
15597
15598         New module 'unictype/joiningtype-byname'.
15599         * modules/unictype/joiningtype-byname: New file.
15600         * lib/unictype/joiningtype_byname.c: New file.
15601
15602         Tests for module 'unictype/joiningtype-name'.
15603         * modules/unictype/joiningtype-name-tests: New file.
15604         * tests/unictype/test-joiningtype_name.c: New file.
15605
15606         New module 'unictype/joiningtype-name'.
15607         * modules/unictype/joiningtype-name: New file.
15608         * lib/unictype/joiningtype_name.c: New file.
15609
15610         unictype: Add support for Arabic shaping properties.
15611         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
15612         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
15613         declarations.
15614         (UC_JOINING_GROUP_*): New enumeration values.
15615         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
15616         declarations.
15617         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
15618         (unicode_joining_type): New variable.
15619         (UC_JOINING_GROUP_*): New enumeration values.
15620         (unicode_joining_group): New variable.
15621         (fill_arabicshaping, joining_type_as_c_identifier,
15622         output_joining_type_test, output_joining_type,
15623         joining_group_as_c_identifier, output_joining_group_test,
15624         output_joining_group): New functions.
15625         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
15626         fill_arabicshaping and output_joining_type_test, output_joining_type,
15627         output_joining_group_test, output_joining_group.
15628         Reported by Simon Josefsson.
15629
15630 2011-03-21  Jim Meyering  <meyering@redhat.com>
15631
15632         strftime: fix a bug in yesterday's change
15633         * lib/strftime.c (add): Accommodate width's initial value of -1.
15634         Otherwise, nstrftime would copy uninitialized data into
15635         the result buffer.
15636
15637 2011-03-21  Jim Meyering  <meyering@redhat.com>
15638
15639         tests: add strftime-tests module
15640         * tests/test-strftime.c: New file.
15641         * modules/strftime-tests: New module.
15642
15643 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15644
15645         strftime: don't assume a byte count fits in 'int'
15646         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
15647         found this problem by static analysis, using gcc -Wstrict-overflow
15648         (GCC 4.5.2, x86-64).  This reported an optimization that depended
15649         on an integer overflow having undefined behavior, but it turns out
15650         that the argument is a size, which might not fit in 'int' anyway,
15651
15652 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15653
15654         stdio: don't require ignore_value around fwrite
15655
15656         This patch works around libc bug 11959
15657         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
15658         Without this patch, applications must often write
15659         ignore_value (fwrite (...)) even though the ignore_value is
15660         not helpful here.  It's common to write many objects, using
15661         fwrite/printf/etc., and then use ferror to detect output error.
15662
15663         I considered making this patch optional, but decided against it,
15664         because libc is obviously being inconsistent here: there is no
15665         reason libc should insist that user code must inspect fwrite
15666         return's value without also insisting that it inspect printf's,
15667         putchar's, etc.  If user code wants to have a strict style where
15668         all these functions' values are checked (so that ferror need not
15669         be checked), we could add support for that style in a new gnulib
15670         module, but in the meantime it's better to be consistent and to
15671         support common usage.
15672
15673         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
15674         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
15675         that we are compiling in checking mode, and if not C++, and
15676         if not already wrapping fwrite for some other reason.
15677         (fwrite): #define to rpl_fwrite if the latter is defined.
15678
15679 2011-03-20  Bruno Haible  <bruno@clisp.org>
15680
15681         verror: Fix compilation error introduced on 2011-02-13.
15682         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
15683         instead of __attribute__.
15684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15685
15686 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15687             Bruno Haible  <bruno@clisp.org>
15688
15689         socklen: do not depend on sys_socket
15690         While trying to modify Emacs to use gnulib's socklen module,
15691         I discovered a circular dependency: socklen depends on sys_socket
15692         and vice versa.  Emacs can use socklen, but it does not need
15693         sys_socket because it has its own substitute for sys/socket.h.
15694         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
15695         gl_TYPE_SOCKLEN_T.
15696         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
15697         gl_PREREQ_SYS_H_SOCKET.
15698         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
15699         gl_PREREQ_SYS_H_SOCKET.
15700         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
15701         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
15702         * modules/socklen (Depends-on): Do not depend on sys_socket.
15703         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
15704
15705 2011-03-20  Jim Meyering  <meyering@redhat.com>
15706
15707         maint.mk: sort file names *after* new transformation
15708         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
15709         prefix would have led to an unwarranted failure in GNU parted.
15710         Sort after that transformation.
15711
15712 2011-03-19  Jim Meyering  <meyering@redhat.com>
15713
15714         maint.mk: fix po-file syntax-check rule
15715         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
15716         Patch by Bruno Haible.
15717
15718 2011-03-19  Bruno Haible  <bruno@clisp.org>
15719
15720         socklen: Update comment.
15721         * m4/socklen.m4: Update comment about platforms.
15722
15723 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15724             Bruno Haible  <bruno@clisp.org>
15725
15726         inet_ntop, inet_pton: Simplify.
15727         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
15728         documented to provide socklen_t and we already depend on sys_socket.
15729         * modules/inet_pton (Depends-on): Likewise.
15730         * lib/arpa_inet.in.h: Adjust comment.
15731
15732 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15733             Bruno Haible  <bruno@clisp.org>
15734
15735         netdb: Simplify.
15736         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
15737         documented to provide socklen_t and we already depend on sys_socket.
15738         * lib/netdb.in.h: Adjust comment.
15739
15740 2011-03-19  Bruno Haible  <bruno@clisp.org>
15741
15742         sys_socket, netdb: Document problem with socklen_t.
15743         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
15744         platforms.
15745         * doc/posix-headers/netdb.texi: Likewise.
15746
15747 2011-03-18  Eric Blake  <eblake@redhat.com>
15748
15749         maint.mk: let po check work in VPATH build
15750         * top/maint.mk (po_file): Allow cfg.mk override.
15751         (sc_po_check): Allow VPATH use.
15752         Reported by Jiri Denemark.
15753
15754 2011-03-16  Jim Meyering  <meyering@redhat.com>
15755
15756         maint.mk: allow fine-grained syntax-check exclusion via Make variables
15757         Before, you would have had to create one .x-sc_ file per rule in order
15758         to exempt offending files.  Now, you may instead use a Make variable --
15759         usually defined in cfg.mk -- whose name identifies the affected rule.
15760         * top/maint.mk (_sc_excl): Define.
15761         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
15762         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
15763
15764 2011-03-13  Bruno Haible  <bruno@clisp.org>
15765
15766         ignore-value tests: Avoid warnings.
15767         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
15768         empty for gcc < 3.4.
15769
15770 2011-03-13  Bruno Haible  <bruno@clisp.org>
15771
15772         passfd: Fix link error on Solaris.
15773         * modules/passfd (Description): Correct.
15774         (Depends-on): Add socketlib.
15775         (Link): New section.
15776         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
15777
15778 2011-03-13  Bruno Haible  <bruno@clisp.org>
15779
15780         passfd: Fix link error on AIX 5.2.
15781         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
15782
15783 2011-03-13  Bruno Haible  <bruno@clisp.org>
15784
15785         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
15786         * lib/sys_socket.in.h: Include <stddef.h>.
15787         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
15788         CMSG_FIRSTHDR. Remove unused variable.
15789
15790 2011-03-13  Bruno Haible  <bruno@clisp.org>
15791
15792         passfd: Fix compilation error on OpenBSD.
15793         * lib/passfd.c: Include <sys/uio.h>.
15794
15795 2011-03-13  Bruno Haible  <bruno@clisp.org>
15796
15797         passfd test: Fix warnings.
15798         * tests/test-passfd.c: Include <sys/wait.h>.
15799         (main): Fix typo.
15800
15801 2011-03-13  Bruno Haible  <bruno@clisp.org>
15802
15803         passfd module, part 4, tweaks.
15804         * tests/test-passfd.c: Reorder includes.
15805         (main): Fix perror and printf calls.
15806
15807 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15808
15809         passfd module, part 4.
15810         * modules/passfd-tests: New file.
15811         * tests/test-passfd.c: New file.
15812
15813 2011-03-13  Jim Meyering  <meyering@redhat.com>
15814
15815         Makefile: rely on GNU make; derive syntax-check rule names
15816         Rather than requiring that each sc_ rule be listed as a dependent
15817         of "check", use features of GNU make to derive the list.
15818         * Makefile (syntax-check-rules): Define.
15819         (check): Depend on the new variable, not the hard-coded list.
15820
15821 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
15822             Bruno Haible  <bruno@clisp.org>
15823
15824         passfd module, part 3.
15825         * lib/passfd.h (recvfd): Add a flags argument.
15826         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
15827         (recvfd): Add a flags argument.
15828         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
15829         exists.
15830         * modules/passfd (Depends-on): Add cloexec.
15831         Suggested by Eric Blake.
15832
15833 2011-03-13  Bruno Haible  <bruno@clisp.org>
15834
15835         passfd module, part 2, tweaks.
15836         * modules/passfd (Files): Reorder.
15837         (Depends-on): Remove errno.
15838         (Include): Remove <sys/socket.h>, <sys/un.h>.
15839         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
15840         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
15841         specification header. Include <sys/socket.h> always. Don't include
15842         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
15843         (sendfd): Clarify that it sets errno when it fails.
15844         (recvfd): Fix specification.
15845
15846 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15847
15848         passfd module, part 2.
15849         * modules/passfd: New file.
15850         * lib/passfd.h: New file.
15851         * lib/passfd.c: New file.
15852
15853 2011-03-12  Bruno Haible  <bruno@clisp.org>
15854
15855         wcswidth, mbswidth: Avoid integer overflow.
15856         * lib/wcswidth.c: Include <limits.h>.
15857         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
15858         * lib/mbswidth.c: Include <limits.h>.
15859         (mbsnwidth): Avoid 'int' overflow.
15860         Reported by Jim Meyering.
15861
15862 2011-03-12  Bruno Haible  <bruno@clisp.org>
15863
15864         futimens, utimensat: Avoid endless recursion on Solaris 10.
15865         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
15866         Solaris.
15867         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
15868         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
15869
15870 2011-03-11  Jim Meyering  <meyering@redhat.com>
15871
15872         maint.mk: relax a regexp to accommodate other formatting styles
15873         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
15874         between "ngettext" and the following "(".
15875
15876 2011-03-11  Pádraig Brady <P@draigBrady.com>
15877
15878         maint.mk: suppress a false positive warning
15879         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
15880         diagnostics are marked with ngettext.
15881
15882 2011-03-10  Eric Blake  <eblake@redhat.com>
15883
15884         wchar: add explicit dependencies, for Tru64
15885         * modules/mbmemcasecoll (Depends-on): Add wchar.
15886         * modules/mbtowc (Depends-on): Likewise.
15887         * modules/vasnprintf (Depends-on): Likewise.
15888         * modules/unistdio/u-printf-args (Depends-on): Likewise.
15889         * modules/wctomb (Depends-on): Likewise.
15890         Reported by Peter O'Gorman.
15891
15892 2011-03-08  Bruno Haible  <bruno@clisp.org>
15893
15894         passfd module, part 1, tweaks.
15895         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
15896         Improve indentation. Improve AC_MSG_CHECKING messages.
15897         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
15898         gl_SOCKET_FAMILIES.
15899
15900 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15901
15902         passfd module, part 1.
15903         * m4/afunix.m4: New file.
15904         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
15905         sockets.
15906
15907 2011-03-08  Bruno Haible  <bruno@clisp.org>
15908
15909         regex-quote: New API.
15910         * lib/regex-quote.h: Include <stdbool.h>.
15911         (struct regex_quote_spec): New type.
15912         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15913         New declarations.
15914         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15915         'const struct regex_quote_spec *' argument.
15916         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
15917         (pcre_special): New constant.
15918         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15919         New functions.
15920         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15921         'const struct regex_quote_spec *' argument.
15922         * modules/regex-quote (Depends-on): Add stdbool.
15923         * tests/test-regex-quote.c (check): Update for new API. Add test for
15924         anchored results.
15925         * NEWS: Mention the API change.
15926         Reported by Reuben Thomas and Eric Blake.
15927
15928 2011-03-06  Bruno Haible  <bruno@clisp.org>
15929
15930         regex-quote: Fix creation of POSIX extended regular expressions.
15931         * lib/regex-quote.c (ere_special): Add grouping and alternation
15932         operators.
15933
15934 2011-03-05  Bruno Haible  <bruno@clisp.org>
15935
15936         doc: Improve doc regarding autopoint vs. gnulib.
15937         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
15938         disable autopoint while running autoreconf.
15939         Suggested by Ralf Wildenhues.
15940
15941 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15942
15943         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
15944         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
15945
15946 2011-03-03  Bruce Korb  <bkorb@gnu.org>
15947
15948         parse-duration: remove xalloc.h dependency
15949         * lib/parse-duration.c (parse_period): handle NULL return from
15950         strdup instead of calling xstrdup().
15951         * modules/parse-duration: remove "xalloc" dependency
15952
15953 2011-03-03  Matthew Booth  <mbooth@redhat.com>
15954
15955         bootstrap: honor m4_base when running aclocal
15956         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
15957
15958 2011-03-02  Jim Meyering  <meyering@redhat.com>
15959
15960         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
15961         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
15962         on request from Matt Booth.
15963
15964 2011-03-01  Eric Blake  <eblake@redhat.com>
15965
15966         test-link: work on Hurd
15967         * tests/test-link.h (test_link): Hurd rejects linking directories
15968         with EISDIR instead of the POSIX-mandated EPERM.
15969
15970 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
15971
15972         stdio: simplify by moving files to printf-posix, sigpipe
15973         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
15974         since this symbol is needed only if printf is replaced.
15975         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
15976         Require gl_ASM_SYMBOL_PREFIX.
15977         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
15978         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
15979         (Depends-on): Add 'raise'.
15980         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
15981         * modules/stdio (Files): Remove lib/stdio-write.c,
15982         m4/asm-underscore.m4.
15983         (Depends-on): Remove 'raise'.
15984
15985         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
15986         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
15987         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
15988         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
15989
15990 2011-02-28  Bruno Haible  <bruno@clisp.org>
15991
15992         localcharset: Assume ANSI C behaviour of free().
15993         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
15994         calling free().
15995         Suggested by Simon Josefsson <simon@josefsson.org>.
15996
15997 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
15998             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
15999             Bruno Haible  <bruno@clisp.org>  (tiny change)
16000
16001         On Cygwin, use /proc file system instead of win32 API.
16002         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
16003         Win32 file names.
16004         (DllMain): Simplify by removing Cygwin specific code.
16005         (find_shared_library_fullname): Use Linux specific implementation also
16006         for Cygwin.
16007         (get_shared_library_fullname): Update accordingly.
16008         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
16009         Win32 file names.
16010         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
16011         Cygwin specific code.
16012
16013 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
16014             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
16015
16016         Fix OpenMP flag detection for various Fortran compilers.
16017         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
16018         OpenMP-conditional compilation construct, to force compile
16019         failure with missing OpenMP flag.
16020         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
16021
16022 2011-02-25  Eric Blake  <eblake@redhat.com>
16023
16024         strstr: expand test coverage
16025         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
16026         compilation.
16027         * tests/test-memmem.c (main): Duplicate tests.
16028         * tests/test-strcasestr.c (main): Likewise.
16029         * tests/test-c-strcasestr.c (main): Likewise.
16030
16031 2011-02-25  Jim Meyering  <meyering@redhat.com>
16032
16033         maint.mk: detect missing-NL-at-EOF, too
16034         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
16035         it also detects when a file lacks a newline at EOF.
16036         (require_exactly_one_NL_at_EOF_): Renamed from
16037         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
16038         since people may well have .x-sc_... file names tied to the
16039         existing name.  Suggested by Eric Blake.
16040
16041 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16042
16043         dirname: move m4/dos.m4 functionality into lib/dosname.h
16044
16045         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
16046         extracts symbols from it, puts them into config.h; but it's much
16047         easier to use the symbols directly.  filename.h already does this,
16048         but it disagrees with dos.m4 in some respects.  This patch
16049         introduces a different include file dosname.h that packages up
16050         dos.m4, and then later we can work on merging filename.h and
16051         dosname.h.  Applications that need only the easy-to-configure
16052         symbols should consider including dosname.h rather than dirname.h.
16053         * NEWS: Mention incompatible changes.
16054         * m4/dos.m4: Remove.
16055         * lib/dosname.h, modules/dosname: New files.
16056         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
16057         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
16058         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
16059         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
16060         Include dosname.h, not dirname.h.
16061         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
16062         Include dosname.h, for definitions of symbols like ISSLASH
16063         that used to be in config.h.
16064         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
16065         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16066         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16067         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16068         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
16069         * modules/rmdir (Files): Likewise.
16070         * modules/stat (Files): Likewise.
16071         * modules/unlink (Files): Likewise.
16072         * modules/dirname-lgpl (Depends-on): Add dosname.
16073         * modules/lstat (Depends-on): Likewise.
16074         * modules/openat (Depends-on): Likewise.
16075         * modules/rmdir (Depends-on): Likewise.
16076         * modules/savewd (Depends-on): Likewise.
16077         * modules/stat (Depends-on): Likewise.
16078         * modules/unlink (Depends-on): Likewise.
16079         * modules/openat (Depends-on): Remove dirname-lgpl.
16080         * modules/savewd (Depends-on): Likewise.
16081         * tests/test-dirname.c: Do not use removed symbols like
16082         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
16083         the remaining symbols, e.g., ISSLASH ('\\').
16084
16085 2011-02-25  Eric Blake  <eblake@redhat.com>
16086
16087         strstr: revert patches that introduced bug and pessimization
16088         * lib/str-two-way.h: Add another reference.
16089         (two_way_short_needle, two_way_long_needle): Revert changes from
16090         2011-02-24; they pessimize search speed.
16091         (critical_factorization): Partially revert changes from
16092         2010-06-22; they violate the requirement that the left half of the
16093         needle be smaller than the period of the needle.
16094
16095 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16096
16097         filenamecat: remove unnecessary dependency on dirname-lgpl
16098         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
16099         is no direct dependency, just an indirect one via filenamecat-lgpl.
16100
16101         remove: remove unnecessary use of m4/dos.m4
16102         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
16103         * modules/remove (FILES): Remove m4/dos.m4.
16104
16105         * lib/openat-proc.c: Don't include dirname.h; not needed.
16106
16107         backupfile: remove unnecessary use of m4/dos.m4
16108         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
16109         of its symbols are used by the backupfile code.  backupfile.c does
16110         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
16111         for the rare case of programs that want all their backup file
16112         names to live within 8+3 limits, and dos.m4 doesn't address that.
16113         * modules/backupfile (Files): Remove m4/dos.m4.
16114
16115 2011-02-24  Jim Meyering  <meyering@redhat.com>
16116
16117         strstr: fix a bug whereby strstr would mistakenly return NULL
16118         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
16119         in period calculation.
16120         (two_way_long_needle): Likewise.
16121         The original problem was reported by Mike Stump in
16122         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
16123         Ralf Wildenhues provided the short needle and haystack.
16124         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
16125         Add a more involved test to trigger the bug in two_way_long_needle.
16126
16127 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16128
16129         gnulib-tool: remove use of bold display in help screen
16130         * gnulib-tool (func_usage): Do not use bold display anymore in the
16131         help screen.  That was just meant to be a temporary emphasis for a
16132         backward-incompatible change.
16133
16134 2011-02-23  Bruno Haible  <bruno@clisp.org>
16135
16136         Fix misindentation of preprocessor directives.
16137         * lib/argp-namefrob.h: Reindent preprocessor directives.
16138         * lib/getopt_int.h (struct _getopt_data): Likewise.
16139         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
16140         * lib/vasnprintf.c (decode_long_double): Likewise.
16141         * tests/test-argmatch.c: Insert blank lines, for clarity.
16142         * tests/test-exclude.c: Likewise.
16143
16144 2011-02-22  Bruno Haible  <bruno@clisp.org>
16145
16146         ioctl: Fix for MacOS X in 64-bit mode.
16147         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
16148         value.
16149         Suggested by Eric Blake.
16150         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
16151
16152 2011-02-22  Jim Meyering  <meyering@redhat.com>
16153
16154         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
16155         * Makefile (sc_cpp_indent_check): Don't limit the check to files
16156         in lib/.
16157
16158 2011-02-22  Eric Blake  <eblake@redhat.com>
16159
16160         maint: avoid any CDPATH issue
16161         * Makefile (sc_cpp_indent_check): Anchor cd argument.
16162
16163         maint: adjust cpp indentation for my modules, as well
16164         * Makefile (sc_cpp_indent_check): Add my name.
16165         * lib/fbufmode.c: Filter through cppi.
16166         * lib/fpurge.c: Likewise.
16167         * lib/freadable.c: Likewise.
16168         * lib/freading.c: Likewise.
16169         * lib/fwritable.c: Likewise.
16170         * lib/fwriting.c: Likewise.
16171         * lib/sigaction.c: Likewise.
16172
16173 2011-02-22  Jim Meyering  <meyering@redhat.com>
16174
16175         maint: adjust cpp indentation to reflect nesting depth
16176         I.e., in a block of code that begins with an unnested "#if",
16177         put one space between the "#" in column 1 and following token.
16178         For example,
16179         -#include <sys/vfs.h>
16180         +# include <sys/vfs.h>
16181         Do this only in .c files that are part of a module I maintain.
16182         * lib/linkat.c: Filter through cppi.
16183         * lib/nanosleep.c: Likewise.
16184         * lib/openat.c: Likewise.
16185         * lib/openat-die.c: Likewise.
16186         * lib/dup3.c: Likewise.
16187         * lib/fchownat.c: Likewise.
16188         * lib/flock.c: Likewise.
16189         * lib/fsync.c: Likewise.
16190         * lib/fts.c: Likewise.
16191         * lib/getpass.c: Likewise.
16192         * lib/gettimeofday.c: Likewise.
16193         * lib/userspec.c: Likewise.
16194         * Makefile (sc_cpp_indent_check): New rule, to check this.
16195
16196 2011-02-22  Bruno Haible  <bruno@clisp.org>
16197
16198         New module 'wctomb'.
16199         * lib/stdlib.in.h (wctomb): New declaration.
16200         * lib/wctomb.c: New file.
16201         * lib/wctomb-impl.h: New file.
16202         * m4/wctomb.m4: New file.
16203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
16204         REPLACE_WCTOMB.
16205         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
16206         REPLACE_WCTOMB.
16207         * modules/wctomb: New file.
16208         * tests/test-stdlib-c++.cc: Test signature of wctomb.
16209         * doc/posix-functions/wctomb.texi: Mention the new module.
16210         * modules/wctob (Depends-on): Add wctomb.
16211
16212 2011-02-22  Bruno Haible  <bruno@clisp.org>
16213
16214         New module 'mbtowc'.
16215         * lib/stdlib.in.h (mbtowc): New declaration.
16216         * lib/mbtowc.c: New file.
16217         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
16218         * m4/mbtowc.m4: New file.
16219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
16220         REPLACE_MBTOWC.
16221         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
16222         REPLACE_MBTOWC.
16223         * modules/mbtowc: New file.
16224         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
16225         * doc/posix-functions/mbtowc.texi: Mention the new module.
16226         * modules/btowc (Depends-on): Add mbtowc.
16227
16228 2011-02-22  Bruno Haible  <bruno@clisp.org>
16229
16230         wcrtomb: Add more tests for native Windows platforms.
16231         * tests/test-wcrtomb-w32-1.sh: New file.
16232         * tests/test-wcrtomb-w32-2.sh: New file.
16233         * tests/test-wcrtomb-w32-3.sh: New file.
16234         * tests/test-wcrtomb-w32-4.sh: New file.
16235         * tests/test-wcrtomb-w32-5.sh: New file.
16236         * tests/test-wcrtomb-w32.c: New file.
16237         * modules/wcrtomb-tests (Files): Add them.
16238         (Makefile.am): Arrange to run these tests.
16239         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
16240         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
16241
16242 2011-02-20  Bruno Haible  <bruno@clisp.org>
16243
16244         wcrtomb: Enhance test.
16245         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
16246
16247 2011-02-20  Bruno Haible  <bruno@clisp.org>
16248
16249         mbrtowc: Tiny optimization.
16250         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
16251
16252 2011-02-20  Jim Meyering  <meyering@redhat.com>
16253
16254         test-exclude.c: remove unmatched #endif
16255         * tests/test-exclude.c: Remove stray #endif, left over from
16256         the change of a week ago.
16257
16258 2011-02-19  Jim Meyering  <meyering@redhat.com>
16259
16260         git-version-gen: skip "-dirty" check when appropriate
16261         * build-aux/git-version-gen: Don't run any git commands when the
16262         version string comes from .tarball-version.  Prior to this, we
16263         would run git update-index --refresh even from a just-unpacked
16264         tarball directory, and that could affect a .git/ directory in a
16265         parent of the build directory.  Reported by Mike Frysinger.
16266
16267 2011-02-19  Bruno Haible  <bruno@clisp.org>
16268
16269         unictype/property-byname: Reduce the size of the 'data' segment.
16270         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
16271
16272 2011-02-19  Bruno Haible  <bruno@clisp.org>
16273
16274         unictype/scripts: Reduce the size of the 'data' segment.
16275         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
16276         '%pic'.
16277         * lib/unictype/scripts_byname.gperf: Regenerated.
16278
16279 2011-02-19  Bruno Haible  <bruno@clisp.org>
16280
16281         stdint: Update documentation.
16282         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
16283
16284 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16285
16286         stdint: omit redundant check for wchar.h
16287         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
16288         always tests whether wchar.h exists, so remove the now-redundant test.
16289
16290 2011-02-18  Bruno Haible  <bruno@clisp.org>
16291
16292         stdint: Cut dependency to module 'wchar'.
16293         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
16294         include the necessary prerequisites.
16295         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
16296         * modules/stdint (Depends-on): Remove wchar.
16297         (Makefile.am): Substitute HAVE_WCHAR_H.
16298         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
16299
16300 2011-02-18  Eric Blake  <eblake@redhat.com>
16301
16302         longlong: skip, rather than fail, on cross-compilation
16303         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
16304         when cross-compiling; regression from 2011-02-16.
16305
16306 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16307
16308         * NEWS: Mention 2011-02-08 change to stdlib.
16309
16310 2011-02-17  Bruno Haible  <bruno@clisp.org>
16311
16312         getloadavg: Add comments about platforms.
16313         * m4/getloadavg.m4: Add comment.
16314         * lib/getloadavg.c: Likewise.
16315
16316 2011-02-17  Bruno Haible  <bruno@clisp.org>
16317
16318         getloadavg: Fix link error on Solaris 2.6.
16319         * modules/getloadavg (Link): New section.
16320         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
16321         linking test-getloadavg.
16322         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
16323         getloadavg.
16324
16325 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16326
16327         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
16328         It was 'int', but this doesn't match the IRIX 6.5 manual.
16329         Suggested by Bruno Haible in
16330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
16331
16332 2011-02-17  Bruno Haible  <bruno@clisp.org>
16333
16334         havelib: Fix comments.
16335         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
16336         change.
16337
16338 2011-02-17  Bruno Haible  <bruno@clisp.org>
16339
16340         havelib: Update config.rpath.
16341         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
16342
16343 2011-02-17  Bruno Haible  <bruno@clisp.org>
16344
16345         getloadavg test: Add some plausibility checks.
16346         * tests/test-getloadavg.c (check_avg): Print a warning when the value
16347         is improbable.
16348
16349 2011-02-16  Eric Blake  <eblake@redhat.com>
16350
16351         maintainer-makefile: make syntax-check a no-op from tarballs
16352         * top/maint.mk (no-vc-detected): New rule.
16353         (local-checks-available): Use it to avoid hanging if someone tries
16354         'make syntax-check' from a tarball.  Also append to any non-syntax
16355         checks already defined in cfg.mk.
16356
16357 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
16358
16359         longlong: tune, particularly for common case of c99
16360
16361         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
16362         or running anything if c99, or if unsigned long long int does not
16363         work.  In either case, we know the answer without further tests.
16364         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
16365         it at most once, and use its results for both long long int and
16366         unsigned long long int.  This is more likely to be efficient in
16367         the common case where the program wants to check for both long
16368         long int and unsigned long long int.
16369         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
16370         since the answer is already known.
16371
16372 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
16373
16374         getloadavg: set errno
16375         * lib/getloadavg.c: Set errno when returning -1.  If no other
16376         error number looks appropriate, set it to ENOSYS if the getloadavg
16377         looks like it can't possibly ever work, ENOTSUP otherwise.
16378         Suggested by Bruno Haible in
16379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
16380
16381         getloadavg: trim unused parts and speed up 'configure'
16382         * NEWS: Document this.
16383         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
16384         always compiled if getloadavg is absent.
16385         Move test code to ...
16386         * tests/test-getloadavg.c: New file, containing previous
16387         contents of test from lib/getloadavg.c.  It also contains
16388         suggestions by Bruno Haible in
16389         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
16390         * modules/getloadavg-tests: New file.
16391         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
16392         Do tests in the same order as they're needed for getloadavg.c.
16393         Omit setgid-related tests that generate symbols KMEM_GROUP,
16394         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
16395         Do only the tests that are needed to see whether the system has
16396         getloadavg, moving the other tests into ...
16397         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
16398         NLIST_NAME_UNION; nobody should be using it.  Do not define
16399         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
16400         relevant, as the user of this module shouldn't care how getloadavg
16401         is implemented.
16402
16403         getloadavg: omit unused var
16404         * lib/getloadavg.c (getloadavg): Omit unused local variable.
16405
16406 2011-02-15  Jim Meyering  <meyering@redhat.com>
16407
16408         doc: update users.txt
16409         * users.txt: Update iwhd's URL.
16410
16411 2011-02-13  Bruno Haible  <bruno@clisp.org>
16412
16413         Consistent macro naming for macros that use GCC __attribute__.
16414         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
16415         _ATTRIBUTE_NONNULL_.
16416         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
16417         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
16418         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
16419         ATTRIBUTE_DEPRECATED.
16420         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
16421         ATTRIBUTE_NORETURN.
16422         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16423         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16424         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16425         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16426         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
16427         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
16428         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
16429         ATTRIBUTE_SENTINEL.
16430         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
16431         ATTRIBUTE_RETURN_CHECK.
16432         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
16433         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
16434         ATTRIBUTE_NORETURN.
16435         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
16436         Reported by Paul Eggert.
16437
16438 2011-02-13  Bruno Haible  <bruno@clisp.org>
16439
16440         Don't interfere with a program's definition of __attribute__.
16441         * lib/argp.h (__attribute__): Remove definition.
16442         (_GL_ATTRIBUTE_FORMAT): New macro.
16443         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
16444         * lib/argp-fmtstream.h (__attribute__): Remove definition.
16445         (_GL_ATTRIBUTE_FORMAT): New macro.
16446         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
16447         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
16448         GCC 3 or newer.
16449         * lib/error.h (__attribute__): Remove definition.
16450         (_GL_ATTRIBUTE_FORMAT): New macro.
16451         (error, error_at_line): Use it.
16452         * lib/hash.h (__attribute__): Remove definition.
16453         (ATTRIBUTE_WUR): Update definition. Define always.
16454         * lib/openat.h (__attribute__): Remove definition.
16455         (ATTRIBUTE_NORETURN): Update definition. Define always.
16456         * lib/sigpipe-die.h (__attribute__): Remove definition.
16457         (ATTRIBUTE_NORETURN): Update definition. Define always.
16458         * lib/vasnprintf.h (__attribute__): Remove definition.
16459         (_GL_ATTRIBUTE_FORMAT): New macro.
16460         (asnprintf, vasnprintf): Use it.
16461         * lib/xalloc.h (__attribute__): Remove definition.
16462         (ATTRIBUTE_NORETURN): Update definition. Define always.
16463         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
16464         * lib/xmemdup0.h (__attribute__): Remove definition.
16465         (ATTRIBUTE_NORETURN): Update definition. Define always.
16466         * lib/xprintf.h (__attribute__): Remove definition.
16467         (_GL_ATTRIBUTE_FORMAT): New macro.
16468         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
16469         * lib/xstrtol.h (__attribute__): Remove definition.
16470         (ATTRIBUTE_NORETURN): Update definition. Define always.
16471         * lib/xvasprintf.h (__attribute__): Remove definition.
16472         (_GL_ATTRIBUTE_FORMAT): New macro.
16473         (xasprintf, xvasprintf): Use it.
16474         * tests/test-argmatch.c (__attribute__): Remove definition.
16475         (ATTRIBUTE_NORETURN): Update definition. Define always.
16476         * tests/test-exclude.c (__attribute__): Remove definition.
16477         (ATTRIBUTE_NORETURN): Update definition. Define always.
16478         Reported by Paul Eggert.
16479
16480 2011-02-13  Bruno Haible  <bruno@clisp.org>
16481
16482         mbrtowc: Add more tests for native Windows platforms.
16483         * tests/test-mbrtowc-w32-1.sh: New file.
16484         * tests/test-mbrtowc-w32-2.sh: New file.
16485         * tests/test-mbrtowc-w32-3.sh: New file.
16486         * tests/test-mbrtowc-w32-4.sh: New file.
16487         * tests/test-mbrtowc-w32-5.sh: New file.
16488         * tests/test-mbrtowc-w32.c: New file.
16489         * modules/mbrtowc-tests (Files): Add them.
16490         (Makefile.am): Arrange to run these tests.
16491         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
16492         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
16493
16494 2011-02-13  Bruno Haible  <bruno@clisp.org>
16495
16496         mbrtowc: Work around native Windows bug.
16497         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
16498         guess when no suitable locale for testing was found.
16499         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
16500
16501 2011-02-13  Bruno Haible  <bruno@clisp.org>
16502
16503         mbsinit: Work around mingw bug.
16504         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
16505         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
16506         Windows.
16507         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
16508
16509 2011-02-13  Bruno Haible  <bruno@clisp.org>
16510
16511         mbsinit: Don't crash for a NULL argument.
16512         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
16513         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
16514
16515 2011-02-13  Bruno Haible  <bruno@clisp.org>
16516
16517         Don't interfere with a program's definition of __attribute__.
16518         * lib/stdio.in.h (__attribute__): Remove definition.
16519         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
16520         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
16521         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
16522         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
16523         * lib/string.in.h (__attribute__): Remove definition.
16524         Reported by Paul Eggert.
16525
16526 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16527
16528         stdlib: don't get in the way of non-GCC __attribute__
16529         See thread starting at
16530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
16531         Revert previous stdlib change, installing the following instead:
16532         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
16533         to get in the way of a non-GCC compiler that supports __attribute__.
16534         (_GL_ATTRIBUTE_RETURN): New macro.
16535         (_Exit): Use it instead of __attribute__.
16536
16537 2011-02-12  Bruno Haible  <bruno@clisp.org>
16538
16539         quotearg test: Avoid test failure on mingw.
16540         * tests/test-quotearg.sh: Convert the locale identifier from native
16541         Windows syntax to Unix syntax.
16542
16543 2011-02-12  Bruno Haible  <bruno@clisp.org>
16544
16545         setlocale: Prefer gnulib's override over libintl's override.
16546         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
16547         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
16548         GNULIB_defined_setlocale is set.
16549
16550 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16551
16552         stdlib: support non-GCC __attribute__
16553
16554         Fix a serious and tricky problem encountered when attempting to
16555         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
16556         5.5, but it crashed due to memory corruption on Solaris 10 with
16557         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
16558         bits that are otherwise zero.  This tagging is optional inside
16559         Emacs but is preferred and is used when __attribute__ ((__aligned
16560         (8))) works, as it does with both recent-enough GCC and with Sun C
16561         5.11.  However, Sun C 5.11 is not GCC and does not #define
16562         __GNUC__ and __GNUC_MINOR__.
16563
16564         When I added the getloadavg module to Emacs, it brought in
16565         stdlib.in.h, which contained this fragment:
16566
16567            #ifndef __attribute__
16568            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
16569            #  define __attribute__(Spec)   /* empty */
16570            # endif
16571            #endif
16572
16573         When files that include <stdlib.h> were compiled with Sun C 5.11,
16574         the above code disabled __attribute__ ((__aligned (8))), which
16575         caused variables to not be properly aligned, which eventually led
16576         to the pointer corruption mentioned above.  (This was a bit hard
16577         to diagnose, unfortunately.)
16578
16579         Several "#define __attribute__(X) /* empty */" code snippets need
16580         to be eradicated from Gnulib to work with non-GCC compilers that
16581         support __attribute__.  The Autoconf way to do this is to test for
16582         each kind of attribute that we want support for, and selectively
16583         enable that in source code.
16584
16585         Fix this problem just for stdlib.h, by adding a test for the
16586         __noreturn__ attribute, and change stdlib.in.h to use that test
16587         when needed.  This technique can be easily generalized to the
16588         other *.in.h files and attributes, and a similar technique can be
16589         used for *.h and *.c files.  This patch is enough to solve the
16590         problem for Emacs + getloadavg, and I thought I'd publish it for
16591         feedback before undertaking further, similar fixes in other
16592         modules.
16593
16594         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
16595         because it's not needed for stdlib.h.  It merely substitutes the
16596         value directly into stdlib.h.  We may well need to #define it, or
16597         similar symbols, for other modules, but it's nice to also have an
16598         option to not #define it for applications like Emacs that do not
16599         need it.
16600
16601         * lib/stdlib.in.h (__attribute__): Do not #define.
16602         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
16603         be defined only if the _Exit module is also used.
16604         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
16605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
16606         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
16607         platforms.
16608         * modules/_Exit (Files): Add m4/attribute.m4.
16609         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
16610         * m4/attribute.m4: New file.
16611
16612 2011-02-12  Bruno Haible  <bruno@clisp.org>
16613
16614         wcsrtombs: Work around bug on native Windows.
16615         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
16616         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
16617         instead of len.
16618         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
16619
16620 2011-02-12  Bruno Haible  <bruno@clisp.org>
16621
16622         mbsrtowcs: Work around bug on native Windows.
16623         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
16624         against mingw bug.
16625         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
16626
16627 2011-02-12  Bruno Haible  <bruno@clisp.org>
16628
16629         Avoid setlocale bugs in tests.
16630         * modules/btowc (Dependencies): Add setlocale.
16631         * modules/c-strcase (Dependencies): Likewise.
16632         * modules/mbmemcasecmp (Dependencies): Likewise.
16633         * modules/mbmemcasecoll (Dependencies): Likewise.
16634         * modules/mbrtowc (Dependencies): Likewise.
16635         * modules/mbscasecmp (Dependencies): Likewise.
16636         * modules/mbscasestr (Dependencies): Likewise.
16637         * modules/mbschr (Dependencies): Likewise.
16638         * modules/mbscspn (Dependencies): Likewise.
16639         * modules/mbsinit (Dependencies): Likewise.
16640         * modules/mbsncasecmp (Dependencies): Likewise.
16641         * modules/mbsnrtowcs (Dependencies): Likewise.
16642         * modules/mbspbrk (Dependencies): Likewise.
16643         * modules/mbspcasecmp (Dependencies): Likewise.
16644         * modules/mbsrchr (Dependencies): Likewise.
16645         * modules/mbsrtowcs (Dependencies): Likewise.
16646         * modules/mbsspn (Dependencies): Likewise.
16647         * modules/mbsstr (Dependencies): Likewise.
16648         * modules/nl_langinfo (Dependencies): Likewise.
16649         * modules/quotearg (Dependencies): Likewise.
16650         * modules/unicase/locale-language (Dependencies): Likewise.
16651         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
16652         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
16653         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
16654         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
16655         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
16656         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
16657         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
16658         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
16659         * modules/vasnprintf-posix (Dependencies): Likewise.
16660         * modules/wcrtomb (Dependencies): Likewise.
16661         * modules/wcsnrtombs (Dependencies): Likewise.
16662         * modules/wcsrtombs (Dependencies): Likewise.
16663
16664 2011-02-12  Bruno Haible  <bruno@clisp.org>
16665
16666         setlocale: Workaround native Windows bug.
16667         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
16668         succeeds but sets LC_CTYPE to "C", report a failure.
16669         * tests/test-setlocale2.sh: New file.
16670         * tests/test-setlocale2.c: New file.
16671         * modules/setlocale-tests (Files): Add the new files.
16672         (Makefile.am): Enable test-setlocale2.sh test.
16673         * doc/posix-functions/setlocale.texi: Mention workaround.
16674
16675 2011-02-11  Bruno Haible  <bruno@clisp.org>
16676
16677         Tests for module 'setlocale'.
16678         * modules/setlocale-tests: New file.
16679         * tests/test-setlocale1.sh: New file.
16680         * tests/test-setlocale1.c: New file.
16681
16682         New module 'setlocale'.
16683         * lib/locale.in.h (setlocale): New declaration.
16684         * lib/setlocale.c: New file, based on
16685         gettext/gettext-runtime/intl/setlocale.c.
16686         * m4/setlocale.m4: New file.
16687         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
16688         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
16689         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
16690         REPLACE_SETLOCALE.
16691         * modules/setlocale: New file.
16692         * tests/test-locale-c++.cc: Test the declaration of setlocale.
16693         * doc/posix-functions/setlocale.texi: Mention the new module.
16694
16695 2011-02-11  Bruno Haible  <bruno@clisp.org>
16696
16697         Prepare for locale dependent tests on mingw.
16698         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
16699         because it has the wrong locale encoding.
16700         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
16701         French_France.1252 instead of "fr".
16702         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
16703         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
16704         because it has the wrong locale encoding.
16705         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
16706         native Windows, try Turkish_Turkey.65001.
16707         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
16708         Chinese_China.54936.
16709
16710         Prepare for locale dependent tests on mingw.
16711         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
16712         differently.
16713         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16714         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16715         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16716         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16717
16718 2011-02-11  Eric Blake  <eblake@redhat.com>
16719
16720         strptime: avoid compiler warnings
16721         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
16722         compiler warnings about dead code.
16723         Reported by Daniel P. Berrange.
16724
16725 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
16726
16727         doc: update users.txt
16728         * users.txt: Add rcs.
16729
16730 2011-02-10  John W. Eaton  <jwe@gnu.org>
16731
16732         doc: update users.txt
16733         * users.txt: Add octave.
16734
16735 2011-02-10  Jim Meyering  <meyering@redhat.com>
16736
16737         doc: update users.txt
16738         * users.txt: Add iwhd.
16739
16740 2011-02-09  Bruno Haible  <bruno@clisp.org>
16741
16742         gnulib-tool: Make copyright notice adjustment more robust.
16743         * gnulib-tool (func_import): In sed_transform_main_lib_file,
16744         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
16745         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
16746         License".
16747         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
16748
16749 2011-02-06  Bruno Haible  <bruno@clisp.org>
16750
16751         New module 'towctrans'.
16752         * modules/towctrans: New file.
16753         * lib/wctype.in.h (towctrans): New declaration.
16754         * lib/towctrans.c: New file.
16755         * lib/towctrans-impl.h: New file.
16756         * m4/towctrans.m4: New file.
16757         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
16758         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
16759         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
16760         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
16761         * doc/posix-functions/towctrans.texi: Mention the new module.
16762
16763 2011-02-06  Bruno Haible  <bruno@clisp.org>
16764
16765         New module 'wctrans'.
16766         * modules/wctrans: New file.
16767         * lib/wctype.in.h (wctrans): New declaration.
16768         * lib/wctrans.c: New file.
16769         * lib/wctrans-impl.h: New file.
16770         * m4/wctrans.m4: New file.
16771         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
16772         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
16773         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
16774         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
16775         * doc/posix-functions/wctrans.texi: Mention the new module.
16776
16777 2011-02-06  Bruno Haible  <bruno@clisp.org>
16778
16779         New module 'iswctype'.
16780         * modules/iswctype: New file.
16781         * lib/wctype.in.h (iswctype): New declaration.
16782         * lib/iswctype.c: New file.
16783         * lib/iswctype-impl.h: New file.
16784         * m4/iswctype.m4: New file.
16785         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
16786         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
16787         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
16788         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
16789         * doc/posix-functions/iswctype.texi: Mention the new module and the
16790         HP-UX 11.00 problem.
16791
16792 2011-02-06  Bruno Haible  <bruno@clisp.org>
16793
16794         New module 'wctype'.
16795         * modules/wctype: Change to represent the wctype() substitute.
16796         * lib/wctype.in.h (wctype): New declaration.
16797         * lib/wctype.c: New file.
16798         * lib/wctype-impl.h: New file.
16799         * m4/wctype.m4: New file.
16800         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
16801         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
16802         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
16803         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
16804         * doc/posix-functions/wctype.texi: Mention the new module and the
16805         HP-UX 11.00 problem.
16806
16807 2011-02-06  Bruno Haible  <bruno@clisp.org>
16808
16809         wctype-h: Ensure wctype_t and wctrans_t are defined.
16810         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
16811         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16812         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16813         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
16814         HAVE_WCTRANS_T.
16815         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
16816
16817 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16818
16819         flock: fix license typo
16820
16821         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
16822         omitted.
16823
16824 2011-02-08  Bruno Haible  <bruno@clisp.org>
16825
16826         Split large sed scripts, for HP-UX sed.
16827         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
16828         to avoid HP-UX limit of 99 commands, in the near future.
16829         * modules/stdlib (Makefile.am): Likewise.
16830         * modules/unistd (Makefile.am): Likewise.
16831         * modules/wchar (Makefile.am): Likewise.
16832         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16833         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
16834         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
16835
16836 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16837             Bruno Haible  <bruno@clisp.org>
16838
16839         stdlib: improve random_r modularization
16840         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
16841         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
16842         you also need the random_r module to get this material right.
16843         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
16844         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
16845         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
16846
16847 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16848
16849         stdlib: don't depend on stdint
16850         * lib/stdlib.in.h: Don't include <stdint.h> merely because
16851         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
16852         be independent of whether stdint.h is needed.
16853         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
16854         here, instead of ...
16855         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
16856         struct random_data should be using the random_r module, not just
16857         the stdlib module (which wouldn't make sense: what package needs
16858         just struct random_data without also needing random_r?).
16859         * modules/stdlib (Depends-on): Remove stdint.
16860
16861         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
16862         See the thread rooted at
16863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
16864         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
16865         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
16866         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
16867         __VMS)); previously it was always included (via fcntl--.h).
16868         (getloadavg): Do not use c_strtod.  Instead, approximate it by
16869         hand; this is good enough for load averages.  Also, do not use
16870         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
16871         flags directly if available and don't bother otherwise.  (Packages
16872         that need the extra reliability should use the modules that define
16873         these flags on older platforms that lack them.)
16874         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
16875         fcntl-safer.
16876
16877 2011-02-08  Jim Meyering  <meyering@redhat.com>
16878
16879         di-set.h, ino-map.h: add multiple-inclusion guard
16880         Technically, the guard is required only for ino-map.h, due to its
16881         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
16882         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
16883         * lib/ino-map.h: Likewise.
16884
16885 2011-02-06  Bruno Haible  <bruno@clisp.org>
16886
16887         iswblank: Ensure declaration on glibc systems.
16888         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
16889         * modules/iswblank (Dependencies): Add 'extensions'.
16890         * doc/posix-functions/iswblank.texi: Document the glibc problem.
16891
16892 2011-02-06  Bruno Haible  <bruno@clisp.org>
16893
16894         New module 'iswblank'.
16895         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
16896         * modules/iswblank: New file.
16897         * modules/wctype-h (Files): Remove lib/iswblank.c.
16898         (Makefile.am): Substitute GNULIB_ISWBLANK.
16899         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
16900         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
16901         (gl_WCTYPE_H_DEFAULTS): New macro.
16902         (gl_WCTYPE_H): Require it. Remove iswblank related code.
16903         * modules/iswblank-tests: New file.
16904         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
16905         * tests/test-wctype-h.c (main): Remove iswblank tests.
16906         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
16907         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
16908         of 'wctype-h'.
16909         * NEWS: Mention the change.
16910         * modules/mbchar (Depends-on): Add iswblank.
16911
16912 2011-02-08  Bruno Haible  <bruno@clisp.org>
16913
16914         di-set tests: Refactor.
16915         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
16916         unnecessary includes.
16917         (ASSERT): Remove macro.
16918         (main): Make C90 compliant by avoiding variable declaration after
16919         statement.
16920         * modules/di-set-tests (Files): Add tests/macros.h.
16921
16922 2011-02-08  Bruno Haible  <bruno@clisp.org>
16923
16924         ino-map tests: Refactor.
16925         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
16926         unnecessary includes.
16927         (ASSERT): Remove macro.
16928         (main): Make C90 compliant by avoiding variable declaration after
16929         statement.
16930         * modules/ino-map-tests (Files): Add tests/macros.h.
16931
16932 2011-02-08  Jim Meyering  <meyering@redhat.com>
16933
16934         di-set: add "const" to a cast
16935         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
16936         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
16937
16938 2011-02-06  Bruno Haible  <bruno@clisp.org>
16939
16940         Rename module 'wctype' to 'wctype-h'.
16941         * modules/wctype-h: Renamed from modules/wctype.
16942         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
16943         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
16944         (Files, Depends-on, Makefile.am): Update.
16945         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
16946         (Files, Makefile.am): Update.
16947         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
16948         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
16949         * doc/posix-headers/wctype.texi: Update.
16950         * doc/posix-functions/iswalnum.texi: Update.
16951         * doc/posix-functions/iswalpha.texi: Update.
16952         * doc/posix-functions/iswblank.texi: Update.
16953         * doc/posix-functions/iswcntrl.texi: Update.
16954         * doc/posix-functions/iswdigit.texi: Update.
16955         * doc/posix-functions/iswgraph.texi: Update.
16956         * doc/posix-functions/iswlower.texi: Update.
16957         * doc/posix-functions/iswprint.texi: Update.
16958         * doc/posix-functions/iswpunct.texi: Update.
16959         * doc/posix-functions/iswspace.texi: Update.
16960         * doc/posix-functions/iswupper.texi: Update.
16961         * doc/posix-functions/iswxdigit.texi: Update.
16962         * doc/posix-functions/towlower.texi: Update.
16963         * doc/posix-functions/towupper.texi: Update.
16964         * NEWS: Mention the change.
16965         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
16966         * modules/mbchar (Dependencies): Likewise.
16967         * modules/mbswidth (Dependencies): Likewise.
16968         * modules/quotearg (Dependencies): Likewise.
16969         * modules/regex (Dependencies): Likewise.
16970         * modules/wcscasecmp (Dependencies): Likewise.
16971         * modules/wcsncasecmp (Dependencies): Likewise.
16972         * modules/wcwidth (Dependencies): Likewise.
16973
16974 2011-02-06  Bruno Haible  <bruno@clisp.org>
16975
16976         New module 'wcswidth'.
16977         * modules/wcswidth: New file.
16978         * lib/wchar.in.h (wcswidth): New declaration.
16979         * lib/wcswidth.c: New file.
16980         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
16981         * m4/wcswidth.m4: New file.
16982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
16983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
16984         REPLACE_WCSWIDTH.
16985         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
16986         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
16987         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
16988         * doc/posix-functions/wcswidth.texi: Mention the new module.
16989
16990 2011-02-06  Bruno Haible  <bruno@clisp.org>
16991
16992         New module 'wcstok'.
16993         * modules/wcstok: New file.
16994         * lib/wchar.in.h (wcstok): New declaration.
16995         * lib/wcstok.c: New file.
16996         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
16997         * m4/wcstok.m4: New file.
16998         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
16999         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
17000         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
17001         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
17002         * doc/posix-functions/wcstok.texi: Mention the new module.
17003
17004 2011-02-06  Bruno Haible  <bruno@clisp.org>
17005
17006         New module 'wcsstr'.
17007         * modules/wcsstr: New file.
17008         * lib/wchar.in.h (wcsstr): New declaration.
17009         * lib/wcsstr.c: New file.
17010         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
17011         * m4/wcsstr.m4: New file.
17012         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
17013         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
17014         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
17015         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
17016         * doc/posix-functions/wcsstr.texi: Mention the new module.
17017
17018 2011-02-06  Bruno Haible  <bruno@clisp.org>
17019
17020         New module 'wcspbrk'.
17021         * modules/wcspbrk: New file.
17022         * lib/wchar.in.h (wcspbrk): New declaration.
17023         * lib/wcspbrk.c: New file.
17024         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
17025         * m4/wcspbrk.m4: New file.
17026         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
17027         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
17028         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
17029         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
17030         * doc/posix-functions/wcspbrk.texi: Mention the new module.
17031
17032 2011-02-06  Bruno Haible  <bruno@clisp.org>
17033
17034         New module 'wcsspn'.
17035         * modules/wcsspn: New file.
17036         * lib/wchar.in.h (wcsspn): New declaration.
17037         * lib/wcsspn.c: New file.
17038         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
17039         * m4/wcsspn.m4: New file.
17040         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
17041         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
17042         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
17043         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
17044         * doc/posix-functions/wcsspn.texi: Mention the new module.
17045
17046 2011-02-06  Bruno Haible  <bruno@clisp.org>
17047
17048         New module 'wcscspn'.
17049         * modules/wcscspn: New file.
17050         * lib/wchar.in.h (wcscspn): New declaration.
17051         * lib/wcscspn.c: New file.
17052         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
17053         * m4/wcscspn.m4: New file.
17054         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
17055         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
17056         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
17057         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
17058         * doc/posix-functions/wcscspn.texi: Mention the new module.
17059
17060 2011-02-06  Bruno Haible  <bruno@clisp.org>
17061
17062         New module 'wcsrchr'.
17063         * modules/wcsrchr: New file.
17064         * lib/wchar.in.h (wcsrchr): New declaration.
17065         * lib/wcsrchr.c: New file.
17066         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
17067         * m4/wcsrchr.m4: New file.
17068         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
17069         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
17070         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
17071         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
17072         * doc/posix-functions/wcsrchr.texi: Mention the new module.
17073
17074 2011-02-06  Bruno Haible  <bruno@clisp.org>
17075
17076         New module 'wcschr'.
17077         * modules/wcschr: New file.
17078         * lib/wchar.in.h (wcschr): New declaration.
17079         * lib/wcschr.c: New file.
17080         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
17081         * m4/wcschr.m4: New file.
17082         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
17083         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
17084         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
17085         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
17086         * doc/posix-functions/wcschr.texi: Mention the new module.
17087
17088 2011-02-06  Bruno Haible  <bruno@clisp.org>
17089
17090         New module 'wcsdup'.
17091         * modules/wcsdup: New file.
17092         * lib/wchar.in.h (wcsdup): New declaration.
17093         * lib/wcsdup.c: New file.
17094         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
17095         * m4/wcsdup.m4: New file.
17096         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
17097         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
17098         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
17099         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
17100         * doc/posix-functions/wcsdup.texi: Mention the new module.
17101
17102 2011-02-06  Bruno Haible  <bruno@clisp.org>
17103
17104         New module 'wcsxfrm'.
17105         * modules/wcsxfrm: New file.
17106         * lib/wchar.in.h (wcsxfrm): New declaration.
17107         * lib/wcsxfrm.c: New file.
17108         * lib/wcsxfrm-impl.h: New file.
17109         * m4/wcsxfrm.m4: New file.
17110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
17111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
17112         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
17113         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
17114         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
17115
17116 2011-02-06  Bruno Haible  <bruno@clisp.org>
17117
17118         New module 'wcscoll'.
17119         * modules/wcscoll: New file.
17120         * lib/wchar.in.h (wcscoll): New declaration.
17121         * lib/wcscoll.c: New file.
17122         * lib/wcscoll-impl.h: New file.
17123         * m4/wcscoll.m4: New file.
17124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
17125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
17126         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
17127         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
17128         * doc/posix-functions/wcscoll.texi: Mention the new module.
17129
17130 2011-02-06  Bruno Haible  <bruno@clisp.org>
17131
17132         New module 'wcsncasecmp'.
17133         * modules/wcsncasecmp: New file.
17134         * lib/wchar.in.h (wcsncasecmp): New declaration.
17135         * lib/wcsncasecmp.c: New file.
17136         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
17137         * m4/wcsncasecmp.m4: New file.
17138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
17139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
17140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
17141         HAVE_WCSNCASECMP.
17142         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
17143         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
17144
17145 2011-02-06  Bruno Haible  <bruno@clisp.org>
17146
17147         New module 'wcscasecmp'.
17148         * modules/wcscasecmp: New file.
17149         * lib/wchar.in.h (wcscasecmp): New declaration.
17150         * lib/wcscasecmp.c: New file.
17151         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
17152         * m4/wcscasecmp.m4: New file.
17153         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
17154         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
17155         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
17156         HAVE_WCSCASECMP.
17157         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
17158         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
17159
17160 2011-02-05  Bruno Haible  <bruno@clisp.org>
17161
17162         New module 'wcsncmp'.
17163         * modules/wcsncmp: New file.
17164         * lib/wchar.in.h (wcsncmp): New declaration.
17165         * lib/wcsncmp.c: New file.
17166         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
17167         * m4/wcsncmp.m4: New file.
17168         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
17169         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
17170         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
17171         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
17172         * doc/posix-functions/wcsncmp.texi: Mention the new module.
17173
17174 2011-02-05  Bruno Haible  <bruno@clisp.org>
17175
17176         New module 'wcscmp'.
17177         * modules/wcscmp: New file.
17178         * lib/wchar.in.h (wcscmp): New declaration.
17179         * lib/wcscmp.c: New file.
17180         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
17181         * m4/wcscmp.m4: New file.
17182         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
17183         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
17184         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
17185         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
17186         * doc/posix-functions/wcscmp.texi: Mention the new module.
17187
17188 2011-02-05  Bruno Haible  <bruno@clisp.org>
17189
17190         New module 'wcsncat'.
17191         * modules/wcsncat: New file.
17192         * lib/wchar.in.h (wcsncat): New declaration.
17193         * lib/wcsncat.c: New file.
17194         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
17195         * m4/wcsncat.m4: New file.
17196         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
17197         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
17198         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
17199         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
17200         * doc/posix-functions/wcsncat.texi: Mention the new module.
17201
17202 2011-02-05  Bruno Haible  <bruno@clisp.org>
17203
17204         New module 'wcscat'.
17205         * modules/wcscat: New file.
17206         * lib/wchar.in.h (wcscat): New declaration.
17207         * lib/wcscat.c: New file.
17208         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
17209         * m4/wcscat.m4: New file.
17210         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
17211         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
17212         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
17213         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
17214         * doc/posix-functions/wcscat.texi: Mention the new module.
17215
17216 2011-02-05  Bruno Haible  <bruno@clisp.org>
17217
17218         New module 'wcpncpy'.
17219         * modules/wcpncpy: New file.
17220         * lib/wchar.in.h (wcpncpy): New declaration.
17221         * lib/wcpncpy.c: New file.
17222         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
17223         * m4/wcpncpy.m4: New file.
17224         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
17225         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
17226         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
17227         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
17228         * doc/posix-functions/wcpncpy.texi: Mention the new module.
17229
17230 2011-02-05  Bruno Haible  <bruno@clisp.org>
17231
17232         New module 'wcsncpy'.
17233         * modules/wcsncpy: New file.
17234         * lib/wchar.in.h (wcsncpy): New declaration.
17235         * lib/wcsncpy.c: New file.
17236         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
17237         * m4/wcsncpy.m4: New file.
17238         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
17239         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
17240         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
17241         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
17242         * doc/posix-functions/wcsncpy.texi: Mention the new module.
17243
17244 2011-02-05  Bruno Haible  <bruno@clisp.org>
17245
17246         New module 'wcpcpy'.
17247         * modules/wcpcpy: New file.
17248         * lib/wchar.in.h (wcpcpy): New declaration.
17249         * lib/wcpcpy.c: New file.
17250         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
17251         * m4/wcpcpy.m4: New file.
17252         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
17253         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
17254         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
17255         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
17256         * doc/posix-functions/wcpcpy.texi: Mention the new module.
17257
17258 2011-02-05  Bruno Haible  <bruno@clisp.org>
17259
17260         New module 'wcscpy'.
17261         * modules/wcscpy: New file.
17262         * lib/wchar.in.h (wcscpy): New declaration.
17263         * lib/wcscpy.c: New file.
17264         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
17265         * m4/wcscpy.m4: New file.
17266         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
17267         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
17268         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
17269         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
17270         * doc/posix-functions/wcscpy.texi: Mention the new module.
17271
17272 2011-02-05  Bruno Haible  <bruno@clisp.org>
17273
17274         New module 'wcsnlen'.
17275         * modules/wcsnlen: New file.
17276         * lib/wchar.in.h (wcsnlen): New declaration.
17277         * lib/wcsnlen.c: New file.
17278         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
17279         * m4/wcsnlen.m4: New file.
17280         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
17281         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
17282         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
17283         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
17284         * doc/posix-functions/wcsnlen.texi: Mention the new module.
17285
17286 2011-02-05  Bruno Haible  <bruno@clisp.org>
17287
17288         New module 'wcslen'.
17289         * modules/wcslen: New file.
17290         * lib/wchar.in.h (wcslen): New declaration.
17291         * lib/wcslen.c: New file.
17292         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
17293         * m4/wcslen.m4: New file.
17294         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
17295         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
17296         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
17297         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
17298         * doc/posix-functions/wcslen.texi: Mention the new module.
17299
17300 2011-02-05  Bruno Haible  <bruno@clisp.org>
17301
17302         New module 'wmemset'.
17303         * modules/wmemset: New file.
17304         * lib/wchar.in.h (wmemset): New declaration.
17305         * lib/wmemset.c: New file.
17306         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
17307         * m4/wmemset.m4: New file.
17308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
17309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
17310         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
17311         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
17312         * doc/posix-functions/wmemset.texi: Mention the new module.
17313
17314 2011-02-05  Bruno Haible  <bruno@clisp.org>
17315
17316         New module 'wmemmove'.
17317         * modules/wmemmove: New file.
17318         * lib/wchar.in.h (wmemmove): New declaration.
17319         * lib/wmemmove.c: New file.
17320         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
17321         * m4/wmemmove.m4: New file.
17322         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
17323         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
17324         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
17325         HAVE_WMEMMOVE.
17326         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
17327         * doc/posix-functions/wmemmove.texi: Mention the new module.
17328
17329 2011-02-05  Bruno Haible  <bruno@clisp.org>
17330
17331         New module 'wmemcpy'.
17332         * modules/wmemcpy: New file.
17333         * lib/wchar.in.h (wmemcpy): New declaration.
17334         * lib/wmemcpy.c: New file.
17335         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
17336         * m4/wmemcpy.m4: New file.
17337         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
17338         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
17339         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
17340         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
17341         * doc/posix-functions/wmemcpy.texi: Mention the new module.
17342
17343 2011-02-05  Bruno Haible  <bruno@clisp.org>
17344
17345         New module 'wmemcmp'.
17346         * modules/wmemcmp: New file.
17347         * lib/wchar.in.h (wmemcmp): New declaration.
17348         * lib/wmemcmp.c: New file.
17349         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
17350         * m4/wmemcmp.m4: New file.
17351         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
17352         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
17353         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
17354         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
17355         * doc/posix-functions/wmemcmp.texi: Mention the new module.
17356
17357 2011-02-07  Jim Meyering  <meyering@redhat.com>
17358
17359         di-set, ino-map: new modules, from coreutils
17360         * lib/di-set.c: New file.
17361         * lib/di-set.h: Likewise.
17362         * lib/ino-map.c: Likewise.
17363         * lib/ino-map.h: Likewise.
17364         * modules/di-set: Likewise.
17365         * modules/di-set-tests: Likewise.
17366         * modules/ino-map: Likewise.
17367         * modules/ino-map-tests: Likewise.
17368         * tests/test-di-set.c: Likewise.
17369         * tests/test-ino-map.c: Likewise.
17370
17371 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17372
17373         getloadavg: merge minor changes from Emacs
17374
17375         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
17376         (getloadavg): Use memset, not bzero.
17377
17378         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
17379         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17380         clash (bug#86).
17381
17382 2010-11-14  Bruno Haible  <bruno@clisp.org>
17383
17384         Allow multiple gnulib generated replacements to coexist.
17385         * lib/getopt.in.h (struct option): Avoid identical redefinition.
17386         * lib/inttypes.in.h (imaxdiv_t): Likewise.
17387         * lib/langinfo.in.h (nl_item): Likewise.
17388         * lib/math.in.h (_NaN, NAN): Likewise.
17389         * lib/netdb.in.h (struct addrinfo): Likewise.
17390         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
17391         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
17392         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
17393         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
17394         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
17395         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
17396         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
17397         pthread_mutexattr_init, pthread_mutexattr_settype,
17398         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
17399         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
17400         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
17401         pthread_spin_trylock, pthread_spin_unlock): Likewise.
17402         * lib/sched.in.h (struct sched_param): Likewise.
17403         * lib/se-selinux.in.h (security_class_t, security_context_t,
17404         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
17405         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
17406         lsetfilecon, fsetfilecon, security_check_context,
17407         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
17408         Likewise.
17409         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
17410         Likewise.
17411         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
17412         _gl_function_taking_int_returning_void_t, union sigval,
17413         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
17414         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
17415         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17416         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
17417         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
17418         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
17419         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
17420         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
17421         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
17422         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
17423         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
17424         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
17425         socklen_t, rpl_fd_isset): Likewise.
17426         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
17427         * lib/sys_time.in.h (struct timeval): Likewise.
17428         * lib/sys_times.in.h (struct tms): Likewise.
17429         * lib/sys_utsname.in.h (struct utsname):
17430         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
17431         * lib/unistd.in.h (getpagesize): Likewise.
17432         * lib/wchar.in.h (mbstate_t): Likewise.
17433         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17434         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
17435         towlower, towupper): Likewise.
17436         Reported by Sam Steingold <sds@gnu.org>.
17437
17438 2011-02-05  Eric Blake  <eblake@redhat.com>
17439
17440         unsetenv: work around Haiku issues
17441         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
17442         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
17443
17444 2010-12-30  Bruce Korb  <bkorb@gnu.org>
17445
17446         libposix: avoid calling error() within libposix
17447         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
17448         is defined.
17449
17450 2011-02-05  Eric Blake  <eblake@redhat.com>
17451
17452         strerror_r-posix: port to cygwin
17453         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
17454         implementation.
17455         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
17456         * tests/test-strerror_r.c (main): Fix test.
17457         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17458         issue.
17459
17460 2011-02-05  Bruno Haible  <bruno@clisp.org>
17461
17462         New module 'wmemchr'.
17463         * modules/wmemchr: New file.
17464         * lib/wchar.in.h (wmemchr): New declaration.
17465         * lib/wmemchr.c: New file.
17466         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
17467         * m4/wmemchr.m4: New file.
17468         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
17469         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
17470         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
17471         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
17472         * doc/posix-functions/wmemchr.texi: Mention the new module.
17473
17474 2011-02-04  Eric Blake  <eblake@redhat.com>
17475
17476         fdopendir: detect FreeBSD bug
17477         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
17478         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
17479
17480 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17481
17482         stdbool: do not define HAVE_STDBOOL_H
17483         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
17484         AC_HEADER_STDBOOL.  All uses changed.  Do not define
17485         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
17486         imported from the latest Autoconf git.  It was motivated by Emacs,
17487         which uses gnulib but does not need HAVE_STDBOOL_H.
17488
17489 2011-02-04  Bruno Haible  <bruno@clisp.org>
17490
17491         wcsnrtombs: Prepare for new module wwcsnrtombs.
17492         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
17493         * lib/wcsnrtombs.c: Include it.
17494         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
17495
17496         wcsrtombs: Prepare for new module wwcsrtombs.
17497         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
17498         * lib/wcsrtombs.c: Include it.
17499         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
17500
17501         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
17502         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
17503         * lib/mbsnrtowcs.c: Include it.
17504         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
17505
17506         mbsrtowcs: Prepare for new module mbsrtowwcs.
17507         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
17508         * lib/mbsrtowcs.c: Include it.
17509         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
17510
17511 2011-02-04  Bruno Haible  <bruno@clisp.org>
17512
17513         vasnprintf: Reduce use of malloc for small format strings.
17514         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
17515         (arguments): Add room for the first 7 arguments.
17516         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
17517         (char_directives, u8_directives, u16_directives, u32_directives): Add
17518         room for the first 7 directives.
17519         * lib/printf-parse.c: Include <string.h>.
17520         (PRINTF_PARSE): Change memory handling code so that it uses the first
17521         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
17522         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
17523         Reported by Pádraig Brady <P@draigbrady.com>.
17524
17525 2011-01-31  Eric Blake  <eblake@redhat.com>
17526
17527         dup2: work around Haiku bug
17528         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
17529         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
17530         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17531         * tests/test-dup2.c (main): Enhance test.
17532
17533 2011-01-31  Simon Josefsson  <simon@josefsson.org>
17534
17535         doc: off_t is not available in eglibc 2.11.2 stdio.h.
17536         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
17537         declared by eglibc 2.11.2.
17538         * lib/stdio.in.h: Likewise.
17539
17540 2011-01-31  Eric Blake  <eblake@redhat.com>
17541
17542         ignore-value: add missing test dependency
17543         * tests/test-ignore-value.c: Revert previous change; stdio.h
17544         provides off_t.
17545         * modules/ignore-value-tests (Depends-on): Add missing dependency.
17546
17547 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17548
17549         mktime: clarify long_int width checking
17550         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
17551         the top level, to make it clearer that the assumption about
17552         long_int width is being checked.  See
17553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
17554
17555 2011-01-30  Simon Josefsson  <simon@josefsson.org>
17556
17557         ignore-value: Fix self-test.
17558         * tests/test-ignore-value.c: Include sys/types.h for off_t.
17559
17560 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17561
17562         TYPE_MAXIMUM: avoid theoretically undefined behavior
17563         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
17564         negative number, which the C Standard says has undefined behavior.
17565         In practice this is not a problem, but might as well do it by the book.
17566         Reported by Rich Felker and Eric Blake; see
17567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
17568         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
17569         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17570         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17571         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
17572         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17573         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
17574
17575         mktime: #undef mktime before #defining it
17576         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
17577
17578         mktime: systematically normalize tm_isdst comparisons
17579         * lib/mktime.c (isdst_differ): New function.
17580         (__mktime_internal): Use it systematically for all isdst comparisons.
17581         This completes the fix for libc BZ #6723, and removes the need for
17582         normalizing tm_isdst.  See
17583         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
17584         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
17585
17586         mktime: fix some integer overflow issues and sidestep the rest
17587
17588         This was prompted by a bug report by Benjamin Lindner for MinGW
17589         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
17590         His bug is due to signed integer overflow (0 - INT_MIN), and I
17591         I scanned through mktime.c looking for other integer overflow
17592         problems, fixing all the bugs I found.
17593
17594         Although the C Standard says the resulting code is still not safe
17595         in the presence of integer overflow, in practice it should be good
17596         enough for all real-world two's-complement implementations, except
17597         for debugging environments that deliberately trap on integer
17598         overflow (e.g., gcc -ftrapv).
17599
17600         * lib/mktime.c (WRAPV): New macro.
17601         (SHR): Also check that long_int and time_t shift right in the
17602         usual way, before using the fast-but-unportable method.
17603         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
17604         used.  The code already assumed two's complement, so there's
17605         no need to test for alternatives.  All uses removed.
17606         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
17607         the C standard.  Problem reported by Rich Felker in
17608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
17609         (twos_complement_arithmetic): Also check long_int and time_t.
17610         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
17611         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
17612         (__mktime_internal): Avoid integer overflow with unary subtraction
17613         in two instances where -1 - X is an adequate replacement for -X,
17614         since the calculations are approximate.
17615
17616 2011-01-29  Eric Blake  <eblake@redhat.com>
17617
17618         mktime: avoid infinite loop
17619         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
17620         type; behavior is still undefined but portable to all known targets.
17621         Reported by Rich Felker.
17622
17623 2011-01-29  Simon Josefsson  <simon@josefsson.org>
17624
17625         rename, unlink, same-inode: Relicense.
17626         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
17627         * modules/unlink (License): Likewise.
17628         * modules/same-inode (License): Likewise.
17629
17630 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17631
17632         mktime: avoid problems on NetBSD 5 / i386
17633         * lib/mktime.c (long_int): New type.  This works around a problem
17634         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
17635         but time_t is 64 bits, and where I expect the existing code is
17636         wrong in some cases.
17637         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
17638         (ydhms_diff): Bring back the compile-time check for wide-enough
17639         year and yday.
17640
17641         mktime: fix misspelling in comment
17642         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
17643         This merges all recent glibc changes of importance.
17644
17645 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17646
17647         move-if-change: cope with concurrent mv of identical file.
17648         * build-aux/move-if-change (CMPPROG): Accept environment
17649         variable as an override for `cmp'.
17650         (usage): Document CMPPROG.
17651         Adjust comparison to drop stdout.  Cope with failure of mv if
17652         the target file exists and is identical to the source, for
17653         parallel builds.
17654         Report from H.J. Lu against binutils in PR binutils/12283.
17655
17656 2011-01-28  Bruce Korb  <bkorb@gnu.org>
17657
17658         * users.txt: Mention sharutils.
17659
17660 2011-01-28  Simon Josefsson  <simon@josefsson.org>
17661
17662         * users.txt: Mention OATH Toolkit.
17663
17664 2011-01-27  Bruno Haible  <bruno@clisp.org>
17665
17666         Prepare for supporting FreeBSD 10.
17667         * build-aux/config.libpath: Remove handling of freebsd1*.
17668
17669 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
17670
17671         Prepare for supporting FreeBSD 10.
17672         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
17673         match FreeBSD 10.0.
17674
17675 2011-01-27  Bruno Haible  <bruno@clisp.org>
17676
17677         vma-iter, get-rusage-as: Add OpenBSD support.
17678         * modules/vma-iter (configure.ac): Test for mquery.
17679         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
17680         * lib/vma-iter.c: Include <sys/mman.h>.
17681         (vma_iterate): Add an implementation based on mquery().
17682         * lib/resource-ext.h (get_rusage_as): Update comments.
17683         * lib/get-rusage-as.c: Likewise.
17684         * lib/get-rusage-data.c: Likewise.
17685
17686 2011-01-26  Karl Berry  <karl@gnu.org>
17687
17688         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
17689         variables to make it easier to override the makeinfo program used.
17690
17691 2011-01-26  Eric Blake  <eblake@redhat.com>
17692
17693         fcntl: work around Haiku F_DUPFD bugs
17694         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
17695         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
17696         cloexec bit on duplication.
17697         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
17698
17699 2011-01-26  Bruno Haible  <bruno@clisp.org>
17700
17701         Enable memory leak tests on AIX.
17702         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
17703         * tests/test-fprintf-posix3.c (main): Likewise.
17704
17705 2011-01-26  Bruno Haible  <bruno@clisp.org>
17706
17707         Tests for module 'get-rusage-data'.
17708         * modules/get-rusage-data-tests: New file.
17709         * tests/test-get-rusage-data.c: New file.
17710
17711         New module 'get-rusage-data'.
17712         * lib/resource-ext.h (get_rusage_data): New declaration.
17713         * lib/get-rusage-data.c: New file.
17714         * modules/get-rusage-data: New file.
17715
17716 2011-01-25  Bruno Haible  <bruno@clisp.org>
17717
17718         get-rusage-as: Allow for easier testing.
17719         * lib/resource-ext.h (get_rusage_as): Add comment.
17720         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
17721         (main): New function for interactive testing.
17722
17723 2011-01-25  Bruno Haible  <bruno@clisp.org>
17724
17725         vma-iter: Treat Haiku like BeOS.
17726         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
17727         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
17728
17729 2011-01-25  Eric Blake  <eblake@redhat.com>
17730
17731         c-stack: fix regression on cygwin when libsigsegv is present
17732         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
17733
17734 2011-01-24  Bruno Haible  <bruno@clisp.org>
17735
17736         vma-iter: Avoid empty intervals.
17737         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
17738         on an empty interval.
17739
17740 2011-01-24  Jim Meyering  <meyering@redhat.com>
17741
17742         u64: remove unnecessary #include
17743         * lib/u64.h: Don't include <stddef.h>.  It was not used.
17744
17745 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17746
17747         Allow the user to avoid the HAVE_RAW_DECL_* macros.
17748         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
17749
17750 2011-01-23  Bruno Haible  <bruno@clisp.org>
17751
17752         New module 'vma-iter'.
17753         * lib/vma-iter.h: New file.
17754         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
17755         * modules/vma-iter: New file.
17756         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
17757         for get_rusage_as_via_iterator.
17758         (vma_iterate_callback): New function.
17759         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
17760         * modules/get-rusage-as (Depends-on): Add vma-iter.
17761
17762 2011-01-23  Bruno Haible  <bruno@clisp.org>
17763
17764         uninorm: Tweak includes.
17765         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
17766         Reported by Jim Meyering.
17767
17768 2011-01-23  Bruno Haible  <bruno@clisp.org>
17769
17770         get-rusage-as: Improve on NetBSD.
17771         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
17772         /proc, like on FreeBSD.
17773
17774 2011-01-23  Jim Meyering  <meyering@redhat.com>
17775
17776         xreadlink.h: remove unnecessary #include
17777         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
17778
17779         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
17780         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
17781
17782 2011-01-23  Bruno Haible  <bruno@clisp.org>
17783
17784         get-rusage-as: Fix bug.
17785         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
17786         original limit when aborting the first loop.
17787
17788 2011-01-23  Bruno Haible  <bruno@clisp.org>
17789
17790         wctype: Ensure valid C syntax.
17791         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
17792         unconditionally, instead of gl_NEXT_HEADERS conditionally.
17793
17794 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17795
17796         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
17797         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
17798         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
17799         as they are needed only for configure's test case.
17800         This removes two unnecessary symbols from config.h.
17801
17802         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
17803         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
17804         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
17805         AC_CHECK_HEADERS_ONCE on a header that we also invoke
17806         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
17807         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
17808         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
17809         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
17810         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17811         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17812         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17813         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17814         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17815         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17816         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
17817         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17818         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17819         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17820
17821 2011-01-21  Eric Blake  <eblake@redhat.com>
17822
17823         maintainer-makefile: work with older git for submodule check
17824         * top/maint.mk (public-submodule-commit): Rewrite to avoid
17825         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
17826         Reported by Matthias Bolte.
17827
17828         bootstrap: minor portability fixes
17829         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
17830         (usage): Omit leading capital and trailing . on help phrases, per
17831         GNU Coding Standards.
17832         (check_versions, top level): Prefix messages with script name.
17833
17834 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
17835
17836         bootstrap: support --no-git option
17837         * build-aux/bootstrap: Add --no-git option, to be used when
17838         --gnulib-srcdir points to the exact desired checkout.
17839
17840 2011-01-21  Eric Blake  <eblake@redhat.com>
17841
17842         strerror_r-posix: work with glibc 2.13
17843         * lib/strerror_r.c (strerror_r): Fix return type.
17844
17845 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17846             Bruno Haible  <bruno@clisp.org>
17847
17848         uN_strstr: New unit tests.
17849         * modules/unistr/u8-strstr-tests: New file.
17850         * modules/unistr/u16-strstr-tests: New file.
17851         * modules/unistr/u32-strstr-tests: New file.
17852         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
17853         * tests/unistr/test-u8-strstr.c: New file.
17854         * tests/unistr/test-u16-strstr.c: New file.
17855         * tests/unistr/test-u32-strstr.c: New file.
17856
17857 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17858             Bruno Haible  <bruno@clisp.org>
17859
17860         Make uN_strstr functions O(n) worst-case.
17861         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
17862         16-bit and 32-bit unit cases, use the unibyte algorithm from
17863         lib/mbsstr.c.
17864         * lib/unistr/u8-strstr.c: Include <string.h>.
17865         (UNIT_IS_UINT8_T): New macro.
17866         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
17867         (U_STRLEN, U_STRNLEN): New macros.
17868         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
17869         (U_STRLEN, U_STRNLEN): New macros.
17870         * modules/unistr/u8-strstr (Depends-on): Add strstr.
17871         (configure.ac): Update required libunistring version.
17872         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
17873         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
17874         malloca.
17875         (configure.ac): Update required libunistring version.
17876         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
17877         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
17878         malloca.
17879         (configure.ac): Update required libunistring version.
17880
17881 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17882             Bruno Haible  <bruno@clisp.org>
17883
17884         Prepare for faster uN_strstr functions.
17885         * lib/str-kmp.h: Support definable UNITs.
17886         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
17887         needle_len argument.
17888         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
17889         * lib/mbscasestr.c (mbscasestr): Likewise.
17890
17891 2011-01-21  Pádraig Brady <P@draigBrady.com>
17892
17893         malloca-tests: make faster by unsetting MALLOC_PERTURB_
17894         * tests/test-malloca.c (main): Unset the environment variable
17895         to greatly speed up the test.
17896         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
17897         * modules/malloca-tests: Depend on unsetenv.
17898
17899 2011-01-21  Pádraig Brady <P@draigBrady.com>
17900
17901         ignore-value: remove stdint dependency
17902         * lib/ignore-value.h: Remove <stdint.h>
17903         * modules/ignore-value: Remove stdint dependency.
17904
17905 2011-01-21  Jim Meyering  <meyering@redhat.com>
17906
17907         maint.mk: adjust variable name to be consistent with other gl_ vars
17908         * top/maint.mk (gl_public_submodule_commit): Rename the variable
17909         to be lower case.
17910
17911 2011-01-20  Jim Meyering  <meyering@redhat.com>
17912
17913         maint.mk: make "check" depend on public-submodule-commit by default
17914         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
17915
17916 2011-01-20  Bruno Haible  <bruno@clisp.org>
17917
17918         mbfile, mbiter: Complete change from 2008-12-21.
17919         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
17920         * m4/mbiter.m4 (gl_MBITER): Likewise.
17921
17922 2011-01-20  Jim Meyering  <meyering@redhat.com>
17923
17924         init.sh: insert space between each function name and "()"
17925         * tests/init.sh: Make it a little easier to see that a function's
17926         name is "warn_", and not "warn" when looking at the first part of
17927         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
17928
17929 2011-01-20  Jim Meyering  <meyering@redhat.com>
17930
17931         mountlist: clean up code formatting
17932         * lib/mountlist.c (read_file_system_list): Split a long line,
17933         correct bracing style, use NULL in place of "(struct statfs *)0",
17934         don't parenthesize return value, add spaces around "=" and after
17935         ";-in-for-stmt".
17936
17937 2011-01-14  Markus Duft <mduft@gentoo.org>
17938
17939         mountlist: add support for Interix
17940         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
17941         Apply statvfs to all entries of /dev/fs.
17942         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
17943         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
17944
17945 2011-01-20  Jim Meyering  <meyering@redhat.com>
17946
17947         maint.mk: improve the public-submodule-commit rule
17948         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
17949         to suppress printing of its commands... unless V=1.
17950         Add git submodule's --quiet option to suppress printing of e.g.,
17951         "Entering gnulib" output.
17952         "cd" into $(srcdir) before running git submodule.
17953
17954 2011-01-20  Bruno Haible  <bruno@clisp.org>
17955
17956         include_next: Fix bug introduced on 2011-01-18.
17957         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
17958         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
17959         ac_cv_header_... variable if the second argument is not 'check'.
17960         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
17961         gl_NEXT_HEADERS_INTERNAL.
17962
17963 2011-01-20  Bruno Haible  <bruno@clisp.org>
17964
17965         Allow the user to avoid the GNULIB_TEST_* macros.
17966         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
17967         Suggested by Paul Eggert.
17968
17969 2011-01-14  Jim Meyering  <meyering@redhat.com>
17970
17971         bootstrap: avoid failure when there is no .gitmodules file
17972         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
17973         has been assigned to, even when its value is the empty string.
17974         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
17975         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
17976         Reported by John W. Eaton <jwe@gnu.org>.
17977
17978 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17979
17980         assume <ctype.h>, ..., <time.h> exist
17981         For years gnulib has been assuming the existence of the headers
17982         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
17983         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
17984         them, since they don't appear to be needed.
17985         * README (Portability guidelines): Document this.
17986         * lib/flock.c: Assume <fcntl.h> exists.
17987         * lib/regex_internal.h: Assume <locale.h> exists.
17988         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
17989         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
17990         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
17991         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
17992         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
17993         * m4/regex.m4 (gl_REGEX): Likewise.
17994         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
17995         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
17996         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
17997         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
17998         * tests/test-argp.c: Likewise.
17999         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
18000
18001         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
18002         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
18003         AA_APPLE_UNIVERSAL_BUILD.  See
18004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
18005         * NEWS: Document this.
18006
18007 2011-01-19  Eric Blake  <eblake@redhat.com>
18008
18009         c-stack: assume stack overflow if SA_SIGINFO unsupported
18010         * lib/c-stack.c (SIGACTION_WORKS): Rename...
18011         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
18012         sigaction will work.
18013         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
18014         behavior match Linux.
18015         * tests/test-c-stack.c (main): Prefer NULL for pointers.
18016
18017         stdbool-tests: accomodate Haiku
18018         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
18019
18020         binary-io: fix O_TEXT on Haiku
18021         * modules/binary-io (Depends-on): Add fcntl-h.
18022         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
18023         than blindly undefining O_TEXT.
18024         Reported by Scott McCreary.
18025
18026 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18027
18028         include_next: do not check for standard headers like stddef.h
18029
18030         I found this problem when modifying Emacs to use gnulib.
18031         I noticed that it added HAVE_STDDEF_H to config.h, even though
18032         gnulib always assumes <stddef.h> exists as per README and this
18033         symbol is unnecessary.
18034         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
18035         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
18036         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
18037         faster for headers like stddef.h that are known to exist.
18038         (gl_CHECK_NEXT_HEADERS): Use it.
18039         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
18040         rather than gl_CHECK_NEXT_HEADERS.
18041         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
18042         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
18043
18044 2011-01-18  Eric Blake  <eblake@redhat.com>
18045
18046         ansi-c++-opt: skip C++ dependency style if C++ is unused
18047         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
18048         tests when we know C++ compilation is not desired.
18049         Reported by Scott McCreary.
18050
18051 2011-01-18  Bruno Haible  <bruno@clisp.org>
18052
18053         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
18054         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
18055         (main): Perform test also when getrlimit and setrlimit don't exist or
18056         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
18057         limiting the address space size using setrlimit, compare the address
18058         space size before and after the the test.
18059         * tests/test-dprintf-posix2.c: Likewise.
18060         * tests/test-fprintf-posix3.sh: Update skip messages.
18061         * tests/test-dprintf-posix2.sh: Likewise.
18062         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
18063         * modules/dprintf-posix-tests (Depends-on): Likewise.
18064         Reported by Bruce Korb <bkorb@gnu.org> and
18065         Gary V. Vaughan <gary@gnu.org>.
18066
18067 2011-01-18  Bruno Haible  <bruno@clisp.org>
18068
18069         get-rusage-as: Improvement for Cygwin.
18070         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
18071         areas that are merely reserved.
18072
18073 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18074
18075         strftime: remove dependencies on multibyte modules
18076
18077         strftime depended on mbrlen, mbsinit, and wchar, but these modules
18078         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
18079         only if __osf__ is defined, and I suspect OSF doesn't need these
18080         other modules.  If my guess is wrong, we'll need to come up with a
18081         variant of strftime that doesn't need the multibyte modules.
18082
18083         I discovered this problem when attempting modify Emacs to use the
18084         strftime module.  With the previous gnulib, this caused Emacs to
18085         need 31 new files, ranging from lib/config.charset to
18086         m4/wint_t.m4.  This was overkill and I expect would be offputting
18087         to the Emacs maintainers.  After this change, only 6 new files are
18088         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
18089         stdbool.m4, and tm_gmtoff.m4.
18090
18091         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
18092         Suggested by Bruno Haible in
18093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
18094         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
18095         and do not check for wchar.h.
18096         * modules/strftime (Files): Remove m4/mbstate_t.m4.
18097         (Depends-on): Remove mbrlen, mbsinit, wchar.
18098
18099 2011-01-18  Bruno Haible  <bruno@clisp.org>
18100
18101         Tests for module 'get-rusage-as'.
18102         * modules/get-rusage-as-tests: New file.
18103         * tests/test-get-rusage-as.c: New file.
18104
18105         New module 'get-rusage-as'.
18106         * modules/get-rusage-as: New file.
18107         * lib/resource-ext.h: New file.
18108         * lib/get-rusage-as.c: New file.
18109
18110 2011-01-17  Eric Blake  <eblake@redhat.com>
18111
18112         sigaction: relax license from LGPLv3+ to LGPLv2+
18113         * modules/sigaction (License): Relax to LGPLv2+.
18114
18115 2011-01-14  Bruno Haible  <bruno@clisp.org>
18116
18117         filemode: Make function declarations usable in C++ mode.
18118         * lib/filemode.h: Enclose function declarations in extern "C" block.
18119         Reported by John W. Eaton <jwe@gnu.org>.
18120
18121 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
18122
18123         save-cwd: no longer include "xgetcwd.h"
18124         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
18125         This avoids a compilation failure in projects that use save-cwd
18126         without also using the xgetcwd module.
18127
18128 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18129
18130         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
18131         This is so that a program like Emacs, which needs only dtoastr,
18132         does not have to bother with distributing and compiling ftoastr
18133         and ldtoastr.
18134         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
18135         * modules/dtoastr, modules/ldtoastr: New files.
18136         * modules/ftoastr: Now works just for 'float'.
18137         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
18138         (Makefile.am): Remove ftoastr.h (not needed and no effect),
18139         dtoastr.c, ldtoastr.c.
18140
18141 2011-01-11  Jim Meyering  <meyering@redhat.com>
18142
18143         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
18144         There is no need to work around the lack of the fchdir function,
18145         since gnulib can now provide a replacement when required.
18146         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
18147         * modules/save-cwd (Depends-on): Add fchdir.
18148
18149 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18150
18151         openat, save-cwd: avoid xmalloc
18152
18153         This removes a direct (but undocumented) dependency of openat on
18154         xalloc, along with an indirect dependency via save-cwd.  It also
18155         removes a dependency of save-cwd on xgetcwd, and thereby
18156         indirectly on xalloc.  This change causes the openat substitute
18157         to fall back on save_cwd when memory is tight, and for save_cwd to
18158         fail instead of dying when memory is tight, but that's good enough.
18159         Problem and initial idea for fix reported by Bastien Roucaries in
18160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
18161
18162         * lib/openat-proc.c: Include stdlib.h (for malloc), not
18163         xalloc.h (for xmalloc).
18164         (openat_proc_name): Use malloc, not xmalloc.
18165         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
18166         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
18167
18168         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
18169         This avoids heap allocation for file names whose lengths are in
18170         the range 512..1023, with the upper bound increasing to at most
18171         4031 depending on the platform's PATH_MAX.  (We do not want
18172         pathmax.h here as it might supply a non-constant PATH_MAX.)
18173         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
18174         Perhaps they should be moved to malloca.h?
18175         (OPENAT_BUFFER_SIZE): Use them.
18176
18177 2011-01-10  Bruno Haible  <bruno@clisp.org>
18178
18179         doc: Update users.txt.
18180         * users.txt: Add recutils.
18181
18182 2011-01-09  Karl Berry  <karl@gnu.org>
18183
18184         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
18185
18186         * doc/configmake.texi: New file.
18187         * doc/gnulib.texi: Include it.
18188         * modules/configmake: Move documentation from here.
18189
18190 2011-01-09  Bruno Haible  <bruno@clisp.org>
18191
18192         Update to Unicode 6.0.0.
18193         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
18194         (get_lbp): Update for Unicode 6.0.0.
18195         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
18196         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
18197         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
18198         U+11001, U+11038..U+11046. Remove U+06DE.
18199         (uc_width): Fix bounds of planes.
18200         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18201         lib/uniwidth/width.c.
18202         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
18203         trailing whitespace removed.
18204         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
18205         without comments, but with the original copyright notice.
18206         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
18207         * lib/unicase/ignorable.h: Likewise.
18208         * lib/unicase/tocasefold.h: Likewise.
18209         * lib/unicase/tolower.h: Likewise.
18210         * lib/unicase/totitle.h: Likewise.
18211         * lib/unicase/toupper.h: Likewise.
18212         * lib/unictype/bidi_of.h: Likewise.
18213         * lib/unictype/blocks.h: Likewise.
18214         * lib/unictype/categ_C.h: Likewise.
18215         * lib/unictype/categ_Cn.h: Likewise.
18216         * lib/unictype/categ_L.h: Likewise.
18217         * lib/unictype/categ_Ll.h: Likewise.
18218         * lib/unictype/categ_Lm.h: Likewise.
18219         * lib/unictype/categ_Lo.h: Likewise.
18220         * lib/unictype/categ_Lu.h: Likewise.
18221         * lib/unictype/categ_M.h: Likewise.
18222         * lib/unictype/categ_Mc.h: Likewise.
18223         * lib/unictype/categ_Me.h: Likewise.
18224         * lib/unictype/categ_Mn.h: Likewise.
18225         * lib/unictype/categ_N.h: Likewise.
18226         * lib/unictype/categ_Nd.h: Likewise.
18227         * lib/unictype/categ_No.h: Likewise.
18228         * lib/unictype/categ_P.h: Likewise.
18229         * lib/unictype/categ_Po.h: Likewise.
18230         * lib/unictype/categ_S.h: Likewise.
18231         * lib/unictype/categ_Sc.h: Likewise.
18232         * lib/unictype/categ_Sk.h: Likewise.
18233         * lib/unictype/categ_Sm.h: Likewise.
18234         * lib/unictype/categ_So.h: Likewise.
18235         * lib/unictype/categ_of.h: Likewise.
18236         * lib/unictype/combining.h: Likewise.
18237         * lib/unictype/ctype_alnum.h: Likewise.
18238         * lib/unictype/ctype_alpha.h: Likewise.
18239         * lib/unictype/ctype_graph.h: Likewise.
18240         * lib/unictype/ctype_lower.h: Likewise.
18241         * lib/unictype/ctype_print.h: Likewise.
18242         * lib/unictype/ctype_punct.h: Likewise.
18243         * lib/unictype/ctype_upper.h: Likewise.
18244         * lib/unictype/decdigit.h: Likewise.
18245         * lib/unictype/digit.h: Likewise.
18246         * lib/unictype/numeric.h: Likewise.
18247         * lib/unictype/pr_alphabetic.h: Likewise.
18248         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18249         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18250         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18251         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18252         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18253         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18254         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18255         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18256         * lib/unictype/pr_case_ignorable.h: Likewise.
18257         * lib/unictype/pr_cased.h: Likewise.
18258         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
18259         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
18260         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
18261         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
18262         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
18263         * lib/unictype/pr_combining.h: Likewise.
18264         * lib/unictype/pr_composite.h: Likewise.
18265         * lib/unictype/pr_currency_symbol.h: Likewise.
18266         * lib/unictype/pr_decimal_digit.h: Likewise.
18267         * lib/unictype/pr_deprecated.h: Likewise.
18268         * lib/unictype/pr_format_control.h: Likewise.
18269         * lib/unictype/pr_grapheme_base.h: Likewise.
18270         * lib/unictype/pr_grapheme_extend.h: Likewise.
18271         * lib/unictype/pr_grapheme_link.h: Likewise.
18272         * lib/unictype/pr_id_continue.h: Likewise.
18273         * lib/unictype/pr_id_start.h: Likewise.
18274         * lib/unictype/pr_ideographic.h: Likewise.
18275         * lib/unictype/pr_lowercase.h: Likewise.
18276         * lib/unictype/pr_math.h: Likewise.
18277         * lib/unictype/pr_numeric.h: Likewise.
18278         * lib/unictype/pr_other_alphabetic.h: Likewise.
18279         * lib/unictype/pr_other_id_continue.h: Likewise.
18280         * lib/unictype/pr_other_math.h: Likewise.
18281         * lib/unictype/pr_punctuation.h: Likewise.
18282         * lib/unictype/pr_sentence_terminal.h: Likewise.
18283         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18284         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18285         * lib/unictype/pr_unified_ideograph.h: Likewise.
18286         * lib/unictype/pr_uppercase.h: Likewise.
18287         * lib/unictype/pr_xid_continue.h: Likewise.
18288         * lib/unictype/pr_xid_start.h: Likewise.
18289         * lib/unictype/scripts.h: Likewise.
18290         * lib/unictype/scripts_byname.gperf: Likewise.
18291         * lib/unictype/sy_java_ident.h: Likewise.
18292         * lib/unigbrk/gbrkprop.h: Likewise.
18293         * lib/unilbrk/lbrkprop1.h: Likewise.
18294         * lib/unilbrk/lbrkprop2.h: Likewise.
18295         * lib/uninorm/decomposition-table2.h: Likewise.
18296         * lib/uniwbrk/wbrkprop.h: Likewise.
18297         * tests/unicase/test-cased.c: Likewise.
18298         * tests/unicase/test-ignorable.c: Likewise.
18299         * tests/unicase/test-uc_tolower.c: Likewise.
18300         * tests/unicase/test-uc_totitle.c: Likewise.
18301         * tests/unicase/test-uc_toupper.c: Likewise.
18302         * tests/unictype/test-categ_C.c: Likewise.
18303         * tests/unictype/test-categ_Cn.c: Likewise.
18304         * tests/unictype/test-categ_L.c: Likewise.
18305         * tests/unictype/test-categ_Ll.c: Likewise.
18306         * tests/unictype/test-categ_Lm.c: Likewise.
18307         * tests/unictype/test-categ_Lo.c: Likewise.
18308         * tests/unictype/test-categ_Lu.c: Likewise.
18309         * tests/unictype/test-categ_M.c: Likewise.
18310         * tests/unictype/test-categ_Mc.c: Likewise.
18311         * tests/unictype/test-categ_Me.c: Likewise.
18312         * tests/unictype/test-categ_Mn.c: Likewise.
18313         * tests/unictype/test-categ_N.c: Likewise.
18314         * tests/unictype/test-categ_Nd.c: Likewise.
18315         * tests/unictype/test-categ_No.c: Likewise.
18316         * tests/unictype/test-categ_P.c: Likewise.
18317         * tests/unictype/test-categ_Po.c: Likewise.
18318         * tests/unictype/test-categ_S.c: Likewise.
18319         * tests/unictype/test-categ_Sc.c: Likewise.
18320         * tests/unictype/test-categ_Sk.c: Likewise.
18321         * tests/unictype/test-categ_Sm.c: Likewise.
18322         * tests/unictype/test-categ_So.c: Likewise.
18323         * tests/unictype/test-ctype_alnum.c: Likewise.
18324         * tests/unictype/test-ctype_alpha.c: Likewise.
18325         * tests/unictype/test-ctype_graph.c: Likewise.
18326         * tests/unictype/test-ctype_lower.c: Likewise.
18327         * tests/unictype/test-ctype_print.c: Likewise.
18328         * tests/unictype/test-ctype_punct.c: Likewise.
18329         * tests/unictype/test-ctype_upper.c: Likewise.
18330         * tests/unictype/test-decdigit.h: Likewise.
18331         * tests/unictype/test-digit.h: Likewise.
18332         * tests/unictype/test-numeric.h: Likewise.
18333         * tests/unictype/test-pr_alphabetic.c: Likewise.
18334         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18335         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
18336         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
18337         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18338         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18339         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18340         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18341         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18342         * tests/unictype/test-pr_case_ignorable.c: Likewise.
18343         * tests/unictype/test-pr_cased.c: Likewise.
18344         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
18345         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
18346         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
18347         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
18348         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
18349         * tests/unictype/test-pr_combining.c: Likewise.
18350         * tests/unictype/test-pr_composite.c: Likewise.
18351         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18352         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18353         * tests/unictype/test-pr_deprecated.c: Likewise.
18354         * tests/unictype/test-pr_format_control.c: Likewise.
18355         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18356         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18357         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18358         * tests/unictype/test-pr_id_continue.c: Likewise.
18359         * tests/unictype/test-pr_id_start.c: Likewise.
18360         * tests/unictype/test-pr_ideographic.c: Likewise.
18361         * tests/unictype/test-pr_lowercase.c: Likewise.
18362         * tests/unictype/test-pr_math.c: Likewise.
18363         * tests/unictype/test-pr_numeric.c: Likewise.
18364         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18365         * tests/unictype/test-pr_other_id_continue.c: Likewise.
18366         * tests/unictype/test-pr_other_math.c: Likewise.
18367         * tests/unictype/test-pr_punctuation.c: Likewise.
18368         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18369         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18370         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18371         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18372         * tests/unictype/test-pr_uppercase.c: Likewise.
18373         * tests/unictype/test-pr_xid_continue.c: Likewise.
18374         * tests/unictype/test-pr_xid_start.c: Likewise.
18375         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18376         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18377         changes.
18378         * lib/unictype/categ_Cc.h: Likewise.
18379         * lib/unictype/categ_Cf.h: Likewise.
18380         * lib/unictype/categ_Co.h: Likewise.
18381         * lib/unictype/categ_Cs.h: Likewise.
18382         * lib/unictype/categ_Lt.h: Likewise.
18383         * lib/unictype/categ_Nl.h: Likewise.
18384         * lib/unictype/categ_Pc.h: Likewise.
18385         * lib/unictype/categ_Pd.h: Likewise.
18386         * lib/unictype/categ_Pe.h: Likewise.
18387         * lib/unictype/categ_Pf.h: Likewise.
18388         * lib/unictype/categ_Pi.h: Likewise.
18389         * lib/unictype/categ_Ps.h: Likewise.
18390         * lib/unictype/categ_Z.h: Likewise.
18391         * lib/unictype/categ_Zl.h: Likewise.
18392         * lib/unictype/categ_Zp.h: Likewise.
18393         * lib/unictype/categ_Zs.h: Likewise.
18394         * lib/unictype/ctype_blank.h: Likewise.
18395         * lib/unictype/ctype_cntrl.h: Likewise.
18396         * lib/unictype/ctype_digit.h: Likewise.
18397         * lib/unictype/ctype_space.h: Likewise.
18398         * lib/unictype/ctype_xdigit.h: Likewise.
18399         * lib/unictype/mirror.h: Likewise.
18400         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18401         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18402         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18403         * lib/unictype/pr_bidi_control.h: Likewise.
18404         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18405         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18406         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18407         * lib/unictype/pr_bidi_pdf.h: Likewise.
18408         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18409         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18410         * lib/unictype/pr_dash.h: Likewise.
18411         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18412         * lib/unictype/pr_diacritic.h: Likewise.
18413         * lib/unictype/pr_extender.h: Likewise.
18414         * lib/unictype/pr_hex_digit.h: Likewise.
18415         * lib/unictype/pr_hyphen.h: Likewise.
18416         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18417         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18418         * lib/unictype/pr_ignorable_control.h: Likewise.
18419         * lib/unictype/pr_iso_control.h: Likewise.
18420         * lib/unictype/pr_join_control.h: Likewise.
18421         * lib/unictype/pr_left_of_pair.h: Likewise.
18422         * lib/unictype/pr_line_separator.h: Likewise.
18423         * lib/unictype/pr_logical_order_exception.h: Likewise.
18424         * lib/unictype/pr_non_break.h: Likewise.
18425         * lib/unictype/pr_not_a_character.h: Likewise.
18426         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18427         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18428         * lib/unictype/pr_other_id_start.h: Likewise.
18429         * lib/unictype/pr_other_lowercase.h: Likewise.
18430         * lib/unictype/pr_other_uppercase.h: Likewise.
18431         * lib/unictype/pr_paired_punctuation.h: Likewise.
18432         * lib/unictype/pr_paragraph_separator.h: Likewise.
18433         * lib/unictype/pr_pattern_syntax.h: Likewise.
18434         * lib/unictype/pr_pattern_white_space.h: Likewise.
18435         * lib/unictype/pr_private_use.h: Likewise.
18436         * lib/unictype/pr_quotation_mark.h: Likewise.
18437         * lib/unictype/pr_radical.h: Likewise.
18438         * lib/unictype/pr_soft_dotted.h: Likewise.
18439         * lib/unictype/pr_space.h: Likewise.
18440         * lib/unictype/pr_titlecase.h: Likewise.
18441         * lib/unictype/pr_variation_selector.h: Likewise.
18442         * lib/unictype/pr_white_space.h: Likewise.
18443         * lib/unictype/pr_zero_width.h: Likewise.
18444         * lib/unictype/sy_c_ident.h: Likewise.
18445         * lib/unictype/sy_c_whitespace.h: Likewise.
18446         * lib/unictype/sy_java_whitespace.h: Likewise.
18447         * lib/uninorm/composition-table.gperf: Likewise.
18448         * lib/uninorm/decomposition-table1.h: Likewise.
18449         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
18450         LB8.
18451         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18452         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18453         * modules/unictype/*: Bump version number of expected libunistring
18454         version.
18455
18456 2011-01-09  Bruno Haible  <bruno@clisp.org>
18457
18458         Update to Unicode 5.2.0.
18459         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
18460         trailing whitespace removed.
18461
18462 2011-01-09  Bruno Haible  <bruno@clisp.org>
18463
18464         New Unicode character properties, from Unicode 5.2.0.
18465         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
18466         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
18467         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
18468         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
18469         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
18470         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
18471         uc_is_property_cased, uc_is_property_case_ignorable,
18472         uc_is_property_changes_when_lowercased,
18473         uc_is_property_changes_when_uppercased,
18474         uc_is_property_changes_when_titlecased,
18475         uc_is_property_changes_when_casefolded,
18476         uc_is_property_changes_when_casemapped): New declarations.
18477         * lib/unictype/pr_byname.gperf: Add the new properties.
18478         * modules/unictype/property-byname (Depends-on): Depend on the new
18479         properties modules.
18480         * modules/unictype/property-all (Depends-on): Likewise.
18481         * MODULES.html.sh (Unicode string functions): Add
18482         unictype/property-case-ignorable, unictype/property-cased,
18483         unictype/property-changes-when-casefolded,
18484         unictype/property-changes-when-casemapped,
18485         unictype/property-changes-when-lowercased,
18486         unictype/property-changes-when-titlecased,
18487         unictype/property-changes-when-uppercased.
18488
18489         New module 'unictype/property-changes-when-casemapped'.
18490         * modules/unictype/property-changes-when-casemapped: New file.
18491         * lib/unictype/pr_changes_when_casemapped.c: New file.
18492         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
18493         generated by gen-uni-tables.
18494         * modules/unictype/property-changes-when-casemapped-tests: New file.
18495         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
18496         automatically generated by gen-uni-tables.
18497
18498         New module 'unictype/property-changes-when-casefolded'.
18499         * modules/unictype/property-changes-when-casefolded: New file.
18500         * lib/unictype/pr_changes_when_casefolded.c: New file.
18501         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
18502         generated by gen-uni-tables.
18503         * modules/unictype/property-changes-when-casefolded-tests: New file.
18504         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
18505         automatically generated by gen-uni-tables.
18506
18507         New module 'unictype/property-changes-when-titlecased'.
18508         * modules/unictype/property-changes-when-titlecased: New file.
18509         * lib/unictype/pr_changes_when_titlecased.c: New file.
18510         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
18511         generated by gen-uni-tables.
18512         * modules/unictype/property-changes-when-titlecased-tests: New file.
18513         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
18514         automatically generated by gen-uni-tables.
18515
18516         New module 'unictype/property-changes-when-uppercased'.
18517         * modules/unictype/property-changes-when-uppercased: New file.
18518         * lib/unictype/pr_changes_when_uppercased.c: New file.
18519         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
18520         generated by gen-uni-tables.
18521         * modules/unictype/property-changes-when-uppercased-tests: New file.
18522         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
18523         automatically generated by gen-uni-tables.
18524
18525         New module 'unictype/property-changes-when-lowercased'.
18526         * modules/unictype/property-changes-when-lowercased: New file.
18527         * lib/unictype/pr_changes_when_lowercased.c: New file.
18528         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
18529         generated by gen-uni-tables.
18530         * modules/unictype/property-changes-when-lowercased-tests: New file.
18531         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
18532         automatically generated by gen-uni-tables.
18533
18534         New module 'unictype/property-case-ignorable'.
18535         * modules/unictype/property-case-ignorable: New file.
18536         * lib/unictype/pr_case_ignorable.c: New file.
18537         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
18538         by gen-uni-tables.
18539         * modules/unictype/property-case-ignorable-tests: New file.
18540         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
18541         generated by gen-uni-tables.
18542
18543         New module 'unictype/property-cased'.
18544         * modules/unictype/property-cased: New file.
18545         * lib/unictype/pr_cased.c: New file.
18546         * lib/unictype/pr_cased.h: New file, automatically generated by
18547         gen-uni-tables.
18548         * modules/unictype/property-cased-tests: New file.
18549         * tests/unictype/test-pr_cased.c: New file, automatically generated by
18550         gen-uni-tables.
18551
18552 2011-01-09  Bruno Haible  <bruno@clisp.org>
18553
18554         Update to Unicode 5.2.0.
18555         * lib/gen-uni-tables.c (output_predicate, output_category,
18556         output_combclass, output_bidi_category, output_decimal_digit_test,
18557         output_decimal_digit, output_digit_test, output_digit,
18558         output_numeric_test, output_numeric, output_mirror, output_scripts,
18559         output_scripts_byname, output_blocks, output_ident_category): Fix
18560         comment header.
18561         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
18562         get_wbp.
18563         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
18564         items.
18565         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
18566         Changes_When_Lowercased, Changes_When_Uppercased,
18567         Changes_When_Titlecased, Changes_When_Casefolded,
18568         Changes_When_Casemapped.
18569         (is_property_alphabetic, is_property_default_ignorable_code_point):
18570         Update for Unicode 5.2.0.
18571         (is_property_cased, is_property_case_ignorable,
18572         is_property_changes_when_lowercased,
18573         is_property_changes_when_uppercased,
18574         is_property_changes_when_titlecased,
18575         is_property_changes_when_casefolded,
18576         is_property_changes_when_casemapped): New functions.
18577         (output_properties): Output also the properties cased, case_ignorable,
18578         changes_when_lowercased, changes_when_uppercased,
18579         changes_when_titlecased, changes_when_casefolded,
18580         changes_when_casemapped.
18581         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
18582         Unicode TR#11 revision 17 -> 19.
18583         (LBP_CP): New enumeration value.
18584         (LBP_*): Adjust values accordingly.
18585         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18586         TR#14 revision 22 -> 24.
18587         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
18588         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
18589         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18590         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
18591         is_WBP_MIDLETTER.
18592         (output_composition_tables): Allow for 24 bits instead of 16 bits in
18593         the code1 and code2 of each composition rule.
18594         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
18595         * lib/unicase/ignorable.h: Likewise.
18596         * lib/unicase/tocasefold.h: Likewise.
18597         * lib/unicase/tolower.h: Likewise.
18598         * lib/unicase/totitle.h: Likewise.
18599         * lib/unicase/toupper.h: Likewise.
18600         * lib/unictype/bidi_of.h: Likewise.
18601         * lib/unictype/blocks.h: Likewise.
18602         * lib/unictype/categ_C.h: Likewise.
18603         * lib/unictype/categ_Cf.h: Likewise.
18604         * lib/unictype/categ_Cn.h: Likewise.
18605         * lib/unictype/categ_L.h: Likewise.
18606         * lib/unictype/categ_Ll.h: Likewise.
18607         * lib/unictype/categ_Lm.h: Likewise.
18608         * lib/unictype/categ_Lo.h: Likewise.
18609         * lib/unictype/categ_Lu.h: Likewise.
18610         * lib/unictype/categ_M.h: Likewise.
18611         * lib/unictype/categ_Mc.h: Likewise.
18612         * lib/unictype/categ_Mn.h: Likewise.
18613         * lib/unictype/categ_N.h: Likewise.
18614         * lib/unictype/categ_Nd.h: Likewise.
18615         * lib/unictype/categ_Nl.h: Likewise.
18616         * lib/unictype/categ_No.h: Likewise.
18617         * lib/unictype/categ_P.h: Likewise.
18618         * lib/unictype/categ_Pd.h: Likewise.
18619         * lib/unictype/categ_Po.h: Likewise.
18620         * lib/unictype/categ_S.h: Likewise.
18621         * lib/unictype/categ_Sc.h: Likewise.
18622         * lib/unictype/categ_So.h: Likewise.
18623         * lib/unictype/categ_of.h: Likewise.
18624         * lib/unictype/combining.h: Likewise.
18625         * lib/unictype/ctype_alnum.h: Likewise.
18626         * lib/unictype/ctype_alpha.h: Likewise.
18627         * lib/unictype/ctype_graph.h: Likewise.
18628         * lib/unictype/ctype_lower.h: Likewise.
18629         * lib/unictype/ctype_print.h: Likewise.
18630         * lib/unictype/ctype_punct.h: Likewise.
18631         * lib/unictype/ctype_upper.h: Likewise.
18632         * lib/unictype/decdigit.h: Likewise.
18633         * lib/unictype/digit.h: Likewise.
18634         * lib/unictype/numeric.h: Likewise.
18635         * lib/unictype/pr_alphabetic.h: Likewise.
18636         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18637         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18638         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18639         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18640         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18641         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18642         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18643         * lib/unictype/pr_combining.h: Likewise.
18644         * lib/unictype/pr_composite.h: Likewise.
18645         * lib/unictype/pr_currency_symbol.h: Likewise.
18646         * lib/unictype/pr_dash.h: Likewise.
18647         * lib/unictype/pr_decimal_digit.h: Likewise.
18648         * lib/unictype/pr_deprecated.h: Likewise.
18649         * lib/unictype/pr_diacritic.h: Likewise.
18650         * lib/unictype/pr_extender.h: Likewise.
18651         * lib/unictype/pr_grapheme_base.h: Likewise.
18652         * lib/unictype/pr_grapheme_extend.h: Likewise.
18653         * lib/unictype/pr_grapheme_link.h: Likewise.
18654         * lib/unictype/pr_id_continue.h: Likewise.
18655         * lib/unictype/pr_id_start.h: Likewise.
18656         * lib/unictype/pr_ideographic.h: Likewise.
18657         * lib/unictype/pr_ignorable_control.h: Likewise.
18658         * lib/unictype/pr_logical_order_exception.h: Likewise.
18659         * lib/unictype/pr_lowercase.h: Likewise.
18660         * lib/unictype/pr_numeric.h: Likewise.
18661         * lib/unictype/pr_other_alphabetic.h: Likewise.
18662         * lib/unictype/pr_punctuation.h: Likewise.
18663         * lib/unictype/pr_sentence_terminal.h: Likewise.
18664         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18665         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18666         * lib/unictype/pr_unified_ideograph.h: Likewise.
18667         * lib/unictype/pr_uppercase.h: Likewise.
18668         * lib/unictype/pr_xid_continue.h: Likewise.
18669         * lib/unictype/pr_xid_start.h: Likewise.
18670         * lib/unictype/pr_zero_width.h: Likewise.
18671         * lib/unictype/scripts.h: Likewise.
18672         * lib/unictype/scripts_byname.gperf: Likewise.
18673         * lib/unictype/sy_java_ident.h: Likewise.
18674         * lib/unigbrk/gbrkprop.h: Likewise.
18675         * lib/unilbrk/lbrkprop1.h: Likewise.
18676         * lib/unilbrk/lbrkprop2.h: Likewise.
18677         * lib/unilbrk/lbrktables.h: Likewise.
18678         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
18679         LBP_CP. Implement rule LB30.
18680         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
18681         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
18682         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
18683         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
18684         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
18685         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
18686         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
18687         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
18688         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
18689         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
18690         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
18691         bits instead of 16 bits in the code1 and code2 of each composition
18692         rule.
18693         (uc_composition): Update for Unicode 5.2.0.
18694         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
18695         * lib/uninorm/decomposition-table2.h: Likewise.
18696         * lib/uniwbrk/wbrkprop.h: Likewise.
18697         * tests/unicase/test-cased.c: Likewise.
18698         * tests/unicase/test-ignorable.c: Likewise.
18699         * tests/unicase/test-uc_tolower.c: Likewise.
18700         * tests/unicase/test-uc_totitle.c: Likewise.
18701         * tests/unicase/test-uc_toupper.c: Likewise.
18702         * tests/unictype/test-categ_C.c: Likewise.
18703         * tests/unictype/test-categ_Cf.c: Likewise.
18704         * tests/unictype/test-categ_Cn.c: Likewise.
18705         * tests/unictype/test-categ_L.c: Likewise.
18706         * tests/unictype/test-categ_Ll.c: Likewise.
18707         * tests/unictype/test-categ_Lm.c: Likewise.
18708         * tests/unictype/test-categ_Lo.c: Likewise.
18709         * tests/unictype/test-categ_Lu.c: Likewise.
18710         * tests/unictype/test-categ_M.c: Likewise.
18711         * tests/unictype/test-categ_Mc.c: Likewise.
18712         * tests/unictype/test-categ_Mn.c: Likewise.
18713         * tests/unictype/test-categ_N.c: Likewise.
18714         * tests/unictype/test-categ_Nd.c: Likewise.
18715         * tests/unictype/test-categ_Nl.c: Likewise.
18716         * tests/unictype/test-categ_No.c: Likewise.
18717         * tests/unictype/test-categ_P.c: Likewise.
18718         * tests/unictype/test-categ_Pd.c: Likewise.
18719         * tests/unictype/test-categ_Po.c: Likewise.
18720         * tests/unictype/test-categ_S.c: Likewise.
18721         * tests/unictype/test-categ_Sc.c: Likewise.
18722         * tests/unictype/test-categ_So.c: Likewise.
18723         * tests/unictype/test-ctype_alnum.c: Likewise.
18724         * tests/unictype/test-ctype_alpha.c: Likewise.
18725         * tests/unictype/test-ctype_graph.c: Likewise.
18726         * tests/unictype/test-ctype_lower.c: Likewise.
18727         * tests/unictype/test-ctype_print.c: Likewise.
18728         * tests/unictype/test-ctype_punct.c: Likewise.
18729         * tests/unictype/test-ctype_upper.c: Likewise.
18730         * tests/unictype/test-decdigit.h: Likewise.
18731         * tests/unictype/test-digit.h: Likewise.
18732         * tests/unictype/test-numeric.h: Likewise.
18733         * tests/unictype/test-pr_alphabetic.c: Likewise.
18734         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18735         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18736         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
18737         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18738         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18739         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18740         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18741         * tests/unictype/test-pr_combining.c: Likewise.
18742         * tests/unictype/test-pr_composite.c: Likewise.
18743         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18744         * tests/unictype/test-pr_dash.c: Likewise.
18745         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18746         * tests/unictype/test-pr_deprecated.c: Likewise.
18747         * tests/unictype/test-pr_diacritic.c: Likewise.
18748         * tests/unictype/test-pr_extender.c: Likewise.
18749         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18750         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18751         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18752         * tests/unictype/test-pr_id_continue.c: Likewise.
18753         * tests/unictype/test-pr_id_start.c: Likewise.
18754         * tests/unictype/test-pr_ideographic.c: Likewise.
18755         * tests/unictype/test-pr_ignorable_control.c: Likewise.
18756         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
18757         * tests/unictype/test-pr_lowercase.c: Likewise.
18758         * tests/unictype/test-pr_numeric.c: Likewise.
18759         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18760         * tests/unictype/test-pr_punctuation.c: Likewise.
18761         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18762         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18763         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18764         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18765         * tests/unictype/test-pr_uppercase.c: Likewise.
18766         * tests/unictype/test-pr_xid_continue.c: Likewise.
18767         * tests/unictype/test-pr_xid_start.c: Likewise.
18768         * tests/unictype/test-pr_zero_width.c: Likewise.
18769         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18770         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
18771         changed behaviour: line breaking is now disallowed between a letter
18772         or '=' and '('.
18773         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18774         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18775         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18776         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
18777         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18778         lib/uniwidth/width.c.
18779         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
18780         without comments, but with the original copyright notice.
18781         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18782         changes.
18783         * lib/unictype/categ_Cc.h: Likewise.
18784         * lib/unictype/categ_Co.h: Likewise.
18785         * lib/unictype/categ_Cs.h: Likewise.
18786         * lib/unictype/categ_Lt.h: Likewise.
18787         * lib/unictype/categ_Me.h: Likewise.
18788         * lib/unictype/categ_Pc.h: Likewise.
18789         * lib/unictype/categ_Pe.h: Likewise.
18790         * lib/unictype/categ_Pf.h: Likewise.
18791         * lib/unictype/categ_Pi.h: Likewise.
18792         * lib/unictype/categ_Ps.h: Likewise.
18793         * lib/unictype/categ_Sk.h: Likewise.
18794         * lib/unictype/categ_Sm.h: Likewise.
18795         * lib/unictype/categ_Z.h: Likewise.
18796         * lib/unictype/categ_Zl.h: Likewise.
18797         * lib/unictype/categ_Zp.h: Likewise.
18798         * lib/unictype/categ_Zs.h: Likewise.
18799         * lib/unictype/ctype_blank.h: Likewise.
18800         * lib/unictype/ctype_cntrl.h: Likewise.
18801         * lib/unictype/ctype_digit.h: Likewise.
18802         * lib/unictype/ctype_space.h: Likewise.
18803         * lib/unictype/ctype_xdigit.h: Likewise.
18804         * lib/unictype/mirror.h: Likewise.
18805         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18806         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18807         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18808         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18809         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18810         * lib/unictype/pr_bidi_control.h: Likewise.
18811         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18812         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18813         * lib/unictype/pr_bidi_pdf.h: Likewise.
18814         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18815         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18816         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18817         * lib/unictype/pr_format_control.h: Likewise.
18818         * lib/unictype/pr_hex_digit.h: Likewise.
18819         * lib/unictype/pr_hyphen.h: Likewise.
18820         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18821         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18822         * lib/unictype/pr_iso_control.h: Likewise.
18823         * lib/unictype/pr_join_control.h: Likewise.
18824         * lib/unictype/pr_left_of_pair.h: Likewise.
18825         * lib/unictype/pr_line_separator.h: Likewise.
18826         * lib/unictype/pr_math.h: Likewise.
18827         * lib/unictype/pr_non_break.h: Likewise.
18828         * lib/unictype/pr_not_a_character.h: Likewise.
18829         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18830         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18831         * lib/unictype/pr_other_id_continue.h: Likewise.
18832         * lib/unictype/pr_other_id_start.h: Likewise.
18833         * lib/unictype/pr_other_lowercase.h: Likewise.
18834         * lib/unictype/pr_other_math.h: Likewise.
18835         * lib/unictype/pr_other_uppercase.h: Likewise.
18836         * lib/unictype/pr_paired_punctuation.h: Likewise.
18837         * lib/unictype/pr_paragraph_separator.h: Likewise.
18838         * lib/unictype/pr_pattern_syntax.h: Likewise.
18839         * lib/unictype/pr_pattern_white_space.h: Likewise.
18840         * lib/unictype/pr_private_use.h: Likewise.
18841         * lib/unictype/pr_quotation_mark.h: Likewise.
18842         * lib/unictype/pr_radical.h: Likewise.
18843         * lib/unictype/pr_soft_dotted.h: Likewise.
18844         * lib/unictype/pr_space.h: Likewise.
18845         * lib/unictype/pr_titlecase.h: Likewise.
18846         * lib/unictype/pr_variation_selector.h: Likewise.
18847         * lib/unictype/pr_white_space.h: Likewise.
18848         * lib/unictype/sy_c_ident.h: Likewise.
18849         * lib/unictype/sy_c_whitespace.h: Likewise.
18850         * lib/unictype/sy_java_whitespace.h: Likewise.
18851         * modules/uni*/*: Bump version number of expected libunistring version.
18852         Reported by Simon Josefsson.
18853
18854 2011-01-09  Karl Heuer  <kwzh@gnu.org>
18855
18856         useless-if-before-free: fix typo in --help and make the internal,
18857         automatic version date update process work once again.
18858         --help output contained a NUL character instead of the
18859         backslash-zero that was intended.  Also, the "must lie within
18860         the first 8 lines" line is on line 9, and hence not getting
18861         automatically updated.
18862         * build-aux/useless-if-before-free: Fix the former by adding a
18863         backslash, and the latter by condensing the three lines of what-it-does
18864         to a single line, leaving one line of slack for the future.
18865
18866 2011-01-09  Bruno Haible  <bruno@clisp.org>
18867
18868         uniwidth/width: Fix width of U+1D173..U+1D17A.
18869         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
18870         symbolic_width, output_width_property_test): New functions.
18871         (main): Invoke output_nonspacing_property, output_width_property_test.
18872         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
18873         U+1D173..U+1D17A.
18874         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
18875         1.
18876         * modules/uniwidth/*: Bump version number of expected libunistring
18877         version.
18878         * modules/unilbrk/*: Likewise.
18879
18880 2011-01-08  Bruno Haible  <bruno@clisp.org>
18881
18882         uninorm tests: Preserve copyright of Unicode data file.
18883         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
18884         Mention modifications.
18885
18886 2011-01-08  Bruno Haible  <bruno@clisp.org>
18887
18888         gen-uni-tables: Prepare for Unicode 5.2.0.
18889         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
18890         (debug_output_lbp, output_lbp): Update.
18891
18892 2011-01-08  Bruno Haible  <bruno@clisp.org>
18893
18894         unilbrk: Clarify gen-uni-tables.c code.
18895         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
18896         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
18897         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
18898
18899 2011-01-07  Bruno Haible  <bruno@clisp.org>
18900
18901         strtod: Restore errno when successfully parsing Infinity or NaN.
18902         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
18903         restore the original errno.
18904
18905 2011-01-07  Bruno Haible  <bruno@clisp.org>
18906
18907         remove test: Avoid failure on HP-UX 11.
18908         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
18909
18910 2011-01-07  Bruno Haible  <bruno@clisp.org>
18911
18912         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
18913         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
18914         error code.
18915
18916 2011-01-07  Pádraig Brady <P@draigBrady.com>
18917
18918         ignore-value: fixup comments, and add Eric Blake
18919         as an author since he rewrote the macros.
18920         * lib/ignore-value.h (ignore_value):  State that
18921         we now support aggregates.  Also specify exactly
18922         when the GCC warn_unused_result feature was added.
18923
18924 2011-01-06  Eric Blake  <eblake@redhat.com>
18925
18926         ignore-value: support aggregate types
18927         * lib/ignore-value.h (ignore_value): Provide separate gcc
18928         definition.
18929         * modules/ignore-value-tests: New test module.
18930         * tests/test-ignore-value.c: New test.
18931
18932         maint.mk: improve sc_prohibit_strcmp regex
18933         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
18934         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
18935         definition of STRNEQ.
18936
18937         signal: work around Haiku issue with SIGBUS
18938         * lib/siglist.h: Add comment.
18939         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
18940         strsignal's favoring of SIGSEGV.
18941         * tests/test-signal.c (main): Avoid test failure.
18942         * doc/posix-headers/signal.texi (signal.h): Document the issue.
18943         Reported by Scott McCreary.
18944
18945         maint.mk: add pre-release check to ensure submodule commits are public
18946         * top/maint.mk (public-submodule-commit): New rule.
18947         (submodule-checks): New variable.
18948         (alpha beta stable): Depend on the variable.
18949
18950 2011-01-05  Pádraig Brady <P@draigBrady.com>
18951         and Jim Meyering  <meyering@redhat.com>
18952
18953         ignore-value: make ignore_value more generic; deprecate ignore_ptr
18954         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
18955         (ATTRIBUTE_DEPRECATED): Define.
18956         (_ignore_case): New function.
18957         (ignore_value): New macro, to replace the old function.
18958         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
18959         * modules/ignore-value (Depends-on): Add stdint.
18960
18961 2011-01-04  Eric Blake  <eblake@redhat.com>
18962
18963         doc: regenerate INSTALL
18964         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
18965         @firstparagraphindent support, now that autoconf dropped it.
18966         (INSTALL_PRELUDE): Reinstate old macro.
18967         * doc/install.texi: Resync from autoconf.
18968         * doc/INSTALL: Reflect recent autoconf update.
18969         * doc/INSTALL.ISO: Likewise.
18970         * doc/INSTALL.UTF-8: Likewise.
18971         Reported by Karl Berry.
18972
18973 2011-01-04  Bruce Korb  <address@hidden>
18974
18975         git-version-gen: avoid a sub-shell
18976         * build-aux/git-version-gen: Redirect stderr in `...` via
18977         "exec 2>...", rather than via an added sub-shell.
18978
18979 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
18980
18981         git-version-gen: use (...) rather than sh -c '...'
18982         * build-aux/git-version-gen: Rather than hard-coding a shell's name
18983         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
18984
18985 2011-01-03  Jim Meyering  <meyering@redhat.com>
18986
18987         git-version-gen: convert leading TABs to spaces
18988         * build-aux/git-version-gen: Expand leading TABs.
18989
18990         git-version-gen: handle failed "git rev-list"
18991         * build-aux/git-version-gen: Rather than leaking a "fatal" error
18992         from git and proceeding as if it had succeeded but printed no SHA1
18993         checksums, suppress the diagnostic and handle the failure.
18994         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
18995
18996         git-version-gen: include command name in one more diagnostic
18997         * build-aux/git-version-gen: When the required .tarball-version file
18998         was missing or unreadable, you might see the diagnostic from "cat",
18999         but no trace of the name of the invoking script.  Now, you still see
19000         the diagnostic from cat, but also get one from "git-version-gen: ".
19001         Inspired by a patch from Bruce Korb.
19002
19003         update-copyright: adjust test to match changed code
19004         * tests/test-update-copyright.sh: Change test's expected output
19005         to match new actual output.
19006
19007 2011-01-02  Bruno Haible  <bruno@clisp.org>
19008
19009         getlogin_r: Avoid test failure on HP-UX 11.
19010         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
19011         ERANGE when the second argument is zero.
19012         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
19013         portability problem.
19014
19015 2011-01-02  Bruce Korb  <bkorb@gnu.org>
19016
19017         * build-aux/update-copyright: doc Simon's changes
19018
19019 2011-01-02  Simon Josefsson  <simon@josefsson.org>
19020
19021         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
19022         environment variable.
19023
19024 2011-01-02  Bruno Haible  <bruno@clisp.org>
19025
19026         unigbrk: Avoid gcc warnings.
19027         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
19028         unused variable.
19029         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
19030         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
19031         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
19032         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
19033         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
19034         Change type of first argument to 'const char *'.
19035         (main): Remove unused variable.
19036         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
19037         type of first argument to 'const char *'.
19038         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
19039         Likewise.
19040         (main): Change type of variable 's'.
19041         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
19042         to 'int'.
19043
19044 2011-01-02  Bruno Haible  <bruno@clisp.org>
19045
19046         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
19047         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
19048         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
19049         bug.
19050         * lib/pwrite.c: Undo 2010-12-31 patch.
19051         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
19052
19053 2011-01-02  Bruno Haible  <bruno@clisp.org>
19054
19055         pread: Fix test whether it works.
19056         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
19057
19058 2011-01-02  Bruno Haible  <bruno@clisp.org>
19059
19060         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
19061         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
19062         ends in "6". Don't require a specific month name. Try also the locale
19063         names found on HP-UX 11 and Solaris 7.
19064
19065 2011-01-02  Bruno Haible  <bruno@clisp.org>
19066
19067         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
19068         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
19069         C linkage.
19070         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
19071
19072 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19073
19074         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
19075         for consistency, since the "cluster" term is not used elsewhere.
19076         * lib/unigbrk.in.h: Update name.
19077         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
19078         * lib/unigbrk/u16-grapheme-next.c: Update name.
19079         * lib/unigbrk/u16-grapheme-prev.c: Update name.
19080         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
19081         * lib/unigbrk/u32-grapheme-next.c: Update name.
19082         * lib/unigbrk/u32-grapheme-prev.c: Update name.
19083         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
19084         * lib/unigbrk/u8-grapheme-next.c: Update name.
19085         * lib/unigbrk/u8-grapheme-prev.c: Update name.
19086         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
19087         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
19088         Suggested by Bruno Haible.
19089
19090 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19091
19092         Remove module 'u8-grapheme-len' as too redundant with
19093         'u8-grapheme-next'.
19094         * modules/unigbrk/u8-grapheme-len: Delete file.
19095         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
19096         * lib/unigbrk.in.h: Remove prototype for deleted function.
19097         * lib/unigbrk/u8-grapheme-len.c: Delete file.
19098         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
19099
19100         Remove module 'u16-grapheme-len' as too redundant with
19101         'u16-grapheme-next'.
19102         * modules/unigbrk/u16-grapheme-len: Delete file.
19103         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
19104         * lib/unigbrk.in.h: Remove prototype for deleted function.
19105         * lib/unigbrk/u16-grapheme-len.c: Delete file.
19106         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
19107
19108         Remove module 'u32-grapheme-len' as too redundant with
19109         'u32-grapheme-next'.
19110         * modules/unigbrk/u32-grapheme-len: Delete file.
19111         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
19112         * lib/unigbrk.in.h: Remove prototype for deleted function.
19113         * lib/unigbrk/u32-grapheme-len.c: Delete file.
19114         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
19115
19116         Suggested by Bruno Haible.
19117
19118 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19119
19120         * unigbrk.in.h: Fix typo: "ben" => "been".
19121         Reported by Bruno Haible.
19122
19123 2011-01-01  Jim Meyering  <meyering@redhat.com>
19124
19125         maint: update almost all copyright ranges to include 2011
19126         Run the new "make update-copyright" rule.
19127
19128 2011-01-01  Jim Meyering  <meyering@redhat.com>
19129
19130         maint: update-copyright: exempt doc/INSTALL*
19131         * Makefile (update-copyright): Also exclude doc/INSTALL*,
19132         since they are generated.  Suggested by Bruno Haible.
19133
19134 2011-01-01  Jim Meyering  <meyering@redhat.com>
19135
19136         maint: refine the update-copyright rule
19137         * Makefile (update-copyright): Also exclude any file that includes
19138         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
19139         code that merely generates the comment.
19140
19141 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19142
19143         New module 'u8-grapheme-len'.
19144         * modules/unigbrk/u8-grapheme-len: New file.
19145         * modules/unigbrk/u8-grapheme-len-tests: New file.
19146         * lib/unigbrk.in.h: Add prototype for new function.
19147         * lib/unigbrk/u8-grapheme-len.c: New file.
19148         * tests/unigbrk/test-u8-grapheme-len.c: New file.
19149
19150         New module 'u16-grapheme-len'.
19151         * modules/unigbrk/u16-grapheme-len: New file.
19152         * modules/unigbrk/u16-grapheme-len-tests: New file.
19153         * lib/unigbrk.in.h: Add prototype for new function.
19154         * lib/unigbrk/u16-grapheme-len.c: New file.
19155         * tests/unigbrk/test-u16-grapheme-len.c: New file.
19156
19157         New module 'u32-grapheme-len'.
19158         * modules/unigbrk/u32-grapheme-len: New file.
19159         * modules/unigbrk/u32-grapheme-len-tests: New file.
19160         * lib/unigbrk.in.h: Add prototype for new function.
19161         * lib/unigbrk/u32-grapheme-len.c: New file.
19162         * tests/unigbrk/test-u32-grapheme-len.c: New file.
19163
19164         New module 'u8-grapheme-next'.
19165         * modules/unigbrk/u8-grapheme-next: New file.
19166         * modules/unigbrk/u8-grapheme-next-tests: New file.
19167         * lib/unigbrk.in.h: Add prototype for new function.
19168         * lib/unigbrk/u8-grapheme-next.c: New file.
19169         * tests/unigbrk/test-u8-grapheme-next.c: New file.
19170
19171         New module 'u16-grapheme-next'.
19172         * modules/unigbrk/u16-grapheme-next: New file.
19173         * modules/unigbrk/u16-grapheme-next-tests: New file.
19174         * lib/unigbrk.in.h: Add prototype for new function.
19175         * lib/unigbrk/u16-grapheme-next.c: New file.
19176         * tests/unigbrk/test-u16-grapheme-next.c: New file.
19177
19178         New module 'u32-grapheme-next'.
19179         * modules/unigbrk/u32-grapheme-next: New file.
19180         * modules/unigbrk/u32-grapheme-next-tests: New file.
19181         * lib/unigbrk.in.h: Add prototype for new function.
19182         * lib/unigbrk/u32-grapheme-next.c: New file.
19183         * tests/unigbrk/test-u32-grapheme-next.c: New file.
19184
19185         New module 'u8-grapheme-prev'.
19186         * modules/unigbrk/u8-grapheme-prev: New file.
19187         * modules/unigbrk/u8-grapheme-prev-tests: New file.
19188         * lib/unigbrk.in.h: Add prototype for new function.
19189         * lib/unigbrk/u8-grapheme-prev.c: New file.
19190         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
19191
19192         New module 'u16-grapheme-prev'.
19193         * modules/unigbrk/u16-grapheme-prev: New file.
19194         * modules/unigbrk/u16-grapheme-prev-tests: New file.
19195         * lib/unigbrk.in.h: Add prototype for new function.
19196         * lib/unigbrk/u16-grapheme-prev.c: New file.
19197         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
19198
19199         New module 'u32-grapheme-prev'.
19200         * modules/unigbrk/u32-grapheme-prev: New file.
19201         * modules/unigbrk/u32-grapheme-prev-tests: New file.
19202         * lib/unigbrk.in.h: Add prototype for new function.
19203         * lib/unigbrk/u32-grapheme-prev.c: New file.
19204         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
19205
19206         New module 'u8-grapheme-breaks'.
19207         * modules/unigbrk/u8-grapheme-breaks: New file.
19208         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
19209         * lib/unigbrk.in.h: Add prototype for new function.
19210         * lib/unigbrk/u8-grapheme-breaks.c: New file.
19211         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
19212
19213         New module 'u16-grapheme-breaks'.
19214         * modules/unigbrk/u16-grapheme-breaks: New file.
19215         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
19216         * lib/unigbrk.in.h: Add prototype for new function.
19217         * lib/unigbrk/u16-grapheme-breaks.c: New file.
19218         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
19219
19220         New module 'u32-grapheme-breaks'.
19221         * modules/unigbrk/u32-grapheme-breaks: New file.
19222         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
19223         * lib/unigbrk.in.h: Add prototype for new function.
19224         * lib/unigbrk/u32-grapheme-breaks.c: New file.
19225         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
19226
19227         New module 'ulc-grapheme-breaks'.
19228         * modules/unigbrk/ulc-grapheme-breaks: New file.
19229         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
19230         * m4/locale-ar.m4: New file.
19231         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
19232         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
19233         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
19234
19235 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19236
19237         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
19238         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
19239         modified how this file was generated before I initially submitted
19240         the module, but failed to regenerate it.  This meant that several
19241         of the level2 entries were wrong.
19242         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
19243         Remove the division-by-2 that is folded into the table now that
19244         gbrkprop.h has been regenerated properly.  Now -1 entries are
19245         handled correctly.
19246
19247         New module 'unigbrk/uc-gbrk-prop-tests'.
19248         * modules/unigbrk/uc-gbrk-prop-tests: New file.
19249         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
19250         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
19251         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
19252
19253 2011-01-01  Bruno Haible  <bruno@clisp.org>
19254
19255         Avoid use of hexadecimal escapes.
19256         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
19257         instead of hexadecimal escapes.
19258
19259 2011-01-01  Jim Meyering  <meyering@redhat.com>
19260
19261         maint: new rule to update copyright year ranges
19262         * Makefile (update-copyright): New rule.
19263
19264         maint: indent with TABs in Makefile
19265         * Makefile: Expand leading sequences of spaces to TABs
19266
19267         version-etc: update the copyright year it reports
19268         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
19269
19270 2010-12-31  Bruno Haible  <bruno@clisp.org>
19271
19272         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
19273         * lib/isfinite.c (zerof, zerod, zerol): New variables.
19274         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
19275         zero.
19276
19277 2010-12-31  Bruno Haible  <bruno@clisp.org>
19278
19279         pwrite: Work around HP-UX 11.11 bug.
19280         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
19281         works and set REPLACE_PWRITE if not.
19282         * lib/pwrite.c (pwrite): Add an implementation that uses the system
19283         function.
19284         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
19285
19286 2010-12-31  Bruno Haible  <bruno@clisp.org>
19287
19288         pread: Work around HP-UX 11 bugs.
19289         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
19290         and set REPLACE_PREAD if not.
19291         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
19292
19293 2010-12-31  Eric Blake  <eblake@redhat.com>
19294
19295         nl_langinfo: fix YESEXPR on Irix 6.5
19296         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
19297         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
19298         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
19299         it.
19300
19301 2010-12-31  Bruno Haible  <bruno@clisp.org>
19302
19303         iconv: Document HP-UX 11 bug.
19304         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
19305
19306 2010-12-31  Bruno Haible  <bruno@clisp.org>
19307
19308         ldexpl: Fix link error on HP-UX 11.
19309         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
19310         LDEXPL_LIBM, using $ISNANL_LIBM.
19311
19312 2010-12-31  Eric Blake  <eblake@redhat.com>
19313
19314         ftello: avoid compilation failure with SunStudio c89
19315         * lib/ftello.c (ftello): Use lseek, not llseek.
19316
19317         tests: avoid failing coreutils tests on cygwin
19318         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
19319         (create_exe_shims_): Return 0 when skipping.
19320
19321 2010-12-31  Bruno Haible  <bruno@clisp.org>
19322
19323         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
19324         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
19325
19326 2010-12-31  Bruno Haible  <bruno@clisp.org>
19327
19328         waitpid: Fix link error in C++ mode.
19329         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
19330
19331 2010-12-31  Bruno Haible  <bruno@clisp.org>
19332
19333         isnan: Use GCC built-ins when possible.
19334         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
19335         __builtin_isnan.
19336         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
19337         (isnan): Define using GCC built-ins for GCC >= 4.0.
19338
19339 2010-12-31  Bruno Haible  <bruno@clisp.org>
19340
19341         isnand: Fix mistake.
19342         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
19343         __builtin_isnand.
19344
19345 2010-12-31  Bruno Haible  <bruno@clisp.org>
19346
19347         open: Avoid C++ error on HP-UX 11.
19348         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
19349
19350 2010-12-31  Bruno Haible  <bruno@clisp.org>
19351
19352         time_r: Add missing declarations on HP-UX 11.
19353         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
19354         instead of HAVE_LOCALTIME_R.
19355         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
19356         HAVE_LOCALTIME_R always.
19357         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
19358         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
19359         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
19360         HAVE_LOCALTIME_R.
19361         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
19362         * doc/posix-functions/localtime_r.texi: Likewise.
19363
19364 2010-12-29  Eric Blake  <eblake@redhat.com>
19365
19366         mountlist: tweak previous commit
19367         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
19368         Reported by Paul Eggert.
19369
19370         mountlist: fix local drive detection on cygwin
19371         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
19372         that works for cygwin.
19373
19374 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19375
19376         ftoastr, snprintf: ftoastr + snprintf module
19377         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
19378         since the snprintf module now should be good enough here.
19379         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
19380         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
19381         and gl_MODULE_INDICATOR([snprintf]), but the former enables
19382         GNULIB_SNPRINTF only for the test directory, and the latter
19383         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
19384         seems to suffice by itself.
19385
19386 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19387
19388         alloca: one step towards thread-safety
19389         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
19390         need for a static variable.  All callers changed.  This does not
19391         make the alloca replacement thread-safe, but it's one step.
19392
19393         tests: minor indenting change
19394         * tests/init.sh: Sync from coreutils housekeeping patch
19395         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
19396         to keep lines within 80 columns.
19397
19398 2010-12-28  Jim Meyering  <meyering@redhat.com>
19399
19400         regex: don't infloop on persistent failing calloc
19401         * lib/regexec.c (build_trtable): Return failure indication upon
19402         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19403         In glibc, this was fixed for version 2.13:
19404         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
19405
19406 2010-12-28  Bruno Haible  <bruno@clisp.org>
19407             Paul Eggert <eggert@cs.ucla.edu>
19408
19409         linkat: Make implementation robust against system behaviour variations.
19410         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
19411         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
19412         way, and to -2 if it needs a generic runtime test.
19413         * lib/linkat.c (solaris_optimized_link_immediate,
19414         solaris_optimized_link_follow): New functions.
19415         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
19416         (check_same_link): Use it.
19417
19418 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
19419
19420         New module 'unigbrk/base'.
19421         * modules/unigbrk/base: New file.
19422         * lib/unigbrk.in.h: New file.
19423
19424         New module 'unigbrk/uc-gbrk-prop'.
19425         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
19426         * modules/unigbrk/uc-gbrk-prop: New file.
19427         * lib/unigbrk/gbrkprop.h: New file.
19428         * lib/unigbrk/uc-gbrk-prop.c: New file.
19429
19430         New module 'unigbrk/uc-is-grapheme-break'.
19431         * modules/unigbrk/uc-is-grapheme-break: New file.
19432         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
19433         * lib/unigbrk/uc-is-grapheme-break.c: New file.
19434         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
19435         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
19436         * tests/unigbrk/GraphemeBreakTest.txt: New file.
19437
19438         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
19439
19440 2010-12-27  Bruno Haible  <bruno@clisp.org>
19441
19442         linkat test: Avoid failure on Solaris 11 2010-11.
19443         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
19444
19445 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19446
19447         utimens: work around glibc rounding bug on more platforms
19448         * lib/utimens.c (fdutimens): Work around rounding bug even if
19449         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
19450         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
19451
19452 2010-12-27  Bruno Haible  <bruno@clisp.org>
19453
19454         select tests: Improve comments.
19455         * tests/test-select.c (do_select): Add comments.
19456
19457 2010-12-27  Bruno Haible  <bruno@clisp.org>
19458
19459         select tests: Safer way of handling timeout.
19460         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
19461         at every invocation.
19462
19463 2010-12-27  Bruno Haible  <bruno@clisp.org>
19464
19465         select tests: Use 'bool' where appropriate.
19466         * tests/test-select.c (connect_to_socket): Change argument type to
19467         'bool'.
19468
19469 2010-12-27  Bruno Haible  <bruno@clisp.org>
19470
19471         select tests: Use existing modules.
19472         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
19473         (configure.ac): Don't test for unistd.h.
19474         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
19475         declared in <unistd.h>.
19476
19477 2010-12-27  Bruno Haible  <bruno@clisp.org>
19478
19479         mbrtowc: Work around a Solaris 7 bug.
19480         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
19481         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
19482         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
19483         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
19484         MBRTOWC_NULL_ARG1_BUG.
19485         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
19486         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
19487         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
19488         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
19489
19490 2010-12-27  Jim Meyering  <meyering@redhat.com>
19491
19492         read-file.c: tweak syntax
19493         * lib/read-file.c (fread_file): Remove space after "*" in function
19494         definitions.
19495
19496 2010-12-27  Bruno Haible  <bruno@clisp.org>
19497
19498         times test: Avoid gcc warnings on OSF/1.
19499         * tests/test-times.c (main): Cast printf arguments from clock_t to
19500         'long int'.
19501
19502 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19503
19504         utimens: work around glibc rounding bug on older Linux kernels
19505         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
19506         on Linux with a glibc whose utimes might not work, then work
19507         around a longstanding glibc bug involving rounding rather than
19508         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
19509         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19510
19511 2010-12-26  Bruno Haible  <bruno@clisp.org>
19512
19513         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
19514         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
19515         _GL_CXXALIAS_SYS.
19516         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19517
19518 2010-12-26  Bruno Haible  <bruno@clisp.org>
19519
19520         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
19521         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
19522         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19523         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
19524         looking for the declaration.
19525         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19526         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
19527         problem.
19528         * doc/posix-functions/inet_pton.texi: Likewise.
19529
19530 2010-12-26  Bruno Haible  <bruno@clisp.org>
19531
19532         arpa_inet: Use the common idioms with C++ support.
19533         * lib/arpa_inet.in.h: Include c++defs.h.
19534         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
19535         support.
19536         * modules/arpa_inet (Depends-on): Add c++defs.
19537         (Makefile.am): Substitute the contents of c++defs.h.
19538         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
19539         * modules/arpa_inet-c++-tests: New file.
19540         * tests/test-arpa_inet-c++.cc: New file.
19541
19542 2010-12-25  Bruno Haible  <bruno@clisp.org>
19543
19544         Fix more C++ link errors on Solaris 8.
19545         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
19546         $(LIB_EACCESS).
19547         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
19548         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
19549         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
19550         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
19551         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
19552
19553 2010-12-25  Bruno Haible  <bruno@clisp.org>
19554
19555         printf-posix: Fix link error when a non-GCC compiler is used.
19556         * lib/stdio.in.h (printf): When not using GCC, override printf
19557         correctly.
19558         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19559
19560 2010-12-25  Bruno Haible  <bruno@clisp.org>
19561
19562         strerror_r-posix: Update doc.
19563         * doc/posix-functions/strerror_r.texi: Update doc about the return
19564         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
19565
19566 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19567
19568         utimens: simplify the logic of the previous change
19569         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
19570         This should not affect whether the test succeeds or fails.
19571
19572         utimens: configure better on hosts with NFS clock skew
19573         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
19574         uses the clock of the local host.  It might use the clock of the
19575         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
19576         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19577
19578 2010-12-25  Bruno Haible  <bruno@clisp.org>
19579
19580         ptsname test: Avoid failure on Solaris.
19581         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
19582         open a pseudo-terminal; don't use BSD-style ptys.
19583         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
19584
19585 2010-12-25  Bruno Haible  <bruno@clisp.org>
19586
19587         ptsname: Avoid ERANGE failure on some systems.
19588         * lib/ptsname.c (buffer): Increase size.
19589
19590 2010-12-25  Bruno Haible  <bruno@clisp.org>
19591
19592         rename, renameat: Avoid test failures at NFS mounted locations.
19593         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
19594         so that subsequent mkdir calls succeed.
19595
19596 2010-12-25  Bruno Haible  <bruno@clisp.org>
19597
19598         iswblank: Fix C++ link error on Solaris 8.
19599         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
19600         _GL_FUNCDECL_SYS.
19601
19602 2010-12-25  Bruno Haible  <bruno@clisp.org>
19603
19604         unistd: Fix C++ link error on Solaris 8.
19605         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
19606
19607 2010-12-25  Bruno Haible  <bruno@clisp.org>
19608
19609         readlink doc: Mention an old glibc bug.
19610         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
19611
19612 2010-12-25  Bruno Haible  <bruno@clisp.org>
19613
19614         fcntl-h: Fix for use of C++ on glibc systems.
19615         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19616         also on glibc systems in C++ mode.
19617         Reported by Gary V. Vaughan <gary@gnu.org>.
19618
19619 2010-12-25  Bruno Haible  <bruno@clisp.org>
19620
19621         roundl-ieee: Make it work on OSF/1 5.1 with cc.
19622         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
19623
19624 2010-12-25  Bruno Haible  <bruno@clisp.org>
19625
19626         truncl-ieee: Make it work on OSF/1 5.1 with cc.
19627         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
19628         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
19629         test whether truncl works according to ISO C 99 with IEC 60559.
19630         * m4/truncl-ieee.m4: New file.
19631         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
19632         m4/signbit.m4.
19633         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
19634
19635 2010-12-25  Bruno Haible  <bruno@clisp.org>
19636
19637         ceill-ieee: Make it work on OSF/1 5.1 with cc.
19638         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
19639         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
19640         test whether ceill works according to ISO C 99 with IEC 60559.
19641         * m4/ceill-ieee.m4: New file.
19642         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
19643         m4/signbit.m4.
19644         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
19645
19646 2010-12-25  Bruno Haible  <bruno@clisp.org>
19647
19648         Ensure all prerequisites of <wchar.h> are included.
19649         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
19650         before <wchar.h>.
19651         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19652         gl_MBRLEN_NUL_RETVAL): Likewise.
19653         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19654         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
19655         AC_FUNC_MBRTOWC): Likewise.
19656         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19657         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19658         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19659         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19660         Likewise.
19661         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19662         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
19663         (gl_WCHAR_H): Improve comments.
19664         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19665
19666 2010-12-25  Bruno Haible  <bruno@clisp.org>
19667
19668         strtok_r: Fix C syntax error in autoconf macro.
19669         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
19670         characters in test program.
19671
19672 2010-12-24  Bruno Haible  <bruno@clisp.org>
19673
19674         ceil, trunc, round: Fix gcc warnings.
19675         * lib/ceil.c (MIN): Undefine before redefining.
19676         * lib/trunc.c (MIN): Likewise.
19677         * lib/round.c (MIN): Likewise.
19678         Include <math.h> first.
19679
19680 2010-12-24  Bruno Haible  <bruno@clisp.org>
19681
19682         select tests: Avoid failures on OSF/1 5.1.
19683         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
19684         failure of closing the last socket; it may fail with ECONNRESET.
19685
19686 2010-12-24  Eric Blake  <eblake@redhat.com>
19687
19688         stdint: avoid HP-UX 10.20 preprocessor bug
19689         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
19690         than #if.
19691         * tests/test-floor2.c (main): Likewise.
19692         Reported by Peter O'Gorman.
19693
19694         pipe: make obsoletion transition easier
19695         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
19696         * modules/pipe (Files): Include revived file.
19697         (Include): Drop reference, to mirror getdate's behavior.
19698
19699 2010-12-24  Bruno Haible  <bruno@clisp.org>
19700
19701         sys_socket: Hide mismatch of declarations on NonStop Kernel.
19702         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
19703         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
19704         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19705
19706 2010-12-24  Bruno Haible  <bruno@clisp.org>
19707
19708         gethostname: Ensure declaration on NonStop Kernel.
19709         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
19710         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19711
19712 2010-12-24  Bruno Haible  <bruno@clisp.org>
19713
19714         sys_select: Ensure all necessary types on NonStop Kernel.
19715         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
19716         include <sys/time.h>.
19717         * doc/posix-headers/sys_select.texi: Mention that it's missing on
19718         NonStop Kernel.
19719         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19720
19721 2010-12-24  Bruno Haible  <bruno@clisp.org>
19722
19723         sys_select: Remove unneeded include.
19724         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
19725         have <sys/select.h>.
19726
19727 2010-12-24  Bruno Haible  <bruno@clisp.org>
19728
19729         gethostname: Provide a fallback for HOST_NAME_MAX.
19730         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
19731         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
19732         instead.
19733         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19734
19735 2010-12-24  Bruno Haible  <bruno@clisp.org>
19736
19737         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
19738         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
19739         (SA_RESTART): Likewise.
19740         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19741
19742 2010-12-24  Bruno Haible  <bruno@clisp.org>
19743
19744         signal: Define NSIG.
19745         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
19746         * tests/test-signal.c (nsig): New variable.
19747         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19748
19749 2010-12-24  Bruno Haible  <bruno@clisp.org>
19750
19751         rename, renameat: Avoid test failures on OSF/1 5.1.
19752         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
19753         alternative error codes.
19754         * tests/test-renameat.c (main): Likewise.
19755
19756 2010-12-24  Bruno Haible  <bruno@clisp.org>
19757
19758         *printf: Detect large precisions bug on Solaris 10/SPARC.
19759         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
19760         by Paul Eggert.
19761         * tests/test-snprintf-posix.h (test_function): Add this test code here
19762         too.
19763         * tests/test-sprintf-posix.h (test_function): Likewise.
19764         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19765         * tests/test-vasprintf-posix.c (test_function): Likewise.
19766         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
19767         around by gnulib.
19768         * doc/posix-functions/printf.texi: Likewise.
19769         * doc/posix-functions/snprintf.texi: Likewise.
19770         * doc/posix-functions/sprintf.texi: Likewise.
19771         * doc/posix-functions/vfprintf.texi: Likewise.
19772         * doc/posix-functions/vprintf.texi: Likewise.
19773         * doc/posix-functions/vsnprintf.texi: Likewise.
19774         * doc/posix-functions/vsprintf.texi: Likewise.
19775         * doc/posix-functions/dprintf.texi: Undo last commit.
19776         * doc/posix-functions/vdprintf.texi: Likewise.
19777
19778 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19779
19780         tests: port test-fdutimensat.c to Solaris 8
19781         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
19782         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
19783         On Solaris 8, it fails with errno == ENOSYS, because there is no
19784         futimens (so it can't use the fd), and there is no lutimens (so it
19785         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
19786
19787         vsnprintf: make more consistent with snprintf; doc fixes
19788
19789         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
19790         the byte count return problem was promoted from the snprintf-posix
19791         to the snprintf module.
19792         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
19793         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
19794         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
19795         * tests/test-snprintf.c (main): Check the byte count returned.
19796         * tests/test-vsnprintf.c (main): Likewise.
19797
19798 2010-12-23  Eric Blake  <eblake@redhat.com>
19799
19800         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
19801         * modules/sigpipe (License): Relax license.
19802
19803 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19804
19805         doc: document Solaris printf bug with large float precisions
19806         * doc/posix-functions/dprintf.texi (dprintf):
19807         * doc/posix-functions/fprintf.texi (fprintf):
19808         * doc/posix-functions/printf.texi (printf):
19809         * doc/posix-functions/snprintf.texi (snprintf):
19810         * doc/posix-functions/sprintf.texi (sprintf):
19811         * doc/posix-functions/vdprintf.texi (vdprintf):
19812         * doc/posix-functions/vfprintf.texi (vfprintf):
19813         * doc/posix-functions/vprintf.texi (vprintf):
19814         * doc/posix-functions/vsnprintf.texi (vsnprintf):
19815         * doc/posix-functions/vsprintf.texi (vsprintf):
19816         Mention that these functions mishandle large floating point
19817         precisions on Solaris 10.  The same bug is also present in Solaris
19818         8, and I assume earlier.  This causes "cd gnulib-tests; make
19819         check" to fail on Solaris 8 (and I assume, later) when building
19820         the latest coreutils, in test-vasprintf-posix's call to
19821         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
19822         the wide flavors (e.g., wprintf) so this patch just updates the
19823         documentation for the narrow ones.
19824
19825         test-posixtm.c: add two tests
19826         * tests/test-posixtm.c: Add two tests, to highlight the
19827         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
19828         around this bug; this is merely to document it.
19829
19830 2010-12-22  Bruno Haible  <bruno@clisp.org>
19831
19832         getlogin_r: Work around portability problem on OSF/1.
19833         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
19834         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
19835         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
19836         test for a truncated result.
19837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
19838         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
19839         * modules/getlogin_r (Depends-on): Add memchr.
19840         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
19841
19842 2010-12-22  Bruno Haible  <bruno@clisp.org>
19843
19844         ptsname: Avoid test failure on OSF/1 5.1.
19845         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
19846         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
19847         (same_slave): New function.
19848         (main): Use it to compare ptsname's result with the expected file name.
19849
19850 2010-12-22  Bruno Haible  <bruno@clisp.org>
19851
19852         Port extended stdio modules to HP NonStop Kernel.
19853         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
19854         macros.
19855         * lib/fbufmode.c: Update comments.
19856         * lib/fflush.c: Likewise.
19857         * lib/fpurge.c: Likewise.
19858         * lib/freadable.c: Likewise.
19859         * lib/freadahead.c: Likewise.
19860         * lib/freading.c: Likewise.
19861         * lib/freadptr.c: Likewise.
19862         * lib/freadseek.c: Likewise.
19863         * lib/fseeko.c: Likewise.
19864         * lib/fseterr.c: Likewise.
19865         * lib/fwritable.c: Likewise.
19866         * lib/fwriting.c: Likewise.
19867         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19868
19869 2010-12-22  Bruno Haible  <bruno@clisp.org>
19870
19871         ttyname_r: Work around bug on OSF/1 5.1.
19872         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
19873         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
19874         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
19875         present.
19876         * lib/ttyname_r.c (ttyname_r): Update comments.
19877
19878 2010-12-22  Bruno Haible  <bruno@clisp.org>
19879
19880         round: Implement result sign according to IEEE 754.
19881         * lib/round.c (MIN, MINUS_ZERO): New macros.
19882         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
19883         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
19884         * tests/test-round-ieee.c (main): Likewise.
19885         * tests/test-roundl-ieee.c (main): Likewise.
19886
19887         trunc: Implement result sign according to IEEE 754.
19888         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
19889         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
19890         * tests/test-trunc2.c: Include minus-zero.h.
19891         (MINUS_ZERO): New macro.
19892         (trunc_reference): Keep in sync with lib/trunc.c.
19893         * tests/test-truncf2.c: Include minus-zero.h.
19894         (MINUS_ZERO): New macro.
19895         (truncf_reference): Keep in sync with lib/trunc.c.
19896         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
19897         * tests/test-trunc-ieee.c (main): Likewise.
19898         * tests/test-truncl-ieee.c (main): Likewise.
19899
19900         ceil: Implement result sign according to IEEE 754.
19901         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
19902         (FUNC): Return -0.0 for -1 < x < 0.
19903         * tests/test-ceil2.c: Include minus-zero.h.
19904         (MINUS_ZERO): New macro.
19905         (ceil_reference): Keep in sync with lib/ceil.c.
19906         * tests/test-ceilf2.c: Include minus-zero.h.
19907         (MINUS_ZERO): New macro.
19908         (ceilf_reference): Keep in sync with lib/ceil.c.
19909         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
19910         * tests/test-ceil-ieee.c (main): Likewise.
19911         * tests/test-ceill-ieee.c (main): Likewise.
19912
19913         floor: Implement result sign according to IEEE 754.
19914         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
19915         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
19916         * tests/test-floorf2.c (floorf_reference): Likewise.
19917         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
19918         * tests/test-floor-ieee.c (main): Likewise.
19919         * tests/test-floorl-ieee.c (main): Likewise.
19920
19921 2010-12-22  Bruno Haible  <bruno@clisp.org>
19922
19923         getaddrinfo: Update doc.
19924         * doc/posix-functions/gai_strerror.texi: Return type is also different
19925         on AIX and HP-UX.
19926
19927 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19928
19929         getaddrinfo, inet_ntop: Update doc for Solaris.
19930         * doc/posix-functions/gai_strerror.texi: Return type is also an
19931         issue on Solaris 9 and earlier.
19932         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
19933         on Solaris 10 and earlier.
19934
19935 2010-12-21  Bruno Haible  <bruno@clisp.org>
19936
19937         New module 'roundl-ieee'.
19938         * modules/roundl-ieee: New file.
19939         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
19940         test whether roundl works according to ISO C 99 with IEC 60559.
19941         * m4/roundl-ieee.m4: New file.
19942         * modules/roundl-ieee-tests: New file.
19943         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
19944         * tests/test-roundl.c (main): Remove signbit tests.
19945         * modules/roundl-tests (Depends-on): Remove signbit.
19946         * doc/posix-functions/roundl.texi: Mention the new module.
19947
19948 2010-12-21  Bruno Haible  <bruno@clisp.org>
19949
19950         New module 'truncl-ieee'.
19951         * modules/truncl-ieee: New file.
19952         * modules/truncl-ieee-tests: New file.
19953         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
19954         * tests/test-truncl.c (main): Remove signbit tests.
19955         * modules/truncl-tests (Depends-on): Remove signbit.
19956         * doc/posix-functions/truncl.texi: Mention the new module.
19957
19958 2010-12-21  Bruno Haible  <bruno@clisp.org>
19959
19960         New module 'ceill-ieee'.
19961         * modules/ceill-ieee: New file.
19962         * modules/ceill-ieee-tests: New file.
19963         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
19964         * tests/test-ceill.c (main): Remove signbit tests.
19965         * modules/ceill-tests (Depends-on): Remove signbit.
19966         * doc/posix-functions/ceill.texi: Mention the new module.
19967
19968 2010-12-21  Bruno Haible  <bruno@clisp.org>
19969
19970         New module 'floorl-ieee'.
19971         * modules/floorl-ieee: New file.
19972         * modules/floorl-ieee-tests: New file.
19973         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
19974         * tests/test-floorl.c (main): Remove signbit tests.
19975         * modules/floorl-tests (Depends-on): Remove signbit.
19976         * doc/posix-functions/floorl.texi: Mention the new module.
19977
19978 2010-12-21  Bruno Haible  <bruno@clisp.org>
19979
19980         New module 'round-ieee'.
19981         * modules/round-ieee: New file.
19982         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
19983         whether round works according to ISO C 99 with IEC 60559.
19984         * m4/round-ieee.m4: New file.
19985         * modules/round-ieee-tests: New file.
19986         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
19987         * tests/test-round1.c (main): Remove signbit tests.
19988         * modules/round-tests (Depends-on): Remove 'signbit'.
19989         * doc/posix-functions/round.texi: Mention the new module.
19990
19991 2010-12-21  Bruno Haible  <bruno@clisp.org>
19992
19993         New module 'trunc-ieee'.
19994         * modules/trunc-ieee: New file.
19995         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
19996         whether trunc works according to ISO C 99 with IEC 60559.
19997         * m4/trunc-ieee.m4: New file.
19998         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
19999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
20000         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
20001         * modules/trunc-ieee-tests: New file.
20002         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
20003         * tests/test-trunc1.c (main): Remove signbit tests.
20004         * modules/trunc-tests (Depends-on): Remove 'signbit'.
20005         * doc/posix-functions/trunc.texi: Mention the new module.
20006
20007 2010-12-21  Bruno Haible  <bruno@clisp.org>
20008
20009         New module 'ceil-ieee'.
20010         * modules/ceil-ieee: New file.
20011         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
20012         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
20013         ISO C 99 with IEC 60559.
20014         * m4/ceil-ieee.m4: New file.
20015         * modules/ceil (Files): Add lib/ceil.c.
20016         (Depends-on): Add 'float'.
20017         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20018         * lib/math.in.h (ceil): New declaration.
20019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
20020         REPLACE_CEIL.
20021         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
20022         * modules/ceil-ieee-tests: New file.
20023         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
20024         * tests/test-math-c++.cc: Check the signature of 'ceil'.
20025         * doc/posix-functions/ceil.texi: Mention the new module.
20026
20027 2010-12-21  Bruno Haible  <bruno@clisp.org>
20028
20029         New module 'floor-ieee'.
20030         * modules/floor-ieee: New file.
20031         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
20032         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
20033         ISO C 99 with IEC 60559.
20034         * m4/floor-ieee.m4: New file.
20035         * modules/floor (Files): Add lib/floor.c.
20036         (Depends-on): Add 'float'.
20037         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20038         * lib/math.in.h (floor): New declaration.
20039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
20040         REPLACE_FLOOR.
20041         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
20042         * modules/floor-ieee-tests: New file.
20043         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
20044         * tests/test-math-c++.cc: Check the signature of 'floor'.
20045         * doc/posix-functions/floor.texi: Mention the new module.
20046
20047 2010-12-21  Bruno Haible  <bruno@clisp.org>
20048
20049         New module 'roundf-ieee'.
20050         * modules/roundf-ieee: New file.
20051         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
20052         test whether roundf works according to ISO C 99 with IEC 60559.
20053         * m4/roundf-ieee.m4: New file.
20054         * modules/roundf-ieee-tests: New file.
20055         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
20056         * tests/test-roundf1.c (main): Remove signbit tests.
20057         * modules/roundf-tests (Depends-on): Remove 'signbit'.
20058         * doc/posix-functions/roundf.texi: Mention the new module.
20059
20060 2010-12-21  Bruno Haible  <bruno@clisp.org>
20061
20062         New module 'truncf-ieee'.
20063         * modules/truncf-ieee: New file.
20064         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
20065         test whether truncf works according to ISO C 99 with IEC 60559.
20066         * m4/truncf-ieee.m4: New file.
20067         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
20068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
20069         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
20070         * modules/truncf-ieee-tests: New file.
20071         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
20072         * tests/test-truncf1.c (main): Remove signbit tests.
20073         * modules/truncf-tests (Depends-on): Remove 'signbit'.
20074         * doc/posix-functions/truncf.texi: Mention the new module.
20075
20076 2010-12-21  Bruno Haible  <bruno@clisp.org>
20077
20078         New module 'ceilf-ieee'.
20079         * modules/ceilf-ieee: New file.
20080         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
20081         test whether ceilf works according to ISO C 99 with IEC 60559.
20082         * m4/ceilf-ieee.m4: New file.
20083         * modules/ceilf-ieee-tests: New file.
20084         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
20085         * tests/test-ceilf1.c (main): Remove signbit tests.
20086         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
20087         * doc/posix-functions/ceilf.texi: Mention the new module.
20088
20089 2010-12-21  Bruno Haible  <bruno@clisp.org>
20090
20091         New module 'floorf-ieee'.
20092         * modules/floorf-ieee: New file.
20093         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
20094         test whether floorf works according to ISO C 99 with IEC 60559.
20095         * m4/floorf-ieee.m4: New file.
20096         * modules/floorf-ieee-tests: New file.
20097         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
20098         * tests/test-floorf1.c (main): Remove signbit tests.
20099         * modules/floorf-tests (Depends-on): Remove 'signbit'.
20100         * doc/posix-functions/floorf.texi: Mention the new module.
20101
20102 2010-12-21  Bruno Haible  <bruno@clisp.org>
20103
20104         Support for minus zero in autoconf macros.
20105         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
20106         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
20107         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
20108         * tests/minus-zero.h: Update comments.
20109
20110 2010-12-21  Bruno Haible  <bruno@clisp.org>
20111
20112         Tests for module 'ceil'.
20113         * modules/ceil-tests: New file.
20114         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
20115         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
20116
20117 2010-12-21  Bruno Haible  <bruno@clisp.org>
20118
20119         Tests for module 'floor'.
20120         * modules/floor-tests: New file.
20121         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
20122         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
20123
20124 2010-12-21  Bruno Haible  <bruno@clisp.org>
20125
20126         math: Fix indentation.
20127         * lib/math.in.h (floorf): Fix indentation.
20128
20129 2010-12-21  Bruno Haible  <bruno@clisp.org>
20130
20131         Fix cross-compilation guesses on Solaris.
20132         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
20133         not match "solaris2.10".
20134         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20135         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
20136         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
20137
20138 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20139
20140         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
20141         This fixes a problem observed with the latest coreutils snapshot
20142         that caused a test to fail on Solaris 8.  src/csplit.c's call
20143         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
20144         earlier, instead of returning the number of bytes that would have
20145         been generated; this causes csplit to incorrectly report memory
20146         exhaustion.
20147         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
20148         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
20149         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
20150         comments to match.
20151         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
20152         Fix typo in matching older versions of Solaris: "solaris2.10"
20153         is matched by the shell pattern "solaris2.[0-9]*".  This matters
20154         only for guessing while cross-compiling.
20155         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
20156
20157 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20158
20159         ftoastr: fix comment again
20160         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20161         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
20162         Also, simplify example a bit by using flags = 0.
20163
20164 2010-12-20  Bruno Haible  <bruno@clisp.org>
20165
20166         round*, trunc*: Update documentation regarding glibc.
20167         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
20168         * doc/posix-functions/round.texi: Likewise.
20169         * doc/posix-functions/roundl.texi: Likewise.
20170         * doc/posix-functions/truncf.texi: Likewise.
20171         * doc/posix-functions/trunc.texi: Likewise.
20172         * doc/posix-functions/truncl.texi: Likewise.
20173
20174 2010-12-20  Bruno Haible  <bruno@clisp.org>
20175
20176         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
20177         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
20178         * doc/posix-functions/round.texi: Likewise.
20179         * doc/posix-functions/roundl.texi: Likewise.
20180
20181 2010-12-20  Bruno Haible  <bruno@clisp.org>
20182
20183         ttyname_r: Add missing declaration on HP-UX 11.
20184         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
20185         HAVE_TTYNAME_R.
20186         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
20187         declared. Set HAVE_TTYNAME_R always.
20188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20189         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
20190         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
20191         HAVE_TTYNAME_R.
20192         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
20193
20194 2010-12-20  Bruno Haible  <bruno@clisp.org>
20195
20196         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
20197         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
20198         * doc/posix-functions/getlogin_r.texi: Likewise.
20199         * tests/test-getlogin.c: Include <errno.h>.
20200         (main): Avoid test failure on HP-UX 11.11.
20201         * tests/test-getlogin_r.c (main): Likewise.
20202
20203 2010-12-20  Bruno Haible  <bruno@clisp.org>
20204
20205         getlogin_r: Add missing declaration on HP-UX 11.
20206         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
20207         declared also when it exists as a function.
20208         * doc/posix-functions/getlogin_r.texi: Document this workaround.
20209
20210 2010-12-20  Bruno Haible  <bruno@clisp.org>
20211
20212         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
20213         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
20214         through wcrtomb.
20215
20216 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20217
20218         ftoastr: fix comment
20219         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20220         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
20221
20222 2010-12-19  Bruno Haible  <bruno@clisp.org>
20223
20224         isnan: Ensure it is a macro.
20225         * lib/math.in.h (isnan): Define as a macro if not already a macro.
20226         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
20227         Solaris.
20228
20229 2010-12-19  Bruno Haible  <bruno@clisp.org>
20230
20231         ldexpl test: Fix link error on OSF/1 5.1.
20232         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
20233
20234 2010-12-19  Bruno Haible  <bruno@clisp.org>
20235
20236         wctype: Make it work in C++ mode on OSF/1 5.1.
20237         * lib/wctype.in.h (iswblank): Declare but not define here.
20238         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
20239         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
20240         * modules/wctype (Files): Add lib/iswblank.c.
20241
20242 2010-12-19  Bruno Haible  <bruno@clisp.org>
20243
20244         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
20245         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
20246         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
20247
20248 2010-12-19  Bruno Haible  <bruno@clisp.org>
20249
20250         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
20251         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
20252         _POSIX_PII_SOCKET.
20253         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
20254         * doc/posix-functions/recvfrom.texi: Likewise.
20255         * doc/posix-functions/send.texi: Likewise.
20256         * doc/posix-functions/sendto.texi: Likewise.
20257
20258 2010-12-19  Bruno Haible  <bruno@clisp.org>
20259
20260         tcgetsid: Add missing declaration on OSF/1 5.1.
20261         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
20262         HAVE_TCGETSID.
20263         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
20264         Don't set HAVE_TCGETSID.
20265         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
20266         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
20267         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
20268         HAVE_TCGETSID.
20269         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
20270
20271 2010-12-19  Bruno Haible  <bruno@clisp.org>
20272
20273         stdio: Fix problem with popen() declaration on OSF/1 5.1.
20274         * lib/stdio.in.h: During the include_next statement, let recursive
20275         includes of this file include only the system header file.
20276
20277 2010-12-19  Bruno Haible  <bruno@clisp.org>
20278
20279         iconv_open: Fix regression from 2010-12-04.
20280         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
20281         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
20282
20283 2010-12-19  Bruno Haible  <bruno@clisp.org>
20284
20285         stdbool test: Avoid a gcc warning.
20286         * tests/test-stdbool.c (main): Fail if e1 is false.
20287         Reported by Jim Meyering.
20288
20289 2010-12-19  Jim Meyering  <meyering@redhat.com>
20290
20291         setenv: restore to working order
20292         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
20293         mistakenly removed.
20294         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
20295         HAVE_SETENV.
20296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
20297         HAVE_SETENV.
20298
20299 2010-12-19  Bruno Haible  <bruno@clisp.org>
20300
20301         Document some different function declarations on OSF/1 5.1.
20302         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
20303         * doc/posix-functions/inet_ntop.texi: Likewise.
20304         * doc/posix-functions/gethostname.texi: Likewise.
20305         * lib/unistd.in.h (gethostname): Update comment.
20306
20307 2010-12-19  Bruno Haible  <bruno@clisp.org>
20308
20309         doc: Mention vasprintf-posix module.
20310         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
20311         the 'vasprintf-posix' module.
20312         * doc/glibc-functions/vasprintf.texi: Likewise.
20313
20314 2010-12-19  Bruno Haible  <bruno@clisp.org>
20315
20316         unsetenv: Add missing declaration on OSF/1 5.1.
20317         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
20318         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
20319         Don't set HAVE_UNSETENV. In the test program, set _BSD.
20320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
20321         not HAVE_UNSETENV.
20322         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
20323         HAVE_UNSETENV.
20324         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
20325
20326 2010-12-19  Bruno Haible  <bruno@clisp.org>
20327
20328         setenv: Add missing declaration on OSF/1 5.1.
20329         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
20330         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
20331         declared. Don't set HAVE_SETENV.
20332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
20333         not HAVE_SETENV.
20334         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
20335         HAVE_SETENV.
20336         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
20337
20338 2010-12-19  Bruno Haible  <bruno@clisp.org>
20339
20340         nl_langinfo tests: Avoid gcc warning.
20341         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
20342
20343 2010-12-19  Bruno Haible  <bruno@clisp.org>
20344
20345         mknod: Avoid error in C++ mode on OSF/1 with GCC.
20346         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
20347         _GL_CXXALIAS_SYS.
20348
20349 2010-12-19  Bruno Haible  <bruno@clisp.org>
20350
20351         stdbool: Relax test.
20352         * tests/test-stdbool.c (e): Don't require that casts from a variable's
20353         address to 'bool' work in static initializer, for compilers other than
20354         GCC.
20355
20356 2010-12-19  Bruno Haible  <bruno@clisp.org>
20357
20358         ftello: Add missing declaration on OSF/1 5.1.
20359         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
20360         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
20361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
20362         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
20363         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
20364
20365 2010-12-19  Bruno Haible  <bruno@clisp.org>
20366
20367         fseeko: Add missing declaration on OSF/1 5.1.
20368         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
20369         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
20370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
20371         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
20372         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
20373
20374 2010-12-19  Bruno Haible  <bruno@clisp.org>
20375
20376         fchdir: Add missing declaration on OSF/1 5.1.
20377         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
20378         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
20379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
20380         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
20381         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
20382
20383 2010-12-19  Bruno Haible  <bruno@clisp.org>
20384
20385         relocatable-prog-wrapper: Separate from relocatable-prog.
20386         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
20387         uninstall-relocwrapper rule here.
20388         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
20389         Reported by Ian Beckwith <ianb@erislabs.net>.
20390
20391 2010-12-19  Bruno Haible  <bruno@clisp.org>
20392
20393         unistr/u8-mbsnlen: Add missing dependency.
20394         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
20395         Reported by Ian Beckwith <ianb@erislabs.net>.
20396
20397 2010-12-19  Bruno Haible  <bruno@clisp.org>
20398
20399         iconv: Make it possible again to use this module without 'iconv-h'.
20400         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
20401         if it is not defined.
20402         Reported by Ian Beckwith <ianb@erislabs.net>.
20403
20404 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20405
20406         acl: port to Solaris 8 when copying from tmpfs to ufs
20407         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
20408         error number.  Problem observed on Solaris 8 with latest
20409         coreutils, with "mv A B", where A is on a tmpfs file system and B
20410         is on a ufs file system.  This caused coreutils' mv/part-symlink
20411         test to fail.
20412
20413         tests: set fail=0 at start
20414         * tests/init.sh (setup_): Move fail=0 initialization here ...
20415         (mktempd_): ... from here, so that tests can rely on fail being
20416         set to 0 initially.  This fixes a problem in coreutils; see:
20417         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
20418
20419 2010-12-18  Bruno Haible  <bruno@clisp.org>
20420
20421         memmem-simple: Stylistic changes.
20422         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
20423         Fix preprocessor directive indentation.
20424
20425 2010-12-15  Pádraig Brady <P@draigBrady.com>
20426
20427         memmem, memmem-simple: reorganize and expand empty needle check
20428         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
20429         functional checks to memmem-simple so that one has a fully functional
20430         memmem by using just this module.
20431         Restrict the performance only check to the memmem module.
20432         Also expand the empty needle check to ensure the correct
20433         pointer is returned, not just a non NULL pointer.
20434         * doc/glibc-functions/memmem.texi: Rearrange the portability
20435         documentation to correlate with the rearranged checks.
20436         Clarify exactly how the memmem and memmem-simple modules
20437         relate to each other.
20438
20439 2010-12-15  Pádraig Brady <P@draigBrady.com>
20440             Bruno Haible  <bruno@clisp.org>
20441
20442         Improve cross-compilation guesses for uClibc.
20443         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
20444         that uClibc does not have the glibc bug.
20445         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20446         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
20447
20448 2010-12-14  Eric Blake  <eblake@redhat.com>
20449
20450         configmake: provide fallbacks for oldest supported autotools
20451         * m4/configmake.m4: New file.
20452         * modules/configmake (Files): Ship it.
20453         (configure.ac): Use it to guarantee fallbacks.
20454
20455 2010-12-13  Pádraig Brady <P@draigBrady.com>
20456
20457         read-file: Improve handling of large files
20458         * lib/read-file.c (fread_file): Minimize realloc()s
20459         for regular files, and better manage sizes around SIZE_MAX.
20460
20461 2010-12-13  Eric Blake  <eblake@redhat.com>
20462
20463         cloexec, fcntl: relax license
20464         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
20465         consent from all contributors.
20466         * modules/fcntl (License): Likewise.
20467
20468 2010-12-10  Bruno Haible  <bruno@clisp.org>
20469
20470         Tests for module 'pipe-posix'.
20471         * modules/pipe-posix-tests: New file.
20472         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
20473
20474 2010-12-10  Bruno Haible  <bruno@clisp.org>
20475
20476         pipe-posix: Make it work in C++ mode.
20477         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
20478         (pipe): Use common idiom, not a macro definition.
20479         * lib/pipe.c: New file.
20480         * m4/pipe.m4: New file.
20481         * modules/pipe-posix (Description): Enhance.
20482         (Files): Add lib/pipe.c, m4/pipe.m4.
20483         (configure.ac): Invoke gl_FUNC_PIPE.
20484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
20485         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
20486         * tests/test-unistd-c++.cc: Check the signature of pipe.
20487
20488 2010-12-10  Bruno Haible  <bruno@clisp.org>
20489
20490         Rename module 'pipe' to 'spawn-pipe'.
20491         * modules/spawn-pipe: New file, renamed from modules/pipe.
20492         (Files, configure.ac, Makefile.am): Update.
20493         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
20494         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
20495         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
20496         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
20497         "spawn-pipe.h" instead of "pipe.h".
20498         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
20499         to gl_SPAWN_PIPE.
20500         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
20501         (Files, Makefile.am): Update.
20502         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
20503         Update.
20504         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
20505         Include "spawn-pipe.h" instead of "pipe.h".
20506         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
20507         * lib/javacomp.c: Likewise.
20508         * lib/javaversion.c: Likewise.
20509         * lib/pipe-filter-gi.c: Likewise.
20510         * lib/pipe-filter-ii.c: Likewise.
20511         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
20512         * modules/javacomp (Depends-on): Likewise.
20513         * modules/javaversion (Depends-on): Likewise.
20514         * modules/pipe-filter-gi (Depends-on): Likewise.
20515         * modules/pipe-filter-ii (Depends-on): Likewise.
20516         * MODULES.html.sh (Executing programs): Update.
20517         * NEWS: Mention the change.
20518
20519 2010-12-10  Eric Blake  <eblake@redhat.com>
20520
20521         pipe-posix: new module
20522         * modules/pipe-posix: New file.
20523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
20524         (gl_UNISTD_H): Check for declaration.
20525         * modules/unistd (Makefile.am): Substitute it.
20526         * lib/unistd.in.h (pipe): Provide it for mingw.
20527         * doc/posix-functions/pipe.texi (pipe): Update documentation.
20528         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
20529
20530 2010-12-07  Bruno Haible  <bruno@clisp.org>
20531
20532         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
20533         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
20534         u8_strcmp_gnu.
20535         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
20536
20537 2010-12-06  Bruno Haible  <bruno@clisp.org>
20538
20539         Update internal documentation.
20540         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
20541
20542 2010-12-04  Bruno Haible  <bruno@clisp.org>
20543
20544         Put more information about failed tests into the test return codes.
20545         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
20546         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
20547         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20548         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20549         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20550         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20551         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20552         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20553         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
20554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20555         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
20556         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20557         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
20558         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20559         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
20560         returns a bit mask.
20561         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
20562         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
20563         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
20564         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
20565         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20566         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20567         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20568         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20569         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20570         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20571         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20572         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20573         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20574         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20575         * m4/link.m4 (gl_FUNC_LINK): Likewise.
20576         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20577         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
20578         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
20579         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20580         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
20581         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20582         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20583         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
20584         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20585         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20586         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20587         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
20588         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20589         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20590         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
20591         gl_PRINTF_PRECISION): Likewise.
20592         * m4/regex.m4 (gl_REGEX): Likewise.
20593         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20594         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20595         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
20596         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20597         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20598         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20599         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20600         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
20601         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20602         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20603         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20604         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20605         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20606         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20607         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20608         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20609         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
20610         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20611         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20612         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
20613         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
20614         enumerated value.
20615         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
20616
20617 2010-12-04  Bruno Haible  <bruno@clisp.org>
20618
20619         Update for Solaris 11 2010-11.
20620         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
20621         Express, released in November 2010.
20622
20623 2010-12-04  Bruno Haible  <bruno@clisp.org>
20624
20625         nproc: Relax license.
20626         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
20627         and Paul Eggert.
20628         Requested by Ludovic Courtès <ludo@gnu.org>.
20629
20630 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
20631
20632         utimecmp: fine-grained src to nearby coarse-grained dest
20633
20634         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
20635         and the source is on a file system with higher-resolution time
20636         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
20637         not work, and the time stamps are close together, the algorithm to
20638         determine the exact resolution from the read-back mtime was buggy:
20639         it had a "!=" where it should have had an "==".  This bug has been
20640         in the code ever since it was introduced to gnulib.
20641         Problem reported by Dan Jacobson in
20642         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
20643
20644 2010-11-30  Bruno Haible  <bruno@clisp.org>
20645
20646         strerror_r-posix: Fix autoconf test.
20647         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
20648
20649 2010-11-28  Bruno Haible  <bruno@clisp.org>
20650             Paul Eggert  <eggert@cs.ucla.edu>
20651
20652         Tests for module 'getdomainname'.
20653         * modules/getdomainname-tests: New file.
20654         * tests/test-getdomainname.c: New file, based on
20655         tests/test-gethostname.c.
20656
20657 2010-11-28  Bruno Haible  <bruno@clisp.org>
20658             Paul Eggert  <eggert@cs.ucla.edu>
20659
20660         getdomainname: Use the system function when possible.
20661         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
20662         (getdomainname): Replace if needed. Provide the declaration if it is
20663         missing. Don't use _GL_CXXALIAS_SYS_CAST.
20664         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
20665         (getdomainname): When the system has getdomainname, call the system
20666         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
20667         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20668         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
20669         found in libnsl. Look for the declaration also in <netdb.h>. Replace
20670         the function if its second argument is of type 'int' or if it is found
20671         in libnsl.
20672         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
20673         <sys/systeminfo.h> and sysinfo().
20674         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
20675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20676         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
20677         HAVE_GETDOMAINNAME.
20678         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
20679         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
20680         * doc/glibc-functions/getdomainname.texi: Document the problems with
20681         the getdomainname declaration.
20682
20683 2010-11-28  Bruno Haible  <bruno@clisp.org>
20684
20685         sys_socket: Ensure ss_family field on AIX.
20686         * lib/sys_socket.in.h (ss_family): New macro definition.
20687         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
20688         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
20689         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20690         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20691         * modules/sys_socket (Makefile.am): Substitute
20692         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20693         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
20694
20695 2010-11-27  Bruno Haible  <bruno@clisp.org>
20696
20697         readline: Improve configure output.
20698         * m4/readline.m4 (gl_FUNC_READLINE): Make the
20699         "checking for readline..." result understandable.
20700
20701 2010-11-27  Bruno Haible  <bruno@clisp.org>
20702
20703         *printf-posix: Detect a bug on Solaris 10/x86.
20704         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
20705         for floating-point output.
20706         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
20707         directive.
20708         * tests/test-snprintf-posix.h (test_function): Likewise.
20709         * tests/test-sprintf-posix.h (test_function): Likewise.
20710         * tests/test-vasprintf-posix.c (test_function): Likewise.
20711         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
20712         * doc/posix-functions/printf.texi: Likewise.
20713         * doc/posix-functions/snprintf.texi: Likewise.
20714         * doc/posix-functions/sprintf.texi: Likewise.
20715         * doc/posix-functions/vfprintf.texi: Likewise.
20716         * doc/posix-functions/vprintf.texi: Likewise.
20717         * doc/posix-functions/vsnprintf.texi: Likewise.
20718         * doc/posix-functions/vsprintf.texi: Likewise.
20719         * doc/glibc-functions/obstack_printf.texi: Likewise.
20720         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20721
20722 2010-11-27  Bruno Haible  <bruno@clisp.org>
20723
20724         Fix link error when module libunistring-optional is in use.
20725         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
20726         * modules/striconveha-tests (Makefile.am): Likewise.
20727
20728 2010-11-27  Bruno Haible  <bruno@clisp.org>
20729
20730         regex: Mention link dependencies.
20731         * modules/regex (Link): New section.
20732         * modules/rpmatch (Link): Likewise.
20733         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
20734
20735 2010-11-27  Bruno Haible  <bruno@clisp.org>
20736
20737         ftoastr: Fix compilation error on Solaris.
20738         * lib/ftoastr.c: Include <config.h>.
20739
20740 2010-11-27  Bruno Haible  <bruno@clisp.org>
20741
20742         getloadavg: Update documentation.
20743         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
20744
20745 2010-11-27  Bruno Haible  <bruno@clisp.org>
20746
20747         sys_socket: Fix test whether the functions are declared.
20748         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
20749         not <sys/select.h>.
20750
20751 2010-11-27  Bruno Haible  <bruno@clisp.org>
20752
20753         getpass: Make sure to get system declaration on some platforms.
20754         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
20755         gl_USE_SYSTEM_EXTENSIONS.
20756         * modules/getpass (Depends-on): Add extensions.
20757
20758 2010-11-26  Bruno Haible  <bruno@clisp.org>
20759
20760         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
20761         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
20762         'iconv' module is present.
20763         (ICONV_CONST): New macro.
20764         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
20765         ICONV_CONST.
20766         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
20767         set ICONV_CONST.
20768         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
20769         here.
20770         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
20771         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
20772         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
20773         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
20774         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
20775         present.
20776
20777 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20778
20779         ftoastr: comment fix
20780         * lib/ftoastr.c: "little" -> "little or no" in comment
20781
20782 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20783
20784         stdint: port to GCC 4.3 + OSX + Octave
20785         On this platform, stdint.h is buggy and defines int64_t to long
20786         long int.  The replacement defined it to long int, causing
20787         problems with C++ style name mangling.  Instead, trust the system
20788         definition if INT64_MAX is defined, and likewise for the unsigned
20789         variant.   Problem reported by Jarno Rajahalme in
20790         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
20791         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
20792         and don't mess with int64_t and INT64_MAX in this case.
20793         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
20794
20795 2010-11-24  Bruno Haible  <bruno@clisp.org>
20796
20797         doc: Corrections regarding MacOS X 10.4 and 10.5.
20798         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
20799         MacOS X.
20800         Reported by Simon Josefsson.
20801
20802 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
20803
20804         Uninstall ".bin" files installed by relocwrapper.
20805         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
20806         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
20807         unless it is already there.
20808
20809 2010-11-21  Bruno Haible  <bruno@clisp.org>
20810
20811         Update for NetBSD 5.0.
20812         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20813         NetBSD; the test fails on NetBSD 5.0.
20814         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20815         about NetBSD.
20816
20817 2010-11-21  Bruno Haible  <bruno@clisp.org>
20818
20819         Update for HP-UX 11.23 and HP-UX 11.31.
20820         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
20821         HP-UX.
20822
20823 2010-11-21  Bruno Haible  <bruno@clisp.org>
20824
20825         Update for MacOS X 10.5.
20826         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20827         MacOS X; the test fails on MacOS X 10.5.8.
20828         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20829         about MacOS X.
20830
20831 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
20832
20833         bootstrap: add bootstrap_sync option.
20834         See discussion at
20835         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
20836         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
20837         * build-aux/bootstrap: Accept --bootstrap-sync to update
20838         bootstrap if it is not identical to the local gnulib's
20839         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
20840         enable this by default.  Accept --no-bootstrap-sync to disable
20841         it.
20842
20843 2010-11-20  Bruno Haible  <bruno@clisp.org>
20844
20845         Ensure that <features.h> is included before __GLIBC__ is tested.
20846         * lib/printf-parse.h: Include <features.h>.
20847         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
20848         Reported by Mike Frysinger <vapier@gentoo.org>.
20849
20850         Ensure that <features.h> is included before __GLIBC__ is tested.
20851         * lib/wchar.in.h: Include <features.h>.
20852         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
20853         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
20854         Reported by Mike Frysinger <vapier@gentoo.org>.
20855
20856         Ensure that <features.h> is included before __GLIBC__ is tested.
20857         * lib/arpa_inet.in.h: Include <features.h>.
20858         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
20859         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
20860         Reported by Mike Frysinger <vapier@gentoo.org>.
20861
20862         Ensure that <features.h> is included before __GLIBC__ is tested.
20863         * build-aux/link-warning.h: Include <features.h>.
20864         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
20865         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
20866         Reported by Mike Frysinger <vapier@gentoo.org>.
20867
20868         Ensure that <features.h> is included before __GLIBC__ is tested.
20869         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
20870         Reported by Mike Frysinger <vapier@gentoo.org>.
20871
20872 2010-11-20  Bruno Haible  <bruno@clisp.org>
20873
20874         memmem: Fix autoconf test.
20875         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
20876
20877 2010-11-20  Bruno Haible  <bruno@clisp.org>
20878
20879         Port to uClibc.
20880         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
20881         * lib/fcntl.in.h: Likewise.
20882         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
20883         * lib/mbrtowc.c (mbrtowc): Likewise.
20884         * lib/relocatable.c (find_shared_library_fullname): Likewise.
20885         * lib/strerror_r.c: Likewise.
20886         * lib/unistr/u8-strnlen.c: Likewise.
20887         * lib/vasnprintf.c (decimal_point_char): Likewise.
20888         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20889         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20890         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20891         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
20892         * tests/test-sigaction.c (handler, main): Likewise.
20893         * lib/freading.h: Treat uClibc like a non-glibc platform.
20894         * lib/freading.c: Likewise.
20895         * lib/gettext.h: Likewise.
20896         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
20897         Likewise.
20898         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
20899         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20900         * lib/propername.c (proper_name_utf8): Likewise.
20901         * lib/spawn.in.h: Likewise.
20902         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
20903         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
20904         mem_cd_iconveh_internal): Likewise.
20905         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
20906         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20907         strstr, strcasestr): Likewise.
20908         * lib/unicodeio.c (unicode_to_mb): Likewise.
20909         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
20910         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
20911         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
20912         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
20913         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
20914         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
20915         * lib/unistr/u8-stpncpy.c: Likewise.
20916         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20917         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
20918         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20919         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20920         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
20921         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
20922         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
20923         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
20924         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
20925         Likewise.
20926         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20927         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20928         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20929         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20930         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20931         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20932         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20933         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20934         * tests/test-getopt.h (OPTIND_MIN): Likewise.
20935         * tests/test-striconveha.c (main): Likewise.
20936         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20937         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
20938         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
20939         * doc/posix-functions/getline.texi: Likewise.
20940         Reported by Mike Frysinger <vapier@gentoo.org>.
20941
20942 2010-11-20  Bruno Haible  <bruno@clisp.org>
20943
20944         nproc: Fix condition.
20945         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
20946         HAVE_PTHREAD_AFFINITY_NP.
20947
20948 2010-11-20  Bruno Haible  <bruno@clisp.org>
20949
20950         Fix a comment.
20951         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
20952
20953 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
20954
20955         ftoastr: don't assume snprintf
20956         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
20957         Implement a subset of snprintf here, by using sprintf safely.
20958         * modules/ftoastr (Depends-on): Remove snprintf.
20959
20960 2010-11-19  Jim Meyering  <meyering@redhat.com>
20961
20962         test-rename.h: fix compilation failure
20963         * tests/test-rename.h (test_rename): Add omitted "}".
20964
20965 2010-11-17  Jim Meyering  <meyering@redhat.com>
20966
20967         maint.mk: add a URL discussing the no-@acronym policy
20968         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
20969
20970 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
20971
20972         ftoastr: depend on snprintf, improve comments
20973         * lib/ftoastr.c: Also mention Loitsch's draft.
20974         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
20975         needed in the current implementation, but it might simplify
20976         speeding up the code later.
20977         * modules/ftoastr: Depend on snprintf; this improves portability.
20978         Suggested by Bruno Haible in the same email.
20979
20980         ftoastr: port to hosts lacking strtof and strtold
20981         Problem reported by Bruno Haible in
20982         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
20983         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
20984         environment and strtold (and presumably strtof) are not available.
20985         * modules/ftoastr (Files): Add m4/c-strtod.m4.
20986         (configure.ac): Require gl_C99_STRTOLD.
20987
20988 2010-11-18  Bruno Haible  <bruno@clisp.org>
20989
20990         c-strtold: Avoid link error on AIX 7.
20991         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
20992         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
20993         (gl_C_STRTOLD): Test whether strtold_l exists.
20994         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20995
20996 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20997
20998         intprops: new macro INT_BITS_STRLEN_BOUND
20999         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
21000         ftoastr.h.  This exposes an internal of intprops.h that was formerly
21001         not exposed.  Also, it uses a slightly tighter bound than before;
21002         though this makes no practical difference, we might as well be as
21003         tight as we easily can.
21004
21005         ftoastr: new module, for lossless conversion of floats to short strings
21006         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
21007         * modules/ftoastr: New files.
21008
21009 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
21010
21011         bootstrap: port to Solaris sed
21012         * build-aux/bootstrap (get_version): Port to Solaris sed.
21013         See Ralf Wildenhues's note in
21014         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
21015
21016 2010-11-14  Jim Meyering  <meyering@redhat.com>
21017
21018         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
21019         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
21020         and move definition closer to sole use.
21021
21022 2010-11-13  Jim Meyering  <meyering@redhat.com>
21023
21024         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
21025         Now we require at least autoconf-2.59, which means the work-around
21026         is no longer needed.
21027         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
21028         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21029         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
21030         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21031         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21032
21033 2010-11-13  Bruno Haible  <bruno@clisp.org>
21034
21035         rename, renameat: Avoid test failures at NFS mounted locations.
21036         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
21037         functions.
21038         (test_rename): Use assert_nonexistent.
21039         * tests/test-rename.c: Include <dirent.h>.
21040         * tests/test-renameat.c: Likewise.
21041         Reported by Gary V. Vaughan <gary@gnu.org>.
21042
21043         rename, renameat: Document Linux bug with NFS
21044         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
21045         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
21046         * doc/posix-functions/renameat.texi: Likewise.
21047         Suggested by Eric Blake.
21048
21049 2010-11-13  Bruno Haible  <bruno@clisp.org>
21050
21051         rename test: Add comments.
21052         * tests/test-rename.h (test_rename): Add structure and comments.
21053
21054 2010-11-13  Eric Blake  <eblake@redhat.com>
21055
21056         maintainer-makefile: cover a few more files
21057         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
21058         scripts generated within C files, for libvirt.
21059
21060 2010-11-13  Bruno Haible  <bruno@clisp.org>
21061
21062         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
21063         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
21064         character, return the number of bytes that belong together, not always
21065         1.
21066         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
21067         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
21068         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
21069         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
21070         number of bytes of an invalid character.
21071         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
21072         (main): Invoke it.
21073         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
21074         results.
21075         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
21076         malformed byte sequences.
21077         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
21078         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
21079         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
21080         Reported by Ben Pfaff and Paolo Bonzini.
21081
21082 2010-11-13  Bruno Haible  <bruno@clisp.org>
21083
21084         openat: Work around glibc bug with fchownat() and empty file names.
21085         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
21086         (gl_FUNC_FCHOWNAT): Invoke it.
21087         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
21088         * doc/posix-functions/fchownat.texi: Document the glibc bug.
21089         Reported by Gary V. Vaughan <gary@gnu.org>.
21090
21091 2010-11-13  Bruno Haible  <bruno@clisp.org>
21092
21093         openat: Ensure autoconf macro ordering.
21094         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
21095         gl_USE_SYSTEM_EXTENSIONS.
21096         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
21097
21098 2010-11-13  Bruno Haible  <bruno@clisp.org>
21099
21100         Update comments.
21101         * lib/unistr/u8-check.c: Update file name in comments.
21102         * lib/unistr/u8-mblen.c: Likewise.
21103         * lib/unistr/u8-prev.c: Likewise.
21104         * lib/unistr/u8-strmblen.c: Likewise.
21105         * lib/unistr/u8-strmbtouc.c: Likewise.
21106
21107 2010-11-13  Jim Meyering  <meyering@redhat.com>
21108
21109         tests: avoid test failure on Solaris 10 due to lack of PATH export
21110         * tests/test-update-copyright.sh: Don't forget to export PATH.
21111
21112         init.sh: ensure that IFS is defined, just in case...
21113         * tests/init.sh (setup_): Ensure that IFS is defined,
21114         so that saving and restoring it works as expected.  This
21115         appears to be useful at least for an old version of dash
21116         from a long time ago (RH 6).  See here for details:
21117         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
21118
21119         maint.mk: tighten "test a == b" check
21120         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
21121         test to files that contain something like #!/bin/sh.
21122         Without this, coreutils would get two false positives in
21123         the comments of C source files.
21124
21125 2010-11-12  Eric Blake  <eblake@redhat.com>
21126
21127         bootstrap: fix typo in previous attempt
21128         * build-aux/bootstrap (buildreq): Correct the grouping.
21129         Reported by Paul Eggert.
21130
21131         maintainer-makefile: prohibit test x == x
21132         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
21133         Based on a report by Matthias Bolte.
21134
21135         bootstrap: allow FreeBSD gzip
21136         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
21137         which has no '.' and goes to stderr.
21138         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
21139         Reported by Matthias Bolte.
21140
21141         maintainer-makefile: check for i18n setup
21142         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
21143         will likely work.
21144
21145 2010-11-12  Bruno Haible  <bruno@clisp.org>
21146
21147         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
21148         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
21149         * lib/nanosleep.c (nanosleep): Likewise.
21150
21151 2010-11-11  Bruno Haible  <bruno@clisp.org>
21152
21153         fcntl-h: Fix for use of C++ on glibc systems.
21154         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21155         also on glibc systems in C++ mode.
21156         Reported by Gary V. Vaughan <gary@gnu.org>.
21157
21158 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21159
21160         mknod: avoid false failure with dash
21161         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
21162
21163 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21164
21165         unlink: Fix "is it should" typo in diagnostic.
21166         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
21167         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
21168
21169 2010-11-11  Bruno Haible  <bruno@clisp.org>
21170
21171         Tests for module 'strerror_r-posix'.
21172         * modules/strerror_r-posix-tests: New file.
21173         * tests/test-strerror_r.c: New file.
21174         * tests/test-string-c++.cc: Check the signature of strerror_r.
21175
21176         New module 'strerror_r-posix'.
21177         * lib/string.in.h (strerror_r): New declaration.
21178         * lib/strerror_r.c: New file.
21179         * m4/strerror_r.m4: New file.
21180         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
21181         of strerror_r.
21182         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
21183         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21184         * modules/strerror_r-posix: New file.
21185         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
21186         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21187         * doc/posix-functions/strerror_r.texi: Mention the new module and the
21188         portability problems.
21189
21190 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
21191
21192         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
21193         line is also considered for output. Quoted function name in shell
21194         command, so temporary files for functions like MyClass::operator()
21195         are removed correctly without errors.
21196
21197 2010-11-09  Bruno Haible  <bruno@clisp.org>
21198
21199         * doc/posix-functions/strerror.texi: List more failing platforms.
21200
21201         * doc/posix-functions/strerror.texi: Add a comment.
21202
21203 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21204
21205         fdopendir: fix bug on MacOS X when low on file descriptors
21206
21207         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
21208         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
21209         All callers changed.
21210         (fdopendir): Invoke save_cwd at the top level, not after using
21211         multiple dup() calls to use up file descriptors.  Then retry
21212         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
21213         less than the maximum number of open file descriptors, because
21214         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
21215         on Mac OS X 10.6.4 for tar 1.24
21216         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
21217         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
21218         and for tar 1.25
21219         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
21220
21221 2010-11-07  Bruno Haible  <bruno@clisp.org>
21222
21223         vasnprintf: Support I flag on glibc systems.
21224         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
21225         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
21226         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
21227         snprintf function.
21228         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
21229         glibc systems.
21230         * tests/test-vasnprintf-posix3.c: New file.
21231         * modules/vasnprintf-posix-tests (Files): Add it.
21232         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
21233
21234 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21235
21236         [html] Fix copy/paste bug: Use unique name for compiler warnings.
21237         * MODULES.html.sh: For compiler warnings, use name
21238         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
21239
21240 2010-11-05  Eric Blake  <eblake@redhat.com>
21241
21242         ceil, floor: avoid spurious failure with icc
21243         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
21244         [denormals-as-zero] when optimizing without -mieee-fp option.
21245         * tests/test-floorf2.c (floorf_reference): Likewise.
21246         * tests/test-ceilf1.c (dummy): New function.
21247         (main): Use it to outsmart icc's optimization.
21248         * tests/test-floorf1.c (dummy, main): Likewise.
21249
21250         tests: require working signbit
21251         * modules/ceilf-tests (Depends-on): Add signbit.
21252         * modules/ceill-tests (Depends-on): Likewise.
21253         * modules/floorf-tests (Depends-on): Likewise.
21254         * modules/floorl-tests (Depends-on): Likewise.
21255         * modules/round-tests (Depends-on): Likewise.
21256         * modules/roundf-tests (Depends-on): Likewise.
21257         * modules/roundl-tests (Depends-on): Likewise.
21258         * modules/trunc-tests (Depends-on): Likewise.
21259         * modules/truncf-tests (Depends-on): Likewise.
21260         * modules/truncl-tests (Depends-on): Likewise.
21261
21262         strtod: work around icc bug
21263         * lib/strtod.c (minus_zero): Define to working value.
21264         (strtod): Use it to avoid icc bug.
21265
21266         copysign: enhance tests
21267         * modules/copysign-tests (Files): Add minus-zero.h.
21268         * tests/test-copysign.c (main): Also test zeros.
21269
21270 2010-11-04  Eric Blake  <eblake@redhat.com>
21271
21272         ceil, floor, round, trunc: enhance tests of -0
21273         * tests/test-ceilf1.c (main): Ensure correct sign of result.
21274         * tests/test-ceill.c (main): Likewise.
21275         * tests/test-floorf1.c (main): Likewise.
21276         * tests/test-floorl.c (main): Likewise.
21277         * tests/test-round1.c (main): Likewise.
21278         * tests/test-roundf1.c (main): Likewise.
21279         * tests/test-roundl.c (main): Likewise.
21280         * tests/test-trunc1.c (main): Likewise.
21281         * tests/test-truncf1.c (main): Likewise.
21282         * tests/test-truncl.c (main): Likewise.
21283
21284 2010-11-04  Eric Blake  <eblake@redhat.com>
21285
21286         frexp, tests: work around ICC bug with -zero
21287         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
21288         works with more compilers.
21289         * tests/minus-zero.h: New file.
21290         * modules/ceilf-tests (Files): Include it.
21291         * modules/ceill-tests (Files): Likewise.
21292         * modules/floorf-tests (Files): Likewise.
21293         * modules/floorl-tests (Files): Likewise.
21294         * modules/frexp-nolibm-tests (Files): Likewise.
21295         * modules/frexp-tests (Files): Likewise.
21296         * modules/frexpl-nolibm-tests (Files): Likewise.
21297         * modules/frexpl-tests (Files): Likewise.
21298         * modules/isnan-tests (Files): Likewise.
21299         * modules/isnand-nolibm-tests (Files): Likewise.
21300         * modules/isnand-tests (Files): Likewise.
21301         * modules/isnanf-nolibm-tests (Files): Likewise.
21302         * modules/isnanf-tests (Files): Likewise.
21303         * modules/isnanl-nolibm-tests (Files): Likewise.
21304         * modules/isnanl-tests (Files): Likewise.
21305         * modules/round-tests (Files): Likewise.
21306         * modules/roundf-tests (Files): Likewise.
21307         * modules/roundl-tests (Files): Likewise.
21308         * modules/ldexpl-tests (Files): Likewise.
21309         * modules/signbit-tests (Files): Likewise.
21310         * modules/snprintf-posix-tests (Files): Likewise.
21311         * modules/sprintf-posix-tests (Files): Likewise.
21312         * modules/strtod-tests (Files): Likewise.
21313         * modules/trunc-tests (Files): Likewise.
21314         * modules/truncf-tests (Files): Likewise.
21315         * modules/truncl-tests (Files): Likewise.
21316         * modules/vsnprintf-posix-tests (Files): Likewise.
21317         * modules/vsprintf-posix-tests (Files): Likewise.
21318         * modules/vasnprintf-posix-tests (Files): Likewise.
21319         * modules/vasprintf-posix-tests (Files): Likewise.
21320         * tests/test-ceilf1.c (main): Use it.
21321         * tests/test-ceill.c (main): Likewise.
21322         * tests/test-floorf1.c (main): Likewise.
21323         * tests/test-floorl.c (main): Likewise.
21324         * tests/test-frexp.c (main): Likewise.
21325         * tests/test-frexpl.c (main): Likewise.
21326         * tests/test-isnan.c (main): Likewise.
21327         * tests/test-isnand.h (main): Likewise.
21328         * tests/test-isnanf.h (main): Likewise.
21329         * tests/test-isnanl.h (main): Likewise.
21330         * tests/test-ldexpl.c (main): Likewise.
21331         * tests/test-round.c (main): Likewise.
21332         * tests/test-roundf.c (main): Likewise.
21333         * tests/test-roundl.c (main): Likewise.
21334         * tests/test-signbit.c (test_signbitf, test_signbitd)
21335         (test_signbitl): Likewise.
21336         * tests/test-snprintf-posix.h (test_function): Likewise.
21337         * tests/test-sprintf-posix.h (test_function): Likewise.
21338         * tests/test-strtod.c (main): Likewise.
21339         * tests/test-trunc1.c (main): Likewise.
21340         * tests/test-truncf1.c (main): Likewise.
21341         * tests/test-truncl.c (main): Likewise.
21342
21343         isnanl: work around icc bug
21344         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
21345
21346 2010-11-03  Eric Blake  <eblake@redhat.com>
21347
21348         tests: fix compiler warnings
21349         * tests/test-getopt.h (test_getopt): Fix condition.
21350         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21351         * tests/test-pipe2.c (main): Likewise.
21352         * tests/test-quotearg-simple.c (main): Avoid icc warning.
21353
21354         utimens: fix broken m4 test
21355         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
21356
21357 2010-10-28  Bruno Haible  <bruno@clisp.org>
21358
21359         posix_spawn*, getdtablesize: Relax license.
21360         * modules/posix_spawn (License): Change to LGPLv2+.
21361         * modules/posix_spawnp (License): Likewise.
21362         * modules/posix_spawn-internal (License): Likewise.
21363         * modules/posix_spawnattr_init (License): Likewise.
21364         * modules/posix_spawnattr_getflags (License): Likewise.
21365         * modules/posix_spawnattr_setflags (License): Likewise.
21366         * modules/posix_spawnattr_getpgroup (License): Likewise.
21367         * modules/posix_spawnattr_setpgroup (License): Likewise.
21368         * modules/posix_spawnattr_getschedparam (License): Likewise.
21369         * modules/posix_spawnattr_setschedparam (License): Likewise.
21370         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
21371         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
21372         * modules/posix_spawnattr_getsigdefault (License): Likewise.
21373         * modules/posix_spawnattr_setsigdefault (License): Likewise.
21374         * modules/posix_spawnattr_getsigmask (License): Likewise.
21375         * modules/posix_spawnattr_setsigmask (License): Likewise.
21376         * modules/posix_spawnattr_destroy (License): Likewise.
21377         * modules/posix_spawn_file_actions_init (License): Likewise.
21378         * modules/posix_spawn_file_actions_addclose (License): Likewise.
21379         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
21380         * modules/posix_spawn_file_actions_addopen (License): Likewise.
21381         * modules/posix_spawn_file_actions_destroy (License): Likewise.
21382         * modules/getdtablesize (License): Likewise.
21383         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
21384
21385 2010-10-26  Bruno Haible  <bruno@clisp.org>
21386
21387         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
21388         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
21389         Cygwin and mingw.
21390         Suggested by Eric Blake.
21391
21392 2010-10-26  Bruno Haible  <bruno@clisp.org>
21393
21394         stdio: Work around compilation error due to renameat() on Solaris 10.
21395         * lib/stdio.in.h: Include <unistd.h> on Solaris.
21396         * lib/renameat.c: Don't include <unistd.h> here.
21397         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
21398         Reported by Paul Eggert and Eric Blake.
21399
21400 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21401
21402         renameat: port to Solaris 10, which declares renameat in unistd.h
21403
21404         * lib/renameat.c: Include unistd.h before stdio.h, because
21405         Solaris 10 declares renameat in unistd.h.  Problem encountered
21406         when building GNU tar 1.24 on Solaris 10.
21407
21408 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21409
21410         fdopendir: fix C89 compilation
21411         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
21412         compilers.
21413
21414 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
21415
21416         inttostr: simplify by removing unnecessary redundancy
21417         * lib/anytostr.c: Don't include verify.h.
21418         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
21419         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
21420         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
21421         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
21422         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
21423         Likewise.
21424         * modules/inttostr (Depends-on): Remove 'verify'.
21425
21426 2010-10-23  Bruno Haible  <bruno@clisp.org>
21427
21428         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
21429         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
21430         Reported by Eric Blake.
21431
21432 2010-10-23  Bruno Haible  <bruno@clisp.org>
21433
21434         Tests: Fix LOCALE_JA on MirBSD 10.
21435         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
21436         to an UTF-8 locale.
21437         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
21438         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21439         Reported by Eric Blake.
21440
21441 2010-10-21  Bruno Haible  <bruno@clisp.org>
21442
21443         nl_langinfo test: Avoid test failure on NetBSD 5.
21444         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
21445         Reported by Eric Blake.
21446
21447 2010-10-21  Eric Blake  <eblake@redhat.com>
21448
21449         c-stack: work around libsigsegv 2.8 bug
21450         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
21451         overflow on at least PowerPC64.
21452
21453 2010-10-17  Bruno Haible  <bruno@clisp.org>
21454
21455         userspec: Drop redundant file.
21456         * modules/userspec (Files): Remove lib/inttostr.h.
21457
21458 2010-10-17  Bruno Haible  <bruno@clisp.org>
21459
21460         nl_langinfo tests: Silence some warnings.
21461         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
21462         Reported by Jim Meyering.
21463
21464 2010-10-17  Bruno Haible  <bruno@clisp.org>
21465
21466         Make use of GCC's attribute __alloc_size__.
21467         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
21468         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
21469         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
21470         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
21471         __alloc_size__.
21472         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21473         Suggested by Jim Meyering.
21474
21475 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
21476
21477         bootstrap: anchor .gitignore entries.
21478         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
21479         with...
21480         (insert_vc_ignore): ... this new function, which prepends `/' to
21481         all .gitignore entries before passing them to
21482         insert_sorted_if_absent.
21483
21484 2010-10-16  Bruno Haible  <bruno@clisp.org>
21485
21486         nextafter: Fix configure check.
21487         * modules/nextafter (configure.ac): Correct expected prototype.
21488
21489 2010-10-16  Bruno Haible  <bruno@clisp.org>
21490
21491         termios: Update documentation.
21492         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
21493
21494 2010-10-16  Bruno Haible  <bruno@clisp.org>
21495
21496         tests: Make them compile with TinyCC.
21497         * tests/test-strstr.c (main): Remove parentheses around array
21498         initializer.
21499
21500 2010-10-15  Eric Blake  <eblake@redhat.com>
21501
21502         ignore-value: make header idempotent
21503         * lib/ignore-value.h: Add double-inclusion guards.
21504         Reported by Stefan Berger.
21505
21506 2010-10-15  Jim Meyering  <meyering@redhat.com>
21507
21508         GNUmakefile: handle "stable" target, not "major"
21509         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
21510         lists in maint.mk and announce-gen.  Without this, "make stable"
21511         would fail to ensure that $(VERSION) is up to date.
21512
21513 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
21514
21515         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
21516         & co.
21517
21518 2010-10-14  Bruno Haible  <bruno@clisp.org>
21519
21520         vasnprintf: Don't set errno to 0.
21521         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
21522         block that sets it to 0.
21523         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21524
21525 2010-10-14  Bruno Haible  <bruno@clisp.org>
21526
21527         socketlib: Fix.
21528         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
21529         gl_PREREQ_SYS_H_WINSOCK2.
21530         Reported by Ian Beckwith <ianb@erislabs.net>.
21531
21532 2010-10-13  Jim Meyering  <meyering@redhat.com>
21533
21534         test-select-stdin.c: avoid warn_unused_result warnings
21535         * tests/test-select-stdin.c: Include "macros.h".
21536         ASSERT that read and fflush succeed.
21537
21538 2010-10-13  Jim Meyering  <meyering@redhat.com>
21539
21540         git-version-gen: do require git-VC'd files in cwd
21541         * build-aux/git-version-gen: Reject a git version string
21542         if there are no commits associated with the current directory.
21543         This avoids an unlikely false-positive (unrelated dir whose parent
21544         repository also contains a tag matching v*), as pointed out
21545         by Giuseppe Scrivano in
21546         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
21547
21548 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21549
21550         argv-iter: omit nonconforming declaration
21551         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
21552         enum arg_iter_err declaration, which doesn't conform to C99.
21553         Solaris 10 cc warns about this.
21554
21555 2010-10-13  Eric Blake  <eblake@redhat.com>
21556
21557         termios: fix compilation on mingw
21558         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
21559         (gl_TERMIOS_H): Adjust it on mingw.
21560         * modules/termios (Makefile.am): Substitute new key.
21561         * lib/termios.in.h (includes): Make include_next conditional.
21562         * doc/posix-headers/termios.texi (termios.h): Update
21563         documentation.
21564         Reported by Daniel P. Berrange.
21565
21566 2010-10-13  Jim Meyering  <meyering@redhat.com>
21567
21568         git-version-gen: don't require that .git/ be in the current dir
21569         * build-aux/git-version-gen: Adjust this script so that it works
21570         when run from any working directory beneath the top-level .git/-
21571         containing directory.  Inspired by a patch from Giuseppe Scrivano,
21572         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
21573
21574         test-select: avoid warn_unused_result warnings
21575         * tests/test-select.c: Include "macros.h".
21576         ASSERT that each call to read, write, and pipe succeeds.
21577         While not technically required, also check each "close".
21578         * modules/select-tests (Files): Add tests/macros.h.
21579
21580         test-symlinkat: remove declaration of unused local
21581         * tests/test-symlinkat.c (main): Remove unused local, "buf".
21582
21583         test-inttostr: avoid shadowing warnings
21584         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
21585         and use malloc rather than the stack for the same reason as
21586         mentioned in the comment justifying the other allocation.
21587
21588 2010-10-11  Bruno Haible  <bruno@clisp.org>
21589
21590         stdlib: Allow multiple gnulib generated replacements to coexist.
21591         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
21592         Reported by Sam Steingold <sds@gnu.org>.
21593
21594 2010-10-11  Jim Meyering  <meyering@redhat.com>
21595
21596         fix a documentation typo
21597         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
21598
21599 2010-10-11  Eric Blake  <eblake@redhat.com>
21600
21601         futimens: work around Solaris 11 bug
21602         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
21603         * tests/test-futimens.h (test_futimens): Enhance, rather than
21604         weaken test.
21605         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21606
21607 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21608
21609         Indentation.
21610         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
21611         higher-level operators more to the left.
21612
21613 2010-10-11  Jim Meyering  <meyering@redhat.com>
21614
21615         test-futimens: avoid unwarranted test failure on Solaris 5.11
21616         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
21617         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
21618         because it tries to dereference the NULL name argument.
21619
21620 2010-10-11  Bruno Haible  <bruno@clisp.org>
21621
21622         Indentation.
21623         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
21624         indentation.
21625
21626 2010-10-11  Jim Meyering  <meyering@redhat.com>
21627
21628         spawn.in.h: make indentation consistent with parentheses
21629         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
21630         Make indentation consistent with parentheses.
21631
21632 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
21633
21634         Fix mismatched parens in previous commit
21635         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
21636         parens.
21637
21638 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21639
21640         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
21641
21642         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
21643         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
21644         * lib/malloca.c: Include "verify.h".
21645         (verify1): Remove, replacing with a verify call.
21646         * lib/relocwrapper.c (verify1): Likewise.
21647         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
21648         Likewise.
21649         * modules/malloca (Depends-on): Add 'verify'.
21650         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
21651         * modules/vasnprintf (Depends-on): Add 'verify'.
21652         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21653         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21654         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21655         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21656         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21657         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21658         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21659
21660         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
21661
21662         Formerly the style was sometimes 2*X - 1, because the C standard
21663         was wrongly thought to disallow ?: in integral constant expressions.
21664         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
21665         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
21666         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21667         * lib/stdint.in.h (_verify_intmax_size): Likewise.
21668         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
21669         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
21670         verify that time_t cannot be floating.
21671
21672 2010-10-08  Eric Blake  <eblake@redhat.com>
21673
21674         time: enforce recent POSIX ruling that time_t is integral
21675         * lib/time.in.h (__time_t_must_be_integral): Detect any
21676         problematic systems, allowing the rest of gnulib to assume POSIX.
21677
21678 2010-10-08  Jim Meyering  <meyering@redhat.com>
21679
21680         fdopendir: fix a bug on systems lacking openat and /proc support
21681         OpenBSD 4.7 is one such system.  The most noticeable effect was
21682         failure of any application making nontrivial use of fts: rm, du,
21683         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
21684           ./rm: traversal failed: `a': Bad file descriptor
21685         Debugging that, you see that even though FD 6 was closed just
21686         prior to the opendir call in fd_clone_opendir, its resulting
21687         dir->dd_fd was 8, rather than the expected value of 6:
21688
21689         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
21690         93                close (fd);
21691         (gdb) n
21692         94                dir = fd_clone_opendir (dupfd);
21693         (gdb) n
21694         95                saved_errno = errno;
21695         (gdb) p dir->dd_fd
21696         $11 = 8
21697
21698         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
21699         The problem is that on OpenBSD, fd_clone_opendir has to resort
21700         to using the old-style save/restore CWD mechanism, due to its
21701         lack of openat/proc support, and *that* would steal the FD (6)
21702         that opendir was supposed to use.
21703
21704         The fix is to squirrel away the desired FD so that save_cwd uses a
21705         different one, and then free the dest FD right before calling opendir.
21706         That guarantees opendir will use the required file descriptor.
21707
21708         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
21709
21710 2010-10-08  Bruno Haible  <bruno@clisp.org>
21711
21712         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
21713         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
21714
21715 2010-10-08  Bruno Haible  <bruno@clisp.org>
21716
21717         nanosleep: Make replacement POSIX compliant.
21718         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
21719         is out of range.
21720         Reported by Jim Meyering.
21721
21722 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21723
21724         bootstrap: add hook for altering gnulib.mk, for Bison
21725         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
21726         the Bison bootstrapping process can rewrite file names and variables
21727         in this file before later parts of 'bootstrap' use the file.
21728         Bison wants to include lib/gnulib.mk from the top-level makefile,
21729         so it needs the file names in this file to be relative to the top
21730         level, not relative to lib; plus it needs variable names to be
21731         rewritten.
21732         (slurp): Use the new function.
21733
21734         bootstrap: reformat for readability
21735         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
21736
21737 2010-10-08  Eric Blake  <eblake@redhat.com>
21738
21739         docs: update cygwin progress
21740         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
21741         1.7.7.
21742         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
21743         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
21744         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
21745         * doc/posix-functions/carg.texi (carg): Likewise.
21746         * doc/posix-functions/cargf.texi (cargf): Likewise.
21747         * doc/posix-functions/casin.texi (casin): Likewise.
21748         * doc/posix-functions/casinf.texi (casinf): Likewise.
21749         * doc/posix-functions/casinh.texi (casinh): Likewise.
21750         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
21751         * doc/posix-functions/catan.texi (catan): Likewise.
21752         * doc/posix-functions/catanf.texi (catanf): Likewise.
21753         * doc/posix-functions/catanh.texi (catanh): Likewise.
21754         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
21755         * doc/posix-functions/ccos.texi (ccos): Likewise.
21756         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
21757         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
21758         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
21759         * doc/posix-functions/cexp.texi (cexp): Likewise.
21760         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
21761         * doc/posix-functions/cimag.texi (cimag): Likewise.
21762         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
21763         * doc/posix-functions/clog.texi (clog): Likewise.
21764         * doc/posix-functions/clogf.texi (clogf): Likewise.
21765         * doc/posix-functions/conj.texi (conj): Likewise.
21766         * doc/posix-functions/conjf.texi (conjf): Likewise.
21767         * doc/posix-functions/cpow.texi (cpow): Likewise.
21768         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
21769         * doc/posix-functions/cproj.texi (cproj): Likewise.
21770         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
21771         * doc/posix-functions/creal.texi (creal): Likewise.
21772         * doc/posix-functions/crealf.texi (crealf): Likewise.
21773         * doc/posix-functions/csin.texi (csin): Likewise.
21774         * doc/posix-functions/csinf.texi (csinf): Likewise.
21775         * doc/posix-functions/csinh.texi (csinh): Likewise.
21776         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
21777         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
21778         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
21779         * doc/posix-functions/ctan.texi (ctan): Likewise.
21780         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
21781         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
21782         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
21783         * doc/posix-headers/complex.texi (complex.h): Likewise.
21784
21785 2010-10-07  Jim Meyering  <meyering@redhat.com>
21786
21787         parse-datetime: avoid compilation failure on OpenBSD 4.7
21788         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
21789         This works around a compilation failure on OpenBSD 4.7:
21790         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
21791
21792 2010-10-07  Eric Blake  <eblake@redhat.com>
21793
21794         docs: update cygwin progress
21795         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
21796         1.7.6.
21797         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21798         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
21799         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
21800         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
21801         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
21802         Likewise.
21803         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
21804         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
21805         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
21806         Likewise.
21807         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
21808         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
21809         Likewise.
21810         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
21811         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
21812         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
21813         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
21814         Likewise.
21815         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
21816         Likewise.
21817         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
21818
21819         docs: update parse-datetime history
21820         * doc/parse-datetime.texi (Authors of parse_datetime): Better
21821         documentation of this function's history and alternatives.
21822
21823         cygwin: use more robust version check
21824         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
21825         exclude an eventual cygwin 1.9.1.
21826         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21827         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21828         (gl_FUNC_STRCASESTR): Likewise.
21829         Reported by Bruno Haible.
21830
21831 2010-10-06  Bruno Haible  <bruno@clisp.org>
21832
21833         string, sys_select: Avoid #including large headers unless necessary.
21834         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
21835         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
21836         OSF/1, BeOS, Haiku.
21837         Reported by Jim Meyering.
21838
21839 2010-10-05  Eric Blake  <eblake@redhat.com>
21840
21841         memmem, strstr, strcasestr: fix bug with long periodic needle
21842         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
21843         periodic needle having false positive.
21844         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
21845         and cygwin 1.7.7.
21846         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
21847         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21848         (gl_FUNC_STRCASESTR): Likewise.
21849         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21850         * tests/test-memmem.c (main): Expose the bug.
21851         * tests/test-strcasestr.c (main): Likewise.
21852         * tests/test-strstr.c (main): Likewise.
21853         * tests/test-c-strcasestr.c (main): Likewise.
21854         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
21855         * doc/posix-functions/strstr.texi (strstr): Likewise.
21856         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21857         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
21858
21859 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21860
21861         parse-datetime: do some more renaming
21862         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
21863         parse_datetime, not get_date.  Mention the renaming.
21864         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
21865         in comments.
21866         * m4/bison.m4: Likewise.
21867
21868 2010-10-05  Eric Blake  <eblake@redhat.com>
21869
21870         parse-datetime: better name than get_date
21871         * NEWS: Reword the deprecation notice.
21872         * modules/get_date: Rename to modules/parse-datetime.
21873         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
21874         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
21875         * lib/get_date.y: Rename to lib/parse-datetime.y.
21876         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
21877         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
21878         * doc/getdate.texi: Provide fallback wrapper.
21879         * lib/getdate.h: Move guts, and wrap...
21880         * lib/parse-datetime.h: ...new file.
21881         * lib/parse-datetime.y (get_date): Rename...
21882         (parse_datetime): ...to this.
21883         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
21884         (gl_PARSE_DATETIME): ...to this.
21885         * doc/posix-functions/getdate.texi (get_date): Provide fallback
21886         documentation.
21887         * modules/getdate (Files): Provide fallback docs and header.
21888         (Notice, Depends-on): Update references.
21889         * tests/test-parse-datetime.c: Likewise.
21890         * DEPENDENCIES: Likewise.
21891         * MODULES.html.sh (Date and time <time.h>): Likewise.
21892         * doc/parse-datetime.texi (Date input formats)
21893         (Authors of parse_datetime): Likewise.
21894         * modules/parse-datetime (Files, configure.ac, Makefile.am)
21895         (Include): Likewise.
21896         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
21897         * gnulib-tool: Likewise.
21898         * m4/bison.m4 (gl_BISON): Likewise.
21899         Suggested by Bruno Haible.
21900
21901 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21902
21903         more ports to Solaris tr, which needs [] around ranges
21904         * gnulib-tool: Solaris tr needs [] around ranges.
21905         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21906         * tests/test-pipe-filter-gi1.c (main): Likewise.
21907         * tests/test-pipe-filter-ii1.c (main): Likewise.
21908
21909 2010-10-05  Eric Blake  <eblake@redhat.com>
21910
21911         bootstrap: fix Solaris regression
21912         * build-aux/bootstrap (check_versions): Solaris tr still needs []
21913         around ranges.
21914         Reported by Pádraig Brady.
21915
21916         bootstrap: work with pkg-config
21917         * build-aux/bootstrap (check_versions): Also transliterate - in
21918         prerequisite name.
21919         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
21920         prerequisites that were already found, to avoid confusion.
21921         Reported by Justin Clift.
21922
21923         faccessat: remove unused wrappers
21924         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
21925         presence of these wrappers dragged in -lgen on Solaris.
21926         Reported by Clemens Brogi; fix suggested by Paul Eggert.
21927
21928 2010-10-05  Jim Meyering  <meyering@redhat.com>
21929
21930         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
21931         * Makefile (sc_pragma_columns): New syntax-check rule.
21932
21933 2010-10-04  Bruno Haible  <bruno@clisp.org>
21934
21935         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
21936         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
21937         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
21938         Reported by Bruce Korb and Eric Blake.
21939
21940 2010-10-04  Bruno Haible  <bruno@clisp.org>
21941
21942         threadlib: Make option --with-libpth-prefix work.
21943         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
21944         use $LIBPTH, not just -lpth.
21945
21946 2010-10-04  Bruno Haible  <bruno@clisp.org>
21947
21948         Avoid line length limitation from HP NonStop system header files.
21949         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
21950         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
21951         * lib/ctype.in.h: Likewise.
21952         * lib/dirent.in.h: Likewise.
21953         * lib/errno.in.h: Likewise.
21954         * lib/fcntl.in.h: Likewise.
21955         * lib/float.in.h: Likewise.
21956         * lib/getopt.in.h: Likewise.
21957         * lib/iconv.in.h: Likewise.
21958         * lib/inttypes.in.h: Likewise.
21959         * lib/langinfo.in.h: Likewise.
21960         * lib/locale.in.h: Likewise.
21961         * lib/math.in.h: Likewise.
21962         * lib/netdb.in.h: Likewise.
21963         * lib/netinet_in.in.h: Likewise.
21964         * lib/poll.in.h: Likewise.
21965         * lib/pthread.in.h: Likewise.
21966         * lib/pty.in.h: Likewise.
21967         * lib/sched.in.h: Likewise.
21968         * lib/se-selinux.in.h: Likewise.
21969         * lib/search.in.h: Likewise.
21970         * lib/signal.in.h: Likewise.
21971         * lib/spawn.in.h: Likewise.
21972         * lib/stdarg.in.h: Likewise.
21973         * lib/stddef.in.h: Likewise.
21974         * lib/stdint.in.h: Likewise.
21975         * lib/stdio.in.h: Likewise.
21976         * lib/stdlib.in.h: Likewise.
21977         * lib/string.in.h: Likewise.
21978         * lib/strings.in.h: Likewise.
21979         * lib/sys_file.in.h: Likewise.
21980         * lib/sys_ioctl.in.h: Likewise.
21981         * lib/sys_select.in.h: Likewise.
21982         * lib/sys_socket.in.h: Likewise.
21983         * lib/sys_stat.in.h: Likewise.
21984         * lib/sys_time.in.h: Likewise.
21985         * lib/sys_times.in.h: Likewise.
21986         * lib/sys_utsname.in.h: Likewise.
21987         * lib/sys_wait.in.h: Likewise.
21988         * lib/sysexits.in.h: Likewise.
21989         * lib/termios.in.h: Likewise.
21990         * lib/time.in.h: Likewise.
21991         * lib/unistd.in.h: Likewise.
21992         * lib/wchar.in.h: Likewise.
21993         * lib/wctype.in.h: Likewise.
21994         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
21995         * modules/ctype (Makefile.am): Likewise.
21996         * modules/dirent (Makefile.am): Likewise.
21997         * modules/errno (Makefile.am): Likewise.
21998         * modules/fcntl-h (Makefile.am): Likewise.
21999         * modules/float (Makefile.am): Likewise.
22000         * modules/getopt-posix (Makefile.am): Likewise.
22001         * modules/iconv-h (Makefile.am): Likewise.
22002         * modules/inttypes (Makefile.am): Likewise.
22003         * modules/langinfo (Makefile.am): Likewise.
22004         * modules/locale (Makefile.am): Likewise.
22005         * modules/math (Makefile.am): Likewise.
22006         * modules/netdb (Makefile.am): Likewise.
22007         * modules/netinet_in (Makefile.am): Likewise.
22008         * modules/poll-h (Makefile.am): Likewise.
22009         * modules/pthread (Makefile.am): Likewise.
22010         * modules/pty (Makefile.am): Likewise.
22011         * modules/sched (Makefile.am): Likewise.
22012         * modules/search (Makefile.am): Likewise.
22013         * modules/selinux-h (Makefile.am): Likewise.
22014         * modules/signal (Makefile.am): Likewise.
22015         * modules/spawn (Makefile.am): Likewise.
22016         * modules/stdarg (Makefile.am): Likewise.
22017         * modules/stddef (Makefile.am): Likewise.
22018         * modules/stdint (Makefile.am): Likewise.
22019         * modules/stdio (Makefile.am): Likewise.
22020         * modules/stdlib (Makefile.am): Likewise.
22021         * modules/string (Makefile.am): Likewise.
22022         * modules/strings (Makefile.am): Likewise.
22023         * modules/sys_file (Makefile.am): Likewise.
22024         * modules/sys_ioctl (Makefile.am): Likewise.
22025         * modules/sys_select (Makefile.am): Likewise.
22026         * modules/sys_socket (Makefile.am): Likewise.
22027         * modules/sys_stat (Makefile.am): Likewise.
22028         * modules/sys_time (Makefile.am): Likewise.
22029         * modules/sys_times (Makefile.am): Likewise.
22030         * modules/sys_utsname (Makefile.am): Likewise.
22031         * modules/sys_wait (Makefile.am): Likewise.
22032         * modules/sysexits (Makefile.am): Likewise.
22033         * modules/termios (Makefile.am): Likewise.
22034         * modules/time (Makefile.am): Likewise.
22035         * modules/unistd (Makefile.am): Likewise.
22036         * modules/wchar (Makefile.am): Likewise.
22037         * modules/wctype (Makefile.am): Likewise.
22038
22039 2010-10-04  Bruno Haible  <bruno@clisp.org>
22040
22041         read-file tests: Avoid a test failure on NonStop Kernel.
22042         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
22043         a regular file.
22044         Reported by Joachim Schmitz <schmitz@hp.com>.
22045
22046 2010-10-03  Bruno Haible  <bruno@clisp.org>
22047
22048         gnulib-tool: Fixes for --create-testdir with --libtool.
22049         * gnulib-tool (func_get_automake_snippet): Don't augment
22050         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
22051         an executable.
22052         (func_create_testdir): Handle module 'alloca' like func_import.
22053         Reported by Bruce Korb <bruce.korb@gmail.com>.
22054
22055 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
22056
22057         Avoid some lines longer than 80 characters.
22058         * lib/stdint.in.h: Break long comment lines.
22059         * lib/math.in.h: Likewise.
22060         (_GL_NUM_UINT_WORDS): New macro, for readability.
22061         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
22062         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
22063         * lib/stdlib.in.h: Likewise.
22064         * lib/spawn.in.h: Likewise.
22065         * lib/sys_socket.in.h: Update an URL.
22066         * lib/sys_stat.in.h: Break long line.
22067
22068 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
22069
22070         Improve pmccabe2html.
22071         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
22072         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
22073         when the sources change. Remove the line in the HTML about "Used
22074         ranges" (which implied that there might be other unused ranges),
22075         rename "Resume" to "Summary" (easier to understand for more users).
22076         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
22077         styles, and some unnecessary blank lines.
22078
22079 2010-10-03  Bruno Haible  <bruno@clisp.org>
22080             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
22081
22082         acl: Add support for ACLs on NonStop Kernel.
22083         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
22084         Check whether the function aclsort() exists.
22085         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
22086         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
22087         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22088         (acl_nontrivial [HAVE_ACLSORT]: New function.
22089         (file_has_acl): Implement for NonStop Kernel.
22090         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22091         (qset_acl): Implement for NonStop Kernel.
22092         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
22093         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22094         (main): Implement for NonStop Kernel.
22095         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
22096         Kernel. Handle this flavor.
22097         * tests/test-set-mode-acl.sh: Likewise.
22098         * tests/test-copy-acl.sh: Likewise.
22099         * tests/test-copy-file.sh: Likewise.
22100
22101 2010-10-03  Bruno Haible  <bruno@clisp.org>
22102
22103         Info about ACLs on NonStop Kernel.
22104         * doc/acl-resources.txt: Add info about NonStop Kernel.
22105         References by Joachim Schmitz <schmitz@hp.com>.
22106
22107 2010-10-02  Bruno Haible  <bruno@clisp.org>
22108
22109         Define missing EDQUOT on NonStop Kernel.
22110         * lib/errno.in.h (EDQUOT): Assign a value if missing.
22111         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
22112         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
22113         missing.
22114         * doc/posix-headers/errno.texi: Mention the NSK bug.
22115         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
22116         Reported by Joachim Schmitz <schmitz@hp.com>.
22117
22118 2010-10-02  Bruno Haible  <bruno@clisp.org>
22119
22120         Update doc for POSIX:2008.
22121         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
22122         Update URL of POSIX specification.
22123
22124 2010-10-02  Bruno Haible  <bruno@clisp.org>
22125
22126         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
22127         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
22128         from gnulib, not from Automake.
22129
22130 2010-10-02  Bruno Haible  <bruno@clisp.org>
22131
22132         New module 'system-posix'.
22133         * modules/system-posix: New file.
22134         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
22135         module is present.
22136         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22137         GNULIB_SYSTEM_POSIX.
22138         * modules/stdlib (Depends-on): Remove sys_wait.
22139         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
22140         * doc/posix-functions/system.texi: Mention the new module.
22141         * doc/posix-headers/stdlib.texi: Likewise.
22142         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
22143         define test_sys_wait_macros to a no-op.
22144         Reported by Sam Steingold <sds@gnu.org>.
22145
22146 2010-09-30  Bruno Haible  <bruno@clisp.org>
22147
22148         More renaming from 'getdate' to 'get_date'.
22149         * doc/get_date.texi: Renamed from doc/getdate.texi.
22150         * modules/get_date (Files): Update.
22151         * MODULES.html.sh (Date and time <time.h>): Update.
22152         * DEPENDENCIES: Update.
22153         * gnulib-tool: Update comment.
22154         * m4/bison.m4 (gl_BISON): Likewise.
22155         * m4/get_date.m4 (gl_GET_DATE): Likewise.
22156
22157 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
22158
22159         bootstrap: support ACLOCAL_FLAGS during aclocal
22160         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
22161         can add additional -I dir for third-party .m4 files.
22162
22163 2010-09-30  Eric Blake  <eblake@redhat.com>
22164
22165         bootstrap: use glibtoolize on MacOS
22166         * build-aux/bootstrap (check_versions): Convert libtool into
22167         libtoolize.
22168         (tool search): Move libtool check earlier, and look for
22169         glibtoolize for MacOS.
22170         (gnulib_tool_options): Auto-add --libtool when appropriate.
22171         Reported by Justin Clift.
22172
22173         poll: fix typo that broke test on MacOS
22174         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
22175         Reported by Justin Clift.
22176
22177         getdate: rename to get_date
22178         Note: getdate.h is not renamed, to minimize client impact.
22179         * modules/getdate: Mark obsolete.  Move old contents...
22180         * modules/get_date: ...to new module name.
22181         * modules/getdate-tests: Move...
22182         * modules/get_date-tests: ...here.
22183         * m4/getdate.m4: Move...
22184         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
22185         * lib/getdate.y: Move...
22186         * lib/get_date.y: ...here.
22187         * tests/test-getdate.c: Move...
22188         * tests/test-get_date.c: ...here.
22189         * doc/posix-functions/getdate.texi (getdate): Update name.
22190         * NEWS: Mention the change.
22191
22192 2010-09-29  Bruno Haible  <bruno@clisp.org>
22193
22194         Separate the module 'waitpid' from the module 'sys_wait'.
22195         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
22196         present.
22197         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
22198         gl_MODULE_INDICATOR_FOR_TESTS.
22199         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
22200         * modules/sys_wait (Depends-on): Remove waitpid.
22201         (Makefile.am): Substitute GNULIB_WAITPID.
22202         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
22203         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
22204         signature only if the 'waitpid' module is present.
22205         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
22206         * NEWS: Mention the change.
22207         * modules/grantpt (Depends-on): Add waitpid.
22208         * modules/wait-process (Depends-on): Likewise.
22209
22210 2010-09-29  Bruno Haible  <bruno@clisp.org>
22211
22212         More tests for module 'sys_wait'.
22213         * modules/sys_wait-c++-tests: New file.
22214         * tests/test-sys_wait-c++.cc: New file.
22215         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
22216         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22217
22218 2010-09-29  Bruno Haible  <bruno@clisp.org>
22219
22220         New module 'waitpid'.
22221         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
22222         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
22223         Don't include <process.h>.
22224         (waitpid): Declare only, using modern idiom.
22225         * m4/waitpid.m4: New file.
22226         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
22227         * modules/waitpid: New file.
22228         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
22229         (Makefile.am): Update.
22230         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22231
22232 2010-09-28  Bruno Haible  <bruno@clisp.org>
22233
22234         poll: Assume ANSI C.
22235         * lib/poll.c (poll): Use an ANSI C declaration.
22236
22237 2010-09-28  Bruno Haible  <bruno@clisp.org>
22238
22239         poll-h: Create poll.h on all platforms.
22240         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
22241         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
22242         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
22243         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
22244         (gl_REPLACE_POLL_H): Don't set POLL_H.
22245         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
22246         * modules/poll-h (Depends-on): Add include_next.
22247         (Makefile.am): Create poll.h unconditionally. Substitute also
22248         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
22249
22250 2010-09-28  Bruno Haible  <bruno@clisp.org>
22251
22252         Tests for module 'poll-h'.
22253         * modules/poll-h-c++-tests: New file.
22254         * tests/test-poll-h-c++.cc: New file.
22255
22256         Tests for module 'poll-h'.
22257         * modules/poll-h-tests: New file.
22258         * tests/test-poll-h.c: New file.
22259
22260 2010-09-28  Bruno Haible  <bruno@clisp.org>
22261
22262         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
22263         * modules/poll-h (Depends-on): Add 'extensions'.
22264
22265 2010-09-28  Bruno Haible  <bruno@clisp.org>
22266
22267         New module 'poll-h'.
22268         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
22269         (poll): Use modern idiom.
22270         * modules/poll-h: New file.
22271         * modules/poll (Files): Remove lib/poll.in.h.
22272         (Depends-on): Add poll-h.
22273         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
22274         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
22275         * m4/poll_h.m4: New file.
22276         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
22277         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
22278         and invoke gl_REPLACE_POLL_H.
22279         * lib/poll.c: Use common idiom.
22280         * tests/test-poll.c: Likewise.
22281         * doc/posix-headers/poll.texi: Mention the poll-h module.
22282         Suggested by Eric Blake.
22283
22284 2010-09-26  Bruno Haible  <bruno@clisp.org>
22285
22286         sys_wait: Implement WSTOPSIG.
22287         * lib/sys_wait.in.h (WSTOPSIG): New macro.
22288         Reported by Simon Josefsson.
22289
22290 2010-09-26  Simon Josefsson  <simon@josefsson.org>
22291
22292         stdlib, sys_wait: Avoid compilation error on mingw.
22293         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
22294
22295 2010-09-26  Bruno Haible  <bruno@clisp.org>
22296
22297         stdlib tests: Avoid code duplication.
22298         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
22299         * modules/sys_wait-tests (Files): Likewise.
22300         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
22301         * tests/test-stdlib.c: Include test-sys_wait.h.
22302         (main): Invoke test_sys_wait_macros.
22303         * tests/test-sys_wait.c: Include test-sys_wait.h.
22304         (main): Invoke test_sys_wait_macros.
22305
22306 2010-09-25  Simon Josefsson  <simon@josefsson.org>
22307
22308         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
22309         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
22310         sure Windows sockets are working before calling getaddrinfo.
22311         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
22312         * doc/gnulib.texi (Windows sockets): Fix typo.
22313
22314 2010-09-25  Bruno Haible  <bruno@clisp.org>
22315
22316         Tests for module 'regex-quote'.
22317         * modules/regex-quote-tests: New file.
22318         * tests/test-regex-quote.c: New file.
22319
22320         New module 'regex-quote'.
22321         * lib/regex-quote.h: New file.
22322         * lib/regex-quote.c: New file.
22323         * modules/regex-quote: New file.
22324         Suggested by Reuben Thomas <rrt@sc3d.org>.
22325
22326 2010-09-24  Bruno Haible  <bruno@clisp.org>
22327
22328         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
22329         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
22330
22331 2010-09-23  Bruno Haible  <bruno@clisp.org>
22332
22333         setenv: Relax license.
22334         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
22335         Blake.
22336         Requested by Eric Blake.
22337
22338 2010-09-22  Bruno Haible  <bruno@clisp.org>
22339
22340         termios: Relax license.
22341         * modules/termios (License): Change to LGPLv2+.
22342         Requested by Eric Blake.
22343
22344 2010-09-22  Bruno Haible  <bruno@clisp.org>
22345
22346         threadlib: Allow the package to change the default to 'no'.
22347         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
22348         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
22349         Reported by Paul Eggert.
22350
22351 2010-09-22  Pádraig Brady  <P@draigbrady.com>
22352             Bruno Haible  <bruno@clisp.org>
22353
22354         Fix endless loop in mbmemcasecoll.
22355         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
22356         byte.
22357         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
22358
22359 2010-09-22  Bruno Haible  <bruno@clisp.org>
22360
22361         Tests for module 'memcoll'.
22362         * modules/memcoll-tests: New file.
22363         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
22364
22365         memcoll, xmemcoll: Clarify size vs. length.
22366         * modules/memcoll.c (memcoll0): Clarify specification.
22367         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
22368         passed to collate_error.
22369
22370 2010-09-22  Bruno Haible  <bruno@clisp.org>
22371
22372         Tests for module 'memcasecmp'.
22373         * modules/memcasecmp-tests: New file.
22374         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
22375
22376 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22377
22378         * lib/pthread.in.h: Add split double-inclusion guard, and include
22379         system <pthread.h> if there is one.  Use @@-style as in other
22380         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
22381         pthread.h doesn't.
22382         (pthread_mutexattr_destroy, pthread_mutexattr_init):
22383         (pthread_mutexattr_settype, pthread_mutex_trylock):
22384         New static inline functions, if there's no system <pthread.h>.
22385         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
22386         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
22387         Approximate with mutexes if the system lacks spinlocks, as in
22388         MacOS.
22389         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
22390         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
22391         @@-style.  Check for spinlocks separately.
22392         (gl_PTHREAD_DEFAULTS): New macro.
22393         * modules/pthread: Redo to use a more typical style for in.h files.
22394
22395 2010-09-21  Eric Blake  <eblake@redhat.com>
22396
22397         net_if: enhance tests
22398         * tests/test-net_if.c (main): Move signature checks earlier.
22399         Print failures to stderr.
22400         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
22401         Document the bug that we do not yet fix.
22402
22403 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22404
22405         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
22406         about gnulib, not GSS.
22407
22408 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22409
22410         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
22411         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
22412         for Emacs.
22413         * build-aux/pmccabe2html: Make Makefile.am example code more
22414         cut-and-paste friendly.
22415
22416 2010-09-21  Simon Josefsson  <simon@josefsson.org>
22417
22418         * tests/test-net_if.c: New file.
22419         * modules/net_if-tests: New file.
22420
22421 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22422
22423         pthread: add pthread_spin_destroy
22424         * lib/pthread.in.h (pthread_spin_destroy): New function.
22425
22426 2010-09-19  Bruno Haible  <bruno@clisp.org>
22427
22428         gnulib-tool: Fix --help output.
22429         * gnulib-tool (func_usage): Fix help message.
22430         Reported by Reuben Thomas <rrt@sc3d.org>.
22431
22432 2010-09-18  Jim Meyering  <meyering@redhat.com>
22433
22434         maint.mk: avoid unexpanded \n in two diagnostics
22435         * top/maint.mk (sc_prohibit_always_true_header_tests):
22436         Don't use a literal \n in a halt=... assignment.  It would not be
22437         expanded, and the two \n bytes would appear in the diagnostic output
22438         rather than the desired newline.  Use halt=$$(printf ... instead.
22439         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22440
22441 2010-09-18  Bruno Haible  <bruno@clisp.org>
22442
22443         netinet_in: Doc tweak.
22444         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
22445         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22446
22447 2010-09-18  Jim Meyering  <meyering@redhat.com>
22448
22449         init.sh: correct an outdated comment
22450         * tests/init.sh (create_exe_shims_):  s/function/alias/
22451
22452         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
22453         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
22454         a file named "*.exe" is removed between the glob expansion and the
22455         processing of that oddly named file.
22456
22457 2010-09-17  Eric Blake  <eblake@redhat.com>
22458
22459         mirbsd: add some more support
22460         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
22461         in BSD family.
22462         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
22463         devices as OpenBSD.
22464         * m4/host-os.m4 (mirbsd): Add MirBSD.
22465
22466         tests: fix unportable assumption on sys/wait.h
22467         * tests/test-sys_wait.c (main): Relax test.
22468         * tests/test-stdlib.c (main): Likewise.
22469
22470         init.sh: accomodate directory with no .exes
22471         * tests/init.sh: Accomodate directory containing only scripts.
22472
22473         tests: avoid compiler warning
22474         * tests/test-stdlib.c (main): Use the variable.
22475
22476         fdutimens, fdutimensat: update signature, again
22477         * lib/utimens.h (gl_futimens): Delete, and move signature...
22478         (fdutimens): ...here.
22479         (fdutimensat): Rearrange signature.
22480         (lutimensat): Rename variable for clarity.
22481         * lib/fdutimensat.c (fdutimensat): Update signature.
22482         * lib/utimens.c (fdutimens): Likewise.
22483         (gl_futimens): Delete.
22484         (utimens, lutimens): Update callers.
22485         * lib/futimens.c (futimens): Likewise.
22486         * tests/test-fdutimensat.c: Likewise.
22487         * tests/test-utimens.c: Likewise.
22488         * tests/test-futimens.h: Update comment.
22489         * NEWS: Mention this.
22490         Suggested by Paul Eggert.
22491
22492 2010-09-17  Bruno Haible  <bruno@clisp.org>
22493
22494         Take over the maintenance of some older macros from Autoconf.
22495         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
22496         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
22497         GNU Autoconf.
22498         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
22499         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
22500
22501 2010-09-17  Eric Blake  <eblake@redhat.com>
22502
22503         fdutimensat: drop atflag validation
22504         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
22505         with valid fd, to close a race scenario where futimens is
22506         unsupported and FILE was replaced by a symlink.
22507         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
22508         accordingly.
22509         Suggested by Paul Eggert.
22510
22511 2010-09-16  Bruno Haible  <bruno@clisp.org>
22512
22513         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
22514         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
22515
22516 2010-09-16  Bruno Haible  <bruno@clisp.org>
22517
22518         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
22519         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
22520         login_tty exists.
22521         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22522
22523 2010-09-16  Bruno Haible  <bruno@clisp.org>
22524
22525         login_tty: Make the replacement code work on BSD systems.
22526         * lib/login_tty.c: Include <sys/ioctl.h>.
22527         (login_tty): Use ioctl TIOCSCTTY when available.
22528         * modules/login_tty (Depends-on): Add sys_ioctl.
22529         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22530
22531 2010-09-16  Bruno Haible  <bruno@clisp.org>
22532
22533         login_tty: Stricter unit test.
22534         * modules/login_tty-tests (Depends-on): Add tcgetsid.
22535         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
22536         and tcgetsid() after login_tty.
22537         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22538
22539 2010-09-16  Bruno Haible  <bruno@clisp.org>
22540
22541         New module 'tcgetsid'.
22542         * lib/tcgetsid.c: New file.
22543         * m4/tcgetsid.m4: New file.
22544         * modules/tcgetsid: New file.
22545         * modules/termios (Depends-on): Add c++defs, warn-on-use.
22546         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
22547         GNULIB_TCGETSID, HAVE_TCGETSID.
22548         * lib/termios.in.h: Include <sys/types.h>.
22549         (tcgetsid): New declaration.
22550         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
22551         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
22552         * doc/posix-functions/tcgetsid.texi: Mention the new module.
22553         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
22554
22555 2010-09-16  Bruno Haible  <bruno@clisp.org>
22556
22557         Tests for module 'termios'.
22558         * modules/termios-c++-tests: New file.
22559         * modules/termios-tests: New file.
22560         * tests/test-termios-c++.cc: New file.
22561         * tests/test-termios.c: New file.
22562
22563         New module 'termios'.
22564         * modules/termios: New file.
22565         * lib/termios.in.h: New file.
22566         * m4/termios_h.m4: New file.
22567         * doc/posix-headers/termios.texi: Mention the new module.
22568
22569 2010-09-16  Eric Blake  <eblake@redhat.com>
22570
22571         fdutimensat: add an atflag parameter
22572         * lib/fdutimensat.c (fdutimensat): Add new parameter.
22573         * lib/utimens.h (fdutimensat): Update prototype.
22574         * tests/test-fdutimensat.c: Adjust test to match.
22575         * NEWS: Document the change.
22576         Suggested by Paul Eggert.
22577
22578 2010-09-16  Bruno Haible  <bruno@clisp.org>
22579
22580         Fix typos in comments.
22581         * lib/striconveh.h: Fix typo in comment.
22582         * lib/login_tty.c (login_tty): Likewise.
22583
22584 2010-09-15  Bruno Haible  <bruno@clisp.org>
22585
22586         stdlib: clarify MirBSD WEXITSTATUS bug
22587         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
22588         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22589
22590 2010-09-15  Eric Blake  <eblake@redhat.com>
22591
22592         stdlib: work around MirBSD WEXITSTATUS bug
22593         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
22594         * modules/stdlib (Depends-on): Add sys_wait.
22595         * tests/test-sys_wait.c (main): Enhance test.
22596         * tests/test-stdlib.c (main): Likewise.
22597         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
22598
22599         docs: mention MacOS issue with WEXITSTATUS(constant)
22600         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
22601         issue.
22602         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22603
22604         strnlen: add tests
22605         * modules/strnlen-tests: New file.
22606         * tests/test-strnlen.c: Likewise.
22607
22608 2010-09-14  Bruno Haible  <bruno@clisp.org>
22609
22610         unistr/base: Avoid link errors when module 'libunistring' is also used.
22611         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
22612         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
22613         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
22614         Declare also when HAVE_LIBUNISTRING is set.
22615         Reported by Pádraig Brady <P@draigbrady.com>.
22616
22617 2010-09-14  Eric Blake  <eblake@redhat.com>
22618
22619         test-rawmemchr: make more robust
22620         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
22621         (Depends-on, configure.ac): Add needed prerequisites to use it.
22622         * modules/memchr-tests (Files, Depends-on, configure.ac):
22623         Likewise, to avoid implicit reliance on memchr module prereqs.
22624         * tests/test-memchr.c (main): Ensure proper masking.
22625         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
22626         reads.
22627
22628         memchr: detect glibc Alpha bug
22629         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
22630         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
22631         Alpha.
22632         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
22633         * tests/test-memchr.c (main): Enhance test.
22634         Reported by Nelson H. F. Beebe.
22635
22636 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22637
22638         fts, getcwd, glob: audit for dirfd returning -1
22639         * lib/fts.c (opendir): Remove #define; no longer used.
22640         (opendirat): New arg PDIR_FD.  All callers changed.
22641         (fts_build, _opendir2): Use new opendirat to avoid the need for
22642         dirfd, or for checking whether dirfd returns a negative value.
22643         Don't use opendir; always use openat followed by fdopendir.
22644         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
22645         it.
22646         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
22647         returns -1 here.
22648         * modules/fts (Depends-on): Remove dirfd.
22649         * modules/getcwd (Depends-on): Likewise.
22650
22651 2010-09-13  Eric Blake  <eblake@redhat.com>
22652
22653         float: fix broken MirBSD header
22654         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
22655         * doc/posix-headers/float.texi (float.h): Document it.
22656
22657 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22658
22659         fts: use O_NOFOLLOW to avoid race condition when opening a directory
22660         * lib/fts.c (opendirat): New arg extra_flags.
22661         (__opendir2): Use it to avoid following symlinks when opening
22662         a directory, if symlinks are not supposed to be followed.  See
22663         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
22664
22665         fdopendir: preserve argument fd before returning
22666         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
22667         (fdopendir_with_dup, fd_clone_opendir): New static functions.
22668         (fdopendir): Use them, arranging for FD to be open to the same
22669         directory that it was when it started.  (It might be temporarily
22670         closed while fdopendir is running, so this not thread- or
22671         signal-safe.)  Be careful to do the right thing even when file
22672         descriptors are scarce and dup fails with errno == EMFILE.  See
22673         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
22674
22675 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
22676
22677         regex: Pass the system regex if its only problem is 32-bit regoff_t.
22678         * NEWS: Document change.
22679         * m4/regex.m4: Disable test for regoff_t size.
22680
22681 2010-09-13  Jim Meyering  <meyering@redhat.com>
22682
22683         fts: don't operate on an invalid file descriptor after failed dup
22684         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
22685         negative file descriptor.
22686
22687 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22688
22689         savedir: add streamsavedir, deprecate fdsavedir
22690         * NEWS: Mention deprecation of fdsavedir.
22691         * lib/savedir.c (streamsavedir): New extern function, whose name
22692         ends in "savedir" to be consistent with the others.  This differs
22693         from savedirstream in that it doesn't close its argument.  The
22694         next version of GNU tar will use this instead of fdsavedir, to
22695         avoid some race conditions and conserve file descriptors.
22696         (savedirstream): Reimplement as a wrapper around streamsavedir.
22697         (fdsavedir): Add a comment deprecating this function.  As far as
22698         I know, only GNU tar used it, and GNU tar doesn't need it any more.
22699         * lib/savedir.h (streamsavedir): New decl.
22700         (fdsavedir): Add a comment deprecating this.
22701
22702 2010-09-10  Bruno Haible  <bruno@clisp.org>
22703
22704         langinfo: Fix last commit.
22705         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
22706         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
22707         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22708
22709 2010-09-10  Bruno Haible  <bruno@clisp.org>
22710
22711         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
22712         * lib/progreloc.c (O_EXEC): Define fallback.
22713
22714 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
22715
22716         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
22717         * NEWS: Document recent changes to fcntl-h.
22718         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
22719         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
22720         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
22721         Similarly for O_SEARCH; this last was already true, but not documented.
22722         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
22723         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
22724         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
22725         Likewise.
22726         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
22727         is zero, not whether it is defined.
22728         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
22729         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
22730         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
22731
22732 2010-09-10  Bruno Haible  <bruno@clisp.org>
22733
22734         langinfo, nl_langinfo: Fix for IRIX 5.3.
22735         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
22736         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
22737         HAVE_LANGINFO_YESEXPR.
22738         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
22739         HAVE_LANGINFO_YESEXPR.
22740         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
22741         HAVE_LANGINFO_T_FMT_AMPM is 0.
22742         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
22743         HAVE_LANGINFO_YESEXPR is 0.
22744         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
22745         NOEXPR.
22746         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
22747         * doc/posix-functions/nl_langinfo.texi: Likewise.
22748         Reported by Eric Blake.
22749
22750 2010-09-10  Bruno Haible  <bruno@clisp.org>
22751
22752         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
22753         * doc/glibc-functions/login_tty.texi: Mention the include file problem
22754         on FreeBSD 8.0 and OpenBSD 4.6.
22755         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
22756         * m4/pty_h.m4 (gl_PTY_H): Likewise.
22757         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
22758         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
22759         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
22760         ac_includes_default.
22761         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22762
22763 2010-09-09  Eric Blake  <eblake@redhat.com>
22764
22765         strsignal: work around NetBSD bug
22766         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
22767         * lib/string.in.h (includes): Likewise.
22768         * doc/posix-functions/strsignal.texi (strsignal): Document the
22769         bug.
22770         Reported by Nelson H. F. Beebe.
22771
22772         gnulib-tool: work with NetBSD /bin/sh
22773         * gnulib-tool (func_cache_var, func_cache_lookup_module)
22774         (func_get_description, func_get_comment, func_get_status)
22775         (func_get_notice, func_get_applicability, func_get_filelist)
22776         (func_get_dependencies, func_get_autoconf_early_snippet)
22777         (func_get_autoconf_snippet, func_get_automake_snippet)
22778         (func_get_include_directive, func_get_link_directive)
22779         (func_get_license, func_get_maintainer, func_import): Avoid
22780         shell syntax errors from parsing syntax extensions.
22781
22782 2010-09-09  Bruno Haible  <bruno@clisp.org>
22783
22784         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22785         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
22786         a reliable way to determine whether the 'alias' command works.
22787
22788 2010-09-08  Jim Meyering  <meyering@redhat.com>
22789
22790         init.sh: penalize a set-x-impaired shell; don't disqualify it
22791         * tests/init.sh: Too many shells corrupt application stderr when
22792         you set -x, so we can't afford to disqualify them, since at least
22793         on Irix-6.5, that would disqualify all bourne shells.
22794         Instead, use a two-pass approach.
22795         On the first pass, try to find a shell that meets the stricter
22796         condition that set -x does not corrupt stderr.
22797         If no shell meets the stricter condition, retest each candidate
22798         shell, but without that extra condition.  Finally, when
22799         VERBOSE=yes is requested and set -x might cause trouble, simply
22800         issue a warning and refrain from enabling debug output.
22801
22802 2010-09-08  Eric Blake  <eblake@redhat.com>
22803
22804         unsetenv: fix OpenBSD bug
22805         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
22806         * doc/posix-functions/unsetenv.texi (unsetenv): Update
22807         documentation.
22808         Reported by Jim Meyering.
22809
22810         strtod: work around IRIX 6.5 bug
22811         * lib/strtod.c (strtod): Reparse number on shorter string if
22812         exponent parse was invalid.
22813         * tests/test-strtod.c (main): Add check for "0x1p 2".
22814         Reported by Tom G. Christensen.
22815
22816         getopt: optimize previous patch
22817         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
22818         empty variable.  Speed up awk script.
22819         Reported by Paolo Bonzini.
22820
22821 2010-09-08  Jim Meyering  <meyering@redhat.com>
22822
22823         test.sh: disqualify shells for which set -x corrupts stderr
22824         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
22825         and OpenBSD 4.7.  They make it so with "set -x", environment settings
22826         appear in stderr output.  For example, this command:
22827             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
22828         prints "P=1" on those two systems:
22829
22830 2010-09-08  Bruno Haible  <bruno@clisp.org>
22831
22832         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22833         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
22834         commands, because some shells ignore redirections when there is an
22835         error in the command lookup.
22836         Reported by Eric Blake.
22837
22838 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
22839
22840         * lib/regex.h: Fix a mention of `regex_compile' (should be
22841         `re_compile_pattern').
22842         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
22843         (re_set_registers): Correct name of parameter in comment.
22844
22845         * doc/regex.texi: Add documentation for missing syntax flags.
22846         Remove commented-out documentation of defunct syntax option
22847         RE_NO_EMPTY_ALTS.
22848         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
22849         Add documentation of re_set_registers.
22850         Document trick to re-use a pattern buffer by setting fastmap manually.
22851         Update documentation of struct re_pattern_buffer per public members.
22852         Uncomment documentation of equivalence class operators and
22853         collating symbol operators, since they are now implemented,
22854         Explain leftmost-longest matching in relation to alternatives.
22855         Tidy documentation of substring matching.
22856         Remove POSIX documentation, which is done better in
22857         glibc, and refer the reader there. Keep BSD API documentation, as
22858         that is not readily available elsewhere.
22859
22860 2010-09-07  Eric Blake  <eblake@redhat.com>
22861
22862         getopt: handle POSIXLY_CORRECT set but not exported
22863         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
22864         export state of POSIXLY_CORRECT, due to bash set -o posix.
22865         Reported by Dustin J. Mitchell.
22866
22867 2010-09-05  Bruno Haible  <bruno@clisp.org>
22868
22869         gnulib-tool: Highlight the changed options.
22870         * gnulib-tool (func_usage): Display the --import, --add-import,
22871         --remove-import explanations in bold font.
22872
22873 2010-09-06  Karl Berry  <karl@gnu.org>
22874
22875         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
22876
22877 2010-09-05  Bruno Haible  <bruno@clisp.org>
22878
22879         uniwidth/width: Update comment.
22880         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
22881         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
22882
22883 2010-09-05  Bruno Haible  <bruno@clisp.org>
22884
22885         isinf, isnan: Relax license.
22886         * modules/isinf (License): Change from GPL to LGPL, with consent from
22887         Ben Pfaff.
22888         * modules/isnan (License): Likewise.
22889         Requested by Ludovic Courtès.
22890
22891 2010-09-04  Bruno Haible  <bruno@clisp.org>
22892
22893         gnulib-tool: Help migration from --import to --add-import or --update.
22894         * gnulib-tool: Emit a verbose error message when --import is used
22895         without any module name.
22896
22897 2010-09-04  Bruno Haible  <bruno@clisp.org>
22898
22899         Update doc about gnulib-tool.
22900         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
22901         'gnulib-tool --update' in more detail.
22902         Reported by Eric Blake.
22903
22904 2010-09-04  Bruno Haible  <bruno@clisp.org>
22905
22906         gnulib-tool: Change --import. New options --add/remove-import.
22907         * gnulib-tool: New options --add-import, --remove-import.
22908         (func_usage): Document them.
22909         (have_associative): Define always.
22910         (func_import): In import mode, don't merge the specified settings with
22911         the cached settings. Implement remove-import mode.
22912         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
22913         Explain when to use them versus --import.
22914         (Simple update): Use --add-import instead of --import.
22915         * NEWS: Mention the change.
22916
22917 2010-09-04  Bruno Haible  <bruno@clisp.org>
22918
22919         * doc/gnulib-tool.texi (Initial import): Update paragraph about
22920         separate gnulib.mk.
22921
22922 2010-09-04  Bruno Haible  <bruno@clisp.org>
22923
22924         gnulib-tool: Don't talk about CVS any more.
22925         * gnulib-tool (func_usage, func_import): Write "version control"
22926         instead of CVS.
22927
22928 2010-09-04  Jim Meyering  <meyering@redhat.com>
22929
22930         maint.mk: avoid obscure sc_copyright_check failure in coreutils
22931         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
22932         false positives (whose names may be ill-chosen) when searching
22933         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
22934         would cause a false-positive.
22935
22936         avoid coreutils "make distcheck" failure
22937         Coreutils tests with an absolute build directory name that contains
22938         a space.  Not quoting this directory name caused a failure.
22939         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
22940         * tests/test-vc-list-files-cvs.sh: Likewise.
22941
22942 2010-09-04  Bruno Haible  <bruno@clisp.org>
22943
22944         gnulib-tool: Avoid error when run in a package without Makefile.am.
22945         * gnulib-tool: When collecting the m4dirs in a package that does not
22946         have a Makefile.am, eliminate those directories that contain no
22947         gnulib-cache.m4. Fix expression that counts these directories.
22948
22949 2010-09-04  Bruno Haible  <bruno@clisp.org>
22950
22951         update-copyright test: Improve output when perl is missing or too old.
22952         * tests/test-update-copyright.sh: Move test of Perl version down after
22953         the test whether Perl exists. Provide an explanation relating Perl's
22954         error message to Automake's SKIP: message.
22955
22956 2010-09-04  Bruno Haible  <bruno@clisp.org>
22957
22958         Don't augment PATH in TESTS_ENVIRONMENT.
22959         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
22960         set abs_aux_dir instead of augmenting PATH.
22961         * modules/vc-list-files-tests (Makefile.am): Likewise.
22962         * tests/test-update-copyright.sh: Augment PATH here.
22963         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
22964         path_prepend_.
22965         * tests/test-vc-list-files-git.sh: Likewise.
22966
22967 2010-09-04  Jim Meyering  <meyering@redhat.com>
22968
22969         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
22970         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
22971
22972 2010-09-04  Bruno Haible  <bruno@clisp.org>
22973
22974         strdup: Fix compilation error in C++ mode.
22975         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
22976         the macro.
22977
22978 2010-09-04  Bruno Haible  <bruno@clisp.org>
22979
22980         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
22981         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
22982         macro into a function.
22983         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22984
22985 2010-09-04  Bruno Haible  <bruno@clisp.org>
22986
22987         Set PATH_SEPARATOR the same way autoconf does.
22988         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
22989         the value of PATH_SEPARATOR the same way autoconf-generated configure
22990         scripts do.
22991         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
22992         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22993
22994 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22995
22996         Set PATH_SEPARATOR the same way autoconf does.
22997         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
22998         the same way autoconf-generated configure scripts do.
22999         * posix-modules: Likewise.
23000
23001 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23002
23003         hash: fix safe_hasher const typo
23004         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
23005         const; otherwise, there is a type error later.
23006
23007 2010-09-02  Jim Meyering  <meyering@redhat.com>
23008
23009         test-update-copyright.sh: require perl 5.8.0
23010         * tests/test-update-copyright.sh: Require 5.8.0,
23011         which Tom G. Christensen has confirmed is adequate,
23012         while 5.6.1 is not.
23013
23014 2010-09-02  Eric Blake  <eblake@redhat.com>
23015
23016         tests: init.sh improvements for re-exec'ing with zsh
23017         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
23018         -vx through shell re-exec.
23019         Reported by Tom G. Christensen.
23020
23021         wctype: fix typo in previous commit
23022         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
23023         Reported by Ludovic Courtès.
23024
23025 2010-09-02  Jim Meyering  <meyering@redhat.com>
23026
23027         test-update-copyright.sh: skip test if Perl is too old
23028         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
23029         Reported by Tom G. Christensen.
23030
23031 2010-09-02  Bruno Haible  <bruno@clisp.org>
23032
23033         wctype: Avoid compilation error on IRIX 6.5.30.
23034         * lib/wctype.in.h (iswblank): Declare with a replacement if
23035         REPLACE_ISWBLANK is set.
23036         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
23037         declared. Set REPLACE_ISWBLANK.
23038         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
23039         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
23040         * doc/posix-headers/wctype.texi: Likewise.
23041         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23042
23043 2010-09-01  Bruno Haible  <bruno@clisp.org>
23044
23045         New module 'socketlib'.
23046         * modules/socketlib: New file.
23047         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
23048         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
23049         * modules/sockets (Depends-on): Add socketlib.
23050         Suggested by Sam Steingold <sds@gnu.org>.
23051
23052 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23053
23054         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
23055
23056         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
23057         when one needs search access to a directory but not read access.
23058         On systems where it is available, it works in some cases where
23059         O_RDONLY does not, namely on directories that are searchable but
23060         not readable, and which need only to be searchable.  If O_SEARCH
23061         is not available, fall back to the traditional method of using
23062         O_RDONLY.
23063
23064         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
23065         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
23066         when opening a directory that needs only to be searchable.
23067         * lib/chdir-safer.c (chdir_no_follow): Likewise.
23068         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
23069         * lib/openat-proc.c (openat_proc_name): Likewise.
23070         * lib/openat.c (openat_needs_fchdir): Likewise.
23071         * lib/save-cwd.c (save_cwd): Likewise.
23072         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
23073
23074 2010-08-28  Bruno Haible  <bruno@clisp.org>
23075
23076         New module 'host-cpu-c-abi'.
23077         * modules/host-cpu-c-abi: New file.
23078         * m4/host-cpu-c-abi.m4: New file, based on part of
23079         clisp/src/m4/general.m4.
23080         Requested by Sam Steingold <sds@gnu.org>.
23081
23082 2010-08-31  Eric Blake  <eblake@redhat.com>
23083         and Jim Meyering  <meyering@redhat.com>
23084
23085         hash: factor, and guard against misbehaving hasher function
23086         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
23087         of table->hasher's return value.  Also protect against a hash value
23088         so large that adding it to table->bucket results in a NULL pointer.
23089         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
23090         Use it in place of open-coded check-and-abort.
23091
23092 2010-08-30  Bruno Haible  <bruno@clisp.org>
23093
23094         hash: silence spurious clang warning
23095         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
23096         Reported by Eric Blake.
23097
23098 2010-08-30  Eric Blake  <eblake@redhat.com>
23099
23100         strstr, memmem, strcasestr: avoid leaked shell message
23101         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
23102         FreeBSD.
23103         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23104         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23105
23106         tests: silence clang warning
23107         * tests/test-malloca.c (do_allocation): Avoid dead store.
23108
23109 2010-08-29  Bruno Haible  <bruno@clisp.org>
23110
23111         gettext: Fix recent mistake.
23112         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
23113
23114 2010-08-29  Bruno Haible  <bruno@clisp.org>
23115
23116         selinux-h: Offer a --without-selinux option.
23117         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
23118         --without-selinux was specified, skip all tests and define
23119         HAVE_SELINUX_SELINUX_H to 0.
23120         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
23121         set LIB_SELINUX to empty.
23122         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
23123         gl_LIBSELINUX. If --without-selinux was specified, replace
23124         selinux/context.h.
23125         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
23126
23127 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23128             Bruno Haible  <bruno@clisp.org>
23129
23130         Make the module 'realloc-gnu' work again on AIX and OSF/1.
23131         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
23132         of HAVE_REALLOC.
23133         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
23134         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
23135         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
23136         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23137
23138 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23139             Bruno Haible  <bruno@clisp.org>
23140
23141         Make the module 'calloc-gnu' work again on AIX and OSF/1.
23142         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
23143         HAVE_CALLOC.
23144         * lib/xmalloc.c: Update accordingly.
23145         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
23146         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
23147         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
23148
23149 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23150             Bruno Haible  <bruno@clisp.org>
23151
23152         Make the module 'malloc-gnu' work again on AIX and OSF/1.
23153         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
23154         HAVE_MALLOC.
23155         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
23156         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
23157         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23158
23159 2010-08-29  Bruno Haible  <bruno@clisp.org>
23160
23161         Update modules list.
23162         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23163         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
23164         (String handling <string.h>): Add astrxfrm.
23165         (File system functions): Add readlinkat.
23166
23167 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23168
23169         Tests for module 'realloc-gnu'.
23170         * modules/realloc-gnu-tests: New file.
23171         * tests/test-realloc-gnu.c: New file.
23172
23173         Tests for module 'calloc-gnu'.
23174         * modules/calloc-gnu-tests: New file.
23175         * tests/test-calloc-gnu.c: New file.
23176
23177         Tests for module 'malloc-gnu'.
23178         * modules/malloc-gnu-tests: New file.
23179         * tests/test-malloc-gnu.c: New file.
23180
23181 2010-08-28  Bruno Haible  <bruno@clisp.org>
23182
23183         Rename module 'realloc' -> 'realloc-gnu'.
23184         * modules/realloc-gnu: New file, copied from modules/realloc.
23185         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
23186         obsolete.
23187         * modules/mgetgroups (Depends-on): Update.
23188         * doc/posix-functions/realloc.texi: Update.
23189         * NEWS: Mention the change.
23190
23191         Rename module 'calloc' -> 'calloc-gnu'.
23192         * modules/calloc-gnu: New file, copied from modules/calloc.
23193         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
23194         obsolete.
23195         * doc/posix-functions/calloc.texi: Update.
23196         * NEWS: Mention the change.
23197
23198         Rename module 'malloc' -> 'malloc-gnu'.
23199         * modules/malloc-gnu: New file, copied from modules/malloc.
23200         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
23201         obsolete.
23202         * modules/argp (Depends-on): Update.
23203         * modules/regex (Depends-on): Update.
23204         * doc/posix-functions/malloc.texi: Update.
23205         * NEWS: Mention the change.
23206
23207 2010-08-28  Eric Blake  <eblake@redhat.com>
23208
23209         pread, pwrite: add missing dependency
23210         * modules/pread (Depends-on): Add extensions.
23211         * modules/pwrite (Depends-on): Likewise.
23212
23213 2010-08-28  Bruno Haible  <bruno@clisp.org>
23214
23215         unistr/u*-strchr: Fix tests dependencies.
23216         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
23217         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
23218         Reported by Ian Beckwith <ianb@erislabs.net>.
23219
23220 2010-08-28  Bruno Haible  <bruno@clisp.org>
23221
23222         read-file: Don't occupy too much unused memory.
23223         * lib/read-file.c (fread_file): Shrink the buffer at the end.
23224
23225 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
23226             Eric Blake  <eblake@redhat.com>
23227             Bruno Haible  <bruno@clisp.org>
23228
23229         read-file: Avoid memory reallocations with regular files.
23230         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
23231         (fread_file): With regular files, use the remaining length as the
23232         initial buffer size.  Check against overflow.
23233         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
23234         sys_stat.
23235
23236 2010-08-28  Bruno Haible  <bruno@clisp.org>
23237
23238         ftello: Relax license.
23239         * modules/ftello (License): Relax to LGPLv2+.
23240         Reported by Eric Blake.
23241
23242 2010-08-28  Bruno Haible  <bruno@clisp.org>
23243
23244         Avoid relocwrapper link errors due to gnulib replacement functions.
23245         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
23246         function.
23247         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23248
23249 2010-08-28  Bruno Haible  <bruno@clisp.org>
23250
23251         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
23252         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
23253         defined.
23254         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
23255         Suggested by Eric Blake.
23256
23257 2010-08-28  Bruno Haible  <bruno@clisp.org>
23258
23259         sys_socket, netdb: Ensure socklen_t gets defined.
23260         * modules/sys_socket (Depends-on): Add socklen.
23261         * modules/netdb (Depends-on): Likewise.
23262         * modules/getaddrinfo (Depends-on): Remove socklen.
23263         * modules/getsockopt (Depends-on): Likewise.
23264         * modules/setsockopt (Depends-on): Likewise.
23265         * tests/test-sys_socket.c: Check that socklen_t is defined.
23266         * tests/test-netdb.c: Likewise.
23267         * m4/socklen.m4: Update comments.
23268         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23269
23270 2010-08-27  Eric Blake  <eblake@redhat.com>
23271
23272         login_tty: add missing dependency
23273         * modules/login_tty (Depends-on): Add pty.
23274
23275 2010-08-26  Eric Blake  <eblake@redhat.com>
23276
23277         lib-symbol-versions: fix m4 quoting
23278         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
23279         format for AC_LINK_IFELSE.
23280
23281         glob: fix compile test
23282         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
23283
23284         btowc: fix missing file
23285         * modules/btowc (Files): Also ship locale-fr.m4.
23286
23287         lseek: fix link test
23288         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
23289         AC_LINK_IFELSE.
23290
23291         include_next: silence autoconf 2.68 warning
23292         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
23293         AC_COMPILE_IFELSE as special.
23294         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
23295         autoconf < 2.68.
23296
23297         acl: fix compilation test
23298         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
23299         AC_COMPILE_IFELSE.
23300
23301 2010-08-26  Bruno Haible  <bruno@clisp.org>
23302
23303         Modernize AC_TRY_RUN invocations.
23304         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
23305         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23306         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
23307         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
23308         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
23309         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23310         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23311         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23312         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23313         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23314         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23315         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23316         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23317         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23318         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23319         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23320         gl_MBRLEN_NUL_RETVAL): Likewise.
23321         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23322         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23323         Likewise.
23324         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23325         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23326         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23327         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23328         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23329         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23330         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
23331         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23332         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
23333         Likewise.
23334         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23335         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23336         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23337         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23338         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23339         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23340         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23341         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
23342         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23343         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23344
23345 2010-08-26  Bruno Haible  <bruno@clisp.org>
23346
23347         Modernize AC_TRY_LINK invocations.
23348         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
23349         AC_TRY_LINK.
23350         * m4/argp.m4 (gl_ARGP): Likewise.
23351         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
23352         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23353         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23354         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23355         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23356         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
23357         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
23358         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23359         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23360         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23361         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23362         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
23363         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
23364         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23365         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23366         * m4/hostent.m4 (gl_HOSTENT): Likewise.
23367         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23368         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
23369         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23370         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
23371         Likewise.
23372         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
23373         Likewise.
23374         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
23375         Likewise.
23376         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23377         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
23378         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
23379         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23380         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
23381         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23382         * m4/servent.m4 (gl_SERVENT): Likewise.
23383         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23384         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
23385         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
23386         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
23387         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23388         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23389         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23390         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23391         * modules/tsearch-tests (configure.ac): Likewise.
23392
23393 2010-08-26  Bruno Haible  <bruno@clisp.org>
23394
23395         Modernize AC_TRY_COMPILE invocations.
23396         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
23397         AC_TRY_COMPILE.
23398         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
23399         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
23400         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23401         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23402         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23403         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23404         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23405         * m4/lock.m4 (gl_LOCK): Likewise.
23406         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
23407         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23408         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
23409         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23410         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23411         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
23412         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23413         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
23414         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23415         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23416         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23417         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23418         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
23419         extraneous semicolon.
23420
23421 2010-08-26  Jim Meyering  <meyering@redhat.com>
23422
23423         stat-time: relax license LGPL
23424         * modules/stat-time (License): Change from GPL to LGPL,
23425         with consent from all contributors, for use in libguile.
23426         Requested by Ludovic Courtès.
23427
23428 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
23429
23430         poll: return immediately on POLLHUP.
23431         * lib/poll.c (poll): Always set timeout before wait_timeout is
23432         computed.
23433
23434 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23435
23436         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
23437         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
23438         rmdir ("dir/.//"), unlinkat.
23439
23440 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23441
23442         stdbool: avoid spurious failure with modern xlc
23443         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23444
23445 2010-08-24  Bruno Haible  <bruno@clisp.org>
23446
23447         getloadavg: simplify code
23448         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
23449         gl_have_func. Update comments.
23450
23451 2010-08-24  Eric Blake  <eblake@redhat.com>
23452
23453         getloadavg: don't define SVR4 on cygwin
23454         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
23455         only define SVR4 when -lkvm is required.
23456         Reported by Yaakov Selkowitz.
23457
23458 2010-08-24  Bruno Haible  <bruno@clisp.org>
23459
23460         priv-set: fix comment
23461         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
23462
23463 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23464
23465         priv-set: fix comments
23466         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
23467         to match code, as suggested by David Bartley in:
23468         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
23469
23470 2010-08-23  Eric Blake  <eblake@redhat.com>
23471
23472         stdbool: avoid rejecting clang
23473         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23474         * tests/test-stdbool.c: Enable more tests if using the system
23475         <stdbool.h> instead of the gnulib replacement.
23476         (main): Move xlc bug test to a runtime test for all compilers.
23477         Reported by Anders Kaseorg.
23478
23479         argz: fix shell quoting issue
23480         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
23481         Reported by Charles Wilson.
23482
23483 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
23484             Erik Faye-Lund <kusmabite@gmail.com>
23485
23486         poll, select: handle ERROR_BROKEN_PIPE.
23487         * lib/poll.c (win32_compute_revents): Return POLLHUP when
23488         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23489         * lib/select.c (win32_compute_revents): Do not mark a pipe
23490         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23491
23492 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
23493
23494         fts: allow compilation with C++
23495         * lib/fts_.h: Specify extern "C" linkage with C++.
23496
23497 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23498
23499         Fix gnulib-tool sed script de-commentation for AIX sed.
23500         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
23501         sed.
23502
23503 2010-08-17  Eric Blake  <eblake@redhat.com>
23504
23505         test-stddef: test for (some) offsetof bugs
23506         * tests/test-stddef.c: Enhance test to ensure correct type of
23507         offsetof.
23508         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
23509         that we are not fixing at this time.
23510
23511 2010-08-15  Bruno Haible  <bruno@clisp.org>
23512
23513         stpncpy: Allow stpncpy to be defined as a macro.
23514         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
23515         if it's already correctly declared.
23516         * lib/string.in.h (stpncpy): Undefine before redefining.
23517         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
23518
23519 2010-08-14  Bruno Haible  <bruno@clisp.org>
23520
23521         Rename module 'memxfrm' to 'amemxfrm'.
23522         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
23523         (amemxfrm): Renamed from memxfrm.
23524         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
23525         (amemxfrm): Renamed from memxfrm.
23526         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
23527         * NEWS: Mention the change.
23528         * MODULES.html.sh (String handling <string.h>): Update.
23529         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
23530         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
23531         * lib/unicase/u16-casexfrm.c: Likewise.
23532         * lib/unicase/u32-casexfrm.c: Likewise.
23533         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
23534         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
23535         * lib/uninorm/u16-normxfrm.c: Likewise.
23536         * lib/uninorm/u32-normxfrm.c: Likewise.
23537         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
23538         memxfrm.
23539         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
23540         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
23541         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
23542         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
23543         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
23544         Suggested by Paul Eggert.
23545
23546 2010-08-14  Bruno Haible  <bruno@clisp.org>
23547
23548         Tests for module 'astrxfrm'.
23549         * modules/astrxfrm-tests: New file.
23550         * tests/test-astrxfrm.c: New file.
23551
23552         New module 'astrxfrm'.
23553         * lib/astrxfrm.h: New file.
23554         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
23555         * modules/astrxfrm: New file.
23556
23557 2010-08-14  Reuben Thomas <rrt@sc3d.org>
23558
23559         regex: Tweak doc.
23560         * doc/regex.texi (Overview): Don't mention regex.c.
23561         (GNU Regular Expression Compiling): Likewise.
23562         (Match-end-of-line Operator): Mention 'not_eol'.
23563
23564 2010-08-14  Brian Gough  <bjg@gnu.org>
23565             Bruno Haible  <bruno@clisp.org>
23566
23567         git-merge-changelog: add doc relating to use with bzr and hg.
23568         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
23569
23570 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
23571
23572         pthread: fix pthread.h creation for srcdir != builddir
23573         * modules/pthread (Makefile.am): Fix the rule to work also in a
23574         non-srcdir build.
23575
23576 2010-08-13  Karl Berry  <karl@gnu.org>
23577
23578         * doc/regex.texi (Predefined Syntaxes): @smallexample.
23579         * doc/posix-*/*: force line break before @url of POSIX
23580         specifications.
23581         Suggested by Werner Lemberg.
23582
23583 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23584
23585         strtod: fix const diagnostic
23586         * lib/strtod.c (strtod): Don't assign const char * to char *,
23587         as this elicits a warning from GCC when warnings are enabled.
23588
23589 2010-08-10  Pádraig Brady <P@draigbrady.com>
23590         and Eric Blake  <eblake@redhat.com>
23591
23592         copy-acl: ignore ENOTSUP on HP-UX
23593         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
23594         so that it is available for HP-UX.
23595         * lib/copy-acl.c (qcopy_acl): Use it.
23596         Reported by Patrick M. Callahan.
23597
23598 2010-08-10  Eric Blake  <eblake@redhat.com>
23599
23600         open, chown: relax license
23601         * modules/open (License): Change to LGPLv2+, with consent by all
23602         authors, for use in augeas.
23603         * modules/chown (License): Likewise.
23604         * modules/lchown (Likewise): Likewise.
23605         Requested by Adam Stokes.
23606
23607 2010-08-09  Karl Berry  <karl@gnu.org>
23608
23609         * build-aux/ar-lib: new file, import from Automake.
23610         * config/srclist.txt: autocheck for updates.
23611
23612 2010-08-09  Eric Blake  <eblake@redhat.com>
23613
23614         readlinkat: adjust client modules
23615         * modules/areadlinkat (Depends-on): Use readlinkat, not
23616         symlinkat.
23617         * modules/areadlinkat-with-size (Depends-on): Likewise.
23618
23619         mknod: be more vocal about danger of running tests as root
23620         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
23621         root, since that is just asking for problems.
23622         Suggested by Bruno Haible, based on a report by Rainer Tammer.
23623
23624         readlinkat: split into its own module
23625         * modules/symlinkat: Split readlinkat...
23626         * modules/readlinkat: ...into separate module.
23627         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
23628         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
23629         * lib/symlinkat.c (readlinkat): Move...
23630         * lib/readlinkat.c: ...into new file.
23631         * modules/symlinkat-tests: Split readlinkat test...
23632         * modules/readlinkat-tests: ...into separate module.
23633         * tests/test-symlinkat.c: Split...
23634         * tests/test-readlinkat.c: ...into new file.
23635         * NEWS: Document the split.
23636         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23637         * lib/unistd.in.h (readlinkat): Likewise.
23638         Suggested by Bruno Haible.
23639
23640 2010-08-08  Bruno Haible  <bruno@clisp.org>
23641
23642         memxfrm: Speed up.
23643         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
23644         that usually only one call to strxfrm is necessary for each string
23645         part.
23646         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23647
23648 2010-08-07  Karl Berry  <karl@gnu.org>
23649
23650         * doc/posix-headers/limits.texi,
23651         * doc/posix-functions/malloc.texi,
23652         * doc/posix-functions/strsignal.texi: missing @item.
23653         * doc/ld-version-script.texi: spurious leading i.
23654         * doc/regex.texi (Interval Operators): no commas inside @var.
23655
23656 2010-08-01  Bruno Haible  <bruno@clisp.org>
23657
23658         Integrate the regex documentation.
23659         * doc/gnulib.texi: Define 'cn' index.
23660         (Regular expressions): New a chapter that includes regex.texi and
23661         regexprops-generic.texi.
23662         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
23663         syntax.
23664
23665         Whitespace cleanup.
23666         * doc/regex.texi: Remove trailing spaces.
23667
23668         Add regex documentation.
23669         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
23670         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
23671         Written by Kathy A. Hargreaves and Karl Berry.
23672
23673 2010-08-01  Bruno Haible  <bruno@clisp.org>
23674
23675         link: Update documentation.
23676         * doc/posix-functions/link.texi: Update regarding Solaris.
23677
23678 2010-07-31  Bruno Haible  <bruno@clisp.org>
23679
23680         Update modules list.
23681         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
23682         (String handling <string.h>): Add memcmp2, memxfrm.
23683         (Container data structures): Add xlist, xsublist, xoset.
23684         (Core language properties): Add alignof, unused-parameter.
23685         (Process control, Numeric conversion functions <stdlib.h>): Renamed
23686         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
23687         (Unibyte characters <ctype.h>): New section.
23688         (String handling <string.h>): New section.
23689         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
23690         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
23691         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
23692         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
23693         tan, tanh, tanl, y0, y1, yn.
23694         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
23695         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
23696         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
23697         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
23698         unlockpt, vdprintf, vdprintf-posix.
23699         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
23700         (File system functions): Add concat-filename, sys_file, sys_ioctl,
23701         xconcat-filename.
23702         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
23703         getdtablesize, pipe2, pipe2-safer.
23704         (Security): New section.
23705         (Networking functions): Add accept4.
23706         (Signal handling): Add sigpipe.
23707         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
23708         mbmemcasecoll.
23709         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
23710         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
23711         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
23712         pipe-filter-ii.
23713         (Misc): Add argp-version-etc, login_tty, parse-duration.
23714
23715 2010-07-31  Bruno Haible  <bruno@clisp.org>
23716
23717         Improve doc in MODULES.html.
23718         * modules/linkat (Description): Add the word "function".
23719         * modules/mkfifo (Description): Likewise.
23720         * modules/mknod (Description): Likewise.
23721         * modules/remove (Description): Likewise.
23722         * modules/renameat (Description): Likewise.
23723         * modules/stat (Description): Likewise.
23724         * modules/symlink (Description): Likewise.
23725         * modules/unlink (Description): Likewise.
23726
23727 2010-07-31  Bruno Haible  <bruno@clisp.org>
23728
23729         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
23730         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
23731         option --enable/disable-c++ instead of --enable/disable-cxx.
23732         * NEWS: Mention the change.
23733
23734 2010-07-31  Bruno Haible  <bruno@clisp.org>
23735
23736         readlink, areadlink: Relax test a bit.
23737         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
23738         alternative to ENOTDIR.
23739         * tests/test-areadlink.h (test_areadlink): Likewise.
23740         Reported by Rainer Tammer.
23741
23742 2010-07-31  Bruno Haible  <bruno@clisp.org>
23743
23744         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
23745         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
23746         character, perform the search using U_STRCHR.
23747         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
23748         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
23749         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
23750         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
23751         Suggested by Paolo Bonzini.
23752
23753 2010-07-31  Bruno Haible  <bruno@clisp.org>
23754
23755         unistr/u*-strstr: Fix dependencies.
23756         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
23757         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
23758         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
23759
23760 2010-07-31  Bruno Haible  <bruno@clisp.org>
23761
23762         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
23763         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
23764         the beginning of the loop.
23765         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
23766         cases in 'switch' statement.
23767
23768         unistr/u8-strchr: Fix several bugs.
23769         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
23770         the string. When not found, return NULL, not a pointer near the end.
23771
23772         More tests for unistr/u8-strchr.
23773         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
23774         that the function does not read past the first occurrence of the byte
23775         being searched.
23776         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
23777         * tests/unistr/test-u16-strchr.c (main): New function.
23778         * tests/unistr/test-u32-strchr.c (main): New function.
23779
23780 2010-07-31  Bruno Haible  <bruno@clisp.org>
23781
23782         posix-modules: Ignore backup files of documentation files.
23783         * posix-modules: grep only through files named *.texi.
23784
23785 2010-07-31  Bruno Haible  <bruno@clisp.org>
23786
23787         symlinkat: Fix documentation.
23788         * doc/posix-functions/readlinkat.texi: Fix module name.
23789
23790 2010-07-31  Bruno Haible  <bruno@clisp.org>
23791
23792         fchownat: Replace also when chown has the trailing slash bug.
23793         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
23794         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
23795         introduced on 2010-04-10.
23796         Reported by Rainer Tammer.
23797
23798 2010-07-31  Bruno Haible  <bruno@clisp.org>
23799
23800         linkat: Work around AIX 7.1 bug.
23801         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
23802         whether linkat handles trailing slash correctly. If not, replace linkat
23803         and define LINKAT_TRAILING_SLASH_BUG.
23804         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
23805         check whether (fd1,file1) points to a directory if file1 or file2 ends
23806         in a slash. Code taken from lib/link.c.
23807         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
23808         Reported by Rainer Tammer.
23809
23810 2010-07-31  Bruno Haible  <bruno@clisp.org>
23811
23812         Correctly determine whether pow is available in libc on AIX 7 with xlc.
23813         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
23814         This disables an xlc optimization that was causing wrong test results.
23815         Reported by Rainer Tammer.
23816
23817 2010-07-31  Bruno Haible  <bruno@clisp.org>
23818
23819         iconv: Work around AIX 6.1..7.1 bug.
23820         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
23821         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
23822         cross-compiling, guess no on all versions of AIX.
23823         Reported by Rainer Tammer.
23824
23825 2010-07-31  Bruno Haible  <bruno@clisp.org>
23826
23827         readlink: Relax test a bit.
23828         * tests/test-readlink.h (test_readlink): Allow different errno value
23829         when readlink is called with a file name that ends in / and refers to
23830         a file.
23831         Suggested by Eric Blake.
23832         Reported by Rainer Tammer.
23833
23834 2010-07-31  Bruno Haible  <bruno@clisp.org>
23835
23836         copysign: Does not require -lm on glibc systems.
23837         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
23838         gl_COMMON_DOUBLE_MATHFUNC.
23839         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
23840
23841 2010-07-31  Bruno Haible  <bruno@clisp.org>
23842
23843         duplocale: Work around AIX 7.1 bug.
23844         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
23845         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
23846         * lib/duplocale.c (rpl_duplocale): Update comment.
23847         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
23848         Reported by Rainer Tammer.
23849
23850 2010-07-30  Bruno Haible  <bruno@clisp.org>
23851
23852         dirfd: Avoid link error on AIX 7.1.
23853         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
23854         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
23855         exist, set REPLACE_DIRFD.
23856         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
23857         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
23858         * doc/posix-functions/dirfd.texi: Update.
23859         Reported by Rainer Tammer.
23860
23861 2010-07-30  Eric Blake  <eblake@redhat.com>
23862
23863         strtod: next round of AIX fixes
23864         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
23865         exponent.
23866         * tests/test-strtod.c (main): Enhance tests.
23867         * doc/posix-functions/strtod.texi (strtod): Document next bug.
23868         Reported by Rainer Tammer.
23869
23870         futimens: fix configure check
23871         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
23872         Reported by Bruno Haible.
23873
23874 2010-07-30  Bruno Haible  <bruno@clisp.org>
23875
23876         getline: Update regarding AIX.
23877         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
23878         Reported by Rainer Tammer.
23879
23880 2010-07-30  Bruno Haible  <bruno@clisp.org>
23881
23882         wcwidth: Drop replacement on AIX 7.
23883         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
23884         AIX 7.
23885         Reported by Rainer Tammer.
23886
23887 2010-07-30  Bruno Haible  <bruno@clisp.org>
23888
23889         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
23890         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
23891         a 'char *'.
23892         Reported by Rainer Tammer.
23893
23894 2010-07-30  Bruno Haible  <bruno@clisp.org>
23895
23896         unlink: Update regarding AIX.
23897         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
23898         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
23899         Reported by Rainer Tammer.
23900
23901 2010-07-30  Bruno Haible  <bruno@clisp.org>
23902
23903         symlink: Update regarding AIX.
23904         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
23905         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
23906         Reported by Rainer Tammer.
23907
23908 2010-07-30  Bruno Haible  <bruno@clisp.org>
23909
23910         strndup: Update regarding AIX.
23911         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
23912         AIX 7.
23913         Reported by Rainer Tammer.
23914
23915 2010-07-30  Bruno Haible  <bruno@clisp.org>
23916
23917         stat: Update regarding AIX.
23918         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
23919         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
23920         Reported by Rainer Tammer.
23921
23922 2010-07-30  Bruno Haible  <bruno@clisp.org>
23923
23924         truncl: Fix autoconf test.
23925         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
23926         whether truncl works.
23927         Reported by Rainer Tammer.
23928
23929 2010-07-30  Bruno Haible  <bruno@clisp.org>
23930
23931         round: Update regarding AIX.
23932         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
23933         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
23934         Reported by Rainer Tammer.
23935
23936 2010-07-30  Bruno Haible  <bruno@clisp.org>
23937
23938         rename: Update regarding AIX.
23939         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
23940         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
23941         Reported by Rainer Tammer.
23942
23943 2010-07-30  Bruno Haible  <bruno@clisp.org>
23944
23945         printf.m4: Update regarding AIX.
23946         * m4/printf.m4: Update comments regarding AIX.
23947         Reported by Rainer Tammer.
23948
23949 2010-07-30  Bruno Haible  <bruno@clisp.org>
23950
23951         iconv: Update regarding AIX.
23952         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
23953         AIX 7.
23954         Reported by Rainer Tammer.
23955
23956 2010-07-30  Bruno Haible  <bruno@clisp.org>
23957
23958         getopt: Update regarding AIX.
23959         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
23960         no on AIX.
23961         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
23962         Reported by Rainer Tammer.
23963
23964 2010-07-30  Bruno Haible  <bruno@clisp.org>
23965
23966         ldexpl; Update regarding AIX.
23967         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
23968         on AIX 7.
23969         Reported by Rainer Tammer.
23970
23971 2010-07-30  Bruno Haible  <bruno@clisp.org>
23972
23973         frexpl: Update regarding AIX.
23974         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
23975         on AIX 7.
23976         Reported by Rainer Tammer.
23977
23978 2010-07-30  Bruno Haible  <bruno@clisp.org>
23979
23980         open, fopen: Update regarding AIX.
23981         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
23982         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23983         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
23984         * doc/posix-functions/fopen.texi: Likewise.
23985         Reported by Rainer Tammer.
23986
23987 2010-07-30  Bruno Haible  <bruno@clisp.org>
23988
23989         chown: Update doc regarding AIX.
23990         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
23991         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
23992         Reported by Rainer Tammer.
23993
23994 2010-07-30  Eric Blake  <eblake@redhat.com>
23995
23996         strtod: fix bug in replacement function on AIX
23997         * lib/strtod.c (strtod): Special case broken "0x" parse in
23998         underlying strtod.
23999         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
24000         * doc/posix-functions/strtod.texi (strtod): Likewise.
24001         Reported by Rainer Tammer.
24002
24003 2010-07-30  Bruno Haible  <bruno@clisp.org>
24004
24005         mbrlen: Fix cross-compilation guess for AIX.
24006         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
24007         guess. Leftover from 2008-12-22.
24008
24009 2010-07-30  Bruno Haible  <bruno@clisp.org>
24010
24011         mbrtowc: Fix cross-compilation guess for AIX.
24012         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
24013         guess. Leftover from 2008-12-21.
24014
24015 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
24016
24017         init.sh: work around trap limitation of some shells
24018         * tests/init.sh (setup_): Move exit trap outside of shell function.
24019
24020 2010-07-29  Eric Blake  <eblake@redhat.com>
24021
24022         strtod: aid debugging
24023         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
24024         understanding why strtod is rejected.
24025
24026 2010-07-28  Bruno Haible  <bruno@clisp.org>
24027
24028         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
24029         * lib/unistr/u8-chr.c: Include <string.h>.
24030         * tests/unistr/test-u8-chr.c: Likewise.
24031         * tests/unistr/test-u16-chr.c: Likewise.
24032         * tests/unistr/test-u32-chr.c: Likewise.
24033         * tests/unistr/test-u8-strchr.c: Likewise.
24034         * tests/unistr/test-u16-strchr.c: Likewise.
24035         * tests/unistr/test-u32-strchr.c: Likewise.
24036         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
24037         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
24038         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
24039         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
24040
24041 2010-07-28  Bruno Haible  <bruno@clisp.org>
24042
24043         Use spaces for indentation, not tabs.
24044         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24045
24046 2010-07-27  Bruno Haible  <bruno@clisp.org>
24047
24048         mbspcasecmp: Fix function specification.
24049         * lib/string.in.h (mbspcasecmp): Fix specification comment.
24050         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
24051         Reported by Eric Blake <eblake@redhat.com>.
24052
24053 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
24054
24055         timespec: use cast and not conditional, as truncation isn't possible
24056         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
24057         instead of a conditional.  Comment about the situation in more detail.
24058         This undoes most of the 2009-10-29 patch.
24059
24060 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
24061
24062         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
24063         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
24064         * lib/unistr/u8-strchr.c: Likewise.
24065         * modules/unistr/u8-chr: Depend on memchr.
24066
24067         unistr/u*-strchr: add tests
24068         * modules/unistr/u8-strchr-tests: New file.
24069         * modules/unistr/u16-strchr-tests: New file.
24070         * modules/unistr/u32-strchr-tests: New file.
24071         * tests/unistr/test-strchr.h: New file.
24072         * tests/unistr/test-u8-strchr.c: New file.
24073         * tests/unistr/test-u16-strchr.c: New file.
24074         * tests/unistr/test-u32-strchr.c: New file.
24075
24076         unistr/u*-chr: test multibyte sequences more
24077         * tests/unistr/test-chr.h: Do complete testing of the characters in the
24078         test vector.
24079         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
24080         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
24081         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
24082
24083         unistr/u*-chr: test multibyte sequences
24084         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
24085
24086         unistr/u*-chr: prepare for multibyte tests
24087         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
24088         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
24089         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
24090         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
24091         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
24092         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
24093
24094 2010-07-18  Bruno Haible  <bruno@clisp.org>
24095
24096         unistr/u8-strchr: Optimize non-ASCII argument case.
24097         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
24098         because the first byte often matches anyway.
24099         Reported by Pádraig Brady <P@draigbrady.com>.
24100
24101 2010-07-15  Karl Berry  <karl@gnu.org>
24102
24103         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
24104
24105 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
24106
24107         getcwd: on Solaris, work better if ancestors are inaccessible
24108         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
24109         buffer and size, try again with a large buffer.  This works better
24110         on Solaris, since its getcwd succeeds even if the path to the root
24111         is inaccessible, and this is helpful in common cases such as .zfs
24112         hidden directories.  Problem reported by J Chapman Flack in
24113         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
24114         Use system getcwd if it's declared, not merely if it's partly
24115         working; use the partly-working test only to avoid needless effort
24116         if the system getcwd fails.
24117         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
24118         comment that was already obsolete and is now even more obsolete.
24119         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
24120         now might call strdup.
24121
24122 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
24123
24124         pthread: Add enough so that coreutils/src/sort.c compiles.
24125         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
24126         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
24127         gnulib. Include <sched.h> and <time.h>, as per POSIX.
24128         Include <sys/types.h>, in case it defines pthread_t.
24129         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
24130         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
24131         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
24132         (pthread_rwlockattr_t, pthread_spinlock_t):
24133         New typedefs, if HAVE_PTHREAD_T is not defined.
24134         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
24135         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
24136         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
24137         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
24138         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
24139         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
24140         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
24141         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
24142         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
24143         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
24144         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
24145         New macros.
24146         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
24147         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
24148         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
24149         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
24150         (pthread_spin_unlock): New dummy functions.
24151         (pthread_create): Return EAGAIN; don't set errno.
24152         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
24153         require AC_C_INLINE.
24154         * modules/pthread (Depends-on): Add sched, time.
24155         (pthread.h): Use AM_V_GEN.
24156
24157 2010-07-13  Bruno Haible  <bruno@clisp.org>
24158
24159         striconveh: Don't malloc memory if the result buffer is sufficient.
24160         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
24161         buffer if its size is sufficient.
24162         Reported by Ludovic Courtès <ludo@gnu.org>.
24163
24164 2010-07-13  Bruno Haible  <bruno@clisp.org>
24165
24166         strtod: Add safety check.
24167         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
24168
24169 2010-07-12  Bruno Haible  <bruno@clisp.org>
24170
24171         Unify tests that set gl_cv_func_ldexpl_no_libm.
24172         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
24173         gl_FUNC_LDEXPL.
24174         (gl_FUNC_LDEXPL): Invoke it.
24175         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24176
24177 2010-07-12  Bruno Haible  <bruno@clisp.org>
24178
24179         Unify tests that set gl_cv_func_ldexp_no_libm.
24180         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
24181         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
24182         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
24183         (configure.ac): Simply invoke gl_FUNC_LDEXP.
24184         * modules/strtod (Files): Add m4/ldexp.m4.
24185
24186 2010-07-12  Bruno Haible  <bruno@clisp.org>
24187
24188         Unify tests that set gl_cv_func_frexpl_no_libm.
24189         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
24190         gl_FUNC_FREXPL_NO_LIBM.
24191         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
24192         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24193
24194 2010-07-12  Bruno Haible  <bruno@clisp.org>
24195
24196         Unify tests that set gl_cv_func_frexp_no_libm.
24197         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
24198         gl_FUNC_FREXP_NO_LIBM.
24199         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
24200         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
24201
24202 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24203
24204         memcoll: clarify sizes versus lengths, document better, and tweak perf
24205         * lib/memcoll.c (strcoll_loop, memcoll0):
24206         Improve quality of descriptive comments.  Name variables
24207         consistently as to whether they are lengths (which do not include
24208         terminating null) versus sizes (which do).
24209         * lib/xmemcoll.c (xmemcoll0): Likewise.
24210         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
24211         returned when s1size == 0; this is easier to compile and saves
24212         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
24213
24214 2010-07-12  Bruno Haible  <bruno@clisp.org>
24215
24216         Tests for module '_Exit'.
24217         * modules/_Exit-tests: New file.
24218         * tests/test-_Exit.sh: New file.
24219         * tests/test-_Exit.c: New file.
24220
24221         New module '_Exit'.
24222         * lib/stdlib.in.h (__attribute__): New macro.
24223         (_Exit): New declaration.
24224         * lib/_Exit.c: New file.
24225         * m4/_Exit.m4: New file.
24226         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
24227         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
24228         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
24229         * modules/_Exit: New file.
24230         * tests/test-stdlib-c++.cc (_Exit): Check signature.
24231         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
24232
24233 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24234
24235         strtod: make it more-accurate typically, and don't require libm
24236         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
24237         Include limits.h.  Don't include string.h.
24238         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
24239         (locale_isspace): New function, so that no casts are needed to
24240         check whether *s is a space.
24241         (ldexp): Provide an unused dummy if not available.
24242         (scale_radix_exp, parse_number, underlying_strtod): New functions.
24243         (strtod): Use them.  This implementation prefers to use the
24244         underlying strtod if available, falling back on our own code
24245         only to fix known bugs.  This is more likely to produce an
24246         accurate result.  Also, it avoids the use of libm functions.
24247         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
24248         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
24249         was absent, but it caused a test failure with coreutils.
24250         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
24251         with libm.
24252         * modules/strtod (Makefile.am, Link): libm is no longer needed.
24253         * modules/strtod-tests (Makefile.am): Likewise.
24254
24255 2010-07-11  Pádraig Brady  <P@draigBrady.com>
24256             Bruno Haible  <bruno@clisp.org>
24257
24258         unistr/u8-strchr: Optimize ASCII argument case.
24259         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
24260
24261 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24262
24263         (x)memcoll: minor tweaks
24264         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
24265         is after the type that it qualifies.
24266         (memcoll0): Likewise.
24267         * lib/memcoll.h (memcoll0): Likewise.
24268         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
24269         * lib/xmemcoll.h (xmemcoll0): Likewise.
24270         * lib/memcoll.c (memcoll0): Correct the comment.  This function
24271         differs from memcoll in that the NUL byte is part of the argument.
24272         Omit the abort-checks, as performance is a real issue here.  Plus,
24273         the checks were wrong anyway (an off-by-one error).  Omit local
24274         variable 'diff', as it's a bit clearer that way.
24275         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
24276         no longer needed.
24277
24278 2010-07-08  Chen Guo <chenguo4@yahoo.com>
24279
24280         (x)memcoll: speedup when input is known to be NUL delimited
24281         * lib/memcoll.c: Include stdlib.
24282         (memcoll0): New function.
24283         (strcoll_loop): New function, refactored for use in both memcoll
24284         and memcoll0.
24285         * lib/memcoll.h (memcoll0): Add prototype.
24286         * lib/xmemcoll.c (xmemcoll0): New function.
24287         (collate_error): New function, refactored for use in both xmemcoll
24288         and xmemcoll0.
24289         * lib/xmemcoll.h (xmemcoll0): Add prototype.
24290         * m4/memcoll.m4: add inline invocation.
24291
24292 2010-07-06  Pádraig Brady  <P@draigBrady.com>
24293
24294         * build-aux/bootstrap: Remove any local translations
24295         from the translation project synchronization directory,
24296         so that local only translations are not distributed.
24297
24298 2010-07-04  Bruno Haible  <bruno@clisp.org>
24299
24300         fsusage: Clarify which code applies to which platforms.
24301         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
24302         platform.
24303         * lib/fsusage.c (get_fs_usage): Likewise.
24304
24305 2010-07-04  Bruno Haible  <bruno@clisp.org>
24306
24307         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
24308         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
24309         Reported by Martin Lambers <marlam@marlam.de>.
24310
24311 2010-07-04  Jim Meyering  <meyering@redhat.com>
24312
24313         hash: once again explicitly disallow insertion of NULL
24314         * lib/hash.c (hash_insert0): Reinstate just-removed test:
24315         inserting a NULL pointer cannot work with these functions.
24316         Add a comment with details.
24317         This reverts part of the 2010-07-01 commit, 5bef1a35
24318         "hash: extend module to deal with non-pointer keys".
24319
24320 2010-07-01  Bruno Haible  <bruno@clisp.org>
24321
24322         stdbool: Update doc.
24323         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
24324         Info from Christian Weisgerber <naddy@mips.inka.de>.
24325
24326 2010-07-01  Jim Meyering  <meyering@redhat.com>
24327
24328         hash: extend module to deal with non-pointer keys
24329         * lib/hash.c (hash_insert0): New interface, much like hash_insert
24330         but that allows insertion of non-pointer entries.
24331         Do not disallow an ENTRY value of NULL.
24332         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
24333         * lib/hash.h (hash_insert0): Declare.
24334
24335 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24336
24337         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
24338         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
24339         not present (i.e. with autoconf 2.59 and when using gettextize, not
24340         gnulib), require AC_GNU_SOURCE instead.
24341
24342 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
24343
24344         idpriv-drop: Fix tests.
24345         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
24346         not to the test-idpriv-droptemp program.
24347
24348 2010-06-29  Bruno Haible  <bruno@clisp.org>
24349
24350         string: Fix syntax error with g++ 2.96.
24351         * lib/string.in.h (__pure__): Remove definition.
24352         (_GL_ATTRIBUTE_PURE): New macro.
24353         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
24354         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
24355         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24356
24357 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
24358
24359         unitypes: Fix bug introduced on 2010-05-18.
24360         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
24361
24362 2010-06-22  Eric Blake  <eblake@redhat.com>
24363
24364         memmem: slight optimization
24365         * lib/str-two-way.h (critical_factorization): Update comments.
24366         Reduce work during factorization phase.
24367         Reported by Carlos Bueno <carlos@bueno.org>.
24368
24369 2010-06-21  Bruno Haible  <bruno@clisp.org>
24370
24371         Fix HAVE_CALLOC_POSIX misnomer.
24372         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
24373         !HAVE_CALLOC_POSIX.
24374         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
24375         HAVE_CALLOC_POSIX.
24376         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
24377         instead of HAVE_CALLOC_POSIX.
24378         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
24379         HAVE_CALLOC_POSIX.
24380
24381         Use modern idiom for calloc() replacement.
24382         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
24383         AC_FUNC_CALLOC.
24384         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
24385         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
24386         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24387         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
24388         (gl_REPLACE_CALLOC): New macro.
24389
24390 2010-06-21  Bruno Haible  <bruno@clisp.org>
24391
24392         Fix HAVE_REALLOC_POSIX misnomer.
24393         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
24394         !HAVE_REALLOC_POSIX.
24395         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
24396         HAVE_REALLOC_POSIX.
24397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
24398         instead of HAVE_REALLOC_POSIX.
24399         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
24400         HAVE_REALLOC_POSIX.
24401
24402         Use modern idiom for realloc() replacement.
24403         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
24404         AC_FUNC_REALLOC.
24405         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
24406         Autoconf's AC_FUNC_REALLOC.
24407         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24408         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
24409         (gl_REPLACE_REALLOC): New macro.
24410         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24411
24412 2010-06-21  Bruno Haible  <bruno@clisp.org>
24413
24414         Fix HAVE_MALLOC_POSIX misnomer.
24415         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
24416         !HAVE_MALLOC_POSIX.
24417         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
24418         HAVE_MALLOC_POSIX.
24419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
24420         instead of HAVE_MALLOC_POSIX.
24421         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
24422         HAVE_MALLOC_POSIX.
24423
24424         Use modern idiom for malloc() replacement.
24425         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
24426         AC_FUNC_MALLOC.
24427         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
24428         Autoconf's AC_FUNC_MALLOC.
24429         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24430         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
24431         (gl_REPLACE_MALLOC): New macro.
24432         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24433
24434 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
24435
24436         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
24437         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
24438         This macro takes 3 arguments, not 4.
24439
24440 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
24441
24442         ipv6: fix detection under mingw
24443         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
24444         in6_addr.
24445
24446 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
24447
24448         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
24449         that strtod() works when cross-compiling to a glibc version known
24450         to work.
24451
24452 2010-06-15  Bruno Haible  <bruno@clisp.org>
24453
24454         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
24455
24456 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
24457
24458         select: Correct timeout.
24459         * lib/select.c (rpl_select): Compute wait_timeout correctly.
24460
24461 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24462
24463         git-version-gen: init shell var to avoid env var influence
24464         * build-aux/git-version-gen (v): Init shell var to empty.
24465
24466 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24467
24468         priv-set: Don't assume that priv.h exists merely because getppriv does.
24469         See Jan Andersen's bug report about AIX 5L in
24470         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
24471         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
24472         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
24473         * lib/priv-set.h: Likewise.
24474         * tests/test-priv-set.c: Likewise.
24475
24476 2010-06-13  Bruno Haible  <bruno@clisp.org>
24477
24478         relocatable: Make it easier to test whether to install wrappers.
24479         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
24480         RELOCATABLE_VIA_WRAPPER.
24481
24482 2010-06-13  Bruno Haible  <bruno@clisp.org>
24483
24484         gnulib-tool: Display specified modules and dependencies differently.
24485         * gnulib-tool (func_show_module_list): New function.
24486         (func_import, func_create_testdir): Invoke it.
24487         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24488
24489 2010-06-13  Bruno Haible  <bruno@clisp.org>
24490
24491         gnulib-tool: Align code of func_import and func_create_testdir.
24492         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
24493         specified_modules.
24494
24495 2010-06-12  Jim Meyering  <meyering@redhat.com>
24496
24497         test-inttostr: avoid spurious failure on Solaris 9
24498         * tests/test-inttostr.c (main): Skip the test when snprintf fails
24499         to accept "%ju".  Reported by Bruno Haible.
24500
24501 2010-06-11  Jim Meyering  <meyering@redhat.com>
24502
24503         test-sys_socket: mark variables as used more readably
24504         * tests/test-sys_socket.c (main): Mark otherwise unused variables
24505         as "used" explicitly via (void) statement casts.  This is more
24506         readable than using them in an artificial return expression.
24507         Suggestion from Bruno Haible.
24508
24509 2010-06-11  Bruno Haible  <bruno@clisp.org>
24510
24511         Avoid some more warnings from "gcc -Wwrite-strings".
24512         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
24513         to 'const char *'.
24514         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
24515         * tests/test-c-strcasestr.c (main): Likewise.
24516         * tests/test-mbscasestr1.c (main): Likewise.
24517         * tests/test-mbscasestr2.c (main): Likewise.
24518         * tests/test-memmem.c (main): Likewise.
24519         * tests/test-strstr.c (main): Likewise.
24520         * tests/test-strcasestr.c (main): Likewise.
24521
24522 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24523
24524         init.sh: change framework_failure_ to fail with status 99, not 1
24525         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
24526         automake's parallel-tests rule that this is an unexpected failure,
24527         even if the test is listed in XFAIL_TESTS.
24528
24529 2010-06-11  Jim Meyering  <meyering@redhat.com>
24530
24531         test-inttostr: avoid warnings about 4-6KB literal strings
24532         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
24533         Include "macros.h", for its definition of ASSERT.
24534         (CK): s/assert/ASSERT/
24535         * modules/inttostr-tests (Files): Add macros.h.
24536
24537         init.sh: don't use $ME_ or skip_ before they are defined
24538         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
24539         their first uses.  Also hoist their companions: warn_, fail_,
24540         framework_failure_, $stderr_fileno.  Prompted by a patch from
24541         Stefano Lattarini.
24542
24543         test-sys_socket: avoid set-but-not-used warnings from gcc
24544         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
24545         avoid warning about set-but-not-used variables.
24546
24547         test-xvasprintf: avoid 'const' discard warnings
24548         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
24549         "const" when assigning from literal strings.
24550         (test_xasprintf): Add "void" in function argument list to placate
24551         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
24552
24553         tests: avoid compilation warnings in argmatch and exclude tests...
24554         in packages that define ARGMATCH_DIE_DECL, like coreutils.
24555         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
24556         Since it always exits, declare with the "noreturn" attribute.
24557         * tests/test-argmatch.c: Likewise.
24558
24559         tests: avoid 'const' discard warnings in mbsstr tests
24560         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
24561         * tests/test-mbsstr2.c (main): Likewise.
24562
24563         test-verify: avoid warning from gcc's -Wmissing-declarations
24564         * tests/test-verify.c (function): Declare to be static.
24565
24566         test-inttostr.c: include <string.h> for use of strcmp
24567         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
24568
24569         test-linkat: avoid failed assertion on "other" architectures
24570         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
24571         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
24572         sparc: https://bugs.launchpad.net/bugs/591968
24573
24574 2010-06-11  Jim Meyering  <meyering@redhat.com>
24575
24576         printf.m4: avoid autoconf's "Expanded Before Required" warning
24577         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
24578         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
24579         autoconf warning.
24580
24581 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
24582
24583         Replacement header templates are now named with ".in", not "_".
24584         * doc/gnulib-intro.texi: Correct.
24585
24586 2010-06-10  Jim Meyering  <meyering@redhat.com>
24587
24588         inttostr-tests: depend on snprintf, not snprintf-posix
24589         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
24590         snprintf-posix, to avoid this aclocal failure:
24591           missing file gnulib-tests/vasnprintf.c
24592           configure.ac:45: error: expected source file, required through \
24593           AC_LIBSOURCES, not found
24594
24595 2010-06-10  Jim Meyering  <meyering@redhat.com>
24596
24597         inttostr: add a new function, inttostr, and tests
24598         The namesake function was not available.  The existence of the
24599         template file, inttostr.c makes its addition nontrivial.
24600         * lib/anytostr.c: Rename from inttostr.c.
24601         (anytostr): Rename from inttostr.
24602         * lib/inttostr.c: New file.
24603         * modules/inttostr (Files): Add anytostr.c.
24604         (Makefile.am): Set lib_SOURCES instead of ...
24605         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
24606         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
24607         * lib/offtostr.c: Likewise.
24608         * lib/uinttostr.c: Likewise.
24609         * lib/umaxtostr.c: Likewise.
24610         * modules/inttostr-tests: New file.
24611         * tests/test-inttostr.c: New file.  Test these functions.
24612
24613 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
24614             Bruno Haible  <bruno@clisp.org>
24615
24616         Add "Extending Gnulib" chapter to manual.
24617         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
24618         chapter.
24619         (Extending Gnulib): New chapter.
24620         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
24621         chapter.
24622
24623 2010-06-09  Bruno Haible  <bruno@clisp.org>
24624
24625         Avoid relocwrapper link errors due to gnulib replacement functions.
24626         * lib/areadlink.c: Use the system's malloc, realloc functions.
24627         (areadlink): Set errno to ENOMEM explicitly.
24628         * modules/areadlink (Depends-on): Remove malloc-posix.
24629         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24630
24631 2010-06-09  Bruno Haible  <bruno@clisp.org>
24632
24633         Avoid relocwrapper link errors due to gnulib replacement functions.
24634         * lib/canonicalize-lgpl.c: Use the system's malloc function.
24635         * lib/malloca.c: Likewise.
24636         * lib/relocatable.c: Likewise.
24637         * lib/progreloc.c: Use the system's malloc, sprintf functions.
24638         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
24639         * lib/setenv.c: Use the system's malloc, realloc functions.
24640         * lib/strerror.c: Use the system's sprintf function.
24641         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24642
24643 2010-06-04  Bruno Haible  <bruno@clisp.org>
24644
24645         Prefer documented low-level autoconf macro names.
24646         * m4/lib-link.m4: Use m4_translit instead of translit.
24647         * m4/environ.m4: Likewise.
24648         * m4/mathfunc.m4: Likewise.
24649         * m4/onceonly.m4: Likewise.
24650         * m4/stdint.m4: Likewise.
24651         Suggested by Eric Blake.
24652
24653 2010-06-04  Martin Lambers  <marlam@marlam.de>
24654             Bruno Haible  <bruno@clisp.org>
24655
24656         havelib: Allow library names with '+' characters.
24657         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24658         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
24659
24660 2010-06-09  Bruno Haible  <bruno@clisp.org>
24661
24662         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
24663         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
24664         realloc failed.
24665
24666 2010-06-08  Peter Simons  <simons@cryp.to>
24667
24668         maint.mk: make the news-check rule more configurable
24669         * top/maint.mk (news-check-lines-spec): New variable.
24670         (news-check): Use "sed -n 1,10p" in place of "head".
24671
24672 2010-06-07  Jim Meyering  <meyering@redhat.com>
24673
24674         do-release-commit-and-tag: fix typo in --help
24675         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
24676
24677         regex: avoid new dead-code warning with gcc-4.6.0
24678         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
24679         if-block containing a while-loop.  It's been unused for at least
24680         5 years.
24681
24682 2010-06-05  Bruno Haible  <bruno@clisp.org>
24683
24684         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
24685         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
24686
24687 2010-06-04  Bruno Haible  <bruno@clisp.org>
24688
24689         Update to GNU gettext 0.18.1.
24690         * modules/gettext (configure.ac): Require gettext infrastructure from
24691         version 0.18.1.
24692
24693 2010-06-03  Bruno Haible  <bruno@clisp.org>
24694
24695         Don't use AC_LIBOBJ with file names in subdirectories.
24696         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
24697         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
24698         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
24699         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
24700         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
24701         gl_LIBUNISTRING_LIBSOURCE.
24702         (Makefile.am): Augment lib_SOURCES here, conditionally.
24703         * NEWS: Drop requirement for Automake option 'subdir-objects'.
24704
24705 2010-06-03  Bruno Haible  <bruno@clisp.org>
24706
24707         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
24708         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
24709         expansion does not end with a newline.
24710         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
24711         unnecessary newline.
24712
24713 2010-06-03  Bruno Haible  <bruno@clisp.org>
24714
24715         Reduce dependencies.
24716         * tests/test-quotearg.h: New file, extracted from
24717         tests/test-quotearg.c.
24718         * tests/test-quotearg-simple.c: New file, extracted from
24719         tests/test-quotearg.c.
24720         * tests/test-quotearg.c: Don't include <ctype.h>.
24721         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
24722         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
24723         use_quote_double_quotes, use_quotearg_colon): Moved to
24724         tests/test-quotearg.h.
24725         (results_g, flag_results, custom_quotes, custom_results): Moved
24726         to tests/test-quotearg-simple.c.
24727         (main): Moved the part that does not depend on gettext to
24728         tests/test-quotearg-simple.c. Return 77 if the test cannot be
24729         performed.
24730         * modules/quotearg-simple: New file.
24731         * modules/quotearg-simple-tests: New file.
24732         * modules/quotearg (Depends-on): Add quotearg-simple.
24733         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
24734         (Files): Add tests/test-quotearg.h.
24735         Reported by Paolo Bonzini.
24736
24737 2010-06-03  Bruno Haible  <bruno@clisp.org>
24738
24739         Reduce dependencies.
24740         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
24741
24742 2010-06-03  Bruno Haible  <bruno@clisp.org>
24743
24744         time: Undefine more broken macros.
24745         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
24746         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
24747         Reported by Eric Blake.
24748
24749 2010-06-03  Bruno Haible  <bruno@clisp.org>
24750
24751         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
24752         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
24753         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
24754         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
24755         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
24756         Reported by Ludovic Courtès <ludo@gnu.org>.
24757
24758 2010-06-02  Eric Blake  <eblake@redhat.com>
24759
24760         time: work with mingw + pthreads-win32 library
24761         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
24762         if timespec is defined only in pthread.h.
24763         * modules/time (Makefile.am): Substitute it.
24764         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
24765         <pthread.h>, when needed.
24766         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
24767         from the library.
24768
24769 2010-05-31  Bruno Haible  <bruno@clisp.org>
24770
24771         Avoid expanding two macros in the wrong order.
24772         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
24773         gl_LIBUNISTRING if it is defined.
24774         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
24775         autoconf >= 2.64.
24776         Reported by Ludovic Courtès <ludo@gnu.org>.
24777
24778 2010-05-27  Jim Meyering  <meyering@redhat.com>
24779
24780         maint.mk: also prohibit "#undef" of always-defined symbols
24781         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
24782         Allow more than one space before the symbol name.
24783         (sc_prohibit_always-defined_macros): Use grep's -E, now that
24784         the regexp uses alternation.
24785
24786 2010-05-26  Eric Blake  <eblake@redhat.com>
24787
24788         maint.mk: avoid echo -e
24789         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
24790         Convert all uses of echo -* to printf.
24791         Reported by Matthias Bolte.
24792
24793 2010-05-25  Bruno Haible  <bruno@clisp.org>
24794
24795         Update to GNU gettext 0.18, part 2.
24796         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
24797         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
24798
24799 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24800
24801         Add missing include in test-pwrite.c.
24802         * tests/test-pwrite.c: Include string.h, for strcmp.
24803
24804 2010-05-24  Bruno Haible  <bruno@clisp.org>
24805
24806         * NEWS: Mention requirement for Automake option 'subdir-objects'.
24807
24808 2010-05-24  Bruno Haible  <bruno@clisp.org>
24809
24810         Don't use conversion with transliteration in u{8,16,32}_strcoll.
24811         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
24812         iconveh_error argument.
24813         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
24814         U_STRCONV_TO_LOCALE.
24815         * lib/unistr/u16-strcoll.c: Likewise.
24816         * lib/unistr/u32-strcoll.c: Likewise.
24817         * modules/unistr/u8-strcoll (Depends-on): Add
24818         uniconv/u8-strconv-to-enc, localcharset. Remove
24819         uniconv/u8-strconv-to-locale.
24820         (configure.ac): Bump version number.
24821         * modules/unistr/u16-strcoll (Depends-on): Add
24822         uniconv/u16-strconv-to-enc, localcharset. Remove
24823         uniconv/u16-strconv-to-locale.
24824         (configure.ac): Bump version number.
24825         * modules/unistr/u32-strcoll (Depends-on): Add
24826         uniconv/u32-strconv-to-enc, localcharset. Remove
24827         uniconv/u32-strconv-to-locale.
24828         (configure.ac): Bump version number.
24829
24830 2010-05-24  Bruno Haible  <bruno@clisp.org>
24831
24832         Avoid a test failure on NetBSD 5.0.
24833         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
24834         an iconv() bug.
24835
24836 2010-05-24  Bruno Haible  <bruno@clisp.org>
24837
24838         Adjust #include directive style.
24839         * modules/regex (Includes): Recommend to write <regex.h>.
24840
24841 2010-05-24  Bruno Haible  <bruno@clisp.org>
24842
24843         regex: Don't require alloca.
24844         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
24845         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
24846         only inside if (0).
24847
24848 2010-05-23  Jim Meyering  <meyering@redhat.com>
24849
24850         test-renameat.c: include <sys/stat.h>
24851         * tests/test-renameat.c: Include <sys/stat.h>; required for
24852         definition of S_IS* macros.
24853
24854 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
24855
24856         Update maintainer documentation for 'relocatable-prog' module.
24857         * doc/relocatable-maint.texi: Update.
24858         Comments by Bruno Haible.
24859
24860 2010-05-23  Bruno Haible  <bruno@clisp.org>
24861
24862         git-merge-changelog: Enable --split-merged-entry by default.
24863         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
24864         (usage): Don't mention this option any more.
24865         Reported by Ralf Wildenhues.
24866
24867 2010-05-23  Jim Meyering  <meyering@redhat.com>
24868
24869         test-pwrite: do not leave behind a test file named "out"
24870         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
24871         The trivial-looking use of init.sh is really necessary.
24872         It ensures that the temporary file, "out", is created in
24873         a temporary directory, and removed upon termination.
24874         * tests/test-pwrite.sh: Re-add file.
24875         * modules/pwrite-tests: Reference it.
24876
24877 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24878
24879         Fix output redirection buglet in init.sh.
24880         * tests/init.sh: Fix redirection of stderr.
24881
24882 2010-05-20  Simon Josefsson  <simon@josefsson.org>
24883
24884         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
24885
24886 2010-05-17  Simon Josefsson  <simon@josefsson.org>
24887
24888         * modules/valgrind-tests: New file.
24889         * m4/valgrind-tests.m4: New file.
24890         * doc/valgrind-tests.texi: New file.
24891         * doc/gnulib.texi (Running self-tests under valgrind): New
24892         section.
24893
24894 2010-05-19  Bruno Haible  <bruno@clisp.org>
24895
24896         Clean up dead code in recent commit.
24897         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
24898         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
24899         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
24900         Suggested by Paolo Bonzini.
24901
24902 2010-05-19  Bruno Haible  <bruno@clisp.org>
24903
24904         Avoid valgrind error reports from libunistring.
24905         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
24906         * modules/libunistring (Files): Add it.
24907         * modules/libunistring-optional (Files): Likewise.
24908
24909 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
24910             Bruno Haible  <bruno@clisp.org>
24911
24912         New module 'libunistring-optional'.
24913         * modules/libunistring-optional: New file.
24914         * m4/libunistring-base.m4: New file.
24915         * m4/libunistring-optional.m4: New file.
24916         * lib/unicase.in.h: Renamed from lib/unicase.h.
24917         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
24918         * lib/unictype.in.h: Renamed from lib/unictype.h.
24919         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
24920         * lib/uniname.in.h: Renamed from lib/uniname.h.
24921         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
24922         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
24923         * lib/unistr.in.h: Renamed from lib/unistr.h.
24924         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
24925         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
24926         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
24927         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
24928         gl_LIBUNISTRING. If the library was found, determine the installed
24929         version and set LIBUNISTRING_VERSION.
24930         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
24931         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
24932         handle a configuration option --with-included-libunistring.
24933         * modules/libunistring (Files): Add m4/absolute-header.m4.
24934         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
24935         Add m4/libunistring-base.m4.
24936         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24937         (Makefile.am): Build unicase.h from unicase.in.h.
24938         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
24939         Add m4/libunistring-base.m4.
24940         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24941         (Makefile.am): Build uniconv.h from uniconv.in.h.
24942         * modules/unictype/base (Files): Use unictype.in.h instead of
24943         unictype.h. Add m4/libunistring-base.m4.
24944         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24945         (Makefile.am): Build unictype.h from unictype.in.h.
24946         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
24947         Add m4/libunistring-base.m4.
24948         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24949         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
24950         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
24951         Add m4/libunistring-base.m4.
24952         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24953         (Makefile.am): Build uniname.h from uniname.in.h.
24954         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
24955         Add m4/libunistring-base.m4.
24956         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24957         (Makefile.am): Build uninorm.h from uninorm.in.h.
24958         * modules/unistdio/base (Files): Use unistdio.in.h instead of
24959         unistdio.h. Add m4/libunistring-base.m4.
24960         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24961         (Makefile.am): Build unistdio.h from unistdio.in.h.
24962         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
24963         Add m4/libunistring-base.m4.
24964         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24965         (Makefile.am): Build unistr.h from unistr.in.h.
24966         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
24967         Add m4/libunistring-base.m4.
24968         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24969         (Makefile.am): Build unitypes.h from unitypes.in.h.
24970         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
24971         Add m4/libunistring-base.m4.
24972         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24973         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
24974         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
24975         uniwidth.h. Add m4/libunistring-base.m4.
24976         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24977         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
24978         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
24979         instead of augmenting lib_SOURCES.
24980         * modules/unicase/empty-suffix-context: Likewise.
24981         * modules/unicase/locale-language: Likewise.
24982         * modules/unicase/tolower: Likewise.
24983         * modules/unicase/totitle: Likewise.
24984         * modules/unicase/toupper: Likewise.
24985         * modules/unicase/u8-casecmp: Likewise.
24986         * modules/unicase/u8-casecoll: Likewise.
24987         * modules/unicase/u8-casefold: Likewise.
24988         * modules/unicase/u8-casexfrm: Likewise.
24989         * modules/unicase/u8-ct-casefold: Likewise.
24990         * modules/unicase/u8-ct-tolower: Likewise.
24991         * modules/unicase/u8-ct-totitle: Likewise.
24992         * modules/unicase/u8-ct-toupper: Likewise.
24993         * modules/unicase/u8-is-cased: Likewise.
24994         * modules/unicase/u8-is-casefolded: Likewise.
24995         * modules/unicase/u8-is-lowercase: Likewise.
24996         * modules/unicase/u8-is-titlecase: Likewise.
24997         * modules/unicase/u8-is-uppercase: Likewise.
24998         * modules/unicase/u8-prefix-context: Likewise.
24999         * modules/unicase/u8-suffix-context: Likewise.
25000         * modules/unicase/u8-tolower: Likewise.
25001         * modules/unicase/u8-totitle: Likewise.
25002         * modules/unicase/u8-toupper: Likewise.
25003         * modules/unicase/u16-casecmp: Likewise.
25004         * modules/unicase/u16-casecoll: Likewise.
25005         * modules/unicase/u16-casefold: Likewise.
25006         * modules/unicase/u16-casexfrm: Likewise.
25007         * modules/unicase/u16-ct-casefold: Likewise.
25008         * modules/unicase/u16-ct-tolower: Likewise.
25009         * modules/unicase/u16-ct-totitle: Likewise.
25010         * modules/unicase/u16-ct-toupper: Likewise.
25011         * modules/unicase/u16-is-cased: Likewise.
25012         * modules/unicase/u16-is-casefolded: Likewise.
25013         * modules/unicase/u16-is-lowercase: Likewise.
25014         * modules/unicase/u16-is-titlecase: Likewise.
25015         * modules/unicase/u16-is-uppercase: Likewise.
25016         * modules/unicase/u16-prefix-context: Likewise.
25017         * modules/unicase/u16-suffix-context: Likewise.
25018         * modules/unicase/u16-tolower: Likewise.
25019         * modules/unicase/u16-totitle: Likewise.
25020         * modules/unicase/u16-toupper: Likewise.
25021         * modules/unicase/u32-casecmp: Likewise.
25022         * modules/unicase/u32-casecoll: Likewise.
25023         * modules/unicase/u32-casefold: Likewise.
25024         * modules/unicase/u32-casexfrm: Likewise.
25025         * modules/unicase/u32-ct-casefold: Likewise.
25026         * modules/unicase/u32-ct-tolower: Likewise.
25027         * modules/unicase/u32-ct-totitle: Likewise.
25028         * modules/unicase/u32-ct-toupper: Likewise.
25029         * modules/unicase/u32-is-cased: Likewise.
25030         * modules/unicase/u32-is-casefolded: Likewise.
25031         * modules/unicase/u32-is-lowercase: Likewise.
25032         * modules/unicase/u32-is-titlecase: Likewise.
25033         * modules/unicase/u32-is-uppercase: Likewise.
25034         * modules/unicase/u32-prefix-context: Likewise.
25035         * modules/unicase/u32-suffix-context: Likewise.
25036         * modules/unicase/u32-tolower: Likewise.
25037         * modules/unicase/u32-totitle: Likewise.
25038         * modules/unicase/u32-toupper: Likewise.
25039         * modules/unicase/ulc-casecmp: Likewise.
25040         * modules/unicase/ulc-casecoll: Likewise.
25041         * modules/unicase/ulc-casexfrm: Likewise.
25042         * modules/uniconv/u8-conv-from-enc: Likewise.
25043         * modules/uniconv/u8-conv-to-enc: Likewise.
25044         * modules/uniconv/u8-strconv-from-enc: Likewise.
25045         * modules/uniconv/u8-strconv-from-locale: Likewise.
25046         * modules/uniconv/u8-strconv-to-enc: Likewise.
25047         * modules/uniconv/u8-strconv-to-locale: Likewise.
25048         * modules/uniconv/u16-conv-from-enc: Likewise.
25049         * modules/uniconv/u16-conv-to-enc: Likewise.
25050         * modules/uniconv/u16-strconv-from-enc: Likewise.
25051         * modules/uniconv/u16-strconv-from-locale: Likewise.
25052         * modules/uniconv/u16-strconv-to-enc: Likewise.
25053         * modules/uniconv/u16-strconv-to-locale: Likewise.
25054         * modules/uniconv/u32-conv-from-enc: Likewise.
25055         * modules/uniconv/u32-conv-to-enc: Likewise.
25056         * modules/uniconv/u32-strconv-from-enc: Likewise.
25057         * modules/uniconv/u32-strconv-from-locale: Likewise.
25058         * modules/uniconv/u32-strconv-to-enc: Likewise.
25059         * modules/uniconv/u32-strconv-to-locale: Likewise.
25060         * modules/unictype/bidicategory-byname: Likewise.
25061         * modules/unictype/bidicategory-name: Likewise.
25062         * modules/unictype/bidicategory-of: Likewise.
25063         * modules/unictype/bidicategory-test: Likewise.
25064         * modules/unictype/block-list: Likewise.
25065         * modules/unictype/block-test: Likewise.
25066         * modules/unictype/category-C: Likewise.
25067         * modules/unictype/category-Cc: Likewise.
25068         * modules/unictype/category-Cf: Likewise.
25069         * modules/unictype/category-Cn: Likewise.
25070         * modules/unictype/category-Co: Likewise.
25071         * modules/unictype/category-Cs: Likewise.
25072         * modules/unictype/category-L: Likewise.
25073         * modules/unictype/category-Ll: Likewise.
25074         * modules/unictype/category-Lm: Likewise.
25075         * modules/unictype/category-Lo: Likewise.
25076         * modules/unictype/category-Lt: Likewise.
25077         * modules/unictype/category-Lu: Likewise.
25078         * modules/unictype/category-M: Likewise.
25079         * modules/unictype/category-Mc: Likewise.
25080         * modules/unictype/category-Me: Likewise.
25081         * modules/unictype/category-Mn: Likewise.
25082         * modules/unictype/category-N: Likewise.
25083         * modules/unictype/category-Nd: Likewise.
25084         * modules/unictype/category-Nl: Likewise.
25085         * modules/unictype/category-No: Likewise.
25086         * modules/unictype/category-P: Likewise.
25087         * modules/unictype/category-Pc: Likewise.
25088         * modules/unictype/category-Pd: Likewise.
25089         * modules/unictype/category-Pe: Likewise.
25090         * modules/unictype/category-Pf: Likewise.
25091         * modules/unictype/category-Pi: Likewise.
25092         * modules/unictype/category-Po: Likewise.
25093         * modules/unictype/category-Ps: Likewise.
25094         * modules/unictype/category-S: Likewise.
25095         * modules/unictype/category-Sc: Likewise.
25096         * modules/unictype/category-Sk: Likewise.
25097         * modules/unictype/category-Sm: Likewise.
25098         * modules/unictype/category-So: Likewise.
25099         * modules/unictype/category-Z: Likewise.
25100         * modules/unictype/category-Zl: Likewise.
25101         * modules/unictype/category-Zp: Likewise.
25102         * modules/unictype/category-Zs: Likewise.
25103         * modules/unictype/category-and: Likewise.
25104         * modules/unictype/category-and-not: Likewise.
25105         * modules/unictype/category-byname: Likewise.
25106         * modules/unictype/category-name: Likewise.
25107         * modules/unictype/category-none: Likewise.
25108         * modules/unictype/category-of: Likewise.
25109         * modules/unictype/category-or: Likewise.
25110         * modules/unictype/category-test: Likewise.
25111         * modules/unictype/combining-class: Likewise.
25112         * modules/unictype/ctype-alnum: Likewise.
25113         * modules/unictype/ctype-alpha: Likewise.
25114         * modules/unictype/ctype-blank: Likewise.
25115         * modules/unictype/ctype-cntrl: Likewise.
25116         * modules/unictype/ctype-digit: Likewise.
25117         * modules/unictype/ctype-graph: Likewise.
25118         * modules/unictype/ctype-lower: Likewise.
25119         * modules/unictype/ctype-print: Likewise.
25120         * modules/unictype/ctype-punct: Likewise.
25121         * modules/unictype/ctype-space: Likewise.
25122         * modules/unictype/ctype-upper: Likewise.
25123         * modules/unictype/ctype-xdigit: Likewise.
25124         * modules/unictype/decimal-digit: Likewise.
25125         * modules/unictype/digit: Likewise.
25126         * modules/unictype/mirror: Likewise.
25127         * modules/unictype/numeric: Likewise.
25128         * modules/unictype/property-alphabetic: Likewise.
25129         * modules/unictype/property-ascii-hex-digit: Likewise.
25130         * modules/unictype/property-bidi-arabic-digit: Likewise.
25131         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
25132         * modules/unictype/property-bidi-block-separator: Likewise.
25133         * modules/unictype/property-bidi-boundary-neutral: Likewise.
25134         * modules/unictype/property-bidi-common-separator: Likewise.
25135         * modules/unictype/property-bidi-control: Likewise.
25136         * modules/unictype/property-bidi-embedding-or-override: Likewise.
25137         * modules/unictype/property-bidi-eur-num-separator: Likewise.
25138         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
25139         * modules/unictype/property-bidi-european-digit: Likewise.
25140         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
25141         * modules/unictype/property-bidi-left-to-right: Likewise.
25142         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
25143         * modules/unictype/property-bidi-other-neutral: Likewise.
25144         * modules/unictype/property-bidi-pdf: Likewise.
25145         * modules/unictype/property-bidi-segment-separator: Likewise.
25146         * modules/unictype/property-bidi-whitespace: Likewise.
25147         * modules/unictype/property-byname: Likewise.
25148         * modules/unictype/property-combining: Likewise.
25149         * modules/unictype/property-composite: Likewise.
25150         * modules/unictype/property-currency-symbol: Likewise.
25151         * modules/unictype/property-dash: Likewise.
25152         * modules/unictype/property-decimal-digit: Likewise.
25153         * modules/unictype/property-default-ignorable-code-point: Likewise.
25154         * modules/unictype/property-deprecated: Likewise.
25155         * modules/unictype/property-diacritic: Likewise.
25156         * modules/unictype/property-extender: Likewise.
25157         * modules/unictype/property-format-control: Likewise.
25158         * modules/unictype/property-grapheme-base: Likewise.
25159         * modules/unictype/property-grapheme-extend: Likewise.
25160         * modules/unictype/property-grapheme-link: Likewise.
25161         * modules/unictype/property-hex-digit: Likewise.
25162         * modules/unictype/property-hyphen: Likewise.
25163         * modules/unictype/property-id-continue: Likewise.
25164         * modules/unictype/property-id-start: Likewise.
25165         * modules/unictype/property-ideographic: Likewise.
25166         * modules/unictype/property-ids-binary-operator: Likewise.
25167         * modules/unictype/property-ids-trinary-operator: Likewise.
25168         * modules/unictype/property-ignorable-control: Likewise.
25169         * modules/unictype/property-iso-control: Likewise.
25170         * modules/unictype/property-join-control: Likewise.
25171         * modules/unictype/property-left-of-pair: Likewise.
25172         * modules/unictype/property-line-separator: Likewise.
25173         * modules/unictype/property-logical-order-exception: Likewise.
25174         * modules/unictype/property-lowercase: Likewise.
25175         * modules/unictype/property-math: Likewise.
25176         * modules/unictype/property-non-break: Likewise.
25177         * modules/unictype/property-not-a-character: Likewise.
25178         * modules/unictype/property-numeric: Likewise.
25179         * modules/unictype/property-other-alphabetic: Likewise.
25180         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
25181         * modules/unictype/property-other-grapheme-extend: Likewise.
25182         * modules/unictype/property-other-id-continue: Likewise.
25183         * modules/unictype/property-other-id-start: Likewise.
25184         * modules/unictype/property-other-lowercase: Likewise.
25185         * modules/unictype/property-other-math: Likewise.
25186         * modules/unictype/property-other-uppercase: Likewise.
25187         * modules/unictype/property-paired-punctuation: Likewise.
25188         * modules/unictype/property-paragraph-separator: Likewise.
25189         * modules/unictype/property-pattern-syntax: Likewise.
25190         * modules/unictype/property-pattern-white-space: Likewise.
25191         * modules/unictype/property-private-use: Likewise.
25192         * modules/unictype/property-punctuation: Likewise.
25193         * modules/unictype/property-quotation-mark: Likewise.
25194         * modules/unictype/property-radical: Likewise.
25195         * modules/unictype/property-sentence-terminal: Likewise.
25196         * modules/unictype/property-soft-dotted: Likewise.
25197         * modules/unictype/property-space: Likewise.
25198         * modules/unictype/property-terminal-punctuation: Likewise.
25199         * modules/unictype/property-test: Likewise.
25200         * modules/unictype/property-titlecase: Likewise.
25201         * modules/unictype/property-unassigned-code-value: Likewise.
25202         * modules/unictype/property-unified-ideograph: Likewise.
25203         * modules/unictype/property-uppercase: Likewise.
25204         * modules/unictype/property-variation-selector: Likewise.
25205         * modules/unictype/property-white-space: Likewise.
25206         * modules/unictype/property-xid-continue: Likewise.
25207         * modules/unictype/property-xid-start: Likewise.
25208         * modules/unictype/property-zero-width: Likewise.
25209         * modules/unictype/scripts: Likewise.
25210         * modules/unictype/syntax-c-ident: Likewise.
25211         * modules/unictype/syntax-c-whitespace: Likewise.
25212         * modules/unictype/syntax-java-ident: Likewise.
25213         * modules/unictype/syntax-java-whitespace: Likewise.
25214         * modules/unilbrk/u8-possible-linebreaks: Likewise.
25215         * modules/unilbrk/u8-width-linebreaks: Likewise.
25216         * modules/unilbrk/u16-possible-linebreaks: Likewise.
25217         * modules/unilbrk/u16-width-linebreaks: Likewise.
25218         * modules/unilbrk/u32-possible-linebreaks: Likewise.
25219         * modules/unilbrk/u32-width-linebreaks: Likewise.
25220         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
25221         * modules/unilbrk/ulc-width-linebreaks: Likewise.
25222         * modules/uniname/uniname: Likewise.
25223         * modules/uninorm/canonical-decomposition: Likewise.
25224         * modules/uninorm/composition: Likewise.
25225         * modules/uninorm/decomposing-form: Likewise.
25226         * modules/uninorm/decomposition: Likewise.
25227         * modules/uninorm/filter: Likewise.
25228         * modules/uninorm/nfc: Likewise.
25229         * modules/uninorm/nfd: Likewise.
25230         * modules/uninorm/nfkc: Likewise.
25231         * modules/uninorm/nfkd: Likewise.
25232         * modules/uninorm/u8-normalize: Likewise.
25233         * modules/uninorm/u8-normcmp: Likewise.
25234         * modules/uninorm/u8-normcoll: Likewise.
25235         * modules/uninorm/u8-normxfrm: Likewise.
25236         * modules/uninorm/u16-normalize: Likewise.
25237         * modules/uninorm/u16-normcmp: Likewise.
25238         * modules/uninorm/u16-normcoll: Likewise.
25239         * modules/uninorm/u16-normxfrm: Likewise.
25240         * modules/uninorm/u32-normalize: Likewise.
25241         * modules/uninorm/u32-normcmp: Likewise.
25242         * modules/uninorm/u32-normcoll: Likewise.
25243         * modules/uninorm/u32-normxfrm: Likewise.
25244         * modules/unistdio/u8-asnprintf: Likewise.
25245         * modules/unistdio/u8-asprintf: Likewise.
25246         * modules/unistdio/u8-snprintf: Likewise.
25247         * modules/unistdio/u8-sprintf: Likewise.
25248         * modules/unistdio/u8-u8-asnprintf: Likewise.
25249         * modules/unistdio/u8-u8-asprintf: Likewise.
25250         * modules/unistdio/u8-u8-snprintf: Likewise.
25251         * modules/unistdio/u8-u8-sprintf: Likewise.
25252         * modules/unistdio/u8-u8-vasnprintf: Likewise.
25253         * modules/unistdio/u8-u8-vasprintf: Likewise.
25254         * modules/unistdio/u8-u8-vsnprintf: Likewise.
25255         * modules/unistdio/u8-u8-vsprintf: Likewise.
25256         * modules/unistdio/u8-vasnprintf: Likewise.
25257         * modules/unistdio/u8-vasprintf: Likewise.
25258         * modules/unistdio/u8-vsnprintf: Likewise.
25259         * modules/unistdio/u8-vsprintf: Likewise.
25260         * modules/unistdio/u16-asnprintf: Likewise.
25261         * modules/unistdio/u16-asprintf: Likewise.
25262         * modules/unistdio/u16-snprintf: Likewise.
25263         * modules/unistdio/u16-sprintf: Likewise.
25264         * modules/unistdio/u16-u16-asnprintf: Likewise.
25265         * modules/unistdio/u16-u16-asprintf: Likewise.
25266         * modules/unistdio/u16-u16-snprintf: Likewise.
25267         * modules/unistdio/u16-u16-sprintf: Likewise.
25268         * modules/unistdio/u16-u16-vasnprintf: Likewise.
25269         * modules/unistdio/u16-u16-vasprintf: Likewise.
25270         * modules/unistdio/u16-u16-vsnprintf: Likewise.
25271         * modules/unistdio/u16-u16-vsprintf: Likewise.
25272         * modules/unistdio/u16-vasnprintf: Likewise.
25273         * modules/unistdio/u16-vasprintf: Likewise.
25274         * modules/unistdio/u16-vsnprintf: Likewise.
25275         * modules/unistdio/u16-vsprintf: Likewise.
25276         * modules/unistdio/u32-asnprintf: Likewise.
25277         * modules/unistdio/u32-asprintf: Likewise.
25278         * modules/unistdio/u32-snprintf: Likewise.
25279         * modules/unistdio/u32-sprintf: Likewise.
25280         * modules/unistdio/u32-u32-asnprintf: Likewise.
25281         * modules/unistdio/u32-u32-asprintf: Likewise.
25282         * modules/unistdio/u32-u32-snprintf: Likewise.
25283         * modules/unistdio/u32-u32-sprintf: Likewise.
25284         * modules/unistdio/u32-u32-vasnprintf: Likewise.
25285         * modules/unistdio/u32-u32-vasprintf: Likewise.
25286         * modules/unistdio/u32-u32-vsnprintf: Likewise.
25287         * modules/unistdio/u32-u32-vsprintf: Likewise.
25288         * modules/unistdio/u32-vasnprintf: Likewise.
25289         * modules/unistdio/u32-vasprintf: Likewise.
25290         * modules/unistdio/u32-vsnprintf: Likewise.
25291         * modules/unistdio/u32-vsprintf: Likewise.
25292         * modules/unistdio/ulc-asnprintf: Likewise.
25293         * modules/unistdio/ulc-asprintf: Likewise.
25294         * modules/unistdio/ulc-fprintf: Likewise.
25295         * modules/unistdio/ulc-snprintf: Likewise.
25296         * modules/unistdio/ulc-sprintf: Likewise.
25297         * modules/unistdio/ulc-vasnprintf: Likewise.
25298         * modules/unistdio/ulc-vasprintf: Likewise.
25299         * modules/unistdio/ulc-vfprintf: Likewise.
25300         * modules/unistdio/ulc-vsnprintf: Likewise.
25301         * modules/unistdio/ulc-vsprintf: Likewise.
25302         * modules/unistr/u8-check: Likewise.
25303         * modules/unistr/u8-chr: Likewise.
25304         * modules/unistr/u8-cmp: Likewise.
25305         * modules/unistr/u8-cmp2: Likewise.
25306         * modules/unistr/u8-cpy: Likewise.
25307         * modules/unistr/u8-cpy-alloc: Likewise.
25308         * modules/unistr/u8-endswith: Likewise.
25309         * modules/unistr/u8-mblen: Likewise.
25310         * modules/unistr/u8-mbsnlen: Likewise.
25311         * modules/unistr/u8-mbtouc: Likewise.
25312         * modules/unistr/u8-mbtouc-unsafe: Likewise.
25313         * modules/unistr/u8-mbtoucr: Likewise.
25314         * modules/unistr/u8-move: Likewise.
25315         * modules/unistr/u8-next: Likewise.
25316         * modules/unistr/u8-prev: Likewise.
25317         * modules/unistr/u8-set: Likewise.
25318         * modules/unistr/u8-startswith: Likewise.
25319         * modules/unistr/u8-stpcpy: Likewise.
25320         * modules/unistr/u8-stpncpy: Likewise.
25321         * modules/unistr/u8-strcat: Likewise.
25322         * modules/unistr/u8-strchr: Likewise.
25323         * modules/unistr/u8-strcmp: Likewise.
25324         * modules/unistr/u8-strcoll: Likewise.
25325         * modules/unistr/u8-strcpy: Likewise.
25326         * modules/unistr/u8-strcspn: Likewise.
25327         * modules/unistr/u8-strdup: Likewise.
25328         * modules/unistr/u8-strlen: Likewise.
25329         * modules/unistr/u8-strmblen: Likewise.
25330         * modules/unistr/u8-strmbtouc: Likewise.
25331         * modules/unistr/u8-strncat: Likewise.
25332         * modules/unistr/u8-strncmp: Likewise.
25333         * modules/unistr/u8-strncpy: Likewise.
25334         * modules/unistr/u8-strnlen: Likewise.
25335         * modules/unistr/u8-strpbrk: Likewise.
25336         * modules/unistr/u8-strrchr: Likewise.
25337         * modules/unistr/u8-strspn: Likewise.
25338         * modules/unistr/u8-strstr: Likewise.
25339         * modules/unistr/u8-strtok: Likewise.
25340         * modules/unistr/u8-to-u16: Likewise.
25341         * modules/unistr/u8-to-u32: Likewise.
25342         * modules/unistr/u8-uctomb: Likewise.
25343         * modules/unistr/u16-check: Likewise.
25344         * modules/unistr/u16-chr: Likewise.
25345         * modules/unistr/u16-cmp: Likewise.
25346         * modules/unistr/u16-cmp2: Likewise.
25347         * modules/unistr/u16-cpy: Likewise.
25348         * modules/unistr/u16-cpy-alloc: Likewise.
25349         * modules/unistr/u16-endswith: Likewise.
25350         * modules/unistr/u16-mblen: Likewise.
25351         * modules/unistr/u16-mbsnlen: Likewise.
25352         * modules/unistr/u16-mbtouc: Likewise.
25353         * modules/unistr/u16-mbtouc-unsafe: Likewise.
25354         * modules/unistr/u16-mbtoucr: Likewise.
25355         * modules/unistr/u16-move: Likewise.
25356         * modules/unistr/u16-next: Likewise.
25357         * modules/unistr/u16-prev: Likewise.
25358         * modules/unistr/u16-set: Likewise.
25359         * modules/unistr/u16-startswith: Likewise.
25360         * modules/unistr/u16-stpcpy: Likewise.
25361         * modules/unistr/u16-stpncpy: Likewise.
25362         * modules/unistr/u16-strcat: Likewise.
25363         * modules/unistr/u16-strchr: Likewise.
25364         * modules/unistr/u16-strcmp: Likewise.
25365         * modules/unistr/u16-strcoll: Likewise.
25366         * modules/unistr/u16-strcpy: Likewise.
25367         * modules/unistr/u16-strcspn: Likewise.
25368         * modules/unistr/u16-strdup: Likewise.
25369         * modules/unistr/u16-strlen: Likewise.
25370         * modules/unistr/u16-strmblen: Likewise.
25371         * modules/unistr/u16-strmbtouc: Likewise.
25372         * modules/unistr/u16-strncat: Likewise.
25373         * modules/unistr/u16-strncmp: Likewise.
25374         * modules/unistr/u16-strncpy: Likewise.
25375         * modules/unistr/u16-strnlen: Likewise.
25376         * modules/unistr/u16-strpbrk: Likewise.
25377         * modules/unistr/u16-strrchr: Likewise.
25378         * modules/unistr/u16-strspn: Likewise.
25379         * modules/unistr/u16-strstr: Likewise.
25380         * modules/unistr/u16-strtok: Likewise.
25381         * modules/unistr/u16-to-u32: Likewise.
25382         * modules/unistr/u16-to-u8: Likewise.
25383         * modules/unistr/u16-uctomb: Likewise.
25384         * modules/unistr/u32-check: Likewise.
25385         * modules/unistr/u32-chr: Likewise.
25386         * modules/unistr/u32-cmp: Likewise.
25387         * modules/unistr/u32-cmp2: Likewise.
25388         * modules/unistr/u32-cpy: Likewise.
25389         * modules/unistr/u32-cpy-alloc: Likewise.
25390         * modules/unistr/u32-endswith: Likewise.
25391         * modules/unistr/u32-mblen: Likewise.
25392         * modules/unistr/u32-mbsnlen: Likewise.
25393         * modules/unistr/u32-mbtouc: Likewise.
25394         * modules/unistr/u32-mbtouc-unsafe: Likewise.
25395         * modules/unistr/u32-mbtoucr: Likewise.
25396         * modules/unistr/u32-move: Likewise.
25397         * modules/unistr/u32-next: Likewise.
25398         * modules/unistr/u32-prev: Likewise.
25399         * modules/unistr/u32-set: Likewise.
25400         * modules/unistr/u32-startswith: Likewise.
25401         * modules/unistr/u32-stpcpy: Likewise.
25402         * modules/unistr/u32-stpncpy: Likewise.
25403         * modules/unistr/u32-strcat: Likewise.
25404         * modules/unistr/u32-strchr: Likewise.
25405         * modules/unistr/u32-strcmp: Likewise.
25406         * modules/unistr/u32-strcoll: Likewise.
25407         * modules/unistr/u32-strcpy: Likewise.
25408         * modules/unistr/u32-strcspn: Likewise.
25409         * modules/unistr/u32-strdup: Likewise.
25410         * modules/unistr/u32-strlen: Likewise.
25411         * modules/unistr/u32-strmblen: Likewise.
25412         * modules/unistr/u32-strmbtouc: Likewise.
25413         * modules/unistr/u32-strncat: Likewise.
25414         * modules/unistr/u32-strncmp: Likewise.
25415         * modules/unistr/u32-strncpy: Likewise.
25416         * modules/unistr/u32-strnlen: Likewise.
25417         * modules/unistr/u32-strpbrk: Likewise.
25418         * modules/unistr/u32-strrchr: Likewise.
25419         * modules/unistr/u32-strspn: Likewise.
25420         * modules/unistr/u32-strstr: Likewise.
25421         * modules/unistr/u32-strtok: Likewise.
25422         * modules/unistr/u32-to-u16: Likewise.
25423         * modules/unistr/u32-to-u8: Likewise.
25424         * modules/unistr/u32-uctomb: Likewise.
25425         * modules/uniwbrk/u8-wordbreaks: Likewise.
25426         * modules/uniwbrk/u16-wordbreaks: Likewise.
25427         * modules/uniwbrk/u32-wordbreaks: Likewise.
25428         * modules/uniwbrk/ulc-wordbreaks: Likewise.
25429         * modules/uniwbrk/wordbreak-property: Likewise.
25430         * modules/uniwidth/u8-strwidth: Likewise.
25431         * modules/uniwidth/u8-width: Likewise.
25432         * modules/uniwidth/u16-strwidth: Likewise.
25433         * modules/uniwidth/u16-width: Likewise.
25434         * modules/uniwidth/u32-strwidth: Likewise.
25435         * modules/uniwidth/u32-width: Likewise.
25436         * modules/uniwidth/width: Likewise.
25437         * modules/unicase/cased-tests (Makefile.am): Link all test programs
25438         with $(LIBUNISTRING).
25439         * modules/unicase/ignorable-tests: Likewise.
25440         * modules/unicase/locale-language-tests: Likewise.
25441         * modules/unicase/tolower-tests: Likewise.
25442         * modules/unicase/totitle-tests: Likewise.
25443         * modules/unicase/toupper-tests: Likewise.
25444         * modules/unicase/u8-casecmp-tests: Likewise.
25445         * modules/unicase/u8-casecoll-tests: Likewise.
25446         * modules/unicase/u8-casefold-tests: Likewise.
25447         * modules/unicase/u8-is-cased-tests: Likewise.
25448         * modules/unicase/u8-is-casefolded-tests: Likewise.
25449         * modules/unicase/u8-is-lowercase-tests: Likewise.
25450         * modules/unicase/u8-is-titlecase-tests: Likewise.
25451         * modules/unicase/u8-is-uppercase-tests: Likewise.
25452         * modules/unicase/u8-tolower-tests: Likewise.
25453         * modules/unicase/u8-totitle-tests: Likewise.
25454         * modules/unicase/u8-toupper-tests: Likewise.
25455         * modules/unicase/u16-casecmp-tests: Likewise.
25456         * modules/unicase/u16-casecoll-tests: Likewise.
25457         * modules/unicase/u16-casefold-tests: Likewise.
25458         * modules/unicase/u16-is-cased-tests: Likewise.
25459         * modules/unicase/u16-is-casefolded-tests: Likewise.
25460         * modules/unicase/u16-is-lowercase-tests: Likewise.
25461         * modules/unicase/u16-is-titlecase-tests: Likewise.
25462         * modules/unicase/u16-is-uppercase-tests: Likewise.
25463         * modules/unicase/u16-tolower-tests: Likewise.
25464         * modules/unicase/u16-totitle-tests: Likewise.
25465         * modules/unicase/u16-toupper-tests: Likewise.
25466         * modules/unicase/u32-casecmp-tests: Likewise.
25467         * modules/unicase/u32-casecoll-tests: Likewise.
25468         * modules/unicase/u32-casefold-tests: Likewise.
25469         * modules/unicase/u32-is-cased-tests: Likewise.
25470         * modules/unicase/u32-is-casefolded-tests: Likewise.
25471         * modules/unicase/u32-is-lowercase-tests: Likewise.
25472         * modules/unicase/u32-is-titlecase-tests: Likewise.
25473         * modules/unicase/u32-is-uppercase-tests: Likewise.
25474         * modules/unicase/u32-tolower-tests: Likewise.
25475         * modules/unicase/u32-totitle-tests: Likewise.
25476         * modules/unicase/u32-toupper-tests: Likewise.
25477         * modules/unicase/ulc-casecmp-tests: Likewise.
25478         * modules/unicase/ulc-casecoll-tests: Likewise.
25479         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
25480         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
25481         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
25482         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
25483         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
25484         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
25485         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
25486         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
25487         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
25488         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
25489         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
25490         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
25491         * modules/unictype/bidicategory-byname-tests: Likewise.
25492         * modules/unictype/bidicategory-name-tests: Likewise.
25493         * modules/unictype/bidicategory-of-tests: Likewise.
25494         * modules/unictype/bidicategory-test-tests: Likewise.
25495         * modules/unictype/block-list-tests: Likewise.
25496         * modules/unictype/block-of-tests: Likewise.
25497         * modules/unictype/block-test-tests: Likewise.
25498         * modules/unictype/category-C-tests: Likewise.
25499         * modules/unictype/category-Cc-tests: Likewise.
25500         * modules/unictype/category-Cf-tests: Likewise.
25501         * modules/unictype/category-Cn-tests: Likewise.
25502         * modules/unictype/category-Co-tests: Likewise.
25503         * modules/unictype/category-Cs-tests: Likewise.
25504         * modules/unictype/category-L-tests: Likewise.
25505         * modules/unictype/category-Ll-tests: Likewise.
25506         * modules/unictype/category-Lm-tests: Likewise.
25507         * modules/unictype/category-Lo-tests: Likewise.
25508         * modules/unictype/category-Lt-tests: Likewise.
25509         * modules/unictype/category-Lu-tests: Likewise.
25510         * modules/unictype/category-M-tests: Likewise.
25511         * modules/unictype/category-Mc-tests: Likewise.
25512         * modules/unictype/category-Me-tests: Likewise.
25513         * modules/unictype/category-Mn-tests: Likewise.
25514         * modules/unictype/category-N-tests: Likewise.
25515         * modules/unictype/category-Nd-tests: Likewise.
25516         * modules/unictype/category-Nl-tests: Likewise.
25517         * modules/unictype/category-No-tests: Likewise.
25518         * modules/unictype/category-P-tests: Likewise.
25519         * modules/unictype/category-Pc-tests: Likewise.
25520         * modules/unictype/category-Pd-tests: Likewise.
25521         * modules/unictype/category-Pe-tests: Likewise.
25522         * modules/unictype/category-Pf-tests: Likewise.
25523         * modules/unictype/category-Pi-tests: Likewise.
25524         * modules/unictype/category-Po-tests: Likewise.
25525         * modules/unictype/category-Ps-tests: Likewise.
25526         * modules/unictype/category-S-tests: Likewise.
25527         * modules/unictype/category-Sc-tests: Likewise.
25528         * modules/unictype/category-Sk-tests: Likewise.
25529         * modules/unictype/category-Sm-tests: Likewise.
25530         * modules/unictype/category-So-tests: Likewise.
25531         * modules/unictype/category-Z-tests: Likewise.
25532         * modules/unictype/category-Zl-tests: Likewise.
25533         * modules/unictype/category-Zp-tests: Likewise.
25534         * modules/unictype/category-Zs-tests: Likewise.
25535         * modules/unictype/category-and-not-tests: Likewise.
25536         * modules/unictype/category-and-tests: Likewise.
25537         * modules/unictype/category-byname-tests: Likewise.
25538         * modules/unictype/category-name-tests: Likewise.
25539         * modules/unictype/category-none-tests: Likewise.
25540         * modules/unictype/category-of-tests: Likewise.
25541         * modules/unictype/category-or-tests: Likewise.
25542         * modules/unictype/category-test-withtable-tests: Likewise.
25543         * modules/unictype/combining-class-tests: Likewise.
25544         * modules/unictype/ctype-alnum-tests: Likewise.
25545         * modules/unictype/ctype-alpha-tests: Likewise.
25546         * modules/unictype/ctype-blank-tests: Likewise.
25547         * modules/unictype/ctype-cntrl-tests: Likewise.
25548         * modules/unictype/ctype-digit-tests: Likewise.
25549         * modules/unictype/ctype-graph-tests: Likewise.
25550         * modules/unictype/ctype-lower-tests: Likewise.
25551         * modules/unictype/ctype-print-tests: Likewise.
25552         * modules/unictype/ctype-punct-tests: Likewise.
25553         * modules/unictype/ctype-space-tests: Likewise.
25554         * modules/unictype/ctype-upper-tests: Likewise.
25555         * modules/unictype/ctype-xdigit-tests: Likewise.
25556         * modules/unictype/decimal-digit-tests: Likewise.
25557         * modules/unictype/digit-tests: Likewise.
25558         * modules/unictype/mirror-tests: Likewise.
25559         * modules/unictype/numeric-tests: Likewise.
25560         * modules/unictype/property-alphabetic-tests: Likewise.
25561         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
25562         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
25563         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
25564         * modules/unictype/property-bidi-block-separator-tests: Likewise.
25565         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
25566         * modules/unictype/property-bidi-common-separator-tests: Likewise.
25567         * modules/unictype/property-bidi-control-tests: Likewise.
25568         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
25569         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
25570         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
25571         * modules/unictype/property-bidi-european-digit-tests: Likewise.
25572         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
25573         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
25574         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
25575         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
25576         * modules/unictype/property-bidi-pdf-tests: Likewise.
25577         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
25578         * modules/unictype/property-bidi-whitespace-tests: Likewise.
25579         * modules/unictype/property-byname-tests: Likewise.
25580         * modules/unictype/property-combining-tests: Likewise.
25581         * modules/unictype/property-composite-tests: Likewise.
25582         * modules/unictype/property-currency-symbol-tests: Likewise.
25583         * modules/unictype/property-dash-tests: Likewise.
25584         * modules/unictype/property-decimal-digit-tests: Likewise.
25585         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
25586         * modules/unictype/property-deprecated-tests: Likewise.
25587         * modules/unictype/property-diacritic-tests: Likewise.
25588         * modules/unictype/property-extender-tests: Likewise.
25589         * modules/unictype/property-format-control-tests: Likewise.
25590         * modules/unictype/property-grapheme-base-tests: Likewise.
25591         * modules/unictype/property-grapheme-extend-tests: Likewise.
25592         * modules/unictype/property-grapheme-link-tests: Likewise.
25593         * modules/unictype/property-hex-digit-tests: Likewise.
25594         * modules/unictype/property-hyphen-tests: Likewise.
25595         * modules/unictype/property-id-continue-tests: Likewise.
25596         * modules/unictype/property-id-start-tests: Likewise.
25597         * modules/unictype/property-ideographic-tests: Likewise.
25598         * modules/unictype/property-ids-binary-operator-tests: Likewise.
25599         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
25600         * modules/unictype/property-ignorable-control-tests: Likewise.
25601         * modules/unictype/property-iso-control-tests: Likewise.
25602         * modules/unictype/property-join-control-tests: Likewise.
25603         * modules/unictype/property-left-of-pair-tests: Likewise.
25604         * modules/unictype/property-line-separator-tests: Likewise.
25605         * modules/unictype/property-logical-order-exception-tests: Likewise.
25606         * modules/unictype/property-lowercase-tests: Likewise.
25607         * modules/unictype/property-math-tests: Likewise.
25608         * modules/unictype/property-non-break-tests: Likewise.
25609         * modules/unictype/property-not-a-character-tests: Likewise.
25610         * modules/unictype/property-numeric-tests: Likewise.
25611         * modules/unictype/property-other-alphabetic-tests: Likewise.
25612         * modules/unictype/property-other-default-ignorable-code-point-tests:
25613         Likewise.
25614         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
25615         * modules/unictype/property-other-id-continue-tests: Likewise.
25616         * modules/unictype/property-other-id-start-tests: Likewise.
25617         * modules/unictype/property-other-lowercase-tests: Likewise.
25618         * modules/unictype/property-other-math-tests: Likewise.
25619         * modules/unictype/property-other-uppercase-tests: Likewise.
25620         * modules/unictype/property-paired-punctuation-tests: Likewise.
25621         * modules/unictype/property-paragraph-separator-tests: Likewise.
25622         * modules/unictype/property-pattern-syntax-tests: Likewise.
25623         * modules/unictype/property-pattern-white-space-tests: Likewise.
25624         * modules/unictype/property-private-use-tests: Likewise.
25625         * modules/unictype/property-punctuation-tests: Likewise.
25626         * modules/unictype/property-quotation-mark-tests: Likewise.
25627         * modules/unictype/property-radical-tests: Likewise.
25628         * modules/unictype/property-sentence-terminal-tests: Likewise.
25629         * modules/unictype/property-soft-dotted-tests: Likewise.
25630         * modules/unictype/property-space-tests: Likewise.
25631         * modules/unictype/property-terminal-punctuation-tests: Likewise.
25632         * modules/unictype/property-test-tests: Likewise.
25633         * modules/unictype/property-titlecase-tests: Likewise.
25634         * modules/unictype/property-unassigned-code-value-tests: Likewise.
25635         * modules/unictype/property-unified-ideograph-tests: Likewise.
25636         * modules/unictype/property-uppercase-tests: Likewise.
25637         * modules/unictype/property-variation-selector-tests: Likewise.
25638         * modules/unictype/property-white-space-tests: Likewise.
25639         * modules/unictype/property-xid-continue-tests: Likewise.
25640         * modules/unictype/property-xid-start-tests: Likewise.
25641         * modules/unictype/property-zero-width-tests: Likewise.
25642         * modules/unictype/scripts-tests: Likewise.
25643         * modules/unictype/syntax-c-ident-tests: Likewise.
25644         * modules/unictype/syntax-c-whitespace-tests: Likewise.
25645         * modules/unictype/syntax-java-ident-tests: Likewise.
25646         * modules/unictype/syntax-java-whitespace-tests: Likewise.
25647         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
25648         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
25649         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
25650         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
25651         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
25652         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
25653         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
25654         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
25655         * modules/uniname/uniname-tests: Likewise.
25656         * modules/uninorm/canonical-decomposition-tests: Likewise.
25657         * modules/uninorm/compat-decomposition-tests: Likewise.
25658         * modules/uninorm/composition-tests: Likewise.
25659         * modules/uninorm/decomposing-form-tests: Likewise.
25660         * modules/uninorm/decomposition-tests: Likewise.
25661         * modules/uninorm/filter-tests: Likewise.
25662         * modules/uninorm/nfc-tests: Likewise.
25663         * modules/uninorm/nfd-tests: Likewise.
25664         * modules/uninorm/nfkc-tests: Likewise.
25665         * modules/uninorm/nfkd-tests: Likewise.
25666         * modules/uninorm/u8-normcmp-tests: Likewise.
25667         * modules/uninorm/u8-normcoll-tests: Likewise.
25668         * modules/uninorm/u16-normcmp-tests: Likewise.
25669         * modules/uninorm/u16-normcoll-tests: Likewise.
25670         * modules/uninorm/u32-normcmp-tests: Likewise.
25671         * modules/uninorm/u32-normcoll-tests: Likewise.
25672         * modules/unistdio/u8-asnprintf-tests: Likewise.
25673         * modules/unistdio/u8-vasnprintf-tests: Likewise.
25674         * modules/unistdio/u8-vasprintf-tests: Likewise.
25675         * modules/unistdio/u8-vsnprintf-tests: Likewise.
25676         * modules/unistdio/u8-vsprintf-tests: Likewise.
25677         * modules/unistdio/u16-asnprintf-tests: Likewise.
25678         * modules/unistdio/u16-vasnprintf-tests: Likewise.
25679         * modules/unistdio/u16-vasprintf-tests: Likewise.
25680         * modules/unistdio/u16-vsnprintf-tests: Likewise.
25681         * modules/unistdio/u16-vsprintf-tests: Likewise.
25682         * modules/unistdio/u32-asnprintf-tests: Likewise.
25683         * modules/unistdio/u32-vasnprintf-tests: Likewise.
25684         * modules/unistdio/u32-vasprintf-tests: Likewise.
25685         * modules/unistdio/u32-vsnprintf-tests: Likewise.
25686         * modules/unistdio/u32-vsprintf-tests: Likewise.
25687         * modules/unistdio/ulc-asnprintf-tests: Likewise.
25688         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
25689         * modules/unistdio/ulc-vasprintf-tests: Likewise.
25690         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
25691         * modules/unistdio/ulc-vsprintf-tests: Likewise.
25692         * modules/unistr/u8-check-tests: Likewise.
25693         * modules/unistr/u8-chr-tests: Likewise.
25694         * modules/unistr/u8-cmp-tests: Likewise.
25695         * modules/unistr/u8-cmp2-tests: Likewise.
25696         * modules/unistr/u8-cpy-alloc-tests: Likewise.
25697         * modules/unistr/u8-cpy-tests: Likewise.
25698         * modules/unistr/u8-mblen-tests: Likewise.
25699         * modules/unistr/u8-mbsnlen-tests: Likewise.
25700         * modules/unistr/u8-mbtouc-tests: Likewise.
25701         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
25702         * modules/unistr/u8-mbtoucr-tests: Likewise.
25703         * modules/unistr/u8-move-tests: Likewise.
25704         * modules/unistr/u8-next-tests: Likewise.
25705         * modules/unistr/u8-prev-tests: Likewise.
25706         * modules/unistr/u8-set-tests: Likewise.
25707         * modules/unistr/u8-stpcpy-tests: Likewise.
25708         * modules/unistr/u8-stpncpy-tests: Likewise.
25709         * modules/unistr/u8-strcat-tests: Likewise.
25710         * modules/unistr/u8-strcmp-tests: Likewise.
25711         * modules/unistr/u8-strcoll-tests: Likewise.
25712         * modules/unistr/u8-strcpy-tests: Likewise.
25713         * modules/unistr/u8-strdup-tests: Likewise.
25714         * modules/unistr/u8-strlen-tests: Likewise.
25715         * modules/unistr/u8-strmblen-tests: Likewise.
25716         * modules/unistr/u8-strmbtouc-tests: Likewise.
25717         * modules/unistr/u8-strncat-tests: Likewise.
25718         * modules/unistr/u8-strncmp-tests: Likewise.
25719         * modules/unistr/u8-strncpy-tests: Likewise.
25720         * modules/unistr/u8-strnlen-tests: Likewise.
25721         * modules/unistr/u8-to-u16-tests: Likewise.
25722         * modules/unistr/u8-to-u32-tests: Likewise.
25723         * modules/unistr/u8-uctomb-tests: Likewise.
25724         * modules/unistr/u16-check-tests: Likewise.
25725         * modules/unistr/u16-chr-tests: Likewise.
25726         * modules/unistr/u16-cmp-tests: Likewise.
25727         * modules/unistr/u16-cmp2-tests: Likewise.
25728         * modules/unistr/u16-cpy-alloc-tests: Likewise.
25729         * modules/unistr/u16-cpy-tests: Likewise.
25730         * modules/unistr/u16-mblen-tests: Likewise.
25731         * modules/unistr/u16-mbsnlen-tests: Likewise.
25732         * modules/unistr/u16-mbtouc-tests: Likewise.
25733         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
25734         * modules/unistr/u16-mbtoucr-tests: Likewise.
25735         * modules/unistr/u16-move-tests: Likewise.
25736         * modules/unistr/u16-next-tests: Likewise.
25737         * modules/unistr/u16-prev-tests: Likewise.
25738         * modules/unistr/u16-set-tests: Likewise.
25739         * modules/unistr/u16-stpcpy-tests: Likewise.
25740         * modules/unistr/u16-stpncpy-tests: Likewise.
25741         * modules/unistr/u16-strcat-tests: Likewise.
25742         * modules/unistr/u16-strcmp-tests: Likewise.
25743         * modules/unistr/u16-strcoll-tests: Likewise.
25744         * modules/unistr/u16-strcpy-tests: Likewise.
25745         * modules/unistr/u16-strdup-tests: Likewise.
25746         * modules/unistr/u16-strlen-tests: Likewise.
25747         * modules/unistr/u16-strmblen-tests: Likewise.
25748         * modules/unistr/u16-strmbtouc-tests: Likewise.
25749         * modules/unistr/u16-strncat-tests: Likewise.
25750         * modules/unistr/u16-strncmp-tests: Likewise.
25751         * modules/unistr/u16-strncpy-tests: Likewise.
25752         * modules/unistr/u16-strnlen-tests: Likewise.
25753         * modules/unistr/u16-to-u32-tests: Likewise.
25754         * modules/unistr/u16-to-u8-tests: Likewise.
25755         * modules/unistr/u16-uctomb-tests: Likewise.
25756         * modules/unistr/u32-check-tests: Likewise.
25757         * modules/unistr/u32-chr-tests: Likewise.
25758         * modules/unistr/u32-cmp-tests: Likewise.
25759         * modules/unistr/u32-cmp2-tests: Likewise.
25760         * modules/unistr/u32-cpy-alloc-tests: Likewise.
25761         * modules/unistr/u32-cpy-tests: Likewise.
25762         * modules/unistr/u32-mblen-tests: Likewise.
25763         * modules/unistr/u32-mbsnlen-tests: Likewise.
25764         * modules/unistr/u32-mbtouc-tests: Likewise.
25765         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
25766         * modules/unistr/u32-mbtoucr-tests: Likewise.
25767         * modules/unistr/u32-move-tests: Likewise.
25768         * modules/unistr/u32-next-tests: Likewise.
25769         * modules/unistr/u32-prev-tests: Likewise.
25770         * modules/unistr/u32-set-tests: Likewise.
25771         * modules/unistr/u32-stpcpy-tests: Likewise.
25772         * modules/unistr/u32-stpncpy-tests: Likewise.
25773         * modules/unistr/u32-strcat-tests: Likewise.
25774         * modules/unistr/u32-strcmp-tests: Likewise.
25775         * modules/unistr/u32-strcoll-tests: Likewise.
25776         * modules/unistr/u32-strcpy-tests: Likewise.
25777         * modules/unistr/u32-strdup-tests: Likewise.
25778         * modules/unistr/u32-strlen-tests: Likewise.
25779         * modules/unistr/u32-strmblen-tests: Likewise.
25780         * modules/unistr/u32-strmbtouc-tests: Likewise.
25781         * modules/unistr/u32-strncat-tests: Likewise.
25782         * modules/unistr/u32-strncmp-tests: Likewise.
25783         * modules/unistr/u32-strncpy-tests: Likewise.
25784         * modules/unistr/u32-strnlen-tests: Likewise.
25785         * modules/unistr/u32-to-u16-tests: Likewise.
25786         * modules/unistr/u32-to-u8-tests: Likewise.
25787         * modules/unistr/u32-uctomb-tests: Likewise.
25788         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
25789         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
25790         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
25791         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
25792         * modules/uniwidth/u8-strwidth-tests: Likewise.
25793         * modules/uniwidth/u8-width-tests: Likewise.
25794         * modules/uniwidth/u16-strwidth-tests: Likewise.
25795         * modules/uniwidth/u16-width-tests: Likewise.
25796         * modules/uniwidth/u32-strwidth-tests: Likewise.
25797         * modules/uniwidth/u32-width-tests: Likewise.
25798         * modules/uniwidth/width-tests: Likewise.
25799
25800 2010-05-18  Richard Jones  <rjones@redhat.com>
25801
25802         doc: users.txt: list hivex
25803         * users.txt: Add hivex.
25804
25805 2010-05-18  Richard Jones  <rjones@redhat.com>
25806
25807         doc: users.txt: list febootstrap
25808         * users.txt: Add febootstrap.
25809
25810 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
25811
25812         bootstrap: fix an error when gnulib is not used as a git submodule
25813         * build-aux/bootstrap (gnulib_path): If its length is zero then
25814         assign "gnulib" to it.
25815         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
25816
25817 2010-05-16  Bruno Haible  <bruno@clisp.org>
25818
25819         Avoid autoconf warnings about AM_ICONV.
25820         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
25821         2.64.
25822
25823 2010-05-16  Bruno Haible  <bruno@clisp.org>
25824
25825         absolute-header: Make the macro usable in more situations.
25826         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
25827         from gl_ABSOLUTE_HEADER.
25828         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
25829
25830 2010-05-16  James Youngman  <jay@gnu.org>
25831
25832         doc: update users.txt
25833         * users.txt: Add CSSC.
25834
25835 2010-05-16  Jim Meyering  <meyering@redhat.com>
25836
25837         init.sh: fix an error in the previous change; add more comments
25838         * tests/init.sh: Compare exit code in loop against 9, not 2.
25839         Patch by Bruno Haible.
25840         Make the two tests more similar by adding an empty "then" clause.
25841         Add comments.
25842
25843         init.sh: avoid unnecessary shell re-exec
25844         * tests/init.sh: Improve the re-exec-required check to first test the
25845         current shell.  If it passes the test, do not search for a shell that
25846         does pass, and do not re-exec.  This test is particularly contorted to
25847         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
25848         of $(...) evokes a syntax error and causes immediate shell exit with
25849         status 2.  Bruno Haible reported that the re-exec made it impossible
25850         to single-step through any init.sh-using script.
25851
25852 2010-05-16  Bruno Haible  <bruno@clisp.org>
25853
25854         Fix collision between gnulib's and libintl's printf replacements.
25855         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
25856         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
25857         (printf): When using GNU C, map the __printf__ function to rpl_printf
25858         via __asm__. When not using GNU C, define rpl_printf instead of
25859         __printf__.
25860         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
25861         commit.
25862         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
25863         commit.
25864         * m4/asm-underscore.m4: New file.
25865         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
25866         * modules/stdio (Files): Add m4/asm-underscore.m4.
25867         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
25868         Reported by Ben Pfaff.
25869
25870 2010-05-16  Bruno Haible  <bruno@clisp.org>
25871
25872         verify: Avoid skipping the test on openSUSE 11.0.
25873         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
25874
25875 2010-05-13  Bruno Haible  <bruno@clisp.org>
25876
25877         Avoid useless warnings from G++.
25878         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
25879         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
25880         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25881
25882 2010-05-11  Jim Meyering  <meyering@redhat.com>
25883
25884         maint.mk: tweak preceding change
25885         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
25886         regexps tighter by anchoring at EOL, and make the new group "shy"
25887         for slightly decreased overhead.
25888
25889 2010-05-11  Eric Blake  <eblake@redhat.com>
25890
25891         maint.mk: gnulib doesn't guarantee NSIG
25892         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
25893
25894 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25895
25896         test-pwrite.c: Remove unused variable declaration.
25897         * tests/test-pwrite.c (main): Remove read_buf declaration.
25898
25899         Remove useless test-pwrite.sh file.
25900         * tests/test-pwrite.sh: Delete file.
25901         * modules/pwrite-tests: Remove references.
25902         Reported by Bruno Haible.
25903
25904 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25905
25906         init.sh: fix a typo
25907         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
25908
25909 2010-05-10  Jim Meyering  <meyering@redhat.com>
25910
25911         maint.mk: avoid using a temporary file in the always-defined-macros check
25912         * top/maint.mk (.re-defmac): Remove rule.
25913         (gl_trap_): Remove definition.
25914         (sc_prohibit_always-defined_macros): Rewrite not to create and
25915         depend on a temporary file.  Instead, depend on GNU grep's ability
25916         to read a list of regular expressions from stdin when given "-f -".
25917
25918 2010-05-09  Bruno Haible  <bruno@clisp.org>
25919
25920         Update to GNU gettext 0.18, part 1.
25921         * m4/gettext.m4: Update to GNU gettext 0.18.
25922         * m4/intl.m4: Likewise.
25923         * m4/po.m4: Likewise.
25924         * modules/gettext (Files): Add m4/fcntl-o.m4.
25925         (configure.ac): Require gettext infrastructure from version 0.18.
25926
25927 2010-05-09  Jim Meyering  <meyering@redhat.com>
25928
25929         init.sh: enable MALLOC_PERTURB_
25930         * tests/init.sh: Enable glibc's malloc-perturbing option.
25931
25932         maint.mk: improve sc_cross_check_PATH_usage_in_tests
25933         With my recent change in init.sh from the two-line form:
25934             -#   : ${srcdir=.}
25935             -#   . "$srcdir/init.sh"; path_prepend_ .
25936             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
25937         I noticed that using the one-line form would cause this test
25938         to fail with a false-positive, or to stop working altogether,
25939         depending on whether help-version changed or all the tests did.
25940         * top/maint.mk (_hv_regex): Remove this definition.
25941         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
25942         (_hv_regex_strong): Use a stronger regex to check for conformance.
25943         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
25944         Give a separate diagnostic for lack of conforming use.
25945
25946         maint.mk: prohibit definition of symbols defined by gnulib
25947         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
25948         definition of symbols defined by gnulib.
25949
25950 2010-05-09  Bruno Haible  <bruno@clisp.org>
25951
25952         acl: Avoid test failure on Cygwin-hosted mingw.
25953         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
25954
25955 2010-05-09  Bruno Haible  <bruno@clisp.org>
25956
25957         error: Use system's fcntl function.
25958         * lib/error.c (fcntl): Undefine.
25959
25960 2010-05-09  Jim Meyering  <meyering@redhat.com>
25961
25962         verify: adjust formatting to be more consistent
25963         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
25964         argument-list '('s, and after one comma.
25965
25966 2010-05-09  Bruno Haible  <bruno@clisp.org>
25967
25968         error: More reliable output on mingw.
25969         * lib/error.c: Include <windows.h>.
25970         (is_open): New function.
25971         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
25972         defined.
25973
25974 2010-05-09  Bruno Haible  <bruno@clisp.org>
25975
25976         vasnprintf: Fix syntax errors in libintl build on mingw.
25977         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
25978         pad_ourselves and prec_ourselves after use.
25979
25980 2010-05-08  Bruno Haible  <bruno@clisp.org>
25981
25982         * lib/config.charset: Update comments for Cygwin 1.7.
25983         * lib/localcharset.c: Likewise.
25984
25985 2010-05-07  Jim Meyering  <meyering@redhat.com>
25986
25987         init.sh: improve comments
25988         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
25989         . "${srcdir=.}/init.sh"; path_prepend_ .
25990         Add a note about path_prepend_ and the alternative of using
25991         TESTS_ENVIRONMENT.
25992
25993 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25994
25995         exclude: Unescape hashed patterns in wildcard mode.
25996         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
25997         to the hash list.
25998         * tests/test-exclude8.sh: New test case.
25999         * modules/exclude-tests: Add new test.
26000
26001 2010-05-05  Eric Blake  <eblake@redhat.com>
26002
26003         verify: automate tests
26004         * modules/verify-tests: New module.
26005         * tests/test-verify.sh: New file.
26006         * tests/test-verify.c: Guard each negative test with a unique id.
26007         Also avoid warning about unused left hand of comma expressions.
26008
26009 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
26010
26011         Further improvements to verify.h, suggested by Eric Blake.
26012         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
26013         the GL_* versions, to avoid collision with OpenGL.
26014         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
26015         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
26016         than testing merely whether it's defined.
26017
26018         Modify verify.h to pacify gcc -Wredundant_decls.
26019         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
26020         These use the prefix "GL_" since they're likely to be useful elsewhere.
26021         We may need to break them out into a different .h file.
26022         (__COUNTER__): Define to 0 if the compiler doesn't support it.
26023         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
26024         of verify_function__.
26025
26026 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26027
26028         Tests for module pwrite.
26029         * modules/pwrite-tests: New file.
26030         * tests/test-pwrite.sh: New file.
26031         * tests/test-pwrite.c: New file.
26032
26033         New module pwrite.
26034         * lib/unistd.in.h (pwrite): New declaration.
26035         * lib/pwrite.c: New file, from glibc with modifications.
26036         * m4/pwrite.m4: New file.
26037         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
26038         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
26039         REPLACE_PWRITE.
26040         * modules/pwrite: New file.
26041         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
26042         REPLACE_PWRITE.
26043         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
26044         * doc/posix-functions/pwrite.texi: Mention the new module.
26045
26046 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26047
26048         pread: Update documentation.
26049         * doc/posix-functions/pread.texi: Mention the 'pread' module.
26050
26051 2010-05-04  Eric Blake  <eblake@redhat.com>
26052
26053         docs: update cygwin progress
26054         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
26055         this bug.
26056         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
26057         Added in cygwin 1.7.2.
26058         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
26059         Likewise.
26060         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
26061         Likewise.
26062         * doc/glibc-functions/dup3.texi (dup3): Likewise.
26063         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
26064         * doc/glibc-functions/accept4.texi (accept4): Likewise.
26065         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
26066         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
26067         Mention nproc module.
26068         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
26069         bug in cygwin 1.7.5 addition.
26070         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
26071         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
26072         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
26073         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
26074         1.7.5.
26075         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
26076         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
26077         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
26078         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
26079         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
26080         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
26081         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
26082         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
26083         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
26084         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
26085         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
26086         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
26087         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
26088         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
26089         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
26090         Likewise.
26091         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
26092         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
26093         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
26094         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
26095         Likewise.
26096         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
26097         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
26098         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
26099         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
26100         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
26101         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
26102         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
26103         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
26104         Likewise.
26105         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
26106         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
26107         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
26108         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
26109         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
26110         Likewise.
26111         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
26112         Likewise.
26113         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
26114         Likewise.
26115         * doc/glibc-functions/xdrrec_endofrecord.texi
26116         (xdrrec_endofrecord): Likewise.
26117         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
26118         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
26119         Likewise.
26120         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
26121         Likewise.
26122
26123 2010-05-04  Jim Meyering  <meyering@redhat.com>
26124
26125         gendocs.sh: make its "-s FILE" option more useful
26126         * build-aux/gendocs.sh: When honoring the -s FILE option, update
26127         $PACKAGE to reflect the probably-different basename of "FILE".
26128
26129 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26130
26131         bootstrap: don't ignore download_po_files failure
26132         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
26133         failure.
26134
26135 2010-05-03  Jim Meyering  <meyering@redhat.com>
26136
26137         maint.mk: allow to pass options to gendocs.sh
26138         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
26139         (gendocs_options_): New overridable variable.
26140
26141         gnu-web-doc-update: don't ignore configure or build failure
26142         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
26143
26144         announce-gen: backslash-escape '@'s in --help output
26145         * build-aux/announce-gen: Fix syntax errors.
26146
26147         maint.mk, announce-gen: allow project-specific announcement mail headers
26148         * top/maint.mk (translation_project_): Define default.
26149         (announcement_Cc_, announcement_mail_headers_): Likewise.
26150         (announcement): Invoke announce-gen with new --mail-headers option.
26151         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
26152
26153         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
26154         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
26155         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
26156         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
26157         line in the "err2" output file when running "make check" in verbose
26158         mode (i.e., with set -x enabled).
26159
26160 2010-05-03  Bruno Haible  <bruno@clisp.org>
26161
26162         wctob: Fix for weird platforms.
26163         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
26164         argument value.
26165
26166 2010-05-03  Jim Meyering  <meyering@redhat.com>
26167
26168         maint.mk: prohibit unwarranted use of <strings.h>
26169         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
26170         strings.h in a file that does not also use strcasecmp, strncasecmp,
26171         ffs or ffsll.
26172
26173         maint.mk: remove obsolete comments
26174         * top/maint.mk: Remove stale, commented-out rules.
26175
26176 2010-05-02  Bruno Haible  <bruno@clisp.org>
26177
26178         wcwidth: Declare also when it's aliased.
26179         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
26180         macro.
26181
26182 2010-05-02  Bruno Haible  <bruno@clisp.org>
26183
26184         Fix regression from 2010-04-25.
26185         * gnulib-tool (func_modules_transitive_closure): Check the status of
26186         all modules, not only of the tests that are of the form foo-tests where
26187         foo is a module.
26188
26189 2010-05-02  Bruno Haible  <bruno@clisp.org>
26190
26191         wctob: Work around nasty Cygwin 1.7.2 bug.
26192         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
26193         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
26194
26195 2010-05-01  Bruno Haible  <bruno@clisp.org>
26196
26197         fpurge: Sharper test.
26198         * tests/test-fpurge.c (main): Add one more ftell check.
26199         * modules/fpurge-tests (Depends-on): Add ftell.
26200         Suggested by Eric Blake.
26201
26202 2010-05-01  Bruno Haible  <bruno@clisp.org>
26203
26204         ftello: Another test.
26205         * tests/test-ftello3.c: New file.
26206         * modules/ftello-tests (Files): Add it.
26207         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26208         MOSTLYCLEANFILES.
26209
26210         ftell: Another test.
26211         * tests/test-ftell3.c: New file.
26212         * modules/ftell-tests (Files): Add it.
26213         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26214         MOSTLYCLEANFILES.
26215
26216 2010-05-01  Bruno Haible  <bruno@clisp.org>
26217
26218         ftell, ftello: Work around Solaris bug.
26219         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
26220         * lib/ftello.c: Include stdio-impl.h.
26221         (ftello): On Solaris, when _IOWRT is set, compute the result without
26222         looking at _IOREAD.
26223         * modules/ftello (Files): Add lib/stdio-impl.h.
26224         * doc/posix-functions/ftell.texi: Mention Solaris bug.
26225         * doc/posix-functions/ftello.texi: Likewise.
26226         Reported by Eric Blake.
26227
26228 2010-05-01  Bruno Haible  <bruno@clisp.org>
26229
26230         freading: Adapt to special meaning of _IOREAD flag on Solaris.
26231         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
26232         the _IOWRT flag is also set.
26233
26234 2010-05-01  Bruno Haible  <bruno@clisp.org>
26235
26236         Fix doc about a HP-UX stdio bug.
26237         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
26238         * doc/posix-functions/ftello.texi: Likewise.
26239
26240 2010-05-01  Bruno Haible  <bruno@clisp.org>
26241
26242         lseek test: Fix failure on Solaris.
26243         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
26244         output.
26245
26246 2010-04-30  Jim Meyering  <meyering@redhat.com>
26247
26248         bootstrap: don't ignore failure to generate po*/Makevars
26249         * build-aux/bootstrap (with_gettext): Don't ignore failure
26250         to create po/Makevars or runtime-po/Makevars.
26251
26252 2010-04-29  Eric Blake  <eblake@redhat.com>
26253
26254         headers: relax license to LGPLv2+
26255         * modules/fcntl-h (License): Relax license.
26256         * modules/getopt-posix (License): Likewise.
26257         * modules/locale (License): Likewise.
26258         * modules/math (License): Likewise.
26259         * modules/pty (License): Likewise.
26260         * modules/sched (License): Likewise.
26261         * modules/search (License): Likewise.
26262         * modules/spawn (License): Likewise.
26263         * modules/stdarg (License): Likewise.
26264         * modules/sysexits (License): Likewise.
26265
26266 2010-04-29  Jim Meyering  <meyering@redhat.com>
26267
26268         inttypes: relax license to LGPLv2+
26269         * modules/inttypes (License): Relax license.
26270
26271 2010-04-29  Simon Josefsson  <simon@josefsson.org>
26272
26273         * top/maint.mk (indent): Run twice to produce idempotent results.
26274
26275 2010-04-28  Bruno Haible  <bruno@clisp.org>
26276
26277         getdate: Generate getdate.c in the source directory.
26278         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
26279         MOSTLYCLEANFILES.
26280         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
26281
26282 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
26283
26284         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
26285         is not declared as a const *; avoid warnings in that case.
26286
26287 2010-04-28  Eric Blake  <eblake@redhat.com>
26288
26289         canonicalize-lgpl: avoid compiler warning
26290         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
26291         declaration' / 'extraneous semicolon' warning with some compilers.
26292         Reported by Andreas Gruenbacher.
26293
26294 2010-04-28  Jim Meyering  <meyering@redhat.com>
26295
26296         init.sh: ensure a more reliable exit status when exiting via trap
26297         * tests/init.sh (setup_): Don't rely on $? in signal handler.
26298         Inspired by patches from Dmitry V. Levin.
26299         Also trap on signal 3 (SIGQUIT).
26300
26301 2010-04-27  Bruno Haible  <bruno@clisp.org>
26302
26303         Update doc about utimes().
26304         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
26305         'utimens' module.
26306         Reported by Andreas Gruenbacher <agruen@suse.de>.
26307
26308 2010-04-27  Eric Blake  <eblake@redhat.com>
26309
26310         full-read, full-write: relax license
26311         * modules/full-read (License): Drop to LGPLv2+.
26312         * modules/full-write (License): Likewise.
26313         * modules/safe-read (License): Likewise.
26314         * modules/safe-write (License): Likewise.
26315
26316         pthread: mention library for linking
26317         * modules/pthread (Link): Mention $(LIB_PTHREAD).
26318
26319 2010-04-27  Jim Meyering  <meyering@redhat.com>
26320
26321         maint.mk: fix a bug introduced in last change
26322         * top/maint.mk (gl_assured_headers_): Now that all names are on
26323         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
26324         is not anchored to end of word, it should be adequate.
26325
26326         maint.mk: avoid side-effect in latest syntax-check
26327         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
26328         to run commands via $(shell...), and hence to incur cost only when
26329         the new rule is actually run.
26330
26331         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
26332         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
26333         and use that to create a regexp used to detect all #if HAVE_..._H uses.
26334         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
26335         (gl_assured_headers_, az_, AZ_): Define.
26336         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
26337
26338 2010-04-26  Jim Meyering  <jim@meyering.net>
26339             Bruno Haible  <bruno@clisp.org>
26340
26341         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
26342         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
26343         Prompted by an exchange with Gilles Espinasse.
26344
26345 2010-04-26  Jim Meyering  <meyering@redhat.com>
26346
26347         git-version-gen: aesthetic tweak
26348         * build-aux/git-version-gen: Use "$nl" rather than a literal,
26349         so that the command remains on a single line.
26350
26351 2010-04-26  Eric Blake  <eblake@redhat.com>
26352
26353         git-version-gen: allow use on EBCDIC hosts
26354         * build-aux/git-version-gen (dirty): Use literal rather than tying
26355         ourselves to ascii.
26356         Reported by Steve Goetze.
26357
26358 2010-04-25  Bruno Haible  <bruno@clisp.org>
26359
26360         netdb: Add support for GNULIB_POSIXCHECK.
26361         * lib/netdb.in.h: Include warn-on-use.h.
26362         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
26363         functions are used when GNULIB_POSIXCHECK is defined and the
26364         getaddrinfo module is not in use.
26365         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
26366         freeaddrinfo, gai_strerror, getnameinfo are declared.
26367         * modules/netdb (Depends-on): Add warn-on-use.
26368         (Makefile.am): Include warn-on-use.h in netdb.h.
26369
26370 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
26371
26372         build: avoid "make check" failure without .git/ directory
26373         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
26374         there is no .git/ directory.
26375
26376 2010-04-25  Bruno Haible  <bruno@clisp.org>
26377
26378         ptsname: Fix misuse of ttyname_r.
26379         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
26380         of errno.
26381
26382 2010-04-25  Bruno Haible  <bruno@clisp.org>
26383
26384         ttyname_r: Make it work on Solaris 10.
26385         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
26386         if the system function has the POSIX declaration. Test whether the
26387         function fails if the buffer is less than 128 bytes large.
26388         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
26389         system's ttyname_r function. Provide a reasonably large buffer.
26390         * modules/ttyname_r (Depends-on): Add extensions.
26391         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
26392
26393 2010-04-25  Bruno Haible  <bruno@clisp.org>
26394
26395         Use the 'extensions' module for some more functions on Solaris.
26396         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
26397         module.
26398         * doc/posix-functions/ctime_r.texi: Likewise.
26399         * doc/posix-functions/getgrgid_r.texi: Likewise.
26400         * doc/posix-functions/getgrnam_r.texi: Likewise.
26401         * doc/posix-functions/getpwnam_r.texi: Likewise.
26402         * doc/posix-functions/getpwuid_r.texi: Likewise.
26403         * doc/posix-functions/readdir_r.texi: Likewise.
26404         * doc/posix-functions/sigwait.texi: Likewise.
26405         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
26406         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
26407
26408 2010-04-25  Bruno Haible  <bruno@clisp.org>
26409
26410         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
26411         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
26412         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
26413         * lib/ttyname_r.c: Include <limits.h>.
26414         (ttyname_r): Define using the system's ttyname_r function, if it exists
26415         and not on Solaris.
26416         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
26417         set.
26418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
26419         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
26420         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
26421         Reported by Simon Josefsson.
26422
26423 2010-04-25  Bruno Haible  <bruno@clisp.org>
26424
26425         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
26426         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
26427         * doc/posix-functions/ctime_r.texi: Likewise.
26428         * doc/posix-functions/getgrgid_r.texi: Likewise.
26429         * doc/posix-functions/getgrnam_r.texi: Likewise.
26430         * doc/posix-functions/getlogin_r.texi: Likewise.
26431         * doc/posix-functions/getpwnam_r.texi: Likewise.
26432         * doc/posix-functions/getpwuid_r.texi: Likewise.
26433         * doc/posix-functions/readdir_r.texi: Likewise.
26434         * doc/posix-functions/sigwait.texi: Likewise.
26435         * doc/posix-functions/ttyname_r.texi: Likewise.
26436         Reported by Simon Josefsson.
26437
26438 2010-04-25  Bruno Haible  <bruno@clisp.org>
26439
26440         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
26441         * gnulib-tool (func_usage): Document that --with-*-tests options apply
26442         also to --create-testdir.
26443         (func_acceptable): Don't consider the status of *-tests modules here.
26444         (func_modules_transitive_closure): Consider it here, before including a
26445         test module.
26446         (func_import, func_create_testdir): Set inc_all_direct_tests,
26447         inc_all_indirect_tests.
26448         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
26449         --create-testdir and --create-megatestdir.
26450
26451 2010-04-25  Bruno Haible  <bruno@clisp.org>
26452
26453         gnulib-tool: Add --without-*-tests options.
26454         * gnulib-tool (func_usage): Document the --without-*-tests options.
26455         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
26456         excl_unportable_tests): New variables.
26457         Fail if they are specified with --import or --update.
26458         (func_acceptable): Respect the excl_*_tests variables.
26459         (func_import): Set the excl_*_tests variables to empty.
26460
26461 2010-04-25  Simon Josefsson  <simon@josefsson.org>
26462             Bruno Haible  <bruno@clisp.org>
26463
26464         Work around a MacOS X 10.4 bug with openpty.
26465         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
26466         * tests/test-openpty.c (main): Close the master side explicitly.
26467
26468 2010-04-25  Bruno Haible  <bruno@clisp.org>
26469
26470         strnlen: Fix a C++ test error on MacOS X and Solaris.
26471         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
26472         the function is not declared.
26473         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
26474         Simon Josefsson.
26475
26476 2010-04-24  Bruno Haible  <bruno@clisp.org>
26477
26478         Avoid a gcc warning.
26479         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
26480         of correct type for %08lx directive.
26481         Reported by Eric Blake.
26482
26483 2010-04-24  Bruno Haible  <bruno@clisp.org>
26484
26485         vasnprintf: Correct errno value in case of out-of-memory.
26486         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
26487         or sprintf. Use the errno value from SNPRINTF or sprintf.
26488         Reported by Ian Beckwith <ianb@erislabs.net>.
26489
26490 2010-04-24  Bruno Haible  <bruno@clisp.org>
26491
26492         ansi-c++-opt: Find correct compiler when cross-compiling.
26493         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
26494         AC_CHECK_PROGS.
26495         Reported by Simon Josefsson.
26496
26497 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
26498
26499         vc-list-files: Add support for subversion
26500         * build-aux/vc-list-files: Use "svn list" to generate the list of
26501         files controlled by subversion.
26502
26503 2010-04-23  Jim Meyering  <meyering@redhat.com>
26504
26505         vc-list-files tests: convert to use init.sh
26506         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
26507         path_prepend_.
26508         Use Exit, not exit.
26509         Use skip_ rather than open coding it.
26510         Remove trap set-up and compare definitions.
26511         * tests/test-vc-list-files-git.sh: Likewise.
26512         * modules/vc-list-files-tests (Files): Add tests/init.sh.
26513
26514 2010-04-22  Simon Josefsson  <simon@josefsson.org>
26515
26516         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
26517         backup files.
26518
26519 2010-04-21  Simon Josefsson  <simon@josefsson.org>
26520
26521         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
26522
26523 2010-04-20  Eric Blake  <eblake@redhat.com>
26524
26525         tests: be robust to ignored SIGPIPE
26526         * tests/test-select-in.sh: Consume all output.
26527         * tests/test-lseek.sh: Check correct exit status, while avoiding
26528         EPIPE.
26529
26530 2010-04-20  Simon Josefsson  <simon@josefsson.org>
26531             Bruno Haible  <bruno@clisp.org>
26532
26533         visibility: Don't use -fvisibility if it leads to a warning.
26534         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
26535         yes, don't pretend that visibility works if it leads to a warning.
26536         Reported by Mike Gran <spk121@yahoo.com>.
26537
26538 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
26539
26540         * build-aux/bootstrap: Use "git -h" for testing for supported options
26541         instead of "git --help".  The short-form option only shows a summary,
26542         and doesn't layout the full man page.  Grep for the full option name
26543         in the summary, too.
26544
26545 2010-04-19  Bruno Haible  <bruno@clisp.org>
26546
26547         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
26548         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
26549         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
26550         mention of RELOCATABLE_STRIP.
26551         Reported by Sylvain Beucler <beuc@beuc.net>.
26552
26553 2010-04-19  Bruno Haible  <bruno@clisp.org>
26554
26555         * lib/diffseq.h: Fix typo in comment.
26556         Reported by Eric Blake.
26557
26558 2010-04-19  Bruno Haible  <bruno@clisp.org>
26559
26560         ioctl: Move autoconf macro to a .m4 file.
26561         * m4/ioctl.m4: New file, extracted from modules/ioctl.
26562         * modules/ioctl (Files): Add it.
26563         (configure.ac): Simply invoke gl_FUNC_IOCTL.
26564         Reported by Ian Beckwith <ianb@erislabs.net>.
26565
26566 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
26567             Bruno Haible  <bruno@clisp.org>
26568
26569         diffseq: Accommodate use-case with abstract arrays.
26570         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
26571         is not defined.
26572         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
26573         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
26574
26575 2010-04-18  Bruno Haible  <bruno@clisp.org>
26576
26577         * doc/posix-headers/stdbool.texi: More precise wording.
26578
26579 2010-04-17  Jim Meyering  <meyering@redhat.com>
26580
26581         maint.mk: use gnu-style indentation in an embedded perl script
26582         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
26583         Rename variable: s/two/last_two_bytes/
26584
26585 2010-04-16  Eric Blake  <eblake@redhat.com>
26586
26587         test-stdbool: skip test that fails with Solaris CC
26588         * tests/test-stdbool.c (f): Skip test that causes compilation
26589         error under buggy C++ compiler.
26590         * lib/stdbool.in.h: Document the limitation.
26591         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
26592
26593         setenv: allow compilation with C++
26594         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
26595         register keyword.
26596
26597         stdint: allow test to pass with C++
26598         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
26599
26600         getopt: allow compilation with C++
26601         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
26602         struct.
26603         * lib/getopt.c (_getopt_internal_r): Use correct type.
26604         Reported by Dagobert Michelson, via Joel E. Denny.
26605
26606 2010-04-16  Bruno Haible  <bruno@clisp.org>
26607
26608         Override netdb.h always.
26609         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
26610         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
26611         Reported by Ludovic Courtès <ludo@gnu.org>.
26612
26613 2010-04-15  Bruno Haible  <bruno@clisp.org>
26614
26615         openpty: Fix mistake from 2010-03-21.
26616         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
26617         Reported by Simon Josefsson.
26618
26619 2010-04-15  Eric Blake  <eblake@redhat.com>
26620
26621         test-forkpty: fix expected signature
26622         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
26623         Reported by Simon Josefsson.
26624
26625 2010-04-15  Jim Meyering  <meyering@redhat.com>
26626
26627         maint.mk: texinfo_suffix_re_: correct the default regexp
26628         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
26629
26630         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
26631         make it configurable via texinfo_suffix_re_.
26632
26633 2010-04-14  Eric Blake  <eblake@redhat.com>
26634
26635         strtok_r: relax license to LGPLv2+
26636         * modules/strtok_r (License): Relax license.
26637         Reported by Matthias Bolte.
26638
26639 2010-04-14  Simon Josefsson  <simon@josefsson.org>
26640
26641         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
26642         version 1.4.4 by default instead of requiring the libgcrypt
26643         version used during build.  This makes it possible to use the
26644         application with older but still binary compatible libgcrypt
26645         versions.
26646
26647 2010-04-13  Eric Blake  <eblake@redhat.com>
26648
26649         getopt-gnu: match recent glibc fixes and posix ruling
26650         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
26651         '+' handling, when requesting extensions.
26652         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
26653         'W;' handling.
26654         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
26655         * doc/posix-functions/getopt.texi (getopt): Document this.
26656         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26657         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26658         Likewise.
26659
26660         getopt: merge bug fixes from glibc
26661         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
26662         diagnostics.  Honor '+:' correctly.  Reject ';'.
26663
26664         getopt-posix: detect MacOS bug
26665         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
26666         optind when missing a required argument.
26667         * doc/posix-functions/getopt.texi (getopt): Document the bug.
26668         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26669         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26670         Likewise.
26671
26672         getopt-posix: avoid spurious failure on Solaris
26673         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
26674         an indicator that setting optind=1 is sufficient for reset.
26675
26676         getopt-posix: avoid spurious failure on FreeBSD
26677         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
26678         in POSIX mode, since the m4 test uses it.
26679
26680         gnulib-tool: silence warning on BSD sh
26681         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
26682
26683 2010-04-13  Jim Meyering  <meyering@redhat.com>
26684
26685         doc: users.txt: GNU patch now uses gnulib
26686         * users.txt: Add patch.
26687
26688 2010-04-12  Jim Meyering  <meyering@redhat.com>
26689
26690         maint.mk: generate more concise timing data for syntax-check rules
26691         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
26692         " done" from each line that reports a syntax-check test duration.
26693
26694 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
26695
26696         git-version-gen: use "git update-index..." rather than "git status"
26697         * build-aux/git-version-gen: Use git update-index --refresh, not
26698         "git status".  With some versions of git, "git status" would fail
26699         to update the index and result in an unwarranted "-dirty" suffix.
26700
26701 2010-04-11  Jim Meyering  <meyering@redhat.com>
26702
26703         openat: correct formatting (no semantic change)
26704         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
26705         Suggested by Bruno Haible.
26706
26707 2010-04-11  Bruno Haible  <bruno@clisp.org>
26708
26709         Stricter declaration checking in testdirs.
26710         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26711         If for_tests is true, augment AM_CPPFLAGS to define
26712         GNULIB_STRICT_CHECKING.
26713         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
26714         GNULIB_STRICT_CHECKING is defined, verify that the function is
26715         declared.
26716
26717 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
26718             Bruno Haible  <bruno@clisp.org>
26719
26720         libunistring: Improve configure output.
26721         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
26722         Don't say "consider installing GNU libunistring" when checking again
26723         with libiconv.
26724
26725 2010-04-11  Bruno Haible  <bruno@clisp.org>
26726
26727         libunistring: Correct value of $LTLIBUNISTRING.
26728         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
26729         correct the value of $LTLIBUNISTRING.
26730
26731 2010-04-11  Bruno Haible  <bruno@clisp.org>
26732
26733         havelib: Add static libraries to LIBS in the right order.
26734         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
26735         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
26736
26737 2010-04-11  Bruno Haible  <bruno@clisp.org>
26738
26739         libunistring: Detect libunistring also when it depends on libiconv.
26740         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
26741         the second AC_LIB_HAVE_LINKFLAGS invocation.
26742
26743 2010-04-11  James Youngman  <jay@gnu.org>
26744
26745         close-stream: declare local scalars to be "const"
26746         * lib/close-stream.c (close_stream): Make boolean variables const
26747         to document the fact that we set but do not change them.
26748
26749 2010-04-11  Bruno Haible  <bruno@clisp.org>
26750
26751         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
26752
26753 2010-04-11  Jim Meyering  <meyering@redhat.com>
26754
26755         maint.mk: don't include dist-check.mk
26756         * top/maint.mk: Remove bogus include directive.
26757
26758         maint.mk: improve empty-line-at-EOF check
26759         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
26760         solution, rather than tail+Perl-based one.  The latter would read
26761         a few kilobytes from the end of each file, and did not handle empty
26762         files properly.
26763
26764         maint.mk: print the elapsed time for each syntax-check rule
26765         * top/maint.mk (sc_m_rules_): Save start time in a file.
26766         (sc_z_rules_): New rules: remove temp file and print elapsed time.
26767         (local-check): Interpose the .z rules
26768
26769 2010-04-11  Jim Meyering  <meyering@redhat.com>
26770
26771         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
26772         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
26773         empty file with one that ends in an empty line.
26774
26775 2010-04-10  Bruno Haible  <bruno@clisp.org>
26776
26777         mkdir: Make it work on mingw64.
26778         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
26779         * lib/mkdir.c: Update comment.
26780         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
26781
26782 2010-04-10  Bruno Haible  <bruno@clisp.org>
26783
26784         Don't override improved macro from newer autoconf.
26785         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
26786         autoconf >= 2.62.
26787         Reported by Joel E. Denny <jdenny@clemson.edu>.
26788
26789 2010-04-10  Jim Meyering  <meyering@redhat.com>
26790
26791         maint.mk: new syntax-check rule: prohibit empty lines at end of file
26792         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
26793
26794         maint.mk: correct a diagnostic
26795         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
26796         in diagnostic; now use $prohibit.
26797
26798 2010-04-10  Bruno Haible  <address@hidden>
26799
26800         fchownat: Fix a C++ test error on Solaris 8.
26801         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
26802         the function does not exist.
26803
26804 2010-04-10  Bruno Haible  <bruno@clisp.org>
26805
26806         vasnprintf: Add more tests.
26807         * tests/test-vasnprintf-posix.c: Include <errno.h>.
26808         (test_function): Test converting an invalid wide string.
26809
26810         vasnprintf: Correct handling of unconvertible wide string arguments.
26811         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
26812         VASNPRINTF.
26813         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
26814         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
26815         smaller than the expected maximum need for the directive. Set errno to
26816         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
26817         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
26818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
26819         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
26820         * modules/vasnprintf (Files): Add m4/printf.m4.
26821         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26822
26823 2010-04-10  Bruno Haible  <bruno@clisp.org>
26824
26825         vasnprintf: Fix crash in %ls directive.
26826         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
26827         string is passed as argument to %ls, with no precision and no width.
26828         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26829
26830 2010-04-10  Bruno Haible  <bruno@clisp.org>
26831
26832         vasnprintf: Fix multiple test failures on mingw.
26833         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
26834         _snprintf, or snwprintf, not _snwprintf.
26835
26836 2010-04-10  Bruno Haible  <bruno@clisp.org>
26837
26838         write: Fix a C++ test error on mingw.
26839         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
26840
26841 2010-04-10  Bruno Haible  <bruno@clisp.org>
26842
26843         vasnprintf test: Reduce code duplication.
26844         * tests/test-vasnprintf.c (test_function): New function, extracted from
26845         test_vasnprintf.
26846         (test_vasnprintf, test_asnprintf): Invoke it.
26847
26848 2010-04-10  Bruno Haible  <bruno@clisp.org>
26849
26850         strnlen: Fix warning in C++ mode on MacOS X.
26851         * lib/string.in.h (strnlen): Use the modern idiom.
26852         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
26853         defining strnlen as a macro already in <config.h>.
26854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26855         REPLACE_STRNLEN.
26856         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
26857         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26858
26859 2010-04-08  James Youngman  <jay@gnu.org>
26860
26861         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
26862         the example.
26863
26864 2010-04-09  Jim Meyering  <meyering@redhat.com>
26865
26866         maint.mk: print better diagnostic when there is no $(_hv_file)
26867         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
26868         announce that when $(_hv_file) (aka help-version) does not exist.
26869
26870         init.sh: run tr in the "C" locale to avoid multibyte interpretation
26871         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
26872         not try to interpret its random input bytes.  Jarno Rajahalme reported
26873         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
26874         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
26875         (mktempd_): Likewise, just in case.
26876
26877         ftruncate: add two years to projected module removal date: 2012
26878         * m4/ftruncate.m4: Adjust comments.
26879
26880         ftruncate: mark module as obsolete; even MinGW provides it, now
26881         * modules/ftruncate (Status): Obsolete.
26882         (Notice): Say that.
26883         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
26884         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
26885
26886 2010-04-08  Bruno Haible  <bruno@clisp.org>
26887
26888         Fix side effects from tests-related modules.
26889         * modules/dprintf-posix (Comment): New section.
26890         * modules/fprintf-posix (Comment): Likewise.
26891         * modules/obstack-printf-posix (Comment): Likewise.
26892         * modules/printf-posix (Comment): Likewise.
26893         * modules/snprintf-posix (Comment): Likewise.
26894         * modules/sprintf-posix (Comment): Likewise.
26895         * modules/vasnprintf-posix (Comment): Likewise.
26896         * modules/vasprintf-posix (Comment): Likewise.
26897         * modules/vdprintf-posix (Comment): Likewise.
26898         * modules/vfprintf-posix (Comment): Likewise.
26899         * modules/vprintf-posix (Comment): Likewise.
26900         * modules/vsnprintf-posix (Comment): Likewise.
26901         * modules/vsprintf-posix (Comment): Likewise.
26902         * modules/xprintf-posix (Comment): Likewise.
26903         * modules/xvasprintf-posix (Comment): Likewise.
26904         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
26905         * modules/floorf-tests (Depends-on): Likewise.
26906         * modules/round-tests (Depends-on): Likewise.
26907         * modules/roundf-tests (Depends-on): Likewise.
26908         * modules/trunc-tests (Depends-on): Likewise.
26909         * modules/truncf-tests (Depends-on): Likewise.
26910         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
26911         'fprintf-posix' module is not present.
26912         * tests/test-floorf2.c (check): Likewise.
26913         * tests/test-trunc2.c (check): Likewise.
26914         * tests/test-truncf2.c (check): Likewise.
26915         * tests/test-round2.c (equal): Likewise.
26916         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26917
26918 2010-04-07  Karl Berry  <karl@gnu.org>
26919
26920         * config/srclist.txt,
26921         * config/srclistvars.sh,
26922         * config/srclist-update: doc fixes.
26923
26924 2010-04-07  Jim Meyering  <meyering@redhat.com>
26925
26926         maint.mk: add a PATH crosschecking syntax-check rule
26927         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
26928         Useful if you use a test like the one in help-version (coreutils,
26929         diffutils, grep, gzip) that ensures $(VERSION) matches what is
26930         printed by prog --version.
26931
26932 2010-04-06  Bruno Haible  <bruno@clisp.org>
26933
26934         Fix link error on mingw.
26935         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
26936         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
26937
26938 2010-04-06  Bruno Haible  <bruno@clisp.org>
26939
26940         Assume rmdir exists.
26941         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
26942
26943 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
26944
26945         doc: update users.txt
26946         * users.txt: Add gcal.
26947
26948 2010-04-06  Jim Meyering  <meyering@redhat.com>
26949
26950         init.sh: simply unset TMPDIR rather than risking env -i
26951         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
26952         although it probably works fine on all Unix-based systems, some
26953         systems (Cygwin?) cannot tolerate a totally cleared environment.
26954         Suggestion from Eric Blake.
26955
26956 2010-04-06  Jim Meyering  <meyering@redhat.com>
26957
26958         init.sh: portability fix: use env's POSIX-specified -i option not -u
26959         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
26960         than unportable env -u.  Solaris 5.11's env lacks support for -u.
26961
26962 2010-04-05  Bruno Haible  <bruno@clisp.org>
26963
26964         btowc: Work around Cygwin 1.7.2 bug.
26965         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
26966         does not map NUL to 0.
26967         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
26968
26969 2010-04-05  Bruno Haible  <bruno@clisp.org>
26970
26971         Make the multithread modules work on Cygwin 1.7.2.
26972         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
26973         imported symbols can be declared weak, so that it returns "no" on
26974         Cygwin 1.7.2.
26975
26976 2010-04-05  Bruno Haible  <bruno@clisp.org>
26977
26978         Use the module 'strncat'.
26979         * modules/unistr/u8-strncat (Depends-on): Add strncat.
26980
26981         Tests for module 'strncat'.
26982         * modules/strncat-tests: New file.
26983         * tests/test-strncat.c: New file.
26984
26985         New module 'strncat'.
26986         * lib/string.in.h (strncat): New declaration.
26987         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
26988         * m4/strncat.m4: New file, based on m4/memchr.m4.
26989         * modules/strncat: New file.
26990         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
26991         is declared.
26992         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
26993         REPLACE_STRNCAT.
26994         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
26995         REPLACE_STRNCAT.
26996         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
26997         module.
26998         * tests/test-string-c++.cc: Check signature of strncat.
26999
27000 2010-04-05  Jim Meyering  <meyering@redhat.com>
27001
27002         xstrtoumax-tests: convert to use init.sh
27003         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
27004         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27005         Use Exit, not exit.
27006         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27007
27008         xstrtoimax-tests: convert to use init.sh
27009         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
27010         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27011         Use Exit, not exit.
27012         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27013
27014 2010-04-05  Bruno Haible  <bruno@clisp.org>
27015
27016         sys_socket: Avoid #define replacements in C++ mode.
27017         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
27018         warning to the function if possible, rather than #defining the symbol
27019         to a dysfunctional alias.
27020
27021 2010-04-05  Bruno Haible  <bruno@clisp.org>
27022
27023         fseeko: Fix C++ test error on mingw.
27024         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
27025         gl_FUNC_FSEEKO.
27026         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
27027         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
27028         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
27029         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
27030
27031 2010-04-05  Bruno Haible  <bruno@clisp.org>
27032
27033         duplocale: Improve test output.
27034         * tests/test-duplocale.c (main): Print reason for skipped test.
27035
27036 2010-04-05  Bruno Haible  <bruno@clisp.org>
27037
27038         Assume rmdir exists.
27039         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
27040         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
27041
27042 2010-04-05  Bruno Haible  <bruno@clisp.org>
27043
27044         Fix link error on Solaris 8 with cc.
27045         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
27046
27047 2010-04-05  Bruno Haible  <bruno@clisp.org>
27048
27049         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27050         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
27051
27052 2010-04-05  Bruno Haible  <bruno@clisp.org>
27053
27054         vasprintf: Update documentation.
27055         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
27056
27057 2010-04-05  Bruno Haible  <bruno@clisp.org>
27058
27059         ptsname: Improve test.
27060         * tests/test-ptsname.c (main): Also try the various master names of BSD
27061         systems.
27062
27063 2010-04-05  Bruno Haible  <bruno@clisp.org>
27064
27065         memchr: Avoid a possible C++ test error.
27066         * lib/string.in.h (memchr): Provide declaration if function is missing.
27067         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
27068         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
27069         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
27070         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
27071
27072 2010-04-05  Bruno Haible  <bruno@clisp.org>
27073
27074         strtok_r: Improve idiom.
27075         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
27076         AC_LIBOBJ is used.
27077
27078 2010-04-05  Bruno Haible  <bruno@clisp.org>
27079
27080         strdup: Improve idiom.
27081         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
27082         AC_LIBOBJ is used.
27083         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
27084         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
27085         when AC_LIBOBJ is used.
27086
27087 2010-04-05  Bruno Haible  <bruno@clisp.org>
27088
27089         mbsinit, mbrtowc, wcrtomb: Improve idioms.
27090         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
27091         don't set REPLACE_MBSINIT to 1.
27092         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
27093         don't set REPLACE_MBRTOWC to 1.
27094         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
27095         exist, don't set REPLACE_MBSRTOWCS to 1.
27096         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
27097         exist, don't set REPLACE_MBSNRTOWCS to 1.
27098         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
27099         don't set REPLACE_WCRTOMB to 1.
27100         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
27101         exist, don't set REPLACE_WCSRTOMBS to 1.
27102         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
27103         exist, don't set REPLACE_WCSNRTOMBS to 1.
27104
27105 2010-04-05  Bruno Haible  <bruno@clisp.org>
27106
27107         ldexpl: Improve idiom.
27108         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
27109         make sure to set HAVE_DECL_LDEXPL to 0.
27110
27111 2010-04-05  Jim Meyering  <meyering@redhat.com>
27112
27113         xstrtol-tests: convert to use init.sh
27114         * modules/xstrtol-tests (Files): Add tests/init.sh.
27115         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27116         Use Exit, not exit.
27117         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27118
27119         atexit-tests: convert to use init.sh
27120         * modules/atexit-tests (Files): Add tests/init.sh.
27121         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27122         Use Exit, not exit.
27123         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27124
27125         init.sh: fix typo
27126         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
27127
27128         init.sh: make it easier for a test script to write to the tty, ...
27129         when using automake's parallel-tests mode.
27130         * tests/init.sh (stderr_fileno_): Define overridable variable.
27131         (warn_): New function, to use it.
27132         (fail_, skip_, framework_failure_): Use warn_.
27133
27134 2010-04-04  Bruno Haible  <bruno@clisp.org>
27135
27136         btowc: Avoid warning.
27137         * lib/btowc.c: Include <stdlib.h>.
27138         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
27139
27140 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27141             Bruno Haible  <bruno@clisp.org>
27142
27143         wchar: Port to NetBSD 1.5.
27144         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
27145         * lib/wctype.in.h (WEOF): Likewise.
27146
27147 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27148             Bruno Haible  <bruno@clisp.org>
27149
27150         Port extended stdio to NetBSD 1.5.
27151         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
27152         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
27153         older.
27154
27155 2010-04-04  Bruno Haible  <bruno@clisp.org>
27156
27157         string: Remove unused substitution.
27158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27159         HAVE_DECL_STRERROR.
27160         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
27161
27162 2010-04-04  Bruno Haible  <bruno@clisp.org>
27163
27164         strtod: Avoid a possible C++ test error.
27165         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
27166         set REPLACE_STRTOD.
27167
27168 2010-04-04  Bruno Haible  <bruno@clisp.org>
27169
27170         strerror: Update documentation.
27171         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
27172
27173 2010-04-04  Bruno Haible  <bruno@clisp.org>
27174
27175         stdio: Fix some C++ test errors on Solaris 8 with GCC.
27176         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
27177         _GL_CXXALIAS_SYS_CAST.
27178
27179 2010-04-04  Bruno Haible  <bruno@clisp.org>
27180
27181         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27182         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
27183         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
27184         REPLACE_FREXPL to 1.
27185         * doc/posix-functions/frexpl.texi: Update documentation.
27186
27187 2010-04-04  Bruno Haible  <bruno@clisp.org>
27188
27189         math: Fix some C++ test errors on Solaris 8 and Cygwin.
27190         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
27191
27192 2010-04-04  Bruno Haible  <bruno@clisp.org>
27193
27194         Implement nanosleep for native Windows.
27195         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
27196
27197 2010-04-04  Bruno Haible  <bruno@clisp.org>
27198
27199         math: Fix some C++ test errors on Solaris 8.
27200         * lib/math.in.h (truncf, trunc): Use simpler idiom.
27201
27202 2010-04-04  Bruno Haible  <bruno@clisp.org>
27203
27204         math: Fix some C++ test errors on Cygwin.
27205         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
27206         truncl): Provide declaration if the system does not have it.
27207         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
27208         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
27209         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
27210         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
27211         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
27212         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
27213         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
27214         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
27215         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
27216         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
27217         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
27218         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
27219         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
27220         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
27221         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
27222         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
27223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
27224         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27225         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27226         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
27227         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27228         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27229
27230 2010-04-04  Bruno Haible  <bruno@clisp.org>
27231
27232         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
27233         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
27234         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
27235         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27236         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27237         * m4/isinf.m4 (gl_ISINF): Likewise.
27238         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27239
27240 2010-04-04  Bruno Haible  <bruno@clisp.org>
27241
27242         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
27243         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27244
27245 2010-04-04  Bruno Haible  <bruno@clisp.org>
27246
27247         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
27248         * modules/tmpfile (configure.ac): Update.
27249
27250         tmpfile: Fix C++ test error on mingw.
27251         * lib/stdio.in.h (tmpfile): New declaration.
27252         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
27253         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
27254         * modules/tmpfile (Depends-on): Add stdio.
27255         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27256         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
27257         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
27258         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
27259         REPLACE_TMPFILE.
27260         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
27261
27262 2010-04-04  Bruno Haible  <bruno@clisp.org>
27263
27264         ioctl: Fix C++ test error on mingw.
27265         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
27266         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
27267         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
27268
27269 2010-04-03  Bruno Haible  <bruno@clisp.org>
27270
27271         wcwidth: Fix C++ test error on mingw.
27272         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
27273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
27274         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
27275
27276 2010-04-03  Bruno Haible  <bruno@clisp.org>
27277
27278         nanosleep: Fix C++ test error on mingw.
27279         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
27280         * lib/time.in.h (nanosleep): Use modern idiom.
27281         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
27282         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
27283         REPLACE_NANOSLEEP to 1.
27284         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
27285         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
27286
27287 2010-04-03  Bruno Haible  <bruno@clisp.org>
27288
27289         strptime: Fix C++ test error on mingw.
27290         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
27291         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
27292         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
27293         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
27294         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
27295         not REPLACE_STRPTIME.
27296         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
27297         REPLACE_STRPTIME.
27298
27299 2010-04-03  Bruno Haible  <bruno@clisp.org>
27300
27301         timegm: Fix C++ test error on mingw.
27302         * lib/time.in.h (timegm): Use modern idiom.
27303         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
27304         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
27305         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
27306         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
27307
27308 2010-04-03  Bruno Haible  <bruno@clisp.org>
27309
27310         timegm: Assume declaration if function exists.
27311         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
27312         if it exists. Don't clobber ac_cv_func_timegm.
27313
27314 2010-04-03  Bruno Haible  <bruno@clisp.org>
27315
27316         time_r: Fix C++ test error on mingw.
27317         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
27318         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
27319         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
27320         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
27321         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
27322
27323 2010-04-03  Bruno Haible  <bruno@clisp.org>
27324
27325         time_r: Minor updates.
27326         * modules/time_r (Description): Mention the provided functions.
27327         * lib/time_r.c: Don't include <string.h>.
27328         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
27329         * doc/posix-functions/localtime_r.texi: Likewise.
27330
27331 2010-04-03  Bruno Haible  <bruno@clisp.org>
27332
27333         time: Fix regression introduced on 2010-03-08.
27334         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
27335         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
27336
27337 2010-04-03  Jim Meyering  <meyering@redhat.com>
27338
27339         maint.mk: don't silently disable project-specific syntax-check rules
27340         * top/maint.mk (_prohibit_regexp): Define, to help people realize
27341         that they need to convert their project-specific syntax-check rules
27342         to use the new _sc_search_regexp.
27343
27344 2010-04-03  Bruno Haible  <bruno@clisp.org>
27345
27346         fchdir: Fix regression introduced on 2010-03-08.
27347         * lib/unistd.in.h (fchdir): Fix declaration.
27348         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
27349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
27350         REPLACE_FCHDIR.
27351         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
27352         REPLACE_FCHDIR.
27353
27354 2010-04-03  Bruno Haible  <bruno@clisp.org>
27355
27356         getpagesize: Fix C++ test error on mingw.
27357         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
27358         system does not declare the function.
27359         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
27360         declared.
27361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27362         HAVE_DECL_GETPAGESIZE.
27363         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
27364
27365 2010-04-03  Bruno Haible  <bruno@clisp.org>
27366
27367         stdio: Make C++ tests work on mingw.
27368         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
27369         does not declare the function.
27370
27371 2010-04-03  Bruno Haible  <bruno@clisp.org>
27372
27373         ftello: Fix C++ test error on mingw.
27374         * lib/stdio.in.h (ftello): Use modern idiom.
27375         * lib/ftello.c (ftello): Renamed from rpl_ftello.
27376         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
27377         is missing and that it needs to be replaced.
27378         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
27379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
27380         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
27381
27382 2010-04-03  Bruno Haible  <bruno@clisp.org>
27383
27384         fseeko: Fix C++ test error on mingw.
27385         * lib/stdio.in.h (fseeko): Use modern idiom.
27386         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
27387         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
27388         is missing and that it needs to be replaced.
27389         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
27390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
27391         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
27392
27393 2010-04-03  Bruno Haible  <bruno@clisp.org>
27394
27395         mkstemp: Fix C++ test error on mingw.
27396         * lib/stdlib.in.h (mkstemp): Use modern idiom.
27397         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
27398         function is missing and that it needs to be replaced.
27399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
27400         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
27401
27402 2010-04-03  Bruno Haible  <bruno@clisp.org>
27403
27404         stpncpy: Fix C++ test error on mingw.
27405         * lib/string.in.h (stpncpy): Use modern idiom.
27406         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
27407         function is missing and that it needs to be replaced.
27408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27409         REPLACE_STPNCPY.
27410         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
27411
27412 2010-04-03  Bruno Haible  <bruno@clisp.org>
27413
27414         sys_stat: Fix C++ test error on mingw.
27415         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
27416         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
27417
27418 2010-04-03  Bruno Haible  <bruno@clisp.org>
27419
27420         pty: Update doc.
27421         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
27422
27423 2010-04-03  Bruno Haible  <bruno@clisp.org>
27424
27425         unistd: Fix C++ test error on mingw.
27426         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
27427
27428 2010-04-03  Bruno Haible  <bruno@clisp.org>
27429
27430         Update doc regarding mingw.
27431         * doc/glibc-functions/openpty.texi: Update regarding mingw.
27432         * doc/glibc-functions/login_tty.texi: Likewise.
27433         * doc/glibc-functions/forkpty.texi: Likewise.
27434
27435 2010-04-03  Bruno Haible  <bruno@clisp.org>
27436
27437         stdlib: Avoid compilation failure of c-strtold on mingw.
27438         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
27439
27440 2010-04-03  Bruno Haible  <bruno@clisp.org>
27441
27442         locale: Make C++ tests work on Cygwin and mingw.
27443         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
27444         cannot provide the function.
27445         Reported by Simon Josefsson.
27446
27447 2010-04-03  Bruno Haible  <bruno@clisp.org>
27448
27449         localename: Port to MacOS X 10.6.
27450         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
27451         memory layout of the locales in MacOS X 10.6 as well.
27452         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
27453
27454 2010-04-02  Bruno Haible  <bruno@clisp.org>
27455
27456         gnulib-tool: Ensure that long-running tests are executed last.
27457         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
27458         running tests after the one for the other tests.
27459
27460 2010-04-02  Bruno Haible  <bruno@clisp.org>
27461
27462         gnulib-tool: Ensure the tests in the main directory are executed first.
27463         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
27464         start with the current directory.
27465
27466 2010-04-02  Bruno Haible  <bruno@clisp.org>
27467
27468         Tests for module 'havelib', moved here from GNU gettext.
27469         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
27470         modifications.
27471         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
27472         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
27473         with modifications.
27474         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
27475         modifications.
27476         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
27477         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
27478         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
27479         with modifications.
27480         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
27481         with modifications.
27482         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
27483         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
27484         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
27485         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
27486         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
27487         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
27488         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
27489         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
27490         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
27491         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
27492         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
27493         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
27494         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
27495         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
27496         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
27497         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
27498         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
27499         with modifications.
27500         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
27501         with modifications.
27502         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
27503         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
27504         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
27505         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
27506         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
27507         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
27508         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
27509         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
27510         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
27511         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
27512         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
27513         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
27514         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
27515         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
27516         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
27517         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
27518         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
27519         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
27520         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
27521         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
27522         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
27523         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
27524         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
27525         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
27526         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
27527         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
27528         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
27529         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
27530         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
27531         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
27532         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
27533         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
27534         * tests/havelib/rpathx/rpathx.c: New file, from
27535         gettext/autoconf-lib-link.
27536         * tests/havelib/rpathx/Makefile.am: New file, from
27537         gettext/autoconf-lib-link.
27538         * tests/havelib/rpathx/configure.ac: New file, from
27539         gettext/autoconf-lib-link with modifications.
27540         * tests/havelib/rpathy/rpathy.c: New file, from
27541         gettext/autoconf-lib-link.
27542         * tests/havelib/rpathy/Makefile.am: New file, from
27543         gettext/autoconf-lib-link.
27544         * tests/havelib/rpathy/configure.ac: New file, from
27545         gettext/autoconf-lib-link with modifications.
27546         * tests/havelib/rpathz/rpathz.c: New file, from
27547         gettext/autoconf-lib-link.
27548         * tests/havelib/rpathz/Makefile.am: New file, from
27549         gettext/autoconf-lib-link.
27550         * tests/havelib/rpathz/configure.ac: New file, from
27551         gettext/autoconf-lib-link with modifications.
27552         * tests/havelib/rpathlx/usex.c: New file, from
27553         gettext/autoconf-lib-link.
27554         * tests/havelib/rpathlx/Makefile.am: New file, from
27555         gettext/autoconf-lib-link.
27556         * tests/havelib/rpathlx/configure.ac: New file, from
27557         gettext/autoconf-lib-link with modifications.
27558         * tests/havelib/rpathly/usey.c: New file, from
27559         gettext/autoconf-lib-link.
27560         * tests/havelib/rpathly/Makefile.am: New file, from
27561         gettext/autoconf-lib-link.
27562         * tests/havelib/rpathly/configure.ac: New file, from
27563         gettext/autoconf-lib-link with modifications.
27564         * tests/havelib/rpathlz/usez.c: New file, from
27565         gettext/autoconf-lib-link.
27566         * tests/havelib/rpathlz/Makefile.am: New file, from
27567         gettext/autoconf-lib-link.
27568         * tests/havelib/rpathlz/configure.ac: New file, from
27569         gettext/autoconf-lib-link with modifications.
27570         * tests/havelib/rpathlyx/usey.c: New file, from
27571         gettext/autoconf-lib-link.
27572         * tests/havelib/rpathlyx/Makefile.am: New file, from
27573         gettext/autoconf-lib-link.
27574         * tests/havelib/rpathlyx/configure.ac: New file, from
27575         gettext/autoconf-lib-link with modifications.
27576         * tests/havelib/rpathlzyx/usez.c: New file, from
27577         gettext/autoconf-lib-link.
27578         * tests/havelib/rpathlzyx/Makefile.am: New file, from
27579         gettext/autoconf-lib-link.
27580         * tests/havelib/rpathlzyx/configure.ac: New file, from
27581         gettext/autoconf-lib-link with modifications.
27582         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
27583         with modifications.
27584
27585 2010-04-02  Bruno Haible  <bruno@clisp.org>
27586
27587         gnulib-tool: Create distributed built sources also for the tests.
27588         * gnulib-tool (func_create_testdir): Also generate distributed built
27589         sources in the tests directory.
27590
27591 2010-04-02  Bruno Haible  <bruno@clisp.org>
27592
27593         gnulib-tool: Obey user's environment variables.
27594         * gnulib-tool (func_create_testdir): When creating built sources,
27595         respect the environment variables for autoconf, automake, etc. given by
27596         the user.
27597
27598 2010-04-02  Bruno Haible  <bruno@clisp.org>
27599
27600         gnulib-tool: Provide the value of --m4-base to modules.
27601         * gnulib-tool (func_import, func_create_testdir): Emit a definition
27602         of gl_m4_base.
27603
27604 2010-04-02  Eric Blake  <eblake@redhat.com>
27605
27606         maint.mk: fix some fallout
27607         * NEWS: Document the incompatible change, and its effect on cfg.mk.
27608         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
27609
27610 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27611
27612         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
27613         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
27614         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
27615         (sc_cast_of_x_alloc_return_value): Likewise.
27616         (sc_cast_of_alloca_return_value): Likewise.
27617         (sc_space_tab): Likewise.
27618         (sc_prohibit_atoi_atof): Likewise.
27619         (sc_prohibit_magic_number_exit): Likewise.
27620         (sc_error_exit_success): Likewise.
27621         (sc_file_system): Likewise.
27622         (sc_prohibit_have_config_h): Likewise.
27623         (sc_require_config_h): Likewise.
27624         (sc_prohibit_HAVE_MBRTOWC): Likewise.
27625         (sc_obsolete_symbols): Likewise.
27626         (sc_changelog): Likewise.
27627         (sc_program_name): Likewise.
27628         (sc_the_the): Likewise.
27629         (sc_trailing_blank): Likewise.
27630         (sc_two_space_separator_in_usage): Likewise.
27631         (sc_useless_cpp_parens): Likewise.
27632         (sc_GPL_version): Likewise.
27633         (sc_GFDL_version): Likewise.
27634         (sc_texinfo_acronym): Likewise.
27635         (sc_prohibit_cvs_keyword): Likewise.
27636         (sc_prohibit_stat_st_blocks): Likewise.
27637         (sc_prohibit_S_IS_definition): Likewise.
27638         (sc_redundant_const): Likewise.
27639         (sc_makefile_TAB_only_indentation): Likewise.
27640         (sc_m4_quote_check): Likewise.
27641         (sc_makefile_path_separator_check): Likewise.
27642         (sc_copyright_check): Likewise.
27643         (sc_Wundef_boolean): Likewise.
27644         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27645
27646         maint.mk: match 0 or more whitespace-before-function-call '('
27647         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
27648         that have zero or two-and-more spaces between the function name
27649         and the open parenthesis.
27650         (sc_error_message_warn_fatal): Likewise.
27651         (sc_error_message_uppercase): Likewise.
27652         (sc_error_message_period): Likewise.
27653
27654 2010-03-31  Eric Blake  <eblake@redhat.com>
27655
27656         maint.mk: check for [ as well as test
27657         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
27658         Based on a libvirt report by Matthias Bolte.
27659
27660         gnumakefile: don't squelch _version output
27661         * top/GNUmakefile (_version): Create one-shot dependency rather
27662         than using $(shell) when version must be regenerated.
27663         (_autoreconf): Run verbosely, by default.
27664
27665         sys_time: avoid compiler warnings
27666         * lib/sys_time.in.h (includes): Ensure gcc pragma is
27667         unconditional, fixing regression from 2010-03-29.
27668         Reported by Simon Josefsson.
27669
27670 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27671
27672         maint.mk: s/_header_without_use/_sc_header_without_use/
27673         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
27674         (sc_prohibit_assert_without_use): Use the new name.
27675         (sc_prohibit_close_stream_without_use): Likewise.
27676         (sc_prohibit_getopt_without_use): Likewise.
27677         (sc_prohibit_quotearg_without_use): Likewise.
27678         (sc_prohibit_quote_without_use): Likewise.
27679         (sc_prohibit_long_options_without_use): Likewise.
27680         (sc_prohibit_inttostr_without_use): Likewise.
27681         (sc_prohibit_ignore_value_without_use): Likewise.
27682         (sc_prohibit_error_without_use): Likewise.
27683         (sc_prohibit_xalloc_without_use): Likewise.
27684         (sc_prohibit_hash_without_use): Likewise.
27685         (sc_prohibit_hash_pjw_without_use): Likewise.
27686         (sc_prohibit_safe_read_without_use): Likewise.
27687         (sc_prohibit_argmatch_without_use): Likewise.
27688         (sc_prohibit_canonicalize_without_use): Likewise.
27689         (sc_prohibit_root_dev_ino_without_use): Likewise.
27690         (sc_prohibit_openat_without_use): Likewise.
27691         (sc_prohibit_c_ctype_without_use): Likewise.
27692         (sc_prohibit_signal_without_use): Likewise.
27693         (sc_prohibit_intprops_without_use): Likewise.
27694
27695 2010-03-30  Eric Blake  <eblake@redhat.com>
27696
27697         maint: improve module indicators
27698         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
27699         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
27700         columns, and avoid extra macro expansion.
27701
27702         fdopendir: work around FreeBSD bug
27703         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27704         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
27705         * modules/dirent (Makefile.am): Substitute it.
27706         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
27707         declaration.
27708         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
27709         fix.
27710         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27711
27712 2010-03-29  Bruno Haible  <bruno@clisp.org>
27713
27714         Emit #pragma system_header after the inclusion guard, not before.
27715         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
27716         guard that spans the entire file, not before. This enables an
27717         optimization in GCC's preprocessor.
27718         * lib/ctype.in.h: Likewise.
27719         * lib/dirent.in.h: Likewise.
27720         * lib/errno.in.h: Likewise.
27721         * lib/float.in.h: Likewise.
27722         * lib/getopt.in.h: Likewise.
27723         * lib/iconv.in.h: Likewise.
27724         * lib/langinfo.in.h: Likewise.
27725         * lib/locale.in.h: Likewise.
27726         * lib/math.in.h: Likewise.
27727         * lib/netdb.in.h: Likewise.
27728         * lib/netinet_in.in.h: Likewise.
27729         * lib/pty.in.h: Likewise.
27730         * lib/sched.in.h: Likewise.
27731         * lib/se-selinux.in.h: Likewise.
27732         * lib/search.in.h: Likewise.
27733         * lib/spawn.in.h: Likewise.
27734         * lib/stdarg.in.h: Likewise.
27735         * lib/stdint.in.h: Likewise.
27736         * lib/string.in.h: Likewise.
27737         * lib/strings.in.h: Likewise.
27738         * lib/sys_file.in.h: Likewise.
27739         * lib/sys_ioctl.in.h: Likewise.
27740         * lib/sys_time.in.h: Likewise.
27741         * lib/sys_times.in.h: Likewise.
27742         * lib/sys_utsname.in.h: Likewise.
27743         * lib/sys_wait.in.h: Likewise.
27744         * lib/sysexits.in.h: Likewise.
27745         * lib/wctype.in.h: Likewise.
27746
27747 2010-03-28  James Youngman  <jay@gnu.org>
27748
27749         save-cwd: don't leak a file descriptor when the caller execs.
27750         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
27751         saved file descriptor.
27752         * modules/save-cwd (Depends-on): Depend on cloexec.
27753
27754 2010-03-29  Bruno Haible  <bruno@clisp.org>
27755
27756         Remove vestiges of fts-lgpl module.
27757         * lib/fts_.h: Assume GNULIB_FTS is 1.
27758         * lib/fts.c: Likewise.
27759         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27760
27761 2010-03-28  Bruno Haible  <bruno@clisp.org>
27762
27763         Fix definition of tests witness macro.
27764         * gnulib-tool (func_import): Fix definition of witness macro.
27765
27766 2010-03-28  Bruno Haible  <bruno@clisp.org>
27767
27768         Fix ioctl's protoype on glibc systems.
27769         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
27770         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
27771         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
27772         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
27773         signature. If not, arrange to replace the ioctl function.
27774         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27775         REPLACE_IOCTL.
27776         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
27777         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
27778         Reported by Ludovic Courtès <ludo@gnu.org>.
27779
27780 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
27781
27782         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
27783         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
27784         made it so grep -r --include=GLOB* ... did not work.
27785
27786 2010-03-26  Jim Meyering  <meyering@redhat.com>
27787             Eric Blake  <eblake@redhat.com>
27788
27789         maint.mk: prohibit use of test's -o and -a operators
27790         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
27791
27792 2010-03-28  Bruno Haible  <bruno@clisp.org>
27793
27794         Remove unused GNULIB_XYZ macro definitions.
27795         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
27796         invocation.
27797
27798 2010-03-28  Bruno Haible  <bruno@clisp.org>
27799
27800         Mark privileged tests modules.
27801         * modules/idpriv-drop-tests (Status): New section.
27802         * modules/idpriv-droptemp-tests (Status): New section.
27803
27804 2010-03-28  Bruno Haible  <bruno@clisp.org>
27805
27806         Split C++ tests into separate tests modules.
27807         * modules/dirent-c++-tests: New file, extracted from
27808         modules/dirent-tests.
27809         * modules/dirent-tests: Depend on it.
27810         * modules/fcntl-h-c++-tests: New file, extracted from
27811         modules/fcntl-h-tests.
27812         * modules/fcntl-h-tests: Depend on it.
27813         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
27814         * modules/glob-tests: Depend on it.
27815         * modules/iconv-h-c++-tests: New file, extracted from
27816         modules/iconv-h-tests.
27817         * modules/iconv-h-tests: Depend on it.
27818         * modules/langinfo-c++-tests: New file, extracted from
27819         modules/langinfo-tests.
27820         * modules/langinfo-tests: Depend on it.
27821         * modules/locale-c++-tests: New file, extracted from
27822         modules/locale-tests.
27823         * modules/locale-tests: Depend on it.
27824         * modules/math-c++-tests: New file, extracted from modules/math-tests.
27825         * modules/math-tests: Depend on it.
27826         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
27827         * modules/pty-tests: Depend on it.
27828         * modules/search-c++-tests: New file, extracted from
27829         modules/search-tests.
27830         * modules/search-tests: Depend on it.
27831         * modules/signal-c++-tests: New file, extracted from
27832         modules/signal-tests.
27833         * modules/signal-tests: Depend on it.
27834         * modules/spawn-c++-tests: New file, extracted from
27835         modules/spawn-tests.
27836         * modules/spawn-tests: Depend on it.
27837         * modules/stdio-c++-tests: New file, extracted from
27838         modules/stdio-tests.
27839         * modules/stdio-tests: Depend on it.
27840         * modules/stdlib-c++-tests: New file, extracted from
27841         modules/stdlib-tests.
27842         * modules/stdlib-tests: Depend on it.
27843         * modules/string-c++-tests: New file, extracted from
27844         modules/string-tests.
27845         * modules/string-tests: Depend on it.
27846         * modules/sys_ioctl-c++-tests: New file, extracted from
27847         modules/sys_ioctl-tests.
27848         * modules/sys_ioctl-tests: Depend on it.
27849         * modules/sys_select-c++-tests: New file, extracted from
27850         modules/sys_select-tests.
27851         * modules/sys_select-tests: Depend on it.
27852         * modules/sys_socket-c++-tests: New file, extracted from
27853         modules/sys_socket-tests.
27854         * modules/sys_socket-tests: Depend on it.
27855         * modules/sys_stat-c++-tests: New file, extracted from
27856         modules/sys_stat-tests.
27857         * modules/sys_stat-tests: Depend on it.
27858         * modules/sys_time-c++-tests: New file, extracted from
27859         modules/sys_time-tests.
27860         * modules/sys_time-tests: Depend on it.
27861         * modules/time-c++-tests: New file, extracted from modules/time-tests.
27862         * modules/time-tests: Depend on it.
27863         * modules/unistd-c++-tests: New file, extracted from
27864         modules/unistd-tests.
27865         * modules/unistd-tests: Depend on it.
27866         * modules/wchar-c++-tests: New file, extracted from
27867         modules/wchar-tests.
27868         * modules/wchar-tests: Depend on it.
27869         * modules/wctype-c++-tests: New file, extracted from
27870         modules/wctype-tests.
27871         * modules/wctype-tests: Depend on it.
27872         Reported by Simon Josefsson.
27873
27874 2010-03-28  Bruno Haible  <bruno@clisp.org>
27875
27876         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
27877         * gnulib-tool (func_exists_module): New function, extracted from
27878         func_verify_module.
27879         (func_verify_module): Use it.
27880         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
27881         'foo' only if 'foo' exists.
27882         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
27883         module.
27884
27885 2010-03-28  Bruno Haible  <bruno@clisp.org>
27886
27887         gnulib-tool: Add support for special categories of tests.
27888         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
27889         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
27890         (func_usage): Document them.
27891         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
27892         inc_unportable_tests, inc_all_tests): New variables.
27893         (func_acceptable): Consider these variables.
27894         (func_modules_transitive_closure): Make it work when the 'Status' field
27895         consists of multiple words.
27896         (func_import): Store and restore the values of inc_cxx_tests,
27897         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
27898         inc_all_tests in gnulib-comp.m4.
27899         (func_create_testdir): Set inc_all_tests to true.
27900         * doc/gnulib.texi (Extra tests modules): New section.
27901         Suggested by Jim Meyering.
27902
27903 2010-03-28  Bruno Haible  <bruno@clisp.org>
27904
27905         ansi-c++-opt: Allow turning off the C++ build by default.
27906         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
27907         gl_CXX_CHOICE_DEFAULT_NO is defined.
27908         Requested by Eric Blake.
27909
27910 2010-03-28  Bruno Haible  <bruno@clisp.org>
27911
27912         unistd: Avoid #define replacements in C++ mode.
27913         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
27914         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
27915         setsockopt, shutdown, select): In C++, attach a warning to the function
27916         if possible, rather than #defining the symbol to a dysfunctional alias.
27917         Reported by John W. Eaton <jwe@gnu.org>.
27918
27919 2010-03-28  Bruno Haible  <bruno@clisp.org>
27920
27921         Fix link errors on mingw.
27922         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
27923         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
27924         $(LIBSOCKET).
27925         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
27926         $(LIBSOCKET).
27927
27928 2010-03-28  Bruno Haible  <bruno@clisp.org>
27929             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27930
27931         lib-ignore: Determine different options for different compilers.
27932         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
27933         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
27934         Add comments.
27935         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
27936         * NEWS: Mention the change.
27937
27938 2010-03-27  Bruno Haible  <bruno@clisp.org>
27939
27940         Remove unused GNULIB_XYZ macro definitions.
27941         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27942         * modules/fseek (configure.ac): Likewise.
27943         * modules/ioctl (configure.ac): Likewise.
27944         * modules/open (configure.ac): Likewise.
27945         * modules/stdlib-safer (configure.ac): Likewise.
27946
27947 2010-03-27  Bruno Haible  <bruno@clisp.org>
27948
27949         Add a remark about certain modules.
27950         * modules/malloc (Comment): New section.
27951         * modules/realloc (Comment): Likewise.
27952         * modules/sigpipe (Comment): Likewise.
27953
27954 2010-03-27  Bruno Haible  <bruno@clisp.org>
27955
27956         Resolve conflict between the two kinds of module indicators.
27957         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
27958         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
27959         * modules/canonicalize (configure.ac): Invoke
27960         gl_MODULE_INDICATOR_FOR_TESTS.
27961         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
27962         GNULIB_XYZ.
27963         * tests/test-dirent-c++.cc: Likewise.
27964         * tests/test-dirent-safer.c: Likewise.
27965         * tests/test-dup2.c: Likewise.
27966         * tests/test-fchdir.c: Likewise.
27967         * tests/test-fcntl-h-c++.cc: Likewise.
27968         * tests/test-getopt.c: Likewise.
27969         * tests/test-getopt.h: Likewise.
27970         * tests/test-langinfo-c++.cc: Likewise.
27971         * tests/test-locale-c++.cc: Likewise.
27972         * tests/test-math-c++.cc: Likewise.
27973         * tests/test-pty-c++.cc: Likewise.
27974         * tests/test-search-c++.cc: Likewise.
27975         * tests/test-signal-c++.cc: Likewise.
27976         * tests/test-spawn-c++.cc: Likewise.
27977         * tests/test-stdio-c++.cc: Likewise.
27978         * tests/test-stdlib-c++.cc: Likewise.
27979         * tests/test-string-c++.cc: Likewise.
27980         * tests/test-sys_ioctl-c++.cc: Likewise.
27981         * tests/test-sys_select-c++.cc: Likewise.
27982         * tests/test-sys_socket-c++.cc: Likewise.
27983         * tests/test-sys_stat-c++.cc: Likewise.
27984         * tests/test-sys_time-c++.cc: Likewise.
27985         * tests/test-time-c++.cc: Likewise.
27986         * tests/test-unistd-c++.cc: Likewise.
27987         * tests/test-wchar-c++.cc: Likewise.
27988         * tests/uninorm/test-u8-nfc.c: Likewise.
27989         * tests/uninorm/test-u8-nfd.c: Likewise.
27990         * tests/uninorm/test-u8-nfkc.c: Likewise.
27991         * tests/uninorm/test-u8-nfkd.c: Likewise.
27992         * tests/uninorm/test-u16-nfc.c: Likewise.
27993         * tests/uninorm/test-u16-nfd.c: Likewise.
27994         * tests/uninorm/test-u16-nfkc.c: Likewise.
27995         * tests/uninorm/test-u16-nfkd.c: Likewise.
27996         * tests/uninorm/test-u32-nfc.c: Likewise.
27997         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27998         * tests/uninorm/test-u32-nfd.c: Likewise.
27999         * tests/uninorm/test-u32-nfd-big.c: Likewise.
28000         * tests/uninorm/test-u32-nfkc.c: Likewise.
28001         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
28002         * tests/uninorm/test-u32-nfkd.c: Likewise.
28003         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
28004         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28005
28006 2010-03-27  Bruno Haible  <bruno@clisp.org>
28007
28008         Distinguish two kinds of module indicators.
28009         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
28010         gl_MODULE_INDICATOR.
28011         (gl_MODULE_INDICATOR): New macro.
28012         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28013         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
28014         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28015         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28016         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28017         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28018         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28019         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28020         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28021         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28022         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28023         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28024         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28025         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28026         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28027         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28028         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28029         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28030         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28031         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28032         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28033         * modules/cloexec (configure.ac): Likewise.
28034         * modules/getopt-gnu (configure.ac): Likewise.
28035         * modules/uninorm/u8-normalize (configure.ac): Likewise.
28036         * modules/uninorm/u16-normalize (configure.ac): Likewise.
28037         * modules/uninorm/u32-normalize (configure.ac): Likewise.
28038         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
28039
28040 2010-03-27  Bruno Haible  <bruno@clisp.org>
28041
28042         New module description field 'Comment'.
28043         * gnulib-tool: New option --extract-comment.
28044         (func_usage): Document it.
28045         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
28046         (func_get_comment): New function.
28047         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
28048
28049 2010-03-27  Bruno Haible  <bruno@clisp.org>
28050
28051         Addendum to 2010-02-07 commit.
28052         * gnulib-tool (func_usage): Document --extract-applicability option.
28053
28054 2010-03-27  Bruno Haible  <bruno@clisp.org>
28055
28056         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
28057         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
28058         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
28059         rather than link errors.
28060
28061 2010-03-27  Bruno Haible  <bruno@clisp.org>
28062
28063         Avoid side effects from tests-related modules on the compilation of lib.
28064         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
28065         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
28066         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
28067         parameter. Emit into AM_CPPFLAGS a definition of the designated C
28068         macro.
28069         (func_import): Define a witness macro. Assign it a value that depends
28070         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
28071         tests-related modules.
28072         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
28073         Reported by Jim Meyering.
28074
28075 2010-03-27  Bruno Haible  <bruno@clisp.org>
28076
28077         Factorize common .m4 code.
28078         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
28079         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
28080         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
28081         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
28082         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28083         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
28084         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
28085         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28086         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28087         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28088         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
28089         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28090         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28091         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28092         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28093         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
28094         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28095         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28096         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28097         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
28098         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
28099         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28100         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28101         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28102         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28103         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28104         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
28105         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
28106         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
28107         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28108         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28109         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28110
28111 2010-03-27  Bruno Haible  <bruno@clisp.org>
28112
28113         Fix a compilation error on Cygwin with g++ >= 4.3.
28114         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
28115         if it is undefined or if we alias it to chmod.
28116         (lstat): Don't warn about the use of this function if it is undefined
28117         or if we alias it to stat.
28118         Reported by Simon Josefsson.
28119
28120 2010-03-27  Bruno Haible  <bruno@clisp.org>
28121
28122         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
28123         * modules/getlogin (configure.ac): Update.
28124
28125         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
28126         * modules/getlogin_r (configure.ac): Update.
28127
28128         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
28129         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
28130         * modules/inet_ntop (configure.ac): Update.
28131
28132         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
28133         * modules/inet_pton (configure.ac): Update.
28134
28135         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
28136         * modules/mbslen (configure.ac): Update.
28137
28138         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
28139         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
28140         * modules/forkpty (configure.ac): Update.
28141         * modules/openpty (configure.ac): Update.
28142
28143 2010-03-26  Simon Josefsson  <simon@josefsson.org>
28144
28145         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
28146         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
28147
28148 2010-03-25  Eric Blake  <eblake@redhat.com>
28149
28150         maint: use pragma consistently across replacement headers
28151         * lib/ctype.in.h (system_header): Hoist for consistent placement.
28152         * lib/dirent.in.h (system_header): Likewise.
28153         * lib/errno.in.h (system_header): Likewise.
28154         * lib/float.in.h (system_header): Likewise.
28155         * lib/getopt.in.h (system_header): Likewise.
28156         * lib/iconv.in.h (system_header): Likewise.
28157         * lib/inttypes.in.h (system_header): Likewise.
28158         * lib/langinfo.in.h (system_header): Likewise.
28159         * lib/locale.in.h (system_header): Likewise.
28160         * lib/math.in.h (system_header): Likewise.
28161         * lib/netdb.in.h (system_header): Likewise.
28162         * lib/netinet_in.in.h (system_header): Likewise.
28163         * lib/pty.in.h (system_header): Likewise.
28164         * lib/sched.in.h (system_header): Likewise.
28165         * lib/se-selinux.in.h (system_header): Likewise.
28166         * lib/search.in.h (system_header): Likewise.
28167         * lib/spawn.in.h (system_header): Likewise.
28168         * lib/stdarg.in.h (system_header): Likewise.
28169         * lib/stdint.in.h (system_header): Likewise.
28170         * lib/string.in.h (system_header): Likewise.
28171         * lib/strings.in.h (system_header): Likewise.
28172         * lib/sys_file.in.h (system_header): Likewise.
28173         * lib/sys_ioctl.in.h (system_header): Likewise.
28174         * lib/sys_socket.in.h (system_header): Likewise.
28175         * lib/sys_times.in.h (system_header): Likewise.
28176         * lib/sys_utsname.in.h (system_header): Likewise.
28177         * lib/sys_wait.in.h (system_header): Likewise.
28178         * lib/sysexits.in.h (system_header): Likewise.
28179         * lib/unistd.in.h (system_header): Likewise.
28180         * lib/wctype.in.h (system_header): Likewise.
28181
28182         arpa/inet: fix mingw compilation warning
28183         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
28184         Reported by Matthew Bolte.
28185
28186 2010-03-25  Bruno Haible  <bruno@clisp.org>
28187
28188         Avoid collision between gnulib wrapper and libintl wrapper.
28189         * lib/printf.c (printf): Don't define if a printf wrapper is already
28190         defined in intl/printf.c.
28191         Reported by Michel Boaventura <michel@michelboaventura.com>.
28192
28193 2010-03-25  Bruno Haible  <bruno@clisp.org>
28194
28195         Use ANSI C.
28196         * lib/readutmp.h (getutent): Provide ANSI C prototype.
28197
28198 2010-03-25  Bruno Haible  <bruno@clisp.org>
28199
28200         Minor formatting changes.
28201         * lib/acosl.c: Insert space before function argument list.
28202         * lib/argz.c: Likewise.
28203         * lib/asinl.c: Likewise.
28204         * lib/expl.c: Likewise.
28205         * lib/gen-uni-tables.c: Likewise.
28206         * lib/gettext.h: Likewise.
28207         * lib/glthread/lock.h: Likewise.
28208         * lib/tanl.c: Likewise.
28209         * lib/uniname/uniname.c: Likewise.
28210         * tests/test-idpriv-drop.c: Likewise.
28211         * tests/test-idpriv-droptemp.c: Likewise.
28212         * tests/test-lock.c: Likewise.
28213         * tests/test-tls.c: Likewise.
28214         * lib/argp-help.c: Insert space before function-like macro argument
28215         list.
28216         * lib/memcmp.c: Likewise.
28217         * tests/test-base64.c: Likewise.
28218         * lib/localename.c: Insert space before sizeof's argument list.
28219         * lib/safe-alloc.h: Likewise.
28220         * lib/file-set.h: Insert space before macro argument list.
28221         * tests/test-argp.c: Likewise.
28222         * lib/argp-namefrob.h: Insert space before function parameter list.
28223         * lib/getaddrinfo.c: Likewise.
28224         * lib/netdb.in.h: Likewise.
28225         * lib/parse-duration.h: Likewise.
28226         * lib/parse-duration.c: Likewise.
28227         * lib/poll.c: Likewise.
28228         * lib/select.c: Likewise.
28229         * lib/trim.h: Likewise.
28230         * tests/test-usleep.c: Likewise.
28231         * lib/ldexpl.c: Insert space before function parameter list and before
28232         function argument list.
28233         * lib/logl.c: Likewise.
28234         * lib/sqrtl.c: Likewise.
28235         * lib/trim.c: Likewise.
28236         * lib/cosl.c: Use GNU style indentation. Insert space before function
28237         argument list.
28238         * lib/sinl.c: Likewise.
28239         * lib/tsearch.c: Insert space after 'for'.
28240         Reported by Jim Meyering.
28241
28242 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
28243
28244         * maint.mk (sc_Wundef_boolean): Check for the presence of the
28245         config header before grepping, as it's not present before
28246         autoreconf/configure are run.  Reported by Simon Josefsson.
28247
28248 2010-03-23  Bruno Haible  <bruno@clisp.org>
28249
28250         pt_chown: Make it work with automake < 1.11.
28251         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
28252         Reported by Simon Josefsson.
28253
28254 2010-03-23  Bruno Haible  <bruno@clisp.org>
28255
28256         pt_chown: Don't depend on GPLed modules.
28257         * lib/pt_chown.c: Don't include idpriv.h.
28258         (main): Don't drop privileges.
28259         * modules/pt_chown (Depends-on): Remove idpriv-drop.
28260         Reported by Simon Josefsson.
28261
28262 2010-03-24  Simon Josefsson  <simon@josefsson.org>
28263
28264         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
28265         suggestions from karl@freefriends.org (Karl Berry).
28266
28267 2010-03-22  Eric Blake  <eblake@redhat.com>
28268
28269         gethostname: further tweaks
28270         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
28271         are overriding gethostname.
28272         Suggested by Bruno Haible.
28273
28274 2010-03-21  Bruno Haible  <bruno@clisp.org>
28275
28276         Fix comments.
28277         * lib/forkpty.c (rpl_forkpty): Fix comment.
28278         * lib/openpty.c (rpl_openpty): Likewise.
28279         Reported by Eric Blake.
28280
28281 2010-03-22  Eric Blake  <eblake@redhat.com>
28282
28283         gethostname: fix build on mingw
28284         * lib/unistd.in.h (includes): Work around fact that mingw
28285         <winsock2.h> re-includes <unistd.h>, by avoiding any
28286         redeclarations if we are being included by <winsock2.h>.
28287         Reported by Matthias Bolte.
28288
28289 2010-03-21  Bruno Haible  <bruno@clisp.org>
28290
28291         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28292         * lib/forkpty.c (forkpty): New replacement function, from glibc with
28293         modifications.
28294         * lib/pty.in.h (forkpty): Update declaration. Add comments.
28295         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
28296         provide the replacement.
28297         * modules/forkpty (Depends-on): Add openpty, login_tty.
28298         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
28299         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
28300         * doc/glibc-functions/forkpty.texi: More supported platforms.
28301         * config/srclist.txt: Add forkpty.c (commented).
28302
28303 2010-03-21  Bruno Haible  <bruno@clisp.org>
28304
28305         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
28306         (Makefile.am): Verify that PTY_LIB is defined.
28307
28308         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
28309
28310 2010-03-21  Bruno Haible  <bruno@clisp.org>
28311
28312         Tests for module 'login_tty'.
28313         * modules/login_tty-tests: New file.
28314         * tests/test-login_tty.c: New file.
28315
28316         New module 'login_tty'.
28317         * lib/login_tty.c: New file.
28318         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
28319         * modules/login_tty: New file.
28320         * doc/glibc-functions/login_tty.texi: Mention the new module.
28321
28322 2010-03-21  Bruno Haible  <bruno@clisp.org>
28323
28324         login_tty: Documentation.
28325         * doc/glibc-functions/login_tty.texi: New file.
28326         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
28327
28328 2010-03-21  Bruno Haible  <bruno@clisp.org>
28329
28330         pty: Consistent macro naming.
28331         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
28332         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
28333         * modules/pty (configure.ac): Update.
28334
28335 2010-03-21  Bruno Haible  <bruno@clisp.org>
28336
28337         Tests for openpty: Make stricter.
28338         * tests/test-openpty.c (main): Add test of canonical processing and
28339         erase.
28340         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
28341
28342         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28343         * lib/openpty.c (openpty): New replacement function.
28344         * lib/pty.in.h: Include <termios.h>.
28345         (openpty): Update declaration. Add comments.
28346         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
28347         is not declared, arrange to provide the replacement. Check for _getpty
28348         and posix_openpt.
28349         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
28350         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
28351         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
28352         * modules/pty-tests (test_pty_c___LDADD): New variable.
28353         * doc/glibc-functions/openpty.texi: More supported platforms.
28354
28355 2010-03-21  Bruno Haible  <bruno@clisp.org>
28356
28357         setenv: Tweaks.
28358         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
28359         the test program.
28360         * doc/posix-functions/setenv.texi: Update platforms list.
28361
28362 2010-03-21  Bruno Haible  <bruno@clisp.org>
28363
28364         New module 'unlockpt'.
28365         * lib/unlockpt.c: New file, from glibc with modifications.
28366         * m4/unlockpt.m4: New file.
28367         * modules/unlockpt: New file.
28368         * lib/stdlib.in.h (unlockpt): New declaration.
28369         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
28370         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
28371         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
28372         HAVE_UNLOCKPT.
28373         * doc/posix-functions/unlockpt.texi: Mention the new module.
28374         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
28375         * config/srclist.txt: Add unlockpt.c (commented).
28376
28377 2010-03-21  Jim Meyering  <meyering@redhat.com>
28378
28379         maint.mk: prohibit inclusion of "intprops.h" without use
28380         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
28381
28382 2010-03-21  Bruno Haible  <bruno@clisp.org>
28383
28384         New module 'grantpt'.
28385         * lib/grantpt.c: New file, from glibc with modifications.
28386         * m4/grantpt.m4: New file.
28387         * modules/grantpt: New file.
28388         * lib/stdlib.in.h (grantpt): New declaration.
28389         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
28390         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
28391         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
28392         HAVE_GRANTPT.
28393         * doc/posix-functions/grantpt.texi: Mention the new module.
28394         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
28395         * config/srclist.txt: Add grantpt.c (commented).
28396
28397 2010-03-21  Bruno Haible  <bruno@clisp.org>
28398
28399         New module 'pt_chown'.
28400         * lib/pt_chown.c: New file, from glibc with modifications.
28401         * lib/pty-private.h: New file, from glibc with modifications.
28402         * modules/pt_chown: New file.
28403         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
28404
28405 2010-03-21  Bruno Haible  <bruno@clisp.org>
28406
28407         Tests for module 'ptsname'.
28408         * modules/ptsname-tests: New file.
28409         * tests/test-ptsname.c: New file.
28410
28411         New module 'ptsname'.
28412         * lib/ptsname.c: New file, from glibc with modifications.
28413         * m4/ptsname.m4: New file.
28414         * modules/ptsname: New file.
28415         * lib/stdlib.in.h (ptsname): New declaration.
28416         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
28417         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
28418         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
28419         HAVE_PTSNAME.
28420         * doc/posix-functions/ptsname.texi: Mention the new module.
28421         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
28422         * config/srclist.txt: Add ptsname.c (commented).
28423
28424 2010-03-21  Bruno Haible  <bruno@clisp.org>
28425
28426         Tests for module 'ttyname_r'.
28427         * modules/ttyname_r-tests: New file.
28428         * tests/test-ttyname_r.c: New file.
28429
28430         New module 'ttyname_r'.
28431         * lib/ttyname_r.c: New file.
28432         * m4/ttyname_r.m4: New file.
28433         * modules/ttyname_r: New file.
28434         * lib/unistd.in.h (ttyname_r): New declaration.
28435         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
28436         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
28437         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
28438         HAVE_TTYNAME_R.
28439         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
28440         * doc/posix-functions/ttyname_r.texi: Mention the new module.
28441
28442 2010-03-20  Bruno Haible  <bruno@clisp.org>
28443
28444         signal: Undefine macro definitions in C++ mode.
28445         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
28446         sigfillset): Undefine macro definitions from the system header in C++
28447         mode.
28448         Reported by John W. Eaton <jwe@gnu.org>.
28449
28450 2010-03-20  Bruno Haible  <bruno@clisp.org>
28451
28452         Ensure no #include statements inside extern "C" { ... }.
28453         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
28454         contain #include statements.
28455         * lib/time.in.h: Likewise.
28456
28457 2010-03-20  Bruno Haible  <bruno@clisp.org>
28458
28459         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
28460         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
28461         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
28462         Reported by John W. Eaton <jwe@gnu.org>.
28463
28464 2010-03-20  Bruno Haible  <bruno@clisp.org>
28465
28466         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
28467         Reported by Jim Meyering.
28468
28469 2010-03-20  Bruno Haible  <bruno@clisp.org>
28470
28471         pipe: Set errno upon failure.
28472         * lib/pipe.h: Specify that when -1 is returned, errno is set.
28473         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
28474         errno value in error message.
28475
28476 2010-03-20  Bruno Haible  <bruno@clisp.org>
28477             Jim Meyering  <meyering@redhat.com>
28478
28479         lchown: Avoid "unused variable" warning.
28480         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
28481
28482 2010-03-20  Bruno Haible  <bruno@clisp.org>
28483
28484         Work around unlink() bug on MacOS X 10.5.6.
28485         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
28486         attempting to unlink a parent directory.
28487         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
28488         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
28489         activate for the replacement function.
28490         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
28491
28492 2010-03-20  Bruno Haible  <bruno@clisp.org>
28493
28494         Fix link errors on Solaris 8.
28495         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
28496         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
28497
28498 2010-03-19  Jim Meyering  <meyering@redhat.com>
28499
28500         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
28501         The _LIBC implementation of build_range_exp correctly honors the
28502         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
28503         However, the non-_LIBC implementation would ignore that syntax-bit
28504         flag and return REG_ERANGE unconditionally.
28505         This change makes it honor that flag.
28506         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
28507         Make two pointer parameters "const".
28508         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
28509         (parse_bracket_exp): Update caller.
28510
28511         regex.m4: correct the reversed range endpoint ([b-a]) test
28512         * m4/regex.m4: When requiring that [b-a] evoke failure,
28513         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
28514         test pass once again for x86-based systems.
28515
28516 2010-03-19  Bruno Haible  <bruno@clisp.org>
28517
28518         scandir: Fix link error on Solaris 8.
28519         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
28520         macros.
28521
28522 2010-03-19  Bruno Haible  <bruno@clisp.org>
28523
28524         getusershell: Fix documentation.
28525         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
28526         module.
28527         * doc/glibc-functions/setusershell.texi: Likewise.
28528
28529         getusershell: Provide declaration, missing on Solaris 9.
28530         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
28531         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
28532         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
28533         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
28534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28535         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
28536         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
28537         HAVE_GETUSERSHELL.
28538         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
28539
28540 2010-03-19  Bruno Haible  <bruno@clisp.org>
28541
28542         wctype: Provide iswblank function.
28543         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
28544         exists and is fine.
28545         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
28546         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
28547         * tests/test-wctype.c (main): Re-enable the iswblank tests.
28548         * doc/posix-functions/iswblank.texi: Update.
28549
28550 2010-03-19  Bruno Haible  <bruno@clisp.org>
28551
28552         Tests of module 'pty' in C++ mode.
28553         * modules/pty-tests: New file.
28554         * tests/test-pty-c++.cc: New file.
28555         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28556
28557 2010-03-19  Eric Blake  <eblake@redhat.com>
28558
28559         logb: fix documentation
28560         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
28561         1.5 declaration bug.
28562
28563         forkpty, openpty: prefer glibc's const-safe prototype
28564         * lib/forkpty.c (rpl_forkpty): New file.
28565         * lib/openpty.c (rpl_openpty): Likewise.
28566         * modules/forkpty (Files): Distribute it.
28567         * modules/openpty (Files): Likewise.
28568         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
28569         check...
28570         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
28571         replacement for for non-const BSD signature.
28572         * modules/pty (Makefile.am): Substitute witnesses.
28573         * lib/pty.in.h (forkpty, openpty): Declare replacements.
28574         * tests/test-forkpty.c: Update signature check.
28575         * tests/test-openpty.c: Likewise.
28576         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
28577         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28578
28579         forkpty, openpty: split functions into new modules
28580         * modules/pty (Makefile.am): Substitute new witnesses.
28581         (Libraries): Move library detection...
28582         * modules/forkpty: ...into new module.
28583         * modules/openpty: Another new module.
28584         * modules/pty-tests: Rename and split...
28585         * modules/forkpty-tests: ...to this...
28586         * modules/openpty-tests: ...and this.
28587         * tests/test-pty.c: Rename and split...
28588         * tests/test-forkpty.c: ...to this...
28589         * tests/test-openpty.c: ...and this.
28590         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
28591         (gl_PTY): Split library searching...
28592         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
28593         (gl_FORKPTY, gl_OPENPTY): New macros.
28594         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
28595         * NEWS: Mention the split.
28596         * MODULES.html.sh (Misc): Document the modules.
28597         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
28598         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28599
28600         pty: improve replacement header
28601         * lib/pty.in.h: New file.
28602         * modules/pty (Files): Ship it.
28603         (Makefile.am): Always build replacement.
28604         * m4/pty.m4: Rename...
28605         * m4/pty_h.m4: ...to this.
28606         (gl_PTY): Modernize setting of witness macros; update check of
28607         forkpty to take proper advantage of cache.
28608         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
28609
28610         getopt: avoid compiler warning
28611         * lib/getopt.c (attribute_hidden): Remove unused macro.
28612
28613 2010-03-18  Bruno Haible  <bruno@clisp.org>
28614
28615         Fix link errors on Solaris 8.
28616         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
28617         * modules/search-tests (test_search_c___LDADD): Likewise.
28618         * modules/signal-tests (test_signal_c___LDADD): Likewise.
28619         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
28620         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
28621         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
28622         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
28623         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
28624         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
28625
28626 2010-03-18  Bruno Haible  <bruno@clisp.org>
28627
28628         Fix bug introduced on 2010-03-14.
28629         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
28630         (gl_SPAWN_H): Require it.
28631         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
28632         Reported by Simon Josefsson.
28633
28634 2010-03-18  Bruno Haible  <bruno@clisp.org>
28635
28636         Fix typo introduced on 2009-12-31.
28637         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
28638         posix_spawn_file_actions_adddup2.
28639
28640 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
28641         and Eric Blake  <eblake@redhat.com>
28642
28643         test-vc-list-files-git: make more robust
28644         * tests/test-vc-list-files-git.sh: Unset problematic environment
28645         variables.  Chain commands together.
28646
28647 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
28648
28649         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
28650         `AC_CHECK_DECL' invocation.
28651
28652 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
28653
28654         * lib/inttostr.c (inttostr): Make sure the invocation of verify
28655         appears before executable statements. Suggested by Petr Sumbera
28656         <Petr.Sumbera@Sun.COM>.
28657
28658 2010-03-14  Bruno Haible  <bruno@clisp.org>
28659
28660         * tests/test-flock.c (test_exclusive): Comment out a test that causes
28661         portability problems. Instead use a simpler test.
28662         (main): Check that invalid arguments are rejected only on Linux.
28663
28664 2010-03-14  Bruno Haible  <bruno@clisp.org>
28665
28666         Fix bug introduced on 2009-12-31.
28667         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28668         gl_PREREQ_SYS_H_WINSOCK2 always.
28669         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
28670         SYS_SOCKET_H variable.
28671         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
28672         Update comments.
28673         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
28674         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28675         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28676         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28677         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
28678
28679 2010-03-14  Bruno Haible  <bruno@clisp.org>
28680
28681         Fix values returned by sinl, cosl.
28682         * lib/trigl.h: Add specification comments.
28683         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
28684         that combines the values from the precomputed table with the values of
28685         the Chebyshev polynomials.
28686
28687 2010-03-14  Bruno Haible  <bruno@clisp.org>
28688
28689         Fix compilation error when modules 'posix_spawn[p]' are not used.
28690         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
28691         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
28692
28693 2010-03-14  Bruno Haible  <bruno@clisp.org>
28694
28695         Fix compilation error on mingw when module 'time_r' is not used.
28696         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
28697         is 1.
28698         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
28699         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28700         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
28701         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
28702
28703 2010-03-14  Bruno Haible  <bruno@clisp.org>
28704
28705         Fix compilation error with Sun C.
28706         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
28707         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
28708         instead of GCC specific ULONG_LONG_MAX.
28709         * lib/xstrtoll.c: Likewise.
28710         * lib/xstrtoull.c: Likewise.
28711
28712 2010-03-13  Bruno Haible  <bruno@clisp.org>
28713
28714         Allow the user to disable C++ code and tests.
28715         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
28716         (gl_PROG_ANSI_CXX): Require it.
28717
28718 2010-03-13  Bruno Haible  <bruno@clisp.org>
28719
28720         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
28721         cases.
28722
28723 2010-03-13  Bruno Haible  <bruno@clisp.org>
28724
28725         Test that gnulib does not break the standard C++ headers.
28726         * tests/test-locale-c++2.cc: New file.
28727         * modules/locale-tests (Files): Add it.
28728         (Makefile.am): Compile it for test-locale-c++.
28729         * tests/test-math-c++2.cc: New file.
28730         * modules/math-tests (Files): Add it.
28731         (Makefile.am): Compile it for test-math-c++.
28732         * tests/test-signal-c++2.cc: New file.
28733         * modules/signal-tests (Files): Add it.
28734         (Makefile.am): Compile it for test-signal-c++.
28735         * tests/test-stdio-c++2.cc: New file.
28736         * modules/stdio-tests (Files): Add it.
28737         (Makefile.am): Compile it for test-stdio-c++.
28738         * tests/test-stdlib-c++2.cc: New file.
28739         * modules/stdlib-tests (Files): Add it.
28740         (Makefile.am): Compile it for test-stdlib-c++.
28741         * tests/test-string-c++2.cc: New file.
28742         * modules/string-tests (Files): Add it.
28743         (Makefile.am): Compile it for test-string-c++.
28744         * tests/test-time-c++2.cc: New file.
28745         * modules/time-tests (Files): Add it.
28746         (Makefile.am): Compile it for test-time-c++.
28747         Reported by John W. Eaton <jwe@gnu.org>.
28748
28749 2010-03-13  Bruno Haible  <bruno@clisp.org>
28750
28751         * gnulib-tool (func_usage): Clarify which options are available for
28752         --create-testdir and --create-megatestdir.
28753
28754 2010-03-13  Bruno Haible  <bruno@clisp.org>
28755
28756         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
28757         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
28758         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
28759         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28760         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
28761         when appropriate.
28762         Reported by Jim Meyering.
28763
28764 2010-03-12  Simon Josefsson  <simon@josefsson.org>
28765
28766         * gnulib-tool (func_import): Explain origin of code.
28767
28768 2010-03-12  Bruno Haible  <bruno@clisp.org>
28769
28770         Fix problem with automake's definition of CXXLINK.
28771         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
28772         Reported by Simon Josefsson and Ludovic Courtès.
28773
28774 2010-03-12  Bruno Haible  <bruno@clisp.org>
28775
28776         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
28777         stable releases.
28778
28779 2010-03-11  Bruno Haible  <bruno@clisp.org>
28780
28781         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
28782         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
28783         whether the system provides one variant or multiple variants of the
28784         function.
28785         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
28786         C++ compilers.
28787         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
28788         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
28789         Reported by Jim Meyering.
28790
28791 2010-03-09  Simon Josefsson  <simon@josefsson.org>
28792
28793         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
28794
28795 2010-03-08  Bruno Haible  <bruno@clisp.org>
28796
28797         gnulib-tool: Add support for --libtool in --create-testdir.
28798         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
28799         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
28800
28801 2010-03-08  Eric Blake  <eblake@redhat.com>
28802
28803         gnulib-tool.texi: mention possibility of git submodule
28804         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
28805         submodules.
28806         * doc/.gitignore: Ignore another generated file.
28807
28808 2010-03-08  Karl Berry  <karl@gnu.org>
28809
28810         * doc/gnulib-tool.texi (VCS Issues): Mention third option
28811         of committing gnulib files while skipping others.
28812
28813 2010-03-07  Bruno Haible  <bruno@clisp.org>
28814
28815         Tests of module 'wctype' in C++ mode.
28816         * tests/test-wctype-c++.cc: New file.
28817         * modules/wctype-tests (Files): Add it and tests/signature.h.
28818         (Depends-on): Add ansi-c++-opt.
28819         (Makefile.am): Arrange to compile and run test-wctype-c++.
28820
28821         Tests of module 'wchar' in C++ mode.
28822         * tests/test-wchar-c++.cc: New file.
28823         * modules/wchar-tests (Files): Add it and tests/signature.h.
28824         (Depends-on): Add ansi-c++-opt.
28825         (Makefile.am): Arrange to compile and run test-wchar-c++.
28826         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
28827         gl_MODULE_INDICATOR.
28828
28829         Tests of module 'unistd' in C++ mode.
28830         * tests/test-unistd-c++.cc: New file.
28831         * modules/unistd-tests (Files): Add it and tests/signature.h.
28832         (Depends-on): Add ansi-c++-opt.
28833         (Makefile.am): Arrange to compile and run test-unistd-c++.
28834         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
28835         gl_MODULE_INDICATOR.
28836
28837         Tests of module 'time' in C++ mode.
28838         * tests/test-time-c++.cc: New file.
28839         * modules/time-tests (Files): Add it and tests/signature.h.
28840         (Depends-on): Add ansi-c++-opt.
28841         (Makefile.am): Arrange to compile and run test-time-c++.
28842         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28843
28844         Tests of module 'sys_time' in C++ mode.
28845         * tests/test-sys_time-c++.cc: New file.
28846         * modules/sys_time-tests (Files): Add it and tests/signature.h.
28847         (Depends-on): Add ansi-c++-opt.
28848         (Makefile.am): Arrange to compile and run test-sys_time-c++.
28849         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
28850         gl_MODULE_INDICATOR.
28851
28852         Tests of module 'sys_stat' in C++ mode.
28853         * tests/test-sys_stat-c++.cc: New file.
28854         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
28855         (Depends-on): Add ansi-c++-opt.
28856         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
28857         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
28858         gl_MODULE_INDICATOR.
28859
28860         Tests of module 'sys_socket' in C++ mode.
28861         * tests/test-sys_socket-c++.cc: New file.
28862         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
28863         (Depends-on): Add ansi-c++-opt.
28864         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
28865         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
28866         gl_MODULE_INDICATOR.
28867
28868         Tests of module 'sys_select' in C++ mode.
28869         * tests/test-sys_select-c++.cc: New file.
28870         * modules/sys_select-tests (Files): Add it and tests/signature.h.
28871         (Depends-on): Add ansi-c++-opt.
28872         (Makefile.am): Arrange to compile and run test-sys_select-c++.
28873         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
28874         gl_MODULE_INDICATOR.
28875
28876         Tests of module 'sys_ioctl' in C++ mode.
28877         * tests/test-sys_ioctl-c++.cc: New file.
28878         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
28879         (Depends-on): Add ansi-c++-opt.
28880         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
28881         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
28882         gl_MODULE_INDICATOR.
28883
28884         Tests of module 'string' in C++ mode.
28885         * tests/test-string-c++.cc: New file.
28886         * modules/string-tests (Files): Add it and tests/signature.h.
28887         (Depends-on): Add ansi-c++-opt.
28888         (Makefile.am): Arrange to compile and run test-string-c++.
28889         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
28890         gl_MODULE_INDICATOR.
28891
28892         Tests of module 'stdlib' in C++ mode.
28893         * tests/test-stdlib-c++.cc: New file.
28894         * modules/stdlib-tests (Files): Add it and tests/signature.h.
28895         (Depends-on): Add ansi-c++-opt.
28896         (Makefile.am): Arrange to compile and run test-stdlib-c++.
28897         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
28898         gl_MODULE_INDICATOR.
28899
28900         Tests of module 'stdio' in C++ mode.
28901         * tests/test-stdio-c++.cc: New file.
28902         * modules/stdio-tests (Files): Add it and tests/signature.h.
28903         (Depends-on): Add ansi-c++-opt.
28904         (Makefile.am): Arrange to compile and run test-stdio-c++.
28905         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
28906         gl_MODULE_INDICATOR.
28907
28908         Tests of module 'spawn' in C++ mode.
28909         * tests/test-spawn-c++.cc: New file.
28910         * modules/spawn-tests (Files): Add it and tests/signature.h.
28911         (Depends-on): Add ansi-c++-opt.
28912         (Makefile.am): Arrange to compile and run test-spawn-c++.
28913         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
28914         gl_MODULE_INDICATOR.
28915
28916         Tests of module 'signal' in C++ mode.
28917         * tests/test-signal-c++.cc: New file.
28918         * modules/signal-tests (Files): Add it and tests/signature.h.
28919         (Depends-on): Add ansi-c++-opt.
28920         (Makefile.am): Arrange to compile and run test-signal-c++.
28921         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
28922         gl_MODULE_INDICATOR.
28923
28924         Tests of module 'search' in C++ mode.
28925         * tests/test-search-c++.cc: New file.
28926         * modules/search-tests (Files): Add it and tests/signature.h.
28927         (Depends-on): Add ansi-c++-opt.
28928         (Makefile.am): Arrange to compile and run test-search-c++.
28929         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
28930         gl_MODULE_INDICATOR.
28931
28932         Tests of module 'math' in C++ mode.
28933         * tests/test-math-c++.cc: New file.
28934         * modules/math-tests (Files): Add it and tests/signature.h.
28935         (Depends-on): Add ansi-c++-opt.
28936         (Makefile.am): Arrange to compile and run test-math-c++.
28937         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28938
28939         Tests of module 'locale' in C++ mode.
28940         * tests/test-locale-c++.cc: New file.
28941         * modules/locale-tests (Files): Add it and tests/signature.h.
28942         (Depends-on): Add ansi-c++-opt.
28943         (Makefile.am): Arrange to compile and run test-locale-c++.
28944         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
28945         gl_MODULE_INDICATOR.
28946
28947         Tests of module 'langinfo' in C++ mode.
28948         * tests/test-langinfo-c++.cc: New file.
28949         * modules/langinfo-tests (Files): Add it and tests/signature.h.
28950         (Depends-on): Add ansi-c++-opt.
28951         (Makefile.am): Arrange to compile and run test-langinfo-c++.
28952         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
28953         gl_MODULE_INDICATOR.
28954
28955         Tests of module 'iconv-h' in C++ mode.
28956         * tests/test-iconv-h-c++.cc: New file.
28957         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
28958         (Depends-on): Add ansi-c++-opt.
28959         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
28960
28961         Tests of module 'glob' in C++ mode.
28962         * tests/test-glob-c++.cc: New file.
28963         * modules/glob-tests (Files): Add it.
28964         (Depends-on): Add ansi-c++-opt.
28965         (Makefile.am): Arrange to compile and run test-glob-c++.
28966
28967         Tests of module 'fcntl-h' in C++ mode.
28968         * tests/test-fcntl-h-c++.cc: New file.
28969         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
28970         (Depends-on): Add ansi-c++-opt.
28971         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
28972         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
28973         gl_MODULE_INDICATOR.
28974
28975         Tests of module 'dirent' in C++ mode.
28976         * tests/test-dirent-c++.cc: New file.
28977         * modules/dirent-tests (Files): Add it and tests/signature.h.
28978         (Depends-on): Add ansi-c++-opt.
28979         (Makefile.am): Arrange to compile and run test-dirent-c++.
28980         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28981         gl_MODULE_INDICATOR.
28982
28983         New module 'ansi-c++-opt'.
28984         * modules/ansi-c++-opt: New file.
28985         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
28986
28987         Document C++ namespace mode.
28988         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
28989
28990         wctype: Avoid #define replacements in C++ mode.
28991         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
28992         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
28993         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
28994         In C++, define a namespaced alias symbol.
28995         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
28996         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
28997         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
28998         rule.
28999
29000         wchar: Avoid #define replacements in C++ mode.
29001         * lib/wchar.in.h: Include c++defs.h.
29002         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
29003         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
29004         symbol.
29005         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
29006         * modules/wchar (Depends-on): Add c++defs.
29007         (Makefile.am): Update wchar.h rule.
29008
29009         unistd: Avoid #define replacements in C++ mode.
29010         * lib/unistd.in.h: Include c++defs.h.
29011         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
29012         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
29013         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
29014         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
29015         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
29016         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
29017         symbol.
29018         (environ): Update.
29019         * modules/unistd (Depends-on): Add c++defs.
29020         (Makefile.am): Update unistd.h rule.
29021
29022         time: Avoid #define replacements in C++ mode.
29023         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
29024         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
29025         define a namespaced alias symbol.
29026         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
29027         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
29028         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
29029         * modules/time (Depends-on): Add c++defs, warn-on-use.
29030         (Makefile.am): Update time.h rule.
29031         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29032         * modules/nanosleep (configure.ac): Likewise.
29033         * modules/strptime (configure.ac): Likewise.
29034         * modules/timegm (configure.ac): Likewise.
29035
29036         sys_time: Avoid #define replacements in C++ mode.
29037         * lib/sys_time.in.h: Include c++defs.h.
29038         (gettimeofday): In C++, define a namespaced alias symbol.
29039         * modules/sys_time (Depends-on): Add c++defs.
29040         (Makefile.am): Update sys/time.h rule.
29041
29042         sys_stat: Avoid #define replacements in C++ mode.
29043         * lib/sys_stat.in.h: Include c++defs.h.
29044         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
29045         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
29046         namespaced alias symbol.
29047         In C++, define a namespaced alias symbol.
29048         * modules/sys_stat (Depends-on): Add c++defs.
29049         (Makefile.am): Update sys/stat.h rule.
29050
29051         sys_socket: Avoid #define replacements in C++ mode.
29052         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
29053         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
29054         definitions also when the system has a <sys/socket.h>.
29055         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29056         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
29057         In C++, define a namespaced alias symbol.
29058         * modules/sys_socket (Depends-on): Add c++defs.
29059         (Makefile.am): Update sys/socket.h rule.
29060
29061         sys_select: Avoid #define replacements in C++ mode.
29062         * lib/sys_select.in.h: Include c++defs.h. Enable the function
29063         definitions also when the system has a <sys/select.h>.
29064         (select): In C++, define a namespaced alias symbol.
29065         * modules/sys_select (Depends-on): Add c++defs.
29066         (Makefile.am): Update sys/select.h rule.
29067
29068         sys_ioctl: Avoid #define replacements in C++ mode.
29069         * lib/sys_ioctl.in.h: Include c++defs.h.
29070         (ioctl): In C++, define a namespaced alias symbol.
29071         * modules/sys_ioctl (Depends-on): Add c++defs.
29072         (Makefile.am): Update sys/ioctl.h rule.
29073
29074         string: Avoid #define replacements in C++ mode.
29075         * lib/string.in.h: Include c++defs.h.
29076         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
29077         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29078         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29079         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
29080         strsignal, strverscmp): In C++, define a namespaced alias symbol.
29081         * modules/string (Depends-on): Add c++defs.
29082         (Makefile.am): Update string.h rule.
29083
29084         stdlib: Avoid #define replacements in C++ mode.
29085         * lib/stdlib.in.h: Include c++defs.h.
29086         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
29087         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
29088         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
29089         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
29090         symbol.
29091         * modules/stdlib (Depends-on): Add c++defs.
29092         (Makefile.am): Update stdlib.h rule.
29093
29094         stdio: Avoid #define replacements in C++ mode.
29095         * lib/stdio.in.h: Include c++defs.h.
29096         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
29097         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
29098         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
29099         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
29100         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
29101         namespaced alias symbol.
29102         * modules/stdio (Depends-on): Add c++defs.
29103         (Makefile.am): Update stdio.h rule.
29104
29105         spawn: Avoid #define replacements in C++ mode.
29106         * lib/spawn.in.h: Include c++defs.h.
29107         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29108         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29109         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29110         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29111         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29112         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29113         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29114         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29115         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29116         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29117         In C++, define a namespaced alias symbol.
29118         * modules/spawn (Depends-on): Add c++defs.
29119         (Makefile.am): Update spawn.h rule.
29120
29121         signal: Avoid #define replacements in C++ mode.
29122         * lib/signal.in.h: Include c++defs.h.
29123         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29124         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
29125         namespaced alias symbol.
29126         * modules/signal (Depends-on): Add c++defs.
29127         (Makefile.am): Update signal.h rule.
29128
29129         search: Avoid #define replacements in C++ mode.
29130         * lib/search.in.h: Include c++defs.h.
29131         (_gl_search_compar_fn, _gl_search_action_fn): New types.
29132         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
29133         symbol.
29134         * modules/search (Depends-on): Add c++defs.
29135         (Makefile.am): Update search.h rule.
29136
29137         math: Avoid #define replacements in C++ mode.
29138         * lib/math.in.h: Include c++defs.h.
29139         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
29140         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
29141         trunc, truncl): In C++, define a namespaced alias symbol.
29142         * modules/math (Depends-on): Add c++defs.
29143         (Makefile.am): Update math.h rule.
29144
29145         locale: Avoid #define replacements in C++ mode.
29146         * lib/locale.in.h: Include c++defs.h.
29147         (duplocale): In C++, define a namespaced alias symbol.
29148         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
29149         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
29150         * modules/locale (Depends-on): Add c++defs.
29151         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
29152
29153         langinfo: Avoid #define replacements in C++ mode.
29154         * lib/langinfo.in.h: Include c++defs.h.
29155         (nl_langinfo): In C++, define a namespaced alias symbol.
29156         * modules/langinfo (Depends-on): Add c++defs.
29157         (Makefile.am): Update langinfo.h rule.
29158
29159         iconv-h: Avoid #define replacements in C++ mode.
29160         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
29161         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
29162         symbol.
29163         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29164         whenever iconv is present.
29165         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
29166         (Makefile.am): Update iconv.h rule.
29167
29168         glob: Avoid #define replacements in C++ mode.
29169         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
29170         (_gl_glob_errfunc_fn): New type.
29171         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
29172         symbol.
29173         * modules/glob (Depends-on): Add c++defs, warn-on-use.
29174         (Makefile.am): Update glob.h rule.
29175
29176         fcntl-h: Avoid #define replacements in C++ mode.
29177         * lib/fcntl.in.h: Include c++defs.h.
29178         (fcntl, open, openat): In C++, define a namespaced alias symbol.
29179         * modules/fcntl-h (Depends-on): Add c++defs.
29180         (Makefile.am): Update fcntl.h rule.
29181
29182         dirent: Avoid #define replacements in C++ mode.
29183         * lib/dirent.in.h: Include c++defs.h.
29184         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
29185         namespaced alias symbol.
29186         (dirfd): Update declaration.
29187         * modules/dirent (Depends-on): Add c++defs.
29188         (Makefile.am): Update dirent.h rule.
29189
29190         ctype: Make it usable in C++ code.
29191         * lib/ctype.in.h: Include c++defs.h.
29192         (isblank): Declare as extern "C".
29193         * modules/ctype (Depends-on): Add c++defs.
29194         (Makefile.am): Update ctype.h rule.
29195
29196         New module 'c++defs'.
29197         * modules/c++defs: New file.
29198         * build-aux/c++defs.h: New file.
29199         Reported by John W. Eaton <jwe@gnu.org>.
29200
29201 2010-03-07  Bruno Haible  <bruno@clisp.org>
29202
29203         logb: Provide missing declaration for Cygwin.
29204         * lib/math.in.h (logb): New declaration.
29205         * m4/logb.m4: New file.
29206         * modules/logb (Files): Add m4/logb.m4.
29207         (Depends-on): Add math.
29208         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
29209         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
29210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
29211         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
29212         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
29213
29214 2010-03-07  Bruno Haible  <bruno@clisp.org>
29215
29216         Fix test-cond link error.
29217         * tests/test-cond.c: Include <stdio.h>.
29218
29219 2010-03-07  Bruno Haible  <bruno@clisp.org>
29220
29221         Fix test-dirent-safer link error.
29222         * modules/dirent-safer-tests (Makefile.am): Define
29223         test_dirent_safer_LDADD.
29224
29225 2010-03-07  Bruno Haible  <bruno@clisp.org>
29226
29227         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
29228         among default module list.
29229
29230 2010-03-07  Bruno Haible  <bruno@clisp.org>
29231
29232         Fix link error on platforms with GNU libiconv.
29233         * modules/unistr/u8-strcoll-tests (Makefile): Define
29234         test_u8_strcoll_LDADD.
29235         * modules/unistr/u16-strcoll-tests (Makefile): Define
29236         test_u16_strcoll_LDADD.
29237         * modules/unistr/u32-strcoll-tests (Makefile): Define
29238         test_u32_strcoll_LDADD.
29239
29240 2010-03-07  Bruno Haible  <bruno@clisp.org>
29241
29242         Use POSIX declarations for socket functions.
29243         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
29244         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
29245         rpl_sendto): Change declaration to match POSIX.
29246         * lib/connect.c (rpl_connect): Likewise.
29247         * lib/accept.c (rpl_accept): Likewise.
29248         * lib/bind.c (rpl_bind): Likewise.
29249         * lib/getpeername.c (rpl_getpeername): Likewise.
29250         * lib/getsockname.c (rpl_getsockname): Likewise.
29251         * lib/recv.c (rpl_recv): Likewise.
29252         * lib/send.c (rpl_send): Likewise.
29253         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29254         * lib/sendto.c (rpl_sendto): Likewise.
29255
29256 2010-03-06  Bruno Haible  <bruno@clisp.org>
29257
29258         Clarify access, euidaccess, faccessat.
29259         * doc/posix-functions/faccessat.texi: Mention security problem under
29260         "Other problems", not "Portability problems".
29261         * doc/posix-functions/access.texi: Likewise. Mention a related security
29262         problem.
29263         * doc/glibc-functions/euidaccess.texi: Mention security problems.
29264         * lib/euidaccess.c: Add comments about platforms.
29265         * lib/unistd.in.h (access, euidaccess): Add warnings.
29266
29267 2010-03-07  Bruno Haible  <bruno@clisp.org>
29268
29269         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
29270         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
29271         (POSIX_SPAWN_SETSCHEDULER): Likewise.
29272         (POSIX_SPAWN_USEVFORK): Define in a way that works when
29273         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29274         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
29275         declare when POSIX_SPAWN_SETSCHEDULER is zero.
29276         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
29277         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
29278         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
29279         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
29280         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
29281         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
29282         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
29283         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
29284         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
29285         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
29286         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
29287         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
29288         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
29289         Likewise.
29290         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
29291         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
29292         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
29293         Likewise.
29294         * tests/test-spawn.c (main): Make it work when
29295         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29296
29297 2010-03-07  Bruno Haible  <bruno@clisp.org>
29298
29299         Fix incorrect Makefile.am generation in German locale.
29300         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29301         Execute sed command with character range in C locale.
29302
29303 2010-03-06  Bruno Haible  <bruno@clisp.org>
29304
29305         Tests for module 'iconv-h'.
29306         * modules/iconv-h-tests: New file.
29307         * tests/test-iconv-h.c: New file.
29308
29309         New module 'iconv-h'.
29310         * modules/iconv-h: New file.
29311         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
29312         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
29313         (configure.ac): Remove gl_ICONV_H.
29314         (Makefile.am): Remove rule for iconv.h.
29315
29316 2010-03-06  Bruno Haible  <bruno@clisp.org>
29317
29318         More consistent naming of *.m4 files.
29319         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
29320         * modules/wctype (Files): Update.
29321
29322         More consistent naming of *.m4 files.
29323         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
29324         * modules/wchar (Files): Update.
29325
29326 2010-03-06  Jim Meyering  <meyering@redhat.com>
29327
29328         euidaccess: relax license to LGPLv2+
29329         * modules/euidaccess (License): Relax to LGPLv2+.
29330
29331 2010-03-06  Bruno Haible  <bruno@clisp.org>
29332
29333         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
29334         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
29335         (Makefile.am): Augment lib_SOURCES instead.
29336
29337 2010-03-04  Jim Meyering  <meyering@redhat.com>
29338
29339         utime: remove obsolete module
29340         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
29341         unnecessary for years, and has been marked as obsolete for 10 months.
29342         * modules/utime: Remove file.
29343         * lib/utime.c: Remove file.
29344         * m4/utime.m4: Remove file.
29345         * m4/utimes-null.m4: Remove file.
29346         * doc/posix-functions/utime.texi (utime): Remove reference to
29347         the module.  Move the sole "fixed by gnulib" item into the
29348         "problems not fixed by Gnulib" list.
29349         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
29350
29351 2010-03-05  Simon Josefsson  <simon@josefsson.org>
29352
29353         * modules/exit (License): Relax license to LGPLv2+.
29354         (Status): Mark as obsolete.
29355         * NEWS: Mention deprecated 'exit' module.
29356         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
29357         of now obsolete 'exit'.
29358
29359 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29360
29361         fts-lgpl: remove unused module
29362         * modules/fts-lgpl: Remove.
29363         * MODULES.html.sh (func_all_modules): Adjust.
29364         * check-module (find_included_lib_files): Adjust.
29365         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
29366
29367 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29368
29369         copy-acl: enhance Solaris ACL error handling
29370         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
29371         * lib/set-mode-acl.c (qset_acl): Likewise.
29372
29373 2010-03-02  Bruno Haible  <bruno@clisp.org>
29374
29375         spawn: Don't override the system defined values on FreeBSD 8.
29376         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
29377         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
29378         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
29379         if HAVE_POSIX_SPAWN is 1.
29380         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
29381
29382 2010-03-01  Bruno Haible  <bruno@clisp.org>
29383
29384         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
29385         regarding Automake.
29386
29387 2010-02-25  Bruno Haible  <bruno@clisp.org>
29388
29389         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
29390         * gnulib-tool: Define 'echo' as a function only before the ksh alias
29391         setting, not afterwards.
29392         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29393
29394 2010-02-24  Eric Blake  <eblake@redhat.com>
29395
29396         bootstrap, git-version-gen: use timestamp
29397         * build-aux/git-version-gen (scriptversion): Force UTC.
29398         * build-aux/bootstrap (scriptversion): New variable.
29399
29400         bootstrap: allow older git
29401         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
29402         older than 1.6.4.  Requested by the libvirt project.
29403
29404 2010-02-23  Eric Blake  <eblake@redhat.com>
29405
29406         warn-on-use: work with old autoconf
29407         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
29408         AS_VAR semantics of autoconf 2.60.
29409         Reported by Bruno Haible.
29410
29411         bootstrap: improve some comments
29412         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
29413         clarification comments.
29414
29415         gettimeofday: provide correct function
29416         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
29417         when replacement is declared, otherwise provide gettimeofday.
29418         Reported by Michael Goffioul.
29419
29420 2010-02-23  Jim Meyering  <meyering@redhat.com>
29421
29422         lib-ignore: relax license to "unlimited", not LGPLv2+
29423         * modules/lib-ignore (License): Relax to "unlimited".
29424
29425 2010-02-23  Jim Meyering  <meyering@redhat.com>
29426
29427         lib-ignore: relax license to LGPLv2+
29428         * modules/lib-ignore (License): Relax to LGPLv2+.
29429
29430 2010-02-22  Eric Blake  <eblake@redhat.com>
29431
29432         lseek: avoid bash 3.2 broken pipe bug
29433         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
29434         warning from bash 3.2.
29435         Reported by Ben Pfaff, with analysis from Bruno Haible.
29436
29437         bootstrap: support non-FSF copyright holder
29438         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
29439         bootstrap.conf override of COPYRIGHT_HOLDER.
29440         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
29441
29442         bootstrap: interoperate with gettext 0.14.1
29443         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
29444
29445         bootstrap: allow for alternate submodule location
29446         * build-aux/bootstrap (gnulib_path): New variable; use instead of
29447         hardcoding submodule location.
29448         (gnulib_mk): Allow direct use of Makefile.am.
29449
29450         bootstrap: use GNULIB_SRCDIR to reduce disk usage
29451         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
29452         rather than reconfiguring where the submodule points.
29453
29454         gettimeofday: restore support for platforms that lack function
29455         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
29456         replacement if function is missing.
29457         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
29458         * modules/sys_time (Makefile.am): Substitute it.
29459         * lib/sys_time.in.h (gettimeofday): Check it.
29460         Reported by Michael Goffioul.
29461
29462 2010-02-21  Bruno Haible  <bruno@clisp.org>
29463
29464         * lib/stdio.in.h (obstack_printf): Fix typo.
29465
29466 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
29467
29468         vc-list-files: use bzr ls's -R option
29469         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
29470         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
29471
29472 2010-02-21  Jim Meyering  <meyering@redhat.com>
29473
29474         init.sh: fix EXEEXT shims to work also for names like test-prog
29475         * tests/init.sh: Re-exec a better shell, when needed.
29476         If the current shell lacks support for posix $(...), an init.sh-using
29477         test will now try to find a shell that supports that.  If EXEEXT is
29478         nonempty, we also require support for hyphen-in-alias-name and shell
29479         substitutions like ${var#glob}.  Failure to find such a shell results
29480         in a skipped test.
29481
29482 2010-02-21  Bruno Haible  <bruno@clisp.org>
29483
29484         Really work around around "broken pipe" error message from bash 3.2.
29485         * gnulib-tool (func_reset_sigpipe): Remove function.
29486         (echo): In bash 3.2, define to a function that uses printf.
29487         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
29488
29489 2010-02-20  Bruno Haible  <bruno@clisp.org>
29490
29491         Restore support for automake 1.9.6 with autoconf 2.61.
29492         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
29493         Reported by James Youngman <jay@gnu.org>.
29494
29495 2010-02-20  Bruno Haible  <bruno@clisp.org>
29496
29497         Improve *printf warning condition.
29498         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
29499         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
29500         and the function is overridden due to SIGPIPE emulation.
29501
29502 2010-02-20  Bruno Haible  <bruno@clisp.org>
29503
29504         * lib/stdio.in.h: Tweak comments.
29505
29506 2010-02-19  Bruno Haible  <bruno@clisp.org>
29507
29508         Make it easier to find modules. New gnulib-tool option '--find'.
29509         * gnulib-tool: New option --find.
29510         (func_usage): Document it.
29511         (func_sanitize_modulelist): New function, extracted from
29512         func_all_modules.
29513         (func_all_modules): Invoke it.
29514         * doc/gnulib-tool.texi (Which modules?): New node.
29515
29516 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
29517
29518         * lib/sys_select.in.h: Provide select replacement even if
29519         sys/select.h exists on a system, for Interix.
29520
29521 2010-02-18  Jim Meyering  <meyering@redhat.com>
29522
29523         init.sh: don't use $(...) just yet
29524         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
29525         to accommodate e.g., Solaris' /bin/sh.
29526
29527 2010-02-17  Bruno Haible  <bruno@clisp.org>
29528
29529         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
29530         Reported by Ludovic Courtès <ludo@gnu.org>.
29531
29532 2010-02-16  Simon Josefsson  <simon@josefsson.org>
29533
29534         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
29535         linking with -lintl.
29536
29537 2010-02-17  Simon Josefsson  <simon@josefsson.org>
29538
29539         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
29540         if not provided by the system's netdb.h.  Reported by
29541         ludo@gnu.org (Ludovic Courtès).
29542
29543 2010-02-15  Jim Meyering  <meyering@redhat.com>
29544
29545         init.sh: improve portability and efficiency
29546         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
29547         "dummy" in a for loop.
29548         Use '!', not '^' to select the complement of a character set used
29549         in a "case" statement.
29550         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
29551         Suggestions from Eric Blake.
29552
29553         init.sh: automatically accommodate programs with the .exe suffix
29554         Automatically arrange for an invocation of "prog" to execute the
29555         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
29556         may use the simpler "prog", yet still work when built on a system
29557         that requires specifying the added suffix.
29558         Do this by constructing a function named "prog" that invokes
29559         "prog.exe" for each .exe file in selected directories.
29560         * tests/init.sh (find_exe_basenames_): New function.
29561         (create_exe_shim_functions_): New function.
29562         (path_prepend_): Use it.
29563
29564         maint.mk: mark syntax-check sc_*.m rules as .PHONY
29565         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
29566         "make -t syntax-check" doesn't create a ton of sc_*.m files.
29567
29568 2010-02-14  Jim Meyering  <meyering@redhat.com>
29569
29570         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
29571         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
29572         (sc_prohibit_hash_pjw_without_use): New rule.
29573
29574         maint.mk: allow the default upload destination dir to be overridden
29575         * top/maint.mk (upload_dest_dir_): Define with a default that
29576         preserves the status quo.
29577         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
29578         Reported by Peter Simons.
29579
29580         maint.mk: prohibit inclusion of "hash.h" without_use
29581         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
29582
29583 2010-02-10  Jim Meyering  <meyering@redhat.com>
29584
29585         maint.mk: prohibit inclusion of "ignore-value.h" without_use
29586         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
29587
29588 2010-02-09  Eric Blake  <ebb9@byu.net>
29589         and Bruno Haible  <bruno@clisp.org>
29590
29591         obstack-printf-posix: ensure declaration
29592         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
29593         extracted from gl_FUNC_OBSTACK_PRINTF.
29594         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
29595         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29596         Likewise.
29597         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
29598         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
29599         0.
29600
29601 2010-02-08  Bruno Haible  <bruno@clisp.org>
29602
29603         gnulib-tool: Fix typo in 2010-02-07 commit.
29604         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
29605         Reported by Eric Blake.
29606
29607 2010-02-07  Bruno Haible  <bruno@clisp.org>
29608
29609         gnulib-tool: Fix up caching patches.
29610         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
29611         option --no-cache. Use associative arrays when supported by the shell.
29612         (sed_comments): New variable.
29613         (modcache): Renamed from do_cache.
29614         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
29615         abbreviate unnecessarily.
29616         (have_associative): New variable.
29617         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
29618         way also for ksh and zsh.
29619         (func_init_sed_convert_to_cache_statements): New function, extracted
29620         from func_cache_lookup_module. Add support for associative arrays.
29621         Don't set the c_MODULE_cached variable here. Ignore all lines before
29622         the first field header. Remove only the final newline, not all trailing
29623         newlines. Support empty fields correctly. Limit the use of 'eval' to
29624         assignments.
29625         (func_get_description, func_get_status, func_get_notice,
29626         func_get_applicability, func_get_filelist, func_get_dependencies,
29627         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
29628         func_get_automake_snippet, func_get_include_directive,
29629         func_get_link_directive, func_get_license, func_get_maintainer):
29630         Update documentation. List the unoptimized code first. Add support for
29631         associative arrays. Limit the use of 'eval' to assignments.
29632         (func_get_applicability): Undo stylistic pessimisations.
29633         (func_get_automake_snippet, func_get_include_directive): Reduce code
29634         duplication.
29635         (func_modules_transitive_closure, func_modules_add_dummy,
29636         func_modules_notice, func_modules_to_filelist, func_add_file,
29637         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
29638         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
29639         func_create_testdir, func_create_megatestdir): Update documentation.
29640
29641 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29642
29643         * gnulib-tool (func_cache_lookup_module): Store the module name
29644         belonging to the cache variable; error out if two different
29645         module names map to the same cache variable name.
29646
29647 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29648
29649         gnulib-tool: Make caching optional.
29650         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
29651         Update matching short versions of --no-changelog.
29652         (func_usage): Update.
29653         (sed_extract_cache_prog): Renamed from ...
29654         (sed_extract_prog): ... this; revert to old extraction script.
29655         (func_get_description, func_get_status)
29656         (func_get_notice, func_get_applicability, func_get_filelist)
29657         (func_get_dependencies, func_get_autoconf_early_snippet)
29658         (func_get_autoconf_snippet, func_get_automake_snippet)
29659         (func_get_include_directive, func_get_link_directive)
29660         (func_get_license, func_get_maintainer): If $do_cache is false,
29661         use old, non-caching extraction scripts.
29662         Suggestion by Bruno Haible.
29663
29664 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29665
29666         gnulib-tool: cache module metainformation.
29667         * gnulib-tool (sed_extract_prog): Match newline before each
29668         header, and rewrite header to a shell variable suffix.
29669         (func_cache_var, func_cache_lookup_module): New functions,
29670         to turn a module name into a cache variable prefix, and to
29671         look up and cache module metainformation.
29672         (func_get_description, func_get_status)
29673         (func_get_notice, func_get_applicability, func_get_filelist)
29674         (func_get_dependencies, func_get_autoconf_early_snippet)
29675         (func_get_autoconf_snippet, func_get_automake_snippet)
29676         (func_get_include_directive, func_get_link_directive)
29677         (func_get_license, func_get_maintainer): Use
29678         func_cache_lookup_module.
29679
29680 2010-02-07  Bruno Haible  <bruno@clisp.org>
29681
29682         fnctl: Fix missing dependency.
29683         * modules/fcntl (Depends-on): Add getdtablesize.
29684         Reported by John W. Eaton <jwe@gnu.org>.
29685
29686 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29687
29688         Argp: fix recognition of short alias options.
29689
29690         * lib/argp-parse.c (convert_options): Fix improper use of
29691         `|' between character values.
29692         * tests/test-argp.c (group1_option): New alias option
29693         --read (-r).
29694         (group1_parser): Special handling for 'r'.
29695         (test15): New test case.
29696         (test_fun): Add test15.
29697         * tests/test-argp-2.sh: Update expected --help and --usage
29698         outputs.
29699
29700 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29701
29702         * tests/test-argp.c: Fix indentation.
29703
29704 2010-02-04  Eric Blake  <ebb9@byu.net>
29705
29706         gettimeofday: expose type of second argument
29707         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
29708         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
29709         * tests/test-gettimeofday.c: Use it to silence warning.
29710         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
29711         the issue.
29712
29713 2010-02-03  Jim Meyering  <meyering@redhat.com>
29714
29715         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
29716         * lib/regcomp.c (TYPE_SIGNED): Define.
29717         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
29718
29719         regcomp.c: avoid a new -Wshadow warning
29720         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
29721
29722 2010-02-01  Jim Meyering  <meyering@redhat.com>
29723
29724         removing useless parentheses in cpp #define directives
29725         For motivation, see commit c0221df4, "define STREQ(a,b)
29726         consistently, removing useless parentheses"
29727         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
29728         * lib/mountlist.c (MNT_IGNORE): Likewise.
29729         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
29730
29731 2010-02-01  Eric Blake  <ebb9@byu.net>
29732
29733         sys_time: use link-warning
29734         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
29735         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
29736         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
29737         * modules/sys_time (Depends-on): Add warn-on-use.
29738         (Makefile.am): Always build replacement.
29739         (configure.ac): Update substitutions.
29740         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
29741         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
29742         bother with SYS_TIME_H.
29743         * modules/gettimeofday (configure.ac): Declare indicator.
29744         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
29745         in use.
29746
29747         closein-tests: silence compiler warning
29748         * tests/test-closein.c (main): Ignore fread result.
29749         * modules/closein-tests (Depends-on): Add ignore-value.
29750
29751         tests: silence warning about system return
29752         * tests/test-areadlink-with-size.c (main): Ignore system result.
29753         * tests/test-areadlink.c (main): Likewise.
29754         * tests/test-areadlinkat-with-size.c (main): Likewise.
29755         * tests/test-areadlinkat.c (main): Likewise.
29756         * tests/test-canonicalize-lgpl.c (main): Likewise.
29757         * tests/test-canonicalize.c (main): Likewise.
29758         * tests/test-chown.c (main): Likewise.
29759         * tests/test-fchownat.c (main): Likewise.
29760         * tests/test-fdutimensat.c (main): Likewise.
29761         * tests/test-fstatat.c (main): Likewise.
29762         * tests/test-futimens.c (main): Likewise.
29763         * tests/test-lchown.c (main): Likewise.
29764         * tests/test-link.c (main): Likewise.
29765         * tests/test-linkat.c (main): Likewise.
29766         * tests/test-lstat.c (main): Likewise.
29767         * tests/test-mkdir.c (main): Likewise.
29768         * tests/test-mkdirat.c (main): Likewise.
29769         * tests/test-mkfifo.c (main): Likewise.
29770         * tests/test-mkfifoat.c (main): Likewise.
29771         * tests/test-mknod.c (main): Likewise.
29772         * tests/test-readlink.c (main): Likewise.
29773         * tests/test-remove.c (main): Likewise.
29774         * tests/test-rename.c (main): Likewise.
29775         * tests/test-renameat.c (main): Likewise.
29776         * tests/test-rmdir.c (main): Likewise.
29777         * tests/test-symlink.c (main): Likewise.
29778         * tests/test-symlinkat.c (main): Likewise.
29779         * tests/test-unlink.c (main): Likewise.
29780         * tests/test-unlinkat.c (main): Likewise.
29781         * tests/test-utimens.c (main): Likewise.
29782         * tests/test-utimensat.c (main): Likewise.
29783         * modules/areadlink-tests (Depends-on): Add ignore-value.
29784         * modules/areadlink-with-size-tests (Depends-on): Likewise.
29785         * modules/areadlinkat-tests (Depends-on): Likewise.
29786         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
29787         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29788         * modules/canonicalize-tests (Depends-on): Likewise.
29789         * modules/chown-tests (Depends-on): Likewise.
29790         * modules/fdutimensat-tests (Depends-on): Likewise.
29791         * modules/futimens-tests (Depends-on): Likewise.
29792         * modules/lchown-tests (Depends-on): Likewise.
29793         * modules/link-tests (Depends-on): Likewise.
29794         * modules/linkat-tests (Depends-on): Likewise.
29795         * modules/lstat-tests (Depends-on): Likewise.
29796         * modules/mkdir-tests (Depends-on): Likewise.
29797         * modules/mkfifo-tests (Depends-on): Likewise.
29798         * modules/mkfifoat-tests (Depends-on): Likewise.
29799         * modules/mknod-tests (Depends-on): Likewise.
29800         * modules/openat-tests (Depends-on): Likewise.
29801         * modules/readlink-tests (Depends-on): Likewise.
29802         * modules/remove-tests (Depends-on): Likewise.
29803         * modules/rename-tests (Depends-on): Likewise.
29804         * modules/renameat-tests (Depends-on): Likewise.
29805         * modules/rmdir-tests (Depends-on): Likewise.
29806         * modules/symlink-tests (Depends-on): Likewise.
29807         * modules/symlinkat-tests (Depends-on): Likewise.
29808         * modules/unlink-tests (Depends-on): Likewise.
29809         * modules/utimens-tests (Depends-on): Likewise.
29810         * modules/utimensat-tests (Depends-on): Likewise.
29811
29812 2010-01-31  Bruno Haible  <bruno@clisp.org>
29813
29814         Perform the same test for many <math.h> functions.
29815         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
29816         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
29817         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
29818         of gl_MATHFUNC.
29819         * modules/acos (configure.ac): Likewise.
29820         * modules/asin (configure.ac): Likewise.
29821         * modules/atan (configure.ac): Likewise.
29822         * modules/atan2 (configure.ac): Likewise.
29823         * modules/cbrt (configure.ac): Likewise.
29824         * modules/copysign (configure.ac): Likewise.
29825         * modules/cos (configure.ac): Likewise.
29826         * modules/cosh (configure.ac): Likewise.
29827         * modules/erf (configure.ac): Likewise.
29828         * modules/erfc (configure.ac): Likewise.
29829         * modules/exp (configure.ac): Likewise.
29830         * modules/fmod (configure.ac): Likewise.
29831         * modules/hypot (configure.ac): Likewise.
29832         * modules/j0 (configure.ac): Likewise.
29833         * modules/j1 (configure.ac): Likewise.
29834         * modules/jn (configure.ac): Likewise.
29835         * modules/lgamma (configure.ac): Likewise.
29836         * modules/log (configure.ac): Likewise.
29837         * modules/log10 (configure.ac): Likewise.
29838         * modules/log1p (configure.ac): Likewise.
29839         * modules/pow (configure.ac): Likewise.
29840         * modules/remainder (configure.ac): Likewise.
29841         * modules/sin (configure.ac): Likewise.
29842         * modules/sinh (configure.ac): Likewise.
29843         * modules/tan (configure.ac): Likewise.
29844         * modules/tanh (configure.ac): Likewise.
29845         * modules/y0 (configure.ac): Likewise.
29846         * modules/y1 (configure.ac): Likewise.
29847         * modules/yn (configure.ac): Likewise.
29848         Suggested by Paolo Bonzini.
29849
29850 2010-01-31  Bruno Haible  <bruno@clisp.org>
29851
29852         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
29853
29854 2010-01-31  Bruno Haible  <bruno@clisp.org>
29855
29856         Work around getdelim() bug on FreeBSD 8.0.
29857         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
29858         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
29859         not work.
29860         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
29861         is 1.
29862         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
29863         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
29864         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
29865         a non-zero size.
29866         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
29867
29868 2010-01-31  Bruno Haible  <bruno@clisp.org>
29869
29870         Work around getline() bug on FreeBSD 8.0.
29871         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
29872         and a non-zero size.
29873         * tests/test-getline.c (main): Likewise.
29874         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
29875         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
29876
29877 2010-01-28  Eric Blake  <ebb9@byu.net>
29878
29879         regex: fix build failure
29880         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
29881         platforms.
29882
29883 2010-01-28  Jim Meyering  <meyering@redhat.com>
29884
29885         regex: do not ignore memory allocation failure
29886         * lib/regex_internal.c (create_cd_newstate): Detect
29887         re_node_set_init_copy failure.   Extracted from glibc commit
29888         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29889
29890         regex: sync more white-space changes from libc
29891         * lib/regex_internal.c: White-space only changes.
29892         * lib/regexec.c: Likewise.
29893
29894         regex: add many uses of __attribute_warn_unused_result__
29895         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
29896         * lib/regexec.c: Likewise.
29897         Extracted from a messy glibc commit.
29898
29899         regcomp.c: spelling and merge-artifact from glibc
29900         * lib/regcomp.c: Merge remainder of glibc's
29901         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29902
29903         regcomp.c: sync white-space changes from glibc
29904         * lib/regcomp.c: Merge to accommodate white space
29905         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29906
29907         regcomp.c: do not ignore internal return values
29908         * lib/regcomp.c: Do not ignore internal return values.
29909         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
29910         but without its white-space changes and spelling fixes.
29911
29912         regex_internal.h: define __attribute_warn_unused_result__
29913         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
29914
29915         maint: add a syntax-check rule to check for vulnerable Makefile.in
29916         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
29917
29918 2010-01-27  Jim Meyering  <meyering@redhat.com>
29919
29920         ncftpput-ftp: clean up spaces
29921         * build-aux/ncftpput-ftp: Make Copyright line consistent.
29922         Remove trailing blanks.
29923
29924 2010-01-27  Simon Josefsson  <simon@josefsson.org>
29925
29926         * build-aux/git-version-gen: Fix copyright statement.
29927         * build-aux/gnupload: Likewise.
29928         * tests/test-arcfour.c: Likewise.
29929         * tests/test-arctwo.c: Likewise.
29930         * tests/test-count-one-bits.c: Likewise.
29931         * tests/test-crc.c: Likewise.
29932         * tests/test-des.c: Likewise.
29933         * tests/test-gc-arcfour.c: Likewise.
29934         * tests/test-gc-arctwo.c: Likewise.
29935         * tests/test-gc-des.c: Likewise.
29936         * tests/test-gc-hmac-md5.c: Likewise.
29937         * tests/test-gc-hmac-sha1.c: Likewise.
29938         * tests/test-gc-md2.c: Likewise.
29939         * tests/test-gc-md4.c: Likewise.
29940         * tests/test-gc-md5.c: Likewise.
29941         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29942         * tests/test-gc-rijndael.c: Likewise.
29943         * tests/test-gc-sha1.c: Likewise.
29944         * tests/test-gc.c: Likewise.
29945         * tests/test-gethostname.c: Likewise.
29946         * tests/test-gettimeofday.c: Likewise.
29947         * tests/test-hash.c: Likewise.
29948         * tests/test-hmac-md5.c: Likewise.
29949         * tests/test-hmac-sha1.c: Likewise.
29950         * tests/test-md2.c: Likewise.
29951         * tests/test-md4.c: Likewise.
29952         * tests/test-md5.c: Likewise.
29953         * tests/test-memchr.c: Likewise.
29954         * tests/test-memchr2.c: Likewise.
29955         * tests/test-memcmp.c: Likewise.
29956         * tests/test-memmem.c: Likewise.
29957         * tests/test-memrchr.c: Likewise.
29958         * tests/test-rawmemchr.c: Likewise.
29959         * tests/test-read-file.c: Likewise.
29960         * tests/test-rijndael.c: Likewise.
29961         * tests/test-sockets.c: Likewise.
29962         * tests/test-strchrnul.c: Likewise.
29963         * tests/test-strstr.c: Likewise.
29964         * tests/test-strtod.c: Likewise.
29965         * build-aux/ncftpput-ftp: Likewise.
29966
29967 2010-01-26  Eric Blake  <ebb9@byu.net>
29968
29969         ignore-value: update recommended header name
29970         * modules/ignore-value (Include): Only use <> for headers that
29971         exist in glibc.
29972
29973 2010-01-26  Jim Meyering  <meyering@redhat.com>
29974
29975         test-userspec.c: avoid compiler warnings
29976         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
29977         and "initialization discards qualifiers..." warnings.
29978         Put the first "uid" in its own scope, and make char* members "const".
29979
29980 2010-01-25  Bruno Haible  <bruno@clisp.org>
29981
29982         gnulib-tool: Make warning diagnostics consistent.
29983         * gnulib-tool (func_warning): New function.
29984         Use it everywhere where gnulib-tool produces output to stderr and it is
29985         not a fatal error.
29986
29987 2010-01-25  Bruno Haible  <bruno@clisp.org>
29988
29989         Fix test dependencies.
29990         * modules/xstrtol-tests (Depends-on): Add inttypes.
29991         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
29992
29993 2010-01-25 Pádraig Brady <P@draigBrady.com>
29994
29995         syntax-check: detect incorrect boolean macro values in config.h
29996         * modules/maintainer-makefile (configure.ac): Parameterize the location
29997         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
29998         The logic is from Eric Blake and the location indicated by Jim Meyering.
29999         Note the more natural CONFIG_HEADER name is prohibited by automake
30000         for backwards compatibility reasons.
30001         * top/maint.mk (sc_Wundef_boolean): New rule.
30002
30003 2010-01-25  Jim Meyering  <meyering@redhat.com>
30004
30005         bootstrap: detect MacOS 10.6's shasum, too
30006         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
30007         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
30008
30009 2010-01-23  Jim Meyering  <meyering@redhat.com>
30010
30011         xstrtoll: new module
30012         * modules/xstrtoll: New file.
30013         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
30014         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
30015         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
30016         ./configure fails if you use this module and lack "long long".
30017         * modules/xstrtoll-tests: New module.
30018         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
30019         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
30020         new init.sh-based test framework.
30021
30022 2010-01-24  Bruno Haible  <bruno@clisp.org>
30023
30024         Tests for module 'yn'.
30025         * modules/yn-tests: New file.
30026         * tests/test-yn.c: New file.
30027
30028         Tests for module 'y1'.
30029         * modules/y1-tests: New file.
30030         * tests/test-y1.c: New file.
30031
30032         Tests for module 'y0'.
30033         * modules/y0-tests: New file.
30034         * tests/test-y0.c: New file.
30035
30036         Tests for module 'tanh'.
30037         * modules/tanh-tests: New file.
30038         * tests/test-tanh.c: New file.
30039
30040         Tests for module 'tan'.
30041         * modules/tan-tests: New file.
30042         * tests/test-tan.c: New file.
30043
30044         Tests for module 'sqrt'.
30045         * modules/sqrt-tests: New file.
30046         * tests/test-sqrt.c: New file.
30047
30048         Tests for module 'sinh'.
30049         * modules/sinh-tests: New file.
30050         * tests/test-sinh.c: New file.
30051
30052         Tests for module 'sin'.
30053         * modules/sin-tests: New file.
30054         * tests/test-sin.c: New file.
30055
30056         Tests for module 'rint'.
30057         * modules/rint-tests: New file.
30058         * tests/test-rint.c: New file.
30059
30060         Tests for module 'remainder'.
30061         * modules/remainder-tests: New file.
30062         * tests/test-remainder.c: New file.
30063
30064         Tests for module 'pow'.
30065         * modules/pow-tests: New file.
30066         * tests/test-pow.c: New file.
30067
30068         Tests for module 'nextafter'.
30069         * modules/nextafter-tests: New file.
30070         * tests/test-nextafter.c: New file.
30071
30072         Tests for module 'modf'.
30073         * modules/modf-tests: New file.
30074         * tests/test-modf.c: New file.
30075
30076         Tests for module 'logb'.
30077         * modules/logb-tests: New file.
30078         * tests/test-logb.c: New file.
30079
30080         Tests for module 'log1p'.
30081         * modules/log1p-tests: New file.
30082         * tests/test-log1p.c: New file.
30083
30084         Tests for module 'log10'.
30085         * modules/log10-tests: New file.
30086         * tests/test-log10.c: New file.
30087
30088         Tests for module 'log'.
30089         * modules/log-tests: New file.
30090         * tests/test-log.c: New file.
30091
30092         Tests for module 'lgamma'.
30093         * modules/lgamma-tests: New file.
30094         * tests/test-lgamma.c: New file.
30095
30096         Tests for module 'ldexp'.
30097         * modules/ldexp-tests: New file.
30098         * tests/test-ldexp.c: New file.
30099
30100         Tests for module 'jn'.
30101         * modules/jn-tests: New file.
30102         * tests/test-jn.c: New file.
30103
30104         Tests for module 'j1'.
30105         * modules/j1-tests: New file.
30106         * tests/test-j1.c: New file.
30107
30108         Tests for module 'j0'.
30109         * modules/j0-tests: New file.
30110         * tests/test-j0.c: New file.
30111
30112         Tests for module 'hypot'.
30113         * modules/hypot-tests: New file.
30114         * tests/test-hypot.c: New file.
30115
30116         Tests for module 'fmod'.
30117         * modules/fmod-tests: New file.
30118         * tests/test-fmod.c: New file.
30119
30120         Tests for module 'fabs'.
30121         * modules/fabs-tests: New file.
30122         * tests/test-fabs.c: New file.
30123
30124         Tests for module 'exp'.
30125         * modules/exp-tests: New file.
30126         * tests/test-exp.c: New file.
30127
30128         Tests for module 'erfc'.
30129         * modules/erfc-tests: New file.
30130         * tests/test-erfc.c: New file.
30131
30132         Tests for module 'erf'.
30133         * modules/erf-tests: New file.
30134         * tests/test-erf.c: New file.
30135
30136         Tests for module 'cosh'.
30137         * modules/cosh-tests: New file.
30138         * tests/test-cosh.c: New file.
30139
30140         Tests for module 'cos'.
30141         * modules/cos-tests: New file.
30142         * tests/test-cos.c: New file.
30143
30144         Tests for module 'copysign'.
30145         * modules/copysign-tests: New file.
30146         * tests/test-copysign.c: New file.
30147
30148         Tests for module 'cbrt'.
30149         * modules/cbrt-tests: New file.
30150         * tests/test-cbrt.c: New file.
30151
30152         Tests for module 'atan2'.
30153         * modules/atan2-tests: New file.
30154         * tests/test-atan2.c: New file.
30155
30156         Tests for module 'atan'.
30157         * modules/atan-tests: New file.
30158         * tests/test-atan.c: New file.
30159
30160         Tests for module 'asin'.
30161         * modules/asin-tests: New file.
30162         * tests/test-asin.c: New file.
30163
30164         Tests for module 'acos'.
30165         * modules/acos-tests: New file.
30166         * tests/test-acos.c: New file.
30167
30168 2010-01-24  Bruno Haible  <bruno@clisp.org>
30169
30170         Fix tests for common <math.h> functions.
30171         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
30172         code snippet that references the function pointer, rather than merely
30173         calling the function. Substitute the FUNC_LIBM variable.
30174         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
30175         * modules/acos (configure.ac): Likewise.
30176         * modules/asin (configure.ac): Likewise.
30177         * modules/atan (configure.ac): Likewise.
30178         * modules/atan2 (configure.ac): Likewise.
30179         * modules/cbrt (configure.ac): Likewise.
30180         * modules/copysign (configure.ac): Likewise.
30181         * modules/cos (configure.ac): Likewise.
30182         * modules/cosh (configure.ac): Likewise.
30183         * modules/erf (configure.ac): Likewise.
30184         * modules/erfc (configure.ac): Likewise.
30185         * modules/exp (configure.ac): Likewise.
30186         * modules/fabs (configure.ac): Likewise.
30187         * modules/fmod (configure.ac): Likewise.
30188         * modules/hypot (configure.ac): Likewise.
30189         * modules/j0 (configure.ac): Likewise.
30190         * modules/j1 (configure.ac): Likewise.
30191         * modules/jn (configure.ac): Likewise.
30192         * modules/ldexp (configure.ac): Likewise.
30193         * modules/lgamma (configure.ac): Likewise.
30194         * modules/log (configure.ac): Likewise.
30195         * modules/log10 (configure.ac): Likewise.
30196         * modules/log1p (configure.ac): Likewise.
30197         * modules/logb (configure.ac): Likewise.
30198         * modules/modf (configure.ac): Likewise.
30199         * modules/nextafter (configure.ac): Likewise.
30200         * modules/pow (configure.ac): Likewise.
30201         * modules/remainder (configure.ac): Likewise.
30202         * modules/rint (configure.ac): Likewise.
30203         * modules/sin (configure.ac): Likewise.
30204         * modules/sinh (configure.ac): Likewise.
30205         * modules/tan (configure.ac): Likewise.
30206         * modules/tanh (configure.ac): Likewise.
30207         * modules/y0 (configure.ac): Likewise.
30208         * modules/y1 (configure.ac): Likewise.
30209         * modules/yn (configure.ac): Likewise.
30210
30211 2010-01-24  Bruno Haible  <bruno@clisp.org>
30212
30213         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
30214         * tests/test-acosl.c (x): New variable.
30215         (main): Store argument in x and fetch it from x.
30216         * tests/test-asinl.c (x): New variable.
30217         (main): Store argument in x and fetch it from x.
30218         * tests/test-atanl.c (x): New variable.
30219         (main): Store argument in x and fetch it from x.
30220         * tests/test-cosl.c (x): New variable.
30221         (main): Store argument in x and fetch it from x.
30222         * tests/test-expl.c (x): New variable.
30223         (main): Store argument in x and fetch it from x.
30224         * tests/test-logl.c (x): New variable.
30225         (main): Store argument in x and fetch it from x.
30226         * tests/test-sinl.c (x): New variable.
30227         (main): Store argument in x and fetch it from x.
30228         * tests/test-sqrtl.c (x): New variable.
30229         (main): Store argument in x and fetch it from x.
30230         * tests/test-tanl.c (x): New variable.
30231         (main): Store argument in x and fetch it from x.
30232
30233 2010-01-24  Bruno Haible  <bruno@clisp.org>
30234
30235         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
30236         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
30237         assignments to the initial TESTS_ENVIRONMENT.
30238         * doc/gnulib.texi (Unit test modules): Document it.
30239         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
30240         TESTS_ENVIRONMENT.
30241         * modules/btowc-tests (Makefile.am): Likewise.
30242         * modules/c-stack-tests (Makefile.am): Likewise.
30243         * modules/c-strcase-tests (Makefile.am): Likewise.
30244         * modules/copy-file-tests (Makefile.am): Likewise.
30245         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
30246         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
30247         * modules/mbrtowc-tests (Makefile.am): Likewise.
30248         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30249         * modules/mbscasestr-tests (Makefile.am): Likewise.
30250         * modules/mbschr-tests (Makefile.am): Likewise.
30251         * modules/mbscspn-tests (Makefile.am): Likewise.
30252         * modules/mbsinit-tests (Makefile.am): Likewise.
30253         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30254         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
30255         * modules/mbspbrk-tests (Makefile.am): Likewise.
30256         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30257         * modules/mbsrchr-tests (Makefile.am): Likewise.
30258         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
30259         * modules/mbsspn-tests (Makefile.am): Likewise.
30260         * modules/mbsstr-tests (Makefile.am): Likewise.
30261         * modules/nl_langinfo-tests (Makefile.am): Likewise.
30262         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
30263         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30264         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30265         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30266         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30267         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
30268         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30269         * modules/wcrtomb-tests (Makefile.am): Likewise.
30270         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
30271         * modules/wcsrtombs-tests (Makefile.am): Likewise.
30272         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
30273         assignments from TESTS_ENVIRONMENT.
30274         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
30275         augmentation.
30276         * modules/argp-version-etc-tests (Makefile.am): Likewise.
30277         * modules/atexit-tests (Makefile.am): Likewise.
30278         * modules/binary-io-tests (Makefile.am): Likewise.
30279         * modules/closein-tests (Makefile.am): Likewise.
30280         * modules/dprintf-posix-tests (Makefile.am): Likewise.
30281         * modules/exclude-tests (Makefile.am): Likewise.
30282         * modules/fflush-tests (Makefile.am): Likewise.
30283         * modules/fpending-tests (Makefile.am): Likewise.
30284         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30285         * modules/freadahead-tests (Makefile.am): Likewise.
30286         * modules/freadptr-tests (Makefile.am): Likewise.
30287         * modules/freadseek-tests (Makefile.am): Likewise.
30288         * modules/fseek-tests (Makefile.am): Likewise.
30289         * modules/fseeko-tests (Makefile.am): Likewise.
30290         * modules/ftell-tests (Makefile.am): Likewise.
30291         * modules/ftello-tests (Makefile.am): Likewise.
30292         * modules/idpriv-drop-tests (Makefile.am): Likewise.
30293         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
30294         * modules/lseek-tests (Makefile.am): Likewise.
30295         * modules/parse-duration-tests (Makefile.am): Likewise.
30296         * modules/perror-tests (Makefile.am): Likewise.
30297         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
30298         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
30299         * modules/pipe-tests (Makefile.am): Likewise.
30300         * modules/pread-tests (Makefile.am): Likewise.
30301         * modules/printf-posix-tests (Makefile.am): Likewise.
30302         * modules/select-tests (Makefile.am): Likewise.
30303         * modules/sigpipe-tests (Makefile.am): Likewise.
30304         * modules/tsearch-tests (Makefile.am): Likewise.
30305         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
30306         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
30307         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30308         * modules/uniwidth/width-tests (Makefile.am): Likewise.
30309         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
30310         * modules/version-etc-tests (Makefile.am): Likewise.
30311         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30312         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30313         * modules/xalloc-die-tests (Makefile.am): Likewise.
30314         * modules/xprintf-posix-tests (Makefile.am): Likewise.
30315         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30316         * modules/xstrtol-tests (Makefile.am): Likewise.
30317         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30318         * modules/yesno-tests (Makefile.am): Likewise.
30319         Suggested by Jim Meyering.
30320
30321 2010-01-24  Bruno Haible  <bruno@clisp.org>
30322
30323         More documentation.
30324         * doc/gnulib.texi (Writing modules): New chapter.
30325         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
30326         the new chapter.
30327
30328 2010-01-24  Jim Meyering  <meyering@redhat.com>
30329
30330         maint.mk: do not prepend "./" after filtering
30331         * top/maint.mk (_prepend_srcdir_prefix): New variable
30332         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
30333         "./" when $(srcdir) is ".".
30334
30335         define STREQ(a,b) consistently, removing useless parentheses
30336         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
30337         since the only risk is that "a" or "b" contains an unparenthesized
30338         comma, but if either did that, STREQ would have 3 or more arguments.
30339         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
30340         * lib/fts.c (STREQ): Remove unnecessary parentheses.
30341         * lib/hash-triple.c (STREQ): Likewise.
30342         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
30343         * lib/getugroups.c (STREQ): Likewise.
30344
30345 2010-01-23  Jim Meyering  <meyering@redhat.com>
30346
30347         maint.mk: fix syntax-check in a non-srcdir build directory
30348         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
30349         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
30350
30351 2010-01-22  Jim Meyering  <meyering@redhat.com>
30352
30353         userspec: add unit tests
30354         * tests/test-userspec.c: New file.
30355         * modules/userspec-tests: Likewise.
30356
30357 2010-01-21  Jim Meyering  <meyering@redhat.com>
30358
30359         maint.mk: handle source file names containing "." robustly
30360         * top/maint.mk (_dot_escaped_srcdir): Define.
30361         (VC_LIST): Use it in LHS of sed substitution.
30362
30363 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
30364
30365         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
30366         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
30367         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
30368         from a non-srcdir build.
30369
30370 2010-01-20  Eric Blake  <ebb9@byu.net>
30371
30372         warn-on-use: use instead of link-warning
30373         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
30374         * modules/unistd (Depends-on, Makefile.am): Likewise.
30375         * modules/arpa_inet (Depends-on): Replace link-warning with
30376         warn-on-use.
30377         (Makefile.am): Update rules accordingly.
30378         * modules/ctype (Depends-on, Makefile.am): Likewise.
30379         * modules/dirent (Depends-on, Makefile.am): Likewise.
30380         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
30381         * modules/inttypes (Depends-on, Makefile.am): Likewise.
30382         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30383         * modules/locale (Depends-on, Makefile.am): Likewise.
30384         * modules/math (Depends-on, Makefile.am): Likewise.
30385         * modules/search (Depends-on, Makefile.am): Likewise.
30386         * modules/signal (Depends-on, Makefile.am): Likewise.
30387         * modules/spawn (Depends-on, Makefile.am): Likewise.
30388         * modules/stdlib (Depends-on, Makefile.am): Likewise.
30389         * modules/string (Depends-on, Makefile.am): Likewise.
30390         * modules/strings (Depends-on, Makefile.am): Likewise.
30391         * modules/sys_file (Depends-on, Makefile.am): Likewise.
30392         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
30393         * modules/sys_select (Depends-on, Makefile.am): Likewise.
30394         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
30395         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
30396         * modules/sys_times (Depends-on, Makefile.am): Likewise.
30397         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30398         * modules/wchar (Depends-on, Makefile.am): Likewise.
30399         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
30400         should be poisoned.
30401         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
30402         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
30403         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
30404         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30405         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30406         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30407         * m4/math_h.m4 (gl_MATH_H): Likewise.
30408         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30409         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30410         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30411         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30412         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30413         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30414         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30415         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
30416         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
30417         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30418         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30419         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30420         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30421         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30422         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30423         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30424         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
30425         GL_LINK_WARNING.
30426         * lib/ctype.in.h: Likewise.
30427         * lib/dirent.in.h: Likewise.
30428         * lib/fcntl.in.h: Likewise.
30429         * lib/inttypes.in.h: Likewise.
30430         * lib/langinfo.in.h: Likewise.
30431         * lib/locale.in.h: Likewise.
30432         * lib/math.in.h: Likewise.
30433         * lib/search.in.h: Likewise.
30434         * lib/signal.in.h: Likewise.
30435         * lib/spawn.in.h: Likewise.
30436         * lib/stdio.in.h: Likewise.
30437         * lib/stdlib.in.h: Likewise.
30438         * lib/string.in.h: Likewise.
30439         * lib/strings.in.h: Likewise.
30440         * lib/sys_file.in.h: Likewise.
30441         * lib/sys_ioctl.in.h: Likewise.
30442         * lib/sys_select.in.h: Likewise.
30443         * lib/sys_socket.in.h: Likewise.
30444         * lib/sys_stat.in.h: Likewise.
30445         * lib/sys_times.in.h: Likewise.
30446         * lib/sys_utsname.in.h: Likewise.
30447         * lib/unistd.in.h: Likewise.
30448         * lib/wchar.in.h: Likewise.
30449
30450 2010-01-20  Bruno Haible  <bruno@clisp.org>
30451
30452         Avoid duplicate -lm.
30453         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
30454         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
30455         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
30456         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
30457         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
30458         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
30459         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
30460         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
30461         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
30462         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
30463         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
30464         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30465         Reported by Paolo Bonzini.
30466
30467 2010-01-19  Bruno Haible  <bruno@clisp.org>
30468
30469         langinfo, nl_langinfo: Relicense under LGPLv2+.
30470         * modules/langinfo (License): Change to LGPLv2+.
30471         * modules/nl_langinfo (License): Likewise.
30472         Patch by David Lutterkort <lutter@redhat.com>.
30473
30474 2010-01-19  Bruno Haible  <bruno@clisp.org>
30475
30476         Avoid compilation error with cc on OSF/1 5.1.
30477         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
30478         statement, not before.
30479         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30480
30481 2010-01-18  Bruno Haible  <bruno@clisp.org>
30482
30483         Avoid a link error due to the __printf__ symbol.
30484         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
30485         and 2.6.x.
30486         (__format__, __printf__): Remove definitions.
30487         * lib/argp-fmtstream.h: Likewise.
30488         * lib/argp.h: Likewise.
30489         * lib/error.h: Likewise.
30490         * lib/vasnprintf.h: Likewise.
30491         * lib/xprintf.h: Likewise.
30492         * lib/xvasprintf.h: Likewise.
30493         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30494
30495 2010-01-18  Bruno Haible  <bruno@clisp.org>
30496
30497         Tests for module 'tanl'.
30498         * modules/tanl-tests: New file.
30499         * tests/test-tanl.c: New file.
30500
30501         Tests for module 'sqrtl'.
30502         * modules/sqrtl-tests: New file.
30503         * tests/test-sqrtl.c: New file.
30504
30505         Tests for module 'sinl'.
30506         * modules/sinl-tests: New file.
30507         * tests/test-sinl.c: New file.
30508
30509         Tests for module 'logl'.
30510         * modules/logl-tests: New file.
30511         * tests/test-logl.c: New file.
30512
30513         Tests for module 'expl'.
30514         * modules/expl-tests: New file.
30515         * tests/test-expl.c: New file.
30516
30517         Tests for module 'cosl'.
30518         * modules/cosl-tests: New file.
30519         * tests/test-cosl.c: New file.
30520
30521         Tests for module 'atanl'.
30522         * modules/atanl-tests: New file.
30523         * tests/test-atanl.c: New file.
30524
30525         Tests for module 'asinl'.
30526         * modules/asinl-tests: New file.
30527         * tests/test-asinl.c: New file.
30528
30529         Tests for module 'acosl'.
30530         * modules/acosl-tests: New file.
30531         * tests/test-acosl.c: New file.
30532
30533         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30534         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
30535         tanl): Use the standard gnulib idiom.
30536         * lib/cosl.c: Don't include trigl.c and sincosl.c.
30537         * lib/sinl.c: Likewise.
30538         * lib/tanl.c: Don't include trigl.c.
30539         (kernel_tanl): Make static.
30540         * lib/sincosl.c: Include trigl.h first.
30541         * lib/trigl.c: Likewise.
30542         * m4/acosl.m4: New file.
30543         * m4/asinl.m4: New file.
30544         * m4/atanl.m4: New file.
30545         * m4/cosl.m4: New file.
30546         * m4/expl.m4: New file.
30547         * m4/logl.m4: New file.
30548         * m4/sinl.m4: New file.
30549         * m4/sqrtl.m4: New file.
30550         * m4/tanl.m4: New file.
30551         * m4/mathl.m4: Remove file.
30552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
30553         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30554         Don't initialize GNULIB_MATHL.
30555         * modules/acosl: New file.
30556         * modules/asinl: New file.
30557         * modules/atanl: New file.
30558         * modules/cosl: New file.
30559         * modules/expl: New file.
30560         * modules/logl: New file.
30561         * modules/sinl: New file.
30562         * modules/sqrtl: New file.
30563         * modules/tanl: New file.
30564         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
30565         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
30566         substitute GNULIB_MATHL.
30567         * modules/mathl: Rewritten.
30568         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
30569         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
30570         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
30571         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
30572         * doc/posix-functions/expl.texi: Mention the 'expl' module.
30573         * doc/posix-functions/logl.texi: Mention the 'logl' module.
30574         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
30575         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
30576         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
30577
30578 2010-01-18  Bruno Haible  <bruno@clisp.org>
30579
30580         sqrt: Make gl_FUNC_SQRT requirable.
30581         * m4/sqrt.m4: New file.
30582         * modules/sqrt (Files): Add it.
30583         (configure.ac): Invoke gl_FUNC_SQRT.
30584
30585 2010-01-18  Bruno Haible  <bruno@clisp.org>
30586
30587         New modules for common <math.h> functions.
30588         * m4/mathfunc.m4: New file.
30589         * modules/acos: New file.
30590         * modules/asin: New file.
30591         * modules/atan: New file.
30592         * modules/atan2: New file.
30593         * modules/cbrt: New file.
30594         * modules/copysign: New file.
30595         * modules/cos: New file.
30596         * modules/cosh: New file.
30597         * modules/erf: New file.
30598         * modules/erfc: New file.
30599         * modules/exp: New file.
30600         * modules/fabs: New file.
30601         * modules/fmod: New file.
30602         * modules/hypot: New file.
30603         * modules/j0: New file.
30604         * modules/j1: New file.
30605         * modules/jn: New file.
30606         * modules/ldexp: New file.
30607         * modules/lgamma: New file.
30608         * modules/log: New file.
30609         * modules/log10: New file.
30610         * modules/log1p: New file.
30611         * modules/logb: New file.
30612         * modules/modf: New file.
30613         * modules/nextafter: New file.
30614         * modules/pow: New file.
30615         * modules/remainder: New file.
30616         * modules/rint: New file.
30617         * modules/sin: New file.
30618         * modules/sinh: New file.
30619         * modules/sqrt: New file.
30620         * modules/tan: New file.
30621         * modules/tanh: New file.
30622         * modules/y0: New file.
30623         * modules/y1: New file.
30624         * modules/yn: New file.
30625         * doc/posix-functions/acos.texi: Mention the 'acos' module.
30626         * doc/posix-functions/asin.texi: Mention the 'asin' module.
30627         * doc/posix-functions/atan.texi: Mention the 'atan' module.
30628         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
30629         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
30630         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
30631         * doc/posix-functions/cos.texi: Mention the 'cos' module.
30632         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
30633         * doc/posix-functions/erf.texi: Mention the 'erf' module.
30634         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
30635         * doc/posix-functions/exp.texi: Mention the 'exp' module.
30636         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
30637         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
30638         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
30639         * doc/posix-functions/j0.texi: Mention the 'j0' module.
30640         * doc/posix-functions/j1.texi: Mention the 'j1' module.
30641         * doc/posix-functions/jn.texi: Mention the 'jn' module.
30642         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
30643         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
30644         * doc/posix-functions/log.texi: Mention the 'log' module.
30645         * doc/posix-functions/log10.texi: Mention the 'log10' module.
30646         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
30647         * doc/posix-functions/logb.texi: Mention the 'logb' module.
30648         * doc/posix-functions/modf.texi: Mention the 'modf' module.
30649         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
30650         * doc/posix-functions/pow.texi: Mention the 'pow' module.
30651         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
30652         * doc/posix-functions/rint.texi: Mention the 'rint' module.
30653         * doc/posix-functions/sin.texi: Mention the 'sin' module.
30654         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
30655         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
30656         * doc/posix-functions/tan.texi: Mention the 'tan' module.
30657         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
30658         * doc/posix-functions/y0.texi: Mention the 'y0' module.
30659         * doc/posix-functions/y1.texi: Mention the 'y1' module.
30660         * doc/posix-functions/yn.texi: Mention the 'yn' module.
30661
30662 2010-01-18  Jim Meyering  <meyering@redhat.com>
30663
30664         ignore-value: relax license to LGPLv2+
30665         * modules/ignore-value (License): Relax to LGPLv2+.
30666
30667         getdate: don't leak when TZ contains two or more '"'s
30668         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
30669         double quote in TZ after the first one.
30670
30671         readtokens: do not leak internal token_lengths buffer
30672         * lib/readtokens.c (readtokens): Free the local, lengths,
30673         when the supplied "token_lengths" parameter is NULL.
30674
30675 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30676
30677         Fix a couple of missing LIBTHREAD link failures on AIX.
30678         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
30679         $(LIBTHREAD).
30680         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
30681
30682         Link test-poll against INET_PTON_LIB.
30683         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
30684         for inet_pton on Solaris 10.
30685
30686 2010-01-17  Bruno Haible  <bruno@clisp.org>
30687
30688         unistdio/*-sprintf: Fix typo in module description.
30689         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
30690         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
30691         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
30692         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
30693         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
30694         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
30695         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
30696         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30697
30698 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30699
30700         gnulib-tool: fix filelist for AIX, HP-UX ksh.
30701         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
30702         variables in shell case patterns, for AIX and HP-UX ksh.
30703
30704         Split large sed scripts, for HP-UX sed.
30705         * modules/stdio: Split sed scripts around 50 sed commands,
30706         to avoid HP-UX limit of 99 commands, in the near future.
30707         * modules/string: Likewise.
30708         * modules/unistd: Likewise.
30709
30710         gnulib-tool: avoid writing in the current directory.
30711         * gnulib-tool (func_emit_lib_Makefile_am)
30712         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
30713         not in the current directory, so concurrent gnulib-tool
30714         instances do not interfere.
30715
30716 2010-01-16  Jim Meyering  <meyering@redhat.com>
30717
30718         doc: update users.txt
30719         * users.txt: Add grep.
30720         (diffutils, gzip): Update URLs.
30721
30722 2010-01-12  Bruno Haible  <bruno@clisp.org>
30723
30724         posix_spawn: Avoid test failure on Cygwin.
30725         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
30726         characters.
30727         Reported by Simon Josefsson.
30728
30729 2010-01-12  Bruno Haible  <bruno@clisp.org>
30730
30731         * tests/test-cond.c (main): When skipping the test, show the reason.
30732
30733 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30734
30735         * lib/striconv.c (str_cd_iconv): Avoid if before free.
30736
30737 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30738
30739         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
30740         VC_LIST_ALWAYS_EXCLUDE_REGEX.
30741
30742 2010-01-12  Eric Blake  <ebb9@byu.net>
30743
30744         build: guarantee AS_VAR_IF
30745         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
30746         (gl_AS_VAR_IF): Move...
30747         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
30748         Reported by Simon Josefsson.
30749
30750 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30751
30752         * lib/stdio.in.h: Fix typo.
30753
30754 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30755
30756         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
30757         libgpg-error.
30758
30759 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30760
30761         * tests/test-xalloc-die.sh: Use $EXEEXT.
30762
30763 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30764             Bruno Haible  <bruno@clisp.org>
30765
30766         getlogin, getlogin_r: Avoid test failure.
30767         * tests/test-getlogin.c: Include <stdio.h>.
30768         (main): Skip the test when the function fails because stdin is not a
30769         tty.
30770         * tests/test-getlogin_r.c: Include <stdio.h>.
30771         (main): Skip the test when the function fails because stdin is not a
30772         tty.
30773
30774 2010-01-11  Eric Blake  <ebb9@byu.net>
30775
30776         tests: avoid more large file warnings
30777         * tests/test-fflush.c: Avoid warning about ftell use.
30778         * tests/test-fseek.c: Avoid warning about fseek use.
30779
30780 2010-01-10  Bruno Haible  <bruno@clisp.org>
30781
30782         nproc: Work better on Linux when /proc and /sys are not mounted.
30783         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
30784         as lower bound when, on glibc/Linux systems,
30785         sysconf (_SC_NPROCESSORS_CONF) returns 1.
30786         Suggested by Pádraig Brady <P@draigbrady.com>.
30787         Reported by Dmitry V. Levin <ldv@altlinux.org>.
30788
30789         nproc: Refactor.
30790         * lib/nproc.c (num_processors_via_affinity_mask): New function,
30791         extracted from num_processors.
30792         (num_processors): Call it.
30793
30794 2010-01-11  Jim Meyering  <meyering@redhat.com>
30795
30796         utimecmp: avoid new warning from upcoming gcc-4.5.0
30797         * lib/utimecmp.c (BILLION): Define using #define rather than an
30798         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
30799
30800 2010-01-11  Eric Blake  <ebb9@byu.net>
30801
30802         math: add portability warnings for classification macros
30803         * modules/math (Depends-on): Add warn-on-use.
30804         (Makefile.am): Provide new substitutions.
30805         * m4/math_h.m4 (gl_MATH_H): Require inline.
30806         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
30807         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
30808         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
30809         implement warnings.
30810
30811         unistd: warn on use of environ without module
30812         * modules/unistd (Depends-on): Add warn-on-use.
30813         (Makefile.am): Provide new substitutions.
30814         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
30815         * lib/unistd.in.h (environ): Wrap with a warning helper function.
30816
30817         stdio: warn on suspicious uses
30818         * modules/stdio (Depends-on): Add warn-on-use.
30819         (Makefile.am): Provide new substitutions.
30820         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
30821         fseeko.
30822         * lib/stdio.in.h (gets): Always warn on use.
30823         (fseek, ftell): Adjust when warnings are issued, and honor
30824         _GL_NO_LARGE_FILES as a way to silence the warning.
30825         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
30826         any warning about large file offsets.
30827         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
30828         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
30829         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
30830         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
30831         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
30832         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
30833         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
30834         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
30835
30836         warn-on-use: new module
30837         * modules/warn-on-use: New file.
30838         * build-aux/warn-on-use.h: Likewise.
30839         * m4/warn-on-use.m4: Likewise.
30840         * MODULES.html.sh (Support for building): Mention it.
30841
30842 2010-01-10  Bruno Haible  <bruno@clisp.org>
30843
30844         Tests for module 'unistr/u32-strdup'.
30845         * modules/unistr/u32-strdup-tests: New file.
30846         * tests/unistr/test-u32-strdup.c: New file.
30847
30848         Tests for module 'unistr/u16-strdup'.
30849         * modules/unistr/u16-strdup-tests: New file.
30850         * tests/unistr/test-u16-strdup.c: New file.
30851
30852         Tests for module 'unistr/u8-strdup'.
30853         * modules/unistr/u8-strdup-tests: New file.
30854         * tests/unistr/test-u8-strdup.c: New file.
30855         * tests/unistr/test-strdup.h: New file.
30856
30857         Tests for module 'unistr/u32-strncmp'.
30858         * modules/unistr/u32-strncmp-tests: New file.
30859         * tests/unistr/test-u32-strncmp.c: New file.
30860
30861         Tests for module 'unistr/u16-strncmp'.
30862         * modules/unistr/u16-strncmp-tests: New file.
30863         * tests/unistr/test-u16-strncmp.c: New file.
30864
30865         Tests for module 'unistr/u8-strncmp'.
30866         * modules/unistr/u8-strncmp-tests: New file.
30867         * tests/unistr/test-u8-strncmp.c: New file.
30868         * tests/unistr/test-strncmp.h: New file.
30869
30870         Tests for module 'unistr/u32-strcoll'.
30871         * modules/unistr/u32-strcoll-tests: New file.
30872         * tests/unistr/test-u32-strcoll.c: New file.
30873
30874         Tests for module 'unistr/u16-strcoll'.
30875         * modules/unistr/u16-strcoll-tests: New file.
30876         * tests/unistr/test-u16-strcoll.c: New file.
30877
30878         Tests for module 'unistr/u8-strcoll'.
30879         * modules/unistr/u8-strcoll-tests: New file.
30880         * tests/unistr/test-u8-strcoll.c: New file.
30881
30882         Tests for module 'unistr/u32-strcmp'.
30883         * modules/unistr/u32-strcmp-tests: New file.
30884         * tests/unistr/test-u32-strcmp.c: New file.
30885         * tests/unistr/test-u32-strcmp.h: New file.
30886
30887         Tests for module 'unistr/u16-strcmp'.
30888         * modules/unistr/u16-strcmp-tests: New file.
30889         * tests/unistr/test-u16-strcmp.c: New file.
30890         * tests/unistr/test-u16-strcmp.h: New file.
30891
30892         Tests for module 'unistr/u8-strcmp'.
30893         * modules/unistr/u8-strcmp-tests: New file.
30894         * tests/unistr/test-u8-strcmp.c: New file.
30895         * tests/unistr/test-u8-strcmp.h: New file.
30896         * tests/unistr/test-strcmp.h: New file.
30897
30898         Tests for module 'unistr/u32-strncat'.
30899         * modules/unistr/u32-strncat-tests: New file.
30900         * tests/unistr/test-u32-strncat.c: New file.
30901
30902         Tests for module 'unistr/u16-strncat'.
30903         * modules/unistr/u16-strncat-tests: New file.
30904         * tests/unistr/test-u16-strncat.c: New file.
30905
30906         Tests for module 'unistr/u8-strncat'.
30907         * modules/unistr/u8-strncat-tests: New file.
30908         * tests/unistr/test-u8-strncat.c: New file.
30909         * tests/unistr/test-strncat.h: New file.
30910
30911         Tests for module 'unistr/u32-strcat'.
30912         * modules/unistr/u32-strcat-tests: New file.
30913         * tests/unistr/test-u32-strcat.c: New file.
30914
30915         Tests for module 'unistr/u16-strcat'.
30916         * modules/unistr/u16-strcat-tests: New file.
30917         * tests/unistr/test-u16-strcat.c: New file.
30918
30919         Tests for module 'unistr/u8-strcat'.
30920         * modules/unistr/u8-strcat-tests: New file.
30921         * tests/unistr/test-u8-strcat.c: New file.
30922         * tests/unistr/test-strcat.h: New file.
30923
30924         Tests for module 'unistr/u32-stpncpy'.
30925         * modules/unistr/u32-stpncpy-tests: New file.
30926         * tests/unistr/test-u32-stpncpy.c: New file.
30927
30928         Tests for module 'unistr/u16-stpncpy'.
30929         * modules/unistr/u16-stpncpy-tests: New file.
30930         * tests/unistr/test-u16-stpncpy.c: New file.
30931
30932         Tests for module 'unistr/u8-stpncpy'.
30933         * modules/unistr/u8-stpncpy-tests: New file.
30934         * tests/unistr/test-u8-stpncpy.c: New file.
30935         * tests/unistr/test-stpncpy.h: New file.
30936
30937         Tests for module 'unistr/u32-strncpy'.
30938         * modules/unistr/u32-strncpy-tests: New file.
30939         * tests/unistr/test-u32-strncpy.c: New file.
30940
30941         Tests for module 'unistr/u16-strncpy'.
30942         * modules/unistr/u16-strncpy-tests: New file.
30943         * tests/unistr/test-u16-strncpy.c: New file.
30944
30945         Tests for module 'unistr/u8-strncpy'.
30946         * modules/unistr/u8-strncpy-tests: New file.
30947         * tests/unistr/test-u8-strncpy.c: New file.
30948         * tests/unistr/test-strncpy.h: New file.
30949
30950         Tests for module 'unistr/u32-stpcpy'.
30951         * modules/unistr/u32-stpcpy-tests: New file.
30952         * tests/unistr/test-u32-stpcpy.c: New file.
30953
30954         Tests for module 'unistr/u16-stpcpy'.
30955         * modules/unistr/u16-stpcpy-tests: New file.
30956         * tests/unistr/test-u16-stpcpy.c: New file.
30957
30958         Tests for module 'unistr/u8-stpcpy'.
30959         * modules/unistr/u8-stpcpy-tests: New file.
30960         * tests/unistr/test-u8-stpcpy.c: New file.
30961         * tests/unistr/test-stpcpy.h: New file.
30962
30963         Tests for module 'unistr/u32-strcpy'.
30964         * modules/unistr/u32-strcpy-tests: New file.
30965         * tests/unistr/test-u32-strcpy.c: New file.
30966
30967         Tests for module 'unistr/u16-strcpy'.
30968         * modules/unistr/u16-strcpy-tests: New file.
30969         * tests/unistr/test-u16-strcpy.c: New file.
30970
30971         Tests for module 'unistr/u8-strcpy'.
30972         * modules/unistr/u8-strcpy-tests: New file.
30973         * tests/unistr/test-u8-strcpy.c: New file.
30974         * tests/unistr/test-strcpy.h: New file.
30975
30976         Tests for module 'unistr/u32-strnlen'.
30977         * modules/unistr/u32-strnlen-tests: New file.
30978         * tests/unistr/test-u32-strnlen.c: New file.
30979
30980         Tests for module 'unistr/u16-strnlen'.
30981         * modules/unistr/u16-strnlen-tests: New file.
30982         * tests/unistr/test-u16-strnlen.c: New file.
30983
30984         Tests for module 'unistr/u8-strnlen'.
30985         * modules/unistr/u8-strnlen-tests: New file.
30986         * tests/unistr/test-u8-strnlen.c: New file.
30987         * tests/unistr/test-strnlen.h: New file.
30988
30989         Tests for module 'unistr/u32-strlen'.
30990         * modules/unistr/u32-strlen-tests: New file.
30991         * tests/unistr/test-u32-strlen.c: New file.
30992
30993         Tests for module 'unistr/u16-strlen'.
30994         * modules/unistr/u16-strlen-tests: New file.
30995         * tests/unistr/test-u16-strlen.c: New file.
30996
30997         Tests for module 'unistr/u8-strlen'.
30998         * modules/unistr/u8-strlen-tests: New file.
30999         * tests/unistr/test-u8-strlen.c: New file.
31000
31001         Tests for module 'unistr/u32-prev'.
31002         * modules/unistr/u32-prev-tests: New file.
31003         * tests/unistr/test-u32-prev.c: New file.
31004
31005         Tests for module 'unistr/u16-prev'.
31006         * modules/unistr/u16-prev-tests: New file.
31007         * tests/unistr/test-u16-prev.c: New file.
31008
31009         Tests for module 'unistr/u8-prev'.
31010         * modules/unistr/u8-prev-tests: New file.
31011         * tests/unistr/test-u8-prev.c: New file.
31012
31013         Tests for module 'unistr/u32-next'.
31014         * modules/unistr/u32-next-tests: New file.
31015         * tests/unistr/test-u32-next.c: New file.
31016
31017         Tests for module 'unistr/u16-next'.
31018         * modules/unistr/u16-next-tests: New file.
31019         * tests/unistr/test-u16-next.c: New file.
31020
31021         Tests for module 'unistr/u8-next'.
31022         * modules/unistr/u8-next-tests: New file.
31023         * tests/unistr/test-u8-next.c: New file.
31024
31025         Tests for module 'unistr/u32-strmbtouc'.
31026         * modules/unistr/u32-strmbtouc-tests: New file.
31027         * tests/unistr/test-u32-strmbtouc.c: New file.
31028
31029         Tests for module 'unistr/u16-strmbtouc'.
31030         * modules/unistr/u16-strmbtouc-tests: New file.
31031         * tests/unistr/test-u16-strmbtouc.c: New file.
31032
31033         Tests for module 'unistr/u8-strmbtouc'.
31034         * modules/unistr/u8-strmbtouc-tests: New file.
31035         * tests/unistr/test-u8-strmbtouc.c: New file.
31036
31037         Tests for module 'unistr/u32-strmblen'.
31038         * modules/unistr/u32-strmblen-tests: New file.
31039         * tests/unistr/test-u32-strmblen.c: New file.
31040
31041         Tests for module 'unistr/u16-strmblen'.
31042         * modules/unistr/u16-strmblen-tests: New file.
31043         * tests/unistr/test-u16-strmblen.c: New file.
31044
31045         Tests for module 'unistr/u8-strmblen'.
31046         * modules/unistr/u8-strmblen-tests: New file.
31047         * tests/unistr/test-u8-strmblen.c: New file.
31048
31049         Tests for module 'unistr/u32-cpy-alloc'.
31050         * modules/unistr/u32-cpy-alloc-tests: New file.
31051         * tests/unistr/test-u32-cpy-alloc.c: New file.
31052
31053         Tests for module 'unistr/u16-cpy-alloc'.
31054         * modules/unistr/u16-cpy-alloc-tests: New file.
31055         * tests/unistr/test-u16-cpy-alloc.c: New file.
31056
31057         Tests for module 'unistr/u8-cpy-alloc'.
31058         * modules/unistr/u8-cpy-alloc-tests: New file.
31059         * tests/unistr/test-u8-cpy-alloc.c: New file.
31060         * tests/unistr/test-cpy-alloc.h: New file.
31061
31062         Tests for module 'unistr/u32-mbsnlen'.
31063         * modules/unistr/u32-mbsnlen-tests: New file.
31064         * tests/unistr/test-u32-mbsnlen.c: New file.
31065
31066         Tests for module 'unistr/u16-mbsnlen'.
31067         * modules/unistr/u16-mbsnlen-tests: New file.
31068         * tests/unistr/test-u16-mbsnlen.c: New file.
31069
31070         Tests for module 'unistr/u8-mbsnlen'.
31071         * modules/unistr/u8-mbsnlen-tests: New file.
31072         * tests/unistr/test-u8-mbsnlen.c: New file.
31073
31074         Tests for module 'unistr/u32-chr'.
31075         * modules/unistr/u32-chr-tests: New file.
31076         * tests/unistr/test-u32-chr.c: New file.
31077
31078         Tests for module 'unistr/u16-chr'.
31079         * modules/unistr/u16-chr-tests: New file.
31080         * tests/unistr/test-u16-chr.c: New file.
31081
31082         Tests for module 'unistr/u8-chr'.
31083         * modules/unistr/u8-chr-tests: New file.
31084         * tests/unistr/test-u8-chr.c: New file.
31085         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
31086
31087         Tests for module 'unistr/u32-cmp2'.
31088         * modules/unistr/u32-cmp2-tests: New file.
31089         * tests/unistr/test-u32-cmp2.c: New file.
31090
31091         Tests for module 'unistr/u16-cmp2'.
31092         * modules/unistr/u16-cmp2-tests: New file.
31093         * tests/unistr/test-u16-cmp2.c: New file.
31094
31095         Tests for module 'unistr/u8-cmp2'.
31096         * modules/unistr/u8-cmp2-tests: New file.
31097         * tests/unistr/test-u8-cmp2.c: New file.
31098         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
31099
31100         Tests for module 'unistr/u32-cmp'.
31101         * modules/unistr/u32-cmp-tests: New file.
31102         * tests/unistr/test-u32-cmp.c: New file.
31103
31104         Tests for module 'unistr/u16-cmp'.
31105         * modules/unistr/u16-cmp-tests: New file.
31106         * tests/unistr/test-u16-cmp.c: New file.
31107
31108         Tests for module 'unistr/u8-cmp'.
31109         * modules/unistr/u8-cmp-tests: New file.
31110         * tests/unistr/test-u8-cmp.c: New file.
31111         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
31112
31113         Tests for module 'unistr/u32-set'.
31114         * modules/unistr/u32-set-tests: New file.
31115         * tests/unistr/test-u32-set.c: New file.
31116
31117         Tests for module 'unistr/u16-set'.
31118         * modules/unistr/u16-set-tests: New file.
31119         * tests/unistr/test-u16-set.c: New file.
31120
31121         Tests for module 'unistr/u8-set'.
31122         * modules/unistr/u8-set-tests: New file.
31123         * tests/unistr/test-u8-set.c: New file.
31124         * tests/unistr/test-set.h: New file.
31125
31126         Tests for module 'unistr/u32-move'.
31127         * modules/unistr/u32-move-tests: New file.
31128         * tests/unistr/test-u32-move.c: New file.
31129
31130         Tests for module 'unistr/u16-move'.
31131         * modules/unistr/u16-move-tests: New file.
31132         * tests/unistr/test-u16-move.c: New file.
31133
31134         Tests for module 'unistr/u8-move'.
31135         * modules/unistr/u8-move-tests: New file.
31136         * tests/unistr/test-u8-move.c: New file.
31137         * tests/unistr/test-move.h: New file.
31138
31139         Tests for module 'unistr/u32-cpy'.
31140         * modules/unistr/u32-cpy-tests: New file.
31141         * tests/unistr/test-u32-cpy.c: New file.
31142
31143         Tests for module 'unistr/u16-cpy'.
31144         * modules/unistr/u16-cpy-tests: New file.
31145         * tests/unistr/test-u16-cpy.c: New file.
31146
31147         Tests for module 'unistr/u8-cpy'.
31148         * modules/unistr/u8-cpy-tests: New file.
31149         * tests/unistr/test-u8-cpy.c: New file.
31150         * tests/unistr/test-cpy.h: New file.
31151
31152 2010-01-09  Bruno Haible  <bruno@clisp.org>
31153
31154         Tests for module 'unistr/u32-uctomb'.
31155         * modules/unistr/u32-uctomb-tests: New file.
31156         * tests/unistr/test-u32-uctomb.c: New file.
31157
31158         Tests for module 'unistr/u16-uctomb'.
31159         * modules/unistr/u16-uctomb-tests: New file.
31160         * tests/unistr/test-u16-uctomb.c: New file.
31161
31162         Tests for module 'unistr/u8-uctomb'.
31163         * modules/unistr/u8-uctomb-tests: New file.
31164         * tests/unistr/test-u8-uctomb.c: New file.
31165
31166         Tests for module 'unistr/u32-mbtoucr'.
31167         * modules/unistr/u32-mbtoucr-tests: New file.
31168         * tests/unistr/test-u32-mbtoucr.c: New file.
31169
31170         Tests for module 'unistr/u16-mbtoucr'.
31171         * modules/unistr/u16-mbtoucr-tests: New file.
31172         * tests/unistr/test-u16-mbtoucr.c: New file.
31173
31174         Tests for module 'unistr/u8-mbtoucr'.
31175         * modules/unistr/u8-mbtoucr-tests: New file.
31176         * tests/unistr/test-u8-mbtoucr.c: New file.
31177
31178         Tests for module 'unistr/u32-mbtouc'.
31179         * modules/unistr/u32-mbtouc-tests: New file.
31180         * tests/unistr/test-u32-mbtouc.c: New file.
31181
31182         Tests for module 'unistr/u16-mbtouc'.
31183         * modules/unistr/u16-mbtouc-tests: New file.
31184         * tests/unistr/test-u16-mbtouc.c: New file.
31185
31186         Tests for module 'unistr/u8-mbtouc'.
31187         * modules/unistr/u8-mbtouc-tests: New file.
31188         * tests/unistr/test-u8-mbtouc.c: New file.
31189
31190         Tests for module 'unistr/u32-mbtouc-unsafe'.
31191         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
31192         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
31193         * tests/unistr/test-u32-mbtouc.h: New file.
31194
31195         Tests for module 'unistr/u16-mbtouc-unsafe'.
31196         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
31197         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
31198         * tests/unistr/test-u16-mbtouc.h: New file.
31199
31200         Tests for module 'unistr/u8-mbtouc-unsafe'.
31201         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
31202         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
31203         * tests/unistr/test-u8-mbtouc.h: New file.
31204
31205         Tests for module 'unistr/u32-mblen'.
31206         * modules/unistr/u32-mblen-tests: New file.
31207         * tests/unistr/test-u32-mblen.c: New file.
31208
31209         Tests for module 'unistr/u16-mblen'.
31210         * modules/unistr/u16-mblen-tests: New file.
31211         * tests/unistr/test-u16-mblen.c: New file.
31212
31213         Tests for module 'unistr/u8-mblen'.
31214         * modules/unistr/u8-mblen-tests: New file.
31215         * tests/unistr/test-u8-mblen.c: New file.
31216
31217         Tests for module 'unistr/u32-to-u16'.
31218         * modules/unistr/u32-to-u16-tests: New file.
31219         * tests/unistr/test-u32-to-u16.c: New file.
31220
31221         Tests for module 'unistr/u32-to-u8'.
31222         * modules/unistr/u32-to-u8-tests: New file.
31223         * tests/unistr/test-u32-to-u8.c: New file.
31224
31225         Tests for module 'unistr/u16-to-u32'.
31226         * modules/unistr/u16-to-u32-tests: New file.
31227         * tests/unistr/test-u16-to-u32.c: New file.
31228
31229         Tests for module 'unistr/u16-to-u8'.
31230         * modules/unistr/u16-to-u8-tests: New file.
31231         * tests/unistr/test-u16-to-u8.c: New file.
31232
31233         Tests for module 'unistr/u8-to-u32'.
31234         * modules/unistr/u8-to-u32-tests: New file.
31235         * tests/unistr/test-u8-to-u32.c: New file.
31236
31237         Tests for module 'unistr/u8-to-u16'.
31238         * modules/unistr/u8-to-u16-tests: New file.
31239         * tests/unistr/test-u8-to-u16.c: New file.
31240
31241         Tests for module 'unistr/u32-check'.
31242         * modules/unistr/u32-check-tests: New file.
31243         * tests/unistr/test-u32-check.c: New file.
31244
31245         Tests for module 'unistr/u16-check'.
31246         * modules/unistr/u16-check-tests: New file.
31247         * tests/unistr/test-u16-check.c: New file.
31248
31249         Tests for module 'unistr/u8-check'.
31250         * modules/unistr/u8-check-tests: New file.
31251         * tests/unistr/test-u8-check.c: New file.
31252
31253         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
31254         (category_equals): New function.
31255         (main): Add more tests.
31256         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
31257
31258         * tests/unictype/test-bidi_byname.c (main): Add more tests.
31259
31260 2010-01-10  Bruno Haible  <bruno@clisp.org>
31261
31262         unistr/u*-strcoll: Try harder to distinguish different strings.
31263         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
31264         compare s1 and s2 to see if they are different.
31265
31266 2010-01-10  Bruno Haible  <bruno@clisp.org>
31267
31268         unistr/u*-stpncpy: Fix the return value.
31269         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
31270         description of the return value consistent with stpncpy in glibc.
31271         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
31272         written non-NUL unit.
31273
31274 2010-01-10  Bruno Haible  <bruno@clisp.org>
31275
31276         unistr/u*-next: Add missing dependencies.
31277         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
31278         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
31279         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
31280
31281 2010-01-10  Bruno Haible  <bruno@clisp.org>
31282
31283         unistr/u8-mbsnlen: Fix return value for incomplete character.
31284         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
31285         u8_mblen.
31286         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
31287         Remove unistr/u8-mblen.
31288         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
31289         u16_mblen.
31290         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
31291         Remove unistr/u16-mblen.
31292
31293 2010-01-10  Bruno Haible  <bruno@clisp.org>
31294
31295         wchar: Fix compilation error when <wchar.h> is used from coreutils.
31296         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
31297         Reported by Brian Gough <bjg@gnu.org> and
31298         Chris Clayton <chris2553@googlemail.com> via
31299         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
31300
31301 2010-01-09  Bruno Haible  <bruno@clisp.org>
31302
31303         unistr/u16-to-u32: Reject invalid input.
31304         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
31305         u16_mbtouc.
31306         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
31307         Remove unistr/u16-mbtouc.
31308
31309         unistr/u16-to-u8: Reject invalid input.
31310         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
31311         u16_mbtouc.
31312         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
31313         Remove unistr/u16-mbtouc.
31314
31315         unistr/u8-to-u32: Reject invalid input.
31316         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
31317         u8_mbtouc.
31318         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
31319         Remove unistr/u8-mbtouc.
31320
31321         unistr/u8-to-u16: Reject invalid input.
31322         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
31323         u8_mbtouc.
31324         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
31325         Remove unistr/u8-mbtouc.
31326
31327 2010-01-09  Bruno Haible  <bruno@clisp.org>
31328
31329         Tests for module 'getlogin'.
31330         * modules/getlogin-tests: New file.
31331         * tests/test-getlogin.c: New file.
31332
31333         New module 'getlogin'.
31334         * lib/unistd.in.h (getlogin): New declaration.
31335         * lib/getlogin.c: New file.
31336         * m4/getlogin.m4: New file.
31337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
31338         HAVE_GETLOGIN.
31339         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
31340         HAVE_GETLOGIN.
31341         * modules/getlogin: New file.
31342         * doc/posix-functions/getlogin.texi: Mention the new module.
31343         Reported by John W. Eaton <jwe@gnu.org>.
31344
31345 2010-01-09  Bruno Haible  <bruno@clisp.org>
31346
31347         getlogin_r: Support for native Windows.
31348         * lib/getlogin_r.c: Include <windows.h>
31349         (getlogin_r): Implement for native Windows.
31350         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
31351         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
31352         via John W. Eaton <jwe@gnu.org>.
31353
31354 2010-01-09  Bruno Haible  <bruno@clisp.org>
31355
31356         getlogin_r: Small fixes.
31357         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
31358         succeeds.
31359         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
31360         before testing whether getlogin_r is declared. No need to set
31361         HAVE_DECL_GETLOGIN_R to 1.
31362         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
31363
31364 2010-01-09  Bruno Haible  <bruno@clisp.org>
31365
31366         * lib/unistd.in.h (getlogin_r): Add comment.
31367
31368 2010-01-09  Bruno Haible  <bruno@clisp.org>
31369
31370         Tests for module 'getlogin_r'.
31371         * modules/getlogin_r-tests: New file.
31372         * tests/test-getlogin_r.c: New file.
31373
31374 2010-01-09  Jim Meyering  <meyering@redhat.com>
31375
31376         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
31377         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
31378         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
31379
31380 2010-01-08  Simon Josefsson  <simon@josefsson.org>
31381
31382         * lib/dup2.c (rpl_dup2): Improve comment.
31383
31384 2010-01-08  Eric Blake  <ebb9@byu.net>
31385
31386         maint.mk: allow packages to add makefile @@ exceptions
31387         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
31388         (sc_makefile_check): Rename...
31389         (sc_makefile_at_at_check): ...to this, and use hook.
31390
31391         dup2: work around mingw bug
31392         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
31393         Reported by Simon Josefsson.
31394
31395 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
31396
31397         glob: Fix C++ compilation.
31398         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
31399         C++.
31400
31401 2010-01-07  Bruno Haible  <bruno@clisp.org>
31402
31403         Fix indentation of wctype.in.h, broken since 2007-01-06.
31404         * lib/wctype.in.h: Fix indentation of preprocessor directives.
31405
31406 2010-01-07  Bruno Haible  <bruno@clisp.org>
31407
31408         mbslen: Avoid collision with system function.
31409         * lib/string.in.h [MirBSD]: Include <wchar.h>.
31410         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
31411         * m4/mbslen.m4: New file.
31412         * modules/mbslen (Files): Add it.
31413         (configure.ac): Invoke gl_MBSLEN.
31414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
31415         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
31416         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
31417         via Ian Beckwith <ianb@erislabs.net>.
31418
31419 2010-01-07  Bruno Haible  <bruno@clisp.org>
31420
31421         dirent: Document the last fix.
31422         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
31423
31424 2010-01-07  Bruno Haible  <bruno@clisp.org>
31425
31426         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
31427         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
31428         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
31429         va_list are defined.
31430         * doc/posix-headers/stdio.texi: Document the bug of missing types.
31431         Reported by Eric Blake.
31432
31433 2010-01-07  Bruno Haible  <bruno@clisp.org>
31434
31435         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
31436         * modules/xlist (Depends-on): Add 'list',
31437         * modules/xoset (Depends-on): Add 'oset'.
31438         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31439
31440 2010-01-07  Bruno Haible  <bruno@clisp.org>
31441
31442         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
31443         * doc/posix-functions/strncasecmp.texi: Likewise.
31444
31445 2010-01-07  Bruno Haible  <bruno@clisp.org>
31446
31447         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
31448
31449 2010-01-07  John W. Eaton  <jwe@octave.org>
31450
31451         wctype: allow C++ use
31452         * lib/wctype.in.h: Add extern "C" block for C++.
31453
31454 2010-01-06  Eric Blake  <ebb9@byu.net>
31455
31456         maint.mk: detect incorrect GFDL usage
31457         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
31458
31459 2010-01-06  Jim Meyering  <meyering@redhat.com>
31460         and Eric Blake  <ebb9@byu.net>
31461
31462         maint.mk: ignore multi-line copyright in NEWS
31463         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
31464
31465 2010-01-06  Eric Blake  <ebb9@byu.net>
31466
31467         select: add missing dependency
31468         * modules/select-tests (Depends-on): Move sockets dependency...
31469         * modules/select (Depends-on): ...here.
31470         Reported by Ian Beckwith.
31471
31472         doc: regenerate INSTALL
31473         * doc/INSTALL: Reflect recent autoconf update.
31474         * doc/INSTALL.ISO: Likewise.
31475         * doc/INSTALL.UTF-8: Likewise.
31476
31477         pread: fix compilation on glibc
31478         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
31479         Reported by Ralf Wildenhues.
31480
31481         dirent: fix test failure
31482         * lib/dirent.in.h (includes): Guarantee ino_t.
31483         Reported by Ralf Wildenhues.
31484
31485 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
31486
31487         linkat, renameat: avoid bad free
31488         * lib/at-func2.c (at_func2): Fix typo.
31489         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
31490
31491 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31492
31493         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
31494         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
31495         to avoid failure of symlink test later.
31496
31497 2010-01-06  Eric Blake  <ebb9@byu.net>
31498
31499         stdio, unistd: guarantee ssize_t
31500         * lib/unistd.in.h (includes): Ensure that types required by POSIX
31501         2008 are exposed when needed.
31502         * lib/stdio.in.h (includes): Likewise.
31503         Reported by Ralf Wildenhues.
31504
31505 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
31506
31507         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
31508         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
31509         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
31510
31511 2010-01-06  Jim Meyering  <meyering@redhat.com>
31512
31513         readtokens: this module *does* require xalloc.h
31514         It uses only functions that were omitted by the old syntax-check rule.
31515         * lib/readtokens.c: Include "xalloc.h" once again.
31516         * modules/readtokens (Depends-on): Add xalloc.
31517         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
31518
31519 2010-01-05  Eric Blake  <ebb9@byu.net>
31520
31521         maint: support 'make announcement' from a VPATH build
31522         * top/maint.mk (announcement): Look for correct NEWS file.
31523
31524 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
31525
31526         utimens (fdutimens): ignore a negative FD, per contract
31527         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
31528         when we have a valid file descriptor.  Otherwise, using a brand
31529         new glibc (with just-patched futimens that now fails with EBADF)
31530         would cause this function to fail with ENOSYS.
31531         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
31532         See also http://bugzilla.redhat.com/552320.
31533
31534 2010-01-05  Eric Blake  <ebb9@byu.net>
31535
31536         strcase: document what it provides
31537         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
31538         gnulib module.
31539         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
31540         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
31541
31542 2010-01-05  Jim Meyering  <meyering@redhat.com>
31543
31544         maint: remove useless inclusions of "xalloc.h"
31545         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
31546         * lib/readtokens.c: Likewise.
31547         * lib/same.c: Likewise.
31548         * modules/getloadavg (Depends-on): Remove xalloc.
31549         * modules/readtokens: Likewise.
31550         * modules/same: Likewise.
31551
31552         maint.mk: include 4 more function names in alloca.h-checking regexp
31553         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
31554         regexp.  Before, we would give a false-positive (saying alloca.h
31555         is included unnecessarily) when the only uses involved omitted symbols.
31556
31557         xalloc.h: use consistent formatting
31558         * lib/xalloc.h: Move declarations to start in the first column.
31559
31560 2010-01-05  Eric Blake  <ebb9@byu.net>
31561
31562         mkdir: avoid xalloc
31563         * lib/mkdir.c (includes): Drop unused header.
31564         Reported by John W. Eaton.
31565
31566 2010-01-04  Jim Meyering  <meyering@redhat.com>
31567
31568         nl_langinfo: avoid configure-time syntax error
31569         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
31570         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
31571         the empty string.  Don't let that provoke a shell syntax error.
31572
31573         regcomp, regexec, fnmatch: avoid array bounds read error
31574         * lib/regcomp.c (build_equiv_class): From glibc:
31575         Use only the low 24 bits of a findidx return value as an index
31576         into the weights array.  Patch by Ulrich Drepper:
31577         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
31578         * lib/regexec.c (check_node_accept_bytes): Likewise.
31579         * lib/fnmatch_loop.c (FCT): Likewise.
31580
31581         regcomp: skip collseq lookup when there are no rules
31582         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
31583         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
31584
31585         regcomp: recognize ill-formed { } expressions
31586         * lib/regcomp.c (parse_dup_op): From glibc:
31587         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
31588
31589         regcomp: fix typo in comment
31590         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
31591         s/satisfy/satisfies/.
31592
31593         regcomp: sync from glibc: remove dead store
31594         * lib/regcomp.c (duplicate_node_closure): Remove useless
31595         search_duplicated_node call and dead store.
31596
31597         regcomp: sync from glibc; always use nl_langinfo
31598         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
31599         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
31600         * modules/regex (Depends-on): Add nl_langinfo.
31601
31602 2010-01-04  Eric Blake  <ebb9@byu.net>
31603
31604         fdopendir: fix configure test
31605         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
31606
31607 2010-01-01  Bruno Haible  <bruno@clisp.org>
31608
31609         wchar: Remove unused configure check.
31610         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
31611
31612 2010-01-01  Eric Blake  <ebb9@byu.net>
31613
31614         headers: make check of system header explicit
31615         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
31616         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
31617         ourselves.
31618         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31619         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31620         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31621         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
31622         internals.
31623         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
31624         missing.
31625         Suggested by Bruno Haible.
31626
31627 2010-01-01  Jim Meyering  <meyering@redhat.com>
31628
31629         ChangeLog: tweak to eliminate unnecessary copyright line
31630         * ChangeLog: Remove a copyright line that was mistakenly updated
31631         by today's update-copyright run.  Reported by Eric Blake.
31632
31633         test-update-copyright: don't let envvar setting cause test failure
31634         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31635
31636 2010-01-01  Bruno Haible  <bruno@clisp.org>
31637
31638         localename: Avoid gcc warning.
31639         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
31640         function if it is not used.
31641
31642 2010-01-01  Jim Meyering  <meyering@redhat.com>
31643
31644         update nearly all FSF copyright year lists to include 2010
31645         Use the same procedure as for 2009, outlined in
31646         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
31647
31648         version-etc: set COPYRIGHT_YEAR to 2010
31649         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
31650
31651 2009-12-31  Eric Blake  <ebb9@byu.net>
31652
31653         doc: correct availability of cygwin 1.5.x getopt
31654         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
31655         variables.
31656         * doc/posix-functions/opterr.texi (opterr): Likewise.
31657         * doc/posix-functions/optind.texi (optind): Likewise.
31658         * doc/posix-functions/optopt.texi (optopt): Likewise.
31659         * doc/posix-functions/tzname.texi (tzname): Likewise.
31660
31661         openat: update maintainer
31662         * modules/openat (Maintainer): Add myself.
31663
31664         utimens: avoid shadowing warning
31665         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
31666         buffers into one, to avoid shadowing, as well as avoiding a
31667         redundant stat.
31668         Reported by Jim Meyering.
31669
31670         test-dup2: avoid compiler warning
31671         * tests/test-dup2.c (is_inheritable): Only define if used.
31672
31673 2010-01-01  Bruno Haible  <bruno@clisp.org>
31674
31675         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
31676         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
31677         defined, use wctomb instead of wcrtomb.
31678
31679 2010-01-01  Bruno Haible  <bruno@clisp.org>
31680
31681         iconv: Reject native Solaris iconv.
31682         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
31683         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
31684
31685 2009-12-31  Bruno Haible  <bruno@clisp.org>
31686
31687         * tests/test-signal.c (main): Remove test of 'SIG'.
31688
31689 2009-12-31  Bruno Haible  <bruno@clisp.org>
31690
31691         spawn: Fix incomplete fix.
31692         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31693         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31694         warnings for GNULIB_POSIXCHECK again.
31695         Reported by Eric Blake.
31696
31697 2009-12-31  Bruno Haible  <bruno@clisp.org>
31698
31699         Avoid namespace pollution on glibc systems.
31700         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
31701         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
31702         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
31703         glibc systems.
31704
31705 2009-12-31  Bruno Haible  <bruno@clisp.org>
31706
31707         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
31708         (gl_REPLACE_WCHAR_H): Turn into a no-op.
31709         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
31710         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
31711         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
31712         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
31713         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
31714
31715 2009-12-31  Bruno Haible  <bruno@clisp.org>
31716
31717         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31718         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
31719         afterwards.
31720
31721 2009-12-31  Bruno Haible  <bruno@clisp.org>
31722
31723         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
31724         SYS_UTSNAME_H.
31725
31726 2009-12-31  Bruno Haible  <bruno@clisp.org>
31727
31728         spawn: Fix misapplied patch.
31729         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31730         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31731         warnings for GNULIB_POSIXCHECK.
31732
31733 2009-12-31  Bruno Haible  <bruno@clisp.org>
31734
31735         times: Update after sys_times changed.
31736         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
31737         * modules/times (Files): Add it.
31738         (configure.ac): Invoke gl_FUNC_TIMES.
31739
31740 2009-12-31  Bruno Haible  <bruno@clisp.org>
31741
31742         Use AC_C_INLINE where necessary.
31743         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
31744         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31745         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31746         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31747         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31748         * m4/mbiter.m4 (gl_MBITER): Likewise.
31749         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31750         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31751         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
31752         * modules/u64 (configure.ac): Likewise.
31753
31754 2009-12-31  Bruno Haible  <bruno@clisp.org>
31755
31756         Use AC_C_INLINE instead of module 'inline' where possible.
31757         * modules/inline (Description): Clarify purpose.
31758         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
31759         * modules/count-one-bits (Depends-on): Remove inline.
31760         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
31761         * modules/openat (Depends-on): Remove inline.
31762         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
31763         instead of depending on module 'inline'.
31764         * modules/filevercmp (Depends-on, configure.ac): Likewise.
31765         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
31766         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
31767         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
31768         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
31769         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
31770         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
31771         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
31772         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
31773         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
31774         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
31775         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
31776         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
31777         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
31778         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
31779         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
31780         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
31781         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
31782         Likewise.
31783         * modules/unictype/property-ascii-hex-digit (Depends-on,
31784         configure.ac): Likewise.
31785         * modules/unictype/property-bidi-arabic-digit (Depends-on,
31786         configure.ac): Likewise.
31787         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
31788         configure.ac): Likewise.
31789         * modules/unictype/property-bidi-block-separator (Depends-on,
31790         configure.ac): Likewise.
31791         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
31792         configure.ac): Likewise.
31793         * modules/unictype/property-bidi-common-separator (Depends-on,
31794         configure.ac): Likewise.
31795         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
31796         Likewise.
31797         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
31798         configure.ac): Likewise.
31799         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
31800         configure.ac): Likewise.
31801         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
31802         configure.ac): Likewise.
31803         * modules/unictype/property-bidi-european-digit (Depends-on,
31804         configure.ac): Likewise.
31805         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
31806         configure.ac): Likewise.
31807         * modules/unictype/property-bidi-left-to-right (Depends-on,
31808         configure.ac): Likewise.
31809         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
31810         configure.ac): Likewise.
31811         * modules/unictype/property-bidi-other-neutral (Depends-on,
31812         configure.ac): Likewise.
31813         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
31814         Likewise.
31815         * modules/unictype/property-bidi-segment-separator (Depends-on,
31816         configure.ac): Likewise.
31817         * modules/unictype/property-bidi-whitespace (Depends-on,
31818         configure.ac): Likewise.
31819         * modules/unictype/property-combining (Depends-on, configure.ac):
31820         Likewise.
31821         * modules/unictype/property-composite (Depends-on, configure.ac):
31822         Likewise.
31823         * modules/unictype/property-currency-symbol (Depends-on,
31824         configure.ac): Likewise.
31825         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
31826         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
31827         Likewise.
31828         * modules/unictype/property-default-ignorable-code-point (Depends-on,
31829         configure.ac): Likewise.
31830         * modules/unictype/property-deprecated (Depends-on, configure.ac):
31831         Likewise.
31832         * modules/unictype/property-diacritic (Depends-on, configure.ac):
31833         Likewise.
31834         * modules/unictype/property-extender (Depends-on, configure.ac):
31835         Likewise.
31836         * modules/unictype/property-format-control (Depends-on, configure.ac):
31837         Likewise.
31838         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
31839         Likewise.
31840         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
31841         Likewise.
31842         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
31843         Likewise.
31844         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
31845         Likewise.
31846         * modules/unictype/property-hyphen (Depends-on, configure.ac):
31847         Likewise.
31848         * modules/unictype/property-id-continue (Depends-on, configure.ac):
31849         Likewise.
31850         * modules/unictype/property-id-start (Depends-on, configure.ac):
31851         Likewise.
31852         * modules/unictype/property-ideographic (Depends-on, configure.ac):
31853         Likewise.
31854         * modules/unictype/property-ids-binary-operator (Depends-on,
31855         configure.ac): Likewise.
31856         * modules/unictype/property-ids-trinary-operator (Depends-on,
31857         configure.ac): Likewise.
31858         * modules/unictype/property-ignorable-control (Depends-on,
31859         configure.ac): Likewise.
31860         * modules/unictype/property-iso-control (Depends-on, configure.ac):
31861         Likewise.
31862         * modules/unictype/property-join-control (Depends-on, configure.ac):
31863         Likewise.
31864         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
31865         Likewise.
31866         * modules/unictype/property-line-separator (Depends-on, configure.ac):
31867         Likewise.
31868         * modules/unictype/property-logical-order-exception (Depends-on,
31869         configure.ac): Likewise.
31870         * modules/unictype/property-lowercase (Depends-on, configure.ac):
31871         Likewise.
31872         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
31873         * modules/unictype/property-non-break (Depends-on, configure.ac):
31874         Likewise.
31875         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
31876         Likewise.
31877         * modules/unictype/property-numeric (Depends-on, configure.ac):
31878         Likewise.
31879         * modules/unictype/property-other-alphabetic (Depends-on,
31880         configure.ac): Likewise.
31881         * modules/unictype/property-other-default-ignorable-code-point
31882         (Depends-on, configure.ac): Likewise.
31883         * modules/unictype/property-other-grapheme-extend (Depends-on,
31884         configure.ac): Likewise.
31885         * modules/unictype/property-other-id-continue (Depends-on,
31886         configure.ac): Likewise.
31887         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
31888         Likewise.
31889         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
31890         Likewise.
31891         * modules/unictype/property-other-math (Depends-on, configure.ac):
31892         Likewise.
31893         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
31894         Likewise.
31895         * modules/unictype/property-paired-punctuation (Depends-on,
31896         configure.ac): Likewise.
31897         * modules/unictype/property-paragraph-separator (Depends-on,
31898         configure.ac): Likewise.
31899         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
31900         Likewise.
31901         * modules/unictype/property-pattern-white-space (Depends-on,
31902         configure.ac): Likewise.
31903         * modules/unictype/property-private-use (Depends-on, configure.ac):
31904         Likewise.
31905         * modules/unictype/property-punctuation (Depends-on, configure.ac):
31906         Likewise.
31907         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
31908         Likewise.
31909         * modules/unictype/property-radical (Depends-on, configure.ac):
31910         Likewise.
31911         * modules/unictype/property-sentence-terminal (Depends-on,
31912         configure.ac): Likewise.
31913         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
31914         Likewise.
31915         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
31916         * modules/unictype/property-terminal-punctuation (Depends-on,
31917         configure.ac): Likewise.
31918         * modules/unictype/property-titlecase (Depends-on, configure.ac):
31919         Likewise.
31920         * modules/unictype/property-unassigned-code-value (Depends-on,
31921         configure.ac): Likewise.
31922         * modules/unictype/property-unified-ideograph (Depends-on,
31923         configure.ac): Likewise.
31924         * modules/unictype/property-uppercase (Depends-on, configure.ac):
31925         Likewise.
31926         * modules/unictype/property-variation-selector (Depends-on,
31927         configure.ac): Likewise.
31928         * modules/unictype/property-white-space (Depends-on, configure.ac):
31929         Likewise.
31930         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
31931         Likewise.
31932         * modules/unictype/property-xid-start (Depends-on, configure.ac):
31933         Likewise.
31934         * modules/unictype/property-zero-width (Depends-on, configure.ac):
31935         Likewise.
31936         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
31937         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
31938         Likewise.
31939
31940 2009-12-31  Bruno Haible  <bruno@clisp.org>
31941
31942         Remove unnecessary AC_C_INLINE invocation.
31943         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
31944         since 2009-08-21.
31945
31946 2009-12-31  Jim Meyering  <meyering@redhat.com>
31947
31948         maint.mk: don't require explicit gpg_key_ID in cfg.mk
31949         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
31950         With this change, we can all remove the gpg_key_ID = ... definition
31951         from our respective cfg.mk files.
31952
31953         maint.mk: create announcement template in ~/, not in /tmp
31954         * top/maint.mk (emit_upload_commands): Adjust.
31955         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
31956         Remove temporary file, .ci-msg.
31957
31958 2009-12-31  Eric Blake  <ebb9@byu.net>
31959
31960         link-warning: always build headers with link warnings
31961         * modules/arpa_inet (Makefile.am): Always build replacement
31962         header.
31963         * modules/ctype (Makefile.am): Likewise.
31964         * modules/dirent (Makefile.am): Likewise.
31965         * modules/inttypes (Makefile.am): Likewise.
31966         * modules/langinfo (Makefile.am): Likewise.
31967         * modules/locale (Makefile.am): Likewise.
31968         * modules/spawn (Makefile.am): Likewise.
31969         * modules/sys_file (Makefile.am): Likewise.
31970         * modules/sys_ioctl (Makefile.am): Likewise.
31971         * modules/sys_select (Makefile.am): Likewise.
31972         * modules/sys_socket (Makefile.am): Likewise.
31973         * modules/sys_times (Makefile.am): Likewise.
31974         * modules/sys_utsname (Makefile.am): Likewise.
31975         * modules/sys_wait (Makefile.am): Likewise.
31976         * modules/wchar (Makefile.am): Likewise.
31977         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
31978         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
31979         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
31980         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
31981         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
31982         Likewise.
31983         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31984         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31985         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
31986         Likewise.
31987         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
31988         Likewise.
31989         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
31990         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
31991         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
31992         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31993         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31994         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31995         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31996         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
31997         (gl_WCHAR_H_DEFAULTS): Likewise.
31998
31999 2009-12-31  Eric Blake  <ebb9@byu.net>
32000
32001         signal, spawn: use link warnings
32002         * lib/signal.in.h (sigset_t): Make unconditional.
32003         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
32004         (sigpending, sigprocmask, sigaction): Add link warnings.
32005         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
32006         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
32007         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
32008         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
32009         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
32010         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
32011         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
32012         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
32013         (posix_spawn_file_actions_destroy)
32014         (posix_spawn_file_actions_addopen)
32015         (posix_spawn_file_actions_addclose)
32016         (posix_spawn_file_actions_adddup2): Likewise.
32017         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
32018         * tests/test-signal.c (main): Enhance test.
32019
32020         spawn: improve wrapper support
32021         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
32022         (gl_SPAWN_H_DEFAULTS): New defaults.
32023         * modules/spawn (Makefile.am): Substitute them.
32024         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
32025         Only declare if missing or broken.
32026
32027         sys_times, sys_utsname: use include_next
32028         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
32029         header.
32030         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
32031         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32032         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32033         * modules/sys_times (Depends-on): Add include_next.
32034         (Makefile.am): Substitute additional values.
32035         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32036         * lib/sys_times.in.h (includes): Include native header, if
32037         available.
32038         * lib/sys_utsname.in.h (includes): Likewise.
32039         * tests/test-sys_times.c (main): Enhance test.
32040
32041         fdutimensat: revert prior patch
32042         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
32043         utimens.h.
32044         Reported by Bruno Haible.
32045
32046 2009-12-30  Eric Blake  <ebb9@byu.net>
32047
32048         sys_wait: drop link-warning dependency
32049         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
32050         link-warning efforts.
32051         * lib/sys_wait.in.h: Likewise.
32052
32053         fdutimensat: remove bogus dependency
32054         * modules/fdutimensat (Depends-on): Drop inline.
32055
32056         unistd: fix typo
32057         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
32058
32059 2009-12-30  Bruno Haible  <bruno@clisp.org>
32060
32061         Fix compilation error with Solaris cc.
32062         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
32063         * lib/unicase/u16-is-invariant.c: Likewise.
32064         * lib/unicase/u32-is-invariant.c: Likewise.
32065         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32066
32067 2009-12-30  Bruno Haible  <bruno@clisp.org>
32068
32069         Fix test crash.
32070         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
32071         locales.
32072         Reported by Simon Josefsson <simon@josefsson.org>.
32073
32074 2009-12-30  Bruno Haible  <bruno@clisp.org>
32075
32076         Fix compilation error on most platforms.
32077         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
32078         Reported by Simon Josefsson <simon@josefsson.org>
32079         and Nelson H. F. Beebe <beebe@math.utah.edu>.
32080
32081 2009-12-30  Eric Blake  <ebb9@byu.net>
32082
32083         futimens, utimensat: work around ntfs-3g bug
32084         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
32085         a ctime bug is present, and expand workaround to cover ntfs-3g.
32086         * lib/utimens.c (fdutimens, lutimens): Likewise.
32087         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
32088         (validate_timespec): Adjust return value.
32089         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
32090         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32091         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
32092
32093 2009-12-29  Eric Blake  <ebb9@byu.net>
32094
32095         link-warning: make usage consistent
32096         * modules/ctype (Depends-on): Add link-warning.
32097         (Makefile.am): Update rules accordingly.
32098         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32099         * modules/locale (Depends-on, Makefile.am): Likewise.
32100         * modules/sys_file (Makefile.am): Likewise.
32101         * modules/getopt-posix (Makefile.am): Delete unused link warning
32102         efforts.
32103         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
32104         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
32105         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
32106         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
32107
32108         stdio: remove unused variables
32109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
32110         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
32111         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32112
32113         tests: test more substitute headers
32114         * modules/ctype-tests: New file.
32115         * modules/dirent-tests: Likewise.
32116         * modules/spawn-tests: Likewise.
32117         * modules/sys_file-tests: Likewise.
32118         * modules/sys_ioctl-tests: Likewise.
32119         * modules/sys_wait-tests: Likewise.
32120         * tests/test-ctype.c: Likewise.
32121         * tests/test-dirent.c: Likewise.
32122         * tests/test-spawn.c: Likewise.
32123         * tests/test-sys_file.c: Likewise.
32124         * tests/test-sys_ioctl.c: Likewise.
32125         * tests/test-sys_wait.c: Likewise.
32126         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
32127         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
32128         whether or not flock is in use.
32129
32130         tests: remove License section from module
32131         * modules/arpa_inet-tests: Remove unneeded section.
32132         * modules/byteswap-tests: Likewise.
32133         * modules/ceilf-tests: Likewise.
32134         * modules/ceill-tests: Likewise.
32135         * modules/crypto/des-tests: Likewise.
32136         * modules/crypto/gc-arcfour-tests: Likewise.
32137         * modules/crypto/gc-arctwo-tests: Likewise.
32138         * modules/crypto/gc-des-tests: Likewise.
32139         * modules/crypto/gc-hmac-md5-tests: Likewise.
32140         * modules/crypto/gc-hmac-sha1-tests: Likewise.
32141         * modules/crypto/gc-md2-tests: Likewise.
32142         * modules/crypto/gc-md4-tests: Likewise.
32143         * modules/crypto/gc-md5-tests: Likewise.
32144         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
32145         * modules/crypto/gc-rijndael-tests: Likewise.
32146         * modules/crypto/gc-sha1-tests: Likewise.
32147         * modules/crypto/gc-tests: Likewise.
32148         * modules/crypto/md2-tests: Likewise.
32149         * modules/crypto/md4-tests: Likewise.
32150         * modules/fcntl-h-tests: Likewise.
32151         * modules/floorf-tests: Likewise.
32152         * modules/floorl-tests: Likewise.
32153         * modules/frexp-nolibm-tests: Likewise.
32154         * modules/frexp-tests: Likewise.
32155         * modules/frexpl-nolibm-tests: Likewise.
32156         * modules/frexpl-tests: Likewise.
32157         * modules/getaddrinfo-tests: Likewise.
32158         * modules/inttypes-tests: Likewise.
32159         * modules/isfinite-tests: Likewise.
32160         * modules/isinf-tests: Likewise.
32161         * modules/ldexpl-tests: Likewise.
32162         * modules/locale-tests: Likewise.
32163         * modules/math-tests: Likewise.
32164         * modules/netdb-tests: Likewise.
32165         * modules/netinet_in-tests: Likewise.
32166         * modules/printf-frexp-tests: Likewise.
32167         * modules/printf-frexpl-tests: Likewise.
32168         * modules/priv-set-tests: Likewise.
32169         * modules/random_r-tests: Likewise.
32170         * modules/round-tests: Likewise.
32171         * modules/roundf-tests: Likewise.
32172         * modules/roundl-tests: Likewise.
32173         * modules/search-tests: Likewise.
32174         * modules/select-tests: Likewise.
32175         * modules/signal-tests: Likewise.
32176         * modules/stdbool-tests: Likewise.
32177         * modules/stddef-tests: Likewise.
32178         * modules/stdint-tests: Likewise.
32179         * modules/stdio-tests: Likewise.
32180         * modules/stdlib-tests: Likewise.
32181         * modules/string-tests: Likewise.
32182         * modules/strings-tests: Likewise.
32183         * modules/sys_select-tests: Likewise.
32184         * modules/sys_socket-tests: Likewise.
32185         * modules/sys_stat-tests: Likewise.
32186         * modules/sys_time-tests: Likewise.
32187         * modules/sys_utsname-tests: Likewise.
32188         * modules/sysexits-tests: Likewise.
32189         * modules/time-tests: Likewise.
32190         * modules/trunc-tests: Likewise.
32191         * modules/truncf-tests: Likewise.
32192         * modules/truncl-tests: Likewise.
32193         * modules/tsearch-tests: Likewise.
32194         * modules/unistd-tests: Likewise.
32195         * modules/wchar-tests: Likewise.
32196         * modules/wctype-tests: Likewise.
32197
32198         tests: fix license on several tests
32199         * tests/test-des.c: Update to GPLv3+.
32200         * tests/test-flock.c: Likewise.
32201         * tests/test-fsync.c: Likewise.
32202         * tests/test-futimens.h: Likewise.
32203         * tests/test-gc-arcfour.c: Likewise.
32204         * tests/test-gc-arctwo.c: Likewise.
32205         * tests/test-gc-des.c: Likewise.
32206         * tests/test-gc-hmac-md5.c: Likewise.
32207         * tests/test-gc-hmac-sha1.c: Likewise.
32208         * tests/test-gc-md2.c: Likewise.
32209         * tests/test-gc-md4.c: Likewise.
32210         * tests/test-gc-md5.c: Likewise.
32211         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32212         * tests/test-gc-rijndael.c: Likewise.
32213         * tests/test-gc-sha1.c: Likewise.
32214         * tests/test-gc.c: Likewise.
32215         * tests/test-getcwd.c: Likewise.
32216         * tests/test-link.c: Likewise.
32217         * tests/test-link.h: Likewise.
32218         * tests/test-lutimens.h: Likewise.
32219         * tests/test-md2.c: Likewise.
32220         * tests/test-md4.c: Likewise.
32221         * tests/test-mkdir.h: Likewise.
32222         * tests/test-rename.c: Likewise.
32223         * tests/test-rename.h: Likewise.
32224         * tests/test-safe-alloc.c: Likewise.
32225         * tests/test-utimens-common.h: Likewise.
32226         * tests/test-utimens.h: Likewise.
32227
32228         maint: sync license texts
32229         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
32230         * doc/gpl-3.0.texi: Revert copyright year update.
32231         * doc/lgpl-3.0.texi: Likewise.
32232
32233 2009-12-29  Jim Meyering  <meyering@redhat.com>
32234
32235         update nearly all FSF copyright year lists to include 2009
32236         The files named by the following are exempted:
32237             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
32238               test -f "$dst" && { echo "$dst"; continue; }
32239               test -d "$dst" || continue
32240               echo "$dst"/$(basename "$src")
32241             done > exempt
32242             git ls-files tests/unictype >> exempt
32243         In the remaining files, convert to all-interval notation if
32244         - there is already at least one year interval like 2000-2003
32245         - the file is maintained by me
32246         - the file is in lib/uni*/, where that style already prevails
32247         Otherwise, use update-copyright's default.
32248
32249 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32250         and Eric Blake  <ebb9@byu.net>
32251
32252         tests: don't require debug system() to pass
32253         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
32254         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32255         * tests/test-unlink.h (test_unlink_func): Likewise.
32256         * tests/test-fstatat.c (main): ...into callers.
32257         * tests/test-lstat.c (main): Likewise.
32258         * tests/test-rmdir.c (main): Likewise.
32259         * tests/test-unlink.c (main): Likewise.
32260         * tests/test-unlinkat.c (main): Likewise.
32261         * tests/test-areadlink-with-size.c (main): Don't require a
32262         debug-only system call to pass, aiding cross-testing to mingw.
32263         * tests/test-areadlink.c (main): Likewise.
32264         * tests/test-areadlinkat-with-size.c (main): Likewise.
32265         * tests/test-areadlinkat.c (main): Likewise.
32266         * tests/test-canonicalize-lgpl.c (main): Likewise.
32267         * tests/test-canonicalize.c (main): Likewise.
32268         * tests/test-chown.c (main): Likewise.
32269         * tests/test-fchownat.c (main): Likewise.
32270         * tests/test-lchown.c (main): Likewise.
32271         * tests/test-fdutimensat.c (main): Likewise.
32272         * tests/test-futimens.c (main): Likewise.
32273         * tests/test-link.c (main): Likewise.
32274         * tests/test-linkat.c (main): Likewise.
32275         * tests/test-mkdir.c (main): Likewise.
32276         * tests/test-mkdirat.c (main): Likewise.
32277         * tests/test-mkfifo.c (main): Likewise.
32278         * tests/test-mkfifoat.c (main): Likewise.
32279         * tests/test-mknod.c (main): Likewise.
32280         * tests/test-readlink.c (main): Likewise.
32281         * tests/test-remove.c (main): Likewise.
32282         * tests/test-rename.c (main): Likewise.
32283         * tests/test-renameat.c (main): Likewise.
32284         * tests/test-symlink.c (main): Likewise.
32285         * tests/test-symlinkat.c (main): Likewise.
32286         * tests/test-utimens.c (main): Likewise.
32287         * tests/test-utimensat.c (main): Likewise.
32288
32289 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32290
32291         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
32292         on $(UNUSED_PARAMETER_H) to avoid build failure.
32293
32294 2009-12-28  Jim Meyering  <meyering@redhat.com>
32295
32296         update-copyright: you may specify a max. line length other than 72
32297         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32298
32299         maint: use consistent FSF copyright line syntax
32300         * lib/posixtm.c: Add missing comma in FSF copyright line.
32301         * lib/posixtm.h: Likewise.
32302         * lib/getugroups.c: Add missing ", Inc.".
32303
32304         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
32305         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
32306         FSF copyright line.  Remove trailing blanks.
32307
32308 2009-12-28  Eric Blake  <ebb9@byu.net>
32309
32310         test-dup2: reduce dependencies
32311         * modules/cloexec (Configure.ac): Set witness.
32312         * modules/dup2-tests (Depends-on): Drop cloexec.
32313         * tests/test-dup2.c (main): Skip portion of test if cloexec module
32314         not present.
32315         Suggested by Bruno Haible.
32316
32317 2009-12-26  Bruno Haible  <bruno@clisp.org>
32318
32319         Remove an unneeded dependency.
32320         * modules/fseterr (Depends-on): Remove dup2.
32321
32322 2009-12-26  Eric Blake  <ebb9@byu.net>
32323
32324         tests: use macros.h in more places
32325         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
32326         (ASSERT_STREAM): Provide default of stderr.
32327         * tests/test-dirent-safer.c: Include macros.h, using alternate
32328         stream for assertions.
32329         * tests/test-dup-safer.c: Likewise.
32330         * tests/test-freopen-safer.c: Likewise.
32331         * tests/test-getopt.c: Likewise.
32332         * tests/test-openat-safer.c: Likewise.
32333         * tests/test-pipe.c: Likewise.
32334         * tests/test-popen-safer.c: Likewise.
32335         * modules/dirent-safer-tests (Files): Include macros.h.
32336         * modules/unistd-safer-tests (Files): Likewise.
32337         * modules/freopen-safer-tests (Files): Likewise.
32338         * modules/getopt-posix-tests (Files): Likewise.
32339         * modules/openat-safer-tests (Files): Likewise.
32340         * modules/pipe-tests (Files): Likewise.
32341
32342 2009-12-26  Bruno Haible  <bruno@clisp.org>
32343
32344         javacomp: Portability fix.
32345         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
32346         that it also works on Solaris.
32347
32348 2009-12-26  Bruno Haible  <bruno@clisp.org>
32349
32350         localename: Fix storage allocation of gl_locale_name_thread's result.
32351         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
32352         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
32353         all platforms that have 'uselocale'.
32354         (gl_locale_name_thread_unsafe): New function, extracted from
32355         gl_locale_name_thread.
32356         (gl_locale_name_thread): Call struniq on all platforms that have
32357         'uselocale'.
32358         * tests/test-localename.c (test_locale_name_thread): Check that the
32359         resulting strings are permanently allocated.
32360         * modules/localename-tests (Depends-on): Add strdup.
32361
32362 2009-12-26  Bruno Haible  <bruno@clisp.org>
32363
32364         * tests/test-localename.c (categories): Fill in the strings.
32365
32366 2009-12-26  Jim Meyering  <meyering@redhat.com>
32367
32368         isdir: complete the removal of m4/isdir.m4
32369         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
32370
32371         isdir: clean up, since at least grep still uses it
32372         * lib/isdir.c: Include "isdir.h".
32373         (S_ISDIR): Remove now-unneeded definition.
32374         * modules/isdir (Files): Add lib/isdir.h.
32375         * lib/isdir.h: New file, with declaration.
32376         * m4/isdir.m4: Remove file -- unneeded.
32377
32378 2009-12-25  Bruno Haible  <bruno@clisp.org>
32379
32380         selinux-h: Make generated .h files standalone.
32381         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
32382         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
32383         * lib/se-selinux.in.h: Likewise.
32384         * modules/selinux-h (Depends-on): Add unused-parameter.
32385         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
32386         selinux/selinux.h and selinux/context.h.
32387         Suggested by Eric Blake.
32388
32389 2009-12-25  Bruno Haible  <bruno@clisp.org>
32390
32391         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
32392         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
32393         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
32394         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
32395         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
32396
32397 2009-12-24  Bruno Haible  <bruno@clisp.org>
32398
32399         openat: Fix warning.
32400         * lib/openat-proc.c: Include <unistd.h>.
32401
32402 2009-12-24  Bruno Haible  <bruno@clisp.org>
32403
32404         New module 'unused-parameter'.
32405         * build-aux/unused-parameter.h: New file, extracted from earlier
32406         gnulib-common.m4.
32407         * modules/unused-parameter: New file.
32408         * lib/unistr.h: Include unused-parameter.h.
32409         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
32410         _GL_UNUSED.
32411         * modules/unistr/base (Depends-on): Add unused-parameter.
32412
32413 2009-12-24  Bruno Haible  <bruno@clisp.org>
32414
32415         Add missing dependencies to 'extensions' module.
32416         * m4/extensions.m4: Add comment.
32417         * modules/accept4 (Depends-on): Add extensions.
32418         * modules/dup3 (Depends-on): Likewise.
32419         * modules/fcntl (Depends-on): Likewise.
32420         * modules/futimens (Depends-on): Likewise.
32421         * modules/mknod (Depends-on): Likewise.
32422         * modules/pipe2 (Depends-on): Likewise.
32423         * modules/stat-time (Depends-on): Likewise.
32424         * modules/strcasestr-simple (Depends-on): Likewise.
32425         * modules/strsignal (Depends-on): Likewise.
32426         * modules/utimensat (Depends-on): Likewise.
32427         * modules/localcharset (Depends-on): Likewise. Needed because of
32428         gl_FCNTL_O_FLAGS.
32429         * modules/wcrtomb (Depends-on): Likewise. Needed because of
32430         AC_TYPE_MBSTATE_T.
32431         * modules/wcsnrtombs (Depends-on): Likewise.
32432         * modules/wcsrtombs (Depends-on): Likewise.
32433
32434 2009-12-24  Bruno Haible  <bruno@clisp.org>
32435
32436         binary-io: Avoid gcc warning due to SET_BINARY.
32437         * lib/binary-io.h (SET_BINARY): Cast the result to void.
32438         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
32439
32440 2009-12-24  Bruno Haible  <bruno@clisp.org>
32441
32442         Avoid future namespace pollution on glibc systems.
32443         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
32444         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
32445         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
32446         glibc systems.
32447
32448 2009-12-24  Bruno Haible  <bruno@clisp.org>
32449
32450         Refactor common macros used in tests.
32451         * tests/macros.h: New file.
32452         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
32453         and/or <stdlib.h>, if appropriate.
32454         (ASSERT, SIZEOF): Remove macros.
32455         * tests/test-areadlink-with-size.c: Likewise.
32456         * tests/test-areadlinkat.c: Likewise.
32457         * tests/test-areadlinkat-with-size.c: Likewise.
32458         * tests/test-argmatch.c: Likewise.
32459         * tests/test-argv-iter.c: Likewise.
32460         * tests/test-array-mergesort.c: Likewise.
32461         * tests/test-array_list.c: Likewise.
32462         * tests/test-array_oset.c: Likewise.
32463         * tests/test-avltree_list.c: Likewise.
32464         * tests/test-avltree_oset.c: Likewise.
32465         * tests/test-avltreehash_list.c: Likewise.
32466         * tests/test-base64.c: Likewise.
32467         * tests/test-binary-io.c: Likewise.
32468         * tests/test-bitrotate.c: Likewise.
32469         * tests/test-btowc.c: Likewise.
32470         * tests/test-byteswap.c: Likewise.
32471         * tests/test-c-ctype.c: Likewise.
32472         * tests/test-c-stack.c: Likewise.
32473         * tests/test-c-strcasecmp.c: Likewise.
32474         * tests/test-c-strcasestr.c: Likewise.
32475         * tests/test-c-strncasecmp.c: Likewise.
32476         * tests/test-c-strstr.c: Likewise.
32477         * tests/test-canonicalize-lgpl.c: Likewise.
32478         * tests/test-canonicalize.c: Likewise.
32479         * tests/test-carray_list.c: Likewise.
32480         * tests/test-ceilf1.c: Likewise.
32481         * tests/test-ceilf2.c: Likewise.
32482         * tests/test-ceill.c: Likewise.
32483         * tests/test-chown.c: Likewise.
32484         * tests/test-cloexec.c: Likewise.
32485         * tests/test-copy-acl.c: Likewise.
32486         * tests/test-copy-file.c: Likewise.
32487         * tests/test-count-one-bits.c: Likewise.
32488         * tests/test-dprintf-posix.c: Likewise.
32489         * tests/test-dup2.c: Likewise.
32490         * tests/test-dup3.c: Likewise.
32491         * tests/test-duplocale.c: Likewise.
32492         * tests/test-fbufmode.c: Likewise.
32493         * tests/test-fchdir.c: Likewise.
32494         * tests/test-fchownat.c: Likewise.
32495         * tests/test-fcntl-safer.c: Likewise.
32496         * tests/test-fcntl.c: Likewise.
32497         * tests/test-fdopendir.c: Likewise.
32498         * tests/test-fdutimensat.c: Likewise.
32499         * tests/test-fflush2.c: Likewise.
32500         * tests/test-file-has-acl.c: Likewise.
32501         * tests/test-filevercmp.c: Likewise.
32502         * tests/test-flock.c: Likewise.
32503         * tests/test-floorf1.c: Likewise.
32504         * tests/test-floorf2.c: Likewise.
32505         * tests/test-floorl.c: Likewise.
32506         * tests/test-fnmatch.c: Likewise.
32507         * tests/test-fopen.h: Likewise.
32508         * tests/test-fpending.c: Likewise.
32509         * tests/test-fprintf-posix.c: Likewise.
32510         * tests/test-fpurge.c: Likewise.
32511         * tests/test-freadable.c: Likewise.
32512         * tests/test-freadahead.c: Likewise.
32513         * tests/test-freading.c: Likewise.
32514         * tests/test-freadptr.c: Likewise.
32515         * tests/test-freadptr2.c: Likewise.
32516         * tests/test-freadseek.c: Likewise.
32517         * tests/test-freopen.c: Likewise.
32518         * tests/test-frexp.c: Likewise.
32519         * tests/test-frexpl.c: Likewise.
32520         * tests/test-fseek.c: Likewise.
32521         * tests/test-fseeko.c: Likewise.
32522         * tests/test-fstatat.c: Likewise.
32523         * tests/test-fstrcmp.c: Likewise.
32524         * tests/test-fsync.c: Likewise.
32525         * tests/test-ftell.c: Likewise.
32526         * tests/test-ftello.c: Likewise.
32527         * tests/test-func.c: Likewise.
32528         * tests/test-futimens.c: Likewise.
32529         * tests/test-fwritable.c: Likewise.
32530         * tests/test-fwriting.c: Likewise.
32531         * tests/test-getcwd.c: Likewise.
32532         * tests/test-getdate.c: Likewise.
32533         * tests/test-getdelim.c: Likewise.
32534         * tests/test-getdtablesize.c: Likewise.
32535         * tests/test-getgroups.c: Likewise.
32536         * tests/test-getline.c: Likewise.
32537         * tests/test-getndelim2.c: Likewise.
32538         * tests/test-glob.c: Likewise.
32539         * tests/test-hash.c: Likewise.
32540         * tests/test-i-ring.c: Likewise.
32541         * tests/test-iconv-utf.c: Likewise.
32542         * tests/test-iconv.c: Likewise.
32543         * tests/test-idpriv-drop.c: Likewise.
32544         * tests/test-idpriv-droptemp.c: Likewise.
32545         * tests/test-inet_ntop.c: Likewise.
32546         * tests/test-inet_pton.c: Likewise.
32547         * tests/test-isblank.c: Likewise.
32548         * tests/test-isfinite.c: Likewise.
32549         * tests/test-isinf.c: Likewise.
32550         * tests/test-isnan.c: Likewise.
32551         * tests/test-isnand.h: Likewise.
32552         * tests/test-isnanf.h: Likewise.
32553         * tests/test-isnanl.h: Likewise.
32554         * tests/test-lchown.c: Likewise.
32555         * tests/test-ldexpl.c: Likewise.
32556         * tests/test-link.c: Likewise.
32557         * tests/test-linkat.c: Likewise.
32558         * tests/test-linked_list.c: Likewise.
32559         * tests/test-linkedhash_list.c: Likewise.
32560         * tests/test-localename.c: Likewise.
32561         * tests/test-lseek.c: Likewise.
32562         * tests/test-lstat.c: Likewise.
32563         * tests/test-mbmemcasecmp.c: Likewise.
32564         * tests/test-mbmemcasecoll.c: Likewise.
32565         * tests/test-mbrtowc.c: Likewise.
32566         * tests/test-mbscasecmp.c: Likewise.
32567         * tests/test-mbscasestr1.c: Likewise.
32568         * tests/test-mbscasestr2.c: Likewise.
32569         * tests/test-mbscasestr3.c: Likewise.
32570         * tests/test-mbscasestr4.c: Likewise.
32571         * tests/test-mbschr.c: Likewise.
32572         * tests/test-mbscspn.c: Likewise.
32573         * tests/test-mbsinit.c: Likewise.
32574         * tests/test-mbsncasecmp.c: Likewise.
32575         * tests/test-mbsnrtowcs.c: Likewise.
32576         * tests/test-mbspbrk.c: Likewise.
32577         * tests/test-mbspcasecmp.c: Likewise.
32578         * tests/test-mbsrchr.c: Likewise.
32579         * tests/test-mbsrtowcs.c: Likewise.
32580         * tests/test-mbsspn.c: Likewise.
32581         * tests/test-mbsstr1.c: Likewise.
32582         * tests/test-mbsstr2.c: Likewise.
32583         * tests/test-mbsstr3.c: Likewise.
32584         * tests/test-memchr.c: Likewise.
32585         * tests/test-memchr2.c: Likewise.
32586         * tests/test-memcmp.c: Likewise.
32587         * tests/test-memmem.c: Likewise.
32588         * tests/test-memrchr.c: Likewise.
32589         * tests/test-mkdir.c: Likewise.
32590         * tests/test-mkdirat.c: Likewise.
32591         * tests/test-mkfifo.c: Likewise.
32592         * tests/test-mkfifoat.c: Likewise.
32593         * tests/test-mknod.c: Likewise.
32594         * tests/test-nanosleep.c: Likewise.
32595         * tests/test-nl_langinfo.c: Likewise.
32596         * tests/test-obstack-printf.c: Likewise.
32597         * tests/test-open.c: Likewise.
32598         * tests/test-openat.c: Likewise.
32599         * tests/test-pipe-filter-gi1.c: Likewise.
32600         * tests/test-pipe-filter-gi2-main.c: Likewise.
32601         * tests/test-pipe-filter-ii1.c: Likewise.
32602         * tests/test-pipe-filter-ii2-main.c: Likewise.
32603         * tests/test-pipe2.c: Likewise.
32604         * tests/test-popen.h: Likewise.
32605         * tests/test-posixtm.c: Likewise.
32606         * tests/test-pread.c: Likewise.
32607         * tests/test-printf-frexp.c: Likewise.
32608         * tests/test-printf-frexpl.c: Likewise.
32609         * tests/test-printf-posix.c: Likewise.
32610         * tests/test-priv-set.c: Likewise.
32611         * tests/test-quotearg.c: Likewise.
32612         * tests/test-random_r.c: Likewise.
32613         * tests/test-rawmemchr.c: Likewise.
32614         * tests/test-rbtree_list.c: Likewise.
32615         * tests/test-rbtree_oset.c: Likewise.
32616         * tests/test-rbtreehash_list.c: Likewise.
32617         * tests/test-readlink.c: Likewise.
32618         * tests/test-remove.c: Likewise.
32619         * tests/test-rename.c: Likewise.
32620         * tests/test-renameat.c: Likewise.
32621         * tests/test-rmdir.c: Likewise.
32622         * tests/test-round1.c: Likewise.
32623         * tests/test-roundf1.c: Likewise.
32624         * tests/test-roundl.c: Likewise.
32625         * tests/test-safe-alloc.c: Likewise.
32626         * tests/test-sameacls.c: Likewise.
32627         * tests/test-set-mode-acl.c: Likewise.
32628         * tests/test-setenv.c: Likewise.
32629         * tests/test-sigaction.c: Likewise.
32630         * tests/test-signbit.c: Likewise.
32631         * tests/test-sleep.c: Likewise.
32632         * tests/test-snprintf-posix.c: Likewise.
32633         * tests/test-snprintf.c: Likewise.
32634         * tests/test-sprintf-posix.c: Likewise.
32635         * tests/test-stat-time.c: Likewise.
32636         * tests/test-stat.c: Likewise.
32637         * tests/test-strcasestr.c: Likewise.
32638         * tests/test-strchrnul.c: Likewise.
32639         * tests/test-strerror.c: Likewise.
32640         * tests/test-striconv.c: Likewise.
32641         * tests/test-striconveh.c: Likewise.
32642         * tests/test-striconveha.c: Likewise.
32643         * tests/test-strsignal.c: Likewise.
32644         * tests/test-strstr.c: Likewise.
32645         * tests/test-strtod.c: Likewise.
32646         * tests/test-strverscmp.c: Likewise.
32647         * tests/test-symlink.c: Likewise.
32648         * tests/test-symlinkat.c: Likewise.
32649         * tests/test-trunc1.c: Likewise.
32650         * tests/test-trunc2.c: Likewise.
32651         * tests/test-truncf1.c: Likewise.
32652         * tests/test-truncf2.c: Likewise.
32653         * tests/test-truncl.c: Likewise.
32654         * tests/test-uname.c: Likewise.
32655         * tests/test-unlink.c: Likewise.
32656         * tests/test-unlinkat.c: Likewise.
32657         * tests/test-unsetenv.c: Likewise.
32658         * tests/test-usleep.c: Likewise.
32659         * tests/test-utimens.c: Likewise.
32660         * tests/test-utimensat.c: Likewise.
32661         * tests/test-vasnprintf-posix.c: Likewise.
32662         * tests/test-vasnprintf-posix2.c: Likewise.
32663         * tests/test-vasnprintf.c: Likewise.
32664         * tests/test-vasprintf-posix.c: Likewise.
32665         * tests/test-vasprintf.c: Likewise.
32666         * tests/test-vdprintf-posix.c: Likewise.
32667         * tests/test-vfprintf-posix.c: Likewise.
32668         * tests/test-vprintf-posix.c: Likewise.
32669         * tests/test-vsnprintf-posix.c: Likewise.
32670         * tests/test-vsnprintf.c: Likewise.
32671         * tests/test-vsprintf-posix.c: Likewise.
32672         * tests/test-wcrtomb.c: Likewise.
32673         * tests/test-wcsnrtombs.c: Likewise.
32674         * tests/test-wcsrtombs.c: Likewise.
32675         * tests/test-wctype.c: Likewise.
32676         * tests/test-wcwidth.c: Likewise.
32677         * tests/test-xfprintf-posix.c: Likewise.
32678         * tests/test-xmemdup0.c: Likewise.
32679         * tests/test-xprintf-posix.c: Likewise.
32680         * tests/test-xvasprintf.c: Likewise.
32681         * tests/unicase/test-locale-language.c: Likewise.
32682         * tests/unicase/test-mapping-part1.h: Likewise.
32683         * tests/unicase/test-predicate-part1.h: Likewise.
32684         * tests/unicase/test-u8-casecmp.c: Likewise.
32685         * tests/unicase/test-u8-casecoll.c: Likewise.
32686         * tests/unicase/test-u8-casefold.c: Likewise.
32687         * tests/unicase/test-u8-is-cased.c: Likewise.
32688         * tests/unicase/test-u8-is-casefolded.c: Likewise.
32689         * tests/unicase/test-u8-is-lowercase.c: Likewise.
32690         * tests/unicase/test-u8-is-titlecase.c: Likewise.
32691         * tests/unicase/test-u8-is-uppercase.c: Likewise.
32692         * tests/unicase/test-u8-tolower.c: Likewise.
32693         * tests/unicase/test-u8-totitle.c: Likewise.
32694         * tests/unicase/test-u8-toupper.c: Likewise.
32695         * tests/unicase/test-u16-casecmp.c: Likewise.
32696         * tests/unicase/test-u16-casecoll.c: Likewise.
32697         * tests/unicase/test-u16-casefold.c: Likewise.
32698         * tests/unicase/test-u16-is-cased.c: Likewise.
32699         * tests/unicase/test-u16-is-casefolded.c: Likewise.
32700         * tests/unicase/test-u16-is-lowercase.c: Likewise.
32701         * tests/unicase/test-u16-is-titlecase.c: Likewise.
32702         * tests/unicase/test-u16-is-uppercase.c: Likewise.
32703         * tests/unicase/test-u16-tolower.c: Likewise.
32704         * tests/unicase/test-u16-totitle.c: Likewise.
32705         * tests/unicase/test-u16-toupper.c: Likewise.
32706         * tests/unicase/test-u32-casecmp.c: Likewise.
32707         * tests/unicase/test-u32-casecoll.c: Likewise.
32708         * tests/unicase/test-u32-casefold.c: Likewise.
32709         * tests/unicase/test-u32-is-cased.c: Likewise.
32710         * tests/unicase/test-u32-is-casefolded.c: Likewise.
32711         * tests/unicase/test-u32-is-lowercase.c: Likewise.
32712         * tests/unicase/test-u32-is-titlecase.c: Likewise.
32713         * tests/unicase/test-u32-is-uppercase.c: Likewise.
32714         * tests/unicase/test-u32-tolower.c: Likewise.
32715         * tests/unicase/test-u32-totitle.c: Likewise.
32716         * tests/unicase/test-u32-toupper.c: Likewise.
32717         * tests/unicase/test-ulc-casecmp.c: Likewise.
32718         * tests/unicase/test-ulc-casecoll.c: Likewise.
32719         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32720         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
32721         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32722         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32723         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
32724         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
32725         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32726         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32727         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32728         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
32729         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32730         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32731         * tests/unictype/test-bidi_byname.c: Likewise.
32732         * tests/unictype/test-bidi_name.c: Likewise.
32733         * tests/unictype/test-bidi_of.c: Likewise.
32734         * tests/unictype/test-bidi_test.c: Likewise.
32735         * tests/unictype/test-block_list.c: Likewise.
32736         * tests/unictype/test-block_of.c: Likewise.
32737         * tests/unictype/test-block_test.c: Likewise.
32738         * tests/unictype/test-categ_and.c: Likewise.
32739         * tests/unictype/test-categ_and_not.c: Likewise.
32740         * tests/unictype/test-categ_byname.c: Likewise.
32741         * tests/unictype/test-categ_name.c: Likewise.
32742         * tests/unictype/test-categ_none.c: Likewise.
32743         * tests/unictype/test-categ_of.c: Likewise.
32744         * tests/unictype/test-categ_or.c: Likewise.
32745         * tests/unictype/test-categ_test_withtable.c: Likewise.
32746         * tests/unictype/test-combining.c: Likewise.
32747         * tests/unictype/test-decdigit.c: Likewise.
32748         * tests/unictype/test-digit.c: Likewise.
32749         * tests/unictype/test-mirror.c: Likewise.
32750         * tests/unictype/test-numeric.c: Likewise.
32751         * tests/unictype/test-pr_byname.c: Likewise.
32752         * tests/unictype/test-pr_test.c: Likewise.
32753         * tests/unictype/test-predicate-part1.h: Likewise.
32754         * tests/unictype/test-scripts.c: Likewise.
32755         * tests/unictype/test-sy_c_ident.c: Likewise.
32756         * tests/unictype/test-sy_java_ident.c: Likewise.
32757         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
32758         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
32759         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
32760         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
32761         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
32762         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
32763         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
32764         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
32765         * tests/uninorm/test-canonical-decomposition.c: Likewise.
32766         * tests/uninorm/test-compat-decomposition.c: Likewise.
32767         * tests/uninorm/test-composition.c: Likewise.
32768         * tests/uninorm/test-decomposing-form.c: Likewise.
32769         * tests/uninorm/test-decomposition.c: Likewise.
32770         * tests/uninorm/test-u8-nfc.c: Likewise.
32771         * tests/uninorm/test-u8-nfd.c: Likewise.
32772         * tests/uninorm/test-u8-nfkc.c: Likewise.
32773         * tests/uninorm/test-u8-nfkd.c: Likewise.
32774         * tests/uninorm/test-u8-normcmp.c: Likewise.
32775         * tests/uninorm/test-u8-normcoll.c: Likewise.
32776         * tests/uninorm/test-u16-nfc.c: Likewise.
32777         * tests/uninorm/test-u16-nfd.c: Likewise.
32778         * tests/uninorm/test-u16-nfkc.c: Likewise.
32779         * tests/uninorm/test-u16-nfkd.c: Likewise.
32780         * tests/uninorm/test-u16-normcmp.c: Likewise.
32781         * tests/uninorm/test-u16-normcoll.c: Likewise.
32782         * tests/uninorm/test-u32-nfc.c: Likewise.
32783         * tests/uninorm/test-u32-nfd.c: Likewise.
32784         * tests/uninorm/test-u32-nfkc.c: Likewise.
32785         * tests/uninorm/test-u32-nfkd.c: Likewise.
32786         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32787         * tests/uninorm/test-u32-normcmp.c: Likewise.
32788         * tests/uninorm/test-u32-normcoll.c: Likewise.
32789         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
32790         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32791         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32792         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32793         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32794         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32795         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32796         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32797         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32798         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32799         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32800         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32801         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32802         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32803         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32804         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32805         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32806         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32807         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32808         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32809         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32810         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32811         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32812         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32813         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32814         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32815         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32816         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32817         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32818         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
32819         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
32820         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
32821         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
32822         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32823         * tests/uniwidth/test-u8-width.c: Likewise.
32824         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32825         * tests/uniwidth/test-u16-width.c: Likewise.
32826         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32827         * tests/uniwidth/test-u32-width.c: Likewise.
32828         * tests/uniwidth/test-uc_width.c: Likewise.
32829         * tests/uniwidth/test-uc_width2.c: Likewise.
32830         * modules/acl-tests (Files): Add tests/macros.h.
32831         * modules/areadlink-tests (Files): Likewise.
32832         * modules/areadlink-with-size-tests (Files): Likewise.
32833         * modules/areadlinkat-tests (Files): Likewise.
32834         * modules/areadlinkat-with-size-tests (Files): Likewise.
32835         * modules/argmatch-tests (Files): Likewise.
32836         * modules/argv-iter-tests (Files): Likewise.
32837         * modules/array-list-tests (Files): Likewise.
32838         * modules/array-mergesort-tests (Files): Likewise.
32839         * modules/array-oset-tests (Files): Likewise.
32840         * modules/avltree-list-tests (Files): Likewise.
32841         * modules/avltree-oset-tests (Files): Likewise.
32842         * modules/avltreehash-list-tests (Files): Likewise.
32843         * modules/base64-tests (Files): Likewise.
32844         * modules/binary-io-tests (Files): Likewise.
32845         * modules/bitrotate-tests (Files): Likewise.
32846         * modules/btowc-tests (Files): Likewise.
32847         * modules/byteswap-tests (Files): Likewise.
32848         * modules/c-ctype-tests (Files): Likewise.
32849         * modules/c-stack-tests (Files): Likewise.
32850         * modules/c-strcase-tests (Files): Likewise.
32851         * modules/c-strcasestr-tests (Files): Likewise.
32852         * modules/c-strstr-tests (Files): Likewise.
32853         * modules/canonicalize-lgpl-tests (Files): Likewise.
32854         * modules/canonicalize-tests (Files): Likewise.
32855         * modules/carray-list-tests (Files): Likewise.
32856         * modules/ceilf-tests (Files): Likewise.
32857         * modules/ceill-tests (Files): Likewise.
32858         * modules/chown-tests (Files): Likewise.
32859         * modules/cloexec-tests (Files): Likewise.
32860         * modules/copy-file-tests (Files): Likewise.
32861         * modules/count-one-bits-tests (Files): Likewise.
32862         * modules/dprintf-posix-tests (Files): Likewise.
32863         * modules/dup2-tests (Files): Likewise.
32864         * modules/dup3-tests (Files): Likewise.
32865         * modules/duplocale-tests (Files): Likewise.
32866         * modules/fbufmode-tests (Files): Likewise.
32867         * modules/fchdir-tests (Files): Likewise.
32868         * modules/fcntl-safer-tests (Files): Likewise.
32869         * modules/fcntl-tests (Files): Likewise.
32870         * modules/fdopendir-tests (Files): Likewise.
32871         * modules/fdutimensat-tests (Files): Likewise.
32872         * modules/fflush-tests (Files): Likewise.
32873         * modules/filevercmp-tests (Files): Likewise.
32874         * modules/flock-tests (Files): Likewise.
32875         * modules/floorf-tests (Files): Likewise.
32876         * modules/floorl-tests (Files): Likewise.
32877         * modules/fnmatch-tests (Files): Likewise.
32878         * modules/fopen-safer-tests (Files): Likewise.
32879         * modules/fopen-tests (Files): Likewise.
32880         * modules/fpending-tests (Files): Likewise.
32881         * modules/fprintf-posix-tests (Files): Likewise.
32882         * modules/fpurge-tests (Files): Likewise.
32883         * modules/freadable-tests (Files): Likewise.
32884         * modules/freadahead-tests (Files): Likewise.
32885         * modules/freading-tests (Files): Likewise.
32886         * modules/freadptr-tests (Files): Likewise.
32887         * modules/freadseek-tests (Files): Likewise.
32888         * modules/freopen-tests (Files): Likewise.
32889         * modules/frexp-nolibm-tests (Files): Likewise.
32890         * modules/frexp-tests (Files): Likewise.
32891         * modules/frexpl-nolibm-tests (Files): Likewise.
32892         * modules/frexpl-tests (Files): Likewise.
32893         * modules/fseek-tests (Files): Likewise.
32894         * modules/fseeko-tests (Files): Likewise.
32895         * modules/fstrcmp-tests (Files): Likewise.
32896         * modules/fsync-tests (Files): Likewise.
32897         * modules/ftell-tests (Files): Likewise.
32898         * modules/ftello-tests (Files): Likewise.
32899         * modules/func-tests (Files): Likewise.
32900         * modules/futimens-tests (Files): Likewise.
32901         * modules/fwritable-tests (Files): Likewise.
32902         * modules/fwriting-tests (Files): Likewise.
32903         * modules/getcwd-tests (Files): Likewise.
32904         * modules/getdate-tests (Files): Likewise.
32905         * modules/getdelim-tests (Files): Likewise.
32906         * modules/getdtablesize-tests (Files): Likewise.
32907         * modules/getgroups-tests (Files): Likewise.
32908         * modules/getline-tests (Files): Likewise.
32909         * modules/getndelim2-tests (Files): Likewise.
32910         * modules/glob-tests (Files): Likewise.
32911         * modules/hash-tests (Files): Likewise.
32912         * modules/i-ring-tests (Files): Likewise.
32913         * modules/iconv-tests (Files): Likewise.
32914         * modules/iconv_open-utf-tests (Files): Likewise.
32915         * modules/idpriv-drop-tests (Files): Likewise.
32916         * modules/idpriv-droptemp-tests (Files): Likewise.
32917         * modules/inet_ntop-tests (Files): Likewise.
32918         * modules/inet_pton-tests (Files): Likewise.
32919         * modules/isblank-tests (Files): Likewise.
32920         * modules/isfinite-tests (Files): Likewise.
32921         * modules/isinf-tests (Files): Likewise.
32922         * modules/isnan-tests (Files): Likewise.
32923         * modules/isnand-nolibm-tests (Files): Likewise.
32924         * modules/isnand-tests (Files): Likewise.
32925         * modules/isnanf-nolibm-tests (Files): Likewise.
32926         * modules/isnanf-tests (Files): Likewise.
32927         * modules/isnanl-nolibm-tests (Files): Likewise.
32928         * modules/isnanl-tests (Files): Likewise.
32929         * modules/lchown-tests (Files): Likewise.
32930         * modules/ldexpl-tests (Files): Likewise.
32931         * modules/link-tests (Files): Likewise.
32932         * modules/linkat-tests (Files): Likewise.
32933         * modules/linked-list-tests (Files): Likewise.
32934         * modules/linkedhash-list-tests (Files): Likewise.
32935         * modules/localename-tests (Files): Likewise.
32936         * modules/lseek-tests (Files): Likewise.
32937         * modules/lstat-tests (Files): Likewise.
32938         * modules/mbmemcasecmp-tests (Files): Likewise.
32939         * modules/mbmemcasecoll-tests (Files): Likewise.
32940         * modules/mbrtowc-tests (Files): Likewise.
32941         * modules/mbscasecmp-tests (Files): Likewise.
32942         * modules/mbscasestr-tests (Files): Likewise.
32943         * modules/mbschr-tests (Files): Likewise.
32944         * modules/mbscspn-tests (Files): Likewise.
32945         * modules/mbsinit-tests (Files): Likewise.
32946         * modules/mbsncasecmp-tests (Files): Likewise.
32947         * modules/mbsnrtowcs-tests (Files): Likewise.
32948         * modules/mbspbrk-tests (Files): Likewise.
32949         * modules/mbspcasecmp-tests (Files): Likewise.
32950         * modules/mbsrchr-tests (Files): Likewise.
32951         * modules/mbsrtowcs-tests (Files): Likewise.
32952         * modules/mbsspn-tests (Files): Likewise.
32953         * modules/mbsstr-tests (Files): Likewise.
32954         * modules/memchr-tests (Files): Likewise.
32955         * modules/memchr2-tests (Files): Likewise.
32956         * modules/memcmp-tests (Files): Likewise.
32957         * modules/memmem-tests (Files): Likewise.
32958         * modules/memrchr-tests (Files): Likewise.
32959         * modules/mkdir-tests (Files): Likewise.
32960         * modules/mkfifo-tests (Files): Likewise.
32961         * modules/mkfifoat-tests (Files): Likewise.
32962         * modules/mknod-tests (Files): Likewise.
32963         * modules/nanosleep-tests (Files): Likewise.
32964         * modules/nl_langinfo-tests (Files): Likewise.
32965         * modules/obstack-printf-tests (Files): Likewise.
32966         * modules/open-tests (Files): Likewise.
32967         * modules/openat-tests (Files): Likewise.
32968         * modules/pipe-filter-gi-tests (Files): Likewise.
32969         * modules/pipe-filter-ii-tests (Files): Likewise.
32970         * modules/pipe2-tests (Files): Likewise.
32971         * modules/popen-safer-tests (Files): Likewise.
32972         * modules/popen-tests (Files): Likewise.
32973         * modules/posixtm-tests (Files): Likewise.
32974         * modules/pread-tests (Files): Likewise.
32975         * modules/printf-frexp-tests (Files): Likewise.
32976         * modules/printf-frexpl-tests (Files): Likewise.
32977         * modules/printf-posix-tests (Files): Likewise.
32978         * modules/priv-set-tests (Files): Likewise.
32979         * modules/quotearg-tests (Files): Likewise.
32980         * modules/random_r-tests (Files): Likewise.
32981         * modules/rawmemchr-tests (Files): Likewise.
32982         * modules/rbtree-list-tests (Files): Likewise.
32983         * modules/rbtree-oset-tests (Files): Likewise.
32984         * modules/rbtreehash-list-tests (Files): Likewise.
32985         * modules/readlink-tests (Files): Likewise.
32986         * modules/remove-tests (Files): Likewise.
32987         * modules/rename-tests (Files): Likewise.
32988         * modules/renameat-tests (Files): Likewise.
32989         * modules/rmdir-tests (Files): Likewise.
32990         * modules/round-tests (Files): Likewise.
32991         * modules/roundf-tests (Files): Likewise.
32992         * modules/roundl-tests (Files): Likewise.
32993         * modules/safe-alloc-tests (Files): Likewise.
32994         * modules/setenv-tests (Files): Likewise.
32995         * modules/sigaction-tests (Files): Likewise.
32996         * modules/signbit-tests (Files): Likewise.
32997         * modules/sleep-tests (Files): Likewise.
32998         * modules/snprintf-posix-tests (Files): Likewise.
32999         * modules/snprintf-tests (Files): Likewise.
33000         * modules/sprintf-posix-tests (Files): Likewise.
33001         * modules/stat-tests (Files): Likewise.
33002         * modules/stat-time-tests (Files): Likewise.
33003         * modules/strcasestr-tests (Files): Likewise.
33004         * modules/strchrnul-tests (Files): Likewise.
33005         * modules/strerror-tests (Files): Likewise.
33006         * modules/striconv-tests (Files): Likewise.
33007         * modules/striconveh-tests (Files): Likewise.
33008         * modules/striconveha-tests (Files): Likewise.
33009         * modules/strsignal-tests (Files): Likewise.
33010         * modules/strstr-tests (Files): Likewise.
33011         * modules/strtod-tests (Files): Likewise.
33012         * modules/strverscmp-tests (Files): Likewise.
33013         * modules/symlink-tests (Files): Likewise.
33014         * modules/symlinkat-tests (Files): Likewise.
33015         * modules/trunc-tests (Files): Likewise.
33016         * modules/truncf-tests (Files): Likewise.
33017         * modules/truncl-tests (Files): Likewise.
33018         * modules/uname-tests (Files): Likewise.
33019         * modules/unicase/cased-tests (Files): Likewise.
33020         * modules/unicase/ignorable-tests (Files): Likewise.
33021         * modules/unicase/locale-language-tests (Files): Likewise.
33022         * modules/unicase/tolower-tests (Files): Likewise.
33023         * modules/unicase/totitle-tests (Files): Likewise.
33024         * modules/unicase/toupper-tests (Files): Likewise.
33025         * modules/unicase/u8-casecmp-tests (Files): Likewise.
33026         * modules/unicase/u8-casecoll-tests (Files): Likewise.
33027         * modules/unicase/u8-casefold-tests (Files): Likewise.
33028         * modules/unicase/u8-is-cased-tests (Files): Likewise.
33029         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
33030         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
33031         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
33032         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
33033         * modules/unicase/u8-tolower-tests (Files): Likewise.
33034         * modules/unicase/u8-totitle-tests (Files): Likewise.
33035         * modules/unicase/u8-toupper-tests (Files): Likewise.
33036         * modules/unicase/u16-casecmp-tests (Files): Likewise.
33037         * modules/unicase/u16-casecoll-tests (Files): Likewise.
33038         * modules/unicase/u16-casefold-tests (Files): Likewise.
33039         * modules/unicase/u16-is-cased-tests (Files): Likewise.
33040         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
33041         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
33042         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
33043         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
33044         * modules/unicase/u16-tolower-tests (Files): Likewise.
33045         * modules/unicase/u16-totitle-tests (Files): Likewise.
33046         * modules/unicase/u16-toupper-tests (Files): Likewise.
33047         * modules/unicase/u32-casecmp-tests (Files): Likewise.
33048         * modules/unicase/u32-casecoll-tests (Files): Likewise.
33049         * modules/unicase/u32-casefold-tests (Files): Likewise.
33050         * modules/unicase/u32-is-cased-tests (Files): Likewise.
33051         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
33052         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
33053         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
33054         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
33055         * modules/unicase/u32-tolower-tests (Files): Likewise.
33056         * modules/unicase/u32-totitle-tests (Files): Likewise.
33057         * modules/unicase/u32-toupper-tests (Files): Likewise.
33058         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
33059         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
33060         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
33061         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
33062         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
33063         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
33064         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
33065         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
33066         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
33067         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
33068         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
33069         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
33070         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
33071         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
33072         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
33073         * modules/unictype/bidicategory-name-tests (Files): Likewise.
33074         * modules/unictype/bidicategory-of-tests (Files): Likewise.
33075         * modules/unictype/bidicategory-test-tests (Files): Likewise.
33076         * modules/unictype/block-list-tests (Files): Likewise.
33077         * modules/unictype/block-of-tests (Files): Likewise.
33078         * modules/unictype/block-test-tests (Files): Likewise.
33079         * modules/unictype/category-C-tests (Files): Likewise.
33080         * modules/unictype/category-Cc-tests (Files): Likewise.
33081         * modules/unictype/category-Cf-tests (Files): Likewise.
33082         * modules/unictype/category-Cn-tests (Files): Likewise.
33083         * modules/unictype/category-Co-tests (Files): Likewise.
33084         * modules/unictype/category-Cs-tests (Files): Likewise.
33085         * modules/unictype/category-L-tests (Files): Likewise.
33086         * modules/unictype/category-Ll-tests (Files): Likewise.
33087         * modules/unictype/category-Lm-tests (Files): Likewise.
33088         * modules/unictype/category-Lo-tests (Files): Likewise.
33089         * modules/unictype/category-Lt-tests (Files): Likewise.
33090         * modules/unictype/category-Lu-tests (Files): Likewise.
33091         * modules/unictype/category-M-tests (Files): Likewise.
33092         * modules/unictype/category-Mc-tests (Files): Likewise.
33093         * modules/unictype/category-Me-tests (Files): Likewise.
33094         * modules/unictype/category-Mn-tests (Files): Likewise.
33095         * modules/unictype/category-N-tests (Files): Likewise.
33096         * modules/unictype/category-Nd-tests (Files): Likewise.
33097         * modules/unictype/category-Nl-tests (Files): Likewise.
33098         * modules/unictype/category-No-tests (Files): Likewise.
33099         * modules/unictype/category-P-tests (Files): Likewise.
33100         * modules/unictype/category-Pc-tests (Files): Likewise.
33101         * modules/unictype/category-Pd-tests (Files): Likewise.
33102         * modules/unictype/category-Pe-tests (Files): Likewise.
33103         * modules/unictype/category-Pf-tests (Files): Likewise.
33104         * modules/unictype/category-Pi-tests (Files): Likewise.
33105         * modules/unictype/category-Po-tests (Files): Likewise.
33106         * modules/unictype/category-Ps-tests (Files): Likewise.
33107         * modules/unictype/category-S-tests (Files): Likewise.
33108         * modules/unictype/category-Sc-tests (Files): Likewise.
33109         * modules/unictype/category-Sk-tests (Files): Likewise.
33110         * modules/unictype/category-Sm-tests (Files): Likewise.
33111         * modules/unictype/category-So-tests (Files): Likewise.
33112         * modules/unictype/category-Z-tests (Files): Likewise.
33113         * modules/unictype/category-Zl-tests (Files): Likewise.
33114         * modules/unictype/category-Zp-tests (Files): Likewise.
33115         * modules/unictype/category-Zs-tests (Files): Likewise.
33116         * modules/unictype/category-and-not-tests (Files): Likewise.
33117         * modules/unictype/category-and-tests (Files): Likewise.
33118         * modules/unictype/category-byname-tests (Files): Likewise.
33119         * modules/unictype/category-name-tests (Files): Likewise.
33120         * modules/unictype/category-none-tests (Files): Likewise.
33121         * modules/unictype/category-of-tests (Files): Likewise.
33122         * modules/unictype/category-or-tests (Files): Likewise.
33123         * modules/unictype/category-test-withtable-tests (Files): Likewise.
33124         * modules/unictype/combining-class-tests (Files): Likewise.
33125         * modules/unictype/ctype-alnum-tests (Files): Likewise.
33126         * modules/unictype/ctype-alpha-tests (Files): Likewise.
33127         * modules/unictype/ctype-blank-tests (Files): Likewise.
33128         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
33129         * modules/unictype/ctype-digit-tests (Files): Likewise.
33130         * modules/unictype/ctype-graph-tests (Files): Likewise.
33131         * modules/unictype/ctype-lower-tests (Files): Likewise.
33132         * modules/unictype/ctype-print-tests (Files): Likewise.
33133         * modules/unictype/ctype-punct-tests (Files): Likewise.
33134         * modules/unictype/ctype-space-tests (Files): Likewise.
33135         * modules/unictype/ctype-upper-tests (Files): Likewise.
33136         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
33137         * modules/unictype/decimal-digit-tests (Files): Likewise.
33138         * modules/unictype/digit-tests (Files): Likewise.
33139         * modules/unictype/mirror-tests (Files): Likewise.
33140         * modules/unictype/numeric-tests (Files): Likewise.
33141         * modules/unictype/property-alphabetic-tests (Files): Likewise.
33142         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
33143         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
33144         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
33145         Likewise.
33146         * modules/unictype/property-bidi-block-separator-tests (Files):
33147         Likewise.
33148         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
33149         Likewise.
33150         * modules/unictype/property-bidi-common-separator-tests (Files):
33151         Likewise.
33152         * modules/unictype/property-bidi-control-tests (Files): Likewise.
33153         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
33154         Likewise.
33155         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
33156         Likewise.
33157         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
33158         Likewise.
33159         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
33160         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
33161         Likewise.
33162         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
33163         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
33164         Likewise.
33165         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
33166         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
33167         * modules/unictype/property-bidi-segment-separator-tests (Files):
33168         Likewise.
33169         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
33170         * modules/unictype/property-byname-tests (Files): Likewise.
33171         * modules/unictype/property-combining-tests (Files): Likewise.
33172         * modules/unictype/property-composite-tests (Files): Likewise.
33173         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
33174         * modules/unictype/property-dash-tests (Files): Likewise.
33175         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
33176         * modules/unictype/property-default-ignorable-code-point-tests (Files):
33177         Likewise.
33178         * modules/unictype/property-deprecated-tests (Files): Likewise.
33179         * modules/unictype/property-diacritic-tests (Files): Likewise.
33180         * modules/unictype/property-extender-tests (Files): Likewise.
33181         * modules/unictype/property-format-control-tests (Files): Likewise.
33182         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
33183         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
33184         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
33185         * modules/unictype/property-hex-digit-tests (Files): Likewise.
33186         * modules/unictype/property-hyphen-tests (Files): Likewise.
33187         * modules/unictype/property-id-continue-tests (Files): Likewise.
33188         * modules/unictype/property-id-start-tests (Files): Likewise.
33189         * modules/unictype/property-ideographic-tests (Files): Likewise.
33190         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
33191         * modules/unictype/property-ids-trinary-operator-tests (Files):
33192         Likewise.
33193         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
33194         * modules/unictype/property-iso-control-tests (Files): Likewise.
33195         * modules/unictype/property-join-control-tests (Files): Likewise.
33196         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
33197         * modules/unictype/property-line-separator-tests (Files): Likewise.
33198         * modules/unictype/property-logical-order-exception-tests (Files):
33199         Likewise.
33200         * modules/unictype/property-lowercase-tests (Files): Likewise.
33201         * modules/unictype/property-math-tests (Files): Likewise.
33202         * modules/unictype/property-non-break-tests (Files): Likewise.
33203         * modules/unictype/property-not-a-character-tests (Files): Likewise.
33204         * modules/unictype/property-numeric-tests (Files): Likewise.
33205         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
33206         * modules/unictype/property-other-default-ignorable-code-point-tests
33207         (Files): Likewise.
33208         * modules/unictype/property-other-grapheme-extend-tests (Files):
33209         Likewise.
33210         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
33211         * modules/unictype/property-other-id-start-tests (Files): Likewise.
33212         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
33213         * modules/unictype/property-other-math-tests (Files): Likewise.
33214         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
33215         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
33216         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
33217         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
33218         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
33219         * modules/unictype/property-private-use-tests (Files): Likewise.
33220         * modules/unictype/property-punctuation-tests (Files): Likewise.
33221         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
33222         * modules/unictype/property-radical-tests (Files): Likewise.
33223         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
33224         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
33225         * modules/unictype/property-space-tests (Files): Likewise.
33226         * modules/unictype/property-terminal-punctuation-tests (Files):
33227         Likewise.
33228         * modules/unictype/property-test-tests (Files): Likewise.
33229         * modules/unictype/property-titlecase-tests (Files): Likewise.
33230         * modules/unictype/property-unassigned-code-value-tests (Files):
33231         Likewise.
33232         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
33233         * modules/unictype/property-uppercase-tests (Files): Likewise.
33234         * modules/unictype/property-variation-selector-tests (Files): Likewise.
33235         * modules/unictype/property-white-space-tests (Files): Likewise.
33236         * modules/unictype/property-xid-continue-tests (Files): Likewise.
33237         * modules/unictype/property-xid-start-tests (Files): Likewise.
33238         * modules/unictype/property-zero-width-tests (Files): Likewise.
33239         * modules/unictype/scripts-tests (Files): Likewise.
33240         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
33241         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
33242         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
33243         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
33244         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
33245         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
33246         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
33247         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
33248         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
33249         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
33250         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
33251         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
33252         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
33253         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
33254         * modules/uninorm/composition-tests (Files): Likewise.
33255         * modules/uninorm/decomposing-form-tests (Files): Likewise.
33256         * modules/uninorm/decomposition-tests (Files): Likewise.
33257         * modules/uninorm/filter-tests (Files): Likewise.
33258         * modules/uninorm/nfc-tests (Files): Likewise.
33259         * modules/uninorm/nfd-tests (Files): Likewise.
33260         * modules/uninorm/nfkc-tests (Files): Likewise.
33261         * modules/uninorm/nfkd-tests (Files): Likewise.
33262         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
33263         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
33264         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
33265         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
33266         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
33267         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
33268         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
33269         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33270         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
33271         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
33272         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
33273         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
33274         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33275         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
33276         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
33277         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
33278         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
33279         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33280         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
33281         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
33282         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
33283         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
33284         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33285         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
33286         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
33287         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
33288         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
33289         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
33290         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
33291         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
33292         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
33293         * modules/uniwidth/u8-width-tests (Files): Likewise.
33294         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
33295         * modules/uniwidth/u16-width-tests (Files): Likewise.
33296         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
33297         * modules/uniwidth/u32-width-tests (Files): Likewise.
33298         * modules/uniwidth/width-tests (Files): Likewise.
33299         * modules/unlink-tests (Files): Likewise.
33300         * modules/unsetenv-tests (Files): Likewise.
33301         * modules/usleep-tests (Files): Likewise.
33302         * modules/utimens-tests (Files): Likewise.
33303         * modules/utimensat-tests (Files): Likewise.
33304         * modules/vasnprintf-posix-tests (Files): Likewise.
33305         * modules/vasnprintf-tests (Files): Likewise.
33306         * modules/vasprintf-posix-tests (Files): Likewise.
33307         * modules/vasprintf-tests (Files): Likewise.
33308         * modules/vdprintf-posix-tests (Files): Likewise.
33309         * modules/vfprintf-posix-tests (Files): Likewise.
33310         * modules/vprintf-posix-tests (Files): Likewise.
33311         * modules/vsnprintf-posix-tests (Files): Likewise.
33312         * modules/vsnprintf-tests (Files): Likewise.
33313         * modules/vsprintf-posix-tests (Files): Likewise.
33314         * modules/wcrtomb-tests (Files): Likewise.
33315         * modules/wcsnrtombs-tests (Files): Likewise.
33316         * modules/wcsrtombs-tests (Files): Likewise.
33317         * modules/wctype-tests (Files): Likewise.
33318         * modules/wcwidth-tests (Files): Likewise.
33319         * modules/xmemdup0-tests (Files): Likewise.
33320         * modules/xprintf-posix-tests (Files): Likewise.
33321         * modules/xvasprintf-tests (Files): Likewise.
33322
33323 2009-12-24  Eric Blake  <ebb9@byu.net>
33324
33325         test-nanosleep: fix typo
33326         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
33327         patch.
33328         Reported by Bruno Haible.
33329
33330 2009-12-24  Bruno Haible  <bruno@clisp.org>
33331
33332         Reduce namespace pollution on glibc systems.
33333         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
33334         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
33335         systems.
33336         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
33337         <getopt.h> on glibc systems.
33338         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
33339         systems.
33340         * lib/fcntl.c: Include <unistd.h> here instead.
33341
33342 2009-12-24  Bruno Haible  <bruno@clisp.org>
33343
33344         * lib/stdlib.in.h (includes): Fix typo in today's commit.
33345
33346 2009-12-24  Eric Blake  <ebb9@byu.net>
33347
33348         tests: add signature checks
33349         * tests/signature.h (SIGNATURE_CHECK): New file.
33350         * modules/atexit-tests (Files): Use it.
33351         * modules/btowc-tests (Files): Likewise.
33352         * modules/canonicalize-lgpl-tests (Files): Likewise.
33353         * modules/ceilf-tests (Files): Likewise.
33354         * modules/ceill-tests (Files): Likewise.
33355         * modules/chown-tests (Files): Likewise.
33356         * modules/dprintf-posix-tests (Files): Likewise.
33357         * modules/dup2-tests (Files): Likewise.
33358         * modules/dup3-tests (Files): Likewise.
33359         * modules/duplocale-tests (Files): Likewise.
33360         * modules/fchdir-tests (Files): Likewise.
33361         * modules/fcntl-tests (Files): Likewise.
33362         * modules/fdopendir-tests (Files): Likewise.
33363         * modules/fflush-tests (Files): Likewise.
33364         * modules/flock-tests (Files): Likewise.
33365         * modules/floorf-tests (Files): Likewise.
33366         * modules/floorl-tests (Files): Likewise.
33367         * modules/fnmatch-tests (Files): Likewise.
33368         * modules/fopen-tests (Files): Likewise.
33369         * modules/fprintf-posix-tests (Files): Likewise.
33370         * modules/freopen-tests (Files): Likewise.
33371         * modules/frexp-nolibm-tests (Files): Likewise.
33372         * modules/frexp-tests (Files): Likewise.
33373         * modules/frexpl-nolibm-tests (Files): Likewise.
33374         * modules/frexpl-tests (Files): Likewise.
33375         * modules/fseek-tests (Files): Likewise.
33376         * modules/fseeko-tests (Files): Likewise.
33377         * modules/fsync-tests (Files): Likewise.
33378         * modules/ftell-tests (Files): Likewise.
33379         * modules/ftello-tests (Files): Likewise.
33380         * modules/futimens-tests (Files): Likewise.
33381         * modules/getaddrinfo-tests (Files): Likewise.
33382         * modules/getcwd-tests (Files): Likewise.
33383         * modules/getdelim-tests (Files): Likewise.
33384         * modules/getdtablesize-tests (Files): Likewise.
33385         * modules/getgroups-tests (Files): Likewise.
33386         * modules/gethostname-tests (Files): Likewise.
33387         * modules/getline-tests (Files): Likewise.
33388         * modules/getopt-posix-tests (Files): Likewise.
33389         * modules/gettimeofday-tests (Files): Likewise.
33390         * modules/glob-tests (Files): Likewise.
33391         * modules/iconv-tests (Files): Likewise.
33392         * modules/inet_ntop-tests (Files): Likewise.
33393         * modules/inet_pton-tests (Files): Likewise.
33394         * modules/isblank-tests (Files): Likewise.
33395         * modules/lchown-tests (Files): Likewise.
33396         * modules/ldexpl-tests (Files): Likewise.
33397         * modules/link-tests (Files): Likewise.
33398         * modules/linkat-tests (Files): Likewise.
33399         * modules/lseek-tests (Files): Likewise.
33400         * modules/lstat-tests (Files): Likewise.
33401         * modules/mbrtowc-tests (Files): Likewise.
33402         * modules/mbsinit-tests (Files): Likewise.
33403         * modules/mbsnrtowcs-tests (Files): Likewise.
33404         * modules/mbsrtowcs-tests (Files): Likewise.
33405         * modules/memchr-tests (Files): Likewise.
33406         * modules/memcmp-tests (Files): Likewise.
33407         * modules/memmem-tests (Files): Likewise.
33408         * modules/memrchr-tests (Files): Likewise.
33409         * modules/mkdir-tests (Files): Likewise.
33410         * modules/mkfifo-tests (Files): Likewise.
33411         * modules/mkfifoat-tests (Files): Likewise.
33412         * modules/mknod-tests (Files): Likewise.
33413         * modules/nanosleep-tests (Files): Likewise.
33414         * modules/nl_langinfo-tests (Files): Likewise.
33415         * modules/obstack-printf-tests (Files): Likewise.
33416         * modules/open-tests (Files): Likewise.
33417         * modules/openat-tests (Files): Likewise.
33418         * modules/perror-tests (Files): Likewise.
33419         * modules/pipe2-tests (Files): Likewise.
33420         * modules/poll-tests (Files): Likewise.
33421         * modules/popen-tests (Files): Likewise.
33422         * modules/posix_spawn-tests (Files): Likewise.
33423         * modules/posix_spawnp-tests (Files): Likewise.
33424         * modules/pread-tests (Files): Likewise.
33425         * modules/printf-posix-tests (Files): Likewise.
33426         * modules/pty-tests (Files): Likewise.
33427         * modules/random_r-tests (Files): Likewise.
33428         * modules/rawmemchr-tests (Files): Likewise.
33429         * modules/readlink-tests (Files): Likewise.
33430         * modules/remove-tests (Files): Likewise.
33431         * modules/rename-tests (Files): Likewise.
33432         * modules/renameat-tests (Files): Likewise.
33433         * modules/rmdir-tests (Files): Likewise.
33434         * modules/round-tests (Files): Likewise.
33435         * modules/roundf-tests (Files): Likewise.
33436         * modules/roundl-tests (Files): Likewise.
33437         * modules/select-tests (Files): Likewise.
33438         * modules/setenv-tests (Files): Likewise.
33439         * modules/sigaction-tests (Files): Likewise.
33440         * modules/sleep-tests (Files): Likewise.
33441         * modules/snprintf-posix-tests (Files): Likewise.
33442         * modules/snprintf-tests (Files): Likewise.
33443         * modules/sprintf-posix-tests (Files): Likewise.
33444         * modules/stat-tests (Files): Likewise.
33445         * modules/strcasestr-tests (Files): Likewise.
33446         * modules/strchrnul-tests (Files): Likewise.
33447         * modules/strerror-tests (Files): Likewise.
33448         * modules/strsignal-tests (Files): Likewise.
33449         * modules/strstr-tests (Files): Likewise.
33450         * modules/strtod-tests (Files): Likewise.
33451         * modules/strverscmp-tests (Files): Likewise.
33452         * modules/symlink-tests (Files): Likewise.
33453         * modules/symlinkat-tests (Files): Likewise.
33454         * modules/times-tests (Files): Likewise.
33455         * modules/trunc-tests (Files): Likewise.
33456         * modules/truncf-tests (Files): Likewise.
33457         * modules/truncl-tests (Files): Likewise.
33458         * modules/tsearch-tests (Files): Likewise.
33459         * modules/uname-tests (Files): Likewise.
33460         * modules/unlink-tests (Files): Likewise.
33461         * modules/unsetenv-tests (Files): Likewise.
33462         * modules/usleep-tests (Files): Likewise.
33463         * modules/utimensat-tests (Files): Likewise.
33464         * modules/vasprintf-tests (Files): Likewise.
33465         * modules/vdprintf-posix-tests (Files): Likewise.
33466         * modules/vfprintf-posix-tests (Files): Likewise.
33467         * modules/vprintf-posix-tests (Files): Likewise.
33468         * modules/vsnprintf-posix-tests (Files): Likewise.
33469         * modules/vsnprintf-tests (Files): Likewise.
33470         * modules/vsprintf-posix-tests (Files): Likewise.
33471         * modules/wcrtomb-tests (Files): Likewise.
33472         * modules/wcsnrtombs-tests (Files): Likewise.
33473         * modules/wcsrtombs-tests (Files): Likewise.
33474         * modules/wcwidth-tests (Files): Likewise.
33475         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
33476         * tests/test-isinf.c (isinf): Likewise.
33477         * tests/test-isnan.c (isnan): Likewise.
33478         * tests/test-signbit.c (signbit): Likewise.
33479         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
33480         declaration, either as macro or with correct signature.
33481         (select): Ensure function under test is declared with correct
33482         signature in correct header.
33483         * tests/test-atexit.c (atexit): Likewise.
33484         * tests/test-btowc.c (btowc): Likewise.
33485         * tests/test-canonicalize-lgpl.c (realpath)
33486         (canonicalize_file_name): Likewise.
33487         * tests/test-ceilf1.c (ceilf): Likewise.
33488         * tests/test-ceill.c (ceill): Likewise.
33489         * tests/test-chown.c (chown): Likewise.
33490         * tests/test-dprintf-posix.c (dprintf): Likewise.
33491         * tests/test-dup2.c (dup2): Likewise.
33492         * tests/test-dup3.c (dup3): Likewise.
33493         * tests/test-duplocale.c (duplocale): Likewise.
33494         * tests/test-fchdir.c (fchdir): Likewise.
33495         * tests/test-fchownat.c (fchownat): Likewise.
33496         * tests/test-fcntl.c (fcntl): Likewise.
33497         * tests/test-fdopendir.c (fdopendir): Likewise.
33498         * tests/test-fflush.c (fflush): Likewise.
33499         * tests/test-flock.c (flock): Likewise.
33500         * tests/test-floorf1.c (floorf): Likewise.
33501         * tests/test-floorl.c (floorl): Likewise.
33502         * tests/test-fnmatch.c (fnmatch): Likewise.
33503         * tests/test-fopen.c (fopen): Likewise.
33504         * tests/test-fprintf-posix.c (fprintf): Likewise.
33505         * tests/test-freopen.c (freopen): Likewise.
33506         * tests/test-frexp.c (frexp): Likewise.
33507         * tests/test-frexpl.c (frexpl): Likewise.
33508         * tests/test-fseek.c (fseek): Likewise.
33509         * tests/test-fseeko.c (fseeko): Likewise.
33510         * tests/test-fstatat.c (fstatat): Likewise.
33511         * tests/test-fsync.c (fsync): Likewise.
33512         * tests/test-ftell.c (ftell): Likewise.
33513         * tests/test-ftello.c (ftello): Likewise.
33514         * tests/test-futimens.c (futimens): Likewise.
33515         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
33516         (gai_strerror): Likewise.
33517         * tests/test-getcwd.c (getcwd): Likewise.
33518         * tests/test-getdelim.c (getdelim): Likewise.
33519         * tests/test-getdtablesize.c (getdtablesize): Likewise.
33520         * tests/test-getgroups.c (getgroups): Likewise.
33521         * tests/test-gethostname.c (gethostname): Likewise.
33522         * tests/test-getline.c (getline): Likewise.
33523         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
33524         Likewise.
33525         * tests/test-gettimeofday.c (gettimeofday): Likewise.
33526         * tests/test-glob.c (glob, globfree): Likewise.
33527         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
33528         * tests/test-inet_ntop.c (inet_ntop): Likewise.
33529         * tests/test-inet_pton.c (inet_pton): Likewise.
33530         * tests/test-isblank.c (isblank): Likewise.
33531         * tests/test-lchown.c (lchown): Likewise.
33532         * tests/test-ldexpl.c (ldexpl): Likewise.
33533         * tests/test-link.c (link): Likewise.
33534         * tests/test-linkat.c (linkat): Likewise.
33535         * tests/test-lseek.c (lseek): Likewise.
33536         * tests/test-lstat.c (lstat): Likewise.
33537         * tests/test-mbrtowc.c (mbrtowc): Likewise.
33538         * tests/test-mbsinit.c (mbsinit): Likewise.
33539         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
33540         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
33541         * tests/test-memchr.c (memchr): Likewise.
33542         * tests/test-memcmp.c (memcmp): Likewise.
33543         * tests/test-memmem.c (memmem): Likewise.
33544         * tests/test-memrchr.c (memrchr): Likewise.
33545         * tests/test-mkdir.c (mkdir): Likewise.
33546         * tests/test-mkdirat.c (mkdirat): Likewise.
33547         * tests/test-mkfifo.c (mkfifo): Likewise.
33548         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
33549         * tests/test-mknod.c (mknod): Likewise.
33550         * tests/test-nanosleep.c (nanosleep): Likewise.
33551         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
33552         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
33553         Likewise.
33554         * tests/test-open.c (open): Likewise.
33555         * tests/test-openat.c (openat): Likewise.
33556         * tests/test-perror.c (perror): Likewise.
33557         * tests/test-pipe2.c (pipe2): Likewise.
33558         * tests/test-poll.c (poll): Likewise.
33559         * tests/test-popen.c (popen, pclose): Likewise.
33560         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
33561         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
33562         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
33563         (posix_spawn_file_actions_destroy)
33564         (posix_spawn_file_actions_addclose)
33565         (posix_spawn_file_actions_addopen)
33566         (posix_spawn_file_actions_adddup2): Likewise.
33567         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
33568         * tests/test-pread.c (pread): Likewise.
33569         * tests/test-printf-posix.c (printf): Likewise.
33570         * tests/test-pty.c (openpty, forkpty): Likewise.
33571         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
33572         (random_r): Likewise.
33573         * tests/test-rawmemchr.c (rawmemchr): Likewise.
33574         * tests/test-readlink.c (readlink): Likewise.
33575         * tests/test-remove.c (remove): Likewise.
33576         * tests/test-rename.c (rename): Likewise.
33577         * tests/test-renameat.c (renameat): Likewise.
33578         * tests/test-rmdir.c (rmdir): Likewise.
33579         * tests/test-round1.c (round): Likewise.
33580         * tests/test-roundf1.c (roundf): Likewise.
33581         * tests/test-roundl.c (roundl): Likewise.
33582         * tests/test-setenv.c (setenv): Likewise.
33583         * tests/test-sigaction.c (sigaction): Likewise.
33584         * tests/test-sleep.c (sleep): Likewise.
33585         * tests/test-snprintf.c (snprintf): Likewise.
33586         * tests/test-sprintf-posix.c (sprintf): Likewise.
33587         * tests/test-stat.c (stat): Likewise.
33588         * tests/test-stpncpy.c (stpncpy): Likewise.
33589         * tests/test-strcasestr.c (strcasestr): Likewise.
33590         * tests/test-strchrnul.c (strchrnul): Likewise.
33591         * tests/test-strerror.c (strerror): Likewise.
33592         * tests/test-strsignal.c (strsignal): Likewise.
33593         * tests/test-strstr.c (strstr): Likewise.
33594         * tests/test-strtod.c (strtod): Likewise.
33595         * tests/test-strverscmp.c (strverscmp): Likewise.
33596         * tests/test-symlink.c (symlink): Likewise.
33597         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
33598         * tests/test-times.c (times): Likewise.
33599         * tests/test-trunc1.c (trunc): Likewise.
33600         * tests/test-truncf1.c (truncf): Likewise.
33601         * tests/test-truncl.c (truncl): Likewise.
33602         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
33603         Likewise.
33604         * tests/test-uname.c (uname): Likewise.
33605         * tests/test-unlink.c (unlink): Likewise.
33606         * tests/test-unlinkat.c (unlinkat): Likewise.
33607         * tests/test-unsetenv.c (unsetenv): Likewise.
33608         * tests/test-usleep.c (usleep): Likewise.
33609         * tests/test-utimensat.c (utimensat): Likewise.
33610         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
33611         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
33612         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
33613         * tests/test-vprintf-posix.c (vprintf): Likewise.
33614         * tests/test-vsnprintf.c (vsnprintf): Likewise.
33615         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
33616         * tests/test-wcrtomb.c (wcrtomb): Likewise.
33617         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
33618         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
33619         * tests/test-wcwidth.c (wcwidth): Likewise.
33620
33621         build: pull in conditional headers during GNULIB_POSIXCHECK
33622         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
33623         definitions from any conditionally-included headers.
33624         * lib/stdlib.in.h (includes): Likewise.
33625         * lib/unistd.in.h (includes): Likewise.
33626
33627 2009-12-24  Bruno Haible  <bruno@clisp.org>
33628
33629         * tests/test-argv-iter.c: Include header file being tested immediately
33630         after config.h.
33631         * tests/test-base64.c: Likewise.
33632         * tests/test-flock.c: Likewise.
33633         * tests/test-fsync.c: Likewise.
33634         * tests/test-getdate.c: Likewise.
33635         * tests/test-getndelim2.c: Likewise.
33636         * tests/test-isfinite.c: Likewise.
33637         * tests/test-isinf.c: Likewise.
33638         * tests/test-strerror.c: Likewise.
33639         * tests/test-strsignal.c: Likewise.
33640
33641 2009-12-23  Eric Blake  <ebb9@byu.net>
33642
33643         unistd: work around cygwin bug
33644         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
33645         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
33646         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33647
33648 2009-12-23  Bruno Haible  <bruno@clisp.org>
33649
33650         localename: More tests.
33651         * tests/test-localename.c (SIZEOF): New macro.
33652         (categories): New variable.
33653         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
33654         test_locale_name_default): Add test w.r.t. thread locale.
33655         (test_locale_name_thread): New function.
33656         (main): Invoke it.
33657
33658         localename: Make aware of thread locale.
33659         * lib/localename.h (gl_locale_name_thread): New declaration.
33660         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
33661         behaviour with respect to thread locale.
33662         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
33663         <langinfo.h>, glthread/lock.h.
33664         (SIZE_BITS): New macro.
33665         (string_hash): New function.
33666         (struct hash_node): New type.
33667         (HASH_TABLE_SIZE): New macro.
33668         (struniq_hash_table, struniq_lock): New variables.
33669         (struniq): New function.
33670         (gl_locale_name_thread): New function.
33671         (gl_locale_name): Invoke it.
33672         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
33673         * modules/localename (Depends-on): Add lock.
33674         Reported by Mike Gran <spk121@yahoo.com>.
33675
33676 2009-12-23  Eric Blake  <ebb9@byu.net>
33677
33678         va-args: new module
33679         * modules/va-args: New file.
33680         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
33681         * MODULES.html.sh (Core language properties): Mention it.
33682
33683         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
33684         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
33685         named alias for __attribute__((__unused__)).
33686         * lib/chown.c: Update client.
33687         * lib/fchmodat.c: Likewise.
33688         * lib/fts.c: Likewise.
33689         * lib/getdate.y: Likewise.
33690         * lib/getgroups.c: Likewise.
33691         * lib/getopt.c: Likewise.
33692         * lib/getugroups.c: Likewise.
33693         * lib/mkdir.c: Likewise.
33694         * lib/mkfifo.c: Likewise.
33695         * lib/mkfifoat.c: Likewise.
33696         * lib/mknod.c: Likewise.
33697         * lib/mknodat.c: Likewise.
33698         * lib/readlink.c: Likewise.
33699         * lib/se-context.in.h: Likewise.
33700         * lib/se-selinux.in.h: Likewise.
33701         * lib/sockets.c: Likewise.
33702         * lib/symlink.c: Likewise.
33703         * lib/symlinkat.c: Likewise.
33704         * lib/unicodeio.c: Likewise.
33705         * lib/unistr.h: Likewise.
33706         * tests/test-areadlink.c: Likewise.
33707         * tests/test-areadlinkat.c: Likewise.
33708         * tests/test-filenamecat.c: Likewise.
33709         * tests/test-fseeko.c: Likewise.
33710         * tests/test-ftello.c: Likewise.
33711         * tests/test-getdate.c: Likewise.
33712         * tests/test-getgroups.c: Likewise.
33713         * tests/test-gethostname.c: Likewise.
33714         * tests/test-quotearg.c: Likewise.
33715         * tests/test-version-etc.c: Likewise.
33716         * tests/test-xalloc-die.c: Likewise.
33717         * tests/test-xfprintf-posix.c: Likewise.
33718         * tests/test-xprintf-posix.c: Likewise.
33719         * tests/test-xvasprintf.c: Likewise.
33720
33721         tests: avoid compiler warnings
33722         * tests/test-fcntl.c (main): Delete unused parameters.
33723         * tests/test-freopen-safer.c (main): Likewise.
33724         * tests/test-xalloc-die.c (main): Mark unused parameters.
33725         * tests/test-fseeko.c (main): Likewise.
33726         * tests/test-ftello.c (main): Likewise.
33727         * tests/test-nanosleep.c (main): Avoid declaration warning.
33728         * tests/test-sleep.c (main): Likewise.
33729         * tests/test-unsetenv.c (main): Silence warning about string
33730         literal.
33731         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
33732
33733 2009-12-23  Bruno Haible  <bruno@clisp.org>
33734
33735         * tests/test-localename.c (test_locale_name): New function, extracted
33736         from main. Also test mixed situations.
33737         (test_locale_name_posix, test_locale_name_environ,
33738         test_locale_name_default): New functions.
33739         (main): Invoke them all.
33740         * modules/localename-tests (configure.ac): Test for newlocale.
33741
33742 2009-12-23  Bruno Haible  <bruno@clisp.org>
33743
33744         unistd: Ensure getcwd gets declared before being overridden.
33745         * lib/unistd.in.h: Conditionally include <io.h>.
33746
33747 2009-12-22  Bruno Haible  <bruno@clisp.org>
33748
33749         wchar: Diagnose broken combination of glibc and gcc versions and flags.
33750         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
33751         (gl_WCHAR_H): Invoke it.
33752         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
33753         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
33754         Reported by Karl Berry <karl@freefriends.org>.
33755
33756 2009-12-22  Eric Blake  <ebb9@byu.net>
33757
33758         math, unistd: avoid redundant includes
33759         * lib/math.in.h (isnan): No need to re-include <math.h>.
33760         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
33761
33762         getsubopt: work around cygwin bug
33763         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
33764         avoid conflicting with system getsubopt.
33765         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
33766         bug.
33767
33768         getopt: synchronize from glibc
33769         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
33770         parameter order.  Adjust all callers.
33771         (_getopt_internal_r, main): Adjust quoting in error messages.
33772         Drop considerations for outdated POSIX 1003.2 error message.
33773         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
33774         callers.
33775         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
33776
33777         test-getopt: test stderr behavior
33778         * modules/getopt-posix-tests (Depends-on): Add dup2.
33779         * tests/test-getopt.c (ASSERT): Avoid stderr.
33780         (main): Move stderr to a temporary file.
33781         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
33782         Instead, add parameter to inform caller if output occurred.
33783         (test_getopt): Adjust all existing tests to expect silence, and
33784         add new tests of leading ":".
33785         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33786         glibc shortcomings with leading "-:" or "+:" in optstring.
33787         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33788         Likewise.
33789         * doc/posix-functions/getopt.texi (getopt): Likewise.
33790
33791         test-getopt: enhance test
33792         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
33793         supports optind=0.
33794         * tests/test-getopt.c (OPTIND_MIN): Move...
33795         * tests/test-getopt.h (OPTIND_MIN): ...here.
33796         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
33797         Require that optind=0 works, since modern BSD supports it in
33798         addition to optreset, and since coreutils expects it.
33799         (test_getopt_long_only): New test.
33800         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33801         glibc shortcomings with 'W;', and enforcement of optind=0.
33802         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33803         Likewise.
33804
33805 2009-12-21  Bruno Haible  <bruno@clisp.org>
33806
33807         localename: Improvements for MacOS X and Cygwin.
33808         * lib/localename.h (gl_locale_name_environ): New declaration.
33809         * lib/localename.c (gl_locale_name_environ): New function, extracted from
33810         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
33811         (gl_locale_name_posix): Invoke it.
33812         (gl_locale_name_default): Add comments. Use Windows native API also on
33813         Cygwin.
33814
33815 2009-12-21  Bruno Haible  <bruno@clisp.org>
33816
33817         Update list of Win32 locale ids.
33818         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
33819         (LANG_SAMI): Renamed from LANG_SAAMI.
33820         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
33821         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
33822         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
33823         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
33824         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
33825         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
33826         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
33827         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
33828         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
33829         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
33830         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
33831         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
33832         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
33833         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
33834         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
33835         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
33836         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
33837         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
33838         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
33839         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
33840         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
33841         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
33842         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
33843         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
33844         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
33845         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
33846         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
33847         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
33848         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
33849         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
33850         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
33851         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
33852         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
33853         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
33854         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
33855         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
33856         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
33857         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
33858         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
33859         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
33860         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
33861         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
33862         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
33863         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
33864         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
33865         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
33866         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
33867         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
33868         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
33869         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
33870         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
33871         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
33872         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
33873         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
33874         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
33875         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
33876         Add more languages and countries for Sami, Sorbian. Add more countries
33877         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
33878         for Pashto. Change country for Syriac, Tswana.
33879
33880 2009-12-21  Eric Blake  <ebb9@byu.net>
33881
33882         test-utimens: avoid spurious failure
33883         * tests/test-chown.h (nap): Factor...
33884         * tests/nap.h: ...into new file.
33885         * tests/test-lchown.h (nap): Avoid duplication.
33886         * tests/test-utimens-common.h (nap): Use shared implementation,
33887         necessary on file systems with 1-second resolution.
33888         * modules/chown-tests (Files): Include new file.
33889         * modules/fdutimensat-tests (Files): Likewise.
33890         * modules/futimens-tests (Files): Likewise.
33891         * modules/lchown-tests (Files): Likewise.
33892         * modules/openat-tests (Files): Likewise.
33893         * modules/utimens-tests (Files): Likewise.
33894         * modules/utimensat-tests (Files): Likewise.
33895
33896 2009-12-19  Eric Blake  <ebb9@byu.net>
33897
33898         futimens, utimensat: work around Linux bug
33899         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
33900         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33901         * lib/utimensat.c (rpl_utimensat): Work around it.
33902         * lib/futimens.c (rpl_futimens): Adjust comment.
33903
33904         utimens: work around Linux ctime bug
33905         * lib/utimens.c (detect_ctime_bug): New helper function.
33906         (update_timespec): Differentiate between workaround needed for
33907         this bug vs. what is needed for systems that lack utimensat.
33908         (fdutimens, lutimens): Work around bug.
33909
33910         utimens: check for ctime update
33911         * tests/test-utimens-common.h (check_ctime): Define.
33912         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
33913         * tests/test-futimens.h (test_futimens): Likewise.
33914         * tests/test-lutimens.h (test_lutimens): Likewise.
33915         * doc/posix-functions/futimens.texi (futimens): Document the bug.
33916         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33917
33918 2009-12-19  Bruno Haible  <bruno@clisp.org>
33919
33920         dprintf-posix: Check against memory leak fixed on 2009-12-15.
33921         * tests/test-dprintf-posix2.sh: New file.
33922         * tests/test-dprintf-posix2.c: New file.
33923         * modules/dprintf-posix-tests (Files): Add them.
33924         (configure.ac): Check for getrlimit and setrlimit.
33925         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33926
33927 2009-12-19  Bruno Haible  <bruno@clisp.org>
33928
33929         fprintf-posix: Check against memory leak fixed on 2009-12-15.
33930         * tests/test-fprintf-posix3.sh: New file.
33931         * tests/test-fprintf-posix3.c: New file.
33932         * modules/fprintf-posix-tests (Files): Add them.
33933         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33934
33935 2009-12-19  Eric Blake  <ebb9@byu.net>
33936
33937         dirfd: fix prototype
33938         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
33939         * lib/dirfd.c (dirfd): Likewise.
33940
33941         canonicalize: reduce memory usage
33942         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
33943         allocation to size.
33944         Reported by Solar Designer <solar@openwall.com>.
33945
33946 2009-12-19  Bruno Haible  <bruno@clisp.org>
33947
33948         New module attribute 'Applicability'.
33949         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
33950         * gnulib-tool: New option --extract-applicability.
33951         (func_usage): Document it.
33952         (sed_extract_prog): Recognize it.
33953         (func_get_applicability): New function.
33954         (func_import): Generalize handling of 'link-warning' module.
33955         * modules/link-warning (Applicability): New section.
33956         * modules/arg-nonnull (Applicability): New section.
33957         Repoted by Simon Josefsson <simon@josefsson.org>.
33958
33959 2009-12-19  Bruno Haible  <bruno@clisp.org>
33960
33961         fflush: tweak
33962         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
33963         * lib/fseeko.c (rpl_fseeko): Likewise.
33964
33965 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
33966
33967         * lib/gl_list.h: Fix typo in comment.
33968
33969 2009-12-16  Eric Blake  <ebb9@byu.net>
33970
33971         fcntl: use to simplify other modules
33972         * modules/cloexec (Depends-on): Add fcntl.
33973         * modules/fchdir (Depends-on): Likewise.
33974         * modules/fd-safer-flag (Depends-on): Likewise.
33975         * modules/unistd-safer (Depends-on): Likewise.
33976         * modules/dup3 (configure.ac): Set module indicator.
33977         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
33978         missing.
33979         * lib/fchdir.c (_gl_register_dup): Fix comment.
33980         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
33981         * lib/dup-safer.c (dup_safer): Likewise.
33982         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
33983         * lib/dup3.c (dup3): Likewise.
33984         * tests/test-fchdir.c (main): Enhance test.
33985         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
33986
33987         fcntl: port portions of fcntl to mingw
33988         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
33989         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
33990         replacement for mingw.
33991         * modules/fcntl (Description): Update.
33992         (Depends-on): Add dup2.
33993         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
33994         * modules/fcntl-h (Makefile.am): Substitute it.
33995         * lib/fcntl.in.h (fcntl): Update declaration.
33996         (F_DUPFD, F_GETFD): New macros, when needed.
33997         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33998         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
33999         * tests/test-fcntl.c (check_flags, main): Enhance test for items
34000         we now guarantee.
34001
34002         fcntl: work around cygwin bug in F_DUPFD
34003         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
34004         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
34005         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
34006         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
34007         * doc/posix-functions/fcntl.texi (fcntl): Document it.
34008
34009         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
34010         * modules/fcntl (Files): List new files.
34011         (configure.ac): Run a test.
34012         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
34013         * lib/fcntl.c (rpl_fcntl): Likewise.
34014         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
34015         (gl_FCNTL_H): Always replace fcntl.h.
34016         * modules/fcntl-h (Makefile.am): Substitute witnesses.
34017         * lib/fcntl.in.h (fcntl): Declare replacement.
34018         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
34019         needed, plus a witness.
34020         * doc/posix-functions/fcntl.texi (fcntl): Document this.
34021         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34022         * tests/test-fcntl.c: New file.
34023         * modules/fcntl-tests: Likewise.
34024
34025         binary-io: avoid potential compilation warning
34026         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
34027         directives.
34028
34029         fflush: avoid compilation error on NetBSD
34030         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
34031         between off_t and fpos_t, since the latter is sometimes a struct.
34032         * lib/fseeko.c (rpl_fseeko): Likewise.
34033         Reported by Alexander Nasonov <alnsn@yandex.ru>.
34034
34035 2009-12-15  Eric Blake  <ebb9@byu.net>
34036
34037         fcntl-h, stdio, sys_ioctl: fix declarations
34038         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
34039         function must not take arguments.
34040         * lib/sys_ioctl.in.h (ioctl): Likewise.
34041         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
34042         (open): Add a link warning.
34043
34044 2009-12-15  Jim Meyering  <meyering@redhat.com>
34045
34046         areadlink, areadlink-with-size: relax license to LGPLv2+
34047         * modules/areadlink (License): Relax to LGPLv2+.
34048         * modules/areadlink-with-size (License): Likewise.
34049
34050 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
34051             Bruno Haible  <bruno@clisp.org>
34052
34053         *printf: Fix memory leak.
34054         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
34055         * lib/vfprintf.c (vfprintf): Likewise.
34056         * lib/dprintf.c (dprintf): Likewise.
34057         * lib/vdprintf.c (vdprintf): Likewise.
34058
34059 2009-12-14  Eric Blake  <ebb9@byu.net>
34060
34061         accept4: adjust module dependencies
34062         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
34063
34064         utimens: one more try at avoiding compiler warning
34065         * lib/utimens.c (lutimens): Lower scope of result.
34066
34067 2009-12-13  Bruno Haible  <bruno@clisp.org>
34068
34069         Move the malloc checking from module 'list' to new module 'xlist'.
34070         * modules/xlist: New file.
34071         * lib/gl_xlist.h: New file.
34072         * lib/gl_xlist.c: New file.
34073         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
34074         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
34075         gl_list_add_last, gl_list_add_before, gl_list_add_after,
34076         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
34077         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
34078         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
34079         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
34080         gl_sortedlist_nx_add): New declarations.
34081         (struct gl_list_implementation): Rename and change methods accordingly.
34082         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
34083         (gl_list_nx_create): Renamed from gl_list_create.
34084         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34085         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34086         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34087         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34088         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34089         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34090         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34091         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34092         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
34093         gl_list_create_empty.
34094         (gl_list_nx_create): Renamed from gl_list_create.
34095         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34096         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34097         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34098         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34099         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34100         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34101         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34102         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34103         * lib/gl_array_list.c: Don't include xalloc.h.
34104         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
34105         NULL upon out-of-memory.
34106         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
34107         out-of-memory.
34108         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
34109         Change return type to 'int'.
34110         (gl_array_nx_set_at): Renamed from gl_array_set_at.
34111         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34112         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
34113         upon out-of-memory.
34114         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
34115         upon out-of-memory.
34116         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
34117         upon out-of-memory.
34118         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
34119         upon out-of-memory.
34120         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
34121         out-of-memory.
34122         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
34123         Update.
34124         (gl_array_list_implementation): Update.
34125         * lib/gl_carray_list.c: Don't include xalloc.h.
34126         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
34127         Return NULL upon out-of-memory.
34128         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
34129         out-of-memory.
34130         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
34131         Change return type to 'int'.
34132         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
34133         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34134         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
34135         upon out-of-memory.
34136         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
34137         upon out-of-memory.
34138         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
34139         out-of-memory.
34140         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
34141         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
34142         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
34143         Update.
34144         (gl_carray_list_implementation): Update.
34145         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
34146         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
34147         gl_linked_create_empty. Return NULL upon out-of-memory.
34148         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
34149         out-of-memory.
34150         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
34151         Change return type to 'int'. Return -1 upon out-of-memory.
34152         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
34153         out-of-memory.
34154         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
34155         upon out-of-memory.
34156         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
34157         upon out-of-memory.
34158         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
34159         NULL upon out-of-memory.
34160         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
34161         upon out-of-memory.
34162         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
34163         out-of-memory.
34164         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
34165         Update.
34166         * lib/gl_linked_list.c: Don't include xalloc.h.
34167         (gl_linked_list_implementation): Update.
34168         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
34169         (add_to_bucket): Change return type to 'int'.
34170         (gl_linkedhash_list_implementation): Update.
34171         * lib/gl_anytree_list1.h (free_subtree): New function.
34172         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
34173         gl_tree_create_empty. Return NULL upon out-of-memory.
34174         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
34175         Change return type to 'int'. Return -1 upon out-of-memory.
34176         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
34177         out-of-memory.
34178         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
34179         (gl_tree_remove_node): New function, moved here from
34180         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
34181         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
34182         Update.
34183         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
34184         malloc, not xmalloc. Return NULL upon out-of-memory.
34185         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34186         out-of-memory.
34187         (gl_tree_remove_node_from_tree): New function, extracted from
34188         gl_tree_remove_node.
34189         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34190         upon out-of-memory.
34191         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34192         out-of-memory.
34193         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34194         upon out-of-memory.
34195         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34196         upon out-of-memory.
34197         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34198         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
34199         not xmalloc. Return NULL upon out-of-memory.
34200         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34201         out-of-memory.
34202         (gl_tree_remove_node_from_tree): New function, extracted from
34203         gl_tree_remove_node.
34204         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34205         upon out-of-memory.
34206         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34207         out-of-memory.
34208         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34209         upon out-of-memory.
34210         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34211         upon out-of-memory.
34212         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34213         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
34214         gl_anytree_list1.h before gl_anyavltree_list2.h.
34215         (gl_avltree_list_implementation): Update.
34216         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
34217         gl_anytree_list1.h before gl_anyavltree_list2.h.
34218         (gl_rbtree_list_implementation): Update.
34219         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
34220         Change return type to 'int'. Return -1 upon out-of-memory. Use
34221         __builtin_expect.
34222         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
34223         (gl_avltreehash_list_implementation): Update.
34224         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
34225         (gl_rbtreehash_list_implementation): Update.
34226         * modules/array-list (Depends-on): Remove xalloc.
34227         * modules/carray-list (Depends-on): Likewise.
34228         * modules/linked-list (Depends-on): Likewise.
34229         * modules/linkedhash-list (Depends-on): Likewise.
34230         * modules/avltree-list (Depends-on): Likewise.
34231         * modules/rbtree-list (Depends-on): Likewise.
34232         * modules/avltreehash-list (Depends-on): Likewise.
34233         * modules/rbtreehash-list (Depends-on): Likewise.
34234
34235         * modules/xsublist: New file.
34236         * lib/gl_xsublist.h: New file.
34237         * lib/gl_xsublist.c: New file.
34238         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
34239         (gl_sublist_nx_create): New declaration.
34240         * lib/gl_sublist.c: Don't include xalloc.h.
34241         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
34242         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
34243         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
34244         Change return type to 'int'. Return -1 upon out-of-memory.
34245         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
34246         upon out-of-memory.
34247         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
34248         NULL upon out-of-memory.
34249         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
34250         upon out-of-memory.
34251         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
34252         NULL upon out-of-memory.
34253         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
34254         NULL upon out-of-memory.
34255         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
34256         upon out-of-memory.
34257         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
34258         (gl_sublist_list_implementation): Update.
34259         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
34260         upon out-of-memory.
34261         * modules/sublist (Depends-on): Remove xalloc.
34262
34263         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
34264         * tests/test-carray_list.c: Likewise.
34265         * tests/test-linked_list.c: Likewise.
34266         * tests/test-linkedhash_list.c: Likewise.
34267         * tests/test-avltree_list.c: Likewise.
34268         * tests/test-rbtree_list.c: Likewise.
34269         * tests/test-avltreehash_list.c: Likewise.
34270         * tests/test-rbtreehash_list.c: Likewise.
34271         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
34272         * modules/carray-list-tests (Makefile.am): Likewise.
34273         * modules/linked-list-tests (Makefile.am): Likewise.
34274         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34275         * modules/avltree-list-tests (Makefile.am): Likewise.
34276         * modules/rbtree-list-tests (Makefile.am): Likewise.
34277         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34278         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34279
34280         * NEWS: Mention the changes.
34281
34282         * lib/clean-temp.c: Include gl_xlist.h.
34283         * modules/clean-temp (Depends-on): Add xlist.
34284
34285         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
34286         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
34287
34288         * tests/test-array_oset.c: Include gl_xlist.h.
34289         * modules/array-oset-tests (Depends-on): Add xlist.
34290
34291         Reported by José E. Marchesi <jemarch@gnu.org>.
34292
34293 2009-12-13  Bruno Haible  <bruno@clisp.org>
34294
34295         Move the malloc checking from module 'oset' to new module 'xoset'.
34296         * modules/xoset: New file.
34297         * lib/gl_xoset.h: New file.
34298         * lib/gl_xoset.c: New file.
34299         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
34300         declarations.
34301         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
34302         (struct gl_oset_implementation): Rename and change methods accordingly.
34303         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
34304         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34305         'int'. Mark as __warn_unused_result__.
34306         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
34307         gl_oset_create_empty.
34308         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34309         'int'.
34310         * lib/gl_array_oset.c: Don't include xalloc.h.
34311         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
34312         malloc, not xmalloc.
34313         (grow): Change return type to 'int'. Don't call xalloc_die.
34314         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
34315         to 'int'.
34316         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
34317         'int'.
34318         (gl_array_oset_implementation): Update.
34319         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
34320         gl_tree_create_empty.
34321         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
34322         'int'.
34323         * lib/gl_avltree_oset.c: Don't include xalloc.h.
34324         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34325         xmalloc.
34326         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34327         not xmalloc.
34328         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34329         xmalloc.
34330         (gl_avltree_oset_implementation): Update.
34331         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
34332         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34333         xmalloc.
34334         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34335         not xmalloc.
34336         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34337         xmalloc.
34338         (gl_rbtree_oset_implementation): Update.
34339         * modules/array-oset (Depends-on): Remove xalloc.
34340         * modules/avltree-oset (Depends-on): Likewise.
34341         * modules/rbtree-oset (Depends-on): Likewise.
34342         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
34343         * tests/test-avltree_oset.c: Likewise.
34344         * tests/test-rbtree_oset.c: Likewise.
34345         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
34346         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
34347         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34348         * NEWS: Mention the change.
34349
34350 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
34351
34352         maint.mk: allow a project to override release-prep commands
34353         * top/maint.mk (alpha, beta, stable): Move release-preparatory
34354         commands into a new rule.
34355         (release-prep): New rule.
34356         (release-prep-hook): New overridable variable.
34357
34358 2009-12-13  Bruno Haible  <bruno@clisp.org>
34359
34360         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
34361
34362 2009-12-13  Jim Meyering  <meyering@redhat.com>
34363
34364         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
34365         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
34366
34367 2009-12-12  Bruno Haible  <bruno@clisp.org>
34368
34369         duplocale: Tweak.
34370         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
34371
34372 2009-12-12  Karl Berry  <karl@gnu.org>
34373
34374         * config/srclist.txt (strtoll.c): tab changes, no more sync.
34375
34376 2009-12-12  Bruno Haible  <bruno@clisp.org>
34377
34378         * m4/po.m4: Undo incorrect untabification.
34379
34380 2009-12-12  Bruno Haible  <bruno@clisp.org>
34381
34382         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
34383         * modules/c-strtod (Depends-on): Add locale.
34384         * modules/c-strtold (Depends-on): Likewise.
34385
34386 2009-12-12  Bruno Haible  <bruno@clisp.org>
34387
34388         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
34389
34390 2009-12-11  Eric Blake  <ebb9@byu.net>
34391
34392         setenv: relax requirement in light of POSIX ruling
34393         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
34394         not NULL.
34395         * tests/test-setenv.c (main): Relax test.
34396         * tests/test-unsetenv.c (main): Likewise.
34397         * doc/posix-functions/setenv.texi (setenv): Document this.
34398         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34399
34400 2009-12-11  Bruno Haible  <bruno@clisp.org>
34401
34402         New module 'fd-safer-flag'.
34403         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
34404         * lib/dup-safer.c (dup_safer_flag): Remove function.
34405         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
34406         * lib/fd-safer.c (fd_safer_flag): Remove function.
34407         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
34408         * modules/cloexec (configure.ac): Drop indicator macro.
34409         * modules/fd-safer-flag: New file.
34410         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
34411         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
34412         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
34413
34414 2009-12-11  Bruno Haible  <bruno@clisp.org>
34415
34416         Tests for module 'nl_langinfo'.
34417         * modules/nl_langinfo-tests: New file.
34418         * tests/test-nl_langinfo.sh: New file.
34419         * tests/test-nl_langinfo.c: New file.
34420
34421         New module 'nl_langinfo'.
34422         * lib/nl_langinfo.c: New file.
34423         * m4/nl_langinfo.m4: New file.
34424         * modules/nl_langinfo: New file.
34425         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
34426
34427 2009-12-11  Bruno Haible  <bruno@clisp.org>
34428
34429         Tests for module 'langinfo'.
34430         * modules/langinfo-tests: New file.
34431         * tests/test-langinfo.c: New file.
34432
34433         New module 'langinfo'.
34434         * lib/langinfo.in.h: New file.
34435         * m4/langinfo_h.m4: New file.
34436         * modules/langinfo: New file.
34437         * doc/posix-headers/langinfo.texi: Mention the new module.
34438
34439 2009-12-11  Bruno Haible  <bruno@clisp.org>
34440
34441         * lib/config.charset: Untabify.
34442
34443 2009-12-11  Bruno Haible  <bruno@clisp.org>
34444
34445         * modules/unistd-safer (configure.ac): Drop indicator macro.
34446
34447 2009-12-11  Bruno Haible  <bruno@clisp.org>
34448
34449         Move pipe2-safer code to its own file.
34450         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
34451         * lib/pipe-safer.c (pipe2_safer): Remove function.
34452         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
34453         (Makefile.am): Add it to lib_SOURCES.
34454
34455 2009-12-10  Bruno Haible  <bruno@clisp.org>
34456
34457         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
34458
34459 2009-12-10  Bruno Haible  <bruno@clisp.org>
34460
34461         Declare which arguments expect non-NULL values, for GCC and clang.
34462         * build-aux/arg-nonnull.h: New file.
34463         * modules/arg-nonnull: New file.
34464         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
34465         (inet_ntop, inet_pton): Use it.
34466         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
34467         (closedir, dirfd, opendir, scandir, alphasort): Use it.
34468         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
34469         (open, openat): Use it.
34470         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
34471         (fnmatch): Use it.
34472         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
34473         (getopt, getopt_long, getopt_long_only): Use it.
34474         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
34475         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
34476         Use it.
34477         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
34478         (iconv_open): Use it.
34479         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
34480         (strtoimax, strtoumax): Use it.
34481         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
34482         (duplocale): Use it.
34483         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
34484         (frexp, frexpl): Use it.
34485         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
34486         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
34487         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
34488         (tsearch, tfind, tdelete, twalk): Use it.
34489         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
34490         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34491         sigpending): Use it.
34492         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
34493         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34494         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34495         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34496         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34497         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34498         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34499         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34500         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34501         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34502         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34503         Use it.
34504         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
34505         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
34506         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
34507         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
34508         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
34509         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
34510         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
34511         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
34512         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
34513         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
34514         strtoull, unsetenv): Use it.
34515         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
34516         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34517         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34518         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
34519         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
34520         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
34521         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
34522         (strcasecmp, strncasecmp): Use it.
34523         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
34524         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
34525         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
34526         rpl_setsockopt): Use it.
34527         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
34528         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
34529         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
34530         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
34531         (gettimeofday): Use it.
34532         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
34533         (times): Use it.
34534         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
34535         (uname): Use it.
34536         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
34537         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
34538         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
34539         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
34540         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
34541         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
34542         unlinkat, write): Use it.
34543         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
34544         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
34545         * lib/argv-iter.h: Include arg-nonnull.h.
34546         (_ATTRIBUTE_NONNULL_): Remove macro.
34547         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
34548         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
34549         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
34550         optimization.
34551         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
34552         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
34553         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
34554         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
34555         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
34556         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
34557         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
34558         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
34559         * modules/arpa_inet (Depends-on): Add arg-nonnull.
34560         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
34561         * modules/dirent (Depends-on): Add arg-nonnull.
34562         (Makefile.am): Insert arg-nonnull.h into dirent.h.
34563         * modules/fcntl-h (Depends-on): Add arg-nonnull.
34564         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
34565         * modules/fnmatch (Depends-on): Add arg-nonnull.
34566         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
34567         * modules/getopt-posix (Depends-on): Add arg-nonnull.
34568         (Makefile.am): Insert arg-nonnull.h into getopt.h.
34569         * modules/glob (Depends-on): Add arg-nonnull.
34570         (Makefile.am): Insert arg-nonnull.h into glob.h.
34571         * modules/iconv_open (Depends-on): Add arg-nonnull.
34572         (Makefile.am): Insert arg-nonnull.h into iconv.h.
34573         * modules/inttypes (Depends-on): Add arg-nonnull.
34574         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
34575         * modules/locale (Depends-on): Add arg-nonnull.
34576         (Makefile.am): Insert arg-nonnull.h into locale.h.
34577         * modules/math (Depends-on): Add arg-nonnull.
34578         (Makefile.am): Insert arg-nonnull.h into math.h.
34579         * modules/netdb (Depends-on): Add arg-nonnull.
34580         (Makefile.am): Insert arg-nonnull.h into netdb.h.
34581         * modules/search (Depends-on): Add arg-nonnull.
34582         (Makefile.am): Insert arg-nonnull.h into search.h.
34583         * modules/signal (Depends-on): Add arg-nonnull.
34584         (Makefile.am): Insert arg-nonnull.h into signal.h.
34585         * modules/spawn (Depends-on): Add arg-nonnull.
34586         (Makefile.am): Insert arg-nonnull.h into spawn.h.
34587         * modules/stdio (Depends-on): Add arg-nonnull.
34588         (Makefile.am): Insert arg-nonnull.h into stdio.h.
34589         * modules/stdlib (Depends-on): Add arg-nonnull.
34590         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
34591         * modules/string (Depends-on): Add arg-nonnull.
34592         (Makefile.am): Insert arg-nonnull.h into string.h.
34593         * modules/strings (Depends-on): Add arg-nonnull.
34594         (Makefile.am): Insert arg-nonnull.h into strings.h.
34595         * modules/sys_socket (Depends-on): Add arg-nonnull.
34596         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
34597         * modules/sys_stat (Depends-on): Add arg-nonnull.
34598         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
34599         * modules/sys_time (Depends-on): Add arg-nonnull.
34600         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
34601         * modules/sys_times (Depends-on): Add arg-nonnull.
34602         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
34603         * modules/sys_utsname (Depends-on): Add arg-nonnull.
34604         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
34605         * modules/time (Depends-on): Add arg-nonnull.
34606         (Makefile.am): Insert arg-nonnull.h into time.h.
34607         * modules/unistd (Depends-on): Add arg-nonnull.
34608         (Makefile.am): Insert arg-nonnull.h into unistd.h.
34609         * modules/wchar (Depends-on): Add arg-nonnull.
34610         (Makefile.am): Insert arg-nonnull.h into wchar.h.
34611         * modules/argv-iter (Depends-on): Add arg-nonnull.
34612         * tests/test-canonicalize.c (null_ptr): New function.
34613         (main): Use it.
34614         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
34615         (main): Use it.
34616         * tests/test-memmem.c (null_ptr): New function.
34617         (main): Use it.
34618         Reported by Jim Meyering.
34619
34620 2009-12-10  Bruno Haible  <bruno@clisp.org>
34621
34622         Use spaces for indentation, not tabs.
34623         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
34624         * m4/*.m4: Untabify.
34625         * build-aux/*.h: Untabify.
34626         * tests/**/*.[hc]: Untabify.
34627         * README: New section "Indent with spaces, not TABs", based on
34628         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
34629         * NEWS: Mention the change.
34630
34631 2009-12-10  Bruno Haible  <bruno@clisp.org>
34632
34633         pty test: Fix link error.
34634         * modules/pty-tests (Makefile.am): Add the default LDADD value to
34635         test_pty_LDADD.
34636
34637 2009-12-07  Simon Josefsson  <simon@josefsson.org>
34638
34639         * modules/pty: New file.
34640         * modules/pty-tests: New file.
34641         * m4/pty.m4: New file.
34642         * tests/test-pty.c: New file.
34643         * doc/glibc-headers/pty.texi: Modified.
34644         * doc/glibc-functions/forkpty.texi: Modified.
34645         * doc/glibc-functions/openpty.texi: Modified.
34646
34647 2009-12-10  Bruno Haible  <bruno@clisp.org>
34648
34649         Avoid syntax error in C++ mode.
34650         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
34651
34652 2009-12-10  Bruno Haible  <bruno@clisp.org>
34653
34654         Use sed with option -e.
34655         * gnulib-tool (func_version, func_emit_copyright_notice,
34656         func_emit_initmacro_end, func_import, func_create_testdir): Pass
34657         option -e to sed.
34658         * modules/link-warning (Makefile.am): Likewise.
34659
34660 2009-12-10  Jim Meyering  <meyering@redhat.com>
34661
34662         mgetgroups: do not write bytes beyond end of malloc'd buffer
34663         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
34664         username, we call getgroups with a one-element-shorter buffer,
34665         but still told it the length was original, max_n_groups.
34666
34667 2009-12-09  Eric Blake  <ebb9@byu.net>
34668
34669         cloexec: relax license
34670         * modules/cloexec (Maintainer): Add myself.
34671         (License): Use LGPL, not GPL.
34672
34673         link-warning: optimize generation
34674         * modules/link-warning (Makefile.am): Reduce process usage.
34675
34676 2009-12-09  Bruno Haible  <bruno@clisp.org>
34677
34678         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
34679         workaround was added on 2009-11-17.
34680
34681 2009-12-09  Jim Meyering  <meyering@redhat.com>
34682             Bruno Haible  <bruno@clisp.org>
34683
34684         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
34685         * modules/link-warning (Makefile.am): Make the comment-removing sed
34686         command more robust in the face of bootstrap-prepended comment lines.
34687
34688 2009-12-09  Bruno Haible  <bruno@clisp.org>
34689
34690         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
34691         most one group.
34692
34693 2009-12-09  Simon Josefsson <simon@josefsson.org>
34694             Bruno Haible  <bruno@clisp.org>
34695
34696         * build-aux/link-warning.h: Add copyright notice.
34697         * modules/link-warning (Makefile.am): Generate link-warning.h from
34698         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
34699         * NEWS: Mention change in link-warning module.
34700         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
34701         * modules/dirent (Makefile.am): Add dependency to dirent.h.
34702         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
34703         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
34704         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
34705         * modules/math (Makefile.am): Add dependency to math.h.
34706         * modules/search (Makefile.am): Add dependency to search.h.
34707         * modules/signal (Makefile.am): Add dependency to signal.h.
34708         * modules/spawn (Makefile.am): Add dependency to spawn.h.
34709         * modules/stdio (Makefile.am): Add dependency to stdio.h.
34710         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
34711         * modules/string (Makefile.am): Add dependency to string.h.
34712         * modules/strings (Makefile.am): Add dependency to strings.h.
34713         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
34714         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
34715         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
34716         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
34717         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
34718         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
34719         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
34720         * modules/unistd (Makefile.am): Add dependency to unistd.h.
34721         * modules/wchar (Makefile.am): Add dependency to wchar.h.
34722
34723 2009-12-09  Bruno Haible  <bruno@clisp.org>
34724
34725         fchdir: Optimize away rpl_fstat when possible.
34726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
34727         REPLACE_OPEN_DIRECTORY.
34728         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
34729
34730 2009-12-09  Bruno Haible  <bruno@clisp.org>
34731
34732         * lib/fchdir.c: Update comment.
34733
34734 2009-12-09  Bruno Haible  <bruno@clisp.org>
34735
34736         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
34737
34738 2009-12-08  Eric Blake  <ebb9@byu.net>
34739
34740         fchdir: avoid memory leak on re-registration.
34741         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
34742
34743 2009-12-08  Jim Meyering  <meyering@redhat.com>
34744
34745         init.sh: avoid Solaris 10 /bin/sh portability problem
34746         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
34747         sourced script:
34748           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
34749           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
34750           bar
34751         tests/init.sh relied on that, accepting a --set-path=DIR argument,
34752         and two tests used that idiom.
34753         * tests/init.sh: Update suggested usage comments.
34754         (path_prepend_): New function, to be used in place
34755         of the --src-path=DIR option.
34756         (setup_): Move PATH-prepending code into path_prepend_.
34757         * tests/test-pread.sh: Adapt to new usage.
34758         * tests/test-xalloc-die.sh: Likewise.
34759
34760 2009-12-08  Simon Josefsson  <simon@josefsson.org>
34761
34762         * doc/gnulib.texi (Glibc pty.h): Add.
34763         * doc/glibc-functions/forkpty.texi: Add.
34764         * doc/glibc-functions/openpty.texi: Add.
34765         Suggested by Bruno Haible.
34766
34767 2009-12-08  Eric Blake  <ebb9@byu.net>
34768
34769         fchdir: fix logic bugs
34770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
34771         * tests/test-fchdir.c (main): Enhance test.
34772         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
34773         is in use.
34774
34775         dup2: fix logic bugs
34776         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
34777         REPLACE_DUP2 to decide when rpl_dup2 is needed.
34778         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
34779         exists.
34780         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
34781
34782 2009-12-07  Eric Blake  <ebb9@byu.net>
34783
34784         unlink: fix m4 detection
34785         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
34786
34787         unistd-safer: add unit test
34788         * modules/unistd-safer-tests: New file.
34789         * tests/test-dup-safer.c: Likewise.
34790         * tests/test-cloexec.c (setmode): Avoid compiler warning.
34791         * tests/test-dup2.c (setmode): Likewise.
34792         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
34793
34794         cloexec: preserve text vs. binary across dup_cloexec
34795         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
34796         mode.
34797         * modules/dup2-tests (Depends-on): Add binary-io.
34798         * modules/cloexec-tests (Depends-on): Likewise.
34799         * tests/test-dup2.c (setmode, is_mode): New helpers.
34800         (main): Add tests that translation mode is preserved.
34801         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
34802         Reported by Bruno Haible.
34803
34804         mgetgroups: reduce duplicate listings
34805         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
34806         resulting array.
34807         * tests/test-chown.h (test_chown): Simplify client.
34808         * tests/test-lchown.h (test_lchown): Likewise.
34809
34810 2009-12-06  Bruno Haible  <bruno@clisp.org>
34811
34812         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
34813         value.
34814
34815 2009-12-06  Bruno Haible  <bruno@clisp.org>
34816
34817         * lib/progname.c: Include stdio.h, stdlib.h.
34818         (set_program_name): Reject a NULL argument.
34819
34820 2009-12-05  Eric Blake  <ebb9@byu.net>
34821
34822         pipe2-safer: new module
34823         * modules/pipe2-safer: New file.
34824         * lib/unistd-safer.h (pipe2_safer): New prototype.
34825         * lib/unistd--.h (pipe2): New wrapper.
34826         * lib/pipe-safer.c (pipe2_safer): New function.
34827         * modules/pipe (Depends-on): Add pipe2-safer.
34828         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
34829
34830         stdlib-safer: preserve cloexec flag for mkostemp[s]
34831         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
34832         fd_safer_flag.
34833
34834         unistd-safer: allow preservation of cloexec status via flag
34835         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
34836         prototypes.
34837         * lib/dup-safer.c (dup_safer_flag): New function.
34838         * lib/fd-safer.c (fd_safer_flag): Likewise.
34839         * modules/cloexec (configure.ac): Set witness.
34840
34841         test-dup2: enhance test
34842         * modules/dup2-tests (Depends-on): Add cloexec.
34843         * tests/test-dup2.c (main): Enhance test.
34844
34845         cloexec: add dup_cloexec
34846         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
34847         header and comments.
34848         * lib/cloexec.c (set_cloexec_flag): Add comments.
34849         (dup_cloexec): New function, with mingw implementation borrowed
34850         from...
34851         * lib/w32spawn.h (dup_noinherit): ...here.
34852         * modules/execute (Depends-on): Add cloexec.
34853         * modules/pipe (Depends-on): Likewise.
34854         * modules/cloexec (Depends-on): Add dup2.
34855         * modules/cloexec-tests (Files): New file.
34856         * tests/test-cloexec.c: Likewise.
34857
34858         test-xalloc-die: fix test for mingw
34859         * modules/xalloc-die-tests (Files): Add tests/init.sh.
34860         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
34861         directory and .exe suffix off argv[0] output.
34862
34863         test-fseeko: fix test for mingw
34864         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
34865         than undefining fseek, so test will pass on mingw.
34866
34867 2009-12-05  Bruno Haible  <bruno@clisp.org>
34868
34869         * lib/progname.h (set_program_name): Clarify specification.
34870         * lib/progname.c (set_program_name): Likewise.
34871         Reported by Jim Meyering.
34872
34873 2009-12-05  Jim Meyering  <meyering@redhat.com>
34874
34875         maint.mk: backslash-escape parens in default regexp
34876         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
34877         backslash-escape the literal parentheses.
34878
34879         maint.mk: news-date-check: use grep -E
34880         * top/maint.mk (today): Define a Make variable, not a...
34881         (news-date-check): ...shell variable.
34882         (news-date-regexp): Use the Make variable.
34883         Use grep's -E option.  Change the failing diagnostic to mention
34884         the variable, $(news-date-regexp).
34885
34886 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
34887
34888         maintainer-makefile: allow customization of NEWS entry format
34889         * top/maint.mk (news-date-regexp): New overridable variable.
34890         (news-date-check): Use it.
34891
34892 2009-12-04  Eric Blake  <ebb9@byu.net>
34893
34894         mgetgroups: add xgetgroups, and avoid ENOSYS failures
34895         * lib/mgetgroups.h (xgetgroups): New prototype.
34896         * lib/mgetgroups.c (xgetgroups): New wrapper.
34897         (mgetgroups): Handle ENOSYS.
34898         * modules/mgetgroups (Depends-on): Add realloc.
34899         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
34900
34901         mgetgroups: avoid argument promotion issues with -1
34902         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
34903         for invalid gid_t.
34904         * tests/test-chown.h (getegid, test_chown): Likewise.
34905         * tests/test-lchown.h (getegid, test_lchown): Likewise.
34906
34907 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
34908
34909         exclude: Fix header file problems.
34910         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
34911
34912 2009-12-01  Jim Meyering  <meyering@redhat.com>
34913
34914         fts: fts_open: do not let an empty string cause immediate failure
34915         This is required in support of GNU rm, for which the command
34916         "rm A '' B" must process and remove both A and B, in spite of
34917         the empty string argument.
34918         * lib/fts.c (fts_open): Do not let the presence of an empty string
34919         cause fts_open to fail immediately.  Most fts-using tools must be
34920         able to process all arguments, in order, and can be expected to
34921         diagnose such arguments themselves.
34922
34923 2009-11-30  Eric Blake  <ebb9@byu.net>
34924
34925         utimens: fix compilation error
34926         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
34927         Declare variable at right scope.
34928
34929 2009-11-29  Jim Meyering  <meyering@redhat.com>
34930
34931         bootstrap: handle perl-5.11's changed --version output
34932         * build-aux/bootstrap (get_version): Handle perl separately,
34933         since perl-5.11's --version output is different.
34934
34935 2009-11-28  Jim Meyering  <meyering@redhat.com>
34936
34937         userspec: depend on the inttostr module, too
34938         * modules/userspec (Depends-on): Add inttostr.
34939
34940         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
34941         * lib/userspec.c (parse_with_separator): Do not accept a user ID
34942         number of MAXUID when it evaluates to (uid_t) -1.
34943         Likewise for group ID.  Reported by Matt McCutchen in
34944         <http://savannah.gnu.org/bugs/?28113>
34945
34946         userspec: reformat to use spaces, not TABs
34947         * lib/userspec.c: Expand TABs to spaces.
34948         Add Emacs' "indent-tabs-mode: nil" hint.
34949
34950 2009-11-27  Eric Blake  <ebb9@byu.net>
34951
34952         getopt-gnu: flush out another BSD bug
34953         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
34954         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
34955         flush out BSD bug.
34956         * tests/test-getopt.h (test_getopt): End lists with NULL.
34957         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34958         (test_getopt_long_posix): Enhance test.
34959         * modules/getopt-posix-tests (Depends-on): Add stdbool.
34960         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
34961         getopt-gnu.
34962         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34963         Likewise.
34964
34965 2009-11-27  Simon Josefsson  <simon@josefsson.org>
34966
34967         * modules/idpriv-droptemp-tests (Notice): Fix text.
34968
34969 2009-11-27  Jim Meyering  <meyering@redhat.com>
34970
34971         test-xalloc-die: avoid spurious failure due to libtool argv difference
34972         In a libtool-enabled project, this test would fail due to a difference
34973         in the emitted program name, e.g.,
34974         -test-xalloc-die: memory exhausted
34975         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
34976         Use program to avoid that.
34977         * modules/xalloc-die-tests (Depends-on): Add progname.
34978         * tests/test-xalloc-die.c: Include progname.h".
34979         (program_name): Remove decl.
34980         (main): Call set_program_name.
34981         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
34982
34983 2009-11-26  Richard Jones  <rjones@redhat.com>
34984
34985         w32sock: leave win32 error in place.
34986         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
34987
34988 2009-11-26  Eric Blake  <ebb9@byu.net>
34989
34990         init.sh: suggest to use skip_ and fail_ functions in comments
34991         * tests/init.sh: Add a sentence.
34992
34993 2009-11-25  Bruno Haible  <bruno@clisp.org>
34994
34995         init.sh: add documentation in comments
34996         * tests/init.sh: Add some developer and user documentation.
34997
34998 2009-11-26  Jim Meyering  <meyering@redhat.com>
34999
35000         init.sh: accommodate even those who specify bogus srcdir manually
35001         * tests/init.sh: Normally, srcdir is guaranteed by automake and
35002         configure-time tests to be sanitized, so that there is no need to
35003         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
35004         (with no double quotes) suffices.  However, since tests may be
35005         invoked manually, and since you may explicitly set srcdir to the
35006         name of a directory containing spaces, do quote its uses here.
35007         * tests/test-pread.sh: Likewise.
35008         Suggested by Bruno Haible.
35009
35010         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
35011         * tests/test-pread.sh: Write no data into the pipe, because
35012         test-pread actually reads none.  This avoids a diagnostic,
35013         "bash: echo: write error: Broken pipe", that arises in the unusual
35014         event something is ignoring SIGPIPE, and might be interpreted
35015         as some sort of failure.  Reported by Bruno Haible.
35016
35017 2009-11-25  Jim Meyering  <meyering@redhat.com>
35018
35019         test-pread: cover failure with ESPIPE and EINVAL
35020         * tests/test-pread.c (main): Test for failure, too.
35021         * tests/test-pread.sh: Invoke with stdin on a pipe.
35022         Suggested by Eric Blake.
35023
35024         pread: improvement and fix
35025         * modules/pread (Depends-on): Depend on lseek, for portability to
35026         e.g., mingw.  Suggested by Eric Blake.
35027         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
35028
35029         unistd.in.h: correct declaration of pread
35030         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
35031         Reported by Richard W.M. Jones.
35032
35033         test-pread.sh: distribute the test script
35034         * modules/pread-tests (Files): Include test-pread.sh.
35035
35036         test-pread.sh: clean up
35037         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
35038         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
35039         That is unnecessary, since it's always ".".
35040         Suggestion from Eric Blake.
35041
35042         test-pread.sh: make executable
35043         * tests/test-pread.sh: Set executable bit.
35044         Reported by Eric Blake.
35045
35046         correct typo in test-pread.sh
35047         * tests/test-pread.sh: Add #! line.
35048
35049         test pread
35050         * tests/test-pread.c: New file.
35051         * tests/test-pread.sh: Likewise.
35052         * modules/pread-tests: Likewise.
35053
35054         pread: new module
35055         * modules/pread: New file.
35056         * lib/unistd.in.h (pread): Define/declare.
35057         * lib/pread.c (pread): New file.
35058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
35059         * modules/unistd (Makefile.am): Substitute witnesses.
35060         * doc/posix-functions/pread.texi (pread): Update.
35061         * MODULES.html.sh: Add pread.
35062
35063 2009-11-25  Jim Meyering  <meyering@redhat.com>
35064
35065         tests/init.sh: new file to be used via most *.sh tests
35066         * tests/init.sh: New file.
35067
35068 2009-11-25  Eric Blake  <ebb9@byu.net>
35069
35070         utimens: work around older Linux failure with symlinks
35071         * lib/utimens.c (lutimensat_works_really): New variable.
35072         (fdutimens, lutimens): Use it to manage kernels that support
35073         nanosecond times on files, but not on symlinks.
35074         Reported by OndÅ™ej Vašík.
35075
35076         utimes: fix configure grammar
35077         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
35078
35079 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
35080
35081         regex: Fix fastmap for multibyte character ranges.
35082         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
35083         characters when a multibyte character range is included.
35084
35085 2009-11-22  Andy Wingo  <wingo@pobox.com>
35086
35087         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
35088         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
35089
35090 2009-11-24  Bruno Haible  <bruno@clisp.org>
35091
35092         doc: Most *_l functions exist in MacOS X 10.5.
35093         * doc/posix-functions/duplocale.texi: Update platforms list.
35094         * doc/posix-functions/freelocale.texi: Likewise.
35095         * doc/posix-functions/newlocale.texi: Likewise.
35096         * doc/posix-functions/uselocale.texi: Likewise.
35097         * doc/posix-functions/isalnum_l.texi: Likewise.
35098         * doc/posix-functions/isalpha_l.texi: Likewise.
35099         * doc/posix-functions/isblank_l.texi: Likewise.
35100         * doc/posix-functions/iscntrl_l.texi: Likewise.
35101         * doc/posix-functions/isdigit_l.texi: Likewise.
35102         * doc/posix-functions/isgraph_l.texi: Likewise.
35103         * doc/posix-functions/islower_l.texi: Likewise.
35104         * doc/posix-functions/isprint_l.texi: Likewise.
35105         * doc/posix-functions/ispunct_l.texi: Likewise.
35106         * doc/posix-functions/isspace_l.texi: Likewise.
35107         * doc/posix-functions/isupper_l.texi: Likewise.
35108         * doc/posix-functions/iswalnum_l.texi: Likewise.
35109         * doc/posix-functions/iswalpha_l.texi: Likewise.
35110         * doc/posix-functions/iswblank_l.texi: Likewise.
35111         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35112         * doc/posix-functions/iswctype_l.texi: Likewise.
35113         * doc/posix-functions/iswdigit_l.texi: Likewise.
35114         * doc/posix-functions/iswgraph_l.texi: Likewise.
35115         * doc/posix-functions/iswlower_l.texi: Likewise.
35116         * doc/posix-functions/iswprint_l.texi: Likewise.
35117         * doc/posix-functions/iswpunct_l.texi: Likewise.
35118         * doc/posix-functions/iswspace_l.texi: Likewise.
35119         * doc/posix-functions/iswupper_l.texi: Likewise.
35120         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35121         * doc/posix-functions/isxdigit_l.texi: Likewise.
35122         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
35123         * doc/posix-functions/strcasecmp_l.texi: Likewise.
35124         * doc/posix-functions/strcoll_l.texi: Likewise.
35125         * doc/posix-functions/strfmon_l.texi: Likewise.
35126         * doc/posix-functions/strftime_l.texi: Likewise.
35127         * doc/posix-functions/strncasecmp_l.texi: Likewise.
35128         * doc/posix-functions/strxfrm_l.texi: Likewise.
35129         * doc/posix-functions/tolower_l.texi: Likewise.
35130         * doc/posix-functions/toupper_l.texi: Likewise.
35131         * doc/posix-functions/towctrans_l.texi: Likewise.
35132         * doc/posix-functions/towlower_l.texi: Likewise.
35133         * doc/posix-functions/towupper_l.texi: Likewise.
35134         * doc/posix-functions/wcscoll_l.texi: Likewise.
35135         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35136         * doc/posix-functions/wctrans_l.texi: Likewise.
35137         * doc/posix-functions/wctype_l.texi: Likewise.
35138         * doc/glibc-functions/strptime_l.texi: Likewise.
35139         * doc/glibc-functions/strtod_l.texi: Likewise.
35140         * doc/glibc-functions/strtof_l.texi: Likewise.
35141         * doc/glibc-functions/strtol_l.texi: Likewise.
35142         * doc/glibc-functions/strtold_l.texi: Likewise.
35143         * doc/glibc-functions/strtoll_l.texi: Likewise.
35144         * doc/glibc-functions/strtoul_l.texi: Likewise.
35145         * doc/glibc-functions/strtoull_l.texi: Likewise.
35146         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35147         * doc/glibc-functions/wcstod_l.texi: Likewise.
35148         * doc/glibc-functions/wcstof_l.texi: Likewise.
35149         * doc/glibc-functions/wcstol_l.texi: Likewise.
35150         * doc/glibc-functions/wcstold_l.texi: Likewise.
35151         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35152         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35153         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35154
35155 2009-11-24  Bruno Haible  <bruno@clisp.org>
35156
35157         duplocale: Fix logic bug.
35158         * lib/duplocale.c: Don't include <langinfo.h>.
35159         (_NL_LOCALE_NAME): Remove macro.
35160         (rpl_duplocale): Use setlocale instead of nl_langinfo.
35161         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
35162
35163 2009-11-23  Jim Meyering  <meyering@redhat.com>
35164
35165         test-update-copyright: don't hard-code /usr/bin/perl
35166         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
35167         perl to print the current year.  Gilles Espinasse reported that
35168         the replaced use of perl was hard-coded as /usr/bin/perl.
35169
35170 2009-11-23  Bruno Haible  <bruno@clisp.org>
35171
35172         duplocale: Add support for glibc 2.3.x.
35173         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
35174
35175 2009-11-22  Bruno Haible  <bruno@clisp.org>
35176
35177         vasnprintf: Tiny optimization.
35178         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
35179         MacOS X.
35180
35181 2009-11-22  Bruno Haible  <bruno@clisp.org>
35182
35183         Tests for module 'duplocale'.
35184         * modules/duplocale-tests: New file.
35185         * tests/test-duplocale.c: New file.
35186
35187         New module 'duplocale'.
35188         * m4/duplocale.m4: New file.
35189         * lib/locale.in.h (duplocale): New declaration.
35190         * lib/duplocale.c: New file.
35191         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
35192         gl_LOCALE_H_DEFAULTS): New macros.
35193         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
35194         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
35195         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
35196         REPLACE_DUPLOCALE.
35197         * modules/duplocale: New file.
35198         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
35199
35200 2009-11-22  Bruno Haible  <bruno@clisp.org>
35201
35202         * modules/locale-tests (configure.ac): Test for newlocale function.
35203         * tests/test-locale.c: When the system has extended locale functions,
35204         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
35205
35206         locale: Make locale_t available when possible.
35207         * lib/locale.in.h: Include <xlocale.h> when it exists.
35208         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
35209         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
35210         * modules/locale (Depends-on): Add extensions.
35211         (Makefile.am): Also substitute HAVE_XLOCALE_H.
35212         * doc/posix-headers/locale.texi: Document the problem with locale_t.
35213
35214 2009-11-22  Bruno Haible  <bruno@clisp.org>
35215
35216         Add comments.
35217         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
35218         invocation.
35219         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
35220         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35221         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35222
35223 2009-11-22  Bruno Haible  <bruno@clisp.org>
35224
35225         error: account for the possibility of freopen (stdout).
35226         * lib/error.c: Include <unistd.h>.
35227         (flush_stdout): New function, extracted from error and error_at_line.
35228         Determine stdout's fd dynamically.
35229         (error, error_at_line): Invoke flush_stdout.
35230         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
35231         * modules/error (Depends-on): Add unistd.
35232
35233 2009-11-22  Bruno Haible  <bruno@clisp.org>
35234
35235         diffseq: Add comment.
35236         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
35237
35238 2009-11-22  Jim Meyering  <meyering@redhat.com>
35239
35240         c-stack: avoid defining an unused static function
35241         * lib/c-stack.c (find_stack_direction): Do not define this function
35242         when it will not be used.
35243
35244         diffseq: avoid spurious gcc warnings
35245         * lib/diffseq.h (IF_LINT2): Define.
35246         (compareseq): Use it to initialize two members of "part".
35247         This avoids two used-uninitialized warnings.
35248
35249 2009-11-21  Jim Meyering  <meyering@redhat.com>
35250
35251         c-stack: avoid "ignoring return value of `write'" warning
35252         * lib/c-stack.c: Include "ignore-value.h".
35253         (die): Explicitly ignore each write return value.
35254         * modules/c-stack (Depends-on): Add ignore-value.
35255
35256 2009-11-21  Bruno Haible  <bruno@clisp.org>
35257
35258         diffseq: reduce scope of variable 'best'.
35259         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
35260         variable, earlier used for two different purposes.
35261
35262 2009-11-21  Jim Meyering  <meyering@redhat.com>
35263
35264         diffseq: remove useless assignment to "best"
35265         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
35266         assignment.  At that point "best" is already guaranteed to be zero.
35267
35268 2009-11-20  Eric Blake  <ebb9@byu.net>
35269
35270         build: mention ftp redirector in release announcements
35271         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
35272         values that used to come from cfg.mk; mention FTP redirect URL.
35273         * build-aux/announce-gen: Mention the mirror list.
35274         Suggested by Karl Berry.
35275
35276         nanosleep: improve port to mingw
35277         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
35278         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
35279         LIB_NANOSLEEP, but only when needed.
35280         * modules/select (Link): Document LIBSOCKET.
35281         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
35282         enough.
35283
35284         nanosleep: work around cygwin bug
35285         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
35286         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
35287         bug.
35288         (getnow): Delete, not needed.
35289         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
35290         LIB_CLOCK_GETTIME.
35291         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
35292         clock-time, gettime.
35293         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
35294         bug.
35295         * modules/nanosleep-tests: New test.
35296         * tests/test-nanosleep.c: New file.
35297
35298         sleep: work around cygwin bug
35299         * lib/sleep.c (rpl_sleep): Work around the bug.
35300         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
35301         (gl_PREREQ_SLEEP): Delete unused macro.
35302         * modules/sleep (Depends-on): Add verify.
35303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35304         * modules/unistd (Makefile.am): Substitute witness.
35305         * lib/unistd.in.h (sleep): Update prototype.
35306         * doc/posix-functions/sleep.texi (sleep): Document the bug.
35307         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
35308         * modules/sleep-tests (Depends-on): Check for alarm.
35309
35310 2009-11-20  Jim Meyering  <meyering@redhat.com>
35311
35312         maint.mk: improve sc_prohibit_magic_number_exit
35313         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
35314         so it does not match uses like System.exit(1).
35315         Add comments showing how to correct all offenders.
35316
35317 2009-11-19  Eric Blake  <ebb9@byu.net>
35318
35319         xalloc-die-tests: add missing library
35320         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
35321
35322         test-xvasprintf: silence compiler warnings
35323         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
35324         empty string from gcc.
35325
35326 2009-11-19  Jim Meyering  <meyering@redhat.com>
35327
35328         xfreopen: new module, from coreutils
35329         * modules/xfreopen: New module.
35330         * lib/xfreopen.c: New file.
35331         * lib/xfreopen.h: New file.
35332         * MODULES.html.sh (File stream based Input/Output"): Add it.
35333
35334 2009-11-19  Eric Blake  <ebb9@byu.net>
35335
35336         manywarnings: depend on warnings
35337         * modules/manywarnings (Depends-on): Add warnings.
35338
35339         build: avoid compiler warnings
35340         * lib/select.c (rpl_select): Delete unused variable.
35341         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
35342
35343 2009-11-18  Eric Blake  <ebb9@byu.net>
35344
35345         tests: avoid false negative with --with-packager
35346         * tests/test-version-etc.sh: Discard packager information.
35347         * tests/test-argp-version-etc-1.sh: Likewise.
35348         Reported by Mike Frysinger.
35349
35350         utimens: fix regression on Solaris
35351         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
35352         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
35353         can only change fd timestamps via futimesat.  Instead, use an
35354         additional witness macro to avoid BSD bug.
35355         Reported by Jim Meyering.
35356
35357 2009-11-17  Eric Blake  <ebb9@byu.net>
35358
35359         usleep: use it to simplify tests
35360         * modules/stat-time-tests (Depends-on): Add usleep.
35361         (configure.ac): Drop usleep check.
35362         * modules/chown-tests (Depends-on, configure.ac): Likewise.
35363         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
35364         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
35365         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
35366         * modules/openat-tests (Depends-on, configure.ac): Likewise.
35367         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
35368         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
35369         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
35370         Likewise.
35371         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
35372         * tests/test-lchown.h (nap): Likewise.
35373         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
35374         * tests/test-stat-time.c (nap): Likewise.
35375         * tests/test-utimens-common.h (nap): Update comments.
35376
35377         usleep: new module
35378         * modules/usleep: New file.
35379         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
35380         * lib/usleep.c (usleep): Likewise.
35381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35382         * modules/unistd (Makefile.am): Substitute witnesses.
35383         * lib/unistd.in.h (usleep): Add declaration.
35384         * doc/pastposix-functions/usleep.texi (usleep): Document this.
35385         * MODULES.html.sh (Date and time): Likewise.
35386         * modules/usleep-tests (Depends-on): New test.
35387         * tests/test-usleep.c: New file.
35388
35389         chown: work around OpenBSD bug
35390         * lib/chown.c (rpl_chown): Work around the bug.
35391         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
35392         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
35393         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
35394         * modules/chown (Depends-on): Add stdbool.
35395         * modules/lchown (Depends-on): Likewise.
35396         * doc/posix-functions/chown.texi (chown): Document the bug.
35397         * doc/posix-functions/lchown.texi (lchown): Likewise.
35398         * tests/test-lchown.h (test_chown): Relax test.
35399
35400         mkstemp: avoid conflict with C++ keyword template
35401         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
35402         * lib/mkostemp.c (mkostemp): Likewise.
35403         * lib/mkostemps.c (mkostemps): Likewise.
35404         * lib/mkstemp.c (mkstemp): Likewise.
35405         * lib/mkstemps.c (mkstemps): Likewise.
35406
35407         xalloc-die-tests: optimize
35408         * tests/test-xalloc-die.sh: Reduce number of processes.
35409
35410 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35411
35412         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
35413         patch from ludo@gnu.org (Ludovic Courtès).
35414
35415 2009-11-17  Jim Meyering  <meyering@redhat.com>
35416
35417         version-etc: use proper license string
35418         * modules/version-etc (License): Use LGPL, not LGPLv3+.
35419         * modules/version-etc-fsf: Likewise.
35420
35421 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35422
35423         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
35424         printed to stdout.  Deal with EOL differences.
35425
35426 2009-11-17  Eric Blake  <ebb9@byu.net>
35427
35428         unsetenv: work around Solaris bug
35429         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
35430         * lib/unsetenv.c (rpl_unsetenv): Work around it.
35431         Reported by Jim Meyering.
35432
35433         vasnprintf: avoid compiler warnings
35434         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
35435         variables.
35436         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
35437
35438 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35439
35440         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
35441         settings since xalloc-die is no longer the self test,
35442         xalloc-die.sh is.
35443
35444 2009-11-17  Jim Meyering  <meyering@redhat.com>
35445
35446         test-xalloc-die.sh: make the code agree with the commit log
35447         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
35448         at the end, just in case you happen to have a test-xalloc-die
35449         program in some other PATH directory.
35450
35451         test-xalloc-die.sh: fix a portability bug
35452         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
35453         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
35454         Otherwise, argv[0] (as often seen in diagnostics) would be too
35455         system-dependent, sometimes with, and sometimes without the leading "./".
35456
35457         version-etc-fsf: relax license to LGPLv3+
35458         * modules/version-etc-fsf (License): Relax license.
35459
35460 2009-11-16  Eric Blake  <ebb9@byu.net>
35461
35462         xalloc-die-tests: avoid printing null pointer
35463         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
35464         shell script.
35465         * tests/test-xalloc-die.c (program_name): Declare.
35466         * tests/test-xalloc-die.sh (tmpfiles): New file.
35467
35468         setenv, unsetenv: work around various bugs
35469         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
35470         (setenv) [HAVE_SETENV]: Work around bugs.
35471         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
35472         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
35473         for bugs.
35474         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
35475         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
35476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
35477         * modules/stdlib (Makefile.am): Update substitutions.
35478         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
35479         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
35480         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35481         * modules/setenv-tests: New test.
35482         * modules/unsetenv-tests: Likewise.
35483         * tests/test-setenv.c: New file.
35484         * tests/test-unsetenv.c: Likewise.
35485
35486 2009-11-16  Jim Meyering  <meyering@redhat.com>
35487
35488         version-etc: relax license to LGPLv3+
35489         * modules/version-etc (License): Relax license.
35490
35491         better AC_REQUIRE expanded-before-required-warning avoidance
35492         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
35493         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
35494         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
35495         which is no longer needed.
35496
35497 2009-11-16  Eric Blake  <ebb9@byu.net>
35498
35499         test-freading: clean up temporary file
35500         * tests/test-freading.c (main): Remove file on success, and use
35501         ASSERT more liberally.
35502         Reported by Jim Meyering.
35503
35504 2009-11-16  Jim Meyering  <meyering@redhat.com>
35505
35506         avoid new AC_REQUIRE expanded-before-required warnings
35507         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
35508         merely using it.
35509         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
35510         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
35511
35512 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35513
35514         * tests/test-xalloc-die.c: New file.
35515         * modules/xalloc-die-tests: New file.
35516         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
35517         XFAIL_TESTS so it can be appended by modules.
35518
35519 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35520
35521         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
35522         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
35523
35524 2009-11-14  Eric Blake  <ebb9@byu.net>
35525
35526         fnmatch: avoid compiler warning
35527         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
35528         to silence compiler warning about mismatch signedness in ?:.
35529         Reported by Robert Millan.
35530
35531         intprops: add double-inclusion guard
35532         * lib/intprops.h: Allow idempotent includes.
35533         Suggested by Bruce Korb.
35534
35535         openat: detect Solaris fchownat bug
35536         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
35537         penalizing glibc chownat when only lchownat is broken.
35538         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
35539         trailing slash bugs.
35540         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
35541         * modules/openat-tests (Files): Include more files.
35542         (Depends-on): Add mgetgroups, sleep, stat-time.
35543         (configure.ac): Add additional checks.
35544         (Makefile.am): Build new test.
35545         * tests/test-fchownat.c: New file.
35546
35547         lchown: detect Solaris and FreeBSD bug
35548         * lib/lchown.c (rpl_lchown): Work around bug.
35549         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
35550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35551         * modules/unistd (Makefile.am): Populate it.
35552         * lib/unistd.in.h (lchown): Update declaration.
35553         * doc/posix-functions/lchown.texi (lchown): Document the bug.
35554         * modules/lchown-tests: New file.
35555         * tests/test-lchown.h (test_lchown): Likewise.
35556         * tests/test-lchown.c (main): Likewise.
35557
35558         chown: detect Solaris and FreeBSD bug
35559         * lib/chown.c (rpl_chown): Work around bug.
35560         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
35561         (gl_PREREQ_CHOWN): Delete.
35562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35563         * modules/unistd (Makefile.am): Populate it.
35564         * lib/unistd.in.h (chown): Update declaration.
35565         * lib/lchown.c (chown): Update client.
35566         * modules/lchown (Depends-on): Add lstat.
35567         * doc/posix-functions/chown.texi (chown): Document the bug.
35568         * doc/posix-functions/getgroups.texi (getgroups): Document
35569         getgroups pitfall.
35570         * modules/chown-tests: New file.
35571         * tests/test-chown.h (test_chown): Likewise.
35572         * tests/test-chown.c (main): Likewise.
35573
35574 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
35575
35576         gnulib-tool: correctly detect absence of m4 directories
35577         * gnulib-tool: Avoid extra newline on data passed to wc -l.
35578
35579 2009-11-14  Jim Meyering  <meyering@redhat.com>
35580
35581         maint.mk: Prohibit inclusion of "xalloc.h" without use.
35582         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35583
35584 2009-11-14  John W. Eaton  <jwe@gnu.org>
35585
35586         strftime.h: wrap funtion declaration in extern "C" block
35587         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
35588
35589 2009-11-13  Eric Blake  <ebb9@byu.net>
35590
35591         getgroups: avoid compiler warning
35592         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
35593
35594         getgroups: work around FreeBSD bug
35595         * lib/getgroups.c (rpl_getgroups): Work around the bug.
35596         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
35597         * doc/posix-functions/getgroups.texi (getgroups): Document it.
35598         * tests/test-getgroups.c (main): Fix buffer overrun.
35599
35600         getgroups: avoid compilation failure
35601         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
35602         * modules/getgroups (Depends-on): Add stdint.
35603
35604 2009-11-13  Jim Meyering  <meyering@redhat.com>
35605
35606         test-getgroups: avoid compilation failure
35607         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
35608
35609 2009-11-13  Eric Blake  <ebb9@byu.net>
35610
35611         mgetgroups: new module, taken from coreutils
35612         * modules/mgetgroups: New file.
35613         * lib/mgetgroups.h: Likewise.
35614         * lib/mgetgroups.c (mgetgroups): Likewise.
35615         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
35616         * MODULES.html.sh (Users and groups): Mention it.
35617
35618         getgroups: don't expose GETGROUPS_T to user
35619         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
35620         an element at a time if GETGROUPS_T is wrong size.
35621         * lib/getugroups.h (getugroups): Change signature.
35622         * lib/unistd.in.h (getgroups): Likewise.
35623         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
35624         signature needs fixing.
35625         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
35626         AC_TYPE_GETGROUPS.
35627         * modules/group-member (Depends-on): Add getgroups.
35628         * lib/group-member.c (group_info, get_group_info): Use gid_t.
35629         (group_member): Rely on getgroups replacement.
35630         * lib/getugroups.c (getugroups): Use gid_t.
35631         * tests/test-getgroups.c (main): Likewise.
35632         * NEWS: Mention the signature change.
35633         * doc/posix-functions/getgroups.texi (getgroups): Mention the
35634         problem with signature.
35635         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
35636         GETGROUPS_T is still useful for setgroups.
35637
35638         getgroups, getugroups: provide stubs for mingw
35639         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
35640         * lib/getugroups.c (getugroups): Likewise.
35641         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
35642         function.  Modernize replacement scheme.
35643         (gl_PREREQ_GETGROUPS): Delete.
35644         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
35645         * modules/getgroups (configure.ac): Declare witness.
35646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35647         * modules/unistd (Depends-on): Substitute witness.
35648         * lib/unistd.in.h (getgroups): Declare replacement.
35649
35650         getgroups: avoid calling exit
35651         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
35652         drop xalloc.
35653         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
35654         dependencies.
35655         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
35656         exiting, in the rare case of malloc failure.
35657
35658         getgroups: fix logic error
35659         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
35660         has more than 20 groups.
35661         * modules/getgroups-tests: New test.
35662         * tests/test-getgroups.c: New file.
35663
35664 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35665
35666         * tests/test-base64.c: Improve.
35667
35668 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35669
35670         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
35671         Blake <ebb9@byu.net>.
35672
35673 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35674
35675         * tests/test-xvasprintf.c: Add %s%s related checks.
35676
35677 2009-11-12  Eric Blake  <ebb9@byu.net>
35678
35679         version-etc: match standards.texi style
35680         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
35681         and use <> only for URLs.
35682
35683 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
35684
35685         fts: do not fail on a submount during traversal
35686         * lib/fts.c (fts_build): Read the stat info again after opening
35687         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
35688         Original report at http://bugzilla.redhat.com/501848.
35689
35690 2009-11-12  Jim Meyering  <meyering@redhat.com>
35691
35692         bootstrap: sync from coreutils
35693         * build-aux/bootstrap (bootstrap_epilogue): New function.
35694         Use git_modules_config in one more place.  This make bootstrap's
35695         --gnulib-srcdir option more useful for testing.
35696
35697         bootstrap: generalize autoheader check
35698         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
35699         AC_CONFIG_HEADERS.
35700
35701 2009-11-11  Eric Blake  <ebb9@byu.net>
35702
35703         mkfifoat: use new modules for Solaris and BSD bugs
35704         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
35705         * lib/mkfifoat.c (mknodat): Split...
35706         * lib/mknodat.c (mknodat): ...into new file.
35707         * modules/mkfifoat (Files): Ship new file.
35708         (Depends-on): Add mkfifo, mknod.
35709         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
35710         (Depends-on): Add symlink.
35711         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
35712         redundant with test_mkfifo.h.
35713         (do_mkfifoat, do_mknodat): New helpers.
35714
35715         mknod: new module
35716         * modules/mknod: New file.
35717         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
35718         * lib/mknod.c (mknod): Likewise.
35719         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35720         defaults.
35721         * modules/sys_stat (Makefile.am): Substitute them.
35722         * lib/sys_stat.in.h (mknod): Declare replacement.
35723         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35724         Document it.
35725         * doc/posix-functions/mknod.texi (mknod): Likewise.
35726         * modules/mknod-tests: New test.
35727         * tests/test-mknod.c: Likewise.
35728
35729         mkfifo: new module
35730         * modules/mkfifo: New file.
35731         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
35732         * lib/mkfifo.c (mkfifo): Likewise.
35733         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35734         defaults.
35735         * modules/sys_stat (Makefile.am): Substitute them.
35736         * lib/sys_stat.in.h (mkfifo): Declare replacement.
35737         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35738         Document it.
35739         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
35740         * modules/mkfifo-tests: New test.
35741         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
35742         from test-mkfifoat.c.
35743         * tests/test-mkfifo.c: New file.
35744
35745         readlink: detect FreeBSD bug
35746         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
35747         slash on symlink.
35748         * doc/posix-functions/readlink.texi (readlink): Document the bug.
35749         * tests/test-readlink.h (test_readlink): Enhance test.
35750
35751         symlink: detect FreeBSD bug
35752         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
35753         slash on symlink.
35754         * doc/posix-functions/symlink.texi (symlink): Document the bug.
35755         * tests/test-symlink.h (test_symlink): Enhance test.
35756
35757 2009-11-10  Eric Blake  <ebb9@byu.net>
35758
35759         link: detect FreeBSD bug
35760         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
35761         symlink.
35762         * doc/posix-functions/link.texi (link): Document the bug.
35763         * tests/test-link.h (test_link): Enhance test.
35764         * tests/test-linkat.c (main): Update caller.
35765
35766         unlink, remove: detect FreeBSD bug
35767         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
35768         slash on symlink.
35769         * doc/posix-functions/unlink.texi (unlink): Document the bug.
35770         * doc/posix-functions/remove.texi (remove): Likewise.
35771         * tests/test-unlink.h (test_unlink): Enhance test.
35772         * tests/test-remove.c (main): Likewise.
35773
35774 2009-11-09  Eric Blake  <ebb9@byu.net>
35775
35776         rename: detect FreeBSD bug
35777         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
35778         slash on symlink.
35779         * modules/renameat-tests (Depends-on): Add filenamecat.
35780         * tests/test-rename.h (test_rename): Allow one more errno.
35781         * tests/test-renameat.c (main): Likewise.
35782         * doc/posix-functions/rename.texi (rename): Document the bug.
35783
35784         open: detect FreeBSD bug
35785         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
35786         symlink.
35787         * doc/posix-functions/open.texi (open): Document the bug.
35788         * doc/posix-functions/utimes.texi (utimes): Likewise.
35789         * tests/test-open.h (test_open): Add parameters, and test symlink
35790         handling.
35791         * tests/test-open.c (main): Adjust caller.
35792         * tests/test-fcntl-safer.c (main): Likewise.
35793         * modules/open-tests (Depends-on): Add stdbool, symlink.
35794         * modules/fcntl-safer-tests (Depends-on): Likewise.
35795         * tests/test-openat.c (main): Add test-open tests.
35796
35797         stat: detect FreeBSD bug
35798         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
35799         symlink.
35800         * doc/posix-functions/stat.texi (stat): Document the bug.
35801         * tests/test-stat.h (test_stat_func): Add argument.
35802         * tests/test-stat.c (main): Adjust caller.
35803         * tests/test-fstatat.c (main): Likewise.
35804         * modules/stat-tests (Depends-on): Add stdbool, symlink.
35805         Reported by Jim Meyering.
35806
35807 2009-11-09  James Youngman  <jay@gnu.org>
35808
35809         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
35810         * lib/strftime.c: Correct placement of #include "ignore-value.h".
35811
35812 2009-11-08  Jim Meyering  <meyering@redhat.com>
35813
35814         utimens: remove invalid futimesat call
35815         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
35816         It used the file descriptor of the target file as the DIR_FD
35817         parameter and NULL as the file name.  That caused failure with
35818         errno == EFAULT on FreeBSD-8.0-rc2
35819
35820 2009-11-07  Eric Blake  <ebb9@byu.net>
35821
35822         fflush, freadseek: use fseeko, not fseek
35823         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35824         (clear_ungetc_buffer): Avoid potential problems on large files.
35825         * lib/freadseek.c (freadseek): Likewise.
35826         * modules/freadseek (Depends-on): Add fseeko.
35827         * modules/fseek (configure.ac): Set a witness.
35828         * tests/test-fflush.c (main): Use fseeko.
35829         * tests/test-fpurge.c (fseek): Disable link warning.
35830         * tests/test-freadable.c (fseek): Likewise.
35831         * tests/test-freading.c (fseek): Likewise.
35832         * tests/test-fseeko.c (fseek): Likewise.
35833         * tests/test-ftell.c (fseek): Likewise.
35834         * tests/test-ftello.c (fseek): Likewise.
35835         * tests/test-fwritable.c (fseek): Likewise.
35836         * tests/test-fwriting.c (fseek): Likewise.
35837
35838 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35839
35840         * modules/memchr (Depends-on): Drop getpagesize dependency.
35841
35842 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35843
35844         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
35845         Reported by Ludovic Courtès.
35846         * build-aux/pmccabe2html: Improve example usage.
35847         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
35848
35849 2009-11-06  Jim Meyering  <meyering@redhat.com>
35850
35851         do-release-commit-and-tag: New module.
35852         Automate the release-commit and tag process.
35853         * build-aux/do-release-commit-and-tag: New script, from coreutils.
35854         * modules/do-release-commit-and-tag: New file.
35855         * MODULES.html.sh (Support for maintaining and releasing): Add it.
35856
35857 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35858
35859         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
35860         because test-select.c uses inet_pton.
35861
35862 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35863
35864         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
35865         GETADDRINFO_LIB.  Bump serial number.
35866         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
35867         Suggested by Eric Blake <ebb9@byu.net>.
35868
35869 2009-11-05  Eric Blake  <ebb9@byu.net>
35870
35871         strtod: detect darwin bug
35872         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
35873         Reported by Leo Davis.
35874
35875         freopen-safer: new module
35876         * modules/freopen-safer: New module.
35877         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
35878         * lib/freopen-safer.c (freopen_safer): New file.
35879         * lib/stdio-safer.h (freopen_safer): New declaration.
35880         * lib/stdio--.h (freopen): New override.
35881         * MODULES.html.sh (File stream based Input/Output): Mention it.
35882         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
35883         freopen-safer module.
35884         * doc/posix-functions/stderr.texi (stderr): Likewise.
35885         * doc/posix-functions/stdin.texi (stdin): Likewise.
35886         * doc/posix-functions/stdout.texi (stdout): Likewise.
35887         * modules/freopen-safer-tests: New test.
35888         * tests/test-reopen-safer.c: New file.
35889
35890 2009-11-05  Jim Meyering  <meyering@redhat.com>
35891
35892         maint.mk: Prohibit inclusion of "close-stream.h" without use.
35893         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35894
35895 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35896
35897         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
35898
35899 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35900
35901         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
35902
35903 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35904
35905         Fix link error.
35906         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35907         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35908
35909 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35910
35911         * tests/test-func.c: Also test value of __func__.
35912
35913 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35914
35915         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
35916         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
35917
35918 2009-11-05  Bruno Haible  <bruno@clisp.org>
35919
35920         Fix link error.
35921         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35922         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35923         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
35924
35925 2009-11-05  Bruno Haible  <bruno@clisp.org>
35926
35927         Tests for module 'inet_pton'.
35928         * modules/inet_pton-tests: New file.
35929         * tests/test-inet_pton.c: New file.
35930
35931 2009-11-05  Bruno Haible  <bruno@clisp.org>
35932
35933         Tests for module 'inet_ntop'.
35934         * modules/inet_ntop-tests: New file.
35935         * tests/test-inet_ntop.c: New file.
35936
35937 2009-11-04  Eric Blake  <ebb9@byu.net>
35938
35939         stdlib-safer: wrap all mkstemp variants
35940         * modules/mkostemp (configure.ac): Set witness.
35941         * modules/mkostemps (configure.ac): Likewise.
35942         * modules/mkstemps (configure.ac): Likewise.
35943         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
35944         (mkstemps_safer): Wrap more functions.
35945         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
35946         wrapping.
35947         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
35948         (mkstemps_safer): Implement the wrappers.
35949
35950         mkstemps, mkostemps: new modules
35951         * modules/mkostemps: New module.
35952         * modules/mkstemps: Likewise.
35953         * lib/mkostemps.c (mkostemps): New file.
35954         * lib/mkstemps.c (mkstemps): Likewise.
35955         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
35956         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
35957         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
35958         * modules/stdlib (Makefile.am): Substitute them.
35959         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
35960         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
35961         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
35962         * doc/gnulib.texi (Glibc stdlib.h): Include them.
35963         * MODULES.html.sh (File system functions): Mention them.
35964
35965         tempname: resync from glibc
35966         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
35967         same values for __GT_FILE as glibc.  Abort even when assertions
35968         are disabled.
35969         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
35970         match its value otherwise.  Allow idempotent inclusion.
35971         * lib/mkdtemp.c (mkdtemp): Adjust caller.
35972         * lib/mkostemp.c (mkostemp): Likewise.
35973         * lib/mkstemp.c (mkstemp): Likewise.
35974         * lib/tmpfile.c (tmpfile): Likewise.
35975         * NEWS: Document this.
35976
35977         utimens: fix use of futimens on older Linux
35978         * lib/utimens.c (fdutimens): Use updated, rather than original,
35979         timespec to avoid bug in older Linux kernel.
35980         Reported by Simon Josefsson.
35981
35982 2009-11-04  Bruno Haible  <bruno@clisp.org>
35983
35984         Make num_processors more flexible and consistent.
35985         * lib/nproc.h (enum nproc_query): New type.
35986         (num_processors): Add a 'query' argument.
35987         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
35988         (num_processors): Add a 'query' argument. Test the value of the
35989         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
35990         mingw, count the number of CPUs available for the current process.
35991         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
35992         Check for sched_getaffinity and sched_getaffinity_np.
35993         * modules/nproc (Depends-on): Add c-ctype, extensions.
35994         * NEWS: Mention the change.
35995
35996 2009-11-03  Bruno Haible  <bruno@clisp.org>
35997
35998         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
35999
36000 2009-11-03  Jim Meyering  <meyering@redhat.com>
36001
36002         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
36003         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
36004         if it is defined.
36005
36006 2009-11-02  Eric Blake  <ebb9@byu.net>
36007
36008         mktime, timegm: share common declaration
36009         * lib/mktime-internal.h: New file.
36010         * lib/mktime.c: Use it rather than open-coding a declaration.
36011         * lib/timegm.c: Likewise.
36012         * modules/mktime (Files): Ship it.
36013         * modules/timegm (Files): Likewise.
36014         Suggested by Bruno Haible.
36015
36016         test-update-copyright: update test to match script changes
36017         * tests/test-update-copyright.sh: Avoid hard-coding perl
36018         location.  Don't update *.bak created by earlier runs.
36019
36020 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
36021             Simon Josefsson  <simon@josefsson.org>
36022             Bruno Haible  <bruno@clisp.org>
36023
36024         Fix link error on Solaris 8.
36025         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
36026         also in libnsl. Define also INET_PTON_LIB.
36027         * modules/inet_pton (Link): New section.
36028
36029 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36030             Bruno Haible  <bruno@clisp.org>
36031
36032         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
36033         * modules/inet_ntop (Link): New section.
36034         Reported by Boyan Kasarov <bkasarov@gmail.com>.
36035
36036 2009-11-02  Eric Blake  <ebb9@byu.net>
36037
36038         maint: avoid compiler warnings in m4 macros
36039         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
36040         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
36041
36042 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36043
36044         * m4/pmccabe2html.m4: Remove file.
36045         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
36046         function.  Change maintainer.
36047         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
36048         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
36049         Courtès).
36050
36051 2009-10-31  Eric Blake  <ebb9@byu.net>
36052
36053         fseeko: fix m4 regression
36054         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
36055         regression from 2009-10-27.
36056         Reported by Ralf Wildenhues.
36057
36058 2009-10-31  Jim Meyering  <meyering@redhat.com>
36059
36060         inttostr: aesthetics and improved (compile-time) safety
36061         Define inttype_is_signed rather than inttype_is_unsigned,
36062         since the sole use is via "#if inttype_is_signed".
36063         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
36064         inttype_is_unsigned.
36065         * lib/offtostr.c (inttype_is_signed): Likewise.
36066         * lib/uinttostr.c (inttype_is_signed): Likewise.
36067         * lib/umaxtostr.c (inttype_is_signed): Likewise.
36068         * lib/inttostr.c (inttostr): Use verify to cross-check the
36069         inttype_is_signed value and the signedness of the actual type.
36070         * modules/inttostr (Depends-on): Add verify.
36071
36072 2009-10-30  Eric Blake  <ebb9@byu.net>
36073
36074         build: avoid compiler warnings
36075         * lib/fchmodat.c (lchmod): Mark unused variables.
36076         * lib/getopt.c (_getopt_initialize): Likewise.
36077         * lib/mktime.c (__mktime_internal): Provide prototype.
36078         * lib/inttostr.c (inttostr): Avoid compiler warning even with
36079         older gcc that do not understand #pragma GCC diagnostic.
36080         * lib/uinttostr.c (inttype_is_unsigned): Define.
36081         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
36082
36083 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
36084
36085         stat: fix compilation on AIX
36086         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
36087         only see struct stat64.
36088
36089 2009-10-30  Eric Blake  <ebb9@byu.net>
36090
36091         exclude: make more robust
36092         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
36093         rather than masking a coding bug.
36094         Suggested by Bruno Haible.
36095
36096 2009-10-30  Jim Meyering  <meyering@redhat.com>
36097
36098         perl scripts: remove #!/usr/bin/perl in favor of more portable...
36099         Rather than putting #!/usr/bin/perl on the first line,
36100         start with a variant of what's recommended by "man perlrun" that
36101         invokes the first "perl" program from your shell's search path.
36102         * build-aux/gitlog-to-changelog: Replace #!... as above.
36103         Add a "Local Variables" perl mode setting.
36104         Prompted by a patch from Ludovic Courtès.
36105         Improved by Eric Blake.
36106         * build-aux/useless-if-before-free: Likewise.
36107         * build-aux/announce-gen: Likewise.
36108         * build-aux/update-copyright: Likewise.
36109
36110 2009-10-29  Eric Blake  <ebb9@byu.net>
36111
36112         filenamecat-lgpl: adjust clients
36113         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
36114         filenamecat.
36115         * modules/renameat (Depends-on): Likewise.
36116
36117         filenamecat: split into filenamecat-lgpl
36118         * modules/filenamecat-lgpl: New module.
36119         * modules/filenamecat (Files): Move library-safe files into
36120         filenamecat-lgpl.
36121         (Depends-on): Add filenamecat-lgpl.
36122         (configure.ac): Declare witness.
36123         * lib/filenamecat.h (file_name_concat): Only declare when using
36124         GPL module.
36125         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
36126         Move...
36127         * lib/filenamecat-lgpl.c: ...into new file.
36128         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
36129         (gl_FILE_NAME_CONCAT): Use it.
36130         * MODULES.html.sh (File system functions): Mention new module.
36131
36132         argp: avoid memory leak
36133         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
36134         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
36135         base_name, since the latter malloc()s and can call exit().
36136         Leak introduced 2006-07-03.
36137
36138         dirname-lgpl: adjust clients that don't need full dirname
36139         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
36140         * modules/filenamecat (Depends-on): Likewise.
36141         * modules/linkat (Depends-on): Likewise.
36142         * modules/mkancesdirs (Depends-on): Likewise.
36143         * modules/mkdir (Depends-on): Likewise.
36144         * modules/openat (Depends-on): Likewise.
36145         * modules/savewd (Depends-on): Likewise.
36146         * modules/rename (Depends-on): Likewise.
36147         (License): Relax license.
36148         * modules/mkdir-tests (Depends-on): Drop progname.
36149         (Makefile.am): Delete unneeded LDADD.
36150         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
36151
36152         dirname: split into dirname-lgpl
36153         * modules/dirname-lgpl: New module.
36154         * modules/dirname (Files): Move library-safe files into
36155         dirname-lgpl.
36156         (Depends-on): Add dirname-lgpl.
36157         (configure.ac): Declare witness.
36158         * modules/double-slash-root (License): Relax license.
36159         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
36160         module.
36161         * lib/dirname.c (dir_len, mdir_name): Move...
36162         * lib/dirname-lgpl.c: ...into new file.
36163         * lib/basename.c (last_component, base_len): Move...
36164         * lib/basename-lgpl.c: ...into new file.
36165         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
36166         (gl_DIRNAME): Use it.
36167         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
36168         Mention new module.
36169         * modules/dirname-tests (Depends-on): Add progname.
36170         * tests/test-dirname.c (program_name): Delete.
36171
36172         mkdir: make safe for libraries
36173         * modules/mkdir (Depends-on): Drop xalloc.
36174         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
36175         exit.
36176
36177         tests: avoid some compiler warnings
36178         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
36179         literals.
36180         * tests/test-memchr.c (main): Avoid type mismatch.
36181         * tests/test-arpa_inet.c (main): Avoid unused parameters.
36182         * tests/test-base64.c (main): Likewise.
36183         * tests/test-getdelim.c (main): Likewise.
36184         * tests/test-gethostname.c (main): Likewise.
36185         * tests/test-getline.c (main): Likewise.
36186         * tests/test-netinet_in.c (main): Likewise.
36187         * tests/test-select.c (open_server_socket, main): Likewise.
36188         * tests/test-select-stdin.c (main): Likewise.
36189         * tests/test-sockets.c (main): Likewise.
36190         * tests/test-strsignal.c (main): Likewise.
36191         * tests/test-sys_select.c (main): Likewise.
36192         * tests/test-sys_socket.c (main): Likewise.
36193         * tests/test-u64.c (main): Likewise.
36194         * tests/test-xfprintf-posix.c (main): Likewise.
36195         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
36196
36197         sockets: avoid compiler warning
36198         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
36199
36200         maint: detect usage(1) and other suspicious exits
36201         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
36202
36203 2009-10-29  Jim Meyering  <meyering@redhat.com>
36204
36205         timespec: long-to-int truncation could make timespec_cmp malfunction
36206         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
36207         a multiple of 2^32 nanoseconds as no difference.
36208
36209 2009-10-28  Jim Meyering  <meyering@redhat.com>
36210
36211         fprintftime: wrap macro code argument in "do {...} while(0)"
36212         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
36213         cpy macro must be a statement that can be followed by a semicolon.
36214         Now that the else clause contains a comment and is hence longer
36215         than one line, I require curly braces.  That in turn requires
36216         that we wrap this code block in the standard do...while(0).
36217
36218         fprintftime: remove stray semicolon from previous change
36219         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
36220
36221         fprintftime: avoid a warning about ignored fwrite return value
36222         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
36223         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
36224         that is unsafe.
36225         * modules/fprintftime (Depends-on): Add ignore-value.
36226
36227         exclude: avoid an unwarranted warning
36228         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
36229
36230 2009-10-27  Eric Blake  <ebb9@byu.net>
36231
36232         fseek: avoid compilation failure when fflush is replaced
36233         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
36234         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
36235         module is in use.
36236         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
36237         module is not in use; since REPLACE_FSEEK worked otherwise.
36238         (GNULIB_FTELLO): Likewise for ftell.
36239         Reported by Ian Beckwith and others.
36240
36241 2009-10-27  Bruno Haible  <bruno@clisp.org>
36242
36243         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
36244         Reported by Jim Meyering.
36245
36246 2009-10-27  Jim Meyering  <jim@meyering.net>
36247             Bruno Haible  <bruno@clisp.org>
36248
36249         Avoid warning despite dropping the return value of fwrite.
36250         * lib/unicodeio.c: Include ignore-value.h.
36251         (fwrite_success_callback): Explicitly ignore fwrite's return value.
36252         * modules/unicodeio (Depends-on): Add ignore-value.
36253
36254 2009-10-26  Eric Blake  <ebb9@byu.net>
36255
36256         areadlinkat: fix fallback path
36257         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
36258         pointer and zero.
36259
36260 2009-10-22  Pádraig Brady  <P@draigBrady.com>
36261
36262         Use a better IO block size for modern systems
36263         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
36264         * lib/md2.c: Likewise.
36265         * lib/md4.c: Likewise.
36266         * lib/md5.c: Likewise.
36267         * lib/sha1.c: Likewise.
36268         * lib/sha256.c: Likewise.
36269         * lib/sha512.c: Likewise.
36270
36271 2009-10-22  Eric Blake  <ebb9@byu.net>
36272
36273         tests: avoid several compiler warnings
36274         * tests/test-getcwd.c (main): Avoid buffer underflow.
36275         * tests/test-getdate.c (main): String literals are not safe with
36276         putenv, so use setenv.  Declare unused argument.
36277         * modules/getdate-tests (Depends-on): Add setenv.
36278         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
36279         problems with string literals in char *.
36280         * tests/test-hash.c (main): Avoid shadowing declaration.
36281         (insert_new): Treat string literals as char const *.
36282         * tests/test-getopt.h (test_getopt): Likewise.
36283         (getopt_loop): Alter types to minimize casting elsewhere.
36284         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
36285         (test_getopt_long_posix): Likewise.
36286         (do_getopt_long): Add wrapper to minimize casting.
36287         * tests/test-atexit.c (clear_temp_file): Use void.
36288         * tests/test-areadlink-with-size.c (main): Declare unused
36289         arguments.
36290         * tests/test-areadlink.c (main): Likewise.
36291         * tests/test-areadlinkat-with-size.c (main): Likewise.
36292         * tests/test-areadlinkat.c (main): Likewise.
36293         * tests/test-canonicalize-lgpl.c (main): Likewise.
36294         * tests/test-canonicalize.c (main): Likewise.
36295         * tests/test-dirent-safer.c (main): Likewise.
36296         * tests/test-dirname.c (main): Likewise.
36297         * tests/test-dup2.c (main): Likewise.
36298         * tests/test-fchdir.c (main): Likewise.
36299         * tests/test-fcntl-h.c (main): Likewise.
36300         * tests/test-fcntl-safer.c (main): Likewise.
36301         * tests/test-fdopendir.c (main): Likewise.
36302         * tests/test-fdutimensat.c (main): Likewise.
36303         * tests/test-fflush.c (main): Likewise.
36304         * tests/test-filenamecat.c (main): Likewise.
36305         * tests/test-filevercmp.c (main): Likewise.
36306         * tests/test-fopen-safer.c (main): Likewise.
36307         * tests/test-fopen.c (main): Likewise.
36308         * tests/test-fpending.c (main): Likewise.
36309         * tests/test-fpurge.c (main): Likewise.
36310         * tests/test-freading.c (main): Likewise.
36311         * tests/test-fstatat.c (main): Likewise.
36312         * tests/test-fsync.c (main): Likewise.
36313         * tests/test-futimens.c (main): Likewise.
36314         * tests/test-getndelim2.c (main): Likewise.
36315         * tests/test-gettimeofday.c (main): Likewise.
36316         * tests/test-getopt.c (main): Likewise.
36317         * tests/test-i-ring.c (main): Likewise.
36318         * tests/test-inttypes.c (main): Likewise.
36319         * tests/test-link.c (main): Likewise.
36320         * tests/test-lstat.c (main): Likewise.
36321         * tests/test-math.c (main): Likewise.
36322         * tests/test-md5.c (main): Likewise.
36323         * tests/test-memchr2.c (main): Likewise.
36324         * tests/test-memrchr.c (main): Likewise.
36325         * tests/test-mkdir.c (main): Likewise.
36326         * tests/test-mkdirat.c (main): Likewise.
36327         * tests/test-mkfifoat.c (main): Likewise.
36328         * tests/test-open.c (main): Likewise.
36329         * tests/test-openat-safer.c (main): Likewise.
36330         * tests/test-openat.c (main): Likewise.
36331         * tests/test-quotearg.c (main): Likewise.
36332         * tests/test-rawmemchr.c (main): Likewise.
36333         * tests/test-readlink.c (main): Likewise.
36334         * tests/test-remove.c (main): Likewise.
36335         * tests/test-rename.c (main): Likewise.
36336         * tests/test-renameat.c (main): Likewise.
36337         * tests/test-rmdir.c (main): Likewise.
36338         * tests/test-sha1.c (main): Likewise.
36339         * tests/test-signal.c (main): Likewise.
36340         * tests/test-sigaction.c (main): Likewise.
36341         * tests/test-stat.c (main): Likewise.
36342         * tests/test-stat-time.c (main): Likewise.
36343         * tests/test-stddef.c (main): Likewise.
36344         * tests/test-stdint.c (main): Likewise.
36345         * tests/test-stdio.c (main): Likewise.
36346         * tests/test-stdlib.c (main): Likewise.
36347         * tests/test-strchrnul.c (main): Likewise.
36348         * tests/test-strerror.c (main): Likewise.
36349         * tests/test-string.c (main): Likewise.
36350         * tests/test-strtod.c (main): Likewise.
36351         * tests/test-strverscmp.c (main): Likewise.
36352         * tests/test-symlink.c (main): Likewise.
36353         * tests/test-symlinkat.c (main): Likewise.
36354         * tests/test-sys_stat.c (main): Likewise.
36355         * tests/test-sys_time.c (main): Likewise.
36356         * tests/test-time.c (main): Likewise.
36357         * tests/test-unistd.c (main): Likewise.
36358         * tests/test-unlink.c (main): Likewise.
36359         * tests/test-unlinkat.c (main): Likewise.
36360         * tests/test-utimens.c (main): Likewise.
36361         * tests/test-utimensat.c (main): Likewise.
36362         * tests/test-version-etc.c (main): Likewise.
36363         * tests/test-wchar.c (main): Likewise.
36364         * tests/test-wctype.c (main): Likewise.
36365         * tests/test-xprintf-posix.c (main): Likewise.
36366         * tests/test-posixtm.c (main): Likewise.
36367         (STREQ): Delete unused macro.
36368         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
36369         shadowed variables.
36370         * tests/test-memchr.c (main): Likewise.
36371
36372 2009-10-21  Eric Blake  <ebb9@byu.net>
36373
36374         areadlinkat: avoid failure on older glibc
36375         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
36376         rather than mis-comparing 0 against FUNC_RESULT of char*.
36377
36378 2009-10-21  Bruno Haible  <bruno@clisp.org>
36379
36380         * modules/stpncpy (License): Relicense under LGPLv2+.
36381         Reported by David Lutterkort <lutter@redhat.com>.
36382
36383 2009-10-20  Eric Blake  <ebb9@byu.net>
36384
36385         utimensat: work around Solaris 9 bug
36386         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
36387         has trailing slash bugs.
36388         * tests/test-lutimens.h (test_lutimens): Enhance test.
36389         * tests/test-utimens.h (test_utimens): Likewise.
36390         * doc/posix-functions/utime.texi (utime): Enhance documentation.
36391         * doc/posix-functions/utimes.texi (utimes): Likewise.
36392         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36393         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
36394         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
36395         * doc/posix-functions/futimens.texi (futimens): Likewise.
36396
36397         fdutimensat: new module
36398         * modules/fdutimensat: New file.
36399         * lib/fdutimensat.c (fdutimensat): Likewise.
36400         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
36401         * MODULES.html.sh (File system functions): Mention module.
36402         * modules/fdutimensat-tests: New test.
36403         * tests/test-fdutimensat.c: Likewise.
36404
36405         doc: regenerate INSTALL
36406         * doc/INSTALL: Reflect recent autoconf update.
36407         * doc/INSTALL.ISO: Likewise.
36408         * doc/INSTALL.UTF-8: Likewise.
36409
36410 2009-10-20  Pádraig Brady  <P@draigBrady.com>
36411
36412         acl: warn if ACL support is not detected
36413         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
36414
36415 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
36416
36417         * lib/nproc.h: Add extern "C" block for C++.
36418
36419 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
36420             Bruno Haible  <bruno@clisp.org>
36421
36422         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
36423         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
36424         * doc/posix-functions/isalpha.texi: Likewise.
36425         * doc/posix-functions/isblank.texi: Likewise.
36426         * doc/posix-functions/iscntrl.texi: Likewise.
36427         * doc/posix-functions/isdigit.texi: Likewise.
36428         * doc/posix-functions/isgraph.texi: Likewise.
36429         * doc/posix-functions/islower.texi: Likewise.
36430         * doc/posix-functions/isprint.texi: Likewise.
36431         * doc/posix-functions/ispunct.texi: Likewise.
36432         * doc/posix-functions/isspace.texi: Likewise.
36433         * doc/posix-functions/isupper.texi: Likewise.
36434         * doc/posix-functions/isxdigit.texi: Likewise.
36435
36436 2009-10-18  Bruno Haible  <bruno@clisp.org>
36437
36438         Tests for module 'isblank'.
36439         * modules/isblank-tests: New file.
36440         * tests/test-isblank.c: New file.
36441
36442         New module 'isblank'.
36443         * lib/isblank.c: New file.
36444         * m4/isblank.m4: New file.
36445         * modules/isblank: New file.
36446         * doc/posix-functions/isblank.texi: Mention the new module.
36447
36448 2009-10-18  Bruno Haible  <bruno@clisp.org>
36449
36450         New module 'ctype'.
36451         * lib/ctype.in.h: New file.
36452         * m4/ctype.m4: New file.
36453         * modules/ctype: New file.
36454         * doc/posix-headers/ctype.texi: Mention the new module.
36455
36456 2009-10-18  Jim Meyering  <meyering@redhat.com>
36457
36458         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
36459         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
36460         right after its initialization, rather than farther down.
36461         Keeping these in close proximity makes it easier to ensure
36462         that each such variable is initialized.  E.g.,
36463
36464             LIB_CLOCK_GETTIME=
36465             AC_SUBST([LIB_CLOCK_GETTIME])
36466
36467         This change also increments these serial numbers.
36468         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
36469         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36470         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36471
36472 2009-10-18  Bruno Haible  <bruno@clisp.org>
36473
36474         Don't let environment variables perturb build.
36475         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
36476         (gl_PREREQ_GETHRXTIME): ... not here.
36477
36478 2009-10-18  Bruno Haible  <bruno@clisp.org>
36479
36480         Avoid symlink attack in localcharset module.
36481         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
36482         (O_NOFOLLOW): Define fallback.
36483         (get_charset_aliases): Don't open the file if it is a symbolic link.
36484         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
36485         gl_FCNTL_H.
36486         (gl_FCNTL_H): Require it.
36487         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
36488         * modules/localcharset (Files): Add m4/fcntl_h.m4.
36489         Reported by Fergal Glynn <fglynn@veracode.com>.
36490
36491 2009-10-18  Bruno Haible  <bruno@clisp.org>
36492
36493         Implement nproc for mingw.
36494         * lib/nproc.c: Include <windows.h>
36495         (num_processors): On native Windows platforms, try GetSystemInfo.
36496
36497 2009-10-18  Bruno Haible  <bruno@clisp.org>
36498
36499         Implement nproc for IRIX.
36500         * lib/nproc.c: Include <sys/sysmp.h>.
36501         (num_processors): On IRIX systems, try sysmp.
36502         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
36503
36504 2009-10-18  Bruno Haible  <bruno@clisp.org>
36505
36506         Implement nproc for HP-UX.
36507         * lib/nproc.c: Include <sys/pstat.h>
36508         (num_processors): On HP-UX systems, try pstat_getdynamic.
36509         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
36510         pstat_getdynamic.
36511
36512 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
36513             Bruno Haible  <bruno@clisp.org>
36514
36515         Implement nproc for NetBSD, OpenBSD.
36516         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
36517         (ARRAY_SIZE): New macro.
36518         (num_processors): On BSD systems, try sysctl of HW_NCPU.
36519         * m4/nproc.m4: New file.
36520         * modules/nproc (Files): Add m4/nproc.m4.
36521         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
36522         (Makefile.am): Instead, augment lib_SOURCES.
36523
36524 2009-10-18  Bruno Haible  <bruno@clisp.org>
36525
36526         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
36527         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
36528         sys/param.h.
36529
36530 2009-10-16  Eric Blake  <ebb9@byu.net>
36531
36532         utimensat: new module
36533         * modules/utimensat: New file.
36534         * lib/utimensat.c (utimensat): Likewise.
36535         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36536         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
36537         so we can work around Linux bugs.
36538         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36539         * modules/sys_stat (Makefile.am): Substitute them.
36540         * lib/sys_stat.in.h (utimensat): Declare it.
36541         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36542         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36543         * modules/utimensat-tests: New test.
36544         * tests/test-utimensat.c: Likewise.
36545
36546         utimens: let lutimens work on non-symlinks
36547         * lib/utimens.c (lutimens): Fall back to utimens rather than
36548         failing with ENOSYS, when file is not a symlink.
36549         (utimens): Reduce redirection.
36550         * tests/test-lutimens.h (test_lutimens): Update test to cover
36551         non-symlinks.
36552         * tests/test-utimens.h (test_utimens): Update test to cover
36553         symlinks.
36554         * tests/test-utimens.c (main): Update caller.
36555
36556         utimens: cache whether utimensat syscall works
36557         * lib/utimens.c (utimensat_works_really): New cache variable.
36558         (fdutimens, lutimens): Use it to avoid failing syscall.
36559
36560         test-stat-time, test-utimens: improve portability
36561         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
36562         ext4 on alpha, and for cygwin.
36563         * tests/test-utimens-common.h: New file.
36564         (nap): Factor delays into single function.
36565         * tests/test-lutimens.h (test_lutimens): Use new header.
36566         * tests/test-futimens.h (test_futimens): Likewise.
36567         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
36568         timestamps to occur from same machine, as was done previously for
36569         test_utimens.
36570         * modules/utimens-tests (Files): Ship new file.
36571         * modules/futimens-tests (Files): Likewise.
36572         Reported in part by Jim Meyering.
36573
36574         sys_stat: sort replacement declarations
36575         * lib/sys_stat.in.h: Sort declarations.
36576         * lib/futimens.c (futimens): Fix typo.
36577
36578 2009-10-15  Jim Meyering  <meyering@redhat.com>
36579
36580         don't let environment settings perturb build
36581         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
36582         could cause a configure-time and/or build-time malfunction.
36583         Typically, a configure-time function-in-library test is performed
36584         via code like this:
36585
36586           LIB_VAR=
36587           AC_SUBST([LIB_VAR])
36588           prefix_saved_LIBS=$LIBS
36589             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
36590                        [test "$ac_cv_search_FUNC" = "none required" ||
36591                         LIB_VAR=$ac_cv_search_FUNC])
36592           LIBS=$prefix_saved_LIBS
36593
36594         However, in each of the files affected by this change, the LIB_VAR=
36595         initialization was omitted.  Thus, when set in the environment, its
36596         value would propagate into generated Makefiles when FUNC is not found
36597         in LIB_NAME.
36598         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
36599         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36600         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36601
36602 2009-10-14  Eric Blake  <ebb9@byu.net>
36603
36604         fchdir: avoid infinite recursion in mingw
36605         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
36606         recursing.
36607
36608         test-stat-time: port to mingw
36609         * tests/test-stat-time.c (force_unlink): Return a value.
36610         (test_ctime) [W32]: Fix compilation error.
36611         (nap): Don't call usleep with too large an argument.  Use
36612         force_unlink.
36613         * doc/pastposix-functions/usleep.texi (usleep): Document the
36614         portability issue.
36615
36616 2009-10-13  Jim Meyering  <meyering@redhat.com>
36617
36618         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
36619         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
36620         * modules/pipe-filter-ii: Likewise.
36621         * modules/sys_socket-tests: Likewise.
36622         * modules/tsearch-tests: Likewise.
36623         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
36624         (check): Depend on it.
36625
36626 2009-10-12  Eric Blake  <ebb9@byu.net>
36627
36628         utimens-tests: port to NFS file systems
36629         * tests/test-utimens.h (test_utimens): Refactor utimecmp
36630         comparisons to avoid spurious failures from timestamp drift
36631         between NFS machines.
36632
36633 2009-10-12  Eric Blake  <ebb9@byu.net>
36634
36635         stat-time-tests: minor cleanups
36636         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
36637         * tests/test-stat-time.c (nap): Separate assignment from call.
36638         Suggested by Paolo Bonzini and Bruno Haible.
36639
36640         sys_stat: guarantee struct timespec
36641         * lib/sys_stat.in.h (includes): Always include <time.h>
36642         * modules/sys_stat (Depends-on): Add time.
36643         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
36644         mode_t permission values.
36645         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
36646         get at subsecond timestamps.
36647
36648 2009-10-10  Eric Blake  <ebb9@byu.net>
36649
36650         futimens: new module
36651         * modules/futimens: New file.
36652         * lib/futimens.c (futimens): Likewise.
36653         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
36654         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
36655         we can work around Linux bugs.
36656         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36657         * modules/sys_stat (Makefile.am): Substitute them.
36658         * lib/sys_stat.in.h (futimens): Declare it.
36659         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36660         * doc/posix-functions/futimens.texi (futimens): Likewise.
36661         * modules/futimens-tests: New test.
36662         * tests/test-futimens.c: Likewise.
36663
36664         utimens: introduce fdutimens
36665         * lib/utimens.h (fdutimens): New prototype.
36666         * lib/utimens.c (gl_futimens): Move guts...
36667         (fdutimens): ...to new interface.
36668         * tests/test-utimens.c (do_fdutimens): Use it.
36669
36670         utimens: add UTIME_NOW and UTIME_OMIT support
36671         * lib/utimens.c (validate_timespec, update_timespec): New helper
36672         functions.
36673         (gl_futimens, lutimens): Use them.
36674         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
36675         stdbool, sys_stat.
36676         (Link): Mention resulting library dependency.
36677         * modules/utimecmp (Link): Likewise.
36678         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
36679         (Makefile.am): Pick up library dependency.
36680         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
36681         definition.
36682         * tests/test-sys_stat.c: Test the definitions.
36683         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
36684         * NEWS: Document library dependency.
36685
36686         utimecmp: support symlink timestamps
36687         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
36688         hashing when possible.  Use pathconf when available.
36689         (SYSCALL_RESOLUTION): Recognize tighter resolution.
36690         * modules/utimecmp (Depends-on): Add lstat.
36691
36692         utimens: add lutimens interface
36693         * lib/utimens.c (lutimens): New function.
36694         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
36695         * lib/utimens.h (lutimens): Declare new interface.
36696         * tests/test-utimens.c (main): Enhance test.
36697         * tests/test-lutimens.h (test_lutimens): New file.
36698         * modules/utimens-tests (Files): Distribute it.
36699         (Depends-on): Add symlink.
36700         (configure.ac): Check for usleep.
36701
36702         utimens: validate futimens usage
36703         * lib/utimens.c (gl_futimens): Require valid fd up front, using
36704         fewer syscalls on failure later on.  Avoid compiler warning on
36705         mingw.
36706         * modules/utimens (Depends-on): Add dup2.
36707
36708         utimens: add test
36709         * modules/utimens-tests: New test.
36710         * tests/test-utimens.h: New file.
36711         * tests/test-futimens.h: Likewise.
36712         * tests/test-utimens.c: Likewise.
36713
36714         doc: mention timestamp portability issues
36715         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
36716         instead.
36717         * doc/posix-functions/utime.texi (utime): Likewise.
36718         * doc/posix-functions/utimes.texi (utimes): Likewise.
36719         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
36720         instead.
36721         * doc/posix-functions/futimens.texi (futimens): Mention utimens
36722         module.
36723         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36724         Mention weakness with symlink timestamps.
36725         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
36726         to utimensat/futimens instead.
36727         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
36728
36729         test-dup2: enhance test
36730         * tests/test-dup2.c (main): Also check AT_FDCWD.
36731
36732         test-stat-time: avoid more spurious failures
36733         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
36734         xfs; and avoid race if the two timestamps cross quantization edge.
36735
36736         relocatable: prefer 'file system' over 'filesystem'
36737         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
36738         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
36739         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
36740         * doc/relocatable.texi (Enabling Relocatability): Likewise.
36741         * lib/relocatable.c (compute_curr_prefix): Likewise.
36742
36743 2009-10-10  Jim Meyering  <meyering@redhat.com>
36744
36745         stat-time-tests: check for the usleep function
36746         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
36747
36748 2009-10-10  Bruno Haible  <bruno@clisp.org>
36749
36750         * modules/xnanosleep: Put the Link section after the Include section.
36751
36752 2009-10-09  Eric Blake  <ebb9@byu.net>
36753
36754         dup2: work around FreeBSD 6.1 bug
36755         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
36756         * doc/posix-functions/dup2.texi (dup2): Document it.
36757         Reported by Nelson H. F. Beebe and Jim Meyering.
36758
36759         test-stat-time: port to buggy NFS clients
36760         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
36761         (test_ctime): Also skip test if mtime and ctime are skewed.
36762
36763         maint: prefer 'file system' over 'filesystem'
36764         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36765         * doc/posix-functions/lstat.texi (lstat): Likewise.
36766         * lib/file-has-acl.c (file_has_acl): Likewise.
36767         * lib/fwriteerror.c [TEST]: Likewise.
36768         * tests/test-areadlink.h (test_areadlink): Likewise.
36769         * tests/test-areadlinkat-with-size.c (main): Likewise.
36770         * tests/test-areadlinkat.c (main): Likewise.
36771         * tests/test-canonicalize-lgpl.c (main): Likewise.
36772         * tests/test-canonicalize.c (main): Likewise.
36773         * tests/test-fstatat.c (main): Likewise.
36774         * tests/test-linkat.c (main): Likewise.
36775         * tests/test-lstat.h (test_lstat_func): Likewise.
36776         * tests/test-mkdir.h (test_mkdir): Likewise.
36777         * tests/test-readlink.h (test_readlink): Likewise.
36778         * tests/test-remove.c (main): Likewise.
36779         * tests/test-rename.h (test_rename): Likewise.
36780         * tests/test-renameat.c (main): Likewise.
36781         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36782         * tests/test-symlink.h (test_symlink): Likewise.
36783         * tests/test-symlinkat.c (main): Likewise.
36784         * tests/test-unlink.h (test_unlink_func): Likewise.
36785         * tests/test-unlinkat.c (main): Likewise.
36786
36787         maint: make realtime library usage explicit
36788         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
36789         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
36790         * modules/settime (Link): Likewise.
36791         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
36792
36793         test-stat-time: speed up execution
36794         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
36795         warning on mingw.
36796         (nap): New helper function.
36797         (prepare_test): Use it to reduce sleep time.
36798         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
36799         execution.
36800         * modules/stat-time-tests (configure.ac): Check for usleep.
36801
36802 2009-10-09  Jim Meyering  <meyering@redhat.com>
36803
36804         selinux-h: always use getfilecon wrappers
36805         * lib/getfilecon.c: New file.
36806         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
36807         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
36808         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
36809         (fgetfilecon): Provide a stub.
36810         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
36811         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
36812         file unconditionally.
36813         When <selinux/selinux.h> is found, arrange to use wrappers.
36814         * modules/selinux-h (Files): Add getfilecon.c.
36815         (Makefile.am): Substitute include-next-related bits
36816         into the now-always-generated selinux/selinux.h file.
36817         * doc/glibc-functions/lgetfilecon.texi: New file.
36818         * doc/glibc-functions/fgetfilecon.texi: New file.
36819         * doc/glibc-functions/getfilecon.texi: New file.
36820         * doc/glibc-functions/getfilecon-desc.texi: New file.
36821         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
36822         which to pull in the new files.
36823         * MODULES.html.sh (Misc): Add selinux-h.
36824
36825 2009-10-08  Jim Meyering  <meyering@redhat.com>
36826
36827         unistd: fix comment typo
36828         * lib/unistd.in.h (euidaccess): Fix a comment typo.
36829
36830 2009-10-08  Eric Blake  <ebb9@byu.net>
36831
36832         areadlink: use SIZE_MAX consistently
36833         * modules/areadlink (Depends-on): Add stdint.
36834         * modules/areadlink-with-size (Depends-on): Likewise.
36835         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
36836         gives NULL; drop sys/types, since unistd gives size_t; and add
36837         stdint for SIZE_MAX.
36838         (SIZE_MAX): Rely on headers.
36839         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
36840         and add stdint.
36841         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
36842         (SIZE_MAX): Likewise.
36843         (INITIAL_BUF_SIZE): Turn into enum.
36844         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
36845
36846 2009-10-08  Jim Meyering  <meyering@redhat.com>
36847
36848         areadlinkat: avoid compilation failure
36849         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
36850         Fix typo in comment.
36851
36852 2009-10-07  Eric Blake  <ebb9@byu.net>
36853
36854         areadlinkat-with-size: new module
36855         * modules/areadlinkat-with-size: New module.
36856         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
36857         * lib/areadlink.h (areadlinkat): Declare it.
36858         * MODULES.html.sh (File system functions): Mention it.
36859         * modules/areadlinkat-with-size-tests: New test.
36860         * tests/test-areadlinkat-with-size.c: New file.
36861
36862         xreadlinkat: new module
36863         * modules/xreadlinkat: New module.
36864         * lib/xreadlinkat.c (xreadlinkat): New file.
36865         * lib/xreadlink.h (xreadlinkat): Declare it.
36866         * MODULES.html.sh (File system functions): Mention it.
36867
36868         areadlinkat: new module
36869         * lib/at-func.c (FUNC_FAIL): New define.
36870         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
36871         * modules/areadlinkat: New module.
36872         * lib/linkat.c (areadlinkat): Move...
36873         * lib/areadlinkat.c (areadlinkat): ...to new file.
36874         * lib/areadlink.h (areadlinkat): Declare it.
36875         * modules/linkat (Depends-on): Add areadlinkat.
36876         * MODULES.html.sh (File system functions): Mention it.
36877         * modules/areadlinkat-tests: New test.
36878         * tests/test-areadlinkat.c: New file.
36879
36880         areadlink, areadlink-with-size: add tests
36881         * modules/areadlink-tests: New test.
36882         * modules/areadlink-with-size-tests: Likewise.
36883         * tests/test-areadlink.h: New file.
36884         * tests/test-areadlink.c: Likewise.
36885         * tests/test-areadlink-with-size.c: Likewise.
36886
36887         maint: minor cleanups
36888         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
36889         _UNUSED_PARAMETER_ instead.
36890         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
36891         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
36892         * modules/linkat-tests (Files): Distribute test-link.h.
36893
36894         openat, utimens: whitespace cleanup
36895         * lib/openat.c: Prefer space throughout, rather than mix of 8
36896         spaces vs. tabs.
36897         * lib/at-func.c: Likewise.
36898         * lib/utimens.c: Likewise.
36899
36900         openat: avoid using wrong fd
36901         * lib/openat.c (openat_permissive): Reject user's fd if saving the
36902         working directory chooses same fd.
36903         * lib/at-func.c (AT_FUNC_NAME): Likewise.
36904
36905         mkdir, mkdirat: fix cygwin 1.5.x bug
36906         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
36907         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
36908         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
36909         bug.
36910         (gl_PREREQ_MKDIR): Delete unused macro.
36911         * modules/mkdir (Files): Track file rename.
36912         (configure.ac): Update macro name.
36913         * modules/openat (Depends-on): Add mkdir.
36914         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
36915
36916         mkdir, mkdirat: add tests
36917         * modules/mkdir-tests: New test.
36918         * tests/test-mkdir.h: New file.
36919         * tests/test-mkdir.c: Likewise.
36920         * tests/test-mkdirat.c: Likewise.
36921         * modules/openat-tests (Files): Add new files.
36922         (Makefile.am): Run new test.
36923
36924 2009-10-06  Eric Blake  <ebb9@byu.net>
36925
36926         doc: tweak *at function documentation
36927         * doc/posix-functions/faccessat.texi (faccessat): Mention
36928         known issue with replacement.
36929         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
36930         * doc/posix-functions/linkat.texi (linkat): Likewise.
36931         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36932         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36933         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36934         * doc/posix-functions/renameat.texi (renameat): Likewise.
36935         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36936
36937         openat: fix GNU/Hurd bug in unlinkat
36938         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
36939         broken.
36940         * doc/posix-functions/unlink.texi (unlink): Document this.
36941         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
36942
36943         fdopendir: fix GNU/Hurd bug
36944         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
36945         allowing non-directory fds.
36946         * lib/fdopendir.c (rpl_fdopendir): Work around it.
36947         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36948         * modules/dirent (Makefile.am): Substitute it.
36949         * lib/dirent.in.h (fdopendir): Declare replacement.
36950         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
36951         * tests/test-fdopendir.c (main): Test something other than
36952         /dev/null, since on Hurd that behaves like a directory.
36953
36954         test-symlink: port to GNU/Hurd
36955         * tests/test-symlink.h (test_symlink): Relax expected errno.
36956
36957         doc: tweak more cygwin information
36958         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
36959         now compatible with glibc.
36960         * doc/posix-functions/getopt.texi (getopt): Likewise.
36961
36962         getopt-gnu: add another test
36963         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
36964         guarantee behavior relied on by m4.
36965         * tests/test-getopt.c (main): Use it.
36966         * modules/getopt-posix-tests (Depends-on): Add setenv.
36967         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
36968
36969         getopt: fix compilation on darwin
36970         * lib/getopt.in.h (includes): Leave breadcrumbs during system
36971         include.
36972         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
36973         Reported by Ludovic Courtès.
36974
36975 2009-10-06  Bruno Haible  <bruno@clisp.org>
36976
36977         * modules/size_max (Description): Discourage its use.
36978         Reported by Simon Josefsson.
36979
36980 2009-10-06  Jim Meyering  <meyering@redhat.com>
36981
36982         linkat: avoid compilation failure
36983         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
36984
36985 2009-10-05  Eric Blake  <ebb9@byu.net>
36986
36987         linkat: support Linux 2.6.17
36988         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
36989         linkat on Linux, but allow cache variable override.
36990         * lib/linkat.c (rpl_linkat): Define override.
36991         * modules/linkat (Depends-on): Add symlinkat.
36992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
36993         * modules/unistd (Makefile.am): Substitute it.
36994         * lib/unistd.in.h (linkat): Declare replacement.
36995         Reported by Pádraig Brady.
36996
36997         quotearg: port test to systems with C.UTF-8 locale
36998         * tests/test-quotearg.c (struct result_strings): Add another
36999         member, differentiating between C.ASCII and C.UTF-8 handling.
37000         (compare_strings): Add parameter.
37001         (main): Adjust all callers.
37002
37003         getopt: avoid clash with FreeBSD _getopt_internal
37004         * lib/getopt.in.h (_getopt_internal): Override the name.
37005         * lib/getopt_int.h (includes): Pick up any overrides.
37006         Reported by Reuben Thomas.
37007
37008         hash: allow C89 compilation
37009         * lib/hash.c (check_tuning): Move declaration before statement.
37010         Reported by Reuben Thomas.
37011
37012 2009-10-05  Karl Berry  <karl@gnu.org>
37013
37014         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
37015
37016 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
37017             Bruno Haible  <bruno@clisp.org>
37018
37019         * lib/uname.c (uname): Use a table-driven algorithm to compute
37020         Windows NT versions.
37021
37022 2009-10-04  Bruno Haible  <bruno@clisp.org>
37023
37024         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
37025         program_invocation_short_name.
37026         * modules/progname (configure.ac): Test for presence of
37027         program_invocation_short_name.
37028         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37029
37030 2009-10-04  Bruno Haible  <bruno@clisp.org>
37031
37032         * lib/progname.c (set_program_name): Fix comment.
37033         Reported by Jim Meyering.
37034
37035 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37036             Bruno Haible  <bruno@clisp.org>
37037
37038         * lib/uname.c: Include <string.h>.
37039         (uname): Do only one call to GetVersionEx in the common case.
37040
37041 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37042             Bruno Haible  <bruno@clisp.org>
37043
37044         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
37045         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
37046         (uname): Add support for Windows CE and various non-x86 CPU types.
37047
37048 2009-10-03  Bruno Haible  <bruno@clisp.org>
37049
37050         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
37051         invocation to tests/configure.ac.
37052         Reported by Ian Beckwith <ianb@erislabs.net>.
37053
37054 2009-10-02  Eric Blake  <ebb9@byu.net>
37055
37056         fchdir: avoid compiler warning
37057         * lib/fchdir.c (canonicalize_file_name)
37058         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
37059
37060         test-open: support mingw errno values
37061         * tests/test-open.h (test_open): Relax test.
37062         * tests/test-fopen.h (test_fopen): Likewise.
37063         * tests/test-openat-safer.c (main): Likewise.
37064
37065         open: fix opening directory on mingw
37066         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
37067
37068         test-open: on GNU/Hurd, /dev/null is a directory
37069         * tests/test-fopen.h (main): Rename...
37070         (test_fopen): ...to this.  Use a guaranteed non-directory when
37071         confirming open behavior on trailing slash.
37072         * tests/test-openat-safer.c (main): Likewise.
37073         * tests/test-open.h (main): Likewise....
37074         (test_open): ...to this.
37075         * tests/test-fopen.c (main): Adjust caller.
37076         * tests/test-fopen-safer.c (main): Likewise.
37077         * tests/test-open.c (main): Likewise.
37078         * tests/test-fcntl-safer.c (main): Likewise.
37079         Reported by Samuel Thibault.
37080
37081         rename, fchdir: don't ignore chdir failure
37082         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
37083         * lib/rename.c (rpl_rename) [W32]: Likewise.
37084         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
37085         an empty destination directory if source cannot be renamed,
37086         although there is still possibility for failure.
37087         * doc/posix-functions/rename.texi (rename): Document the race.
37088         Reported by Jim Meyering.
37089
37090         maint: cleanup whitespace in recent commits
37091         * lib/rename.c (rpl_rename): Remove tabs.
37092         * tests/test-link.h (test_link): Likewise.
37093         * lib/fchdir.c (get_name): Likewise.
37094         Reported by Jim Meyering.
37095
37096 2009-10-02  Ben Pfaff  <blp@gnu.org>
37097
37098         relocatable-prog-wrapper: Add missing dependency on
37099         double-slash-root.
37100         * modules/relocatable-prog-wrapper: Add dependency.
37101         Reported by Ian Beckwith <ianb@erislabs.net>.
37102
37103 2009-10-02  Eric Blake  <ebb9@byu.net>
37104
37105         renameat: fix Solaris bugs
37106         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
37107         needed fixing.
37108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
37109         * modules/stdio (Makefile.am): Substitute it.
37110         * lib/stdio.in.h (renameat): Declare replacement.
37111         * lib/renameat.c (rpl_renameat): Implement fix.
37112
37113         renameat: new module
37114         * modules/renameat: New file.
37115         * lib/renameat.c (renameat): Likewise.
37116         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
37117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37118         * modules/stdio (Makefile.am): Substitute them.
37119         * lib/stdio.in.h (renameat): Declare it.
37120         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37121         * doc/posix-functions/renameat.texi (renameat): Likewise.
37122         * modules/renameat-tests: New test.
37123         * tests/test-renameat.c: Likewise.
37124
37125         rename: fix mingw bugs
37126         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
37127         directory overwrite bugs.
37128
37129         rename: fix another cygwin 1.5 bug
37130         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
37131         checks.
37132         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
37133         unnecessary cygwin workarounds.  Also work around bug with moving
37134         full directory onto an empty one.
37135         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
37136
37137         rename-dest-slash: merge into rename module
37138         * modules/rename-dest-slash (Status): Mark obsolete.
37139         (Depends-on): Add rename.
37140         (Files): Let rename do it all.
37141         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
37142         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
37143         * m4/rename-dest-slash.m4: ...so this file can be deleted.
37144         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
37145         * lib/rename.c (rpl_rename): Update comments.
37146
37147         rename: fix cygwin 1.5.x bugs
37148         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
37149         * lib/rename.c (rpl_rename): Work around them.
37150         * modules/rename (Depends-on): Add same-inode.
37151
37152         rename: fix Solaris 10 bug
37153         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37154         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
37155         was the only bug.
37156
37157         rename: fix Solaris 9 bug
37158         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
37159         on non-directory.  Avoid calling exit.
37160         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
37161         strdup.
37162         * modules/rename-tests (Depends-on): Drop lstat.
37163         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37164         (gl_PREREQ_RENAME): Delete unused macro.
37165
37166         rename-dest-slash: fix NetBSD bug
37167         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
37168         links.
37169         * modules/rename-dest-slash (Depends-on): Add same-inode.
37170
37171         rename-tests: new test, exposes several platform bugs
37172         * modules/rename-tests: New file.
37173         * tests/test-rename.h: Likewise.
37174         * tests/test-rename.c: Likewise.
37175         * doc/posix-functions/rename.texi (rename): Improve documentation,
37176         including bugs that will eventually be fixed in gnulib.
37177
37178 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
37179
37180         * lib/uname.c: Include <stdlib.h>
37181         (uname): Assume version info is available.
37182
37183 2009-10-02  Jim Meyering  <meyering@redhat.com>
37184
37185         gnu-web-doc-update: correct --help output
37186         * build-aux/gnu-web-doc-update: Make --help output relevant.
37187
37188         gnu-web-doc-update: add standard options
37189         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
37190
37191         gnu-web-doc-update: New module.
37192         Use this script to automatically update the on-line web documentation
37193         for your GNU project at http://www.gnu.org/software/$pkg/manual/
37194         * modules/gnu-web-doc-update: New file, from coreutils.
37195         * build-aux/gnu-web-doc-update: New script.
37196
37197 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
37198
37199         link: LoadLibrary is not needed.
37200         * lib/link.c: Use GetModuleHandle.
37201
37202 2009-10-01  Eric Blake  <ebb9@byu.net>
37203
37204         getopt: bump serial number
37205         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
37206         change.
37207
37208         tests: tighten link, rmdir, and remove tests
37209         * tests/test-link.h (includes): No need to use <config.h> here.
37210         Clean up if directory hard link was created, otherwise test for
37211         trailing '.'.
37212         * tests/test-linkat.c (main): Simplify.
37213         * tests/test-remove.c (main): Enhance test for trailing '.'.
37214         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37215
37216 2009-10-01  Jim Meyering  <meyering@redhat.com>
37217
37218         maint.mk: requiring "make major" was annoying, for a "minor" release.
37219         What is intended is "stable", to contrast with alpha and beta,
37220         so require "make stable", not "make major".
37221         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
37222         (get_tool_versions): Likewise.
37223         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
37224
37225 2009-09-30  Ben Pfaff  <blp@gnu.org>
37226
37227         Fix broken build of replacement for Windows tmpfile().
37228         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
37229         flags argument added along with the 'mkostemp' module.
37230
37231 2009-09-28  Bruno Haible  <bruno@clisp.org>
37232
37233         Avoid identifier clash with POSIX function 'remove' defined as a macro.
37234         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
37235         to 'remove_elt'.
37236         (gl_list_remove): Update.
37237         * lib/gl_list.c (gl_list_remove): Update.
37238         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
37239         to 'remove_elt'.
37240         (gl_oset_remove): Update.
37241         * lib/gl_list.c (gl_oset_remove): Update.
37242         Reported by Eric Blake.
37243
37244 2009-09-28  Eric Blake  <ebb9@byu.net>
37245
37246         doc: mention yet more cygwin 1.7 status
37247         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
37248         cygwin.
37249         * doc/glibc-functions/execvpe.texi (execvpe): New file.
37250         * doc/gnulib.texi (Glibc unistd.h): Mention it.
37251
37252         argp: fix test failure
37253         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
37254         that are not upper-case.  Pass correct range to tolower.
37255
37256 2009-09-27  Jim Meyering  <meyering@redhat.com>
37257
37258         test-yesno: work around sparc-dash here-document infelicity
37259         Without this change, the literal \177 byte in a here document
37260         would make dash 0.5.5.1-3 access uninitialized memory.
37261         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
37262         Instead, use a marker, "@", and filter through tr to create the desired
37263         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
37264
37265 2009-09-27  Bruno Haible  <bruno@clisp.org>
37266
37267         Disable untested support for new flavours of ACLs on AIX.
37268         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
37269         progress.
37270         * lib/set-mode-acl.c (qset_acl): Likewise.
37271
37272 2008-12-07  Bruno Haible  <bruno@clisp.org>
37273
37274         Add support for new flavours of ACLs on AIX. (Untested.)
37275         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
37276         (file_has_acl): Add support for newer AIX.
37277         * lib/set-mode-acl.c (qset_acl): Likewise.
37278         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
37279         Rainer Tammer <tammer@tammer.net>.
37280
37281 2009-09-26  Eric Blake  <ebb9@byu.net>
37282
37283         argp: fix compilation of getopt
37284         * lib/getopt.in.h (includes): Use different guard than glibc.
37285         Reported by Sergey Poznyakoff.
37286
37287         doc: mention more cygwin 1.7 status
37288         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
37289         bug.
37290         * doc/posix-functions/execl.texi (execl): Likewise.
37291         * doc/posix-functions/execle.texi (execle): Likewise.
37292         * doc/posix-functions/execlp.texi (execlp): Likewise.
37293         * doc/posix-functions/execv.texi (execv): Likewise.
37294         * doc/posix-functions/execve.texi (execve): Likewise.
37295         * doc/posix-functions/execvp.texi (execvp): Likewise.
37296         * doc/glibc-functions/canonicalize_file_name.texi
37297         (canonicalize_file_name): Cygwin 1.7 now provides this.
37298         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
37299         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
37300         on AT_SYMLINK_NOFOLLOW.
37301
37302 2009-09-24  Eric Blake  <ebb9@byu.net>
37303
37304         test-linkat: make test more robust
37305         * tests/test-linkat.c (main): Avoid collision with EEXIST.
37306
37307         getopt: fix inclusion guards for cygwin
37308         * modules/getopt-posix (Depends-on): Add include-next.
37309         (Makefile.am): Substitute more items in replacement header.
37310         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
37311         <getopt.h>.
37312         * lib/getopt.in.h (includes): Use split inclusion guard, and
37313         prefer <getopt.h> over include <unistd.h> when one is present.
37314         (option): Also override name of 'struct option'.
37315
37316         same-inode: revert prior change; it is not yet ready
37317         * NEWS: Undo mention of this change.
37318         * lib/same-inode.h (same-inode.h): Undo tri-state change.
37319         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37320         * lib/cycle-check.c (cycle_check): Likewise.
37321         * lib/same.c (same_name): Likewise.
37322         * lib/at-func2.c (at_func2): Likewise.
37323
37324 2009-09-23  Eric Blake  <ebb9@byu.net>
37325
37326         linkat: new module
37327         * modules/linkat: New file.
37328         * lib/at-func2.c (at_func2): Likewise.
37329         * lib/linkat.c (linkat): Likewise.
37330         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
37331         * lib/openat-priv.h (at_func2): Add declaration.
37332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37333         * modules/unistd (Makefile.am): Substitute them.
37334         * lib/unistd.in.h (linkat): Declare it.
37335         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37336         * doc/posix-functions/linkat.texi (linkat): Likewise.
37337         * doc/posix-functions/link.texi (link): Tweak wording.
37338         * tests/test-link.c (main): Move guts...
37339         * tests/test-link.h (test_link): ...into new file.
37340         * modules/linkat-tests: New test.
37341         * tests/test-linkat.c: Likewise.
37342         * modules/link-tests (Files): Ship new file.
37343         (Depends-on): Add stdbool.
37344
37345         dirname: add library-safe mdir_name
37346         * lib/dirname.h (mdir_name): New prototype.
37347         * lib/dirname.c (dir_name): Move guts...
37348         (mdir_name): ...to new function that avoids xalloc_die.
37349
37350         fchdir: another mingw fix
37351         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
37352         * lib/fchdir.c (get_name): New helper method; skips canonicalize
37353         on mingw (where it has not yet been ported), and make it optional
37354         elsewhere.
37355         (_gl_register_fd): Use it.
37356
37357         same-inode: make SAME_INODE tri-state, to port to mingw
37358         * NEWS: Mention this change.
37359         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
37360         st_ino always being 0.
37361         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37362         * lib/cycle-check.c (cycle_check): Likewise.
37363         * lib/same.c (same_name): Likewise.
37364
37365         lstat: avoid mingw compilation error
37366         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
37367         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
37368         lstat ourselves.
37369         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
37370         was adequate.
37371         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
37372         the checks for lstat.
37373         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
37374
37375         link: fix test failure on Solaris 9
37376         * lib/link.c (rpl_link): Don't assume link will catch bogus
37377         trailing slash on source.
37378
37379         test-symlinkat: enhance test
37380         * tests/test-readlink.c (main): Move guts...
37381         * tests/test-readlink.h (test_readlink): ...into new file.
37382         * tests/test-symlink.c (main): Move guts...
37383         * tests/test-symlink.h (test_symlink): ...into new file.
37384         * tests/test-symlinkat.c (main): Use new files for further
37385         coverage.
37386         (do_symlink, do_readlink): New helper functions.
37387         * modules/symlink-tests (Files): Ship new file.
37388         (Depends-on): Add stdbool.
37389         * modules/readlink-tests (Files): Ship new file.
37390         (Depends-on): Add stdbool.
37391         * modules/symlinkat-tests (Files): Use new files.
37392
37393 2009-09-23  Eric Blake  <ebb9@byu.net>
37394
37395         readlink: document portability issue with symlink length
37396         * doc/posix-functions/lstat.texi (lstat): Mention that some file
37397         systems have bogus st_size on symlinks, and mention the
37398         areadlink-with-size module.
37399         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37400         * doc/posix-functions/readlink.texi (readlink): Mention the
37401         areadlink module, and ERANGE failure.
37402         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37403         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
37404
37405         readlink: fix Solaris 9 bug with trailing slash
37406         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
37407         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
37408         * doc/posix-functions/readlink.texi (readlink): Document this.
37409         * modules/readlink-tests: New test.
37410         * tests/test-readlink.c: Likewise.
37411
37412         readlink: fix cygwin 1.5.x bug with return type
37413         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
37414         * lib/unistd.in.h (readlink): Use ssize_t.
37415         * lib/readlink.c (readlink): Likewise.
37416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37417         * modules/unistd (Makefile.am): Substitute it.
37418         * lib/unistd.in.h (readlink): Declare replacement.
37419         * doc/posix-functions/readlink.texi (readlink): Document this.
37420
37421         symlink: use throughout gnulib
37422         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
37423         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
37424         symlink is not used.
37425         * modules/symlinkat (Depends-on): Add symlink.
37426         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37427         * modules/canonicalize-tests (Depends-on): Likewise.
37428         * modules/lstat-tests (Depends-on): Likewise.
37429         * modules/openat-tests (Depends-on): Likewise.
37430         * modules/remove-tests (Depends-on): Likewise.
37431         * modules/rmdir-tests (Depends-on): Likewise.
37432         * modules/unlink-tests (Depends-on): Likewise.
37433         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
37434         * tests/test-canonicalize.c (symlink): Likewise.
37435         * tests/test-fstatat.c (symlink): Likewise.
37436         * tests/test-lstat.c (symlink): Likewise.
37437         * tests/test-remove.c (symlink): Likewise.
37438         * tests/test-rmdir.c (symlink): Likewise.
37439         * tests/test-unlink.c (symlink): Likewise.
37440         * tests/test-unlinkat.c (symlink): Likewise.
37441
37442         symlink: new module, for Solaris 9 bug
37443         * modules/symlink: New file.
37444         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
37445         * lib/symlink.c: Likewise.
37446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37447         * modules/unistd (Makefile.am): Substitute them.
37448         * lib/unistd.in.h (symlink): Declare replacement.
37449         * MODULES.html.sh (File system functions): Mention it.
37450         * doc/posix-functions/symlink.texi (symlink): Likewise.
37451         * modules/symlink-tests: New test.
37452         * tests/test-symlink.c: Likewise.
37453
37454 2009-09-23  Bruno Haible  <bruno@clisp.org>
37455
37456         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
37457         when needed.
37458         Test case: gnulib-tool --import --with-tests atexit inttypes.
37459         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
37460
37461 2009-09-23  Bruno Haible  <bruno@clisp.org>
37462
37463         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
37464         subcommand, not in a subshell.
37465
37466 2009-09-22  Eric Blake  <ebb9@byu.net>
37467
37468         unistd: sort replacement declarations
37469         * lib/unistd.in.h: Sort declarations.
37470
37471         open, openat: minor optimization
37472         * lib/open.c (open): If open succeeded, len is non-zero.
37473         * lib/openat.c (rpl_openat): Likewise.
37474
37475         link-follow: ensure correct result
37476         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
37477         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
37478         distinguish between possible failures.
37479
37480 2009-09-21  Eric Blake  <ebb9@byu.net>
37481
37482         fts: avoid compiler warning
37483         * lib/fts.c (dirent_inode_sort_may_be_useful)
37484         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
37485
37486 2009-09-19  Bruno Haible  <bruno@clisp.org>
37487
37488         * lib/progreloc.c (canonicalize_file_name): New declaration.
37489
37490 2009-09-19  Eric Blake  <ebb9@byu.net>
37491
37492         link: fix quoting
37493         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
37494
37495         openat: fix openat bugs on Solaris 9
37496         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
37497         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
37498         * modules/openat (Depends-on): Add open.
37499         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
37500         * modules/fcntl-h (Makefile.am): Substitute it.
37501         * lib/fcntl.in.h (openat): Declare replacement.
37502         * doc/posix-functions/openat.texi (openat): Document this.
37503
37504         openat: move fstatat and unlinkat into correct files
37505         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
37506         compiled.
37507         * lib/openat.c (fstatat, unlinkat): Move...
37508         * lib/fstatat.c (fstatat): ...into correct files.
37509         * lib/unlinkat.c (unlinkat): Likewise.
37510
37511         openat: fix unlinkat bugs on Solaris 9
37512         * lib/unlinkat.c (unlinkat): New file.
37513         * modules/openat (Depends-on): Add unlink.
37514         (Files): Distribute it.
37515         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
37516         trailing slash behavior is broken.
37517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37518         * modules/unistd (Makefile.am): Substitute it.
37519         * lib/unistd.in.h (unlinkat): Declare replacement.
37520         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
37521
37522         openat: fix fstatat bugs on Solaris 9
37523         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
37524         stat.
37525         * doc/posix-functions/fstatat.texi (fstatat): Document this.
37526
37527         test-unlinkat: enhance test, to expose Solaris 9 bug
37528         * tests/test-unlink.c (main): Factor guts...
37529         * tests/test-unlink.h (test_rmdir_func): ...into new file.
37530         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
37531         * tests/test-rmdir.c (main): Adjust caller.
37532         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
37533         (unlinker): New helper function.
37534         (rmdirat): Enhance check.
37535         * modules/rmdir-tests (Depends-on): Add stdbool.
37536         * modules/unlink-tests (Depends-on): Likewise.
37537         (Files): Add test-unlink.h.
37538         * modules/openat-tests (Files): Likewise.
37539         (Depends-on): Add unlinkdir.
37540
37541         test-fstatat: new test, to expose Solaris 9 bugs
37542         * tests/test-stat.c (main): Factor guts...
37543         * tests/test-stat.h (test_stat_func): ...into new file.
37544         * tests/test-lstat.c (main): Factor guts...
37545         * tests/test-lstat.h (test_lstat_func): ...into new file.
37546         * tests/test-fstatat.c: New file.
37547         * modules/stat-tests (Files): Add test-stat.h.
37548         * modules/lstat-tests (Files): Add test-lstat.h.
37549         (Depends-on): Add stdbool.
37550         * modules/openat-tests (Depends-on): Add pathmax.
37551         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
37552         (Makefile.am): Run new test.
37553
37554         remove: new module, for mingw and Solaris 9 bugs
37555         * modules/remove: New file.
37556         * lib/remove.c: Likewise.
37557         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
37558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37559         * modules/stdio (Makefile.am): Use them.
37560         * lib/stdio.in.h (remove): Declare replacement.
37561         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37562         * doc/posix-functions/remove.texi (remove): Likewise.
37563         * modules/remove-tests: New test.
37564         * tests/test-remove.c: Likewise.
37565
37566         unlink: new module, for Solaris 9 bug
37567         * modules/unlink: New file.
37568         * lib/unlink.c: Likewise.
37569         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
37570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37571         * modules/unistd (Makefile.am): Use them.
37572         * lib/unistd.in.h (stat): Declare replacement.
37573         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37574         * doc/posix-functions/unlink.texi (unlink): Likewise.
37575         * modules/unlink-tests: New test.
37576         * tests/test-unlink.c: Likewise.
37577
37578         lstat: fix Solaris 9 bug
37579         * lib/lstat.c (lstat): Also check for trailing slash on
37580         non-symlink, non-directories.  Use stat module to simplify logic.
37581         * doc/posix-functions/lstat.texi (lstat): Document it.
37582         * modules/lstat-tests (Depends-on): Add errno, same-inode.
37583         (configure.ac): Check for symlink.
37584         * tests/test-lstat.c (main): Add more tests.
37585
37586         stat: add as dependency to other modules
37587         * modules/chown (Depends-on): Add stat.
37588         * modules/euidaccess (Depends-on): Likewise.
37589         * modules/fchdir (Depends-on): Likewise.
37590         * modules/isdir (Depends-on): Likewise.
37591         * modules/link (Depends-on): Likewise.
37592         * modules/lstat (Depends-on): Likewise.
37593         * modules/mkdir-p (Depends-on): Likewise.
37594         * modules/modechange (Depends-on): Likewise.
37595         * modules/open (Depends-on): Likewise.
37596         * modules/readlink (Depends-on): Likewise.
37597         * modules/same (Depends-on): Likewise.
37598
37599         stat: fix Solaris 9 bug
37600         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
37601         slash.
37602         * lib/stat.c (rpl_stat): Work around it.
37603         * doc/posix-functions/stat.texi (stat): Update documentation.
37604
37605         stat: new module, for mingw bug
37606         * modules/stat: New file.
37607         * lib/stat.c: Likewise.
37608         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37609         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37610         * modules/sys_stat (Makefile.am): Use them.
37611         * lib/sys_stat.in.h (stat): Declare replacement.
37612         * lib/openat.c (fstatat): Deal with lstat and stat being function
37613         macros.
37614         * modules/openat (Depends-on): Add inline.
37615         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37616         * doc/posix-functions/stat.texi (stat): Likewise.
37617         * modules/stat-tests: New test.
37618         * tests/test-stat.c: Likewise.
37619
37620 2009-09-19  Jim Meyering  <meyering@redhat.com>
37621
37622         syntax-check: detect unnecessary inclusion of canonicalize.h
37623         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
37624
37625 2009-09-19  Eric Blake  <ebb9@byu.net>
37626
37627         canonicalize-lgpl: adjust clients to use correct header
37628         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37629         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
37630         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
37631         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
37632         * lib/progreloc.c (includes): Likewise.
37633
37634 2009-09-19  Jim Meyering  <meyering@redhat.com>
37635
37636         test-posixtm.c: correct a comment
37637         * tests/test-posixtm.c: Correct first-line comment.
37638         Spotted by Eric Blake.
37639
37640 2009-09-16  Jim Meyering  <meyering@redhat.com>
37641
37642         posixtm-tests: make T const-correct; add a test case
37643         * tests/test-posixtm.c (T): Declare const.
37644         Add a test for -(2^31+1).
37645         Remove useless can-succeed-only-in-2002 test.
37646
37647         posixtm-tests: adjust the sole failing test
37648         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
37649         expected output matches what mktime now produces.  Cross-checked via
37650         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
37651
37652         posixtm: move #ifdef'd tests into a new module
37653         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
37654         * tests/test-posixtm.c: ... this new file.
37655         * modules/posixtm-tests: New module.
37656
37657 2009-09-19  Eric Blake  <ebb9@byu.net>
37658
37659         openat: simplify use of at-func.c
37660         * lib/at-func.c (includes): Include prerequisites here, to
37661         simplify requirements on client files.
37662         * lib/openat-priv.h: Add double-inclusion guard.
37663         * lib/faccessat.c (includes): Simplify.
37664         * lib/fchmodat.c (includes): Likewise.
37665         * lib/fchownat.c (includes): Likewise.
37666         * lib/mkdirat.c (includes): Likewise.
37667         * lib/mkfifoat.c (includes): Likewise.
37668         * lib/symlinkat.c (includes): Likewise.
37669
37670         openat: allow return of fd 0
37671         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
37672         * modules/save-cwd (Depends-on): Replace fcntl-safer with
37673         unistd-safer.
37674         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
37675         <fcntl.h>; this module does not leak fds.
37676         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
37677         must be allowed to return 0, leaving openat_safer to add the
37678         safety.
37679         (openat_permissive): Avoid writing to just-opened fd 2 if
37680         restoring the current directory fails.
37681         * lib/openat-die.c (openat_restore_fail): Add comment.
37682         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
37683         (save_cwd): Guarantee safe fd, but without use of open_safer.
37684         * tests/test-openat.c: New test.
37685         * modules/openat-tests (Files, Makefile.am): Distribute and build
37686         new file.
37687
37688         relocatable-prog-wrapper: fix build
37689         * modules/relocatable-prog-wrapper (Files): Update name of
37690         canonicalize m4 file, broken on 2009-09-17.
37691         Reported by emad hajjar <aleppos@hotmail.com>.
37692
37693 2009-09-19  Bruno Haible  <bruno@clisp.org>
37694
37695         * lib/safe-alloc.h: Use the standard header with GPL copyright.
37696         * lib/safe-alloc.c: Likewise.
37697         Reported by Ian Beckwith <ianb@erislabs.net>.
37698
37699 2009-09-18  Bruno Haible  <bruno@clisp.org>
37700
37701         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
37702         Reported by <erobles@sensacd.com.mx>.
37703
37704 2009-09-17  Eric Blake  <ebb9@byu.net>
37705
37706         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
37707         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
37708         slashes when checking if last component is missing.
37709         * tests/test-canonicalize.c (main): Test this.
37710
37711         canonicalize, canonicalize-lgpl: honor // if distinct from /
37712         * modules/canonicalize (Files): Add double-slash-root.m4.
37713         * modules/canonicalize-lgpl (Files): Likewise.
37714         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37715         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
37716         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
37717         fallback definition.
37718         (canonicalize_filename_mode): Use it to protect //.
37719         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
37720         (__realpath): Likewise.
37721         * tests/test-canonicalize.c (main): Test this.
37722         * tests/test-canonicalize-lgpl.c (main): Likewise.
37723         * modules/canonicalize-tests (Depends-on): Add same-inode.
37724         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37725
37726         canonicalize-lgpl: fix glibc bug with trailing slash
37727         * m4/canonicalize-lgpl.m4: Move contents...
37728         * m4/canonicalize.m4: ...here.
37729         (gl_CANONICALIZE_LGPL): Factor realpath check...
37730         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
37731         glibc 2.3.5 bug, fixed 2005-04-27.
37732         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
37733         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
37734         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
37735         * modules/canonicalize-lgpl (Files): Manage file rename.
37736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37737         * modules/stdlib (Makefile.am): Substitute witness.
37738         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
37739         is needed.
37740         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
37741         replacement is required.
37742         * lib/canonicalize.c (canonicalize_file_name): Likewise.
37743         * doc/glibc-functions/canonicalize_file_name.texi
37744         (canonicalize_file_name): Document this.
37745         * doc/posix-functions/realpath.texi (realpath): Likewise.
37746
37747         canonicalize-lgpl: reject non-directory with trailing slash
37748         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
37749         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
37750         catches failures in glibc 2.3.5.
37751         * tests/test-canonicalize.c (main): Likewise.
37752
37753         canonicalize-lgpl: use native realpath if it works
37754         * lib/canonicalize-lgpl.c (realpath): Guard with
37755         FUNC_REALPATH_WORKS.
37756         * lib/stdlib.in.h (realpath): Make declaration optional based on
37757         HAVE_REALPATH.
37758         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
37759         native realpath works.
37760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37761         * modules/stdlib (Makefile.am): Substitute witness.
37762
37763         canonicalize, canonicalize-lgpl: use <stdlib.h>
37764         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
37765         (Include): Mention <stdlib.h>.
37766         (configure.ac): Mention functions we provide.
37767         * modules/canonicalize (configure.ac): Likewise.
37768         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
37769         realpath if canonicalize_file_name is missing.
37770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
37771         * modules/stdlib (Makefile.am): Substitute witnesses.
37772         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
37773         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
37774         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
37775         * NEWS: Document this.
37776         * doc/glibc-functions/canonicalize_file_name.texi
37777         (canonicalize_file_name): Likewise.
37778         * doc/posix-functions/realpath.texi (realpath): Likewise.
37779         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
37780
37781         test-canonicalize: consolidate into single C program
37782         * tests/test-canonicalize.sh: Delete; move setup into...
37783         * tests/test-canonicalize.c (main): ...the program, making it
37784         easier to run in debugger.  Add some tests.
37785         * modules/canonicalize-tests (Files): Remove unused file.
37786         (Depends-on): Add progname.
37787         (configure.ac, Makefile.am): Simplify.
37788
37789         test-canonicalize-lgpl: consolidate into single C program
37790         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
37791         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
37792         easier to run in debugger.  Add some tests.
37793         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
37794         (configure.ac, Makefile.am): Simplify.
37795
37796         canonicalize: avoid resolvepath
37797         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
37798         unnecessary checks.
37799         * lib/canonicalize.c (includes): Simplify.
37800         (canonicalize_file_name): Drop resolvepath implementation.
37801         * modules/canonicalize (Depends-on): Drop filenamecat.
37802
37803         canonicalize: don't lose errno
37804         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
37805         over calls to free.
37806
37807         canonicalize: simplify errno handling
37808         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
37809         assignment.
37810
37811         canonicalize, canonicalize-lgpl: update module dependencies
37812         * modules/canonicalize (Depends-on): Add extensions, lstat,
37813         pathmax, stdlib.
37814         (Files): Drop pathmax.h.
37815         (configure.ac): Adjust macro name.
37816         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
37817         lstat, stdlib, sys_stat.
37818         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
37819         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
37820         extensions.
37821         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
37822         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
37823         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
37824         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
37825         declaration, if available.
37826         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
37827         we can rely on the readlink module.
37828         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
37829         (includes): Use <unistd.h> unconditionally.
37830
37831 2009-09-17  Eric Blake  <ebb9@byu.net>
37832
37833         maint: make Include sections of modules consistent
37834         * modules/alloca: Use only header name; no need to list #include.
37835         * modules/alloca-opt: Likewise.
37836         * modules/arpa_inet: Likewise.
37837         * modules/canon-host: Likewise.
37838         * modules/configmake: Likewise.
37839         * modules/dirent: Likewise.
37840         * modules/eealloc: Likewise.
37841         * modules/environ: Likewise.
37842         * modules/fchdir: Likewise.
37843         * modules/fcntl: Likewise.
37844         * modules/fcntl-h: Likewise.
37845         * modules/gethrxtime: Likewise.
37846         * modules/gettime: Likewise.
37847         * modules/ignore-value: Likewise.
37848         * modules/inet_ntop: Likewise.
37849         * modules/inet_pton: Likewise.
37850         * modules/inttypes: Likewise.
37851         * modules/isnand-nolibm: Likewise.
37852         * modules/isnanf-nolibm: Likewise.
37853         * modules/mbchar: Likewise.
37854         * modules/mbfile: Likewise.
37855         * modules/mbiter: Likewise.
37856         * modules/mbuiter: Likewise.
37857         * modules/netdb: Likewise.
37858         * modules/netinet_in: Likewise.
37859         * modules/nproc: Likewise.
37860         * modules/pagealign_alloc: Likewise.
37861         * modules/poll: Likewise.
37862         * modules/printf-frexp: Likewise.
37863         * modules/pthread: Likewise.
37864         * modules/putenv: Likewise.
37865         * modules/random_r: Likewise.
37866         * modules/relocatable-prog: Likewise.
37867         * modules/search: Likewise.
37868         * modules/select: Likewise.
37869         * modules/selinux-h: Likewise.
37870         * modules/settime: Likewise.
37871         * modules/signal: Likewise.
37872         * modules/size_max: Likewise.
37873         * modules/socklen: Likewise.
37874         * modules/ssize_t: Likewise.
37875         * modules/stdarg: Likewise.
37876         * modules/stdbool: Likewise.
37877         * modules/stddef: Likewise.
37878         * modules/stdint: Likewise.
37879         * modules/stdio: Likewise.
37880         * modules/stdlib: Likewise.
37881         * modules/string: Likewise.
37882         * modules/strings: Likewise.
37883         * modules/sys_file: Likewise.
37884         * modules/sys_ioctl: Likewise.
37885         * modules/sys_select: Likewise.
37886         * modules/sys_socket: Likewise.
37887         * modules/sys_stat: Likewise.
37888         * modules/sys_time: Likewise.
37889         * modules/sys_times: Likewise.
37890         * modules/sys_utsname: Likewise.
37891         * modules/sys_wait: Likewise.
37892         * modules/sysexits: Likewise.
37893         * modules/time: Likewise.
37894         * modules/times: Likewise.
37895         * modules/tmpfile: Likewise.
37896         * modules/trim: Likewise.
37897         * modules/unistd: Likewise.
37898         * modules/wchar: Likewise.
37899         * modules/wctype: Likewise.
37900
37901 2009-09-17  Bruno Haible  <bruno@clisp.org>
37902
37903         Make getdate.y compile on QNX and NetBSD 5 / i386.
37904         * m4/getdate.m4 (gl_GETDATE): Conditionally define
37905         TIME_T_FITS_IN_LONG_INT.
37906         * lib/getdate.y (long_time_t): New type.
37907         (relative_time): Change type of 'seconds' field to long_time_t.
37908         (get_date): Update types of local variables. Check against overflow
37909         during conversion from long_time_t to time_t.
37910         Reported by Matt Kraai <kraai@ftbfs.org>
37911         and Hasso Tepper <hasso@netbsd.org>.
37912
37913 2009-09-17  Bruno Haible  <bruno@clisp.org>
37914
37915         * modules/COPYING: Update copyright years.
37916         * modules/README: Likeiwse.
37917         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
37918         Reported by Ian Beckwith <ianb@erislabs.net>.
37919
37920 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37921
37922         * users.txt: Update references for gnuit package.
37923
37924 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37925
37926         * m4/getdelim.m4: Fix typo in copyright line.
37927
37928 2009-09-17  Bruno Haible  <bruno@clisp.org>
37929
37930         * lib/atoll.c: Use the standard header with GPL copyright.
37931         * lib/argz.in.h: Likewise.
37932         * lib/glob.c: Likewise.
37933         * lib/glob-libc.h: Likewise.
37934         * lib/random_r.c: Likewise.
37935         * lib/siglist.h: Likewise.
37936         * lib/strsignal.c: Likewise.
37937         Reported by Ian Beckwith <ianb@erislabs.net>.
37938
37939 2009-09-17  Eric Blake  <ebb9@byu.net>
37940
37941         rmdir: ensure correct dependency order
37942         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
37943
37944 2009-09-17  Bruno Haible  <bruno@clisp.org>
37945
37946         Disable assertion that fails on NetBSD 5 / i386.
37947         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
37948         Reported by Sam Steingold <sds@gnu.org>
37949         and Hasso Tepper <hasso@netbsd.org>.
37950
37951 2009-09-16  Eric Blake  <ebb9@byu.net>
37952
37953         unlinkdir: port to mingw
37954         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
37955         on which no one can unlink a directory.
37956
37957         stdlib: sort witness names
37958         * modules/stdlib (Makefile.am): Sort replacements.
37959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37960         * lib/stdlib.in.h: Likewise.
37961
37962         parse-duration-tests: avoid link failure
37963         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
37964         LIBINTL.
37965         Reported by Tom G. Christensen.
37966
37967         openat-tests: ensure unlinkat behaves like rmdir
37968         * tests/test-rmdir.c (main): Factor guts...
37969         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
37970         * modules/rmdir-tests (Files): Ship new file.
37971         * modules/openat-tests: New test.
37972         * tests/test-unlinkat.c: Likewise.
37973
37974         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
37975         * modules/rmdir-errno (Status, Notice): Now obsolete.
37976
37977         rmdir: work around cygwin 1.5.x and mingw bugs
37978         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
37979         * lib/rmdir.c (rmdir): Work around it.
37980         * modules/rmdir (Status, Notice): No longer obsolete.
37981         (Files): Add dos.m4.
37982         (Depends-on): Add unistd.
37983         (configure.ac): Set witnesses.
37984         (License): Relax to LGPLv2+.
37985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
37986         * modules/unistd (Makefile.am): Substitute witnesses.
37987         * lib/unistd.in.h (rmdir): Declare replacement.
37988         * doc/posix-functions/rmdir.texi (rmdir): Document this.
37989         * modules/rmdir-tests: New tests.
37990         * tests/test-rmdir.c: Likewise.
37991
37992 2009-09-15  Eric Blake  <ebb9@byu.net>
37993
37994         fchdir: improve use of replacement functions
37995         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
37996         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
37997         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
37998         REPLACE_CLOSEDIR.
37999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
38000         * modules/sys_stat (Makefile.am): Substitute correct witness.
38001         * modules/dirent (Makefile.am): Likewise.
38002         * modules/unistd (Makefile.am): Likewise.
38003         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
38004         * lib/unistd.in.h (dup): Likewise.
38005         * lib/sys_stat.in.h (fstat): Likewise.
38006
38007         maint: ignore gnulib-tool temp files
38008         * .gitignore: Ignore files created during gnulib-tool --test.
38009
38010 2009-09-13  Jim Meyering  <meyering@redhat.com>
38011
38012         posixtm: don't reject a time that specify "60" as the number of seconds
38013         * lib/posixtm.c (posixtime): The code to reject invalid dates
38014         would also reject a time specified with the .60 suffix.
38015         But POSIX allows that, in order to accommodate leap seconds.
38016         So don't reject it.
38017         (main): Adjust tests accordingly.
38018         * modules/posixtm (Depends-on): Add stpcpy.
38019
38020 2009-09-11  Jim Meyering  <meyering@redhat.com>
38021
38022         announce-gen: include [$release_type] in emitted Subject:
38023         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
38024         e.g., [stable] in the emitted Subject: line.
38025
38026 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38027
38028         Remove obsolete macros from several modules.
38029         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
38030         obsolete Autoconf macros with their modern counterparts.
38031         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
38032         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
38033         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
38034         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
38035         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
38036         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38037         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38038         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38039         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
38040         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
38041         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38042         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38043         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
38044         * m4/sockets.m4 (gl_SOCKETS): Likewise.
38045         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
38046         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
38047         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38048         * m4/time_r.m4 (gl_TIME_R): Likewise.
38049         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
38050         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
38051         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38052
38053         Fix copyright header in build-aux scripts.
38054         * build-aux/git-version-gen: Fix copyright header to match GPLv3
38055         recommendation.
38056         * build-aux/ncftpput-ftp: Likewise.
38057         * build-aux/update-copyright: Likewise.
38058
38059 2009-09-09  Eric Blake  <ebb9@byu.net>
38060
38061         test-link: allow Linux choice of errno
38062         * tests/test-link.c (main): Relax test for alternate error.
38063
38064         strndup: fix improper m4 caching
38065         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
38066         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
38067         (gl_PREREQ_STRNDUP): Delete.
38068         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
38069         * modules/string (Makefile.am): Substitute it.
38070         * lib/string.in.h (strndup): Modernize prototype.
38071
38072         getcwd: port to mingw
38073         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
38074         different from the POSIX assumptions made throughout the getcwd
38075         module; fortunately, the mingw getcwd does not need replacement.
38076         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
38077         * modules/getcwd-tests: New test.
38078         * tests/test-getcwd.c: Likewise.
38079
38080         link: fix platform bugs
38081         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
38082         * lib/link.c (link): Work around them.  Fix related mingw bug.
38083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
38084         * modules/unistd (Makefile.am): Substitute it.
38085         * lib/unistd.in.h (link): Declare replacement.
38086         * doc/posix-functions/link.texi (link): Document this.
38087         * modules/link (Depends-on): Add strdup-posix, sys_stat.
38088
38089         test-link: consolidate into single C program, test more cases
38090         * tests/test-link.sh: Delete.
38091         * tests/test-link.c: Test more error conditions.  Exposes bugs on
38092         at least Cygwin and Solaris.
38093         * modules/link-tests (Files): Remove unused file.
38094         (Depends-on): Add errno, sys_stat.
38095         (Makefile.am): Simplify.
38096
38097 2009-09-08  Bruno Haible  <bruno@clisp.org>
38098
38099         Work around towlower, towupper bug on mingw.
38100         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
38101         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
38102         * doc/posix-functions/towlower.texi: Mention the mingw bug.
38103         * doc/posix-functions/towupper.texi: Likewise.
38104         Reported by Eric Blake.
38105
38106 2009-09-08  Jim Meyering  <meyering@redhat.com>
38107
38108         build: don't try to run autoheader if we don't use it
38109         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
38110         is not used in configure.ac.
38111
38112 2009-09-08  Eric Blake  <ebb9@byu.net>
38113
38114         euidaccess: fix compilation error
38115         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
38116
38117         rawmemchr: relax license
38118         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
38119         okay.
38120         Reported by Jim Meyering.
38121
38122         mkfifoat: new module
38123         * modules/mkfifoat: New file.
38124         * lib/mkfifoat.c: Likewise.
38125         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
38126         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38127         * modules/sys_stat (Makefile.am): Use them.
38128         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
38129         * MODULES.html.sh (File system functions): Mention module.
38130         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38131         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38132         * modules/mkfifoat-tests: New test.
38133         * tests/test-mkfifoat.c: Likewise.
38134
38135         strchrnul: relax license
38136         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
38137         okay.
38138         Reported by Jim Meyering.
38139
38140 2009-09-08  Eric Blake  <ebb9@byu.net>
38141
38142         fstatat: fix compilation on Solaris
38143         * lib/fstatat.c (includes): Add fcntl.h.
38144         Reported by Pádraig Brady.
38145
38146 2009-09-07  Eric Blake  <ebb9@byu.net>
38147
38148         rename: modernize replacement
38149         * modules/rename (Depends-on): Add stdio.
38150         (configure.ac): Declare witness.
38151         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
38152         stdio take care of replacement.
38153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38154         * modules/stdio (Makefile.am): Substitute them.
38155         * lib/stdio.in.h (rename): Declare replacement.
38156         * lib/rename.c (includes): Allow cross-compilation to non-windows
38157         machines.
38158         * doc/posix-functions/rename.texi (rename): Improve
38159         documentation.
38160
38161         stdio: sort witness names
38162         * modules/stdio (Makefile.am): Sort replacements.
38163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38164         * lib/stdio.in.h: Likewise.
38165
38166         getcwd: minor cleanups
38167         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
38168         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
38169
38170         openat: provide more convenience names
38171         * modules/faccessat (configure.ac): Add C witness.
38172         * lib/unistd.in.h (readlinkat): Fix typo.
38173         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
38174         convenience wrappers.
38175         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
38176         wrappers in syntax checks.
38177
38178 2009-09-06  Eric Blake  <ebb9@byu.net>
38179
38180         doc: fix comments in recent patches
38181         * lib/faccessat.c: Mention correct function.
38182         * lib/fchmodat.c: Likewise.
38183         * lib/fchownat.c: Likewise.
38184         * lib/symlinkat.c: Likewise.
38185         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
38186         constants.
38187
38188         faccessat, symlinkat: continue cleanup of previous patch
38189         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
38190         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38191         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
38192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
38193         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
38194         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
38195         set.
38196
38197 2009-09-06  Bruno Haible  <bruno@clisp.org>
38198
38199         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
38200         (fstatat): Declare if GNULIB_FSTATAT is set.
38201         (mkdirat): Declare if GNULIB_MKDIRAT is set.
38202         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
38203         (unlinkat): Declare if GNULIB_UNLINKAT is set.
38204         * modules/fcntl-h (Files): Remove m4/openat.m4.
38205         * modules/sys_stat (Files): Remove m4/openat.m4.
38206         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
38207         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
38208         * modules/unistd (Files): Remove m4/openat.m4.
38209         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
38210         GNULIB_OPENAT.
38211         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
38212         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
38213         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
38214         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
38215         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
38216         gl_OPENAT_DEFAULTS.
38217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
38218         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
38219         Don't require gl_OPENAT_DEFAULTS.
38220         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
38221         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
38222         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
38223         (gl_OPENAT_DEFAULTS): Remove macro.
38224
38225 2009-09-06  Bruno Haible  <bruno@clisp.org>
38226
38227         * modules/openat (configure.ac): Remove unneeded witness.
38228
38229 2009-09-06  Bruno Haible  <bruno@clisp.org>
38230
38231         Set errno to ENOSYS when a function is entirely unsupported.
38232         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
38233         EOPNOTSUPP.
38234         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38235         * modules/chown (Depends-on): Remove errno.
38236
38237 2009-09-06  Bruno Haible  <bruno@clisp.org>
38238
38239         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
38240
38241 2009-09-06  Bruno Haible  <bruno@clisp.org>
38242
38243         * lib/sys_stat.in.h: Fix preprocessor command indentation.
38244
38245 2009-09-06  Ben Pfaff  <blp@gnu.org>
38246             Bruno Haible  <bruno@clisp.org>
38247
38248         Work around a glibc bug in strtok_r.
38249         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
38250         Undefine if UNDEFINE_STRTOK_R is set.
38251         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
38252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38253         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
38254         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
38255         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
38256         UNDEFINE_STRTOK_R.
38257         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
38258
38259 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
38260
38261         exclude: minor fix
38262         * lib/exclude.c: Include wctype.h
38263
38264 2009-09-06  Akim Demaille  <demaille@gostai.com>
38265
38266         bootstrap: improve error message
38267         * build-aux/bootstrap (find_tool): Upon failure, report the list
38268         of candidates.
38269         Honor the initial value of the envvar.
38270
38271 2009-09-05  Eric Blake  <ebb9@byu.net>
38272
38273         symlinkat: new module
38274         * modules/symlinkat: New file.
38275         * lib/symlinkat.c: Likewise.
38276         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
38277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38278         * modules/unistd (Makefile.am): Use them.
38279         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
38280         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
38281         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
38282         * MODULES.html.sh (File system functions): Mention module.
38283         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38284         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38285         * modules/symlinkat-tests: New test.
38286         * tests/test-symlinkat.c: Likewise.
38287
38288         test-openat-safer: add more checks
38289         * tests/test-openat-safer.c (main): Check more code paths.
38290
38291 2009-09-05  Jim Meyering  <meyering@redhat.com>
38292
38293         syntax-check: detect unnecessary inclusion of openat.h
38294         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
38295
38296 2009-09-05  Bruno Haible  <bruno@clisp.org>
38297
38298         Support towlower, towupper.
38299         * doc/posix-functions/towlower.texi: Mention module wctype.
38300         * doc/posix-functions/towupper.texi: Likewise.
38301         * lib/wctype.in.h (towlower, towupper): New functions.
38302         * tests/test-wctype.c: Include stdio.h, stdlib.h.
38303         (ASSERT): New macro.
38304         (e): New variable.
38305         (main): Test also towlower, towupper. Test WEOF argument.
38306         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38307
38308 2009-09-05  Bruno Haible  <bruno@clisp.org>
38309
38310         Fix conversion behaviour when the input is invalid.
38311         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
38312         mark occurring in first pass of indirect conversion.
38313         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
38314         input.
38315         Found by clang's static analyzer.
38316
38317 2009-09-05  Bruno Haible  <bruno@clisp.org>
38318
38319         * tests/test-striconveh.c (main): Test indirect conversion on platforms
38320         where direct conversion is possible.
38321
38322 2009-09-04  Eric Blake  <ebb9@byu.net>
38323
38324         openat: fail with ENOENT on empty name
38325         * lib/openat-proc.c (openat_proc_name): Special-case the empty
38326         buffer.
38327
38328         link-follow: fix logic bug in prior patch
38329         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
38330         reversed sense of yes and no in prior patch.  Avoid confusing
38331         compilation failure with desired semantics.
38332
38333         link-follow: accomodate mingw and cross-compilation
38334         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
38335         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
38336         cross-compilation results to -1, to make linkat easier to
38337         implement when cross-compiling.  Trivially support mingw.
38338         * modules/link-follow (configure.ac): Call new name.
38339         * NEWS: Mention this.
38340
38341 2009-09-03  Eric Blake  <ebb9@byu.net>
38342
38343         faccessat: compile replacement
38344         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
38345         needed.
38346
38347         fts: fix compilation error
38348         * lib/fts.c (includes): Re-add "openat.h", for
38349         openat_needs_fchdir.
38350
38351         faccessat: new module
38352         * modules/faccessat: New file.
38353         * lib/faccessat.c: Likewise.
38354         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38356         * modules/unistd (Makefile.am): Use it.
38357         * lib/unistd.in.h (faccessat): Declare it.
38358         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
38359         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
38360         * MODULES.html.sh (File system functions): Mention it.
38361         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
38362         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38363
38364         euidaccess: prefer POSIX over non-standard implementation
38365         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
38366         * lib/euidaccess.c (euidaccess): Use it if available.
38367
38368         openat: make template easier to use
38369         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
38370         AT_FUNC_F2 to be undefined.
38371         (VALIDATE_FLAG): New macro; use it to reject bad flags.
38372         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
38373         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
38374         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
38375         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
38376         Likewise.
38377         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
38378         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
38379         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
38380         Likewise.
38381
38382         openat: declare in POSIX headers
38383         * NEWS: Mention this.
38384         * modules/openat (configure.ac): Declare witnesses.
38385         (Depends-on): Add fcntl-h, sys_stat, unistd.
38386         (Include): Mention correct headers.
38387         * modules/fcntl-h (Depends-on): Add link-warning.
38388         (Files): Add openat.m4.
38389         (Makefile.am): Substitute witnesses.
38390         * modules/sys_stat (Files, Makefile.am): Likewise.
38391         * modules/unistd (Files, Makefile.am): Likewise.
38392         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
38393         (gl_OPENAT_DEFAULTS): New macro.
38394         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
38395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
38396         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
38397         (SYS_STAT_H): Remove unused variable.
38398         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
38399         * lib/fcntl--.h (includes): Remove unneeded header.
38400         * lib/openat-safer.c (includes): Likewise.
38401         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
38402         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
38403         appropriate headers.
38404         (__OPENAT_PREFIX): Delete.
38405         * lib/fcntl.in.h (openat): Provide declaration.
38406         (AT_FDCWD): Fix Solaris bug.
38407         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
38408         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
38409         * lib/fchmodat.c (includes):  Adjust to find declaration.
38410         * lib/fchownat.c (includes): Likewise.
38411         * lib/mkdirat.c (includes): Likewise.
38412         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
38413         still visible.
38414
38415 2009-09-02  Eric Blake  <ebb9@byu.net>
38416
38417         errno: use consistently
38418         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
38419         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
38420         * lib/canonicalize.c (ELOOP): Likewise.
38421         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
38422         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
38423         * lib/lchown.c (EOPNOTSUPP): Likewise.
38424         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
38425         * lib/savewd.c (ESTALE): Likewise.
38426         * lib/settime.c (ENOSYS): Likewise.
38427         * lib/utimens.c (ENOSYS): Likewise.
38428         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
38429         * lib/chdir-safer.c (ELOOP): Likewise.
38430         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
38431         * modules/c-stack (Depends-on): Add errno.
38432         * modules/canonicalize (Depends-on): Likewise.
38433         * modules/chdir-safer (Depends-on): Likewise.
38434         * modules/fdopendir (Depends-on): Likewise.
38435         * modules/inet_ntop (Depends-on): Likewise.
38436         * modules/inet_pton (Depends-on): Likewise.
38437         * modules/lchown (Depends-on): Likewise.
38438         * modules/openat (Depends-on): Likewise.
38439         * modules/savewd (Depends-on): Likewise.
38440         * modules/settime (Depends-on): Likewise.
38441         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
38442
38443         fts: avoid leaking fds
38444         * modules/fts (Depends-on): Add cloexec.
38445         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
38446         flag.
38447
38448         fts: make directory fds more robust
38449         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
38450         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
38451
38452         backupfile, chdir-long, fts, savedir: make safer
38453         * lib/backupfile.c (includes): Use "dirent--.h", since
38454         numbered_backup can write to stderr during readdir.
38455         * lib/savedir.c (includes): Likewise.
38456         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
38457         emulation can write to stderr on failure.
38458         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
38459         * lib/getcwd.c: Document why opendir_safer is unused.
38460         * lib/glob.c: Likewise.
38461         * lib/scandir.c: Likewise.
38462         * lib/openat-proc.c: Likewise, for open_safer.
38463         * modules/backupfile (Depends-on): Add dirent-safer.
38464         * modules/savedir (Depends-on): Likewise.
38465         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
38466         * modules/chdir-long (Depends-on): Add openat-safer.
38467
38468         openat-safer: new module
38469         * modules/openat-safer: New file.
38470         * lib/openat-safer.c: Likewise.
38471         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
38472         * lib/fcntl-safer.h (openat_safer): Declare.
38473         * lib/fcntl--.h (openat): Override.
38474         * MODULES.html.sh (File descriptor based I/O): Mention it.
38475         * lib/openat.h: Add double-inclusion guards.
38476         * lib/openat.c (includes): Only include "fcntl-safer.h", not
38477         "fcntl--.h", so we can implement openat.
38478         * modules/openat-safer-tests: New test.
38479         * tests/test-openat-safer.c: New file.
38480
38481         dirent-safer: new module
38482         * modules/dirent-safer: New file.
38483         * lib/dirent--.h: Likewise.
38484         * lib/dirent-safer.h: Likewise.
38485         * lib/opendir-safer.c: Likewise.
38486         * m4/dirent-safer.m4: Likewise.
38487         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
38488         * modules/dirent-safer-tests: New test.
38489         * tests/test-dirent-safer.c: New file.
38490         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
38491
38492         fdopendir: optimize on mingw
38493         * lib/unistd.in.h (_gl_directory_name): New prototype.
38494         * lib/fchdir.c (_gl_directory_name): Implement it.
38495         (fchdir): Use it to simplify implementation.
38496         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
38497         fchdir, when available, to avoid calling [f]chdir().
38498
38499         fdopendir: split into its own module
38500         * lib/openat.c (fdopendir): Move...
38501         * lib/fdopendir.c: ...into new file.
38502         * modules/fdopendir: New module.
38503         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
38504         * modules/openat (Depends-on): Add fdopendir.
38505         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
38506         fdopendir here.
38507         * modules/savedir (Depends-on): Only need fdopendir, not full
38508         openat.
38509         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
38510         * lib/openat.h (fdopendir): Drop prototype.
38511         * lib/dirent.in.h (fdopendir): Provide prototype.
38512         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
38513         * modules/dirent (Makefile.am): Substitute them.
38514         * MODULES.html.sh (File system functions): Mention it.
38515         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
38516         * modules/fdopendir-tests: New file.
38517         * tests/test-fdopendir.c: Likewise.
38518
38519         fchdir: use more consistent macro convention
38520         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
38521         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
38522         REPLACE_FCHDIR, rather than relying on config.h macros.
38523         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
38524         inside a single make-time REPLACE_FCHDIR block, rather than using
38525         the config.h FCHDIR_REPLACEMENT.
38526         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
38527         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
38528         Manage fstat replacement.
38529         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
38530         REPLACE_FCHDIR.
38531         * modules/sys_stat (Files): Add m4/unistd_h.m4.
38532         (Makefile.am): Substitute REPLACE_FCHDIR.
38533         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
38534         FCHDIR_REPLACEMENT.
38535         * lib/dup-safer.c (dup_safer): Likewise.
38536         * lib/dup2.c (rpl_dup2): Likewise.
38537         * lib/dup3.c (rpl_dup3): Likewise.
38538         * lib/open.c (rpl_open): Likewise.
38539
38540         fchdir: simplify error handling, and support dup3
38541         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
38542         stdbool, malloc-posix, realloc-posix.
38543         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
38544         (ensure_dirs_slot): Return false on allocation failure.
38545         (rpl_dup2): Delete.
38546         (_gl_register_dup): New function.
38547         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
38548         (_gl_register_fd): Close fd on allocation failure.
38549         * lib/fcntl.in.h (_gl_register_fd): Update signature.
38550         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
38551         prototype.
38552         (rpl_dup2_fchdir): Delete prototype.
38553         * lib/open.c (open): Update caller.
38554         * lib/dup2.c (dup2): Track fchdir metadata.
38555         * lib/dup3.c (dup3): Likewise.
38556         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
38557         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
38558
38559 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38560
38561         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
38562         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
38563         don't pass arguments to AC_OUTPUT.
38564
38565 2009-09-02  Bruno Haible  <bruno@clisp.org>
38566
38567         * modules/mkdtemp (License): Relicense under LGPLv2+.
38568         Reported by Paolo Bonzini.
38569
38570 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38571
38572         Replace uses of obsolete autoconf macros in Jim's modules.
38573         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
38574         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
38575         can evoke a warning from autoconf when run with -Wobsolete
38576         enabled.  They were declared obsolete for good reasons (see
38577         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
38578         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
38579         should not continue using the deprecated macros.
38580         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
38581         obsolete Autoconf macros with modern counterparts.
38582         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38583         * m4/dos.m4 (gl_AC_DOS): Likewise.
38584         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
38585         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
38586         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
38587         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
38588         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
38589         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
38590         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
38591         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
38592         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38593         Likewise.
38594         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
38595         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
38596         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
38597         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
38598         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38599         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
38600
38601 2009-09-01  Eric Blake  <ebb9@byu.net>
38602
38603         fchdir: fix off-by-one bug in previous patch
38604         * lib/fchdir.c (rpl_fstat): Use correct bounds.
38605         (_gl_unregister_fd): Delete useless if.
38606
38607 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
38608
38609         maint.mk: sort the list of syntax-check rules
38610         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
38611         easier to get a sense of progress when the rules are run sequentially
38612         and take a long time.
38613
38614 2009-09-01  Simon Josefsson  <simon@josefsson.org>
38615
38616         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
38617         * modules/netinet_in: Likewise.
38618         * modules/sys_file: Likewise.
38619         * modules/sys_ioctl: Likewise.
38620         * modules/sys_select: Likewise.
38621         * modules/sys_socket: Likewise.
38622         * modules/sys_stat: Likewise.
38623         * modules/sys_time: Likewise.
38624         * modules/sys_times: Likewise.
38625         * modules/sys_utsname: Likewise.
38626         * modules/sys_wait: Likewise.
38627
38628 2009-09-01  Jim Meyering  <meyering@redhat.com>
38629
38630         fts: help ensure that return values are not ignored
38631         * lib/fts_.h (__GNUC_PREREQ): Define.
38632         (__attribute_warn_unused_result__): Define.
38633         (fts_children, fts_close, fts_open, fts_read): Declare with
38634         __attribute_warn_unused_result__.
38635
38636         fts: fts_close now fails also when closing a dir file descriptor fails
38637         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
38638         and propagate to caller, along with errno.
38639
38640         announce-gen: correct formatting in --help output
38641         * build-aux/announce-gen (usage): Move the one-line description in
38642         --help output "up", to where it belongs, just after Usage:.
38643
38644 2009-08-31  Eric Blake  <ebb9@byu.net>
38645
38646         fchdir: port to mingw
38647         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
38648         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
38649         opened, then use a substitute.
38650         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
38651         replacement.
38652         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
38653         (_gl_register_fd): No need to check stat if open already filters
38654         all directories.
38655         (fchdir): Fix error condition to match POSIX.
38656         * modules/fchdir (Depends-on): Add sys_stat.
38657         * doc/posix-functions/open.texi (open): Document the limitation.
38658         * modules/fchdir-tests: New file.
38659         * tests/test-fchdir.c: Likewise.
38660
38661         canonicalize: allow cross-testing from cygwin to mingw
38662         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
38663         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
38664         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
38665         Likewise.
38666         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
38667         target does not support symlinks.
38668         * tests/test-canonicalize-lgpl.sh: Likewise.
38669
38670         chown: avoid compilation warning on mingw
38671         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
38672         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
38673         mingw.
38674         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38675         * modules/chown (Depends-on): Add errno.
38676
38677 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38678
38679         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
38680         command.
38681
38682 2009-08-31  Jim Meyering  <meyering@redhat.com>
38683
38684         canonicalize: remove useless initialization
38685         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
38686         initialization of local, "end".
38687
38688 2009-08-30  Bruno Haible  <bruno@clisp.org>
38689
38690         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
38691         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
38692         ENOSYS.
38693
38694 2009-08-30  Bruno Haible  <bruno@clisp.org>
38695
38696         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
38697         /usr/xpg4/bin/tr when it exists.
38698         * tests/test-pipe-filter-gi1.sh: Likewise.
38699
38700 2009-08-30  Bruno Haible  <bruno@clisp.org>
38701
38702         Work around deficient /usr/bin/id program on Solaris.
38703         * tests/test-file-has-acl.sh (ID): New variable.
38704         * tests/test-set-mode-acl.sh (ID): Likewise.
38705         * tests/test-copy-acl.sh (ID): Likewise.
38706         * tests/test-copy-file.sh (ID): Likewise.
38707
38708 2009-08-30  Bruno Haible  <bruno@clisp.org>
38709
38710         New module 'xstriconveh'.
38711         * lib/xstriconveh.h: New file.
38712         * lib/xstriconveh.c: New file.
38713         * modules/xstriconveh: New file.
38714
38715 2009-08-30  Bruno Haible  <bruno@clisp.org>
38716
38717         Make it easier to use mem_cd_iconveh.
38718         * lib/striconveh.h (iconveh_t): New type.
38719         (iconveh_open, iconveh_close): New declarations.
38720         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38721         with a single 'const iconveh_t *' argument.
38722         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
38723         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38724         with a single 'const iconveh_t *' argument.
38725         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
38726         * tests/test-striconveh.c (main): Update.
38727         * NEWS: Mention the change.
38728
38729 2009-08-30  Bruno Haible  <bruno@clisp.org>
38730
38731         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
38732         problem.
38733
38734 2009-08-30  Bruno Haible  <bruno@clisp.org>
38735
38736         Work around iconv_open problem on Solaris.
38737         * lib/iconv_open-solaris.gperf: New file.
38738         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
38739         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
38740         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
38741         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
38742         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
38743         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
38744
38745 2009-08-29  Jim Meyering  <meyering@redhat.com>
38746
38747         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
38748         * top/maint.mk (cvs-check): Remove target; it was just an alias
38749         to the better-named vc-diff-check.
38750         (maintainer-distcheck): Remove rule.  It was used only from
38751         the (alpha/beta/major) target, and all of its commands but one
38752         were coreutils-specific.
38753         (vc-dist): Remove rule.
38754         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
38755         Run vc-diff-check, not vc-dist.
38756         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
38757
38758 2009-08-27  Bruno Haible  <bruno@clisp.org>
38759
38760         * tests/test-bitrotate.c (main): Remove test that uses a shift count
38761         of 0.
38762
38763 2009-08-27  Bruno Haible  <bruno@clisp.org>
38764
38765         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
38766         compilers.
38767         * doc/func.texi: Document the SunPRO C bug.
38768
38769 2009-08-27  Bruno Haible  <bruno@clisp.org>
38770
38771         Fix link error on Solaris.
38772         * tests/test-parse-duration.c (xstrdup): Remove function.
38773
38774 2009-08-26  Pádraig Brady  <P@draigbrady.com>
38775
38776         ignore-value: handle pointer types, too
38777         * lib/ignore-value.h (__attribute__): Remove definition.
38778         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
38779         of a more concise and more-often effective "(void) i" statement.
38780         (ignore_ptr): New function to suppress warnings from functions that
38781         return pointers, and to make it explicit that one function doesn't
38782         handle all cases.
38783
38784 2009-08-25  Bruno Haible  <bruno@clisp.org>
38785
38786         dup2: work around a Linux bug.
38787         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
38788         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
38789         * doc/posix-functions/dup2.texi: Mention the Linux bug.
38790         Reported by Simon Josefsson.
38791
38792 2009-08-25  Jim Meyering  <meyering@redhat.com>
38793
38794         libguestfs uses gnulib
38795         * users.txt: Add libguestfs.
38796
38797 2009-08-24  Eric Blake  <ebb9@byu.net>
38798
38799         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
38800         * lib/pipe2.c (includes): Add binary-io.h.
38801         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
38802
38803 2009-08-24  Bruno Haible  <bruno@clisp.org>
38804
38805         Tolerate declared but missing accept4 syscall.
38806         * lib/accept4.c (accept4): Invoke original accept4 function first, if
38807         available.
38808         * lib/sys_socket.in.h (accept4): If the function is already present,
38809         override it.
38810         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
38811         * modules/accept4 (Makefile.am): Compile accept4.c always.
38812         Reported by Paolo Bonzini and Eric Blake.
38813
38814 2009-08-23  Bruno Haible  <bruno@clisp.org>
38815
38816         New module 'accept4'.
38817         * lib/sys_socket.in.h (accept4): New declaration.
38818         * lib/accept4.c: New file.
38819         * m4/accept4.m4: New file.
38820         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38821         GNULIB_ACCEPT4, HAVE_ACCEPT4.
38822         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
38823         HAVE_ACCEPT4.
38824         * modules/accept4: New file.
38825         * doc/glibc-functions/accept4.texi: Mention the new module.
38826
38827 2009-08-24  Jim Meyering  <meyering@redhat.com>
38828
38829         progname: also set global program_invocation_name, when possible
38830         Before this change, a libtool-enabled program that calls glibc's
38831         error function would report the program name as
38832         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
38833         * modules/progname (configure.ac): Check for a declaration of
38834         program_invocation_name.
38835         * lib/progname.c:  Include <errno.h>.
38836         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
38837         Set program_invocation_name.
38838
38839 2009-08-23  Bruno Haible  <bruno@clisp.org>
38840
38841         * lib/dup3.c: Include <string.h>.
38842
38843 2009-08-23  Bruno Haible  <bruno@clisp.org>
38844
38845         * lib/dup3.c (dup3): Test only once whether the system actually exists.
38846         * lib/pipe2.c (pipe2): Likewise.
38847         Suggested by Eric Blake.
38848
38849 2009-08-23  Bruno Haible  <bruno@clisp.org>
38850
38851         Tolerate declared but missing dup3 syscall.
38852         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
38853         * lib/unistd.in.h (dup3): If the function is already present,
38854         override it.
38855         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
38856         * modules/dup3 (Makefile.am): Compile dup3.c always.
38857         Reported by Paolo Bonzini.
38858
38859 2009-08-23  Bruno Haible  <bruno@clisp.org>
38860
38861         Tolerate declared but missing pipe2 syscall.
38862         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
38863         available.
38864         * lib/unistd.in.h (pipe2): If the function is already present,
38865         override it.
38866         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
38867         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
38868         Reported by Paolo Bonzini.
38869
38870 2009-08-23  Bruno Haible  <bruno@clisp.org>
38871
38872         * lib/pipe2.c (pipe2): Move #ifs inside function.
38873
38874 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38875
38876         quotearg: document limitations of quote_these_too
38877         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
38878         those limitations are created.
38879         * lib/quotearg.h (set_char_quoting): Document that digits and
38880         letters that are special after backslash are not permitted.
38881         (quotearg_char): Cross-reference set_char_quoting documentation.
38882
38883 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
38884
38885         quotearg: implement custom_quoting_style
38886         * lib/quotearg.c: (struct quoting_options): Add left_quote and
38887         right_quote fields.
38888         (set_custom_quoting): New public function.
38889         (quotearg_buffer_restyled): Add left_quote and right_quote
38890         arguments, handle them very much like locale quoting, and update
38891         all uses.
38892         (quotearg_n_custom): New public function.
38893         (quotearg_n_custom_mem): New public function.
38894         (quotearg_custom): New public function.
38895         (quotearg_custom_mem): New public function.
38896         * lib/quotearg.h: Prototype and document new public functions.
38897         (enum quoting_style): For escape_quoting_style and
38898         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
38899         ignored even though they're otherwise like c_quoting_style.
38900         Add custom_quoting_style member and document with comparison to
38901         clocale_quoting_style.
38902         * tests/test-quotearg.c (custom_quotes): New array.
38903         (custom_results): New array.
38904         (main): Extend to test custom quoting.
38905
38906 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38907
38908         quotearg: fix right quote escaping when it's in quote_these_too
38909         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
38910         quote, be sure to prepend only one backslash.
38911         * tests/test-quotearg.c (use_quote_double_quotes): New function.
38912         (main): Test it.
38913
38914 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38915
38916         quotearg-tests: test escaping of embedded locale quotes
38917         * tests/test-quotearg.c (struct result_strings): Add member for
38918         new input.
38919         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
38920         (inputs): Add new input.
38921         (results_g): Add expected results.
38922         (flag_results): Likewise.
38923         (locale_results): Likewise.
38924         (compare_strings): Check those.
38925
38926 2009-08-23  Bruno Haible  <bruno@clisp.org>
38927
38928         Tests for module 'dup3'.
38929         * modules/dup3-tests: New file.
38930         * tests/test-dup3.c: New file.
38931
38932         New module 'dup3'.
38933         * lib/unistd.in.h (dup3): New declaration.
38934         * lib/dup3.c: New file.
38935         * m4/dup3.m4: New file.
38936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
38937         HAVE_DUP3.
38938         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
38939         * modules/dup3: New file.
38940         * doc/glibc-functions/dup3.texi: Mention the new module.
38941
38942 2009-08-23  Bruno Haible  <bruno@clisp.org>
38943
38944         Tweak the dup2 test.
38945         * tests/test-dup2.c (main): Create the test file empty. Verify that an
38946         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
38947         the test file is still empty. Fix argument order of lseek.
38948
38949 2009-08-23  Bruno Haible  <bruno@clisp.org>
38950
38951         Avoid test link errors when the modules getopt-gnu, gettext are used.
38952         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
38953         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38954
38955 2009-08-23  Bruno Haible  <bruno@clisp.org>
38956
38957         Fix getdtablesize() on mingw.
38958         * lib/getdtablesize.c (getdtablesize): Implement differently.
38959         * lib/unistd.in.h (getdtablesize): Improve comment.
38960
38961 2009-08-23  Bruno Haible  <bruno@clisp.org>
38962
38963         New module 'mkostemp'.
38964         Based on Ulrich Drepper's 2007-08-10 change in glibc.
38965         * lib/stdlib.in.h (mksotemp): New declaration.
38966         * lib/mkostemp.c: New file, from glibc with modifications.
38967         * lib/tempname.h (GT_FILE): Remove outdated comment.
38968         (gen_tempname): Add flags argument.
38969         * lib/tempname.c (__GT_BIGFILE): Remove macro.
38970         (__GT_FILE): Map to 1.
38971         (small_open, large_open): Remove macros.
38972         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
38973         * lib/mkstemp.c (mkstemp): Update.
38974         * lib/mkdtemp.c (mkdtemp): Likewise.
38975         * m4/mkostemp.m4: New file.
38976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
38977         HAVE_MKOSTEMP.
38978         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
38979         HAVE_MKOSTEMP.
38980         * modules/mkostemp: New file, based on modules/mkstemp.
38981         * doc/glibc-functions/mkostemp.texi: Mention the new module.
38982         * NEWS: Mention the change.
38983
38984 2009-08-23  Bruno Haible  <bruno@clisp.org>
38985
38986         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
38987         Reported by Eric Blake.
38988
38989 2009-08-23  Bruno Haible  <bruno@clisp.org>
38990
38991         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
38992         Reported by Eric Blake.
38993
38994 2009-08-23  Bruno Haible  <bruno@clisp.org>
38995
38996         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
38997         * modules/pipe2 (Depends-on): Likewise.
38998
38999 2009-08-23  Eric Blake  <ebb9@byu.net>
39000
39001         fcntl-h: add O_TTY_INIT support
39002         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
39003         * tests/test-fcntl-h.c (o): Test it.
39004         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39005
39006         fcntl-h: rename from fcntl, in preparation for fcntl(2)
39007         * modules/fcntl: Move <fcntl.h> header replacement...
39008         * modules/fcntl-h: ...to new name, so as not to collide with
39009         like-named function.
39010         * tests/test-fcntl.c: Rename...
39011         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
39012         * modules/fcntl-tests: Rename...
39013         * modules/fcntl-h-tests: ...to this.  Update test file name.
39014         * modules/chdir-long (Depends-on): Update clients.
39015         * modules/chdir-safer (Depends-on): Likewise.
39016         * modules/fcntl-safer (Depends-on): Likewise.
39017         * modules/fts (Depends-on): Likewise.
39018         * modules/mkancesdirs (Depends-on): Likewise.
39019         * modules/mkdir-p (Depends-on): Likewise.
39020         * modules/open (Depends-on): Likewise.
39021         * modules/savewd (Depends-on): Likewise.
39022         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
39023         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39024
39025 2009-08-22  Bruno Haible  <bruno@clisp.org>
39026
39027         * modules/binary-io (License): Relicense under LGPL.
39028         * modules/pipe2 (License): Likewise.
39029
39030 2009-08-22  Bruno Haible  <bruno@clisp.org>
39031
39032         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
39033         return value.
39034         * lib/pipe-filter-gi.c (filter_init): Likewise.
39035         Reported by Eric Blake.
39036
39037 2009-08-22  Bruno Haible  <bruno@clisp.org>
39038
39039         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
39040         * modules/pipe (Depends-on): Add pipe2.
39041
39042 2009-08-22  Bruno Haible  <bruno@clisp.org>
39043
39044         Tests for module 'pipe2'.
39045         * modules/pipe2-tests: New file.
39046         * tests/test-pipe2.c: New file.
39047
39048         New module 'pipe2'.
39049         * lib/unistd.in.h (pipe2): New declaration.
39050         * lib/pipe2.c: New file.
39051         * m4/pipe2.m4: New file.
39052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
39053         HAVE_PIPE2.
39054         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
39055         * modules/pipe2: New file.
39056         * doc/glibc-functions/pipe2.texi: Mention the new module.
39057
39058 2009-08-22  Bruno Haible  <bruno@clisp.org>
39059
39060         Reference some new glibc functions.
39061         * doc/glibc-functions/accept4.texi: New file.
39062         * doc/glibc-functions/dup3.texi: New file.
39063         * doc/glibc-functions/mkostemp.texi: New file.
39064         * doc/glibc-functions/pipe2.texi: New file.
39065         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
39066         (Glibc sys/socket.h): Refer to accept4.
39067         (Glibc unistd.h): Refer to dup3, pipe2.
39068         Reported by Eric Blake.
39069
39070 2009-08-22  Jim Meyering  <meyering@redhat.com>
39071             Bruno Haible  <bruno@clisp.org>
39072
39073         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
39074         This makes it so packages using automake-1.11's silent-rules option
39075         can print e.g., a single "GEN    configmake.h" line, rather than
39076         the 30+ statements that perform the job.  If you want to see the
39077         actual commands, you can still run "make V=1".
39078         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
39079         so that make output is abbreviated when those variables are defined
39080         appropriately.
39081         * modules/argz: Likewise.
39082         * modules/arpa_inet: Likewise.
39083         * modules/byteswap: Likewise.
39084         * modules/configmake: Likewise.
39085         * modules/dirent: Likewise.
39086         * modules/errno: Likewise.
39087         * modules/fcntl: Likewise.
39088         * modules/float: Likewise.
39089         * modules/fnmatch: Likewise.
39090         * modules/getopt-posix: Likewise.
39091         * modules/glob: Likewise.
39092         * modules/iconv_open: Likewise.
39093         * modules/inttypes: Likewise.
39094         * modules/localcharset: Likewise.
39095         * modules/locale: Likewise.
39096         * modules/math: Likewise.
39097         * modules/netdb: Likewise.
39098         * modules/netinet_in: Likewise.
39099         * modules/poll: Likewise.
39100         * modules/posix_spawnp-tests: Likewise.
39101         * modules/sched: Likewise.
39102         * modules/search: Likewise.
39103         * modules/selinux-h: Likewise.
39104         * modules/signal: Likewise.
39105         * modules/spawn: Likewise.
39106         * modules/stdarg: Likewise.
39107         * modules/stdbool: Likewise.
39108         * modules/stddef: Likewise.
39109         * modules/stdint: Likewise.
39110         * modules/stdio: Likewise.
39111         * modules/stdlib: Likewise.
39112         * modules/string: Likewise.
39113         * modules/strings: Likewise.
39114         * modules/sys_file: Likewise.
39115         * modules/sys_ioctl: Likewise.
39116         * modules/sys_select: Likewise.
39117         * modules/sys_socket: Likewise.
39118         * modules/sys_stat: Likewise.
39119         * modules/sys_time: Likewise.
39120         * modules/sys_times: Likewise.
39121         * modules/sys_utsname: Likewise.
39122         * modules/sys_wait: Likewise.
39123         * modules/sysexits: Likewise.
39124         * modules/time: Likewise.
39125         * modules/unistd: Likewise.
39126         * modules/wchar: Likewise.
39127         * modules/wctype: Likewise.
39128
39129 2009-08-22  Jim Meyering  <meyering@redhat.com>
39130
39131         announce-gen: detect write failure
39132         * build-aux/announce-gen: Add Coda at end.
39133         Remove equivalent-but-more-verbose block at top.
39134
39135 2009-08-19  Akim Demaille  <demaille@gostai.com>
39136
39137         bootstrap: --help to stdout.
39138         * bootstrap (usage): Don't send --help to stderr.
39139         Use a here doc instead of a long string.
39140
39141 2009-08-21  Eric Blake  <ebb9@byu.net>
39142
39143         test-popen-safer: split from test-popen
39144         * tests/test-popen.c (main): Move...
39145         * tests/test-popen.h: ...into new file.
39146         * tests/test-popen-safer2.c: New file.
39147         * modules/popen-tests (Files): Add test-popen.h.
39148         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
39149         Suggested by Bruno Haible.
39150
39151         test-fcntl-safer: split from test-open
39152         * tests/test-open.c (main): Move...
39153         * tests/test-open.h: ...into new file.
39154         * tests/test-fcntl-safer.c: New file.
39155         * modules/open-tests (Files): Add test-open.h.
39156         * modules/fcntl-safer-tests: New file.
39157         Suggested by Bruno Haible.
39158
39159         test-fopen-safer: split from test-fopen
39160         * tests/test-fopen.c (main): Move...
39161         * tests/test-fopen.h: ...into new file.
39162         * tests/test-fopen-safer.c: New file.
39163         * modules/fopen-tests (Files): Add test-fopen.h.
39164         * modules/fopen-safer-tests: New file.
39165         Suggested by Bruno Haible.
39166
39167 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39168
39169         popen-safer: test O_CLOEXEC at run-time.
39170         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
39171
39172 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39173
39174         fcntl: move more flags to the header
39175         * lib/cloexec.c: Do not define FD_CLOEXEC here.
39176         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
39177         * lib/fcntl.in.h: Do both things here.
39178
39179 2009-08-21  Jim Meyering  <meyering@redhat.com>
39180
39181         consistently remove $@-t before redirecting to it
39182         * modules/argz: Remove $@-t and $@ before redirecting to the former.
39183         * modules/alloca-opt: Likewise.
39184         * modules/byteswap: Likewise.
39185         * modules/fnmatch: Likewise.
39186         * modules/getopt-posix: Likewise.
39187         * modules/glob: Likewise.
39188         * modules/poll: Likewise.
39189         * modules/posix_spawnp-tests: Likewise.
39190         * modules/sys_socket: Likewise.
39191         * modules/sysexits: Likewise.
39192
39193 2009-08-21  Eric Blake  <ebb9@byu.net>
39194
39195         popen: simplify access to original popen
39196         * lib/popen.c (rpl_popen): No need to worry about popen being a
39197         macro.
39198         Reported by Bruno Haible.
39199
39200 2009-08-20  Eric Blake  <ebb9@byu.net>
39201
39202         build: avoid some compiler warnings
39203         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
39204         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
39205         type.
39206         (new_exclude_segment, excluded_file_pattern_p)
39207         (excluded_file_name_p): Reduce scope.
39208         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
39209         old-style declaration.
39210
39211 2009-08-20  Simon Josefsson  <simon@josefsson.org>
39212
39213         * tests/test-exclude1.sh: Handle Windows EOL.
39214         * tests/test-exclude2.sh: Likewise.
39215         * tests/test-exclude3.sh: Likewise.
39216         * tests/test-exclude4.sh: Likewise.
39217         * tests/test-exclude5.sh: Likewise.
39218         * tests/test-exclude6.sh: Likewise.
39219         * tests/test-exclude7.sh: Likewise.
39220
39221 2009-08-19  Akim Demaille  <demaille@gostai.com>
39222
39223         bootstrap: find sha1sum when named gsha1sum.
39224         * bootstrap (find_tool): New.
39225         ($SHA1SUM): New.
39226         Use it.
39227
39228 2009-08-20  Jim Meyering  <meyering@redhat.com>
39229
39230         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
39231         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
39232         expression that converts "." in a file name to "\." in the resulting
39233         regexp.  Start with a dummy statement, so that prior shell variable
39234         definitions are expanded portably.  Reported by Simon Josefsson.
39235
39236 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
39237
39238         Fix polling for writeability of a screen buffer.
39239         * lib/poll.c: Distinguish input and screen buffers for the
39240         Win32 implementation.
39241         * lib/select.c: Likewise.
39242
39243 2009-08-19  Eric Blake  <ebb9@byu.net>
39244
39245         popen-safer: prevent popen from clobbering std descriptors
39246         * modules/popen-safer: New file.
39247         * lib/popen-safer.c: Likewise.
39248         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
39249         * lib/stdio--.h (popen): Provide override.
39250         * lib/stdio-safer.h (popen_safer): Provide declaration.
39251         * tests/test-popen.c (includes): Partially test this.
39252         * modules/popen-safer-tests: New file, for more tests.
39253         * tests/test-popen-safer.c: Likewise.
39254         * MODULES.html.sh (file stream based Input/Output): Mention it.
39255
39256         tests: test some of the *-safer modules
39257         * modules/fopen-safer (Depends-on): Add fopen.
39258         * modules/fcntl-safer (Depends-on): Add fcntl.
39259         * modules/stdlib-safer (Depends-on): Add stdlib.
39260         (configure.ac): Set indicator.
39261         * modules/unistd-safer (configure.ac): Likewise.
39262         * modules/tmpfile-safer (configure.ac): Likewise.
39263         (Depends-on): Add tmpfile.
39264         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
39265         active.
39266         * tests/test-fopen.c (includes): Test safer versions when they are
39267         in use.
39268         * tests/test-open.c (includes): Likewise.
39269
39270         popen: fix cygwin 1.5 bug when stdin closed
39271         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
39272         * modules/popen: New file.
39273         * modules/popen-tests: Likewise.
39274         * tests/test-popen.c: Likewise.
39275         * m4/popen.m4: Likewise.
39276         * lib/popen.c: Likewise.
39277         * lib/stdio.in.h (popen): New declaration.
39278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
39279         * modules/stdio (Makefile.am): Likewise.
39280         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
39281
39282 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
39283
39284         maint.mk: give full control over update-copyright exclusions
39285         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
39286         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
39287         (update-copyright): Don't force inclusion of top-level
39288         ChangeLog.  Don't force exclusion of all COPYING files, but make
39289         them the default exclusion instead.
39290
39291 2009-08-16  Bruno Haible  <bruno@clisp.org>
39292
39293         Fix test failures on Solaris 10.
39294         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
39295         tests when Solaris iconv() is used.
39296         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39297         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39298         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39299         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39300         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39301
39302 2009-08-16  Bruno Haible  <bruno@clisp.org>
39303
39304         Fix test failures on Solaris 10.
39305         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
39306         'tr' program and pass it as first argument.
39307         * tests/test-pipe-filter-gi1.sh: Likewise.
39308         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
39309         program as first argument.
39310         * tests/test-pipe-filter-gi1.c (main): Likewise.
39311
39312 2009-08-16  Eric Blake  <ebb9@byu.net>
39313
39314         fpurge: fix previous commits
39315         * modules/fpurge (Makefile.am): Make replacement conditional,
39316         partially reverting 2007-04-29 change; missed in previous
39317         attempt.
39318         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
39319         is missing.
39320
39321 2009-08-16  Bruno Haible  <bruno@clisp.org>
39322
39323         Clarify fpurge's effect on the file position.
39324         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
39325         * tests/test-fpurge.c (main): Make a second pass for checking the file
39326         position.
39327
39328 2009-08-16  Bruno Haible  <bruno@clisp.org>
39329
39330         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
39331         declaration of fpurge is missing.
39332         * tests/test-fpurge.c (main): Check that the file has not more contents
39333         than expected. Close the file before removing it.
39334
39335 2009-08-15  Eric Blake  <ebb9@byu.net>
39336
39337         fpurge: don't wrap working cygwin implementation
39338         * lib/fpurge.c (fpurge): Fix comment typo.
39339         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
39340         1.7 to avoid replacement.
39341         * tests/test-fpurge.c (main): Enhance test.
39342
39343 2009-08-15  Eric Blake  <ebb9@byu.net>
39344         and Jim Meyering  <meyering@redhat.com>
39345
39346         test-update-copyright: skip if perl is insufficient
39347         * tests/test-update-copyright.sh: Failure to run maintainer tool
39348         should not cause testsuite failure on cygwin 1.5.
39349
39350 2009-08-14  Eric Blake  <ebb9@byu.net>
39351
39352         doc: mention more functions added in cygwin 1.7.0
39353         * doc/posix-headers/limits.texi (limits.h): Update for recent
39354         cygwin additions.
39355         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
39356         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
39357         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
39358         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
39359         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
39360
39361 2009-08-14  Eric Blake  <ebb9@byu.net>
39362
39363         maint.mk: simplify update-copyright rule
39364         * top/maint.mk (update-copyright-local): Delete, and document how
39365         to do it in cfg.mk instead.
39366         (update-copyright-exclude-regexp): Delete, and document how to do
39367         it in .x-update-copyright instead.
39368         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
39369         exclude ChangeLog.
39370
39371 2009-08-14  Bruno Haible  <bruno@clisp.org>
39372
39373         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
39374
39375 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39376
39377         maint.mk: support update-copyright-env
39378         * top/maint.mk (update-copyright-env): Define place-holder.
39379         (update-copyright): Expand $(update-copyright-env) before
39380         invoking update-copyright.
39381
39382 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39383
39384         update-copyright: implement forced reformatting
39385         * build-aux/update-copyright: Implement and document
39386         UPDATE_COPYRIGHT_FORCE.
39387         * tests/test-update-copyright.sh: Test it.
39388
39389 2009-08-14  Eric Blake  <ebb9@byu.net>
39390         and Bruno Haible  <bruno@clisp.org>
39391
39392         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
39393         * tests/test-locale.c: Revert previous patch related to NULL.
39394         * tests/test-stdio.c: Likewise.
39395         * tests/test-stdlib.c: Likewise.
39396         * tests/test-string.c: Likewise.
39397         * tests/test-unistd.c: Likewise.
39398         * modules/time-tests (Depends-on): Add verify.
39399         * modules/wchar-tests (Depends-on): Likewise.
39400         * tests/test-time.c: Test for NULL compliance.
39401         * tests/test-wchar.c: Likewise.
39402         * modules/locale (Depends-on): Add stddef.
39403         * modules/stdio (Depends-on): Likewise.
39404         * modules/stdlib (Depends-on): Likewise.
39405         * modules/string (Depends-on): Likewise.
39406         * modules/time (Depends-on): Likewise.
39407         * modules/unistd (Depends-on): Likewise.
39408         * modules/wchar (Depends-on): Likewise.
39409         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
39410         * lib/stdlib.in.h (includes): Likewise.
39411         * lib/string.in.h (includes): Likewise.
39412         * lib/time.in.h (includes): Likewise.
39413         * lib/unistd.in.h (includes): Likewise.
39414         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
39415         replaced.
39416         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39417         * m4/stddef_h.m4: New file.
39418         * modules/stddef: Likewise.
39419         * lib/stddef.in.h: Likewise.
39420         * modules/stddef-tests: Likewise.
39421         * tests/test-stddef.c: Likewise.
39422         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
39423         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
39424         * doc/posix-headers/locale.texi (locale.h): Likewise.
39425         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
39426         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39427         * doc/posix-headers/string.texi (string.h): Likewise.
39428         * doc/posix-headers/time.texi (time.h): Likewise.
39429         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
39430         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
39431
39432 2009-08-14  Eric Blake  <ebb9@byu.net>
39433
39434         doc: improve git diff of texinfo files
39435         * .gitattributes: Add rule for *.texi files, with hint on how to
39436         use it.
39437         Copied from m4, and based on a report by Bruno Haible.
39438
39439 2009-08-14  Bruno Haible  <bruno@clisp.org>
39440
39441         Disable multithread support by default on Cygwin 1.5.x for real.
39442         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
39443
39444 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39445
39446         update-copyright: much ado about intervals
39447         * build-aux/update-copyright: Implement and document
39448         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
39449         of copyright year intervals.
39450         Also, document UPDATE_COPYRIGHT_YEAR.
39451         * tests/test-update-copyright.sh: Test it.
39452
39453         update-copyright: convert 2-digit to 4-digit years
39454         * build-aux/update-copyright: Implement and document.
39455         * tests/test-update-copyright.sh: Update.
39456
39457 2009-08-14  Jim Meyering  <meyering@redhat.com>
39458
39459         test-exclude: avoid coreutils "make check" failure
39460         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
39461         just as in test-argmatch.c.
39462
39463 2009-08-13  Eric Blake  <ebb9@byu.net>
39464
39465         test-dup2: fix bad assumption
39466         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
39467         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
39468
39469         test-version-etc: fix CRLF portability issue
39470         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
39471         recognize \r.
39472         * tests/test-argp-version-etc-1.sh: Likewise.
39473
39474         getopt: update client modules
39475         * modules/argp (Depends-on): Use getopt-gnu.
39476         * modules/git-merge-changelog (Depends-on): Likewise.
39477         * modules/long-options (Depends-on): Likewise.
39478         * modules/xstrtol (Depends-on): Likewise.
39479
39480 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39481
39482         * tests/test-version-etc.sh: Don't fail on different
39483         project/version.  Don't fail on CRLF differences.  Rewrite to use
39484         multiple -e instead of multiple sed forks, suggested by Eric Blake
39485         <ebb9@byu.net>.
39486         * tests/test-argp-version-etc-1.sh: Likewise.
39487
39488 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39489
39490         * tests/test-version-etc.sh: Don't fail on different
39491         project/version.
39492
39493 2009-08-12  Bruno Haible  <bruno@clisp.org>
39494
39495         Tests for modules 'getopt-posix', 'getopt-gnu'.
39496         * modules/getopt-posix-tests: New file.
39497         * tests/test-getopt.c: New file.
39498         * tests/test-getopt.h: New file.
39499         * tests/test-getopt_long.h: New file.
39500
39501         New modules 'getopt-posix', 'getopt-gnu'.
39502         * modules/getopt-gnu: New file, renamed from modules/getopt.
39503         * modules/getopt-posix: New file.
39504         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
39505         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
39506         (gl_GETOPT): Remove macro.
39507         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
39508         Disable the test against BSD systems that declare optreset. Test
39509         against mingw bug. Test against lack of support of optional arguments
39510         on many platforms.
39511         * doc/glibc-headers/getopt.texi: Update module name and list of
39512         relevant platforms.
39513         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
39514         'getopt-gnu' and more portability problems.
39515         * NEWS: Mention the changes.
39516
39517 2009-08-12  Bruno Haible  <bruno@clisp.org>
39518
39519         Ensure that optarg etc. get declared by <unistd.h>.
39520         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
39521         AC_USE_SYSTEM_EXTENSIONS.
39522         * modules/getopt (Depends-on): Add 'extensions'.
39523
39524 2009-08-12  Bruno Haible  <bruno@clisp.org>
39525
39526         Avoid test link errors.
39527         * modules/pipe-filter-ii-tests (Makefile.am): Define
39528         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
39529         * modules/pipe-filter-gi-tests (Makefile.am): Define
39530         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
39531         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39532
39533 2009-08-12  Bruno Haible  <bruno@clisp.org>
39534
39535         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
39536         gl_GETOPT_SUBSTITUTE before.
39537         (gl_GETOPT): Use it.
39538         * m4/argp.m4 (gl_ARGP): Update.
39539         Reported by Sergey Poznyakoff.
39540
39541         * m4/getopt.m4: Reorder macros.
39542         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
39543         (gl_GETOPT_SUBSTITUTE): Remove macro.
39544
39545 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39546
39547         Minor improvement in gitlog-to-changelog
39548
39549         * build-aux/gitlog-to-changelog: New option `--format' makes
39550         output format string configurable.
39551
39552 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39553
39554         Optimize exclude: use hash tables for non-wildcard patterns.
39555
39556         * lib/exclude.c: Include hash.h and mbuiter.h
39557         (struct exclude_pattern, exclude_segment): New data types.
39558         (struct exclude): Rewrite.
39559         (fnmatch_pattern_has_wildcards): New function.
39560         (new_exclude_segment, free_exclude_segment): New functions.
39561         (excluded_file_pattern_p, excluded_file_name_p): New functions.
39562         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
39563         * lib/exclude.h (is_fnmatch_pattern): New prototype.
39564         * modules/exclude: Depend on hash and mbuiter.
39565
39566         * modules/exclude-tests: New file.
39567         * tests/test-exclude.c: New file.
39568         * tests/test-exclude1.sh: New file.
39569         * tests/test-exclude2.sh: New file.
39570         * tests/test-exclude3.sh: New file.
39571         * tests/test-exclude4.sh: New file.
39572         * tests/test-exclude5.sh: New file.
39573         * tests/test-exclude6.sh: New file.
39574         * tests/test-exclude7.sh: New file.
39575
39576 2009-08-12  Bruno Haible  <bruno@clisp.org>
39577
39578         Ensure that getopt() gets declared by <unistd.h>.
39579         * lib/unistd.in.h: Conditionally include getopt.h.
39580         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
39581         Set GNULIB_UNISTD_H_GETOPT.
39582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39583         GNULIB_UNISTD_H_GETOPT.
39584         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
39585
39586 2009-08-12  Bruno Haible  <bruno@clisp.org>
39587
39588         Clarify logic.
39589         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
39590         gl_replace_getopt instead of GETOPT_H.
39591
39592 2009-08-12  Bruno Haible  <bruno@clisp.org>
39593
39594         * m4/getopt.m4: Add comments.
39595
39596 2009-08-12  Bruno Haible  <bruno@clisp.org>
39597
39598         Disable multithread support by default on Cygwin 1.5.x.
39599         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
39600         set gl_use_threads=no if not specified otherwise.
39601
39602 2009-08-11  Bruno Haible  <bruno@clisp.org>
39603
39604         Avoid compilation error on NetBSD 5.0.
39605         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
39606         * tests/test-stdio.c: Likewise.
39607         * tests/test-stdlib.c: Likewise.
39608         * tests/test-string.c: Likewise.
39609         * tests/test-unistd.c: Likewise.
39610         Reported by Greg Troxel <gdt@ir.bbn.com>
39611         at <https://savannah.gnu.org/support/?106973>.
39612
39613 2009-08-11  Bruno Haible  <bruno@clisp.org>
39614
39615         * modules/dup2-tests (Depends-on): Remove close.
39616
39617         Undo 2009-07-19 commit.
39618         * modules/acl-tests (Depends-on): Remove close.
39619         * modules/binary-io-tests (Depends-on): Likewise.
39620         * modules/closein-tests (Depends-on): Likewise.
39621         * modules/flock-tests (Depends-on): Likewise.
39622         * modules/fsync-tests (Depends-on): Likewise.
39623         * modules/lseek-tests (Depends-on): Likewise.
39624         * modules/pipe-tests (Depends-on): Likewise.
39625         * modules/posix_spawn-tests (Depends-on): Likewise.
39626         * modules/posix_spawnp-tests (Depends-on): Likewise.
39627         * modules/stat-time-tests (Depends-on): Likewise.
39628         * modules/yesno-tests (Depends-on): Likewise.
39629
39630 2009-08-10  Bruno Haible  <bruno@clisp.org>
39631
39632         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
39633
39634 2009-08-10  Bruno Haible  <bruno@clisp.org>
39635
39636         Fix a gcc warning.
39637         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
39638
39639 2009-08-10  Bruno Haible  <bruno@clisp.org>
39640
39641         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
39642         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
39643         not only the first time.
39644         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
39645         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
39646         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
39647         is 1, not only the the first time.
39648
39649 2009-08-10  Bruno Haible  <bruno@clisp.org>
39650
39651         Make it possible to use module 'gethostname' without module 'close'.
39652         * lib/unistd.in.h (close): Evoke a link error only if
39653         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39655         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39656         * modules/unistd (Makefile.am): Substitute
39657         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39658         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
39659         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39660         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
39661         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39662         * modules/sys_ioctl (Makefile.am): Substitute
39663         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39664         * modules/socket (configure.ac): On native Windows, set
39665         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
39666         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39667         Reported by Sam Steingold <sds@gnu.org>.
39668
39669 2009-08-10  Bruno Haible  <bruno@clisp.org>
39670
39671         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
39672         * modules/ioctl (configure.ac): Likewise.
39673
39674 2009-08-10  Bruno Haible  <bruno@clisp.org>
39675
39676         Avoid collision between gnulib wrapper and libintl wrapper.
39677         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
39678         already defined in intl/printf.c.
39679         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
39680         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
39681
39682 2009-08-09  Bruno Haible  <bruno@clisp.org>
39683
39684         Make <sys/select.h> really self-contained, also on Solaris 10.
39685         * lib/sys_select.in.h: Include <string.h>.
39686         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
39687         Solaris 10 problem.
39688         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
39689         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
39690         Reported by Jim Meyering.
39691
39692 2009-08-09  Bruno Haible  <bruno@clisp.org>
39693
39694         Avoid warnings from 'aclocal' that are due to a use of macro name
39695         AM_XGETTEXT_OPTION that is not defined in automake.
39696         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
39697         automake.
39698         * modules/error (configure.ac): Likewise.
39699         * modules/propername (configure.ac): Likewise.
39700         * modules/vasprintf (configure.ac): Likewise.
39701         * modules/verror (configure.ac): Likewise.
39702         * modules/xprintf (configure.ac): Likewise.
39703         * modules/xvasprintf (configure.ac): Likewise.
39704
39705 2009-08-08  Bruno Haible  <bruno@clisp.org>
39706
39707         Avoid compilation error in C++ mode.
39708         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
39709         Reported by Sam Steingold <sds@gnu.org>.
39710
39711 2009-08-08  Bruno Haible  <bruno@clisp.org>
39712
39713         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
39714         for the various Unix platforms.
39715         * doc/posix-headers/limits.texi: Update platforms list regarding
39716         HOST_NAME_MAX.
39717         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39718
39719 2009-08-07  Jim Meyering  <meyering@redhat.com>
39720
39721         selinux-at: fix typo in a comment
39722         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
39723         Spotted by Paolo Bonzini.
39724
39725         selinux-at: remove redundant m4 code, add documentation
39726         * modules/selinux-at (configure.ac): Remove redundant code.
39727         LIB_SELINUX is already set via the dependent module, selinux-h.
39728         (Include): Add quotes around selinux-at.h.
39729         * lib/selinux-at.h: Add documentation.
39730         Reported by Bruno Haible in
39731         http://marc.info/?l=gnulib-bug&m=124958988300749
39732
39733 2009-08-07  Bruno Haible  <bruno@clisp.org>
39734
39735         Avoid link error on MacOS X 10.3 and 10.4.
39736         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
39737         on non-ELF systems.
39738         * lib/argp-pv.c (argp_program_version): Likewise.
39739         Reported by Simon Josefsson.
39740
39741 2009-08-07  Simon Josefsson  <simon@josefsson.org>
39742
39743         * tests/test-version-etc.sh: Use $EXEEXT.
39744
39745 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
39746
39747         update-copyright: update documentation to point to maint.mk
39748         * build-aux/update-copyright: Here.
39749
39750 2009-08-06  Jim Meyering  <meyering@redhat.com>
39751
39752         maint.mk: support update-copyright-local
39753         * top/maint.mk (update-copyright-local): Define place-holder.
39754         (update-copyright): Depend on $(update-copyright-local).
39755
39756 2009-08-06  Jim Meyering  <meyering@redhat.com>
39757
39758         selinux-at: new module
39759         Initially written for coreutils, this module will soon be
39760         used by findutils, too.
39761         * MODULES.html.sh [Misc]: Add selinux-at.
39762         * lib/selinux-at.h: New file, from coreutils.
39763         * lib/selinux-at.c: Likewise.
39764         * modules/selinux-at: Likewise.
39765         (License): Change from LGPL to GPL, since it depends
39766         on the GPL'd openat module.
39767
39768         doc: update README
39769         * README: Remove references to cogito.
39770         Remove cvs-repo-updating instructions from 2007.
39771         Don't imply that CVS is better if you have limited disk space.
39772
39773 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39774
39775         update-copyright: support C-style comments
39776         * build-aux/update-copyright: Implement and document.
39777         * tests/test-update-copyright.sh: Test.
39778
39779 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39780
39781         update-copyright: support omitted "(C)"
39782         * build-aux/update-copyright: Implement and document.  Also,
39783         allow variable whitespace before "(C)".
39784         * tests/test-update-copyright.sh: Test.
39785
39786 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39787
39788         update-copyright: don't trip on non-FSF copyright statements
39789         * build-aux/update-copyright: Fix so that the first correctly
39790         formatted FSF copyright statement is recognized no matter what
39791         appears before it.  Update documentation.
39792         * tests/test-update-copyright.sh: Test that.
39793
39794 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39795
39796         update-copyright: clean up code a little
39797         * build-aux/update-copyright: Append "_re" to the name of any
39798         variable holding a regular expression.
39799         Replace "old" and "new" with "stmt" in variable names.
39800         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
39801         handled correctly.
39802         Format code more consistently.
39803
39804 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39805
39806         update-copyright-tests: improve portability
39807         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
39808         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
39809
39810 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39811
39812         update-copyright: support @copyright{} and &copy;
39813         * build-aux/update-copyright: Implement and document.
39814         * tests/test-update-copyright.sh: Test.
39815
39816 2009-08-04  Jim Meyering  <meyering@redhat.com>
39817
39818         update-copyright-tests: correctly test EOL=\r\n handling
39819         * tests/test-update-copyright.sh: Put \r at the end of some lines
39820         for the dos-eol tests.  Based on a patch by Joel E. Denny.
39821
39822         maint.mk: make update-copyright exclusion list more configurable
39823         * top/maint.mk (update-copyright): Default to excluding COPYING,
39824         but allow an override, in case someone does want to update that file.
39825
39826         maint.mk: don't update copyright date in COPYING
39827         * top/maint.mk (update-copyright): Exclude COPYING.
39828
39829         maint.mk: add a copyright-updating rule
39830         * top/maint.mk (update-copyright): New rule.
39831         Derived from coreutils/Makefile.am.
39832
39833         update-copyright: rename some variables
39834         * build-aux/update-copyright: Rename a few variables for clarity.
39835         Tweak syntax.  List Joel E. Denny as coauthor.
39836
39837 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39838
39839         update-copyright: fix bug for 2-digit last year and add tests
39840         * build-aux/update-copyright: Fix bug.
39841         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
39842         specified.
39843         * modules/update-copyright-tests: New
39844         * tests/test-update-copyright.sh: New.
39845
39846 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39847
39848         update-copyright: handle leading tabs in line prefix
39849         * build-aux/update-copyright: Count leading tabs as 8 spaces
39850         when computing margin.  This helps with the formatting of
39851         ChangeLogs, for example.
39852         Fix documentation a little.
39853
39854 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39855
39856         update-copyright: support EOL=\r\n
39857         * build-aux/update-copyright: Implement that.
39858
39859 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39860
39861         update-copyright: automatically format copyright statements
39862         * build-aux/update-copyright: Implement that.
39863         Also, be a little more predictable and safer by always failing
39864         when the full copyright format is not perfectly recognized as an
39865         unbroken whole.  Discussed at
39866         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
39867         Rewrite documentation.
39868
39869 2009-08-03  Bruno Haible  <bruno@clisp.org>
39870
39871         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
39872
39873 2009-08-02  Bruno Haible  <bruno@clisp.org>
39874
39875         Tests for module 'uname'.
39876         * modules/uname-tests: New file.
39877         * tests/test-uname.c: New file.
39878
39879         New module 'uname'.
39880         * lib/uname.c: New file.
39881         * m4/uname.m4: New file.
39882         * modules/uname: New file.
39883         * doc/posix-functions/uname.texi: Mention the new module.
39884
39885 2009-08-02  Bruno Haible  <bruno@clisp.org>
39886
39887         Tests for module 'sys_utsname'.
39888         * modules/sys_utsname-tests: New file.
39889         * tests/test-sys_utsname.c: New file.
39890
39891         New module 'sys_utsname'.
39892         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
39893         * m4/sys_utsname_h.m4: New file.
39894         * modules/sys_utsname: New file.
39895         * doc/posix-headers/sys_utsname.texi: Mention the new module.
39896
39897 2009-08-02  Bruno Haible  <bruno@clisp.org>
39898
39899         Implicitly initialize the sockets library.
39900         * lib/gethostname.c: Include sockets.h.
39901         (rpl_gethostname): Invoke gl_sockets_startup.
39902         * lib/socket.c: Include sockets.h.
39903         (rpl_socket): Invoke gl_sockets_startup.
39904         * modules/gethostname (Depends-on): Add sockets.
39905         * modules/socket (Depends-on): Likewise.
39906         * tests/test-poll.c: Don't include sockets.h.
39907         (main): Don't invoke gl_sockets_startup.
39908         * tests/test-select.c: Don't include sockets.h.
39909         (main): Don't invoke gl_sockets_startup.
39910
39911 2009-08-02  Bruno Haible  <bruno@clisp.org>
39912
39913         Allow multiple calls to gl_sockets_startup.
39914         * lib/sockets.c (initialized_sockets_version): New variable.
39915         (gl_sockets_startup): Do nothing if already called for this or a higher
39916         version.
39917         (gl_sockets_cleanup): Reset initialized_sockets_version.
39918
39919 2009-08-03  Simon Josefsson  <simon@josefsson.org>
39920
39921         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
39922         different project/version.
39923
39924 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
39925             Bruno Haible  <bruno@clisp.org>
39926
39927         Tests for module 'pipe-filter-gi'.
39928         * modules/pipe-filter-gi-tests: New file.
39929         * tests/test-pipe-filter-gi1.sh: New file.
39930         * tests/test-pipe-filter-gi1.c: New file.
39931         * tests/test-pipe-filter-gi2.sh: New file.
39932         * tests/test-pipe-filter-gi2-main.c: New file.
39933         * tests/test-pipe-filter-gi2-child.c: New file.
39934
39935         New module 'pipe-filter-gi'.
39936         * lib/pipe-filter-gi.c: New file.
39937         * modules/pipe-filter-gi: New file.
39938
39939 2009-08-02  Bruno Haible  <bruno@clisp.org>
39940             Paolo Bonzini  <bonzini@gnu.org>
39941
39942         Tests for module 'pipe-filter-ii'.
39943         * modules/pipe-filter-ii-tests: New file.
39944         * tests/test-pipe-filter-ii1.sh: New file.
39945         * tests/test-pipe-filter-ii1.c: New file.
39946         * tests/test-pipe-filter-ii2.sh: New file.
39947         * tests/test-pipe-filter-ii2-main.c: New file.
39948         * tests/test-pipe-filter-ii2-child.c: New file.
39949
39950         New module 'pipe-filter-ii'.
39951         * lib/pipe-filter.h: New file.
39952         * lib/pipe-filter-ii.c: New file.
39953         * lib/pipe-filter-aux.h: New file.
39954         * modules/pipe-filter-ii: New file.
39955
39956 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39957
39958         * lib/gc-libgcrypt.c: Change copyright to FSF.
39959         * lib/gc-gnulib.c: Likewise.
39960
39961 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
39962
39963         * lib/gethostname.c: Include limits.h.
39964
39965 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39966             Bruno Haible  <bruno@clisp.org>
39967
39968         Ensure HOST_NAME_MAX as part of the gethostname module.
39969         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
39970         define also HOST_NAME_MAX.
39971         * tests/test-gethostname.c: Include <limits.h>.
39972         (main): Check also HOST_NAME_MAX.
39973         * doc/posix-headers/limits.texi: Document the mingw problem.
39974
39975 2009-08-02  Bruno Haible  <bruno@clisp.org>
39976
39977         * lib/gethostname.c (gethostname): Fix handling of large len argument.
39978         Add comments.
39979
39980 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39981
39982         * lib/gethostname.c: Add Windows wrapper.
39983         * m4/gethostname.m4: Look for gethostname in -lws2_32.
39984         * modules/gethostname: Depend on sys_socket & errno, for also
39985         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
39986         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
39987
39988 2009-07-31  Jim Meyering  <meyering@redhat.com>
39989
39990         getloadavg: fix symbol name in comment
39991         * lib/getloadavg.c: Correct a typo I introduced when adding
39992         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
39993         Matt Kraai spotted the problem.
39994
39995 2009-07-29  Matt Kraai  <mkraai@beckman.com>
39996
39997         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
39998         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
39999         code also if ! defined N_NAME_POINTER.
40000         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
40001         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
40002         but the n_name member is a 12-byte array.
40003
40004 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
40005
40006         update-copyright: generalize comment handling
40007         * build-aux/update-copyright: Handle copyright statements
40008         within more comment styles.
40009         Document usage.
40010         Report any file with an external copyright holder or parse failure.
40011
40012 2009-07-29  Jim Meyering  <meyering@redhat.com>
40013
40014         mktime: correct setting of REPLACE_MKTIME
40015         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
40016
40017         update-copyright: new module
40018         * modules/update-copyright: New file.
40019         * build-aux/update-copyright: New file.
40020         * MODULES.html.sh (maint+release support): Add update-copyright.
40021
40022 2009-07-27  Bruno Haible  <bruno@clisp.org>
40023
40024         Fix compilation error when <ctime> is used and mktime is replaced.
40025         * lib/time.in.h (mktime): New declaration.
40026         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
40027         REPLACE_MKTIME instead of defining mktime in config.h.
40028         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
40029         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
40030         Reported by Ross McFarland <rwmcfa1@neces.com>.
40031
40032 2009-07-27  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
40035         Reported by Matt Kraai <mkraai@beckman.com>.
40036
40037 2009-07-25  Jim Meyering  <meyering@redhat.com>
40038
40039         maint.mk: avoid warnings about missing files
40040         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
40041         diagnostic when .prev-version does not exist.
40042         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
40043         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
40044         nonexistent cfg.mk.
40045         Suggestions from Simon Josefsson.
40046
40047 2009-07-25  Bruno Haible  <bruno@clisp.org>
40048
40049         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
40050         defined as macros. Needed on QNX 6.4.1.
40051         Reported by Matt Kraai <mkraai@beckman.com>.
40052
40053 2009-07-23  Jim Meyering  <meyering@redhat.com>
40054
40055         maint.mk: invoke "make dist" with a working value of XZ_OPT
40056         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
40057
40058 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
40059
40060         Make fseeko.c compile on QNX.
40061         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
40062
40063 2009-07-22  Peter Simons  <simons@cryp.to>
40064
40065         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
40066         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
40067         * lib/md4.h: Likewise.
40068         * lib/md5.h: Likewise.
40069         * lib/sha1.h: Likewise.
40070         * lib/sha256.h: Likewise.
40071         * lib/sha512.h: Likewise.
40072
40073         tests-sha1: don't assign literal string to 'char *' variable
40074         * tests/test-sha1.c (main): Declare locals with "const" to match
40075         attributes of the right hand side.
40076
40077 2009-07-21  Eric Blake  <ebb9@byu.net>
40078
40079         dup2: fix more mingw problems
40080         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
40081         fd to itself.
40082         * doc/posix-functions/dup2.texi (dup2): Document the bug.
40083         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
40084         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
40085         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
40086         care of mingw bugs.
40087
40088 2009-07-21  Jim Meyering  <meyering@redhat.com>
40089
40090         vc-list-files: avoid failure when /bin/sh is dash
40091         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
40092         On some Debian based systems, /bin/sh is a symlink to dash, and running
40093         this command would omit the "/" following each 'tests' prefix:
40094           dash -x build-aux/vc-list-files -C . tests
40095         That is because bash and dash work differently:
40096           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
40097           bash ok
40098           dash odd
40099
40100 2009-07-21  Eric Blake  <ebb9@byu.net>
40101
40102         dup2-tests: test previous patch
40103         * modules/dup2-tests: New file.
40104         * tests/test-dup2.c: Likewise.
40105         * tests/test-open.c (main): Avoid unspecified behavior.
40106         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
40107         test.
40108
40109         dup2: work around mingw and cygwin 1.5 bug
40110         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
40111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40112         * modules/unistd (Makefile.am): Substitute it.
40113         * lib/unistd.in.h (dup2): Declare the replacement.
40114         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
40115         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
40116         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
40117         * modules/execute (Depends-on): Add dup2.
40118         * modules/fseterr (Depends-on): Likewise.
40119         * modules/pipe (Depends-on): Likewise.
40120         * modules/posix_spawn-internal (Depends-on): Likewise.
40121
40122 2009-07-21  Bruno Haible  <bruno@clisp.org>
40123
40124         * modules/.gitattributes: New file.
40125
40126 2009-07-20  Bruno Haible  <bruno@clisp.org>
40127
40128         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
40129         (main): Use it.
40130
40131 2009-07-20  Eric Blake  <ebb9@byu.net>
40132
40133         test-pipe: make a bit more robust.
40134         * tests/test-pipe.c (myerr): Allow error messages regardless of
40135         what we do to stderr.
40136         (test_pipe): Rearrange to avoid deadlock.
40137         (child_main): Try a larger read, to ensure we avoided deadlock.
40138         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
40139         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
40140         if misused.
40141
40142 2009-07-19  Jim Meyering  <meyering@redhat.com>
40143
40144         fts: avoid false-positive cycle-detection
40145         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
40146         for each new command line argument.
40147
40148 2009-07-19  Bruno Haible  <bruno@clisp.org>
40149
40150         Fix build error on mingw with the modules sys_select and unistd.
40151         * modules/acl-tests (Depends-on): Add close.
40152         * modules/binary-io-tests (Depends-on): Likewise.
40153         * modules/closein-tests (Depends-on): Likewise.
40154         * modules/flock-tests (Depends-on): Likewise.
40155         * modules/fsync-tests (Depends-on): Likewise.
40156         * modules/lseek-tests (Depends-on): Likewise.
40157         * modules/pipe-tests (Depends-on): Likewise.
40158         * modules/posix_spawn-tests (Depends-on): Likewise.
40159         * modules/posix_spawnp-tests (Depends-on): Likewise.
40160         * modules/stat-time-tests (Depends-on): Likewise.
40161         * modules/yesno-tests (Depends-on): Likewise.
40162
40163 2009-07-19  Bruno Haible  <bruno@clisp.org>
40164
40165         Unify conditionals.
40166         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
40167         macros, not at the compiler macros.
40168         * lib/pipe.c: Likewise.
40169         * lib/execute.c: Likewise.
40170         * lib/spawni.c: Likewise.
40171
40172 2009-07-19  Bruno Haible  <bruno@clisp.org>
40173
40174         Fix handling of closed stdin/stdout/stderr on mingw.
40175         * lib/w32spawn.h: Include unistd.h.
40176         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
40177         file descriptor with O_NOINHERIT flag.
40178         (fd_safer_noinherit): New function, based on fd-safer.c.
40179         (dup_safer_noinherit): New function, based on dup-safer.c.
40180         (undup_safer_noinherit): New function.
40181         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
40182         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
40183         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
40184         instead of fd_safer.
40185         * tests/test-pipe.c: Include <windows.h>.
40186         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
40187         result.
40188
40189         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
40190         from main.
40191         (test_pipe): Pass an extra argument for disambiguation.
40192         (main): Invoke parent_main or child_main.
40193
40194         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
40195         consistently.
40196
40197 2009-07-18  Eric Blake  <ebb9@byu.net>
40198
40199         test-pipe: fix mingw build
40200         * tests/test-pipe.c (main): Avoid fcntl on mingw.
40201
40202 2009-07-18  Bruno Haible  <bruno@clisp.org>
40203
40204         * modules/pipe-tests (Makefile.am): Fix typo.
40205
40206 2009-07-18  Eric Blake  <ebb9@byu.net>
40207
40208         error: fix mingw build
40209         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
40210         Reported by Bruno Haible.
40211
40212         error: avoid undefined use of stdout
40213         * lib/error.c (error, error_at_line): Check that fd 1 is open
40214         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
40215         is handling faults and the close_stdout module wants to report the
40216         detection of closed stdout as an error.
40217
40218 2009-07-17  Eric Blake  <ebb9@byu.net>
40219
40220         pipe: be robust in face of closed fds
40221         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
40222         should cause child to misbehave.
40223         * modules/pipe-tests: New module.
40224         * tests/test-pipe.c: New file.
40225         * tests/test-pipe.sh: New file.
40226         Reported by Akim Demaille.
40227
40228 2009-07-14  Bruno Haible  <bruno@clisp.org>
40229
40230         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
40231         Reported by anonymous kc.
40232
40233 2009-07-07  Jim Meyering  <meyering@redhat.com>
40234
40235         maint.mk: don't look for translatable strings in *.m4 or *.mk
40236         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
40237         when searching for translatable strings.
40238
40239 2009-07-05  Jim Meyering  <meyering@redhat.com>
40240
40241         remove superfluous parentheses in STREQ definition
40242         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
40243         * lib/getugroups.c (STREQ): Likewise.
40244         * lib/fnmatch.c (STREQ): Likewise.
40245         Spotted by Bruno Haible.
40246
40247 2009-07-04  Jim Meyering  <meyering@redhat.com>
40248
40249         argv-iter: new module
40250         * MODULES.html.sh: Add argv-iter.
40251         * lib/argv-iter.c, lib/argv-iter.h: New files.
40252         * modules/argv-iter: New file.
40253         * modules/argv-iter-tests: New file.
40254         * tests/test-argv-iter.c: Test it.
40255
40256 2009-07-04  Bruno Haible  <bruno@clisp.org>
40257
40258         Fix assertion.
40259         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
40260         contains more exact copies of a given entry than file2, leave the extra
40261         copies unpaired rather than aborting.
40262         Reported by Eric Blake.
40263
40264 2009-07-02  Bruno Haible  <bruno@clisp.org>
40265
40266         Speedup git-merge-changelog for git cherry-pick.
40267         * lib/git-merge-changelog.c (struct entries_mapping): New type.
40268         (entries_mapping_get): New function, extracted from compute_mapping.
40269         (entries_mapping_reverse_get): New function.
40270         (compute_mapping): Add a 'full' argument. Return the result in a
40271         'struct entries_mapping'.
40272         (main): Update. Access the mappings through entries_mapping_get.
40273         Reported by Eric Blake.
40274
40275 2009-07-02  Bruno Haible  <bruno@clisp.org>
40276
40277         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
40278         best_i.
40279
40280 2009-07-02  Bruno Haible  <bruno@clisp.org>
40281
40282         Speed up approximate search for matching ChangeLog entries.
40283         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
40284         argument. Call fstrcmp_bounded instead of fstrcmp.
40285         (compute_mapping, try_split_merged_entry, main): Update callers.
40286
40287 2009-07-02  Bruno Haible  <bruno@clisp.org>
40288
40289         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
40290
40291 2009-06-30  Bruno Haible  <bruno@clisp.org>
40292
40293         Reduce the number of uc_is_cased calls.
40294         * lib/unicase.h (casing_suffix_context_t): Add
40295         'first_char_except_ignorable' field.
40296         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
40297         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
40298         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
40299         Update initializer.
40300         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
40301         case-ignorable characters.
40302         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
40303         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
40304         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
40305         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
40306         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
40307
40308 2009-06-30  Bruno Haible  <bruno@clisp.org>
40309
40310         Tests for module 'unicase/ignorable'.
40311         * modules/unicase/ignorable-tests: New file.
40312         * tests/unicase/test-ignorable.c: New file, generated by
40313         gen-uni-tables.
40314
40315         Tests for module 'unicase/cased'.
40316         * modules/unicase/cased-tests: New file.
40317         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
40318         * tests/unicase/test-predicate-part1.h: New file, derived from
40319         tests/unictype/test-predicate-part1.h.
40320         * tests/unicase/test-predicate-part2.h: New file, same as
40321         tests/unictype/test-predicate-part2.h.
40322
40323         Fix evaluation of "Before C" condition of FINAL_SIGMA.
40324         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
40325         (output_casing_properties): New function.
40326         (main): Call it.
40327         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
40328         * lib/unicase/cased.c: Include unictype/bitmap.h.
40329         (uc_is_cased): Define through a bitmap lookup.
40330         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
40331         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
40332         (uc_is_case_ignorable): Define through a bitmap lookup.
40333         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
40334         lib/unictype/bitmap.h.
40335         (Depends-on): Add inline. Clean up.
40336         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
40337         lib/unictype/bitmap.h.
40338         (Depends-on): Add inline. Clean up.
40339         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
40340         recognition.
40341         * tests/unicase/test-u16-tolower.c (main): Likewise.
40342         * tests/unicase/test-u32-tolower.c (main): Likewise.
40343
40344 2009-06-30  Bruno Haible  <bruno@clisp.org>
40345
40346         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
40347         * lib/unicase/u16-casemap.c: Likewise.
40348         * lib/unicase/u32-casemap.c: Likewise.
40349
40350 2009-06-29  Bruno Haible  <bruno@clisp.org>
40351
40352         Define u32_casefold as a wrapper around u32_ct_casefold.
40353         * lib/unicase/u32-casefold.c: Update.
40354         * modules/unicase/u32-casefold (Depends-on): Add
40355         unicase/u32-ct-casefold, unicase/empty-prefix-context,
40356         unicase/empty-suffix-context. Clean up.
40357
40358         Define u16_casefold as a wrapper around u16_ct_casefold.
40359         * lib/unicase/u16-casefold.c: Update.
40360         * modules/unicase/u16-casefold (Depends-on): Add
40361         unicase/u16-ct-casefold, unicase/empty-prefix-context,
40362         unicase/empty-suffix-context. Clean up.
40363
40364         Define u8_casefold as a wrapper around u8_ct_casefold.
40365         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
40366         * lib/unicase/u8-casefold.c: Update.
40367         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
40368         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40369
40370         Define u32_totitle as a wrapper around u32_ct_totitle.
40371         * lib/unicase/u32-totitle.c: Update.
40372         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
40373         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40374
40375         Define u16_totitle as a wrapper around u16_ct_totitle.
40376         * lib/unicase/u16-totitle.c: Update.
40377         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
40378         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40379
40380         Define u8_totitle as a wrapper around u8_ct_totitle.
40381         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
40382         functions.
40383         (FUNC): Delegate to U_CT_TOTITLE.
40384         * lib/unicase/u8-totitle.c: Update.
40385         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
40386         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40387
40388         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
40389         invocation.
40390         * modules/unicase/u32-tolower (Depends-on): Add
40391         unicase/empty-prefix-context, unicase/empty-suffix-context.
40392
40393         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
40394         invocation.
40395         * modules/unicase/u16-tolower (Depends-on): Add
40396         unicase/empty-prefix-context, unicase/empty-suffix-context.
40397
40398         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
40399         * modules/unicase/u8-tolower (Depends-on): Add
40400         unicase/empty-prefix-context, unicase/empty-suffix-context.
40401
40402         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
40403         invocation.
40404         * modules/unicase/u32-toupper (Depends-on): Add
40405         unicase/empty-prefix-context, unicase/empty-suffix-context.
40406
40407         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
40408         invocation.
40409         * modules/unicase/u16-toupper (Depends-on): Add
40410         unicase/empty-prefix-context, unicase/empty-suffix-context.
40411
40412         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
40413         * modules/unicase/u8-toupper (Depends-on): Add
40414         unicase/empty-prefix-context, unicase/empty-suffix-context.
40415
40416         New module 'unicase/u32-ct-casefold'.
40417         * lib/unicase/u32-ct-casefold.c: New file.
40418         * modules/unicase/u32-ct-casefold: New file.
40419
40420         New module 'unicase/u16-ct-casefold'.
40421         * lib/unicase/u16-ct-casefold.c: New file.
40422         * modules/unicase/u16-ct-casefold: New file.
40423
40424         New module 'unicase/u8-ct-casefold'.
40425         * lib/unicase/u8-ct-casefold.c: New file.
40426         * lib/unicase/u-ct-casefold.h: New file, derived from
40427         lib/unicase/u-casefold.h.
40428         * modules/unicase/u8-ct-casefold: New file.
40429
40430         New module 'unicase/u32-ct-totitle'.
40431         * lib/unicase/u32-ct-totitle.c: New file.
40432         * modules/unicase/u32-ct-totitle: New file.
40433
40434         New module 'unicase/u16-ct-totitle'.
40435         * lib/unicase/u16-ct-totitle.c: New file.
40436         * modules/unicase/u16-ct-totitle: New file.
40437
40438         New module 'unicase/u8-ct-totitle'.
40439         * lib/unicase/u8-ct-totitle.c: New file.
40440         * lib/unicase/u-ct-totitle.h: New file, derived from
40441         lib/unicase/u-totitle.h.
40442         * modules/unicase/u8-ct-totitle: New file.
40443
40444         New module 'unicase/u32-ct-tolower'.
40445         * lib/unicase/u32-ct-tolower.c: New file.
40446         * modules/unicase/u32-ct-tolower: New file.
40447
40448         New module 'unicase/u16-ct-tolower'.
40449         * lib/unicase/u16-ct-tolower.c: New file.
40450         * modules/unicase/u16-ct-tolower: New file.
40451
40452         New module 'unicase/u8-ct-tolower'.
40453         * lib/unicase/u8-ct-tolower.c: New file.
40454         * modules/unicase/u8-ct-tolower: New file.
40455
40456         New module 'unicase/u32-ct-toupper'.
40457         * lib/unicase/u32-ct-toupper.c: New file.
40458         * modules/unicase/u32-ct-toupper: New file.
40459
40460         New module 'unicase/u16-ct-toupper'.
40461         * lib/unicase/u16-ct-toupper.c: New file.
40462         * modules/unicase/u16-ct-toupper: New file.
40463
40464         New module 'unicase/u8-ct-toupper'.
40465         * lib/unicase/u8-ct-toupper.c: New file.
40466         * modules/unicase/u8-ct-toupper: New file.
40467
40468         Add context arguments to u*_casemap functions.
40469         * lib/unicase/unicasemap.h: Include unicase.h.
40470         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
40471         suffix_context arguments.
40472         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
40473         functions.
40474         (FUNC): Add prefix_context and suffix_context arguments. Use
40475         uc_is_cased and uc_is_case_ignorable.
40476         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
40477         * lib/unicase/u16-casemap.c: Likewise.
40478         * lib/unicase/u32-casemap.c: Likewise.
40479         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
40480         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40481         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
40482         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40483         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
40484         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40485
40486         New module 'unicase/u32-suffix-context'.
40487         * lib/unicase/u32-suffix-context.c: New file.
40488         * modules/unicase/u32-suffix-context: New file.
40489
40490         New module 'unicase/u16-suffix-context'.
40491         * lib/unicase/u16-suffix-context.c: New file.
40492         * modules/unicase/u16-suffix-context: New file.
40493
40494         New module 'unicase/u8-suffix-context'.
40495         * lib/unicase/u8-suffix-context.c: New file.
40496         * lib/unicase/u-suffix-context.h: New file.
40497         * modules/unicase/u8-suffix-context: New file.
40498
40499         New module 'unicase/empty-suffix-context'.
40500         * lib/unicase/empty-suffix-context.c: New file.
40501         * modules/unicase/empty-suffix-context: New file.
40502
40503         New module 'unicase/u32-prefix-context'.
40504         * lib/unicase/u32-prefix-context.c: New file.
40505         * modules/unicase/u32-prefix-context: New file.
40506
40507         New module 'unicase/u16-prefix-context'.
40508         * lib/unicase/u16-prefix-context.c: New file.
40509         * modules/unicase/u16-prefix-context: New file.
40510
40511         New module 'unicase/u8-prefix-context'.
40512         * lib/unicase/u8-prefix-context.c: New file.
40513         * lib/unicase/u-prefix-context.h: New file.
40514         * lib/unicase/context.h: New file.
40515         * modules/unicase/u8-prefix-context: New file.
40516
40517         New module 'unicase/empty-prefix-context'.
40518         * lib/unicase/empty-prefix-context.c: New file.
40519         * modules/unicase/empty-prefix-context: New file.
40520
40521         New module 'unicase/ignorable'.
40522         * lib/unicase/ignorable.c: New file.
40523         * modules/unicase/ignorable: New file.
40524
40525         New module 'unicase/cased'.
40526         * lib/unicase/caseprop.h: New file.
40527         * lib/unicase/cased.c: New file.
40528         * modules/unicase/cased: New file.
40529
40530         New functions for case mapping of substrings.
40531         * lib/unicase.h (casing_prefix_context_t): New type.
40532         (unicase_empty_prefix_context): New variable.
40533         (u8_casing_prefix_context, u16_casing_prefix_context,
40534         u32_casing_prefix_context, u8_casing_prefixes_context,
40535         u16_casing_prefixes_context, u32_casing_prefixes_context): New
40536         declarations.
40537         (casing_suffix_context_t): New type.
40538         (unicase_empty_suffix_context): New variable.
40539         (u8_casing_suffix_context, u16_casing_suffix_context,
40540         u32_casing_suffix_context, u8_casing_suffixes_context,
40541         u16_casing_suffixes_context, u32_casing_suffixes_context,
40542         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
40543         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
40544         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
40545         declarations.
40546
40547 2009-06-28  Jim Meyering  <meyering@redhat.com>
40548
40549         boostrap: indent only with spaces
40550         * build-aux/bootstrap: Indent only with spaces, never TABs.
40551
40552         bootstrap: split long lines
40553         * build-aux/bootstrap: Keep line length < 80.
40554
40555         bootstrap: sync from coreutils
40556         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
40557         just as autoreconf does.  Verify a list of prerequisite
40558         package-name,version-number pairs if defined in bootstrap.conf.
40559         Refer to README-prereq, if prerequisites are not satisfied.
40560
40561 2009-06-27  Eric Blake  <ebb9@byu.net>
40562
40563         tests: add test for bogus NULL definition
40564         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
40565         * tests/test-stdlib.c: Likewise.
40566         * tests/test-string.c: Likewise.
40567         * tests/test-locale.c: Likewise.
40568         * tests/test-unistd.c: Likewise.
40569         * modules/stdio-tests (Depends-on): Add verify.
40570         * modules/stdlib-tests (Depends-on): Likewise.
40571         * modules/string-tests (Depends-on): Likewise.
40572         * modules/locale-tests (Depends-on): Likewise.
40573         * modules/unistd-tests (Depends-on): Likewise.
40574
40575 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
40576
40577         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
40578         self-explaining comment.
40579         * m4/selinux-selinux-h: Update serial.
40580         (gl_LIBSELINUX): New macro, adding a warning for missing development
40581         packages to code extracted from...
40582         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
40583         Add warning for missing development packages here, too.
40584
40585 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
40586
40587         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
40588
40589 2009-06-25  Eric Blake  <ebb9@byu.net>
40590
40591         version-etc: fix regression
40592         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
40593         gcc.
40594         (version_etc): Use it, to catch bugs with trailing NULL.
40595         * lib/version-etc.c (version_etc_arn): Delete unused argument.
40596         (version_etc_va): Fix logic bug.
40597         * modules/version-etc-tests: Add test.
40598         * tests/test-version-etc.c: New file.
40599         * tests/test-version-etc.sh: Likewise.
40600
40601 2009-06-25  Sam Steingold  <sds@gnu.org>
40602
40603         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
40604         mbtowc declaration.
40605
40606 2009-06-25  Eric Blake  <ebb9@byu.net>
40607
40608         fpurge: migrate into <stdio.h>
40609         * lib/fpurge.h: Delete...
40610         * lib/stdio.in.h (fpurge): ...and declare here, instead.
40611         * lib/fpurge.c (fpurge): Change declaring header.
40612         * modules/fpurge (Files): Drop deleted file.
40613         (Depends-on): Add stdio.
40614         (configure.ac): Set witness.
40615         * modules/stdio (Makefile.am): Support fpurge macros.
40616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40617         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
40618         * lib/fflush.c: Update client.
40619         * tests/test-fpurge.c: Likewise.
40620         * NEWS: Mention the change.
40621
40622 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40623
40624         * lib/argp-version-etc.c (program_authors): Add const
40625         qualifier.
40626         * lib/version-etc.c: Fix typos in the comments.
40627         * modules/argp-version-etc: Depends on version-etc.
40628
40629 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40630
40631         argp-version-etc: new module.
40632
40633         * lib/argp-version-etc.c: New file.
40634         * lib/argp-version-etc.h: New file.
40635         * modules/argp-version-etc: New file.
40636         * modules/argp-version-etc-tests: New file.
40637         * tests/test-argp-version-etc.c: New test.
40638         * tests/test-argp-version-etc-1.sh: New test.
40639
40640 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40641
40642         Provide additional interfaces and documentation for version-etc
40643         module.
40644
40645         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
40646         interfaces.
40647         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
40648         prototypes.
40649
40650 2009-06-24  Bruno Haible  <bruno@clisp.org>
40651
40652         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
40653         HAVE_LIB${NAME} macro.
40654         Reported by Sam Steingold <sds@gnu.org>.
40655
40656 2009-06-23  Simon Josefsson  <simon@josefsson.org>
40657
40658         * modules/hash-tests (test_hash_LDADD): Link to libintl when
40659         needed.
40660
40661 2009-06-21  Bruno Haible  <bruno@clisp.org>
40662
40663         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
40664         work.
40665         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
40666         together with LIB${NAME}, LTLIB${NAME}.
40667         Reported by Sam Steingold <sds@gnu.org>.
40668
40669 2009-06-20  Jim Meyering  <meyering@redhat.com>
40670
40671         tests: make sc_require_test_exit_idiom more generic
40672         * top/maint.mk (Exit_witness_file): New overridable variable.
40673         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
40674         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
40675
40676 2009-06-19  Jim Meyering  <meyering@redhat.com>
40677
40678         hash: reverse order of src/dst parameters in an internal interface
40679         * lib/hash.c (transfer_entries): Reverse order of parameters to
40680         put DST before SRC.  Adjust callers.
40681
40682         tests: test-hash: avoid wholesale duplication
40683         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
40684         Instead, use a loop and add a single conditional.
40685
40686         tests: test-hash: allow seed selection via a command line argument
40687         * tests/test-hash.c (get_seed): New function.
40688         (main): Use it.
40689
40690 2009-06-19  Eric Blake  <ebb9@byu.net>
40691
40692         hash: avoid memory leak on allocation failure
40693         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
40694         failure.  Factor repeated algorithm...
40695         (transfer_entries): ...into new helper routine.
40696         (hash_delete): React to hash_rehash return value.
40697
40698         hash: reduce memory pressure in hash_rehash no-op case
40699         * lib/hash.c (next_prime): Avoid overflow.
40700         (hash_initialize): Factor bucket size computation...
40701         (compute_bucket_size): ...into new helper function.
40702         (hash_rehash): Use new function and open coding to reduce memory
40703         pressure, and avoid a memory leak in USE_OBSTACK code.
40704         Reported by Jim Meyering.
40705
40706 2009-06-18  Eric Blake  <ebb9@byu.net>
40707
40708         hash: make rotation more obvious
40709         * modules/hash (Depends-on): Add bitrotate and stdint.
40710         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
40711         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
40712         (SIZE_MAX): Rely on headers for definition.
40713         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
40714         (raw_hasher): Use rotr_sz.
40715         Suggested by Jim Meyering.
40716
40717         hash: fix memory leak in last patch
40718         * lib/hash.c (hash_rehash): Avoid memory leak.
40719
40720         hash: avoid no-op rehashing
40721         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
40722
40723         hash: provide default callback functions
40724         * lib/hash.c (raw_hasher, raw_comparator): New functions.
40725         (hash_initialize): Use them as defaults.
40726         * tests/test-hash.c (main): Test this.
40727
40728         hash: minor optimization
40729         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
40730         when possible.
40731         (hash_initialize): Document this promise.
40732         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
40733         * tests/test-hash.c (hash_compare_strings): Test this.
40734
40735 2009-06-18  Bruno Haible  <bruno@clisp.org>
40736
40737         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
40738         going to be replaced anyway.
40739
40740 2009-06-18  Bruno Haible  <bruno@clisp.org>
40741
40742         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
40743         in one place.
40744         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
40745         be replaced anyway.
40746
40747 2009-06-18  Eric Blake  <ebb9@byu.net>
40748
40749         hash: check for resize before insertion
40750         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
40751         threshold before insertion, so that a pathological hash_rehash
40752         that fills every bucket can still trigger another rehash.
40753
40754 2009-06-18  Jim Meyering  <meyering@redhat.com>
40755
40756         hash-tests: add a loop around the small tests
40757         * tests/test-hash.c (main): Repeat small tests with selected
40758         small initial table sizes.
40759
40760 2009-06-17  Eric Blake  <ebb9@byu.net>
40761
40762         hash: minor cleanups
40763         * lib/hash.h (hash_entry): Make opaque, by moving...
40764         * lib/hash.c (hash_entry): ...here.
40765         (hash_insert): Clarify restrictions on what can be inserted.
40766         (hash_get_next): Clarify when it is safe to remove an element
40767         during traversal.
40768         (check_tuning): Skip verification when tuning is known safe.
40769         (hash_initialize): Clarify restrictions on tuning.
40770
40771 2009-06-17  Jim Meyering  <jim@meyering.net>
40772         and Eric Blake  <ebb9@byu.net>
40773
40774         hash-tests: new module
40775         * modules/hash-tests: New file.
40776         * tests/test-hash.c: New file.
40777
40778 2009-06-17  Eric Blake  <ebb9@byu.net>
40779
40780         strstr-simple: document new module
40781         * MODULES.html.sh: Document new module.
40782
40783         strstr, strcasestr: replace on platforms with broken memchr
40784         * modules/strstr: Split into...
40785         * modules/strstr-simple: ...new module that does not care about
40786         performance, but does care about glibc bug.
40787         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
40788         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
40789         if platform memchr is broken, per Debian bug 521737.
40790         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
40791         memchr.
40792         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
40793         * doc/posix-functions/strstr.texi (strstr): Document the fix.
40794         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40795         * modules/mountlist (Depends-on): Add strstr-simple.
40796         * modules/gen-uni-tables (Depends-on): Likewise.
40797         * modules/argz (Depends-on): Add strstr.
40798
40799 2009-06-17  Bruno Haible  <bruno@clisp.org>
40800
40801         * modules/posix_spawn-internal (Depends-on): Add errno.
40802
40803 2009-06-17  Bruno Haible  <bruno@clisp.org>
40804
40805         Define missing ESTALE on Interix 3.5.
40806         * lib/errno.in.h (ESTALE): Assign a value if missing.
40807         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
40808         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
40809         missing.
40810         * doc/posix-headers/errno.texi: Mention the Interix bug.
40811         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
40812
40813 2009-06-15  Eric Blake  <ebb9@byu.net>
40814
40815         memchr, memchr2: add valgrind exception
40816         * lib/memchr.valgrind: New file.
40817         * lib/memchr2.valgrind: New file.
40818         * modules/memchr (Files): Distribute valgrind file.
40819         * modules/memchr2 (Files): Likewise.
40820
40821         docs: memchr is no longer obsolete
40822         * MODULES.html.sh: Move memchr from obsolete to string.h section.
40823         * lib/string.in.h (memchr): Simplify logic.
40824
40825 2009-06-14  Jim Meyering  <meyering@redhat.com>
40826
40827         link-follow: fix the "checking..." message to not mention trailing slash
40828         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
40829         never considered trailing slashes.
40830
40831 2009-06-14  Bruno Haible  <bruno@clisp.org>
40832
40833         * m4/memchr.m4: Mention also the bug on IA-64.
40834         * doc/posix-functions/memchr.texi: Likewise.
40835
40836 2009-06-12  Eric Blake  <ebb9@byu.net>
40837
40838         memchr: detect broken x86_64 and alpha implementations
40839         * modules/memchr-tests (Depends-on): Move mmap detection...
40840         * modules/memchr (Depends-on): ...here.
40841         (configure.ac): Set indicator.
40842         * lib/string.in.h (memchr): Declare replacement.
40843         * modules/string (Makefile.am): Trigger replacement.
40844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40845         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
40846         bugs.
40847         * doc/posix-functions/memchr.texi (memchr): Document the bug.
40848         * modules/getpagesize (License): Relax license.
40849
40850 2009-06-11  Bruno Haible  <bruno@clisp.org>
40851
40852         * lib/idpriv.h: Add more references.
40853
40854 2009-06-08  Bruno Haible  <bruno@clisp.org>
40855
40856         Tests for module 'idpriv-droptemp'.
40857         * modules/idpriv-droptemp-tests: New file.
40858         * tests/test-idpriv-droptemp.sh: New file.
40859         * tests/test-idpriv-droptemp.su.sh: New file.
40860         * tests/test-idpriv-droptemp.c: New file.
40861
40862         New module 'idpriv-droptemp'.
40863         * lib/idpriv-droptemp.c: New file.
40864         * modules/idpriv-droptemp: New file.
40865
40866 2009-06-08  Bruno Haible  <bruno@clisp.org>
40867
40868         Tests for module 'idpriv-drop'.
40869         * modules/idpriv-drop-tests: New file.
40870         * tests/test-idpriv-drop.sh: New file.
40871         * tests/test-idpriv-drop.su.sh: New file.
40872         * tests/test-idpriv-drop.c: New file.
40873
40874         New module 'idpriv-drop'.
40875         * lib/idpriv.h: New file.
40876         * lib-idpriv-drop.c: New file.
40877         * m4/idpriv.m4: New file.
40878         * modules/idpriv-drop: New file.
40879
40880 2009-06-08  Bruno Haible  <bruno@clisp.org>
40881
40882         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
40883         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40884         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40885         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40886         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40887         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40888         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40889
40890 2009-06-08  Eric Blake  <ebb9@byu.net>
40891
40892         test-strstr: use memory fence, when possible
40893         * tests/test-strstr.c (main): Use memory fence, in order to be
40894         more likely to trigger Debian bug 521737.
40895         * modules/strstr-tests (Files): Pull in additional files.
40896
40897         memchr: no longer obsolete, for wider field testing
40898         * modules/memchr (Status, Notice): Delete, this module is no
40899         longer obsolete.
40900         * modules/vasnprintf (Depends-on): Add memchr.
40901
40902 2009-06-07  Jim Meyering  <meyering@redhat.com>
40903
40904         hash: declare some functions with the warn_unused_result attribute
40905         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
40906
40907 2009-06-07  Bruno Haible  <bruno@clisp.org>
40908
40909         * tests/test-alignof.c: Don't test int64_t if it does not exist.
40910         Reported by Eric Blake.
40911
40912 2009-06-06  Eric Blake  <ebb9@byu.net>
40913
40914         test-alignof: fix typo with long double
40915         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
40916         compiler error.
40917
40918 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
40919
40920         Escape non-texinfo { and }s.
40921         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
40922         markup error.
40923
40924 2009-06-04  Jim Meyering  <meyering@redhat.com>
40925
40926         gitlog-to-changelog: don't infloop on an empty commit log
40927         * build-aux/gitlog-to-changelog: Warn about an empty log message.
40928         Reported by Boris Petersen <transacid@centerim.org>.
40929
40930 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
40931
40932         version-etc: extend for packagers
40933         Add three new configure options, intended for packagers:
40934           --with-packager="packager name"
40935           --with-packager-version="packager-specific version"
40936           --with-packager-bug-reports="packager bug reporting"
40937         An example with coreutils:
40938           $ ./configure \
40939             --with-packager=Gentoo \
40940             --with-packager-bug-report=http://bugs.gentoo.org/ \
40941             --with-packager-version="patchset 1.6"
40942           $ ./src/ls --version | head -n2
40943           ls (GNU coreutils) 7.1-dirty
40944           Packaged by Gentoo (patchset 1.6)
40945         Note that the bug reporting info via --help doesn't show up because
40946         coreutils uses its own custom emit_bug_reporting_address() implementation
40947         in src/system.h.  If it didn't, it'd look like:
40948           $ ./src/ls --help | tail -n4
40949           Report bugs to <bug-coreutils@gnu.org>.
40950           Report Gentoo bugs to <http://bugs.gentoo.org/>.
40951           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
40952           General help using GNU software: <http://www.gnu.org/gethelp/>.
40953         * lib/version-etc.c: Print new information, if provided.
40954         * m4/version-etc.m4: New file.
40955         * modules/version-etc (Files): Add m4/version-etc.m4.
40956         (configure.ac): Add gl_VERSION_ETC.
40957
40958 2009-05-31  Bruno Haible  <bruno@clisp.org>
40959
40960         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
40961         and 'int64_t'.
40962         * modules/alignof-tests (Dependencies): Add stdint.
40963         Reported by Eric Blake.
40964
40965 2009-05-31  Bruno Haible  <bruno@clisp.org>
40966
40967         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
40968         restriction due to compiler bugs.
40969         Reported by Eric Blake.
40970
40971 2009-05-31  Simon Josefsson  <simon@josefsson.org>
40972             Bruno Haible  <bruno@clisp.org>
40973
40974         Fix test-alignof failure.
40975         * lib/alignof.h (alignof_slot): New macro.
40976         (alignof_type): New macro, with the same semantics as the previous
40977         'alignof'.
40978         (alignof): Alias to alignof_slot.
40979         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
40980         check that the results are usable as constant expressions.
40981
40982 2009-05-31  Bruno Haible  <bruno@clisp.org>
40983
40984         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
40985         * tests/test-memchr.c (main): Check that memchr does not read past the
40986         first occurrence of the byte.
40987         * tests/test-strstr.c (main): Update comment.
40988         Suggested by Eric Blake.
40989
40990 2009-05-30  Bruno Haible  <bruno@clisp.org>
40991
40992         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
40993         detail how to use dumpbin.
40994         Reported by David Byron <dbyron@dbyron.com>.
40995
40996 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40997
40998         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
40999
41000 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41001
41002         * m4/manywarnings.m4: Add GCC 4.4 warnings.
41003
41004 2009-05-28  Bruno Haible  <bruno@clisp.org>
41005
41006         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
41007         build-aux/ files.
41008
41009 2009-05-28  Simon Josefsson  <simon@josefsson.org>
41010
41011         * gnulib-tool (func_import): Transform license on build-aux/ files too.
41012
41013 2009-05-27  Simon Josefsson  <simon@josefsson.org>
41014
41015         * gnulib-tool (sed_transform_main_lib_file)
41016         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
41017         regexps.
41018
41019 2009-05-26  Simon Josefsson  <simon@josefsson.org>
41020
41021         * tests/test-strstr.c: Add another self-test.
41022         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
41023         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
41024
41025 2009-05-23  Bruno Haible  <bruno@clisp.org>
41026
41027         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
41028         change.
41029
41030 2009-05-21  Bruno Haible  <bruno@clisp.org>
41031
41032         Simplify use of mode_t varargs.
41033         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
41034         uses 'mode_t' or 'int'.
41035         * lib/openat.c (openat): Likewise.
41036         * lib/open-safer.c (open_safer): Likewise.
41037         * m4/mode_t.m4: New file.
41038         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
41039         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
41040         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
41041         * modules/open (Files): Add m4/mode_t.m4.
41042         * modules/openat (Files): Likewise.
41043         * modules/fcntl-safer (Files): Likewise.
41044         Suggested by Eric Blake.
41045
41046 2009-05-21  Pádraig Brady  <P@draigbrady.com>
41047
41048         * doc/glibc-functions/fallocate.texi: New file.
41049         * doc/gnulib.texi: Include it.
41050
41051 2009-05-21  Eric Blake  <ebb9@byu.net>
41052             Bruno Haible  <bruno@clisp.org>
41053
41054         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
41055         invocations.
41056         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41057
41058 2009-05-21  Eric Blake  <ebb9@byu.net>
41059             Bruno Haible  <bruno@clisp.org>
41060
41061         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
41062         include_next. Fix of 2008-11-20 commit.
41063         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
41064         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
41065         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
41066         NEXT_MATH_H.
41067         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
41068         instead of NEXT_MATH_H.
41069
41070 2009-05-21  Bruno Haible  <bruno@clisp.org>
41071
41072         Avoid redefinition warnings for SIZE_MAX.
41073         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
41074         Reported by Simon Josefsson.
41075
41076 2009-05-21  Bruno Haible  <bruno@clisp.org>
41077
41078         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
41079         AC_CACHE_VAL.
41080
41081 2009-05-20  Bruno Haible  <bruno@clisp.org>
41082
41083         Make zeroptr.h work on mingw.
41084         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
41085         mprotect.
41086         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
41087         * modules/memchr2-tests (configure.ac): Likewise.
41088         * modules/memcmp-tests (configure.ac): Likewise.
41089         * modules/memmem-tests (configure.ac): Likewise.
41090         * modules/memrchr-tests (configure.ac): Likewise.
41091         Reported by Simon Josefsson.
41092
41093 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41094
41095         * tests/test-glob.c: Include string.h for strcmp prototype.
41096
41097 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41098
41099         * modules/getdelim (Depends-on): Add explicit stdint, although it
41100         was implicitly already pulled in via realloc-posix.
41101         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
41102
41103 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41104
41105         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
41106         G. Christensen" <tgc@jupiterrise.com>.
41107         * m4/sys_socket_h.m4: Check for sa_family_t.
41108         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
41109         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
41110         * tests/test-sys_socket.c: Check that sa_family_t works.
41111
41112 2009-05-18  Eric Blake  <ebb9@byu.net>
41113
41114         maint.mk: allow gnulib_dir in VPATH build
41115         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
41116
41117 2009-05-15  Jim Meyering  <meyering@redhat.com>
41118
41119         maint.mk: Give gnulib_dir a default definition.
41120         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
41121         Thus, most packages no longer need to specify this variable in cfg.mk
41122
41123 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
41124
41125         rename.m4: fix typos that would make non-mingw cross-configure fail
41126         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
41127
41128 2009-05-13  Eric Blake  <ebb9@byu.net>
41129
41130         mmap-anon: avoid out-of-order autoconf expansion
41131         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
41132         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
41133         * modules/memchr-tests (Depends-on): Add extensions.
41134         * modules/memchr2-tests (Depends-on): Add extensions.
41135         * modules/memcmp-tests (Depends-on): Add extensions.
41136         * modules/memmem-tests (Depends-on): Add extensions.
41137         * modules/memrchr-tests (Depends-on): Add extensions.
41138
41139 2009-05-13  Bruno Haible  <bruno@clisp.org>
41140
41141         Make some tests ISO C 99 compliant.
41142         * tests/zerosize-ptr.h: New file.
41143         * tests/test-memchr.c: Include zerosize-ptr.h.
41144         (main): Use a zero-size object pointer instead of NULL.
41145         * tests/test-memchr2.c: Include zerosize-ptr.h.
41146         (main): Use a zero-size object pointer instead of NULL.
41147         * tests/test-memcmp.c: Include zerosize-ptr.h.
41148         (main): Use a zero-size object pointer instead of NULL.
41149         * tests/test-memmem.c: Include zerosize-ptr.h.
41150         (main): Use a zero-size object pointer instead of NULL.
41151         * tests/test-memrchr.c: Include zerosize-ptr.h.
41152         (main): Use a zero-size object pointer instead of NULL.
41153         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
41154         m4/mmap-anon.m4.
41155         (Depends-on): Add getpagesize.
41156         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41157         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
41158         m4/mmap-anon.m4.
41159         (Depends-on): Add getpagesize.
41160         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41161         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
41162         m4/mmap-anon.m4.
41163         (Depends-on): Add getpagesize.
41164         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41165         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
41166         m4/mmap-anon.m4.
41167         (Depends-on): Add getpagesize.
41168         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41169         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
41170         m4/mmap-anon.m4.
41171         (Depends-on): Add getpagesize.
41172         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41173
41174 2009-05-12  Bruno Haible  <bruno@clisp.org>
41175
41176         Tests for module 'alignof'.
41177         * modules/alignof-tests: New file.
41178         * tests/test-alignof.c: New file.
41179
41180 2009-05-12  Bruno Haible  <bruno@clisp.org>
41181
41182         Fix alignof macro.
41183         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
41184         vendor compilers that are always correct.
41185
41186 2009-05-12  Bruno Haible  <bruno@clisp.org>
41187
41188         Make the MAP_ANONYMOUS detection work on HP-UX 11.
41189         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
41190         not whether its fully works.
41191
41192 2009-05-12  Bruno Haible  <bruno@clisp.org>
41193
41194         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
41195
41196 2009-05-12  Jim Meyering  <meyering@redhat.com>
41197
41198         * top/maint.mk: Adjust backslash alignment.
41199
41200 2009-05-11  Simon Josefsson  <simon@josefsson.org>
41201
41202         * top/maint.mk: Make $(srcdir)/build-aux configurable.
41203
41204 2009-05-11  Eric Blake  <ebb9@byu.net>
41205
41206         argp: avoid undefined behavior
41207         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
41208         macros.
41209
41210 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41211
41212         * tests/test-vc-list-files-git.sh: Do git config of user.email and
41213         user.name to prevent git commit from complaining.
41214
41215 2009-05-10  Bruno Haible  <bruno@clisp.org>
41216
41217         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
41218         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
41219         it rewrites every file name only once.
41220         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
41221
41222 2009-05-08  Bruno Haible  <bruno@clisp.org>
41223
41224         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
41225         instead of 'max'.
41226
41227 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41228
41229         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
41230         sockaddr_storage test.
41231
41232 2009-05-07  Simon Josefsson  <simon@josefsson.org>
41233
41234         * modules/sys_socket (Makefile.am): Substitute
41235         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
41236         * m4/sys_socket_h.m4: Check for sockaddr_storage.
41237         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
41238         * tests/test-sys_socket.c: Check sockaddr_storage.
41239
41240 2009-05-08  Bruno Haible  <bruno@clisp.org>
41241
41242         New module 'alignof'.
41243         * lib/alignof.h: New file.
41244         * modules/alignof: New file.
41245
41246 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41247             Bruno Haible  <bruno@clisp.org>
41248
41249         Fix test-file-has-acl on FreeBSD.
41250         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
41251         mask is implicitly added.
41252         * tests/test-file-has-acl.c: Include <signal.h>.
41253         (main): Terminate the test after 5 seconds.
41254         * modules/acl-tests (configure.ac): Check for alarm function.
41255
41256 2009-05-04  Bruno Haible  <bruno@clisp.org>
41257
41258         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
41259         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
41260         * modules/errno (configure.ac): Drop AC_REQUIRE.
41261         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
41262         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
41263
41264 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41265
41266         * modules/glob-tests: New module.
41267         * tests/test-glob.c: Add.
41268
41269 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41270
41271         * modules/fnmatch-tests: New module.
41272         * tests/test-fnmatch.c: Add.
41273
41274 2009-05-04  Eric Blake  <ebb9@byu.net>
41275
41276         maint: make the new no-submodule-changes rule VPATH-safe
41277         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
41278
41279 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41280             Bruno Haible  <bruno@clisp.org>
41281
41282         acl: Fix infinite loop on FreeBSD.
41283         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
41284         of return value from acl_get_entry.
41285         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
41286         Likewise.
41287
41288 2009-05-03  Bruno Haible  <bruno@clisp.org>
41289
41290         * lib/acl-internal.h (acl_entries): Clarify return value.
41291         * lib/acl_entries.c (acl_entries): Likewise.
41292
41293 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41294
41295         Bug fix in acl module.
41296         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
41297
41298 2009-05-03  Bruno Haible  <bruno@clisp.org>
41299
41300         Create gperf-generated file in the source dir, not in the build dir.
41301         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
41302         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
41303         * modules/unicase/locale-language (unicase/locale-languages.h):
41304         Likewise.
41305         * modules/unicase/special-casing (unicase/special-casing-table.h):
41306         Likewise.
41307         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
41308         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
41309         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
41310         Reported by Ralf Wildenhues.
41311
41312 2009-05-03  Bruno Haible  <bruno@clisp.org>
41313
41314         * modules/fnmatch (Description, configure.ac): Taken from
41315         fnmatch-posix.
41316         * modules/fnmatch-posix: Turn into a symbolic reference to the
41317         'fnmatch' module, and deprecate.
41318         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
41319
41320 2009-05-03  Bruno Haible  <bruno@clisp.org>
41321
41322         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
41323         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
41324         Reported by Ralf Wildenhues.
41325
41326 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41327
41328         * m4/fnmatch.m4: Fix fnmatch re-define.
41329
41330 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41331
41332         priv-set: new module and tests; adapt write-any-file
41333         * lib/priv-set.c: New file.
41334         * lib/priv-set.h: New file.
41335         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
41336         * lib/write-any-file.c: Simplify by using priv-set module.
41337         * m4/priv-set.m4: New file.
41338         * modules/priv-set: New file.
41339         * modules/unlinkdir: Add dependency on priv-set module.
41340         * modules/write-any-file: Likewise.
41341
41342         Tests for module 'priv-set'.
41343         * modules/priv-set-tests: New file.
41344         * tests/test-priv-set.c: New file.
41345
41346 2009-05-03  Jim Meyering  <meyering@redhat.com>
41347             Bruno Haible  <bruno@clisp.org>
41348
41349         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
41350         use the converted UTF-8 variant of the name instead.
41351
41352 2009-05-03  Jim Meyering  <meyering@redhat.com>
41353
41354         tests: tighten some getdate tests
41355         * tests/test-getdate.c (main): Tighten tests: require equality,
41356         not just greater than.  Set TZ envvar to UTC0.
41357
41358 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
41359
41360         getdate: correctly interpret "next monday" when run on a Monday
41361         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
41362         that e.g., "next tues" (when run on a tuesday) results in a date
41363         that is one week in the future, and not today's date.
41364         I.e., add a week when the wday is the same as the current one.
41365         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
41366         and earlier by Martin Bernreuther and Jan Minář.
41367         * tests/test-getdate.c (main): Check that "next DAY" is always in
41368         the future and that "last DAY" is always in the past.
41369
41370 2009-05-02  Jim Meyering  <meyering@redhat.com>
41371
41372         build: ensure that a release build fails when a submodule is unclean
41373         * top/maint.mk (no-submodule-changes): New rule.
41374         (alpha beta major): Depend on it.
41375
41376 2009-05-02  Bruno Haible  <bruno@clisp.org>
41377
41378         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
41379         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
41380         shell variable gl_fnmatch_required to detect which variant is
41381         requested.
41382         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
41383         gl_FUNC_FNMATCH_POSIX.
41384         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
41385         exclude fnmatch-posix.
41386
41387 2009-05-02  Bruno Haible  <bruno@clisp.org>
41388
41389         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
41390         * modules/mbsrtowcs (License): Change to LGPLv2+.
41391         * modules/strnlen1 (License): Likewise.
41392         Reported by Simon Josefsson.
41393
41394 2009-05-02  Bruno Haible  <bruno@clisp.org>
41395
41396         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
41397         "cross".
41398         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
41399         gnulib-tool was called with option --source-base=lib.
41400
41401 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41402
41403         Use automake *-local hooks without commands, for extensibility.
41404         * modules/localcharset (Makefile.am): Rename install-exec-local
41405         rule to install-exec-localcharset, and make it a prerequisite of
41406         install-exec-local.  Likewise, rename the uninstall-local rule to
41407         uninstall-localcharset, and make it a prerequisite of the former.
41408
41409 2009-05-01  Bruno Haible  <bruno@clisp.org>
41410
41411         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
41412         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41413         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
41414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
41415         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
41416         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41417         m4/locale-zh.m4, m4/codeset.m4.
41418
41419         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41420         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
41421         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41422         m4/locale-zh.m4.
41423
41424         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
41425         REPLACE_WCRTOMB if mbstate_t must be replaced.
41426         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
41427         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
41428
41429 2009-05-01  Bruno Haible  <bruno@clisp.org>
41430
41431         Avoid compiler warnings when redefining macros defined by <libintl.h>.
41432         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
41433         dngettext, dcngettext, textdomain, bindtextdomain,
41434         bind_textdomain_codeset): Undefine before redefining.
41435
41436 2009-04-30  Bruno Haible  <bruno@clisp.org>
41437
41438         Fix bug introduced on 2009-04-25.
41439         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
41440         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
41441         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
41442         is defined.
41443         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
41444         is defined.
41445         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
41446         is defined.
41447         Reported by Elbert_Pol <elbert.pol@gmail.com>.
41448
41449 2009-04-28  Bruno Haible  <bruno@clisp.org>
41450
41451         Comment tweaks.
41452         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
41453         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
41454         * lib/unicase.h (u*_casexfrm): Likewise.
41455         Reported by Paolo Bonzini.
41456
41457 2009-04-28  Bruno Haible  <bruno@clisp.org>
41458
41459         Fix a compilation error.
41460         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
41461         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41462         Reported by Jim Meyering.
41463
41464 2009-04-27  Bruno Haible  <bruno@clisp.org>
41465
41466         New module 'libunistring'.
41467         * modules/libunistring: New file.
41468         * m4/libunistring.m4: New file.
41469         * MODULES.html.sh (Unicode string functions): Add it.
41470
41471 2009-04-27  Eric Blake  <ebb9@byu.net>
41472
41473         maint.mk: allow package-specific header to provide <config.h>
41474         * top/maint.mk (sc_require_config_h): New variable.
41475         (sc_require_config_h, sc_require_config_h_first): Use it.
41476
41477 2009-04-27  Simon Josefsson  <simon@josefsson.org>
41478
41479         * top/maint.mk (sc_avoid_if_before_free): Except
41480         useless-if-before-free script.
41481
41482 2009-04-27  Eric Blake  <ebb9@byu.net>
41483
41484         maintainer-makefile: depend on all required helper scripts
41485         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
41486         useless-if-before-free.
41487         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
41488         version, rather than assuming gnulib checkout is available.
41489         Reported by Simen Josefsson.
41490
41491 2009-04-26  Bruno Haible  <bruno@clisp.org>
41492
41493         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
41494         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
41495         "../" or "..".
41496
41497 2009-04-26  Bruno Haible  <bruno@clisp.org>
41498
41499         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
41500         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
41501         AC_LIB_HAVE_LINKFLAGS.
41502
41503 2009-04-26  Bruno Haible  <bruno@clisp.org>
41504
41505         Simplify calling convention of u*_conv_from_encoding.
41506         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
41507         u32_conv_from_encoding): Expect a resultbuf argument and return the
41508         result directly as a pointer.
41509         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
41510         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
41511         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
41512         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
41513         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
41514         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41515         Update.
41516         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
41517         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
41518         * lib/vasnprintf.c (VASNPRINTF): Update.
41519         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
41520         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
41521         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
41522         * NEWS: Mention the change.
41523
41524 2009-04-26  Bruno Haible  <bruno@clisp.org>
41525
41526         Simplify calling convention of u*_conv_to_encoding.
41527         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41528         u32_conv_to_encoding): Expect a resultbuf argument and return the
41529         result directly as a pointer.
41530         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41531         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
41532         freeing scaled_offsets if mem_iconveha failed.
41533         * lib/unicase/u-casexfrm.h (FUNC): Update.
41534         * lib/uninorm/u-normxfrm.h (FUNC): Update.
41535         * lib/vasnprintf.c (VASNPRINTF): Update.
41536         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
41537         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
41538         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
41539         * NEWS: Mention the change.
41540
41541 2009-04-26  Bruno Haible  <bruno@clisp.org>
41542
41543         Avoid test failures on AIX and OSF/1.
41544         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
41545         malloc(0).
41546         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41547         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41548         Likewise.
41549         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
41550         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
41551         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
41552         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
41553         * doc/posix-functions/malloc.texi: Document the portability problem
41554         related to malloc(0).
41555
41556 2009-04-26  Bruno Haible  <bruno@clisp.org>
41557
41558         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
41559         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
41560         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
41561
41562 2009-04-25  Bruno Haible  <bruno@clisp.org>
41563
41564         Avoid link error when creating a namespace clean library.
41565         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
41566         as macro with arguments if already defined as an alias.
41567         * lib/signbitf.c (gl_signbitf): Don't undefine.
41568         * lib/signbitd.c (gl_signbitd): Don't undefine.
41569         * lib/signbitl.c (gl_signbitl): Don't undefine.
41570
41571 2009-04-25  Jim Meyering  <meyering@redhat.com>
41572
41573         vc-list-files: fix another quoting bug
41574         * build-aux/vc-list-files: Avoid sed backslash expansion
41575         of pathological directory names.
41576
41577 2009-04-25  Eric Blake  <ebb9@byu.net>
41578
41579         vc-list-files: fix shell quoting error
41580         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
41581         timestamp.
41582
41583 2009-04-25  Jim Meyering  <meyering@redhat.com>
41584
41585         vc-list-files: restore lost functionality with subdir argument
41586         * build-aux/vc-list-files: When given a non-"." sub-directory
41587         argument, substitute the $dir/ prefix back onto each resulting name.
41588         Otherwise, coreutils' root_tests check would fail.
41589
41590 2009-04-24  Eric Blake  <ebb9@byu.net>
41591
41592         vc-list-files: ignore git symlinks
41593         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
41594         than ls-files, to ignore git symlinks.
41595
41596         maint.mk: import improvements from m4
41597         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
41598         (move_if_change): Delete unused macro.
41599         (news-date-check, vc-diff-check): Support VPATH builds.
41600         (announcement): Likewise.  Split --bootstrap-tools list...
41601         (boostrap-tools): ...into separate list, which can be overridden
41602         in cfg.mk.
41603         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
41604         requiring dependency on useless-if-before-free module.
41605         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
41606         Support VPATH builds.
41607
41608 2009-04-24  Jim Meyering  <meyering@redhat.com>
41609
41610         maint.mk: remove coreutils-specific rules and variables
41611         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
41612         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
41613         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
41614
41615         maint.mk: remove obsolete rule
41616         * top/maint.mk (rel-check): Remove rule.
41617         (WGET, WGETFLAGS): Remove now-unused variables.
41618
41619 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41620
41621         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
41622         consistency.
41623
41624         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
41625         '$(PATH_SEPARATOR)' instead of ':'.
41626
41627 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41628
41629         * lib/getopt1.c (main): Use 'const' for static array.
41630
41631 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41632
41633         * top/maint.mk: Sync with coreutils.
41634         * NEWS: Explain incompatibilities.
41635
41636 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41637             Bruno Haible  <bruno@clisp.org>
41638
41639         Fix cross-compilation results.
41640         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
41641         statement, as third argument of AC_TRY_RUN.
41642         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41643         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
41644         Likewise.
41645         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41646         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41647         Likewise.
41648         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41649         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
41650         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
41651
41652 2009-04-20  Bruno Haible  <bruno@clisp.org>
41653
41654         Avoid test failure on mingw.
41655         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
41656
41657 2009-04-20  Bruno Haible  <bruno@clisp.org>
41658
41659         Avoid compilation error on mingw.
41660         * modules/localename-tests (Depends-on): Add locale.
41661
41662 2009-04-19  Bruno Haible  <bruno@clisp.org>
41663
41664         Support for building a shared library on Windows platforms.
41665         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
41666         (main): Test the presence of UNINORM_NFC here.
41667         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
41668         (main): Test the presence of UNINORM_NFD here.
41669         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
41670         (main): Test the presence of UNINORM_NFKC here.
41671         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
41672         (main): Test the presence of UNINORM_NFKD here.
41673
41674 2009-04-19  Bruno Haible  <bruno@clisp.org>
41675
41676         Avoid a compiler warning.
41677         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
41678         Change type of variable 'sequence'.
41679
41680 2009-04-19  Bruno Haible  <bruno@clisp.org>
41681
41682         * modules/configmake (Makefile.am): When the contents of configmake.h
41683         does not change, arrange to preserve its modification time.
41684
41685 2009-04-17  Simon Josefsson  <simon@josefsson.org>
41686
41687         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
41688         gettext domain.
41689
41690 2009-04-16  Jim Meyering  <meyering@redhat.com>
41691
41692         useless-if-before-free: improve conversion code
41693         * build-aux/useless-if-before-free: Adjust code-in-comment to match
41694         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
41695
41696 2009-04-14  Bruno Haible  <bruno@clisp.org>
41697
41698         * modules/fcntl (Depends-on): Add extensions.
41699         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
41700
41701 2009-04-12  Ben Pfaff  <blp@gnu.org>
41702
41703         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
41704         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
41705
41706 2009-03-20  Ben Pfaff  <blp@gnu.org>
41707
41708         Make rename replace existing destinations on Windows.
41709         * m4/rename.m4: Add test for Mingw.
41710         * lib/rename.c: Add rename replacement that uses MoveFileEx with
41711         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
41712         * doc/posix-functions/rename.texi: Document.
41713
41714 2009-04-10  Bruno Haible  <bruno@clisp.org>
41715
41716         New include file "iconveh.h".
41717         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
41718         * lib/striconveh.h: Include it.
41719         (enum iconv_ilseq_handler): Remove definition.
41720         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
41721         striconveh.h.
41722         * lib/striconveha.c: Include striconveh.h.
41723         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
41724         * modules/striconveh (Files): Add lib/iconveh.h.
41725         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
41726         lib/striconveh.h.
41727
41728 2009-04-10  Bruno Haible  <bruno@clisp.org>
41729
41730         * lib/uniconv.h: Update comment.
41731
41732 2009-04-10  Bruno Haible  <bruno@clisp.org>
41733
41734         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
41735         always.
41736         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41737         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41738         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41739         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
41740         "unistring-notinline.h", so that the function gets defined always.
41741         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41742         * lib/unistr/u8-uctomb.c: Likewise.
41743         * lib/unistr/u16-mbtouc.c: Likewise.
41744         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41745         * lib/unistr/u16-uctomb.c: Likewise.
41746         * lib/unistr/u32-mbtouc.c: Likewise.
41747         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41748         * lib/unistr/u32-uctomb.c: Likewise.
41749
41750 2009-04-10  Bruno Haible  <bruno@clisp.org>
41751
41752         Mark 'utime' obsolete.
41753         * modules/utime (Status, Notice): New sections.
41754         Suggested by Jim Meyering.
41755
41756         Fix cross-compile guess for utime test.
41757         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
41758         autoconf.
41759         * doc/posix-functions/utime.texi: Give more precisions.
41760         Reported by Jan <ipif@ymail.com>.
41761
41762 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
41763
41764         filevercmp: correct today's change
41765         * lib/filevercmp.c: Also handle coreutils' test inputs.
41766         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
41767
41768         Fix regression in 'filevercmp' module. Thanks Sven Joachim
41769         for reporting it.
41770         * lib/filevercmp.c: Special handle for "", "." and "..".
41771         * tests/test-filevercmp.c: Enlarge the set suite.
41772
41773 2009-04-07  Jim Meyering  <meyering@redhat.com>
41774
41775         useless-if-before-free: show how to remove braced useless free, too
41776         * build-aux/useless-if-before-free: still only in a comment, though.
41777
41778 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
41779
41780         maint.mk: import changes to syntax-check macros from coreutils
41781         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
41782         Use them in the relevant macros.
41783
41784 2009-04-06  Bruno Haible  <bruno@clisp.org>
41785
41786         Fix unportable use of bit-fields.
41787         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
41788         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
41789         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
41790
41791 2009-04-06  Bruno Haible  <bruno@clisp.org>
41792
41793         Avoid test failures on AIX and OSF/1.
41794         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
41795         that malloc(0) = NULL.
41796         * tests/unicase/test-u8-tolower.c (check): Likewise.
41797         * tests/unicase/test-u8-totitle.c (check): Likewise.
41798         * tests/unicase/test-u8-toupper.c (check): Likewise.
41799         * tests/unicase/test-u16-casefold.c (check): Likewise.
41800         * tests/unicase/test-u16-tolower.c (check): Likewise.
41801         * tests/unicase/test-u16-totitle.c (check): Likewise.
41802         * tests/unicase/test-u16-toupper.c (check): Likewise.
41803         * tests/unicase/test-u32-casefold.c (check): Likewise.
41804         * tests/unicase/test-u32-tolower.c (check): Likewise.
41805         * tests/unicase/test-u32-totitle.c (check): Likewise.
41806         * tests/unicase/test-u32-toupper.c (check): Likewise.
41807         * tests/uninorm/test-u8-nfc.c (check): Likewise.
41808         * tests/uninorm/test-u8-nfd.c (check): Likewise.
41809         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
41810         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
41811         * tests/uninorm/test-u16-nfc.c (check): Likewise.
41812         * tests/uninorm/test-u16-nfd.c (check): Likewise.
41813         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
41814         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
41815         * tests/uninorm/test-u32-nfc.c (check): Likewise.
41816         * tests/uninorm/test-u32-nfd.c (check): Likewise.
41817         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
41818         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
41819
41820 2009-04-05  Bruno Haible  <bruno@clisp.org>
41821
41822         Work around an autoconf limitation.
41823         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
41824         comment line if it would be longer than 3 KB.
41825
41826 2009-04-05  Bruno Haible  <bruno@clisp.org>
41827
41828         Avoid test failure with libiconv-1.13.
41829         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
41830         of the expected test results.
41831
41832 2009-04-05  Bruno Haible  <bruno@clisp.org>
41833
41834         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
41835         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
41836         that it should be installed.
41837
41838 2009-04-05  Bruno Haible  <bruno@clisp.org>
41839
41840         * gnulib-tool: New option --copy-file.
41841         (func_usage): Document it.
41842         (func_dest_tmpfilename): Moved out of func_import.
41843         (func_add_file, func_update_file): New functions, extracted from
41844         func_import.
41845         (func_import): Update.
41846
41847 2009-04-05  Karl Berry  <karl@gnu.org>
41848
41849         * README: prominently mention gnulib-tool.
41850         Rearrange sections so getting the code is near the top.
41851
41852 2009-04-05  Bruno Haible  <bruno@clisp.org>
41853
41854         * lib/unicase.h: Mention u*_cmp2.
41855         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41856         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
41857         * lib/unicase/ulc-casecmp.c: Likewise.
41858         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
41859         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
41860         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
41861         unistr/u8-cmp.
41862         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
41863         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
41864         unistr/u16-cmp.
41865         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
41866         unistr/u32-cmp.
41867
41868         * lib/uninorm.h: Mention u*_cmp2.
41869         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41870         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
41871         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
41872         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
41873         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
41874         unistr/u8-cmp.
41875         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
41876         unistr/u16-cmp.
41877         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
41878         unistr/u32-cmp.
41879
41880         New module 'unistr/u32-cmp2'.
41881         * lib/unistr/u32-cmp2.c: New file.
41882         * modules/unistr/u32-cmp2: New file.
41883
41884         New module 'unistr/u16-cmp2'.
41885         * lib/unistr/u16-cmp2.c: New file.
41886         * modules/unistr/u16-cmp2: New file.
41887
41888         New module 'unistr/u8-cmp2'.
41889         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
41890         * lib/unistr/u8-cmp2.c: New file.
41891         * lib/unistr/u-cmp2.h: New file.
41892         * modules/unistr/u8-cmp2: New file.
41893
41894 2009-04-05  Bruno Haible  <bruno@clisp.org>
41895
41896         * lib/unictype.h (uc_property_is_valid): New macro.
41897         * tests/unictype/test-pr_byname.c (main): Use it.
41898
41899         * lib/unistr.h: Doc fixes.
41900         * lib/uniconv.h: Doc fixes.
41901         * lib/unictype.h: Doc fixes.
41902
41903 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
41904
41905         Port coreutils 7.2 to Solaris 8.
41906
41907         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
41908         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
41909         for Solaris 8.  This is a bit of a hack, as it means it's the
41910         caller's responsibility to add -lnsl if needed, but most likely it
41911         won't be needed since only getaddrinfo uses this and getaddrinfo
41912         isn't needed on Solaris 8.
41913
41914         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
41915         problem to Solaris 8 encountered with coreutils 7.2, which
41916         resulted in a message "fnmatch.c:292: warning: passing argument 4
41917         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
41918         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
41919
41920 2009-04-03  Simon Josefsson  <simon@josefsson.org>
41921
41922         * m4/ld-version-script.m4: Add FIXME comment.
41923
41924 2009-04-02  Simon Josefsson  <simon@josefsson.org>
41925
41926         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
41927         SOVERSION variable.
41928
41929 2009-04-02  Bruno Haible  <bruno@clisp.org>
41930
41931         * Makefile (info, html, dvi, pdf): Combine the rules.
41932         Suggested by Jim Meyering.
41933
41934 2009-04-01  Bruno Haible  <bruno@clisp.org>
41935
41936         * Makefile (info, html, dvi, pdf): New targets.
41937         Reported by Reuben Thomas <rrt@sc3d.org>.
41938
41939 2009-04-01  Bruno Haible  <bruno@clisp.org>
41940
41941         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
41942         can be put into PATH.
41943         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
41944
41945 2009-04-01  Bruno Haible  <bruno@clisp.org>
41946
41947         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
41948
41949 2009-04-01  Bruno Haible  <bruno@clisp.org>
41950
41951         Rename module 'visibility'.
41952         * modules/lib-symbol-visibility: Renamed from modules/visibility.
41953         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
41954         * doc/gnulib.texi: Update.
41955         * MODULES.html.sh (Misc): Update.
41956         * NEWS: Mention the change.
41957
41958 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41959
41960         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
41961         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
41962         Eric Blake <ebb9@byu.net> for review.
41963         * MODULES.html.sh: Add lib-msvc-compat.
41964         * doc/gnulib.texi: Link to new section.
41965         * m4/ld-output-def.m4: New file.
41966         * doc/ld-output-def.texi: New file.
41967
41968 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41969
41970         Rename ld-version-script to lib-symbol-versions.  Suggested by
41971         Bruno Haible <bruno@clisp.org>.
41972         * modules/ld-version-script: Renamed to lib-symbol-versions.
41973         * doc/ld-version-script.texi: Fix module name.
41974         * MODULES.html.sh: Add lib-symbol-versions.
41975
41976 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41977
41978         * modules/u64-tests: New file.
41979         * tests/test-u64.c: New file.
41980
41981 2009-03-04  Simon Josefsson  <simon@josefsson.org>
41982
41983         * MODULES.html.sh: Mention u64.
41984         * modules/u64: New module.
41985         * modules/crypto/sha512: Depend on u64 module instead of providing
41986         u64.h.
41987
41988 2009-03-27  Eric Blake  <ebb9@byu.net>
41989
41990         test-strerror: make debugging EAI_SYSTEM easier
41991         * modules/getaddrinfo-tests (Depends-on): Add strerror.
41992         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
41993         failure was EAI_SYSTEM.
41994
41995 2009-03-25  Bruno Haible  <bruno@clisp.org>
41996
41997         Fix a problem with --enable-relocatable on Solaris 7.
41998         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
41999         since 2008-02-24.
42000
42001 2009-03-25  Eric Blake  <ebb9@byu.net>
42002
42003         test-sockets: avoid gcc warning
42004         * tests/test-sockets.c (main): Silence compiler warning.
42005
42006 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
42007
42008         New modules nproc, pthread, contributed by Glen Lenker.
42009
42010         * MODULES.html.sh: Add pthread, nproc.
42011         * lib/nproc.c: New file.
42012         * lib/nproc.h: New file.
42013         * lib/pthread.in.h: New file.
42014         * m4/pthread.m4: New file.
42015         * modules/nproc: New file.
42016         * modules/pthread: New file.
42017
42018 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42019
42020         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
42021         New variable.
42022
42023 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
42024
42025         filevercmp: handle simple~ and numbered.~3~ backup suffixes
42026         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
42027         * tests/test-filevercmp.c: Add tests for backup suffixes.
42028
42029 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42030
42031         * modules/stdlib (Depends-on): Add stdint, needed when defining
42032         struct random_data on, for example, HP-UX 10.20.  Reported by
42033         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42034
42035 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42036
42037         * lib/readline.c (readline): Call fflush on stdout after printing
42038         prompt.
42039
42040 2009-03-20  Bruno Haible  <bruno@clisp.org>
42041
42042         Remove dependency from 'close' module to -lws2_32 on native Windows.
42043         * lib/close-hook.h: New file.
42044         * lib/close-hook.c: New file.
42045         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
42046         w32sock.h.
42047         (_gl_close_fd_maybe_socket): Remove function.
42048         (rpl_close): Invoke execute_all_close_hooks instead of
42049         _gl_close_fd_maybe_socket.
42050         * lib/sockets.c: Include close-hook.h, w32sock.h.
42051         (close_fd_maybe_socket): New function, essentially from lib/close.c.
42052         (close_sockets_hook): New variable.
42053         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
42054         (gl_sockets_cleanup): Unregister it.
42055         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
42056         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
42057         * modules/close-hook: New file.
42058         * modules/close (Files): Remove lib/w32sock.h.
42059         (Depends-on): Add close-hook.
42060         (Link): Remove section.
42061         * modules/sockets (Files): Add lib/w32sock.h.
42062         (Depends-on): Add close-hook.
42063         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
42064         invocation.
42065         * NEWS: Mention that LIB_CLOSE is gone.
42066
42067 2009-03-23  Eric Blake  <ebb9@byu.net>
42068
42069         signal-tests: test previous patch
42070         * tests/test-signal.c: New file.
42071         * modules/signal-tests: Likewise.
42072
42073         signal.h: always support 'volatile sig_atomic_t'
42074         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
42075         (gl_SIGNAL_H_DEFAULTS): Add a default.
42076         * modules/signal (Makefile.am): Substitute if needed.
42077         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
42078         users can blindly add volatile.
42079         * doc/posix-headers/signal.texi (signal.h): Document it.
42080         Reported by Matthew Woehlke.
42081
42082 2009-03-23  Jim Meyering  <meyering@redhat.com>
42083
42084         pathmax: PATH_MAX: use pathconf only when available
42085         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
42086         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
42087         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
42088         This avoids a link failure in a PSP cross-compilation environment
42089         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
42090
42091         * lib/vasnprintf.c (divide): Fix typo in comment.
42092
42093 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42094
42095         * gnulib-tool (func_filter_filelist): Fix comment.
42096
42097 2009-03-20  Bruno Haible  <bruno@clisp.org>
42098
42099         Make sockets.h self-contained.
42100         * lib/sockets.c: Include sockets.h first.
42101         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
42102
42103 2009-03-19  Eric Blake  <ebb9@byu.net>
42104
42105         doc: mention more functions added in cygwin 1.7.0
42106         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
42107         addition.
42108         * doc/posix-functions/log2f.texi: Likewise.
42109
42110 2009-03-19  Jim Meyering  <meyering@redhat.com>
42111
42112         fsusage: avoid syntax error due to statement-before-declaration
42113         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
42114         after all declarations.  Reported by Matthew Woehlke in
42115         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
42116
42117 2009-03-18  Eric Blake  <ebb9@byu.net>
42118
42119         build-aux/compile: sync from automake
42120         * build-aux/compile: New file, from automake.
42121         * config/srclist.txt: Mention build-aux/compile.
42122
42123 2009-03-17  Bruno Haible  <bruno@clisp.org>
42124
42125         * lib/git-merge-changelog.c: Fix typo in comment.
42126         Reported by Reuben Thomas <rrt@sc3d.org>.
42127
42128 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
42129
42130         * m4/regex.m4: update and improve help for
42131         --without-included-regex.
42132
42133 2009-03-17  Simon Josefsson  <simon@josefsson.org>
42134
42135         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
42136         failure on missing include files.
42137
42138 2009-03-17  Eric Blake  <ebb9@byu.net>
42139
42140         doc: mention more functions added in cygwin 1.7.0
42141         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
42142         addition.
42143         * doc/posix-functions/fwscanf.texi: Likewise.
42144         * doc/posix-functions/swprintf.texi: Likewise.
42145         * doc/posix-functions/swscanf.texi: Likewise.
42146         * doc/posix-functions/vfwprintf.texi: Likewise.
42147         * doc/posix-functions/vfwscanf.texi: Likewise.
42148         * doc/posix-functions/vswprintf.texi: Likewise.
42149         * doc/posix-functions/vswscanf.texi: Likewise.
42150         * doc/posix-functions/vwprintf.texi: Likewise.
42151         * doc/posix-functions/vwscanf.texi: Likewise.
42152         * doc/posix-functions/wcscasecmp.texi: Likewise.
42153         * doc/posix-functions/wcsdup.texi: Likewise.
42154         * doc/posix-functions/wcsftime.texi: Likewise.
42155         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42156         * doc/posix-functions/wprintf.texi: Likewise.
42157         * doc/posix-functions/wscanf.texi: Likewise.
42158         * doc/glibc-functions/gethostbyname2.texi: Likewise.
42159
42160 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42161
42162         maint.mk: really add $(AM_MAKEFLAGS)
42163         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
42164         was inadvertently omitted in the last commit.
42165         Spotted by Bruno Haible.
42166
42167         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
42168         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
42169         $(AM_MAKEFLAGS)' rather than plain `make'.
42170
42171         gnulib-tool: execute $MAKE not make
42172         * gnulib-tool: Default $MAKE to 'make'.
42173         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
42174         than make.  Initialize $MAKE in the do-autobuild script.
42175
42176         gnulib-tool: use $MAKE not make in generated files
42177         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
42178         make, in generated files.  Initialize $MAKE in the do-autobuild
42179         script.
42180
42181         * top/GNUmakefile (_have-git-version-gen): Fix typo.
42182
42183         GNUmakefile: disable parallelism only for multiple, recursive targets
42184         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
42185         additions in the Makefile.
42186         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
42187         by Automake.
42188         (.NOTPARALLEL): Only disable parallel builds if multiple targets
42189         are listed on the command line and at least one of them is
42190         listed in $(ALL_RECURSIVE_TARGETS).
42191
42192 2009-03-14  Bruno Haible  <bruno@clisp.org>
42193
42194         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
42195         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
42196         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
42197         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
42198         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
42199         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
42200         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
42201         unistr/u8-uctomb.
42202         * modules/unistr/u8-strchr (Depends-on): Likewise.
42203         * modules/unistr/u8-strrchr (Depends-on): Likewise.
42204         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
42205         unistr/u16-uctomb.
42206         * modules/unistr/u16-strchr (Depends-on): Likewise.
42207         * modules/unistr/u16-strrchr (Depends-on): Likewise.
42208
42209 2009-03-12  Bruno Haible  <bruno@clisp.org>
42210
42211         Work around select() bug on Interix 3.5.
42212         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
42213         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
42214         * m4/select.m4: New file.
42215         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
42216         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
42217         * modules/select (Files): Add m4/select.m4.
42218         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
42219         * modules/nanosleep (Depends-on): Add select.
42220         * modules/poll (Depends-on): Likewise.
42221         * doc/posix-functions/select.texi: Mention the Interix bug.
42222         Reported by Markus Duft <mduft@gentoo.org>.
42223
42224         * lib/select.c: Renamed from lib/winsock-select.c.
42225         * modules/select (Files): Add lib/select.c, remove
42226         lib/winsock-select.c.
42227         (configure.ac): Update.
42228
42229 2009-03-12  Jim Meyering  <meyering@redhat.com>
42230
42231         avoid gcc warnings about unused macro definitions
42232         * lib/readtokens.c (STREQ): Remove unused definition.
42233         * lib/xmalloc.c (SIZE_MAX): Likewise.
42234         * lib/openat-die.c (N_): Likewise.
42235         * lib/mountlist.c (SIZE_MAX): Remove definition.
42236         Instead, include <stdint.h>.
42237         * lib/readutmp.c: Likewise.
42238         * modules/readutmp (Depends-on): Add stdint.
42239         * modules/mountlist (Depends-on): Add stdint.
42240         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
42241
42242 2009-03-10  Bruno Haible  <bruno@clisp.org>
42243
42244         Tests for module 'mbmemcasecoll'.
42245         * modules/mbmemcasecoll-tests: New file.
42246         * tests/test-mbmemcasecoll1.sh: New file.
42247         * tests/test-mbmemcasecoll2.sh: New file.
42248         * tests/test-mbmemcasecoll3.sh: New file.
42249         * tests/test-mbmemcasecoll.c: New file.
42250
42251         New module 'mbmemcasecoll'.
42252         * lib/mbmemcasecoll.h: New file.
42253         * lib/mbmemcasecoll.c: New file.
42254         * modules/mbmemcasecoll: New file.
42255
42256         * tests/test-mbmemcasecmp.h: New file, extracted from
42257         tests/test-mbmemcasecmp.c.
42258         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
42259         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
42260         (main): Update.
42261         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
42262
42263 2009-03-09  Bruno Haible  <bruno@clisp.org>
42264
42265         Tests for module 'mbmemcasecmp'.
42266         * modules/mbmemcasecmp-tests: New file.
42267         * tests/test-mbmemcasecmp1.sh: New file.
42268         * tests/test-mbmemcasecmp2.sh: New file.
42269         * tests/test-mbmemcasecmp3.sh: New file.
42270         * tests/test-mbmemcasecmp.c: New file.
42271
42272         New module 'mbmemcasecmp'.
42273         * lib/mbmemcasecmp.h: New file.
42274         * lib/mbmemcasecmp.c: New file.
42275         * modules/mbmemcasecmp: New file.
42276
42277 2009-03-09  Bruno Haible  <bruno@clisp.org>
42278
42279         Tests for module 'unicase/ulc-casecoll'.
42280         * modules/unicase/ulc-casecoll-tests: New file.
42281         * tests/unicase/test-ulc-casecoll1.sh: New file.
42282         * tests/unicase/test-ulc-casecoll2.sh: New file.
42283         * tests/unicase/test-ulc-casecoll.c: New file.
42284
42285         New module 'unicase/ulc-casecoll'.
42286         * lib/unicase.h (ulc_casecoll): New declaration.
42287         * lib/unicase/ulc-casecoll.c: New file.
42288         * modules/unicase/ulc-casecoll: New file.
42289
42290         New module 'unicase/ulc-casexfrm'.
42291         * lib/unicase.h (ulc_casexfrm): New declaration.
42292         * lib/unicase/ulc-casexfrm.c: New file.
42293         * modules/unicase/ulc-casexfrm: New file.
42294
42295 2009-03-09  Bruno Haible  <bruno@clisp.org>
42296
42297         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
42298         invocations.
42299
42300         * m4/mbscasecmp.m4: Remove file.
42301         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
42302         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
42303
42304         * m4/mbscasestr.m4: Remove file.
42305         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
42306         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
42307
42308         * m4/mbschr.m4: Remove file.
42309         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
42310         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
42311
42312         * m4/mbscspn.m4: Remove file.
42313         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
42314         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
42315
42316         * m4/mbslen.m4: Remove file.
42317         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
42318         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
42319
42320         * m4/mbsncasecmp.m4: Remove file.
42321         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
42322         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
42323
42324         * m4/mbsnlen.m4: Remove file.
42325         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
42326         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
42327
42328         * m4/mbspbrk.m4: Remove file.
42329         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
42330         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
42331
42332         * m4/mbspcasecmp.m4: Remove file.
42333         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
42334         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
42335
42336         * m4/mbsrchr.m4: Remove file.
42337         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
42338         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
42339
42340         * m4/mbssep.m4: Remove file.
42341         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
42342         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
42343
42344         * m4/mbsspn.m4: Remove file.
42345         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
42346         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
42347
42348         * m4/mbsstr.m4: Remove file.
42349         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
42350         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
42351
42352         * m4/mbstok_r.m4: Remove file.
42353         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
42354         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
42355
42356         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
42357
42358         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
42359         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
42360
42361         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
42362
42363 2009-03-08  Bruno Haible  <bruno@clisp.org>
42364
42365         Tests for module 'unicase/ulc-casecmp'.
42366         * modules/unicase/ulc-casecmp-tests: New file.
42367         * tests/unicase/test-ulc-casecmp1.sh: New file.
42368         * tests/unicase/test-ulc-casecmp2.sh: New file.
42369         * tests/unicase/test-ulc-casecmp.c: New file.
42370
42371         New module 'unicase/ulc-casecmp'.
42372         * lib/unicase.h (ulc_casecmp): New declaration.
42373         * lib/unicase/ulc-casecmp.c: New file.
42374         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
42375         'const SRC_UNIT *'.
42376         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
42377         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
42378         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
42379         * modules/unicase/ulc-casecmp: New file.
42380
42381         Tests for module 'unicase/u32-is-cased'.
42382         * modules/unicase/u32-is-cased-tests: New file.
42383         * tests/unicase/test-u32-is-cased.c: New file.
42384
42385         Tests for module 'unicase/u16-is-cased'.
42386         * modules/unicase/u16-is-cased-tests: New file.
42387         * tests/unicase/test-u16-is-cased.c: New file.
42388
42389         Tests for module 'unicase/u8-is-cased'.
42390         * modules/unicase/u8-is-cased-tests: New file.
42391         * tests/unicase/test-u8-is-cased.c: New file.
42392         * tests/unicase/test-is-cased.h: New file.
42393
42394         New module 'unicase/u32-is-cased'.
42395         * lib/unicase/u32-is-cased.c: New file.
42396         * modules/unicase/u32-is-cased: New file.
42397
42398         New module 'unicase/u16-is-cased'.
42399         * lib/unicase/u16-is-cased.c: New file.
42400         * modules/unicase/u16-is-cased: New file.
42401
42402         New module 'unicase/u8-is-cased'.
42403         * lib/unicase/u8-is-cased.c: New file.
42404         * lib/unicase/u-is-cased.h: New file.
42405         * modules/unicase/u8-is-cased: New file.
42406
42407         Tests for module 'unicase/u32-is-casefolded'.
42408         * modules/unicase/u32-is-casefolded-tests: New file.
42409         * tests/unicase/test-u32-is-casefolded.c: New file.
42410
42411         Tests for module 'unicase/u16-is-casefolded'.
42412         * modules/unicase/u16-is-casefolded-tests: New file.
42413         * tests/unicase/test-u16-is-casefolded.c: New file.
42414
42415         Tests for module 'unicase/u8-is-casefolded'.
42416         * modules/unicase/u8-is-casefolded-tests: New file.
42417         * tests/unicase/test-u8-is-casefolded.c: New file.
42418         * tests/unicase/test-is-casefolded.h: New file.
42419
42420         New module 'unicase/u32-is-casefolded'.
42421         * lib/unicase/u32-is-casefolded.c: New file.
42422         * modules/unicase/u32-is-casefolded: New file.
42423
42424         New module 'unicase/u16-is-casefolded'.
42425         * lib/unicase/u16-is-casefolded.c: New file.
42426         * modules/unicase/u16-is-casefolded: New file.
42427
42428         New module 'unicase/u8-is-casefolded'.
42429         * lib/unicase/u8-is-casefolded.c: New file.
42430         * modules/unicase/u8-is-casefolded: New file.
42431
42432         Tests for module 'unicase/u32-is-titlecase'.
42433         * modules/unicase/u32-is-titlecase-tests: New file.
42434         * tests/unicase/test-u32-is-titlecase.c: New file.
42435
42436         Tests for module 'unicase/u16-is-titlecase'.
42437         * modules/unicase/u16-is-titlecase-tests: New file.
42438         * tests/unicase/test-u16-is-titlecase.c: New file.
42439
42440         Tests for module 'unicase/u8-is-titlecase'.
42441         * modules/unicase/u8-is-titlecase-tests: New file.
42442         * tests/unicase/test-u8-is-titlecase.c: New file.
42443         * tests/unicase/test-is-titlecase.h: New file.
42444
42445         New module 'unicase/u32-is-titlecase'.
42446         * lib/unicase/u32-is-titlecase.c: New file.
42447         * modules/unicase/u32-is-titlecase: New file.
42448
42449         New module 'unicase/u16-is-titlecase'.
42450         * lib/unicase/u16-is-titlecase.c: New file.
42451         * modules/unicase/u16-is-titlecase: New file.
42452
42453         New module 'unicase/u8-is-titlecase'.
42454         * lib/unicase/u8-is-titlecase.c: New file.
42455         * modules/unicase/u8-is-titlecase: New file.
42456
42457         Tests for module 'unicase/u32-is-lowercase'.
42458         * modules/unicase/u32-is-lowercase-tests: New file.
42459         * tests/unicase/test-u32-is-lowercase.c: New file.
42460
42461         Tests for module 'unicase/u16-is-lowercase'.
42462         * modules/unicase/u16-is-lowercase-tests: New file.
42463         * tests/unicase/test-u16-is-lowercase.c: New file.
42464
42465         Tests for module 'unicase/u8-is-lowercase'.
42466         * modules/unicase/u8-is-lowercase-tests: New file.
42467         * tests/unicase/test-u8-is-lowercase.c: New file.
42468         * tests/unicase/test-is-lowercase.h: New file.
42469
42470         New module 'unicase/u32-is-lowercase'.
42471         * lib/unicase/u32-is-lowercase.c: New file.
42472         * modules/unicase/u32-is-lowercase: New file.
42473
42474         New module 'unicase/u16-is-lowercase'.
42475         * lib/unicase/u16-is-lowercase.c: New file.
42476         * modules/unicase/u16-is-lowercase: New file.
42477
42478         New module 'unicase/u8-is-lowercase'.
42479         * lib/unicase/u8-is-lowercase.c: New file.
42480         * modules/unicase/u8-is-lowercase: New file.
42481
42482         Tests for module 'unicase/u32-is-uppercase'.
42483         * modules/unicase/u32-is-uppercase-tests: New file.
42484         * tests/unicase/test-u32-is-uppercase.c: New file.
42485
42486         Tests for module 'unicase/u16-is-uppercase'.
42487         * modules/unicase/u16-is-uppercase-tests: New file.
42488         * tests/unicase/test-u16-is-uppercase.c: New file.
42489
42490         Tests for module 'unicase/u8-is-uppercase'.
42491         * modules/unicase/u8-is-uppercase-tests: New file.
42492         * tests/unicase/test-u8-is-uppercase.c: New file.
42493         * tests/unicase/test-is-uppercase.h: New file.
42494
42495         New module 'unicase/u32-is-uppercase'.
42496         * lib/unicase/u32-is-uppercase.c: New file.
42497         * modules/unicase/u32-is-uppercase: New file.
42498
42499         New module 'unicase/u16-is-uppercase'.
42500         * lib/unicase/u16-is-uppercase.c: New file.
42501         * modules/unicase/u16-is-uppercase: New file.
42502
42503         New module 'unicase/u8-is-uppercase'.
42504         * lib/unicase/u8-is-uppercase.c: New file.
42505         * modules/unicase/u8-is-uppercase: New file.
42506
42507         New module 'unicase/u32-is-invariant'.
42508         * lib/unicase/u32-is-invariant.c: New file.
42509         * modules/unicase/u32-is-invariant: New file.
42510
42511         New module 'unicase/u16-is-invariant'.
42512         * lib/unicase/u16-is-invariant.c: New file.
42513         * modules/unicase/u16-is-invariant: New file.
42514
42515         New module 'unicase/u8-is-invariant'.
42516         * lib/unicase/u8-is-invariant.c: New file.
42517         * lib/unicase/invariant.h: New file.
42518         * lib/unicase/u-is-invariant.h: New file.
42519         * modules/unicase/u8-is-invariant: New file.
42520
42521         Tests for module 'unicase/u32-casecoll'.
42522         * modules/unicase/u32-casecoll-tests: New file.
42523         * tests/unicase/test-u32-casecoll.c: New file.
42524
42525         Tests for module 'unicase/u16-casecoll'.
42526         * modules/unicase/u16-casecoll-tests: New file.
42527         * tests/unicase/test-u16-casecoll.c: New file.
42528
42529         Tests for module 'unicase/u8-casecoll'.
42530         * modules/unicase/u8-casecoll-tests: New file.
42531         * tests/unicase/test-u8-casecoll.c: New file.
42532
42533         New module 'unicase/u32-casecoll'.
42534         * lib/unicase/u32-casecoll.c: New file.
42535         * modules/unicase/u32-casecoll: New file.
42536
42537         New module 'unicase/u16-casecoll'.
42538         * lib/unicase/u16-casecoll.c: New file.
42539         * modules/unicase/u16-casecoll: New file.
42540
42541         New module 'unicase/u8-casecoll'.
42542         * lib/unicase/u8-casecoll.c: New file.
42543         * lib/unicase/u-casecoll.h: New file.
42544         * modules/unicase/u8-casecoll: New file.
42545
42546         New module 'unicase/u32-casexfrm'.
42547         * lib/unicase/u32-casexfrm.c: New file.
42548         * modules/unicase/u32-casexfrm: New file.
42549
42550         New module 'unicase/u16-casexfrm'.
42551         * lib/unicase/u16-casexfrm.c: New file.
42552         * modules/unicase/u16-casexfrm: New file.
42553
42554         New module 'unicase/u8-casexfrm'.
42555         * lib/unicase/u8-casexfrm.c: New file.
42556         * lib/unicase/u-casexfrm.h: New file.
42557         * modules/unicase/u8-casexfrm: New file.
42558
42559         Tests for module 'unicase/u32-casecmp'.
42560         * modules/unicase/u32-casecmp-tests: New file.
42561         * tests/unicase/test-u32-casecmp.c: New file.
42562
42563         Tests for module 'unicase/u16-casecmp'.
42564         * modules/unicase/u16-casecmp-tests: New file.
42565         * tests/unicase/test-u16-casecmp.c: New file.
42566
42567         Tests for module 'unicase/u8-casecmp'.
42568         * modules/unicase/u8-casecmp-tests: New file.
42569         * tests/unicase/test-u8-casecmp.c: New file.
42570         * tests/unicase/test-casecmp.h: New file.
42571
42572         New module 'unicase/u32-casecmp'.
42573         * lib/unicase/u32-casecmp.c: New file.
42574         * modules/unicase/u32-casecmp: New file.
42575
42576         New module 'unicase/u16-casecmp'.
42577         * lib/unicase/u16-casecmp.c: New file.
42578         * modules/unicase/u16-casecmp: New file.
42579
42580         New module 'unicase/u8-casecmp'.
42581         * lib/unicase/u8-casecmp.c: New file.
42582         * lib/unicase/u-casecmp.h: New file.
42583         * modules/unicase/u8-casecmp: New file.
42584
42585         Tests for module 'unicase/u32-casefold'.
42586         * modules/unicase/u32-casefold-tests: New file.
42587         * tests/unicase/test-u32-casefold.c: New file.
42588
42589         Tests for module 'unicase/u16-casefold'.
42590         * modules/unicase/u16-casefold-tests: New file.
42591         * tests/unicase/test-u16-casefold.c: New file.
42592
42593         Tests for module 'unicase/u8-casefold'.
42594         * modules/unicase/u8-casefold-tests: New file.
42595         * tests/unicase/test-u8-casefold.c: New file.
42596
42597         New module 'unicase/u32-casefold'.
42598         * lib/unicase/u32-casefold.c: New file.
42599         * modules/unicase/u32-casefold: New file.
42600
42601         New module 'unicase/u16-casefold'.
42602         * lib/unicase/u16-casefold.c: New file.
42603         * modules/unicase/u16-casefold: New file.
42604
42605         New module 'unicase/u8-casefold'.
42606         * lib/unicase/u8-casefold.c: New file.
42607         * lib/unicase/u-casefold.h: New file.
42608         * modules/unicase/u8-casefold: New file.
42609
42610         New module 'unicase/tocasefold'.
42611         * lib/unicase/casefold.h: New file.
42612         * lib/unicase/tocasefold.c: New file.
42613         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
42614         * modules/unicase/tocasefold: New file.
42615
42616         Tests for module 'unicase/u32-totitle'.
42617         * modules/unicase/u32-totitle-tests: New file.
42618         * tests/unicase/test-u32-totitle.c: New file.
42619
42620         Tests for module 'unicase/u16-totitle'.
42621         * modules/unicase/u16-totitle-tests: New file.
42622         * tests/unicase/test-u16-totitle.c: New file.
42623
42624         Tests for module 'unicase/u8-totitle'.
42625         * modules/unicase/u8-totitle-tests: New file.
42626         * tests/unicase/test-u8-totitle.c: New file.
42627
42628         New module 'unicase/u32-totitle'.
42629         * lib/unicase/u32-totitle.c: New file.
42630         * modules/unicase/u32-totitle: New file.
42631
42632         New module 'unicase/u16-totitle'.
42633         * lib/unicase/u16-totitle.c: New file.
42634         * modules/unicase/u16-totitle: New file.
42635
42636         New module 'unicase/u8-totitle'.
42637         * lib/unicase/u8-totitle.c: New file.
42638         * lib/unicase/u-totitle.h: New file.
42639         * modules/unicase/u8-totitle: New file.
42640
42641         Tests for module 'unicase/u32-tolower'.
42642         * modules/unicase/u32-tolower-tests: New file.
42643         * tests/unicase/test-u32-tolower.c: New file.
42644
42645         Tests for module 'unicase/u16-tolower'.
42646         * modules/unicase/u16-tolower-tests: New file.
42647         * tests/unicase/test-u16-tolower.c: New file.
42648
42649         Tests for module 'unicase/u8-tolower'.
42650         * modules/unicase/u8-tolower-tests: New file.
42651         * tests/unicase/test-u8-tolower.c: New file.
42652
42653         New module 'unicase/u32-tolower'.
42654         * lib/unicase/u32-tolower.c: New file.
42655         * modules/unicase/u32-tolower: New file.
42656
42657         New module 'unicase/u16-tolower'.
42658         * lib/unicase/u16-tolower.c: New file.
42659         * modules/unicase/u16-tolower: New file.
42660
42661         New module 'unicase/u8-tolower'.
42662         * lib/unicase/u8-tolower.c: New file.
42663         * modules/unicase/u8-tolower: New file.
42664
42665         Tests for module 'unicase/u32-toupper'.
42666         * modules/unicase/u32-toupper-tests: New file.
42667         * tests/unicase/test-u32-toupper.c: New file.
42668
42669         Tests for module 'unicase/u16-toupper'.
42670         * modules/unicase/u16-toupper-tests: New file.
42671         * tests/unicase/test-u16-toupper.c: New file.
42672
42673         Tests for module 'unicase/u8-toupper'.
42674         * modules/unicase/u8-toupper-tests: New file.
42675         * tests/unicase/test-u8-toupper.c: New file.
42676
42677         New module 'unicase/u32-toupper'.
42678         * lib/unicase/u32-toupper.c: New file.
42679         * modules/unicase/u32-toupper: New file.
42680
42681         New module 'unicase/u16-toupper'.
42682         * lib/unicase/u16-toupper.c: New file.
42683         * modules/unicase/u16-toupper: New file.
42684
42685         New module 'unicase/u8-toupper'.
42686         * lib/unicase/u8-toupper.c: New file.
42687         * modules/unicase/u8-toupper: New file.
42688
42689         New module 'unicase/u32-casemap'.
42690         * lib/unicase/u32-casemap.c: New file.
42691         * modules/unicase/u32-casemap: New file.
42692
42693         New module 'unicase/u16-casemap'.
42694         * lib/unicase/u16-casemap.c: New file.
42695         * modules/unicase/u16-casemap: New file.
42696
42697         New module 'unicase/u8-casemap'.
42698         * lib/unicase/unicasemap.h: New file.
42699         * lib/unicase/u8-casemap.c: New file.
42700         * lib/unicase/u-casemap.h: New file.
42701         * modules/unicase/u8-casemap: New file.
42702
42703         New module 'unicase/special-casing'.
42704         * lib/unicase/special-casing.h: New file.
42705         * lib/unicase/special-casing.c: New file.
42706         * lib/unicase/special-casing-table.gperf: New file, generated by
42707         gen-uni-tables.c.
42708         * modules/unicase/special-casing: New file.
42709
42710         Tests for module 'unicase/locale-language'.
42711         * modules/unicase/locale-language-tests: New file.
42712         * tests/unicase/test-locale-language.sh: New file.
42713         * tests/unicase/test-locale-language.c: New file.
42714
42715         New module 'unicase/locale-language'.
42716         * lib/unicase/locale-language.c: New file.
42717         * lib/unicase/locale-languages.gperf: New file.
42718         * modules/unicase/locale-language: New file.
42719
42720         Generate more tables for case conversion and case folding.
42721         * lib/gen-uni-tables.c (SCC_*): New enum items.
42722         (struct special_casing_rule): New type.
42723         (casing_rules, num_casing_rules, allocated_casing_rules): New
42724         variables.
42725         (add_casing_rule, fill_casing_rules): New functions.
42726         (struct casefold_rule): New type.
42727         (casefolding_rules, num_casefolding_rules,
42728         allocated_casefolding_rules): New variables.
42729         (fill_casefolding_rules): New function.
42730         (unicode_casefold): New variable.
42731         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
42732         sort_casing_rules, output_casing_rules): New functions.
42733         (main): Accept to more arguments: SpecialCasing.txt and
42734         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
42735         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
42736         Output mapping for casefolding.
42737
42738         * lib/unicase.h: Include stdbool.h, uninorm.h.
42739         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
42740         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
42741         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
42742         arguments.
42743         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
42744         resultp arguments.
42745         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
42746         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
42747         resultp arguments.
42748         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
42749         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
42750         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
42751         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
42752         declarations.
42753         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
42754
42755 2009-03-08  Bruno Haible  <bruno@clisp.org>
42756
42757         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42758         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
42759         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
42760         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42761
42762 2009-03-07  Bruno Haible  <bruno@clisp.org>
42763
42764         Adjust u*_normcmp, u*_normcoll API.
42765         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42766         u16_normcoll, u32_normcoll): Change failure conventions.
42767         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
42768         errno and return -1.
42769         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42770
42771 2009-03-07  Bruno Haible  <bruno@clisp.org>
42772
42773         Tests for module 'uninorm/u32-normcoll'.
42774         * modules/uninorm/u32-normcoll-tests: New file.
42775         * tests/uninorm/test-u32-normcoll.c: New file.
42776
42777         Tests for module 'uninorm/u16-normcoll'.
42778         * modules/uninorm/u16-normcoll-tests: New file.
42779         * tests/uninorm/test-u16-normcoll.c: New file.
42780
42781         Tests for module 'uninorm/u8-normcoll'.
42782         * modules/uninorm/u8-normcoll-tests: New file.
42783         * tests/uninorm/test-u8-normcoll.c: New file.
42784
42785 2009-03-07  Bruno Haible  <bruno@clisp.org>
42786
42787         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
42788         tests/uninorm/test-u32-normcmp.c.
42789         * tests/uninorm/test-u32-normcmp.c: Include it.
42790         (test_nonascii): New function, extracted from main. Add some more
42791         tests.
42792         (main): Invoke test_ascii and test_nonascii.
42793         * modules/uninorm/u32-normcmp-tests (Files): Add
42794         tests/uninorm/test-u32-normcmp.h.
42795         (Depends-on): Remove uninorm/u32-normcmp.
42796
42797         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
42798         tests/uninorm/test-u16-normcmp.c.
42799         * tests/uninorm/test-u16-normcmp.c: Include it.
42800         (test_nonascii): New function, extracted from main. Add some more
42801         tests.
42802         (main): Invoke test_ascii and test_nonascii.
42803         * modules/uninorm/u16-normcmp-tests (Files): Add
42804         tests/uninorm/test-u16-normcmp.h.
42805         (Depends-on): Remove uninorm/u16-normcmp.
42806
42807         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
42808         tests/uninorm/test-u8-normcmp.c.
42809         * tests/uninorm/test-u8-normcmp.c: Include it.
42810         (test_nonascii): New function, extracted from main. Add some more
42811         tests.
42812         (main): Invoke test_ascii and test_nonascii.
42813         * modules/uninorm/u8-normcmp-tests (Files): Add
42814         tests/uninorm/test-u8-normcmp.h.
42815         (Depends-on): Remove uninorm/u8-normcmp.
42816
42817 2009-03-07  Bruno Haible  <bruno@clisp.org>
42818
42819         New module 'uninorm/u32-normcoll'.
42820         * lib/uninorm/u32-normcoll.c: New file.
42821         * modules/uninorm/u32-normcoll: New file.
42822
42823         New module 'uninorm/u16-normcoll'.
42824         * lib/uninorm/u16-normcoll.c: New file.
42825         * modules/uninorm/u16-normcoll: New file.
42826
42827         New module 'uninorm/u8-normcoll'.
42828         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
42829         declarations.
42830         * lib/uninorm/u8-normcoll.c: New file.
42831         * lib/uninorm/u-normcoll.h: New file.
42832         * modules/uninorm/u8-normcoll: New file.
42833
42834         New module 'uninorm/u32-normxfrm'.
42835         * lib/uninorm/u32-normxfrm.c: New file.
42836         * modules/uninorm/u32-normxfrm: New file.
42837
42838         New module 'uninorm/u16-normxfrm'.
42839         * lib/uninorm/u16-normxfrm.c: New file.
42840         * modules/uninorm/u16-normxfrm: New file.
42841
42842         New module 'uninorm/u8-normxfrm'.
42843         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
42844         declarations.
42845         * lib/uninorm/u8-normxfrm.c: New file.
42846         * lib/uninorm/u-normxfrm.h: New file.
42847         * modules/uninorm/u8-normxfrm: New file.
42848
42849 2009-03-07  Bruno Haible  <bruno@clisp.org>
42850
42851         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
42852         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
42853         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
42854
42855 2009-03-07  Bruno Haible  <bruno@clisp.org>
42856
42857         New module 'memxfrm'.
42858         * lib/memxfrm.h: New file.
42859         * lib/memxfrm.c: New file.
42860         * modules/memxfrm: New file.
42861
42862 2009-03-07  Bruno Haible  <bruno@clisp.org>
42863
42864         New module 'memcmp2'.
42865         * lib/memcmp2.h: New file.
42866         * lib/memcmp2.c: New file.
42867         * modules/memcmp2: New file.
42868
42869 2009-03-07  Bruno Haible  <bruno@clisp.org>
42870
42871         Tests for module 'uninorm/decomposing-form'.
42872         * modules/uninorm/decomposing-form-tests: New file.
42873         * tests/uninorm/test-decomposing-form.c: New file.
42874
42875         New module 'uninorm/decomposing-form'.
42876         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
42877         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
42878         Add 'decomposing_variant' field.
42879         * lib/uninorm/decomposing-form.c: New file.
42880         * lib/uninorm/nfc.c (uninorm_nfc): Update.
42881         * lib/uninorm/nfd.c (uninorm_nfd): Update.
42882         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
42883         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
42884         * modules/uninorm/decomposing-form: New file.
42885         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
42886         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
42887
42888 2009-03-07  Bruno Haible  <bruno@clisp.org>
42889
42890         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
42891         strings.
42892
42893 2009-03-06  Bruno Haible  <bruno@clisp.org>
42894
42895         Tests for module 'uninorm/u32-normcmp'.
42896         * tests/uninorm/test-u32-normcmp.c: New file.
42897         * modules/uninorm/u32-normcmp-tests: New file.
42898
42899         Tests for module 'uninorm/u16-normcmp'.
42900         * tests/uninorm/test-u16-normcmp.c: New file.
42901         * modules/uninorm/u16-normcmp-tests: New file.
42902
42903         Tests for module 'uninorm/u8-normcmp'.
42904         * tests/uninorm/test-u8-normcmp.c: New file.
42905         * modules/uninorm/u8-normcmp-tests: New file.
42906
42907         New module 'uninorm/u32-normcmp'.
42908         * lib/uninorm/u32-normcmp.c: New file.
42909         * modules/uninorm/u32-normcmp: New file.
42910
42911         New module 'uninorm/u16-normcmp'.
42912         * lib/uninorm/u16-normcmp.c: New file.
42913         * modules/uninorm/u16-normcmp: New file.
42914
42915         New module 'uninorm/u8-normcmp'.
42916         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
42917         declarations.
42918         * lib/uninorm/u8-normcmp.c: New file.
42919         * lib/uninorm/u-normcmp.h: New file.
42920         * modules/uninorm/u8-normcmp: New file.
42921
42922 2009-03-06  Bruno Haible  <bruno@clisp.org>
42923
42924         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
42925         Reported by Eric Blake.
42926
42927 2009-03-06  Eric Blake  <ebb9@byu.net>
42928             Bruno Haible  <bruno@clisp.org>
42929
42930         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
42931         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
42932         condition.
42933         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42934         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
42935         condition.
42936         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42937
42938 2009-03-06  Eric Blake  <ebb9@byu.net>
42939
42940         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
42941         to avoid compiler warnings.
42942         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
42943
42944 2009-03-05  Bruno Haible  <bruno@clisp.org>
42945
42946         * tests/test-ftell.c (main): Disable test beyond end of file on
42947         FreeMiNT.
42948         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42949
42950 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
42951
42952         * lib/filevercmp.c: Move hidden files up in ordering.
42953         * tests/test-filevercmp.c: Add tests for hidden files.
42954
42955 2009-03-04  Bruno Haible  <bruno@clisp.org>
42956
42957         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
42958         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
42959         AM_CFLAGS.
42960         Reported by Simon Josefsson.
42961
42962 2009-03-03  Bruno Haible  <bruno@clisp.org>
42963
42964         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
42965         Reported by Simon Josefsson.
42966
42967         * doc/ld-version-script.texi: Update node reference.
42968
42969 2009-03-03  Bruno Haible  <bruno@clisp.org>
42970
42971         * modules/visibility (License): Change to 'unlimited'.
42972         Suggested by Simon Josefsson.
42973
42974 2009-03-03  Jim Meyering  <meyering@redhat.com>
42975
42976         unlinkdir: cannot_unlink_dir may modify process state
42977         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
42978         it's neither thread-safe nor appropriate for use in a library.
42979
42980 2009-03-03  Eric Blake  <ebb9@byu.net>
42981
42982         test-closein: silence test under Darwin
42983         * tests/test-closein.sh: Ignore stderr from cat, since we don't
42984         care if it dies from EPIPE or EBADF.
42985
42986 2009-03-03  Bruno Haible  <bruno@clisp.org>
42987
42988         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
42989         earlier.
42990         * doc/visibility.texi: Fix @node and @section.
42991
42992 2009-03-03  Simon Josefsson  <simon@josefsson.org>
42993
42994         * doc/gnulib.texi: Link to sections for ld version script and
42995         visibility.
42996         * doc/visibility.texi: Add @node and @section.
42997         * modules/ld-version-script: New module.
42998         * m4/ld-version-script.m4: New file.
42999         * doc/ld-version-script.texi: New file.
43000
43001 2009-03-02  David Lutterkort  <lutter@redhat.com>
43002
43003         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
43004         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43005
43006 2009-03-02  Bruno Haible  <bruno@clisp.org>
43007
43008         * doc/visibility.texi: Mention libtool's -export-symbols option.
43009
43010 2009-03-02  Jim Meyering  <meyering@redhat.com>
43011
43012         announce-gen: new option: --no-print-checksums
43013         * build-aux/announce-gen (usage): Describe it.
43014         (print_checksums): Print a newline here, not in the [*] footnote.
43015         (main): Honor it.
43016
43017 2009-03-01  Bruno Haible  <bruno@clisp.org>
43018
43019         Use socklen_t in the native Windows replacements prototypes.
43020         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
43021         instead of 'int'.
43022         * lib/getsockopt.c (rpl_getsockopt): Likewise.
43023         * lib/setsockopt.c (rpl_setsockopt): Likewise.
43024         * modules/getsockopt (Depends-on): Add socklen.
43025         * modules/setsockopt (Depends-on): Add socklen.
43026
43027 2009-03-01  Bruno Haible  <bruno@clisp.org>
43028
43029         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
43030         least 4.2.
43031
43032 2009-03-01  Eric Blake  <ebb9@byu.net>
43033             Bruno Haible  <bruno@clisp.org>
43034
43035         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
43036         error messages.
43037         * lib/wait-process.c (wait_subprocess): Omit error message about
43038         deadly signal sent to the child of termsigp != NULL.
43039
43040 2009-03-01  Eric Blake  <ebb9@byu.net>
43041
43042         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
43043
43044 2009-03-01  Bruno Haible  <bruno@clisp.org>
43045
43046         Avoid a gcc warning.
43047         * tests/test-sched.c (b): Make global.
43048         Reported by Eric Blake.
43049
43050 2009-01-19  Martin Lambers  <marlam@marlam.de>
43051
43052         Provide POSIX semantics for socket timeout options on W32.
43053         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
43054         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
43055         * modules/setsockopt: Depend on sys_time module for struct timeval.
43056         * modules/getsockopt: Depend on sys_time module for struct timeval.
43057
43058 2009-03-01  Simon Josefsson  <simon@josefsson.org>
43059
43060         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
43061         __USE_GNU, for consistency with netdb.in.h.
43062         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43063
43064 2009-03-01  Bruno Haible  <bruno@clisp.org>
43065
43066         More support for FreeMiNT.
43067         * lib/fseeko.c (rpl_fseeko): Complete last commit.
43068         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43069
43070 2009-03-01  Bruno Haible  <bruno@clisp.org>
43071
43072         More support for FreeMiNT.
43073         * lib/fpurge.c (fpurge): Correct last commit.
43074         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43075
43076 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43077
43078         Fix unportable awk script in vc-list-files.
43079         * build-aux/vc-list-files: In the replacement awk script, use
43080         substr with a second argument of 1, not zero.
43081         Report by Simon Josefsson.
43082
43083 2009-02-28  Bruno Haible  <bruno@clisp.org>
43084
43085         More support for FreeMiNT.
43086         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
43087         to FreeMiNT today.
43088         * lib/fwriting.c (fwriting): Likewise.
43089         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
43090
43091 2009-02-28  Bruno Haible  <bruno@clisp.org>
43092
43093         * tests/test-freadseek.c (main): Disable test beyond end of file on
43094         FreeMiNT.
43095         * tests/test-ftello.c (main): Likewise.
43096         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43097
43098 2009-02-28  Bruno Haible  <bruno@clisp.org>
43099
43100         Add tentative support for FreeMiNT.
43101         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
43102         * lib/fpurge.c (fpurge): Likewise.
43103         * lib/freadable.c (freadable): Likewise.
43104         * lib/freading.c (freading): Likewise.
43105         * lib/freadptr.c (freadptr): Likewise.
43106         * lib/freadseek.c (freadptrinc): Likewise.
43107         * lib/fseeko.c (rpl_fseeko): Likewise.
43108         * lib/fseterr.c (fseterr): Likewise.
43109         * lib/fwritable.c (fwritable): Likewise.
43110         * lib/fwriting.c (fwriting): Likewise.
43111         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
43112         Hourihane.
43113         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43114
43115 2009-02-28  Bruno Haible  <bruno@clisp.org>
43116
43117         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
43118         SIGCHLD.
43119         Reported by Jim Meyering.
43120
43121 2009-02-28  Bruno Haible  <bruno@clisp.org>
43122
43123         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
43124         Mention the results of these tests on various platforms.
43125         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
43126         order.
43127         * doc/posix-functions/printf.texi: Likewise.
43128         * doc/posix-functions/snprintf.texi: Likewise.
43129         * doc/posix-functions/sprintf.texi: Likewise.
43130         * doc/posix-functions/vfprintf.texi: Likewise.
43131         * doc/posix-functions/vprintf.texi: Likewise.
43132         * doc/posix-functions/vsnprintf.texi: Likewise.
43133         * doc/posix-functions/vsprintf.texi: Likewise.
43134         * doc/glibc-functions/obstack_printf.texi: Likewise.
43135         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43136
43137 2009-02-28  Bruno Haible  <bruno@clisp.org>
43138
43139         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
43140         Reported by Loïc Minier <lool@dooz.org>.
43141
43142 2009-02-27  Bruno Haible  <bruno@clisp.org>
43143
43144         * gnulib-tool (func_import): Make the sed expression used to create the
43145         sed script for updating the .gitignore file POSIX compliant.
43146         Reported by Eric Blake.
43147
43148 2009-02-27  Bruno Haible  <bruno@clisp.org>
43149
43150         * gnulib-tool (sed): Don't alias as "sed --posix".
43151         Reported by Eric Blake.
43152
43153 2009-02-27  Bruno Haible  <bruno@clisp.org>
43154
43155         Avoid test link errors.
43156         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
43157         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
43158         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
43159         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
43160         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43161
43162 2009-02-27  Bruno Haible  <bruno@clisp.org>
43163
43164         Avoid spurious "(cached)" in configure output.
43165         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
43166         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
43167         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43168         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43169         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43170         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
43171         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43172         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
43173         Reported by Eric Blake.
43174
43175 2009-02-27  Eric Blake  <ebb9@byu.net>
43176
43177         printf: fix regression in previous patch
43178         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
43179
43180 2009-02-27  Bruno Haible  <bruno@clisp.org>
43181
43182         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
43183         value.
43184         * lib/stdint.in.h: Likewise.
43185         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
43186
43187 2009-02-27  Eric Blake  <ebb9@byu.net>
43188
43189         doc: mention more functions added in cygwin 1.7.0
43190         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
43191         addition.
43192         * doc/posix-functions/open_wmemstream.texi: Likewise.
43193         * doc/posix-functions/wcsnlen.texi: Likewise.
43194         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43195         * doc/posix-functions/wcstod.texi: Likewise.
43196         * doc/posix-functions/wcstof.texi: Likewise.
43197         * doc/posix-functions/wcstoimax.texi: Likewise.
43198         * doc/posix-functions/wcstok.texi: Likewise.
43199         * doc/posix-functions/wcstoumax.texi: Likewise.
43200
43201         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
43202         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
43203         * doc/posix-functions/fprintf.texi: Update.
43204         * doc/posix-functions/printf.texi: Update.
43205         * doc/posix-functions/snprintf.texi: Update.
43206         * doc/posix-functions/sprintf.texi: Update.
43207         * doc/posix-functions/vfprintf.texi: Update.
43208         * doc/posix-functions/vprintf.texi: Update.
43209         * doc/posix-functions/vsnprintf.texi: Update.
43210         * doc/posix-functions/vsprintf.texi: Update.
43211         * doc/glibc-functions/obstack_printf.texi: Update.
43212         * doc/glibc-functions/obstack_vprintf.texi: Update.
43213
43214 2009-02-26  Eric Blake  <ebb9@byu.net>
43215
43216         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
43217         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
43218         compilation bug by using runtime conversion.
43219         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
43220         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
43221         * modules/ceill-tests (Files): Use nan.h.
43222         * modules/floorl-tests (Files): Likewise.
43223         * modules/frexpl-tests (Files): Likewise.
43224         * modules/isnanl-tests (Files): Likewise.
43225         * modules/ldexpl-tests (Files): Likewise.
43226         * modules/roundl-tests (Files): Likewise.
43227         * modules/truncl-tests (Files): Likewise.
43228         * tests/test-ceill.c (main): Use a working NaN.
43229         * tests/test-floorl.c (main): Likewise.
43230         * tests/test-frexpl.c (main): Likewise.
43231         * tests/test-isnan.c (test_long_double): Likewise.
43232         * tests/test-isnanl.h (main): Likewise.
43233         * tests/test-ldexpl.h (main): Likewise.
43234         * tests/test-roundl.h (main): Likewise.
43235         * tests/test-truncl.h (main): Likewise.
43236         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
43237
43238 2009-02-26  Eric Blake  <ebb9@byu.net>
43239             Bruno Haible  <bruno@clisp.org>
43240
43241         Work around a *printf bug with %ls on Solaris.
43242         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
43243         precision is specified, sprintf stops converting the wide string
43244         argument when the number of bytes that have been produced by this
43245         conversion equals or exceeds the precision.
43246         * doc/posix-functions/fprintf.texi: Update.
43247         * doc/posix-functions/printf.texi: Update.
43248         * doc/posix-functions/snprintf.texi: Update.
43249         * doc/posix-functions/sprintf.texi: Update.
43250         * doc/posix-functions/vfprintf.texi: Update.
43251         * doc/posix-functions/vprintf.texi: Update.
43252         * doc/posix-functions/vsnprintf.texi: Update.
43253         * doc/posix-functions/vsprintf.texi: Update.
43254         * doc/glibc-functions/obstack_printf.texi: Update.
43255         * doc/glibc-functions/obstack_vprintf.texi: Update.
43256
43257 2009-02-26  Eric Blake  <ebb9@byu.net>
43258
43259         stdlib: favor compiler check of random.h
43260         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
43261         to avoid an ObjC random.h installed by Swarm.
43262
43263 2009-02-26  Bruno Haible  <bruno@clisp.org>
43264
43265         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
43266         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
43267         Reported by Gary V. Vaughan <gary@gnu.org>.
43268
43269 2009-02-26  Bruno Haible  <bruno@clisp.org>
43270
43271         Fix *printf behaviour regarding the %ls directive.
43272         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
43273         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
43274         NEED_PRINTF_DIRECTIVE_LS.
43275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
43276         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43277         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43278         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
43279         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
43280         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
43281         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43282         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43283         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43284         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43285         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43286         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
43287         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43288         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43289         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43290         * doc/posix-functions/fprintf.texi: Update.
43291         * doc/posix-functions/printf.texi: Update.
43292         * doc/posix-functions/snprintf.texi: Update.
43293         * doc/posix-functions/sprintf.texi: Update.
43294         * doc/posix-functions/vfprintf.texi: Update.
43295         * doc/posix-functions/vprintf.texi: Update.
43296         * doc/posix-functions/vsnprintf.texi: Update.
43297         * doc/posix-functions/vsprintf.texi: Update.
43298         * doc/glibc-functions/obstack_printf.texi: Update.
43299         * doc/glibc-functions/obstack_vprintf.texi: Update.
43300         Reported by Eric Blake.
43301
43302 2009-02-25  Bruno Haible  <bruno@clisp.org>
43303
43304         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
43305         with known value.
43306         Reported by Gary V. Vaughan <gary@gnu.org>.
43307
43308 2009-02-25  Bruno Haible  <bruno@clisp.org>
43309
43310         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
43311         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
43312         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
43313         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
43314         Reported by Gary V. Vaughan <gary@gnu.org>.
43315
43316 2009-02-25  Bruno Haible  <bruno@clisp.org>
43317
43318         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
43319         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
43320         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
43321         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
43322         Reported by Gary V. Vaughan <gary@gnu.org>.
43323
43324 2009-02-25  Eric Blake  <ebb9@byu.net>
43325
43326         tests: skip fseek/ftell tests if ungetc is broken
43327         * m4/ungetc.m4: New file.
43328         * modules/fseek-tests: Split test, so ungetc dependency is
43329         separate from rest of test.
43330         * modules/fseeko-tests: Likewise.
43331         * modules/ftell-tests: Likewise.
43332         * modules/ftello-tests: Likewise.
43333         * tests/test-fseek.c (main): Isolate ungetc dependency.
43334         * tests/test-fseeko.c (main): Likewise.
43335         * tests/test-ftell.c (main): Likewise.
43336         * tests/test-ftello.c (main): Likewise.
43337         * tests/test-fseek2.sh: New file.
43338         * tests/test-fseeko2.sh: Likewise.
43339         * tests/test-ftell2.sh: Likewise.
43340         * tests/test-ftello2.sh: Likewise.
43341
43342 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
43343
43344         test-getaddrinfo: fix usage of skip return code 77
43345         * tests/test-gettaddrinfo.c: Return skip code 77 only
43346         for first occurance of skip (4x77 is not 77)
43347
43348 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
43349
43350         strtod: avoid C99 decl-after-statement
43351         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
43352
43353 2009-02-24  Eric Blake  <ebb9@byu.net>
43354
43355         strtod: detect HP-UX 11.31 bug
43356         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
43357         Reported by Gary V. Vaughan.
43358
43359 2009-02-23  Bruno Haible  <bruno@clisp.org>
43360
43361         Fix invalid read past end of memory block.
43362         * lib/vasnprintf.c (DCHAR_SET): Define.
43363         (local_wcslen): Define only when needed.
43364         (local_strnlen, local_wcsnlen): New functions.
43365         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
43366         directives that involve a conversion ourselves.
43367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
43368         wcsnlen, mbrtowc, wcrtomb.
43369         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
43370         * tests/test-vasprintf-posix.c (test_function): Likewise.
43371         * tests/test-snprintf-posix.h (test_function): Likewise.
43372         * tests/test-sprintf-posix.h (test_function): Likewise.
43373         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43374
43375 2009-02-22  Bruno Haible  <bruno@clisp.org>
43376
43377         Implement new clarified decomposition of Hangul syllables.
43378         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
43379         of type LTV, return only a pairwise decomposition.
43380         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
43381         Likewise.
43382         * tests/uninorm/test-decomposition.c (main): Updated expected result.
43383         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
43384         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
43385
43386 2009-02-22  Bruno Haible  <bruno@clisp.org>
43387
43388         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
43389         zero-length results and shrink excess allocated memory.
43390         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
43391         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
43392         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
43393         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
43394         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
43395         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
43396         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
43397         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
43398         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
43399         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
43400         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
43401         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
43402
43403 2009-02-21  Bruno Haible  <bruno@clisp.org>
43404
43405         * doc/gnulib.texi: Include safe-alloc.texi earlier.
43406         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
43407         spaces after a period. Put a space between a macro name and its
43408         argument list. Trivial rewordings.
43409         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
43410         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
43411         (main): Return 0 explicitly.
43412
43413 2009-02-21  Bruno Haible  <bruno@clisp.org>
43414
43415         Tests for module 'uninorm/filter'.
43416         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
43417         * modules/uninorm/filter-tests: New file.
43418
43419         New module 'uninorm/filter'.
43420         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
43421         uninorm_filter_flush, uninorm_filter_free): New declarations.
43422         * lib/uninorm/uninorm-filter.c: New file.
43423         * modules/uninorm/filter: New file.
43424
43425 2009-02-21  Bruno Haible  <bruno@clisp.org>
43426
43427         Tests for module 'uninorm/nfkc'.
43428         * tests/uninorm/test-nfkc.c: New file.
43429         * tests/uninorm/test-u8-nfkc.c: New file.
43430         * tests/uninorm/test-u16-nfkc.c: New file.
43431         * tests/uninorm/test-u32-nfkc.c: New file.
43432         * tests/uninorm/test-u32-nfkc-big.sh: New file.
43433         * tests/uninorm/test-u32-nfkc-big.c: New file.
43434         * modules/uninorm/nfkc-tests: New file.
43435
43436         New module 'uninorm/nfkc'.
43437         * lib/uninorm/nfkc.c: New file.
43438         * modules/uninorm/nfkc: New file.
43439
43440         Tests for module 'uninorm/nfkd'.
43441         * tests/uninorm/test-nfkd.c: New file.
43442         * tests/uninorm/test-u8-nfkd.c: New file.
43443         * tests/uninorm/test-u16-nfkd.c: New file.
43444         * tests/uninorm/test-u32-nfkd.c: New file.
43445         * tests/uninorm/test-u32-nfkd-big.sh: New file.
43446         * tests/uninorm/test-u32-nfkd-big.c: New file.
43447         * modules/uninorm/nfkd-tests: New file.
43448
43449         New module 'uninorm/nfkd'.
43450         * lib/uninorm/nfkd.c: New file.
43451         * modules/uninorm/nfkd: New file.
43452
43453         Tests for module 'uninorm/nfc'.
43454         * tests/uninorm/test-nfc.c: New file.
43455         * tests/uninorm/test-u8-nfc.c: New file.
43456         * tests/uninorm/test-u16-nfc.c: New file.
43457         * tests/uninorm/test-u32-nfc.c: New file.
43458         * tests/uninorm/test-u32-nfc-big.sh: New file.
43459         * tests/uninorm/test-u32-nfc-big.c: New file.
43460         * modules/uninorm/nfc-tests: New file.
43461
43462         New module 'uninorm/nfc'.
43463         * lib/uninorm/nfc.c: New file.
43464         * modules/uninorm/nfc: New file.
43465
43466         Tests for module 'uninorm/nfd'.
43467         * tests/uninorm/test-nfd.c: New file.
43468         * tests/uninorm/test-u8-nfd.c: New file.
43469         * tests/uninorm/test-u16-nfd.c: New file.
43470         * tests/uninorm/test-u32-nfd.c: New file.
43471         * tests/uninorm/test-u32-nfd-big.sh: New file.
43472         * tests/uninorm/test-u32-nfd-big.c: New file.
43473         * tests/uninorm/test-u32-normalize-big.h: New file.
43474         * tests/uninorm/test-u32-normalize-big.c: New file.
43475         * tests/uninorm/NormalizationTest.txt: New file, created from
43476         Unicode 5.1.0 NormalizationTest.txt.
43477         * modules/uninorm/nfd-tests: New file.
43478
43479         New module 'uninorm/nfd'.
43480         * lib/uninorm/nfd.c: New file.
43481         * modules/uninorm/nfd: New file.
43482
43483         New module 'uninorm/u32-normalize'.
43484         * lib/uninorm/u32-normalize.c: New file.
43485         * modules/uninorm/u32-normalize: New file.
43486
43487         New module 'uninorm/u16-normalize'.
43488         * lib/uninorm/u16-normalize.c: New file.
43489         * modules/uninorm/u16-normalize: New file.
43490
43491         New module 'uninorm/u8-normalize'.
43492         * lib/uninorm/u8-normalize.c: New file.
43493         * lib/uninorm/normalize-internal.h: New file.
43494         * lib/uninorm/u-normalize-internal.h: New file.
43495         * modules/uninorm/u8-normalize: New file.
43496
43497         New module 'uninorm/decompose-internal'.
43498         * lib/uninorm/decompose-internal.c: New file.
43499         * modules/uninorm/decompose-internal: New file.
43500
43501         Tests for module 'uninorm/composition'.
43502         * tests/uninorm/test-composition.c: New file.
43503         * modules/uninorm/composition-tests: New file.
43504
43505         New module 'uninorm/composition'.
43506         * lib/uninorm/composition.c: New file.
43507         * lib/uninorm/composition-table.gperf: New file, generated by
43508         gen-uni-tables.
43509         * modules/uninorm/composition: New file.
43510
43511         Tests for module 'uninorm/compat-decomposition'.
43512         * tests/uninorm/test-compat-decomposition.c: New file.
43513         * modules/uninorm/compat-decomposition-tests: New file.
43514
43515         New module 'uninorm/compat-decomposition'.
43516         * lib/uninorm/decompose-internal.h: New file.
43517         * lib/uninorm/compat-decomposition.c: New file.
43518         * modules/uninorm/compat-decomposition: New file.
43519
43520         Tests for module 'uninorm/canonical-decomposition'.
43521         * tests/uninorm/test-canonical-decomposition.c: New file.
43522         * modules/uninorm/canonical-decomposition-tests: New file.
43523
43524         New module 'uninorm/canonical-decomposition'.
43525         * lib/uninorm/canonical-decomposition.c: New file.
43526         * modules/uninorm/canonical-decomposition: New file.
43527
43528         Tests for module 'uninorm/decomposition'.
43529         * tests/uninorm/test-decomposition.c: New file.
43530         * modules/uninorm/decomposition-tests: New file.
43531
43532         New module 'uninorm/decomposition'.
43533         * lib/uninorm/decomposition.c: New file.
43534         * modules/uninorm/decomposition: New file.
43535
43536         New module 'uninorm/decomposition-table'.
43537         * lib/uninorm/decomposition-table.h: New file.
43538         * lib/uninorm/decomposition-table.c: New file.
43539         * lib/uninorm/decomposition-table1.h: New file, generated by
43540         gen-uni-tables.
43541         * lib/uninorm/decomposition-table2.h: New file, generated by
43542         gen-uni-tables.
43543         * modules/uninorm/decomposition-table: New file.
43544
43545         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
43546         (UC_DECOMP_*): New enumeration items.
43547         (get_decomposition): New function.
43548         (struct decomp_table): New type.
43549         (output_decomposition, output_decomposition_tables): New functions.
43550         (unicode_composition_exclusions): New variable.
43551         (fill_composition_exclusions, debug_output_composition_tables): New
43552         functions.
43553         (main): Accept one more argument. Invoke fill_composition_exclusions.
43554         Output decomposition and composition tables.
43555
43556         New module 'uninorm/base'.
43557         * lib/uninorm.h: New file.
43558         * lib/unictype.h: Update comment.
43559         * modules/uninorm/base: New file.
43560
43561 2009-02-21  David Lutterkort  <lutter@redhat.com>
43562
43563         Tests for module 'safe-alloc'.
43564         * tests/test-safe-alloc.c: New file.
43565         * modules/safe-alloc-tests: New file.
43566
43567         New module 'safe-alloc'.
43568         * lib/safe-alloc.h: New file.
43569         * lib/safe-alloc.c: New file.
43570         * m4/safe-alloc.m4: New file.
43571         * modules/safe-alloc: New file.
43572         * doc/safe-alloc.texi: New file.
43573         * doc/gnulib.texi: Include it.
43574         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
43575         safe-alloc.
43576
43577 2009-02-18  Bruno Haible  <bruno@clisp.org>
43578
43579         Fix link error on non-glibc systems.
43580         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
43581         variable.
43582         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43583
43584 2009-02-18  Jim Meyering  <meyering@redhat.com>
43585
43586         fts: avoid used-uninitialized error due to recent change
43587         * lib/fts.c (fts_read): Guard uses of the new member,
43588         parent->fts_n_dirs_remaining, since it's not relevant for
43589         the parent of a directory specified on the command-line.
43590
43591 2009-02-17  James Youngman  <jay@gnu.org>
43592             Bruno Haible  <bruno@clisp.org>
43593
43594         * m4/include_next.m4: Reformulate comment.
43595
43596 2009-02-16  Jim Meyering  <meyering@redhat.com>
43597
43598         fts: add #if guards so that the fts_lgpl module still builds
43599         * lib/fts.c: Guard just-added hash-table-using parts with
43600         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
43601         Reported by Simon Josefsson.
43602
43603 2009-02-15  Bruno Haible  <bruno@clisp.org>
43604
43605         * modules/array-mergesort-tests: New file.
43606         * tests/test-array-mergesort.c: New file.
43607
43608         New module 'array-mergesort'.
43609         * modules/array-mergesort: New file.
43610         * lib/array-mergesort.h: New file.
43611
43612 2009-02-15  Bruno Haible  <bruno@clisp.org>
43613
43614         Fix 2009-02-07 commit.
43615         * lib/gen-uni-tables.c (output_predicate, output_category,
43616         output_combclass, output_bidi_category, output_decimal_digit,
43617         output_digit, output_numeric, output_mirror, output_scripts,
43618         output_ident_category, output_simple_mapping): Fix format directives.
43619         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
43620
43621 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
43622
43623         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
43624         fixes are available from IBM.
43625
43626 2009-02-13  Jim Meyering  <meyering@redhat.com>
43627
43628         fts: arrange not to stat non-directories in more cases
43629         This makes GNU find (when it doesn't need to stat each file)
43630         *much* more efficient at traversing reiserfs file systems.
43631         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
43632         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
43633         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
43634         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
43635         (leaf_optimization_applies): New function.
43636         (LCO_hash, LCO_compare): New helper functions.
43637         (link_count_optimize_ok): New function.
43638         (fts_stat): Initialize new member (if dir).
43639         (fts_read): Decrement parent's fts_n_dirs_remaining count if
43640         we've just stat'ed a directory.  Skip the stat call when possible.
43641         ---
43642         Note this AFS-related exchange:
43643         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
43644         and note find's pioctl call in find/fstype.c.
43645         But that is necessary only if you want to enable the
43646         optimization for AFS, and for now, I don't.
43647
43648         fts: move a function definition "up" (no semantic change)
43649         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
43650         "up" to precede upcoming use of a related function.
43651
43652 2009-02-11  Jim Meyering  <meyering@redhat.com>
43653
43654         fts: correct internal computation of nlinks (optimization-related)
43655         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
43656         whether the current entry is a directory, so don't test it.
43657
43658 2009-02-10  Bruno Haible  <bruno@clisp.org>
43659
43660         Tests for module 'uniwbrk/ulc-wordbreaks'.
43661         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
43662         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
43663         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
43664
43665         Tests for module 'uniwbrk/u32-wordbreaks'.
43666         * modules/uniwbrk/u32-wordbreaks-tests: New file.
43667         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
43668
43669         Tests for module 'uniwbrk/u16-wordbreaks'.
43670         * modules/uniwbrk/u16-wordbreaks-tests: New file.
43671         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
43672
43673         Tests for module 'uniwbrk/u8-wordbreaks'.
43674         * modules/uniwbrk/u8-wordbreaks-tests: New file.
43675         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
43676
43677 2009-02-10  Bruno Haible  <bruno@clisp.org>
43678
43679         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
43680         property.
43681         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
43682         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
43683         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
43684
43685 2009-02-10  Simon Josefsson  <simon@josefsson.org>
43686
43687         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
43688         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
43689
43690 2009-02-10  Bruno Haible  <bruno@clisp.org>
43691
43692         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
43693         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
43694         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
43695         * lib/unilbrk/u8-possible-linebreaks.c: Update.
43696         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
43697         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
43698
43699 2009-02-09  Simon Josefsson  <simon@josefsson.org>
43700
43701         * lib/sockets.h (gl_fd_to_handle): New function.
43702
43703         * tests/test-sockets.c: Call gl_fd_to_handle.
43704
43705 2009-02-09  Bruno Haible  <bruno@clisp.org>
43706
43707         * doc/havelib.texi: Document the conventions on bi-arch systems.
43708
43709 2009-02-08  Bruno Haible  <bruno@clisp.org>
43710
43711         Document the AC_LIB_LINKFLAGS macro.
43712         * doc/havelib.texi: New file, mostly written on 2005-05-24.
43713         * doc/gnulib.texi: Include it.
43714
43715 2009-02-08  Bruno Haible  <bruno@clisp.org>
43716
43717         Fix wrong order of sections, compared to TOC.
43718         * doc/gnulib.texi: Include relocatable-maint.texi after the
43719         "Regular expressions" node, not before.
43720
43721 2009-02-08  Bruno Haible  <bruno@clisp.org>
43722
43723         Tests for module 'unicase/totitle'.
43724         * modules/unicase/totitle-tests: New file.
43725
43726         Tests for module 'unicase/tolower'.
43727         * modules/unicase/tolower-tests: New file.
43728
43729         Tests for module 'unicase/toupper'.
43730         * modules/unicase/toupper-tests: New file.
43731         * tests/unicase/test-mapping-part1.h: New file.
43732         * tests/unicase/test-mapping-part2.h: New file.
43733
43734         New module 'unicase/totitle'.
43735         * modules/unicase/totitle: New file.
43736         * lib/unicase/totitle.c: New file.
43737
43738         New module 'unicase/tolower'.
43739         * modules/unicase/tolower: New file.
43740         * lib/unicase/tolower.c: New file.
43741
43742         New module 'unicase/toupper'.
43743         * modules/unicase/toupper: New file.
43744         * lib/unicase/toupper.c: New file.
43745         * lib/unicase/simple-mapping.h: New file.
43746
43747         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
43748         (mapping_table): New structure.
43749         (output_simple_mapping): New function.
43750         (main): Invoke output_simple_mapping_test and output_simple_mapping.
43751         * modules/gen-uni-tables (Description): Update.
43752         * lib/unicase/toupper.h: New file, automatically generated by
43753         gen-uni-tables.
43754         * lib/unicase/tolower.h: New file, automatically generated by
43755         gen-uni-tables.
43756         * lib/unicase/totitle.h: New file, automatically generated by
43757         gen-uni-tables.
43758         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
43759         gen-uni-tables.
43760         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
43761         gen-uni-tables.
43762         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
43763         gen-uni-tables.
43764
43765         New module 'unicase/base'.
43766         * modules/unicase/base: New file.
43767         * lib/unicase.h: New file.
43768
43769 2009-02-08  Bruno Haible  <bruno@clisp.org>
43770
43771         New module 'uniwbrk/ulc-wordbreaks'.
43772         * modules/uniwbrk/ulc-wordbreaks: New file.
43773         * lib/uniwbrk/ulc-wordbreaks.c: New file.
43774
43775         New module 'uniwbrk/u32-wordbreaks'.
43776         * modules/uniwbrk/u32-wordbreaks: New file.
43777         * lib/uniwbrk/u32-wordbreaks.c: New file.
43778
43779         New module 'uniwbrk/u16-wordbreaks'.
43780         * modules/uniwbrk/u16-wordbreaks: New file.
43781         * lib/uniwbrk/u16-wordbreaks.c: New file.
43782
43783         New module 'uniwbrk/u8-wordbreaks'.
43784         * modules/uniwbrk/u8-wordbreaks: New file.
43785         * lib/uniwbrk/u8-wordbreaks.c: New file.
43786         * lib/uniwbrk/u-wordbreaks.h: New file.
43787
43788         New module 'uniwbrk/table'.
43789         * modules/uniwbrk/table: New file.
43790         * lib/uniwbrk/wbrktable.h: New file.
43791         * lib/uniwbrk/wbrktable.c: New file.
43792
43793         New module 'uniwbrk/wordbreak-property'.
43794         * modules/uniwbrk/wordbreak-property: New file.
43795         * lib/uniwbrk/wordbreak-property.c: New file.
43796
43797         * lib/gen-uni-tables.c (WBP_*): New enum items.
43798         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
43799         (unicode_org_wbp): New variable.
43800         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
43801         New functions.
43802         (wbp_table): New structure.
43803         (output_wbp, output_wbrk_tables): New functions.
43804         (main): Accept additional argument. Invoke fill_org_wbp,
43805         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
43806         output_wbrk_tables.
43807         * modules/gen-uni-tables (Description): Update.
43808         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
43809         gen-uni-tables.
43810
43811         New module 'uniwbrk/base'.
43812         * modules/uniwbrk/base: New file.
43813         * lib/uniwbrk.h: New file.
43814
43815 2009-02-08  Bruno Haible  <bruno@clisp.org>
43816
43817         Update to Unicode 5.1.0.
43818         * lib/gen-uni-tables.c (is_property_alphabetic): Include
43819         U+2185..U+2188.
43820         (is_property_default_ignorable_code_point): Don't include characters
43821         of category Cc or Cs and not-a-characters.
43822         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
43823         U+0D79, U+109E, U+109F, U+A60C.
43824         * lib/unictype/bidi_of.h: Regenerated.
43825         * lib/unictype/blocks.h: Regenerated.
43826         * lib/unictype/categ_C.h: Regenerated.
43827         * lib/unictype/categ_Cf.h: Regenerated.
43828         * lib/unictype/categ_Cn.h: Regenerated.
43829         * lib/unictype/categ_L.h: Regenerated.
43830         * lib/unictype/categ_Ll.h: Regenerated.
43831         * lib/unictype/categ_Lm.h: Regenerated.
43832         * lib/unictype/categ_Lo.h: Regenerated.
43833         * lib/unictype/categ_Lu.h: Regenerated.
43834         * lib/unictype/categ_M.h: Regenerated.
43835         * lib/unictype/categ_Mc.h: Regenerated.
43836         * lib/unictype/categ_Me.h: Regenerated.
43837         * lib/unictype/categ_Mn.h: Regenerated.
43838         * lib/unictype/categ_N.h: Regenerated.
43839         * lib/unictype/categ_Nd.h: Regenerated.
43840         * lib/unictype/categ_Nl.h: Regenerated.
43841         * lib/unictype/categ_No.h: Regenerated.
43842         * lib/unictype/categ_P.h: Regenerated.
43843         * lib/unictype/categ_Pd.h: Regenerated.
43844         * lib/unictype/categ_Pe.h: Regenerated.
43845         * lib/unictype/categ_Pf.h: Regenerated.
43846         * lib/unictype/categ_Pi.h: Regenerated.
43847         * lib/unictype/categ_Po.h: Regenerated.
43848         * lib/unictype/categ_Ps.h: Regenerated.
43849         * lib/unictype/categ_S.h: Regenerated.
43850         * lib/unictype/categ_Sk.h: Regenerated.
43851         * lib/unictype/categ_Sm.h: Regenerated.
43852         * lib/unictype/categ_So.h: Regenerated.
43853         * lib/unictype/categ_of.h: Regenerated.
43854         * lib/unictype/combining.h: Regenerated.
43855         * lib/unictype/ctype_alnum.h: Regenerated.
43856         * lib/unictype/ctype_alpha.h: Regenerated.
43857         * lib/unictype/ctype_graph.h: Regenerated.
43858         * lib/unictype/ctype_lower.h: Regenerated.
43859         * lib/unictype/ctype_print.h: Regenerated.
43860         * lib/unictype/ctype_punct.h: Regenerated.
43861         * lib/unictype/ctype_upper.h: Regenerated.
43862         * lib/unictype/decdigit.h: Regenerated.
43863         * lib/unictype/digit.h: Regenerated.
43864         * lib/unictype/mirror.h: Regenerated.
43865         * lib/unictype/numeric.h: Regenerated.
43866         * lib/unictype/pr_alphabetic.h: Regenerated.
43867         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
43868         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
43869         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
43870         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
43871         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
43872         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
43873         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
43874         * lib/unictype/pr_combining.h: Regenerated.
43875         * lib/unictype/pr_dash.h: Regenerated.
43876         * lib/unictype/pr_decimal_digit.h: Regenerated.
43877         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
43878         * lib/unictype/pr_deprecated.h: Regenerated.
43879         * lib/unictype/pr_diacritic.h: Regenerated.
43880         * lib/unictype/pr_extender.h: Regenerated.
43881         * lib/unictype/pr_format_control.h: Regenerated.
43882         * lib/unictype/pr_grapheme_base.h: Regenerated.
43883         * lib/unictype/pr_grapheme_extend.h: Regenerated.
43884         * lib/unictype/pr_grapheme_link.h: Regenerated.
43885         * lib/unictype/pr_id_continue.h: Regenerated.
43886         * lib/unictype/pr_id_start.h: Regenerated.
43887         * lib/unictype/pr_ideographic.h: Regenerated.
43888         * lib/unictype/pr_ignorable_control.h: Regenerated.
43889         * lib/unictype/pr_lowercase.h: Regenerated.
43890         * lib/unictype/pr_math.h: Regenerated.
43891         * lib/unictype/pr_numeric.h: Regenerated.
43892         * lib/unictype/pr_other_alphabetic.h: Regenerated.
43893         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
43894         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
43895         * lib/unictype/pr_other_id_continue.h: Regenerated.
43896         * lib/unictype/pr_other_lowercase.h: Regenerated.
43897         * lib/unictype/pr_other_math.h: Regenerated.
43898         * lib/unictype/pr_punctuation.h: Regenerated.
43899         * lib/unictype/pr_sentence_terminal.h: Regenerated.
43900         * lib/unictype/pr_soft_dotted.h: Regenerated.
43901         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
43902         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
43903         * lib/unictype/pr_unified_ideograph.h: Regenerated.
43904         * lib/unictype/pr_uppercase.h: Regenerated.
43905         * lib/unictype/pr_xid_continue.h: Regenerated.
43906         * lib/unictype/pr_xid_start.h: Regenerated.
43907         * lib/unictype/pr_zero_width.h: Regenerated.
43908         * lib/unictype/scripts.h: Regenerated.
43909         * lib/unictype/scripts_byname.gperf: Regenerated.
43910         * lib/unictype/sy_java_ident.h: Regenerated.
43911         * lib/unilbrk/lbrkprop1.h: Regenerated.
43912         * lib/unilbrk/lbrkprop2.h: Regenerated.
43913         * tests/unictype/test-categ_C.c: Regenerated.
43914         * tests/unictype/test-categ_Cf.c: Regenerated.
43915         * tests/unictype/test-categ_Cn.c: Regenerated.
43916         * tests/unictype/test-categ_L.c: Regenerated.
43917         * tests/unictype/test-categ_Ll.c: Regenerated.
43918         * tests/unictype/test-categ_Lm.c: Regenerated.
43919         * tests/unictype/test-categ_Lo.c: Regenerated.
43920         * tests/unictype/test-categ_Lu.c: Regenerated.
43921         * tests/unictype/test-categ_M.c: Regenerated.
43922         * tests/unictype/test-categ_Mc.c: Regenerated.
43923         * tests/unictype/test-categ_Me.c: Regenerated.
43924         * tests/unictype/test-categ_Mn.c: Regenerated.
43925         * tests/unictype/test-categ_N.c: Regenerated.
43926         * tests/unictype/test-categ_Nd.c: Regenerated.
43927         * tests/unictype/test-categ_Nl.c: Regenerated.
43928         * tests/unictype/test-categ_No.c: Regenerated.
43929         * tests/unictype/test-categ_P.c: Regenerated.
43930         * tests/unictype/test-categ_Pd.c: Regenerated.
43931         * tests/unictype/test-categ_Pe.c: Regenerated.
43932         * tests/unictype/test-categ_Pf.c: Regenerated.
43933         * tests/unictype/test-categ_Pi.c: Regenerated.
43934         * tests/unictype/test-categ_Po.c: Regenerated.
43935         * tests/unictype/test-categ_Ps.c: Regenerated.
43936         * tests/unictype/test-categ_S.c: Regenerated.
43937         * tests/unictype/test-categ_Sk.c: Regenerated.
43938         * tests/unictype/test-categ_Sm.c: Regenerated.
43939         * tests/unictype/test-categ_So.c: Regenerated.
43940         * tests/unictype/test-ctype_alnum.c: Regenerated.
43941         * tests/unictype/test-ctype_alpha.c: Regenerated.
43942         * tests/unictype/test-ctype_graph.c: Regenerated.
43943         * tests/unictype/test-ctype_lower.c: Regenerated.
43944         * tests/unictype/test-ctype_print.c: Regenerated.
43945         * tests/unictype/test-ctype_punct.c: Regenerated.
43946         * tests/unictype/test-ctype_upper.c: Regenerated.
43947         * tests/unictype/test-decdigit.h: Regenerated.
43948         * tests/unictype/test-digit.h: Regenerated.
43949         * tests/unictype/test-numeric.h: Regenerated.
43950         * tests/unictype/test-pr_alphabetic.c: Regenerated.
43951         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
43952         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
43953         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
43954         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
43955         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
43956         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
43957         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
43958         * tests/unictype/test-pr_combining.c: Regenerated.
43959         * tests/unictype/test-pr_dash.c: Regenerated.
43960         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
43961         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
43962         * tests/unictype/test-pr_deprecated.c: Regenerated.
43963         * tests/unictype/test-pr_diacritic.c: Regenerated.
43964         * tests/unictype/test-pr_extender.c: Regenerated.
43965         * tests/unictype/test-pr_format_control.c: Regenerated.
43966         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
43967         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
43968         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
43969         * tests/unictype/test-pr_id_continue.c: Regenerated.
43970         * tests/unictype/test-pr_id_start.c: Regenerated.
43971         * tests/unictype/test-pr_ideographic.c: Regenerated.
43972         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
43973         * tests/unictype/test-pr_lowercase.c: Regenerated.
43974         * tests/unictype/test-pr_math.c: Regenerated.
43975         * tests/unictype/test-pr_numeric.c: Regenerated.
43976         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
43977         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
43978         Regenerated.
43979         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
43980         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
43981         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
43982         * tests/unictype/test-pr_other_math.c: Regenerated.
43983         * tests/unictype/test-pr_punctuation.c: Regenerated.
43984         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
43985         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
43986         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
43987         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
43988         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
43989         * tests/unictype/test-pr_uppercase.c: Regenerated.
43990         * tests/unictype/test-pr_xid_continue.c: Regenerated.
43991         * tests/unictype/test-pr_xid_start.c: Regenerated.
43992         * tests/unictype/test-pr_zero_width.c: Regenerated.
43993
43994         Update to Unicode 5.1.0.
43995         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
43996         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
43997         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
43998         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
43999         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
44000         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
44001         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
44002         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
44003         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
44004         (nonspacing_table_ind): Update.
44005         * tests/uniwidth/test-uc_width2.sh: Update expected result.
44006
44007         Update to Unicode 5.1.0.
44008         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
44009         code transform.
44010         * lib/uniname/uniname.c (unicode_character_name,
44011         unicode_name_character): Add the range 0x1Fxxx to the code transform.
44012         * lib/uniname/uninames.h: Regenerated.
44013         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
44014
44015 2009-02-07  Bruno Haible  <bruno@clisp.org>
44016
44017         Merge gen-ctype and gen-lbrk into a single program.
44018         * lib/gen-uni-tables.c: New file, incorporating
44019         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
44020         Add directory prefixes to the names of the generated files.
44021         * lib/unictype/gen-ctype.c: Remove file.
44022         * lib/unilbrk/gen-lbrk.c: Remove file.
44023         * modules/gen-uni-tables: New file.
44024         * modules/unictype/gen-ctype: Remove file.
44025         * modules/unilbrk/gen-lbrk: Remove file.
44026
44027 2009-02-07  Bruno Haible  <bruno@clisp.org>
44028
44029         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
44030
44031         New module 'unistr/u32-strcoll'.
44032         * modules/unistr/u32-strcoll: New file.
44033         * lib/unistr/u32-strcoll.c: New file.
44034
44035         New module 'unistr/u16-strcoll'.
44036         * modules/unistr/u16-strcoll: New file.
44037         * lib/unistr/u16-strcoll.c: New file.
44038
44039         New module 'unistr/u8-strcoll'.
44040         * modules/unistr/u8-strcoll: New file.
44041         * lib/unistr/u8-strcoll.c: New file.
44042         * lib/unistr/u-strcoll.h: New file.
44043
44044 2009-02-07  Bruno Haible  <bruno@clisp.org>
44045
44046         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
44047         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44048         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44049         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
44050         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
44051         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
44052
44053 2009-02-07  Bruno Haible  <bruno@clisp.org>
44054
44055         Make 64-bit clean.
44056         * lib/unictype/gen-ctype.c (output_predicate, output_category,
44057         output_combclass, output_bidi_category, output_decimal_digit,
44058         output_digit, output_numeric, output_mirror, output_scripts,
44059         output_ident_category): Use proper width specifier in format strings.
44060
44061 2009-02-07  Bruno Haible  <bruno@clisp.org>
44062
44063         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
44064         failure behaviour.
44065
44066 2009-02-07  Jim Meyering  <meyering@redhat.com>
44067
44068         regex: avoid compilation failure with upcoming gcc-4.4
44069         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
44070         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
44071         "... error: integer overflow in preprocessor expression".
44072
44073 2009-02-05  Ben Pfaff  <blp@gnu.org>
44074
44075         Fix link errors on Windows when close module is used.
44076         * modules/close: Add $(LIB_CLOSE) to Link section.
44077         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
44078         $(LIB_CLOSE) on Windows.
44079
44080 2009-02-05  Jim Meyering  <meyering@redhat.com>
44081
44082         still avoid unused-parameter warnings, but do it cleanly
44083         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
44084         (get_fs_usage): Cast to void instead.
44085         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
44086         (dev_from_mount_options, read_file_system_list): Cast to void.
44087         Prompted by Bruno Haible.
44088
44089 2009-02-04  Jim Meyering  <meyering@redhat.com>
44090
44091         fsusage.c: correct copyright year
44092         * lib/fsusage.c: Reflect year in which the change is pushed into
44093
44094         avoid misc. warnings
44095         * lib/fsusage.c (UNUSED_PARAM): Define.
44096         (get_fs_usage): Mark parameter "disk" as unused.
44097         * lib/getugroups.c (getgrent): Use "void" in prototype.
44098         * lib/mountlist.c: Mark unused parameters.
44099         (read_file_system_list): Declare a local with "const".
44100         * lib/nanosleep.c (getnow): Declare static.
44101         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
44102
44103         dirfd: set errno upon failure
44104         * lib/dirfd.c: Include <errno.h>.
44105         Set errno to ENOTSUP when returning -1.
44106         * modules/dirfd (Depends-on): Add errno.
44107         Suggested by John Kodis <kodis@comcast.net>.
44108
44109 2009-02-01  Bruno Haible  <bruno@clisp.org>
44110
44111         Don't assume sizeof (long) >= sizeof (void *).
44112         * lib/memcmp.c: Include stdint.h.
44113         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
44114         srcp2 to 'const byte *'.
44115         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
44116         types to uintptr_t.
44117         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
44118         * modules/memcmp (Depends-on): Add stdint.
44119         Reported by Ozkan Sezer <sezeroz@gmail.com>.
44120
44121 2009-01-30  Eric Blake  <ebb9@byu.net>
44122
44123         fix more require-before-expand issues
44124         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
44125         expand, AC_PROG_AWK.
44126         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
44127
44128 2009-01-28  Eric Blake  <ebb9@byu.net>
44129
44130         version-etc: use consistent URL formatting
44131         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
44132         Improve formatting.  Use fputs for string without %.
44133
44134 2009-01-28  Jim Meyering  <meyering@redhat.com>
44135
44136         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
44137         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
44138         "underquoted definition of NAME" from autoconf-2.59.
44139
44140 2009-01-28  Bruno Haible  <bruno@clisp.org>
44141
44142         * doc/gnulib.texi: Add "Obsolete modules" to index.
44143
44144 2009-01-28  Jim Meyering  <meyering@redhat.com>
44145
44146         useless-if-before-free: recognize more variants
44147         * build-aux/useless-if-before-free: Also recognize e.g.,
44148         if (NULL != p) free (p);
44149
44150 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
44151
44152         test-getaddrinfo: skip (don't fail) this test when there's no network
44153         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
44154         on the presumption that it means you lack network access.
44155
44156 2009-01-26  Jim Meyering  <meyering@redhat.com>
44157
44158         fflush: avoid warnings on modern systems
44159         * lib/fflush.c (rpl_fflush): Move declarations of locals,
44160         pos and result, into scopes where they're used.
44161
44162 2009-01-26  Eric Blake  <ebb9@byu.net>
44163
44164         Silence warning reintroduced by recent extensions patch.
44165         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
44166         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
44167         autoconf.
44168
44169         Backport improved autoconf semantics of AC_DEFUN_ONCE.
44170         * m4/00gnulib.m4: New file.
44171         * gnulib-tool (func_get_filelist): Always use it.
44172         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
44173         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
44174
44175 2009-01-25  Bruno Haible  <bruno@clisp.org>
44176
44177         Make test-quotearg work on MacOS X and AIX.
44178         * tests/test-quotearg.sh: New file.
44179         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
44180         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
44181         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
44182         include <libintl.h>.
44183         (fake_locale): Remove variable.
44184         (gettext, dgettext, dcgettext): Remove functions.
44185         (main): Instead of setting a fake locale, set a real locale. Call
44186         textdomain and bindtextdomain.
44187         * modules/quotearg-tests (Files): Add the new files.
44188         (Depends-on): Add gettext, setenv, unsetenv.
44189         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44190         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
44191         Augment TESTS_ENVIRONMENT.
44192
44193 2009-01-25  Bruno Haible  <bruno@clisp.org>
44194
44195         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
44196         fr_FR.ISO8859-1 locale on MacOS X.
44197         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
44198         ja_JP.eucJP locale on MacOS X.
44199         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
44200         zh_CN.GB18030 locale on MacOS X.
44201
44202 2009-01-25  Bruno Haible  <bruno@clisp.org>
44203
44204         Avoid link errors on MacOS X 10.3.
44205         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
44206         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44207
44208 2009-01-25  Bruno Haible  <bruno@clisp.org>
44209
44210         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44211         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
44212         * modules/pipe (Files): Remove m4/posix_spawn.m4.
44213         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44214         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
44215         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44216         posix_spawnattr_init, posix_spawnattr_setsigmask,
44217         posix_spawnattr_setflags, posix_spawnattr_destroy.
44218
44219         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44220         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
44221         * modules/execute (Files): Remove m4/posix_spawn.m4.
44222         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44223         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44224         posix_spawnattr_init, posix_spawnattr_setsigmask,
44225         posix_spawnattr_setflags, posix_spawnattr_destroy.
44226
44227 2009-01-25  Bruno Haible  <bruno@clisp.org>
44228
44229         * lib/glthread/threadlib.c: Include <stdlib.h>.
44230
44231 2009-01-25  Bruno Haible  <bruno@clisp.org>
44232
44233         * lib/glthread/threadlib.c (dummy): New declaration.
44234
44235 2009-01-25  Bruno Haible  <bruno@clisp.org>
44236
44237         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
44238         multibyte characters also for the GB18030 encoding. Don't crash when
44239         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
44240
44241 2009-01-25  Bruno Haible  <bruno@clisp.org>
44242
44243         Avoid redefining 'struct random_data' on OSF/1 5.1.
44244         * lib/stdlib.in.h: Include <random.h> if it exists.
44245         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
44246         HAVE_RANDOM_H. Include <random.h> when testing whether
44247         'struct random_data' exists.
44248         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
44249
44250 2009-01-25  Bruno Haible  <bruno@clisp.org>
44251
44252         Don't install charset.alias on MacOS X >= 10.3.
44253         * lib/localcharset.c (DARWIN7): New macro.
44254         (get_charset_aliases): Hardcode the result for Darwin7.
44255         * modules/localcharset (install-exec-local): Don't install
44256         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
44257
44258 2009-01-25  Bruno Haible  <bruno@clisp.org>
44259
44260         Don't install charset.alias on mingw and Cygwin.
44261         * modules/localcharset (install-exec-local): Don't install
44262         charset.alias on mingw and Cygwin, if the file does not yet exist.
44263         The result for these platforms is hardcoded in localcharset.c.
44264
44265 2009-01-25  Bruno Haible  <bruno@clisp.org>
44266
44267         Make it possible again to use AC_GNU_SOURCE together with gnulib.
44268         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
44269         before requiring AC_USE_SYSTEM_EXTENSIONS.
44270
44271 2009-01-25  Jim Meyering  <meyering@redhat.com>
44272
44273         c-strtod: avoid warnings
44274         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
44275         "assignment discards qualifiers from pointer target type" warnings.
44276
44277 2009-01-24  Bruno Haible  <bruno@clisp.org>
44278
44279         Add support for non-UTF-8 locales on MacOS X.
44280         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
44281         canonical encodings. For Darwin 7 and newer, don't map traditional
44282         encodings to UTF-8.
44283         Reported by Vincent Lefevre <vincent@vinc17.org>
44284         at <http://savannah.gnu.org/bugs/?25235>.
44285
44286 2009-01-24  Bruno Haible  <bruno@clisp.org>
44287
44288         * doc/gnulib.texi (Obsolete modules): New section.
44289         Reported by Mike Frysinger <vapier@gentoo.org>.
44290
44291 2009-01-24  Bruno Haible  <bruno@clisp.org>
44292
44293         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
44294         (%.dvi): New rule.
44295
44296 2009-01-24  Bruno Haible  <bruno@clisp.org>
44297
44298         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
44299         Reported by Eric Blake.
44300
44301 2009-01-24  Bruno Haible  <bruno@clisp.org>
44302
44303         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
44304         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
44305         Reported by Gary V. Vaughan <gary@gnu.org>.
44306
44307 2009-01-24  Bruno Haible  <bruno@clisp.org>
44308
44309         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
44310
44311 2009-01-23  Bruno Haible  <bruno@clisp.org>
44312
44313         Make c-strtod, c-strtold usable in libraries.
44314         * lib/c-strtod.c: Include string.h instead of xalloc.h.
44315         (C_STRTOD): Call strdup instead of xstrdup.
44316         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
44317         * modules/c-strtold (Depends-on): Likewise.
44318         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
44319         * NEWS: Mention the change.
44320         Reported by Michael Gold <mgold@ncf.ca>.
44321
44322 2009-01-23  Jim Meyering  <meyering@redhat.com>
44323
44324         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
44325         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
44326         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
44327
44328 2009-01-23  Simon Josefsson  <simon@josefsson.org>
44329
44330         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
44331         GNU CoreUtils.
44332         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
44333         * modules/version-etc (Description): Update.
44334
44335 2009-01-22  Bruno Haible  <bruno@clisp.org>
44336
44337         Cache the C locale object.
44338         * lib/c-strtod.c (c_locale_cache): New variable.
44339         (c_locale): New function.
44340         (C_STRTOD): Use it, and don't call freelocale.
44341         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
44342         Suggested by Paolo Bonzini.
44343
44344 2009-01-21  Bruno Haible  <bruno@clisp.org>
44345
44346         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
44347         conditions other than overflow.
44348
44349 2009-01-21  Bruno Haible  <bruno@clisp.org>
44350
44351         * lib/c-strtod.c: Include errno.h.
44352         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
44353         value from STRTOD_L and STRTOD.
44354
44355 2009-01-21  Bruno Haible  <bruno@clisp.org>
44356         and Jim Meyering  <meyering@redhat.com>
44357
44358         nanosleep: skip configure test (fail it) for apple universal builds
44359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
44360         universal builds, assume that nanosleep does not work.
44361         * modules/nanosleep (Depends-on): Add multiarch.
44362
44363         mktime: skip configure test (fail it) for apple universal builds
44364         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
44365         universal builds, assume that mktime does not work.
44366         * modules/mktime (Depends-on): Add multiarch.
44367
44368 2009-01-21  Eric Blake  <ebb9@byu.net>
44369
44370         multiarch: avoid expand-before-require warning
44371         * modules/multiarch (configure.ac): Require, rather than expand,
44372         gl_MULTIARCH.
44373         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
44374         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
44375         enforce that all clients require it.  Partial reversion of
44376         2008-12-29 patch.
44377
44378         error: avoid expand-before-require warning
44379         * modules/errno (configure.ac): Require, rather than expand,
44380         gl_HEADER_ERRNO_H.
44381         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
44382         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
44383         enforce that all clients require it.
44384
44385         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
44386         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
44387         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
44388         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
44389
44390 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
44391
44392         Revert:
44393         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44394
44395         regex: do not depend on obsolete modules.
44396         * modules/regex: Remove memcmp and memmove.
44397
44398 2009-01-20  Bruno Haible  <bruno@clisp.org>
44399
44400         Make the 'link' module link on Windows NT 4.
44401         * lib/link.c (_WIN32_WINNT): Don't define.
44402         (CreateHardLinkFuncType): New type.
44403         (CreateHardLinkFunc, initialized): New variables.
44404         (initialize): New function.
44405         (link): Invoke CreateHardLink indirectly through the function pointer.
44406
44407 2009-01-20  Bruno Haible  <bruno@clisp.org>
44408
44409         Fix compilation failure on mingw.
44410         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
44411
44412 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
44413
44414         * doc/c-strtod.texi: Mention a couple of restrictions.
44415
44416 2009-01-20  Jim Meyering  <meyering@redhat.com>
44417
44418         gettimeofday: move more declarations out of functions
44419         * lib/gettimeofday.c: Move extern declarations of tzset and
44420         gmtime out of containing functions.  Prompted by Bruno Haible.
44421
44422 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44423
44424         regex: do not depend on obsolete modules.
44425         * modules/regex: Remove memcmp and memmove.
44426
44427 2009-01-19  Bruno Haible  <bruno@clisp.org>
44428
44429         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44430         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
44431         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44432         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
44433         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
44434
44435 2009-01-19  Bruno Haible  <bruno@clisp.org>
44436
44437         * tests/test-link.c: Include <errno.h>.
44438         (main): Exit with code 77 when a hard link cannot be created due to
44439         the file system.
44440         * tests/test-link.sh: Skip test when a hard link cannot be created due
44441         to the file system.
44442         Suggested by Eric Blake.
44443
44444 2009-01-19  Martin Lambers  <marlam@marlam.de>
44445
44446         * modules/link-tests: New file.
44447         * tests/test-link.sh: New file.
44448         * tests/test-link.c: New file.
44449
44450 2009-01-19  Eric Blake  <ebb9@byu.net>
44451
44452         doc: mention another function added in cygwin 1.7.0
44453         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
44454         Another new function in cygwin 1.7.
44455
44456 2009-01-19  Bruno Haible  <bruno@clisp.org>
44457
44458         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44459         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
44460         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
44461         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44462         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44463         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
44464         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44465         * m4/md4.m4 (gl_MD4): Likewise.
44466         * m4/md5.m4 (gl_MD5): Likewise.
44467         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
44468         * m4/sha1.m4 (gl_SHA1): Likewise.
44469         * m4/sha256.m4 (gl_SHA256): Likewise.
44470         * m4/sha512.m4 (gl_SHA512): Likewise.
44471
44472 2009-01-19  Bruno Haible  <bruno@clisp.org>
44473
44474         * modules/uniname/uniname-tests (Depends-on): Add progname.
44475         * tests/uniname/test-uninames.c: Include progname.h.
44476         (main): Call set_program_name.
44477
44478         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
44479         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
44480         (main): Call set_program_name.
44481
44482         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
44483         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
44484         (main): Call set_program_name.
44485
44486         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
44487         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
44488         (main): Call set_program_name.
44489
44490         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
44491         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
44492         (main): Call set_program_name.
44493
44494         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
44495         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
44496         (main): Call set_program_name.
44497
44498         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
44499         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
44500         (main): Call set_program_name.
44501
44502         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
44503         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
44504         (main): Call set_program_name.
44505
44506         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
44507         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
44508         (main): Call set_program_name.
44509
44510 2009-01-19  Eric Blake  <ebb9@byu.net>
44511
44512         test-unistd: test previous patch
44513         * tests/test-unistd.c: Test *_FILENO macros.
44514
44515         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
44516         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44517         Guarantee a definition.
44518         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
44519         * modules/unistd-safer (Depends-on): Add dependency on unistd.
44520         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
44521         * lib/dup-safer.c (STDERR_FILENO): Likewise.
44522         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44523         Likewise.
44524         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
44525         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
44526         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44527         Likewise.
44528         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
44529         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
44530         (STDERR_FILENO): Likewise.
44531         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
44532         (STDERR_FILENO): Likewise.
44533         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
44534         (STDERR_FILENO): Likewise.
44535         Reported by Elbert Pol.
44536
44537 2009-01-19  Eric Blake  <ebb9@byu.net>
44538
44539         doc: mention more functions added in cygwin 1.7.0
44540         * doc/posix-functions/abort.texi (abort): Update wording related
44541         to cygwin.
44542         * doc/posix-functions/daylight.texi (daylight): Likewise.
44543         * doc/posix-functions/optarg.texi (optarg): Likewise.
44544         * doc/posix-functions/optarg.texi (opterr): Likewise.
44545         * doc/posix-functions/optarg.texi (optind): Likewise.
44546         * doc/posix-functions/optarg.texi (optopt): Likewise.
44547         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
44548         worked in 1.5.x, and was withdrawn in 1.7.
44549         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
44550         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
44551         cygwin versions.
44552         * doc/posix-functions/perror.texi (perror): Likewise.
44553         * doc/posix-functions/printf.texi (printf): Likewise.
44554         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
44555         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
44556         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44557         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44558         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
44559         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
44560         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44561         Likewise.
44562         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44563         Likewise.
44564         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
44565         this function.
44566         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
44567         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
44568         Likewise.
44569         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
44570         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
44571         * doc/posix-functions/confstr.texi (confstr): Likewise.
44572         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
44573         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
44574         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
44575         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
44576         * doc/posix-functions/fputws.texi (fputws): Likewise.
44577         * doc/posix-functions/fwide.texi (fwide): Likewise.
44578         * doc/posix-functions/getwc.texi (getwc): Likewise.
44579         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
44580         * doc/posix-functions/putwc.texi (putwc): Likewise.
44581         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
44582         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
44583         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
44584         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
44585         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
44586         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
44587         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
44588         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
44589         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
44590         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
44591         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
44592
44593 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44594
44595         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
44596         * lib/ioctl.c: Include <sys/ioctl.h>.
44597
44598 2009-01-19  Simon Josefsson  <simon@josefsson.org>
44599
44600         * modules/getdate-tests (Depends-on): Add progname.
44601         * tests/test-getdate.c: Use progname module, to avoid link errors
44602         on non-glibc systems.
44603
44604 2009-01-18  Simon Josefsson  <simon@josefsson.org>
44605
44606         * modules/filenamecat-tests (Depends-on): Add progname.
44607         * modules/fstrcmp-tests (Depends-on): Likewise.
44608
44609         * tests/test-filenamecat.c: Use progname module, to avoid link
44610         errors on non-glibc systems.
44611         * tests/test-fstrcmp.c: Likewise.
44612
44613 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44614
44615         gettimeofday: avoid warning: nested extern declaration of 'localtime'
44616         * lib/gettimeofday.c: Move extern declaration out of function.
44617
44618 2009-01-18  Bruno Haible  <bruno@clisp.org>
44619
44620         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
44621         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
44622         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
44623
44624 2009-01-18  Bruno Haible  <bruno@clisp.org>
44625
44626         * lib/strftime.c (MEMPCPY): Remove unused macro.
44627         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
44628
44629 2009-01-18  Martin Lambers  <marlam@marlam.de>
44630
44631         New module 'link'.
44632         * lib/unistd.in.h (link): New declaration.
44633         * lib/link.c: New file.
44634         * m4/link.m4: New file.
44635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
44636         HAVE_LINK.
44637         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
44638         * modules/link: New file.
44639         * doc/posix-functions/link.texi: Mention the new module.
44640
44641 2009-01-18  Bruno Haible  <bruno@clisp.org>
44642
44643         * tests/test-avltree_list.c (main): Call set_program_name.
44644         * tests/test-avltree_oset.c (main): Likewise.
44645         * tests/test-obstack-printf.c: Include progname.h.
44646         (main): Call set_program_name.
44647         * tests/test-quotearg.c: Include progname.h.
44648         (main): Call set_program_name.
44649         * tests/test-xmemdup0.c: Include progname.h.
44650         (main): Call set_program_name.
44651
44652 2009-01-18  Bruno Haible  <bruno@clisp.org>
44653
44654         New module 'alphasort'.
44655         * lib/dirent.in.h (alphasort): New declaration.
44656         * lib/alphasort.c: New file, from glibc with modifications.
44657         * m4/alphasort.m4: New file.
44658         * modules/alphasort: New file.
44659         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
44660         HAVE_ALPHASORT.
44661         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
44662         HAVE_ALPHASORT.
44663         * doc/posix-functions/alphasort.texi: Mention the new module and the
44664         portability problems.
44665
44666 2009-01-18  Bruno Haible  <bruno@clisp.org>
44667
44668         New module 'scandir'.
44669         * lib/dirent.in.h (scandir): New declaration.
44670         * lib/scandir.c: New file, from glibc with modifications.
44671         * m4/scandir.m4: New file.
44672         * modules/scandir: New file.
44673         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
44674         HAVE_SCANDIR.
44675         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
44676         HAVE_SCANDIR.
44677         * doc/posix-functions/scandir.texi: Mention the new module and the
44678         portability problems.
44679
44680 2009-01-17  Bruno Haible  <bruno@clisp.org>
44681
44682         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
44683         Update documentation.
44684         (func_remove_suffix): Escape all dots in the suffix. Update
44685         documentation.
44686         (func_filter_filelist): Update documentation.
44687         Reported by Ralf Wildenhues.
44688
44689 2009-01-17  Bruno Haible  <bruno@clisp.org>
44690
44691         * modules/dprintf-posix-tests: New file.
44692         * tests/test-dprintf-posix.sh: New file.
44693         * tests/test-dprintf-posix.c: New file.
44694
44695         New modules 'dprintf', 'dprintf-posix'.
44696         * lib/stdio.in.h (dprintf): New declaration.
44697         * lib/dprintf.c: New file.
44698         * m4/dprintf.m4: New file.
44699         * m4/dprintf-posix.m4: New file.
44700         * modules/dprintf: New file.
44701         * modules/dprintf-posix: New file.
44702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
44703         HAVE_DPRINTF, REPLACE_DPRINTF.
44704         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
44705         HAVE_DPRINTF, REPLACE_DPRINTF.
44706         * doc/posix-functions/dprintf.texi: Mention the new modules.
44707
44708 2009-01-17  Bruno Haible  <bruno@clisp.org>
44709
44710         * modules/vdprintf-posix-tests: New file.
44711         * tests/test-vdprintf-posix.sh: New file.
44712         * tests/test-vdprintf-posix.c: New file.
44713
44714         New modules 'vdprintf', 'vdprintf-posix'.
44715         * lib/stdio.in.h (vdprintf): New declaration.
44716         * lib/vdprintf.c: New file.
44717         * m4/vdprintf.m4: New file.
44718         * m4/vdprintf-posix.m4: New file.
44719         * modules/vdprintf: New file.
44720         * modules/vdprintf-posix: New file.
44721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
44722         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44723         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
44724         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44725         * doc/posix-functions/vdprintf.texi: Mention the new modules.
44726
44727 2009-01-17  Bruno Haible  <bruno@clisp.org>
44728
44729         Fix replacement of fopen on mingw.
44730         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
44731         mingw.
44732
44733 2009-01-17  Bruno Haible  <bruno@clisp.org>
44734
44735         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
44736         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
44737
44738 2009-01-17  Bruno Haible  <bruno@clisp.org>
44739
44740         Avoid test-fflush2.sh failure on mingw.
44741         * tests/test-fflush2.c: Include binary-io.h.
44742         (main): Put standard input into binary mode.
44743         * modules/fflush-tests (Depends-on): Add binary-io.
44744
44745 2009-01-17  Bruno Haible  <bruno@clisp.org>
44746
44747         * lib/wchar.in.h: In another particular situation, include only the
44748         system's <wchar.h> file.
44749         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
44750         Reported by Albert Chin-A-Young <china@thewrittenword.com>
44751         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
44752
44753 2009-01-17  Bruno Haible  <bruno@clisp.org>
44754
44755         Support for stripping executables in --enable-relocatable.
44756         * build-aux/install-reloc: Expect one more argument, or an environment
44757         variable RELOC_STRIP_PROG. If set, strip the destination program and
44758         its wrapper.
44759         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
44760         RELOC_STRIP_PROG.
44761         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
44762         to set RELOCATABLE_STRIP.
44763         * NEWS: Mention the new Makefile requirement.
44764
44765 2009-01-17  Bruno Haible  <bruno@clisp.org>
44766
44767         * build-aux/install-reloc: Remove debugging information left over by
44768         C compiler on MacOS X.
44769
44770 2009-01-17  Bruno Haible  <bruno@clisp.org>
44771
44772         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
44773         * lib/progreloc.c (find_executable): Fix type of pointer passed to
44774         _NSGetExecutablePath.
44775
44776 2009-01-16  Jim Meyering  <meyering@redhat.com>
44777
44778         strerror: avoid warnings about discarding "const"
44779         * lib/strerror.c (rpl_strerror): Instead of returning a const
44780         string from each and every "case", use a variable, and add a single
44781         cast after the switch.
44782
44783 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
44784
44785         * lib/arpa_inet.in.h: Add extern "C" block for C++.
44786
44787 2009-01-16  Bruno Haible  <bruno@clisp.org>
44788
44789         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
44790         array initializer syntax that also works in C++ mode.
44791         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44792
44793 2009-01-16  Jim Meyering  <meyering@redhat.com>
44794
44795         poll: suppress a warning
44796         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
44797         to ignore "...unsigned expression < 0 is always false" warnings.
44798
44799 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
44800
44801         poll: remove declarations of unused variables
44802         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
44803         sockbuf and optlen.
44804
44805 2009-01-15  Bruno Haible  <bruno@clisp.org>
44806
44807         Make fflush-after-ungetc POSIX compliant on BSD systems.
44808         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
44809         (clear_ungetc_buffer): Implement also for other systems.
44810         (rpl_fflush): On glibc systems, invoke
44811         clear_ungetc_buffer_preserving_position. Otherwise, invoke
44812         clear_ungetc_buffer after fetching the stream's position, not before.
44813
44814 2009-01-15  Bruno Haible  <bruno@clisp.org>
44815
44816         Make fflush-after-ungetc POSIX compliant on glibc systems.
44817         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
44818         after ungetc.
44819         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
44820         (rpl_fflush): On glibc systems, simply call the system's fflush
44821         function after clearing the ungetc buffer.
44822         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
44823         Instead, lseek only to the end of file, then use the system's fseeko
44824         for the rest. On glibc systems, reset the EOF indicator bit.
44825
44826 2009-01-15  Jim Meyering  <meyering@redhat.com>
44827
44828         openmp.m4: revert quote-adding change, for portability to older autoconf
44829         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
44830         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
44831         Simon Josefsson noticed the problem when using autoconf-2.61.
44832
44833 2009-01-15  Bruno Haible  <bruno@clisp.org>
44834
44835         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
44836         * tests/test-fflush2.c (ASSERT): Always fail.
44837         (main): Add two tests for fflush() after ungetc(), taking into account
44838         the Austin Group's clarification.
44839         Suggested by Eric Blake.
44840
44841 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
44842
44843         mktime.m4: remove K&R-style function prototypes
44844         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
44845         for the Sun C++ compiler.
44846
44847 2009-01-14  Bruno Haible  <bruno@clisp.org>
44848
44849         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
44850         while including <wchar.h>.
44851         * lib/wchar.in.h: In two particular situations on HP-UX, include only
44852         the system's <wchar.h> file.
44853         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44854
44855 2009-01-14  Bruno Haible  <bruno@clisp.org>
44856
44857         * m4/csharp.m4: Don't mention gettext on the serial number line.
44858         * m4/csharpexec.m4: Likewise.
44859         * m4/eaccess.m4: Likewise.
44860         * m4/javaexec.m4: Likewise.
44861         * m4/sig_atomic_t.m4: Likewise.
44862         * m4/tmpdir.m4: Likewise.
44863         * m4/intldir.m4: Bump gettext version.
44864         * m4/lib-ld.m4: Likewise.
44865
44866 2009-01-14  Bruno Haible  <bruno@clisp.org>
44867
44868         * lib/progname.c (set_program_name): Add more comments.
44869         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44870
44871 2009-01-14  Simon Josefsson  <simon@josefsson.org>
44872
44873         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
44874         were sys/stat.h does not define it.
44875
44876 2009-01-14  Jim Meyering  <meyering@redhat.com>
44877
44878         many *.m4 files: improve m4 quoting
44879         99% of this change was performed by running the following commands:
44880         git ls-files | grep '\.m4$' | xargs perl -pi \
44881           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
44882           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44883           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44884           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
44885         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
44886         The remainder were to add Copyright dates, increment serial numbers,
44887         undo some changes in comments, exclude m4/intl.m4, and add quotes
44888         around the "1" in ",1" where the unusual spacing prohibited the
44889         above regexps from doing the job.  For more details, see
44890         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
44891         * m4/acl.m4: Modified.
44892         * m4/afs.m4: Likewise.
44893         * m4/alloca.m4: Likewise.
44894         * m4/argp.m4: Likewise.
44895         * m4/argz.m4: Likewise.
44896         * m4/atexit.m4: Likewise.
44897         * m4/bison-i18n.m4: Likewise.
44898         * m4/bison.m4: Likewise.
44899         * m4/byteswap.m4: Likewise.
44900         * m4/c-stack.m4: Likewise.
44901         * m4/c-strtod.m4: Likewise.
44902         * m4/calloc.m4: Likewise.
44903         * m4/canonicalize-lgpl.m4: Likewise.
44904         * m4/chown.m4: Likewise.
44905         * m4/clock_time.m4: Likewise.
44906         * m4/codeset.m4: Likewise.
44907         * m4/copy-file.m4: Likewise.
44908         * m4/csharp.m4: Likewise.
44909         * m4/csharpcomp.m4: Likewise.
44910         * m4/csharpexec.m4: Likewise.
44911         * m4/d-ino.m4: Likewise.
44912         * m4/d-type.m4: Likewise.
44913         * m4/dirfd.m4: Likewise.
44914         * m4/double-slash-root.m4: Likewise.
44915         * m4/eaccess.m4: Likewise.
44916         * m4/eealloc.m4: Likewise.
44917         * m4/environ.m4: Likewise.
44918         * m4/errno_h.m4: Likewise.
44919         * m4/euidaccess.m4: Likewise.
44920         * m4/execute.m4: Likewise.
44921         * m4/fatal-signal.m4: Likewise.
44922         * m4/fchdir.m4: Likewise.
44923         * m4/fcntl_h.m4: Likewise.
44924         * m4/fileblocks.m4: Likewise.
44925         * m4/filenamecat.m4: Likewise.
44926         * m4/findprog.m4: Likewise.
44927         * m4/flexmember.m4: Likewise.
44928         * m4/fnmatch.m4: Likewise.
44929         * m4/fopen.m4: Likewise.
44930         * m4/fpending.m4: Likewise.
44931         * m4/fprintf-posix.m4: Likewise.
44932         * m4/free.m4: Likewise.
44933         * m4/frexp.m4: Likewise.
44934         * m4/frexpl.m4: Likewise.
44935         * m4/fsusage.m4: Likewise.
44936         * m4/ftruncate.m4: Likewise.
44937         * m4/gc-camellia.m4: Likewise.
44938         * m4/gc-random.m4: Likewise.
44939         * m4/gc.m4: Likewise.
44940         * m4/getaddrinfo.m4: Likewise.
44941         * m4/getcwd-abort-bug.m4: Likewise.
44942         * m4/getcwd-path-max.m4: Likewise.
44943         * m4/getdate.m4: Likewise.
44944         * m4/getdomainname.m4: Likewise.
44945         * m4/getgroups.m4: Likewise.
44946         * m4/gethostname.m4: Likewise.
44947         * m4/gethrxtime.m4: Likewise.
44948         * m4/getline.m4: Likewise.
44949         * m4/getloadavg.m4: Likewise.
44950         * m4/getndelim2.m4: Likewise.
44951         * m4/getpass.m4: Likewise.
44952         * m4/gettext.m4: Likewise.
44953         * m4/gettime.m4: Likewise.
44954         * m4/gettimeofday.m4: Likewise.
44955         * m4/gnulib-common.m4: Likewise.
44956         * m4/group-member.m4: Likewise.
44957         * m4/host-os.m4: Likewise.
44958         * m4/iconv.m4: Likewise.
44959         * m4/iconv_open.m4: Likewise.
44960         * m4/inet_ntop.m4: Likewise.
44961         * m4/inet_pton.m4: Likewise.
44962         * m4/inline.m4: Likewise.
44963         * m4/intldir.m4: Likewise.
44964         * m4/intlmacosx.m4: Likewise.
44965         * m4/intmax.m4: Likewise.
44966         * m4/intmax_t.m4: Likewise.
44967         * m4/inttypes.m4: Likewise.
44968         * m4/inttypes_h.m4: Likewise.
44969         * m4/inttypes-pri.m4: Likewise.
44970         * m4/isapipe.m4: Likewise.
44971         * m4/isnand.m4: Likewise.
44972         * m4/isnanf.m4: Likewise.
44973         * m4/isnanl.m4: Likewise.
44974         * m4/javacomp.m4: Likewise.
44975         * m4/javaexec.m4: Likewise.
44976         * m4/jm-winsz1.m4: Likewise.
44977         * m4/jm-winsz2.m4: Likewise.
44978         * m4/lchown.m4: Likewise.
44979         * m4/lcmessage.m4: Likewise.
44980         * m4/ldexpl.m4: Likewise.
44981         * m4/lib-ld.m4: Likewise.
44982         * m4/lib-link.m4: Likewise.
44983         * m4/libsigsegv.m4: Likewise.
44984         * m4/link-follow.m4: Likewise.
44985         * m4/localcharset.m4: Likewise.
44986         * m4/locale-fr.m4: Likewise.
44987         * m4/locale-ja.m4: Likewise.
44988         * m4/locale-tr.m4: Likewise.
44989         * m4/locale-zh.m4: Likewise.
44990         * m4/lock.m4: Likewise.
44991         * m4/longlong.m4: Likewise.
44992         * m4/ls-mntd-fs.m4: Likewise.
44993         * m4/lstat.m4: Likewise.
44994         * m4/malloc.m4: Likewise.
44995         * m4/mathl.m4: Likewise.
44996         * m4/mbrtowc.m4: Likewise.
44997         * m4/mbstate_t.m4: Likewise.
44998         * m4/mbswidth.m4: Likewise.
44999         * m4/memchr.m4: Likewise.
45000         * m4/memcmp.m4: Likewise.
45001         * m4/memcpy.m4: Likewise.
45002         * m4/memmem.m4: Likewise.
45003         * m4/memmove.m4: Likewise.
45004         * m4/mempcpy.m4: Likewise.
45005         * m4/memrchr.m4: Likewise.
45006         * m4/memset.m4: Likewise.
45007         * m4/minmax.m4: Likewise.
45008         * m4/mkdir-slash.m4: Likewise.
45009         * m4/mkdtemp.m4: Likewise.
45010         * m4/mktime.m4: Likewise.
45011         * m4/mmap-anon.m4: Likewise.
45012         * m4/mountlist.m4: Likewise.
45013         * m4/nanosleep.m4: Likewise.
45014         * m4/nls.m4: Likewise.
45015         * m4/nocrash.m4: Likewise.
45016         * m4/open.m4: Likewise.
45017         * m4/openat.m4: Likewise.
45018         * m4/openmp.m4: Likewise.
45019         * m4/pathmax.m4: Likewise.
45020         * m4/perl.m4: Likewise.
45021         * m4/physmem.m4: Likewise.
45022         * m4/pipe.m4: Likewise.
45023         * m4/po.m4: Likewise.
45024         * m4/poll.m4: Likewise.
45025         * m4/posixtm.m4: Likewise.
45026         * m4/posixver.m4: Likewise.
45027         * m4/printf-frexp.m4: Likewise.
45028         * m4/printf-frexpl.m4: Likewise.
45029         * m4/printf-posix.m4: Likewise.
45030         * m4/printf-posix-rpl.m4: Likewise.
45031         * m4/printf.m4: Likewise.
45032         * m4/progtest.m4: Likewise.
45033         * m4/putenv.m4: Likewise.
45034         * m4/readline.m4: Likewise.
45035         * m4/readlink.m4: Likewise.
45036         * m4/readutmp.m4: Likewise.
45037         * m4/realloc.m4: Likewise.
45038         * m4/regex.m4: Likewise.
45039         * m4/relocatable.m4: Likewise.
45040         * m4/relocatable-lib.m4: Likewise.
45041         * m4/rename-dest-slash.m4: Likewise.
45042         * m4/rename.m4: Likewise.
45043         * m4/rmdir-errno.m4: Likewise.
45044         * m4/rmdir.m4: Likewise.
45045         * m4/roundf.m4: Likewise.
45046         * m4/roundl.m4: Likewise.
45047         * m4/rpmatch.m4: Likewise.
45048         * m4/save-cwd.m4: Likewise.
45049         * m4/selinux-selinux-h.m4: Likewise.
45050         * m4/setenv.m4: Likewise.
45051         * m4/settime.m4: Likewise.
45052         * m4/sig2str.m4: Likewise.
45053         * m4/sig_atomic_t.m4: Likewise.
45054         * m4/signalblocking.m4: Likewise.
45055         * m4/signbit.m4: Likewise.
45056         * m4/sigpipe.m4: Likewise.
45057         * m4/sockets.m4: Likewise.
45058         * m4/sockpfaf.m4: Likewise.
45059         * m4/st_dm_mode.m4: Likewise.
45060         * m4/stat-time.m4: Likewise.
45061         * m4/stdbool.m4: Likewise.
45062         * m4/stdint.m4: Likewise.
45063         * m4/stdint_h.m4: Likewise.
45064         * m4/stpcpy.m4: Likewise.
45065         * m4/stpncpy.m4: Likewise.
45066         * m4/strcase.m4: Likewise.
45067         * m4/strchrnul.m4: Likewise.
45068         * m4/strcspn.m4: Likewise.
45069         * m4/strdup.m4: Likewise.
45070         * m4/strftime.m4: Likewise.
45071         * m4/strndup.m4: Likewise.
45072         * m4/strnlen.m4: Likewise.
45073         * m4/strpbrk.m4: Likewise.
45074         * m4/strptime.m4: Likewise.
45075         * m4/strsep.m4: Likewise.
45076         * m4/strtod.m4: Likewise.
45077         * m4/strtoimax.m4: Likewise.
45078         * m4/strtok_r.m4: Likewise.
45079         * m4/strtol.m4: Likewise.
45080         * m4/strtoll.m4: Likewise.
45081         * m4/strtoul.m4: Likewise.
45082         * m4/strtoull.m4: Likewise.
45083         * m4/strtoumax.m4: Likewise.
45084         * m4/strverscmp.m4: Likewise.
45085         * m4/threadlib.m4: Likewise.
45086         * m4/timegm.m4: Likewise.
45087         * m4/tm_gmtoff.m4: Likewise.
45088         * m4/tmpdir.m4: Likewise.
45089         * m4/tmpfile.m4: Likewise.
45090         * m4/tzset.m4: Likewise.
45091         * m4/uintmax_t.m4: Likewise.
45092         * m4/unlinkdir.m4: Likewise.
45093         * m4/unlocked-io.m4: Likewise.
45094         * m4/uptime.m4: Likewise.
45095         * m4/userspec.m4: Likewise.
45096         * m4/utimbuf.m4: Likewise.
45097         * m4/utime.m4: Likewise.
45098         * m4/utimes-null.m4: Likewise.
45099         * m4/utimes.m4: Likewise.
45100         * m4/vararrays.m4: Likewise.
45101         * m4/vasnprintf.m4: Likewise.
45102         * m4/vfprintf-posix.m4: Likewise.
45103         * m4/vprintf-posix.m4: Likewise.
45104         * m4/wait-process.m4: Likewise.
45105         * m4/wchar_t.m4: Likewise.
45106         * m4/wint_t.m4: Likewise.
45107         * m4/write-any-file.m4: Likewise.
45108         * m4/yield.m4: Likewise.
45109
45110 2009-01-13  Bruno Haible  <bruno@clisp.org>
45111
45112         Avoid test-copy-file.sh failures when ACL support insufficient.
45113         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
45114         TESTS_ENVIRONMENT.
45115         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
45116         Reported by Jim Meyering.
45117
45118 2009-01-13  Bruno Haible  <bruno@clisp.org>
45119
45120         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
45121         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
45122         * modules/unistdio/u8-printf-parse (Files): Likewise.
45123         * modules/unistdio/u32-printf-parse (Files): Likewise.
45124         * modules/unistdio/ulc-printf-parse (Files): Likewise.
45125
45126 2009-01-13  Simon Josefsson  <simon@josefsson.org>
45127
45128         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
45129         and m4/inttypes_h.m4 too.
45130
45131 2009-01-12  Eric Blake  <ebb9@byu.net>
45132
45133         tests: IRIX 6.2 cc can't compile -0.0 into .data
45134         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
45135         rather than at compile-time.
45136         * tests/test-floorl.c (minus_zero): Likewise.
45137         * tests/test-frexpl.c (minus_zero): Likewise.
45138         * tests/test-isnan.c (minus_zerol): Likewise.
45139         * tests/test-isnanl.h (minus_zero): Likewise.
45140         * tests/test-ldexpl.c (minus_zero): Likewise.
45141         * tests/test-roundl.c (minus_zero): Likewise.
45142         * tests/test-signbit.c (minus_zerol): Likewise.
45143         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45144         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45145         * tests/test-truncl.c (minus_zero): Likewise.
45146         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45147         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45148         Reported by Tom G. Christensen and Nelson H. F. Beebe.
45149
45150 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45151
45152         regex: fix glibc bug 9697
45153         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
45154         handling.
45155
45156 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45157
45158         regex: fix glibc bug 697
45159         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
45160         being NULL also if there are no backreferences.
45161
45162 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45163
45164         regex: merge glibc changes
45165         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
45166         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
45167         re_string_skip_chars, re_string_reconstruct): Likewise.
45168         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
45169
45170 2009-01-07  Jim Meyering  <meyering@redhat.com>
45171
45172         poll: filter through cppi
45173         * lib/poll.c: Indent cpp directives to reflect nesting.
45174
45175 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
45176
45177         poll: don't return uninitialized
45178         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
45179
45180 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
45181
45182         avoid compile failure on AIX 6.1
45183         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
45184         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
45185
45186 2009-01-04  Jim Meyering  <meyering@redhat.com>
45187
45188         remove duplicate inclusion of <stdio.h>
45189         * tests/test-fprintf-posix.c: Likewise.
45190         * tests/test-printf-posix.c: Likewise.
45191         * tests/test-snprintf-posix.c: Likewise.
45192         * tests/test-sprintf-posix.c: Likewise.
45193         * tests/test-vasprintf-posix.c: Likewise.
45194         * tests/test-vfprintf-posix.c: Likewise.
45195         * tests/test-vprintf-posix.c: Likewise.
45196         * tests/test-vsnprintf-posix.c: Likewise.
45197         * tests/test-vsprintf-posix.c: Likewise.
45198
45199 2009-01-03  Jim Meyering  <meyering@redhat.com>
45200
45201         gnulib-tool: fix sed-based filtering
45202         * gnulib-tool (func_filter_filelist): Remove extra backslash
45203         in sed_fff_filter definition.
45204
45205 2009-01-02  Jim Meyering  <meyering@redhat.com>
45206
45207         strftime: avoid compilation failure on Solaris 2.6
45208         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
45209         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
45210         Don't #define mbrlen or mbsinit, since now they're guaranteed to
45211         be available.  Reported by Tom G. Christensen.  Details in
45212         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
45213
45214 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45215             Bruno Haible  <bruno@clisp.org>
45216
45217         Speed up gnulib-tool by doing more string processing through shell
45218         built-ins.
45219         * gnulib-tool (fast_func_append): New variable.
45220         (func_remove_prefix, func_remove_suffix): New functions.
45221         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
45222         (func_filter_filelist): New function.
45223         (func_get_dependencies): Use func_remove_suffix instead of sed.
45224         (func_get_automake_snippet): Use func_filter_filelist instead of a
45225         subshell and sed invocation.
45226
45227 2009-01-01  Bruno Haible  <bruno@clisp.org>
45228
45229         Fix a security bug.
45230         * gnulib-tool (func_import, import, update): Don't allow the characters
45231         '"', '$', '`', '\' in macro arguments that become part of commands that
45232         are evaluated.
45233
45234 2009-01-01  Bruno Haible  <bruno@clisp.org>
45235
45236         * gnulib-tool (func_reset_sigpipe): Add more comments.
45237
45238 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45239
45240         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
45241         func_emit_tests_Makefile_am, func_import): Abort loops early if we
45242         already know the answer.
45243
45244 2009-01-01  Jim Meyering  <meyering@redhat.com>
45245
45246         * lib/version-etc.c (version_etc_va): Update copyright year.
45247
45248 2008-12-30  Bruno Haible  <bruno@clisp.org>
45249
45250         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
45251         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
45252         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
45253
45254 2008-12-29  Eric Blake  <ebb9@byu.net>
45255
45256         multiarch: avoid autoconf AC_REQUIRE bug
45257         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
45258         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
45259         2.63 and older.
45260         Reported by Bruno Haible, and analyzed in
45261         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
45262
45263 2008-12-29  Bruno Haible  <bruno@clisp.org>
45264
45265         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
45266         files in subdirectories correctly.
45267         Reported by Ralf Wildenhues.
45268
45269 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45270
45271         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
45272         rather than 'join FILE -', for Solaris join.
45273
45274 2008-12-29  Bruno Haible  <bruno@clisp.org>
45275
45276         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
45277         quoting.
45278         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45279         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
45280         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
45281         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
45282         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45283         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
45284         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
45285         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
45286         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45287         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
45288         * m4/nls.m4 (AM_NLS): Likewise.
45289         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
45290         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
45291         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
45292         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
45293         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
45294         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45295         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
45296         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
45297         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
45298         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45299         * m4/xsize.m4 (gl_XSIZE): Likewise.
45300         Suggested by Jim Meyering.
45301
45302 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45303
45304         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
45305         * lib/parse-duration.c: use a switch instead of cascading if's.
45306
45307 2008-12-29  Eric Blake  <ebb9@byu.net>
45308
45309         wchar.h: supply WEOF on Irix 5.3
45310         * lib/wchar.in.h (wint_t): Also supply WEOF.
45311         * lib/wctype.in.h (wint_t): Likewise.
45312         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
45313         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
45314         Reported by Tom G. Christensen.
45315
45316 2008-12-26  Bruno Haible  <bruno@clisp.org>
45317
45318         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
45319         i486, i586, i686.
45320
45321 2008-12-26  Bruno Haible  <bruno@clisp.org>
45322
45323         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
45324
45325 2008-12-26  Bruno Haible  <bruno@clisp.org>
45326
45327         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
45328         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
45329         not __STDC_CONSTANT_MACROS.
45330         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45331
45332 2008-12-25  Bruno Haible  <bruno@clisp.org>
45333
45334         Add support for universal builds to vasnprintf.
45335         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
45336         universal builds, guess no.
45337         * modules/vasnprintf-posix (Depends-on): Add multiarch.
45338         * modules/vasprintf-posix (Depends-on): Likewise.
45339         * modules/fprintf-posix (Depends-on): Likewise.
45340         * modules/vfprintf-posix (Depends-on): Likewise.
45341         * modules/snprintf-posix (Depends-on): Likewise.
45342         * modules/vsnprintf-posix (Depends-on): Likewise.
45343         * modules/sprintf-posix (Depends-on): Likewise.
45344         * modules/vsprintf-posix (Depends-on): Likewise.
45345         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45346         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45347         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45348         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45349         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45350         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45351         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45352
45353         Add support for universal builds to <inttypes.h>.
45354         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
45355         _SCNu64_PREFIX): In Apple
45356         universal builds, define directly, using _LP64.
45357         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
45358         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
45359         * modules/inttypes (Depends-on): Add multiarch.
45360         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45361
45362         Add support for universal builds to <stdint.h>.
45363         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
45364         universal builds, define directly, using _LP64.
45365         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
45366         Apple universal builds, don't test for the size and suffix of ptrdiff_t
45367         and size_t.
45368         * modules/stdint (Depends-on): Add multiarch.
45369         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45370
45371         New module 'multiarch'.
45372         * modules/multiarch: New file.
45373         * m4/multiarch.m4: New file.
45374
45375 2008-12-25  Bruno Haible  <bruno@clisp.org>
45376
45377         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
45378
45379 2008-12-25  Bruno Haible  <bruno@clisp.org>
45380
45381         * modules/btowc (License): Relicense under LGPLv2+.
45382         * modules/mbsinit (License): Likewise.
45383         * modules/mbrtowc (License): Likewise.
45384         * modules/wcrtomb (License): Likewise.
45385         * modules/streq (License): Likewise.
45386         Reported by David Lutterkort <lutter@redhat.com>.
45387
45388 2008-12-23  Bruno Haible  <bruno@clisp.org>
45389
45390         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
45391
45392 2008-12-23  Bruno Haible  <bruno@clisp.org>
45393
45394         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
45395         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
45396         GETADDRINFO_LIB, not in LIBS.
45397         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
45398         * modules/canon-host (Link): Likewise.
45399         * NEWS: Mention the change.
45400         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
45401         GETADDRINFO_LIB.
45402
45403 2008-12-22  Bruno Haible  <bruno@clisp.org>
45404
45405         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
45406         * doc/posix-functions/iswalpha_l.texi: Likewise.
45407         * doc/posix-functions/iswblank_l.texi: Likewise.
45408         * doc/posix-functions/iswcntrl_l.texi: Likewise.
45409         * doc/posix-functions/iswctype_l.texi: Likewise.
45410         * doc/posix-functions/iswdigit_l.texi: Likewise.
45411         * doc/posix-functions/iswgraph_l.texi: Likewise.
45412         * doc/posix-functions/iswlower_l.texi: Likewise.
45413         * doc/posix-functions/iswprint_l.texi: Likewise.
45414         * doc/posix-functions/iswpunct_l.texi: Likewise.
45415         * doc/posix-functions/iswspace_l.texi: Likewise.
45416         * doc/posix-functions/iswupper_l.texi: Likewise.
45417         * doc/posix-functions/iswxdigit_l.texi: Likewise.
45418         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
45419         * doc/posix-functions/open_wmemstream.texi: Likewise.
45420         * doc/posix-functions/swscanf.texi: Likewise.
45421         * doc/posix-functions/towctrans_l.texi: Likewise.
45422         * doc/posix-functions/towlower.texi: Likewise.
45423         * doc/posix-functions/towlower_l.texi: Likewise.
45424         * doc/posix-functions/towupper.texi: Likewise.
45425         * doc/posix-functions/towupper_l.texi: Likewise.
45426         * doc/posix-functions/vfwprintf.texi: Likewise.
45427         * doc/posix-functions/vfwscanf.texi: Likewise.
45428         * doc/posix-functions/vswscanf.texi: Likewise.
45429         * doc/posix-functions/vwprintf.texi: Likewise.
45430         * doc/posix-functions/vwscanf.texi: Likewise.
45431         * doc/posix-functions/wcpcpy.texi: Likewise.
45432         * doc/posix-functions/wcpncpy.texi: Likewise.
45433         * doc/posix-functions/wcscasecmp.texi: Likewise.
45434         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
45435         * doc/posix-functions/wcscoll_l.texi: Likewise.
45436         * doc/posix-functions/wcsdup.texi: Likewise.
45437         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45438         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
45439         * doc/posix-functions/wcsnlen.texi: Likewise.
45440         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45441         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
45442         * doc/posix-functions/wctrans_l.texi: Likewise.
45443         * doc/posix-functions/wctype_l.texi: Likewise.
45444         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
45445         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
45446         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
45447         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
45448         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
45449         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
45450         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
45451         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
45452         * doc/glibc-functions/wcschrnul.texi: Likewise.
45453         * doc/glibc-functions/wcsftime_l.texi: Likewise.
45454         * doc/glibc-functions/wcstod_l.texi: Likewise.
45455         * doc/glibc-functions/wcstof_l.texi: Likewise.
45456         * doc/glibc-functions/wcstol_l.texi: Likewise.
45457         * doc/glibc-functions/wcstold_l.texi: Likewise.
45458         * doc/glibc-functions/wcstoll_l.texi: Likewise.
45459         * doc/glibc-functions/wcstoq.texi: Likewise.
45460         * doc/glibc-functions/wcstoul_l.texi: Likewise.
45461         * doc/glibc-functions/wcstoull_l.texi: Likewise.
45462         * doc/glibc-functions/wcstouq.texi: Likewise.
45463         * doc/glibc-functions/wmempcpy.texi: Likewise.
45464
45465 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
45466             Eric Blake  <ebb9@byu.net>
45467             Paolo Bonzini  <bonzini@gnu.org>
45468             Bruno Haible  <bruno@clisp.org>
45469
45470         Make c-stack work on Haiku.
45471         * lib/c-stack.c (SA_ONSTACK): Define fallback.
45472         (c_stack_action): Use SA_ONSTACK flag.
45473
45474 2008-12-22  Bruno Haible  <bruno@clisp.org>
45475
45476         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
45477
45478 2008-12-22  Bruno Haible  <bruno@clisp.org>
45479
45480         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
45481         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
45482         being overridden.
45483         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
45484         New macros.
45485         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
45486         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
45487         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
45488         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
45489
45490 2008-12-22  Bruno Haible  <bruno@clisp.org>
45491
45492         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
45493         from test code.
45494
45495 2008-12-22  Eric Blake  <ebb9@byu.net>
45496
45497         Avoid gcc warnings on cygwin.
45498         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
45499         Avoid unused variable.
45500         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
45501         Likewise.
45502
45503 2008-12-22  Bruno Haible  <bruno@clisp.org>
45504
45505         Remove HAVE_MBRTOWC conditionals.
45506         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
45507         (mbscasecmp): Assume mbrtowc function.
45508         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
45509         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
45510         * lib/mbschr.c: Include mbuiter.h unconditionally.
45511         (mbschr): Assume mbrtowc function.
45512         * lib/mbscspn.c: Include mbuiter.h unconditionally.
45513         (mbscspn): Assume mbrtowc function.
45514         * lib/mbslen.c: Include mbuiter.h unconditionally.
45515         (mbslen): Assume mbrtowc function.
45516         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
45517         (mbsncasecmp): Assume mbrtowc function.
45518         * lib/mbsnlen.c: Include mbiter.h unconditionally.
45519         (mbsnlen): Assume mbrtowc function.
45520         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
45521         (mbspbrk): Assume mbrtowc function.
45522         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
45523         (mbspcasecmp): Assume mbrtowc function.
45524         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
45525         (mbsrchr): Assume mbrtowc function.
45526         * lib/mbssep.c: Include mbuiter.h unconditionally.
45527         (mbssep): Assume mbrtowc function.
45528         * lib/mbsspn.c: Include mbuiter.h unconditionally.
45529         (mbsspn): Assume mbrtowc function.
45530         * lib/mbsstr.c: Include mbuiter.h unconditionally.
45531         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
45532         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
45533         (mbstok_r): Assume mbrtowc function.
45534         * lib/propername.c: Include mbuiter.h unconditionally.
45535         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
45536         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
45537         (trim2): Assume mbrtowc function.
45538         * lib/mbswidth.c (mbsinit): Remove fallback definition.
45539         (mbsnwidth): Assume mbrtowc function.
45540         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
45541         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
45542         fallback definitions.
45543         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
45544
45545 2008-12-22  Bruno Haible  <bruno@clisp.org>
45546
45547         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
45548
45549 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
45550
45551         * modules/regex: Request emulations for the mb*/wc* functions we need.
45552         * m4/regex.m4: Don't look for those functions here.
45553         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
45554
45555 2008-12-22  Bruno Haible  <bruno@clisp.org>
45556
45557         * modules/fnmatch (Depends-on): Remove duplicated dependency.
45558
45559 2008-12-21  Bruno Haible  <bruno@clisp.org>
45560
45561         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
45562         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
45563         (Include): Remove conditionalization.
45564         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
45565         (Include): Remove conditionalization.
45566         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
45567         (Include): Remove conditionalization.
45568         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
45569         * m4/mbfile.m4 (gl_MBFILE): Likewise.
45570         * NEWS: Mention the change.
45571         Reported by Alan Hourihane <alanh@fairlite.co.uk>
45572         via Sergey Poznyakoff <gray@gnu.org.ua>.
45573
45574 2008-12-21  Bruno Haible  <bruno@clisp.org>
45575
45576         * MODULES.html.sh (Extended multibyte and wide character utilities
45577         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
45578         wcrtomb, wcsrtombs.
45579         (Support for systems lacking POSIX:2008): Add accept, bind, close,
45580         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
45581         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
45582         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
45583
45584 2008-12-21  Bruno Haible  <bruno@clisp.org>
45585
45586         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
45587
45588 2008-12-21  Bruno Haible  <bruno@clisp.org>
45589
45590         * modules/wcsnrtombs-tests: New file.
45591         * tests/test-wcsnrtombs1.sh: New file.
45592         * tests/test-wcsnrtombs2.sh: New file.
45593         * tests/test-wcsnrtombs3.sh: New file.
45594         * tests/test-wcsnrtombs4.sh: New file.
45595         * tests/test-wcsnrtombs.c: New file.
45596
45597         New module 'wcsnrtombs'.
45598         * lib/wchar.in.h (wcsnrtombs): New declaration.
45599         * lib/wcsnrtombs.c: New file.
45600         * lib/wcsrtombs-state.c: New file.
45601         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
45602         (internal_state): Remove variable.
45603         * m4/wcsnrtombs.m4: New file.
45604         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
45605         compilation units.
45606         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
45607         HAVE_WCSNRTOMBS.
45608         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
45609         HAVE_WCSNRTOMBS.
45610         * modules/wcsnrtombs: New file.
45611         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
45612         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
45613
45614 2008-12-21  Bruno Haible  <bruno@clisp.org>
45615
45616         * modules/wcsrtombs-tests: New file.
45617         * tests/test-wcsrtombs1.sh: New file.
45618         * tests/test-wcsrtombs2.sh: New file.
45619         * tests/test-wcsrtombs3.sh: New file.
45620         * tests/test-wcsrtombs4.sh: New file.
45621         * tests/test-wcsrtombs.c: New file.
45622
45623         New module 'wcsrtombs'.
45624         * lib/wchar.in.h (wcsrtombs): New declaration.
45625         * lib/wcsrtombs.c: New file.
45626         * m4/wcsrtombs.m4: New file.
45627         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
45628         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45629         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
45630         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45631         * modules/wcsrtombs: New file.
45632         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
45633         bugs.
45634
45635 2008-12-21  Bruno Haible  <bruno@clisp.org>
45636
45637         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
45638         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
45639         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
45640         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
45641         if not correct.
45642         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
45643         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
45644         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45645         m4/locale-zh.m4, m4/codeset.m4.
45646         * doc/posix-functions/wcrtomb.texi: Document the bug.
45647
45648 2008-12-21  Bruno Haible  <bruno@clisp.org>
45649
45650         Work around a btowc() bug on IRIX 6.5.
45651         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
45652         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
45653         REPLACE_WTOBC if not.
45654         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
45655         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
45656         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
45657
45658 2008-12-21  Bruno Haible  <bruno@clisp.org>
45659
45660         * modules/wcrtomb-tests: New file.
45661         * tests/test-wcrtomb.sh: New file.
45662         * tests/test-wcrtomb.c: New file.
45663
45664         New module 'wcrtomb'.
45665         * lib/wchar.in.h (wcrtomb): New declaration.
45666         * lib/wcrtomb.c: New file.
45667         * m4/wcrtomb.m4: New file.
45668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
45669         HAVE_WCRTOMB.
45670         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
45671         HAVE_WCRTOMB.
45672         * modules/wcrtomb: New file.
45673         * doc/posix-functions/wcrtomb.texi: Mention the new module.
45674
45675 2008-12-21  Bruno Haible  <bruno@clisp.org>
45676
45677         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
45678         * modules/mbsrtowcs (Files): Likewise.
45679         * modules/wctob (Files): Likewise.
45680         * modules/c-strcase-tests (Files): Likewise.
45681         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
45682         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
45683         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
45684         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
45685         * modules/vasnprintf-posix-tests (Files): Likewise.
45686
45687 2008-12-21  William Pursell  <bill.pursell@gmail.com>
45688
45689         gitlog-to-changelog: pass all command-line arguments to git-log
45690         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
45691         it is sometimes convenient to filter the commits in various ways.
45692         gitlog-to-changelog only allows --since to specify a start date,
45693         but git-log itself supports many other filtering mechanisms.
45694         At the moment, I want to filter by branch name.  Rather than
45695         adding a --branch option to gitlog-to-changelog, it seems more
45696         flexible to simply pass all options directly to git-log and let
45697         git do the work.  Notice that this effectively makes --since a
45698         redundant option for gitlog-to-changelog, but removing it would
45699         require current usage to change since calls would then require
45700         an additional '--'.
45701
45702 2008-12-21  Bruno Haible  <bruno@clisp.org>
45703
45704         * modules/mbsnrtowcs-tests: New file.
45705         * tests/test-mbsnrtowcs1.sh: New file.
45706         * tests/test-mbsnrtowcs2.sh: New file.
45707         * tests/test-mbsnrtowcs3.sh: New file.
45708         * tests/test-mbsnrtowcs4.sh: New file.
45709         * tests/test-mbsnrtowcs.c: New file.
45710
45711         New module 'mbsnrtowcs'.
45712         * lib/wchar.in.h (mbsnrtowcs): New declaration.
45713         * lib/mbsnrtowcs.c: New file.
45714         * lib/mbsrtowcs-state.c: New file.
45715         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
45716         (internal_state): Remove variable.
45717         * m4/mbsnrtowcs.m4: New file.
45718         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
45719         compilation units.
45720         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
45721         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45722         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
45723         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45724         * modules/mbsnrtowcs: New file.
45725         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
45726         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
45727         portability problem.
45728
45729 2008-12-21  Bruno Haible  <bruno@clisp.org>
45730
45731         Work around mbsrtowcs bug.
45732         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
45733         (gl_FUNC_MBSRTOWCS): Invoke it.
45734         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45735         m4/locale-zh.m4.
45736         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
45737
45738 2008-12-21  Bruno Haible  <bruno@clisp.org>
45739
45740         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
45741
45742 2008-12-21  Bruno Haible  <bruno@clisp.org>
45743
45744         Update doc for AIX.
45745         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
45746         16-bit wchar_t type.
45747         * doc/posix-functions/btowc.texi: Likewise.
45748         * doc/posix-functions/fgetwc.texi: Likewise.
45749         * doc/posix-functions/fgetws.texi: Likewise.
45750         * doc/posix-functions/fputwc.texi: Likewise.
45751         * doc/posix-functions/fputws.texi: Likewise.
45752         * doc/posix-functions/fwide.texi: Likewise.
45753         * doc/posix-functions/fwprintf.texi: Likewise.
45754         * doc/posix-functions/fwscanf.texi: Likewise.
45755         * doc/posix-functions/getwchar.texi: Likewise.
45756         * doc/posix-functions/getwc.texi: Likewise.
45757         * doc/posix-functions/iswalnum.texi: Likewise.
45758         * doc/posix-functions/iswalpha.texi: Likewise.
45759         * doc/posix-functions/iswblank.texi: Likewise.
45760         * doc/posix-functions/iswcntrl.texi: Likewise.
45761         * doc/posix-functions/iswctype.texi: Likewise.
45762         * doc/posix-functions/iswdigit.texi: Likewise.
45763         * doc/posix-functions/iswgraph.texi: Likewise.
45764         * doc/posix-functions/iswlower.texi: Likewise.
45765         * doc/posix-functions/iswprint.texi: Likewise.
45766         * doc/posix-functions/iswpunct.texi: Likewise.
45767         * doc/posix-functions/iswspace.texi: Likewise.
45768         * doc/posix-functions/iswupper.texi: Likewise.
45769         * doc/posix-functions/iswxdigit.texi: Likewise.
45770         * doc/posix-functions/mbrtowc.texi: Likewise.
45771         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45772         * doc/posix-functions/mbstowcs.texi: Likewise.
45773         * doc/posix-functions/mbtowc.texi: Likewise.
45774         * doc/posix-functions/putwchar.texi: Likewise.
45775         * doc/posix-functions/putwc.texi: Likewise.
45776         * doc/posix-functions/swprintf.texi: Likewise.
45777         * doc/posix-functions/tolower.texi: Likewise.
45778         * doc/posix-functions/toupper.texi: Likewise.
45779         * doc/posix-functions/towctrans.texi: Likewise.
45780         * doc/posix-functions/ungetwc.texi: Likewise.
45781         * doc/posix-functions/vswprintf.texi: Likewise.
45782         * doc/posix-functions/wcrtomb.texi: Likewise.
45783         * doc/posix-functions/wcscat.texi: Likewise.
45784         * doc/posix-functions/wcschr.texi: Likewise.
45785         * doc/posix-functions/wcscmp.texi: Likewise.
45786         * doc/posix-functions/wcscoll.texi: Likewise.
45787         * doc/posix-functions/wcscpy.texi: Likewise.
45788         * doc/posix-functions/wcscspn.texi: Likewise.
45789         * doc/posix-functions/wcsftime.texi: Likewise.
45790         * doc/posix-functions/wcslen.texi: Likewise.
45791         * doc/posix-functions/wcsncat.texi: Likewise.
45792         * doc/posix-functions/wcsncmp.texi: Likewise.
45793         * doc/posix-functions/wcsncpy.texi: Likewise.
45794         * doc/posix-functions/wcspbrk.texi: Likewise.
45795         * doc/posix-functions/wcsrchr.texi: Likewise.
45796         * doc/posix-functions/wcsrtombs.texi: Likewise.
45797         * doc/posix-functions/wcsspn.texi: Likewise.
45798         * doc/posix-functions/wcsstr.texi: Likewise.
45799         * doc/posix-functions/wcstod.texi: Likewise.
45800         * doc/posix-functions/wcstof.texi: Likewise.
45801         * doc/posix-functions/wcstoimax.texi: Likewise.
45802         * doc/posix-functions/wcstok.texi: Likewise.
45803         * doc/posix-functions/wcstold.texi: Likewise.
45804         * doc/posix-functions/wcstoll.texi: Likewise.
45805         * doc/posix-functions/wcstol.texi: Likewise.
45806         * doc/posix-functions/wcstombs.texi: Likewise.
45807         * doc/posix-functions/wcstoull.texi: Likewise.
45808         * doc/posix-functions/wcstoul.texi: Likewise.
45809         * doc/posix-functions/wcstoumax.texi: Likewise.
45810         * doc/posix-functions/wcswidth.texi: Likewise.
45811         * doc/posix-functions/wcsxfrm.texi: Likewise.
45812         * doc/posix-functions/wctob.texi: Likewise.
45813         * doc/posix-functions/wctomb.texi: Likewise.
45814         * doc/posix-functions/wctrans.texi: Likewise.
45815         * doc/posix-functions/wctype.texi: Likewise.
45816         * doc/posix-functions/wcwidth.texi: Likewise.
45817         * doc/posix-functions/wmemchr.texi: Likewise.
45818         * doc/posix-functions/wmemcmp.texi: Likewise.
45819         * doc/posix-functions/wmemcpy.texi: Likewise.
45820         * doc/posix-functions/wmemmove.texi: Likewise.
45821         * doc/posix-functions/wmemset.texi: Likewise.
45822         * doc/posix-functions/wprintf.texi: Likewise.
45823         * doc/posix-functions/wscanf.texi: Likewise.
45824
45825 2008-12-21  Bruno Haible  <bruno@clisp.org>
45826
45827         Update doc for HP-UX 11.11.
45828         * doc/posix-functions/btowc.texi: Clarify that the function is missing
45829         in HP-UX version 11.00, not in all versions of HP-UX 11.
45830         * doc/posix-functions/fwide.texi: Likewise.
45831         * doc/posix-functions/fwprintf.texi: Likewise.
45832         * doc/posix-functions/fwscanf.texi: Likewise.
45833         * doc/posix-functions/inet_ntop.texi: Likewise.
45834         * doc/posix-functions/inet_pton.texi: Likewise.
45835         * doc/posix-functions/mbrlen.texi: Likewise.
45836         * doc/posix-functions/mbrtowc.texi: Likewise.
45837         * doc/posix-functions/mbsinit.texi: Likewise.
45838         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45839         * doc/posix-functions/swprintf.texi: Likewise.
45840         * doc/posix-functions/swscanf.texi: Likewise.
45841         * doc/posix-functions/towctrans.texi: Likewise.
45842         * doc/posix-functions/vfwprintf.texi: Likewise.
45843         * doc/posix-functions/vswprintf.texi: Likewise.
45844         * doc/posix-functions/vwprintf.texi: Likewise.
45845         * doc/posix-functions/wcrtomb.texi: Likewise.
45846         * doc/posix-functions/wcsrtombs.texi: Likewise.
45847         * doc/posix-functions/wcsstr.texi: Likewise.
45848         * doc/posix-functions/wctob.texi: Likewise.
45849         * doc/posix-functions/wctrans.texi: Likewise.
45850         * doc/posix-functions/wmemchr.texi: Likewise.
45851         * doc/posix-functions/wmemcmp.texi: Likewise.
45852         * doc/posix-functions/wmemcpy.texi: Likewise.
45853         * doc/posix-functions/wmemmove.texi: Likewise.
45854         * doc/posix-functions/wmemset.texi: Likewise.
45855         * doc/posix-functions/wprintf.texi: Likewise.
45856         * doc/posix-functions/wscanf.texi: Likewise.
45857
45858 2008-12-21  Bruno Haible  <bruno@clisp.org>
45859
45860         Work around a portability problem.
45861         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
45862         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
45863
45864 2008-12-20  Bruno Haible  <bruno@clisp.org>
45865
45866         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
45867         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
45868         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
45869         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
45870         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
45871
45872         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
45873         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
45874         set.
45875         (GNULIB_defined_mbstate_t): New macro.
45876         (mbsinit): Redefine if REPLACE_MBSINIT is set.
45877         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
45878         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
45879         reuses the system's mbrtowc function but works around the bugs.
45880         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
45881         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
45882         macros.
45883         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
45884         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
45885         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
45886         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
45887         REPLACE_MBSINIT if mbsinit needs to be overridden.
45888         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
45889         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45890         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
45891         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45892         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45893         m4/locale-zh.m4.
45894         (Depends): Add mbsinit.
45895         * modules/mbsinit (Depends): Add mbrtowc.
45896         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
45897
45898 2008-12-20  Bruno Haible  <bruno@clisp.org>
45899
45900         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
45901         so that there are no conversion errors on AIX.
45902         * tests/test-mbsrtowcs.c (main): LIkewise.
45903
45904 2008-12-20  Bruno Haible  <bruno@clisp.org>
45905
45906         Work around wctob bug on Solaris <= 9.
45907         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
45908         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
45909         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
45910         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
45911         * modules/wctob (Files): Add m4/locale-fr.m4.
45912         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
45913
45914 2008-12-20  Bruno Haible  <bruno@clisp.org>
45915
45916         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
45917         /dev/null.
45918         * tests/test-select-in.sh: Likewise.
45919         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45920
45921 2008-12-20  Bruno Haible  <bruno@clisp.org>
45922
45923         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
45924         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
45925         Cygwin 1.5.x.
45926
45927 2008-12-20  Bruno Haible  <bruno@clisp.org>
45928
45929         Ensure mbstate_t is defined on HP-UX 11.11.
45930         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
45931         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
45932         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
45933         AC_USE_SYSTEM_EXTENSIONS.
45934         * modules/fnmatch (Depends-on): Add extensions.
45935         * modules/mbrlen (Depends-on): Likewise.
45936         * modules/mbrtowc (Depends-on): Likewise.
45937         * modules/mbsinit (Depends-on): Likewise.
45938         * modules/mbsrtowcs (Depends-on): Likewise.
45939         * modules/mbswidth (Depends-on): Likewise.
45940         * modules/quotearg (Depends-on): Likewise.
45941         * modules/strftime (Depends-on): Likewise.
45942
45943 2008-12-20  Bruno Haible  <bruno@clisp.org>
45944
45945         Ensure wctob is declared on IRIX 6.5.
45946         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
45947         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
45948         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
45949         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
45950         of HAVE_WCTOB.
45951         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
45952         HAVE_WCTOB.
45953         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
45954
45955 2008-12-19  Bruno Haible  <bruno@clisp.org>
45956
45957         * modules/mbsrtowcs-tests: New file.
45958         * tests/test-mbsrtowcs1.sh: New file.
45959         * tests/test-mbsrtowcs2.sh: New file.
45960         * tests/test-mbsrtowcs3.sh: New file.
45961         * tests/test-mbsrtowcs4.sh: New file.
45962         * tests/test-mbsrtowcs.c: New file.
45963
45964         New module 'mbsrtowcs'.
45965         * lib/wchar.in.h (mbsrtowcs): New declaration.
45966         * lib/mbsrtowcs.c: New file.
45967         * m4/mbsrtowcs.m4: New file.
45968         * modules/mbsrtowcs: New file.
45969         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
45970         HAVE_MBSRTOWCS.
45971         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
45972         HAVE_MBSRTOWCS.
45973         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
45974
45975 2008-12-19  Bruno Haible  <bruno@clisp.org>
45976
45977         New module 'mbrlen'.
45978         * lib/wchar.in.h (mbrlen): New declaration.
45979         * lib/mbrlen.c: New file.
45980         * m4/mbrlen.m4: New file.
45981         * modules/mbrlen: New file.
45982         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
45983         HAVE_MBRLEN.
45984         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
45985         HAVE_MBRLEN.
45986         * doc/posix-functions/mbrlen.texi: Document the new module.
45987
45988 2008-12-19  Bruno Haible  <bruno@clisp.org>
45989
45990         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
45991         * modules/mbrtowc (Depends-on): Add verify.
45992         Suggested by Paul Eggert.
45993
45994 2008-12-18  Bruno Haible  <bruno@clisp.org>
45995
45996         * modules/mbsinit-tests: New file.
45997         * tests/test-mbsinit.sh: New file.
45998         * tests/test-mbsinit.c: New file.
45999
46000 2008-12-18  Bruno Haible  <bruno@clisp.org>
46001
46002         * modules/mbrtowc-tests: New file.
46003         * tests/test-mbrtowc1.sh: New file.
46004         * tests/test-mbrtowc2.sh: New file.
46005         * tests/test-mbrtowc3.sh: New file.
46006         * tests/test-mbrtowc4.sh: New file.
46007         * tests/test-mbrtowc.c: New file.
46008
46009         New module 'mbrtowc'.
46010         * lib/wchar.in.h (mbstate_t): Override when the system does not have
46011         mbsinit and mbrtowc.
46012         (mbrtowc): New declaration.
46013         * lib/mbrtowc.c: New file.
46014         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
46015         * modules/mbrtowc: New file.
46016         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
46017         HAVE_MBRTOWC.
46018         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
46019         HAVE_MBRTOWC.
46020         * doc/posix-functions/mbrtowc.texi: Document the new module.
46021
46022 2008-12-18  Bruno Haible  <bruno@clisp.org>
46023
46024         New module 'wctob'.
46025         * lib/wchar.in.h (wctob): New declaration.
46026         * lib/wctob.c: New file.
46027         * m4/wctob.m4: New file.
46028         * modules/wctob: New file.
46029         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
46030         HAVE_WCTOB.
46031         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
46032         * doc/posix-functions/wctob.texi: Document the new module.
46033
46034 2008-12-18  Bruno Haible  <bruno@clisp.org>
46035
46036         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
46037         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
46038
46039 2008-12-18  Simon Josefsson  <simon@josefsson.org>
46040
46041         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
46042         G. Christensen" <tgc@jupiterrise.com>.
46043
46044         * lib/flock.c: Need to include errno.h.  Reported by "Tom
46045         G. Christensen" <tgc@jupiterrise.com>.
46046
46047         * lib/flock.c: Need to include string.h.  Reported by "Tom
46048         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
46049         <ebb9@byu.net>.
46050
46051 2008-12-18  Bruno Haible  <bruno@clisp.org>
46052
46053         * m4/locale-ja.m4: New file, from GNU gettext.
46054
46055 2008-12-17  Bruno Haible  <bruno@clisp.org>
46056
46057         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
46058         Suggested by Eric Blake.
46059
46060 2008-12-17  Bruno Haible  <bruno@clisp.org>
46061
46062         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
46063
46064 2008-12-17  Bruno Haible  <bruno@clisp.org>
46065
46066         * lib/mbsinit.c: Include verify.h. Verify an assumption.
46067         * modules/mbsinit (Depends-on): Add verify.
46068         Suggested by Paul Eggert.
46069
46070 2008-12-17  Bruno Haible  <bruno@clisp.org>
46071
46072         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
46073         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
46074         gl_FUNC_MBRTOWC.
46075         * m4/mbiter.m4 (gl_MBITER): LIkewise.
46076         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
46077         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
46078         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
46079         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
46080         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
46081         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
46082         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
46083         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
46084         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
46085         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
46086         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
46087         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
46088         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
46089         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
46090         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46091         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
46092         * modules/trim (configure.ac): Likewise.
46093
46094 2008-12-17  Bruno Haible  <bruno@clisp.org>
46095
46096         * modules/btowc-tests: New file.
46097         * tests/test-btowc1.sh: New file.
46098         * tests/test-btowc2.sh: New file.
46099         * tests/test-btowc.c: New file.
46100
46101         New module 'btowc'.
46102         * lib/wchar.in.h (btowc): New declaration.
46103         * lib/btowc.c: New file.
46104         * m4/btowc.m4: New file.
46105         * modules/btowc: New file.
46106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
46107         HAVE_BTOWC.
46108         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
46109         * doc/posix-functions/btowc.texi: Document the new module.
46110
46111 2008-12-17  Bruno Haible  <bruno@clisp.org>
46112
46113         New module 'mbsinit'.
46114         * lib/wchar.in.h (mbsinit): New declaration.
46115         * lib/mbsinit.c: New file.
46116         * m4/mbsinit.m4: New file.
46117         * modules/mbsinit: New file.
46118         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
46119         HAVE_MBSINIT.
46120         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
46121         HAVE_MBSINIT.
46122         * doc/posix-functions/mbsinit.texi: Document the new module.
46123
46124 2008-12-16  Bruno Haible  <bruno@clisp.org>
46125
46126         * lib/unistd.in.h: Add comment.
46127         * tests/test-environ.c: Don't include <stdlib.h>.
46128
46129 2008-12-16  Bruno Haible  <bruno@clisp.org>
46130
46131         * lib/parse-duration.h (parse_duration): Document return value
46132         convention.
46133         * lib/parse-duration.c: Include specification header first. Add
46134         comments.
46135         (_): Remove macro.
46136         (parse_year_month_day, parse_hour_minute_second): Move side effects
46137         outside of strchr call.
46138         (parse_non_iso8601): Move side effects outside of isspace call.
46139         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
46140         call.
46141
46142 2008-12-16  Bruno Haible  <bruno@clisp.org>
46143
46144         * tests/test-parse-duration.sh: Produce no output when the test
46145         succeeds.
46146
46147 2008-12-16  Bruno Haible  <bruno@clisp.org>
46148
46149         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
46150         expressions.
46151
46152 2008-12-15  Bruno Haible  <bruno@clisp.org>
46153
46154         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
46155         * doc/glibc-functions/flistxattr.texi: Likewise.
46156         * doc/glibc-functions/fopencookie.texi: Likewise.
46157         * doc/glibc-functions/fremovexattr.texi: Likewise.
46158         * doc/glibc-functions/fsetxattr.texi: Likewise.
46159         * doc/glibc-functions/getxattr.texi: Likewise.
46160         * doc/glibc-functions/lgetxattr.texi: Likewise.
46161         * doc/glibc-functions/listxattr.texi: Likewise.
46162         * doc/glibc-functions/llistxattr.texi: Likewise.
46163         * doc/glibc-functions/lremovexattr.texi: Likewise.
46164         * doc/glibc-functions/lsetxattr.texi: Likewise.
46165         * doc/glibc-functions/removexattr.texi: Likewise.
46166         * doc/glibc-functions/setxattr.texi: Likewise.
46167         * doc/posix-functions/open_memstream.texi: Likewise.
46168
46169 2008-12-15  Eric Blake  <ebb9@byu.net>
46170
46171         Update doc for cygwin 1.7.
46172         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
46173         functions.
46174         * doc/posix-functions/fchmodat.texi: Likewise.
46175         * doc/posix-functions/fchownat.texi: Likewise.
46176         * doc/posix-functions/fdopendir.texi: Likewise.
46177         * doc/posix-functions/fmemopen.texi: Likewise.
46178         * doc/posix-functions/freeaddrinfo.texi: Likewise.
46179         * doc/posix-functions/fstatat.texi: Likewise.
46180         * doc/posix-functions/futimens.texi: Likewise.
46181         * doc/posix-functions/gai_strerror.texi: Likewise.
46182         * doc/posix-functions/getaddrinfo.texi: Likewise.
46183         * doc/posix-functions/getnameinfo.texi: Likewise.
46184         * doc/posix-functions/if_freenameindex.texi: Likewise.
46185         * doc/posix-functions/if_indextoname.texi: Likewise.
46186         * doc/posix-functions/if_nameindex.texi: Likewise.
46187         * doc/posix-functions/if_nametoindex.texi: Likewise.
46188         * doc/posix-functions/insque.texi: Likewise.
46189         * doc/posix-functions/linkat.texi: Likewise.
46190         * doc/posix-functions/llrint.texi: Likewise.
46191         * doc/posix-functions/llrintf.texi: Likewise.
46192         * doc/posix-functions/llrintl.texi: Likewise.
46193         * doc/posix-functions/lockf.texi: Likewise.
46194         * doc/posix-functions/lrintl.texi: Likewise.
46195         * doc/posix-functions/mkdirat.texi: Likewise.
46196         * doc/posix-functions/mkfifoat.texi: Likewise.
46197         * doc/posix-functions/mknodat.texi: Likewise.
46198         * doc/posix-functions/mq_close.texi: Likewise.
46199         * doc/posix-functions/mq_getattr.texi: Likewise.
46200         * doc/posix-functions/mq_notify.texi: Likewise.
46201         * doc/posix-functions/mq_open.texi: Likewise.
46202         * doc/posix-functions/mq_receive.texi: Likewise.
46203         * doc/posix-functions/mq_send.texi: Likewise.
46204         * doc/posix-functions/mq_setattr.texi: Likewise.
46205         * doc/posix-functions/mq_timedreceive.texi: Likewise.
46206         * doc/posix-functions/mq_timedsend.texi: Likewise.
46207         * doc/posix-functions/mq_unlink.texi: Likewise.
46208         * doc/posix-functions/open_memstream.texi: Likewise.
46209         * doc/posix-functions/openat.texi: Likewise.
46210         * doc/posix-functions/posix_fadvise.texi: Likewise.
46211         * doc/posix-functions/posix_fallocate.texi: Likewise.
46212         * doc/posix-functions/posix_madvise.texi: Likewise.
46213         * doc/posix-functions/posix_memalign.texi: Likewise.
46214         * doc/posix-functions/posix_openpt.texi: Likewise.
46215         * doc/posix-functions/readlinkat.texi: Likewise.
46216         * doc/posix-functions/remque.texi: Likewise.
46217         * doc/posix-functions/renameat.texi: Likewise.
46218         * doc/posix-functions/rintl.texi: Likewise.
46219         * doc/posix-functions/sem_unlink.texi: Likewise.
46220         * doc/posix-functions/shm_open.texi: Likewise.
46221         * doc/posix-functions/shm_unlink.texi: Likewise.
46222         * doc/posix-functions/signgam.texi: Likewise.
46223         * doc/posix-functions/sigset.texi: Likewise.
46224         * doc/posix-functions/stpcpy.texi: Likewise.
46225         * doc/posix-functions/stpncpy.texi: Likewise.
46226         * doc/posix-functions/strerror.texi: Likewise.
46227         * doc/posix-functions/strtod.texi: Likewise.
46228         * doc/posix-functions/symlinkat.texi: Likewise.
46229         * doc/posix-functions/unlinkat.texi: Likewise.
46230         * doc/posix-functions/utimensat.texi: Likewise.
46231         * doc/glibc-functions/bindresvport.texi: Likewise.
46232         * doc/glibc-functions/dn_expand.texi: Likewise.
46233         * doc/glibc-functions/exp10.texi: Likewise.
46234         * doc/glibc-functions/exp10f.texi: Likewise.
46235         * doc/glibc-functions/fgetxattr.texi: Likewise.
46236         * doc/glibc-functions/flistxattr.texi: Likewise.
46237         * doc/glibc-functions/fopencookie.texi: Likewise.
46238         * doc/glibc-functions/freeifaddrs.texi: Likewise.
46239         * doc/glibc-functions/fremovexattr.texi: Likewise.
46240         * doc/glibc-functions/fsetxattr.texi: Likewise.
46241         * doc/glibc-functions/getifaddrs.texi: Likewise.
46242         * doc/glibc-functions/getxattr.texi: Likewise.
46243         * doc/glibc-functions/lgetxattr.texi: Likewise.
46244         * doc/glibc-functions/listxattr.texi: Likewise.
46245         * doc/glibc-functions/llistxattr.texi: Likewise.
46246         * doc/glibc-functions/lremovexattr.texi: Likewise.
46247         * doc/glibc-functions/lsetxattr.texi: Likewise.
46248         * doc/glibc-functions/pow10.texi: Likewise.
46249         * doc/glibc-functions/pow10f.texi: Likewise.
46250         * doc/glibc-functions/rcmd_af.texi: Likewise.
46251         * doc/glibc-functions/removexattr.texi: Likewise.
46252         * doc/glibc-functions/res_init.texi: Likewise.
46253         * doc/glibc-functions/res_mkquery.texi: Likewise.
46254         * doc/glibc-functions/res_query.texi: Likewise.
46255         * doc/glibc-functions/res_querydomain.texi: Likewise.
46256         * doc/glibc-functions/res_send.texi: Likewise.
46257         * doc/glibc-functions/rresvport_af.texi: Likewise.
46258         * doc/glibc-functions/setxattr.texi: Likewise.
46259         * doc/glibc-functions/strcasestr.texi: Likewise.
46260
46261 2008-12-15  Bruno Haible  <bruno@clisp.org>
46262
46263         Fix compilation error on OSF/1 4.0.
46264         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
46265         <sys/time.h>, simply delegate to the system header.
46266         Reported by Daniel Richard G. <oss@teragram.com>.
46267
46268 2008-12-15  Bruno Haible  <bruno@clisp.org>
46269
46270         * doc/posix-functions/openat.texi: Mention the 'openat' module.
46271         * doc/posix-functions/fchmodat.texi: Likewise.
46272         * doc/posix-functions/fchownat.texi: Likewise.
46273         * doc/posix-functions/fdopendir.texi: Likewise.
46274         * doc/posix-functions/fstatat.texi: Likewise.
46275         * doc/posix-functions/mkdirat.texi: Likewise.
46276         * doc/posix-functions/unlinkat.texi: Likewise.
46277
46278 2008-12-14  Bruno Haible  <bruno@clisp.org>
46279
46280         Update doc for POSIX:2008.
46281         * doc/posix-functions/faccessat.texi: New file.
46282         * doc/posix-functions/fchmodat.texi: New file.
46283         * doc/posix-functions/fchownat.texi: New file.
46284         * doc/posix-functions/fdopendir.texi: New file.
46285         * doc/posix-functions/fstatat.texi: New file.
46286         * doc/posix-functions/futimens.texi: New file.
46287         * doc/posix-functions/linkat.texi: New file.
46288         * doc/posix-functions/mkdirat.texi: New file.
46289         * doc/posix-functions/mkfifoat.texi: New file.
46290         * doc/posix-functions/mknodat.texi: New file.
46291         * doc/posix-functions/open_wmemstream.texi: New file.
46292         * doc/posix-functions/openat.texi: New file.
46293         * doc/posix-functions/psiginfo.texi: New file.
46294         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
46295         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
46296         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
46297         * doc/posix-functions/readlinkat.texi: New file.
46298         * doc/posix-functions/renameat.texi: New file.
46299         * doc/posix-functions/strerror_l.texi: New file.
46300         * doc/posix-functions/symlinkat.texi: New file.
46301         * doc/posix-functions/unlinkat.texi: New file.
46302         * doc/posix-functions/utimensat.texi: New file.
46303         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46304
46305 2008-12-14  Bruno Haible  <bruno@clisp.org>
46306
46307         Update doc for POSIX:2008.
46308         * doc/posix-functions/alphasort.texi: Renamed from
46309         doc/glibc-functions/alphasort.texi.
46310         * doc/posix-functions/dirfd.texi: Renamed from
46311         doc/glibc-functions/dirfd.texi.
46312         * doc/posix-functions/dprintf.texi: Renamed from
46313         doc/glibc-functions/dprintf.texi.
46314         * doc/posix-functions/duplocale.texi: Renamed from
46315         doc/glibc-functions/duplocale.texi.
46316         * doc/posix-functions/fexecve.texi: Renamed from
46317         doc/glibc-functions/fexecve.texi.
46318         * doc/posix-functions/fmemopen.texi: Renamed from
46319         doc/glibc-functions/fmemopen.texi.
46320         * doc/posix-functions/freelocale.texi: Renamed from
46321         doc/glibc-functions/freelocale.texi.
46322         * doc/posix-functions/getdate_err.texi: Renamed from
46323         doc/glibc-functions/getdate_err.texi.
46324         * doc/posix-functions/isalnum_l.texi: Renamed from
46325         doc/glibc-functions/isalnum_l.texi.
46326         * doc/posix-functions/isalpha_l.texi: Renamed from
46327         doc/glibc-functions/isalpha_l.texi.
46328         * doc/posix-functions/isblank_l.texi: Renamed from
46329         doc/glibc-functions/isblank_l.texi.
46330         * doc/posix-functions/iscntrl_l.texi: Renamed from
46331         doc/glibc-functions/iscntrl_l.texi.
46332         * doc/posix-functions/isdigit_l.texi: Renamed from
46333         doc/glibc-functions/isdigit_l.texi.
46334         * doc/posix-functions/isgraph_l.texi: Renamed from
46335         doc/glibc-functions/isgraph_l.texi.
46336         * doc/posix-functions/islower_l.texi: Renamed from
46337         doc/glibc-functions/islower_l.texi.
46338         * doc/posix-functions/isprint_l.texi: Renamed from
46339         doc/glibc-functions/isprint_l.texi.
46340         * doc/posix-functions/ispunct_l.texi: Renamed from
46341         doc/glibc-functions/ispunct_l.texi.
46342         * doc/posix-functions/isspace_l.texi: Renamed from
46343         doc/glibc-functions/isspace_l.texi.
46344         * doc/posix-functions/isupper_l.texi: Renamed from
46345         doc/glibc-functions/isupper_l.texi.
46346         * doc/posix-functions/iswalnum_l.texi: Renamed from
46347         doc/glibc-functions/iswalnum_l.texi.
46348         * doc/posix-functions/iswalpha_l.texi: Renamed from
46349         doc/glibc-functions/iswalpha_l.texi.
46350         * doc/posix-functions/iswblank_l.texi: Renamed from
46351         doc/glibc-functions/iswblank_l.texi.
46352         * doc/posix-functions/iswcntrl_l.texi: Renamed from
46353         doc/glibc-functions/iswcntrl_l.texi.
46354         * doc/posix-functions/iswctype_l.texi: Renamed from
46355         doc/glibc-functions/iswctype_l.texi.
46356         * doc/posix-functions/iswdigit_l.texi: Renamed from
46357         doc/glibc-functions/iswdigit_l.texi.
46358         * doc/posix-functions/iswgraph_l.texi: Renamed from
46359         doc/glibc-functions/iswgraph_l.texi.
46360         * doc/posix-functions/iswlower_l.texi: Renamed from
46361         doc/glibc-functions/iswlower_l.texi.
46362         * doc/posix-functions/iswprint_l.texi: Renamed from
46363         doc/glibc-functions/iswprint_l.texi.
46364         * doc/posix-functions/iswpunct_l.texi: Renamed from
46365         doc/glibc-functions/iswpunct_l.texi.
46366         * doc/posix-functions/iswspace_l.texi: Renamed from
46367         doc/glibc-functions/iswspace_l.texi.
46368         * doc/posix-functions/iswupper_l.texi: Renamed from
46369         doc/glibc-functions/iswupper_l.texi.
46370         * doc/posix-functions/iswxdigit_l.texi: Renamed from
46371         doc/glibc-functions/iswxdigit_l.texi.
46372         * doc/posix-functions/isxdigit_l.texi: Renamed from
46373         doc/glibc-functions/isxdigit_l.texi.
46374         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
46375         doc/glibc-functions/mbsnrtowcs.texi.
46376         * doc/posix-functions/mkdtemp.texi: Renamed from
46377         doc/glibc-functions/mkdtemp.texi.
46378         * doc/posix-functions/newlocale.texi: Renamed from
46379         doc/glibc-functions/newlocale.texi.
46380         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
46381         doc/glibc-functions/nl_langinfo_l.texi.
46382         * doc/posix-functions/open_memstream.texi: Renamed from
46383         doc/glibc-functions/open_memstream.texi.
46384         * doc/posix-functions/opterr.texi: Renamed from
46385         doc/glibc-functions/opterr.texi.
46386         * doc/posix-functions/optind.texi: Renamed from
46387         doc/glibc-functions/optind.texi.
46388         * doc/posix-functions/optopt.texi: Renamed from
46389         doc/glibc-functions/optopt.texi.
46390         * doc/posix-functions/psignal.texi: Renamed from
46391         doc/glibc-functions/psignal.texi.
46392         * doc/posix-functions/scandir.texi: Renamed from
46393         doc/glibc-functions/scandir.texi.
46394         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
46395         doc/glibc-functions/sched_get_priority_min.texi.
46396         * doc/posix-functions/signgam.texi: Renamed from
46397         doc/glibc-functions/signgam.texi.
46398         * doc/posix-functions/stpcpy.texi: Renamed from
46399         doc/glibc-functions/stpcpy.texi.
46400         * doc/posix-functions/stpncpy.texi: Renamed from
46401         doc/glibc-functions/stpncpy.texi.
46402         * doc/posix-functions/strcasecmp_l.texi: Renamed from
46403         doc/glibc-functions/strcasecmp_l.texi.
46404         * doc/posix-functions/strcoll_l.texi: Renamed from
46405         doc/glibc-functions/strcoll_l.texi.
46406         * doc/posix-functions/strfmon_l.texi: Renamed from
46407         doc/glibc-functions/strfmon_l.texi.
46408         * doc/posix-functions/strftime_l.texi: Renamed from
46409         doc/glibc-functions/strftime_l.texi.
46410         * doc/posix-functions/strncasecmp_l.texi: Renamed from
46411         doc/glibc-functions/strncasecmp_l.texi.
46412         * doc/posix-functions/strndup.texi: Renamed from
46413         doc/glibc-functions/strndup.texi.
46414         * doc/posix-functions/strnlen.texi: Renamed from
46415         doc/glibc-functions/strnlen.texi.
46416         * doc/posix-functions/strsignal.texi: Renamed from
46417         doc/glibc-functions/strsignal.texi.
46418         * doc/posix-functions/strxfrm_l.texi: Renamed from
46419         doc/glibc-functions/strxfrm_l.texi.
46420         * doc/posix-functions/timer_gettime.texi: Renamed from
46421         doc/glibc-functions/timer_gettime.texi.
46422         * doc/posix-functions/tolower_l.texi: Renamed from
46423         doc/glibc-functions/tolower_l.texi.
46424         * doc/posix-functions/toupper_l.texi: Renamed from
46425         doc/glibc-functions/toupper_l.texi.
46426         * doc/posix-functions/towctrans_l.texi: Renamed from
46427         doc/glibc-functions/towctrans_l.texi.
46428         * doc/posix-functions/towlower_l.texi: Renamed from
46429         doc/glibc-functions/towlower_l.texi.
46430         * doc/posix-functions/towupper_l.texi: Renamed from
46431         doc/glibc-functions/towupper_l.texi.
46432         * doc/posix-functions/uselocale.texi: Renamed from
46433         doc/glibc-functions/uselocale.texi.
46434         * doc/posix-functions/vdprintf.texi: Renamed from
46435         doc/glibc-functions/vdprintf.texi.
46436         * doc/posix-functions/wcpcpy.texi:
46437         Renamed from doc/glibc-functions/wcpcpy.texi.
46438         * doc/posix-functions/wcpncpy.texi: Renamed from
46439         doc/glibc-functions/wcpncpy.texi.
46440         * doc/posix-functions/wcscasecmp.texi: Renamed from
46441         doc/glibc-functions/wcscasecmp.texi.
46442         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
46443         doc/glibc-functions/wcscasecmp_l.texi.
46444         * doc/posix-functions/wcscoll_l.texi: Renamed from
46445         doc/glibc-functions/wcscoll_l.texi.
46446         * doc/posix-functions/wcsdup.texi: Renamed from
46447         doc/glibc-functions/wcsdup.texi.
46448         * doc/posix-functions/wcsncasecmp.texi: Renamed from
46449         doc/glibc-functions/wcsncasecmp.texi.
46450         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
46451         doc/glibc-functions/wcsncasecmp_l.texi.
46452         * doc/posix-functions/wcsnlen.texi: Renamed from
46453         doc/glibc-functions/wcsnlen.texi.
46454         * doc/posix-functions/wcsnrtombs.texi: Renamed from
46455         doc/glibc-functions/wcsnrtombs.texi.
46456         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
46457         doc/glibc-functions/wcsxfrm_l.texi.
46458         * doc/posix-functions/wctrans_l.texi: Renamed from
46459         doc/glibc-functions/wctrans_l.texi.
46460         * doc/posix-functions/wctype_l.texi: Renamed from
46461         doc/glibc-functions/wctype_l.texi.
46462         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46463         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
46464         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
46465         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
46466         these subsections.
46467         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
46468         Remove sections.
46469
46470 2008-12-14  Bruno Haible  <bruno@clisp.org>
46471
46472         Update doc for POSIX:2008.
46473         * doc/posix-functions/*.texi: Update URL of POSIX specification.
46474
46475 2008-12-14  Bruno Haible  <bruno@clisp.org>
46476
46477         Update doc for POSIX:2008.
46478         * doc/pastposix-functions/bcmp.texi: Renamed from
46479         doc/posix-functions/bcmp.texi.
46480         * doc/pastposix-functions/bcopy.texi: Renamed from
46481         doc/posix-functions/bcopy.texi.
46482         * doc/pastposix-functions/bsd_signal.texi: Renamed from
46483         doc/posix-functions/bsd_signal.texi.
46484         * doc/pastposix-functions/bzero.texi: Renamed from
46485         doc/posix-functions/bzero.texi.
46486         * doc/pastposix-functions/ecvt.texi: Renamed from
46487         doc/posix-functions/ecvt.texi.
46488         * doc/pastposix-functions/fcvt.texi: Renamed from
46489         doc/posix-functions/fcvt.texi.
46490         * doc/pastposix-functions/ftime.texi: Renamed from
46491         doc/posix-functions/ftime.texi.
46492         * doc/pastposix-functions/gcvt.texi: Renamed from
46493         doc/posix-functions/gcvt.texi.
46494         * doc/pastposix-functions/getcontext.texi: Renamed from
46495         doc/posix-functions/getcontext.texi.
46496         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
46497         doc/posix-functions/gethostbyaddr.texi.
46498         * doc/pastposix-functions/gethostbyname.texi: Renamed from
46499         doc/posix-functions/gethostbyname.texi.
46500         * doc/pastposix-functions/getwd.texi: Renamed from
46501         doc/posix-functions/getwd.texi.
46502         * doc/pastposix-functions/h_errno.texi: Renamed from
46503         doc/posix-functions/h_errno.texi.
46504         * doc/pastposix-functions/index.texi: Renamed from
46505         doc/posix-functions/index.texi.
46506         * doc/pastposix-functions/makecontext.texi: Renamed from
46507         doc/posix-functions/makecontext.texi.
46508         * doc/pastposix-functions/mktemp.texi: Renamed from
46509         doc/posix-functions/mktemp.texi.
46510         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
46511         doc/posix-functions/pthread_attr_getstackaddr.texi.
46512         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
46513         doc/posix-functions/pthread_attr_setstackaddr.texi.
46514         * doc/pastposix-functions/rindex.texi: Renamed from
46515         doc/posix-functions/rindex.texi.
46516         * doc/pastposix-functions/scalb.texi: Renamed from
46517         doc/posix-functions/scalb.texi.
46518         * doc/pastposix-functions/setcontext.texi: Renamed from
46519         doc/posix-functions/setcontext.texi.
46520         * doc/pastposix-functions/swapcontext.texi: Renamed from
46521         doc/posix-functions/swapcontext.texi.
46522         * doc/pastposix-functions/ualarm.texi: Renamed from
46523         doc/posix-functions/ualarm.texi.
46524         * doc/pastposix-functions/usleep.texi: Renamed from
46525         doc/posix-functions/usleep.texi.
46526         * doc/pastposix-functions/vfork.texi: Renamed from
46527         doc/posix-functions/vfork.texi.
46528         * doc/pastposix-functions/wcswcs.texi: Renamed from
46529         doc/posix-functions/wcswcs.texi.
46530         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
46531         (Function Substitutes): Update.
46532
46533 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46534
46535         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
46536         m4/strerror.m4.
46537
46538 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46539             Bruno Haible  <bruno@clisp.org>
46540
46541         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
46542
46543 2008-12-13  Bruno Haible  <bruno@clisp.org>
46544
46545         * modules/strtoull (Depends-on): Remove unistd.
46546
46547 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46548
46549         * modules/strtoull (Depends-on): Add stdlib.
46550
46551 2008-12-11  Simon Josefsson  <simon@josefsson.org>
46552
46553         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
46554
46555 2008-12-10  Jim Meyering  <meyering@redhat.com>
46556
46557         gl_ASSERT: don't say assertions are disabled when they're not
46558         * m4/assert.m4 (gl_ASSERT): Do not make configure report
46559         "checking whether to enable assertions... no", when they are in
46560         fact enabled.  This is solely a bug in the output of configure.
46561         In spite of saying "no", NDEBUG was not defined in that case.
46562         Also, as noted by Eric Blake, leave assertions enabled upon
46563         --enable-assert=INVALID.
46564
46565 2008-12-10  Bruno Haible  <bruno@clisp.org>
46566
46567         Change MODULES.html to refer to POSIX:2008 where possible.
46568         * MODULES.html.sh (POSIX2008_URL): New variable.
46569         (posix_headers): Remove sys/timeb, ucontext.
46570         (posix2001_headers): New variable.
46571         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
46572         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
46573         index, makecontext, mktemp, pthread_attr_getstackaddr,
46574         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
46575         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
46576         (posix2001_functions): New variable.
46577         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
46578         otherwise.
46579
46580 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46581
46582         add missing include to parse-duration.c
46583         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
46584         * modules/parse-duration (Depends-on): Add xalloc.
46585
46586         fix sed script reading maint.mk
46587         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
46588         (syntax-check-rules): Use it.
46589
46590 2008-12-09  Bruno Haible  <bruno@clisp.org>
46591
46592         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
46593         MacOS X 10.4/PowerPC.
46594         Reported by Simon Josefsson.
46595
46596 2008-12-08  Jim Meyering  <meyering@redhat.com>
46597
46598         work around mingw's lack of some S_IF definitions
46599         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
46600         Reported by Simon Josefsson.
46601
46602 2008-12-08  Bruno Haible  <bruno@clisp.org>
46603
46604         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
46605         applied to variables. Needed on MacOS X 10.4/PowerPC.
46606         Reported by Simon Josefsson.
46607
46608 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
46609         and Eric Blake  <ebb9@byu.net>
46610
46611         assert: honor --enable-assert
46612         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
46613         order to honor --enable-assert, rather than treating it as a
46614         synonym for --disable-assert.
46615
46616 2008-12-08  Jim Meyering  <meyering@redhat.com>
46617
46618         * lib/posixtm.c: Remove now-useless declaration of mktime.
46619
46620         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
46621
46622 2008-12-07  Bruno Haible  <bruno@clisp.org>
46623
46624         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
46625         test_once): Mark functions as static.
46626         * tests/test-tls.c (test_tls): Likewise.
46627
46628 2008-12-07  Bruno Haible  <bruno@clisp.org>
46629
46630         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
46631         iconv_register_autodetect.
46632
46633 2008-12-07  Jim Meyering  <meyering@redhat.com>
46634
46635         posixtm.c: avoid a warning
46636         * lib/posixtm.c (posixtime): Don't initialize tm0.
46637         It's no longer needed to placate gcc4's -Wuninitialized,
46638         and the attempt to placate would elicit a new warning.
46639
46640         unicodeio.c: mark unused parameters
46641         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46642         (fallback_failure_callback): Likewise.
46643
46644 2008-12-07  Bruno Haible  <bruno@clisp.org>
46645
46646         * gnulib-tool (func_create_testdir): When building the tests
46647         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
46648         Reported by Simon Josefsson.
46649
46650 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46651
46652         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
46653
46654 2008-12-06  Bruno Haible  <bruno@clisp.org>
46655
46656         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
46657         Suggested by Eric Blake.
46658
46659 2008-12-06  Bruno Haible  <bruno@clisp.org>
46660
46661         Fix a c-stack test failure on MacOS X.
46662         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
46663         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
46664         handler for SIGBUS as well.
46665         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
46666         install a signal handler for SIGBUS as well.
46667         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
46668
46669 2008-12-06  Bruno Haible  <bruno@clisp.org>
46670
46671         Advocacy documentation.
46672         * doc/gnulib-intro.texi (Benefits): New section.
46673         * doc/gnulib.texi: Update.
46674
46675 2008-12-06  Bruno Haible  <bruno@clisp.org>
46676
46677         Document the 'manywarnings' module.
46678         * doc/manywarnings.texi: New file.
46679         * doc/gnulib.texi: Include it.
46680
46681 2008-12-05  Eric Blake  <ebb9@byu.net>
46682
46683         tests: silence some gcc warnings
46684         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
46685         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
46686         type mismatches.
46687
46688 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46689             Bruno Haible  <bruno@clisp.org>
46690
46691         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
46692
46693 2008-11-29  Jim Meyering  <meyering@redhat.com>
46694
46695         unicodeio.c: mark unused parameters
46696         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46697         (fallback_failure_callback): Likewise.
46698
46699         fts: fix a thinko
46700         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
46701         (set_stat_type): Return S_IF*-valued "type" directly.
46702         Prompted by James Youngman's spotting a related bug.
46703         Confirmed by further testing through find.
46704
46705         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
46706         * lib/fts.c (D_TYPE): Define.
46707         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
46708         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
46709         (s_ifmt_shift_bits): New function.
46710         (set_stat_type): New function.
46711         (fts_build): When not calling fts_stat, call set_stat_type
46712         to propagate dirent.d_type info to fts_read caller.
46713         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
46714         fts_statp->st_mode type information may be valid.
46715
46716 2008-11-28  Simon Josefsson  <simon@josefsson.org>
46717
46718         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
46719         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
46720         <sds@gnu.org>.
46721
46722 2008-11-20  Bruno Haible  <bruno@clisp.org>
46723
46724         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
46725         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
46726         INCLUDE_NEXT.
46727         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
46728         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
46729         * modules/math (Makefile.am): Substitute
46730         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
46731         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46732
46733 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
46734             Bruno Haible  <bruno@clisp.org>
46735
46736         * lib/stdint.in.h: Define all type macros so that their expansion is
46737         a single typedef'ed token. Fixes a compilation failure in Boost which
46738         does "using ::int8_t;".
46739
46740 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46741
46742         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
46743         gl_MANYWARN_ALL_GCC.
46744         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
46745         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
46746         * modules/manywarnings: New file.
46747         * MODULES.html.sh: Mention manywarnings module.
46748
46749 2008-11-18  Bruno Haible  <bruno@clisp.org>
46750
46751         * doc/gnulib-tool.texi (Unit tests): New section.
46752
46753 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46754
46755         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
46756         paths like 'lib/po/foo.po'.
46757
46758 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46759
46760         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
46761         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
46762
46763 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46764
46765         * m4/warnings.m4: Use CPPFLAGS to really check whether the
46766         parameter works.
46767
46768 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46769
46770         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
46771
46772 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46773
46774         * modules/parse-duration-tests: New file.
46775         * tests/test-parse-duration.sh: New file.
46776         * tests/test-parse-duration.c: New file.
46777
46778         New module 'parse-duration'.
46779         * lib/parse-duration.h: New file.
46780         * lib/parse-duration.c: New file.
46781         * modules/parse-duration: New file.
46782
46783 2008-11-17  Bruno Haible  <bruno@clisp.org>
46784
46785         * tests/test-select-out.sh: Comment out the first pipe test.
46786         Reported by Simon Josefsson.
46787
46788 2008-11-17  Bruno Haible  <bruno@clisp.org>
46789
46790         * modules/getaddrinfo (Depends-on): Add servent, hostent.
46791         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
46792         gl_HOSTENT.
46793
46794 2008-11-17  Bruno Haible  <bruno@clisp.org>
46795
46796         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
46797         -lnetwork and -lnet. Needed for Haiku and BeOS.
46798
46799 2008-11-16  Bruno Haible  <bruno@clisp.org>
46800
46801         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
46802
46803 2008-11-16  Bruno Haible  <bruno@clisp.org>
46804
46805         Avoid test failure on Haiku.
46806         * tests/test-fsync.c: Include <errno.h>.
46807         (main): Don't require that fsync (0) fails.
46808
46809 2008-11-15  Bruno Haible  <bruno@clisp.org>
46810
46811         New module 'hostent'.
46812         * modules/hostent: New file.
46813         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
46814
46815 2008-11-15  Bruno Haible  <bruno@clisp.org>
46816
46817         New module 'servent'.
46818         * modules/servent: New file.
46819         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
46820
46821 2008-11-15  Bruno Haible  <bruno@clisp.org>
46822
46823         Avoid generating same test program with two different rules.
46824         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
46825         test-frexp to test-frexp-nolibm.
46826         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
46827         test-frexpl to test-frexpl-nolibm.
46828
46829 2008-11-15  Bruno Haible  <bruno@clisp.org>
46830
46831         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
46832         $(FREXPL_LIBM).
46833
46834 2008-11-15  Bruno Haible  <bruno@clisp.org>
46835
46836         * lib/netdb.in.h: Activate the definitions also when the system's
46837         <netdb.h> has 'struct addrinfo'.
46838         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
46839         EAI_OVERFLOW or AI_NUMERICSERV.
46840         * doc/posix-headers/netdb.texi: Document the problem.
46841
46842 2008-11-15  Bruno Haible  <bruno@clisp.org>
46843
46844         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
46845
46846         Make the 'sched' module work on platforms where <sched.h> exists but
46847         is incomplete (such as Haiku).
46848         * lib/sched.in.h; Include the system's <sched.h> if it exists.
46849         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
46850         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
46851         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
46852         HAVE_STRUCT_SCHED_PARAM.
46853         * modules/sched (Depends-on): Add include_next.
46854         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
46855         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
46856         * doc/posix-headers/sched.texi: Document the issue.
46857
46858 2008-11-13  Jim Meyering  <meyering@redhat.com>
46859
46860         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
46861         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
46862         test would fail due to the difference in the Report bugs to ...
46863         line.  The expected address is empty, "<>", while the actual
46864         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
46865
46866 2008-11-12  Bruno Haible  <bruno@clisp.org>
46867
46868         lstat: don't compile lstat.c on systems lacking lstat
46869         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
46870         which don't have lstat; this is handled by lib/sys_stat.in.h already.
46871         Reported by Daniel P. Berrange via Jim Meyering.
46872
46873 2008-11-12  Jim Meyering  <meyering@redhat.com>
46874
46875         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
46876
46877 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46878
46879         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
46880         instead.
46881
46882 2008-11-12  Bruno Haible  <bruno@clisp.org>
46883
46884         * lib/unicodeio.c: Include unistr.h.
46885         (utf8_wctomb): Remove function.
46886         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
46887
46888 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46889
46890         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
46891         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
46892         <bruno@clisp.org>.
46893         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
46894
46895 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46896
46897         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
46898         * doc/gnulib.texi: Add section for warnings.
46899
46900 2008-11-11  Bruno Haible  <bruno@clisp.org>
46901
46902         * lib/sockets.h: Add a comment.
46903
46904 2008-11-11  Karl Berry  <karl@gnu.org>
46905
46906         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
46907
46908 2008-11-11  Eric Blake  <ebb9@byu.net>
46909
46910         fdl.texi: avoid git symlinks
46911         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
46912
46913 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46914
46915         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
46916
46917 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46918
46919         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
46920         (gl_WARN_ADD): Substitute $2 if literal.
46921
46922 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46923
46924         * m4/warning.m4: Remove.
46925
46926 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46927
46928         * m4/warnings.m4: Almost complete rewrite. :-)
46929
46930 2008-11-10  Simon Josefsson  <simon@josefsson.org>
46931
46932         * modules/warnings: New module.
46933         * m4/warnings.m4: New file.
46934         * MODULES.html.sh: Mention warnings module.
46935         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
46936         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46937
46938 2008-11-10  Eric Blake  <ebb9@byu.net>
46939
46940         fdl.texi: make a symlink to the latest version
46941         * doc/standards.texi: Revert today's earlier change.
46942         * doc/fdl-1.2.texi: Rename from old fdl.texi...
46943         * doc/fdl.texi: ...and replace this with a symlink to the newer
46944         fdl-1.3.texi.
46945
46946 2008-11-10  Bruno Haible  <bruno@clisp.org>
46947
46948         * tests/test-select-fd.c (main): Accept the result file name as fourth
46949         argument.
46950         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
46951         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
46952
46953 2008-11-10  Bruno Haible  <bruno@clisp.org>
46954
46955         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
46956         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
46957         as autoconf-substituted macros.
46958         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
46959         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
46960         gl_NETDB_H_DEFAULTS. Set these variables.
46961         * modules/netdb (Makefile.am): Substitute these variables.
46962
46963 2008-11-10  Eric Blake  <ebb9@byu.net>
46964
46965         standards.texi: include correct file for FDL 1.3
46966         * doc/standards.texi (GNU Free Documentation License): Change
46967         include file to pull in FDL 1.3, not 1.2.
46968
46969         fdl.texi: revert accidental change to license
46970         * doc/fdl.texi: This is FDL 1.2, not 1.3.
46971
46972 2008-11-10  Bruno Haible  <bruno@clisp.org>
46973
46974         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
46975         cross-compiling guesses also when the native compile gives no result.
46976
46977 2008-11-10  Bruno Haible  <bruno@clisp.org>
46978
46979         * lib/spawni.c (__spawni): Force variable into the stack.
46980
46981 2008-11-10  Bruno Haible  <bruno@clisp.org>
46982
46983         Add support for Haiku.
46984         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
46985         glibc and BeOS, but also on Haiku.
46986         * lib/fpurge.c (fpurge): Likewise.
46987         * lib/freadable.c (freadable): Likewise.
46988         * lib/freadahead.c (freadahead): Likewise.
46989         * lib/freading.c (freading): Likewise.
46990         * lib/freadptr.c (freadptr): Likewise.
46991         * lib/freadseek.c (freadptrinc): Likewise.
46992         * lib/fseeko.c (rpl_fseeko): Likewise.
46993         * lib/fseterr.c (fseterr): Likewise.
46994         * lib/fwritable.c (fwritable): Likewise.
46995         * lib/fwriting.c (fwriting): Likewise.
46996         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
46997
46998 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46999
47000         * lib/config.charset: Treat Haiku like BeOS.
47001
47002 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47003
47004         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
47005         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
47006
47007 2008-11-08  Bruno Haible  <bruno@clisp.org>
47008
47009         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
47010         AC_CACHE_CHECK.
47011
47012 2008-11-08  Bruno Haible  <bruno@clisp.org>
47013
47014         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
47015
47016 2008-11-08  Bruno Haible  <bruno@clisp.org>
47017
47018         * tests/test-select-fd.c: New file.
47019         * tests/test-select-in.sh: New file.
47020         * tests/test-select-out.sh: New file.
47021         * tests/test-select-stdin.c: New file.
47022         * modules/select-tests (Files): Add the new files.
47023         (Depends-on): Add gettimeofday.
47024         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
47025         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
47026         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
47027
47028 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
47029             Bruno Haible  <bruno@clisp.org>
47030
47031         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
47032
47033 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
47034
47035         * build-aux/pmccabe2html: Added support for C++ source files.
47036
47037 2008-11-05  Ben Pfaff  <blp@gnu.org>
47038
47039         Fix lib/close.c build on Windows.
47040         * modules/close (Files): Add lib/w32sock.h.
47041
47042 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
47043
47044         Accept Bison's NEWS format.
47045         * build-aux/announce-gen (print_news_deltas): Tweak
47046         $re_prefix.
47047
47048 2008-11-04  Bruno Haible  <bruno@clisp.org>
47049
47050         * modules/random_r (Maintainer): Add glibc.
47051
47052 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47053
47054         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
47055         by karl@freefriends.org (Karl Berry).
47056         * doc/alloca.texi: Likewise.
47057         * doc/c-ctype.texi: Likewise.
47058         * doc/c-strcase.texi: Likewise.
47059         * doc/c-strcaseeq.texi: Likewise.
47060         * doc/c-strcasestr.texi: Likewise.
47061         * doc/c-strstr.texi: Likewise.
47062         * doc/c-strtod.texi: Likewise.
47063         * doc/c-strtold.texi: Likewise.
47064         * doc/ctime.texi: Likewise.
47065         * doc/error.texi: Likewise.
47066         * doc/fdl.texi: Likewise.
47067         * doc/gcd.texi: Likewise.
47068         * doc/getdate.texi: Likewise.
47069         * doc/gnulib-intro.texi: Likewise.
47070         * doc/gnulib-tool.texi: Likewise.
47071         * doc/gnulib.texi: Likewise.
47072         * doc/inet_ntoa.texi: Likewise.
47073         * doc/maintain.texi: Likewise.
47074         * doc/make-stds.texi: Likewise.
47075         * doc/quote.texi: Likewise.
47076         * doc/regexprops-generic.texi: Likewise.
47077         * doc/standards.texi: Likewise.
47078         * doc/verify.texi: Likewise.
47079         * doc/visibility.texi: Likewise.
47080         * doc/gnulib.texi (GNU Free Documentation License): Include
47081         fdl-1.3.texi instead of fdl.texi.
47082
47083 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47084
47085         * doc/fdl-1.3.texi: New file, from
47086         <http://www.gnu.org/licenses/fdl-1.3.texi>.
47087         * modules/fdl-1.3: Add.
47088         * MODULES.html.sh: Add fdl-1.3.
47089
47090 2008-11-03  Bruno Haible  <bruno@clisp.org>
47091
47092         Make determination of absolute name of header file work with AIX xlc.
47093         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
47094         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
47095         preprocessing.
47096         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47097         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47098
47099 2008-11-03  Simon Josefsson  <simon@josefsson.org>
47100
47101         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
47102         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
47103         <ludo@gnu.org>.
47104
47105 2008-11-02  Bruno Haible  <bruno@clisp.org>
47106
47107         Mark 'strpbrk' obsolete.
47108         * modules/strpbrk (Status, Notice): New sections.
47109         * modules/strtok_r (Depends-on): Add strpbrk.
47110
47111 2008-11-02  Bruno Haible  <bruno@clisp.org>
47112
47113         Mark 'strdup' obsolete.
47114         * modules/strdup (Status, Notice): New sections.
47115         * modules/findprog (Depends-on): Add strdup.
47116         * modules/getaddrinfo (Depends-on): Likewise.
47117         * modules/localename (Depends-on): Likewise.
47118         * modules/relocatable-lib (Depends-on): Likewise.
47119         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
47120         * modules/relocatable-prog (Depends-on): Likewise.
47121         * modules/trim (Depends-on): Likewise.
47122         * modules/unictype/gen-ctype (Depends-on): Likewise.
47123         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47124
47125 2008-11-02  Bruno Haible  <bruno@clisp.org>
47126
47127         Mark 'strcspn' obsolete.
47128         * modules/strcspn (Status, Notice): New sections.
47129
47130 2008-11-02  Bruno Haible  <bruno@clisp.org>
47131
47132         Mark 'rmdir' obsolete.
47133         * modules/rmdir (Status, Notice): New sections.
47134         * modules/clean-temp (Depends-on): Add rmdir.
47135         * modules/openat (Depends-on): Likewise.
47136
47137 2008-11-02  Bruno Haible  <bruno@clisp.org>
47138
47139         Mark 'raise' obsolete.
47140         * modules/raise (Status, Notice): New sections.
47141         (Include): Specify <signal.h>.
47142         * modules/stdio (Depends-on): Add raise.
47143         * modules/write (Depends-on): Likewise.
47144
47145 2008-11-02  Bruno Haible  <bruno@clisp.org>
47146
47147         Mark 'memset' obsolete.
47148         * modules/memset (Status, Notice): New sections.
47149
47150 2008-11-02  Bruno Haible  <bruno@clisp.org>
47151
47152         Mark 'memmove' obsolete.
47153         * modules/memmove (Status, Notice): New sections.
47154         * modules/argp (Depends-on): Add memmove.
47155         * modules/argz (Depends-on): Likewise.
47156         * modules/canonicalize (Depends-on): Likewise.
47157         * modules/canonicalize-lgpl (Depends-on): Likewise.
47158         * modules/fts (Depends-on): Likewise.
47159         * modules/getcwd (Depends-on): Likewise.
47160         * modules/human (Depends-on): Likewise.
47161         * modules/regex (Depends-on): Likewise.
47162         * modules/striconveh (Depends-on): Likewise.
47163         * modules/trim (Depends-on): Likewise.
47164         * modules/unistr/u8-move (Depends-on): Likewise.
47165         * modules/unistr/u16-move (Depends-on): Likewise.
47166         * modules/unistr/u32-move (Depends-on): Likewise.
47167
47168 2008-11-02  Bruno Haible  <bruno@clisp.org>
47169
47170         Mark 'memcpy' obsolete.
47171         * modules/memcpy (Status, Notice): New sections.
47172
47173 2008-11-02  Bruno Haible  <bruno@clisp.org>
47174
47175         Mark 'memcmp' obsolete.
47176         * modules/memcmp (Status, Notice): New sections.
47177         * modules/argmatch (Depends-on): Add memchr.
47178         * modules/backupfile (Depends-on): Likewise.
47179         * modules/c-strcasestr (Depends-on): Likewise.
47180         * modules/crypto/des (Depends-on): Likewise.
47181         * modules/csharpcomp (Depends-on): Likewise.
47182         * modules/fnmatch (Depends-on): Likewise.
47183         * modules/git-merge-changelog (Depends-on): Likewise.
47184         * modules/isnand (Depends-on): Likewise.
47185         * modules/isnand-nolibm (Depends-on): Likewise.
47186         * modules/isnanf (Depends-on): Likewise.
47187         * modules/isnanf-nolibm (Depends-on): Likewise.
47188         * modules/isnanl (Depends-on): Likewise.
47189         * modules/isnanl-nolibm (Depends-on): Likewise.
47190         * modules/mbchar (Depends-on): Likewise.
47191         * modules/memcoll (Depends-on): Likewise.
47192         * modules/quotearg (Depends-on): Likewise.
47193         * modules/regex (Depends-on): Likewise.
47194         * modules/relocatable-prog (Depends-on): Likewise.
47195         * modules/same (Depends-on): Likewise.
47196         * modules/signbit (Depends-on): Likewise.
47197         * modules/strcasestr-simple (Depends-on): Likewise.
47198         * modules/unictype/gen-ctype (Depends-on): Likewise.
47199         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47200         * modules/uniname/uniname (Depends-on): Likewise.
47201         * modules/unistr/u8-cmp (Depends-on): Likewise.
47202
47203 2008-11-02  Bruno Haible  <bruno@clisp.org>
47204
47205         Mark 'memchr' obsolete.
47206         * modules/memchr (Status, Notice): New sections.
47207         * modules/argp (Depends-on): Add memchr.
47208         * modules/base64 (Depends-on): Likewise.
47209         * modules/c-strcasestr (Depends-on): Likewise.
47210         * modules/chdir-long (Depends-on): Likewise.
47211         * modules/fnmatch (Depends-on): Likewise.
47212         * modules/getsubopt (Depends-on): Likewise.
47213         * modules/git-merge-changelog (Depends-on): Likewise.
47214         * modules/glob (Depends-on): Likewise.
47215         * modules/strcasestr-simple (Depends-on): Likewise.
47216         * modules/strnlen (Depends-on): Likewise.
47217
47218 2008-11-02  Bruno Haible  <bruno@clisp.org>
47219
47220         Mark 'atexit' obsolete.
47221         * modules/atexit (Status, Notice): New sections.
47222         * modules/chdir-long (Depends-on): Add atexit.
47223         * modules/wait-process (Depends-on): Likewise.
47224
47225 2008-11-02  Bruno Haible  <bruno@clisp.org>
47226
47227         * gnulib-tool: New option --with-obsolete.
47228         (func_usage): Document it.
47229         (func_modules_transitive_closure): Drop obsolete dependencies if
47230         incobsolete is not true.
47231         (func_import): Read and save the incobsolete variable to the cache.
47232
47233 2008-11-02  Bruno Haible  <bruno@clisp.org>
47234
47235         * modules/TEMPLATE-EXTENDED: New field 'Status'.
47236         * gnulib-tool: New option --extract-status.
47237         (func_usage): Document it.
47238         (sed_extract_prog): Recognize it.
47239         (func_get_status): New function.
47240
47241 2008-10-30  Simon Josefsson  <simon@josefsson.org>
47242
47243         * modules/sockets (License): Change from LGPL to LGPLv2+.
47244
47245 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47246
47247         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
47248
47249 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47250
47251         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47252         Mention times and sys_times.
47253         * modules/sys_times, modules/sys_times-tests: New modules.
47254         * modules/times, modules/times-tests: Likewise
47255         * m4/sys_times_h.m4: New file.
47256         * lib/sys_times.in.h: Likewise
47257         * lib/times.c: Likewise.
47258         * tests/test-sys_times.c: Likewise.
47259         * tests/test-times.c: Likewise.
47260         * doc/posix-headers/sys_times.texi: Update.
47261         * doc/posix-functions/times.texi: Update.
47262
47263 2008-10-28  Jim Meyering  <meyering@redhat.com>
47264
47265         * modules/tempname (Depends-on): Add lstat.
47266
47267         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
47268
47269 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47270
47271         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
47272         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
47273         using idiom used elsewhere in gnulib.
47274
47275 2008-10-27  Jim Meyering  <meyering@redhat.com>
47276
47277         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
47278
47279 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47280
47281         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
47282         TESTS_ENVIRONMENT, for shell scripts that needs to call built
47283         programs.
47284         * tests/test-argp-2.sh: Use $EXEEXT when needed.
47285
47286 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47287
47288         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
47289
47290 2008-10-27  Bruno Haible  <bruno@clisp.org>
47291
47292         * tests/test-lstat.c: Include <stdio.h>.
47293
47294 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47295
47296         * modules/lstat-tests: New module.
47297         * tests/test-lstat.c: New file.
47298
47299 2008-10-26  Jim Meyering  <meyering@redhat.com>
47300
47301         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
47302
47303 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47304             Bruno Haible  <bruno@clisp.org>
47305
47306         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
47307         * modules/configmake (Include): Add a note that the include must come
47308         after all system headers.
47309         * lib/javaversion.c: Include configmake.h after all other includes.
47310
47311 2008-10-26  Bruno Haible  <bruno@clisp.org>
47312
47313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
47314         HAVE_STRUCT_RANDOM_DATA to 1.
47315         (gl_STDLIB_H): Simplify.
47316
47317 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47318
47319         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
47320         substitute HAVE_STRUCT_RANDOM_DATA.
47321         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
47322         random_data.
47323         * modules/stdlib (Makefile.am): Substitute
47324         HAVE_STRUCT_RANDOM_DATA.
47325
47326 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47327
47328         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
47329         * doc/gnulib-intro.texi (Copyright): Likewise.
47330
47331 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47332
47333         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
47334         findings.
47335
47336 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
47337             Bruno Haible  <bruno@clisp.org>
47338
47339         * lib/unistd.in.h: Include <winsock2.h>.
47340         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
47341         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
47342         Provide dummy declarations.
47343         (gethostname): Override.
47344         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
47345         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
47346         gl_PREREQ_SYS_H_WINSOCK2.
47347         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
47348         * doc/posix-functions/gethostname.texi: More details.
47349
47350 2008-10-25  Bruno Haible  <bruno@clisp.org>
47351
47352         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47353         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
47354         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
47355
47356         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
47357         here ...
47358         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
47359         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
47360         gl_UNISTD_H_DEFAULTS.
47361
47362 2008-10-25  Eric Blake  <ebb9@byu.net>
47363
47364         signbit: avoid spurious compiler failure
47365         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
47366         declarations inside function.
47367
47368 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47369             Bruno Haible  <bruno@clisp.org>
47370
47371         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
47372         * modules/random_r (Depends-on): Add stdint.
47373
47374 2008-10-24  Bruno Haible  <bruno@clisp.org>
47375
47376         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
47377         Eggert.
47378         * modules/strerror (License): Likewise.
47379
47380 2008-10-24  Jim Meyering  <meyering@redhat.com>
47381
47382         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
47383         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
47384
47385 2008-10-24  Eric Blake  <ebb9@byu.net>
47386
47387         getgroups: fix compilation when getgroups is available
47388         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
47389         but with <config.h> override of getgroups disabled.
47390
47391 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47392
47393         * doc/gnulib.texi (Header files): Add note about C++ problems.
47394         Explained by Bruno Haible <bruno@clisp.org>.
47395
47396 2008-10-23  Bruno Haible  <bruno@clisp.org>
47397
47398         Define a dummy SA_NODEFER macro on Interix.
47399         * lib/signal.in.h (SA_NODEFER): Define fallback.
47400         Reported by Aleksey Cheusov <cheusov@tut.by> via
47401         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
47402
47403 2008-10-23  Bruno Haible  <bruno@clisp.org>
47404
47405         * modules/freadahead (License): Change to LGPLv2+.
47406         Suggested by Simon Josefsson.
47407
47408 2008-10-23  Jim Meyering  <meyering@redhat.com>
47409
47410         random_r: new module
47411         * modules/random_r: New file.
47412         * m4/random_r.m4: New file.
47413         * lib/random_r.c: New file, from glibc.
47414         * modules/random_r-tests: New file.
47415         * tests/test-random_r.c: New file.
47416         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
47417          Declare.
47418         (RAND_MAX): Define.
47419         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
47420         * modules/stdlib: Substitute them, too.
47421         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
47422         * doc/glibc-functions/initstate_r.texi: Mention the new module.
47423         * doc/glibc-functions/random_r.texi: Likewise.
47424         * doc/glibc-functions/setstate_r.texi: Likewise.
47425         * doc/glibc-functions/srandom_r.texi: Likewise.
47426         * config/srclist.txt: Mention it.
47427
47428 2008-10-23  David Lutterkort  <lutter@redhat.com>
47429
47430         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
47431         link requirement
47432
47433 2008-10-23  Jim Meyering  <meyering@redhat.com>
47434
47435         selinux-h: mark parameters of stub functions as intentionally unused
47436         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
47437         * lib/se-context.in.h: Likewise.
47438
47439 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47440
47441         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
47442
47443 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47444
47445         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
47446
47447 2008-10-22  Eric Blake  <ebb9@byu.net>
47448
47449         glthread/thread: avoid compiler warning
47450         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
47451         Add unreachable abort to silence compiler.
47452
47453 2008-10-22  Eric Blake  <ebb9@byu.net>
47454
47455         netdb: also supply struct addrinfo for cygwin 1.5.x
47456         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
47457         older cygwin.
47458         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
47459         cygwin.
47460         * doc/posix-headers/netdb.texi (netdb.h): Document this.
47461
47462 2008-10-22  Bruno Haible  <bruno@clisp.org>
47463
47464         * users.txt: Update entry about pspp.
47465
47466 2008-10-21  Bruno Haible  <bruno@clisp.org>
47467
47468         Simplification.
47469         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
47470         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
47471
47472         Simplification.
47473         * lib/ioctl.c (ioctl): Don't undefine.
47474         * lib/socket.c (socket): Don't undefine.
47475
47476         Remove unused module indicator macros.
47477         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
47478         GNULIB_$1 as a C macro.
47479
47480         * doc/posix-functions/close.texi: Undo last change.
47481         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
47482         Windows platforms.
47483
47484 2008-10-21  Bruno Haible  <bruno@clisp.org>
47485
47486         Add gethostname() declaration to <unistd.h>.
47487         * lib/unistd.in.h (gethostname): New declaration.
47488         * lib/gethostname.c: Include <unistd.h>.
47489         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
47490         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
47491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
47492         and HAVE_GETHOSTNAME.
47493         * modules/gethostname (Depends-on): Add unistd.
47494         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47495         (Include): Specify <unistd.h>.
47496         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
47497         HAVE_GETHOSTNAME.
47498         * tests/test-gethostname.c: Include <unistd.h> first.
47499
47500 2008-10-21  Bruno Haible  <bruno@clisp.org>
47501
47502         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
47503         * modules/select-tests (Depends-on): Likewise.
47504         Reported by Simon Josefsson.
47505
47506 2008-10-21  Simon Josefsson  <simon@josefsson.org>
47507
47508         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
47509         * lib/accept.c: New file, based on winsock.c.
47510         * lib/bind.c: New file, based on winsock.c.
47511         * lib/connect.c: New file, based on winsock.c.
47512         * lib/getpeername.c: New file, based on winsock.c.
47513         * lib/getsockname.c: New file, based on winsock.c.
47514         * lib/getsockopt.c: New file, based on winsock.c.
47515         * lib/ioctl.c: New file, based on winsock.c.
47516         * lib/listen.c: New file, based on winsock.c.
47517         * lib/recv.c: New file, based on winsock.c.
47518         * lib/recvfrom.c: New file, based on winsock.c.
47519         * lib/send.c: New file, based on winsock.c.
47520         * lib/sendto.c: New file, based on winsock.c.
47521         * lib/setsockopt.c: New file, based on winsock.c.
47522         * lib/shutdown.c: New file, based on winsock.c.
47523         * lib/socket.c: New file, based on winsock.c.
47524         * lib/w32sock.h: New file, based on winsock.c.
47525         * lib/winsock.c: Remove file.
47526         * modules/accept: Likewise.
47527         * modules/bind: Likewise.
47528         * modules/connect: Likewise.
47529         * modules/getpeername: Likewise.
47530         * modules/getsockname: Likewise.
47531         * modules/getsockopt: Likewise.
47532         * modules/ioctl: Likewise.
47533         * modules/listen: Likewise.
47534         * modules/recv: Likewise.
47535         * modules/recvfrom: Likewise.
47536         * modules/send: Likewise.
47537         * modules/sendto: Likewise.
47538         * modules/setsockopt: Likewise.
47539         * modules/shutdown: Likewise.
47540         * modules/socket: Use socket.c instead of winsock.c.
47541         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
47542         * doc/posix-functions/accept.texi: Doc fix.
47543         * doc/posix-functions/bind.texi: Doc fix.
47544         * doc/posix-functions/close.texi: Doc fix.
47545         * doc/posix-functions/connect.texi: Doc fix.
47546         * doc/posix-functions/getpeername.texi: Doc fix.
47547         * doc/posix-functions/getsockname.texi: Doc fix.
47548         * doc/posix-functions/getsockopt.texi: Doc fix.
47549         * doc/posix-functions/ioctl.texi: Doc fix.
47550         * doc/posix-functions/listen.texi: Doc fix.
47551         * doc/posix-functions/recv.texi: Doc fix.
47552         * doc/posix-functions/recvfrom.texi: Doc fix.
47553         * doc/posix-functions/send.texi: Doc fix.
47554         * doc/posix-functions/sendto.texi: Doc fix.
47555         * doc/posix-functions/setsockopt.texi: Doc fix.
47556         * doc/posix-functions/shutdown.texi: Doc fix.
47557         * doc/posix-functions/socket.texi: Doc fix.
47558
47559 2008-10-20  Bruno Haible  <bruno@clisp.org>
47560
47561         Take into account the role of SIGABRT_COMPAT on Windows 2008.
47562         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
47563         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
47564         as an alias for SIGABRT.
47565         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
47566         (sigaction): Map it to SIGABRT.
47567         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
47568
47569 2008-10-20  Bruno Haible  <bruno@clisp.org>
47570
47571         * lib/fts.c: Don't include lstat.h.
47572         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
47573
47574         Move the lstat() declaration to <sys/stat.h>.
47575         * lib/lstat.h: Remove file.
47576         * lib/sys_stat.in.h: Add special invocation convention.
47577         (lstat): New declaration.
47578         * lib/lstat.c (orig_lstat): New function.
47579         (rpl_lstat): Use orig_lstat instead of lstat.
47580         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
47581         AC_C_INLINE. Set REPLACE_LSTAT.
47582         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
47583         and REPLACE_LSTAT.
47584         * modules/lstat (Files): Remove lib/lstat.h.
47585         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47586         (Include): Specify <sys/stat.h> instead of lstat.h.
47587         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
47588         REPLACE_LSTAT.
47589         * NEWS: Mention the change.
47590
47591 2008-10-20  Bruno Haible  <bruno@clisp.org>
47592
47593         * modules/posix_spawn-tests: New file.
47594         * tests/test-posix_spawn3.c: New file.
47595
47596 2008-10-20  Bruno Haible  <bruno@clisp.org>
47597
47598         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
47599         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47600         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
47601         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47602         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
47603
47604 2008-10-20  Bruno Haible  <bruno@clisp.org>
47605
47606         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
47607         of posix_spawn on AIX 5.3.
47608
47609 2008-10-20  Bruno Haible  <bruno@clisp.org>
47610
47611         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
47612
47613 2008-10-20  Bruno Haible  <bruno@clisp.org>
47614
47615         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
47616         of AC_LANG_PROGRAM.
47617
47618 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47619
47620         * lib/netdb.in.h: Don't define GNU specific constants until they
47621         are supported or needed.  Reported by Bruno Haible
47622         <bruno@clisp.org>.
47623
47624 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47625
47626         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
47627
47628 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47629
47630         * lib/getaddrinfo.h: Remove file.
47631         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
47632         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
47633         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
47634         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
47635         * modules/netdb: Substitute GNULIB_GETADDRINFO.
47636         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
47637         * tests/test-getaddrinfo.c: Likewise.
47638         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
47639         * NEWS: Mention change.
47640
47641 2008-10-19  Bruno Haible  <bruno@clisp.org>
47642
47643         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
47644
47645 2008-10-19  Bruno Haible  <bruno@clisp.org>
47646
47647         * lib/wait-process.c: Include simply <sys/wait.h>.
47648         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
47649         WIFSTOPPED): Remove fallback definitions.
47650         * modules/wait-process (Depends-on): Add sys_wait.
47651
47652         New module 'sys_wait'.
47653         * modules/sys_wait: New file.
47654         * lib/sys_wait.in.h: New file, partially copied from
47655         lib/wait-process.c.
47656         * m4/sys_wait_h.m4: New file.
47657         * doc/posix-headers/sys_wait.texi: Mention the new module.
47658
47659 2008-10-19  Bruno Haible  <bruno@clisp.org>
47660
47661         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
47662
47663 2008-10-19  Bruno Haible  <bruno@clisp.org>
47664
47665         Assume that waitpid() fills an 'int' status, not a 'union wait'.
47666         * lib/wait-process.c (WAIT_T): Remove type.
47667         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
47668         (wait_subprocess): Update.
47669
47670 2008-10-19  Bruno Haible  <bruno@clisp.org>
47671
47672         New module 'atoll'.
47673         * modules/atoll: New file.
47674         * lib/stdlib.in.h (atoll): New declaration.
47675         * lib/atoll.c: New file, from glibc with modifications.
47676         * m4/atoll.m4: New file.
47677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
47678         HAVE_ATOLL.
47679         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
47680         * doc/posix-functions/atoll.texi: Mention the new module.
47681
47682 2008-10-19  Bruno Haible  <bruno@clisp.org>
47683
47684         Add strtoull() declaration to <stdlib.h>.
47685         * lib/stdlib.in.h (strtoull): New declaration.
47686         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47687         Set HAVE_STRTOULL.
47688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
47689         HAVE_STRTOULL.
47690         * modules/strtoull (Depends-on): Add stdlib.
47691         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47692         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
47693         HAVE_STRTOULL.
47694
47695 2008-10-19  Bruno Haible  <bruno@clisp.org>
47696
47697         Add strtoll() declaration to <stdlib.h>.
47698         * lib/stdlib.in.h (strtoll): New declaration.
47699         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47700         Set HAVE_STRTOLL.
47701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
47702         HAVE_STRTOLL.
47703         * modules/strtoll (Depends-on): Add stdlib.
47704         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47705         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
47706
47707 2008-10-19  Bruno Haible  <bruno@clisp.org>
47708
47709         * modules/bcopy (Depends-on): Add strings.
47710         (Include): Specify <strings.h>.
47711
47712 2008-10-19  Bruno Haible  <bruno@clisp.org>
47713
47714         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
47715
47716 2008-10-19  Bruno Haible  <bruno@clisp.org>
47717
47718         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
47719         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
47720         mingw.
47721
47722 2008-10-19  Bruno Haible  <bruno@clisp.org>
47723
47724         * lib/atanl.c: Don't include isnanl.h.
47725         * lib/cosl.c: Likewise.
47726         * lib/ldexpl.c: Likewise.
47727         * lib/logl.c: Likewise.
47728         * lib/sinl.c: Likewise.
47729         * lib/sqrtl.c: Likewise.
47730         * lib/tanl.c: Likewise.
47731
47732         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
47733         * lib/isnanf.h: Remove file.
47734         * lib/isnand.h: Remove file.
47735         * lib/isnanl.h: Remove file.
47736         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
47737         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
47738         macros.
47739         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
47740         HAVE_ISNANF, don't define it as a C macro.
47741         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
47742         HAVE_ISNAND, don't define it as a C macro.
47743         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
47744         HAVE_ISNANL, don't define it as a C macro.
47745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
47746         HAVE_ISNAN[FDL].
47747         * modules/isnanf (Files): Remove lib/isnanf.h.
47748         (Depends-on): Add math.
47749         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47750         (Include): Specify <math.h> instead of isnanf.h.
47751         * modules/isnand (Files): Remove lib/isnand.h.
47752         (Depends-on): Add math.
47753         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47754         (Include): Specify <math.h> instead of isnand.h.
47755         * modules/isnanl (Files): Remove lib/isnanl.h.
47756         (Depends-on): Add math.
47757         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47758         (Include): Specify <math.h> instead of isnanl.h.
47759         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
47760         HAVE_ISNAN[FDL].
47761         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
47762         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
47763         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
47764         * NEWS: Mention the change.
47765
47766 2008-10-18  Bruno Haible  <bruno@clisp.org>
47767
47768         Add getusershell(), setusershell(), endusershell() declarations to
47769         <unistd.h>.
47770         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
47771         declarations.
47772         * lib/getusershell.c: Include unistd.h.
47773         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
47774         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47775         HAVE_GETUSERSHELL.
47776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
47777         and HAVE_GETUSERSHELL.
47778         * modules/getusershell (Depends-on): Add unistd, extensions.
47779         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47780         (Include): Specify <unistd.h>.
47781         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
47782         HAVE_GETUSERSHELL.
47783
47784 2008-10-18  Bruno Haible  <bruno@clisp.org>
47785
47786         Add a getloadavg() declaration to <stdlib.h>.
47787         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
47788         getloadavg declaration.
47789         (getloadavg): New declaration.
47790         * lib/getloadavg.c: Include <stdlib.h> first.
47791         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
47792         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
47793         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
47794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
47795         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47796         * modules/getloadavg (Depends-on): Add stdlib, extensions.
47797         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47798         (Include): Specify <stdlib.h>.
47799         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
47800         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47801
47802 2008-10-18  Bruno Haible  <bruno@clisp.org>
47803
47804         * lib/dirchownmod.c: Don't include lchmod.h.
47805
47806         Move the lchmod() declaration to <sys/stat.h>.
47807         * lib/lchmod.h: Remove file.
47808         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
47809         (lchmod): New declaration, moved here from lib/lchown.h.
47810         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
47811         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
47812         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
47813         and HAVE_LCHMOD.
47814         * modules/lchmod (Files): Remove lib/lchmod.h.
47815         (Depends-on): Add sys_stat, extensions.
47816         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47817         (Include): Specify <sys/stat.h> instead of lchmod.h.
47818         * modules/sys_stat (Depends-on): Add link-warning.
47819         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
47820         definition of GL_LINK_WARNING.
47821         * NEWS: Mention the change.
47822
47823 2008-10-18  Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/fchdir.c: Don't include dirfd.h.
47826         * lib/fts.c: Likewise.
47827         * lib/getcwd.c: Likewise.
47828         * lib/glob.c: Likewise.
47829
47830         Move the dirfd() declaration to <dirent.h>.
47831         * lib/dirfd.h: Remove file.
47832         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
47833         (dirfd): New declaration.
47834         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
47835         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
47836         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
47837         HAVE_DECL_DIRFD.
47838         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
47839         HAVE_DECL_DIRFD.
47840         * modules/dirfd (Files): Remove lib/dirfd.h.
47841         (Depends-on): Add dirent, extensions.
47842         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
47843         (Include): Specify <dirent.h> instead of dirfd.h.
47844         * modules/dirent (Depends-on): Add link-warning.
47845         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
47846         definition of GL_LINK_WARNING.
47847         * NEWS: Mention the change.
47848
47849 2008-10-18  Bruno Haible  <bruno@clisp.org>
47850
47851         Move the euidaccess() declaration to <unistd.h>.
47852         * lib/euidaccess.h: Remove file.
47853         * lib/unistd.in.h (euidaccess): New declaration.
47854         * lib/euidaccess.c: Don't include euidaccess.h.
47855         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
47856         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
47857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
47858         and HAVE_EUIDACCESS.
47859         * modules/euidaccess (Files): Remove lib/euidaccess.h.
47860         (Depends-on): Add unistd.
47861         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47862         (Include): Specify <unistd.h> instead of euidaccess.h.
47863         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
47864         HAVE_EUIDACCESS.
47865         * NEWS: Mention the change.
47866
47867 2008-10-18  Bruno Haible  <bruno@clisp.org>
47868
47869         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
47870
47871         Move the getdomainname() declaration to <unistd.h>.
47872         * lib/getdomainname.h: Remove file.
47873         * lib/unistd.in.h (getdomainname): New declaration.
47874         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
47875         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47876         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47877         HAVE_GETDOMAINNAME.
47878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47879         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
47880         * modules/getdomainname (Files): Remove lib/getdomainname.h.
47881         (Depends-on): Add unistd, extensions.
47882         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47883         (Includes): Specify <unistd.h> instead of getdomainname.h.
47884         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
47885         HAVE_GETDOMAINNAME.
47886         * NEWS: Mention the change.
47887
47888 2008-10-18  Bruno Haible  <bruno@clisp.org>
47889
47890         * modules/dirent: New file.
47891         * m4/dirent_h.m4: New file.
47892         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
47893         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
47894         * modules/fchdir (Files): Remove lib/dirent.in.h.
47895         (Depends-on): Add dirent.
47896         (Makefile.am): Move rules to modules/dirent.
47897         * doc/posix-headers/dirent.texi: Mention the new module.
47898
47899 2008-10-18  Bruno Haible  <bruno@clisp.org>
47900
47901         Avoid -Wunused-parameter warnings in public gnulib header files.
47902         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
47903         macro.
47904         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
47905
47906 2008-10-18  Bruno Haible  <bruno@clisp.org>
47907
47908         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
47909         * doc/glibc-functions/error.texi: Mention the module 'error'.
47910         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
47911         * doc/glibc-functions/getdomainname.texi: Mention the module
47912         'getdomainname'.
47913         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
47914         * doc/glibc-functions/getpagesize.texi: Mention the module
47915         'getpagesize'.
47916         * doc/glibc-functions/getusershell.texi: Mention the module
47917         'getusershell'.
47918         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
47919         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
47920         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
47921         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
47922         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
47923         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
47924         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
47925         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
47926         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
47927         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
47928         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
47929         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
47930         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
47931         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
47932
47933 2008-10-17  Bruno Haible  <bruno@clisp.org>
47934
47935         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
47936         HP-UX and IRIX, use -0.0L.
47937         * tests/test-ceill.c (minus_zero): Likewise.
47938         * tests/test-floorl.c (minus_zero): Likewise.
47939         * tests/test-frexpl.c (minus_zero): Likewise.
47940         * tests/test-isnan.c (minus_zerol): Likewise.
47941         * tests/test-isnanl.h (minus_zero): Likewise.
47942         * tests/test-ldexpl.c (minus_zero): Likewise.
47943         * tests/test-roundl.c (minus_zero): Likewise.
47944         * tests/test-signbit.c (minus_zerol): Likewise.
47945         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47946         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47947         * tests/test-truncl.c (minus_zero): Likewise.
47948         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47949         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47950         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
47951         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47952
47953 2008-10-17  Bruno Haible  <bruno@clisp.org>
47954
47955         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
47956         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
47957         that it gets activated only for gcc >= 3.0.
47958         * lib/dirent.in.h: Likewise.
47959         * lib/errno.in.h: Likewise.
47960         * lib/fcntl.in.h: Likewise.
47961         * lib/float.in.h: Likewise.
47962         * lib/iconv.in.h: Likewise.
47963         * lib/inttypes.in.h: Likewise.
47964         * lib/locale.in.h: Likewise.
47965         * lib/math.in.h: Likewise.
47966         * lib/netdb.in.h: Likewise.
47967         * lib/netinet_in.in.h: Likewise.
47968         * lib/search.in.h: Likewise.
47969         * lib/signal.in.h: Likewise.
47970         * lib/spawn.in.h: Likewise.
47971         * lib/stdarg.in.h: Likewise.
47972         * lib/stdint.in.h: Likewise.
47973         * lib/stdio.in.h: Likewise.
47974         * lib/stdlib.in.h: Likewise.
47975         * lib/string.in.h: Likewise.
47976         * lib/strings.in.h: Likewise.
47977         * lib/sys_file.in.h: Likewise.
47978         * lib/sys_ioctl.in.h: Likewise.
47979         * lib/sys_select.in.h: Likewise.
47980         * lib/sys_socket.in.h: Likewise.
47981         * lib/sys_stat.in.h: Likewise.
47982         * lib/sys_time.in.h: Likewise.
47983         * lib/sysexits.in.h: Likewise.
47984         * lib/time.in.h: Likewise.
47985         * lib/unistd.in.h: Likewise.
47986         * lib/wchar.in.h: Likewise.
47987         * lib/wctype.in.h: Likewise.
47988         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47989
47990 2008-10-17  Jim Meyering  <meyering@redhat.com>
47991
47992         ignore-value: don't depend on inline module
47993         * modules/ignore-value (Depends-on): Remove 'inline'.
47994         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
47995         Suggestion from Bruno Haible.
47996
47997 2008-10-17  Bruno Haible  <bruno@clisp.org>
47998
47999         New implementation of condition variables for Win32.
48000         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
48001         (gl_linked_waitqueue_t): New type.
48002         (gl_cond_t): Use it.
48003         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
48004         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
48005         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
48006         (glthread_cond_init_func, glthread_cond_wait_func,
48007         glthread_cond_timedwait_func, glthread_cond_signal_func,
48008         glthread_cond_broadcast_func, glthread_cond_destroy_func):
48009         Reimplemented on the basis of gl_linked_waitqueue_t.
48010         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
48011         gl_waitqueue_t.
48012         (gl_rwlock_t): Update.
48013         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
48014
48015 2008-10-17  Simon Josefsson  <simon@josefsson.org>
48016
48017         * modules/recvfrom (Depends-on): Add dependency on getpeername.
48018         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48019
48020 2008-10-17  Jim Meyering  <meyering@redhat.com>
48021
48022         ignore-value: new module
48023         * modules/ignore-value: New file.
48024         * lib/ignore-value.h: New file.
48025         * MODULES.html.sh (Compiler warning management): New section,
48026         just for this module.  More to come.
48027
48028 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48029
48030         open-safer.c: avoid 'signed and unsigned in conditional...' warning
48031         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
48032         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
48033
48034 2008-10-16  Jim Meyering  <meyering@redhat.com>
48035
48036         openat-die.c: avoid 'no previous prototype' warning
48037         * lib/openat-die.c: Include "openat.h".
48038         Reported by Reuben Thomas <rrt@sc3d.org>.
48039
48040 2008-10-16  Simon Josefsson  <simon@josefsson.org>
48041
48042         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
48043         * lib/netdb.in.h: Fix typo.
48044         Reported by Bruno Haible  <bruno@clisp.org>
48045
48046         * lib/netdb.in.h: Include sys/socket.h for platforms without
48047         netdb.h, to get structures like hostent on MinGW.
48048         * modules/netdb (Depends-on): Add sys_socket.
48049
48050 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48051
48052         * modules/netdb, modules/netdb-tests: New file.
48053         * m4/netdb_h.m4: New file.
48054         * lib/netdb.in.h: Add, currently just an empty file pending
48055         definitions.
48056         * tests/test-netdb.c: New file.
48057         * doc/posix-headers/netdb.texi: Mention that we replace it if
48058         needed.
48059         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48060         netdb.
48061
48062 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48063
48064         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
48065         with code.
48066
48067 2008-10-13  Bruno Haible  <bruno@clisp.org>
48068
48069         * lib/glthread/cond.c (glthread_cond_wait_func,
48070         glthread_cond_timedwait_func): Add a comment.
48071
48072 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48073
48074         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
48075         * tests/test-select.c: Likewise,
48076
48077 2008-10-13  Bruno Haible  <bruno@clisp.org>
48078
48079         * lib/glthread/cond.c (glthread_cond_wait_func,
48080         glthread_cond_timedwait_func): Fix variable name.
48081         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48082
48083 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
48084
48085         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
48086         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
48087         struct sockaddr.sa_len.
48088         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
48089
48090 2008-10-13  Simon Josefsson  <simon@josefsson.org>
48091
48092         * build-aux/pmccabe2html: Add css and css_url parameters.
48093
48094 2008-10-12  Bruno Haible  <bruno@clisp.org>
48095
48096         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
48097         calling aclx_get.
48098         Reported by Rainer Tammer <tammer@tammer.net>.
48099
48100 2008-10-12  Bruno Haible  <bruno@clisp.org>
48101
48102         Use msvcrt aware primitives for creation/termination of Win32 threads.
48103         * lib/glthread/thread.c: Include <process.h>.
48104         (glthread_create_func): Use _beginthreadex instead of CreateThread.
48105         (wrapper_func): Update signature.
48106         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
48107
48108 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48109             Bruno Haible  <bruno@clisp.org>
48110
48111         Provide a Win32 implementation of the 'cond' module.
48112         * lib/glthread/cond.h [USE_WIN32]: New implementation.
48113         * lib/glthread/cond.c (glthread_cond_init_func,
48114         glthread_cond_wait_func, glthread_cond_timedwait_func,
48115         glthread_cond_signal_func, glthread_cond_broadcast_func,
48116         glthread_cond_destroy_func) [USE_WIN32]: New functions.
48117         * modules/cond (Dependencies): Add gettimeofday.
48118
48119 2008-10-11  Bruno Haible  <bruno@clisp.org>
48120
48121         Make sleep work on older versions of mingw.
48122         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
48123         only whether it exists.
48124         * doc/posix-functions/sleep.texi: Mention the problem with older
48125         versions of mingw.
48126
48127 2008-10-11  Bruno Haible  <bruno@clisp.org>
48128
48129         New module 'shutdown'.
48130         * modules/shutdown: New file.
48131         * lib/sys_socket.in.h (shutdown): New declaration.
48132         * lib/winsock.c (shutdown): New function.
48133         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
48134         GNULIB_SHUTDOWN.
48135         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
48136         * doc/posix-functions/shutdown.texi: Document the new module.
48137
48138 2008-10-11  Jim Meyering  <meyering@redhat.com>
48139
48140         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
48141
48142 2008-10-11  Bruno Haible  <bruno@clisp.org>
48143
48144         New module 'fclose'.
48145         * modules/fclose: New file.
48146         * lib/stdio.in.h (fclose): New declaration.
48147         * lib/fclose.c: New file.
48148         * m4/fclose.m4: New file.
48149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
48150         REPLACE_FCLOSE.
48151         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
48152         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
48153         REPLACE_FCLOSE.
48154         * modules/close (Depends-on): fclose.
48155         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
48156
48157 2008-10-11  Bruno Haible  <bruno@clisp.org>
48158
48159         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
48160         set errno and don't call _close.
48161
48162 2008-10-10  Bruno Haible  <bruno@clisp.org>
48163
48164         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
48165         ACL, not afterwards. Fixes test failure on Cygwin.
48166
48167 2008-10-09  Ben Pfaff  <blp@gnu.org>
48168
48169         * build-aux/announce-gen: Fix gnulib version related part of usage
48170         message.  Die with a useful error message if no tarballs are
48171         found.
48172
48173 2008-10-10  Jim Meyering  <meyering@redhat.com>
48174
48175         bootstrap: use git's --depth=N option only if it's supported
48176         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
48177         recognize the --depth option.  Reported by Pádraig Brady.
48178
48179 2008-10-09  Bruno Haible  <bruno@clisp.org>
48180
48181         New module 'ioctl'.
48182         * modules/ioctl: New file.
48183         * lib/sys_socket.in.h (ioctl): Remove declaration.
48184         * lib/winsock.c: Include <sys/ioctl.h>.
48185         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
48186         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48187         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
48188         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
48189         * doc/posix-functions/ioctl.texi: Mention the new module.
48190
48191 2008-10-09  Bruno Haible  <bruno@clisp.org>
48192
48193         New module 'sys_ioctl'.
48194         * lib/sys_ioctl.in.h: New file.
48195         * m4/sys_ioctl_h.m4: New file.
48196         * modules/sys_ioctl: New file.
48197         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
48198
48199 2008-10-09  Bruno Haible  <bruno@clisp.org>
48200
48201         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
48202         * lib/winsock.c: Include <stdarg.h>.
48203         (rpl_ioctl): Change to second argument 'int' and then varargs.
48204
48205 2008-10-09  Bruno Haible  <bruno@clisp.org>
48206
48207         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
48208         when the sys_socket module is present and the system has <winsock2.h>.
48209
48210 2008-10-09  Bruno Haible  <bruno@clisp.org>
48211
48212         * doc/posix-functions/close.texi: Mention module 'close' instead of
48213         module 'sys_socket'.
48214
48215 2008-10-09  Bruno Haible  <bruno@clisp.org>
48216
48217         * doc/glibc-headers/sys_ioctl.texi: New file.
48218         * doc/gnulib.texi: Include it.
48219
48220 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48221             Bruno Haible  <bruno@clisp.org>
48222
48223         Combine the two replacements of 'close'.
48224         * lib/sys_socket.in.h (close): Define to a reminder to include
48225         <unistd.h>.
48226         (_gl_close_fd_maybe_socket): New declaration.
48227         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
48228         * lib/winsock.c (close): Remove undefinition.
48229         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
48230         needed for the gnulib module 'close'.
48231         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
48232         define to an error symbol or to a warning, if suitable.
48233         * lib/close.c: Include <sys/socket.h>.
48234         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
48235         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
48236         UNISTD_H_HAVE_WINSOCK2_H.
48237         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
48238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48239         UNISTD_H_HAVE_WINSOCK2_H.
48240         * modules/sys_socket (Files): Add m4/unistd_h.m4.
48241         (configure.ac): Set a module indicator.
48242         (Makefile.am): Substitute GNULIB_CLOSE.
48243         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
48244         * modules/poll-tests (Depends-on): Add close.
48245         * modules/select-tests (Depends-on): Likewise.
48246
48247 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48248             Bruno Haible  <bruno@clisp.org>
48249
48250         New module 'close'.
48251         * modules/close: New file.
48252         * lib/unistd.in.h (close): Move declaration out of the
48253         FCHDIR_REPLACEMENT scope.
48254         (_gl_unregister_fd): New declaration.
48255         * lib/close.c: New file.
48256         * lib/fchdir.c (rpl_close): Remove function.
48257         * m4/close.m4: New file.
48258         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48259         close.
48260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
48261         REPLACE_CLOSE.
48262         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
48263         REPLACE_CLOSE.
48264         * modules/fchdir (Depends-on): Add close.
48265
48266 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48267             Bruno Haible  <bruno@clisp.org>
48268
48269         * lib/fcntl.in.h (open): Simplify conditionals.
48270         (_gl_register_fd): New declaration.
48271         * lib/fchdir.c (rpl_open): Remove function.
48272         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
48273         also.
48274         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
48275         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48276         open.
48277
48278 2008-10-09  Jim Meyering  <meyering@redhat.com>
48279
48280         GNUmakefile: use the more name-space-friendly "_version"
48281         * top/GNUmakefile (_dummy): Update.
48282         (_version): Rename from "version".
48283
48284 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48285             Bruno Haible  <bruno@clisp.org>
48286
48287         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
48288         rpl_close.
48289         (_gl_register_fd): New function, extracted from rpl_open.
48290         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
48291         (rpl_open, rpl_opendir): Use _gl_register_fd.
48292
48293 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48294
48295         Fix organization of 'open' replacement.
48296         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
48297         (gl_FUNC_OPEN): Use it.
48298         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
48299
48300 2008-10-08  Bruno Haible  <bruno@clisp.org>
48301
48302         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
48303
48304 2008-10-08  Simon Josefsson  <simon@josefsson.org>
48305
48306         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
48307         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
48308         listen).
48309
48310 2008-10-08  Eric Blake  <ebb9@byu.net>
48311
48312         GNUmakefile: add 'make version' target
48313         * top/GNUmakefile (_curr-ver): Split version update rules...
48314         (version): ...into a target.
48315
48316 2008-10-07  Bruno Haible  <bruno@clisp.org>
48317
48318         Use a more portable replacement expression for -0.0L.
48319         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
48320         instead of -0.0L. Fix m4 quotation.
48321
48322         * tests/test-signbit.c: Include <float.h>.
48323         (minus_zero): New variable.
48324         (test_signbitl): Use minus_zero instead of -zero.
48325         * modules/signbit-tests (Depends-on): Add float.
48326
48327         * tests/test-ceill.c: Include <float.h>.
48328         (zero): Remove variable.
48329         (minus_zero): New variable.
48330         (main): Use minus_zero instead of -zero.
48331         * modules/ceill-tests (Depends-on): Add float.
48332
48333         * tests/test-floorl.c: Include <float.h>.
48334         (zero): Remove variable.
48335         (minus_zero): New variable.
48336         (main): Use minus_zero instead of -zero.
48337         * modules/floorl-tests (Depends-on): Add float.
48338
48339         * tests/test-roundl.c: Include <float.h>.
48340         (zero): Remove variable.
48341         (minus_zero): New variable.
48342         (main): Use minus_zero instead of -zero.
48343         * modules/roundl-tests (Depends-on): Add float.
48344
48345         * tests/test-truncl.c: Include <float.h>.
48346         (zero): Remove variable.
48347         (minus_zero): New variable.
48348         (main): Use minus_zero instead of -zero.
48349         * modules/truncl-tests (Depends-on): Add float.
48350
48351         * tests/test-frexpl.c (zero): Remove variable.
48352         (minus_zero): New variable.
48353         (main): Use minus_zero instead of -zero.
48354         * modules/frexpl-tests (Depends-on): Add float.
48355
48356         * tests/test-isnan.c (zerol): Remove variable.
48357         (minus_zerol): New variable.
48358         (test_long_double): Use minus_zerol instead of -zerol.
48359         * modules/isnan-tests (Depends-on): Add float.
48360
48361         * tests/test-isnanl.h (zero): Remove variable.
48362         (minus_zero): New variable.
48363         (main): Use minus_zero instead of -zero.
48364         * modules/isnanl-nolibm-tests (Depends-on): Add float.
48365         * modules/isnanl-tests (Depends-on): Add float.
48366
48367         * tests/test-ldexpl.c (zero): Remove variable.
48368         (minus_zero): New variable.
48369         (main): Use minus_zero instead of -zero.
48370         * modules/ldexpl-tests (Depends-on): Add float.
48371
48372         * tests/test-snprintf-posix.h (zerol): Remove variable.
48373         (minus_zerol): New variable.
48374         (test_function): Use minus_zerol instead of -zerol.
48375         * modules/snprintf-posix-tests (Depends-on): Add float.
48376         * modules/vsnprintf-posix-tests (Depends-on): Add float.
48377
48378         * tests/test-sprintf-posix.h (zerol): Remove variable.
48379         (minus_zerol): New variable.
48380         (test_function): Use minus_zerol instead of -zerol.
48381         * modules/sprintf-posix-tests (Depends-on): Add float.
48382         * modules/vsprintf-posix-tests (Depends-on): Add float.
48383
48384         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
48385         (minus_zerol): New variable.
48386         (test_function): Use minus_zerol instead of -zerol.
48387         * modules/vasnprintf-posix-tests (Depends-on): Add float.
48388
48389         * tests/test-vasprintf-posix.c (zerol): Remove variable.
48390         (minus_zerol): New variable.
48391         (test_function): Use minus_zerol instead of -zerol.
48392         * modules/vasprintf-posix-tests (Depends-on): Add float.
48393
48394 2008-10-07  Simon Josefsson  <simon@josefsson.org>
48395
48396         * MODULES.html.sh (Support for building documentation): Mention
48397         pmccabe2html.  Sort entries.
48398
48399         Add pmccabe2html module, from gnupdf.
48400         * build-aux/pmccabe.css: New file.
48401         * build-aux/pmccabe2html: New file.
48402         * m4/pmccabe2html.m4: New file.
48403         * modules/pmccabe2html: New file.
48404
48405 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
48406
48407         flock: new module
48408         * MODULES.html.sh: Add to list of modules.
48409         * lib/flock.c: flock implementation for Windows and Unix systems
48410         which have fcntl.
48411         * doc/glibc-functions/flock.texi: Update documentation.
48412         * lib/sys_file.in.h: <sys/file.h> header file.
48413         * m4/flock.m4: M4 macros.
48414         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
48415         * modules/flock: flock module.
48416         * modules/flock-tests: flock tests module.
48417         * modules/sys_file: sys/file.h module.
48418         * tests/test-flock.c: test suite for flock.
48419
48420 2008-10-06  Jim Meyering  <meyering@redhat.com>
48421
48422         bootstrap: check for LT_INIT more portably still ;-)
48423         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
48424         Spotted by Bruno Haible.
48425
48426 2008-10-06  Eric Blake  <ebb9@byu.net>
48427
48428         test-signbit: avoid tripping Irix cc bug on -0.0L
48429         * tests/test-signbit.c (minus_zerol): Delete, and replace with
48430         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
48431         entire testsuite consistent and avoids an Irix 6.2 bug.
48432
48433 2008-10-05  Bruno Haible  <bruno@clisp.org>
48434             Jim Meyering  <jim@meyering.net>
48435
48436         Add an option for ignoring EPIPE during close_stdout.
48437         * lib/closeout.h: Include <stdbool.h>.
48438         (close_stdout_set_ignore_EPIPE): New declaration.
48439         * lib/closeout.c: Include <stdbool.h>.
48440         (ignore_EPIPE): New variable.
48441         (close_stdout_set_ignore_EPIPE): New function.
48442         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
48443         * lib/close-stream.c (close_stream): Mention the possible EPIPE
48444         failure.
48445         * modules/closeout (Depends-on): Add stdbool.
48446
48447 2008-10-05  Bruno Haible  <bruno@clisp.org>
48448
48449         * modules/accept: New file.
48450         * modules/bind: New file.
48451         * modules/connect: New file.
48452         * modules/getpeername: New file.
48453         * modules/getsockname: New file.
48454         * modules/getsockopt: New file.
48455         * modules/listen: New file.
48456         * modules/recv: New file.
48457         * modules/recvfrom: New file.
48458         * modules/send: New file.
48459         * modules/sendto: New file.
48460         * modules/setsockopt: New file.
48461         * modules/socket: New file.
48462         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
48463         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48464         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
48465         the particular module is requested. Add a link warning when the
48466         particular module is not requested.
48467         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
48468         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
48469         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
48470         the particular module is requested.
48471         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
48472         gl_SYS_SOCKET_H_DEFAULTS): New macros.
48473         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
48474         * modules/sys_socket (Depends-on): Add link-warning.
48475         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
48476         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
48477         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
48478         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
48479         GL_LINK_WARNING.
48480         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
48481         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
48482         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
48483         * doc/posix-functions/getpeername.texi: Mention the new module
48484         'getpeername'.
48485         * doc/posix-functions/getsockname.texi: Mention the new module
48486         'getsockname'.
48487         * doc/posix-functions/getsockopt.texi: Mention the new module
48488         'getsockopt'.
48489         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
48490         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
48491         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
48492         * doc/posix-functions/send.texi: Mention the new module 'send'.
48493         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
48494         * doc/posix-functions/setsockopt.texi: Mention the new module
48495         'setsockopt'.
48496         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
48497         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
48498         listen, connect, accept.
48499         * modules/select-tests (Depends-on): Likewise.
48500
48501 2008-10-05  Bruno Haible  <bruno@clisp.org>
48502
48503         * lib/winsock.c (strerror): Remove unused #undef.
48504         (rpl_close): Remove unused local variable.
48505
48506         * modules/sys_socket (Depends-on); Add errno.
48507
48508 2008-10-05  Bruno Haible  <bruno@clisp.org>
48509
48510         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
48511         (select): Add a link warning when the 'select' module is not used.
48512         * modules/sys_select (Depends-on): Add link-warning.
48513         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
48514         Suggested by Paolo Bonzini.
48515
48516 2008-10-05  Jim Meyering  <meyering@redhat.com>
48517
48518         bootstrap: check for LT_INIT more portably
48519         * build-aux/bootstrap: Avoid using grep -E, since it's not
48520         portable enough.  Suggestion from Bruno Haible.
48521
48522 2008-10-05  Bruno Haible  <bruno@clisp.org>
48523
48524         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
48525         as being fixed by gnulib.
48526
48527 2008-10-05  Bruno Haible  <bruno@clisp.org>
48528
48529         * modules/select-tests: New file, mostly copied from
48530         modules/sys_select-tests.
48531         * tests/test-select.c: New file, mostly copied from
48532         tests/test-sys_select.c.
48533         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
48534         * modules/sys_select-tests (Depends-on): Remove all dependencies.
48535         (Makefile.am): Remove test_sys_select_LDADD.
48536
48537         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
48538         to an undefined symbol, for an error message.
48539         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
48540         (gl_SYS_SELECT_H_DEFAULTS): New macro.
48541         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
48542         winsock-select.c here.
48543         * modules/sys_select (Files): Remove lib/winsock-select.c.
48544         (Depends-on): Remove alloca.
48545         (Makefile.am): Substitute GNULIB_SELECT.
48546         * modules/select: New file.
48547         * doc/posix-functions/select.texi: Update.
48548
48549 2008-10-05  Bruno Haible  <bruno@clisp.org>
48550
48551         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
48552         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
48553         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
48554         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
48555         getdtablesize.
48556         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
48557         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
48558
48559 2008-10-05  Bruno Haible  <bruno@clisp.org>
48560
48561         * modules/getdtablesize-tests: New file.
48562         * tests/test-getdtablesize.c: New file.
48563
48564         New module 'getdtablesize'.
48565         * lib/unistd.in.h (getdtablesize): New declaration.
48566         * lib/getdtablesize.c: New file.
48567         * m4/getdtablesize.m4: New file.
48568         * modules/getdtablesize: New file.
48569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48570         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
48571         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
48572         HAVE_GETDTABLESIZE.
48573         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
48574
48575 2008-10-05  Bruno Haible  <bruno@clisp.org>
48576
48577         * modules/sched (Makefile.am): Fix typo.
48578         Reported by Simon Josefsson.
48579
48580 2008-10-05  Jim Meyering  <meyering@redhat.com>
48581
48582         bootstrap: check for LT_INIT, too
48583         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
48584         are deprecated.  Suggestion from Ralf Wildenhues.
48585
48586 2008-10-05  Bruno Haible  <bruno@clisp.org>
48587
48588         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
48589         overriding them by ours.
48590         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
48591
48592 2008-10-05  Jim Meyering  <meyering@redhat.com>
48593
48594         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
48595         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
48596         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
48597
48598 2008-10-04  Bruno Haible  <bruno@clisp.org>
48599
48600         * modules/dup2 (License): Change to LGPLv2+.
48601         * modules/sleep (License): Likewise.
48602         * modules/perror (License): Likewise.
48603         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
48604         Blake.
48605         * modules/signal (License): Likewise.
48606         * modules/sigprocmask (License): Likewise.
48607         * modules/raise (License): Change to LGPLv2+, with approval by Jim
48608         Meyering.
48609
48610 2008-10-04  Bruno Haible  <bruno@clisp.org>
48611
48612         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
48613         Reported by Rainer Tammer <tammer@tammer.net>.
48614
48615 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
48616             Bruno Haible  <bruno@clisp.org>
48617
48618         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
48619         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
48620         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
48621
48622 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
48623
48624         filevercmp: new module
48625         * lib/filevercmp.h: New function filevercmp comparing version strings.
48626         * lib/filevercmp.c: Implementation of filevercmp function.
48627         * modules/filevercmp: Module metadata.
48628         * tests/test-filevercmp.c: Unit test for new module.
48629         * modules/filevercmp-tests: Unit test metadata.
48630         * MODULES.html.sh: Add filevercmp module.
48631
48632 2008-10-03  Bruno Haible  <bruno@clisp.org>
48633
48634         * lib/c-ctype.h: Add comment.
48635         Reported by Jim Meyering.
48636
48637 2008-10-02  Bruno Haible  <bruno@clisp.org>
48638
48639         * modules/posix_spawn-internal (Depends-on): Add 'open'.
48640
48641 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48642
48643         * build-aux/bootstrap: Allow renaming bootstrap, and change the
48644         name of bootstrap.conf accordingly.
48645
48646 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48647
48648         * build-aux/bootstrap: Install git-merge-changelog configuration
48649         items into .gitconfig if needed.
48650
48651 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48652
48653         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
48654         git repository, and initialize/update it accordingly.
48655
48656 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
48657
48658         * modules/fsync-tests: New file.
48659         * tests/test-fsync.c: New file.
48660
48661         New module 'fsync'.
48662         * lib/fsync.c: New file.
48663         * m4/fsync.m4: New file.
48664         * modules/fsync: New file.
48665         * lib/unistd.in.h (fsync): New declaration.
48666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
48667         GNULIB_FSYNC and HAVE_FSYNC.
48668         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
48669         * MODULES.html.sh (posix_functions): Add fsync.
48670         * doc/posix-functions/fsync.texi: Mention the new module.
48671
48672 2008-10-02  Jim Meyering  <meyering@redhat.com>
48673
48674         fts.c: sync with similar code from coreutils' remove.c
48675         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
48676         Guard also with "#if defined __linux__", since for now at least,
48677         this code is Linux-kernel-specific.
48678
48679 2008-10-02  Jim Meyering  <meyering@redhat.com>
48680
48681         fts: bug fixes
48682         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
48683         Include <sys/vfs.h>, not <sys/statfs.h>.
48684
48685         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
48686         Include <sys/vfs.h>, not <sys/statfs.h>.
48687
48688 2008-10-01  Bruno Haible  <bruno@clisp.org>
48689
48690         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
48691         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
48692         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
48693         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
48694         * doc/posix-functions/posix_spawnp.texi: Likewise.
48695         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
48696         whether posix_spawn actually works.
48697         * m4/pipe.m4 (gl_PIPE): Likewise.
48698         * modules/execute (Files): Add m4/posix_spawn.m4.
48699         * modules/pipe (Files): Add m4/posix_spawn.m4.
48700         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
48701
48702 2008-10-01  Jim Meyering  <meyering@redhat.com>
48703
48704         remove trailing spaces
48705         * NEWS: Likewise.
48706         * lib/poll.c (poll): Likewise.
48707         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
48708         * lib/winsock.c (rpl_close): Likewise.
48709         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
48710         * modules/yield: Likewise.
48711         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
48712         * tests/test-sys_select.c (connect_to_socket): Likewise.
48713
48714         fts.c: adjust a new interface to be more generally useful
48715         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
48716         (fts_build): Adjust caller.
48717
48718 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48719
48720         * modules/cond-tests: New file.
48721         * tests/test-cond.c: New file.
48722
48723 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48724             Bruno Haible  <bruno@clisp.org>
48725
48726         * modules/cond (Dependencies): Add errno, time.
48727         * lib/glthread/cond.h: Include <time.h>.
48728         (gl_cond_define, gl_cond_define_initialized): Use the same definition
48729         across platforms.
48730
48731 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48732             Bruno Haible  <bruno@clisp.org>
48733
48734         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
48735
48736 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48737             Bruno Haible  <bruno@clisp.org>
48738
48739         * modules/tls-tests (Depends-on): Add thread, yield.
48740         (configure.ac): Remove all checks.
48741         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
48742         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48743         gl_thread_self): Remove definitions. Include glthread/thread.h and
48744         glthread/yield.h instead.
48745         (test_tls): Pass an additional NULL argument to gl_thread_join.
48746
48747 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48748             Bruno Haible  <bruno@clisp.org>
48749
48750         * modules/lock-tests (Depends-on): Add thread, yield.
48751         (configure.ac): Remove all checks.
48752         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
48753         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48754         gl_thread_self): Remove definitions. Include glthread/thread.h and
48755         glthread/yield.h instead.
48756         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
48757         additional NULL argument to gl_thread_join.
48758
48759 2008-09-30  Bruno Haible  <bruno@clisp.org>
48760
48761         Fix the Win32 implementation of the 'thread' module.
48762         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
48763         pointer type.
48764         (gl_thread_self): Invoke gl_thread_self_func.
48765         (gl_thread_self_func): New declaration.
48766         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
48767         (do_init_self_key, init_self_key): New functions.
48768         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
48769         Remove some fields.
48770         (running_threads, running_lock): Remove variables.
48771         (get_current_thread_handle): New function.
48772         (gl_thread_self_func, wrapper_func, glthread_create_func,
48773         glthread_join_func, gl_thread_exit_func): Largely rewritten and
48774         simplified.
48775
48776 2008-09-30  Bruno Haible  <bruno@clisp.org>
48777
48778         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
48779         files.
48780
48781 2008-09-30  Jim Meyering  <meyering@redhat.com>
48782
48783         fts.m4: correct the test for statfs.f_type
48784         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
48785         when checking for statfs.f_type.
48786
48787 2008-09-15  Simon Josefsson  <simon@josefsson.org>
48788
48789         tests: avoid some compiler warnings
48790         * tests/test-memchr.c (main): Pass NULL indirectly.
48791         * tests/test-getdate.c (main): Remove unused variable 'ret'.
48792
48793 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
48794
48795         getdate.y: disallow countable dayshifts like "4 yesterday ago"
48796         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
48797         exactly specified dayshifts.
48798         (dayshift): New rule.
48799         (rel): Add dayshift.
48800         (relative_time_table) [tomorrow, yesterday, today, now]:
48801         Use tDAY_SHIFT in place of tDAY_UNIT.
48802         * tests/test-getdate.c: Add tests for now-disallowed countable
48803         dayshifts, e.g., "4 yesterday ago".
48804
48805 2008-09-29  Bruno Haible  <bruno@clisp.org>
48806
48807         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
48808         * tests/test-posix_spawn1.in.sh: Renamed from
48809         tests/test-posix_spawn.in.sh.
48810         * tests/test-posix_spawn2.c: New file.
48811         * tests/test-posix_spawn2.in.sh: New file.
48812         * modules/posix_spawnp-tests (Files): Update.
48813         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
48814
48815 2008-09-29  Bruno Haible  <bruno@clisp.org>
48816
48817         Propagate effects of putenv/setenv/unsetenv to child processes.
48818         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
48819         * lib/pipe.c (create_pipe): Likewise.
48820
48821 2008-09-29  Bruno Haible  <bruno@clisp.org>
48822
48823         Enable use of shell scripts as executables in mingw.
48824         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
48825         run the program as a shell script.
48826         * lib/pipe.c (create_pipe): Likewise.
48827         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
48828         resulting array.
48829
48830 2008-09-29  Eric Blake  <ebb9@byu.net>
48831
48832         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
48833
48834 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
48835
48836         * doc/posix-functions/accept.texi: Update mingw problems.
48837         * doc/posix-functions/bind.texi: Update mingw problems.
48838         * doc/posix-functions/close.texi: Update mingw problems.
48839         * doc/posix-functions/connect.texi: Update mingw problems.
48840         * doc/posix-functions/getpeername.texi: Update mingw problems.
48841         * doc/posix-functions/getsockname.texi: Update mingw problems.
48842         * doc/posix-functions/getsockopt.texi: Update mingw problems.
48843         * doc/posix-functions/ioctl.texi: Update mingw problems.
48844         * doc/posix-functions/listen.texi: Update mingw problems.
48845         * doc/posix-functions/recv.texi: Update mingw problems.
48846         * doc/posix-functions/recvfrom.texi: Update mingw problems.
48847         * doc/posix-functions/select.texi: Update mingw problems.
48848         * doc/posix-functions/send.texi: Update mingw problems.
48849         * doc/posix-functions/sendto.texi: Update mingw problems.
48850         * doc/posix-functions/setsockopt.texi: Update mingw problems.
48851         * doc/posix-functions/socket.texi: Update mingw problems.
48852
48853 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
48854             Bruno Haible  <bruno@clisp.org>
48855
48856         * lib/sys_select.in.h: Include sys/time.h.
48857         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
48858         * modules/sys_select: Depend on sys_time.
48859         * tests/test-sys_select.c: Test that sys/select.h defines struct
48860         timeval fully.
48861
48862 2008-09-29  Bruno Haible  <bruno@clisp.org>
48863
48864         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
48865         * lib/sys_select.in.h: Likewise.
48866
48867 2008-09-29  Bruno Haible  <bruno@clisp.org>
48868
48869         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
48870
48871 2008-09-29  Bruno Haible  <bruno@clisp.org>
48872
48873         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
48874         Set LIBSOCKET instead of augmenting LIBS.
48875         * modules/sockets (Link): New section.
48876         * modules/sockets-tests (test_sockets_LDADD): New variable.
48877         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
48878         * modules/poll-tests (test_poll_LDADD): New variable.
48879         * NEWS: Document the change.
48880
48881 2008-09-29  Bruno Haible  <bruno@clisp.org>
48882
48883         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
48884         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
48885         ARPA_INET_H directly.
48886         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48887
48888 2008-09-28  Bruno Haible  <bruno@clisp.org>
48889
48890         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
48891         from gl_HEADER_SYS_SOCKET.
48892         (gl_HEADER_SYS_SOCKET): Invoke it.
48893         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48894
48895 2008-09-28  Bruno Haible  <bruno@clisp.org>
48896
48897         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
48898         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
48899         Needed on OSF/1 4.0.
48900
48901 2008-09-28  Bruno Haible  <bruno@clisp.org>
48902
48903         Override open more carefully.
48904         * lib/open.c (orig_open): New function.
48905         (rpl_open): Use orig_open instead of open.
48906         * lib/fcntl.in.h: Add special invocation convention.
48907         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
48908         (gl_FUNC_OPEN): Invoke it.
48909
48910         Override freopen more carefully.
48911         * lib/freopen.c (orig_freopen): New function.
48912         (rpl_freopen): Use orig_freopen instead of freopen.
48913         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
48914         (gl_FUNC_FREOPEN): Invoke it.
48915
48916         Override fopen more carefully.
48917         * lib/fopen.c (orig_fopen): New function.
48918         (rpl_fopen): Use orig_fopen instead of fopen.
48919         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
48920         (gl_FUNC_FOPEN): Invoke it.
48921         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
48922
48923 2008-09-28  Bruno Haible  <bruno@clisp.org>
48924
48925         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
48926         SIGPIPE.
48927
48928 2008-09-28  Bruno Haible  <bruno@clisp.org>
48929
48930         * tests/test-sigaction.c (handler, main): Disable the check whether
48931         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
48932         glibc systems with LinuxThreads.
48933
48934 2008-09-28  Bruno Haible  <bruno@clisp.org>
48935
48936         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
48937
48938         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
48939         with AIX xlc.
48940         * lib/fcntl.in.h (open): Likewise.
48941         Reported by Rainer Tammer <tammer@tammer.net>.
48942
48943 2008-09-28  Bruno Haible  <bruno@clisp.org>
48944
48945         * modules/posix_spawnp-tests: New file.
48946         * tests/test-posix_spawn.c: New file.
48947         * tests/test-posix_spawn.in.sh: New file.
48948
48949         New module 'posix_spawnp'.
48950         * modules/posix_spawnp: New file.
48951         * lib/spawnp.c: New file, from GNU libc with modifications.
48952         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
48953
48954         New module 'posix_spawn'.
48955         * modules/posix_spawn: New file.
48956         * lib/spawn.c: New file, from GNU libc with modifications.
48957         * doc/posix-functions/posix_spawn.texi: Mention the new module.
48958
48959         New module 'posix_spawnattr_destroy'.
48960         * modules/posix_spawnattr_destroy: New file.
48961         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
48962         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
48963         module.
48964
48965         New module 'posix_spawnattr_setsigmask'.
48966         * modules/posix_spawnattr_setsigmask: New file.
48967         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
48968         modifications.
48969         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
48970         new module.
48971
48972         New module 'posix_spawnattr_getsigmask'.
48973         * modules/posix_spawnattr_getsigmask: New file.
48974         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
48975         modifications.
48976         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
48977         new module.
48978
48979         New module 'posix_spawnattr_setsigdefault'.
48980         * modules/posix_spawnattr_setsigdefault: New file.
48981         * lib/spawnattr_setdefault.c: New file, from GNU libc with
48982         modifications.
48983         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
48984         new module.
48985
48986         New module 'posix_spawnattr_getsigdefault'.
48987         * modules/posix_spawnattr_getsigdefault: New file.
48988         * lib/spawnattr_getdefault.c: New file, from GNU libc with
48989         modifications.
48990         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
48991         new module.
48992
48993         New module 'posix_spawnattr_setschedpolicy'.
48994         * modules/posix_spawnattr_setschedpolicy: New file.
48995         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
48996         modifications.
48997         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
48998         new module.
48999
49000         New module 'posix_spawnattr_getschedpolicy'.
49001         * modules/posix_spawnattr_getschedpolicy: New file.
49002         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
49003         modifications.
49004         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
49005         new module.
49006
49007         New module 'posix_spawnattr_setschedparam'.
49008         * modules/posix_spawnattr_setschedparam: New file.
49009         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
49010         modifications.
49011         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
49012         new module.
49013
49014         New module 'posix_spawnattr_getschedparam'.
49015         * modules/posix_spawnattr_getschedparam: New file.
49016         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
49017         modifications.
49018         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
49019         new module.
49020
49021         New module 'posix_spawnattr_setpgroup'.
49022         * modules/posix_spawnattr_setpgroup: New file.
49023         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
49024         modifications.
49025         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
49026         module.
49027
49028         New module 'posix_spawnattr_getpgroup'.
49029         * modules/posix_spawnattr_getpgroup: New file.
49030         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
49031         modifications.
49032         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
49033         module.
49034
49035         New module 'posix_spawnattr_setflags'.
49036         * modules/posix_spawnattr_setflags: New file.
49037         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
49038         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
49039         module.
49040
49041         New module 'posix_spawnattr_getflags'.
49042         * modules/posix_spawnattr_getflags: New file.
49043         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
49044         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
49045         module.
49046
49047         New module 'posix_spawnattr_init'.
49048         * modules/posix_spawnattr_init: New file.
49049         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
49050         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
49051         module.
49052
49053         New module 'posix_spawn_file_actions_destroy'.
49054         * modules/posix_spawn_file_actions_destroy: New file.
49055         * lib/spawn_faction_destroy.c: New file, from GNU libc with
49056         modifications.
49057         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
49058         the new module.
49059
49060         New module 'posix_spawn_file_actions_addopen'.
49061         * modules/posix_spawn_file_actions_addopen: New file.
49062         * lib/spawn_faction_addopen.c: New file, from GNU libc with
49063         modifications.
49064         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
49065         the new module.
49066
49067         New module 'posix_spawn_file_actions_adddup2'.
49068         * modules/posix_spawn_file_actions_adddup2: New file.
49069         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
49070         modifications.
49071         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
49072         the new module.
49073
49074         New module 'posix_spawn_file_actions_addclose'.
49075         * modules/posix_spawn_file_actions_addclose: New file.
49076         * lib/spawn_faction_addclose.c: New file, from GNU libc with
49077         modifications.
49078         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
49079         the new module.
49080
49081         New module 'posix_spawn_file_actions_init'.
49082         * modules/posix_spawn_file_actions_init: New file.
49083         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
49084         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
49085         new module.
49086
49087         New module 'posix_spawn-internal'.
49088         * modules/posix_spawn-internal: New file.
49089         * lib/spawn_int.h: New file, from GNU libc with modifications.
49090         * lib/spawni.c: New file, from GNU libc with modifications.
49091         * m4/posix_spawn.m4: New file.
49092
49093         New module 'spawn'.
49094         * modules/spawn: New file.
49095         * lib/spawn.in.h: New file, from GNU libc with modifications.
49096         * m4/spawn_h.m4: New file.
49097         * doc/posix-headers/spawn.texi: Mention the new module.
49098
49099 2008-09-28  Bruno Haible  <bruno@clisp.org>
49100
49101         * modules/sched-tests: New file.
49102         * tests/test-sched.c: New file.
49103
49104         New module 'sched'.
49105         * modules/sched: New file.
49106         * lib/sched.in.h: New file.
49107         * m4/sched_h.m4: New file.
49108         * doc/posix-headers/sched.texi: Mention the new module.
49109
49110 2008-09-27  Eric Blake  <ebb9@byu.net>
49111
49112         Fix previous patch, and tweak references to $0.
49113         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
49114         (func_version, func_gnulib_dir): Don't call this program
49115         gnulib-tool.
49116         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
49117         with using $0 in function.
49118         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
49119         (func_fatal_error): Reuse the name the user invoked us with.
49120
49121 2008-09-27  Bruno Haible  <bruno@clisp.org>
49122
49123         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
49124         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
49125         (gl_ICONV_H): Not here.
49126         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
49127         instead of assigning ICONV_H directly.
49128
49129         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
49130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
49131         WCHAR_H directly.
49132
49133 2008-09-27  Bruno Haible  <bruno@clisp.org>
49134
49135         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
49136         * modules/arpa_inet (Depends-on): Add link-warning.
49137         (Makefile.am): Insert the definition of GL_LINK-WARNING.
49138         * modules/unistd (Makefile.am): Likewise.
49139
49140 2008-09-26  Bruno Haible  <bruno@clisp.org>
49141
49142         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
49143         variables.
49144         (func_version): Essentially copied from gnulib-tool.
49145         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
49146         func_readlink): Copied from gnulib-tool.
49147
49148 2008-09-26  Bruno Haible  <bruno@clisp.org>
49149
49150         * gnulib-tool (func_version): Change directory to $gnulib_dir before
49151         invoking git-version-gen.
49152
49153 2008-09-26  Bruno Haible  <bruno@clisp.org>
49154
49155         * posix-modules: Update to directory names changed on 2008-01-19.
49156         Remove commas in output before splitting into words. No more need to
49157         avoid 'ftruncate' since 2007-02-19.
49158
49159 2008-09-26  Bruno Haible  <bruno@clisp.org>
49160
49161         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
49162
49163 2008-09-26  Bruno Haible  <bruno@clisp.org>
49164
49165         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
49166         * modules/fwriteerror (Depends-on): Add errno.
49167
49168 2008-09-26  Bruno Haible  <bruno@clisp.org>
49169
49170         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
49171         * tests/test-vc-list-files-cvs.sh: Likewise.
49172
49173 2008-09-26  Bruno Haible  <bruno@clisp.org>
49174
49175         * doc/posix-headers/sys_resource.texi: Reorder items.
49176
49177 2008-09-26  Jim Meyering  <meyering@redhat.com>
49178
49179         fts: tweak inode comparison function
49180         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
49181         inode numbers, as documented.
49182
49183         fts: sort dirent entries on inode number before traversing
49184         This avoids a quadratic, seek-related performance penalty when
49185         operating on a directory containing many entries (measurable at 10k;
49186         3.5 hours at 2 million entries with a cold cache) on certain types
49187         of file systems, including ext3 and ext4, but not tmpfs.
49188         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
49189         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
49190         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
49191         (fs_handles_readdir_ordered_dirents_efficiently): New function.
49192         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
49193         (fts_build): Set the stat.st_ino member from D_INO.
49194         If it is likely to be useful, sort dirent entries on inode number.
49195
49196         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
49197         and the struct statfs.f_type member.
49198         * modules/fts (Depends-on): Add d-ino.
49199
49200 2008-09-26  Bruno Haible  <bruno@clisp.org>
49201
49202         * modules/sigpipe-die (Depends-on): Add sigpipe.
49203
49204         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
49205         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
49206         and GNULIB_STDIO_H_SIGPIPE are set.
49207         * lib/stdio-write.c: New file.
49208         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
49209         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49210         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49211         REPLACE_STDIO_WRITE_FUNCS.
49212         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
49213         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49214         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49215         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49216         * modules/stdio (Files): Add lib/stdio-write.c.
49217         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
49218         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49219         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49220         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49221         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
49222         REPLACE_FPRINTF_POSIX.
49223         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
49224         REPLACE_PRINTF_POSIX.
49225         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
49226         REPLACE_VFPRINTF_POSIX.
49227         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
49228         REPLACE_VPRINTF_POSIX.
49229         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
49230         SIGPIPE issue.
49231         * doc/posix-functions/fputc.texi: Likewise.
49232         * doc/posix-functions/fputs.texi: Likewise.
49233         * doc/posix-functions/fwrite.texi: Likewise.
49234         * doc/posix-functions/printf.texi: Likewise.
49235         * doc/posix-functions/putc.texi: Likewise.
49236         * doc/posix-functions/putchar.texi: Likewise.
49237         * doc/posix-functions/puts.texi: Likewise.
49238         * doc/posix-functions/vfprintf.texi: Likewise.
49239         * doc/posix-functions/vprintf.texi: Likewise.
49240
49241         * modules/safe-write (Depends-on): Add write.
49242
49243         * modules/sigpipe-tests: New file.
49244         * tests/test-sigpipe.c: New file.
49245         * tests/test-sigpipe.sh: New file.
49246
49247         * modules/write: New file.
49248         * lib/unistd.in.h: Include <sys/types.h>.
49249         (write): New declaration.
49250         * lib/write.c: New file.
49251         * m4/write.m4: New file.
49252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49253         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
49254         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
49255         GNULIB_WRITE, REPLACE_WRITE.
49256         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
49257         and the SIGPIPE issue.
49258
49259         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
49260         (raise): New declaration.
49261         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
49262         (ext_signal): New function.
49263         (rpl_raise): New function.
49264         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49265         GNULIB_SIGNAL_H_SIGPIPE.
49266         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
49267         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
49268
49269         * modules/sigpipe: New file.
49270         * m4/sigpipe.m4: New file.
49271
49272 2008-09-25  Derek Price  <derek@ximbiot.com>
49273             Bruno Haible  <bruno@clisp.org>
49274
49275         * gnulib-tool (func_import): Report all license incompatibilities, not
49276         just the first one.
49277
49278 2008-09-25  Bruno Haible  <bruno@clisp.org>
49279
49280         * gnulib-tool (func_import): When computing the edits, consider not
49281         only the Makefile.ams that exist but also those that will be generated.
49282
49283 2008-09-25  Simon Josefsson  <simon@josefsson.org>
49284
49285         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
49286         fixes gnulib-tool --test warning about duplicate dependency.
49287
49288 2008-09-25  Bruno Haible  <bruno@clisp.org>
49289
49290         * gnulib-tool: Don't ask the user to perform edits in the generated
49291         Makefile.ams.
49292         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
49293         apply to the Makefile.am being generated.
49294         (func_emit_tests_Makefile_am): Execute edits that apply to the
49295         Makefile.am being generated.
49296         (func_import): Setup list of Makefile.am edits before emitting the
49297         Makefile.ams, not at the end.
49298         (func_create_testdir): Update.
49299         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49300
49301 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49302
49303         * gnulib-tool (func_import): Store the --tests-base option in the
49304         comment in gnulib-cache.m4.
49305
49306 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
49307
49308         * NEWS: Document increased portability that sys_select now provides.
49309
49310         * lib/sys_select.in.h: Install select wrapper.
49311         * lib/sys_socket.in.h: Use more descriptive name when there is no
49312         select wrapper.
49313         * lib/winsock-select.c: New.
49314         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
49315         Require gl_HEADER_SYS_SOCKET.
49316         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
49317         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
49318         * tests/test-sys_select.c: Add functional tests.
49319
49320 2008-09-24  Eric Blake  <ebb9@byu.net>
49321
49322         open, fopen: close fd leak in last patch
49323         * lib/open.c (rpl_open): Close fd before returning error.
49324         * lib/fopen.c (rpl_fopen): Close fd before returning error.
49325         * doc/posix-functions/open.texi (open): Document that Irix also
49326         has the bug.
49327         * doc/posix-functions/fopen.texi (fopen): Likewise.
49328         Reported by Paolo Bonzini.
49329
49330 2008-09-24  Bruno Haible  <bruno@clisp.org>
49331
49332         Ensure that a filename ending in a slash cannot be used to access a
49333         non-directory.
49334         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
49335         to check whether it's really a directory.
49336         * lib/fopen.c: Include fcntl.h, unistd.h.
49337         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
49338         and fdopen().
49339         * modules/fopen (Depends-on): Add unistd.
49340         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
49341         * tests/test-fopen.c (main): Likewise.
49342         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
49343         * doc/posix-functions/fopen.texi: Likewise.
49344         Reported by Eric Blake.
49345
49346 2008-09-23  Eric Blake  <ebb9@byu.net>
49347
49348         c-stack: avoid compiler optimizations when provoking overflow
49349         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
49350         recursion harder to optimize, to ensure a stack overflow occurs.
49351         * tests/test-c-stack.c (recurse): Likewise.
49352         Borrowed from libsigsegv.
49353
49354         c-stack: work around Irix sigaltstack bug
49355         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
49356         whether sigaltstack uses wrong end of stack_t (copied in part from
49357         libsigsegv).
49358         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
49359         Irix bug, without requiring an over-allocation.
49360         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
49361         bug.
49362
49363         fopen: document mingw bug on directories
49364         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
49365         not allowing a stream visiting a directory, even though reading
49366         from such a stream is not portable.
49367
49368 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49369
49370         * lib/poll.c: Rewrite.
49371         * modules/poll: Depend on alloca.
49372
49373 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49374
49375         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
49376         instead define prototypes for a full set of wrappers.  Ensure
49377         that Cygwin does not use the compatibility code, which is only
49378         for MinGW.
49379         * lib/winsock.c: New.
49380         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
49381         * modules/sys_socket: Add lib/winsock.c.
49382
49383         * modules/poll-tests: Add errno and perror.
49384         * tests/test-poll.c: Use ioctl, not ioctlsocket.
49385
49386 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49387
49388         * tests/test-poll.c: Downgrade minimum needed Winsock version.
49389
49390 2008-09-23  Bruno Haible  <bruno@clisp.org>
49391
49392         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
49393         * doc/glibc-functions/*: Likewise.
49394
49395 2008-09-23  Simon Josefsson  <simon@josefsson.org>
49396
49397         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
49398         success.
49399
49400 2008-09-22  Eric Blake  <ebb9@byu.net>
49401             Bruno Haible  <bruno@clisp.org>
49402
49403         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
49404         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
49405         supply %A but mishandle pseudo-NaN.
49406         Reported by Simon Josefsson.
49407
49408 2008-09-21  Bruno Haible  <bruno@clisp.org>
49409
49410         * tests/test-lock.c (main): Tweak skip message.
49411         * tests/test-tls.c (main): Likewise.
49412
49413 2008-09-21  Bruno Haible  <bruno@clisp.org>
49414
49415         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
49416         whether 'struct sigaction' has sa_sigaction here...
49417         (gl_PREREQ_SIG_HANDLER_H): ... not here.
49418         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
49419
49420 2008-09-21  Bruno Haible  <bruno@clisp.org>
49421
49422         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
49423         section.
49424         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
49425         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
49426         the new section.
49427         (Support for obsolete systems lacking POSIX:2001): New section.
49428         (String handling <string.h>): Move strdup to the new section.
49429         Suggested by Simon Josefsson and Paolo Bonzini.
49430
49431 2008-09-21  Bruno Haible  <bruno@clisp.org>
49432
49433         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
49434         exponents in %e and %g results on 'long double'. Needed for mingw's
49435         improved *printf functions.
49436         * tests/test-vasprintf-posix.c (test_function): Likewise.
49437         * tests/test-snprintf-posix.h (test_function): Likewise.
49438         * tests/test-sprintf-posix.h (test_function): Likewise.
49439         Reported by Eric Blake.
49440
49441 2008-09-21  Bruno Haible  <bruno@clisp.org>
49442
49443         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
49444         * tests/test-sprintf-posix.h (test_function): Likewise.
49445
49446 2008-09-21  Bruno Haible  <bruno@clisp.org>
49447
49448         * modules/getpass (Depends-on): Add strdup-posix.
49449
49450         New module 'strdup-posix'.
49451         * modules/strdup-posix: New file.
49452         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
49453         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
49454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49455         REPLACE_STRDUP.
49456         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
49457         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
49458         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49459         strdup-posix.
49460
49461         * modules/strdup (Depends-on): Remove malloc-posix.
49462
49463 2008-09-20  Bruno Haible  <bruno@clisp.org>
49464
49465         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
49466         Wildenhues.
49467
49468 2008-09-20  Bruno Haible  <bruno@clisp.org>
49469
49470         Ensure that wint_t gets defined on IRIX 5.3.
49471         * lib/wchar.in.h (wint_t): Define if not defined by the system.
49472         * lib/wctype.in.h (wint_t): Likewise.
49473         (__wctype_wint_t): Remove type.
49474         (isw*): Use wint_t instead of __wctype_wint_t.
49475         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
49476         * modules/wchar (Files): Add m4/wint_t.m4.
49477         (Makefile.am): Substitute HAVE_WINT_T.
49478         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
49479         * tests/test-wctype.c: Check that wint_t is defined.
49480         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
49481         * doc/posix-headers/wctype.texi: Likewise.
49482         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49483
49484 2008-09-18  Bruno Haible  <bruno@clisp.org>
49485
49486         * gnulib-tool (func_exit): Update comment.
49487
49488 2008-09-18  Simon Josefsson  <simon@josefsson.org>
49489
49490         * modules/getaddrinfo (Depends-on): Remove strdup, this module
49491         assumes strdup exists and does not depend on strdup to return
49492         ENOMEM on out of memory conditions.
49493
49494 2008-09-18  Bruno Haible  <bruno@clisp.org>
49495
49496         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
49497         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
49498         digits for the exponent.
49499
49500 2008-09-18  Jim Meyering  <meyering@redhat.com>
49501             Bruno Haible  <bruno@clisp.org>
49502
49503         * lib/vasnprintf.c (decimal_point_char): Define also if
49504         NEED_PRINTF_INFINITE_LONG_DOUBLE.
49505
49506 2008-09-16  Bruno Haible  <bruno@clisp.org>
49507         and Eric Blake  <ebb9@byu.net>
49508
49509         vasnprintf: support Irix 5.3
49510         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
49511         that mishandle long double infinity.
49512         Reported by Tom G. Christensen.
49513
49514 2008-09-16  Bruno Haible  <bruno@clisp.org>
49515
49516         * doc/glibc-functions/scandir.texi: Mention the function is missing on
49517         Solaris 9.
49518         * doc/glibc-functions/alphasort.texi: Likewise.
49519         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
49520
49521 2008-09-16  Jim Meyering  <meyering@redhat.com>
49522
49523         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
49524         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
49525         a umask modification leak out of a subshell.  Otherwise, the
49526         opensolaris /bin/sh would be accepted and thus cause unwarranted
49527         failures in the coreutils test suite.
49528
49529 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
49530
49531         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
49532         to succeed.
49533
49534 2008-09-16  Jim Meyering  <meyering@redhat.com>
49535
49536         avoid spurious test failure when library is built without ACL support
49537         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
49538         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
49539         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
49540         * tests/test-copy-acl.sh: Likewise.
49541
49542 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49543
49544         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
49545         based on character occurrence counts.
49546
49547 2008-09-15  Eric Blake  <ebb9@byu.net>
49548
49549         tests: avoid some compiler warnings
49550         * tests/test-memchr.c (main): Pass NULL indirectly.
49551         * tests/test-closein.c (main): Avoid unused variable.
49552
49553 2008-09-15  Bruno Haible  <bruno@clisp.org>
49554
49555         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
49556         are missing on OpenBSD 4.0 individually.
49557         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49558
49559 2008-09-15  Bruno Haible  <bruno@clisp.org>
49560
49561         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
49562         * doc/posix-functions/strerror.texi: Mention also Cygwin.
49563         * doc/posix-functions/perror.texi: Likewise.
49564         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
49565         is missing.
49566         Reported by Eric Blake.
49567
49568         * lib/errno.in.h: Use replacement values >= 2000.
49569         Reported by Eric Blake.
49570
49571 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49572
49573         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
49574         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
49575         limit.
49576         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
49577         compareseq was aborted.
49578
49579 2008-09-14  Bruno Haible  <bruno@clisp.org>
49580
49581         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
49582         yvec_edit_count.
49583         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
49584         (fstrcmp_bounded): Simplify result computation accordingly.
49585
49586 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49587
49588         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
49589         (fstrcmp): Define in terms of fstrcmp_bounded.
49590         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
49591         lower_bound argument.
49592         Return quickly if the result is certainly < lower_bound.
49593         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
49594
49595 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49596
49597         * lib/diffseq.h (EARLY_ABORT): New macro.
49598         (compareseq): Change return type to bool. Return true when EARLY_ABORT
49599         evaluates to true.
49600
49601 2008-09-14  Bruno Haible  <bruno@clisp.org>
49602
49603         * modules/perror-tests: New file.
49604         * tests/test-perror.sh: New file.
49605         * tests/test-perror.c: New file.
49606
49607         New module 'perror'.
49608         * lib/stdio.in.h (perror): New declaration.
49609         * lib/perror.c: New file.
49610         * m4/perror.m4: New file.
49611         * modules/perror: New file.
49612         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
49613         * doc/posix-functions/perror.texi: Mention the perror module.
49614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
49615         REPLACE_PERROR.
49616         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
49617         REPLACE_PERROR.
49618
49619 2008-09-14  Bruno Haible  <bruno@clisp.org>
49620
49621         * modules/stdio (Makefile.am): Reorder to match the order in
49622         lib/stdio.in.h.
49623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49624
49625 2008-09-13  Bruno Haible  <bruno@clisp.org>
49626
49627         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
49628
49629 2008-09-13  Bruno Haible  <bruno@clisp.org>
49630
49631         Extend strerror to cover the added errno values.
49632         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
49633         (rpl_strerror): Provide error messages for the added errno values and
49634         for the WSA* values.
49635         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
49636         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
49637         strerror.
49638         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
49639         * modules/strerror (Depends-on): Add errno.
49640         * doc/posix-functions/strerror.texi: Document the change.
49641         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
49642         and EOVERFLOW.
49643
49644 2008-09-13  Bruno Haible  <bruno@clisp.org>
49645
49646         * modules/EOVERFLOW: Remove file.
49647         * m4/eoverflow.m4: Remove file.
49648         * modules/EOVERFLOW-tests: Remove file.
49649         * tests/test-EOVERFLOW.c: Remove file.
49650         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
49651         * modules/ftell (Depends-on): Likewise.
49652         * modules/getdelim (Depends-on): Likewise.
49653         * modules/getugroups (Depends-on): Likewise.
49654         * modules/poll (Depends-on): Likewise.
49655         * modules/snprintf (Depends-on): Likewise.
49656         * modules/sprintf-posix (Depends-on): Likewise.
49657         * modules/vasnprintf (Depends-on): Likewise.
49658         * modules/vasprintf (Depends-on): Likewise.
49659         * modules/vfprintf-posix (Depends-on): Likewise.
49660         * modules/vsnprintf (Depends-on): Likewise.
49661         * modules/vsprintf-posix (Depends-on): Likewise.
49662         * modules/xvasprintf (Depends-on): Likewise.
49663         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49664         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
49665         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
49666         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
49667         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49668         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
49669         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
49670         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
49671         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49672         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
49673         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
49674         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
49675         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49676         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
49677         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
49678         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
49679         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49680         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
49681         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
49682         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
49683         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49684         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
49685         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
49686         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
49687         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
49688         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49689         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
49690         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
49691         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
49692         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
49693         * MODULES.html.sh: Remove EOVERFLOW.
49694         * NEWS: Mention the change.
49695
49696 2008-09-13  Bruno Haible  <bruno@clisp.org>
49697
49698         * modules/errno-tests: New file.
49699         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
49700
49701         * lib/errno.in.h: New file.
49702         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
49703         * modules/errno: New file.
49704         * doc/posix-headers/errno.texi: Update documentation.
49705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
49706
49707 2008-09-13  Bruno Haible  <bruno@clisp.org>
49708
49709         * tests/test-poll.c: Use #if for native Windows, rather than testing
49710         __MSVCRT__.
49711
49712 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49713             Bruno Haible  <bruno@clisp.org>
49714
49715         * lib/glob.c: Don't include <pwd.h> on native Windows.
49716         (WINDOWS32): New macro.
49717         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
49718
49719 2008-09-13  Bruno Haible  <bruno@clisp.org>
49720
49721         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
49722         (ETIMEDOUT): Remove macro.
49723         (glthread_cond_timedwait_multithreaded): New declaration.
49724         (glthread_cond_timedwait): Use it.
49725         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
49726         (glthread_cond_timedwait_multithreaded): New function.
49727
49728 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49729
49730         * modules/poll-tests: Do not check for io.h.
49731         * tests/test-poll.c: Check for __MSVCRT__ instead.
49732
49733 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49734
49735         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
49736         * modules/poll-tests: Add inet_pton, stdbool, sockets.
49737         * tests/test-poll.c: Use them.  Use _pipe on Windows.
49738
49739 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49740
49741         * modules/poll-tests: New.
49742         * tests/test-poll.c: New.
49743
49744 2008-09-12  Eric Blake  <ebb9@byu.net>
49745
49746         frexp: test for NetBSD failure on -0.0
49747         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
49748         not all, bugs from NetBSD 3.0 have been fixed.
49749         * doc/posix-functions/frexp.texi (frexp): Document bug.
49750         Reported by Thomas Klausner.
49751
49752         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
49753         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
49754         literal -0.0.
49755         Reported by Jonathan C. Patschke <jp@centtech.com>.
49756
49757 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49758
49759         * lib/glthread/cond.h: Use dummy implementation also if
49760         USE_WIN32_THREADS.
49761
49762 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49763
49764         * modules/fnmatch-posix (License): Change to LGPLv2+.
49765         * modules/fnmatch-gnu (License): Likewise.
49766
49767 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49768
49769         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
49770
49771 2008-09-11  Jim Meyering  <meyering@redhat.com>
49772
49773         * users.txt: Add gtk-vnc.
49774
49775 2008-09-08  Simon Josefsson  <simon@josefsson.org>
49776
49777         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
49778         rotate amounts.
49779
49780         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
49781         required for 16-bit and 8-bit rotates.
49782         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
49783         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
49784         UINT8_MAX instead of hard-coded constants.
49785         Suggested by Paul Eggert.
49786
49787 2008-09-07  Bruno Haible  <bruno@clisp.org>
49788
49789         * tests/test-striconveh.c (main): Check behaviour when converting from
49790         UTF-7.
49791
49792         Make striconveh work better with stateful encodings.
49793         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
49794         that iconv does not increment the inptr when returning -1/EINVAL.
49795
49796 2008-09-07  Bruno Haible  <bruno@clisp.org>
49797
49798         * build-aux/config.rpath: Update according to libtool-2.2.6.
49799         * build-aux/config.libpath: Likewise.
49800
49801 2008-09-06  Bruno Haible  <bruno@clisp.org>
49802
49803         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
49804         * lib/freadptr.c (freadptr): Likewise.
49805         * lib/freadseek.c (freadptrinc): Likewise.
49806         Reported by Simon Josefsson.
49807
49808 2008-09-06  Bruno Haible  <bruno@clisp.org>
49809
49810         * modules/freadptr (License): Change to LGPLv2+.
49811         * modules/freadseek (License): Likewise.
49812         Suggested by Eric Blake.
49813
49814         * modules/memchr2 (License): Change to LGPLv2+.
49815         Approved by Eric Blake.
49816
49817 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49818             Bruno Haible  <bruno@clisp.org>
49819
49820         Make gnulib-tool work with native 'sed' on AIX.
49821         * gnulib-tool (sed_noop): New variable.
49822         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
49823         func_add_or_update, func_create_testdir): Use it to initialize sed
49824         script variables.
49825         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49826
49827 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
49828             Bruno Haible  <bruno@clisp.org>
49829
49830         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
49831         also works after #include directives.
49832
49833 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
49834
49835         getdate.y: reject an out-of-range timezone value
49836         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
49837         the range [-24...+24].  When specified with only one or two digits,
49838         * tests/test-getdate.c: Tests for the fix.
49839         * doc/getdate.texi: Document this change.
49840
49841 2008-09-03  Bruno Haible  <bruno@clisp.org>
49842
49843         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
49844
49845 2008-09-02  Simon Josefsson  <simon@josefsson.org>
49846
49847         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
49848         <bruce.korb@gmail.com> with ideas from Ben Pfaff
49849         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
49850         Blake <ebb9@byu.net>.
49851
49852         * tests/test-bitrotate.c: Add more test vectors.
49853
49854 2008-09-02  Eric Blake  <ebb9@byu.net>
49855
49856         vasnprintf-posix: handle large precision via %.*d
49857         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
49858         when handling it ourselves.
49859         * tests/test-vasnprintf-posix.c (test_function): Add test.
49860         * tests/test-snprintf-posix.h (test_function): Likewise.
49861         * tests/test-sprintf-posix.h (test_function): Likewise.
49862         * tests/test-vasprintf-posix.c (test_function): Likewise.
49863         Reported by Alain Guibert.
49864
49865 2008-09-01  Eric Blake  <ebb9@byu.net>
49866
49867         c-stack: make configure-time check more robust
49868         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
49869         successful sigaction call.
49870         Reported by Tom G. Christensen.
49871
49872 2008-09-01  Bruno Haible  <bruno@clisp.org>
49873
49874         New module 'findprog-lgpl'.
49875         * modules/findprog-lgpl: New file.
49876         * lib/findprog-lgpl.c: New file.
49877         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
49878         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
49879         to decide whether to use strdup or xstrdup, concatenated_filename or
49880         xconcatenated_filename.
49881
49882 2008-09-01  Bruno Haible  <bruno@clisp.org>
49883
49884         Split module 'concat-filename' into 'concat-filename' (LGPL) and
49885         'xconcat-filename' (GPL).
49886         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
49887         (License): Change to LGPLv2+.
49888         * modules/xconcat-filename: New file.
49889         * lib/concat-filename.h (concatenated_filename): Change specification.
49890         (xconcatenated_filename): New declaration.
49891         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
49892         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
49893         memory situations.
49894         * lib/xconcat-filename.c: New file.
49895         * NEWS: Mention the change.
49896         * lib/findprog.c: Include concat-filename.h, not filename.h.
49897         (find_in_path): Use xconcatenated_filename instead of
49898         concatenated_filename.
49899         * lib/javacomp.c: Include concat-filename.h, not filename.h.
49900         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49901         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49902         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49903         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
49904         instead of concatenated_filename.
49905         * lib/javaexec.c: Include concat-filename.h, not filename.h.
49906         (execute_java_class): Use xconcatenated_filename instead of
49907         concatenated_filename.
49908         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
49909         * modules/javacomp (Depends-on): Likewise.
49910         * modules/javaexec (Depends-on): Likewise.
49911
49912 2008-09-01  Bruno Haible  <bruno@clisp.org>
49913
49914         Split module 'filename' into 'filename' and 'concat-filename'.
49915         * modules/filename: Keep only lib/filename.h.
49916         (License): Change to LGPLv2+.
49917         * modules/concat-filename: New file, extracted from modules/filename.
49918         * lib/filename.h (concatenated_filename): Remove declaration.
49919         * lib/concat-filename.h: New file, extracted from lib/filename.h.
49920         * lib/concat-filename.c: Include concat-filename.h.
49921         * NEWS: Mention the change.
49922
49923 2008-09-01  Simon Josefsson  <simon@josefsson.org>
49924
49925         * lib/bitrotate.h (rotl8, rotr8): Add.
49926
49927         * modules/bitrotate (configure.ac): Need
49928         AC_REQUIRE([AC_C_INLINE]).
49929         (Description): Mention stdint.h.  Reported by Bruno Haible
49930         <bruno@clisp.org>.
49931
49932         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
49933         Paolo Bonzini <bonzini@gnu.org>.
49934
49935 2008-08-31  Bruno Haible  <bruno@clisp.org>
49936
49937         Assume Solaris specific bi-arch conventions on Solaris systems.
49938         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
49939         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
49940         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
49941         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
49942         like acl_libdirstem.
49943         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
49944         acl_libdirstem.
49945         * NEWS: Mention the change.
49946         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
49947
49948 2008-08-31  Jim Meyering  <meyering@redhat.com>
49949
49950         * lib/strftime.h: Add comments describing the two added arguments.
49951
49952         remove duplicate #include directives
49953         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
49954         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
49955
49956 2008-08-31  Bruno Haible  <bruno@clisp.org>
49957
49958         New module 'sigpipe-die'.
49959         * modules/sigpipe-die: New file.
49960         * lib/sigpipe-die.h: New file.
49961         * lib/sigpipe-die.c: New file.
49962         * MODULES.html.sh (Signal handling): Add sigpipe-die.
49963
49964 2008-08-31  Bruno Haible  <bruno@clisp.org>
49965
49966         Don't override previously installed signal handlers.
49967         * lib/fatal-signal.c (saved_sigactions): New variable.
49968         (uninstall_handlers): Reset the signal to the saved handler, not
49969         to SIG_DFL (except when ignored).
49970         (install_handlers): Save the previous handlers.
49971
49972 2008-08-30  Bruno Haible  <bruno@clisp.org>
49973
49974         * gnulib-tool (func_reset_sigpipe): New function.
49975         (func_get_automake_snippet, func_modules_transitive_closure,
49976         func_import): Invoke it before a join command that reads from stdin,
49977         to avoid "echo: write error: Broken pipe" error messages on stderr.
49978         Reported by Sam Steingold <sds@gnu.org>.
49979
49980 2008-08-30  Bruno Haible  <bruno@clisp.org>
49981
49982         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
49983         Code copied from m4/open.m4.
49984         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
49985         access and the filename ends in a slash. Code copied from lib/open.c.
49986         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
49987         * tests/test-fopen.c (main): Check against bug with trailing slash.
49988
49989 2008-08-29  Bruno Haible  <bruno@clisp.org>
49990
49991         Avoid some "gcc -pedantic" warnings.
49992         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
49993         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
49994         * lib/dirent.in.h: Likewise.
49995         * lib/fcntl.in.h: Likewise.
49996         * lib/float.in.h: Likewise.
49997         * lib/iconv.in.h: Likewise.
49998         * lib/inttypes.in.h: Likewise.
49999         * lib/locale.in.h: Likewise.
50000         * lib/math.in.h: Likewise.
50001         * lib/netinet_in.in.h: Likewise.
50002         * lib/search.in.h: Likewise.
50003         * lib/signal.in.h: Likewise.
50004         * lib/stdarg.in.h: Likewise.
50005         * lib/stdint.in.h: Likewise.
50006         * lib/stdio.in.h: Likewise.
50007         * lib/stdlib.in.h: Likewise.
50008         * lib/string.in.h: Likewise.
50009         * lib/strings.in.h: Likewise.
50010         * lib/sys_select.in.h: Likewise.
50011         * lib/sys_socket.in.h: Likewise.
50012         * lib/sys_stat.in.h: Likewise.
50013         * lib/sys_time.in.h: Likewise.
50014         * lib/sysexits.in.h: Likewise.
50015         * lib/time.in.h: Likewise.
50016         * lib/unistd.in.h: Likewise.
50017         * lib/wchar.in.h: Likewise.
50018         * lib/wctype.in.h: Likewise.
50019         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
50020         * modules/fchdir (Makefile.am): Likewise.
50021         * modules/fcntl (Makefile.am): Likewise.
50022         * modules/float (Makefile.am): Likewise.
50023         * modules/iconv_open (Makefile.am): Likewise.
50024         * modules/inttypes (Makefile.am): Likewise.
50025         * modules/locale (Makefile.am): Likewise.
50026         * modules/math (Makefile.am): Likewise.
50027         * modules/netinet_in (Makefile.am): Likewise.
50028         * modules/search (Makefile.am): Likewise.
50029         * modules/signal (Makefile.am): Likewise.
50030         * modules/stdarg (Makefile.am): Likewise.
50031         * modules/stdint (Makefile.am): Likewise.
50032         * modules/stdio (Makefile.am): Likewise.
50033         * modules/stdlib (Makefile.am): Likewise.
50034         * modules/string (Makefile.am): Likewise.
50035         * modules/strings (Makefile.am): Likewise.
50036         * modules/sys_select (Makefile.am): Likewise.
50037         * modules/sys_socket (Makefile.am): Likewise.
50038         * modules/sys_stat (Makefile.am): Likewise.
50039         * modules/sys_time (Makefile.am): Likewise.
50040         * modules/sysexits (Makefile.am): Likewise.
50041         * modules/time (Makefile.am): Likewise.
50042         * modules/unistd (Makefile.am): Likewise.
50043         * modules/wchar (Makefile.am): Likewise.
50044         * modules/wctype (Makefile.am): Likewise.
50045         Reported by Reuben Thomas <rrt@sc3d.org>.
50046
50047 2008-08-29  Bruno Haible  <bruno@clisp.org>
50048
50049         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
50050         any more.
50051
50052 2008-08-29  Simon Josefsson  <simon@josefsson.org>
50053
50054         * MODULES.html.sh (Misc): Add bitrotate.
50055
50056         * modules/bitrotate: New file.
50057
50058         * lib/bitrotate.h: New file.
50059
50060         * modules/bitrotate-tests: New file.
50061
50062         * tests/test-bitrotate.c: New file.
50063
50064         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
50065         on the bitrotate module.
50066
50067         * lib/arctwo.c: Use new bitrotate module.
50068
50069 2008-08-29  Jim Meyering  <meyering@redhat.com>
50070
50071         bootstrap: merge changes from coreutils
50072         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
50073         of copied files.  Remove a kludge, now that this is fixed.
50074         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
50075         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
50076         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
50077
50078 2008-08-29  Bruno Haible  <bruno@clisp.org>
50079
50080         * MODULES.html.sh: Remove --cvs-urls option.
50081
50082 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
50083
50084         maint.mk: adjust to file name change
50085         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
50086
50087 2008-08-28  Jim Meyering  <meyering@redhat.com>
50088
50089         * modules/getndelim2 (License): Relicense to LGPLv2+.
50090         Approved by Richard Stallman for the version of 1995, and by
50091         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
50092
50093 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
50094
50095         * lib/getdelim.c (flockfile, funlockfile): Make all of them
50096         dummy if one is not available.  Do not touch them if
50097         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
50098         (getc_maybe_unlocked): New.
50099         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
50100
50101 2008-08-26  Eric Blake  <ebb9@byu.net>
50102
50103         doc/INSTALL: resync from autoconf
50104         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
50105         (INSTALL_PRELUDE): Delete; this is done more efficiently by
50106         moving...
50107         * install.texi [!autoconf]: ...here.  Resync from autoconf.
50108         * INSTALL: Regenerate.
50109         * INSTALL.ISO: New file.
50110         * INSTALL.UTF-8: Likewise.
50111
50112 2008-08-26  Jim Meyering  <meyering@redhat.com>
50113
50114         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
50115         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
50116         these definitions conditional, so that they may be overridden, too.
50117
50118 2008-08-26  Bruno Haible  <bruno@clisp.org>
50119
50120         Generate INSTALL file variants with prettier quotes.
50121         * doc/Makefile (INSTALL_PRELUDE): New macro.
50122         (INSTALL): Use it.
50123         (INSTALL.ISO, INSTALL.UTF-8): New rules.
50124
50125 2008-08-26  Bruno Haible  <bruno@clisp.org>
50126
50127         Run makeinfo in an English locale.
50128         * doc/Makefile (MAKEINFO): New variable.
50129
50130 2008-08-26  Bruno Haible  <bruno@clisp.org>
50131
50132         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
50133         Suggested by Eric Blake.
50134
50135 2008-08-25  Bruno Haible  <bruno@clisp.org>
50136
50137         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
50138
50139 2008-08-25  Eric Blake  <ebb9@byu.net>
50140
50141         c-stack: test that stack overflow can be caught
50142         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
50143         that platform allows handling stack overflow; at least OS/2 EMX
50144         has sigaltstack, but crashes before transferring control to
50145         handler on stack overflow.
50146         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
50147         check for HAVE_STACK_OVERFLOW_HANDLING.
50148         Reported by Elbert Pol.
50149
50150 2008-08-25  Bruno Haible  <bruno@clisp.org>
50151
50152         * doc/posix-functions/strftime.texi: Fix description of strftime
50153         module.
50154
50155 2008-08-24  Bruno Haible  <bruno@clisp.org>
50156
50157         * tests/uniwidth/test-uc_width2.c: New file.
50158         * tests/uniwidth/test-uc_width2.sh: New file.
50159         * modules/uniwidth/width-tests (Files): Add the new files.
50160         (TESTS): Add uniwidth/test-uc_width2.sh.
50161         (TESTS_ENVIRONMENT): New variable.
50162         (check_PROGRAMS): Add test-uc_width2.
50163         (test_uc_width2_SOURCES): New variable.
50164
50165         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
50166         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
50167         not 0x00AB.
50168         Reported by Alexander V. Lukyanov <lav@netis.ru>.
50169
50170 2008-08-22  Eric Blake  <ebb9@byu.net>
50171
50172         test-lock, test-tls: mention why a test is skipped
50173         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
50174         skipped.
50175         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
50176
50177         count-one-bits: relax license
50178         * modules/count-one-bits (License): Relicense to LGPLv2+.
50179         Suggested by Ludovic Courtès, approved by Ben Pfaff.
50180
50181 2008-08-22  Andreas Schwab  <schwab@suse.de>
50182
50183         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
50184         Remove spurious space in assignment.
50185
50186 2008-08-21  Simon Josefsson  <simon@josefsson.org>
50187
50188         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
50189         Paul Eggert <eggert@CS.UCLA.EDU>.
50190
50191 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
50192
50193         * modules/gettext: Add m4/threadlib.m4.
50194
50195 2008-08-19  Eric Blake  <ebb9@byu.net>
50196
50197         test-c-stack: fix compilation failure on FreeBSD 5.0
50198         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
50199         headers before <sys/resource.h>.
50200         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
50201         the bug.
50202         Reported by Nelson H. F. Beebe.
50203
50204         strverscmp: migrate from "strverscmp.h" to <string.h>
50205         * modules/string (Makefile.am): Add new hooks.
50206         * modules/strverscmp (Files): Remove strverscmp.h.
50207         (Depends-on): Add string.
50208         (configure.ac): Add indicator.
50209         (Include): Mention new header.
50210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
50211         defaults.
50212         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
50213         results.
50214         * lib/strverscmp.h: Delete.
50215         * lib/string.in.h (strverscmp): Provide declaration, when needed.
50216         * tests/test-strverscmp.c (includes): Adjust client.
50217         * lib/check-version.c (includes): Likewise.
50218         * NEWS: Document the change.
50219
50220         strverscmp: add unit test
50221         * modules/strverscmp-tests: New file.
50222         * tests/test-strverscmp.c: Likewise.
50223
50224 2008-08-19  Simon Josefsson  <simon@josefsson.org>
50225
50226         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
50227         regarding Windows crypto stuff, from Mono.
50228
50229 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
50230
50231         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
50232         if present, for intel RND.  Return error on failures.
50233
50234 2008-08-18  Ben Pfaff  <blp@gnu.org>
50235
50236         gitlog-to-changelog: give better diagnostic for failed pipe-open
50237         * build-aux/gitlog-to-changelog: Improve error message: suggest
50238         that the version of Git may be too old.
50239
50240 2008-08-18  Simon Josefsson  <simon@josefsson.org>
50241
50242         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
50243         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
50244
50245 2008-08-18  Bruno Haible  <bruno@clisp.org>
50246
50247         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
50248         pthread_in_use().
50249
50250 2008-08-18  Bruno Haible  <bruno@clisp.org>
50251
50252         * lib/glthread/threadlib.c: Include <pthread.h>.
50253
50254 2008-08-18  Bruno Haible  <bruno@clisp.org>
50255
50256         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
50257         glthread_recursive_lock_* macros.
50258         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
50259         Fix syntax error.
50260
50261 2008-08-18  Bruno Haible  <bruno@clisp.org>
50262
50263         * lib/glthread/thread.c: Avoid forcing a context switch right after
50264         thread creation.
50265
50266 2008-08-17  Bruno Haible  <bruno@clisp.org>
50267
50268         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
50269         * lib/glthread/thread.h: Provide Win32 specific implementation.
50270         * modules/thread (Files): Add lib/glthread/thread.c.
50271         (Depends-on): Add lock.
50272         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
50273
50274 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50275
50276         New module 'yield'.
50277         * modules/yield: New file.
50278         * lib/glthread/yield.h: New file.
50279         * m4/yield.m4: New file.
50280         * MODULES.html.sh (Multithreading): Add yield.
50281
50282 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50283
50284         New module 'thread'.
50285         * modules/thread: New file.
50286         * lib/glthread/thread.h: New file.
50287         * m4/thread.m4: New file.
50288         * MODULES.html.sh (Multithreading): Add thread.
50289
50290 2008-08-17  Bruno Haible  <bruno@clisp.org>
50291
50292         * lib/glthread/lock.h: Include <stdlib.h> always.
50293         * lib/glthread/tls.h: Likewise.
50294         * lib/glthread/cond.h: Likewise.
50295
50296 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50297
50298         New module 'cond'.
50299         * modules/cond: New file.
50300         * lib/glthread/cond.h: New file.
50301         * lib/glthread/cond.c: New file.
50302         * m4/cond.m4: New file.
50303         * MODULES.html.sh (Multithreading): Add cond.
50304
50305 2008-08-16  Eric Blake  <ebb9@byu.net>
50306
50307         c-stack: fix regression on Irix 5.3 from 2008-06-21
50308         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
50309         sa_sigaction...
50310         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
50311         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
50312         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
50313         * modules/signal (Makefile.am): Use the value.
50314         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
50315         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
50316         * doc/posix-headers/signal.texi (signal.h): Document this
50317         portability issue.
50318         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
50319         Reported by Tom G. Christensen.
50320
50321 2008-08-17  Bruno Haible  <bruno@clisp.org>
50322
50323         New module 'threadlib'.
50324         * modules/threadlib: New file.
50325         * lib/glthread/threadlib.c: New file, extracted from
50326         lib/glthread/lock.c.
50327         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
50328         functions.
50329         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
50330         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
50331         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
50332         macros.
50333         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
50334         (gl_DISABLE_THREADS): Remove macro.
50335         * modules/lock (Files): Remove build-aux/config.rpath.
50336         (Depends-on): Remove havelib. Add threadlib.
50337         (configure.ac-early): Remove section.
50338         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
50339         * modules/tls (Depends-on): Remove lock. Add threadlib.
50340         (Link): New section, copied from threadlib.
50341         * MODULES.html.sh (Multithreading): Add threadlib.
50342
50343 2008-08-14  Bruno Haible  <bruno@clisp.org>
50344
50345         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
50346         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
50347         glthread_rwlock_unlock, glthread_rwlock_destroy,
50348         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
50349         glthread_recursive_lock_destroy): Define as macros always.
50350         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
50351         glthread_lock_lock.
50352         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
50353         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
50354         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
50355         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
50356         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
50357         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
50358         (glthread_recursive_lock_lock_func): Renamed from
50359         glthread_recursive_lock_lock.
50360         (glthread_recursive_lock_unlock_func): Renamed from
50361         glthread_recursive_lock_unlock.
50362         (glthread_recursive_lock_destroy_func): Renamed from
50363         glthread_recursive_lock_destroy.
50364
50365 2008-08-14  Bruno Haible  <bruno@clisp.org>
50366
50367         * lib/glthread/lock.h: Renamed from lib/lock.h.
50368         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
50369         * lib/glthread/tls.h: Renamed from lib/tls.h.
50370         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
50371         * lib/fstrcmp.c: Update includes.
50372         * lib/strsignal.c: Update includes.
50373         * modules/lock (Files, Makefile.am): Update.
50374         (Include): Change to "glthread/lock.h".
50375         * modules/tls (Files, Makefile.am): Update.
50376         (Include): Change to "glthread/tls.h".
50377         * tests/test-lock.c: Update includes.
50378         * tests/test-tls.c: Update includes.
50379         * NEWS: Mention the renamed header files.
50380
50381 2008-08-11  Jim Meyering  <meyering@redhat.com>
50382
50383         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
50384
50385 2008-08-11  Eric Blake  <ebb9@byu.net>
50386
50387         test-c-stack: avoid C99-ism
50388         * tests/test-c-stack.c (main): Fix whitespace, move declaration
50389         before statement.
50390         Reported by Alain Guibert.
50391
50392 2008-08-10  Jim Meyering  <meyering@redhat.com>
50393
50394         ensure that return value of uinttostr et al are not ignored
50395         * lib/inttostr.h (__GNUC_PREREQ): Define.
50396         (__attribute_warn_unused_result__): Define.
50397         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
50398
50399 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
50400
50401         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
50402         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
50403
50404 2008-08-07  Jim Meyering  <meyering@redhat.com>
50405
50406         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
50407
50408         * modules/mkstemp (License): Relicense under LGPLv2+.
50409         * modules/tempname (License): Likewise.
50410
50411 2008-08-06  Bruno Haible  <bruno@clisp.org>
50412
50413         * lib/poll.c (poll): Further micro-optimization.
50414
50415 2008-08-06  Jim Meyering  <meyering@redhat.com>
50416
50417         inet_pton.c: use locale-independent tolower
50418         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
50419         (inet_pton6): Use c_tolower rather than tolower.
50420         * modules/inet_pton (Depends-on): Add c-ctype.
50421
50422 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
50423
50424         * lib/poll.c (poll): Avoid division when timeout is 0, cache
50425         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
50426
50427 2008-08-06  Jim Meyering  <meyering@redhat.com>
50428
50429         * modules/inet_pton (License): Relicense under LGPLv2+.
50430
50431 2008-08-03  Bruno Haible  <bruno@clisp.org>
50432
50433         Additional non-aborting API for lock and tls.
50434         * lib/lock.h: Include <errno.h>.
50435         (glthread_lock_init): New macro/function.
50436         (gl_lock_init): Define as wrapper around glthread_lock_init.
50437         (glthread_lock_lock): New macro/function.
50438         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
50439         (glthread_lock_unlock): New macro/function.
50440         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
50441         (glthread_lock_destroy): New macro/function.
50442         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
50443         (glthread_rwlock_init): New macro/function.
50444         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
50445         (glthread_rwlock_rdlock): New macro/function.
50446         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
50447         (glthread_rwlock_wrlock): New macro/function.
50448         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
50449         (glthread_rwlock_unlock): New macro/function.
50450         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
50451         (glthread_rwlock_destroy): New macro/function.
50452         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
50453         (glthread_recursive_lock_init): New macro/function.
50454         (gl_recursive_lock_init): Define as wrapper around
50455         glthread_recursive_lock_init.
50456         (glthread_recursive_lock_lock): New macro/function.
50457         (gl_recursive_lock_lock): Define as wrapper around
50458         glthread_recursive_lock_lock.
50459         (glthread_recursive_lock_unlock): New macro/function.
50460         (gl_recursive_lock_unlock): Define as wrapper around
50461         glthread_recursive_lock_unlock.
50462         (glthread_recursive_lock_destroy): New macro/function.
50463         (gl_recursive_lock_destroy): Define as wrapper around
50464         glthread_recursive_lock_destroy.
50465         (glthread_once): New macro/function.
50466         (gl_once): Define as wrapper around glthread_once.
50467         Update function declarations.
50468         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
50469         glthread_rwlock_init. Return error code.
50470         (glthread_rwlock_rdlock_multithreaded): Renamed from
50471         glthread_rwlock_rdlock. Return error code.
50472         (glthread_rwlock_wrlock_multithreaded): Renamed from
50473         glthread_rwlock_wrlock. Return error code.
50474         (glthread_rwlock_unlock_multithreaded): Renamed from
50475         glthread_rwlock_unlock. Return error code.
50476         (glthread_rwlock_destroy_multithreaded): Renamed from
50477         glthread_rwlock_destroy. Return error code.
50478         (glthread_recursive_lock_init_multithreaded): Renamed from
50479         glthread_recursive_lock_init. Return error code.
50480         (glthread_recursive_lock_lock_multithreaded): Renamed from
50481         glthread_recursive_lock_lock. Return error code.
50482         (glthread_recursive_lock_unlock_multithreaded): Renamed from
50483         glthread_recursive_lock_unlock. Return error code.
50484         (glthread_recursive_lock_destroy_multithreaded): Renamed from
50485         glthread_recursive_lock_destroy. Return error code.
50486         (glthread_once_call): Make static.
50487         (glthread_once_multithreaded): Renamed from glthread_once.
50488         * lib/tls.h: Include <errno.h>.
50489         (glthread_tls_key_init): New macro/function.
50490         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
50491         (glthread_tls_set): New macro/function.
50492         (gl_tls_set): Define as wrapper around glthread_tls_set.
50493         (glthread_tls_key_destroy): New macro/function.
50494         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
50495         Update function declarations.
50496         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
50497         glthread_tls_get.
50498         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50499
50500 2008-08-04  Eric Blake  <ebb9@byu.net>
50501
50502         gnumakefile: use space, not TAB, outside of targets
50503         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
50504
50505 2008-08-02  Jim Meyering  <meyering@redhat.com>
50506
50507         getdate.y: avoid locale-dependent date parsing failure
50508         In Turkish locales, getdate would fail to recognize keywords
50509         containing a lowercase "i".  The solution is not to rely on
50510         locale-sensitive case-conversion.
50511         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
50512         (lookup_word): Use c_toupper in place of toupper.
50513         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
50514         Reported by Vefa Bicakci <bicave@superonline.com> in
50515         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
50516         * modules/getdate (Depends-on): Add c-ctype.
50517
50518 2008-08-02  Bruno Haible  <bruno@clisp.org>
50519
50520         * gnulib-tool (func_import): When updating or creating a .gitignore
50521         file, prepend each added line with a slash, and ignore leading slashes
50522         from the existing lines.
50523         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50524
50525 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50526
50527         Portability fix for GNU make 3.79.1.
50528         * top/GNUmakefile: Avoid 'else COND', which older GNU make
50529         versions do not understand.
50530
50531 2008-08-01  Bruno Haible  <bruno@clisp.org>
50532
50533         Work around bug of HP-UX 10.20 cc with -0.0 literal.
50534         * tests/test-isnanf.h (zero): New variable.
50535         (main): Avoid literal -0.0f.
50536         * tests/test-isnand.h (zero): New variable.
50537         (main): Avoid literal -0.0.
50538         * tests/test-isnanl.h (zero): New variable.
50539         (main): Avoid literal -0.0L.
50540         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
50541         (test_float, test_double, test_long_double): Avoid literals -0.0f,
50542         -0.0, -0.0L.
50543         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
50544         (test_signbitd): Avoid literal -0.0.
50545         (test_signbitl): Avoid literal -0.0L.
50546         * tests/test-ceilf1.c (zero): New variable.
50547         (main): Avoid literal -0.0f.
50548         * tests/test-ceill.c (zero): New variable.
50549         (main): Avoid literal -0.0L.
50550         * tests/test-floorf1.c (zero): New variable.
50551         (main): Avoid literal -0.0f.
50552         * tests/test-floorl.c (zero): New variable.
50553         (main): Avoid literal -0.0L.
50554         * tests/test-roundf1.c (zero): New variable.
50555         (main): Avoid literal -0.0f.
50556         * tests/test-round1.c (zero): New variable.
50557         (main): Avoid literal -0.0.
50558         * tests/test-roundl.c (zero): New variable.
50559         (main): Avoid literal -0.0L.
50560         * tests/test-truncf1.c (zero): New variable.
50561         (main): Avoid literal -0.0f.
50562         * tests/test-trunc1.c (zero): New variable.
50563         (main): Avoid literal -0.0.
50564         * tests/test-truncl.c (zero): New variable.
50565         (main): Avoid literal -0.0L.
50566         * tests/test-frexp.c (zero): New variable.
50567         (main): Avoid literal -0.0.
50568         * tests/test-frexpl.c (zero): New variable.
50569         (main): Avoid literal -0.0L.
50570         * tests/test-ldexpl.c (zero): New variable.
50571         (main): Avoid literal -0.0L.
50572         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50573         (zerod, zerol): New variables.
50574         (test_function): Avoid literals -0.0, -0.0L.
50575         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50576         (zerod, zerol): New variables.
50577         (test_function): Avoid literals -0.0, -0.0L.
50578         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50579         (zerod, zerol): New variables.
50580         (test_function): Avoid literals -0.0, -0.0L.
50581         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50582         (zerod, zerol): New variables.
50583         (test_function): Avoid literals -0.0, -0.0L.
50584         * tests/test-strtod.c (zero): New variable.
50585         (main): Avoid literal -0.0.
50586         Reported by Jonathan C. Patschke <jp@centtech.com>.
50587
50588 2008-07-31  Jim Meyering  <meyering@redhat.com>
50589
50590         sha256.h: correct definition of SHA224_DIGEST_SIZE
50591         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
50592         Reported by Paulie Pena IV <paulie4@gmail.com>.
50593         Define as 224 / 8, rather than as a literal.
50594         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
50595         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
50596         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
50597
50598 2008-07-31  Bruno Haible  <bruno@clisp.org>
50599
50600         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
50601         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
50602         Reported by Jonathan Patschke <jp@centtech.com>.
50603
50604 2008-07-31  Bruno Haible  <bruno@clisp.org>
50605
50606         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
50607         Reported by Paolo Bonzini <bonzini@gnu.org>.
50608
50609 2008-07-30  Eric Blake  <ebb9@byu.net>
50610
50611         test-strtod: allow compilation without -lm
50612         * tests/test-strtod.c (main): Avoid link dependence on fabs.
50613         Reported by Dennis Clarke <blastwave@gmail.com>.
50614
50615 2008-07-28  Jim Meyering  <meyering@redhat.com>
50616
50617         bootstrap: work also when there are no .po files in po/
50618         * build-aux/bootstrap (update_po_files): Complete the change
50619         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
50620
50621 2008-07-27  Jim Meyering  <meyering@redhat.com>
50622
50623         * users.txt: Add zile.
50624
50625 2008-07-26  Ben Pfaff  <blp@gnu.org>
50626
50627         Add missing dependencies on new m4/exponent[fdl].m4 files.
50628         * modules/isnanf-nolibm: Add m4/exponentf.m4.
50629         * modules/isnand-nolibm: Add m4/exponentd.m4.
50630         * modules/isnanl-nolibm: Add m4/exponentl.m4.
50631         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
50632         m4/isnan[fdl].m4, because the macros actually used moved.
50633         Reported by Jim Meyering.
50634
50635 2008-07-14  Ben Pfaff  <blp@gnu.org>
50636
50637         Add isinf module.
50638         * lib/isinf.c: New file.
50639         * lib/math.in.h: Define isinf macro if we have decided to replace
50640         it.
50641         * m4/isinf.m4: New file.
50642         * m4/math_h.m4: Initialize and substitute variables for isinf
50643         module.
50644         * modules/isinf: New file.
50645         * modules/isinf-tests: New file.
50646         * modules/math: Add substitutions for new module.
50647         * tests/test-isinf.c: New file.
50648         * doc/posix-functions/isinf.texi: Mention new module.
50649         * MODULES.html.sh: Mention new module.
50650
50651 2008-07-14  Ben Pfaff  <blp@gnu.org>
50652
50653         Factor out some macros for use by additional modules.
50654         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
50655         exponentf.m4.
50656         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
50657         exponentd.m4.
50658         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
50659         file exponentl.m4.
50660         * m4/exponentf.m4: New file.
50661         * m4/exponentd.m4: New file.
50662         * m4/exponentl.m4: New file.
50663         * modules/isnanf: Use new file m4/exponentf.m4.
50664         * modules/isnand: Use new file m4/exponentd.m4.
50665         * modules/isnanl: Use new file m4/exponentl.m4.
50666
50667 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
50668
50669         mktime.c: normalize tp->tm_isdst value to -1/0/1.
50670         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
50671         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
50672         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
50673
50674         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
50675         readlink on platforms without PATH_MAX.
50676
50677 2008-07-21  Eric Blake  <ebb9@byu.net>
50678
50679         Warn, not fail, on stale version.
50680         * top/GNUmakefile (_curr-ver): Tone down previous patch.
50681
50682         Don't allow installation with stale devel version number.
50683         * top/GNUmakefile (_is-install-target): New macro.
50684         (_curr-ver): Forbid installation with stale version number.
50685
50686 2008-07-20  Bruno Haible  <bruno@clisp.org>
50687
50688         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
50689         TESTS_ENVIRONMENT.
50690         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
50691
50692 2008-07-20  Bruno Haible  <bruno@clisp.org>
50693
50694         * lib/c-stack.h (c_stack_action): Add documentation.
50695         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
50696
50697 2008-07-20  Bruno Haible  <bruno@clisp.org>
50698
50699         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
50700         * modules/readlink (License): Likewise.
50701
50702 2008-07-17  Eric Blake  <ebb9@byu.net>
50703
50704         * modules/c-stack (Link): Fix typo.
50705
50706         Make c-stack use libsigsegv, when available.
50707         * modules/c-stack (Depends-on): Add libsigsegv.
50708         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
50709         needed.
50710         * lib/c-stack.c (SIGSTKSZ): Define fallback.
50711         (segv_handler, overflow_handler, c_stack_action)
50712         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
50713         implementation when libsigsegv is available, but only when using
50714         the library is necessary.
50715         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
50716         comment, explaining why XSI check fails on Linux.
50717         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
50718         * tests/test-c-stack2.sh: Tweak skip message.
50719         * NEWS: Document new link-time requirements.
50720
50721 2008-07-16  Eric Blake  <ebb9@byu.net>
50722
50723         c-stack: Expose false positives when not using libsigsegv.
50724         * modules/c-stack-tests (Files): Expand test.
50725         * tests/test-c-stack.c (main): Add means to conditionally trigger
50726         non-overflow SIGSEGV.
50727         * tests/test-c-stack2.sh: New file.
50728
50729 2008-07-14  Bruno Haible  <bruno@clisp.org>
50730
50731         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
50732         Reported by Eric Blake.
50733
50734 2008-07-14  Sam Steingold  <sds@gnu.org>
50735             Bruno Haible  <bruno@clisp.org>
50736
50737         New module libsigsegv.
50738         * modules/libsigsegv: New file.
50739         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
50740         modifications.
50741         * MODULES.html.sh (Signal handling): New section.
50742
50743 2008-07-14  Bruno Haible  <bruno@clisp.org>
50744
50745         * modules/unictype/ctype-* (Description): Add the word "function".
50746         Improves the resulting doc in MODULES.html.
50747
50748 2008-07-12  Ben Pfaff  <blp@gnu.org>
50749
50750         Add longlong module.
50751         * modules/longlong: New file.
50752
50753 2008-07-12  Bruno Haible  <bruno@clisp.org>
50754
50755         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
50756         to empty.
50757
50758 2008-07-10  Ben Pfaff  <blp@gnu.org>
50759
50760         Add isnan module.
50761         * doc/posix-functions/isnan.texi: Mention new module.
50762         * lib/math.in.h: Define isnan macro if we have decided to replace
50763         it.
50764         * m4/isnan.m4: New file.
50765         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
50766         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
50767         also.
50768         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
50769         redundancy.
50770         * m4/math_h.m4: Initialize and substitute variables for isnan
50771         module.
50772         * modules/isnan: New file.
50773         * modules/isnan-tests: New file.
50774         * modules/math: Add substitutions for new module.
50775         * tests/test-isnan.c: New file.
50776         * MODULES.html.sh: Mention new module.
50777
50778 2008-07-10  Ben Pfaff  <blp@gnu.org>
50779
50780         Add isnanf module.
50781         * lib/isnanf.m4: New file.
50782         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
50783         (gl_HAVE_ISNANF_IN_LIBM): New macro.
50784         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
50785         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
50786         * modules/isnanf: New file.
50787         * modules/isnanf-tests: New file.
50788         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
50789         files.
50790         * tests/test-isnanf-nolibm.c: factored most of its contents into
50791         new file tests/test-isnanf.h.
50792         * tests/test-isnanf.h: New file.
50793         * tests/test-isnanf.c: New file.
50794         * MODULES.html.sh: Mention new module.
50795         * doc/glibc-functions/isnanf.texi: Mention new module.
50796
50797 2008-07-10  Ben Pfaff  <blp@gnu.org>
50798
50799         Add isnand module.
50800         * lib/isnand.h: New file.
50801         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
50802         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
50803         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
50804         functionality also.
50805         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
50806         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
50807         (gl_HAVE_ISNAND_IN_LIBM): New macro.
50808         * modules/isnand: New file.
50809         * modules/isnand-tests: New file.
50810         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
50811         files.
50812         * tests/test-isnand-nolibm.c: factored most of its contents into
50813         new file tests/test-isnand.h.
50814         * tests/test-isnand.h: New file.
50815         * tests/test-isnand.c: New file.
50816         * MODULES.html.sh: Mention new module.
50817
50818 2008-07-10  Ben Pfaff  <blp@gnu.org>
50819
50820         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
50821         * lib/isnand.h: Rename lib/isnand-nolibm.h.
50822         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
50823         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
50824         * modules/isnanf-nolibm: Update references to renamed files.
50825         * modules/isnand-nolibm: Likewise.
50826         * modules/isnanf-nolibm-tests: Likewise.
50827         * modules/isnand-nolibm-tests: Likewise.
50828         * lib/frexp.c: Likewise.
50829         * lib/isfinite.c: Likewise.
50830         * lib/signbitd.c: Likewise.
50831         * lib/signbitf.c: Likewise.
50832         * lib/vasnprintf.c: Likewise.
50833         * tests/test-ceilf1.c: Likewise.
50834         * tests/test-ceilf2.c: Likewise.
50835         * tests/test-floorf1.c: Likewise.
50836         * tests/test-floorf2.c: Likewise.
50837         * tests/test-frexp.c: Likewise.
50838         * tests/test-round1.c: Likewise.
50839         * tests/test-round2.c: Likewise.
50840         * tests/test-roundf1.c: Likewise.
50841         * tests/test-strtod.c: Likewise.
50842         * tests/test-trunc1.c: Likewise.
50843         * tests/test-trunc2.c: Likewise.
50844         * tests/test-truncf1.c: Likewise.
50845         * tests/test-truncf2.c: Likewise.
50846         * NEWS: Mention the renamed header files.
50847
50848 2008-07-11  Jim Meyering  <meyering@redhat.com>
50849
50850         vc-list-files: make the last-resort awk code more portable
50851         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
50852         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
50853         does not support it.
50854
50855 2008-07-10  Eric Blake  <ebb9@byu.net>
50856
50857         Work with tar's bootstrap.
50858         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
50859         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
50860         an m4 comment.
50861
50862 2008-07-09  Jim Meyering  <meyering@redhat.com>
50863
50864         posix-shell.m4: fix typo that made this test malfunction
50865         * m4/posix-shell.m4: Remove capitalization in variable name.
50866
50867 2008-07-08  Bruno Haible  <bruno@clisp.org>
50868
50869         * m4/onceonly.m4: Update comments.
50870         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50871
50872 2008-07-04  Jim Meyering  <meyering@redhat.com>
50873
50874         * users.txt: Add vc-dwim.
50875         (bison, coreutils): Use the gitweb URL.
50876
50877 2008-07-03  Jim Meyering  <meyering@redhat.com>
50878
50879         * users.txt: Add libffcall.  From Sam Steingold.
50880
50881 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
50882
50883         getdate.y: do not ignore TZ with relative day, month or year offset
50884         * lib/getdate.y (get_date): Move the tz-handling block to follow the
50885         relative-date-handling, since otherwise, the latter would clobber the
50886         sole output (an updated Start value) of the tz-handling block.
50887         * tests/test-getdate.c: Tests for the fix
50888
50889 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50890
50891         Recognize 'foo_LIBRARIES += libgnu.a'.
50892         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
50893         makefile snippet has already specified an installation location,
50894         also using '+='.
50895
50896 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
50897
50898         getdate.y: factor out common actions
50899         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
50900         Use them in place of open-coded actions.
50901
50902 2008-07-01  Simon Josefsson  <simon@josefsson.org>
50903
50904         Add self-test for getdate module.
50905         * modules/getdate-tests: New file.
50906         * tests/test-getdate.c: New file.
50907
50908 2008-06-29  Bruno Haible  <bruno@clisp.org>
50909
50910         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
50911         .gitignore.
50912         Reported by Sylvain Beucler <beuc@beuc.net>.
50913
50914 2008-06-29  Bruno Haible  <bruno@clisp.org>
50915
50916         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
50917         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
50918
50919 2008-06-29  Bruno Haible  <bruno@clisp.org>
50920
50921         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
50922         EXTRA_DIST.
50923         Reported by Sylvain Beucler <beuc@beuc.net>.
50924
50925 2008-06-26  Jim Meyering  <meyering@redhat.com>
50926
50927         make several modules depend on the "open" module
50928         This provides slightly increased consistency when opening-for-write
50929         the name of a non-directory spelled with a trailing slash.
50930         * modules/chdir-safer: Likewise.
50931         * modules/chown: Likewise.
50932         * modules/clean-temp: Likewise.
50933         * modules/copy-file: Likewise.
50934         * modules/fchdir: Likewise.
50935         * modules/fcntl-safer: Likewise.
50936         * modules/pipe: Likewise.
50937         * modules/utime: Likewise.
50938         Prompted by Eric Blake and Bruno Haible.
50939
50940 2008-06-24  Andreas Schwab  <schwab@suse.de>
50941
50942         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
50943         literals can be used as initializers for global variables.
50944
50945 2008-06-23  Eric Blake  <ebb9@byu.net>
50946
50947         Make gnulib-cache.m4 easier to diff.
50948         * gnulib-tool (func_import): Allow newlines when reading cached
50949         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
50950
50951 2008-06-23  Bruno Haible  <bruno@clisp.org>
50952
50953         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
50954         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
50955         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
50956         m4/signalblocking.m4.
50957         (gl_PREREQ_SIGACTION): Don't invoke it.
50958         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
50959         gl_PREREQ_SIG_HANDLER_H.
50960         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50961         Don't check for sigaction here.
50962
50963 2008-06-23  Bruno Haible  <bruno@clisp.org>
50964
50965         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
50966         (install_handlers): Don't set the SA_RESETHAND flag.
50967
50968 2008-06-23  Bruno Haible  <bruno@clisp.org>
50969
50970         * m4/sigaction.m4: Comment fixes.
50971         * lib/signal.in.h: Likewise.
50972
50973 2008-06-23  Eric Blake  <ebb9@byu.net>
50974
50975         Fix typo.
50976         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
50977
50978         Avoid SA_ namespace.
50979         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
50980         Reported by Ralf Wildenhues.
50981
50982         Avoid test failure due to SA_RESTORER.
50983         * tests/test-sigaction.c (SA_MASK): New macro.
50984         (main): Avoid failing due to extension flags being set.
50985         Reported by Jim Meyering.
50986
50987         Revert use of sig-handler.h in sigprocmask.c.
50988         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
50989         it requires the existence of struct sigaction.
50990         * lib/sigprocmask.c (handler_t): Restore typedef.
50991         (rpl_signal, old_handlers): Use local type.
50992
50993 2008-06-22  Bruno Haible  <bruno@clisp.org>
50994
50995         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
50996         conditionally.
50997         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50998
50999 2008-06-22  Bruno Haible  <bruno@clisp.org>
51000
51001         * doc/posix-functions/siginterrupt.texi: Move note.
51002
51003         * lib/signal.in.h (SA_RESTART): New macro.
51004         * lib/sigaction.c: Update comment.
51005
51006         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
51007
51008         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
51009         (gl_PREREQ_SIGPROCMASK): Invoke it.
51010         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
51011
51012         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
51013
51014         * lib/sigprocmask.c: Update a comment.
51015
51016 2008-06-21  Eric Blake  <ebb9@byu.net>
51017
51018         Use sigaction module rather than signal().
51019         * modules/c-stack (Depends-on): Add sigaction.
51020         * modules/fatal-signal (Depends-on): Likewise.
51021         * modules/nanosleep (Depends-on): Likewise.
51022         * modules/sigprocmask (Files): Add sig-handler.h.
51023         * modules/sigaction (Files): Likewise.
51024         * lib/sig-handler.h (get_handler): New file, suggested by Paul
51025         Eggert.
51026         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
51027         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
51028         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
51029         (init_fatal_signals): Likewise.
51030         * lib/nanosleep.c (rpl_nanosleep): Likewise.
51031         (siginterrupt): Delete fallback.
51032         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
51033         instead.
51034         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
51035         siginterrupt.
51036
51037         New module sigaction, for mingw.
51038         * modules/sigaction: New module...
51039         * modules/sigaction-tests: ...and its test.
51040         * m4/sigaction.m4: New file.
51041         * lib/sigaction.c: Likewise.
51042         * tests/test-sigaction.c: Likewise.
51043         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
51044         * modules/signal (Makefile.am): Likewise.
51045         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
51046         needed.
51047         * doc/posix-headers/signal.texi (signal.h): Mention provided
51048         types.
51049         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
51050         that sigaction is preferable.
51051         * doc/posix-functions/sigaction.texi (sigaction): Mention new
51052         module.
51053         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51054         sigaction.
51055
51056         Improve robustness of sigprocmask by overriding signal.
51057         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
51058         is in use.
51059         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
51060         (SIGKILL, SIGSTOP): Provide fallbacks.
51061         (rpl_signal): Implement.
51062         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
51063         signal can be called inside handlers.
51064
51065         Fix nanosleep module on mingw.
51066         * modules/nanosleep (Depends-on): Add sys_select.
51067         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
51068
51069         Fix licensing of sigprocmask.
51070         * modules/raise (License): Relicense as LGPL.
51071
51072 2008-06-21  Bruno Haible  <bruno@clisp.org>
51073
51074         * lib/propername.c (proper_name_utf8): Don't use the transliterated
51075         result if it contains question marks.
51076         Reported by Michael Geng <linux@michaelgeng.de>.
51077
51078 2008-06-19  Bruno Haible  <bruno@clisp.org>
51079
51080         Fix CVS-ism.
51081         * doc/gnulib.texi: Include updated-stamp.texi.
51082         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
51083         (updated-stamp.texi): New rule.
51084         (gnulib.info): Depend on it.
51085         * doc/.gitignore: Add updated-stamp.texi.
51086         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
51087
51088 2008-06-19  Bruno Haible  <bruno@clisp.org>
51089
51090         * doc/Makefile (gnulib.info): Update and simplify dependencies.
51091         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51092
51093 2008-06-19  Eric Blake  <ebb9@byu.net>
51094
51095         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
51096         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
51097         Reported by Stepan Kasal.
51098
51099 2008-06-18  Bruno Haible  <bruno@clisp.org>
51100
51101         * lib/fatal-signal.c (init_fatal_signals): Add comment.
51102         Reported by Eric Blake.
51103
51104 2008-06-18  Eric Blake  <ebb9@byu.net>
51105
51106         Work around cygwin 1.5.25 strsignal bug.
51107         * tests/test-strsignal.c: Allow for const char *.
51108         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
51109
51110 2008-06-18  Simon Josefsson  <simon@josefsson.org>
51111
51112         * users.txt: Update URL to article and add author/date
51113         information.
51114
51115 2008-06-17  Bruno Haible  <bruno@clisp.org>
51116
51117         New macro gl_DISABLE_THREADS.
51118         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
51119         if the user did not pass --enable-threads or --disable-threads option.
51120         (gl_DISABLE_THREADS): New macro.
51121         Reported by Eric Blake <ebb9@byu.net>.
51122
51123 2008-06-17  Bruno Haible  <bruno@clisp.org>
51124
51125         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
51126         when the macro ignores it.
51127         Based on a patch by Eric Blake <ebb9@byu.net>.
51128
51129 2008-06-17  Bruno Haible  <bruno@clisp.org>
51130
51131         * modules/tls (License): Change to LGPLv2+.
51132         Reported by Eric Blake.
51133
51134 2008-06-17  Eric Blake  <ebb9@byu.net>
51135
51136         Simplify c-stack prerequisites.
51137         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
51138         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
51139         no longer requires <ucontext.h> to exist.  Optimize setrlimit
51140         check.
51141         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
51142         <sys/resource.h>.
51143
51144         Move c-stack test into testsuite.
51145         * modules/c-stack-tests: New file.
51146         * lib/c-stack.c [DEBUG]: Move test program...
51147         * tests/test-c-stack.c: ...into this new file.  Skip rather than
51148         fail test if sigaltstack is lacking.
51149         * tests/test-c-stack.sh: New driver file.
51150
51151 2008-06-16  Eric Blake  <ebb9@byu.net>
51152
51153         Use raise module consistently.
51154         * modules/fatal-signal (Depends-on): Add raise.
51155         * modules/sigprocmask (Depends-on): Likewise.
51156         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
51157         * lib/sigprocmask.c (sigprocmask): Likewise.
51158         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51159         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
51160
51161         Fix compliance bug in sigpending.
51162         * lib/sigprocmask.c (sigpending): Return pending array via
51163         parameter, not return value.
51164
51165 2008-06-14  Eric Blake  <ebb9@byu.net>
51166
51167         Improve obstack-printf test code.
51168         * tests/test-obstack-printf.c (test_function): Fix comment, and
51169         simplify usage of obstack_* in macros.  Add a test for coverage.
51170         Reported by Bruno Haible.
51171
51172 2008-06-14  Bruno Haible  <bruno@clisp.org>
51173
51174         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
51175         array size as a constant, not as a const variable.
51176         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
51177         AC_USE_SYSTEM_EXTENSIONS.
51178         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51179         Test whether the obstack_printf function actually exists.
51180         * modules/obstack-printf (Depends-on): Add extensions.
51181         (Include): Remove obstack.h.
51182         * modules/obstack-printf-posix (Depends-on): Add extensions.
51183         (Include): Remove obstack.h.
51184
51185 2008-06-13  Eric Blake  <ebb9@byu.net>
51186
51187         Add obstack-printf and obstack-printf-posix modules.
51188         * modules/obstack-printf: New file.
51189         * modules/obstack-printf-posix: Likewise.
51190         * MODULES.html.sh (Misc): Mention them.
51191         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51192         Likewise.
51193         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51194         Likewise.
51195         * modules/stdio (Makefile.am): Accomodate new modules.
51196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51197         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
51198         Declare.
51199         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
51200         functions.
51201         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
51202         (gl_REPLACE_OBSTACK_PRINTF): New macros
51203         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
51204         * tests/test-obstack-printf.c: New file.
51205         * modules/obstack-printf-tests: Likewise.
51206         * modules/obstack-printf-posix-tests: Likewise.
51207
51208 2008-06-11  Bruno Haible  <bruno@clisp.org>
51209
51210         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
51211         * lib/open.c: Include errno.h.
51212         (open): Fail when attempting to write to a file that has a trailing
51213         slash.
51214         * tests/test-open.c (main): Test against trailing slash bug.
51215         * doc/posix-functions/open.texi: Mention the trailing slash bug.
51216
51217 2008-06-10  Bruno Haible  <bruno@clisp.org>
51218
51219         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
51220         for $? to work inside the trap command, with various /bin/sh-s.
51221         * tests/test-vc-list-files-cvs.sh: Likewise.
51222
51223 2008-06-10  Bruno Haible  <bruno@clisp.org>
51224
51225         * lib/acl-internal.h: Don't include gettext.h here.
51226         * lib/set-mode-acl.c: Include gettext.h here.
51227         * lib/copy-acl.c: Likewise.
51228
51229 2008-06-10  Bruno Haible  <bruno@clisp.org>
51230
51231         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
51232         * lib/wait-process.c (wait_subprocess): Likewise.
51233         * lib/execute.h (execute): Add termsigp argument.
51234         * lib/execute.c (execute): Likewise.
51235         * lib/csharpcomp.c (compile_csharp_using_pnet,
51236         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
51237         * lib/csharpexec.c (execute_csharp_using_pnet,
51238         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
51239         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
51240         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
51241         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
51242         is_jikes_present): Update.
51243         * lib/javaexec.c (execute_java_class): Update.
51244         * lib/javaversion.c (execute_and_read_line): Update.
51245         * NEWS: Document the changes.
51246         Reported by Eric Blake.
51247
51248 2008-06-10  Eric Blake  <ebb9@byu.net>
51249
51250         Add missing include.
51251         * tests/test-strstr.c (includes): Add <signal.h>.
51252         * tests/test-strcasestr.c (includes): Likewise.
51253         * tests/test-memmem.c (includes): Likewise.
51254
51255 2008-06-10  Bruno Haible  <bruno@clisp.org>
51256
51257         * lib/wait-process.c (wait_subprocess): Add an assertion.
51258
51259 2008-06-10  Bruno Haible  <bruno@clisp.org>
51260
51261         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
51262
51263 2008-06-10  Bruno Haible  <bruno@clisp.org>
51264
51265         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
51266         using alarm().
51267         * tests/test-strcasestr.c (main): Likewise.
51268         * tests/test-strstr.c (main): Likewise.
51269
51270 2008-06-09  Bruno Haible  <bruno@clisp.org>
51271
51272         Work around the Solaris 10 ACE ACLs ABI change.
51273         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
51274         declare if ACL_NO_TRIVIAL is present.
51275         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
51276         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
51277         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
51278         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
51279         define if ACL_NO_TRIVIAL is present.
51280         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
51281         and use the current ABI.
51282         (file_has_acl): Use same #if condition as elsewhere.
51283         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
51284         in use, and use the current ABI.
51285         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
51286         Reported by Jim Meyering.
51287
51288 2008-06-09  Eric Blake  <ebb9@byu.net>
51289
51290         Work around environments that (stupidly) ignore SIGALRM.
51291         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
51292         before using alarm().
51293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51294         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51295         Reported by Ian Beckwith <ianb@erislabs.net>.
51296
51297         Produce autobuild blurb earlier in log.
51298         * modules/autobuild (configure.ac-early): Move AB_INIT here.
51299
51300 2008-06-09  Jim Meyering  <meyering@redhat.com>
51301         and OndÅ™ej Vašík  <ovasik@redhat.com>
51302
51303         utimens.c: correct kernel bug work-around
51304         OndÅ™ej Vašík found that the invalid return value of 280 indicates
51305         failure, not success, and the kernel bug we're trying to work
51306         around affects not just the utimensat call, but also the fallback
51307         futimens call.
51308         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
51309         not success.
51310         [HAVE_FUTIMENS]: Use the same work-around, here.
51311
51312 2008-06-09  Jim Meyering  <meyering@redhat.com>
51313
51314         add more guards around definition of ACE_-related code
51315         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
51316         ALLOW and ACE_OWNER are also defined.
51317
51318 2008-06-08  Bruno Haible  <bruno@clisp.org>
51319
51320         * lib/acl-internal.h: Add me as co-author.
51321         * lib/file-has-acl.c: Likewise.
51322         * lib/set-mode-acl.c: Likewise.
51323         * lib/copy-acl.c: Likewise.
51324
51325 2008-06-08  Bruno Haible  <bruno@clisp.org>
51326
51327         Add support for AIX ACLs.
51328         * lib/acl-internal.h (acl_nontrivial): New declaration.
51329         * lib/file-has-acl.c (acl_nontrivial): New function.
51330         (file_has_acl): Add implementation using AIX 4 ACL API.
51331         * lib/set-mode-acl.c (qset_acl): Likewise.
51332         * lib/copy-acl.c (qcopy_acl): Likewise.
51333
51334 2008-06-08  Bruno Haible  <bruno@clisp.org>
51335
51336         Add support for HP-UX ACLs.
51337         * lib/acl-internal.h (acl_nontrivial): New declaration.
51338         * lib/file-has-acl.c (acl_nontrivial): New function.
51339         (file_has_acl): Add implementation using HP-UX 11 ACL API.
51340         * lib/set-mode-acl.c (qset_acl): Likewise.
51341         * lib/copy-acl.c (qcopy_acl): Likewise.
51342
51343 2008-06-08  Bruno Haible  <bruno@clisp.org>
51344
51345         Add support for Cygwin ACLs.
51346         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
51347         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
51348         the chmod_or_fchmod call.
51349         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
51350
51351 2008-06-08  Bruno Haible  <bruno@clisp.org>
51352
51353         Fix bug with setuid modes in Solaris 10+ code.
51354         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
51355         succeeded, when the mode contains some special bits.
51356
51357 2008-06-08  Bruno Haible  <bruno@clisp.org>
51358
51359         Add support for Solaris 7..10 ACLs.
51360         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
51361         declarations.
51362         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
51363         functions.
51364         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
51365         * lib/set-mode-acl.c (qset_acl): Likewise.
51366         * lib/copy-acl.c (qcopy_acl): Likewise.
51367
51368 2008-06-08  Bruno Haible  <bruno@clisp.org>
51369
51370         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
51371         declaration.
51372         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
51373         (acl_access_nontrivial): Remove MacOS X case.
51374         (file_has_acl): Use acl_extended_nontrivial.
51375         * lib/copy-acl.c (qcopy_acl): Likewise.
51376
51377 2008-06-08  Bruno Haible  <bruno@clisp.org>
51378
51379         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
51380
51381 2008-06-08  Jim Meyering  <meyering@redhat.com>
51382
51383         * modules/acl (Maintainer): Add Bruno Haible.
51384
51385 2008-06-07  Bruno Haible  <bruno@clisp.org>
51386
51387         Improve support for Tru64 ACLs.
51388         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
51389         ACL on OSF/1.
51390
51391 2008-06-07  Bruno Haible  <bruno@clisp.org>
51392
51393         Add support for MacOS X ACLs.
51394         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
51395         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
51396         * lib/set-mode-acl.c (qset_acl): Likewise.
51397         * lib/copy-acl.c (qcopy_acl): Likewise.
51398
51399 2008-06-07  Bruno Haible  <bruno@clisp.org>
51400
51401         Fix memory leak introduced on 2008-05-22.
51402         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
51403         use.
51404
51405 2008-06-07  Bruno Haible  <bruno@clisp.org>
51406
51407         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
51408         to construct an empty ACL.
51409
51410 2008-06-07  Bruno Haible  <bruno@clisp.org>
51411
51412         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
51413         precisely.
51414         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
51415
51416 2008-06-07  Bruno Haible  <bruno@clisp.org>
51417
51418         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
51419         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
51420
51421 2008-06-07  Bruno Haible  <bruno@clisp.org>
51422
51423         * doc/posix-functions/_setjmp.texi: Explain the use of this function
51424         regardless of POSIX.
51425         * doc/posix-functions/_longjmp.texi: Likewise.
51426         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
51427         SystemV platform in this case.
51428
51429 2008-06-06  Eric Blake  <ebb9@byu.net>
51430
51431         Document abort() bugs.
51432         * doc/posix-functions/abort.texi (abort): Mention anomalies.
51433
51434         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
51435         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
51436         sigsetjmp.
51437         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
51438         siglongjmp, but only as a macro.
51439         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
51440         is obsolete.
51441         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
51442
51443         Tweak documentation to cover cygwin argz bugs.
51444         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
51445         argz bug fix; no code change needed since no cygwin releases
51446         occurred between the last fix and the bug being tested.
51447         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
51448         module and recently fixed cygwin bugs.
51449         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
51450         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
51451         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
51452         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
51453         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
51454         Likewise.
51455         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
51456         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
51457         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
51458         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
51459         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
51460         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
51461         Likewise.
51462
51463         Avoid gcc warning on cygwin.
51464         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
51465         !ACL_NO_TRIVIAL]: Avoid unused variable.
51466
51467 2008-06-05  Eric Blake  <ebb9@byu.net>
51468
51469         Be tolerant of UNKNOWN version in gnulib-tool test dir.
51470         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
51471         git-version-gen fails to come up with a version.
51472         Reported by Simon Josefsson.
51473
51474 2008-06-05  Jim Meyering  <meyering@redhat.com>
51475             Paul Eggert  <eggert@cs.ucla.edu>
51476
51477         utimens.c: work around a probable Linux kernel bug
51478         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
51479         appears to be a kernel bug that causes utimensat to return 280
51480         instead of 0, indicating success.
51481
51482 2008-06-04  Bruno Haible  <bruno@clisp.org>
51483
51484         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
51485         2008-06-01 commit.
51486
51487 2008-06-04  Bruno Haible  <bruno@clisp.org>
51488
51489         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
51490         * lib/file-has-acl.c (acl_access_nontrivial): New function.
51491         (file_has_acl): Use it. Save errno afterwards.
51492         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
51493
51494 2008-06-03  Bruno Haible  <bruno@clisp.org>
51495
51496         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
51497         draft code. Simplify #ifs.
51498         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
51499         Put Solaris code after POSIX-draft code. Fix comments regarding
51500         Solaris 10, HP-UX. Mention Cygwin.
51501         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
51502
51503 2008-06-03  Eric Blake  <ebb9@byu.net>
51504
51505         Provide fallback for older kernels.
51506         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
51507         Provide runtime fallback if kernel lacks support.
51508         Reported by Mike Frysinger.
51509
51510 2008-06-02  Bruno Haible  <bruno@clisp.org>
51511
51512         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
51513         it exists.
51514
51515 2008-06-02  Bruno Haible  <bruno@clisp.org>
51516
51517         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
51518         * lib/copy-acl.c (qcopy_acl): Update comment.
51519
51520 2008-06-02  Bruno Haible  <bruno@clisp.org>
51521
51522         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
51523         like ACL APIs.
51524
51525 2008-06-02  Bruno Haible  <bruno@clisp.org>
51526
51527         * tests/test-file-has-acl.sh: Use different code for Cygwin.
51528         * tests/test-set-mode-acl.sh: Likewise.
51529         * tests/test-copy-acl.sh: Likewise.
51530         * tests/test-copy-file.sh: Likewise.
51531
51532 2008-06-02  Bruno Haible  <bruno@clisp.org>
51533
51534         * tests/test-file-has-acl.sh: Remove unused code.
51535
51536 2008-06-01  Bruno Haible  <bruno@clisp.org>
51537
51538         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
51539         (copy_acl): Just a wrapper around qcopy_acl that emits the error
51540         messages.
51541         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
51542
51543 2008-06-01  Bruno Haible  <bruno@clisp.org>
51544
51545         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
51546         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
51547         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
51548         APIs.
51549         * modules/acl-tests (configure.ac): Remove tests now contained in
51550         m4/acl.m4.
51551
51552 2008-06-02  Jim Meyering  <meyering@redhat.com>
51553
51554         announce-gen: use a better key-server host name
51555         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
51556         it may be more consistently reliable.  Suggested by Werner Koch
51557         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
51558
51559 2008-06-01  Bruno Haible  <bruno@clisp.org>
51560
51561         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
51562         Reported by Voroskoi Andras <voroskoi@gmail.com>.
51563
51564 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
51565
51566         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
51567
51568 2008-06-01  Bruno Haible  <bruno@clisp.org>
51569
51570         New ACL tests.
51571         * tests/test-file-has-acl.sh: New file.
51572         * tests/test-file-has-acl.c: New file.
51573         * tests/test-set-mode-acl.sh: New file.
51574         * tests/test-set-mode-acl.c: New file.
51575         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
51576         * tests/test-copy-acl.c: New file.
51577         * modules/acl-tests: New file, based on modules/copy-file-tests.
51578         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
51579         (Depends-on): Add acl-tests.
51580         (configure.ac): Remove checks.
51581         (Makefile.am): Don't create test-sameacls program here any more.
51582
51583 2008-06-01  Bruno Haible  <bruno@clisp.org>
51584
51585         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
51586         * tests/test-sameacls.c: Include progname.h.
51587         (main): Invoke set_program_name. Portability fixes for MacOS X,
51588         Solaris, HP-UX.
51589
51590 2008-06-01  Bruno Haible  <bruno@clisp.org>
51591
51592         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
51593         function.
51594         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
51595
51596 2008-06-01  Bruno Haible  <bruno@clisp.org>
51597
51598         * modules/rpmatch (Depends-on): Add strdup.
51599
51600 2008-06-01  Bruno Haible  <bruno@clisp.org>
51601
51602         * lib/pipe.c: Include unistd-safer.h.
51603         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
51604         * modules/pipe (Depends-on): Add unistd-safer.
51605
51606 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51607
51608         * modules/autobuild (configure.ac): Call AB_INIT.
51609
51610 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51611
51612         * tests/test-getaddrinfo.c: Don't print debug messages by default.
51613         Suggested by Bruno Haible <bruno@clisp.org>.
51614
51615 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51616
51617         * tests/test-base64.c: Cast size_t to unsigned long when invoking
51618         printf.  Use %lu instead of %d.  Reported by Bruno Haible
51619         <bruno@clisp.org>.
51620
51621 2008-05-29  Eric Blake  <ebb9@byu.net>
51622
51623         Prefer new POSIX 200x interfaces over futimesat.
51624         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
51625         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
51626         when available.
51627         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
51628
51629 2008-05-28  Bruno Haible  <bruno@clisp.org>
51630
51631         * modules/stpcpy (License): Change to LGPLv2+.
51632         Requested by David Lutterkort <dlutter@redhat.com>.
51633
51634 2008-05-27  Bruno Haible  <bruno@clisp.org>
51635
51636         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
51637         current mingw.
51638         Reported by Jose E. Marchesi <jemarch@gnu.org>.
51639
51640 2008-05-27  Bruno Haible  <bruno@clisp.org>
51641
51642         * modules/iconv_open (Link): New section, from module 'iconv'.
51643         * modules/striconv (Link): Likewise.
51644         * modules/striconveh (Link): Likewise.
51645         * modules/xstriconv (Link): Likewise.
51646         * modules/unicodeio (Link): Likewise.
51647         * modules/propername (Link): Likewise.
51648         Reported by Jim Meyering.
51649
51650 2008-05-26  Jim Meyering  <meyering@redhat.com>
51651
51652         sha256: do not artificially restrict buffer length to be < 2^32
51653         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
51654         uint32_t to size_t.
51655         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
51656         to match.
51657
51658         avoid unaligned access errors, e.g., on sparc
51659         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
51660         direct access through a possibly-unaligned uint64* pointer.
51661         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
51662         direct access through a possibly-unaligned uint32* pointer.
51663         Prompted by this patch from Tom "spot" Callaway:
51664         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
51665
51666         sha512.c: fix typo in comment
51667         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
51668
51669 2008-05-25  Bruno Haible  <bruno@clisp.org>
51670
51671         * lib/set-mode-acl.c: Renamed from lib/acl.c.
51672         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
51673         (Makefile.am): Update lib_SOURCES.
51674
51675 2008-05-25  Bruno Haible  <bruno@clisp.org>
51676
51677         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
51678
51679 2008-05-25  Jim Meyering  <meyering@redhat.com>
51680
51681         useless-if-before-free: freed expr may have white-space differences
51682         * build-aux/useless-if-before-free: Recognize cases in which the
51683         freed expression differs from the tested one in embedded white
51684         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
51685         $1 was used, so we can't make any regexp shy.  Improved tests now
51686         detect this.
51687
51688         useless-if-before-free: accept white space in the expression.
51689         * build-aux/useless-if-before-free: For now, any white space
51690         in the expression must be identical in the free argument.
51691
51692         useless-if-before-free: efficiency tweak
51693         * build-aux/useless-if-before-free: Make the expression-matching
51694         regexp "shy".
51695         Make the *outer* regexp shy, not the expr-matching one.
51696
51697         update code-in-comment to accept cast of free arg
51698         * build-aux/useless-if-before-free: Update regexp.
51699
51700 2008-05-25  Bruno Haible  <bruno@clisp.org>
51701
51702         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
51703         * modules/copy-file-tests (Files, Makefile.am): Update.
51704         * tests/test-copy-file.c (func_test_copy): Update.
51705
51706 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
51707
51708         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
51709
51710 2008-05-23  Bruno Haible  <bruno@clisp.org>
51711
51712         Improve support for ACLs on OSF/1.
51713         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
51714         Remove fallback for unknown flavors of ACLs.
51715
51716 2008-05-22  Bruno Haible  <bruno@clisp.org>
51717
51718         Add support for ACLs on OSF/1.
51719         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
51720         replacements.
51721         (acl_free_text): New macro fallback.
51722         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
51723         acl_free.
51724         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
51725         acl_free_text function. Require AC_C_INLINE.
51726
51727 2008-05-22  Bruno Haible  <bruno@clisp.org>
51728
51729         Make copy_acl work on MacOS X 10.5.
51730         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
51731         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
51732         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
51733         If MODE_INSIDE_ACL, don't assume that every system has the same text
51734         representation for ACLs as FreeBSD.
51735         * lib/copy-acl.c (copy_acl): Add support for platforms with
51736         !MODE_INSIDE_ACL.
51737         * lib/file-has-acl.c (file_has_acl): Likewise.
51738         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
51739         FreeBSD, MacOS X, or IRIX, respectively.
51740
51741 2008-05-22  Bruno Haible  <bruno@clisp.org>
51742
51743         * lib/acl.h: Don't include <sys/acl.h>.
51744         (GETACLCNT): Move fallback to lib/acl-internal.h.
51745         * lib/acl-internal.h: Include <sys/acl.h> here.
51746         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
51747
51748 2008-05-22  Bruno Haible  <bruno@clisp.org>
51749
51750         Split off copy_acl function to separate file.
51751         * lib/copy-acl.c: New file, extracted from lib/acl.c.
51752         * lib/acl.c (copy_acl): Moved function to separate file.
51753         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
51754         * modules/acl (Files): Add lib/copy-acl.c.
51755         (Makefiles.am): Augment lib_SOURCES.
51756
51757 2008-05-22  Bruno Haible  <bruno@clisp.org>
51758
51759         * modules/copy-file-tests: New file.
51760         * tests/test-copy-file.sh: New file.
51761         * tests/test-copy-file.c: New file.
51762         * tests/test-copy-file-sameacls.c: New file.
51763
51764 2008-05-22  Eric Blake  <ebb9@byu.net>
51765
51766         Avoid gcc warning.
51767         * tests/test-memcmp.c (main): Pass NULL indirectly.
51768
51769 2008-05-21  Bruno Haible  <bruno@clisp.org>
51770
51771         Add reference doc about ACLs.
51772         * doc/acl-resources.txt: New file.
51773         * doc/acl-cygwin.txt: New file.
51774
51775 2008-05-21  Bruno Haible  <bruno@clisp.org>
51776
51777         Avoid one more warning from gcc.
51778         * lib/vasnprintf.c (IF_LINT): Update comments.
51779         (VASNPRINTF): Use it also for the 'prefix' array initializer.
51780
51781 2008-05-21  Jim Meyering  <meyering@redhat.com>
51782
51783         avoid a warning from gcc
51784         * lib/vasnprintf.c (IF_LINT): Define.
51785         (scale10_round_decimal_long_double):
51786         Use it to avoid a "may be used uninitialized" warning.
51787         (scale10_round_decimal_double): Likewise.
51788
51789 2008-05-21  Simon Josefsson  <simon@josefsson.org>
51790
51791         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
51792         declared.
51793
51794 2008-05-20  Bruno Haible  <bruno@clisp.org>
51795
51796         * tests/test-memcmp.c (main): Test also the sign of the result. Test
51797         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
51798
51799 2008-05-20  Simon Josefsson  <simon@josefsson.org>
51800
51801         * modules/memcmp-tests: New file.
51802         * tests/test-memcmp.c: New file.
51803
51804 2008-05-19  Bruno Haible  <bruno@clisp.org>
51805
51806         * modules/propername (Notice, configure.ac): Put quoted "..." into
51807         --keyword option.
51808         * lib/propername.h: Update comments accordingly.
51809         Reported by Eric Blake.
51810
51811 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
51812
51813         * modules/getpass-gnu (Depends-on): Add fseeko.
51814
51815 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51816
51817         * modules/base64-tests: New file.
51818
51819 2008-05-19  Bo Borgerson <gigabo@gmail.com>
51820
51821         * lib/base64.c (base64_decode_ctx): If a decode context structure
51822         was passed in use it to ignore newlines.  If a context structure
51823         was _not_ passed in, continue to treat newlines as garbage (this
51824         is the historical behavior).  Formerly base64_decode.
51825         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51826         takes a decode context structure.
51827         * lib/base64.h (base64_decode): Macro for four-argument calls.
51828         (base64_decode_alloc): Likewise.
51829         * lib/base64.c (base64_decode_ctx): If a decode context structure
51830         was passed in use it to ignore newlines.  If a context structure
51831         was _not_ passed in, continue to treat newlines as garbage (this
51832         is the historical behavior).  Formerly base64_decode.
51833         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51834         takes a decode context structure.
51835         * lib/base64.h (base64_decode): Macro for four-argument calls.
51836         (base64_decode_alloc): Likewise.
51837
51838 2008-05-19  Jim Meyering  <meyering@redhat.com>
51839
51840         avoid a warning from gcc
51841         * lib/trim.c (IF_LINT): Define.
51842         (trim2): Use it to avoid a "may be used uninitialized" warning.
51843
51844         Fix doc typo.
51845         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
51846
51847 2008-05-19  Bruno Haible  <bruno@clisp.org>
51848
51849         * doc/glibc-functions/getpass.texi: Document limits of other
51850         implementations.
51851
51852 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51853             Bruno Haible <bruno@clisp.org>
51854
51855         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
51856
51857 2008-05-18  Bruno Haible  <bruno@clisp.org>
51858
51859         * modules/propername: New file, from GNU gettext.
51860         * lib/propername.h: New file, from GNU gettext.
51861         * lib/propername.c: New file, from GNU gettext.
51862         * MODULES.html.sh (Internationalization functions): Add propername.
51863
51864 2008-05-16  Jim Meyering  <meyering@redhat.com>
51865             Bruno Haible  <bruno@clisp.org>
51866
51867         Avoid some warnings from "gcc -Wshadow".
51868         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
51869
51870 2008-05-15  Eric Blake  <ebb9@byu.net>
51871
51872         Extend previous patch to cygwin 1.7.0.
51873         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
51874         fast implementation in cygwin >= 1.7.0.
51875         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51876         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51877
51878 2008-05-15  Bruno Haible  <bruno@clisp.org>
51879
51880         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
51881         implementation in glibc >= 2.9.
51882         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51883         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51884
51885 2008-05-15  Bruno Haible  <bruno@clisp.org>
51886
51887         * MODULES.html.sh (Internationalization functions): Remove linebreak.
51888         (Unicode string functions): Add unilbrk/*.
51889         Reported by Karl Berry.
51890
51891 2008-05-15  Eric Blake  <ebb9@byu.net>
51892
51893         Fix violation of <stdbool.h> replacement in regex.
51894         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
51895         * lib/regexec.c (re_search_internal): Likewise.
51896         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
51897
51898 2008-05-15  Jim Meyering  <meyering@redhat.com>
51899
51900         avoid distracting test output when git or cvs is not found
51901         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
51902         * tests/test-vc-list-files-git.sh: Likewise.
51903
51904 2008-05-15  Eric Blake  <ebb9@byu.net>
51905
51906         Glibc finally accepted the memmem speedup code, bugzilla #5514.
51907         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
51908         glibc version.
51909         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
51910         * doc/posix-functions/strstr.texi (strstr): Likewise.
51911         * lib/str-two-way.h (MAX): Sychronize with glibc.
51912
51913 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
51914
51915         * lib/regcomp.c (optimize_utf8): Add a note on why we test
51916         opr.ctx_type.
51917         (calc_first): Initialize constraint field.
51918         (duplicate_node_closure): Use it instead of special casing ANCHORS.
51919         Fix grammar.
51920         (duplicate_node): Merge constraint field for all node types.
51921         (calc_eclosure_iter): Look at constraint field for all node types.
51922         * lib/regex_internal.c (create_cd_newstate): Don't look at
51923         opr.ctx_type.
51924
51925 2008-05-14  Bruno Haible  <bruno@clisp.org>
51926
51927         Help GCC to do better code generation.
51928         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
51929         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
51930         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
51931         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
51932         Declare with attribute 'malloc' if supported.
51933
51934 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
51935
51936         use "echo STR|wc -c" rather than unportable "expr length STR"
51937         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
51938         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
51939
51940 2008-05-14  Jim Meyering  <meyering@redhat.com>
51941
51942         use dd ibs=$n count=1 ... rather than less-portable head -c$n
51943         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
51944         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
51945         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
51946         via Collin Lasse.
51947
51948 2008-05-14  Eric Blake  <ebb9@byu.net>
51949
51950         Avoid quadratic growth in gl_LIBSOURCES.
51951         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
51952         Suggested by Bruno Haible.
51953
51954         Test xmemdup0.
51955         * modules/xmemdup0-tests: New file.
51956         * tests/test-xmemdup0.c: Likewise.
51957
51958 2008-05-13  Eric Blake  <ebb9@byu.net>
51959
51960         Split xmemdup0 into its own module.
51961         * modules/xmemdup0: New file.
51962         * lib/xmemdup0.h: Likewise.
51963         * lib/xmemdup0.c: Likewise.
51964         * MODULES.html.sh (Memory management functions): Add xmemdup0.
51965         * lib/xalloc.h (xmemdup0): Remove.
51966         * lib/xmalloc.c (xmemdup0): Likewise.
51967
51968 2008-05-13  Eric Blake  <ebb9@byu.net>
51969             Bruno Haible  <bruno@clisp.org>
51970
51971         Reduce number of forks required during autoconf.
51972         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
51973         and gl_LIBSOURCES_DIR.
51974         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
51975         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
51976         m4_syscmd per file.
51977         <m4_foreach_w>: Move...
51978         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
51979
51980 2008-05-13  Eric Blake  <ebb9@byu.net>
51981
51982         * gnulib-tool: Fix various comment typos.
51983
51984 2008-05-12  Bruno Haible  <bruno@clisp.org>
51985
51986         Tailor the linebreaking algorithm.
51987         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
51988
51989 2008-05-12  Bruno Haible  <bruno@clisp.org>
51990
51991         Update to Unicode 5.0.0.
51992         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51993         LBP_JV, LBP_JT. Redistribute values.
51994         (unilbrk_table): Change size.
51995         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
51996         Unicode TR#14 rev. 22.
51997         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51998         LBP_JV, LBP_JT. Redistribute values.
51999         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
52000         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
52001         Update.
52002         * lib/unilbrk/lbrkprop1.h: Regenerated.
52003         * lib/unilbrk/lbrkprop2.h: Regenerated.
52004         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
52005         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
52006         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
52007         Likewise.
52008         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
52009         Likewise.
52010         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
52011         result.
52012         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
52013         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
52014         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
52015         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
52016         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
52017         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
52018
52019 2008-05-11  Bruno Haible  <bruno@clisp.org>
52020
52021         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
52022
52023 2008-05-11  Bruno Haible  <bruno@clisp.org>
52024
52025         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
52026         * modules/unilbrk/gen-lbrk: New file.
52027
52028 2008-05-11  Bruno Haible  <bruno@clisp.org>
52029
52030         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
52031         * m4/sha512.m4 (gl_SHA512): Likewise.
52032
52033 2008-05-11  Jim Meyering  <meyering@redhat.com>
52034
52035         New modules: crypto/sha256, crypto/sha512 (from coreutils)
52036         * modules/crypto/sha256: New file.
52037         * modules/crypto/sha512: Likewise.
52038         * lib/sha256.c: Likewise.
52039         * lib/sha256.h: Likewise.
52040         * lib/sha512.c: Likewise.
52041         * lib/sha512.h: Likewise.
52042         * lib/u64.h: Likewise.
52043         * m4/sha256.m4: Likewise.
52044         * m4/sha512.m4: Likewise.
52045         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
52046
52047 2008-05-10  Bruno Haible  <bruno@clisp.org>
52048
52049         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
52050         (Input/Output <stdio.h>): Add xprintf.
52051         (Signal handling <signal.h>): Add strsignal.
52052         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
52053         (Core language properties): Add func.
52054         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
52055         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
52056         strings.
52057         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
52058         (Input/output): New section.
52059         (File system functions): Add openat-die, stat-macros.
52060         (Networking functions): Add sockets.
52061         (Unicode string functions): Add unictype/*.
52062         (Support for building libraries and executables): Add gperf.
52063         (Support for building documentation): Add agpl-3.0.
52064         (Misc): Add nocrash.
52065
52066 2008-05-10  Bruno Haible  <bruno@clisp.org>
52067
52068         * modules/unictype/gen-ctype: New file.
52069
52070 2008-05-10  Jim Meyering  <meyering@redhat.com>
52071
52072         Make chdir-safer.c more efficient on a system with no symlinks.
52073         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
52074         also if ELOOP is zero.  Suggested by Bruno Haible.
52075
52076         Make chdir-safer.c slightly safer.
52077         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
52078         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
52079
52080         Avoid compile failure on systems without ELOOP (like mingw).
52081         * lib/chdir-safer.c (ELOOP): Define if not already defined.
52082         Reported by Bruno Haible.
52083
52084 2008-05-10  Bruno Haible  <bruno@clisp.org>
52085
52086         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
52087         (is_utf8_encoding): Use a case-insensitive comparison.
52088         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
52089         streq.
52090
52091 2008-05-10  Bruno Haible  <bruno@clisp.org>
52092
52093         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
52094         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
52095         * lib/unilbrk/ulc-common.h (iconv_string_length,
52096         iconv_string_keeping_offsets): Remove declarations.
52097         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
52098         Don't include <iconv.h>, streq.h, xsize.h.
52099         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
52100         conversion.
52101         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
52102         <iconv.h>, streq.h, xsize.h.
52103         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
52104         conversion.
52105         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
52106         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
52107         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
52108         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
52109
52110 2008-05-10  Bruno Haible  <bruno@clisp.org>
52111
52112         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
52113         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
52114
52115         * modules/unilbrk/u32-width-linebreaks-tests: New file.
52116         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
52117
52118         * modules/unilbrk/u16-width-linebreaks-tests: New file.
52119         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
52120
52121         * modules/unilbrk/u8-width-linebreaks-tests: New file.
52122         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
52123
52124         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
52125         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
52126
52127         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
52128         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
52129
52130         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
52131         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
52132
52133         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
52134         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
52135
52136 2008-05-10  Bruno Haible  <bruno@clisp.org>
52137
52138         Split up 'linebreak' module.
52139         * lib/unilbrk.h: New file, based on lib/linebreak.h.
52140         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
52141         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
52142         modifications.
52143         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
52144         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
52145         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
52146         lib/linebreak.c.
52147         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
52148         lib/linebreak.c.
52149         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
52150         lib/linebreak.c.
52151         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
52152         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
52153         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
52154         lib/linebreak.c.
52155         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
52156         lib/linebreak.c.
52157         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
52158         lib/linebreak.c.
52159         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
52160         lib/linebreak.c.
52161         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
52162         lib/linebreak.c.
52163         * modules/unilbrk/base: New file.
52164         * modules/unilbrk/tables: New file.
52165         * modules/unilbrk/u8-possible-linebreaks: New file.
52166         * modules/unilbrk/u16-possible-linebreaks: New file.
52167         * modules/unilbrk/u32-possible-linebreaks: New file.
52168         * modules/unilbrk/ulc-common: New file.
52169         * modules/unilbrk/ulc-possible-linebreaks: New file.
52170         * modules/unilbrk/u8-width-linebreaks: New file.
52171         * modules/unilbrk/u16-width-linebreaks: New file.
52172         * modules/unilbrk/u32-width-linebreaks: New file.
52173         * modules/unilbrk/ulc-width-linebreaks: New file.
52174         * lib/linebreak.h: Remove file.
52175         * lib/linebreak.c: Remove file.
52176         * m4/linebreak.m4: Remove file.
52177         * modules/linebreak: Remove file.
52178         * NEWS: Mention the changes.
52179
52180 2008-05-09  Eric Blake  <ebb9@byu.net>
52181
52182         Add xmemdup0.
52183         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
52184         implementation.
52185         * lib/xmalloc.c (xmemdup0): New C implementation.
52186
52187 2008-05-08  Bruno Haible  <bruno@clisp.org>
52188
52189         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
52190
52191 2008-05-07  Eric Blake  <ebb9@byu.net>
52192
52193         Support cross-compilation of <wctype.h>.
52194         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
52195         AC_CACHE_CHECK.
52196
52197 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
52198
52199         * build-aux/vc-list-files: Add support for bzr.
52200
52201 2008-05-03  Jim Meyering  <meyering@redhat.com>
52202
52203         avoid failed assertion with tight malloc
52204         * tests/test-getndelim2.c: Correct an off-by-one assertion.
52205
52206 2008-05-03  Simon Josefsson  <simon@josefsson.org>
52207
52208         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
52209         are needed from arpa/inet.h.
52210         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
52211         Reported by Bruno Haible.
52212
52213 2008-05-02  Jim Meyering  <meyering@redhat.com>
52214
52215         avoid compilation error on FreeBSD 6
52216         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
52217
52218 2008-05-01  Jim Meyering  <meyering@redhat.com>
52219
52220         useless-if-before-free: correct --help's exit status description
52221         * build-aux/useless-if-before-free (usage): Like grep, exit 0
52222         for one or more matches, etc.  Reported by Bruno Haible.
52223
52224         vc-list-files: make the stand-alone gnulib test work
52225         * modules/vc-list-files-tests (configure.ac):
52226         Define and AC_SUBST abs_aux_dir.
52227         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
52228         $(abs_top_srcdir) to each script and having each of them
52229         duplicate the work of setting PATH, set PATH here, using
52230         the new variable, abs_aux_dir instead.
52231         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
52232         * tests/test-vc-list-files-git.sh: Likewise.
52233         Reported by Bruno Haible.
52234
52235 2008-05-01  Bruno Haible  <bruno@clisp.org>
52236
52237         * lib/getndelim2.c (getndelim2): Fix newsize computation during
52238         reallocation. Rename 'done' to 'found_delimiter'.
52239
52240 2008-05-01  Jim Meyering  <meyering@redhat.com>
52241
52242         vc-list-files: accommodate /bin/sh like the one from Solaris 10
52243         * build-aux/vc-list-files: Use `...`, not $(...).
52244
52245 2008-04-30  Jim Meyering  <meyering@redhat.com>
52246
52247         add tests for vc-list-files
52248         * modules/vc-list-files-tests: New module.
52249         * tests/test-vc-list-files-cvs.sh: New file.
52250         * tests/test-vc-list-files-git.sh: New file.
52251
52252         avoid a warning from gcc
52253         * lib/getndelim2.c (IF_LINT): Define.
52254         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
52255
52256         vc-list-files: work properly with build-aux/cvsu, too
52257         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
52258         to all cvs-based clauses.
52259
52260         vc-list-files: work properly in the CVS+awk case, too
52261         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
52262
52263         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
52264         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
52265         take more than one file argument, so .  Add quotes, just in case $dir
52266         ever contains a shell meta-character.  Prompted by Soren Hansen in
52267         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
52268
52269 2008-04-29  Eric Blake  <ebb9@byu.net>
52270
52271         Optimize getndelim2 to use block operations when possible.
52272         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
52273         freadseek, and memchr2.
52274         * lib/getndelim2.c (getndelim2): Use them for block reads.
52275
52276 2008-04-29  Bruno Haible  <bruno@clisp.org>
52277
52278         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
52279         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52280         * modules/inet_ntop (Depends-on): Add extensions.
52281         * modules/inet_pton (Depends-on): Likewise.
52282         Reported by Simon Josefsson.
52283
52284 2008-04-29  Jim Meyering  <meyering@redhat.com>
52285
52286         When the is more than one match in a block, match all of them.
52287         * build-aux/useless-if-before-free: Iterate through each block
52288         until there are no more matches.
52289
52290         Fix broken useless-if-before-free script.
52291         * build-aux/useless-if-before-free: Fix typo: missing "?" after
52292         the expression to match cast of argument to free-like function.
52293
52294 2008-04-29  Eric Blake  <ebb9@byu.net>
52295
52296         Use new header.
52297         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
52298
52299 2008-04-29  Jim Meyering  <meyering@redhat.com>
52300
52301         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
52302         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
52303         by gnulib to exist and to declare e.g., inet_ntop.
52304         Don't include "inet_ntop.h", now removed.
52305
52306         * m4/arpa_inet_h.m4: Remove trailing blanks.
52307
52308 2008-04-29  Eric Blake  <ebb9@byu.net>
52309
52310         Silence valgrind on safe reads beyond potential array bounds.
52311         * lib/rawmemchr.valgrind: New file.
52312         * lib/strchrnul.valgrind: Likewise.
52313         * modules/rawmemchr (Files): Distribute new file.
52314         * modules/strchrnul (Files): Likewise.
52315         Suggested by Bruno Haible.
52316
52317 2008-04-29  Bruno Haible  <bruno@clisp.org>
52318
52319         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
52320         (inet_ntop, inet_pton): Change portability warning's wording.
52321         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
52322         Invoke gl_CHECK_NEXT_HEADERS.
52323         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
52324         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
52325         set ARPA_INET_H.
52326         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52327         * modules/arpa_inet (Description): No longer only for systems that
52328         lack it.
52329         (Depends-on): Add include_next.
52330         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
52331         HAVE_ARPA_INET_H.
52332
52333 2008-04-29  Jim Meyering  <meyering@redhat.com>
52334
52335         * modules/mkdir (License): Re-license as LGPLv2+.
52336
52337 2008-04-29  Bruno Haible  <bruno@clisp.org>
52338
52339         * modules/rawmemchr (Maintainer): Set to Eric.
52340         * modules/strchrnul (Maintainer): Likewise.
52341
52342 2008-04-29  Simon Josefsson  <simon@josefsson.org>
52343
52344         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
52345         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
52346
52347         * modules/arpa_inet (arpa/inet.h): Use them.
52348
52349 2008-04-28  Eric Blake  <ebb9@byu.net>
52350
52351         Test getndelim2.
52352         * modules/getndelim2-tests: New file.
52353         * tests/test-getndelim2.c: Likewise.
52354         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
52355         stream.
52356         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
52357
52358         * MODULES.html.sh: Document new module.
52359
52360 2008-04-20  Bruno Haible  <bruno@clisp.org>
52361
52362         * lib/c-stack.c (die): Use raise.
52363         * modules/c-stack (Depends-on): Add raise.
52364
52365 2008-04-28  Bruno Haible  <bruno@clisp.org>
52366
52367         Expect rpmatch to be declared.
52368         * lib/yesno.c (rpmatch): Remove declaration.
52369
52370         Declare rpmatch.
52371         * lib/stdlib.in.h (rpmatch): New declaration.
52372         * lib/rpmatch.c: Include <stdlib.h> first.
52373         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
52374         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
52375         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
52376         HAVE_RPMATCH.
52377         * modules/rpmatch (Depends-on): Add stdlib, extensions.
52378         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52379         (Include): Set to <stdlib.h>.
52380         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
52381         HAVE_RPMATCH.
52382         * NEWS: Document the change.
52383
52384 2008-04-28  Bruno Haible  <bruno@clisp.org>
52385
52386         Change rpmatch to use nl_langinfo when appropriate.
52387         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
52388         (N_): New macro.
52389         (localized_pattern): New function/macro.
52390         (try): Remove match, nomatch arguments. Copy the pattern into safe
52391         memory before caching it.
52392         (rpmatch): Use localized_pattern. Add translator comments.
52393         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
52394         Suggested by Eric Blake.
52395         * modules/rpmatch (Depends-on): Add stdbool.
52396
52397 2008-04-28  Eric Blake  <ebb9@byu.net>
52398
52399         Add rawmemchr module, matching glibc.
52400         * modules/string (Makefile.am): New indicator.
52401         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
52402         * lib/string.in.h (rawmemchr): Declare when appropriate.
52403         * modules/rawmemchr: New file.
52404         * m4/rawmemchr.m4: Likewise.
52405         * lib/rawmemchr.c: Likewise.
52406         * modules/rawmemchr-tests: Likewise.
52407         * tests/test-rawmemchr.c: Likewise.
52408         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
52409         module.
52410         * modules/strchrnul (Depends-on): Add rawmemchr.
52411         * lib/strchrnul.c (strchrnul): Optimize a corner case.
52412
52413         Whitespace cleanup.
52414         * tests/test-strchrnul.c: Reindent.
52415         * lib/strchrnul.c: Likewise.
52416
52417         Optimize and test strchrnul.
52418         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
52419         * modules/strchrnul-tests: New file.
52420         * tests/test-strchrnul.c: Likewise.
52421
52422         Remove intprops dependency.
52423         * modules/memchr (Depends-on): Remove intprops.
52424         * modules/memrchr (Depends-on): Likewise.
52425         * modules/memchr2 (Depends-on): Likewise.
52426         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
52427         * lib/memrchr.c (__memrchr): Likewise.
52428         * lib/memrchr2.c (memchr2): Likewise.
52429         Reported by Simon Josefsson.
52430
52431 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52432
52433         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
52434         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52435
52436 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52437
52438         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
52439
52440         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
52441
52442         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
52443
52444         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
52445         declarations.
52446         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
52447
52448         * m4/inet_pton.m4: Don't check for header files.
52449
52450         * m4/inet_ntop.m4: Don't check for header files.
52451
52452 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52453
52454         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
52455         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
52456         trigger for cygwin).
52457         Reported by Bruno Haible  <bruno@clisp.org>.
52458
52459 2008-04-28  Bruno Haible  <bruno@clisp.org>
52460
52461         * doc/posix-functions/strdup.texi: Mention mingw problem.
52462
52463 2008-04-27  Bruno Haible  <bruno@clisp.org>
52464
52465         * modules/stat-time-tests (Depends-on): Add sleep.
52466         * tests/test-stat-time.c (force_unlink): New function.
52467         (cleanup): Use it.
52468         (test_mtime): Remove the ctime related tests.
52469         (test_ctime): New function, containing the ctime related tests.
52470         (main): Call test_ctime, except on native Windows platforms.
52471
52472 2008-04-27  Bruno Haible  <bruno@clisp.org>
52473
52474         * lib/rpmatch.c (rpmatch): Add some comments.
52475         Reported by James Youngman <jay@gnu.org>.
52476
52477 2008-04-27  Bruno Haible  <bruno@clisp.org>
52478
52479         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
52480         quiet NaNs.
52481
52482 2008-04-27  Bruno Haible  <bruno@clisp.org>
52483
52484         Make test-yesno.sh work on mingw.
52485         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
52486         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
52487         (main): Set stdin to binary mode.
52488         * modules/yesno-tests (Depends-on): Add binary-io.
52489
52490 2008-04-27  Bruno Haible  <bruno@clisp.org>
52491
52492         Fix 'isfinite' on x86, x86_64, ia64 platforms.
52493         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
52494         argument that lie outside the IEEE 854 domain.
52495         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
52496         (gl_ISFINITE): Use it.
52497         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
52498
52499 2008-04-27  Bruno Haible  <bruno@clisp.org>
52500
52501         Allow local renaming in config.h.
52502         * lib/memrchr.c (memrchr): Don't undefine outside libc.
52503
52504 2008-04-27  Bruno Haible  <bruno@clisp.org>
52505
52506         * lib/memchr.c (__memchr): Change type of 'i'.
52507         * lib/memchr2.c (memchr2): Likewise.
52508
52509 2008-04-26  Eric Blake  <ebb9@byu.net>
52510         and Bruno Haible  <bruno@clisp.org>
52511
52512         Optimize and test memrchr.
52513         * modules/memrchr (Depends-on): Add intprops.
52514         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
52515         * modules/memrchr-tests: New file.
52516         * tests/test-memrchr.c: New file.
52517
52518 2008-04-26  Bruno Haible  <bruno@clisp.org>
52519
52520         Add tentative support for DragonFly BSD.
52521         * lib/stdio-impl.h: Add macros for DragonFly BSD.
52522         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
52523         fp.
52524         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52525         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
52526         * lib/fpurge.c (fpurge): Likewise.
52527         * lib/freadable.c (freaadable): Likewise.
52528         * lib/freadahead.c (freadahead): Likewise.
52529         * lib/freading.c (freading): Likewise.
52530         * lib/freadptr.c (freadptr): Likewise.
52531         * lib/freadseek.c (freadptrinc): Likewise.
52532         * lib/fseeko.c (fseeko): Likewise.
52533         * lib/fseterr.c (fseterr): Likewise.
52534         * lib/fwritable.c (fwritable): Likewise.
52535         * lib/fwriting.c (fwriting): Likewise.
52536
52537 2008-04-26  Bruno Haible  <bruno@clisp.org>
52538
52539         * lib/stdio-impl.h: New file.
52540         * lib/fbufmode.c: Include stdio-impl.h.
52541         (fbufmode): Use fp_, remove redundant #defines.
52542         * lib/fflush.c: Include stdio-impl.h.
52543         (clear_ungetc_buffer): Remove redundant #defines.
52544         * lib/fpurge.c: Include stdio-impl.h.
52545         (fpurge): Remove redundant #defines.
52546         * lib/freadable.c: Include stdio-impl.h.
52547         (freadable): Remove redundant #defines.
52548         * lib/freadahead.c: Include stdio-impl.h.
52549         (freadahead): Remove redundant #defines.
52550         * lib/freading.c: Include stdio-impl.h.
52551         (freading): Remove redundant #defines.
52552         * lib/freadptr.c: Include stdio-impl.h.
52553         (freadptr): Remove redundant #defines.
52554         * lib/freadseek.c: Include stdio-impl.h.
52555         (freadptrinc): Remove redundant #defines.
52556         * lib/fseeko.c: Include stdio-impl.h.
52557         (rpl_fseeko): Remove redundant #defines.
52558         * lib/fseterr.c: Include stdio-impl.h.
52559         (fseterr): Remove redundant #defines.
52560         * lib/fwritable.c: Include stdio-impl.h.
52561         (fwritable: Remove redundant #defines.
52562         * lib/fwriting.c: Include stdio-impl.h.
52563         (fwriting): Remove redundant #defines.
52564         * modules/fbufmode (Files): Add lib/stdio-impl.h.
52565         * modules/fflush (Files): Likewise.
52566         * modules/fpurge (Files): Likewise.
52567         * modules/freadable (Files): Likewise.
52568         * modules/freadahead (Files): Likewise.
52569         * modules/freading (Files): Likewise.
52570         * modules/freadptr (Files): Likewise.
52571         * modules/freadseek (Files): Likewise.
52572         * modules/fseeko (Files): Likewise.
52573         * modules/fseterr (Files): Likewise.
52574         * modules/fwritable (Files): Likewise.
52575         * modules/fwriting (Files): Likewise.
52576
52577 2008-04-26  Bruno Haible  <bruno@clisp.org>
52578
52579         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52580         restore_seek_optimization, update_fpos_cache): New functions, extracted
52581         from rpl_fflush.
52582         (rpl_fflush): Use them.
52583         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
52584         (gl_REPLACE_FFLUSH): Use it.
52585
52586 2008-04-26  Bruno Haible  <bruno@clisp.org>
52587
52588         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
52589         on Solaris.
52590         * tests/test-xstrtoimax.sh: Likewise.
52591         * tests/test-xstrtoumax.sh: Likewise.
52592         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52593
52594 2008-04-26  Bruno Haible  <bruno@clisp.org>
52595
52596         * modules/memchr-tests: New file.
52597         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
52598
52599 2008-04-26  Eric Blake  <ebb9@byu.net>
52600             Bruno Haible  <bruno@clisp.org>
52601
52602         * lib/memchr.c: Include intprops.h.
52603         (__memchr): Optimize parallel detection of matching bytes. Rename local
52604         variables. Add explanatory comments.
52605
52606 2008-04-26  Bruno Haible  <bruno@clisp.org>
52607
52608         Fix module 'memchr', broken since 2000-10-28.
52609         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
52610
52611 2008-04-26  Bruno Haible  <bruno@clisp.org>
52612
52613         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
52614         comments.
52615
52616 2008-04-25  Eric Blake  <ebb9@byu.net>
52617
52618         Use native fstatat on cygwin 1.7.0.
52619         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
52620         first.
52621
52622 2008-04-23  Eric Blake  <ebb9@byu.net>
52623
52624         Improve memchr2 performance.
52625         * lib/memchr2.c (memchr2): Further optimize parallel detection of
52626         NUL bytes.
52627         * modules/memchr2 (Depends-on): Use intprops.h.
52628
52629 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52630
52631         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
52632         an inline function instead of a CPP macro.  Patch by Ben Pfaff
52633         <blp@cs.stanford.edu>.
52634
52635 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52636
52637         * lib/arpa_inet.in.h: New file.
52638
52639         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
52640         (Makefile.am): Sed in substitute header file.
52641
52642         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
52643         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
52644
52645         * modules/inet_ntop (configure.ac): Use
52646         gl_ARPA_INET_MODULE_INDICATOR.
52647
52648         * modules/inet_pton (configure.ac): Use
52649         gl_ARPA_INET_MODULE_INDICATOR.
52650
52651 2008-04-22  Jim Meyering  <meyering@redhat.com>
52652
52653         * modules/verify (License): Re-license as LGPLv2+.
52654
52655 2008-04-22  Simon Josefsson  <simon@josefsson.org>
52656
52657         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
52658         parameter to void* as per POSIX standard (MinGW uses char*).
52659
52660 2008-04-21  Bruno Haible  <bruno@clisp.org>
52661
52662         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52663         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52664         Define to replacements if REPLACE_ISWCNTRL is 1.
52665         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
52666         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
52667         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
52668         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
52669         what it fixes.
52670         * doc/posix-functions/iswalpha.texi: Likewise.
52671         * doc/posix-functions/iswblank.texi: Likewise.
52672         * doc/posix-functions/iswcntrl.texi: Likewise.
52673         * doc/posix-functions/iswdigit.texi: Likewise.
52674         * doc/posix-functions/iswgraph.texi: Likewise.
52675         * doc/posix-functions/iswlower.texi: Likewise.
52676         * doc/posix-functions/iswprint.texi: Likewise.
52677         * doc/posix-functions/iswpunct.texi: Likewise.
52678         * doc/posix-functions/iswspace.texi: Likewise.
52679         * doc/posix-functions/iswupper.texi: Likewise.
52680         * doc/posix-functions/iswxdigit.texi: Likewise.
52681         Reported by Alain Guibert.
52682
52683 2008-04-21  Bruno Haible  <bruno@clisp.org>
52684
52685         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
52686         Patch by Alain Guibert.
52687
52688 2008-04-21  Bruno Haible  <bruno@clisp.org>
52689
52690         Fix test failures on mingw.
52691         * tests/test-xstrtol.c (print_no_progname): New function.
52692         (main): Install it in error_print_progname hook.
52693         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
52694         * tests/test-xstrtoimax.sh: Likewise.
52695         * tests/test-xstrtoumax.sh: Likewise.
52696
52697 2008-04-21  Bruno Haible  <bruno@clisp.org>
52698
52699         Fix test failure on mingw.
52700         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
52701
52702 2008-04-21  Bruno Haible  <bruno@clisp.org>
52703
52704         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
52705         Actually assign a value.
52706
52707 2008-04-20  Bruno Haible  <bruno@clisp.org>
52708
52709         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
52710         take 2.
52711         * lib/canonicalize.c (canonicalize_file_name): Elide if the
52712         'canonicalize-lgpl' module is also used.
52713         * lib/canonicalize-lgpl.c: Undo last change.
52714         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
52715
52716 2008-04-20  Bruno Haible  <bruno@clisp.org>
52717
52718         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
52719         config.h. Provide _mkdir based fallback for mingw.
52720         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
52721         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
52722         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
52723         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
52724         rather than defining mkdir in config.h.
52725         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
52726         (gl_SYS_STAT_H_DEFAULTS): New macro.
52727         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
52728         HAVE_IO_H any more.
52729         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
52730         HAVE_DECL_MKDIR and HAVE_IO_H.
52731
52732 2008-04-20  Bruno Haible  <bruno@clisp.org>
52733
52734         * lib/isapipe.c: Port to native Windows platforms.
52735
52736 2008-04-20  Bruno Haible  <bruno@clisp.org>
52737
52738         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
52739
52740 2008-04-21  Eric Blake  <ebb9@byu.net>
52741
52742         Work around preprocessors that don't handle UINTMAX_MAX.
52743         * lib/memchr2.c (memchr2): Avoid embedded #if.
52744         Reported by Alain Guibert, fix suggested by Bruno Haible.
52745
52746 2008-04-21  Simon Josefsson  <simon@josefsson.org>
52747
52748         * doc/posix-functions/strftime.texi (strftime): Explain better
52749         Windows incompatibility.  Suggested by Micah Cowan
52750         <micah@cowan.name>.
52751
52752 2008-04-20  Bruno Haible  <bruno@clisp.org>
52753
52754         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
52755         unistr/u8-mblen.
52756
52757 2008-04-20  Bruno Haible  <bruno@clisp.org>
52758
52759         Fix test failure on platforms with non-GNU iconv.
52760         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
52761         (U_TO_U8): Use it, rather than u16_to_u8.
52762         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
52763         units at the end of the input string.
52764         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
52765
52766 2008-04-20  Bruno Haible  <bruno@clisp.org>
52767
52768         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
52769         when the resulting length is 0.
52770         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
52771
52772 2008-04-20  Bruno Haible  <bruno@clisp.org>
52773
52774         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
52775         works.
52776         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
52777
52778 2008-04-20  Bruno Haible  <bruno@clisp.org>
52779
52780         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
52781         * modules/tsearch-tests (configure.ac): Test for initstate function.
52782
52783 2008-04-20  Bruno Haible  <bruno@clisp.org>
52784
52785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
52786         for nlink_t if missing.
52787         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
52788
52789 2008-04-19  Bruno Haible  <bruno@clisp.org>
52790
52791         Work around snprintf bug on Linux libc5.
52792         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
52793         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52794         gl_SNPRINTF_SIZE1.
52795         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52796         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
52797         that test failed.
52798         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
52799         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
52800         * modules/snprintf (Files): Add m4/printf.m4.
52801         * modules/vsnprintf (Files): Likewise.
52802         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
52803         * doc/posix-functions/vsnprintf.texi: Likewise.
52804
52805 2008-04-19  Bruno Haible  <bruno@clisp.org>
52806
52807         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
52808         from 0.0058 to less than 10^-7.
52809
52810 2008-04-19  Bruno Haible  <bruno@clisp.org>
52811
52812         Fix rounding when a precision is given.
52813         * lib/vasnprintf.c (is_borderline): New function.
52814         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
52815         9...9x.
52816         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
52817         %e, %g.
52818         * tests/test-vasprintf-posix.c (test_function): Likewise.
52819         * tests/test-snprintf-posix.h (test_function): Likewise.
52820         * tests/test-sprintf-posix.h (test_function): Likewise.
52821         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
52822         * tests/test-printf-posix.h (test_function): Likewise.
52823         * tests/test-printf-posix.output: Update.
52824         Reported by John Darrington <john@darrington.wattle.id.au> via
52825         Ben Pfaff <blp@cs.stanford.edu>.
52826
52827 2008-04-18  Simon Josefsson  <simon@josefsson.org>
52828
52829         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
52830         Suggested by Bruno Haible <bruno@clisp.org>.
52831
52832 2008-04-17  Bruno Haible  <bruno@clisp.org>
52833
52834         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
52835         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
52836         implementation.
52837         Patch by Bruce Merry <bmerry@gmail.com>.
52838
52839 2008-04-17  Simon Josefsson  <simon@josefsson.org>
52840
52841         * doc/posix-functions/strftime.texi (strftime): Mention that %e
52842         doesn't work under Windows.
52843
52844 2008-04-16  Bruno Haible  <bruno@clisp.org>
52845
52846         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
52847         New macros.
52848         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
52849         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
52850         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
52851         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
52852         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
52853         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
52854         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
52855         macros.
52856         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
52857         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
52858         Northern Sotho, Uighur.
52859
52860 2008-04-16  Bruno Haible  <bruno@clisp.org>
52861
52862         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
52863         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
52864         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
52865         Reported by Daniel Bergström <daniel@octocode.com>.
52866
52867 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
52868             Bruno Haible  <bruno@clisp.org>
52869
52870         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
52871         function.
52872         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
52873         New functions, mostly extracted from gl_locale_name_default.
52874         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
52875
52876 2008-04-16  Eric Blake  <ebb9@byu.net>
52877
52878         Adjust strtod detection to catch glibc 2.7 bug.
52879         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
52880         Reported by John Gatewood Ham.
52881
52882 2008-04-16  Bruno Haible  <bruno@clisp.org>
52883
52884         Add tentative support for Linux libc5.
52885         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
52886         * lib/fpurge.c (fpurge): Likewise.
52887         * lib/freadable.c (freadable): Likewise.
52888         * lib/freadahead.c (freadahead): Likewise.
52889         * lib/freading.c (freading): Likewise.
52890         * lib/freadptr.c (freadptr): Likewise.
52891         * lib/freadseek.c (freadptrinc): Likewise.
52892         * lib/fseeko.c (rpl_fseeko): Likewise.
52893         * lib/fseterr.c (fseterr): Likewise.
52894         * lib/fwritable.c (fwritable): Likewise.
52895         * lib/fwriting.c (fwriting): Likewise.
52896         Reported by Alain Guibert <alguibert+bts@free.fr>.
52897
52898 2008-04-15  Bruno Haible  <bruno@clisp.org>
52899
52900         * modules/mathl (configure.ac): Define module indicator.
52901
52902 2008-04-15  Bruno Haible  <bruno@clisp.org>
52903
52904         * lib/logl.c (logl): Remove unused variables.
52905
52906 2008-04-15  Bruno Haible  <bruno@clisp.org>
52907
52908         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
52909         fails.
52910
52911 2008-04-15  Bruno Haible  <bruno@clisp.org>
52912
52913         * lib/trim.c (trim2): Fix argument of isspace() macro.
52914
52915 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
52916
52917         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
52918         to 0.
52919         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
52920
52921 2008-04-14  Bruno Haible  <bruno@clisp.org>
52922
52923         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
52924         AC_LANG_PROGRAM argument.
52925         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
52926         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
52927         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
52928         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52929         * m4/math_h.m4 (gl_MATH_H): Likewise.
52930         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
52931         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52932         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52933         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
52934         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52935         * m4/regex.m4 (gl_REGEX): Likewise.
52936         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
52937         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
52938         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52939         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
52940         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52941         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52942         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52943         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52944
52945 2008-04-14  Jim Meyering  <meyering@redhat.com>
52946
52947         test-strtod: fix typos: s/abs/fabs/
52948         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
52949
52950 2008-04-13  Bruno Haible  <bruno@clisp.org>
52951
52952         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
52953         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
52954         module is also used and while not building the reloc-wrapper.
52955
52956 2008-04-13  Bruno Haible  <bruno@clisp.org>
52957
52958         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
52959
52960 2008-04-13  Bruno Haible  <bruno@clisp.org>
52961
52962         Fix AIX compilation failure introduced on 2008-04-02.
52963         * tests/test-frexp.c (exp): Undefine before redefining.
52964         * tests/test-frexpl.c (exp): Likewise.
52965
52966 2008-04-13  Bruno Haible  <bruno@clisp.org>
52967
52968         Work around a HP-UX stdio bug.
52969         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
52970         * tests/test-ftello.c (main): Likewise.
52971         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
52972         * doc/posix-functions/ftello.texi: Likewise.
52973
52974 2008-04-13  Bruno Haible  <bruno@clisp.org>
52975
52976         Make test-signbit pass on HP-UX/hppa.
52977         * tests/test-signbit.c (minus_zerol): New variable.
52978         (test_signbitl): Use it.
52979
52980 2008-04-13  Bruno Haible  <bruno@clisp.org>
52981
52982         Make truncl work on OSF/1 4.0.
52983         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
52984         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52985         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
52987         HAVE_DECL_TRUNCL.
52988         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
52989         HAVE_DECL_TRUNCL.
52990         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
52991
52992 2008-04-13  Bruno Haible  <bruno@clisp.org>
52993
52994         * lib/unictype.h: Remove trailing comma from enumeration definitions.
52995
52996 2008-04-13  Bruno Haible  <bruno@clisp.org>
52997
52998         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
52999         expression, so as to avoid HP-UX 11 cc compiler bug.
53000
53001 2008-04-13  Bruno Haible  <bruno@clisp.org>
53002
53003         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
53004
53005 2008-04-13  Bruno Haible  <bruno@clisp.org>
53006
53007         * lib/git-merge-changelog.c: Remove empty declaration outside of
53008         functions.
53009
53010 2008-04-13  Bruno Haible  <bruno@clisp.org>
53011
53012         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
53013
53014 2008-04-13  Bruno Haible  <bruno@clisp.org>
53015
53016         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
53017         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
53018         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
53019         also if it exists but lacks definitions of the SHUT_* macros.
53020         * modules/sys_socket (Description): Update.
53021         Reported by Elbert Pol <e.pol@chello.nl>.
53022
53023 2008-04-13  Bruno Haible  <bruno@clisp.org>
53024
53025         * lib/localcharset.c (OS2): Don't redefine if already defined.
53026         Reported by Elbert Pol <e.pol@chello.nl>.
53027
53028 2008-04-13  Bruno Haible  <bruno@clisp.org>
53029
53030         * lib/binary-io.h [__EMX__]: Include <io.h>.
53031         Reported by Elbert Pol <e.pol@chello.nl>.
53032
53033 2008-04-12  Bruno Haible  <bruno@clisp.org>
53034
53035         * lib/fpucw.h: Enable the definitions also for x86_64.
53036         Needed for NetBSD/x86_64.
53037         Reported by Thomas Klausner <tk@giga.or.at>.
53038
53039 2008-04-12  Bruno Haible  <bruno@clisp.org>
53040
53041         * tests/test-strtod.c: Include isnand.h.
53042         (main): Use isnand instead of isnan.
53043         Reported by Jim Meyering.
53044
53045 2008-04-12  Bruno Haible  <bruno@clisp.org>
53046
53047         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
53048         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53049
53050 2008-04-12  Jim Meyering  <meyering@redhat.com>
53051
53052         * m4/math_h.m4 (gl_MATH_H): Fix typos.
53053
53054 2008-04-12  Bruno Haible  <bruno@clisp.org>
53055
53056         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
53057         Reported by Elbert Pol <e.pol@chello.nl>.
53058
53059 2008-04-12  Eric Blake  <ebb9@byu.net>
53060
53061         Work around Solaris 10 math.h bug.
53062         * m4/math_h.m4 (gl_MATH_H): Check for bug.
53063         (gl_MATH_H_DEFAULTS): Set up default.
53064         * modules/math (Makefile.am): Replace new indicators.
53065         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
53066         * tests/test-math.c (main): Test this.
53067         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
53068         * doc/posix-headers/math.texi (math.h): Mention bug.
53069         Reported by Nelson H. F. Beebe and Jim Meyering.
53070
53071 2008-04-11  Bruno Haible  <bruno@clisp.org>
53072
53073         Adapt to future versions of Apple GCC.
53074         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
53075         Reported by Peter O'Gorman <peter@pogma.com>.
53076
53077 2008-04-11  Bruno Haible  <bruno@clisp.org>
53078
53079         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
53080
53081 2008-04-11  Bruno Haible  <bruno@clisp.org>
53082
53083         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
53084
53085         * modules/getaddrinfo-tests (Makefile.am): Define
53086         test_getaddrinfo_LDADD.
53087
53088 2008-04-11  Bruno Haible  <bruno@clisp.org>
53089
53090         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
53091         (init): Fix syntax error.
53092         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
53093         is declared.
53094
53095 2008-04-11  Bruno Haible  <bruno@clisp.org>
53096
53097         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
53098         * modules/glob (Depends-on): Add stdbool.
53099
53100 2008-04-11  Bruno Haible  <bruno@clisp.org>
53101
53102         * lib/trim.c: Include <string.h>.
53103
53104 2008-04-11  Eric Blake  <ebb9@byu.net>
53105
53106         Avoid compile failure on OS/2.
53107         * lib/regex_internal.h (internal_function): Disable optimization
53108         on OS/2 (__EMX__), where it caused compiler error.
53109         Reported by Elbert Pol.
53110
53111 2008-04-11  Bruno Haible  <bruno@clisp.org>
53112
53113         Flush the standard error stream before aborting. Needed on mingw.
53114         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
53115         * tests/test-array_list.c (ASSERT): Likewise.
53116         * tests/test-array_oset.c (ASSERT): Likewise.
53117         * tests/test-avltree_list.c (ASSERT): Likewise.
53118         * tests/test-avltree_oset.c (ASSERT): Likewise.
53119         * tests/test-avltreehash_list.c (ASSERT): Likewise.
53120         * tests/test-binary-io.c (ASSERT): Likewise.
53121         * tests/test-byteswap.c (ASSERT): Likewise.
53122         * tests/test-c-ctype.c (ASSERT): Likewise.
53123         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
53124         * tests/test-c-strcasestr.c (ASSERT): Likewise.
53125         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
53126         * tests/test-c-strstr.c (ASSERT): Likewise.
53127         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
53128         * tests/test-canonicalize.c (ASSERT): Likewise.
53129         * tests/test-carray_list.c (ASSERT): Likewise.
53130         * tests/test-ceilf1.c (ASSERT): Likewise.
53131         * tests/test-ceilf2.c (ASSERT): Likewise.
53132         * tests/test-ceill.c (ASSERT): Likewise.
53133         * tests/test-count-one-bits.c (ASSERT): Likewise.
53134         * tests/test-fbufmode.c (ASSERT): Likewise.
53135         * tests/test-fflush2.c (ASSERT): Likewise.
53136         * tests/test-floorf1.c (ASSERT): Likewise.
53137         * tests/test-floorf2.c (ASSERT): Likewise.
53138         * tests/test-floorl.c (ASSERT): Likewise.
53139         * tests/test-fopen.c (ASSERT): Likewise.
53140         * tests/test-fpending.c (ASSERT): Likewise.
53141         * tests/test-fprintf-posix.c (ASSERT): Likewise.
53142         * tests/test-fpurge.c (ASSERT): Likewise.
53143         * tests/test-freadable.c (ASSERT): Likewise.
53144         * tests/test-freadahead.c (ASSERT): Likewise.
53145         * tests/test-freading.c (ASSERT): Likewise.
53146         * tests/test-freadptr.c (ASSERT): Likewise.
53147         * tests/test-freadptr2.c (ASSERT): Likewise.
53148         * tests/test-freadseek.c (ASSERT): Likewise.
53149         * tests/test-freopen.c (ASSERT): Likewise.
53150         * tests/test-frexp.c (ASSERT): Likewise.
53151         * tests/test-frexpl.c (ASSERT): Likewise.
53152         * tests/test-fseek.c (ASSERT): Likewise.
53153         * tests/test-fseeko.c (ASSERT): Likewise.
53154         * tests/test-fstrcmp.c (ASSERT): Likewise.
53155         * tests/test-ftell.c (ASSERT): Likewise.
53156         * tests/test-ftello.c (ASSERT): Likewise.
53157         * tests/test-func.c (ASSERT): Likewise.
53158         * tests/test-fwritable.c (ASSERT): Likewise.
53159         * tests/test-fwriting.c (ASSERT): Likewise.
53160         * tests/test-getdelim.c (ASSERT): Likewise.
53161         * tests/test-getline.c (ASSERT): Likewise.
53162         * tests/test-i-ring.c (ASSERT): Likewise.
53163         * tests/test-iconv-utf.c (ASSERT): Likewise.
53164         * tests/test-iconv.c (ASSERT): Likewise.
53165         * tests/test-isfinite.c (ASSERT): Likewise.
53166         * tests/test-isnand.c (ASSERT): Likewise.
53167         * tests/test-isnanf.c (ASSERT): Likewise.
53168         * tests/test-isnanl.h (ASSERT): Likewise.
53169         * tests/test-ldexpl.c (ASSERT): Likewise.
53170         * tests/test-linked_list.c (ASSERT): Likewise.
53171         * tests/test-linkedhash_list.c (ASSERT): Likewise.
53172         * tests/test-localename.c (ASSERT): Likewise.
53173         * tests/test-lseek.c (ASSERT): Likewise.
53174         * tests/test-mbscasecmp.c (ASSERT): Likewise.
53175         * tests/test-mbscasestr1.c (ASSERT): Likewise.
53176         * tests/test-mbscasestr2.c (ASSERT): Likewise.
53177         * tests/test-mbscasestr3.c (ASSERT): Likewise.
53178         * tests/test-mbscasestr4.c (ASSERT): Likewise.
53179         * tests/test-mbschr.c (ASSERT): Likewise.
53180         * tests/test-mbscspn.c (ASSERT): Likewise.
53181         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
53182         * tests/test-mbspbrk.c (ASSERT): Likewise.
53183         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
53184         * tests/test-mbsrchr.c (ASSERT): Likewise.
53185         * tests/test-mbsspn.c (ASSERT): Likewise.
53186         * tests/test-mbsstr1.c (ASSERT): Likewise.
53187         * tests/test-mbsstr2.c (ASSERT): Likewise.
53188         * tests/test-mbsstr3.c (ASSERT): Likewise.
53189         * tests/test-memchr2.c (ASSERT): Likewise.
53190         * tests/test-memmem.c (ASSERT): Likewise.
53191         * tests/test-open.c (ASSERT): Likewise.
53192         * tests/test-printf-frexp.c (ASSERT): Likewise.
53193         * tests/test-printf-frexpl.c (ASSERT): Likewise.
53194         * tests/test-printf-posix.c (ASSERT): Likewise.
53195         * tests/test-quotearg.c (ASSERT): Likewise.
53196         * tests/test-rbtree_list.c (ASSERT): Likewise.
53197         * tests/test-rbtree_oset.c (ASSERT): Likewise.
53198         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
53199         * tests/test-round1.c (ASSERT): Likewise.
53200         * tests/test-roundf1.c (ASSERT): Likewise.
53201         * tests/test-roundl.c (ASSERT): Likewise.
53202         * tests/test-signbit.c (ASSERT): Likewise.
53203         * tests/test-sleep.c (ASSERT): Likewise.
53204         * tests/test-snprintf-posix.c (ASSERT): Likewise.
53205         * tests/test-snprintf.c (ASSERT): Likewise.
53206         * tests/test-sprintf-posix.c (ASSERT): Likewise.
53207         * tests/test-stat-time.c (ASSERT): Likewise.
53208         * tests/test-strcasestr.c (ASSERT): Likewise.
53209         * tests/test-strerror.c (ASSERT): Likewise.
53210         * tests/test-striconv.c (ASSERT): Likewise.
53211         * tests/test-striconveh.c (ASSERT): Likewise.
53212         * tests/test-striconveha.c (ASSERT): Likewise.
53213         * tests/test-strsignal.c (ASSERT): Likewise.
53214         * tests/test-strstr.c (ASSERT): Likewise.
53215         * tests/test-strtod.c (ASSERT): Likewise.
53216         * tests/test-trunc1.c (ASSERT): Likewise.
53217         * tests/test-trunc2.c (ASSERT): Likewise.
53218         * tests/test-truncf1.c (ASSERT): Likewise.
53219         * tests/test-truncf2.c (ASSERT): Likewise.
53220         * tests/test-truncl.c (ASSERT): Likewise.
53221         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
53222         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
53223         * tests/test-vasnprintf.c (ASSERT): Likewise.
53224         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
53225         * tests/test-vasprintf.c (ASSERT): Likewise.
53226         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
53227         * tests/test-vprintf-posix.c (ASSERT): Likewise.
53228         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
53229         * tests/test-vsnprintf.c (ASSERT): Likewise.
53230         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
53231         * tests/test-wcwidth.c (ASSERT): Likewise.
53232         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
53233         * tests/test-xprintf-posix.c (ASSERT): Likewise.
53234         * tests/test-xvasprintf.c (ASSERT): Likewise.
53235         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
53236         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
53237         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
53238         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
53239         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
53240         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
53241         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
53242         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
53243         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
53244         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
53245         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
53246         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
53247         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
53248         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
53249         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
53250         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
53251         * tests/unictype/test-block_list.c (ASSERT): Likewise.
53252         * tests/unictype/test-block_of.c (ASSERT): Likewise.
53253         * tests/unictype/test-block_test.c (ASSERT): Likewise.
53254         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
53255         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
53256         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
53257         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
53258         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
53259         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
53260         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
53261         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
53262         * tests/unictype/test-combining.c (ASSERT): Likewise.
53263         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
53264         * tests/unictype/test-digit.c (ASSERT): Likewise.
53265         * tests/unictype/test-mirror.c (ASSERT): Likewise.
53266         * tests/unictype/test-numeric.c (ASSERT): Likewise.
53267         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
53268         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
53269         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
53270         * tests/unictype/test-scripts.c (ASSERT): Likewise.
53271         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
53272         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
53273         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
53274         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
53275         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
53276         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
53277         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
53278         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
53279         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
53280         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
53281         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
53282         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
53283         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
53284         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
53285         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
53286         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
53287         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
53288         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
53289         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
53290         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
53291         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
53292         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
53293         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
53294         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
53295         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
53296         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
53297         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
53298         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
53299         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
53300         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
53301         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
53302         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
53303         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
53304         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
53305         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
53306         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
53307         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
53308         Reported by Eric Blake.
53309
53310 2008-04-11  Bruno Haible  <bruno@clisp.org>
53311
53312         * lib/wchar.in.h: Tweak comment.
53313
53314 2008-04-11  Bruno Haible  <bruno@clisp.org>
53315
53316         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
53317         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
53318         gl_COMMON.
53319         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
53320
53321 2008-04-11  Bruno Haible  <bruno@clisp.org>
53322
53323         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
53324
53325 2008-04-11  Simon Josefsson  <simon@josefsson.org>
53326
53327         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
53328         of attempting to use non-existing /dev/*random.  Based on patch
53329         from Adam Strzelecki <ono@java.pl> in
53330         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
53331
53332 2008-04-08  Bruno Haible  <bruno@clisp.org>
53333
53334         Add tentative support for emx+gcc.
53335         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
53336         * lib/fpurge.c (fpurge): Likewise.
53337         * lib/freadable.c (freadable): Likewise.
53338         * lib/freadahead.c (freadahead): Likewise.
53339         * lib/freading.c (freading): Likewise.
53340         * lib/freadptr.c (freadptr): Likewise.
53341         * lib/freadseek.c (freadptrinc): Likewise.
53342         * lib/fseeko.c (rpl_fseeko): Likewise.
53343         * lib/fseterr.c (fseterr): Likewise.
53344         * lib/fwritable.c (fwritable): Likewise.
53345         * lib/fwriting.c (fwriting): Likewise.
53346         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
53347
53348 2008-04-09  Eric Blake  <ebb9@byu.net>
53349
53350         Avoid some autoconf warnings.
53351         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
53352         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
53353         * m4/afs.m4 (gl_AFS): Likewise.
53354         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
53355         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
53356         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53357         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
53358         (gl_INTEGER_TYPE_SUFFIX): Likewise.
53359         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
53360         (AC_CHECK_DECLS_ONCE): Likewise.
53361         Rename file...
53362         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
53363         gnulib-tool requires autoconf 2.59 or better.
53364         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
53365
53366 2008-04-08  Eric Blake  <ebb9@byu.net>
53367
53368         Use 'git describe --match' if present (added in git 1.5.5).
53369         * build-aux/git-version-gen: Limit result to tags that match 'v*'
53370         if possible.
53371
53372 2008-04-08  Bruno Haible  <bruno@clisp.org>
53373
53374         Add tentative support for OpenServer.
53375         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
53376         _ptr, _cnt.
53377         * lib/fpurge.c (fpurge): Likewise.
53378         * lib/freadable.c (freadable): Likewise.
53379         * lib/freadahead.c (freadahead): Likewise.
53380         * lib/freading.c (freading): Likewise.
53381         * lib/freadptr.c (freadptr): Likewise.
53382         * lib/freadseek.c (freadptrinc): Likewise.
53383         * lib/fseeko.c (rpl_fseeko): Likewise.
53384         * lib/fseterr.c (fseterr): Likewise.
53385         * lib/fwritable.c (fwritable): Likewise.
53386         * lib/fwriting.c (fwriting): Likewise.
53387         Reported by Roger Cornelius <rac@tenzing.org> and
53388         Brian K. White <brian@aljex.com>.
53389
53390 2008-04-06  Jim Meyering  <meyering@redhat.com>
53391
53392         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
53393
53394 2008-04-06  Bruno Haible  <bruno@clisp.org>
53395
53396         Avoid possible error with non-ASCII bytes in UTF-8 locales.
53397         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
53398         * tests/test-printf-posix.sh: Likewise.
53399         * tests/test-vfprintf-posix.sh: Likewise.
53400         * tests/test-vprintf-posix.sh: Likewise.
53401         * tests/test-xprintf-posix.sh: Likewise.
53402
53403 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53404
53405         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
53406         hide error from 'ls', needed on OS/2.
53407         Report by Elbert Pol <elbert.pol@gmail.com>.
53408
53409 2008-04-04  Eric Blake  <ebb9@byu.net>
53410
53411         Make test-fseeko.c failures meaningful.
53412         * tests/test-fseeko.c: Print line number on failure.
53413         * tests/test-fseek.c: Likewise.
53414         Reported by Nelson H. F. Beebe.
53415
53416         Improve strtod bug detection check.
53417         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
53418         required for Solaris 10.
53419         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
53420
53421 2008-04-04  Bruno Haible  <bruno@clisp.org>
53422
53423         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
53424         by m4/setenv.m4.
53425
53426 2008-04-03  Eric Blake  <ebb9@byu.net>
53427
53428         Ensure sane .version contents.
53429         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
53430         version string.
53431         * build-aux/git-version-gen: Improve documentation.
53432
53433         Make GNU make output nicer.
53434         * top/GNUmakefile [!_have-Makefile]: Add dependency on
53435         MAKECMDGOALS to enforce message for all command line targets.  Set
53436         srcdir for use in maint.mk.
53437
53438         Another maintainer tweak.
53439         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
53440         a target that regenerates version.
53441
53442 2008-04-03  Jim Meyering  <meyering@redhat.com>
53443
53444         vc-list-files: don't cause coreutils "make po-check" failure
53445         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
53446
53447 2008-04-03  Eric Blake  <ebb9@byu.net>
53448
53449         Allow VPATH usage of vc-list-files.
53450         * build-aux/vc-list-files (scriptversion): Add timestamp.
53451         (options): Add --help, --version, -C.
53452         (CVS): Support installed cvsu.
53453
53454 2008-04-02  Bruno Haible  <bruno@clisp.org>
53455
53456         Avoid some "statement with no effect" warnings from gcc.
53457         * tests/test-wctype.c (main): Explicitly ignore unused values.
53458         Reported by Jim Meyering.
53459
53460 2008-04-02  Jim Meyering  <meyering@redhat.com>
53461
53462         Avoid some warnings from "gcc -Wshadow".
53463         * tests/test-frexp.c (exp): Define to a different identifier.
53464         * tests/test-frexpl.c (exp): Likewise.
53465
53466 2008-04-03  Jim Meyering  <meyering@redhat.com>
53467
53468         bootstrap: remove dangling *.[ch] symlinks from lib
53469         * build-aux/bootstrap [dangling symlink removal]: Move find's
53470         -depth option to precede all others, to avoid a warning.
53471         Remove *.[ch] files too, and from "$source_base" (usually lib/).
53472
53473 2008-04-02  Bruno Haible  <bruno@clisp.org>
53474
53475         Avoid some warnings from "gcc -Wshadow".
53476         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
53477         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
53478         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
53479         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
53480         Reported by Jim Meyering.
53481
53482 2008-04-01  Bruno Haible  <bruno@clisp.org>
53483
53484         Fix test to work on IRIX 6.5 with cc.
53485         * tests/test-math.c (numeric_equal): New function.
53486         (main): Use it.
53487
53488 2008-04-01  Bruno Haible  <bruno@clisp.org>
53489
53490         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
53491
53492 2008-04-01  Bruno Haible  <bruno@clisp.org>
53493
53494         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
53495         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53496         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
53497         (Depends-on): Remove math.
53498
53499         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
53500         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53501         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
53502         (Depends-on): Remove math.
53503
53504         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
53505         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53506         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
53507         (Depends-on): Remove math.
53508         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
53509         (Depends-on): Remove math.
53510
53511         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
53512         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53513         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
53514         (Depends-on): Remove math.
53515         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
53516         (Depends-on): Remove math.
53517
53518         * tests/test-round1.c: Include nan.h.
53519         (main): Use NaNd instead of NAN.
53520         * modules/round-tests (Files): Add tests/nan.h.
53521
53522         * tests/test-trunc1.c: Include nan.h.
53523         (main): Use NaNd instead of NAN.
53524         * modules/trunc-tests (Files): Add tests/nan.h.
53525
53526         * tests/test-roundf1.c: Include nan.h.
53527         (main): Use NaNf instead of NAN.
53528         * modules/roundf-tests (Files): Add tests/nan.h.
53529
53530         * tests/test-truncf1.c: Include nan.h.
53531         (main): Use NaNf instead of NAN.
53532         * modules/truncf-tests (Files): Add tests/nan.h.
53533
53534         * tests/test-ceilf1.c: Include nan.h.
53535         (main): Use NaNf instead of NAN.
53536         * modules/ceilf-tests (Files): Add tests/nan.h.
53537
53538         * tests/test-floorf1.c: Include nan.h.
53539         (main): Use NaNf instead of NAN.
53540         * modules/floorf-tests (Files): Add tests/nan.h.
53541
53542         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
53543         (main): Use NaNf instead of NAN.
53544         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
53545
53546         * tests/test-isnand.c: Include nan.h instead of <math.h>.
53547         (main): Use NaNd instead of NAN.
53548         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
53549
53550         * tests/test-frexp.c: Include nan.h.
53551         (main): Use NaNd instead of NAN.
53552         * modules/frexp-tests (Files): Add tests/nan.h.
53553
53554         * lib/isnan.c: Don't include <math.h>.
53555         (FUNC): Don't use NAN macro.
53556         * modules/isnand-nolibm (Depends-on): Remove math.
53557         * modules/isnanf-nolibm (Depends-on): Remove math.
53558         * modules/isnanl (Depends-on): Remove math.
53559         * modules/isnanl-nolibm (Depends-on): Remove math.
53560
53561         * tests/nan.h: New file.
53562
53563 2008-04-01  Eric Blake  <ebb9@byu.net>
53564
53565         Fix typos.
53566         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
53567         values to be the right type.
53568
53569         For now, cater to gnulib strtod inaccuracies.
53570         * tests/test-strtod.c (main): Allow 1-ulp error on expected
53571         fractional results.  While not as nice from a QoI perspective, it
53572         is a quicker patch than correctly implementing decimal to binary
53573         rounding.
53574
53575 2008-03-31  Eric Blake  <ebb9@byu.net>
53576
53577         Guarantee a definition of NAN.
53578         * lib/math.in.h (NAN): Define if missing.
53579         * tests/test-math.c (main): Test it.
53580         * doc/posix-headers/math.texi (math.h): Document this.
53581         * lib/isnan.c (rpl_isnand): Use it.
53582         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
53583         * tests/test-floorf1.c (NaN): Likewise.
53584         * tests/test-frexp.c (NaN): Likewise.
53585         * tests/test-isnand.c (NaN): Likewise.
53586         * tests/test-isnanf.c (NaN): Likewise.
53587         * tests/test-round1.c (NaN): Likewise.
53588         * tests/test-roundf1.c (NaN): Likewise.
53589         * tests/test-snprintf-posix.h (NaN): Likewise.
53590         * tests/test-sprintf-posix.h (NaN): Likewise.
53591         * tests/test-trunc1.c (NaN): Likewise.
53592         * tests/test-truncf1.c (NaN): Likewise.
53593         * tests/test-vasnprintf-posix.c (NaN): Likewise.
53594         * tests/test-vasprintf-posix.c (NaN): Likewise.
53595         * modules/isnand-nolibm (Depends-on): Add math.
53596         * modules/isnanf-nolibm (Depends-on): Likewise.
53597         * modules/isnanl (Depends-on): Likewise.
53598         * modules/isnanl-nolibm (Depends-on): Likewise.
53599         * modules/snprintf-posix-tests (Depends-on): Likewise.
53600         * modules/sprintf-posix-tests (Depends-on): Likewise.
53601         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
53602         * modules/vsprintf-posix-tests (Depends-on): Likewise.
53603         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
53604         * modules/vasprintf-posix-tests (Depends-on): Likewise.
53605
53606 2008-03-31  Bruno Haible  <bruno@clisp.org>
53607
53608         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
53609         * doc/posix-functions/strtod.texi: Likewise.
53610
53611 2008-03-31  Bruno Haible  <bruno@clisp.org>
53612
53613         * tests/test-strtod.c (main): Don't use C99 syntax.
53614
53615 2008-03-31  Bruno Haible  <bruno@clisp.org>
53616
53617         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
53618         Reported by Eric Blake.
53619
53620 2008-03-31  Jim Meyering  <meyering@redhat.com>
53621
53622         Don't compare actual signbit return values.
53623         * tests/test-strtod.c (main): Rather, compare only their
53624         zero/non-zero nature.
53625
53626 2008-03-31  Eric Blake  <ebb9@byu.net>
53627
53628         More strtod documentation.
53629         * doc/posix-functions/strtod.texi (strtod): Interpret more test
53630         failures as distinct bugs.
53631
53632 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53633
53634         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
53635         Problem reported by Erik Benada in
53636         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
53637
53638 2008-03-30  Bruno Haible  <bruno@clisp.org>
53639
53640         * tests/test-strtod.c: Add comments about which assertion fails on which
53641         platform.
53642         * doc/posix-functions/strtod.texi: Add info about many more platforms.
53643
53644 2008-03-30  Eric Blake  <ebb9@byu.net>
53645
53646         Test signbit behavior on zeros.
53647         * tests/test-signbit.c (test_signbitf): Add tests for zero.
53648         (test_signbitd, test_signbitl): Likewise.
53649
53650         More strtod touchups.
53651         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
53652         sign of negative underflow, for now.  Use .5, not .1.
53653         * doc/posix-functions/strtod.texi (strtod): Mention these
53654         limitations.
53655         Reported by Jim Meyering.
53656
53657 2008-03-30  Bruno Haible  <bruno@clisp.org>
53658
53659         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
53660         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
53661
53662 2008-03-30  Bruno Haible  <bruno@clisp.org>
53663
53664         Avoid failure when attempting to return empty iconv results on some
53665         platforms.
53666         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
53667         allocation, don't report ENOMEM when the resulting string is empty.
53668
53669 2008-03-30  Bruno Haible  <bruno@clisp.org>
53670
53671         Fix buffer overrun.
53672         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
53673         Don't consider the width for tmp_length. Check count against tmp_length
53674         before doing the padding. Ensure enough allocation during padding.
53675
53676 2008-03-30  Eric Blake  <ebb9@byu.net>
53677
53678         strtod touchups.
53679         * lib/strtod.c (strtod): Avoid compiler warnings.
53680         Reported by Jim Meyering.
53681
53682 2008-03-30  Bruno Haible  <bruno@clisp.org>
53683
53684         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
53685         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
53686         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
53687         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
53688         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
53689         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
53690         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
53691         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
53692
53693         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
53694         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
53695         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
53696         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
53697         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
53698         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
53699         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
53700         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
53701
53702         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
53703         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
53704         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
53705         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
53706         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
53707         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
53708         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
53709         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
53710
53711         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
53712         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
53713
53714         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
53715         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
53716
53717         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
53718         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
53719
53720         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
53721         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
53722         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
53723
53724         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
53725         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
53726         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
53727
53728         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
53729         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
53730         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
53731
53732         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
53733         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
53734         * modules/vasprintf (Depends-on): Add EOVERFLOW.
53735
53736         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
53737         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
53738         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
53739         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
53740         (Depends-on): Add EOVERFLOW.
53741         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
53742         (Depends-on): Add EOVERFLOW.
53743         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53744         (Depends-on): Add EOVERFLOW.
53745         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53746         (Depends-on): Add EOVERFLOW.
53747         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53748         (Depends-on): Add EOVERFLOW.
53749         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53750         (Depends-on): Add EOVERFLOW.
53751         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53752         (Depends-on): Add EOVERFLOW.
53753         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53754         (Depends-on): Add EOVERFLOW.
53755
53756         * lib/sprintf.c (EOVERFLOW): Remove fallback.
53757         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
53758         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
53759
53760         * lib/snprintf.c (EOVERFLOW): Remove fallback.
53761         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
53762         * modules/snprintf (Depends-on): Add EOVERFLOW.
53763
53764         * lib/poll.c (EOVERFLOW): Remove fallback.
53765         * modules/poll (Depends-on): Add EOVERFLOW.
53766
53767         * lib/getugroups.c (EOVERFLOW): Remove fallback.
53768         * modules/getugroups (Depends-on): Add EOVERFLOW.
53769
53770         * lib/getdelim.c (EOVERFLOW): Remove fallback.
53771         * modules/getdelim (Depends-on): Add EOVERFLOW.
53772
53773         * lib/ftell.c (EOVERFLOW): Remove fallback.
53774         * modules/ftell (Depends-on): Add EOVERFLOW.
53775
53776         * lib/fprintf.c (EOVERFLOW): Remove fallback.
53777         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
53778         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
53779
53780         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
53781
53782         * modules/EOVERFLOW-tests: New file.
53783         * tests/test-EOVERFLOW.c: New file.
53784
53785         * modules/EOVERFLOW: New file.
53786         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
53787
53788 2008-03-30  Bruno Haible  <bruno@clisp.org>
53789
53790         Fix bug introduced on 2007-06-10.
53791         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
53792         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
53793
53794 2008-03-30  Bruno Haible  <bruno@clisp.org>
53795
53796         Improve freadseek's efficiency after ungetc.
53797         * lib/freadseek.c: Include freadahead.h.
53798         (freadptrinc): New function, extracted from freadseek.
53799         (freadseek): Use it in a loop. Use freadahead to determine the number
53800         of loop iterations.
53801         * modules/freadseek (Depends-on): Add freadahead.
53802         (configure.ac): Require AC_C_INLINE.
53803
53804 2008-03-30  Bruno Haible  <bruno@clisp.org>
53805
53806         * lib/freadseek.c (freadseek): Don't ignore the return value of
53807         freadptr.
53808
53809 2008-03-29  Eric Blake  <ebb9@byu.net>
53810
53811         Add hex float support.
53812         * modules/strtod (Depends-on): Add c-ctype.
53813         (Link): Mention POW_LIB.
53814         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
53815         whitespace between 'e' and exponent.
53816         * tests/test-strtod.c (main): Enable hex float tests.
53817         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
53818         now provides.
53819
53820         Document various strtod bugs, with some fixes.
53821         * doc/posix-functions/strtod.texi (strtod): Document bugs with
53822         "-0x", "inf", "nan", and hex constants.
53823         * doc/posix-functions/atof.texi (atof): Likewise.
53824         * modules/stdlib (Makefile.am): Support strtod.
53825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
53826         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
53827         detect additional strtod bugs.
53828         * lib/stdlib.in.h (rpl_strtod): Add declarations.
53829         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
53830         bool where appropriate.  Parse 'inf' and 'nan'.
53831         * tests/test-strtod.c: New file.
53832         * modules/strtod (Depends-on): Add stdbool, stdlib.
53833         (configure.ac): Turn on module indicator.
53834         * modules/strtod-tests: New module.
53835
53836 2008-03-29  Eric Blake  <ebb9@byu.net>
53837
53838         Fix ftell on mingw.
53839         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
53840         * modules/ftell-tests (Depends-on): Add binary-io.
53841         * modules/ftello-tests (Depends-on): Likewise.
53842         * tests/test-ftell.c (main): Enhance test to cover behavior after
53843         ungetc.  Enforce binary mode.
53844         * tests/test-ftello.c (main): Likewise.
53845
53846         Pass test-freadseek on cygwin.
53847         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
53848         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
53849         ungetc buffer.
53850
53851         * tests/test-fflush2.c (main): Fix typo.
53852
53853 2008-03-29  Bruno Haible  <bruno@clisp.org>
53854
53855         * tests/test-fflush2.c (main): Temporarily disable the contents of
53856         this test.
53857         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
53858         Reported by Eric Blake.
53859
53860 2008-03-28  Simon Josefsson  <simon@josefsson.org>
53861
53862         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
53863         (GC_SHA224_DIGEST_SIZE): Add.
53864
53865         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
53866         (gc_hash_digest_length): Likewise.
53867         (gc_hash_buffer): Likewise.
53868
53869 2008-03-25  Bruno Haible  <bruno@clisp.org>
53870
53871         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
53872         detail which gettext release to use.
53873         Reported by Simon Josefsson.
53874
53875 2008-03-26  Jim Meyering  <meyering@redhat.com>
53876
53877         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
53878         * modules/gnumakefile (clean-GNUmakefile): Also, use
53879         test ... && ... || : syntax rather than if-then ... fi.
53880
53881         gnumakefile: Don't double-quote-expand $(VPATH) value.
53882         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
53883
53884 2008-03-24  Eric Blake  <ebb9@byu.net>
53885
53886         Alter GNUmakefile to install into top directory.
53887         * modules/maintainer-makefile: Split, and add dependency...
53888         * modules/gnumakefile: to this new module.
53889         * build-aux/GNUmakefile: Move...
53890         * top/GNUmakefile: ...here.
53891         * build-aux/maint.mk: Move...
53892         * top/maint.mk: ...here.
53893         * MODULES.html.sh (Support for maintaining...): Document new
53894         module.
53895
53896 2008-03-23  Bruno Haible  <bruno@clisp.org>
53897
53898         * gnulib-tool: New options --vc-files, --no-vc-files.
53899         (func_usage): Document them.
53900         (vc_files): New variable.
53901         (func_import): Consider vc_files.
53902         (func_create_testdir): Set vc_files to empty.
53903         Suggested by Jim Meyering and Karl Berry.
53904
53905 2008-03-23  Bruno Haible  <bruno@clisp.org>
53906
53907         Fix regex compilation error on HP-UX 11.
53908         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
53909         * modules/regex (Files): Add m4/mbstate_t.m4.
53910         Reported by Ton Voon <ton.voon@altinity.com>.
53911
53912 2008-03-23  Bruno Haible  <bruno@clisp.org>
53913
53914         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
53915
53916 2008-03-23  Eric Blake  <ebb9@byu.net>
53917             Bruno Haible  <bruno@clisp.org>
53918
53919         Install files from top/ in the destination directory.
53920         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53921         augmentation also for the files from top/.
53922         (func_import, func_create_testdir): Rewrite file names:
53923         top/filename -> filename.
53924
53925 2008-03-23  Bruno Haible  <bruno@clisp.org>
53926
53927         Tweak "gnulib --version" output.
53928         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
53929
53930 2008-03-23  Bruno Haible  <bruno@clisp.org>
53931
53932         Tweak "gnulib --version" output.
53933         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
53934         rather than contents of ChangeLog, when possible.
53935
53936 2008-03-21  Eric Blake  <ebb9@byu.net>
53937
53938         More --version tweaks.
53939         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
53940         date of last ChangeLog entry.
53941
53942 2008-03-21  Jim Meyering  <meyering@redhat.com>
53943
53944         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
53945
53946 2008-03-20  Eric Blake  <ebb9@byu.net>
53947
53948         VPATH fix.
53949         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
53950
53951 2008-03-20  Simon Josefsson  <simon@josefsson.org>
53952
53953         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
53954         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
53955
53956 2008-03-20  Eric Blake  <ebb9@byu.net>
53957
53958         Sync GNUmakefile with coreutils.
53959         * build-aux/GNUmakefile (have-Makefile): Rename...
53960         (_have-Makefile): ...to this, for namespace consideration.
53961         (GNUmakefile.cfg): Include, if present.
53962         (_autoreconf): Define a default.
53963         (_is-dist-target): New rule for rebuilds to pick up intra-release
53964         version.
53965         (maint-cfg.mk): Rename...
53966         (cfg.mk): ...to this.
53967
53968 2008-03-18  Jim Meyering  <meyering@redhat.com>
53969
53970         New script and module: mktempd
53971         * MODULES.html.sh (maint+release support): Add mktempd.
53972         * build-aux/mktempd: New file.
53973         * modules/mktempd: New file.
53974
53975 2008-03-15  Jim Meyering  <meyering@redhat.com>
53976
53977         Undo last change.
53978         * lib/sha1.c, lib/md5.c: 63 != ~63.
53979         Reported by Andreas Schwab.
53980
53981         sha1.c, md5.c: Hoist a redundant expression.
53982         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
53983         "ctx->buflen" only once, before calling *_process_block.
53984         * lib/md5.c (md5_process_bytes): Likewise.
53985
53986 2008-03-14  Eric Blake  <ebb9@byu.net>
53987
53988         Bump copyright year in files generated by gnulib-tool.
53989         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
53990         gnulib-tool, rather than hard-coding it.
53991
53992         Fix 'gnulib-tool --version' output to work with git.
53993         * gnulib-tool (func_gnulib_dir): New function, extracted from...
53994         (startup): ...here.
53995         (func_version): Use it to invoke git-version-gen, rather than
53996         relying on CVS keyword expansion.  Modernize wording.
53997         (cvsdatestamp, last_checkin_date, version): Kill unused
53998         variables.
53999
54000 2008-03-12  Jim Meyering  <meyering@redhat.com>
54001
54002         Recognize optional cast of the argument to free.
54003         * build-aux/useless-if-before-free: Update regexps.
54004
54005         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
54006
54007 2008-03-11  Bruno Haible  <bruno@clisp.org>
54008
54009         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
54010         by a single package.
54011         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
54012         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
54013         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
54014         Reported by Sam Steingold <sds@gnu.org>.
54015
54016 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54017
54018         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
54019         repositories.
54020
54021 2008-03-11  Bruno Haible  <bruno@clisp.org>
54022
54023         Avoid conflicts between local macro definitions.
54024         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54025         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
54026
54027 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
54028             Bruno Haible  <bruno@clisp.org>
54029
54030         Make va_copy work with some version of xlc on AIX 5.1.
54031         * lib/stdarg.in.h: New file.
54032         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
54033         On AIX, use a <stdarg.h> file substitute.
54034         * modules/stdarg (Files): Add lib/stdarg.in.h.
54035         (Depends-on): Add include_next.
54036         (Makefile.am): Build a stdarg.h substitute if requested.
54037         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
54038
54039 2008-03-10  Bruno Haible  <bruno@clisp.org>
54040
54041         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
54042         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54043         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54044
54045 2008-03-10  Bruno Haible  <bruno@clisp.org>
54046
54047         * modules/stdlib (Depends-on): Add include_next, remove
54048         absolute-header.
54049
54050 2008-03-09  Bruno Haible  <bruno@clisp.org>
54051
54052         * lib/freadahead.h (freadahead): Document more precisely.
54053         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
54054         the sum of both buffer sizes.
54055         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
54056         * NEWS: Document the change.
54057
54058 2008-03-09  Bruno Haible  <bruno@clisp.org>
54059
54060         Extend freadptr to return also the buffer size.
54061         * lib/freadptr.h (freadptr): Add sizep argument.
54062         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
54063         (freadptr): Add sizep argument. Determine buffer size like freadahead
54064         does.
54065         * tests/test-freadptr.c: Don't include freadahead.h.
54066         (main): Adapt for new calling convention of freadptr.
54067         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
54068         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
54069         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
54070         tests/test-freadptr2.sh.
54071         (Depends): Remove freadahead.
54072         (TESTS): Add test-freadptr2.sh.
54073         (check_PROGRAMS): Add test-freadptr2.
54074
54075 2008-03-09  Bruno Haible  <bruno@clisp.org>
54076
54077         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
54078         Report and solution by Simon Josefsson.
54079
54080 2008-03-06  Bruno Haible  <bruno@clisp.org>
54081
54082         Make fflush after ungetc work on BSD platforms.
54083         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
54084         * tests/test-fflush2.c: New file.
54085         * tests/test-fflush2.sh: New file.
54086         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
54087         tests/test-fflush2.c.
54088         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
54089         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
54090
54091 2008-03-06  Eric Blake  <ebb9@byu.net>
54092
54093         Likewise for ftello.
54094         * modules/ftello (Dependencies): Add extensions.
54095         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
54096
54097 2008-03-06  Bruno Haible  <bruno@clisp.org>
54098
54099         * modules/fseeko (Dependencies): Add extensions.
54100         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
54101         Needed on glibc systems.
54102
54103 2008-03-06  Bruno Haible  <bruno@clisp.org>
54104
54105         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
54106         email address.
54107         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54108
54109 2008-03-06  Bruno Haible  <bruno@clisp.org>
54110
54111         * users.txt: Add libgnupdf.
54112
54113 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54114
54115         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
54116         (Header File Substitutes, Function Substitutes,
54117         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
54118         (Build robot for gnulib): Fix typo.
54119
54120 2008-03-06  Bruno Haible  <bruno@clisp.org>
54121
54122         * doc/gnulib-tool.texi (VCS Issues): Small updates.
54123         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54124
54125 2008-03-06  Bruno Haible  <bruno@clisp.org>
54126
54127         * doc/func.texi: New file, extracted from doc/gnulib.texi.
54128         * doc/gnulib.texi: Include it.
54129
54130 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54131
54132         * modules/func (License): Change license to unlimited; there was
54133         no LGPL parts in the module anyway.
54134
54135 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54136
54137         * modules/__func__: Renamed to modules/func.
54138         * modules/__func__-tests: Renamed to modules/func-tests.
54139         * tests/test-__func__.c: Renamed to tests/test-func.c.
54140         * m4/__func__.m4: Renamed to m4/func.m4.
54141         * doc/gnulib.texi (__func__): Section renamed to func.
54142         Suggested by Eric Blake <ebb9@byu.net>.
54143
54144 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54145
54146         * doc/gnulib.texi (__func__): Use C99 terminology when talking
54147         about __func__.  Make example self-contained.  Suggested by Eric
54148         Blake <ebb9@byu.net>.
54149
54150         * tests/test-__func__.c (main): Avoid extraneous () around __func.
54151         Suggested by Eric Blake <ebb9@byu.net>.
54152
54153 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54154
54155         * modules/__func__: New file.
54156         * modules/__func__-tests: New file.
54157         * tests/test-__func__.c: New file.
54158         * m4/__func__.m4: New file.
54159         * doc/gnulib.texi (__func__): Document __func__ module.
54160
54161 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54162
54163         * modules/byteswap (License): Re-license as LGPLv2+.
54164
54165 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54166
54167         * doc/Makefile: Add pdf target.
54168
54169 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54170
54171         * modules/inline (License): Use 'unlimited', since there are only
54172         *.m4 files in this module.
54173
54174 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54175             Bruno Haible  <bruno@clisp.org>
54176
54177         Add support for HP C 7.1 on OpenVMS 8.3.
54178         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
54179
54180 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54181
54182         Update VMS specifics.
54183         * lib/getopt.c [VMS]: Remove include of unixlib.h.
54184
54185 2008-03-02  Jim Meyering  <meyering@redhat.com>
54186
54187         Remove the last dependency on the "free" module.
54188         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
54189         Reported by Bob Proulx.
54190
54191         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
54192
54193         Remove useless "if" tests before free.  Deprecate "free" module.
54194         * doc/posix-functions/free.texi: Mention that this
54195         module is no longer useful.
54196         * modules/free (Notice): Say this module is obsolete.
54197         * modules/readutmp (Depends-on): Remove free.
54198         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
54199         * lib/putenv.c (putenv): Likewise.
54200         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
54201         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
54202         * tests/test-c-strcasestr.c (main): Likewise.
54203         * tests/test-c-strstr.c (main): Likewise.
54204         * tests/test-mbscasestr1.c (main): Likewise.
54205         * tests/test-mbscasestr2.c (main): Likewise.
54206         * tests/test-mbsstr1.c (main): Likewise.
54207         * tests/test-mbsstr2.c (main): Likewise.
54208         * tests/test-memmem.c (main): Likewise.
54209         * tests/test-strcasestr.c (main): Likewise.
54210         * tests/test-striconv.c (main): Likewise.
54211         * tests/test-striconveh.c (main): Likewise.
54212         * tests/test-striconveha.c (main): Likewise.
54213         * tests/test-strstr.c (main): Likewise.
54214
54215         * build-aux/git-version-gen: Adjust a comment and the Usage string.
54216
54217         bootstrap: sync from coreutils again
54218         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
54219
54220 2008-03-01  Jim Meyering  <meyering@redhat.com>
54221
54222         bootstrap: sync from coreutils
54223         * build-aux/bootstrap (update_po_files): Copy a .po file into place
54224         also when the target doesn't exist.
54225
54226 2008-03-01  Eric Blake  <ebb9@byu.net>
54227
54228         Fix bugs in last patch.
54229         * lib/memchr2.c (memchr2): Fix typo.
54230         * tests/test-memchr2.c: Test previous bug, and don't use GNU
54231         extension.
54232         Reported by Bruce Korb.
54233
54234         New module 'memchr2'.
54235         * modules/memchr2: New file.
54236         * modules/memchr2-tests: Likewise.
54237         * lib/memchr2.h: Likewise.
54238         * lib/memchr2.c: Likewise, based on memchr.c.
54239         * tests/test-memchr2.c: New test.
54240         * MODULES.html.sh (String handling): Add memchr2.
54241
54242 2008-02-29  Bruno Haible  <bruno@clisp.org>
54243
54244         * modules/freadseek-tests: New file.
54245         * tests/test-freadseek.sh: New file.
54246         * tests/test-freadseek.c: New file.
54247
54248         New module 'freadseek'.
54249         * modules/freadseek: New file.
54250         * lib/freadseek.h: New file.
54251         * lib/freadseek.c: New file.
54252         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
54253
54254 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54255
54256         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
54257         wydawca.
54258
54259         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
54260         program_invocation_name and program_invocation_short_name are
54261         present.
54262
54263 2008-02-28  Bruno Haible  <bruno@clisp.org>
54264
54265         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
54266         * tests/test-freadptr.sh: Also test non-seekable stdin.
54267
54268 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
54269
54270         * build-aux/bootstrap (source_base, m4_base)
54271         (doc_base, tests_base): New variables.
54272         (gnulib_tool_options): Do not hardcode base directories, use
54273         the above variables instead.
54274
54275 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
54276
54277         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
54278
54279 2008-02-28  Bruno Haible  <bruno@clisp.org>
54280
54281         * modules/freadptr-tests: New file.
54282         * tests/test-freadptr.sh: New file.
54283         * tests/test-freadptr.c: New file.
54284
54285         New module 'freadptr'.
54286         * modules/freadptr: New file.
54287         * lib/freadptr.h: New file.
54288         * lib/freadptr.c: New file.
54289         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
54290
54291 2008-02-26  Karl Berry  <karl@freefriends.org>
54292
54293         Sync from Libtool:
54294         * libltdl/argz.c (argz_add, argz_count): New functions.
54295         * libltdl/argz.in.h: Declare them.
54296         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
54297
54298 2008-02-22  Bruno Haible  <bruno@clisp.org>
54299
54300         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
54301         is a pointer type.  Needed for HP-UX 10.
54302         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
54303         * doc/posix-functions/gmtime_r.texi: Likewise.
54304         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54305
54306 2008-02-24  Bruno Haible  <bruno@clisp.org>
54307
54308         * modules/environ-tests: New file.
54309         * tests/test-environ.c: New file.
54310
54311         New module 'environ'.
54312         * modules/environ: New file.
54313         * lib/unistd.in.h (environ): New declaration.
54314         * m4/environ.m4: New file.
54315         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
54316         after use.
54317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
54318         HAVE_DECL_ENVIRON.
54319         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
54320         HAVE_DECL_ENVIRON.
54321         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
54322         wrong claim that 'environ' is missing on some systems.
54323         * modules/execute (Depends-on): Add environ.
54324         * lib/execute.c (environ): Remove fallback declaration.
54325         * modules/pipe (Depends-on): Add environ.
54326         * lib/pipe.c (environ): Remove fallback declaration.
54327         * modules/setenv (Depends-on): Add environ.
54328         * lib/setenv.c (environ): Remove fallback declaration.
54329         * modules/unsetenv (Depends-on): Add environ.
54330         * lib/unsetenv.c (environ): Remove fallback declaration.
54331         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
54332         m4/environ.m4.
54333         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
54334         (gl_PREREQ_UNSETENV): Likewise.
54335
54336 2008-02-24  Bruno Haible  <bruno@clisp.org>
54337
54338         * doc/posix-functions/environ.texi: Document the MacOS X problem.
54339
54340 2008-02-20  Bob Proulx  <bob@proulx.com>
54341
54342         Enable use of older two part flavor 'git describe'.
54343         * build-aux/git-version-gen: If using the older two part flavor of
54344         git version then recreate the third part now present in the
54345         newer three part flavor of git describe.
54346
54347 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
54348
54349         * lib/fts.c (fts_build): Typo correction to comment.
54350
54351 2008-02-17  Bruno Haible  <bruno@clisp.org>
54352
54353         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
54354         generating no-op conflicts.
54355
54356 2008-02-17  Bruno Haible  <bruno@clisp.org>
54357
54358         Speed up by 10%.
54359         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
54360         result_entries, rather than an index-based loop.
54361
54362 2008-02-17  Bruno Haible  <bruno@clisp.org>
54363
54364         Speed up by 25%.
54365         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
54366         'hashcode_cached'.
54367         (entry_create): New function.
54368         (entry_hashcode): Use the cached hashcode if possible.
54369         (read_changelog_file, try_split_merged_entry): Use entry_create.
54370
54371 2008-02-17  Bruno Haible  <bruno@clisp.org>
54372
54373         Speed up from O(n^2) to O(n) for long ChangeLog files.
54374         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
54375         (read_changelog_file): Change implementation of entries_reversed list
54376         to rbtreehash.
54377         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
54378
54379 2008-02-17  Bruno Haible  <bruno@clisp.org>
54380
54381         New option --split-merged-entry.
54382         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
54383         (find_paragraph_end, try_split_merged_entry): New functions.
54384         (long_options): Add option --split-merged-entry.
54385         (usage): Document option --split-merged-entry.
54386         (main): Implement option --split-merged-entry.
54387         Reported by Eric Blake.
54388
54389 2008-02-17  Bruno Haible  <bruno@clisp.org>
54390
54391         * lib/git-merge-changelog.c: Include c-strstr.h.
54392         (main): Support the "git pull --rebase" situation.
54393         * modules/git-merge-changelog (Depends-on): Add c-strstr.
54394         Reported by Eric Blake.
54395
54396 2008-02-16  Eric Blake  <ebb9@byu.net>
54397
54398         Avoid doubling \ in common case of "c-maybe" quoting style.
54399         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
54400         eliding outer quotes.
54401         * lib/quotearg.h: Document this.
54402         * tests/test-quotearg.c (result_strings, inputs, results_g)
54403         (flag_results, locale_results): Test it by adding a new string to
54404         each test group.
54405         (compare_strings): Test new string.
54406
54407 2008-02-13  Eric Blake  <ebb9@byu.net>
54408
54409         Avoid trigraph quoting in default output.
54410         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
54411         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
54412         unless explicitly requested.
54413         * tests/test-quotearg.c (flag_results, main): Add additional tests.
54414
54415 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
54416
54417         Don't rely on signed integer overflowing to negative value.
54418         * lib/getugroups.c (getugroups): Include <limits.h>.
54419         Instead, compare against INT_MAX, and increment only if the test passes.
54420
54421 2008-02-13  Jim Meyering  <meyering@redhat.com>
54422         and Eric Blake  <ebb9@byu.net>
54423
54424         Avoid shadowing warning and compile errors on Linux.
54425         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
54426         forwarding macros on Linux.
54427         (dcgettext): Define a stub, for Linux.
54428         (results_g, main): Avoid warnings.
54429
54430 2008-02-12  Eric Blake  <ebb9@byu.net>
54431
54432         Silence warning in last patch.
54433         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
54434
54435         Quotearg part 4: add tests, fix c-maybe colon quoting.
54436         * lib/quotearg.h: Improve documentation.
54437         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
54438         escapes when adding outer quotes.  When quoting trigraphs, use
54439         valid C notation.  When quoting NUL, omit extra characters if next
54440         character is not digit.  Alter prototype.
54441         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
54442         callers.
54443         * modules/quotearg-tests: New module.
54444         * tests/test-quotearg.c: New test.
54445
54446 2008-02-07  Eric Blake  <ebb9@byu.net>
54447
54448         Quotearg part 3: add flag to control outer quote elision.
54449         * lib/quotearg.h (c_maybe_quoting_style): New style.
54450         (enum quoting_flags): Better documentation of flags.
54451         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
54452         c-maybe style.
54453         (quotearg_buffer_restyled): Handle new flag to elide outer
54454         quotes.
54455
54456         Quotearg part 2: add flag that can control NUL elision.
54457         * lib/quotearg.h (set_quoting_flags): New prototype.
54458         * lib/quotearg.c (struct quoting_options): Add flag field.
54459         (set_quoting_flags): New function.
54460         (quotearg_buffer_restyled): Add flags parameter.
54461         (quotearg_alloc_mem): Set the flag if length cannot be returned.
54462         (quotearg_n_options): Set the flag, since length cannot be
54463         returned.
54464         (quoting_options_from_style): Default flags correctly.
54465
54466         Quotearg part 1: more wrappers, restore quotearg_char state.
54467         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
54468         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
54469         (quotearg_colon_mem): New wrappers.
54470         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
54471         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
54472         functions.
54473         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
54474         (quotearg_colon_mem): New functions.
54475
54476 2008-02-11  Bruno Haible  <bruno@clisp.org>
54477
54478         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
54479         library in the current directory: it does not work with parallel make.
54480         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54481
54482 2008-02-11  Bruno Haible  <bruno@clisp.org>
54483
54484         * .gitattributes: New file.
54485
54486 2008-02-11  Jim Meyering  <meyering@redhat.com>
54487
54488         useless-if-before-free: Fix reversed exit values.
54489         * build-aux/useless-if-before-free: Use correct values
54490         for EXIT_MATCH and EXIT_NO_MATCH.
54491
54492         * build-aux/useless-if-before-free: Close stdout carefully.
54493
54494 2008-02-10  Bruno Haible  <bruno@clisp.org>
54495
54496         New module 'git-merge-changelog'.
54497         * modules/git-merge-changelog: New file.
54498         * lib/git-merge-changelog.c: New file.
54499
54500 2008-02-10  Jim Meyering  <meyering@redhat.com>
54501
54502         useless-if-before-free: New option: --list (-l).
54503
54504         useless-if-before-free: Don't exit immediately upon open failure.
54505         * build-aux/useless-if-before-free: Exit 2 for errors.
54506         Upon failure to open a file, don't exit immediately.
54507         Rather, just warn and continue with any remaining files.
54508
54509 2008-02-10  Bruno Haible  <bruno@clisp.org>
54510
54511         New abstract list operation 'node_set_value'.
54512         * lib/gl_list.h (gl_list_node_set_value): New function.
54513         (struct gl_list_implementation): New field node_set_value.
54514         * lib/gl_list.c (gl_list_node_set_value): New function.
54515         * lib/gl_array_list.c (gl_array_node_set_value): New function.
54516         (gl_array_list_implementation): Update.
54517         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
54518         (gl_carray_list_implementation): Update.
54519         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
54520         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54521         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54522         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
54523         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54524         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54525         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54526         Update.
54527         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54528         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
54529         (gl_sublist_list_implementation): Update.
54530
54531 2008-02-10  Bruno Haible  <bruno@clisp.org>
54532
54533         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
54534         Needed when ELEMENT is #defined to 'some_type *'.
54535
54536 2008-02-10  Jim Meyering  <meyering@redhat.com>
54537
54538         New script and module: useless-if-before-free
54539         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
54540         * build-aux/useless-if-before-free: New file.
54541         * modules/useless-if-before-free: New file.
54542
54543         * build-aux/gitlog-to-changelog: Use committer date, not author date.
54544
54545         xstrtol_error: Fix typo.
54546         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
54547         s/exit_failure/exit_status/.
54548
54549 2008-02-09  Jim Meyering  <meyering@redhat.com>
54550
54551         New script and module: gitlog-to-changelog
54552         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
54553         * modules/gitlog-to-changelog: New file.
54554         * build-aux/gitlog-to-changelog: New file.
54555
54556 2008-02-08  Jim Meyering  <meyering@redhat.com>
54557
54558         Avoid two "parameter unused" warnings.
54559         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
54560         Mark "st" as used.
54561
54562         Use "git COMMAND", not "git-COMMAND".
54563         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
54564         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
54565         * build-aux/git-version-gen: Use "git status", not "git-status".
54566
54567 2008-02-07  Bruno Haible  <bruno@clisp.org>
54568
54569         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
54570         Avoids a crash on Windows Vista.
54571         Reported by Adam Strzelecki <ono@java.pl> via
54572         Simon Josefsson <simon@josefsson.org>.
54573
54574 2008-02-06  Bruno Haible  <bruno@clisp.org>
54575
54576         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
54577         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
54578         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
54579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
54580         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54581         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54582         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
54583         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
54584         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54585         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54586         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54587         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54588         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54589         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54590         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54591         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
54592         left-adjust flag.
54593         * tests/test-snprintf-posix.h (test_function): Likewise.
54594         * tests/test-sprintf-posix.h (test_function): Likewise.
54595         * tests/test-vasprintf-posix.c (test_function): Likewise.
54596         * doc/posix-functions/fprintf.texi: Update.
54597         * doc/posix-functions/printf.texi: Update.
54598         * doc/posix-functions/snprintf.texi: Update.
54599         * doc/posix-functions/sprintf.texi: Update.
54600         * doc/posix-functions/vfprintf.texi: Update.
54601         * doc/posix-functions/vprintf.texi: Update.
54602         * doc/posix-functions/vsnprintf.texi: Update.
54603         * doc/posix-functions/vsprintf.texi: Update.
54604         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54605
54606 2008-02-06  Bruno Haible  <bruno@clisp.org>
54607
54608         Fix bug introduced on 2008-01-26.
54609         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
54610
54611 2008-02-06  Bruno Haible  <bruno@clisp.org>
54612
54613         Fix bug introduced on 2007-06-10.
54614         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
54615         !NEED_PRINTF_FLAG_ZERO.
54616
54617 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
54618
54619         getloadavg: use libperfstat on AIX5
54620         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
54621
54622 2008-02-03  Bruno Haible  <bruno@clisp.org>
54623
54624         * lib/diffseq.h: Add comments about required #includes.
54625         Reported by Michael Biggs <gnulib@doubleplum.net>.
54626
54627 2008-02-01  Bruno Haible  <bruno@clisp.org>
54628
54629         * users.txt: Add gnuit.
54630
54631 2008-01-31  Bruno Haible  <bruno@clisp.org>
54632
54633         * lib/md4.c (set_uint32): Mark as inline.
54634         * lib/md5.c (set_uint32): Likewise.
54635         * lib/sha1.c (set_uint32): Likewise.
54636         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
54637         * m4/md5.m4 (gl_MD5): Likewise.
54638         * m4/sha1.m4 (gl_SHA1): Likewise.
54639
54640 2008-01-31  Jim Meyering  <meyering@redhat.com>
54641
54642         Use "sizeof VAR", rather than a literal "4".
54643         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
54644         * lib/md4.c (md4_read_ctx): Likewise.
54645         * lib/sha1.c (sha1_read_ctx): Likewise.
54646
54647 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54648
54649         * tests/test-sha1.c: New file, based on test-md5.c.
54650
54651         * modules/crypto/sha1-tests: New file.
54652
54653 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54654
54655         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
54656
54657 2008-01-31  Jim Meyering  <meyering@redhat.com>
54658
54659         Prefer "sizeof v" over the equivalent "4".
54660         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
54661         * lib/md5.c (set_uint32): Likewise.
54662         * lib/sha1.c (set_uint32): Likewise.
54663
54664 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54665
54666         * lib/sha1.c (set_uint32): Mark function as static.
54667
54668 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54669
54670         md2: clarify comments to say that alignment is not required.
54671         * lib/md2.h: Remove warning about alignment in comment.
54672         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
54673         never been required.
54674
54675 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54676
54677         md4: adapt alignment constraint fix from sha1.
54678         * lib/md4.c (set_uint32): New function, from sha1.c
54679         (md4_read_ctx): Use it.
54680         (md4_finish_ctx): Doc fix.
54681         * lib/md4.h: Doc fix.
54682
54683 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54684
54685         md5: adapt alignment constraint fix from sha1.
54686         * lib/md5.c (set_uint32): New function, from sha1.c
54687         (md5_read_ctx): Use it.
54688         (md5_finish_ctx): Doc fix.
54689         * lib/md5.h: Doc fix.
54690
54691 2008-01-30  Peter Palfrader  <weasel@debian.org>
54692
54693         sha1: remove the result buffer alignment constraint
54694         * lib/sha1.c (set_uint32): New function.
54695         (sha1_read_ctx): Rewrite to remove the result buffer alignment
54696         constraint.
54697         (sha1_finish_ctx): Remove comment warning about alignment constraint.
54698         * lib/sha1.h: Likewise.
54699
54700 2008-01-30  Andreas Schwab  <schwab@suse.de>
54701             Bruno Haible  <bruno@clisp.org>
54702
54703         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
54704         correct definition of LDBL_MIN_EXP.
54705
54706 2008-01-30  Karl Berry  <karl@gnu.org>
54707
54708         * config/srclist-update: try to preserve x bit on updates.
54709         * config/srclistvars.sh: update for karl.
54710
54711 2008-01-29  Jim Meyering  <meyering@redhat.com>
54712
54713         vasnprintf.c: Avoid warning about unused label
54714         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
54715         "overflow" label definition and associated code with the
54716         same cpp condition that guards the sole use of that label.
54717
54718 2008-01-26  Bruno Haible  <bruno@clisp.org>
54719
54720         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
54721         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
54722         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
54723         * lib/isnanl-nolibm.h (isnanl): Likewise.
54724         Reported by Paul Eggert <eggert@cs.ucla.edu>.
54725
54726 2008-01-26  Bruno Haible  <bruno@clisp.org>
54727
54728         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
54729         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
54730
54731 2008-01-26  Bruno Haible  <bruno@clisp.org>
54732
54733         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
54734         GCC >= 4.0 built-in.
54735         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
54736
54737 2008-01-26  Bruno Haible  <bruno@clisp.org>
54738
54739         Rename isnan, applicable to 'double' only, to isnand.
54740         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
54741         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
54742         (configure.ac): Update.
54743         (Include): Replace "isnan.h" with "isnand.h".
54744         * m4/isnand.m4: Renamed from m4/isnan.m4.
54745         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
54746         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
54747         instead of isnan.c.
54748         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
54749         instead of HAVE_ISNAN_IN_LIBC.
54750         (isnand): Renamed from isnan.
54751         * lib/isnand.c: New file.
54752         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
54753         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
54754         (Makefile.am): Update.
54755         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
54756         Include isnand.h instead of isnan.h.
54757         (main): Test isnand instead of isnan.
54758         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
54759         isnan-nolibm.
54760         * modules/frexp (Depends-on): Likewise.
54761         * modules/frexp-tests (Depends-on): Likewise.
54762         * modules/frexp-nolibm (Depends-on): Likewise.
54763         * modules/frexp-nolibm-tests (Depends-on): Likewise.
54764         * modules/isfinite (Depends-on): Likewise.
54765         * modules/round-tests (Depends-on): Likewise.
54766         * modules/signbit (Depends-on): Likewise.
54767         * modules/signbit-tests (Depends-on): Likewise.
54768         * modules/snprintf-posix (Depends-on): Likewise.
54769         * modules/sprintf-posix (Depends-on): Likewise.
54770         * modules/trunc-tests (Depends-on): Likewise.
54771         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54772         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54773         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54774         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54775         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54776         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54777         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54778         * modules/vasnprintf-posix (Depends-on): Likewise.
54779         * modules/vasprintf-posix (Depends-on): Likewise.
54780         * modules/vfprintf-posix (Depends-on): Likewise.
54781         * modules/vsnprintf-posix (Depends-on): Likewise.
54782         * modules/vsprintf-posix (Depends-on): Likewise.
54783         * lib/frexp.c: Include isnand.h instead of isnan.h.
54784         (ISNAN): Set to isnand instead of isnan.
54785         * lib/isfinite.c: Include isnand.h instead of isnan.h.
54786         (gl_isfinited): Use isnand instead of isnan.
54787         * lib/signbitd.c: Include isnand.h instead of isnan.h.
54788         (gl_signbitd): Use isnand instead of isnan.
54789         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
54790         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
54791         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
54792         (main): Use isnand instead of isnan.
54793         * tests/test-round1.c: Include isnand.h.
54794         (main): Use isnand instead of isnan.
54795         * tests/test-round2.c: Include isnand.h instead of isnan.h.
54796         (ISNAN): Set to isnand instead of isnan.
54797         * tests/test-trunc1.c: Include isnand.h.
54798         (main): Use isnand instead of isnan.
54799         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
54800         (equal): Use isnand instead of isnan.
54801         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
54802         isnand-nolibm.
54803         * NEWS: Mention the change.
54804
54805 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54806             Bruno Haible  <bruno@clisp.org>
54807
54808         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
54809         the GCC builtins for signbits are present and set
54810         REPLACE_SIGNBIT_USING_GCC if so.
54811         * lib/math.in.h (signbit): Define using GCC builtins if
54812         REPLACE_SIGNBIT_USING_GCC is set.
54813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
54814         REPLACE_SIGNBIT_USING_GCC.
54815         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
54816
54817 2008-01-25  Jim Meyering  <meyering@redhat.com>
54818
54819         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
54820         * lib/poll.c: Include <config.h>, not "config.h".
54821         * tests/test-getaddrinfo.c: Likewise.
54822
54823 2008-01-25  Simon Josefsson  <simon@josefsson.org>
54824
54825         * modules/sockets-tests: New file.
54826
54827 2008-01-24  Simon Josefsson  <simon@josefsson.org>
54828
54829         * modules/sockets: New module, can be used to call WSA_Startup and
54830         WSA_Cleanup when needed.
54831
54832         * lib/sockets.h, lib/sockets.c: New files.
54833
54834         * m4/sockets.m4: New file.
54835
54836         * tests/test-sockets.c: New file.
54837
54838 2008-01-19  Bruno Haible  <bruno@clisp.org>
54839
54840         * doc/posix-headers: Renamed from doc/headers.
54841         * doc/posix-functions: Renamed from doc/functions.
54842         * doc/gnulib.texi: Update.
54843
54844 2008-01-19  Bruno Haible  <bruno@clisp.org>
54845
54846         * doc/glibc-functions/strcasestr.texi: Include contents of
54847         doc/functions/strcasestr.texi, fixing the list of platforms.
54848         * doc/functions/strcasestr.texi: Remove file.
54849
54850 2008-01-19  Bruno Haible  <bruno@clisp.org>
54851
54852         * doc/glibc-functions/memmem.texi: Include contents of
54853         doc/functions/memmem.texi.
54854         * doc/functions/memmem.texi: Remove file.
54855
54856 2008-01-18  Bruno Haible  <bruno@clisp.org>
54857
54858         * doc/glibc-functions/*.texi: New files.
54859         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
54860         to use the new files.
54861
54862 2008-01-17  Bruno Haible  <bruno@clisp.org>
54863
54864         * tests/test-gethostname.c (main): Fix printf statement.
54865
54866 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54867
54868         * modules/gethostname-tests: New file.
54869
54870         * tests/test-gethostname.c: New file.
54871
54872 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54873
54874         * lib/gethostname.c: Include string.h unconditionally, strncpy is
54875         used by the UNAME case.  Reported by Bruno Haible
54876         <bruno@clisp.org>.
54877
54878 2008-01-17  Eric Blake  <ebb9@byu.net>
54879
54880         Convert c-strcasestr to be more efficient.
54881         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
54882         (Depends-on): Add c-strcase, remove malloca, strnlen.
54883         * tests/test-c-strcasestr.c (main): Enhance test.
54884         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
54885
54886 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54887
54888         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
54889         Use it in creating po/Makevars.
54890
54891 2008-01-15  Simon Josefsson  <simon@josefsson.org>
54892
54893         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
54894         Applications that requires it should initialize libgcrypt
54895         manually.
54896
54897 2008-01-16  Simon Josefsson  <simon@josefsson.org>
54898
54899         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
54900
54901 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
54902
54903         Fix problem with getdate on mingw32 reported by Simon Josefsson
54904         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
54905         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
54906         tzname", when deciding whether to declare tzname.
54907         * lib/strftime.c (tzname): Likewise.
54908
54909 2008-01-15  Bruno Haible  <bruno@clisp.org>
54910
54911         Work around a MacOS X 10.5 bug in frexpl().
54912         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
54913         * doc/functions/frexpl.texi: Document the bug.
54914         Reported by Elias Pipping <pipping@gentoo.org>.
54915
54916 2008-01-14  Eric Blake  <ebb9@byu.net>
54917
54918         Touch up previous patch.
54919         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
54920         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
54921
54922         Convert strcasestr module to use Two-Way algorithm.
54923         * modules/strcasestr-simple: New module, based on the old
54924         strcasestr, but with Two-Way rather than KMP.
54925         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
54926         * lib/string.in.h (rpl_strcasestr): Declare.
54927         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
54928         performance.
54929         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
54930         * modules/string (Makefile.am): Support strcasestr.
54931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
54932         * modules/strcasestr-tests (Depends-on): Check for alarm.
54933         * tests/test-strcasestr.c: Augment test.
54934         * lib/str-two-way.h: Clean up stray macro.
54935         * NEWS: Document new module.
54936         * MODULES.html.sh (string handling): Likewise.
54937         * doc/functions/strcasestr.texi: New file.
54938         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
54939         here, since it is not a POSIX function.
54940
54941 2008-01-14  Colin Watson  <cjwatson@debian.org>
54942             Bruno Haible  <bruno@clisp.org>
54943
54944         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
54945         works fine; if not, set REPLACE_STRSIGNAL.
54946         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
54947         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54948         REPLACE_STRSIGNAL.
54949         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
54950         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
54951         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
54952
54953 2008-01-14  Bruno Haible  <bruno@clisp.org>
54954
54955         * modules/strsignal (Include): Change to <string.h>.
54956
54957 2008-01-14  Colin Watson  <cjwatson@debian.org>
54958
54959         * modules/argp (Notice): Add a notice recommending to change
54960         XGETTEXT_OPTIONS.
54961         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
54962
54963 2008-01-13  Colin Watson  <cjwatson@debian.org>
54964
54965         * modules/strsignal-tests: New file.
54966         * tests/test-strsignal.c: New file.
54967
54968         * lib/strsignal.c: New file, from glibc with modifications.
54969         * lib/siglist.h: New file, from glibc with modifications.
54970         * lib/string.in.h (strsignal): New declaration.
54971         * m4/strsignal.m4: New file.
54972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54973         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
54974         * modules/strsignal: New file.
54975         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
54976         HAVE_DECL_STRSIGNAL.
54977
54978 2008-01-13  Bruno Haible  <bruno@clisp.org>
54979
54980         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
54981         locale encoding is not ASCII. Needed for OpenBSD 4.0.
54982         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54983         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54984
54985 2008-01-13  Bruno Haible  <bruno@clisp.org>
54986
54987         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
54988         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
54989         * lib/argp.h (__attribute__): Likewise.
54990         * lib/c-stack.c (__attribute__): Likewise.
54991         * lib/error.h (__attribute__): Likewise.
54992         * lib/fts.c (__attribute__): Likewise.
54993         * lib/openat.h (__attribute__): Likewise.
54994         * lib/stdio.in.h (__attribute__): Likewise.
54995         * lib/string.in.h (__attribute__): Likewise.
54996         * lib/utimens.c (__attribute__): Likewise.
54997         * lib/vasnprintf.h (__attribute__): Likewise.
54998         * lib/xalloc.h (__attribute__): Likewise.
54999         * lib/xprintf.h (__attribute__): Likewise.
55000         * lib/xstrtol.h (__attribute__): Likewise.
55001         * lib/xvasprintf.h (__attribute__): Likewise.
55002
55003 2008-01-12  Bruno Haible  <bruno@clisp.org>
55004
55005         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
55006         * doc/glibc-headers/a.out.texi: New file.
55007         * doc/glibc-headers/aliases.texi: New file.
55008         * doc/glibc-headers/alloca.texi: New file.
55009         * doc/glibc-headers/ar.texi: New file.
55010         * doc/glibc-headers/argp.texi: New file.
55011         * doc/glibc-headers/argz.texi: New file.
55012         * doc/glibc-headers/byteswap.texi: New file.
55013         * doc/glibc-headers/crypt.texi: New file.
55014         * doc/glibc-headers/endian.texi: New file.
55015         * doc/glibc-headers/envz.texi: New file.
55016         * doc/glibc-headers/err.texi: New file.
55017         * doc/glibc-headers/error.texi: New file.
55018         * doc/glibc-headers/execinfo.texi: New file.
55019         * doc/glibc-headers/fpu_control.texi: New file.
55020         * doc/glibc-headers/fstab.texi: New file.
55021         * doc/glibc-headers/fts.texi: New file.
55022         * doc/glibc-headers/getopt.texi: New file.
55023         * doc/glibc-headers/ieee754.texi: New file.
55024         * doc/glibc-headers/ifaddrs.texi: New file.
55025         * doc/glibc-headers/libintl.texi: New file.
55026         * doc/glibc-headers/mcheck.texi: New file.
55027         * doc/glibc-headers/mntent.texi: New file.
55028         * doc/glibc-headers/obstack.texi: New file.
55029         * doc/glibc-headers/paths.texi: New file.
55030         * doc/glibc-headers/printf.texi: New file.
55031         * doc/glibc-headers/pty.texi: New file.
55032         * doc/glibc-headers/resolv.texi: New file.
55033         * doc/glibc-headers/shadow.texi: New file.
55034         * doc/glibc-headers/sysexits.texi: New file.
55035         * doc/glibc-headers/ttyent.texi: New file.
55036
55037 2008-01-12  Jim Meyering  <meyering@redhat.com>
55038
55039         announce-gen: emit Gnulib's git-based version string.
55040         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
55041         New option --gnulib-version=V, where V is expected to be
55042         the output of running git describe in the gnulib directory.
55043         (get_tool_versions): Request feedback on xdelta.  I suspect it's
55044         not useful, and plan to stop publishing an xdelta file with each
55045         coreutils release.
55046
55047         * build-aux/announce-gen: Also check for lzma-compressed files.
55048
55049 2008-01-11  Bruno Haible  <bruno@clisp.org>
55050
55051         * tests/test-memmem.c (main): Increase maximum allowed time.
55052         * tests/test-strstr.c (main): Likewise.
55053
55054 2008-01-11  Bruno Haible  <bruno@clisp.org>
55055
55056         * doc/functions/memmem.texi: Add more precisions about platforms.
55057         * doc/functions/strstr.texi: Likewise.
55058
55059 2008-01-10  Eric Blake  <ebb9@byu.net>
55060
55061         * m4/strstr.m4: Delete cruft from copy-n-paste.
55062         Reported by Bruno Haible.
55063
55064 2008-01-10  Bruno Haible  <bruno@clisp.org>
55065
55066         Make c-strstr rely on strstr.
55067         * lib/c-strstr.c: Don't include str-kmp.h.
55068         (c_strstr): Define in terms of strstr.
55069         * modules/c-strstr (Files): Remove lib/str-kmp.h.
55070         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
55071
55072 2008-01-10  Bruno Haible  <bruno@clisp.org>
55073
55074         * doc/gnulib.texi (String Functions in C Locale): New section.
55075         * doc/c-ctype.texi: New file.
55076         * doc/c-strcase.texi: New file.
55077         * doc/c-strcaseeq.texi: New file.
55078         * doc/c-strcasestr.texi: New file.
55079         * doc/c-strstr.texi: New file.
55080         * doc/c-strtod.texi: New file.
55081         * doc/c-strtold.texi: New file.
55082
55083 2008-01-10  Eric Blake  <ebb9@byu.net>
55084
55085         * lib/relocatable.h: Fix a comment.
55086
55087 2008-01-10  Eric Blake  <ebb9@byu.net>
55088
55089         Share two-way algorithm.
55090         * lib/str-two-way.h: New file, merged from...
55091         * lib/memmem.c: ...here...
55092         * lib/strstr.c: ...and here.
55093         * modules/memmem (Files): Use it.
55094         * modules/strstr (Files): Likewise.
55095
55096         Avoid quadratic strstr implementations.
55097         * lib/strstr.c: New file.
55098         * m4/strstr.m4: Likewise.
55099         * modules/strstr: Likewise.
55100         * modules/strstr-tests: Likewise.
55101         * tests/test-strstr.c: Likewise.
55102         * lib/string.in.h (rpl_strstr): Declare.
55103         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
55104         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
55105         * modules/string (Makefile.am): Likewise.
55106         * MODULES.html.sh (string handling): Mention new module.
55107         * doc/functions/strstr.texi (strstr): Document the bug.
55108
55109 2008-01-10  Bruno Haible  <bruno@clisp.org>
55110
55111         * lib/relocatable.h (relocate): State whether result is freshly
55112         allocated or not.
55113         * lib/relocatable.c (relocate): Return a freshly allocated string
55114         instead of a pointer to a privately held string.
55115         Reported by Sylvain Beucler <beuc@gnu.org>.
55116
55117 2008-01-10  Colin Watson  <cjwatson@debian.org>
55118
55119         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
55120         s/S_ISNLK/S_ISLNK/.
55121
55122 2008-01-09  Bruno Haible  <bruno@clisp.org>
55123
55124         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
55125         and other files.
55126         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
55127         if it's only a guess.
55128         * modules/memmem: Simplify by depending on memmem-simple.
55129
55130 2008-01-09  Bruno Haible  <bruno@clisp.org>
55131
55132         Work around OpenBSD 4.0 tdelete() bug.
55133         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
55134         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
55135         macros and don't redefine the enum values.
55136         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
55137         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
55138         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
55139
55140 2008-01-09  Bruno Haible  <bruno@clisp.org>
55141
55142         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
55143         (main): Don't perform the tests if setlocale did not install a UTF-8
55144         locale. Needed on OpenBSD 4.0.
55145         * modules/wcwidth-tests (Depends-on): Add localcharset.
55146
55147 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55148
55149         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
55150         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
55151         * NEWS: announce this.
55152         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
55153
55154 2008-01-09  Simon Josefsson  <simon@josefsson.org>
55155         and Eric Blake  <ebb9@byu.net>
55156
55157         Add memmem-simple module.
55158         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
55159         (gl_FUNC_MEMMEM): Separate performance from presence checks.
55160         * modules/memmem-simple: New file.
55161         * modules/memmem (Description): Tweak.
55162         * MODULES.html.sh (string handling): Mention new module.
55163         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
55164         addressed by memmem-simple.
55165         * NEWS: Document the difference.
55166
55167 2008-01-09  Eric Blake  <ebb9@byu.net>
55168
55169         Give gcc some memmem optimization hints.
55170         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
55171         (strcasestr): Declare as pure.
55172         * modules/memmem (Maintainer): Claim my implementation.
55173
55174 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55175
55176         Support AIX 6.1 and higher.
55177         * build-aux/config.libpath: Likewise.
55178         * build-aux/config.rpath: Likewise.
55179
55180 2008-01-08  Jim Meyering  <meyering@redhat.com>
55181             Bruno Haible  <bruno@clisp.org>
55182
55183         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
55184         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
55185         Reported by Peter Fales in
55186         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
55187
55188 2008-01-08  Bruno Haible  <bruno@clisp.org>
55189
55190         * modules/unictype/category-of (Depends-on): Add
55191         unictype/category-none.
55192         * modules/unictype/category-and-tests (Depends-on): Add
55193         unictype/category-{L,N,Lu,Nd}.
55194         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
55195         * modules/unictype/category-or-tests (Depends-on): Add
55196         unictype/category-{L,N}.
55197         * modules/unictype/category-name-tests (Depends-on): Add
55198         unictype/category-{Z,Nl}.
55199         Reported by Simon Josefsson.
55200
55201 2008-01-08  Bruno Haible  <bruno@clisp.org>
55202
55203         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
55204         convention better.
55205         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
55206         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
55207         Reported by Peter Miller <millerp@canb.auug.org.au>.
55208
55209 2008-01-08  Eric Blake  <ebb9@byu.net>
55210
55211         Rewrite memmem to guarantee linear complexity without malloc.
55212         * lib/memmem.c (memmem): Use Two-Way rather than
55213         Knuth-Morris-Pratt, to allow O(1) space usage.
55214         (critical_factorization, two_way_short_needle)
55215         (two_way_long_needle): New functions.
55216         (knuth_morris_pratt): Delete.
55217         * modules/memmem (Depends-on): No longer need malloca or stdbool.
55218         Add stdint.
55219         * tests/test-memmem.c (main): Add tests for periodic needle and
55220         sublinear performance.
55221         * doc/functions/memmem.texi (memmem): Document other deficiencies
55222         in cygwin and older glibc.
55223
55224 2008-01-08  Bruno Haible  <bruno@clisp.org>
55225
55226         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
55227         augmentation.
55228
55229 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
55230
55231         Add a configure time option: --disable-acl.
55232         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
55233         AC_ARG_ENABLE(acl).
55234
55235 2008-01-06  Simon Josefsson  <simon@josefsson.org>
55236
55237         * tests/test-localename.c: Don't include obsolete "setenv.h".
55238
55239         * modules/localename-tests (Depends-on): Need unsetenv.
55240
55241 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55242
55243         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
55244
55245 2008-01-06  Colin Watson  <cjwatson@debian.org>
55246
55247         * users.txt: Add man-db.
55248
55249 2008-01-07  Bruno Haible  <bruno@clisp.org>
55250
55251         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
55252         previous section name.
55253
55254 2008-01-07  Bruno Haible  <bruno@clisp.org>
55255
55256         * lib/progname.c (set_program_name): Don't strip off a leading
55257         "lt-" prefix outside a .libs directory.
55258         Suggested by Paul Eggert.
55259
55260 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
55261             Bruno Haible  <bruno@clisp.org>
55262
55263         Improve memory cleanup in 'relocatable' module.
55264         * lib/relocatable.h (compute_curr_prefix): Change return type to
55265         'char *'.
55266         * lib/relocatable.c (compute_curr_prefix): Change return type to
55267         'char *'. Free curr_installdir after use.
55268         (relocate): Free curr_prefix_better after use.
55269         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
55270
55271 2008-01-01  Bruno Haible  <bruno@clisp.org>
55272
55273         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
55274         failure on older glibc systems.
55275         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55276
55277 2008-01-05  Eric Blake  <ebb9@byu.net>
55278
55279         Avoid quadratic system memmem.
55280         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
55281         Reported by Ralf Wildenhues.
55282
55283         Fix memmem test for mingw.
55284         * modules/memmem-tests (configure.ac): Check for alarm.
55285         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
55286         it.
55287         * doc/functions/memmem.texi: New file.
55288         * doc/gnulib.texi (Function Substitutes): Add memmem.
55289         Reported by Bruno Haible.
55290
55291 2008-01-04  Bruno Haible  <bruno@clisp.org>
55292
55293         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
55294         Require gl_HEADER_STRINGS_H_DEFAULTS, not
55295         gl_HEADER_STRING_H_DEFAULTS.
55296
55297 2008-01-04  Eric Blake  <ebb9@byu.net>
55298
55299         Shorten duration of memmem test.
55300         * tests/test-memmem.c (main): Use alarm to declare failure if test
55301         is taking too long.
55302         Reported by Ralf Wildenhues.
55303
55304 2007-12-21  Simon Josefsson  <simon@josefsson.org>
55305
55306         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
55307         string, needed by strerror.
55308
55309 2008-01-03  Colin Watson  <cjwatson@debian.org>
55310             Bruno Haible  <bruno@clisp.org>
55311
55312         * doc/gnulib-tool.texi (Localization): New section.
55313
55314 2008-01-02  Bruno Haible  <bruno@clisp.org>
55315
55316         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
55317         variables to 'unsigned char *' type.
55318         Reported by Paul Eggert.
55319
55320 2008-01-02  Jim Meyering  <jim@meyering.net>
55321
55322         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
55323
55324 2007-12-31  Jim Meyering  <jim@meyering.net>
55325
55326         Avoid use of private FTS type name.
55327         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
55328
55329 2007-12-30  Karl Berry  <karl@gnu.org>
55330
55331         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
55332         work around defect in Texinfo and/or the standalone Info browser.
55333
55334 2007-12-30  Bruno Haible  <bruno@clisp.org>
55335
55336         Unify 5 copies of the KMP code.
55337         * lib/str-kmp.h: New file.
55338         * lib/c-strcasestr.c: Include str-kmp.h.
55339         (knuth_morris_pratt): Remove function.
55340         (c_strcasestr): Update.
55341         * lib/c-strstr.c: Include str-kmp.h.
55342         (knuth_morris_pratt): Remove function.
55343         (c_strcasestr): Update.
55344         * lib/mbscasestr.c: Include str-kmp.h.
55345         (knuth_morris_pratt_unibyte): Remove function.
55346         * lib/mbsstr.c: Include str-kmp.h.
55347         (knuth_morris_pratt_unibyte): Remove function.
55348         * lib/strcasestr.c: Include str-kmp.h.
55349         (knuth_morris_pratt): Remove function.
55350         (strcasestr): Update.
55351         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
55352         * modules/c-strstr (Files): Likewise.
55353         * modules/mbscasestr (Files): Likewise.
55354         * modules/mbsstr (Files): Likewise.
55355         * modules/strcasestr (Files): Likewise.
55356         Suggested by Paul Eggert.
55357
55358 2007-12-30  Bruno Haible  <bruno@clisp.org>
55359
55360         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
55361         defined.
55362
55363 2007-12-30  Bruno Haible  <bruno@clisp.org>
55364
55365         * lib/xmalloca.h: Include xalloc.h.
55366         (xnmalloca): New macro.
55367
55368 2007-12-30  Bruno Haible  <bruno@clisp.org>
55369
55370         * lib/malloca.h (nmalloca): New macro.
55371         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
55372         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
55373         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
55374         knuth_morris_pratt_multibyte): Likewise.
55375         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
55376         knuth_morris_pratt_multibyte): Likewise.
55377         * lib/memmem.c (knuth_morris_pratt): Likewise.
55378         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
55379
55380 2007-12-25  Bruno Haible  <bruno@clisp.org>
55381
55382         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
55383         * lib/glob.c: Don't include openat.h.
55384         (link_exists2_p): Add back the code that deals with the
55385         !GLOB_ALTDIRFUNC case.
55386         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
55387         let it do the filename concatenation.
55388         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
55389         * modules/glob (Depends-on): Remove openat.
55390
55391 2007-12-31  Bruno Haible  <bruno@clisp.org>
55392
55393         * modules/dirfd (License): Change to LGPLv2+.
55394         Approved by Jim Meyering.
55395
55396 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55397
55398         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
55399         when multiplying M by sizeof (size_t).
55400
55401 2007-12-10  Martin Lambers  <marlam@marlam.de>
55402
55403         Override getpagesize on mingw.
55404         * lib/getpagesize.c: New file.
55405         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
55406         * modules/getpagesize (Files): Add lib/getpagesize.c.
55407         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
55408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55409         REPLACE_GETPAGESIZE.
55410         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
55411
55412 2007-12-25  Bruno Haible  <bruno@clisp.org>
55413
55414         * modules/localcharset (Notice): New field.
55415         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
55416         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55417
55418 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55419             Bruno Haible  <bruno@clisp.org>
55420
55421         Avoid using the syntax symbol() in formatted documentation.
55422         * MODULES.html.sh (func_module): When replacing symbol() with a
55423         hyperlink, remove the parentheses. Show an error if some remain.
55424         Recognize and render the '...' syntax.
55425         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
55426         Rework. Add paragraph about GCC's inlining.
55427         * doc/alloca.texi: Likewise.
55428         * doc/error.texi: Remove parentheses from symbol reference.
55429         * doc/gnulib-intro.texi: Likewise.
55430         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
55431         * modules/fnmatch (Description): Reword to say "the ... function".
55432         * modules/full-read (Description): Likewise.
55433         * modules/full-write (Description): Likewise.
55434         * modules/safe-read (Description): Likewise.
55435         * modules/safe-write (Description): Likewise.
55436         * modules/strchrnul (Description): Likewise.
55437         * modules/trim (Description): Likewise.
55438         * modules/error (Description): Remove parentheses from symbol
55439         references.
55440         * modules/verror (Description): Likewise.
55441         Reported by Karl Berry.
55442
55443 2007-12-25  Bruno Haible  <bruno@clisp.org>
55444
55445         Fixup after 2007-10-16 commit.
55446         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
55447
55448 2007-12-24  Bruno Haible  <bruno@clisp.org>
55449
55450         Make --enable-relocatable work with DESTDIR.
55451         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
55452         to compute installdir from destprog.
55453         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
55454         also set the RELOC_DESTDIR variable.
55455         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55456
55457 2007-12-24  Bruno Haible  <bruno@clisp.org>
55458
55459         Fix link error due to xalloc_die().
55460         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
55461         of xreadlink.
55462         * lib/relocwrapper.c: Update comments.
55463         * build-aux/install-reloc: Remove xreadlink.c from file list.
55464         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
55465         xreadlink.c.
55466         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55467
55468 2007-12-24  Bruno Haible  <bruno@clisp.org>
55469
55470         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
55471         * lib/setenv.h: Remove file.
55472         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
55473         lib/setenv.h.
55474         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
55475         (Depends-on): Add stdlib.
55476         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
55477         gl_FUNC_UNSETENV.
55478         (Include): Replace setenv.h with <stdlib.h>.
55479         * modules/unsetenv: New file.
55480         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
55481         * lib/unsetenv.c: Include <stdlib.h> first.
55482         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
55483         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
55484         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
55485         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
55486         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
55487         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55488         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
55489         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55490         * doc/functions/unsetenv.texi: Update.
55491         * modules/xsetenv (Depends-on): Add unsetenv.
55492         * modules/getdate (Depends-on): Likewise.
55493         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
55494         * lib/xsetenv.c: Don't include setenv.h.
55495         * lib/getdate.y: Likewise.
55496         * lib/relocwrapper.c: Likewise.
55497         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
55498         (Depends-on): Add stdlib.
55499         * NEWS: Mention the changes.
55500         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55501
55502 2007-12-23  Bruno Haible  <bruno@clisp.org>
55503
55504         * lib/memmem.c (memmem): Use lowercase variable names. Tab
55505         indentation.
55506
55507 2007-12-23  Bruno Haible  <bruno@clisp.org>
55508
55509         * lib/c-strcasestr.c: Add more comments.
55510         * lib/c-strstr.c: Likewise.
55511         * lib/mbscasestr.c: Likewise.
55512         * lib/mbsstr.c: Likewise.
55513         * lib/strcasestr.c: Likewise.
55514         * lib/memmem.c: Likewise.
55515
55516 2007-12-23  Bruno Haible  <bruno@clisp.org>
55517
55518         * tests/test-memmem.c: Include <string.h> first.
55519
55520 2007-12-22  Bruno Haible  <bruno@clisp.org>
55521
55522         * gnulib-tool (func_create_testdir): Change $auxdir while generating
55523         the contents of $testsbase.
55524         Reported by Ralf Wildenhues.
55525
55526 2007-12-22  Bruno Haible  <bruno@clisp.org>
55527
55528         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
55529         two variables local_ldadd_before, local_ldadd_last.
55530
55531 2007-12-20  Eric Blake  <ebb9@byu.net>
55532
55533         Work around circular library issue when cross-compiling.
55534         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
55535         that progname.o does not need to pull in rpl_memcmp.
55536
55537 2007-12-19  Eric Blake  <ebb9@byu.net>
55538
55539         Fix memmem to avoid O(n^2) worst-case complexity.
55540         * lib/memmem.c (knuth_morris_pratt): New function.
55541         (memmem): Use it if first few naive iterations fail.
55542         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
55543         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
55544         * modules/memchr (License): Likewise.
55545         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
55546         malloca.
55547         * tests/test-memmem.c: Rewrite, borrowing ideas from
55548         test-mbsstr1.c; the old version wouldn't even compile!
55549         * modules/memmem-tests: New file.
55550         * lib/string.in.h (rpl_memmem): Add declaration.
55551         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
55552         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
55553         REPLACE_MEMMEM.
55554
55555 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55556
55557         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
55558         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
55559         before any system include files, and undef after them all.  This
55560         should fix a problem on VMS reported by John E. Malmberg in
55561         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
55562
55563 2007-12-17  Eric Blake  <ebb9@byu.net>
55564
55565         Revert addition of verify, for BSD/OS.
55566         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
55567         can't handle large files, for the sake of obsolete platforms.
55568         * modules/fseeko (Depends-on): Remove verify.
55569         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
55570         * doc/functions/ftello.texi (ftello): Likewise.
55571         * doc/functions/fgetpos.texi (fgetpos): Likewise.
55572         Reported by Larry Jones.
55573
55574 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
55575
55576         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
55577         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
55578
55579 2007-12-17  Jim Meyering  <meyering@redhat.com>
55580
55581         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
55582         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
55583         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
55584         * modules/getcwd (Depends-on): Add openat.
55585         Reported by Petr Salinger.
55586
55587 2007-12-17  Bruno Haible  <bruno@clisp.org>
55588
55589         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
55590         avoid a segmentation fault of the configure test on x86_64 systems.
55591
55592 2007-12-15  Jim Meyering  <meyering@redhat.com>
55593
55594         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
55595
55596 2007-12-13  Eric Blake  <ebb9@byu.net>
55597
55598         Another fseek test.
55599         * tests/test-fseek.c (main): Also test ungetc handling.
55600         * tests/test-fseeko.c (main): Likewise.
55601         * modules/fseeko (Depends-on): Add verify.
55602         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
55603         large.
55604         Reported by Larry Jones.
55605
55606         Fix fseeko on mingw.
55607         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
55608         seek.
55609
55610         Beef up fseek tests.
55611         * tests/test-fseek.c (main): Also test eof handling.
55612         * tests/test-fseeko.c (main): Likewise.
55613         Reported by Larry Jones.
55614
55615 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
55616
55617         Fix fseeko on BSD-based platforms.
55618         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
55619         successful seek.
55620
55621 2007-12-12  Eric Blake  <ebb9@byu.net>
55622
55623         Allow circular dependency of separate libtests.a
55624         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
55625         when use_libtests.
55626
55627 2007-12-11  Eric Blake  <ebb9@byu.net>
55628
55629         Fix bug with -0.0L in previous patch.
55630         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
55631         * tests/test-isnan.c (main): Also test on zeroes.
55632         * tests/test-isnanf.c (main): Likewise.
55633         * tests/test-isnanl.h (main): Likewise.
55634
55635         Detect pseudo-denormals on x86 even when cross-compiling.
55636         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
55637         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
55638         invalid bit patterns that happen to satisfy ==.
55639
55640         Avoid link failures with separate libtests.a.
55641         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
55642         last, to satisfy circular dependencies.
55643
55644 2007-12-11  Eric Blake  <ebb9@byu.net>
55645         and Bruno Haible  <bruno@clisp.org>
55646
55647         Fix OpenBSD 4.0 <float.h> handling of long double.
55648         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
55649         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
55650         * doc/headers/float.texi (float.h): Document OpenBSD bug.
55651
55652 2007-12-11  Jim Meyering  <meyering@redhat.com>
55653
55654         * users.txt: Add libvirt.
55655
55656         Support versions of autoconf prior to 2.59c.
55657         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
55658         if it is not already defined.
55659
55660 2007-12-09  Bruno Haible  <bruno@clisp.org>
55661
55662         Let 'gnulib-tool --import' collect sources needed for the tests in
55663         tests/ rather than in lib/.
55664         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
55665         argument. If true, add rules to generate libtests.a, and put libtests.a
55666         into $(LDADD). Consider source files in subdirectories and set
55667         uses_subdirs.
55668         (func_emit_initmacro_start, func_emit_initmacro_end,
55669         func_emit_initmacro_done): Pass all arguments explicitly.
55670         (func_import): Determine two module lists main_modules,
55671         testsrelated_modules. Determine use_libtests. Determine two variables
55672         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
55673         instead of just sed_transform_lib_file. Determine two variables
55674         main_files and testsrelated_files. Compute 'files' as the union of
55675         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
55676         func_add_or_update. In the generated gnulib-comp.m4, collect the
55677         object files for tests/ in different variables than those for lib/.
55678         Substitute LIBTESTS_LIBDEPS.
55679         (func_create_testdir): Combine the uses_subdirs results from
55680         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
55681
55682 2007-12-09  Bruno Haible  <bruno@clisp.org>
55683
55684         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
55685         the build-aux directory.
55686
55687 2007-12-09  Bruno Haible  <bruno@clisp.org>
55688
55689         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
55690         introduced on 2006-09-09.
55691
55692 2007-12-07  Jim Meyering  <meyering@redhat.com>
55693
55694         Let these macros work also with autoconf-2.59.
55695         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
55696         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
55697         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55698
55699 2007-12-06  Jim Meyering  <meyering@redhat.com>
55700
55701         Avoid a configure-time syntax error in gl_FUNC_ACL.
55702         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
55703         function in each branch, before testing the cache variable.
55704
55705 2007-12-04  Eric Blake  <ebb9@byu.net>
55706
55707         Make scripts executable.
55708         * build-aux/config.guess: Add execute permissions.
55709         * build-aux/config.sub: Likewise.
55710         * build-aux/gendocs.sh: Likewise.
55711
55712         Fix frexp on mingw.
55713         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
55714         cross-compiling.
55715         * doc/functions/frexp.texi (frexp): Document the bug.
55716
55717         Make cygwin fseeko check more reliable.
55718         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
55719         version numbers, rather than unrelated feature check.
55720         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
55721         * doc/functions/ftello.texi (ftello): Likewise.
55722         Reported by Bruno Haible.
55723
55724         * m4/strerror.m4: Bump version number.
55725
55726 2007-12-03  Bruno Haible  <bruno@clisp.org>
55727
55728         * doc/functions/mprotect.texi: Mention the mingw problem.
55729
55730 2007-12-03  Eric Blake  <ebb9@byu.net>
55731
55732         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
55733         REPLACE_STRERROR is initialized before this macro.
55734
55735 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55736
55737         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
55738         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
55739         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
55740         put -lsec in even for programs other than 'ls'.  This fixes a problem
55741         for gettext reported by Bruno Haible in
55742         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
55743         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
55744         Add support for Solaris 10.  This isn't efficient, but should get the
55745         job done for now.
55746
55747 2007-12-03  James Youngman  <jay@gnu.org>
55748
55749         * doc/regexprops-generic.texi: change "an close-group" to "a
55750         close-group" and "illegal" to "not allowed".
55751
55752 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55753
55754         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
55755         pr_byname.h. Needed for the rare case when the maintainer has done
55756         "make maintainer-clean" in the source directory and then attempts a
55757         build outside the source directory.
55758         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
55759         scripts_byname.h.
55760
55761 2007-12-02  Martin Lambers <marlam@marlam.de>
55762             Bruno Haible  <bruno@clisp.org>
55763
55764         * lib/getpagesize.h: Remove file.
55765         * lib/unistd.in.h: Include declaration of getpagesize here.
55766         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
55767         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
55768         HAVE_SYS_PARAM_H.
55769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
55770         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55771         * modules/getpagesize (Files): Remove lib/getpagesize.h.
55772         (Depends-on): Add unistd.
55773         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55774         (Include): Use <unistd.h> instead of getpagesize.h.
55775         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
55776         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55777         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
55778         gl_GETPAGESIZE invocation, already handled by module dependency.
55779         * lib/pagealign_alloc.c: Don't include getpagesize.h.
55780
55781 2007-12-02  Bruno Haible  <bruno@clisp.org>
55782
55783         * modules/strings-tests: New file.
55784         * tests/test-strings.c: New file.
55785
55786         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
55787         * lib/strings.in.h: New file.
55788         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
55789         * m4/strings_h.m4: New file.
55790         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
55791         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
55792         * modules/strings: New file.
55793         * modules/string (Makefile.am): Update.
55794         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
55795         Reported by Karl Berry.
55796
55797 2007-12-01  Eric Blake  <ebb9@byu.net>
55798
55799         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
55800         accomodate fix in cygwin 1.5.25.
55801
55802 2007-12-01  Jim Meyering  <meyering@redhat.com>
55803
55804         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
55805         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
55806         that would inhibit utf8-optimization of a regexp containing line-
55807         or buffer-anchors, e.g., `^', `$'.
55808
55809 2007-11-30  Bruno Haible  <bruno@clisp.org>
55810
55811         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
55812         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
55813         glthread_recursive_lock_init.
55814         * lib/lock.c (glthread_recursive_lock_init)
55815         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
55816         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55817
55818 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
55819
55820         New function qset_acl, like set_acl but with syscall semantics.
55821         * lib/acl.h (qset_acl): New decl.
55822         * lib/acl.c (qset_acl): New function.
55823         (set_acl): Use new function.  Use more-consistent diagnostics.
55824
55825 2007-11-28  Jim Meyering  <meyering@redhat.com>
55826
55827         * modules/physmem (License): Change from GPL to LGPLv2+.
55828
55829 2007-11-26  Bruno Haible  <bruno@clisp.org>
55830
55831         * lib/vasnprintf.c (decode_long_double): Don't abort if the
55832         'long double' type has excess precision.
55833         Reported by Jim Meyering in
55834         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
55835
55836 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55837
55838         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
55839         Sync from <http://gnu.org/licenses>.
55840         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
55841         with license text from same location.
55842         * doc/maintain.texi, doc/standards.texi:  Sync from
55843         <http://savannah.gnu.org/projects/gnustandards>.
55844
55845 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
55846         and Jim Meyering  <meyering@redhat.com>
55847
55848         Adjust getdate' grammar to accept a slightly more regular language.
55849         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
55850         Before, the former was rejected.
55851         * lib/getdate.y (digits_to_date_time): New function, factored
55852         out of ...
55853         (number): ...here.  Just call digits_to_date_time.
55854         (hybrid): New non-terminal to handle an <unsigned number,
55855         signed relative offset> sequence consistently.
55856
55857 2007-11-18  Jim Meyering  <meyering@redhat.com>
55858
55859         Pull my changes from coreutils:
55860         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
55861         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
55862         use of $gnulib_tool_option_extras, so that it's separated from the
55863         preceding argument.
55864
55865         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
55866         * build-aux/bootstrap (cp_mark_as_generated): Create any required
55867         parent destination directories before copying a file into place.
55868
55869 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55870
55871         bootstrap: work also with 4-argument variant of AC_INIT
55872         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
55873
55874 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55875
55876         Port test-getaddrinfo to Solaris.
55877         Problem reported by Bruno Haible in
55878         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
55879         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
55880         explanation of setting 'hints'.
55881         Don't reject an implementation merely because it returns EAI_SERVICE.
55882         (EAI_SERVICE): Define to 0 if not defined.
55883
55884 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55885
55886         The license of gnu-make and posix-shell is now "GPLed build tool".
55887         * modules/gnu-make (License): Likewise.
55888         * modules/posix-shell (License): Likewise.
55889
55890         New module posix-shell, for determining a POSIX shell
55891         or perhaps something that is close enough to a POSIX shell.
55892         * m4/posix-shell.m4: New file.
55893         * modules/posix-shell: New file.
55894
55895         * MODULES.html.sh: Mention new module.
55896
55897         New module gnu-make, for determining whether we're using GNU Make.
55898         * m4/gnu-make.m4: New file.
55899         * modules/gnu-make: New file.
55900         * MODULES.html.sh: Mention new module.
55901
55902 2007-11-14  Jim Meyering  <meyering@redhat.com>
55903
55904         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
55905         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
55906         use this macro to create a function _definition_.
55907         Remove useless "#undef ARGMATCH_DIE".
55908
55909 2007-11-14  Bruno Haible  <bruno@clisp.org>
55910
55911         * lib/config.charset: Update for OpenBSD 4.1.
55912         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
55913
55914 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
55915
55916         Document 64-bit #if problems in stdint.texi.
55917         * doc/headers/stdint.texi (stdint.h): Mention problems with
55918         64-bit-#if, and how to work around them.
55919
55920         Don't insist on 'long long int' support in the preprocessor.  It
55921         breaks too many things.  For example, PRIdMAX still uses a 'long
55922         long int' format with the latest Sun compiler, even though
55923         HAVE_LONG_LONG_INT isn't defined due to that compiler's
55924         preprocessor problem.  This causes the latest coreutils to dump
55925         core on Solaris 10 sparc with the Sun C compiler.
55926         Instead, fix the 2007-10-16 problem in a different way, by evaluating
55927         the troublesome expressions at configure-time, not at #if-time.
55928         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
55929         preprocessor.
55930         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
55931         compile-time C checks, done at 'configure'-time.
55932         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
55933         * modules/inttypes (Makefile): Substitute the new symbols that
55934         gl_INTTYPES_H now generates.
55935         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
55936
55937 2007-11-12  Bruno Haible  <bruno@clisp.org>
55938
55939         Tests for Unicode character classification functions.
55940
55941         * modules/unictype/bidicategory-byname-tests: New file.
55942         * modules/unictype/bidicategory-name-tests: New file.
55943         * modules/unictype/bidicategory-of-tests: New file.
55944         * modules/unictype/bidicategory-test-tests: New file.
55945         * modules/unictype/block-list-tests: New file.
55946         * modules/unictype/block-of-tests: New file.
55947         * modules/unictype/block-test-tests: New file.
55948         * modules/unictype/category-C-tests: New file.
55949         * modules/unictype/category-Cc-tests: New file.
55950         * modules/unictype/category-Cf-tests: New file.
55951         * modules/unictype/category-Cn-tests: New file.
55952         * modules/unictype/category-Co-tests: New file.
55953         * modules/unictype/category-Cs-tests: New file.
55954         * modules/unictype/category-L-tests: New file.
55955         * modules/unictype/category-Ll-tests: New file.
55956         * modules/unictype/category-Lm-tests: New file.
55957         * modules/unictype/category-Lo-tests: New file.
55958         * modules/unictype/category-Lt-tests: New file.
55959         * modules/unictype/category-Lu-tests: New file.
55960         * modules/unictype/category-M-tests: New file.
55961         * modules/unictype/category-Mc-tests: New file.
55962         * modules/unictype/category-Me-tests: New file.
55963         * modules/unictype/category-Mn-tests: New file.
55964         * modules/unictype/category-N-tests: New file.
55965         * modules/unictype/category-Nd-tests: New file.
55966         * modules/unictype/category-Nl-tests: New file.
55967         * modules/unictype/category-No-tests: New file.
55968         * modules/unictype/category-P-tests: New file.
55969         * modules/unictype/category-Pc-tests: New file.
55970         * modules/unictype/category-Pd-tests: New file.
55971         * modules/unictype/category-Pe-tests: New file.
55972         * modules/unictype/category-Pf-tests: New file.
55973         * modules/unictype/category-Pi-tests: New file.
55974         * modules/unictype/category-Po-tests: New file.
55975         * modules/unictype/category-Ps-tests: New file.
55976         * modules/unictype/category-S-tests: New file.
55977         * modules/unictype/category-Sc-tests: New file.
55978         * modules/unictype/category-Sk-tests: New file.
55979         * modules/unictype/category-Sm-tests: New file.
55980         * modules/unictype/category-So-tests: New file.
55981         * modules/unictype/category-Z-tests: New file.
55982         * modules/unictype/category-Zl-tests: New file.
55983         * modules/unictype/category-Zp-tests: New file.
55984         * modules/unictype/category-Zs-tests: New file.
55985         * modules/unictype/category-and-not-tests: New file.
55986         * modules/unictype/category-and-tests: New file.
55987         * modules/unictype/category-byname-tests: New file.
55988         * modules/unictype/category-name-tests: New file.
55989         * modules/unictype/category-none-tests: New file.
55990         * modules/unictype/category-of-tests: New file.
55991         * modules/unictype/category-or-tests: New file.
55992         * modules/unictype/category-test-withtable-tests: New file.
55993         * modules/unictype/combining-class-tests: New file.
55994         * modules/unictype/ctype-alnum-tests: New file.
55995         * modules/unictype/ctype-alpha-tests: New file.
55996         * modules/unictype/ctype-blank-tests: New file.
55997         * modules/unictype/ctype-cntrl-tests: New file.
55998         * modules/unictype/ctype-digit-tests: New file.
55999         * modules/unictype/ctype-graph-tests: New file.
56000         * modules/unictype/ctype-lower-tests: New file.
56001         * modules/unictype/ctype-print-tests: New file.
56002         * modules/unictype/ctype-punct-tests: New file.
56003         * modules/unictype/ctype-space-tests: New file.
56004         * modules/unictype/ctype-upper-tests: New file.
56005         * modules/unictype/ctype-xdigit-tests: New file.
56006         * modules/unictype/decimal-digit-tests: New file.
56007         * modules/unictype/digit-tests: New file.
56008         * modules/unictype/mirror-tests: New file.
56009         * modules/unictype/numeric-tests: New file.
56010         * modules/unictype/property-alphabetic-tests: New file.
56011         * modules/unictype/property-ascii-hex-digit-tests: New file.
56012         * modules/unictype/property-bidi-arabic-digit-tests: New file.
56013         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
56014         * modules/unictype/property-bidi-block-separator-tests: New file.
56015         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
56016         * modules/unictype/property-bidi-common-separator-tests: New file.
56017         * modules/unictype/property-bidi-control-tests: New file.
56018         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
56019         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
56020         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
56021         * modules/unictype/property-bidi-european-digit-tests: New file.
56022         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
56023         * modules/unictype/property-bidi-left-to-right-tests: New file.
56024         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
56025         * modules/unictype/property-bidi-other-neutral-tests: New file.
56026         * modules/unictype/property-bidi-pdf-tests: New file.
56027         * modules/unictype/property-bidi-segment-separator-tests: New file.
56028         * modules/unictype/property-bidi-whitespace-tests: New file.
56029         * modules/unictype/property-byname-tests: New file.
56030         * modules/unictype/property-combining-tests: New file.
56031         * modules/unictype/property-composite-tests: New file.
56032         * modules/unictype/property-currency-symbol-tests: New file.
56033         * modules/unictype/property-dash-tests: New file.
56034         * modules/unictype/property-decimal-digit-tests: New file.
56035         * modules/unictype/property-default-ignorable-code-point-tests: New file.
56036         * modules/unictype/property-deprecated-tests: New file.
56037         * modules/unictype/property-diacritic-tests: New file.
56038         * modules/unictype/property-extender-tests: New file.
56039         * modules/unictype/property-format-control-tests: New file.
56040         * modules/unictype/property-grapheme-base-tests: New file.
56041         * modules/unictype/property-grapheme-extend-tests: New file.
56042         * modules/unictype/property-grapheme-link-tests: New file.
56043         * modules/unictype/property-hex-digit-tests: New file.
56044         * modules/unictype/property-hyphen-tests: New file.
56045         * modules/unictype/property-id-continue-tests: New file.
56046         * modules/unictype/property-id-start-tests: New file.
56047         * modules/unictype/property-ideographic-tests: New file.
56048         * modules/unictype/property-ids-binary-operator-tests: New file.
56049         * modules/unictype/property-ids-trinary-operator-tests: New file.
56050         * modules/unictype/property-ignorable-control-tests: New file.
56051         * modules/unictype/property-iso-control-tests: New file.
56052         * modules/unictype/property-join-control-tests: New file.
56053         * modules/unictype/property-left-of-pair-tests: New file.
56054         * modules/unictype/property-line-separator-tests: New file.
56055         * modules/unictype/property-logical-order-exception-tests: New file.
56056         * modules/unictype/property-lowercase-tests: New file.
56057         * modules/unictype/property-math-tests: New file.
56058         * modules/unictype/property-non-break-tests: New file.
56059         * modules/unictype/property-not-a-character-tests: New file.
56060         * modules/unictype/property-numeric-tests: New file.
56061         * modules/unictype/property-other-alphabetic-tests: New file.
56062         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
56063         * modules/unictype/property-other-grapheme-extend-tests: New file.
56064         * modules/unictype/property-other-id-continue-tests: New file.
56065         * modules/unictype/property-other-id-start-tests: New file.
56066         * modules/unictype/property-other-lowercase-tests: New file.
56067         * modules/unictype/property-other-math-tests: New file.
56068         * modules/unictype/property-other-uppercase-tests: New file.
56069         * modules/unictype/property-paired-punctuation-tests: New file.
56070         * modules/unictype/property-paragraph-separator-tests: New file.
56071         * modules/unictype/property-pattern-syntax-tests: New file.
56072         * modules/unictype/property-pattern-white-space-tests: New file.
56073         * modules/unictype/property-private-use-tests: New file.
56074         * modules/unictype/property-punctuation-tests: New file.
56075         * modules/unictype/property-quotation-mark-tests: New file.
56076         * modules/unictype/property-radical-tests: New file.
56077         * modules/unictype/property-sentence-terminal-tests: New file.
56078         * modules/unictype/property-soft-dotted-tests: New file.
56079         * modules/unictype/property-space-tests: New file.
56080         * modules/unictype/property-terminal-punctuation-tests: New file.
56081         * modules/unictype/property-test-tests: New file.
56082         * modules/unictype/property-titlecase-tests: New file.
56083         * modules/unictype/property-unassigned-code-value-tests: New file.
56084         * modules/unictype/property-unified-ideograph-tests: New file.
56085         * modules/unictype/property-uppercase-tests: New file.
56086         * modules/unictype/property-variation-selector-tests: New file.
56087         * modules/unictype/property-white-space-tests: New file.
56088         * modules/unictype/property-xid-continue-tests: New file.
56089         * modules/unictype/property-xid-start-tests: New file.
56090         * modules/unictype/property-zero-width-tests: New file.
56091         * modules/unictype/scripts-tests: New file.
56092         * modules/unictype/syntax-c-ident-tests: New file.
56093         * modules/unictype/syntax-c-whitespace-tests: New file.
56094         * modules/unictype/syntax-java-ident-tests: New file.
56095         * modules/unictype/syntax-java-whitespace-tests: New file.
56096         * tests/unictype/test-bidi_byname.c: New file.
56097         * tests/unictype/test-bidi_name.c: New file.
56098         * tests/unictype/test-bidi_of.c: New file.
56099         * tests/unictype/test-bidi_test.c: New file.
56100         * tests/unictype/test-block_list.c: New file.
56101         * tests/unictype/test-block_of.c: New file.
56102         * tests/unictype/test-block_test.c: New file.
56103         * tests/unictype/test-categ_and.c: New file.
56104         * tests/unictype/test-categ_and_not.c: New file.
56105         * tests/unictype/test-categ_byname.c: New file.
56106         * tests/unictype/test-categ_name.c: New file.
56107         * tests/unictype/test-categ_none.c: New file.
56108         * tests/unictype/test-categ_of.c: New file.
56109         * tests/unictype/test-categ_or.c: New file.
56110         * tests/unictype/test-categ_test_withtable.c: New file.
56111         * tests/unictype/test-combining.c: New file.
56112         * tests/unictype/test-decdigit.c: New file.
56113         * tests/unictype/test-digit.c: New file.
56114         * tests/unictype/test-mirror.c: New file.
56115         * tests/unictype/test-numeric.c: New file.
56116         * tests/unictype/test-pr_byname.c: New file.
56117         * tests/unictype/test-pr_test.c: New file.
56118         * tests/unictype/test-predicate-part1.h: New file.
56119         * tests/unictype/test-predicate-part2.h: New file.
56120         * tests/unictype/test-scripts.c: New file.
56121         * tests/unictype/test-sy_c_ident.c: New file.
56122         * tests/unictype/test-sy_java_ident.c: New file.
56123
56124         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
56125         for Unicode 5.0.0.
56126         * tests/unictype/test-categ_Cc.c: Likewise.
56127         * tests/unictype/test-categ_Cf.c: Likewise.
56128         * tests/unictype/test-categ_Cn.c: Likewise.
56129         * tests/unictype/test-categ_Co.c: Likewise.
56130         * tests/unictype/test-categ_Cs.c: Likewise.
56131         * tests/unictype/test-categ_L.c: Likewise.
56132         * tests/unictype/test-categ_Ll.c: Likewise.
56133         * tests/unictype/test-categ_Lm.c: Likewise.
56134         * tests/unictype/test-categ_Lo.c: Likewise.
56135         * tests/unictype/test-categ_Lt.c: Likewise.
56136         * tests/unictype/test-categ_Lu.c: Likewise.
56137         * tests/unictype/test-categ_M.c: Likewise.
56138         * tests/unictype/test-categ_Mc.c: Likewise.
56139         * tests/unictype/test-categ_Me.c: Likewise.
56140         * tests/unictype/test-categ_Mn.c: Likewise.
56141         * tests/unictype/test-categ_N.c: Likewise.
56142         * tests/unictype/test-categ_Nd.c: Likewise.
56143         * tests/unictype/test-categ_Nl.c: Likewise.
56144         * tests/unictype/test-categ_No.c: Likewise.
56145         * tests/unictype/test-categ_P.c: Likewise.
56146         * tests/unictype/test-categ_Pc.c: Likewise.
56147         * tests/unictype/test-categ_Pd.c: Likewise.
56148         * tests/unictype/test-categ_Pe.c: Likewise.
56149         * tests/unictype/test-categ_Pf.c: Likewise.
56150         * tests/unictype/test-categ_Pi.c: Likewise.
56151         * tests/unictype/test-categ_Po.c: Likewise.
56152         * tests/unictype/test-categ_Ps.c: Likewise.
56153         * tests/unictype/test-categ_S.c: Likewise.
56154         * tests/unictype/test-categ_Sc.c: Likewise.
56155         * tests/unictype/test-categ_Sk.c: Likewise.
56156         * tests/unictype/test-categ_Sm.c: Likewise.
56157         * tests/unictype/test-categ_So.c: Likewise.
56158         * tests/unictype/test-categ_Z.c: Likewise.
56159         * tests/unictype/test-categ_Zl.c: Likewise.
56160         * tests/unictype/test-categ_Zp.c: Likewise.
56161         * tests/unictype/test-categ_Zs.c: Likewise.
56162         * tests/unictype/test-ctype_alnum.c: Likewise.
56163         * tests/unictype/test-ctype_alpha.c: Likewise.
56164         * tests/unictype/test-ctype_blank.c: Likewise.
56165         * tests/unictype/test-ctype_cntrl.c: Likewise.
56166         * tests/unictype/test-ctype_digit.c: Likewise.
56167         * tests/unictype/test-ctype_graph.c: Likewise.
56168         * tests/unictype/test-ctype_lower.c: Likewise.
56169         * tests/unictype/test-ctype_print.c: Likewise.
56170         * tests/unictype/test-ctype_punct.c: Likewise.
56171         * tests/unictype/test-ctype_space.c: Likewise.
56172         * tests/unictype/test-ctype_upper.c: Likewise.
56173         * tests/unictype/test-ctype_xdigit.c: Likewise.
56174         * tests/unictype/test-decdigit.h: Likewise.
56175         * tests/unictype/test-digit.h: Likewise.
56176         * tests/unictype/test-numeric.h: Likewise.
56177         * tests/unictype/test-pr_alphabetic.c: Likewise.
56178         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
56179         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56180         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56181         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
56182         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56183         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
56184         * tests/unictype/test-pr_bidi_control.c: Likewise.
56185         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
56186         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
56187         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56188         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
56189         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56190         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56191         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56192         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56193         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
56194         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
56195         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
56196         * tests/unictype/test-pr_combining.c: Likewise.
56197         * tests/unictype/test-pr_composite.c: Likewise.
56198         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56199         * tests/unictype/test-pr_dash.c: Likewise.
56200         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56201         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
56202         * tests/unictype/test-pr_deprecated.c: Likewise.
56203         * tests/unictype/test-pr_diacritic.c: Likewise.
56204         * tests/unictype/test-pr_extender.c: Likewise.
56205         * tests/unictype/test-pr_format_control.c: Likewise.
56206         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56207         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56208         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56209         * tests/unictype/test-pr_hex_digit.c: Likewise.
56210         * tests/unictype/test-pr_hyphen.c: Likewise.
56211         * tests/unictype/test-pr_id_continue.c: Likewise.
56212         * tests/unictype/test-pr_id_start.c: Likewise.
56213         * tests/unictype/test-pr_ideographic.c: Likewise.
56214         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
56215         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
56216         * tests/unictype/test-pr_ignorable_control.c: Likewise.
56217         * tests/unictype/test-pr_iso_control.c: Likewise.
56218         * tests/unictype/test-pr_join_control.c: Likewise.
56219         * tests/unictype/test-pr_left_of_pair.c: Likewise.
56220         * tests/unictype/test-pr_line_separator.c: Likewise.
56221         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
56222         * tests/unictype/test-pr_lowercase.c: Likewise.
56223         * tests/unictype/test-pr_math.c: Likewise.
56224         * tests/unictype/test-pr_non_break.c: Likewise.
56225         * tests/unictype/test-pr_not_a_character.c: Likewise.
56226         * tests/unictype/test-pr_numeric.c: Likewise.
56227         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56228         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
56229         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
56230         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56231         * tests/unictype/test-pr_other_id_start.c: Likewise.
56232         * tests/unictype/test-pr_other_lowercase.c: Likewise.
56233         * tests/unictype/test-pr_other_math.c: Likewise.
56234         * tests/unictype/test-pr_other_uppercase.c: Likewise.
56235         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
56236         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
56237         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
56238         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
56239         * tests/unictype/test-pr_private_use.c: Likewise.
56240         * tests/unictype/test-pr_punctuation.c: Likewise.
56241         * tests/unictype/test-pr_quotation_mark.c: Likewise.
56242         * tests/unictype/test-pr_radical.c: Likewise.
56243         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56244         * tests/unictype/test-pr_soft_dotted.c: Likewise.
56245         * tests/unictype/test-pr_space.c: Likewise.
56246         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56247         * tests/unictype/test-pr_titlecase.c: Likewise.
56248         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56249         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56250         * tests/unictype/test-pr_uppercase.c: Likewise.
56251         * tests/unictype/test-pr_variation_selector.c: Likewise.
56252         * tests/unictype/test-pr_white_space.c: Likewise.
56253         * tests/unictype/test-pr_xid_continue.c: Likewise.
56254         * tests/unictype/test-pr_xid_start.c: Likewise.
56255         * tests/unictype/test-pr_zero_width.c: Likewise.
56256         * tests/unictype/test-sy_c_whitespace.c: Likewise.
56257         * tests/unictype/test-sy_java_whitespace.c: Likewise.
56258
56259 2007-11-12  Bruno Haible  <bruno@clisp.org>
56260
56261         Unicode character classification functions.
56262         * lib/unictype.h: New file.
56263         * modules/unictype/base: New file.
56264         * modules/unictype/category-L: New file.
56265         * modules/unictype/category-Lu: New file.
56266         * modules/unictype/category-Ll: New file.
56267         * modules/unictype/category-Lt: New file.
56268         * modules/unictype/category-Lm: New file.
56269         * modules/unictype/category-Lo: New file.
56270         * modules/unictype/category-M: New file.
56271         * modules/unictype/category-Mn: New file.
56272         * modules/unictype/category-Mc: New file.
56273         * modules/unictype/category-Me: New file.
56274         * modules/unictype/category-N: New file.
56275         * modules/unictype/category-Nd: New file.
56276         * modules/unictype/category-Nl: New file.
56277         * modules/unictype/category-No: New file.
56278         * modules/unictype/category-P: New file.
56279         * modules/unictype/category-Pc: New file.
56280         * modules/unictype/category-Pd: New file.
56281         * modules/unictype/category-Ps: New file.
56282         * modules/unictype/category-Pe: New file.
56283         * modules/unictype/category-Pi: New file.
56284         * modules/unictype/category-Pf: New file.
56285         * modules/unictype/category-Po: New file.
56286         * modules/unictype/category-S: New file.
56287         * modules/unictype/category-Sm: New file.
56288         * modules/unictype/category-Sc: New file.
56289         * modules/unictype/category-Sk: New file.
56290         * modules/unictype/category-So: New file.
56291         * modules/unictype/category-Z: New file.
56292         * modules/unictype/category-Zs: New file.
56293         * modules/unictype/category-Zl: New file.
56294         * modules/unictype/category-Zp: New file.
56295         * modules/unictype/category-C: New file.
56296         * modules/unictype/category-Cc: New file.
56297         * modules/unictype/category-Cf: New file.
56298         * modules/unictype/category-Cs: New file.
56299         * modules/unictype/category-Co: New file.
56300         * modules/unictype/category-Cn: New file.
56301         * modules/unictype/category-or: New file.
56302         * modules/unictype/category-of: New file.
56303         * modules/unictype/category-test: New file.
56304         * modules/unictype/category-test-withtable: New file.
56305         * modules/unictype/category-byname: New file.
56306         * modules/unictype/category-none: New file.
56307         * modules/unictype/category-and: New file.
56308         * modules/unictype/category-and-not: New file.
56309         * modules/unictype/category-name: New file.
56310         * modules/unictype/combining-class: New file.
56311         * modules/unictype/category-all: New file.
56312         * modules/unictype/bidicategory-all: New file.
56313         * modules/unictype/bidicategory-byname: New file.
56314         * modules/unictype/bidicategory-name: New file.
56315         * modules/unictype/bidicategory-of: New file.
56316         * modules/unictype/bidicategory-test: New file.
56317         * modules/unictype/decimal-digit: New file.
56318         * modules/unictype/digit: New file.
56319         * modules/unictype/numeric: New file.
56320         * modules/unictype/mirror: New file.
56321         * modules/unictype/property-white-space: New file.
56322         * modules/unictype/property-alphabetic: New file.
56323         * modules/unictype/property-other-alphabetic: New file.
56324         * modules/unictype/property-not-a-character: New file.
56325         * modules/unictype/property-default-ignorable-code-point: New file.
56326         * modules/unictype/property-other-default-ignorable-code-point: New
56327         file.
56328         * modules/unictype/property-deprecated: New file.
56329         * modules/unictype/property-logical-order-exception: New file.
56330         * modules/unictype/property-variation-selector: New file.
56331         * modules/unictype/property-private-use: New file.
56332         * modules/unictype/property-unassigned-code-value: New file.
56333         * modules/unictype/property-uppercase: New file.
56334         * modules/unictype/property-other-uppercase: New file.
56335         * modules/unictype/property-lowercase: New file.
56336         * modules/unictype/property-other-lowercase: New file.
56337         * modules/unictype/property-titlecase: New file.
56338         * modules/unictype/property-soft-dotted: New file.
56339         * modules/unictype/property-id-start: New file.
56340         * modules/unictype/property-other-id-start: New file.
56341         * modules/unictype/property-id-continue: New file.
56342         * modules/unictype/property-other-id-continue: New file.
56343         * modules/unictype/property-xid-start: New file.
56344         * modules/unictype/property-xid-continue: New file.
56345         * modules/unictype/property-pattern-white-space: New file.
56346         * modules/unictype/property-pattern-syntax: New file.
56347         * modules/unictype/property-join-control: New file.
56348         * modules/unictype/property-grapheme-base: New file.
56349         * modules/unictype/property-grapheme-extend: New file.
56350         * modules/unictype/property-other-grapheme-extend: New file.
56351         * modules/unictype/property-grapheme-link: New file.
56352         * modules/unictype/property-bidi-control: New file.
56353         * modules/unictype/property-bidi-left-to-right: New file.
56354         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
56355         * modules/unictype/property-bidi-arabic-right-to-left: New file.
56356         * modules/unictype/property-bidi-european-digit: New file.
56357         * modules/unictype/property-bidi-eur-num-separator: New file.
56358         * modules/unictype/property-bidi-eur-num-terminator: New file.
56359         * modules/unictype/property-bidi-arabic-digit: New file.
56360         * modules/unictype/property-bidi-common-separator: New file.
56361         * modules/unictype/property-bidi-block-separator: New file.
56362         * modules/unictype/property-bidi-segment-separator: New file.
56363         * modules/unictype/property-bidi-whitespace: New file.
56364         * modules/unictype/property-bidi-non-spacing-mark: New file.
56365         * modules/unictype/property-bidi-boundary-neutral: New file.
56366         * modules/unictype/property-bidi-pdf: New file.
56367         * modules/unictype/property-bidi-embedding-or-override: New file.
56368         * modules/unictype/property-bidi-other-neutral: New file.
56369         * modules/unictype/property-hex-digit: New file.
56370         * modules/unictype/property-ascii-hex-digit: New file.
56371         * modules/unictype/property-ideographic: New file.
56372         * modules/unictype/property-unified-ideograph: New file.
56373         * modules/unictype/property-radical: New file.
56374         * modules/unictype/property-ids-binary-operator: New file.
56375         * modules/unictype/property-ids-trinary-operator: New file.
56376         * modules/unictype/property-zero-width: New file.
56377         * modules/unictype/property-space: New file.
56378         * modules/unictype/property-non-break: New file.
56379         * modules/unictype/property-iso-control: New file.
56380         * modules/unictype/property-format-control: New file.
56381         * modules/unictype/property-dash: New file.
56382         * modules/unictype/property-hyphen: New file.
56383         * modules/unictype/property-punctuation: New file.
56384         * modules/unictype/property-line-separator: New file.
56385         * modules/unictype/property-paragraph-separator: New file.
56386         * modules/unictype/property-quotation-mark: New file.
56387         * modules/unictype/property-sentence-terminal: New file.
56388         * modules/unictype/property-terminal-punctuation: New file.
56389         * modules/unictype/property-currency-symbol: New file.
56390         * modules/unictype/property-math: New file.
56391         * modules/unictype/property-other-math: New file.
56392         * modules/unictype/property-paired-punctuation: New file.
56393         * modules/unictype/property-left-of-pair: New file.
56394         * modules/unictype/property-combining: New file.
56395         * modules/unictype/property-composite: New file.
56396         * modules/unictype/property-decimal-digit: New file.
56397         * modules/unictype/property-numeric: New file.
56398         * modules/unictype/property-diacritic: New file.
56399         * modules/unictype/property-extender: New file.
56400         * modules/unictype/property-ignorable-control: New file.
56401         * modules/unictype/property-test: New file.
56402         * modules/unictype/property-byname: New file.
56403         * modules/unictype/property-all: New file.
56404         * modules/unictype/scripts: New file.
56405         * modules/unictype/scripts-all: New file.
56406         * modules/unictype/block-of: New file.
56407         * modules/unictype/block-test: New file.
56408         * modules/unictype/block-list: New file.
56409         * modules/unictype/block-all: New file.
56410         * modules/unictype/syntax-c-whitespace: New file.
56411         * modules/unictype/syntax-java-whitespace: New file.
56412         * modules/unictype/syntax-c-ident: New file.
56413         * modules/unictype/syntax-java-ident: New file.
56414         * modules/unictype/ctype-alnum: New file.
56415         * modules/unictype/ctype-alpha: New file.
56416         * modules/unictype/ctype-cntrl: New file.
56417         * modules/unictype/ctype-digit: New file.
56418         * modules/unictype/ctype-graph: New file.
56419         * modules/unictype/ctype-lower: New file.
56420         * modules/unictype/ctype-print: New file.
56421         * modules/unictype/ctype-punct: New file.
56422         * modules/unictype/ctype-space: New file.
56423         * modules/unictype/ctype-upper: New file.
56424         * modules/unictype/ctype-xdigit: New file.
56425         * modules/unictype/ctype-blank: New file.
56426         * lib/unictype/bidi_byname.c: New file.
56427         * lib/unictype/bidi_name.c: New file.
56428         * lib/unictype/bidi_of.c: New file.
56429         * lib/unictype/bidi_test.c: New file.
56430         * lib/unictype/bitmap.h: New file.
56431         * lib/unictype/block_test.c: New file.
56432         * lib/unictype/blocks.c: New file.
56433         * lib/unictype/categ_C.c: New file.
56434         * lib/unictype/categ_Cc.c: New file.
56435         * lib/unictype/categ_Cf.c: New file.
56436         * lib/unictype/categ_Cn.c: New file.
56437         * lib/unictype/categ_Co.c: New file.
56438         * lib/unictype/categ_Cs.c: New file.
56439         * lib/unictype/categ_L.c: New file.
56440         * lib/unictype/categ_Ll.c: New file.
56441         * lib/unictype/categ_Lm.c: New file.
56442         * lib/unictype/categ_Lo.c: New file.
56443         * lib/unictype/categ_Lt.c: New file.
56444         * lib/unictype/categ_Lu.c: New file.
56445         * lib/unictype/categ_M.c: New file.
56446         * lib/unictype/categ_Mc.c: New file.
56447         * lib/unictype/categ_Me.c: New file.
56448         * lib/unictype/categ_Mn.c: New file.
56449         * lib/unictype/categ_N.c: New file.
56450         * lib/unictype/categ_Nd.c: New file.
56451         * lib/unictype/categ_Nl.c: New file.
56452         * lib/unictype/categ_No.c: New file.
56453         * lib/unictype/categ_P.c: New file.
56454         * lib/unictype/categ_Pc.c: New file.
56455         * lib/unictype/categ_Pd.c: New file.
56456         * lib/unictype/categ_Pe.c: New file.
56457         * lib/unictype/categ_Pf.c: New file.
56458         * lib/unictype/categ_Pi.c: New file.
56459         * lib/unictype/categ_Po.c: New file.
56460         * lib/unictype/categ_Ps.c: New file.
56461         * lib/unictype/categ_S.c: New file.
56462         * lib/unictype/categ_Sc.c: New file.
56463         * lib/unictype/categ_Sk.c: New file.
56464         * lib/unictype/categ_Sm.c: New file.
56465         * lib/unictype/categ_So.c: New file.
56466         * lib/unictype/categ_Z.c: New file.
56467         * lib/unictype/categ_Zl.c: New file.
56468         * lib/unictype/categ_Zp.c: New file.
56469         * lib/unictype/categ_Zs.c: New file.
56470         * lib/unictype/categ_and.c: New file.
56471         * lib/unictype/categ_and_not.c: New file.
56472         * lib/unictype/categ_byname.c: New file.
56473         * lib/unictype/categ_name.c: New file.
56474         * lib/unictype/categ_none.c: New file.
56475         * lib/unictype/categ_of.c: New file.
56476         * lib/unictype/categ_or.c: New file.
56477         * lib/unictype/categ_test.c: New file.
56478         * lib/unictype/combining.c: New file.
56479         * lib/unictype/ctype_alnum.c: New file.
56480         * lib/unictype/ctype_alpha.c: New file.
56481         * lib/unictype/ctype_blank.c: New file.
56482         * lib/unictype/ctype_cntrl.c: New file.
56483         * lib/unictype/ctype_digit.c: New file.
56484         * lib/unictype/ctype_graph.c: New file.
56485         * lib/unictype/ctype_lower.c: New file.
56486         * lib/unictype/ctype_print.c: New file.
56487         * lib/unictype/ctype_punct.c: New file.
56488         * lib/unictype/ctype_space.c: New file.
56489         * lib/unictype/ctype_upper.c: New file.
56490         * lib/unictype/ctype_xdigit.c: New file.
56491         * lib/unictype/decdigit.c: New file.
56492         * lib/unictype/digit.c: New file.
56493         * lib/unictype/identsyntaxmap.h: New file.
56494         * lib/unictype/mirror.c: New file.
56495         * lib/unictype/numeric.c: New file.
56496         * lib/unictype/pr_alphabetic.c: New file.
56497         * lib/unictype/pr_ascii_hex_digit.c: New file.
56498         * lib/unictype/pr_bidi_arabic_digit.c: New file.
56499         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
56500         * lib/unictype/pr_bidi_block_separator.c: New file.
56501         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
56502         * lib/unictype/pr_bidi_common_separator.c: New file.
56503         * lib/unictype/pr_bidi_control.c: New file.
56504         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
56505         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
56506         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
56507         * lib/unictype/pr_bidi_european_digit.c: New file.
56508         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
56509         * lib/unictype/pr_bidi_left_to_right.c: New file.
56510         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
56511         * lib/unictype/pr_bidi_other_neutral.c: New file.
56512         * lib/unictype/pr_bidi_pdf.c: New file.
56513         * lib/unictype/pr_bidi_segment_separator.c: New file.
56514         * lib/unictype/pr_bidi_whitespace.c: New file.
56515         * lib/unictype/pr_byname.c: New file.
56516         * lib/unictype/pr_byname.gperf: New file.
56517         * lib/unictype/pr_combining.c: New file.
56518         * lib/unictype/pr_composite.c: New file.
56519         * lib/unictype/pr_currency_symbol.c: New file.
56520         * lib/unictype/pr_dash.c: New file.
56521         * lib/unictype/pr_decimal_digit.c: New file.
56522         * lib/unictype/pr_default_ignorable_code_point.c: New file.
56523         * lib/unictype/pr_deprecated.c: New file.
56524         * lib/unictype/pr_diacritic.c: New file.
56525         * lib/unictype/pr_extender.c: New file.
56526         * lib/unictype/pr_format_control.c: New file.
56527         * lib/unictype/pr_grapheme_base.c: New file.
56528         * lib/unictype/pr_grapheme_extend.c: New file.
56529         * lib/unictype/pr_grapheme_link.c: New file.
56530         * lib/unictype/pr_hex_digit.c: New file.
56531         * lib/unictype/pr_hyphen.c: New file.
56532         * lib/unictype/pr_id_continue.c: New file.
56533         * lib/unictype/pr_id_start.c: New file.
56534         * lib/unictype/pr_ideographic.c: New file.
56535         * lib/unictype/pr_ids_binary_operator.c: New file.
56536         * lib/unictype/pr_ids_trinary_operator.c: New file.
56537         * lib/unictype/pr_ignorable_control.c: New file.
56538         * lib/unictype/pr_iso_control.c: New file.
56539         * lib/unictype/pr_join_control.c: New file.
56540         * lib/unictype/pr_left_of_pair.c: New file.
56541         * lib/unictype/pr_line_separator.c: New file.
56542         * lib/unictype/pr_logical_order_exception.c: New file.
56543         * lib/unictype/pr_lowercase.c: New file.
56544         * lib/unictype/pr_math.c: New file.
56545         * lib/unictype/pr_non_break.c: New file.
56546         * lib/unictype/pr_not_a_character.c: New file.
56547         * lib/unictype/pr_numeric.c: New file.
56548         * lib/unictype/pr_other_alphabetic.c: New file.
56549         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
56550         * lib/unictype/pr_other_grapheme_extend.c: New file.
56551         * lib/unictype/pr_other_id_continue.c: New file.
56552         * lib/unictype/pr_other_id_start.c: New file.
56553         * lib/unictype/pr_other_lowercase.c: New file.
56554         * lib/unictype/pr_other_math.c: New file.
56555         * lib/unictype/pr_other_uppercase.c: New file.
56556         * lib/unictype/pr_paired_punctuation.c: New file.
56557         * lib/unictype/pr_paragraph_separator.c: New file.
56558         * lib/unictype/pr_pattern_syntax.c: New file.
56559         * lib/unictype/pr_pattern_white_space.c: New file.
56560         * lib/unictype/pr_private_use.c: New file.
56561         * lib/unictype/pr_punctuation.c: New file.
56562         * lib/unictype/pr_quotation_mark.c: New file.
56563         * lib/unictype/pr_radical.c: New file.
56564         * lib/unictype/pr_sentence_terminal.c: New file.
56565         * lib/unictype/pr_soft_dotted.c: New file.
56566         * lib/unictype/pr_space.c: New file.
56567         * lib/unictype/pr_terminal_punctuation.c: New file.
56568         * lib/unictype/pr_test.c: New file.
56569         * lib/unictype/pr_titlecase.c: New file.
56570         * lib/unictype/pr_unassigned_code_value.c: New file.
56571         * lib/unictype/pr_unified_ideograph.c: New file.
56572         * lib/unictype/pr_uppercase.c: New file.
56573         * lib/unictype/pr_variation_selector.c: New file.
56574         * lib/unictype/pr_white_space.c: New file.
56575         * lib/unictype/pr_xid_continue.c: New file.
56576         * lib/unictype/pr_xid_start.c: New file.
56577         * lib/unictype/pr_zero_width.c: New file.
56578         * lib/unictype/scripts.c: New file.
56579         * lib/unictype/sy_c_ident.c: New file.
56580         * lib/unictype/sy_c_whitespace.c: New file.
56581         * lib/unictype/sy_java_ident.c: New file.
56582         * lib/unictype/sy_java_whitespace.c: New file.
56583
56584         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
56585         Unicode 5.0.0.
56586         * lib/unictype/blocks.h: Likewise.
56587         * lib/unictype/categ_C.h: Likewise.
56588         * lib/unictype/categ_Cc.h: Likewise.
56589         * lib/unictype/categ_Cf.h: Likewise.
56590         * lib/unictype/categ_Cn.h: Likewise.
56591         * lib/unictype/categ_Co.h: Likewise.
56592         * lib/unictype/categ_Cs.h: Likewise.
56593         * lib/unictype/categ_L.h: Likewise.
56594         * lib/unictype/categ_Ll.h: Likewise.
56595         * lib/unictype/categ_Lm.h: Likewise.
56596         * lib/unictype/categ_Lo.h: Likewise.
56597         * lib/unictype/categ_Lt.h: Likewise.
56598         * lib/unictype/categ_Lu.h: Likewise.
56599         * lib/unictype/categ_M.h: Likewise.
56600         * lib/unictype/categ_Mc.h: Likewise.
56601         * lib/unictype/categ_Me.h: Likewise.
56602         * lib/unictype/categ_Mn.h: Likewise.
56603         * lib/unictype/categ_N.h: Likewise.
56604         * lib/unictype/categ_Nd.h: Likewise.
56605         * lib/unictype/categ_Nl.h: Likewise.
56606         * lib/unictype/categ_No.h: Likewise.
56607         * lib/unictype/categ_P.h: Likewise.
56608         * lib/unictype/categ_Pc.h: Likewise.
56609         * lib/unictype/categ_Pd.h: Likewise.
56610         * lib/unictype/categ_Pe.h: Likewise.
56611         * lib/unictype/categ_Pf.h: Likewise.
56612         * lib/unictype/categ_Pi.h: Likewise.
56613         * lib/unictype/categ_Po.h: Likewise.
56614         * lib/unictype/categ_Ps.h: Likewise.
56615         * lib/unictype/categ_S.h: Likewise.
56616         * lib/unictype/categ_Sc.h: Likewise.
56617         * lib/unictype/categ_Sk.h: Likewise.
56618         * lib/unictype/categ_Sm.h: Likewise.
56619         * lib/unictype/categ_So.h: Likewise.
56620         * lib/unictype/categ_Z.h: Likewise.
56621         * lib/unictype/categ_Zl.h: Likewise.
56622         * lib/unictype/categ_Zp.h: Likewise.
56623         * lib/unictype/categ_Zs.h: Likewise.
56624         * lib/unictype/categ_of.h: Likewise.
56625         * lib/unictype/combining.h: Likewise.
56626         * lib/unictype/ctype_alnum.h: Likewise.
56627         * lib/unictype/ctype_alpha.h: Likewise.
56628         * lib/unictype/ctype_blank.h: Likewise.
56629         * lib/unictype/ctype_cntrl.h: Likewise.
56630         * lib/unictype/ctype_digit.h: Likewise.
56631         * lib/unictype/ctype_graph.h: Likewise.
56632         * lib/unictype/ctype_lower.h: Likewise.
56633         * lib/unictype/ctype_print.h: Likewise.
56634         * lib/unictype/ctype_punct.h: Likewise.
56635         * lib/unictype/ctype_space.h: Likewise.
56636         * lib/unictype/ctype_upper.h: Likewise.
56637         * lib/unictype/ctype_xdigit.h: Likewise.
56638         * lib/unictype/decdigit.h: Likewise.
56639         * lib/unictype/digit.h: Likewise.
56640         * lib/unictype/mirror.h: Likewise.
56641         * lib/unictype/numeric.h: Likewise.
56642         * lib/unictype/pr_alphabetic.h: Likewise.
56643         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56644         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56645         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56646         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56647         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56648         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56649         * lib/unictype/pr_bidi_control.h: Likewise.
56650         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56651         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56652         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56653         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56654         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56655         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56656         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56657         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56658         * lib/unictype/pr_bidi_pdf.h: Likewise.
56659         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56660         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56661         * lib/unictype/pr_combining.h: Likewise.
56662         * lib/unictype/pr_composite.h: Likewise.
56663         * lib/unictype/pr_currency_symbol.h: Likewise.
56664         * lib/unictype/pr_dash.h: Likewise.
56665         * lib/unictype/pr_decimal_digit.h: Likewise.
56666         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56667         * lib/unictype/pr_deprecated.h: Likewise.
56668         * lib/unictype/pr_diacritic.h: Likewise.
56669         * lib/unictype/pr_extender.h: Likewise.
56670         * lib/unictype/pr_format_control.h: Likewise.
56671         * lib/unictype/pr_grapheme_base.h: Likewise.
56672         * lib/unictype/pr_grapheme_extend.h: Likewise.
56673         * lib/unictype/pr_grapheme_link.h: Likewise.
56674         * lib/unictype/pr_hex_digit.h: Likewise.
56675         * lib/unictype/pr_hyphen.h: Likewise.
56676         * lib/unictype/pr_id_continue.h: Likewise.
56677         * lib/unictype/pr_id_start.h: Likewise.
56678         * lib/unictype/pr_ideographic.h: Likewise.
56679         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56680         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56681         * lib/unictype/pr_ignorable_control.h: Likewise.
56682         * lib/unictype/pr_iso_control.h: Likewise.
56683         * lib/unictype/pr_join_control.h: Likewise.
56684         * lib/unictype/pr_left_of_pair.h: Likewise.
56685         * lib/unictype/pr_line_separator.h: Likewise.
56686         * lib/unictype/pr_logical_order_exception.h: Likewise.
56687         * lib/unictype/pr_lowercase.h: Likewise.
56688         * lib/unictype/pr_math.h: Likewise.
56689         * lib/unictype/pr_non_break.h: Likewise.
56690         * lib/unictype/pr_not_a_character.h: Likewise.
56691         * lib/unictype/pr_numeric.h: Likewise.
56692         * lib/unictype/pr_other_alphabetic.h: Likewise.
56693         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56694         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56695         * lib/unictype/pr_other_id_continue.h: Likewise.
56696         * lib/unictype/pr_other_id_start.h: Likewise.
56697         * lib/unictype/pr_other_lowercase.h: Likewise.
56698         * lib/unictype/pr_other_math.h: Likewise.
56699         * lib/unictype/pr_other_uppercase.h: Likewise.
56700         * lib/unictype/pr_paired_punctuation.h: Likewise.
56701         * lib/unictype/pr_paragraph_separator.h: Likewise.
56702         * lib/unictype/pr_pattern_syntax.h: Likewise.
56703         * lib/unictype/pr_pattern_white_space.h: Likewise.
56704         * lib/unictype/pr_private_use.h: Likewise.
56705         * lib/unictype/pr_punctuation.h: Likewise.
56706         * lib/unictype/pr_quotation_mark.h: Likewise.
56707         * lib/unictype/pr_radical.h: Likewise.
56708         * lib/unictype/pr_sentence_terminal.h: Likewise.
56709         * lib/unictype/pr_soft_dotted.h: Likewise.
56710         * lib/unictype/pr_space.h: Likewise.
56711         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56712         * lib/unictype/pr_titlecase.h: Likewise.
56713         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56714         * lib/unictype/pr_unified_ideograph.h: Likewise.
56715         * lib/unictype/pr_uppercase.h: Likewise.
56716         * lib/unictype/pr_variation_selector.h: Likewise.
56717         * lib/unictype/pr_white_space.h: Likewise.
56718         * lib/unictype/pr_xid_continue.h: Likewise.
56719         * lib/unictype/pr_xid_start.h: Likewise.
56720         * lib/unictype/pr_zero_width.h: Likewise.
56721         * lib/unictype/scripts.h: Likewise.
56722         * lib/unictype/scripts_byname.gperf: Likewise.
56723         * lib/unictype/sy_c_ident.h: Likewise.
56724         * lib/unictype/sy_c_whitespace.h: Likewise.
56725         * lib/unictype/sy_java_ident.h: Likewise.
56726         * lib/unictype/sy_java_whitespace.h: Likewise.
56727
56728         * lib/unictype/Makefile: New file.
56729         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
56730         glibc.
56731         * lib/unictype/3level.h: New file, copied from glibc.
56732         * lib/unictype/3levelbit.h: New file.
56733
56734 2007-11-11  Bruno Haible  <bruno@clisp.org>
56735
56736         * modules/gperf: New file.
56737         * modules/iconv_open (Depends-on): Add it.
56738         (Makefile.am): Remove the GPERF definition.
56739
56740 2007-11-11  Bruno Haible  <bruno@clisp.org>
56741
56742         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
56743         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
56744
56745 2007-11-11  Bruno Haible  <bruno@clisp.org>
56746
56747         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
56748         (usage): Remove function.
56749
56750 2007-11-11  Bruno Haible  <bruno@clisp.org>
56751
56752         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
56753         gl_FUNC_CEILF_LIBS.
56754         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
56755         gl_FUNC_CEIL_LIBS.
56756         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
56757         gl_FUNC_CEILL_LIBS.
56758         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
56759         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
56760         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
56761
56762 2007-11-11  Bruno Haible  <bruno@clisp.org>
56763
56764         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
56765         roundf were declared but do not exist on functions.
56766         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
56767         roundl were declared but do not exist on functions.
56768         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
56769         HAVE_FLOORL_AND_CEILL, respectively.
56770         Needed for Sun C on Solaris 10.
56771
56772 2007-11-11  Bruno Haible  <bruno@clisp.org>
56773
56774         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
56775         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
56776         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
56777         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
56778         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
56779         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
56780         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
56781         HAVE_DECL_ROUNDF.
56782         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
56783         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
56784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
56785         of HAVE_DECL_ROUND*.
56786         * modules/math (Makefile.am): Update.
56787
56788 2007-11-10  Bruno Haible  <bruno@clisp.org>
56789
56790         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
56791         ptrdiff_t as m4/intl.m4.
56792
56793 2007-11-10  Jim Meyering  <meyering@redhat.com>
56794
56795         Avoid link failure for the argmatch test.
56796         * tests/test-argmatch.c (usage): Define function to avoid a link
56797         failure: argmatch_die requires a usage function.
56798
56799 2007-11-09  Bruno Haible  <bruno@clisp.org>
56800
56801         * doc/functions/snprintf.texi: Mention BeOS deficiency.
56802         * doc/functions/vsnprintf.texi: Likewise.
56803         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
56804         with a size argument < 2.
56805
56806 2007-11-09  Bruno Haible  <bruno@clisp.org>
56807
56808         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
56809         buffer. Fixes an inefficiency introduced on 2007-11-03.
56810
56811 2007-11-09  Bruno Haible  <bruno@clisp.org>
56812
56813         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
56814         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
56815
56816 2007-11-08  Jim Meyering  <meyering@redhat.com>
56817
56818         Change cache variable name prefix "jm_" to "gl_" everywhere.
56819         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
56820         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
56821         * m4/uptime.m4: s/gl_/jm_/
56822
56823 2007-11-07  Bruno Haible  <bruno@clisp.org>
56824
56825         Update to GNU gettext 0.17.
56826         * m4/intl.m4: Update to GNU gettext 0.17.
56827         * m4/po.m4: Likewise.
56828         * modules/gettext (Files): Remove m4/ulonglong.m4.
56829         (configure.ac): Require gettext infrastructure from version 0.17.
56830
56831 2007-11-06  Bruno Haible  <bruno@clisp.org>
56832
56833         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
56834         symbolic values are not defined in a public header.
56835         * lib/freadable.c (freadable) [QNX]: Likewise.
56836         * lib/freadahead.c (freadahead) [QNX]: Likewise.
56837         * lib/freading.c (freading) [QNX]: Likewise.
56838         * lib/fseterr.c (fseterr) [QNX]: Likewise.
56839         * lib/fwritable.c (fwritable) [QNX]: Likewise.
56840         * lib/fwriting.c (fwriting) [QNX]: Likewise.
56841         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
56842         Reported by Alain Magloire.
56843
56844         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
56845
56846 2007-11-05  Bruno Haible  <bruno@clisp.org>
56847
56848         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
56849         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
56850         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
56851         Reported by Eric Blake.
56852
56853 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56854             Bruno Haible  <bruno@clisp.org>
56855
56856         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
56857         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
56858         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
56859         (malloc): Undefine also before including <stdlib.h>.
56860         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
56861         Needed on OSF/1 4.0.
56862
56863 2007-11-05  Jim Meyering  <meyering@redhat.com>
56864
56865         git-version-gen: sync from coreutils.
56866         * build-aux/git-version-gen: Add comments.
56867         Change the first '-' to '.' in the snapshot version string,
56868         e.g., 6.9-377-08144 -> 6.9.377-08144
56869         Remove first parameter.
56870         Don't declare a version "-dirty" merely because a time
56871         stamp has changed.
56872
56873 2007-11-04  Bruno Haible  <bruno@clisp.org>
56874
56875         * lib/lock.h: Protect all macro definitions containing an 'if'
56876         statement through a "do { ... } while (0)".
56877         * lib/tls.h: Likewise.
56878
56879 2007-11-04  Bruno Haible  <bruno@clisp.org>
56880
56881         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
56882
56883 2007-11-04  Bruno Haible  <bruno@clisp.org>
56884
56885         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
56886         * modules/fprintf-posix (Depends-on): Add nocrash.
56887         * modules/snprintf-posix (Depends-on): Likewise.
56888         * modules/sprintf-posix (Depends-on): Likewise.
56889         * modules/vasnprintf-posix (Depends-on): Likewise.
56890         * modules/vasprintf-posix (Depends-on): Likewise.
56891         * modules/vfprintf-posix (Depends-on): Likewise.
56892         * modules/vsnprintf-posix (Depends-on): Likewise.
56893         * modules/vsprintf-posix (Depends-on): Likewise.
56894         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56895         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56896         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56897         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56898         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56899         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56900         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56901
56902 2007-11-04  Bruno Haible  <bruno@clisp.org>
56903
56904         * modules/nocrash: New file.
56905         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
56906         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
56907
56908 2007-11-04  Bruno Haible  <bruno@clisp.org>
56909
56910         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
56911         precision handling.
56912         * tests/test-vasprintf-posix.c (test_function): Likewise.
56913         * tests/test-snprintf-posix.h (test_function): Likewise.
56914         * tests/test-sprintf-posix.h (test_function): Likewise.
56915
56916         Fix *printf behaviour for large precisions on mingw and BeOS.
56917         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
56918         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
56919         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
56920         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56921         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56922         gl_PRINTF_PRECISION and test its result. Invoke
56923         gl_PREREQ_VASNPRINTF_PRECISION.
56924         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56925         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56926         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56927         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56928         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56929         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56930         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56931         * doc/functions/fprintf.texi: Update.
56932         * doc/functions/printf.texi: Update.
56933         * doc/functions/snprintf.texi: Update.
56934         * doc/functions/sprintf.texi: Update.
56935         * doc/functions/vfprintf.texi: Update.
56936         * doc/functions/vprintf.texi: Update.
56937         * doc/functions/vsnprintf.texi: Update.
56938         * doc/functions/vsprintf.texi: Update.
56939
56940 2007-11-04  Bruno Haible  <bruno@clisp.org>
56941
56942         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
56943
56944 2007-11-04  Bruno Haible  <bruno@clisp.org>
56945
56946         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
56947         Reported by Sylvain Beucler <beuc@gnu.org>.
56948
56949 2007-11-03  Bruno Haible  <bruno@clisp.org>
56950
56951         * tests/test-fprintf-posix2.sh: New file.
56952         * tests/test-fprintf-posix2.c: New file.
56953         * modules/fprintf-posix-tests (Files): Add them.
56954         (TESTS): Add test-fprintf-posix2.sh.
56955         (configure.ac): Check for getrlimit and setrlimit.
56956         (check_PROGRAMS): Add test-fprintf-posix2.
56957
56958         * tests/test-printf-posix2.sh: New file.
56959         * tests/test-printf-posix2.c: New file.
56960         * modules/printf-posix-tests (Files): Add them.
56961         (TESTS): Add test-printf-posix2.sh.
56962         (configure.ac): Check for getrlimit and setrlimit.
56963         (check_PROGRAMS): Add test-printf-posix2.
56964
56965         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
56966         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
56967         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
56968         (decode_double): New function, copied from decode_long_double.
56969         (scale10_round_decimal_decoded): New function, extracted from
56970         scale10_round_decimal_long_double.
56971         (scale10_round_decimal_long_double): Use it.
56972         (scale10_round_decimal_double): New function.
56973         (floorlog10): New function.
56974         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
56975         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
56976         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56977         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56978         gl_PRINTF_ENOMEM and test its result. Invoke
56979         gl_PREREQ_VASNPRINTF_ENOMEM.
56980         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56981         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56982         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56983         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56984         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56986         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56987         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
56988         * modules/snprintf-posix (Depends-on): Likewise.
56989         * modules/sprintf-posix (Depends-on): Likewise.
56990         * modules/vasnprintf-posix (Depends-on): Likewise.
56991         * modules/vasprintf-posix (Depends-on): Likewise.
56992         * modules/vfprintf-posix (Depends-on): Likewise.
56993         * modules/vsnprintf-posix (Depends-on): Likewise.
56994         * modules/vsprintf-posix (Depends-on): Likewise.
56995         * doc/functions/fprintf.texi: Update.
56996         * doc/functions/printf.texi: Update.
56997         * doc/functions/snprintf.texi: Update.
56998         * doc/functions/sprintf.texi: Update.
56999         * doc/functions/vfprintf.texi: Update.
57000         * doc/functions/vprintf.texi: Update.
57001         * doc/functions/vsnprintf.texi: Update.
57002         * doc/functions/vsprintf.texi: Update.
57003
57004 2007-11-03  Bruno Haible  <bruno@clisp.org>
57005
57006         * modules/frexp-nolibm-tests: New file.
57007
57008         * modules/frexp-nolibm: New file.
57009         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
57010
57011 2007-11-03  Bruno Haible  <bruno@clisp.org>
57012
57013         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
57014         value is C99 compliant.
57015         Needed for OSF/1 5.1.
57016
57017 2007-11-03  Bruno Haible  <bruno@clisp.org>
57018
57019         Fix out-of-memory handling of vasnprintf.
57020         * lib/printf-parse.c: Include <errno.h>.
57021         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
57022         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
57023         is already set.
57024
57025 2007-11-02  Eric Blake  <ebb9@byu.net>
57026
57027         Fix tests on cygwin.
57028         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
57029
57030 2007-11-01  Bruno Haible  <bruno@clisp.org>
57031
57032         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
57033         warning.
57034         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
57035         needed for POSIX compatibility.
57036
57037 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57038
57039         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
57040         for compatibility with GNU.
57041
57042 2007-11-01  Bruno Haible  <bruno@clisp.org>
57043
57044         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
57045         (putenv): Renamed from rpl_putenv. Change argument type from
57046         'const char *' to 'char *'.
57047         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
57048         of defining putenv in config.h, just set REPLACE_PUTENV.
57049         * modules/putenv (Depends-on): Add stdlib.
57050         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57051         (Include): Use <stdlib.h>.
57052         * lib/stdlib.in.h (putenv): New declaration.
57053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
57054         REPLACE_PUTENV.
57055         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
57056         REPLACE_PUTENV.
57057         Needed for MacOS X 10.5.0.
57058         Reported by Peter O'Gorman <peter@pogma.com>.
57059
57060 2007-11-01  Jim Meyering  <meyering@redhat.com>
57061
57062         Treat an empty date string exactly like "0".
57063         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
57064         if the remaining date string (to be parsed) is empty, use "0".
57065         Reported by Mischa Molhoek and discussed in this thread:
57066         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
57067
57068 2007-10-31  Bruno Haible  <bruno@clisp.org>
57069
57070         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
57071         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
57072         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
57073         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
57074         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
57075         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
57076
57077 2007-10-31  Bruno Haible  <bruno@clisp.org>
57078
57079         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
57080         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
57081         (AC_TYPE_LONG_LONG_INT): Use it.
57082         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
57083         it as well.
57084         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
57085         to m4/longlong.m4.
57086         * modules/stdint (Files): Remove m4/ulonglong.m4.
57087         * modules/strtoull (Files): Use m4/longlong.m4 instead of
57088         m4/ulonglong.m4.
57089         * modules/strtoumax (Files): Likewise.
57090
57091 2007-10-30  Bruno Haible  <bruno@clisp.org>
57092
57093         * modules/xvasprintf-posix: New file.
57094         Suggested by Eric Blake.
57095
57096 2007-10-30  Bruno Haible  <bruno@clisp.org>
57097
57098         * modules/xprintf-posix-tests: New file.
57099         * tests/test-xprintf-posix.sh: New file.
57100         * tests/test-xprintf-posix.c: New file.
57101         * tests/test-xfprintf-posix.c: New file.
57102
57103         * modules/xprintf-posix: New file.
57104
57105 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57106
57107         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
57108         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
57109         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
57110
57111 2007-10-29  Bruno Haible  <bruno@clisp.org>
57112
57113         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
57114         contain the special marker '_cv_'.
57115         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
57116         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
57117         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
57118         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
57119         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
57120         Reported by Ralf Wildenhues.
57121
57122 2007-10-29  Bruno Haible  <bruno@clisp.org>
57123
57124         * gnulib-tool (func_import): When --lgpl is not specified, set
57125         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
57126         GPLv3.
57127         Reported by Simon Josefsson.
57128
57129 2007-10-28  Bruno Haible  <bruno@clisp.org>
57130
57131         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
57132         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
57133         HAVE_DECL_ISFINITE.
57134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57135         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
57136         HAVE_DECL_ISFINITE.
57137
57138 2007-10-28  Bruno Haible  <bruno@clisp.org>
57139
57140         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
57141         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
57142
57143 2007-10-28  Bruno Haible  <bruno@clisp.org>
57144
57145         Fix link errors with Sun C 5.0 on Solaris 10.
57146         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
57147         function is declared but not present in the compiler's libm.
57148         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
57149         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
57150         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
57151         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
57152         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
57153         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
57154         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
57155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57156         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
57157         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
57158         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
57159         HAVE_DECL_FLOORL.
57160
57161 2007-10-28  Bruno Haible  <bruno@clisp.org>
57162
57163         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
57164         gl_FUNC_FLOORL. Cache the result.
57165         (gl_FUNC_FLOORL): Use it.
57166         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
57167         gl_FUNC_CEILL. Cache the result.
57168         (gl_FUNC_CEILL): Use it.
57169
57170         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
57171         gl_FUNC_FLOOR. Cache the result.
57172         (gl_FUNC_FLOOR): Use it.
57173         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
57174         gl_FUNC_CEIL. Cache the result.
57175         (gl_FUNC_CEIL): Use it.
57176
57177         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
57178         gl_FUNC_FLOORF. Cache the result.
57179         (gl_FUNC_FLOORF): Use it.
57180         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
57181         gl_FUNC_CEILF. Cache the result.
57182         (gl_FUNC_CEILF): Use it.
57183
57184 2007-10-28  Bruno Haible  <bruno@clisp.org>
57185
57186         * gnulib-tool: Allow specifying the LGPL version number through
57187         --lgpl=2 or --lgpl=3.
57188         (func_usage): Document --lgpl with argument.
57189         Handle --lgpl=... arguments.
57190         (func_import): Recognize also gl_LGPL calls with an argument. When
57191         --lgpl=2 is used and the module's license is just LGPL, report an
57192         error. Set sed_transform_lib_file according to the lgpl variable. In
57193         the generated files, use --lgpl or gl_LGPL invocations with argument,
57194         if necessary.
57195         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
57196         an LGPv2+ license.
57197         * doc/gnulib-tool.texi (Modified imports): Update explanation of
57198         gl_LGPL macro.
57199
57200 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57201             Bruno Haible  <bruno@clisp.org>
57202
57203         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
57204         (u16_uctomb_aux): Likewise.
57205         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
57206         !HAVE_INLINE.
57207         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
57208
57209 2007-10-28  Bruno Haible  <bruno@clisp.org>
57210
57211         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
57212         Invoke AM_GETTEXT_OPTION if it exists.
57213         * modules/vasprintf: Likewise.
57214         * modules/verror: Likewise.
57215         * modules/xprintf: Likewise.
57216         * modules/xvasprintf: Likewise.
57217
57218 2007-10-27  Ben Pfaff  <blp@gnu.org>
57219
57220         * lib/math.in.h: Define isfinite macro and prototypes for
57221         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
57222         implementations.
57223         * m4/math_h.m4: New substitutions for isfinite module.
57224         * lib/isfinite.c: New file.
57225         * m4/isfinite.m4: New file.
57226         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
57227         * modules/isfinite: New file.
57228         * modules/isfinite-tests: New file.
57229         * tests/tests-isfinite.c: New file.
57230         * doc/functions/isfinite.texi: Mention isfinite module.
57231         * MODULES.html.sh: Mention new module.
57232
57233 2007-10-27  Ben Pfaff  <blp@gnu.org>
57234
57235         Ralf Wildenhues reported that Tru64 4.0D declares the round
57236         functions but does not have definitions.
57237         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
57238         cannot be found in any library, set the output variable to
57239         "missing" instead of "".
57240         * m4/round.m4: Also use our substitute if we cannot find round in
57241         any library, even if it is declared.
57242         * m4/roundf.m4: Likewise for roundf.
57243         * m4/roundl.m4: Likewise for roundl.
57244         * lib/math.in.h: Undefine roundf, round, roundl before defining
57245         their replacements, to allow for hypothetical systems where these
57246         may be defined as macros but not available in libraries.
57247
57248 2007-10-27  Bruno Haible  <bruno@clisp.org>
57249
57250         * doc/gnulib.texi: Invoke @firstparagraphindent.
57251         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
57252         changes in gnulib.
57253         (Source changes): New section.
57254
57255 2007-10-26  Bruno Haible  <bruno@clisp.org>
57256
57257         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
57258         borrowed from autoconf.
57259
57260 2007-10-26  Bruno Haible  <bruno@clisp.org>
57261
57262         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
57263         strerror returned the empty string. Needed on HP-UX 11.00.
57264
57265 2007-10-24  Micah Cowan  <micah@cowan.name>
57266
57267         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
57268         * build-aux/bootstrap: Remove support for now-unnecessary option,
57269         --cvs-user, and envvars CVS_USER, CVS_RSH.
57270
57271 2007-10-24  Jim Meyering  <meyering@redhat.com>
57272
57273         Avoid diagnostics from sha1sum when there is no cached checksum.
57274         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
57275         if the po.s1 file hasn't been created yet.
57276
57277         * build-aux/bootstrap: Sync from coreutils:
57278         2007-10-24  Jim Meyering  <meyering@redhat.com>
57279         Get gnulib from the git repository, not from an obsolete cvs one.
57280         * build-aux/bootstrap: Suggestion from Micah Cowan.
57281         2007-10-04  Jim Meyering  <jim@meyering.net>
57282         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
57283         (update_po_files): Work also when there are no .po files in po/.
57284
57285 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57286
57287         * README: Append ".git" to git and cg examples.
57288         Problem reported by Benoit Sigoure.
57289
57290 2007-10-23  Micah Cowan  <micah@cowan.name>
57291
57292         * users.txt: Add wget.
57293
57294 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57295
57296         Fix linking of some unistdio tests on FreeBSD.
57297         * modules/unistdio/u16-vsnprintf-tests
57298         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
57299         * modules/unistdio/u16-vsprintf-tests
57300         (test_u16_vsnprintf1_LDADD): Likewise.
57301         * modules/unistdio/u32-vsnprintf-tests
57302         (test_u32_vsnprintf1_LDADD): Likewise.
57303         * modules/unistdio/u32-vsprintf-tests
57304         (test_u32_vsprintf1_LDADD): Likewise.
57305         * modules/unistdio/u8-vsnprintf-tests
57306         (test_u8_vsnprintf1_LDADD): Likewise.
57307         * modules/unistdio/u8-vsprintf-tests
57308         (test_u8_vsprintf1_LDADD): Likewise.
57309         * modules/unistdio/ulc-vsnprintf-tests
57310         (test_ulc_vsnprintf1_LDADD): Likewise.
57311         * modules/unistdio/ulc-vsprintf-tests
57312         (test_ulc_vsprintf1_LDADD): Likewise.
57313
57314         Fix linking of some uniconv tests on FreeBSD.
57315         * modules/uniconv/u16-conv-from-enc-tests
57316         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
57317         * modules/uniconv/u16-conv-to-enc-tests
57318         (test_u16_conv_to_enc_LDADD): Likewise.
57319         * modules/uniconv/u16-strconv-from-enc-tests
57320         (test_u16_strconv_from_enc_LDADD): Likewise.
57321         * modules/uniconv/u16-strconv-to-enc-tests
57322         (test_u16_strconv_to_enc_LDADD): Likewise.
57323         * modules/uniconv/u32-conv-from-enc-tests
57324         (test_u32_conv_from_enc_LDADD): Likewise.
57325         * modules/uniconv/u32-conv-to-enc-tests
57326         (test_u32_conv_to_enc_LDADD): Likewise.
57327         * modules/uniconv/u32-strconv-from-enc-tests
57328         (test_u32_strconv_from_enc_LDADD): Likewise.
57329         * modules/uniconv/u32-strconv-to-enc-tests
57330         (test_u32_strconv_to_enc_LDADD): Likewise.
57331         * modules/uniconv/u8-conv-from-enc-tests
57332         (test_u8_conv_from_enc_LDADD): Likewise.
57333         * modules/uniconv/u8-conv-to-enc-tests
57334         (test_u8_conv_to_enc_LDADD): Likewise.
57335         * modules/uniconv/u8-strconv-from-enc-tests
57336         (test_u8_strconv_from_enc_LDADD): Likewise.
57337         * modules/uniconv/u8-strconv-to-enc-tests
57338         (test_u8_strconv_to_enc_LDADD): Likewise.
57339
57340 2007-10-22  Bruno Haible  <bruno@clisp.org>
57341
57342         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
57343         size.
57344
57345 2007-10-22  Eric Blake  <ebb9@byu.net>
57346
57347         Tweak x*printf documentation.
57348         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
57349         variable name and comments.
57350         Suggested by Bruno Haible.
57351
57352 2007-10-22  Bruno Haible  <bruno@clisp.org>
57353
57354         * lib/acl.c (copy_acl): Fix file name in comment.
57355
57356 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57357
57358         Fix Tru64 problem with stdbool.h.
57359         * lib/stdbool.in.h (false, true):
57360         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
57361         Don't declare as an enum in this situation; it runs afoul of Tru64.
57362         Problem reported by Steven M. Schweda in
57363         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
57364
57365 2007-10-22  Eric Blake  <ebb9@byu.net>
57366
57367         Also wrap vf?printf.
57368         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
57369         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
57370         (xvprintf, xvfprintf): New functions.
57371
57372 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57373
57374         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
57375         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
57376
57377         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
57378         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
57379
57380 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57381
57382         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
57383         by Bruno Haible.
57384
57385 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57386
57387         * lib/getloadavg.c
57388         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
57389         Undef `sys' after including sys/table.h, for Tru64 4.0D.
57390
57391         * tests/test-i-ring.c: Work for C89.
57392
57393 2007-10-22  Bruno Haible  <bruno@clisp.org>
57394
57395         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
57396         -1u, in preprocessor expression, so that we don't test for the bug
57397         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
57398         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
57399
57400 2007-10-22  Eric Blake  <ebb9@byu.net>
57401
57402         * tests/test-yesno.sh: Silence stderr during test.
57403
57404 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57405
57406         * modules/crypto/gc-camellia: New file.
57407
57408         * m4/gc-camellia.m4: New file.
57409
57410         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
57411
57412         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
57413
57414 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57415
57416         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
57417         --help to stdout.  Reported by sms@antinode.org (Steven
57418         M. Schweda).
57419
57420 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57421
57422         * users.txt: Fix link to libksba.
57423
57424 2007-10-21  Ben Pfaff  <blp@gnu.org>
57425
57426         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
57427         round.c roundf implementation that depends on floorf and ceilf to
57428         be tested unconditionally.
57429
57430 2007-10-21  Ben Pfaff  <blp@gnu.org>
57431
57432         * m4/check-libm-func.m4: Removed.
57433         * m4/check-math-lib.m4: New file.
57434         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
57435         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
57436         definition and lack of AC_LIBOBJ([roundf]).
57437         * m4/roundl.m4: Ditto, and similarly for roundl.
57438         * modules/round: Reference new m4 file.
57439         * modules/roundf: Ditto.
57440         * modules/roundl: Ditto.
57441         * tests/test-round2.c (main): Use ROUND instead of round.
57442         Bug report from Bruno Haible.
57443
57444 2007-10-21  Bruno Haible  <bruno@clisp.org>
57445
57446         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
57447         context.
57448
57449 2007-10-21  Bruno Haible  <bruno@clisp.org>
57450
57451         * tests/test-wcwidth.c (main): Allow negative result for some control
57452         characters.
57453
57454         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
57455         Needed on OSF/1 5.1.
57456
57457 2007-10-21  Bruno Haible  <bruno@clisp.org>
57458
57459         * tests/test-floorf1.c: Include isnanf.h.
57460         (main): Use isnanf() instead of isnan().
57461         * tests/test-ceilf1.c: Include isnanf.h.
57462         (main): Use isnanf() instead of isnan().
57463         * tests/test-truncf1.c: Include isnanf.h.
57464         (main): Use isnanf() instead of isnan().
57465         * tests/test-roundf1.c: Include isnanf.h.
57466         (main): Use isnanf() instead of isnan().
57467
57468 2007-10-21  Eric Blake  <ebb9@byu.net>
57469
57470         * users.txt: Update URL for m4.
57471
57472 2007-10-21  Bruno Haible  <bruno@clisp.org>
57473
57474         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
57475
57476 2007-10-21  Bruno Haible  <bruno@clisp.org>
57477
57478         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
57479         Git's management files if the CVS files are not present.
57480
57481 2007-10-20  Bruno Haible  <bruno@clisp.org>
57482
57483         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
57484         gcc-3.4.x.
57485
57486 2007-10-20  Ben Pfaff  <blp@gnu.org>
57487
57488         * lib/math.in.h: Declare round, roundf, roundl if we are providing
57489         implementations.
57490         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
57491         * lib/round.c: New file.
57492         * lib/roundf.c: New file.
57493         * lib/roundl.c: New file.
57494         * m4/round.m4: New file.
57495         * m4/roundf.m4: New file.
57496         * m4/roundl.m4: New file.
57497         * m4/check-libm-func-m4: New file.
57498         * modules/math: Replace round, roundf, roundl related @VARS@ in
57499         math.in.h.
57500         * modules/round: New file.
57501         * modules/round-tests: New file.
57502         * modules/roundf: New file.
57503         * modules/roundf-tests: New file.
57504         * modules/roundl: New file.
57505         * modules/roundl-tests: New file.
57506         * tests/test-round1.c: New file.
57507         * tests/test-round2.c: New file.
57508         * tests/test-roundf1.c: New file.
57509         * tests/test-roundf2.c: New file.
57510         * tests/test-roundl.c: New file.
57511         * doc/functions/round.texi: Mention round module.
57512         * doc/functions/roundf.texi: Mention roundf module.
57513         * doc/functions/roundl.texi: Mention roundl module.
57514         * MODULES.html.sh: Mention new modules.
57515         Thanks to Bruno Haible for suggestions.
57516
57517 2007-10-20  Jim Meyering  <meyering@redhat.com>
57518
57519         * lib/xprintf.c: Include <config.h> unconditionally.
57520
57521         Change xprintf's license to GPL.
57522         * modules/xprintf (License): s/LGPL/GPL/, since this module
57523         depends on modules (exit and exitfail) which are GPL.
57524         Suggestion from Bruno Haible.
57525
57526         xprintf fixes.
57527         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
57528         Use a clearer diagnostic.
57529         Patch from Bruno Haible.
57530
57531 2007-10-20  Bruno Haible  <bruno@clisp.org>
57532
57533         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
57534         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
57535         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57536
57537 2007-10-20  Bruno Haible  <bruno@clisp.org>
57538
57539         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
57540         precision in the comparison result > x - 1 or similar.
57541         * tests/test-ceilf2.c (correct_result_p): Likewise.
57542         * tests/test-truncf2.c (correct_result_p): Likewise.
57543         * tests/test-trunc2.c (correct_result_p): Likewise.
57544         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57545
57546 2007-10-20  Bruno Haible  <bruno@clisp.org>
57547
57548         * modules/ceil: New file.
57549         * m4/ceil.m4: New file.
57550         * doc/functions/ceil.texi: Mention the 'ceil' module.
57551
57552 2007-10-20  Bruno Haible  <bruno@clisp.org>
57553
57554         * modules/floor: New file.
57555         * m4/floor.m4: New file.
57556         * doc/functions/floor.texi: Mention the 'floor' module.
57557
57558 2007-10-20  Bruno Haible  <bruno@clisp.org>
57559
57560         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
57561         of %a.
57562         * modules/floorf-tests (Depends-on): Likewise.
57563         * modules/truncf-tests (Depends-on): Likewise.
57564         * modules/trunc-tests (Depends-on): Likewise.
57565         Reported by Ben Pfaff.
57566
57567 2007-10-19  Jim Meyering  <meyering@redhat.com>
57568
57569         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
57570         Don't bother testing specific errno values.  Just test ferror.
57571
57572         New module: xprintf
57573         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
57574
57575 2007-10-19  Bruno Haible  <bruno@clisp.org>
57576
57577         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
57578         syntax.
57579         * modules/javaexec (Makefile.am): Likewise.
57580         * modules/relocatable-prog (Makefile.am): Likewise.
57581         Suggested by Jim Meyering.
57582
57583 2007-10-18  Bruno Haible  <bruno@clisp.org>
57584
57585         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
57586         Reported by Jim Meyering.
57587
57588 2007-10-18  Eric Blake  <ebb9@byu.net>
57589
57590         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
57591
57592 2007-10-18  Bruno Haible  <bruno@clisp.org>
57593
57594         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
57595         the format string into writable memory. Needed in Fortify conditions.
57596
57597 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
57598             Bruno Haible  <bruno@clisp.org>
57599
57600         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
57601         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
57602         * modules/trim (Depends-on): Add mbchar.
57603         (configure.ac): Add gl_FUNC_MBRTOWC.
57604         (Makefile.am): Augment lib_SOURCES.
57605
57606 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57607
57608         Modify glob.c to use fstatat and dirfd, to simplify it.
57609         Suggested by Eric Blake.
57610         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
57611         Don't include <stdbool.h>; not used.
57612         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
57613         (link_exists_p): Simplify implementation, since we can now assume
57614         dirfd and fstatat.
57615         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
57616
57617 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57618
57619         * gnulib-tool (func_get_dependencies): Fix sed script to
57620         match only tests.
57621
57622 2007-10-17  Bruno Haible  <bruno@clisp.org>
57623
57624         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
57625         allow locale names without encoding suffix.
57626         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57627         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57628
57629 2007-10-16  Bruno Haible  <bruno@clisp.org>
57630
57631         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
57632         * lib/getgroups.c (getgroups): Likewise.
57633         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
57634
57635 2007-10-16  Bruno Haible  <bruno@clisp.org>
57636
57637         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
57638         * modules/malloc-posix (License): Likewise.
57639         * modules/realloc-posix (License): Likewise.
57640         * modules/calloc-posix (License): Likewise.
57641         * modules/intprops (License): Change from GPL to LGPL, with
57642         Paul Eggert's approval.
57643
57644 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57645
57646         Merge glibc changes into lib/glob.c.
57647
57648         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
57649         2007-10-15 04:59:03 UTC.  Here are the changes:
57650
57651         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
57652
57653         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
57654
57655         * lib/glob.c: Add some branch prediction throughout.
57656
57657         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
57658
57659         [BZ #5103]
57660         * lib/glob.c (glob): Recognize patterns starting \/.
57661
57662         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
57663
57664         [BZ #3996]
57665         * lib/glob.c (attribute_hidden): Define if not defined.
57666         (glob): Unescape dirname, filename or username when needed and not
57667         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
57668         is NULL.  Handle unescaped [ in pattern without closing ].
57669         Don't pass GLOB_CHECK down to recursive glob for directories.
57670         (__glob_pattern_type): New function.
57671         (__glob_pattern_p): Implement using __glob_pattern_type.
57672         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
57673         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
57674         Remove unreachable code.
57675
57676         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
57677
57678         * lib/glob.c (glob_in_dir): Add some comments and asserts to
57679         explain why there are no leaks.
57680
57681         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
57682
57683         [BZ #3253]
57684         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
57685         time, rather allocate increasingly bigger arrays of pointers, if
57686         possible with alloca, if too large with malloc.
57687
57688 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57689
57690         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
57691         Problem reported by H.Merijn Brand in
57692         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
57693         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
57694         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57695
57696 2007-10-15  Bruno Haible  <bruno@clisp.org>
57697
57698         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
57699         with explicit rpl_ prefix.
57700         * lib/fopen.c (fopen): Likewise.
57701         * lib/freopen.c (freopen): Likewise.
57702         * lib/iconv.c (iconv): Likewise.
57703         * lib/iconv_close.c (iconv_close): Likewise.
57704
57705 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57706
57707         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
57708
57709 2007-10-15  Bruno Haible  <bruno@clisp.org>
57710
57711         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
57712         <stddef.h> instead of <stdlib.h> since we only need NULL.
57713         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57714
57715 2007-10-15  Bruno Haible  <bruno@clisp.org>
57716
57717         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
57718         Replace paragraph talking about LIBOBJS.
57719         Reported by Colin Watson <cjwatson@debian.org>.
57720
57721 2007-10-15  Bruno Haible  <bruno@clisp.org>
57722
57723         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
57724         <stdlib.h> before using NULL.
57725
57726 2007-10-15  Simon Josefsson  <simon@josefsson.org>
57727
57728         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
57729         Reported by Albert Chin <china@thewrittenword.com>.
57730
57731 2007-10-14  Bruno Haible  <bruno@clisp.org>
57732
57733         * modules/iconv_open-utf-tests: New file.
57734         * tests/test-iconv-utf.c: New file.
57735
57736         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
57737         * modules/iconv_open-utf: New file.
57738         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
57739         (iconv, iconv_close): New declarations.
57740         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
57741         be defined.
57742         (iconv_open): Add special handling of conversion between UTF-8 and
57743         UTF-{16,32}{BE,LE}.
57744         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
57745         * lib/iconv_close.c: New file.
57746         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
57747         gl_FUNC_ICONV_OPEN.
57748         (gl_FUNC_ICONV_OPEN): Use it.
57749         (gl_FUNC_ICONV_OPEN_UTF): New macro.
57750         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
57751         and REPLACE_ICONV_UTF.
57752         * modules/iconv_open (Depends-on): Add c-strcase.
57753         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
57754         ICONV_CONST.
57755         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
57756
57757 2007-10-13  Albert Chin  <china@thewrittenword.com>
57758             Bruno Haible  <bruno@clisp.org>
57759
57760         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
57761         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
57762
57763 2007-10-13  Bruno Haible  <bruno@clisp.org>
57764
57765         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
57766         defined, use the ISO C99 inline semantics.
57767         * lib/argp.h (ARGP_EI): Likewise.
57768
57769 2007-10-13  Bruno Haible  <bruno@clisp.org>
57770
57771         Handle 'inline' change in gcc 4.3.0.
57772         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
57773         argp_fmtstream_write, argp_fmtstream_set_lmargin,
57774         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
57775         argp_fmtstream_point): Disable 'extern' declaration if the function
57776         definition is going to be provided inline.
57777         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
57778         semantics, not the ISO C99 inline semantics.
57779         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
57780         'extern' declaration if the function definition is going to be provided
57781         inline.
57782         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
57783         the GNU C inline semantics, not the ISO C99 inline semantics. With
57784         GCC 4.2, avoid a warning.
57785
57786 2007-10-13  Bruno Haible  <bruno@clisp.org>
57787
57788         * lib/freading.h (freading): Enable the use of __freading for
57789         glibc >= 2.7.
57790         * lib/freading.c (freading): Likewise.
57791
57792 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57793
57794         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
57795         "warning: C99 inline functions are not supported; using GNU89".
57796
57797 2007-10-12  Bruno Haible  <bruno@clisp.org>
57798
57799         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
57800         of 2.
57801         * tests/test-ceilf2.c: New file.
57802         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
57803
57804         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
57805         * modules/ceilf-tests: Update.
57806
57807 2007-10-12  Bruno Haible  <bruno@clisp.org>
57808
57809         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
57810         of 2.
57811         * tests/test-floorf2.c: New file.
57812         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
57813
57814         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
57815         * modules/floorf-tests: Update.
57816
57817 2007-10-12  Bruno Haible  <bruno@clisp.org>
57818
57819         * tests/test-trunc2.c: New file.
57820         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
57821
57822         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
57823         * modules/trunc-tests: Update.
57824
57825 2007-10-12  Bruno Haible  <bruno@clisp.org>
57826
57827         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
57828         of 2.
57829         * tests/test-truncf2.c: New file.
57830         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
57831
57832         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
57833         * modules/truncf-tests: Update.
57834
57835 2007-10-11  Eric Blake  <ebb9@byu.net>
57836
57837         Don't claim strerror is broken on Interix.
57838         * doc/functions/strerror.texi (strerror): Known broken systems are
57839         now Solaris 8, and not Interix.
57840         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
57841         Interix on cross-compile.
57842         Reported by Martin Koeppe in
57843         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
57844
57845 2007-10-11  Bruno Haible  <bruno@clisp.org>
57846
57847         * modules/i-ring-tests: New file.
57848         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
57849         instead of assert.
57850
57851 2007-10-11  Bruno Haible  <bruno@clisp.org>
57852
57853         * modules/filenamecat-tests: New file.
57854         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
57855         * lib/filenamecat.c: Remove test code.
57856
57857 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57858
57859         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
57860
57861         * lib/strerror.c: Include <string.h> always, to test interface,
57862         and to remove the need for the dummy.
57863         Include intprops.h to compute width instead of doing it ourselves
57864         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
57865         (strerror): Define it to return NULL if there's no system strerror.
57866         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
57867         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
57868         ancient pre-strerror Unix systems well any more.  Saying "unknown
57869         system error" is enough.
57870         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
57871         simpler strerror.c implementation.
57872         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
57873         Simplify the tests to reflect the simpler strerror implementation.
57874         * modules/strerror (Depends-on): Add intprops.
57875
57876 2007-10-09  Eric Blake  <ebb9@byu.net>
57877
57878         Silence test-fpending.
57879         * modules/fpending-tests (Files): Add wrapper script.
57880         * tests/test-fpending.sh: New file.
57881
57882 2007-10-09  Bruno Haible  <bruno@clisp.org>
57883
57884         * MODULES.html.sh (func_module): Don't create a hyperlink for
57885         function names like 'printf_frexp'.
57886         (Misc): Add crc, memxor.
57887         (Characteristics of floating types): New section.
57888         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
57889         isnanf-nolibm, signbit, trunc, truncf, truncl.
57890         (Enhancements for ISO C 99 functions): New subsection Input/output.
57891         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
57892         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
57893         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
57894         (Compatibility checks for POSIX:2001 functions): Add clock-time.
57895         (Enhancements for POSIX:2001 functions): Add chdir-long.
57896         (File system functions): Add areadlink, chdir-safer, read-file.
57897         Remove cycle-check.
57898         (File system as inode set): New section.
57899         (Date and time): Add gethrxtime.
57900         (Multithreading): Add openmp.
57901         (Internationalization functions): Add localename.
57902         (Unicode string functions): Add unistr/u*-mbsnlen.
57903         (Support for maintaining and releasing projects): Add git-version-gen.
57904         (Lone files): Remove directories.
57905
57906 2007-10-08  Ben Pfaff  <blp@gnu.org>
57907
57908         * lib/xmalloca.h: Fix typo in comment.
57909
57910 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57911
57912         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
57913         when avoiding problems with integer overflow.  Use a portable test
57914         instead.
57915
57916 2007-10-08  Simon Josefsson  <simon@josefsson.org>
57917
57918         * modules/dummy (License): Change to LGPLv2+.
57919         * modules/float (License): Likewise
57920         * modules/realloc (License): Likewise
57921         * modules/stdlib (License): Likewise
57922
57923 2007-10-07  Bruno Haible  <bruno@clisp.org>
57924
57925         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
57926         * floor.c (TWO_MANT_DIG): Likewise.
57927         * ceil.c (TWO_MANT_DIG): Likewise.
57928         Reported by Ben Pfaff.
57929
57930 2007-10-07  Bruno Haible  <bruno@clisp.org>
57931
57932         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
57933         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
57934         * lib/frexp.c (FUNC): Likewise.
57935         * lib/printf-frexp.h (printf_frexp): Likewise.
57936         * lib/printf-frexpl.h (printf_frexpl): Likewise.
57937         * lib/printf-frexp.c (FUNC): Likewise.
57938         Suggested by Jim Meyering.
57939
57940 2007-10-07  Jim Meyering  <meyering@redhat.com>
57941
57942         Make xnanosleep's integer overflow test more robust.
57943         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
57944         so that gcc-4.3.0 doesn't optimize away this test for overflow.
57945
57946 2007-10-07  Bruno Haible  <bruno@clisp.org>
57947
57948         * NEWS: Mention the license change.
57949
57950         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
57951         abbreviations in the modules files.
57952
57953         Change copyright notice from GPLv2+ to GPLv3+.
57954         * README: Change copyright notice.
57955         * MODULES.html.sh: Likewise.
57956         * build-aux/bootstrap.conf: Likewise.
57957         * build-aux/config.libpath: Likewise.
57958         * build-aux/csharpcomp.sh.in: Likewise.
57959         * build-aux/csharpexec.sh.in: Likewise.
57960         * build-aux/install-reloc: Likewise.
57961         * build-aux/javacomp.sh.in: Likewise.
57962         * build-aux/javaexec.sh.in: Likewise.
57963         * build-aux/ldd.sh.in: Likewise.
57964         * build-aux/reloc-ldflags: Likewise.
57965         * build-aux/relocatable.sh.in: Likewise.
57966         * build-aux/x-to-1.in: Likewise.
57967         * check-module: Likewise.
57968         * config/srclistvars.sh: Likewise.
57969         * gnulib-tool: Likewise.
57970         * lib/acl-internal.h: Likewise.
57971         * lib/acl.c: Likewise.
57972         * lib/acl.h: Likewise.
57973         * lib/acl_entries.c: Likewise.
57974         * lib/areadlink-with-size.c: Likewise.
57975         * lib/areadlink.c: Likewise.
57976         * lib/areadlink.h: Likewise.
57977         * lib/argmatch.c: Likewise.
57978         * lib/argmatch.h: Likewise.
57979         * lib/argp-ba.c: Likewise.
57980         * lib/argp-eexst.c: Likewise.
57981         * lib/argp-fmtstream.c: Likewise.
57982         * lib/argp-fmtstream.h: Likewise.
57983         * lib/argp-fs-xinl.c: Likewise.
57984         * lib/argp-help.c: Likewise.
57985         * lib/argp-namefrob.h: Likewise.
57986         * lib/argp-parse.c: Likewise.
57987         * lib/argp-pin.c: Likewise.
57988         * lib/argp-pv.c: Likewise.
57989         * lib/argp-pvh.c: Likewise.
57990         * lib/argp-xinl.c: Likewise.
57991         * lib/argp.h: Likewise.
57992         * lib/at-func.c: Likewise.
57993         * lib/atanl.c: Likewise.
57994         * lib/backupfile.c: Likewise.
57995         * lib/backupfile.h: Likewise.
57996         * lib/basename.c: Likewise.
57997         * lib/binary-io.h: Likewise.
57998         * lib/byteswap.in.h: Likewise.
57999         * lib/c-stack.c: Likewise.
58000         * lib/c-stack.h: Likewise.
58001         * lib/c-strcasestr.c: Likewise.
58002         * lib/c-strcasestr.h: Likewise.
58003         * lib/c-strstr.c: Likewise.
58004         * lib/c-strstr.h: Likewise.
58005         * lib/c-strtod.c: Likewise.
58006         * lib/calloc.c: Likewise.
58007         * lib/canon-host.c: Likewise.
58008         * lib/canon-host.h: Likewise.
58009         * lib/canonicalize-lgpl.c: Likewise.
58010         * lib/canonicalize.c: Likewise.
58011         * lib/canonicalize.h: Likewise.
58012         * lib/ceil.c: Likewise.
58013         * lib/ceilf.c: Likewise.
58014         * lib/ceill.c: Likewise.
58015         * lib/chdir-long.c: Likewise.
58016         * lib/chdir-long.h: Likewise.
58017         * lib/chdir-safer.c: Likewise.
58018         * lib/chdir-safer.h: Likewise.
58019         * lib/chown.c: Likewise.
58020         * lib/classpath.c: Likewise.
58021         * lib/classpath.h: Likewise.
58022         * lib/clean-temp.c: Likewise.
58023         * lib/clean-temp.h: Likewise.
58024         * lib/cloexec.c: Likewise.
58025         * lib/close-stream.c: Likewise.
58026         * lib/closein.c: Likewise.
58027         * lib/closein.h: Likewise.
58028         * lib/closeout.c: Likewise.
58029         * lib/closeout.h: Likewise.
58030         * lib/concat-filename.c: Likewise.
58031         * lib/copy-file.c: Likewise.
58032         * lib/copy-file.h: Likewise.
58033         * lib/count-one-bits.h: Likewise.
58034         * lib/crc.c: Likewise.
58035         * lib/crc.h: Likewise.
58036         * lib/creat-safer.c: Likewise.
58037         * lib/csharpcomp.c: Likewise.
58038         * lib/csharpcomp.h: Likewise.
58039         * lib/csharpexec.c: Likewise.
58040         * lib/csharpexec.h: Likewise.
58041         * lib/cycle-check.c: Likewise.
58042         * lib/cycle-check.h: Likewise.
58043         * lib/diacrit.c: Likewise.
58044         * lib/diacrit.h: Likewise.
58045         * lib/diffseq.h: Likewise.
58046         * lib/dirchownmod.c: Likewise.
58047         * lib/dirent.in.h: Likewise.
58048         * lib/dirfd.c: Likewise.
58049         * lib/dirfd.h: Likewise.
58050         * lib/dirname.c: Likewise.
58051         * lib/dirname.h: Likewise.
58052         * lib/dummy.c: Likewise.
58053         * lib/dup-safer.c: Likewise.
58054         * lib/dup2.c: Likewise.
58055         * lib/eealloc.h: Likewise.
58056         * lib/error.c: Likewise.
58057         * lib/error.h: Likewise.
58058         * lib/euidaccess.c: Likewise.
58059         * lib/exclude.c: Likewise.
58060         * lib/exclude.h: Likewise.
58061         * lib/execute.c: Likewise.
58062         * lib/execute.h: Likewise.
58063         * lib/exitfail.c: Likewise.
58064         * lib/exitfail.h: Likewise.
58065         * lib/expl.c: Likewise.
58066         * lib/fatal-signal.c: Likewise.
58067         * lib/fatal-signal.h: Likewise.
58068         * lib/fbufmode.c: Likewise.
58069         * lib/fbufmode.h: Likewise.
58070         * lib/fchdir.c: Likewise.
58071         * lib/fchmodat.c: Likewise.
58072         * lib/fchownat.c: Likewise.
58073         * lib/fcntl--.h: Likewise.
58074         * lib/fcntl-safer.h: Likewise.
58075         * lib/fcntl.in.h: Likewise.
58076         * lib/fd-safer.c: Likewise.
58077         * lib/fflush.c: Likewise.
58078         * lib/file-has-acl.c: Likewise.
58079         * lib/file-set.c: Likewise.
58080         * lib/file-type.c: Likewise.
58081         * lib/file-type.h: Likewise.
58082         * lib/fileblocks.c: Likewise.
58083         * lib/filemode.c: Likewise.
58084         * lib/filemode.h: Likewise.
58085         * lib/filename.h: Likewise.
58086         * lib/filenamecat.c: Likewise.
58087         * lib/filenamecat.h: Likewise.
58088         * lib/findprog.c: Likewise.
58089         * lib/findprog.h: Likewise.
58090         * lib/float.in.h: Likewise.
58091         * lib/floor.c: Likewise.
58092         * lib/floorf.c: Likewise.
58093         * lib/floorl.c: Likewise.
58094         * lib/fopen-safer.c: Likewise.
58095         * lib/fopen.c: Likewise.
58096         * lib/fpending.c: Likewise.
58097         * lib/fpending.h: Likewise.
58098         * lib/fprintf.c: Likewise.
58099         * lib/fprintftime.h: Likewise.
58100         * lib/fpucw.h: Likewise.
58101         * lib/fpurge.c: Likewise.
58102         * lib/fpurge.h: Likewise.
58103         * lib/freadable.c: Likewise.
58104         * lib/freadable.h: Likewise.
58105         * lib/freadahead.c: Likewise.
58106         * lib/freadahead.h: Likewise.
58107         * lib/freading.c: Likewise.
58108         * lib/freading.h: Likewise.
58109         * lib/free.c: Likewise.
58110         * lib/freopen.c: Likewise.
58111         * lib/frexp.c: Likewise.
58112         * lib/frexpl.c: Likewise.
58113         * lib/fseek.c: Likewise.
58114         * lib/fseterr.c: Likewise.
58115         * lib/fseterr.h: Likewise.
58116         * lib/fstatat.c: Likewise.
58117         * lib/fstrcmp.c: Likewise.
58118         * lib/fstrcmp.h: Likewise.
58119         * lib/fsusage.c: Likewise.
58120         * lib/fsusage.h: Likewise.
58121         * lib/ftell.c: Likewise.
58122         * lib/ftello.c: Likewise.
58123         * lib/fts-cycle.c: Likewise.
58124         * lib/fts.c: Likewise.
58125         * lib/fts_.h: Likewise.
58126         * lib/full-read.c: Likewise.
58127         * lib/full-read.h: Likewise.
58128         * lib/full-write.c: Likewise.
58129         * lib/full-write.h: Likewise.
58130         * lib/fwritable.c: Likewise.
58131         * lib/fwritable.h: Likewise.
58132         * lib/fwriteerror.c: Likewise.
58133         * lib/fwriteerror.h: Likewise.
58134         * lib/fwriting.c: Likewise.
58135         * lib/fwriting.h: Likewise.
58136         * lib/gcd.c: Likewise.
58137         * lib/gcd.h: Likewise.
58138         * lib/getcwd.c: Likewise.
58139         * lib/getdate.h: Likewise.
58140         * lib/getdate.y: Likewise.
58141         * lib/getdomainname.c: Likewise.
58142         * lib/getdomainname.h: Likewise.
58143         * lib/getgroups.c: Likewise.
58144         * lib/gethostname.c: Likewise.
58145         * lib/gethrxtime.c: Likewise.
58146         * lib/gethrxtime.h: Likewise.
58147         * lib/getloadavg.c: Likewise.
58148         * lib/getndelim2.c: Likewise.
58149         * lib/getndelim2.h: Likewise.
58150         * lib/getnline.c: Likewise.
58151         * lib/getnline.h: Likewise.
58152         * lib/getopt.c: Likewise.
58153         * lib/getopt.in.h: Likewise.
58154         * lib/getopt1.c: Likewise.
58155         * lib/getopt_int.h: Likewise.
58156         * lib/getpagesize.h: Likewise.
58157         * lib/getsubopt.c: Likewise.
58158         * lib/gettime.c: Likewise.
58159         * lib/getugroups.c: Likewise.
58160         * lib/getugroups.h: Likewise.
58161         * lib/getusershell.c: Likewise.
58162         * lib/gl_anyavltree_list1.h: Likewise.
58163         * lib/gl_anyavltree_list2.h: Likewise.
58164         * lib/gl_anyhash_list1.h: Likewise.
58165         * lib/gl_anyhash_list2.h: Likewise.
58166         * lib/gl_anylinked_list1.h: Likewise.
58167         * lib/gl_anylinked_list2.h: Likewise.
58168         * lib/gl_anyrbtree_list1.h: Likewise.
58169         * lib/gl_anyrbtree_list2.h: Likewise.
58170         * lib/gl_anytree_list1.h: Likewise.
58171         * lib/gl_anytree_list2.h: Likewise.
58172         * lib/gl_anytree_oset.h: Likewise.
58173         * lib/gl_anytreehash_list1.h: Likewise.
58174         * lib/gl_anytreehash_list2.h: Likewise.
58175         * lib/gl_array_list.c: Likewise.
58176         * lib/gl_array_list.h: Likewise.
58177         * lib/gl_array_oset.c: Likewise.
58178         * lib/gl_array_oset.h: Likewise.
58179         * lib/gl_avltree_list.c: Likewise.
58180         * lib/gl_avltree_list.h: Likewise.
58181         * lib/gl_avltree_oset.c: Likewise.
58182         * lib/gl_avltree_oset.h: Likewise.
58183         * lib/gl_avltreehash_list.c: Likewise.
58184         * lib/gl_avltreehash_list.h: Likewise.
58185         * lib/gl_carray_list.c: Likewise.
58186         * lib/gl_carray_list.h: Likewise.
58187         * lib/gl_linked_list.c: Likewise.
58188         * lib/gl_linked_list.h: Likewise.
58189         * lib/gl_linkedhash_list.c: Likewise.
58190         * lib/gl_linkedhash_list.h: Likewise.
58191         * lib/gl_list.c: Likewise.
58192         * lib/gl_list.h: Likewise.
58193         * lib/gl_oset.c: Likewise.
58194         * lib/gl_oset.h: Likewise.
58195         * lib/gl_rbtree_list.c: Likewise.
58196         * lib/gl_rbtree_list.h: Likewise.
58197         * lib/gl_rbtree_oset.c: Likewise.
58198         * lib/gl_rbtree_oset.h: Likewise.
58199         * lib/gl_rbtreehash_list.c: Likewise.
58200         * lib/gl_rbtreehash_list.h: Likewise.
58201         * lib/gl_sublist.c: Likewise.
58202         * lib/gl_sublist.h: Likewise.
58203         * lib/group-member.c: Likewise.
58204         * lib/group-member.h: Likewise.
58205         * lib/hard-locale.c: Likewise.
58206         * lib/hard-locale.h: Likewise.
58207         * lib/hash-pjw.c: Likewise.
58208         * lib/hash-pjw.h: Likewise.
58209         * lib/hash-triple.c: Likewise.
58210         * lib/hash.c: Likewise.
58211         * lib/hash.h: Likewise.
58212         * lib/human.c: Likewise.
58213         * lib/human.h: Likewise.
58214         * lib/i-ring.c: Likewise.
58215         * lib/i-ring.h: Likewise.
58216         * lib/idcache.c: Likewise.
58217         * lib/imaxabs.c: Likewise.
58218         * lib/imaxdiv.c: Likewise.
58219         * lib/inet_pton.c: Likewise.
58220         * lib/inet_pton.h: Likewise.
58221         * lib/intprops.h: Likewise.
58222         * lib/inttostr.c: Likewise.
58223         * lib/inttostr.h: Likewise.
58224         * lib/inttypes.in.h: Likewise.
58225         * lib/isapipe.c: Likewise.
58226         * lib/isdir.c: Likewise.
58227         * lib/isnan.c: Likewise.
58228         * lib/isnan.h: Likewise.
58229         * lib/isnanf.c: Likewise.
58230         * lib/isnanf.h: Likewise.
58231         * lib/isnanl-nolibm.h: Likewise.
58232         * lib/isnanl.c: Likewise.
58233         * lib/isnanl.h: Likewise.
58234         * lib/javacomp.c: Likewise.
58235         * lib/javacomp.h: Likewise.
58236         * lib/javaexec.c: Likewise.
58237         * lib/javaexec.h: Likewise.
58238         * lib/javaversion.c: Likewise.
58239         * lib/javaversion.h: Likewise.
58240         * lib/javaversion.java: Likewise.
58241         * lib/lbrkprop.h: Likewise.
58242         * lib/lchmod.h: Likewise.
58243         * lib/lchown.c: Likewise.
58244         * lib/ldexpl.c: Likewise.
58245         * lib/linebreak.c: Likewise.
58246         * lib/linebreak.h: Likewise.
58247         * lib/linebuffer.c: Likewise.
58248         * lib/linebuffer.h: Likewise.
58249         * lib/locale.in.h: Likewise.
58250         * lib/logl.c: Likewise.
58251         * lib/long-options.c: Likewise.
58252         * lib/long-options.h: Likewise.
58253         * lib/lstat.c: Likewise.
58254         * lib/lstat.h: Likewise.
58255         * lib/math.in.h: Likewise.
58256         * lib/mbchar.c: Likewise.
58257         * lib/mbchar.h: Likewise.
58258         * lib/mbfile.h: Likewise.
58259         * lib/mbiter.h: Likewise.
58260         * lib/mbscasecmp.c: Likewise.
58261         * lib/mbscasestr.c: Likewise.
58262         * lib/mbschr.c: Likewise.
58263         * lib/mbscspn.c: Likewise.
58264         * lib/mbslen.c: Likewise.
58265         * lib/mbsncasecmp.c: Likewise.
58266         * lib/mbsnlen.c: Likewise.
58267         * lib/mbspbrk.c: Likewise.
58268         * lib/mbspcasecmp.c: Likewise.
58269         * lib/mbsrchr.c: Likewise.
58270         * lib/mbssep.c: Likewise.
58271         * lib/mbsspn.c: Likewise.
58272         * lib/mbsstr.c: Likewise.
58273         * lib/mbstok_r.c: Likewise.
58274         * lib/mbswidth.c: Likewise.
58275         * lib/mbswidth.h: Likewise.
58276         * lib/mbuiter.h: Likewise.
58277         * lib/memcasecmp.c: Likewise.
58278         * lib/memcasecmp.h: Likewise.
58279         * lib/memchr.c: Likewise.
58280         * lib/memcmp.c: Likewise.
58281         * lib/memcoll.c: Likewise.
58282         * lib/memcoll.h: Likewise.
58283         * lib/memcpy.c: Likewise.
58284         * lib/memrchr.c: Likewise.
58285         * lib/mkancesdirs.c: Likewise.
58286         * lib/mkdir-p.c: Likewise.
58287         * lib/mkdir-p.h: Likewise.
58288         * lib/mkdir.c: Likewise.
58289         * lib/mkdirat.c: Likewise.
58290         * lib/mkdtemp.c: Likewise.
58291         * lib/mkstemp-safer.c: Likewise.
58292         * lib/mkstemp.c: Likewise.
58293         * lib/modechange.c: Likewise.
58294         * lib/modechange.h: Likewise.
58295         * lib/mountlist.c: Likewise.
58296         * lib/mountlist.h: Likewise.
58297         * lib/mpsort.c: Likewise.
58298         * lib/nanosleep.c: Likewise.
58299         * lib/obstack.c: Likewise.
58300         * lib/obstack.h: Likewise.
58301         * lib/open-safer.c: Likewise.
58302         * lib/open.c: Likewise.
58303         * lib/openat-die.c: Likewise.
58304         * lib/openat-priv.h: Likewise.
58305         * lib/openat-proc.c: Likewise.
58306         * lib/openat.c: Likewise.
58307         * lib/openat.h: Likewise.
58308         * lib/pagealign_alloc.c: Likewise.
58309         * lib/pagealign_alloc.h: Likewise.
58310         * lib/physmem.c: Likewise.
58311         * lib/physmem.h: Likewise.
58312         * lib/pipe-safer.c: Likewise.
58313         * lib/pipe.c: Likewise.
58314         * lib/pipe.h: Likewise.
58315         * lib/posixtm.c: Likewise.
58316         * lib/posixtm.h: Likewise.
58317         * lib/posixver.c: Likewise.
58318         * lib/printf-frexp.c: Likewise.
58319         * lib/printf-frexp.h: Likewise.
58320         * lib/printf-frexpl.c: Likewise.
58321         * lib/printf-frexpl.h: Likewise.
58322         * lib/printf.c: Likewise.
58323         * lib/progname.c: Likewise.
58324         * lib/progname.h: Likewise.
58325         * lib/progreloc.c: Likewise.
58326         * lib/putenv.c: Likewise.
58327         * lib/quote.c: Likewise.
58328         * lib/quote.h: Likewise.
58329         * lib/quotearg.c: Likewise.
58330         * lib/quotearg.h: Likewise.
58331         * lib/raise.c: Likewise.
58332         * lib/readline.c: Likewise.
58333         * lib/readline.h: Likewise.
58334         * lib/readlink.c: Likewise.
58335         * lib/readtokens.c: Likewise.
58336         * lib/readtokens.h: Likewise.
58337         * lib/readtokens0.c: Likewise.
58338         * lib/readtokens0.h: Likewise.
58339         * lib/readutmp.c: Likewise.
58340         * lib/readutmp.h: Likewise.
58341         * lib/realloc.c: Likewise.
58342         * lib/relocwrapper.c: Likewise.
58343         * lib/rename-dest-slash.c: Likewise.
58344         * lib/rename.c: Likewise.
58345         * lib/rmdir.c: Likewise.
58346         * lib/rpmatch.c: Likewise.
58347         * lib/safe-read.c: Likewise.
58348         * lib/safe-read.h: Likewise.
58349         * lib/safe-write.c: Likewise.
58350         * lib/safe-write.h: Likewise.
58351         * lib/same-inode.h: Likewise.
58352         * lib/same.c: Likewise.
58353         * lib/same.h: Likewise.
58354         * lib/save-cwd.c: Likewise.
58355         * lib/save-cwd.h: Likewise.
58356         * lib/savedir.c: Likewise.
58357         * lib/savedir.h: Likewise.
58358         * lib/savewd.c: Likewise.
58359         * lib/savewd.h: Likewise.
58360         * lib/search.in.h: Likewise.
58361         * lib/setenv.c: Likewise.
58362         * lib/setenv.h: Likewise.
58363         * lib/settime.c: Likewise.
58364         * lib/sh-quote.c: Likewise.
58365         * lib/sh-quote.h: Likewise.
58366         * lib/sig2str.c: Likewise.
58367         * lib/sig2str.h: Likewise.
58368         * lib/signal.in.h: Likewise.
58369         * lib/signbitd.c: Likewise.
58370         * lib/signbitf.c: Likewise.
58371         * lib/signbitl.c: Likewise.
58372         * lib/sigprocmask.c: Likewise.
58373         * lib/sincosl.c: Likewise.
58374         * lib/sleep.c: Likewise.
58375         * lib/sprintf.c: Likewise.
58376         * lib/sqrtl.c: Likewise.
58377         * lib/stat-time.h: Likewise.
58378         * lib/stdio--.h: Likewise.
58379         * lib/stdio-safer.h: Likewise.
58380         * lib/stdlib--.h: Likewise.
58381         * lib/stdlib-safer.h: Likewise.
58382         * lib/stdlib.in.h: Likewise.
58383         * lib/stpcpy.c: Likewise.
58384         * lib/stpncpy.c: Likewise.
58385         * lib/strchrnul.c: Likewise.
58386         * lib/strcspn.c: Likewise.
58387         * lib/strerror.c: Likewise.
58388         * lib/strftime.c: Likewise.
58389         * lib/strftime.h: Likewise.
58390         * lib/striconveh.c: Likewise.
58391         * lib/striconveh.h: Likewise.
58392         * lib/striconveha.c: Likewise.
58393         * lib/striconveha.h: Likewise.
58394         * lib/stripslash.c: Likewise.
58395         * lib/strnlen1.c: Likewise.
58396         * lib/strnlen1.h: Likewise.
58397         * lib/strtod.c: Likewise.
58398         * lib/strtoimax.c: Likewise.
58399         * lib/strtok_r.c: Likewise.
58400         * lib/strtol.c: Likewise.
58401         * lib/strtoll.c: Likewise.
58402         * lib/strtoul.c: Likewise.
58403         * lib/strtoull.c: Likewise.
58404         * lib/sysexits.in.h: Likewise.
58405         * lib/tempname.c: Likewise.
58406         * lib/tempname.h: Likewise.
58407         * lib/timespec.h: Likewise.
58408         * lib/tls.c: Likewise.
58409         * lib/tls.h: Likewise.
58410         * lib/tmpdir.c: Likewise.
58411         * lib/tmpdir.h: Likewise.
58412         * lib/tmpfile-safer.c: Likewise.
58413         * lib/tmpfile.c: Likewise.
58414         * lib/trigl.c: Likewise.
58415         * lib/trigl.h: Likewise.
58416         * lib/trim.c: Likewise.
58417         * lib/trim.h: Likewise.
58418         * lib/trunc.c: Likewise.
58419         * lib/truncf.c: Likewise.
58420         * lib/truncl.c: Likewise.
58421         * lib/tsearch.c: Likewise.
58422         * lib/unicodeio.c: Likewise.
58423         * lib/unicodeio.h: Likewise.
58424         * lib/unistd--.h: Likewise.
58425         * lib/unistd-safer.h: Likewise.
58426         * lib/unistdio/ulc-fprintf.c: Likewise.
58427         * lib/unistdio/ulc-vfprintf.c: Likewise.
58428         * lib/unlinkdir.c: Likewise.
58429         * lib/unlinkdir.h: Likewise.
58430         * lib/unlocked-io.h: Likewise.
58431         * lib/unsetenv.c: Likewise.
58432         * lib/userspec.c: Likewise.
58433         * lib/utime.c: Likewise.
58434         * lib/utimecmp.c: Likewise.
58435         * lib/utimecmp.h: Likewise.
58436         * lib/utimens.c: Likewise.
58437         * lib/verify.h: Likewise.
58438         * lib/verror.c: Likewise.
58439         * lib/verror.h: Likewise.
58440         * lib/version-etc-fsf.c: Likewise.
58441         * lib/version-etc.c: Likewise.
58442         * lib/version-etc.h: Likewise.
58443         * lib/vfprintf.c: Likewise.
58444         * lib/vprintf.c: Likewise.
58445         * lib/vsprintf.c: Likewise.
58446         * lib/w32spawn.h: Likewise.
58447         * lib/wait-process.c: Likewise.
58448         * lib/wait-process.h: Likewise.
58449         * lib/wcwidth.c: Likewise.
58450         * lib/write-any-file.c: Likewise.
58451         * lib/xalloc-die.c: Likewise.
58452         * lib/xalloc.h: Likewise.
58453         * lib/xasprintf.c: Likewise.
58454         * lib/xgetcwd.c: Likewise.
58455         * lib/xgetcwd.h: Likewise.
58456         * lib/xgetdomainname.c: Likewise.
58457         * lib/xgetdomainname.h: Likewise.
58458         * lib/xgethostname.c: Likewise.
58459         * lib/xmalloc.c: Likewise.
58460         * lib/xmalloca.c: Likewise.
58461         * lib/xmalloca.h: Likewise.
58462         * lib/xmemcoll.c: Likewise.
58463         * lib/xnanosleep.c: Likewise.
58464         * lib/xreadlink.c: Likewise.
58465         * lib/xreadlink.h: Likewise.
58466         * lib/xsetenv.c: Likewise.
58467         * lib/xsetenv.h: Likewise.
58468         * lib/xstriconv.c: Likewise.
58469         * lib/xstriconv.h: Likewise.
58470         * lib/xstrndup.c: Likewise.
58471         * lib/xstrndup.h: Likewise.
58472         * lib/xstrtod.c: Likewise.
58473         * lib/xstrtod.h: Likewise.
58474         * lib/xstrtol-error.c: Likewise.
58475         * lib/xstrtol.c: Likewise.
58476         * lib/xstrtol.h: Likewise.
58477         * lib/xtime.h: Likewise.
58478         * lib/xvasprintf.c: Likewise.
58479         * lib/xvasprintf.h: Likewise.
58480         * lib/yesno.c: Likewise.
58481         * lib/yesno.h: Likewise.
58482         * posix-modules: Likewise.
58483         * tests/test-alloca-opt.c: Likewise.
58484         * tests/test-arcfour.c: Likewise.
58485         * tests/test-arctwo.c: Likewise.
58486         * tests/test-argmatch.c: Likewise.
58487         * tests/test-argp-2.sh: Likewise.
58488         * tests/test-argp.c: Likewise.
58489         * tests/test-arpa_inet.c: Likewise.
58490         * tests/test-array_list.c: Likewise.
58491         * tests/test-array_oset.c: Likewise.
58492         * tests/test-atexit.c: Likewise.
58493         * tests/test-avltree_list.c: Likewise.
58494         * tests/test-avltree_oset.c: Likewise.
58495         * tests/test-avltreehash_list.c: Likewise.
58496         * tests/test-base64.c: Likewise.
58497         * tests/test-binary-io.c: Likewise.
58498         * tests/test-byteswap.c: Likewise.
58499         * tests/test-c-ctype.c: Likewise.
58500         * tests/test-c-strcasecmp.c: Likewise.
58501         * tests/test-c-strcasestr.c: Likewise.
58502         * tests/test-c-strncasecmp.c: Likewise.
58503         * tests/test-c-strstr.c: Likewise.
58504         * tests/test-canonicalize-lgpl.c: Likewise.
58505         * tests/test-canonicalize.c: Likewise.
58506         * tests/test-carray_list.c: Likewise.
58507         * tests/test-ceilf.c: Likewise.
58508         * tests/test-ceill.c: Likewise.
58509         * tests/test-count-one-bits.c: Likewise.
58510         * tests/test-crc.c: Likewise.
58511         * tests/test-dirname.c: Likewise.
58512         * tests/test-fbufmode.c: Likewise.
58513         * tests/test-fcntl.c: Likewise.
58514         * tests/test-fflush.c: Likewise.
58515         * tests/test-floorf.c: Likewise.
58516         * tests/test-floorl.c: Likewise.
58517         * tests/test-fopen.c: Likewise.
58518         * tests/test-fprintf-posix.c: Likewise.
58519         * tests/test-fprintf-posix.h: Likewise.
58520         * tests/test-fpurge.c: Likewise.
58521         * tests/test-freadable.c: Likewise.
58522         * tests/test-freadahead.c: Likewise.
58523         * tests/test-freading.c: Likewise.
58524         * tests/test-freopen.c: Likewise.
58525         * tests/test-frexp.c: Likewise.
58526         * tests/test-frexpl.c: Likewise.
58527         * tests/test-fseek.c: Likewise.
58528         * tests/test-fseeko.c: Likewise.
58529         * tests/test-fseterr.c: Likewise.
58530         * tests/test-fstrcmp.c: Likewise.
58531         * tests/test-ftell.c: Likewise.
58532         * tests/test-ftello.c: Likewise.
58533         * tests/test-fwritable.c: Likewise.
58534         * tests/test-fwriting.c: Likewise.
58535         * tests/test-getaddrinfo.c: Likewise.
58536         * tests/test-getpass.c: Likewise.
58537         * tests/test-gettimeofday.c: Likewise.
58538         * tests/test-hmac-md5.c: Likewise.
58539         * tests/test-hmac-sha1.c: Likewise.
58540         * tests/test-iconv.c: Likewise.
58541         * tests/test-iconvme.c: Likewise.
58542         * tests/test-inttypes.c: Likewise.
58543         * tests/test-isnan.c: Likewise.
58544         * tests/test-isnanf.c: Likewise.
58545         * tests/test-isnanl-nolibm.c: Likewise.
58546         * tests/test-isnanl.c: Likewise.
58547         * tests/test-isnanl.h: Likewise.
58548         * tests/test-ldexpl.c: Likewise.
58549         * tests/test-linked_list.c: Likewise.
58550         * tests/test-linkedhash_list.c: Likewise.
58551         * tests/test-locale.c: Likewise.
58552         * tests/test-localename.c: Likewise.
58553         * tests/test-lock.c: Likewise.
58554         * tests/test-lseek.c: Likewise.
58555         * tests/test-malloca.c: Likewise.
58556         * tests/test-math.c: Likewise.
58557         * tests/test-mbscasecmp.c: Likewise.
58558         * tests/test-mbscasestr1.c: Likewise.
58559         * tests/test-mbscasestr2.c: Likewise.
58560         * tests/test-mbscasestr3.c: Likewise.
58561         * tests/test-mbscasestr4.c: Likewise.
58562         * tests/test-mbschr.c: Likewise.
58563         * tests/test-mbscspn.c: Likewise.
58564         * tests/test-mbsncasecmp.c: Likewise.
58565         * tests/test-mbspbrk.c: Likewise.
58566         * tests/test-mbspcasecmp.c: Likewise.
58567         * tests/test-mbsrchr.c: Likewise.
58568         * tests/test-mbsspn.c: Likewise.
58569         * tests/test-mbsstr1.c: Likewise.
58570         * tests/test-mbsstr2.c: Likewise.
58571         * tests/test-mbsstr3.c: Likewise.
58572         * tests/test-md5.c: Likewise.
58573         * tests/test-memmem.c: Likewise.
58574         * tests/test-netinet_in.c: Likewise.
58575         * tests/test-open.c: Likewise.
58576         * tests/test-printf-frexp.c: Likewise.
58577         * tests/test-printf-frexpl.c: Likewise.
58578         * tests/test-printf-posix.c: Likewise.
58579         * tests/test-printf-posix.h: Likewise.
58580         * tests/test-rbtree_list.c: Likewise.
58581         * tests/test-rbtree_oset.c: Likewise.
58582         * tests/test-rbtreehash_list.c: Likewise.
58583         * tests/test-read-file.c: Likewise.
58584         * tests/test-rijndael.c: Likewise.
58585         * tests/test-search.c: Likewise.
58586         * tests/test-signbit.c: Likewise.
58587         * tests/test-sleep.c: Likewise.
58588         * tests/test-snprintf-posix.c: Likewise.
58589         * tests/test-snprintf-posix.h: Likewise.
58590         * tests/test-snprintf.c: Likewise.
58591         * tests/test-sprintf-posix.c: Likewise.
58592         * tests/test-sprintf-posix.h: Likewise.
58593         * tests/test-stat-time.c: Likewise.
58594         * tests/test-stdbool.c: Likewise.
58595         * tests/test-stdint.c: Likewise.
58596         * tests/test-stdio.c: Likewise.
58597         * tests/test-stdlib.c: Likewise.
58598         * tests/test-stpncpy.c: Likewise.
58599         * tests/test-strcasestr.c: Likewise.
58600         * tests/test-striconv.c: Likewise.
58601         * tests/test-striconveh.c: Likewise.
58602         * tests/test-striconveha.c: Likewise.
58603         * tests/test-string.c: Likewise.
58604         * tests/test-sys_select.c: Likewise.
58605         * tests/test-sys_socket.c: Likewise.
58606         * tests/test-sys_stat.c: Likewise.
58607         * tests/test-sys_time.c: Likewise.
58608         * tests/test-sysexits.c: Likewise.
58609         * tests/test-time.c: Likewise.
58610         * tests/test-tls.c: Likewise.
58611         * tests/test-trunc.c: Likewise.
58612         * tests/test-truncf.c: Likewise.
58613         * tests/test-truncl.c: Likewise.
58614         * tests/test-unistd.c: Likewise.
58615         * tests/test-vasnprintf-posix.c: Likewise.
58616         * tests/test-vasnprintf-posix2.c: Likewise.
58617         * tests/test-vasnprintf.c: Likewise.
58618         * tests/test-vasprintf-posix.c: Likewise.
58619         * tests/test-vasprintf.c: Likewise.
58620         * tests/test-verify.c: Likewise.
58621         * tests/test-vfprintf-posix.c: Likewise.
58622         * tests/test-vprintf-posix.c: Likewise.
58623         * tests/test-vsnprintf-posix.c: Likewise.
58624         * tests/test-vsnprintf.c: Likewise.
58625         * tests/test-vsprintf-posix.c: Likewise.
58626         * tests/test-wchar.c: Likewise.
58627         * tests/test-wctype.c: Likewise.
58628         * tests/test-wcwidth.c: Likewise.
58629         * tests/test-xstrtol.c: Likewise.
58630         * tests/test-xvasprintf.c: Likewise.
58631         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
58632         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
58633         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58634         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58635         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58636         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58637         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58638         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58639         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58640         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58641         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58642         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58643         * tests/uniname/test-uninames.c: Likewise.
58644         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58645         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
58646         * tests/unistdio/test-u16-printf1.h: Likewise.
58647         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58648         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58649         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58650         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58651         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58652         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58653         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58654         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
58655         * tests/unistdio/test-u32-printf1.h: Likewise.
58656         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58657         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58658         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58659         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58660         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58661         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58662         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58663         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
58664         * tests/unistdio/test-u8-printf1.h: Likewise.
58665         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58666         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58667         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58668         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58669         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58670         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58671         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58672         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
58673         * tests/unistdio/test-ulc-printf1.h: Likewise.
58674         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58675         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58676         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58677         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58678         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58679         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58680         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58681         * tests/uniwidth/test-u16-width.c: Likewise.
58682         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58683         * tests/uniwidth/test-u32-width.c: Likewise.
58684         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58685         * tests/uniwidth/test-u8-width.c: Likewise.
58686         * tests/uniwidth/test-uc_width.c: Likewise.
58687         * config/srclist-update: Likewise.
58688         (fixlicense): Update to GPLv3+.
58689
58690         Change copyright notice from LGPLv2.1+ to LGPLv3+.
58691         * tests/test-tsearch.c: Change copyright notice.
58692
58693         Change copyright notice from LGPLv2.0+ to LGPLv3+.
58694         * lib/c-strcaseeq.h: Change copyright notice.
58695         * lib/streq.h: Likewise.
58696         * lib/uniconv.h: Likewise.
58697         * lib/uniconv/u-conv-from-enc.h: Likewise.
58698         * lib/uniconv/u-conv-to-enc.h: Likewise.
58699         * lib/uniconv/u-strconv-from-enc.h: Likewise.
58700         * lib/uniconv/u-strconv-to-enc.h: Likewise.
58701         * lib/uniconv/u16-conv-from-enc.c: Likewise.
58702         * lib/uniconv/u16-conv-to-enc.c: Likewise.
58703         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
58704         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
58705         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
58706         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
58707         * lib/uniconv/u32-conv-from-enc.c: Likewise.
58708         * lib/uniconv/u32-conv-to-enc.c: Likewise.
58709         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
58710         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
58711         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
58712         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
58713         * lib/uniconv/u8-conv-from-enc.c: Likewise.
58714         * lib/uniconv/u8-conv-to-enc.c: Likewise.
58715         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
58716         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
58717         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
58718         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
58719         * lib/uniname.h: Likewise.
58720         * lib/uniname/uniname.c: Likewise.
58721         * lib/unistdio.h: Likewise.
58722         * lib/unistdio/u-asnprintf.h: Likewise.
58723         * lib/unistdio/u-asprintf.h: Likewise.
58724         * lib/unistdio/u-printf-args.c: Likewise.
58725         * lib/unistdio/u-printf-args.h: Likewise.
58726         * lib/unistdio/u-printf-parse.h: Likewise.
58727         * lib/unistdio/u-snprintf.h: Likewise.
58728         * lib/unistdio/u-sprintf.h: Likewise.
58729         * lib/unistdio/u-vasprintf.h: Likewise.
58730         * lib/unistdio/u-vsnprintf.h: Likewise.
58731         * lib/unistdio/u-vsprintf.h: Likewise.
58732         * lib/unistdio/u16-asnprintf.c: Likewise.
58733         * lib/unistdio/u16-asprintf.c: Likewise.
58734         * lib/unistdio/u16-printf-parse.c: Likewise.
58735         * lib/unistdio/u16-snprintf.c: Likewise.
58736         * lib/unistdio/u16-sprintf.c: Likewise.
58737         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
58738         * lib/unistdio/u16-u16-asprintf.c: Likewise.
58739         * lib/unistdio/u16-u16-snprintf.c: Likewise.
58740         * lib/unistdio/u16-u16-sprintf.c: Likewise.
58741         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
58742         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
58743         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
58744         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
58745         * lib/unistdio/u16-vasnprintf.c: Likewise.
58746         * lib/unistdio/u16-vasprintf.c: Likewise.
58747         * lib/unistdio/u16-vsnprintf.c: Likewise.
58748         * lib/unistdio/u16-vsprintf.c: Likewise.
58749         * lib/unistdio/u32-asnprintf.c: Likewise.
58750         * lib/unistdio/u32-asprintf.c: Likewise.
58751         * lib/unistdio/u32-printf-parse.c: Likewise.
58752         * lib/unistdio/u32-snprintf.c: Likewise.
58753         * lib/unistdio/u32-sprintf.c: Likewise.
58754         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
58755         * lib/unistdio/u32-u32-asprintf.c: Likewise.
58756         * lib/unistdio/u32-u32-snprintf.c: Likewise.
58757         * lib/unistdio/u32-u32-sprintf.c: Likewise.
58758         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
58759         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
58760         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
58761         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
58762         * lib/unistdio/u32-vasnprintf.c: Likewise.
58763         * lib/unistdio/u32-vasprintf.c: Likewise.
58764         * lib/unistdio/u32-vsnprintf.c: Likewise.
58765         * lib/unistdio/u32-vsprintf.c: Likewise.
58766         * lib/unistdio/u8-asnprintf.c: Likewise.
58767         * lib/unistdio/u8-asprintf.c: Likewise.
58768         * lib/unistdio/u8-printf-parse.c: Likewise.
58769         * lib/unistdio/u8-snprintf.c: Likewise.
58770         * lib/unistdio/u8-sprintf.c: Likewise.
58771         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
58772         * lib/unistdio/u8-u8-asprintf.c: Likewise.
58773         * lib/unistdio/u8-u8-snprintf.c: Likewise.
58774         * lib/unistdio/u8-u8-sprintf.c: Likewise.
58775         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
58776         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
58777         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
58778         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
58779         * lib/unistdio/u8-vasnprintf.c: Likewise.
58780         * lib/unistdio/u8-vasprintf.c: Likewise.
58781         * lib/unistdio/u8-vsnprintf.c: Likewise.
58782         * lib/unistdio/u8-vsprintf.c: Likewise.
58783         * lib/unistdio/ulc-asnprintf.c: Likewise.
58784         * lib/unistdio/ulc-asprintf.c: Likewise.
58785         * lib/unistdio/ulc-printf-parse.c: Likewise.
58786         * lib/unistdio/ulc-snprintf.c: Likewise.
58787         * lib/unistdio/ulc-sprintf.c: Likewise.
58788         * lib/unistdio/ulc-vasnprintf.c: Likewise.
58789         * lib/unistdio/ulc-vasprintf.c: Likewise.
58790         * lib/unistdio/ulc-vsnprintf.c: Likewise.
58791         * lib/unistdio/ulc-vsprintf.c: Likewise.
58792         * lib/unistr.h: Likewise.
58793         * lib/unistr/u-cpy-alloc.h: Likewise.
58794         * lib/unistr/u-cpy.h: Likewise.
58795         * lib/unistr/u-endswith.h: Likewise.
58796         * lib/unistr/u-move.h: Likewise.
58797         * lib/unistr/u-set.h: Likewise.
58798         * lib/unistr/u-startswith.h: Likewise.
58799         * lib/unistr/u-stpcpy.h: Likewise.
58800         * lib/unistr/u-stpncpy.h: Likewise.
58801         * lib/unistr/u-strcat.h: Likewise.
58802         * lib/unistr/u-strcpy.h: Likewise.
58803         * lib/unistr/u-strcspn.h: Likewise.
58804         * lib/unistr/u-strdup.h: Likewise.
58805         * lib/unistr/u-strlen.h: Likewise.
58806         * lib/unistr/u-strncat.h: Likewise.
58807         * lib/unistr/u-strncpy.h: Likewise.
58808         * lib/unistr/u-strnlen.h: Likewise.
58809         * lib/unistr/u-strpbrk.h: Likewise.
58810         * lib/unistr/u-strspn.h: Likewise.
58811         * lib/unistr/u-strstr.h: Likewise.
58812         * lib/unistr/u-strtok.h: Likewise.
58813         * lib/unistr/u16-check.c: Likewise.
58814         * lib/unistr/u16-chr.c: Likewise.
58815         * lib/unistr/u16-cmp.c: Likewise.
58816         * lib/unistr/u16-cpy-alloc.c: Likewise.
58817         * lib/unistr/u16-cpy.c: Likewise.
58818         * lib/unistr/u16-endswith.c: Likewise.
58819         * lib/unistr/u16-mblen.c: Likewise.
58820         * lib/unistr/u16-mbsnlen.c: Likewise.
58821         * lib/unistr/u16-mbtouc-aux.c: Likewise.
58822         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
58823         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
58824         * lib/unistr/u16-mbtouc.c: Likewise.
58825         * lib/unistr/u16-mbtoucr.c: Likewise.
58826         * lib/unistr/u16-move.c: Likewise.
58827         * lib/unistr/u16-next.c: Likewise.
58828         * lib/unistr/u16-prev.c: Likewise.
58829         * lib/unistr/u16-set.c: Likewise.
58830         * lib/unistr/u16-startswith.c: Likewise.
58831         * lib/unistr/u16-stpcpy.c: Likewise.
58832         * lib/unistr/u16-stpncpy.c: Likewise.
58833         * lib/unistr/u16-strcat.c: Likewise.
58834         * lib/unistr/u16-strchr.c: Likewise.
58835         * lib/unistr/u16-strcmp.c: Likewise.
58836         * lib/unistr/u16-strcpy.c: Likewise.
58837         * lib/unistr/u16-strcspn.c: Likewise.
58838         * lib/unistr/u16-strdup.c: Likewise.
58839         * lib/unistr/u16-strlen.c: Likewise.
58840         * lib/unistr/u16-strmblen.c: Likewise.
58841         * lib/unistr/u16-strmbtouc.c: Likewise.
58842         * lib/unistr/u16-strncat.c: Likewise.
58843         * lib/unistr/u16-strncmp.c: Likewise.
58844         * lib/unistr/u16-strncpy.c: Likewise.
58845         * lib/unistr/u16-strnlen.c: Likewise.
58846         * lib/unistr/u16-strpbrk.c: Likewise.
58847         * lib/unistr/u16-strrchr.c: Likewise.
58848         * lib/unistr/u16-strspn.c: Likewise.
58849         * lib/unistr/u16-strstr.c: Likewise.
58850         * lib/unistr/u16-strtok.c: Likewise.
58851         * lib/unistr/u16-to-u32.c: Likewise.
58852         * lib/unistr/u16-to-u8.c: Likewise.
58853         * lib/unistr/u16-uctomb-aux.c: Likewise.
58854         * lib/unistr/u16-uctomb.c: Likewise.
58855         * lib/unistr/u32-check.c: Likewise.
58856         * lib/unistr/u32-chr.c: Likewise.
58857         * lib/unistr/u32-cmp.c: Likewise.
58858         * lib/unistr/u32-cpy-alloc.c: Likewise.
58859         * lib/unistr/u32-cpy.c: Likewise.
58860         * lib/unistr/u32-endswith.c: Likewise.
58861         * lib/unistr/u32-mblen.c: Likewise.
58862         * lib/unistr/u32-mbsnlen.c: Likewise.
58863         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
58864         * lib/unistr/u32-mbtouc.c: Likewise.
58865         * lib/unistr/u32-mbtoucr.c: Likewise.
58866         * lib/unistr/u32-move.c: Likewise.
58867         * lib/unistr/u32-next.c: Likewise.
58868         * lib/unistr/u32-prev.c: Likewise.
58869         * lib/unistr/u32-set.c: Likewise.
58870         * lib/unistr/u32-startswith.c: Likewise.
58871         * lib/unistr/u32-stpcpy.c: Likewise.
58872         * lib/unistr/u32-stpncpy.c: Likewise.
58873         * lib/unistr/u32-strcat.c: Likewise.
58874         * lib/unistr/u32-strchr.c: Likewise.
58875         * lib/unistr/u32-strcmp.c: Likewise.
58876         * lib/unistr/u32-strcpy.c: Likewise.
58877         * lib/unistr/u32-strcspn.c: Likewise.
58878         * lib/unistr/u32-strdup.c: Likewise.
58879         * lib/unistr/u32-strlen.c: Likewise.
58880         * lib/unistr/u32-strmblen.c: Likewise.
58881         * lib/unistr/u32-strmbtouc.c: Likewise.
58882         * lib/unistr/u32-strncat.c: Likewise.
58883         * lib/unistr/u32-strncmp.c: Likewise.
58884         * lib/unistr/u32-strncpy.c: Likewise.
58885         * lib/unistr/u32-strnlen.c: Likewise.
58886         * lib/unistr/u32-strpbrk.c: Likewise.
58887         * lib/unistr/u32-strrchr.c: Likewise.
58888         * lib/unistr/u32-strspn.c: Likewise.
58889         * lib/unistr/u32-strstr.c: Likewise.
58890         * lib/unistr/u32-strtok.c: Likewise.
58891         * lib/unistr/u32-to-u16.c: Likewise.
58892         * lib/unistr/u32-to-u8.c: Likewise.
58893         * lib/unistr/u32-uctomb.c: Likewise.
58894         * lib/unistr/u8-check.c: Likewise.
58895         * lib/unistr/u8-chr.c: Likewise.
58896         * lib/unistr/u8-cmp.c: Likewise.
58897         * lib/unistr/u8-cpy-alloc.c: Likewise.
58898         * lib/unistr/u8-cpy.c: Likewise.
58899         * lib/unistr/u8-endswith.c: Likewise.
58900         * lib/unistr/u8-mblen.c: Likewise.
58901         * lib/unistr/u8-mbsnlen.c: Likewise.
58902         * lib/unistr/u8-mbtouc-aux.c: Likewise.
58903         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
58904         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
58905         * lib/unistr/u8-mbtouc.c: Likewise.
58906         * lib/unistr/u8-mbtoucr.c: Likewise.
58907         * lib/unistr/u8-move.c: Likewise.
58908         * lib/unistr/u8-next.c: Likewise.
58909         * lib/unistr/u8-prev.c: Likewise.
58910         * lib/unistr/u8-set.c: Likewise.
58911         * lib/unistr/u8-startswith.c: Likewise.
58912         * lib/unistr/u8-stpcpy.c: Likewise.
58913         * lib/unistr/u8-stpncpy.c: Likewise.
58914         * lib/unistr/u8-strcat.c: Likewise.
58915         * lib/unistr/u8-strchr.c: Likewise.
58916         * lib/unistr/u8-strcmp.c: Likewise.
58917         * lib/unistr/u8-strcpy.c: Likewise.
58918         * lib/unistr/u8-strcspn.c: Likewise.
58919         * lib/unistr/u8-strdup.c: Likewise.
58920         * lib/unistr/u8-strlen.c: Likewise.
58921         * lib/unistr/u8-strmblen.c: Likewise.
58922         * lib/unistr/u8-strmbtouc.c: Likewise.
58923         * lib/unistr/u8-strncat.c: Likewise.
58924         * lib/unistr/u8-strncmp.c: Likewise.
58925         * lib/unistr/u8-strncpy.c: Likewise.
58926         * lib/unistr/u8-strnlen.c: Likewise.
58927         * lib/unistr/u8-strpbrk.c: Likewise.
58928         * lib/unistr/u8-strrchr.c: Likewise.
58929         * lib/unistr/u8-strspn.c: Likewise.
58930         * lib/unistr/u8-strstr.c: Likewise.
58931         * lib/unistr/u8-strtok.c: Likewise.
58932         * lib/unistr/u8-to-u16.c: Likewise.
58933         * lib/unistr/u8-to-u32.c: Likewise.
58934         * lib/unistr/u8-uctomb-aux.c: Likewise.
58935         * lib/unistr/u8-uctomb.c: Likewise.
58936         * lib/unitypes.h: Likewise.
58937         * lib/uniwidth.h: Likewise.
58938         * lib/uniwidth/cjk.h: Likewise.
58939         * lib/uniwidth/u16-strwidth.c: Likewise.
58940         * lib/uniwidth/u16-width.c: Likewise.
58941         * lib/uniwidth/u32-strwidth.c: Likewise.
58942         * lib/uniwidth/u32-width.c: Likewise.
58943         * lib/uniwidth/u8-strwidth.c: Likewise.
58944         * lib/uniwidth/u8-width.c: Likewise.
58945         * lib/uniwidth/width.c: Likewise.
58946
58947 2007-10-07  Bruno Haible  <bruno@clisp.org>
58948
58949         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
58950         The file is still under LGPL (see modules/inttypes).
58951
58952 2007-10-06  Bruno Haible  <bruno@clisp.org>
58953
58954         * modules/trunc (Dependencies): Add 'extensions'.
58955         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
58956         Reported by Ben Pfaff <blp@gnu.org>.
58957
58958 2007-10-06  Bruno Haible  <bruno@clisp.org>
58959
58960         * modules/freopen-tests: New file.
58961         * tests/test-freopen.c: New file.
58962
58963         * modules/fopen-tests: New file.
58964         * tests/test-fopen.c: New file.
58965
58966         * modules/fopen: New file.
58967         * lib/fopen.c: New file.
58968         * m4/fopen.m4: New file.
58969         * modules/freopen: New file.
58970         * lib/freopen.c: New file.
58971         * m4/freopen.m4: New file.
58972         * lib/stdio.in.h (fopen, freopen): New declarations.
58973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
58974         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58975         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
58976         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58977         * doc/functions/fopen.texi: Mention the 'fopen' module.
58978         * doc/functions/freopen.texi: Mention the 'freopen' module.
58979
58980 2007-10-06  Bruno Haible  <bruno@clisp.org>
58981
58982         * modules/open-tests: New file.
58983         * tests/test-open.c: New file.
58984
58985         * modules/open: New file.
58986         * lib/open.c: New file.
58987         * m4/open.m4: New file.
58988         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
58989         lib/open.c does.
58990         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
58991         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
58992         macros.
58993         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
58994         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
58995         REPLACE_OPEN.
58996         * doc/functions/open.texi: Mention the 'open' module.
58997
58998 2007-10-04  Bruno Haible  <bruno@clisp.org>
58999
59000         * modules/ceill-tests: New file.
59001         * tests/test-ceill.c: New file.
59002
59003         * modules/ceill: New file.
59004         * lib/ceill.c: Replace entire file.
59005         * m4/ceill.m4: New file.
59006         * lib/math.in.h (ceill): Replace declaration.
59007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
59008         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
59009         * doc/functions/ceill.texi: Mention the 'ceill' module.
59010         * modules/mathl (Files): Remove lib/ceill.c.
59011         (Depends-on): Add ceill.
59012
59013 2007-10-04  Bruno Haible  <bruno@clisp.org>
59014
59015         * modules/ceilf-tests: New file.
59016         * tests/test-ceilf.c: New file.
59017
59018         * modules/ceilf: New file.
59019         * lib/ceil.c: New file.
59020         * lib/ceilf.c: New file.
59021         * m4/ceilf.m4: New file.
59022         * lib/math.in.h (ceilf): New declaration.
59023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
59024         HAVE_DECL_CEILF.
59025         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
59026         HAVE_DECL_CEILF.
59027         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
59028
59029 2007-10-04  Bruno Haible  <bruno@clisp.org>
59030
59031         * modules/floorl-tests: New file.
59032         * tests/test-floorl.c: New file.
59033
59034         * modules/floorl: New file.
59035         * lib/floorl.c: Replace entire file.
59036         * m4/floorl.m4: New file.
59037         * lib/math.in.h (floorl): Replace declaration.
59038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
59039         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
59040         * doc/functions/floorl.texi: Mention the 'floorl' module.
59041         * modules/mathl (Files): Remove lib/floorl.c.
59042         (Depends-on): Add floorl.
59043
59044 2007-10-04  Bruno Haible  <bruno@clisp.org>
59045
59046         * modules/floorf-tests: New file.
59047         * tests/test-floorf.c: New file.
59048
59049         * modules/floorf: New file.
59050         * lib/floor.c: New file.
59051         * lib/floorf.c: New file.
59052         * m4/floorf.m4: New file.
59053         * lib/math.in.h (floorf): New declaration.
59054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
59055         HAVE_DECL_FLOORF.
59056         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
59057         HAVE_DECL_FLOORF.
59058         * doc/functions/floorf.texi: Mention the 'floorf' module.
59059
59060 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
59061             Bruno Haible  <bruno@clisp.org>
59062
59063         Advertise for the Git server instead of the CVS server.
59064         * doc/gnulib-intro.texi (Steady Development): Mention the Git
59065         repository instead of the CVS one.
59066         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
59067         about all VCS systems generically.
59068         * doc/gnulib.texi (Introduction): Capitalize `Git'.
59069
59070 2007-10-04  Bruno Haible  <bruno@clisp.org>
59071
59072         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
59073         means.
59074         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
59075
59076 2007-10-04  Bruno Haible  <bruno@clisp.org>
59077
59078         * modules/truncl-tests: New file.
59079         * tests/test-truncl.c: New file.
59080
59081         * modules/truncl: New file.
59082         * lib/truncl.c: New file.
59083         * m4/truncl.m4: New file.
59084         * lib/math.in.h (truncl): New declaration.
59085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
59086         HAVE_DECL_TRUNCL.
59087         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
59088         HAVE_DECL_TRUNCL.
59089         * doc/functions/truncl.texi: Mention the 'truncl' module.
59090
59091 2007-10-04  Bruno Haible  <bruno@clisp.org>
59092
59093         * modules/truncf-tests: New file.
59094         * tests/test-truncf.c: New file.
59095
59096         * modules/truncf: New file.
59097         * lib/trunc.c: Make paramerizable through USE_* macros.
59098         * lib/truncf.c: New file.
59099         * m4/truncf.m4: New file.
59100         * lib/math.in.h (truncf): New declaration.
59101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
59102         HAVE_DECL_TRUNCF.
59103         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
59104         HAVE_DECL_TRUNCF.
59105         * doc/functions/truncf.texi: Mention the 'truncf' module.
59106
59107 2007-10-03  Bruno Haible  <bruno@clisp.org>
59108
59109         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59110         augmentation also for tests modules.
59111         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
59112         * modules/atexit-tests (Makefile.am): Likewise.
59113         * modules/binary-io-tests (Makefile.am): Likewise.
59114         * modules/c-strcase-tests (Makefile.am): Likewise.
59115         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
59116         * modules/canonicalize-tests (Makefile.am): Likewise.
59117         * modules/closein-tests (Makefile.am): Likewise.
59118         * modules/fprintf-posix-tests (Makefile.am): Likewise.
59119         * modules/freadahead-tests (Makefile.am): Likewise.
59120         * modules/fseek-tests (Makefile.am): Likewise.
59121         * modules/fseeko-tests (Makefile.am): Likewise.
59122         * modules/ftell-tests (Makefile.am): Likewise.
59123         * modules/ftello-tests (Makefile.am): Likewise.
59124         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
59125         * modules/isnanl-tests (Makefile.am): Likewise.
59126         * modules/lseek-tests (Makefile.am): Likewise.
59127         * modules/mbscasecmp-tests (Makefile.am): Likewise.
59128         * modules/mbscasestr-tests (Makefile.am): Likewise.
59129         * modules/mbschr-tests (Makefile.am): Likewise.
59130         * modules/mbscspn-tests (Makefile.am): Likewise.
59131         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
59132         * modules/mbspbrk-tests (Makefile.am): Likewise.
59133         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
59134         * modules/mbsrchr-tests (Makefile.am): Likewise.
59135         * modules/mbsspn-tests (Makefile.am): Likewise.
59136         * modules/mbsstr-tests (Makefile.am): Likewise.
59137         * modules/printf-posix-tests (Makefile.am): Likewise.
59138         * modules/snprintf-posix-tests (Makefile.am): Likewise.
59139         * modules/sprintf-posix-tests (Makefile.am): Likewise.
59140         * modules/tsearch-tests (Makefile.am): Likewise.
59141         * modules/uniname/uniname-tests (Makefile.am): Likewise.
59142         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
59143         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
59144         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
59145         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
59146         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
59147         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
59148         * modules/vprintf-posix-tests (Makefile.am): Likewise.
59149         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
59150         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
59151         * modules/xstrtoimax-tests (Makefile.am): Likewise.
59152         * modules/xstrtol-tests (Makefile.am): Likewise.
59153         * modules/xstrtoumax-tests (Makefile.am): Likewise.
59154         * modules/yesno-tests (Makefile.am): Likewise.
59155
59156 2007-10-03  Bruno Haible  <bruno@clisp.org>
59157
59158         * modules/trunc-tests: New file.
59159         * tests/test-trunc.c: New file.
59160
59161         * modules/trunc: New file.
59162         * lib/trunc.c: New file.
59163         * m4/trunc.m4: New file.
59164         * lib/math.in.h (trunc): New declaration.
59165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
59166         HAVE_DECL_TRUNC.
59167         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
59168         HAVE_DECL_TRUNC.
59169         * doc/functions/trunc.texi: Mention the 'trunc' module.
59170
59171 2007-10-03  Bruno Haible  <bruno@clisp.org>
59172
59173         * tests/test-fpending.c: New file, mostly copied
59174         from coreutils/lib/t-fpending.c.
59175         * modules/fpending-tests: New file.
59176
59177 2007-10-03  Bruno Haible  <bruno@clisp.org>
59178
59179         Port the stdio extensions to QNX (untested).
59180         * lib/fseterr.c (fseterr): Add support for QNX.
59181         * lib/fbufmode.c (fbufmode): Likewise.
59182         * lib/freadable.c (freadable): Likewise.
59183         * lib/fwritable.c (fwritable): Likewise.
59184         * lib/freading.c (freading): Likewise.
59185         * lib/fwriting.c (fwriting): Likewise.
59186         * lib/freadahead.c (freadahed): Likewise.
59187         * lib/fpurge.c (fpurge): Likewise.
59188         * lib/fseeko.c (rpl_fseeko): Likewise.
59189
59190 2007-10-03  Bruno Haible  <bruno@clisp.org>
59191             Jim Meyering  <jim@meyering.net>
59192             Eric Blake  <ebb9@byu.net>
59193
59194         * doc/relocatable.texi: Use @command instead of @program.
59195
59196 2007-10-02  Jim Meyering  <jim@meyering.net>
59197
59198         Perform one more "_.h" -> ".in.h" substitution.
59199         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
59200         instead of unistd_.h here, too.
59201
59202 2007-10-01  Bruno Haible  <bruno@clisp.org>
59203
59204         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
59205         Needed for the alloca-opt module.
59206
59207 2007-09-30  Bruno Haible  <bruno@clisp.org>
59208
59209         * lib/alloca.in.h: Renamed from lib/alloca_.h.
59210         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
59211         alloca_.h.
59212         * lib/argz.in.h: Renamed from lib/argz_.h.
59213         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
59214         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
59215         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
59216         byteswap_.h.
59217         * lib/dirent.in.h: Renamed from lib/dirent_.h.
59218         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
59219         dirent_.h.
59220         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
59221         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
59222         fcntl_.h.
59223         * lib/float.in.h: Renamed from lib/float_.h.
59224         * modules/float (Files, Makefile.am): Use float.in.h instead of
59225         float_.h.
59226         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
59227         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
59228         fnmatch_.h.
59229         * lib/getopt.in.h: Renamed from lib/getopt_.h.
59230         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
59231         getopt_.h.
59232         * lib/glob.in.h: Renamed from lib/glob_.h.
59233         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
59234         * lib/iconv.in.h: Renamed from lib/iconv_.h.
59235         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
59236         iconv_.h.
59237         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
59238         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
59239         inttypes_.h.
59240         * lib/locale.in.h: Renamed from lib/locale_.h.
59241         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
59242         locale_.h.
59243         * lib/math.in.h: Renamed from lib/math_.h.
59244         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
59245         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
59246         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
59247         of netinet_in_.h. Add dependency.
59248         * lib/poll.in.h: Renamed from lib/poll_.h.
59249         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
59250         * lib/search.in.h: Renamed from lib/search_.h.
59251         * modules/search (Files, Makefile.am): Use search.in.h instead of
59252         search_.h.
59253         * lib/signal.in.h: Renamed from lib/signal_.h.
59254         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
59255         _signal.h.
59256         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
59257         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
59258         stdbool_.h.
59259         * lib/stdint.in.h: Renamed from lib/stdint_.h.
59260         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
59261         stdint_.h.
59262         * lib/stdio.in.h: Renamed from lib/stdio_.h.
59263         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
59264         stdio_.h.
59265         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
59266         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
59267         stdlib_.h.
59268         * lib/string.in.h: Renamed from lib/string_.h.
59269         * modules/string (Files, Makefile.am): Use string.in.h instead of
59270         string_.h.
59271         * doc/gnulib-tool.texi (Initial import): Update.
59272         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
59273         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
59274         of sys_select_.h. Add dependency.
59275         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
59276         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
59277         of sys_socket_.h.
59278         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
59279         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
59280         sys_stat_.h.
59281         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
59282         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
59283         sys_time_.h.
59284         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
59285         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
59286         sysexits_.h.
59287         * lib/time.in.h: Renamed from lib/time_.h.
59288         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
59289         * lib/unistd.in.h: Renamed from lib/unistd_.h.
59290         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
59291         unistd_.h.
59292         * lib/wchar.in.h: Renamed from lib/wchar_.h.
59293         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
59294         wchar_.h.
59295         * lib/wctype.in.h: Renamed from lib/wctype_.h.
59296         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
59297         wctype_.h.
59298         * build-aux/bootstrap (slurp): Update.
59299         * lib/.cppi-disable: Update.
59300
59301 2007-09-30  Bruno Haible  <bruno@clisp.org>
59302
59303         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
59304         Needed on BeOS.
59305
59306 2007-09-30  Bruno Haible  <bruno@clisp.org>
59307
59308         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
59309
59310 2007-09-29  Bruno Haible  <bruno@clisp.org>
59311
59312         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
59313
59314 2007-09-29  Bruno Haible  <bruno@clisp.org>
59315
59316         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
59317         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
59318         * build-aux/install-reloc: Compile also areadlink.c.
59319         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
59320
59321 2007-09-29  Bruno Haible  <bruno@clisp.org>
59322
59323         * gnulib-tool (func_emit_initmacro_done): Indentation.
59324
59325 2007-09-29  Bruno Haible  <bruno@clisp.org>
59326
59327         * README: Add CVS checkout update instructions.
59328         Info from Bob Proulx <bob@proulx.com>.
59329
59330 2007-09-28  Eric Blake  <ebb9@byu.net>
59331
59332         Provide move-if-change.
59333         * build-aux/move-if-change: New file, based on best practice
59334         rather than any canonical upstream location.
59335
59336 2007-09-28  Jim Meyering  <jim@meyering.net>
59337
59338         Fix canonicalize loop-detection corner case.
59339         Do not attempt to stat the symlink values stored via seen_triple.
59340         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
59341         on linux-2.6.18, (but not 2.6.22).
59342         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
59343         triple_compare.  The former compares dev,ino,filename, while the latter
59344         would actually stat dirname(filename) when dev and ino were equal.
59345         * lib/hash-triple.c: Install <string.h>.
59346         (STREQ): Define.
59347         (triple_compare_ino_str): New function.
59348         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
59349
59350 2007-09-28  Eric Blake  <ebb9@byu.net>
59351
59352         Enforce that AC_REPLACE_FUNCS files exist.
59353         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
59354         override check for typos.
59355
59356         Fix test-closein on Solaris 10.
59357         * tests/test-closein.c (main): Don't assume stdin can be inherited
59358         closed on all systems.
59359         * tests/test-closein.sh: Likewise.
59360         Reported by Piotr Tarnowski.
59361
59362 2007-09-28  Jim Meyering  <jim@meyering.net>
59363
59364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
59365
59366 2007-09-27  Jim Meyering  <jim@meyering.net>
59367
59368         canonicalize: Avoid a false-positive cycle failure.
59369         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
59370         Sort.  Remove cycle-check.
59371         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
59372         not cycle-check.h.
59373         (seen_triple): New function.
59374         (canonicalize_filename_mode): Use it instead of cycle-check.
59375         * tests/test-canonicalize.c: Add a test for this bug.
59376         * tests/test-canonicalize.sh: Set up and run the test.
59377
59378         New module, file-set, from coreutils.
59379         * modules/file-set: Define it.
59380         * lib/file-set.c, lib/file-set.h: Implement.
59381
59382         New module, hash-triple, from coreutils.
59383         * modules/hash-triple: Define it.
59384         * lib/hash-triple.c, lib/hash-triple.h: Implement.
59385
59386 2007-09-25  Eric Blake  <ebb9@byu.net>
59387
59388         Fix strerror on Interix.
59389         * lib/string_.h (strerror): Declare replacement.
59390         * doc/functions/strerror.texi (strerror): Document the Interix
59391         shortcoming.
59392         * modules/string (Makefile.am): Support new hooks.
59393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
59394         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
59395         gl_FUNC_STRERROR_SEPARATE.
59396         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
59397         * lib/strerror.c (rpl_strerror): Provide replacement.
59398         * modules/strerror (Depends-on): Add string.
59399         (configure.ac): Detect use of module.
59400         * tests/test-strerror.c: New file.
59401         * modules/strerror-tests: New test module.
59402         * modules/argp (Depends-on): Add strerror.
59403         * modules/error (Depends-on): Likewise.
59404         Reported by Martin Koeppe.
59405
59406 2007-09-24  Bruno Haible  <bruno@clisp.org>
59407
59408         * README: Update git instructions.
59409
59410 2007-09-24  Eric Blake  <ebb9@byu.net>
59411
59412         Revert fpending breakage from 2007-09-08.
59413         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
59414         __fpending.c.
59415
59416 2007-09-24  Jim Meyering  <jim@meyering.net>
59417
59418         filenamecat.c: Add a test.
59419         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
59420         showing how the function works when DIR is the empty string.
59421
59422 2007-09-21  Simon Josefsson  <simon@josefsson.org>
59423
59424         * tests/test-canonicalize.sh: Turn on executable bit.
59425
59426 2007-09-19  Eric Blake  <ebb9@byu.net>
59427
59428         * README: Update CVS instructions.
59429
59430 2007-09-18  Bruno Haible  <bruno@clisp.org>
59431
59432         * modules/areadlink: New file.
59433         * lib/areadlink.h (areadlink): New declaration.
59434         * lib/areadlink.c: New file, based on lib/xreadlink.c.
59435
59436 2007-09-17  Jim Meyering  <jim@meyering.net>
59437
59438         * lib/savewd.c (ESTALE) [!defined]: Define.
59439         Reported to be required on Interix by Martin Koeppe.
59440
59441 2007-09-17  Bruno Haible  <bruno@clisp.org>
59442
59443         * gnulib-tool (func_version): Use $version.
59444
59445 2007-09-16  Bruno Haible  <bruno@clisp.org>
59446
59447         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
59448         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
59449         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
59450         Reported by Greg Schafer <gschafer@zip.com.au>.
59451
59452 2007-09-15  Bruno Haible  <bruno@clisp.org>
59453
59454         * gnulib-tool (sed): Try a little harder to make bash understand the
59455         alias.
59456         Reported by Bruce Korb <bruce.korb@gmail.com>.
59457
59458 2007-09-13  Eric Blake  <ebb9@byu.net>
59459
59460         * ChangeLog: Remove conflict markers.
59461
59462 2007-09-13  Simon Josefsson  <simon@josefsson.org>
59463
59464         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
59465         Reported by Bruno Haible <bruno@clisp.org>.
59466
59467 2007-09-12  Bruno Haible  <bruno@clisp.org>
59468
59469         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
59470         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
59471         is not defined.
59472
59473 2007-09-12  Eric Blake  <ebb9@byu.net>
59474
59475         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
59476         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
59477         Autoconf definition.
59478         * modules/euidaccess (Depends-on): Add extensions, for
59479         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
59480         * modules/fnmatch (Depends-on): Likewise.
59481         * modules/getaddrinfo (Depends-on): Likewise.
59482         * modules/getdelim (Depends-on): Likewise.
59483         * modules/getline (Depends-on): Likewise.
59484         * modules/getsubopt (Depends-on): Likewise.
59485         * modules/gettext (Depends-on): Likewise.
59486         * modules/group-member (Depends-on): Likewise.
59487         * modules/mbchar (Depends-on): Likewise.
59488         * modules/memmem (Depends-on): Likewise.
59489         * modules/mempcpy (Depends-on): Likewise.
59490         * modules/memrchr (Depends-on): Likewise.
59491         * modules/pagealign_alloc (Depends-on): Likewise.
59492         * modules/readutmp (Depends-on): Likewise.
59493         * modules/stpcpy (Depends-on): Likewise.
59494         * modules/stpncpy (Depends-on): Likewise.
59495         * modules/strchrnul (Depends-on): Likewise.
59496         * modules/strndup (Depends-on): Likewise.
59497         * modules/strsep (Depends-on): Likewise.
59498         * modules/strverscmp (Depends-on): Likewise.
59499         * modules/vasprintf (Depends-on): Likewise.
59500         * modules/wcwidth (Depends-on): Likewise.
59501         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
59502         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
59503         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
59504         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
59505         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59506         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59507         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
59508         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59509         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
59510         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
59511         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59512         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59513         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59514         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59515         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
59516         * m4/readutmp.m4 (gl_READUTMP): Likewise.
59517         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59518         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59519         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59520         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59521         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59522         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59523         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59524         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
59525         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
59526         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59527         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
59528         so that lock.m4 can be used in gettext without extensions module.
59529
59530 2007-09-11  Bruno Haible  <bruno@clisp.org>
59531
59532         * m4/isc-posix.m4: Remove file.
59533         Suggested by Eric Blake.
59534
59535 2007-09-11  Eric Blake  <ebb9@byu.net>
59536
59537         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
59538
59539 2007-09-10  Bruno Haible  <bruno@clisp.org>
59540
59541         * posix-modules: Fix typo in error message.
59542         Reported by Matt <mkraai@beckman.com>.
59543
59544 2007-09-09  Bruno Haible  <bruno@clisp.org>
59545
59546         * doc/functions/getdelim.texi: Update list of platforms lacking the
59547         function.
59548         * doc/functions/getline.texi: Likewise.
59549
59550 2007-09-09  Jim Meyering  <jim@meyering.net>
59551
59552         * lib/hash.c (hash_initialize): Detect calloc failure.
59553         Reported by Bruno Haible.
59554
59555 2007-09-09  Bruno Haible  <bruno@clisp.org>
59556
59557         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
59558         malloc or realloc fails.
59559
59560 2007-09-09  Bruno Haible  <bruno@clisp.org>
59561
59562         * modules/getcwd (Depends-on): Add malloc-posix.
59563         * modules/glob (Depends-on): Likewise.
59564         * modules/putenv (Depends-on): Likewise.
59565         * modules/strdup (Depends-on): Likewise.
59566         * modules/getdelim (Depends-on): Add realloc-posix.
59567         * modules/read-file (Depends-on): Likewise.
59568
59569 2007-09-09  Bruno Haible  <bruno@clisp.org>
59570
59571         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
59572         (gl_FUNC_MALLOC_POSIX): Require it.
59573         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
59574         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
59575         * modules/realloc (Files): Add m4/malloc.m4.
59576         * modules/calloc (Files): Likewise.
59577
59578 2007-09-09  Bruno Haible  <bruno@clisp.org>
59579
59580         * modules/malloc-posix: New file.
59581         * modules/malloc (Depends-on): Add malloc-posix.
59582         * lib/malloc.c: Include errno.h.
59583         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
59584         and a POSIX-compatible malloc into a single function. Set ENOMEM
59585         when returning NULL.
59586         * m4/malloc.m4: New file.
59587         * doc/functions/malloc.texi: Mention the malloc-posix module.
59588         * lib/stdlib_.h (malloc): New declaration.
59589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59590         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
59591         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
59592         and HAVE_MALLOC_POSIX.
59593
59594 2007-09-09  Bruno Haible  <bruno@clisp.org>
59595
59596         * modules/realloc-posix: New file.
59597         * modules/realloc (Depends-on): Add realloc-posix.
59598         * lib/realloc.c: Include errno.h.
59599         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
59600         and a POSIX-compatible realloc into a single function. Set ENOMEM
59601         when returning NULL.
59602         * m4/realloc.m4: New file.
59603         * doc/functions/realloc.texi: Mention the realloc-posix module.
59604         * lib/stdlib_.h (realloc): New declaration.
59605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59606         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
59607         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
59608         and HAVE_REALLOC_POSIX.
59609
59610 2007-09-09  Bruno Haible  <bruno@clisp.org>
59611
59612         * modules/calloc-posix: New file.
59613         * modules/calloc (Depends-on): Add calloc-posix.
59614         * lib/calloc.c: Include errno.h.
59615         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
59616         and a POSIX-compatible calloc into a single function. Set ENOMEM
59617         when returning NULL.
59618         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
59619         * doc/functions/calloc.texi: Mention the calloc-posix module.
59620         * lib/stdlib_.h (calloc): New declaration.
59621         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59622         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
59623         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
59624         and HAVE_CALLOC_POSIX.
59625
59626 2007-09-09  Bruno Haible  <bruno@clisp.org>
59627
59628         Allow for modules to show an arbitrary notice.
59629         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
59630         * gnulib-tool: New option --extract-notice.
59631         (func_usage): Document it.
59632         (sed_extract_prog): Update.
59633         (func_get_notice): New function.
59634         (func_modules_notice): New function.
59635         (func_import, func_create_testdir): Invoke it.
59636         Suggested by Jim Meyering.
59637
59638 2007-09-09  Bruno Haible  <bruno@clisp.org>
59639
59640         * gnulib-tool: New options --verbose, --quiet.
59641         (func_usage): Document them.
59642         (verbose): New variable.
59643         (func_execute_command): New function.
59644         (func_import): Don't show the module list and the file list if
59645         $verbose < 0.
59646         (func_create_testdir): Likewise. Use func_execute_command.
59647         (func_create_megatestdir): Use func_execute_command.
59648
59649 2007-09-08  Bruno Haible  <bruno@clisp.org>
59650
59651         * gnulib-tool (func_import): Prefer rsync over wget when available,
59652         for fetching the PO files.
59653
59654 2007-09-08  Bruno Haible  <bruno@clisp.org>
59655
59656         * posix-modules: New file. Portions copied from gnulib-tool.
59657         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
59658
59659 2007-09-08  Jim Meyering  <jim@meyering.net>
59660
59661         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
59662         * lib/fpending.h: Rename from __fpending.h.
59663         * lib/fpending.c: Rename from __fpending.c.
59664         Include "fpending.h", not "__fpending.h".
59665         * lib/__fpending.h, lib/__fpending.c: Remove files.
59666         * modules/fpending (Files): Reflect new file names.
59667         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
59668
59669 2007-09-08  Bruno Haible  <bruno@clisp.org>
59670
59671         * m4/inttypes-h.m4: Remove stub file.
59672
59673 2007-09-07  Simon Josefsson  <simon@josefsson.org>
59674
59675         * doc/headers/stdint.texi: Discuss #include_next issue.
59676
59677 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59678
59679         * build-aux/bootstrap: Remove obsolete comment about wget --help.
59680
59681 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59682
59683         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
59684         in variable name.
59685
59686 2007-09-03  Jim Meyering  <jim@meyering.net>
59687
59688         New module: git-version-gen.
59689         * modules/git-version-gen: New file.
59690
59691         Import changes from coreutils for bootstrap script.
59692
59693         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
59694
59695         bootstrap: uses rsync to download the .po files
59696         * build-aux/bootstrap (po_download_command_format): New global.
59697         (download_po_files): Use rsync.
59698         (update_po_files): Don't remove .po files after download,
59699         so future rsync runs can take advantage of the copies.
59700
59701         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
59702
59703         Solve the unnecessary-.po-file-regeneration problem once and for all.
59704         * build-aux/bootstrap (download_po_files): New function, renamed from
59705         get_translations.  Now, downloads, but doesn't update LINGUAS.
59706         (update_po_files): New function.
59707
59708         bootstrap: Ignore more.
59709         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
59710         uniwidth to e.g., lib/.gitignore.
59711         (slurp): Handle the sys_stat_.h -> sys mapping, too.
59712
59713         * build-aux/bootstrap: New setting: vc_ignore.
59714         (insert_sorted_if_absent): Create $file if absent.
59715         Adapt to new, possibly empty, list: $vc_ignore.
59716
59717         bootstrap: generate more ignorable names
59718         * build-aux/bootstrap (slurp): When generating ignorable names,
59719         also map .sin to .sed, .gperf to .c, and .y to .c.
59720
59721 2007-09-03  Jim Meyering  <jim@meyering.net>
59722
59723         * build-aux/git-version-gen: New file, from coreutils.  For details, see
59724         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
59725
59726 2007-09-02  Bruno Haible  <bruno@clisp.org>
59727
59728         Fix mis-recognition of 'mcs' on QNX 6.
59729         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
59730         output contains the string "Mono".
59731         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
59732         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
59733
59734 2007-09-01  Bruno Haible  <bruno@clisp.org>
59735
59736         Fix collision between uniwidth/* and linebreak modules.
59737         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
59738         u32_width): Remove declarations.
59739         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
59740         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
59741         streq3, streq2, streq1, streq0): Remove functions.
59742         (STREQ): Remove macro.
59743         (is_cjk_encoding): Remove function.
59744         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
59745         (uc_width, u8_width, u16_width, u32_width): Remove functions.
59746         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
59747         * NEWS: Document the change.
59748
59749 2007-09-01  Bruno Haible  <bruno@clisp.org>
59750
59751         * lib/streq.h: Add double-inclusion guard.
59752
59753 2007-09-01  Karl Berry  <karl@gnu.org>
59754
59755         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
59756
59757 2007-08-28  Jim Meyering  <jim@meyering.net>
59758
59759         Rename mreadlink_with_size to areadlink_with_size.
59760         * NEWS: Document the change.
59761         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
59762         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
59763         * lib/mreadlink.h: Rename this to...
59764         * lib/areadlink.h: ...this.
59765         * modules/mreadlink-with-size: Rename this to...
59766         * modules/areadlink-with-size: ...this.
59767         * lib/canonicalize.c: Reflect the renaming.
59768         * modules/canonicalize: Likewise.
59769
59770 2007-08-26  Bruno Haible  <bruno@clisp.org>
59771
59772         * gnulib-tool (func_import): When deciding which files to remove,
59773         consider also dangling symbolic links.
59774         Reported by Eric Blake.
59775
59776 2007-08-26  Bruno Haible  <bruno@clisp.org>
59777
59778         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
59779
59780 2007-08-23  Simon Josefsson  <simon@josefsson.org>
59781
59782         * lib/readline.c: Don't include getline.h, the prototype is now
59783         found in stdio.h.
59784
59785 2007-08-23  Jim Meyering  <jim@meyering.net>
59786
59787         Getdelim touchup.
59788         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
59789         around the funlockfile call, since funlockfile never sets errno.
59790         Don't set errno upon failed realloc.
59791
59792 2007-08-22  Eric Blake  <ebb9@byu.net>
59793
59794         Getline touchups.
59795         * lib/getdelim.c (getdelim): Revert regression that required *n to
59796         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
59797         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
59798         getdelim, rather than whether implementation is missing.
59799         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
59800         * lib/stdio_.h (getline): Also declare if replacement is
59801         required.
59802         * doc/functions/getdelim.texi: New file.
59803         * doc/functions/getline.texi: Likewise.
59804         * doc/gnulib.texi (Function Substitutes): Add new files.
59805         Reported by Bruno Haible.
59806
59807 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
59808
59809         * users.txt: Add Guile.
59810
59811 2007-08-22  Eric Blake  <ebb9@byu.net>
59812
59813         * tests/test-getdelim.c (main): Use remove, not unlink.
59814         * tests/test-getline.c (main): Likewise.
59815
59816         Move getline and getdelim into stdio.h, per POSIX 200x.
59817         * modules/getline (Files): Remove getline.h.
59818         (Depends-on): Add stdio.
59819         (configure.ac): Add module indicator.
59820         * modules/getdelim (Files): Remove getdelim.h.
59821         (Depends-on): Add stdio.
59822         (configure.ac): Add module indicator.
59823         * modules/stdio (Makefile.am): Work with new indicators.
59824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
59825         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
59826         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59827         * lib/getdelim.h: Delete.
59828         * lib/getline.h: Delete.
59829         * lib/stdio_.h (getdelim, getline): Declare.
59830         * modules/getdelim-tests: New module.
59831         * modules/getline-tests: Likewise.
59832         * tests/test-getdelim.c: New file.
59833         * tests/test-getline.c: Likewise.
59834         * NEWS: Document the change.
59835         * lib/getline.c: Update choice of header.
59836         * lib/csharpcomp.c: Likewise.
59837         * lib/getpass.c: Likewise.
59838         * lib/javacomp.c: Likewise.
59839         * lib/javaversion.c: Likewise.
59840         * lib/yesno.c: Likewise.
59841         * lib/getdelim.c: Likewise.
59842         (getdelim): Set errno on failure, and avoid memory leak.
59843
59844 2007-08-19  Bruno Haible  <bruno@clisp.org>
59845
59846         * modules/closein (Depends-on): Add freadahead.
59847         * lib/closein.c: Include freadahead.h.
59848         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
59849         is zero.
59850
59851 2007-08-19  Bruno Haible  <bruno@clisp.org>
59852
59853         * modules/freadahead-tests: New file.
59854         * tests/test-freadahead.sh: New file.
59855         * tests/test-freadahead.c: New file.
59856
59857         * modules/freadahead: New file.
59858         * lib/freadahead.h: New file.
59859         * lib/freadahead.c: New file.
59860         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
59861         fbufmode, fpurge, freadable, fwritable.
59862
59863 2007-08-19  Eric Blake  <ebb9@byu.net>
59864
59865         Test yesno in combination with closein.
59866         * lib/yesno.c (yesno): Document use of stdin.
59867         * modules/yesno-tests (Files): New module.
59868         * tests/test-yesno.c (main): New file.
59869         * tests/test-yesno.sh: Likewise.
59870
59871 2007-08-19  Bruno Haible  <bruno@clisp.org>
59872
59873         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
59874         * lib/fseeko.c (rpl_fseeko): Likewise.
59875         * lib/fseterr.c (fseterr): Likewise.
59876
59877 2007-08-19  Bruno Haible  <bruno@clisp.org>
59878
59879         * tests/test-lseek.c (main): Disable a test for BeOS.
59880         * doc/functions/lseek.texi: Document the BeOS bug.
59881
59882 2007-08-19  Bruno Haible  <bruno@clisp.org>
59883             Eric Blake  <ebb9@byu.net>
59884
59885         * lib/lseek.c: Include <sys/stat.h>.
59886         (rpl_lseek): Add workaround code also for Unix platforms.
59887         Needed for BeOS.
59888         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
59889         * doc/functions/lseek.texi: Document BeOS definiency.
59890
59891 2007-08-18  Bruno Haible  <bruno@clisp.org>
59892
59893         * modules/fstrcmp-tests: New file.
59894         * tests/test-fstrcmp.c: New file.
59895
59896 2007-08-18  Bruno Haible  <bruno@clisp.org>
59897
59898         * modules/fstrcmp: New file, from GNU gettext with modifications.
59899         * lib/fstrcmp.h: New file, from GNU gettext.
59900         * lib/fstrcmp.c: New file, from GNU gettext.
59901         * MODULES.html.sh (String handling): Add fstrcmp.
59902
59903 2007-08-18  Bruno Haible  <bruno@clisp.org>
59904
59905         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
59906         'bool'.
59907         (diag, compareseq): Remove const from the ctxt argument.
59908         (USE_HEURISTIC): Undefine at the end.
59909
59910 2007-08-18  Jim Meyering  <jim@meyering.net>
59911
59912         New file: lib/idcache.h
59913         * NEWS: Mention the addition.
59914         * modules/idcache (Files): Add lib/idcache.h
59915         * lib/idcache.c: Include "idcache.h".
59916         Don't include <sys/types.h>.
59917         Add a FIXME comment.
59918         Move file-scoped "static" declarations to the top.
59919         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
59920
59921 2007-08-17  Bruno Haible  <bruno@clisp.org>
59922         and Paul Eggert  <eggert@cs.ucla.edu>
59923
59924         * MODULES.html.sh: Add diffseq.
59925         * modules/diffseq: New file.
59926         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
59927         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
59928
59929 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59930
59931         Import changes from coreutils for bootstrap script.
59932
59933         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
59934
59935         * build-aux/bootstrap (slurp): Work even in environments where
59936         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
59937         current code does not slurp files whose names start with ".", and
59938         this looks like it might be a troublesome area.
59939
59940         2007-07-11  Jim Meyering  <jim@meyering.net>
59941
59942         If there's a GPL vN copyright comment, require that N == 3.
59943
59944         2007-07-08  Jim Meyering  <jim@meyering.net>
59945
59946         Run the coreutils-specific code only if tests/Makefile.am.in exists.
59947         * build-aux/bootstrap (mam_template): Move definition out of loop.
59948
59949         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
59950
59951         * build-aux/bootstrap (symlink_to_dir): Rename function from
59952         symlink_to_gnulib.  Add a directory parameter.  Update all
59953         callers.
59954         (cp_mark_as_generated): Also check for -- and link to -- files in
59955         gl/.
59956
59957         2007-07-08  Jim Meyering  <jim@meyering.net>
59958
59959         Adapt to deeper hierarchy in gnulib.
59960         * build-aux/bootstrap (symlink_to_dir): If the destination
59961         directory doesn't exist, create it. This is required at least for
59962         "lib/uniwidth/cjk.h".
59963
59964         2007-05-15  Jim Meyering  <jim@meyering.net>
59965
59966         * build-aux/bootstrap: Now that generated Makefile.am files
59967         are no longer under version control, they must be created at
59968         bootstrap time.
59969
59970 2007-08-14  Ben Pfaff  <blp@gnu.org>
59971
59972         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
59973
59974 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59975
59976         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
59977         given the changes below.
59978         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
59979         even on hosts that have padding bits beyond the supported 64.
59980
59981 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59982
59983         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
59984         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
59985         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
59986         depends on it.
59987         (xstrtol_error): Remove.
59988         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
59989         but with a different signature.
59990         (ATTRIBUTE_NORETURN, __attribute__): New macros.
59991         * lib/xstrtol-error.c: Include exitfail.h.
59992         (xstrtol_fatal): New function, with a different signature from the
59993         old xstrtol_error, so that the caller need not worry about passing
59994         in an exit status, or about storage management of the option argument.
59995         (xstrtol_error): Now a static function.  Redo signature to
59996         implement xstrtol_fatal.  Output the correct number of hyphens in
59997         front of the option so that the caller need not worry about
59998         storage management.
59999         (N_): New macro.
60000         (_): Remove; not used now.
60001         * modules/xstrtol: Depend on getopt.
60002         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
60003         of old STRTOL_FATAL_ERROR macro.
60004         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
60005         of test program.
60006         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
60007         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
60008
60009 2007-08-08  Eric Blake  <ebb9@byu.net>
60010
60011         * lib/xstrtol-error.c: Add missing include.
60012
60013         Move xstrtol messages into gnulib domain, when --pobase is used.
60014         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
60015         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
60016         * modules/xstrtol (Files): Distribute new file.
60017         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
60018         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
60019         * tests/test-xstrtol.c: ...into new file.
60020         * tests/test-xstrtoul.c: Also test xstrtoul.
60021         * tests/test-xstrtoimax.c: Also test xstrtoimax.
60022         * tests/test-xstrtoumax.c: Also test xstrtoumax.
60023         * tests/test-xstrtol.sh: Drive the tests.
60024         * tests/test-xstrtoimax.sh: Likewise.
60025         * tests/test-xstrtoumax.sh: Likewise.
60026         * modules/xstrtol-tests: New module.
60027         * modules/xstrtoimax-tests: Likewise.
60028         * modules/xstrtoumax-tests: Likewise.
60029
60030 2007-08-08  Jim Meyering  <jim@meyering.net>
60031
60032         New function: mfile_name_concat.
60033         * lib/filenamecat.c (mfile_name_concat): New function, just like
60034         file_name_concat, but return NULL upon failure rather than exiting
60035         with a diagnostic.
60036         * lib/filenamecat.h: Declare it.
60037
60038 2007-08-07  Bruno Haible  <bruno@clisp.org>
60039
60040         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
60041         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
60042         warning from gcc.
60043         Reported by Eric Blake.
60044
60045 2007-08-07  Simon Josefsson  <simon@josefsson.org>
60046
60047         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
60048         * modules/crypto/arcfour (License): Likewise.
60049         * modules/crypto/des-tests (License): Likewise.
60050         * modules/crypto/gc-arctwo-tests (License): Likewise.
60051         * modules/crypto/gc-des-tests (License): Likewise.
60052         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
60053         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
60054         * modules/crypto/gc-md2-tests (License): Likewise.
60055         * modules/crypto/gc-md4-tests (License): Likewise.
60056         * modules/crypto/gc-md5-tests (License): Likewise.
60057         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
60058         * modules/crypto/gc-rijndael-tests (License): Likewise.
60059         * modules/crypto/gc-sha1-tests (License): Likewise.
60060         * modules/crypto/gc-tests (License): Likewise.
60061         * modules/crypto/hmac-md5 (License): Likewise.
60062         * modules/crypto/hmac-sha1 (License): Likewise.
60063         * modules/crypto/md2-tests (License): Likewise.
60064         * modules/crypto/md4-tests (License): Likewise.
60065         * modules/crypto/md5 (License): Likewise.
60066         * modules/crypto/rijndael (License): Likewise.
60067         * modules/crypto/sha1 (License): Likewise.
60068         * modules/memxor (License): Likewise.
60069
60070 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60071         and Bruno Haible  <bruno@clisp.org>
60072
60073         * NEWS: Describe interface changes to human, xstrtol.
60074         * lib/human.h: Include <xstrtol.h>.
60075         (human_options): Return enum strtol_error, not int.  Remove
60076         bool arg; take int * instead.
60077         * lib/human.c: Don't include "gettext.h".
60078         (_): Remove; no longer used.
60079         Don't include <xstrtol.h>, since human.h does it.
60080         (human_options): Adjust to abovementioned interface changes.
60081         Do not report error to stderr; that's now the caller's
60082         responsibility.
60083         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
60084         interface change.
60085         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
60086         Str, Argument_type_string.  All uses changed.  Put " argument"
60087         in diagnostics to make them clearer.  Change wording of suffix
60088         message for clarity.
60089         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
60090         Argument_type_string.
60091         (STRTOL_FATAL_WARN): Remove; no longer used.
60092         * modules/human (Depends-on): Remove gettext-h.
60093
60094 2007-08-06  Simon Josefsson  <simon@josefsson.org>
60095
60096         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
60097
60098 2007-07-31  Bruno Haible  <bruno@clisp.org>
60099
60100         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
60101         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
60102         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
60103
60104 2007-07-31  Bruno Haible  <bruno@clisp.org>
60105
60106         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
60107         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
60108
60109 2007-07-30  Bruno Haible  <bruno@clisp.org>
60110
60111         * modules/base64 (License): Use the synonymous term "LGPLv2+".
60112         * modules/c-ctype (License): Likewise.
60113         * modules/c-strcase (License): Likewise.
60114         * modules/check-version (License): Likewise.
60115         * modules/iconv (License): Likewise.
60116         * modules/iconv_open (License): Likewise.
60117         * modules/read-file (License): Likewise.
60118         * modules/striconv (License): Likewise.
60119         * modules/strverscmp (License): Likewise.
60120         * modules/vasprintf (License): Likewise.
60121         * modules/crypto/des (License): Likewise.
60122         * modules/crypto/gc (License): Likewise.
60123         * modules/crypto/gc-arcfour (License): Likewise.
60124         * modules/crypto/gc-arctwo (License): Likewise.
60125         * modules/crypto/gc-des (License): Likewise.
60126         * modules/crypto/gc-hmac-md5 (License): Likewise.
60127         * modules/crypto/gc-hmac-sha1 (License): Likewise.
60128         * modules/crypto/gc-md2 (License): Likewise.
60129         * modules/crypto/gc-md4 (License): Likewise.
60130         * modules/crypto/gc-md5 (License): Likewise.
60131         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
60132         * modules/crypto/gc-random (License): Likewise.
60133         * modules/crypto/gc-rijndael (License): Likewise.
60134         * modules/crypto/gc-sha1 (License): Likewise.
60135         * modules/crypto/md2 (License): Likewise.
60136         * modules/crypto/md4 (License): Likewise.
60137
60138 2007-07-30  Jim Meyering  <jim@meyering.net>
60139
60140         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
60141         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
60142         it has valid stat data.  This bug would cause du not to count the
60143         sizes of inaccessible directories.
60144         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
60145         in <http://bugzilla.redhat.com/250077>.
60146
60147 2007-07-25  Peter O'Gorman  <peter@pogma.com>
60148             Bruno Haible  <bruno@clisp.org>
60149
60150         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
60151         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
60152         #include_next, gives a diagnostic about it, but reports no error in
60153         the exit code.
60154         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
60155
60156 2007-07-24  Ben Pfaff  <blp@gnu.org>
60157
60158         Improve name: "count-one-bits" is better than "popcount".
60159         * MODULES.html.sh: Update name.
60160         * lib/popcount.h: Renamed lib/count-one-bits.h.
60161         (popcount): Renamed count_one_bits.
60162         (popcountl): Renamed count_one_bits_l.
60163         (popcountll): Renamed count_one_bits_ll.
60164         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
60165         * modules/popcount: Renamed module/count-one-bits.
60166         * modules/popcount-tests: Renamed module/count-one-bits-tests.
60167         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
60168
60169 2007-07-23  Ben Pfaff  <blp@gnu.org>
60170
60171         * lib/popcount.h (popcount32): Reduce size of constants, to allow
60172         better code generation, and add U to large constants to avoid
60173         warnings, in non-GCC case.
60174         Suggested by Bruno Haible.
60175
60176 2007-07-23  Ben Pfaff  <blp@gnu.org>
60177
60178         * lib/popcount.h: Use verify_true instead of if...abort.
60179         * modules/popcount: Depend on verify module.
60180         Suggested by Jim Meyering.
60181
60182 2007-07-23  Bruno Haible  <bruno@clisp.org>
60183
60184         * gnulib-tool (func_import): Create a .cvsignore file also when the
60185         directory is not yet in CVS but the toplevel directory is. When
60186         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
60187         Reported by Karl Berry.
60188
60189 2007-07-22  Ben Pfaff  <blp@gnu.org>
60190
60191         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
60192         case.
60193         Suggested by Eric Blake.
60194
60195 2007-07-22  Ben Pfaff  <blp@gnu.org>
60196
60197         New module: popcount.
60198         * MODULES.html.sh: Add popcount.
60199         * modules/popcount: New file.
60200         * modules/popcount-tests: New file.
60201         * tests/test-popcount.c: New file.
60202         * lib/popcount.h: New file.
60203         * m4/popcount.m4: New file.
60204
60205 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60206
60207         * build-aux/announce-gen: Update to GPLv3.
60208
60209         * build-aux/config.guess: Update from config.
60210
60211 2007-07-21  Bruno Haible  <bruno@clisp.org>
60212
60213         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
60214         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
60215
60216 2007-07-20  Jim Meyering  <jim@meyering.net>
60217
60218         * check-module: Diagnose a self-dependency.
60219
60220 2007-07-19  Bruno Haible  <bruno@clisp.org>
60221
60222         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
60223         empty.
60224         Reported by Eric Blake.
60225
60226 2007-07-18  Bruno Haible  <bruno@clisp.org>
60227
60228         * gnulib-tool: New options --po-base, --po-domain.
60229         (func_usage): Document them.
60230         (pobase, po_domain): New variables.
60231         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
60232         DEFAULT_TEXT_DOMAIN.
60233         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
60234         (func_import): Consider pobase and po_domain. Create a po/ directory.
60235         (func_create_testdir): Set pobase and po_domain to empty.
60236         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
60237         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
60238
60239 2007-07-18  Bruno Haible  <bruno@clisp.org>
60240
60241         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60242         EXTRA_DIST augmentation for files in build-aux/.
60243
60244 2007-07-16  Bruno Haible  <bruno@clisp.org>
60245
60246         * modules/lseek (License): Use the synonymous term "LGPLv2+".
60247         * modules/getdelim (License): Likewise.
60248
60249 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60250
60251         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
60252         * modules/d-type (License): Likewise.
60253         * modules/extensions (License): Likewise.
60254         * modules/fnmatch (License): Likewise.
60255         * modules/fseeko (License): Likewise.
60256         * modules/getaddrinfo (License): Likewise.
60257         * modules/getline (License): Likewise.
60258         * modules/getlogin_r (License): Likewise.
60259         * modules/getpass (License): Likewise.
60260         * modules/gettimeofday (License): Likewise.
60261         * modules/glob (License): Likewise.
60262         * modules/inet_ntop (License): Likewise.
60263         * modules/malloc (License): Likewise.
60264         * modules/malloca (License): Likewise.
60265         * modules/memmem (License): Likewise.
60266         * modules/mempcpy (License): Likewise.
60267         * modules/memset (License): Likewise.
60268         * modules/minmax (License): Likewise.
60269         * modules/mktime (License): Likewise.
60270         * modules/netinet_in (License): Likewise.
60271         * modules/pathmax (License): Likewise.
60272         * modules/poll (License): Likewise.
60273         * modules/regex (License): Likewise.
60274         * modules/snprintf (License): Likewise.
60275         * modules/stdbool (License): Likewise.
60276         * modules/stdint (License): Likewise.
60277         * modules/stdio (License): Likewise.
60278         * modules/strcase (License): Likewise.
60279         * modules/strcasestr (License): Likewise.
60280         * modules/strdup (License): Likewise.
60281         * modules/string (License): Likewise.
60282         * modules/strndup (License): Likewise.
60283         * modules/strnlen (License): Likewise.
60284         * modules/strpbrk (License): Likewise.
60285         * modules/strptime (License): Likewise.
60286         * modules/strsep (License): Likewise.
60287         * modules/sys_select (License): Likewise.
60288         * modules/sys_socket (License): Likewise.
60289         * modules/sys_stat (License): Likewise.
60290         * modules/sys_time (License): Likewise.
60291         * modules/time (License): Likewise.
60292         * modules/time_r (License): Likewise.
60293         * modules/timegm (License): Likewise.
60294         * modules/unistd (License): Likewise.
60295         * modules/vsnprintf (License): Likewise.
60296         * modules/wctype (License): Likewise.
60297
60298 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60299
60300         * modules/argz (License): LGPLv2+.
60301
60302 2007-07-15  Karl Berry  <karl@gnu.org>
60303
60304         * doc/gnulib.texi: revise node structure per new fdl.texi.
60305
60306 2007-07-14  Bruno Haible  <bruno@clisp.org>
60307
60308         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
60309         the output file.
60310         * lib/uniname/uninames.h: Regenerated.
60311
60312 2007-07-14  Karl Berry  <karl@gnu.org>
60313
60314         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
60315         omitting sectioning and index commands.
60316
60317 2007-07-13  Bruno Haible  <bruno@clisp.org>
60318
60319         New gnulib-tool option --more-symlinks.
60320         * gnulib-tool (func_usage): Document --more-symlinks.
60321         (do_copyrights): New variable.
60322         Recognize option --more-symlinks.
60323         (func_import): Don't add a copyright notice transform to
60324         sed_transform_lib_file if do_copyrights is empty.
60325
60326 2007-07-13  Bruno Haible  <bruno@clisp.org>
60327
60328         * lib/vasnprintf.c (decimal_point_char): Define also if
60329         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
60330         && !NEED_PRINTF_DIRECTIVE_A.
60331         Reported by Clemens Koller <clemens.koller@anagramm.de> via
60332         Gary V. Vaughan <gary@gnu.org>.
60333
60334 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
60335
60336         * lib/inttypes_.h: Undo previous change, since it was fixed
60337         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
60338
60339 2007-07-13  Bruno Haible  <bruno@clisp.org>
60340
60341         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
60342         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
60343
60344 2007-07-13  Jim Meyering  <jim@meyering.net>
60345
60346         df: Don't fail for Tru64's "file-on-file mount".
60347         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
60348         so we fall through and use statfs instead.  Details here:
60349         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
60350         Reported by Albert Chin.
60351
60352 2007-07-13  Bruno Haible  <bruno@clisp.org>
60353
60354         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
60355         * modules/configmake (License): Likewise.
60356         * modules/gettext (License): Likewise.
60357         * modules/gettext-h (License): Likewise.
60358         * modules/include_next (License): Likewise.
60359         * modules/link-warning (License): Likewise.
60360         * modules/localcharset (License): Likewise.
60361         * modules/localename (License): Likewise.
60362         * modules/lock (License): Likewise.
60363         * modules/relocatable-lib-lgpl (License): Likewise.
60364         * modules/size_max (License): Likewise.
60365         * modules/vasnprintf (License): Likewise.
60366         * modules/wchar (License): Likewise.
60367         * modules/xsize (License): Likewise.
60368
60369 2007-07-13  Bruno Haible  <bruno@clisp.org>
60370
60371         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
60372         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
60373
60374 2007-07-12  Bruno Haible  <bruno@clisp.org>
60375
60376         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
60377         in the modules files.
60378
60379 2007-07-11  Karl Berry  <karl@gnu.org>
60380
60381         * MODULES.html.sh (func_module): use
60382          sed -e '\|^'"${includefile}"'$|d'
60383          instead of /.../d, to avoid errors on $includefile's containing /.
60384
60385 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60386
60387         * gnulib-tool (func_import): Avoid duplication of --avoid
60388         statements
60389         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
60390         names to `_' in variable names.
60391
60392 2007-07-10  Eric Blake  <ebb9@byu.net>
60393
60394         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
60395         * NEWS: Document this change.
60396
60397 2007-07-08  Bruno Haible  <bruno@clisp.org>
60398
60399         Update to Unicode 5.0.
60400         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
60401         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
60402         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
60403         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
60404         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
60405         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
60406         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
60407         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
60408         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
60409         U+10A3F, U+1D242..U+1D244.
60410         (nonspacing_table_ind): Update.
60411         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
60412         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
60413
60414 2007-07-08  Bruno Haible  <bruno@clisp.org>
60415
60416         Update to Unicode 5.0.
60417         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
60418         code transform. Extend the name index field of unicode_name_to_code and
60419         unicode_code_to_name from 16 to 24 bits.
60420         * lib/uniname/uniname.c (unicode_character_name,
60421         unicode_name_character): Add the range 0x12xxx to the code transform.
60422         * lib/uniname/uninames.h: Regenerated.
60423         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
60424
60425 2007-07-07  Bruno Haible  <bruno@clisp.org>
60426
60427         * modules/wcwidth-tests: New file.
60428         * tests/test-wcwidth.c: New file.
60429
60430         Work around MacOS X wcwidth() bug.
60431         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
60432         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
60433         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
60434         original wcwidth in non-UTF-8 locales.
60435         * modules/wcwidth (Depends-on): Add localcharset, streq,
60436         uniwidth/width.
60437         * doc/functions/wcwidth.texi: Update.
60438
60439 2007-07-07  Bruno Haible  <bruno@clisp.org>
60440
60441         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
60442         (wcwidth): New declaration.
60443         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
60444         macros.
60445         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
60446         here. Prepare for creating <wchar.h> unconditionally.
60447         * modules/wchar (Depends-on): Add link-warning.
60448         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
60449         REPLACE_WCWIDTH, and GL_LINK_WARNING.
60450         * lib/wcwidth.h: Remove file.
60451         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
60452         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
60453         * modules/wcwidth (Files): Remove lib/wcwidth.h.
60454         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
60455         (Include): Replace wcwidth.h with <wchar.h>.
60456         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
60457         * lib/mbchar.h: Don't include wcwidth.h.
60458         * lib/mbswidth.c: Likewise.
60459         * NEWS: Mention the change.
60460
60461 2007-07-07  Bruno Haible  <bruno@clisp.org>
60462
60463         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
60464         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
60465         definition with an external declaration.
60466         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
60467         defined as a function. Remove AC_C_INLINE requirement.
60468         * modules/wcwidth (Files): Add lib/wcwidth.c.
60469         (Makefile.am): Remove redundant statement.
60470
60471 2007-07-07  Bruno Haible  <bruno@clisp.org>
60472
60473         * MODULES.html.sh (Unicode string functions): Add the new modules.
60474
60475         * tests/uniwidth/test-u32-strwidth.c: New file.
60476         * modules/uniwidth/u32-strwidth-tests: New file.
60477
60478         * lib/uniwidth/u32-strwidth.c: New file.
60479         * modules/uniwidth/u32-strwidth: New file.
60480
60481         * tests/uniwidth/test-u16-strwidth.c: New file.
60482         * modules/uniwidth/u16-strwidth-tests: New file.
60483
60484         * lib/uniwidth/u16-strwidth.c: New file.
60485         * modules/uniwidth/u16-strwidth: New file.
60486
60487         * tests/uniwidth/test-u8-strwidth.c: New file.
60488         * modules/uniwidth/u8-strwidth-tests: New file.
60489
60490         * lib/uniwidth/u8-strwidth.c: New file.
60491         * modules/uniwidth/u8-strwidth: New file.
60492
60493         * tests/uniwidth/test-u32-width.c: New file.
60494         * modules/uniwidth/u32-width-tests: New file.
60495
60496         * lib/uniwidth/u32-width.c: New file.
60497         * modules/uniwidth/u32-width: New file.
60498
60499         * tests/uniwidth/test-u16-width.c: New file.
60500         * modules/uniwidth/u16-width-tests: New file.
60501
60502         * lib/uniwidth/u16-width.c: New file.
60503         * modules/uniwidth/u16-width: New file.
60504
60505         * tests/uniwidth/test-u8-width.c: New file.
60506         * modules/uniwidth/u8-width-tests: New file.
60507
60508         * lib/uniwidth/u8-width.c: New file.
60509         * modules/uniwidth/u8-width: New file.
60510
60511         * tests/uniwidth/test-uc_width.c: New file.
60512         * modules/uniwidth/width-tests: New file.
60513
60514         * lib/uniwidth/width.c: New file, from GNU libiconv.
60515         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
60516         * modules/uniwidth/width: New file.
60517
60518         * lib/uniwidth.h: New file, from GNU libiconv.
60519         * modules/uniwidth/base: New file.
60520
60521 2007-07-07  Bruno Haible  <bruno@clisp.org>
60522
60523         * lib/uniname.h: New file, from GNU gettext.
60524         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
60525         * lib/uniname/uninames.h: New file, from GNU gettext.
60526         * lib/uniname/uniname.c: New file, from GNU gettext.
60527         * tests/uniname/test-uninames.sh: New file.
60528         * tests/uniname/test-uninames.c: New file, from GNU gettext.
60529         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
60530         * modules/uniname/base: New file.
60531         * modules/uniname/uniname: New file.
60532         * modules/uniname/uniname-tests: New file.
60533         * MODULES.html.sh (Unicode string functions): Add the new modules.
60534
60535 2007-07-06  Bruno Haible  <bruno@clisp.org>
60536
60537         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
60538
60539 2007-07-06  Bruno Haible  <bruno@clisp.org>
60540
60541         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
60542         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
60543         includes <cygwin/sys_time.h> which includes <sys/select.h> which
60544         include <sys/time.h>.
60545         Reported by Eric Blake.
60546
60547 2007-07-06  Eric Blake  <ebb9@byu.net>
60548
60549         Fix testing canonicalize on cygwin.
60550         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60551         Revert patch from 2007-06-19.
60552         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
60553         canonicalize module is also in use.
60554         * tests/test-canonicalize.c: New file.
60555         * tests/test-canonicalize.sh: Likewise.
60556         * modules/canonicalize-tests: Likewise.
60557
60558 2007-07-06  Jim Meyering  <jim@meyering.net>
60559
60560         * lib/getugroups.c (getugroups): Detect getgrent failure.
60561         Adjust comment to reflect reality: this function may return -1.
60562
60563 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
60564
60565         * build-aux/bootstrap (TP_URL,get_translations): Update to use
60566         the new TP address.
60567         (usage): Fix typo
60568         (gnulib_mk): New variable.
60569
60570 2007-07-05  Jim Meyering  <jim@meyering.net>
60571
60572         Don't let endgrent clobber errno, no matter how improbable.
60573         * lib/getugroups.c (getugroups): Save and restore errno around
60574         endgrent call.
60575
60576         Close the group DB even when failing with 2^31 or more members.
60577         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
60578
60579 2007-07-04  Jim Meyering  <jim@meyering.net>
60580
60581         * lib/getugroups.h: New file.
60582         * lib/getugroups.c: Include "getugroups.h".
60583         Remove uses of "register" keyword.
60584         Move local variable, "cp", down into scope where used.
60585         Give "username" parameter the "const" attribute.
60586         * modules/getugroups (Files): Add lib/getugroups.h
60587
60588 2007-07-04  Karl Berry  <karl@gnu.org>
60589
60590         * MODULES.html.sh (func_all_modules): Complete rename of
60591         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
60592
60593 2007-07-02  Bruno Haible  <bruno@clisp.org>
60594
60595         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
60596         mode, when inttypes.h comes from gnulib.
60597         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60598
60599 2007-07-02  Simon Josefsson  <simon@josefsson.org>
60600
60601         * NEWS: Mention lgpl module name change.
60602
60603         * modules/lgpl-2.1: Renamed from lgpl.
60604
60605         * NEWS: Mention gpl module name change.
60606
60607         * modules/gpl-3.0: New file, based on gpl-2.0.
60608
60609         * modules/gpl-2.0: Renamed from gpl.
60610
60611         * modules/gpl: Fix filename, doc/gpl.texi is now found at
60612         doc/gpl-2.0.texi.
60613
60614 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60615
60616         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
60617         #define __STDC_LIMIT_MACROS temporarily while including
60618         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
60619         Problem reported by Joel E. Denny in
60620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
60621
60622 2007-07-01  Bruno Haible  <bruno@clisp.org>
60623
60624         * lib/unistdio.h: New file.
60625         * lib/unistdio/u-asnprintf.h: New file.
60626         * lib/unistdio/u-asprintf.h: New file.
60627         * lib/unistdio/u-printf-args.c: New file.
60628         * lib/unistdio/u-printf-args.h: New file.
60629         * lib/unistdio/u-printf-parse.h: New file.
60630         * lib/unistdio/u-snprintf.h: New file.
60631         * lib/unistdio/u-sprintf.h: New file.
60632         * lib/unistdio/u-vasprintf.h: New file.
60633         * lib/unistdio/u-vsnprintf.h: New file.
60634         * lib/unistdio/u-vsprintf.h: New file.
60635         * lib/unistdio/ulc-asnprintf.c: New file.
60636         * lib/unistdio/ulc-asprintf.c: New file.
60637         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
60638         * lib/unistdio/ulc-printf-parse.c: New file.
60639         * lib/unistdio/ulc-snprintf.c: New file.
60640         * lib/unistdio/ulc-sprintf.c: New file.
60641         * lib/unistdio/ulc-vasnprintf.c: New file.
60642         * lib/unistdio/ulc-vasprintf.c: New file.
60643         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
60644         * lib/unistdio/ulc-vsnprintf.c: New file.
60645         * lib/unistdio/ulc-vsprintf.c: New file.
60646         * lib/unistdio/u8-asnprintf.c: New file.
60647         * lib/unistdio/u8-asprintf.c: New file.
60648         * lib/unistdio/u8-printf-parse.c: New file.
60649         * lib/unistdio/u8-snprintf.c: New file.
60650         * lib/unistdio/u8-sprintf.c: New file.
60651         * lib/unistdio/u8-vasnprintf.c: New file.
60652         * lib/unistdio/u8-vasprintf.c: New file.
60653         * lib/unistdio/u8-vsnprintf.c: New file.
60654         * lib/unistdio/u8-vsprintf.c: New file.
60655         * lib/unistdio/u8-u8-asnprintf.c: New file.
60656         * lib/unistdio/u8-u8-asprintf.c: New file.
60657         * lib/unistdio/u8-u8-snprintf.c: New file.
60658         * lib/unistdio/u8-u8-sprintf.c: New file.
60659         * lib/unistdio/u8-u8-vasnprintf.c: New file.
60660         * lib/unistdio/u8-u8-vasprintf.c: New file.
60661         * lib/unistdio/u8-u8-vsnprintf.c: New file.
60662         * lib/unistdio/u8-u8-vsprintf.c: New file.
60663         * lib/unistdio/u16-asnprintf.c: New file.
60664         * lib/unistdio/u16-asprintf.c: New file.
60665         * lib/unistdio/u16-printf-parse.c: New file.
60666         * lib/unistdio/u16-snprintf.c: New file.
60667         * lib/unistdio/u16-sprintf.c: New file.
60668         * lib/unistdio/u16-vasnprintf.c: New file.
60669         * lib/unistdio/u16-vasprintf.c: New file.
60670         * lib/unistdio/u16-vsnprintf.c: New file.
60671         * lib/unistdio/u16-vsprintf.c: New file.
60672         * lib/unistdio/u16-u16-asnprintf.c: New file.
60673         * lib/unistdio/u16-u16-asprintf.c: New file.
60674         * lib/unistdio/u16-u16-snprintf.c: New file.
60675         * lib/unistdio/u16-u16-sprintf.c: New file.
60676         * lib/unistdio/u16-u16-vasnprintf.c: New file.
60677         * lib/unistdio/u16-u16-vasprintf.c: New file.
60678         * lib/unistdio/u16-u16-vsnprintf.c: New file.
60679         * lib/unistdio/u16-u16-vsprintf.c: New file.
60680         * lib/unistdio/u32-asnprintf.c: New file.
60681         * lib/unistdio/u32-asprintf.c: New file.
60682         * lib/unistdio/u32-printf-parse.c: New file.
60683         * lib/unistdio/u32-snprintf.c: New file.
60684         * lib/unistdio/u32-sprintf.c: New file.
60685         * lib/unistdio/u32-vasnprintf.c: New file.
60686         * lib/unistdio/u32-vasprintf.c: New file.
60687         * lib/unistdio/u32-vsnprintf.c: New file.
60688         * lib/unistdio/u32-vsprintf.c: New file.
60689         * lib/unistdio/u32-u32-asnprintf.c: New file.
60690         * lib/unistdio/u32-u32-asprintf.c: New file.
60691         * lib/unistdio/u32-u32-snprintf.c: New file.
60692         * lib/unistdio/u32-u32-sprintf.c: New file.
60693         * lib/unistdio/u32-u32-vasnprintf.c: New file.
60694         * lib/unistdio/u32-u32-vasprintf.c: New file.
60695         * lib/unistdio/u32-u32-vsnprintf.c: New file.
60696         * lib/unistdio/u32-u32-vsprintf.c: New file.
60697         * tests/unistdio/test-ulc-asnprintf1.c: New file.
60698         * tests/unistdio/test-ulc-asnprintf1.h: New file.
60699         * tests/unistdio/test-ulc-printf1.h: New file.
60700         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
60701         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
60702         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
60703         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
60704         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
60705         * tests/unistdio/test-ulc-vasprintf1.c: New file.
60706         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
60707         * tests/unistdio/test-ulc-vsprintf1.c: New file.
60708         * tests/unistdio/test-u8-asnprintf1.c: New file.
60709         * tests/unistdio/test-u8-asnprintf1.h: New file.
60710         * tests/unistdio/test-u8-printf1.h: New file.
60711         * tests/unistdio/test-u8-vasnprintf1.c: New file.
60712         * tests/unistdio/test-u8-vasnprintf2.c: New file.
60713         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
60714         * tests/unistdio/test-u8-vasnprintf3.c: New file.
60715         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
60716         * tests/unistdio/test-u8-vasprintf1.c: New file.
60717         * tests/unistdio/test-u8-vsnprintf1.c: New file.
60718         * tests/unistdio/test-u8-vsprintf1.c: New file.
60719         * tests/unistdio/test-u16-asnprintf1.c: New file.
60720         * tests/unistdio/test-u16-asnprintf1.h: New file.
60721         * tests/unistdio/test-u16-printf1.h: New file.
60722         * tests/unistdio/test-u16-vasnprintf1.c: New file.
60723         * tests/unistdio/test-u16-vasnprintf2.c: New file.
60724         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
60725         * tests/unistdio/test-u16-vasnprintf3.c: New file.
60726         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
60727         * tests/unistdio/test-u16-vasprintf1.c: New file.
60728         * tests/unistdio/test-u16-vsnprintf1.c: New file.
60729         * tests/unistdio/test-u16-vsprintf1.c: New file.
60730         * tests/unistdio/test-u32-asnprintf1.c: New file.
60731         * tests/unistdio/test-u32-asnprintf1.h: New file.
60732         * tests/unistdio/test-u32-printf1.h: New file.
60733         * tests/unistdio/test-u32-vasnprintf1.c: New file.
60734         * tests/unistdio/test-u32-vasnprintf2.c: New file.
60735         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
60736         * tests/unistdio/test-u32-vasnprintf3.c: New file.
60737         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
60738         * tests/unistdio/test-u32-vasprintf1.c: New file.
60739         * tests/unistdio/test-u32-vsnprintf1.c: New file.
60740         * tests/unistdio/test-u32-vsprintf1.c: New file.
60741         * modules/unistdio/base: New file.
60742         * modules/unistdio/u-printf-args: New file.
60743         * modules/unistdio/ulc-asnprintf: New file.
60744         * modules/unistdio/ulc-asprintf: New file.
60745         * modules/unistdio/ulc-fprintf: New file.
60746         * modules/unistdio/ulc-printf-parse: New file.
60747         * modules/unistdio/ulc-snprintf: New file.
60748         * modules/unistdio/ulc-sprintf: New file.
60749         * modules/unistdio/ulc-vasnprintf: New file.
60750         * modules/unistdio/ulc-vasprintf: New file.
60751         * modules/unistdio/ulc-vfprintf: New file.
60752         * modules/unistdio/ulc-vsnprintf: New file.
60753         * modules/unistdio/ulc-vsprintf: New file.
60754         * modules/unistdio/u8-asnprintf: New file.
60755         * modules/unistdio/u8-asprintf: New file.
60756         * modules/unistdio/u8-printf-parse: New file.
60757         * modules/unistdio/u8-snprintf: New file.
60758         * modules/unistdio/u8-sprintf: New file.
60759         * modules/unistdio/u8-vasnprintf: New file.
60760         * modules/unistdio/u8-vasprintf: New file.
60761         * modules/unistdio/u8-vsnprintf: New file.
60762         * modules/unistdio/u8-vsprintf: New file.
60763         * modules/unistdio/u8-u8-asnprintf: New file.
60764         * modules/unistdio/u8-u8-asprintf: New file.
60765         * modules/unistdio/u8-u8-snprintf: New file.
60766         * modules/unistdio/u8-u8-sprintf: New file.
60767         * modules/unistdio/u8-u8-vasnprintf: New file.
60768         * modules/unistdio/u8-u8-vasprintf: New file.
60769         * modules/unistdio/u8-u8-vsnprintf: New file.
60770         * modules/unistdio/u8-u8-vsprintf: New file.
60771         * modules/unistdio/u16-asnprintf: New file.
60772         * modules/unistdio/u16-asprintf: New file.
60773         * modules/unistdio/u16-printf-parse: New file.
60774         * modules/unistdio/u16-snprintf: New file.
60775         * modules/unistdio/u16-sprintf: New file.
60776         * modules/unistdio/u16-vasnprintf: New file.
60777         * modules/unistdio/u16-vasprintf: New file.
60778         * modules/unistdio/u16-vsnprintf: New file.
60779         * modules/unistdio/u16-vsprintf: New file.
60780         * modules/unistdio/u16-u16-asnprintf: New file.
60781         * modules/unistdio/u16-u16-asprintf: New file.
60782         * modules/unistdio/u16-u16-snprintf: New file.
60783         * modules/unistdio/u16-u16-sprintf: New file.
60784         * modules/unistdio/u16-u16-vasnprintf: New file.
60785         * modules/unistdio/u16-u16-vasprintf: New file.
60786         * modules/unistdio/u16-u16-vsnprintf: New file.
60787         * modules/unistdio/u16-u16-vsprintf: New file.
60788         * modules/unistdio/u32-asnprintf: New file.
60789         * modules/unistdio/u32-asprintf: New file.
60790         * modules/unistdio/u32-printf-parse: New file.
60791         * modules/unistdio/u32-snprintf: New file.
60792         * modules/unistdio/u32-sprintf: New file.
60793         * modules/unistdio/u32-vasnprintf: New file.
60794         * modules/unistdio/u32-vasprintf: New file.
60795         * modules/unistdio/u32-vsnprintf: New file.
60796         * modules/unistdio/u32-vsprintf: New file.
60797         * modules/unistdio/u32-u32-asnprintf: New file.
60798         * modules/unistdio/u32-u32-asprintf: New file.
60799         * modules/unistdio/u32-u32-snprintf: New file.
60800         * modules/unistdio/u32-u32-sprintf: New file.
60801         * modules/unistdio/u32-u32-vasnprintf: New file.
60802         * modules/unistdio/u32-u32-vasprintf: New file.
60803         * modules/unistdio/u32-u32-vsnprintf: New file.
60804         * modules/unistdio/u32-u32-vsprintf: New file.
60805         * modules/unistdio/ulc-asnprintf-tests: New file.
60806         * modules/unistdio/ulc-vasnprintf-tests: New file.
60807         * modules/unistdio/ulc-vasprintf-tests: New file.
60808         * modules/unistdio/ulc-vsnprintf-tests: New file.
60809         * modules/unistdio/ulc-vsprintf-tests: New file.
60810         * modules/unistdio/u8-asnprintf-tests: New file.
60811         * modules/unistdio/u8-vasnprintf-tests: New file.
60812         * modules/unistdio/u8-vasprintf-tests: New file.
60813         * modules/unistdio/u8-vsnprintf-tests: New file.
60814         * modules/unistdio/u8-vsprintf-tests: New file.
60815         * modules/unistdio/u16-asnprintf-tests: New file.
60816         * modules/unistdio/u16-vasnprintf-tests: New file.
60817         * modules/unistdio/u16-vasprintf-tests: New file.
60818         * modules/unistdio/u16-vsnprintf-tests: New file.
60819         * modules/unistdio/u16-vsprintf-tests: New file.
60820         * modules/unistdio/u32-asnprintf-tests: New file.
60821         * modules/unistdio/u32-vasnprintf-tests: New file.
60822         * modules/unistdio/u32-vasprintf-tests: New file.
60823         * modules/unistdio/u32-vsnprintf-tests: New file.
60824         * modules/unistdio/u32-vsprintf-tests: New file.
60825         * MODULES.html.sh (Unicode string functions): Add the new modules.
60826
60827 2007-07-01  Bruno Haible  <bruno@clisp.org>
60828
60829         * lib/sprintf.c (sprintf): Limit the available length estimation,
60830         to avoid address wraparound.
60831         * lib/vsprintf.c (vsprintf): Likewise.
60832         * modules/sprintf-posix (Dependencies): Add stdint.
60833         * modules/vsprintf-posix (Dependencies): Likewise.
60834
60835 2007-07-01  Bruno Haible  <bruno@clisp.org>
60836
60837         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
60838         Windows PATH as well. Conservative double-quoting. Comments.
60839
60840 2007-07-01  Bruno Haible  <bruno@clisp.org>
60841             Eric Blake  <ebb9@byu.net>
60842             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60843
60844         * gnulib-tool (self_abspathname): Fix algorithm to cope with
60845         empty components in $PATH, denoting '.'.
60846
60847 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60848
60849         * gnulib-tool: Fix indentation.
60850         (func_create_megatestdir): Likewise.
60851         Report by Bruno Haible.
60852
60853 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60854
60855         Sync from Automake.
60856         * build-aux/gnupload: Fix shell portability issues with for loops.
60857         Report by Karl Berry.
60858
60859 2007-06-29  Simon Josefsson  <simon@josefsson.org>
60860
60861         * build-aux/maint.mk (POURL): Use translationproject.org.
60862
60863 2007-06-27  Simon Josefsson  <simon@josefsson.org>
60864             Bruno Haible  <bruno@clisp.org>
60865
60866         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
60867         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
60868         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
60869         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
60870         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
60871
60872 2007-06-27  Bruno Haible  <bruno@clisp.org>
60873
60874         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
60875         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
60876
60877 2007-06-26  Karl Berry  <karl@gnu.org>
60878
60879         * MODULES.html.sh: remove xreadlink-with-size.
60880
60881 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60882
60883         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
60884         method that I hope also handles the double-include problem noted
60885         by Bruno Haible in
60886         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
60887
60888 2007-06-23  Bruno Haible  <bruno@clisp.org>
60889
60890         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60891         Don't let the 'mostlyclean' target fail if the last subdirectory could
60892         not be removed.
60893         Reported by Karl Berry.
60894
60895 2007-06-23  Bruno Haible  <bruno@clisp.org>
60896
60897         * gnulib-tool (echo): Add a speedier workaround for ksh.
60898         * tests/test-echo.sh: Likewise.
60899
60900 2007-06-23  Bruno Haible  <bruno@clisp.org>
60901
60902         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
60903         * tests/test-echo.sh: Likewise.
60904
60905 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60906
60907         * gnulib-tool (IFS): Initialize early, so we don't set it to
60908         empty later.
60909         (self_abspathname): Rewrite algorithm to set it, reindent.
60910         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
60911         (func_create_megatestdir): Merge some sed scripts.
60912
60913 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60914
60915         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
60916         exposed by Sun Studio 11 cc on Solaris 8.
60917
60918 2007-06-22  Bruno Haible  <bruno@clisp.org>
60919
60920         * gnulib-tool (echo): Ensure the echo primitive does not interpret
60921         backslashes.
60922         * tests/test-echo.sh: New file.
60923
60924 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60925
60926         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
60927         simplify `sed_replace_build_aux' scripts, they are portable but
60928         echoing them with `echo' is not.
60929         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
60930
60931 2007-06-21  Karl Berry  <karl@gnu.org>
60932
60933         * config/srclist.txt: guess we can't handle the licenses via
60934         srclist at the moment.
60935
60936 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60937
60938         * MODULES.html.sh: Add include_next.
60939         * modules/include_next: New file.
60940
60941 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60942
60943         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
60944         INCLUDE_NEXT.
60945         (gl_CHECK_NEXT_HEADERS): New macro.
60946         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
60947         the obsolescent gl_ABSOLUTE_HEADER.
60948         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
60949         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
60950         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
60951         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60952         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
60953         * m4/math_h.m4 (gl_MATH_H): Likewise.
60954         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60955         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60956         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
60957         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60958         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
60959         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
60960         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
60961         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60962         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60963         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
60964         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
60965         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60966         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
60967         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60968         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60969         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60970         * m4/inttypes.m4 (gl_INTTYPES_H): Define
60971         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
60972         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
60973         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
60974         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
60975         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
60976         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
60977         * lib/float_.h: Likewise.
60978         * lib/inttypes_.h: Likewise.
60979         * lib/math_.h: Likewise.
60980         * lib/search_.h: Likewise.
60981         * lib/signal_.h: Likewise.
60982         * lib/stdint_.h: Likewise.
60983         * lib/stdio_.h: Likewise.
60984         * lib/stdlib_.h: Likewise.
60985         * lib/string_.h: Likewise.
60986         * lib/sys_stat_.h: Likewise.
60987         * lib/sys_time_.h: Likewise.
60988         * lib/time_.h: Likewise.
60989         * lib/unistd_.h: Likewise.
60990         * lib/wchar_.h: Likewise.
60991         * lib/wctype_.h: Likewise.
60992         * lib/dirent_.h: Likewise.
60993         * lib/iconv_.h: Likewise.
60994         * lib/locale_.h: Likewise.
60995         * lib/netinet_in_.h: Likewise.
60996         * lib/sys_select_.h: Likewise.
60997         * lib/sys_socket_.h: Likewise.
60998         * lib/sysexits_.h: Likewise.
60999         * modules/fcntl (Depends-on): Depend on include_next, not
61000         absolute_header.
61001         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
61002         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
61003         * modules/fchdir: Likewise.
61004         * modules/float: Likewise.
61005         * modules/iconv_open: Likewise.
61006         * modules/inttypes: Likewise.
61007         * modules/locale: Likewise.
61008         * modules/math: Likewise.
61009         * modules/netinet_in: Likewise.
61010         * modules/search: Likewise.
61011         * modules/signal: Likewise.
61012         * modules/stdint: Likewise.
61013         * modules/stdio: Likewise.
61014         * modules/stdlib: Likewise.
61015         * modules/string: Likewise.
61016         * modules/sys_select: Likewise.
61017         * modules/sys_socket: Likewise.
61018         * modules/sys_stat: Likewise.
61019         * modules/sys_time: Likewise.
61020         * modules/sysexits: Likewise.
61021         * modules/time: Likewise.
61022         * modules/unistd: Likewise.
61023         * modules/wchar: Likewise.
61024         * modules/wctype: Likewise.
61025         * modules/sys_stat: Change maintainer to "all".
61026         * modules/unistd: Likewise.
61027
61028 2007-06-20  Karl Berry  <karl@gnu.org>
61029
61030         * config/srclist.txt: track www changes in license files.
61031
61032 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
61033
61034         * build-aux/bootstrap: Remove stray dot.
61035         Make sure build_aux settings are honored when linking
61036         gnulib_extra_files.
61037
61038 2007-06-19  Eric Blake  <ebb9@byu.net>
61039
61040         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
61041         Allow compilation on cygwin.
61042
61043 2007-06-19  Jim Meyering  <jim@meyering.net>
61044
61045         xreadlink-with-size: Remove module.  No longer used.
61046         Ex-callers now use xreadlink or mreadlink-with-size.
61047         * modules/xreadlink-with-size: Remove module.
61048         * lib/xreadlink-with-size.c: Remove file.
61049         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
61050         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
61051         just before the function definition *is* accurate.
61052
61053         Eliminate one way canonicalize_filename_mode could exit.
61054         * lib/canonicalize.c (canonicalize_filename_mode):
61055         Use mreadlink_with_size, not xreadlink_with_size.
61056
61057 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
61058
61059         Detect porting problems to FreeBSD/arm, which has time_t wider than
61060         long int.  Original problem reported for GNU diff by Xin Li in
61061         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
61062         * modules/getdate (Depends-on): Add intprops, verify.
61063         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
61064         is an integer type no wider than long int.
61065
61066 2007-06-18  Jim Meyering  <jim@meyering.net>
61067
61068         New module: mreadlink-with-size.
61069         * MODULES.html.sh: Add mreadlink-with-size.
61070         * modules/mreadlink-with-size: New module
61071         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
61072         not xreadlink-with-size.
61073         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
61074
61075 2007-06-16  Bruno Haible  <bruno@clisp.org>
61076
61077         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
61078         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
61079         Reported by Gary V. Vaughan <gary@gnu.org>.
61080
61081 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
61082
61083         Revamp lchown so that it lives in unistd.h where it belongs.
61084         * lib/lchown.h: Remove.
61085         * lib/dirchownmod.c: Don't include lib/lchown.h.
61086         * lib/fchownat.c: Likewise.
61087         * lib/openat.c: Likewise.
61088         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
61089         does not follow symlinks.
61090         (EOPNOTSUPP): Define if not defined.
61091         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
61092         is defined to 0.
61093         (lchown): New decl.
61094         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
61095         Do not check for lchown decl.
61096         Set REPLACE_LCHOWN.
61097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
61098         REPLACE_LCHOWN.
61099         * modules/chown: Make it clear it follows symlinks.
61100         * modules/lchown: Make it clear it doesn't follow symlinks.
61101         (Files): Remove lib/lchown.h
61102         (Depends-on): Add unistd.
61103         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
61104         (Include): Include <unistd.h>, not "lchown.h".
61105         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
61106         REPLACE_LCHOWN.
61107
61108 2007-06-15  Jim Meyering  <jim@meyering.net>
61109
61110         Change license (GPL to LGPL) of fsusage and dependents.
61111         * modules/fsusage (License): Change to LGPL.
61112         * modules/full-read (License): Likewise.
61113         * modules/full-write (License): Likewise.
61114         * modules/safe-read (License): Likewise.
61115         * modules/safe-write (License): Likewise.
61116
61117 2007-06-14  Ben Pfaff  <blp@gnu.org>
61118
61119         Missing part of allocsa -> malloca transition.
61120         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
61121         gl_MALLOCA.
61122
61123 2007-06-12  Bruno Haible  <bruno@clisp.org>
61124
61125         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
61126         to ia64, x86_64, i386.
61127         Reported by Eric Blake.
61128
61129 2007-06-12  Bruno Haible  <bruno@clisp.org>
61130
61131         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
61132         cross-compiling to x86_64.
61133
61134 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
61135
61136         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
61137         glitch reported by Ralf Wildenhues in
61138         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
61139
61140         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
61141         Vin Shelton.
61142
61143 2007-06-11  Bruno Haible  <bruno@clisp.org>
61144
61145         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
61146         replacement string.
61147         Reported by Eric Blake.
61148
61149 2007-06-10  Bruno Haible  <bruno@clisp.org>
61150
61151         Prepare vasnprintf code for use with Unicode strings.
61152         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
61153         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
61154         TYPE_U32_STRING.
61155         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
61156         a_u32_string variants.
61157         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61158         * lib/printf-args.c: Don't include config.h and the specification
61159         header if PRINTF_FETCHARGS is already defined.
61160         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61161         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
61162         TYPE_U16_STRING, TYPE_U32_STRING.
61163         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
61164         u16_directive, u16_directives, u32_directive, u32_directives): New
61165         types.
61166         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
61167         New declarations.
61168         * lib/printf-parse.c: Don't include config.h and the specification
61169         header if PRINTF_PARSE is already defined. Eliminate the set of
61170         parameters for WIDE_CHAR_VERSION; the user of this file must provide
61171         them now. Include c-ctype.h.
61172         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
61173         directive and CHAR_T_ONLY_ASCII.
61174         * lib/vasnprintf.c: Don't include config.h and the specification header
61175         if VASNPRINTF is already defined.
61176         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
61177         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
61178         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
61179         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
61180         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
61181         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
61182         code accordingly.
61183         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
61184         pad_ourselves also in this case, with the 'c' and 's' directives, and
61185         with a different notion of "width".
61186         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
61187
61188 2007-06-10  Bruno Haible  <bruno@clisp.org>
61189
61190         * modules/unistr/u32-mbsnlen: New file.
61191         * lib/unistr/u32-mbsnlen.c: New file.
61192
61193         * modules/unistr/u16-mbsnlen: New file.
61194         * lib/unistr/u16-mbsnlen.c: New file.
61195
61196         * modules/unistr/u8-mbsnlen: New file.
61197         * lib/unistr/u8-mbsnlen.c: New file.
61198
61199         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
61200         declarations.
61201
61202 2007-06-10  Bruno Haible  <bruno@clisp.org>
61203
61204         * lib/string_.h (mbsnlen): New declaration.
61205         * lib/mbsnlen.c: New file.
61206         * m4/mbsnlen.m4: New file.
61207         * modules/mbsnlen: New file.
61208         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
61209         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
61210         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
61211
61212 2007-06-10  Bruno Haible  <bruno@clisp.org>
61213
61214         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
61215
61216 2007-06-10  Bruno Haible  <bruno@clisp.org>
61217
61218         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
61219         * lib/mbuiter.h: Likewise.
61220
61221 2007-06-10  Bruno Haible  <bruno@clisp.org>
61222
61223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
61224         declaration.
61225
61226 2007-06-10  Karl Berry  <karl@gnu.org>
61227
61228         * config/srclist.txt: remove gettext entries, Bruno prefers
61229         to update individually.
61230
61231 2007-06-10  Bruno Haible  <bruno@clisp.org>
61232
61233         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
61234         'maxlen'. Ensure only length + width bytes are allocated, not
61235         length + 1 + width.
61236
61237 2007-06-09  Bruno Haible  <bruno@clisp.org>
61238
61239         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
61240         (CHAR_T): Remove macro.
61241         (VASNPRINTF): Update.
61242
61243 2007-06-09  Bruno Haible  <bruno@clisp.org>
61244
61245         * MODULES.html.sh (Unicode string functions): Add the new modules.
61246
61247         * modules/uniconv/u32-conv-to-enc: New file.
61248         * lib/uniconv/u32-conv-to-enc.c: New file.
61249         * modules/uniconv/u32-conv-to-enc-tests: New file.
61250         * tests/uniconv/test-u32-conv-to-enc.c: New file.
61251
61252         * modules/uniconv/u16-conv-to-enc: New file.
61253         * lib/uniconv/u16-conv-to-enc.c: New file.
61254         * lib/uniconv/u-conv-to-enc.h: New file.
61255         * modules/uniconv/u16-conv-to-enc-tests: New file.
61256         * tests/uniconv/test-u16-conv-to-enc.c: New file.
61257
61258         * modules/uniconv/u8-conv-to-enc: New file.
61259         * lib/uniconv/u8-conv-to-enc.c: New file.
61260         * modules/uniconv/u8-conv-to-enc-tests: New file.
61261         * tests/uniconv/test-u8-conv-to-enc.c: New file.
61262
61263         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
61264         u32_conv_to_encoding): New declarations.
61265
61266 2007-06-09  Bruno Haible  <bruno@clisp.org>
61267
61268         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
61269
61270 2007-06-09  Bruno Haible  <bruno@clisp.org>
61271
61272         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
61273         * modules/malloca: Renamed from modules/allocsa, updated.
61274         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
61275         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
61276         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
61277         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
61278         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
61279         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
61280         * modules/xmalloca: Renamed from modules/xallocsa, updated.
61281         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
61282         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
61283         * modules/c-strcasestr (Depends-on): Update.
61284         * lib/c-strcasestr.c: Update.
61285         * modules/c-strstr (Depends-on): Update.
61286         * lib/c-strstr.c: Update.
61287         * modules/canonicalize-lgpl (Depends-on): Update.
61288         * lib/canonicalize-lgpl.c: Update.
61289         * modules/clean-temp (Depends-on): Update.
61290         * lib/clean-temp.c: Update.
61291         * modules/csharpcomp (Depends-on): Update.
61292         * lib/csharpcomp.c: Update.
61293         * modules/csharpexec (Depends-on): Update.
61294         * lib/csharpexec.c: Update.
61295         * modules/javacomp (Depends-on): Update.
61296         * lib/javacomp.c: Update.
61297         * modules/javaexec (Depends-on): Update.
61298         * lib/javaexec.c: Update.
61299         * modules/mbscasestr (Depends-on): Update.
61300         * lib/mbscasestr.c: Update.
61301         * modules/mbsstr (Depends-on): Update.
61302         * lib/mbsstr.c: Update.
61303         * modules/setenv (Depends-on): Update.
61304         * lib/setenv.c: Update.
61305         * modules/strcasestr (Depends-on): Update.
61306         * lib/strcasestr.c: Update.
61307         * modules/striconveha (Depends-on): Update.
61308         * lib/striconveha.c: Update.
61309         * modules/relocatable-prog-wrapper (Files): Update.
61310         * lib/relocwrapper.c: Update.
61311         * build-aux/install-reloc: Update.
61312         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
61313
61314 2007-06-08  Bruno Haible  <bruno@clisp.org>
61315
61316         Port to uClibc.
61317         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
61318         * lib/fpurge.c (fpurge): Likewise.
61319         * lib/freading.c (freading): Likewise.
61320         * lib/fseeko.c (rpl_fseeko): Likewise.
61321         * lib/fseterr.c (fseterr): Likewise.
61322         * lib/fwriting.c (fwriting): Likewise.
61323         * tests/test-fflush.c (main): Avoid a failure on uClibc.
61324
61325 2007-06-08  Bruno Haible  <bruno@clisp.org>
61326
61327         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
61328         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
61329         * modules/gettext (Files): Add m4/intlmacosx.m4.
61330
61331 2007-06-07  Bruno Haible  <bruno@clisp.org>
61332
61333         * modules/localename-tests: New file.
61334         * tests/test-localename.c: New file.
61335
61336         New module 'localename'.
61337         * lib/localename.h: New file.
61338         * lib/localename.c: New file, from GNU gettext.
61339         * m4/localename.m4: New file.
61340         * modules/localename: New file.
61341
61342 2007-06-07  Bruno Haible  <bruno@clisp.org>
61343
61344         Work around the lack of <wchar.h> on some builds of uClibc.
61345         * doc/headers/wchar.texi: Update.
61346         * lib/wchar_.h: Include <wchar.h> only if it exists.
61347         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
61348         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
61349         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
61350         doesn't exist.
61351         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
61352         * modules/mbfile (Depends-on): Add wchar.
61353         * modules/mbiter (Depends-on): Likewise.
61354         * modules/mbuiter (Depends-on): Likewise.
61355         Reported by Simon Josefsson.
61356
61357 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61358
61359         Work around problem reported by Steven M. Schweda in
61360         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
61361         Tru64 5.1B with the Compaq compiler environment installed declares
61362         an 'isblank' function but does not define it in the C library.
61363         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
61364         * lib/regex_internal.h (isblank): Likewise.
61365         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
61366         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61367
61368 2007-06-05  Bruno Haible  <bruno@clisp.org>
61369
61370         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
61371         ia64.
61372         * modules/printf-safe: New file.
61373         * modules/fprintf-posix (Depends-on): Add printf-safe.
61374         * modules/printf-posix (Depends-on): Likewise.
61375         * modules/snprintf-posix (Depends-on): Likewise.
61376         * modules/sprintf-posix (Depends-on): Likewise.
61377         * modules/vasnprintf-posix (Depends-on): Likewise.
61378         * modules/vasprintf-posix (Depends-on): Likewise.
61379         * modules/vfprintf-posix (Depends-on): Likewise.
61380         * modules/vprintf-posix (Depends-on): Likewise.
61381         * modules/vsnprintf-posix (Depends-on): Likewise.
61382         * modules/vsprintf-posix (Depends-on): Likewise.
61383         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
61384         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
61385         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
61386         "no" on i386, x86_64, ia64.
61387         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
61388         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61389         on i386, x86_64, ia64.
61390         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
61391         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61392         on i386, x86_64, ia64.
61393         * tests/test-vasnprintf-posix.c: Include float.h.
61394         (LDBL80_WORDS): New macro.
61395         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61396         on i386, x86_64, ia64.
61397         * tests/test-vasprintf-posix.c: Include float.h.
61398         (LDBL80_WORDS): New macro.
61399         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61400         on i386, x86_64, ia64.
61401         * tests/test-snprintf-posix.c: Include float.h.
61402         * tests/test-sprintf-posix.c: Likewise.
61403         * tests/test-vsnprintf-posix.c: Likewise.
61404         * tests/test-vsprintf-posix.c: Likewise.
61405
61406 2007-06-05  Bruno Haible  <bruno@clisp.org>
61407
61408         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
61409         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
61410         non-IEEE numbers on i386, x86_64, ia64.
61411         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
61412         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
61413         * tests/test-isnanl.h: Include float.h.
61414         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
61415
61416 2007-06-05  Bruno Haible  <bruno@clisp.org>
61417
61418         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
61419         also the %a / %A. Handle the %a / %A code before this extra handling.
61420
61421 2007-06-05  Bruno Haible  <bruno@clisp.org>
61422
61423         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
61424         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
61425
61426 2007-06-05  Bruno Haible  <bruno@clisp.org>
61427
61428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
61429         typo in variable name.
61430
61431 2007-06-05  Eric Blake  <ebb9@byu.net>
61432
61433         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
61434         Reported by Simon Josefsson.
61435
61436 2007-06-04  Bruno Haible  <bruno@clisp.org>
61437
61438         Avoid test failures on some PowerPC platforms.
61439         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
61440         Define differently for PowerPC.
61441         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
61442         Reported by Gary V. Vaughan <gary@gnu.org>.
61443
61444 2007-06-02  Bruno Haible  <bruno@clisp.org>
61445
61446         Fix test-stdint failure on FreeBSD/ia64.
61447         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
61448         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
61449         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
61450         * doc/headers/stdint.texi: Update.
61451
61452 2007-06-01  Bruno Haible  <bruno@clisp.org>
61453
61454         * tests/test-binary-io.c (main): Pass a third argument to open().
61455         Reported by Gary V. Vaughan <gary@gnu.org>.
61456
61457 2007-06-01  Bruno Haible  <bruno@clisp.org>
61458
61459         * doc/functions/frexpl.texi: Update for mingw.
61460
61461 2007-06-01  Bruno Haible  <bruno@clisp.org>
61462
61463         * tests/test-lseek.c (main): Disable test of errno for invalid third
61464         argument.
61465         * doc/functions/lseek.texi: Update.
61466         Reported by Gary V. Vaughan <gary@gnu.org>.
61467
61468 2007-05-28  Bruno Haible  <bruno@clisp.org>
61469
61470         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
61471
61472 2007-05-31  Eric Blake  <ebb9@byu.net>
61473
61474         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
61475         cross compiling.
61476
61477 2007-05-30  Eric Blake  <ebb9@byu.net>
61478         and Bruno Haible  <bruno@clisp.org>
61479
61480         Work around mingw test failures exposed by m4-1.4.9b.
61481         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
61482         * tests/test-unistd.c: Disable uid_t and git_t tests for the
61483         moment.
61484
61485 2007-05-30  Bruno Haible  <bruno@clisp.org>
61486
61487         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
61488         assuming that they are closed. Needed on HP-UX 11.
61489
61490 2007-05-29  Bruno Haible  <bruno@clisp.org>
61491
61492         Fix a problem with #include_next.
61493         * lib/dirent_.h: Split the double-inclusion guard.
61494         * lib/fcntl_.h: Likewise.
61495         * lib/float_.h: Likewise.
61496         * lib/iconv_.h: Likewise.
61497         * lib/inttypes_.h: Likewise.
61498         * lib/locale_.h: Likewise.
61499         * lib/math_.h: Likewise.
61500         * lib/netinet_in_.h: Likewise.
61501         * lib/search_.h: Likewise.
61502         * lib/signal_.h: Likewise.
61503         * lib/stdint_.h: Likewise.
61504         * lib/stdio_.h: Likewise.
61505         * lib/stdlib_.h: Likewise.
61506         * lib/string_.h: Likewise.
61507         * lib/sys_select_.h: Likewise.
61508         * lib/sys_socket_.h: Likewise.
61509         * lib/sys_stat_.h: Likewise.
61510         * lib/sys_time_.h: Likewise.
61511         * lib/sysexits_.h: Likewise.
61512         * lib/time_.h: Likewise.
61513         * lib/unistd_.h: Likewise.
61514         * lib/wchar_.h: Likewise.
61515         * lib/wctype_.h: Likewise.
61516
61517 2007-05-29  Bruno Haible  <bruno@clisp.org>
61518
61519         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
61520         for the moment.
61521
61522 2007-05-29  Bruno Haible  <bruno@clisp.org>
61523
61524         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
61525         invocation.
61526         Reported by Eric Blake.
61527
61528 2007-05-29  Bruno Haible  <bruno@clisp.org>
61529
61530         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
61531         compiling case.
61532
61533 2007-05-29  Eric Blake  <ebb9@byu.net>
61534             Bruno Haible  <bruno@clisp.org>
61535
61536         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
61537         cross compiles.
61538
61539 2007-05-28  Eric Blake  <ebb9@byu.net>
61540
61541         * modules/closein-tests (test_closein_LDADD): Support test on
61542         cygwin with libtool.
61543
61544 2007-05-28  Bruno Haible  <bruno@clisp.org>
61545
61546         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
61547         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61548         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61549         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61550         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61551         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61552         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61553         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61554         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61555
61556 2007-05-28  Eric Blake  <ebb9@byu.net>
61557
61558         Unconditionally include <config.h> in unit tests.
61559         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
61560         * tests/test-allocsa.c, tests/test-arcfour.c,
61561         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
61562         tests/test-array_list.c, tests/test-array_oset.c,
61563         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
61564         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
61565         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
61566         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
61567         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
61568         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
61569         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
61570         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
61571         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
61572         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
61573         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
61574         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
61575         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
61576         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
61577         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
61578         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
61579         test-md5.c, test-memmem.c, test-printf-posix.c,
61580         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
61581         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
61582         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
61583         test-strcasestr.c, test-striconv.c, test-striconveh.c,
61584         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
61585         test-vasnprintf-posix2.c, test-vasnprintf.c,
61586         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
61587         test-vfprintf-posix.c, test-vprintf-posix.c,
61588         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
61589         test-xvasprintf.c: Likewise.
61590
61591 2007-05-28  Bruno Haible  <bruno@clisp.org>
61592
61593         * gnulib-tool (func_import): Remember the --with-tests command-line
61594         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
61595         Reported by Eric Blake.
61596
61597 2007-05-28  Bruno Haible  <bruno@clisp.org>
61598
61599         * modules/ftell-tests: New file.
61600         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
61601         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
61602
61603         * lib/ftell.c: New file.
61604         * modules/ftell: New file.
61605         * m4/ftell.m4: New file.
61606         * doc/functions/ftell.texi: Update.
61607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
61608         REPLACE_FTELL.
61609         * lib/stdio_.h (rpl_ftell): New declaration.
61610         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
61611         REPLACE_FTELL.
61612
61613 2007-05-28  Eric Blake  <ebb9@byu.net>
61614
61615         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
61616
61617 2007-05-28  Bruno Haible  <bruno@clisp.org>
61618
61619         * modules/fseek-tests: New file.
61620         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
61621         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
61622
61623         * lib/fseek.c: New file.
61624         * modules/fseek: New file.
61625         * m4/fseek.m4: New file.
61626         * doc/functions/fseek.texi: Update.
61627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
61628         REPLACE_FSEEK.
61629         * lib/stdio_.h (rpl_fseek): New declaration.
61630         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
61631         REPLACE_FSEEK.
61632
61633 2007-05-28  Bruno Haible  <bruno@clisp.org>
61634
61635         * lib/stdio_.h (fflush): More comments.
61636
61637 2007-05-28  Bruno Haible  <bruno@clisp.org>
61638
61639         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
61640         runtime test.
61641
61642 2007-05-28  Eric Blake  <ebb9@byu.net>
61643
61644         Improve lseek module.
61645         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
61646         * lib/unistd_.h (lseek): Scale back link warning message.
61647         * tests/test-lseek.c: Beef up test.
61648         * tests/test-lseek.sh: Exercise more facets of lseek.
61649         Reported by Bruno Haible.
61650
61651 2007-05-28  Bruno Haible  <bruno@clisp.org>
61652
61653         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
61654         to define.
61655
61656 2007-05-27  Bruno Haible  <bruno@clisp.org>
61657
61658         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
61659
61660 2007-05-27  Bruno Haible  <bruno@clisp.org>
61661
61662         * modules/openmp: New file.
61663         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
61664         Noah Misch.
61665
61666 2007-05-26  Bruno Haible  <bruno@clisp.org>
61667
61668         * modules/chdir-long (Depends-on): Add fchdir.
61669         * modules/chdir-safer (Depends-on): Likewise.
61670         * modules/fts (Depends-on): Likewise.
61671         * modules/fts-lgpl (Depends-on): Likewise.
61672         * modules/openat (Depends-on): Likewise.
61673         * modules/savewd (Depends-on): Likewise.
61674
61675 2007-05-24  Eric Blake  <ebb9@byu.net>
61676
61677         Fix lseek on mingw.
61678         * modules/lseek: New module.
61679         * m4/lseek.m4: New file.
61680         * lib/lseek.c: New file.
61681         * modules/lseek-tests: New file.
61682         * tests/test-lseek.c: New file.
61683         * tests/test-lseek.sh: New file.
61684         * MODULES.html.sh: Document lseek module.
61685         * modules/fflush (Depends-on): Add lseek, fseeko.
61686         * modules/fseeko (Depends-on): Likewise.
61687         * modules/ftello (Depends-on): Likewise.
61688         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
61689         broken.
61690         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
61691         broken.
61692         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
61693         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
61694         * lib/ftello.c (rpl_ftello): Likewise.
61695         * tests/test-fseeko.c (main): Test this.
61696         * tests/test-fseeko.sh: Likewise.
61697         * tests/test-ftello.c (main): Likewise.
61698         * tests/test-ftello.sh: Likewise.
61699         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
61700         implies replacing fseek.
61701         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
61702         HAVE_FTELLO.
61703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
61704         * modules/unistd (Makefile.am): Likewise.
61705         * lib/unistd_.h (lseek): Declare a replacement.
61706         * doc/functions/lseek.texi (lseek): Document this fix.
61707         * doc/functions/fseek.texi (fseek): Likewise.
61708         * doc/functions/ftell.texi (ftell): Likewise.
61709
61710 2007-05-24  Bruno Haible  <bruno@clisp.org>
61711
61712         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
61713         in the printed representation of a NaN.
61714         * tests/test-vasprintf-posix.c (test_function): Likewise.
61715         * tests/test-snprintf-posix.h (test_function): Likewise.
61716         * tests/test-sprintf-posix.h (test_function): Likewise.
61717         Reported by Eric Blake.
61718
61719 2007-05-23  Eric Blake  <ebb9@byu.net>
61720
61721         Fix fseeko/ftello on cygwin 1.5.24.
61722         * doc/functions/fseeko.texi (fseeko): Document the fix.
61723         * doc/functions/ftello.texi (ftello): Document the fix.
61724         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
61725         * doc/functions/stdout.text (stdout): New file.
61726         * doc/functions/stderr.text (stderr): New file.
61727         * doc/gnulib.texi (Function Substitutes): Use new files.
61728         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
61729         prior to 1.7.0.
61730         * tests/test-ftello.c (main): Likewise for ftello.
61731         * tests/test-fseeko.sh: New file.
61732         * tests/test-ftello.sh: New file.
61733         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
61734         with seekable stdin.
61735         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
61736         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
61737         (gl_REPLACE_FSEEKO): New macro.
61738         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
61739         * modules/fseeko (Files): Distribute fseeko.c.
61740         * modules/ftello (Files): Distribute ftello.c.
61741         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
61742         mode.
61743         * lib/ftello.c (rpl_ftello): New file.
61744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
61745         fseeko, ftello.
61746         (gl_STDIN_LARGE_OFFSET): New macro.
61747         * modules/stdio (Makefile.am): Perform the replacement.
61748         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
61749
61750 2007-05-23  Bruno Haible  <bruno@clisp.org>
61751
61752         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
61753         GNULIB_POSIXCHECK is defined.
61754
61755 2007-05-21  Bruno Haible  <bruno@clisp.org>
61756
61757         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
61758         Check also the output for NaN arguments. When cross-compiling, guess
61759         no on IRIX.
61760         * lib/vasnprintf.c: Update comments.
61761         * tests/test-vasnprintf-posix.c (strisnan): New function.
61762         (test_function): Use it.
61763         * tests/test-vasprintf-posix.c (strisnan): New function.
61764         (test_function): Use it.
61765         * tests/test-snprintf-posix.h (strisnan): New function.
61766         (test_function): Use it.
61767         * tests/test-sprintf-posix.h (strisnan): New function.
61768         (test_function): Use it.
61769         Reported by Eric Blake.
61770
61771 2007-05-20  Bruno Haible  <bruno@clisp.org>
61772
61773         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
61774         numbers that fails on BeOS.
61775         * doc/functions/frexpl.texi: Update.
61776
61777 2007-05-20  Jim Meyering  <jim@meyering.net>
61778
61779         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
61780         forced upon us by glibc-2.6.
61781
61782 2007-05-20  Bruno Haible  <bruno@clisp.org>
61783
61784         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
61785         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
61786         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
61787         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
61788         NEED_PRINTF_INFINITE.
61789         (is_infinitel): New function.
61790         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
61791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
61792         gl_PREREQ_VASNPRINTF_INFINITE.
61793         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
61794         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61795         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
61796         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
61797         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
61798         gl_PREREQ_VASNPRINTF_INFINITE.
61799         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61800         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61801         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61802         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61803         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61804         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61805         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61806         * doc/functions/fprintf.texi: Update.
61807         * doc/functions/printf.texi: Update.
61808         * doc/functions/snprintf.texi: Update.
61809         * doc/functions/sprintf.texi: Update.
61810         * doc/functions/vfprintf.texi: Update.
61811         * doc/functions/vprintf.texi: Update.
61812         * doc/functions/vsnprintf.texi: Update.
61813         * doc/functions/vsprintf.texi: Update.
61814
61815 2007-05-20  Bruno Haible  <bruno@clisp.org>
61816
61817         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
61818         was not found in libc.
61819         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
61820
61821 2007-05-20  Bruno Haible  <bruno@clisp.org>
61822
61823         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61824         printed as "-nan" instead of "nan".
61825         * tests/test-vasprintf-posix.c (test_function): Likewise.
61826         * tests/test-snprintf-posix.h (test_function): Likewise.
61827         * tests/test-sprintf-posix.h (test_function): Likewise.
61828         Needed for HP-UX 11.
61829
61830 2007-05-20  Jim Meyering  <jim@meyering.net>
61831
61832         Fix buggy test for the fchownat-deref bug.
61833         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
61834         symlink required for the run-test.  Without it, this test would
61835         always declare that fchownat doesn't work, and client code would
61836         unnecessarily use the replacement function with fixed libc.
61837         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
61838         Reported by Greg Schafer.
61839
61840 2007-05-19  Bruno Haible  <bruno@clisp.org>
61841
61842         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
61843         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
61844         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
61845         Needed for IRIX 6.5 and Solaris 2.5.1.
61846
61847 2007-05-19  Bruno Haible  <bruno@clisp.org>
61848
61849         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
61850         (test_function): Skip tests involving -0.0 on platforms where
61851         -0.0 = 0.0.
61852         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
61853         (test_function): Skip tests involving -0.0 on platforms where
61854         -0.0 = 0.0.
61855         * tests/test-snprintf-posix.h (have_minus_zero): New function.
61856         (test_function): Skip tests involving -0.0 on platforms where
61857         -0.0 = 0.0.
61858         * tests/test-sprintf-posix.h (have_minus_zero): New function.
61859         (test_function): Skip tests involving -0.0 on platforms where
61860         -0.0 = 0.0.
61861         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
61862         tests.
61863         * tests/test-printf-posix.h (test_function): Likewise.
61864         * tests/test-printf-posix.output: Remove all -0.0 related results.
61865         Needed for IRIX 6.5.
61866
61867 2007-05-19  Bruno Haible  <bruno@clisp.org>
61868
61869         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61870         printed as "nan0x7fffffff" instead of "nan".
61871         * tests/test-vasprintf-posix.c (test_function): Likewise.
61872         * tests/test-snprintf-posix.h (test_function): Likewise.
61873         * tests/test-sprintf-posix.h (test_function): Likewise.
61874         * tests/test-fprintf-posix.h (NaN): Remove macro.
61875         (test_function): Remove all NaN related tests.
61876         * tests/test-printf-posix.h (NaN): Remove macro.
61877         (test_function): Remove all NaN related tests.
61878         * tests/test-printf-posix.output: Remove all NaN related results.
61879         Needed for IRIX 6.5.
61880
61881 2007-05-19  Bruno Haible  <bruno@clisp.org>
61882
61883         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
61884         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61885
61886 2007-05-19  Bruno Haible  <bruno@clisp.org>
61887
61888         * lib/float_.h: New file.
61889         * m4/float_h.m4: New file.
61890         * modules/float: New file.
61891         * modules/isnanl (Dependencies): Add float.
61892         * modules/isnanl-nolibm (Dependencies): Likewise.
61893         * modules/mathl (Dependencies): Likewise.
61894         * modules/printf-frexpl (Dependencies): Likewise.
61895         * modules/signbit (Dependencies): Likewise.
61896         * modules/vasnprintf (Dependencies): Likewise.
61897         * doc/headers/float.texi: Update.
61898
61899 2007-05-19  Jim Meyering  <jim@meyering.net>
61900
61901         * lib/utimens.c (gl_futimens): Rename from futimens,
61902         now that glibc-2.6 declares futimens.
61903         * lib/utimens.h: Likewise.
61904
61905 2007-05-19  Bruno Haible  <bruno@clisp.org>
61906
61907         Avoid test failures on mingw.
61908         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
61909         * tests/test-printf-posix.sh: Likewise.
61910         * tests/test-vfprintf-posix.sh: Likewise.
61911         * tests/test-vprintf-posix.sh: Likewise.
61912
61913 2007-05-19  Bruno Haible  <bruno@clisp.org>
61914
61915         Fix *printf result for NaN, Inf, -0.0 on mingw.
61916         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
61917         * lib/vasnprintf.c: Include math.h and isnan.h.
61918         (is_infinite_or_zero): New function.
61919         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
61920         values in the %f, %F, %e, %E, %g, %G directives.
61921         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
61922         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61923         gl_PRINTF_INFINITE and test its result. Invoke
61924         gl_PREREQ_VASNPRINTF_INFINITE.
61925         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61926         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61927         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61928         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61929         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61930         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61931         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61932         * doc/functions/fprintf.texi: Update.
61933         * doc/functions/printf.texi: Update.
61934         * doc/functions/snprintf.texi: Update.
61935         * doc/functions/sprintf.texi: Update.
61936         * doc/functions/vfprintf.texi: Update.
61937         * doc/functions/vprintf.texi: Update.
61938         * doc/functions/vsnprintf.texi: Update.
61939         * doc/functions/vsprintf.texi: Update.
61940
61941 2007-05-19  Bruno Haible  <bruno@clisp.org>
61942
61943         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
61944         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
61945         Instead of multiplying with 10^k, set extra_zeroes to k.
61946         (scale10_round_long_double): Remove function.
61947
61948 2007-05-18  Bruno Haible  <bruno@clisp.org>
61949
61950         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
61951         introduced on 2007-05-06.
61952
61953 2007-05-18  Bruno Haible  <bruno@clisp.org>
61954
61955         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
61956         %g directives.
61957         * tests/test-vasprintf-posix.c (test_function): Likewise.
61958         * tests/test-snprintf-posix.h (test_function): Likewise.
61959         * tests/test-sprintf-posix.h (test_function): Likewise.
61960
61961 2007-05-18  Bruno Haible  <bruno@clisp.org>
61962
61963         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
61964         (strmatch): New function.
61965         (test_function): Test the %f directive on numbers of various exponents.
61966         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
61967         (strmatch): New function.
61968         (test_function): Test the %f directive on numbers of various exponents.
61969         * tests/test-snprintf-posix.h (strmatch): New function.
61970         (test_function): Test the %f directive on numbers of various exponents.
61971         * tests/test-sprintf-posix.h (strmatch): New function.
61972         (test_function): Test the %f directive on numbers of various exponents.
61973         * tests/test-snprintf-posix.c (SIZEOF): New macro.
61974         * tests/test-sprintf-posix.c (SIZEOF): New macro.
61975         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
61976         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
61977
61978 2007-05-18  Bruno Haible  <bruno@clisp.org>
61979
61980         Add support for 'long double' number output.
61981         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
61982         * lib/vasnprintf.c: Include math.h and float+.h.
61983         (mp_limb_t): New type.
61984         (GMP_LIMB_BITS): New macro.
61985         (mp_twolimb_t): New type.
61986         (GMP_TWOLIMB_BITS): New macro.
61987         (mpn_t): New type.
61988         (multiply, divide, convert_to_decimal, decode_long_double,
61989         scale10_round_long_double, scale10_round_decimal_long_double,
61990         floorlog10l): New functions.
61991         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
61992         for the %f, %F, %e, %E, %g, %G directives.
61993         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
61994         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61995         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
61996         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
61997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61998         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61999         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62000         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62001         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62002         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62003         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62004         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
62005         * modules/snprintf-posix (Depends-on): Likewise.
62006         * modules/sprintf-posix (Depends-on): Likewise.
62007         * modules/vasnprintf-posix (Depends-on): Likewise.
62008         * modules/vasprintf-posix (Depends-on): Likewise.
62009         * modules/vfprintf-posix (Depends-on): Likewise.
62010         * modules/vsnprintf-posix (Depends-on): Likewise.
62011         * modules/vsprintf-posix (Depends-on): Likewise.
62012         * modules/vasnprintf (Files): Add lib/float+.h.
62013         * doc/functions/fprintf.texi: Update.
62014         * doc/functions/printf.texi: Update.
62015         * doc/functions/snprintf.texi: Update.
62016         * doc/functions/sprintf.texi: Update.
62017         * doc/functions/vfprintf.texi: Update.
62018         * doc/functions/vprintf.texi: Update.
62019         * doc/functions/vsnprintf.texi: Update.
62020         * doc/functions/vsprintf.texi: Update.
62021
62022 2007-05-18  Bruno Haible  <bruno@clisp.org>
62023
62024         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
62025
62026 2007-05-18  Bruno Haible  <bruno@clisp.org>
62027
62028         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
62029         for printing 64-bit integers. Needed for mingw.
62030
62031 2007-05-18  Bruno Haible  <bruno@clisp.org>
62032
62033         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62034         gl_FUNC_FREXPL_WORKS.
62035         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
62036
62037 2007-05-18  Bruno Haible  <bruno@clisp.org>
62038
62039         * modules/frexpl-nolibm-tests: New file.
62040
62041         * modules/frexpl-nolibm: New file.
62042         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
62043
62044 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62045
62046         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
62047         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62048         GCC 4.2, which otherwise issues a lot of warnings.
62049         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
62050         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
62051         Likewise.
62052         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
62053         * modules/iconv_open (iconv.h): Likewise.
62054         * modules/locale (locale.h): Likewise.
62055         * modules/netinet_in (netinet/in.h): Likewise.
62056         * modules/sys_select (sys_select.h): Likewise.
62057         * modules/sys_socket (sys/socket.h): Likewise.
62058         * modules/sys_stat (sys/stat.h): Likewise.
62059         * modules/sysexits (sysexits.h): Likewise.
62060         * modules/unistd (unistd.h): Likewise.
62061
62062 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62063
62064         * modules/closein-tests (Makefile.am): Distribute
62065         `test-closein.sh'.
62066
62067 2007-05-17  Bruno Haible  <bruno@clisp.org>
62068
62069         * tests/test-printf-posix.output: Renamed from
62070         tests/test-fprintf-posix.out.
62071         * modules/fprintf-posix-tests: Update.
62072         * modules/printf-posix-tests: Update.
62073         * modules/vfprintf-posix-tests: Update.
62074         * modules/vprintf-posix-tests: Update.
62075         * tests/test-fprintf-posix.sh: Update.
62076         * tests/test-printf-posix.sh: Update.
62077         * tests/test-vfprintf-posix.sh: Update.
62078         * tests/test-vprintf-posix.sh: Update.
62079         Reported by Ralf Wildenhues.
62080
62081 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62082
62083         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
62084         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62085         GCC 4.2, which otherwise issues a lot of warnings.
62086         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
62087         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
62088         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
62089         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
62090         it should no longer be needed.
62091         * lib/string_.h: Likewise.
62092         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
62093         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
62094         * modules/inttypes (inttypes.h): Likewise.
62095         * modules/math (math.h): Likewise.
62096         * modules/search (search.h): Likewise.
62097         * modules/signal (signal.h): Likewise.
62098         * modules/stdint (stdint.h): Likewise.
62099         * modules/stdio (stdio.h): Likewise.
62100         * modules/stdlib (stdlib.h): Likewise.
62101         * modules/string (string.h): Likewise.
62102         * modules/sys_time (sys/time.h): Likewise.
62103         * modules/time (time.h): Likewise.
62104         * modules/wchar (wchar.h): Likewise.
62105         * modules/wctype (wtype.h): Likewise.
62106
62107 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62108
62109         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
62110
62111 2007-05-13  Bruno Haible  <bruno@clisp.org>
62112
62113         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
62114         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62115         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
62116         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62117         (gl_PREREQ_STRTOK_R): Don't require it here.
62118
62119 2007-05-13  Bruno Haible  <bruno@clisp.org>
62120
62121         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
62122         when used in C++ mode.
62123
62124 2007-05-12  Bruno Haible  <bruno@clisp.org>
62125
62126         * lib/linebuffer.h: Tweak doc.
62127         * lib/linebuffer.c: Likewise.
62128
62129 2007-05-12  James Youngman  <jay@gnu.org>
62130
62131         * lib/linebuffer.c (readlinebuffer_delim): New function,
62132         like readlinebuffer, but use a caller-specified delimiter.
62133         (readlinebuffer): Just call readlinebuffer_delim with '\n'
62134         as the delimiter.
62135         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
62136
62137 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62138
62139         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
62140         * modules/openat (Files): Remove openat-die.c.
62141         (Depends-on): Add openat-die.
62142         * modules/openat-die: New module.
62143
62144 2007-05-06  Bruno Haible  <bruno@clisp.org>
62145
62146         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
62147         Update with info about Cygwin.
62148         * doc/functions/fprintf.texi: Update.
62149         * doc/functions/printf.texi: Update.
62150         * doc/functions/snprintf.texi: Update.
62151         * doc/functions/sprintf.texi: Update.
62152         * doc/functions/vfprintf.texi: Update.
62153         * doc/functions/vprintf.texi: Update.
62154         * doc/functions/vsnprintf.texi: Update.
62155         * doc/functions/vsprintf.texi: Update.
62156         Reported by Eric Blake.
62157
62158 2007-05-06  Bruno Haible  <bruno@clisp.org>
62159
62160         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
62161         padding ourselves for the floating-point directives.
62162         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
62163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
62164         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62165         gl_PRINTF_FLAG_ZERO and test its result. Invoke
62166         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
62167         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62168         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62169         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62170         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62171         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62172         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62173         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62174         * tests/test-snprintf-posix.h (test_function): Also check the width
62175         and some flags in the %f directive.
62176         * tests/test-sprintf-posix.h (test_function): Likewise.
62177         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62178         * tests/test-vasprintf-posix.c (test_function): Likewise.
62179         * doc/functions/fprintf.texi: Update.
62180         * doc/functions/printf.texi: Update.
62181         * doc/functions/snprintf.texi: Update.
62182         * doc/functions/sprintf.texi: Update.
62183         * doc/functions/vfprintf.texi: Update.
62184         * doc/functions/vprintf.texi: Update.
62185         * doc/functions/vsnprintf.texi: Update.
62186         * doc/functions/vsprintf.texi: Update.
62187
62188 2007-05-06  Bruno Haible  <bruno@clisp.org>
62189
62190         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
62191         pass the ' flag character to sprintf or snprintf.
62192         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
62193         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
62194         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62195         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
62196         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
62197         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62198         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62199         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62200         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62201         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62202         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62203         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62204         * tests/test-snprintf-posix.h (test_function): Also check the grouping
62205         flag.
62206         * tests/test-sprintf-posix.h (test_function): Likewise.
62207         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62208         * tests/test-vasprintf-posix.c (test_function): Likewise.
62209         * doc/functions/fprintf.texi: Update.
62210         * doc/functions/printf.texi: Update.
62211         * doc/functions/snprintf.texi: Update.
62212         * doc/functions/sprintf.texi: Update.
62213         * doc/functions/vfprintf.texi: Update.
62214         * doc/functions/vprintf.texi: Update.
62215         * doc/functions/vsnprintf.texi: Update.
62216         * doc/functions/vsprintf.texi: Update.
62217
62218 2007-05-01  Bruno Haible  <bruno@clisp.org>
62219
62220         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
62221
62222 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
62223
62224         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
62225         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
62226
62227 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62228
62229         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
62230         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
62231         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
62232
62233 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
62234
62235         * lib/argp-help.c (struct hol_entry): New member `ord'.
62236         (HOL_ENTRY_PTRCMP): Use ord for comparison
62237         (hol_sort): Initialize ord.
62238
62239 2007-05-01  Bruno Haible  <bruno@clisp.org>
62240
62241         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
62242         Reported by Eric Blake.
62243         * doc/gnulib.texi (Function Substitutes): Update.
62244
62245 2007-05-01  Bruno Haible  <bruno@clisp.org>
62246
62247         * doc/functions.texi: Remove file, now redundant through
62248         doc/functions/*.texi.
62249
62250 2007-05-01  Bruno Haible  <bruno@clisp.org>
62251
62252         * modules/argp (Depends-on): Add sleep.
62253
62254 2007-05-01  Bruno Haible  <bruno@clisp.org>
62255
62256         * modules/sleep-tests: New file.
62257         * tests/test-sleep.c: New file.
62258
62259         * modules/sleep: New file.
62260         * lib/sleep.c: New file.
62261         * m4/sleep.m4: New file.
62262         * lib/unistd_.h (sleep): New declaration.
62263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
62264         HAVE_SLEEP.
62265         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
62266         * doc/functions/sleep.texi: Document the sleep module.
62267
62268 2007-05-01  Bruno Haible  <bruno@clisp.org>
62269
62270         * lib/sigprocmask.h: Remove file.
62271         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
62272         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
62273         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
62274         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
62275         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
62276         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
62277         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
62278         HAVE_SIGSET_T as a shell variable.
62279         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
62280         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
62281         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
62282         (Depends-on): Add signal. Remove verify.
62283         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
62284         (Include): Mention <signal.h> instead of sigprocmask.h.
62285         * NEWS: Mention the change.
62286         * lib/fatal-signal.c: Don't include sigprocmask.h.
62287
62288 2007-05-01  Bruno Haible  <bruno@clisp.org>
62289
62290         * modules/signal: New file.
62291         * lib/signal_.h: New file.
62292         * m4/signal_h.m4: New file.
62293
62294 2007-05-01  Bruno Haible  <bruno@clisp.org>
62295
62296         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
62297         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
62298         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
62299         HAVE_WCTYPE_CTMP_BUG into wctype.h.
62300
62301 2007-05-01  Bruno Haible  <bruno@clisp.org>
62302
62303         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
62304         configure time.
62305         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
62306         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
62307         * modules/sys_stat (Makefile.am): Substitute their values into
62308         sys/stat.h.
62309
62310 2007-05-01  Bruno Haible  <bruno@clisp.org>
62311
62312         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
62313         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
62314         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
62315
62316 2007-05-01  Bruno Haible  <bruno@clisp.org>
62317
62318         * doc/header/assert.texi: Undo last change: don't mention the gnulib
62319         'assert' module here.
62320
62321 2007-05-01  Bruno Haible  <bruno@clisp.org>
62322
62323         * doc/functions/*.texi: New files.
62324         * doc/functions/google-ranking.txt: New file.
62325         * doc/gnulib.texi (Function Substitutes): New chapter.
62326         (ctime, inet_ntoa): Remove sections.
62327         * doc/ctime.texi: Remove file.
62328         * doc/inet_ntoa.texi: Remove file.
62329         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
62330         dependencies.
62331         (%.info): New rule, specifying a --reference-limit.
62332
62333 2007-05-01  Bruno Haible  <bruno@clisp.org>
62334
62335         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
62336
62337 2007-05-01  Bruno Haible  <bruno@clisp.org>
62338
62339         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
62340         the portability of 'mkdir' to mingw systems.
62341
62342 2007-05-01  Bruno Haible  <bruno@clisp.org>
62343
62344         * doc/headers/google-ranking.txt: New file.
62345
62346 2007-04-30  Eric Blake  <ebb9@byu.net>
62347
62348         Prefer fseeko to fseek.
62349         * modules/getpass (Depends-on): Add fseeko.
62350         * lib/getpass.c (getpass): Use fseeko, not fseek.
62351
62352 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
62353
62354         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
62355         assumes the sorting is stable, while most qsort implementations
62356         are not.  Use argument addresses to ensure they never compare as
62357         equal.
62358
62359         * tests/test-argp-2.sh (usage-indent test): Fix output
62360         (func_compare): Restore diff options
62361         * tests/test-argp.c: Restore #include "progname.h"
62362
62363 2007-04-29  Bruno Haible  <bruno@clisp.org>
62364
62365         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
62366         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62367         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
62368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62369         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
62370         (configure.ac): Define CHECK_SNPRINTF_POSIX.
62371         (TESTS, check_PROGRAMS): Add test-snprintf.
62372         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
62373         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
62374         (TESTS, check_PROGRAMS): Add test-vsnprintf.
62375         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
62376         assertions that fail on HP-UX, OSF/1, or IRIX.
62377         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
62378
62379 2007-04-29  Bruno Haible  <bruno@clisp.org>
62380
62381         * MODULES.html.sh (posix_functions): Remove 'contents'.
62382
62383 2007-04-29  Karl Berry  <karl@gnu.org>
62384
62385         * config/srclist.txt (gendocs_template_min): new entry.
62386
62387 2007-04-29  Bruno Haible  <bruno@clisp.org>
62388
62389         Work around fpurge bug on BSD systems.
62390         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
62391         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
62392         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
62393         fpurge to rpl_fpurge if the system already has this function.
62394         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
62395         the case where the system already has this function. Correct invariants
62396         on BSD systems.
62397         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
62398         BSD systems.
62399
62400 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62401
62402         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
62403         proposed by Sven Verdoolaege.
62404
62405         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
62406         options.
62407         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
62408         (usage and help tests): Update
62409
62410 2007-04-29  Bruno Haible  <bruno@clisp.org>
62411
62412         * tests/test-fflush.c (main): Use a file of size 17, not 10.
62413         Print more information in case of failure. Disable a test on BeOS.
62414
62415 2007-04-29  Bruno Haible  <bruno@clisp.org>
62416
62417         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
62418         This helps debugging on systems on which no gdb is available.
62419
62420 2007-04-29  Bruno Haible  <bruno@clisp.org>
62421
62422         * lib/freading.h: Improve comments.
62423         * lib/fwriting.h: Likewise.
62424         * tests/test-freading.c (main): Don't check freading immediately after
62425         repositioning. Needed for glibc.
62426
62427 2007-04-29  Bruno Haible  <bruno@clisp.org>
62428
62429         * lib/freading.c (freading): Trivial simplification.
62430
62431 2007-04-28  Bruno Haible  <bruno@clisp.org>
62432
62433         * tests/test-fwriting.c (main): Also test the interaction between
62434         fflush and fwriting.
62435         * modules/fwriting-tests (Depends-on): Add fflush.
62436
62437         * tests/test-freading.c (main): Also test the interaction between
62438         fflush and freading.
62439         * modules/freading-tests (Depends-on): Add fflush.
62440
62441 2007-04-28  Bruno Haible  <bruno@clisp.org>
62442
62443         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
62444         fseeko and ftello.
62445         Suggested by Eric Blake.
62446
62447 2007-04-28  Jim Meyering  <jim@meyering.net>
62448
62449         Avoid false-negative in gl_STDINT_H's C99 conformance test.
62450         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
62451         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
62452
62453 2007-04-27  Eric Blake  <ebb9@byu.net>
62454
62455         * doc/headers/assert.texi (assert.h): Document assert module use.
62456
62457 2007-04-27  Bruno Haible  <bruno@clisp.org>
62458
62459         * doc/headers/*.texi: New files.
62460         * doc/gnulib.texi (Header File Substitutes): New chapter.
62461         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
62462         dependencies.
62463         (standards.info ,standards.html, standards.dvi): Update dependencies.
62464         (mostlyclean, clean): New targets.
62465
62466 2007-04-27  Bruno Haible  <bruno@clisp.org>
62467
62468         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
62469         * modules/sysexits (Files, Makefile.am): Update.
62470
62471         * lib/sys_socket_.h: Renamed from lib/socket_.h.
62472         * modules/sys_socket (Files, Makefile.am): Update.
62473
62474         * lib/sys_stat_.h: Renamed from lib/stat_.h.
62475         * modules/sys_stat (Files, Makefile.am): Update.
62476
62477 2007-04-27  Eric Blake  <ebb9@byu.net>
62478
62479         * lib/freading.h: Improve comments.
62480         * lib/fwriting.h: Likewise.
62481         * lib/fflush.c: Likewise.
62482
62483         Fix closein for mingw.
62484         * modules/closein-tests: Add tests for closein.
62485         * tests/test-closein.c: New file.
62486         * tests/test-closein.sh: Likewise.
62487         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
62488         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
62489
62490 2007-04-27  Bruno Haible  <bruno@clisp.org>
62491
62492         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
62493         version is < 6.
62494         * lib/math_.h [__DECC]: Likewise.
62495         * lib/stdio_.h [__DECC]: Likewise.
62496         * lib/stdlib_.h [__DECC]: Likewise.
62497         * lib/string_.h [__DECC]: Likewise.
62498         * lib/time_.h [__DECC]: Likewise.
62499         * lib/wchar_.h [__DECC]: Likewise.
62500         * lib/wctype_.h [__DECC]: Likewise.
62501
62502 2007-04-27  Bruno Haible  <bruno@clisp.org>
62503
62504         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
62505
62506 2007-04-27  Bruno Haible  <bruno@clisp.org>
62507
62508         * lib/fflush.c: Add comments.
62509         * modules/fpurge-tests (Depends-on): Add fflush.
62510         * modules/freadable-tests (Depends-on): Likewise.
62511         * modules/fwritable-tests (Depends-on): Likewise.
62512
62513 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
62514
62515         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
62516         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
62517         Report by Bruno Haible <bruno@clisp.org>.
62518
62519 2007-04-26  Eric Blake  <ebb9@byu.net>
62520
62521         Fix fflush on mingw.
62522         * modules/fflush (Depends-on): Add freading.
62523         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
62524         but unread data.
62525
62526 2007-04-26  Eric Blake  <ebb9@byu.net>
62527         and Bruno Haible  <bruno@clisp.org>
62528
62529         Implement freading and fwriting.
62530         * lib/freading.c: New file.
62531         * lib/freading.h: Likewise.
62532         * m4/freading.m4: Likewise.
62533         * modules/freading: Likewise.
62534         * modules/freading-tests: Likewise.
62535         * tests/test-freading.c: Likewise.
62536         * lib/fwriting.c: New file.
62537         * lib/fwriting.h: Likewise.
62538         * m4/fwriting.m4: Likewise.
62539         * modules/fwriting: Likewise.
62540         * modules/fwriting-tests: Likewise.
62541         * tests/test-fwriting.c: Likewise.
62542         * MODULES.html.sh (File stream based Input/Output): Mention them.
62543
62544 2007-04-26  Bruno Haible  <bruno@clisp.org>
62545
62546         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
62547         'long' when we assume it.
62548         Suggested by Eric Blake.
62549
62550 2007-04-26  Bruno Haible  <bruno@clisp.org>
62551
62552         Ensure fseeko, ftello are declared on glibc systems.
62553         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
62554         * modules/fseeko (configure.ac-early): Likewise.
62555         * modules/ftello (configure.ac-early): Likewise.
62556         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
62557         AC_FUNC_FSEEKO for this.
62558         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
62559         (gl_CHECK_FSEEKO): Remove macro.
62560
62561 2007-04-26  Bruno Haible  <bruno@clisp.org>
62562
62563         * tests/test-fflush.c (main): Also check the ftell result after
62564         fflush and fseek/fseeko.
62565         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
62566         file descriptor position cache in the stream.
62567         * lib/fseeko.c (rpl_fseeko): Likewise.
62568
62569 2007-04-26  Bruno Haible  <bruno@clisp.org>
62570
62571         * modules/fflush-tests (Depends-on): Add fseeko.
62572
62573 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
62574             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62575
62576         * lib/argz_.h: ensure error_t definition is obtained in same
62577         mechanism system argz.h would have.
62578         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
62579         argz facilities are known bad.  Err on the side of caution if
62580         cross-compiling.
62581
62582 2007-04-25  Eric Blake  <ebb9@byu.net>
62583
62584         * lib/fpurge.c (includes): Use stdlib.h for free.
62585         * tests/test-fflush.c (main): Also test fflush-fseeko.
62586
62587 2007-04-25  Bruno Haible  <bruno@clisp.org>
62588
62589         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
62590         * lib/fseeko.c: New file.
62591         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
62592         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
62593         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
62594         gl_FUNC_FSEEKO.
62595         (gl_FUNC_FSEEKO): Invoke it.
62596         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
62597         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
62598         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
62599
62600 2007-04-25  Bruno Haible  <bruno@clisp.org>
62601
62602         * modules/fflush (Depends-on): Add ftello.
62603
62604 2007-04-25  Bruno Haible  <bruno@clisp.org>
62605
62606         * modules/ftello-tests: New file.
62607         * tests/test-ftello.c: New file.
62608
62609         * modules/ftello: New file.
62610         * m4/ftello.m4: New file.
62611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
62612         HAVE_FTELLO.
62613         * lib/stdio_.h (ftello): New declaration.
62614         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
62615         HAVE_FTELLO.
62616
62617 2007-04-25  Bruno Haible  <bruno@clisp.org>
62618
62619         * modules/fseeko-tests: New file.
62620         * tests/test-fseeko.c: New file.
62621
62622         * modules/fseeko: New file.
62623         * m4/fseeko.m4: New file.
62624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
62625         HAVE_FSEEKO.
62626         * lib/stdio_.h (fseeko): New declaration.
62627         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
62628         HAVE_FSEEKO.
62629
62630 2007-04-25  Bruno Haible  <bruno@clisp.org>
62631
62632         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
62633
62634 2007-04-25  Bruno Haible  <bruno@clisp.org>
62635
62636         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
62637         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
62638         * tests/test-unistd.c: Likewise.
62639         * tests/test-fcntl.c: Likewise.
62640
62641 2007-04-23  Eric Blake  <ebb9@byu.net>
62642
62643         * lib/fflush.c: Fix missing include.
62644         Reported by Bruno Haible.
62645
62646 2007-04-23  Bruno Haible  <bruno@clisp.org>
62647
62648         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
62649         Reported by Eric Blake.
62650
62651 2007-04-23  Bruno Haible  <bruno@clisp.org>
62652
62653         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
62654
62655 2007-04-23  Bruno Haible  <bruno@clisp.org>
62656
62657         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
62658
62659 2007-04-23  Bruno Haible  <bruno@clisp.org>
62660
62661         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
62662         Needed on HP-UX 11.
62663
62664 2007-04-16  Eric Blake  <ebb9@byu.net>
62665
62666         Make fflush rely on fpurge.
62667         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
62668         open coding all variants.
62669         * modules/fflush (Depends-on): Add fpurge and unistd.
62670         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
62671         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
62672
62673         Fix --with-tests compilation on cygwin.
62674         * modules/argmatch-tests (Makefile.am): List gnulib library first
62675         in LDADD.
62676         * modules/argp-tests (Makefile.am): Likewise.
62677         * modules/array-list-tests (Makefile.am): Likewise.
62678         * modules/array-oset-tests (Makefile.am): Likewise.
62679         * modules/avltree-list-tests (Makefile.am): Likewise.
62680         * modules/avltree-oset-tests (Makefile.am): Likewise.
62681         * modules/avltreehash-list-tests (Makefile.am): Likewise.
62682         * modules/carray-list-tests (Makefile.am): Likewise.
62683         * modules/dirname-tests (Makefile.am): Likewise.
62684         * modules/frexp-tests (Makefile.am): Likewise.
62685         * modules/isnanl-tests (Makefile.am): Likewise.
62686         * modules/linked-list-tests (Makefile.am): Likewise.
62687         * modules/linkedhash-list-tests (Makefile.am): Likewise.
62688         * modules/lock-tests (Makefile.am): Likewise.
62689         * modules/rbtree-list-tests (Makefile.am): Likewise.
62690         * modules/rbtree-oset-tests (Makefile.am): Likewise.
62691         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
62692         * modules/tls-tests (Makefile.am): Likewise.
62693         * modules/tsearch-tests (Makefile.am): Likewise.
62694         * modules/xvasprintf-tests (Makefile.am): Likewise.
62695
62696         Fix fpurge for cygwin.
62697         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
62698         value.
62699         * modules/fpurge-tests (Depends-on): Clean up trash.
62700
62701 2007-04-16  Simon Josefsson  <simon@josefsson.org>
62702
62703         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
62704
62705         * m4/autobuild.m4: Re-indent.
62706
62707 2007-04-13  Bruno Haible  <bruno@clisp.org>
62708
62709         * modules/fpurge-tests: New file.
62710         * tests/test-fpurge.c: New file.
62711
62712         * modules/fpurge: New file.
62713         * lib/fpurge.h: New file.
62714         * lib/fpurge.c: New file.
62715         * m4/fpurge.m4: New file.
62716
62717 2007-04-13  Bruno Haible  <bruno@clisp.org>
62718
62719         * modules/fbufmode-tests: New file.
62720         * tests/test-fbufmode.c: New file.
62721
62722         * modules/fbufmode: New file.
62723         * lib/fbufmode.h: New file.
62724         * lib/fbufmode.c: New file.
62725         * m4/fbufmode.m4: New file.
62726
62727 2007-04-13  Bruno Haible  <bruno@clisp.org>
62728
62729         * modules/fwritable-tests: New file.
62730         * tests/test-fwritable.c: New file.
62731
62732         * modules/fwritable: New file.
62733         * lib/fwritable.h: New file.
62734         * lib/fwritable.c: New file.
62735         * m4/fwritable.m4: New file.
62736
62737 2007-04-13  Bruno Haible  <bruno@clisp.org>
62738
62739         * modules/freadable-tests: New file.
62740         * tests/test-freadable.c: New file.
62741
62742         * modules/freadable: New file.
62743         * lib/freadable.h: New file.
62744         * lib/freadable.c: New file.
62745         * m4/freadable.m4: New file.
62746
62747 2007-04-13  Bruno Haible  <bruno@clisp.org>
62748
62749         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
62750         MOSTLYCLEANFILES.
62751
62752 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62753
62754         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
62755         gzip bootstrap.conf to avoid dragging in i18n machinery.
62756         (gnulib_tool_option): Use it.
62757
62758 2007-04-13  Bruno Haible  <bruno@clisp.org>
62759
62760         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
62761         %F directives.
62762         * tests/test-vasprintf-posix.c (test_function): Likewise.
62763         * tests/test-snprintf-posix.h (test_function): Likewise.
62764         * tests/test-sprintf-posix.h (test_function): Likewise.
62765         * tests/test-fprintf-posix.h (test_function): Likewise.
62766         * tests/test-printf-posix.h (test_function): Likewise.
62767         * tests/test-fprintf-posix.out: Likewise.
62768
62769 2007-04-13  Bruno Haible  <bruno@clisp.org>
62770
62771         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
62772         * modules/tls-tests (configure.ac): Likewise.
62773         Reported by Arto C. Nirkko <anirkko@insel.ch>.
62774
62775 2007-04-13  Bruno Haible  <bruno@clisp.org>
62776
62777         * lib/tls.c (glthread_tls_get): Fix return type.
62778         Patch by Arto C. Nirkko <anirkko@insel.ch>.
62779
62780 2007-04-12  Eric Blake  <ebb9@byu.net>
62781
62782         * modules/gettime (Depends-on): Remove gettime.
62783         Reported by Dmitry V. Levin.
62784
62785 2007-04-12  Bruno Haible  <bruno@clisp.org>
62786
62787         * modules/fflush (Include): Mention <stdio.h>.
62788         * modules/strtoimax (Include): Mention <inttypes.h>.
62789         * modules/strtoumax (Include): Likewise.
62790
62791 2007-04-12  Eric Blake  <ebb9@byu.net>
62792
62793         * .cvsignore: New file.
62794         * .gitignore: Likewise.
62795
62796 2007-04-12  Bruno Haible  <bruno@clisp.org>
62797
62798         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
62799         not before, since $(LDADD) often contains libgnu.a.
62800         * modules/striconv-tests (test_striconv_LDADD): Likewise.
62801         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
62802         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
62803         Needed on Cygwin.
62804
62805 2007-04-12  Eric Blake  <ebb9@byu.net>
62806
62807         Work around glibc's failure to flush stdin on fclose.
62808         * lib/closein.c (close_stdin): Flush stdin before closing.
62809
62810         Work around glibc's failure to reset seekable stdin on exit.
62811         * modules/closein: New module.
62812         * lib/closein.c: New file.
62813         * lib/closein.h: Likewise.
62814         * m4/closein.m4: Likewise.
62815         * MODULES.html.sh (File stream based Input/Output): Document it.
62816
62817 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62818
62819         * gnulib-tool: Rename generated 'autobuild' script to
62820         'do-autobuild' in --create-megatestdir output.
62821
62822         * doc/gnulib.texi (Build robot for gnulib): Fix.
62823
62824 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62825
62826         * modules/sysexits (Depends-on): Add absolute-header.
62827
62828 2007-04-12  Eric Blake  <ebb9@byu.net>
62829
62830         No need to preserve errno on success.
62831         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
62832         Reported by Bruno Haible.
62833
62834 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62835
62836         * MODULES.html.sh (Support for maintaining and releasing
62837         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
62838
62839 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62840
62841         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
62842
62843 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62844
62845         * modules/autobuild: New module.
62846
62847         * m4/autobuild.m4: New file.
62848
62849 2007-04-11  Bruno Haible  <bruno@clisp.org>
62850
62851         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
62852         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
62853         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
62854         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
62855         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62856         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62857         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62858         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62859         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62860         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62861         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
62862         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62863         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62864         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
62865         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62866         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62867         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
62868         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62869         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62870         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
62871         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62872         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62873         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
62874         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62875         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62876         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
62877         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62878         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62879         Reported by Eric Blake.
62880
62881 2007-04-11  Bruno Haible  <bruno@clisp.org>
62882
62883         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
62884
62885 2007-04-10  Bruno Haible  <bruno@clisp.org>
62886
62887         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
62888         for NaN and Infinity. Needed on FreeBSD 6.1.
62889         * tests/test-vasnprintf-posix.c (test_function): Undo last change
62890         regarding results for "%010a" of Infinity and NaN.
62891         * tests/test-vasprintf-posix.c (test_function): Likewise.
62892         * tests/test-snprintf-posix.h (test_function): Likewise.
62893         * tests/test-sprintf-posix.h (test_function): Likewise.
62894         * tests/test-fprintf-posix.h (test_function): Likewise.
62895         * tests/test-printf-posix.h (test_function): Likewise.
62896         * tests/test-fprintf-posix.out: Likewise.
62897
62898 2007-04-10  Bruno Haible  <bruno@clisp.org>
62899
62900         * modules/locale-tests: New file.
62901         * tests/test-locale.c: New file.
62902
62903         * modules/locale: New file.
62904         * lib/locale_.h: New file.
62905         * m4/locale_h.m4: New file.
62906
62907 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
62908             Bruno Haible  <bruno@clisp.org>
62909
62910         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
62911         be determined, test for availability of the copysignf, copysign,
62912         copysignl functions.
62913         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
62914         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
62915         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
62916
62917 2007-04-09  Eric Blake  <ebb9@byu.net>
62918
62919         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
62920         * modules/stdio (Makefile.am): Support fflush.
62921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62922         * modules/fflush: New file.
62923         * lib/fflush.c: Likewise.
62924         * m4/fflush.m4: Likewise.
62925         * modules/fflush-tests: New test.
62926         * tests/test-fflush.c: Likewise.
62927         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
62928
62929 2007-04-06  Bruno Haible  <bruno@clisp.org>
62930
62931         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
62932         (VASNPRINTF): Use signbit for faster determination whether to print a
62933         minus sign.
62934         * modules/vasnprintf (Files): Remove lib/float+.h.
62935         * modules/fprintf-posix (Depends-on): Add signbit.
62936         * modules/snprintf-posix (Depends-on): Likewise.
62937         * modules/sprintf-posix (Depends-on): Likewise.
62938         * modules/vasnprintf-posix (Depends-on): Likewise.
62939         * modules/vasprintf-posix (Depends-on): Likewise.
62940         * modules/vfprintf-posix (Depends-on): Likewise.
62941         * modules/vsnprintf-posix (Depends-on): Likewise.
62942         * modules/vsprintf-posix (Depends-on): Likewise.
62943
62944 2007-04-06  Bruno Haible  <bruno@clisp.org>
62945
62946         * tests/test-frexp.c (main): Test also the sign bit of zero results.
62947         * tests/test-frexpl.c (main): Likewise.
62948         * tests/test-ldexpl.c (main): Likewise.
62949         * modules/frexp-tests (Depends-on): Add signbit.
62950         * modules/frexpl-tests (Depdends-on): Likewise.
62951         * modules/ldexpl-tests (Depdends-on): Likewise.
62952
62953 2007-04-06  Bruno Haible  <bruno@clisp.org>
62954
62955         * modules/signbit-tests: New file.
62956         * tests/test-signbit.c: New file.
62957
62958         * modules/signbit: New file.
62959         * lib/signbitf.c: New file.
62960         * lib/signbitd.c: New file.
62961         * lib/signbitl.c: New file.
62962         * m4/signbit.m4: New file.
62963         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
62964         (signbit): New macro.
62965         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
62966         REPLACE_SIGNBIT.
62967         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
62968         REPLACE_FREXPL into math.h.
62969
62970 2007-04-06  Bruno Haible  <bruno@clisp.org>
62971
62972         * modules/isnanf-nolibm-tests: New file.
62973         * tests/test-isnanf.c: New file.
62974
62975         * modules/isnanf-nolibm: New file.
62976         * lib/isnanf.h: New file.
62977         * lib/isnanf.c: New file.
62978         * lib/isnan.c: Consider the USE_FLOAT macro.
62979         * m4/isnanf.m4: New file.
62980
62981 2007-04-06  Bruno Haible  <bruno@clisp.org>
62982
62983         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
62984         (Link): New section.
62985
62986         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
62987
62988 2007-04-06  Bruno Haible  <bruno@clisp.org>
62989
62990         Assume the 'long double' type.
62991         * m4/longdouble.m4: Remove file.
62992         * config/srclist.txt: Don't mention longdouble.m4.
62993         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
62994         * lib/float+.h: Likewise.
62995         * lib/frexp.c: Likewise.
62996         * lib/printf-args.h: Likewise.
62997         * lib/printf-args.c: Likewise.
62998         * lib/printf-frexp.c: Likewise.
62999         * lib/printf-parse.c: Likewise.
63000         * lib/vasnprintf.c: Likewise.
63001         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
63002         * m4/intl.m4: Likewise.
63003         * m4/isnanl.m4: Likewise.
63004         * m4/printf.m4: Likewise.
63005         * m4/printf-frexpl.m4: Likewise.
63006         * m4/vasnprintf.m4: Likewise.
63007         * modules/allocsa (Files): Remove m4/longdouble.m4.
63008         * modules/gettext (Files): Likewise.
63009         * modules/relocatable-prog-wrapper (Files): Likewise.
63010         * modules/vasnprintf (Files): Likewise.
63011         * modules/isnanl (Files): Likewise.
63012         (Include): Simplify.
63013         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
63014         (Include): Simplify.
63015         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
63016         (Include): Simplify.
63017         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
63018         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63019         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
63020         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63021         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63022         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63023         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
63024         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63025         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63026         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63027         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
63028         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63029         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
63030         * tests/test-isnanl.c: Likewise.
63031         * tests/test-snprintf-posix.h: Likewise.
63032         * tests/test-sprintf-posix.h: Likewise.
63033         * tests/test-vasnprintf-posix.c: Likewise.
63034         * tests/test-vasnprintf-posix2.c: Likewise.
63035         * tests/test-vasprintf-posix.c: Likewise.
63036
63037 2007-04-06  Bruno Haible  <bruno@clisp.org>
63038
63039         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
63040         * lib/math_.h [__DECC]: Include the overridden include file through
63041         #include_next, outside the double-inclusion guard.
63042         * lib/stdio_.h [__DECC]: Likewise.
63043         * lib/stdlib_.h [__DECC]: Likewise.
63044         * lib/string_.h [__DECC]: Likewise.
63045         * lib/time_.h [__DECC]: Likewise.
63046         * lib/wchar_.h [__DECC]: Likewise.
63047         * lib/wctype_.h [__DECC]: Likewise.
63048         * lib/inttypes_.h [__DECC]: Likewise.
63049         Reported by Albert Chin <china@thewrittenword.com> in
63050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
63051
63052 2007-04-04  Eric Blake  <ebb9@byu.net>
63053
63054         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
63055         1.5.x.
63056
63057 2007-04-04  Bruno Haible  <bruno@clisp.org>
63058
63059         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
63060         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
63061
63062 2007-04-04  Bruno Haible  <bruno@clisp.org>
63063
63064         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
63065         results for "%010a" of Infinity and NaN.
63066         * tests/test-vasprintf-posix.c (test_function): Likewise.
63067         * tests/test-snprintf-posix.h (test_function): Likewise.
63068         * tests/test-sprintf-posix.h (test_function): Likewise.
63069         * tests/test-fprintf-posix.h (test_function): Remove these tests.
63070         * tests/test-printf-posix.h (test_function): Likewise.
63071         * tests/test-fprintf-posix.out: Update.
63072         Needed for FreeBSD 6.1.
63073
63074 2007-04-04  Bruno Haible  <bruno@clisp.org>
63075
63076         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
63077         directly used by the gnulib modules nor by gnulib-tool.
63078
63079 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63080
63081         * DEPENDENCIES: Give overall description of version dependency
63082         desirability.  Use more-typical names for apps.
63083         Add shell, coreutils, diffutils, grep, tar, gzip.
63084
63085 2007-04-04  Simon Josefsson  <simon@josefsson.org>
63086
63087         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
63088
63089 2007-04-04  Karl Berry  <karl@gnu.org>
63090
63091         * MODULES.html.sh (func_module): missing '.
63092
63093 2007-04-03  Bruno Haible  <bruno@clisp.org>
63094
63095         * modules/argmatch-tests (Makefile.am): New variable
63096         test_argmatch_LDADD.
63097         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
63098         * modules/array-list-tests (Makefile.am): New variable
63099         test_array_list_LDADD.
63100         * modules/array-oset-tests (Makefile.am): New variable
63101         test_array_oset_LDADD.
63102         * modules/avltree-list-tests (Makefile.am): New variable
63103         test_avltree_list_LDADD.
63104         * modules/avltree-oset-tests (Makefile.am): New variable
63105         test_avltree_oset_LDADD.
63106         * modules/avltreehash-list-tests (Makefile.am): New variable
63107         test_avltreehash_list_LDADD.
63108         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
63109         test_canonicalize_lgpl_LDADD.
63110         * modules/carray-list-tests (Makefile.am): New variable
63111         test_carray_list_LDADD.
63112         * modules/dirname-tests (Makefile.am): New variable
63113         test_dirname_LDADD.
63114         * modules/linked-list-tests (Makefile.am): New variable
63115         test_linked_list_LDADD.
63116         * modules/linkedhash-list-tests (Makefile.am): New variable
63117         test_linkedhash_list_LDADD.
63118         * modules/rbtree-list-tests (Makefile.am): New variable
63119         test_rbtree_list_LDADD.
63120         * modules/rbtree-oset-tests (Makefile.am): New variable
63121         test_rbtree_oset_LDADD.
63122         * modules/rbtreehash-list-tests (Makefile.am): New variable
63123         test_rbtreehash_list_LDADD.
63124         * modules/xvasprintf-tests (Makefile.am): New variable
63125         test_xvasprintf_LDADD.
63126         Reported by Eric Blake.
63127
63128 2007-04-03  Eric Blake  <ebb9@byu.net>
63129
63130         * DEPENDENCIES: Weaken m4 requirements.
63131
63132 2007-04-03  Bruno Haible  <bruno@clisp.org>
63133
63134         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
63135         * modules/isnanl-tests (configure.ac): Likewise.
63136
63137 2007-04-03  Ben Pfaff  <blp@gnu.org>
63138
63139         * modules/iconv_open: Add $(srcdir)/ to source directory
63140         references in Makefile fragments that call gperf, to fix VPATH
63141         builds.
63142
63143 2007-04-03  Bruno Haible  <bruno@clisp.org>
63144
63145         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
63146         * lib/ldexpl.c: Undo last change.
63147
63148 2007-04-03  Bruno Haible  <bruno@clisp.org>
63149
63150         * modules/printf-frexpl (Depends-on): Undo last change.
63151         (Files): Add m4/ldexpl.m4.
63152
63153 2007-04-03  Bruno Haible  <bruno@clisp.org>
63154
63155         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
63156         * modules/isnanl (Link): New section.
63157
63158         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
63159         * modules/frexp (Link): New section.
63160
63161         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
63162         * modules/frexpl (Link): New section.
63163
63164         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
63165         * modules/ldexpl (Link): New section.
63166
63167 2007-04-03  Bruno Haible  <bruno@clisp.org>
63168
63169         * modules/TEMPLATE-EXTENDED: New file.
63170         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
63171
63172 2007-04-03  Bruno Haible  <bruno@clisp.org>
63173
63174         * DEPENDENCIES: New file.
63175         Suggested by Simon Josefsson.
63176
63177 2007-04-03  Bruno Haible  <bruno@clisp.org>
63178
63179         * doc/gnulib.texi: Escape @.
63180
63181 2007-04-03  James Youngman  <jay@gnu.org>
63182         and Paul Eggert  <eggert@cs.ucla.edu>
63183
63184         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
63185         birthtime on all systems that have birthtime, not just those which
63186         use st_birthtimensec rather than st_birthtim.  Putting zero in
63187         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
63188         that the birth time is not available for files on an NFS mount.
63189
63190 2007-04-03  Simon Josefsson  <simon@josefsson.org>
63191
63192         * modules/memxor: Move back from crypto/, suggested by Bruno.
63193         * modules/crypto/hmac-sha1: Fix memxor dependency.
63194
63195         * modules/crypto/gc: Moved from ../.
63196
63197 2007-04-02  Eric Blake  <ebb9@byu.net>
63198
63199         * lib/ldexpl.c (includes): Avoid libm.
63200
63201         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
63202
63203 2007-04-02  Bruno Haible  <bruno@clisp.org>
63204
63205         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
63206         on IRIX.
63207
63208 2007-04-02  Bruno Haible  <bruno@clisp.org>
63209
63210         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
63211         x86 or x86_64 platforms running MacOS X.
63212         Reported by Ryan Schmidt <@ryandesign.com>.
63213
63214 2007-04-02  Bruno Haible  <bruno@clisp.org>
63215
63216         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
63217         i386.
63218
63219 2007-04-01  Simon Josefsson  <simon@josefsson.org>
63220
63221         * modules/crypto/arcfour: Moved from ../.
63222         * modules/crypto/arcfour-tests: Moved from ../.
63223         * modules/crypto/arctwo: Moved from ../.
63224         * modules/crypto/arctwo-tests: Moved from ../.
63225         * modules/crypto/des: Moved from ../.
63226         * modules/crypto/des-tests: Moved from ../.
63227         * modules/crypto/gc-arcfour: Moved from ../.
63228         * modules/crypto/gc-arcfour-tests: Moved from ../.
63229         * modules/crypto/gc-arctwo: Moved from ../.
63230         * modules/crypto/gc-arctwo-tests: Moved from ../.
63231         * modules/crypto/gc-des: Moved from ../.
63232         * modules/crypto/gc-des-tests: Moved from ../.
63233         * modules/crypto/gc-hmac-md5: Moved from ../.
63234         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
63235         * modules/crypto/gc-hmac-sha1: Moved from ../.
63236         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
63237         * modules/crypto/gc-md2: Moved from ../.
63238         * modules/crypto/gc-md2-tests: Moved from ../.
63239         * modules/crypto/gc-md4: Moved from ../.
63240         * modules/crypto/gc-md4-tests: Moved from ../.
63241         * modules/crypto/gc-md5: Moved from ../.
63242         * modules/crypto/gc-md5-tests: Moved from ../.
63243         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
63244         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
63245         * modules/crypto/gc-random: Moved from ../.
63246         * modules/crypto/gc-rijndael: Moved from ../.
63247         * modules/crypto/gc-rijndael-tests: Moved from ../.
63248         * modules/crypto/gc-sha1: Moved from ../.
63249         * modules/crypto/gc-sha1-tests: Moved from ../.
63250         * modules/crypto/gc-tests: Moved from ../.
63251         * modules/crypto/hmac-md5: Moved from ../.
63252         * modules/crypto/hmac-md5-tests: Moved from ../.
63253         * modules/crypto/hmac-sha1: Moved from ../.
63254         * modules/crypto/hmac-sha1-tests: Moved from ../.
63255         * modules/crypto/md2: Moved from ../.
63256         * modules/crypto/md2-tests: Moved from ../.
63257         * modules/crypto/md4: Moved from ../.
63258         * modules/crypto/md4-tests: Moved from ../.
63259         * modules/crypto/md5: Moved from ../.
63260         * modules/crypto/md5-tests: Moved from ../.
63261         * modules/crypto/memxor: Moved from ../.
63262         * modules/crypto/rijndael: Moved from ../.
63263         * modules/crypto/rijndael-tests: Moved from ../.
63264         * modules/crypto/sha1: Moved from ../.
63265
63266 2007-03-30  James Youngman  <jay@gnu.org>
63267
63268         * tests/test-stat-time.c (prepare_test): use chmod() rather than
63269         rename() to change the ctime of a file (because ctime is unaffected
63270         by rename on jfs2 on AIX 5.1).
63271         (main): Start by doing cleanup, in case a previous run failed leaving
63272         test files behind.
63273
63274 2007-03-31  Bruno Haible  <bruno@clisp.org>
63275
63276         Support old proprietary implementations of iconv.
63277         * modules/iconv_open: New file.
63278         * lib/iconv_.h: New file.
63279         * m4/iconv_h.m4: New file.
63280         * lib/iconv_open.c: New file.
63281         * lib/iconv_open-aix.gperf: New file.
63282         * lib/iconv_open-hpux.gperf: New file.
63283         * lib/iconv_open-irix.gperf: New file.
63284         * lib/iconv_open-osf.gperf: New file.
63285         * m4/iconv_open.m4: New file.
63286         * modules/linebreak (Depends-on): Add iconv_open.
63287         * modules/striconv (Depends-on): Likewise.
63288         * modules/striconveh (Depends-on): Likewise.
63289         * modules/unicodeio (Depends-on): Likewise.
63290         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
63291         (iconv_t)(-1).
63292         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
63293         conversion if cd is (iconv_t)(-1).
63294         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
63295         is not possible.
63296
63297 2007-03-31  Bruno Haible  <bruno@clisp.org>
63298
63299         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63300         work on Solaris either. Protect also second use of "autodetect_jp".
63301
63302 2007-03-31  Bruno Haible  <bruno@clisp.org>
63303
63304         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
63305         the function is not present.
63306
63307 2007-03-31  Bruno Haible  <bruno@clisp.org>
63308
63309         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
63310         the function is not present.
63311
63312 2007-03-31  Bruno Haible  <bruno@clisp.org>
63313
63314         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
63315         a bug in HP-UX iconv_open().
63316
63317 2007-03-31  Bruno Haible  <bruno@clisp.org>
63318
63319         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
63320         (Mathematics <math.h>): New section, add fpieee.
63321         (Input/output <stdio.h>): Add fseterr.
63322         (Mathematics <math.h>): New section, add printf-frexp.
63323         (Container data structures): Add sublist.
63324         (Core language properties): Add fpucw, inline.
63325         (Functions for greatest-width integer types <inttypes.h>): Add
63326         imaxabs, imaxdiv, inttypes.
63327         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
63328         isnanl-nolibm, ldexp.
63329         (Mathematics <math.h>): New section, add printf-frexpl.
63330         (Support for systems lacking POSIX:2001): Add fprintf-posix,
63331         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
63332         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
63333         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
63334         (Unicode string functions): Add unistr/u*-mbtoucr.
63335         (Java): Add javacomp-script, javaexec-script.
63336         (C#): Add csharpcomp-script, csharpexec-script.
63337         (Support for building libraries and executables): Add havelib,
63338         relocatable-*.
63339         (Support for maintaining and releasing projects): Renamed from
63340         'Support for maintaining and release projects'. Add announce-gen.
63341
63342 2007-03-31  Bruno Haible  <bruno@clisp.org>
63343
63344         * README: Talk primarily about git.
63345         (git and CVS): Renamed from CVS.
63346         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
63347         gnulib is available through git.
63348         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
63349
63350 2007-03-30  Bruno Haible  <bruno@clisp.org>
63351
63352         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
63353         * lib/poll_.h: Likewise.
63354         * lib/stat_.h: Likewise.
63355         * lib/sys_time_.h: Likewise.
63356         * lib/sysexit_.h: Likewise.
63357         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
63358         * lib/stdbool_.h: Likewise.
63359         * lib/byteswap_.h: Add double-inclusion guard.
63360
63361 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
63362
63363         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
63364
63365 2007-03-30  Karl Berry  <karl@gnu.org>
63366
63367         * config/srclist-update: double space after USA in the license
63368         substitution, since that's how it's usually (?) written.
63369
63370 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
63371
63372         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
63373         reported by Bruno Haible.
63374
63375 2007-03-29  Bruno Haible  <bruno@clisp.org>
63376
63377         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
63378         a bug in AIX iconv().
63379
63380 2007-03-29  Bruno Haible  <bruno@clisp.org>
63381
63382         * modules/ldexpl-tests: New file.
63383         * tests/test-ldexpl.c: New file.
63384
63385 2007-03-29  Bruno Haible  <bruno@clisp.org>
63386
63387         * lib/ldexpl.c: Include fpucw.h.
63388         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
63389         multiplication.
63390         * modules/ldexpl (Depends-on): Add fpucw.
63391
63392 2007-03-29  Bruno Haible  <bruno@clisp.org>
63393
63394         * modules/ldexpl: New file.
63395         * m4/ldexpl.m4: New file.
63396         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
63397         set.
63398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
63399         REPLACE_LDEXPL.
63400         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
63401         REPLACE_LDEXPL.
63402         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63403         gl_FUNC_LDEXPL_WORKS.
63404         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
63405         * modules/mathl (Files): Remove lib/ldexpl.c.
63406         (Depends-on): Add ldexpl.
63407
63408 2007-03-29  Bruno Haible  <bruno@clisp.org>
63409
63410         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
63411
63412 2007-03-29  Bruno Haible  <bruno@clisp.org>
63413
63414         * tests/test-striconveh.c (main): Don't assume that a direct conversion
63415         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
63416         and possibly also HP-UX.
63417         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63418         work on AIX, IRIX, HP-UX, OSF/1.
63419         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63420         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63421         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63422         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63423         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
63424         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63425
63426 2007-03-29  Bruno Haible  <bruno@clisp.org>
63427
63428         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
63429
63430 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63431
63432         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
63433         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
63434
63435 2007-03-29  Eric Blake  <ebb9@byu.net>
63436
63437         * lib/acl-internal.h: Remove redundant include.
63438         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
63439         Cygwin when a file is locked.
63440
63441 2007-03-29  Bruno Haible  <bruno@clisp.org>
63442
63443         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
63444         file.
63445         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
63446
63447 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63448
63449         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
63450         try to remove a parent directory if the child couldn't be removed
63451         (except for the first rmdir, which could fail because the child
63452         doesn't exist).  Problem reported by Jeff Blaine in
63453         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
63454
63455 2007-03-28  Bruno Haible  <bruno@clisp.org>
63456
63457         * lib/striconveh.c (utf8conv_carefully): New function.
63458         (mem_cd_iconveh_internal): Invoke it.
63459
63460 2007-03-28  Bruno Haible  <bruno@clisp.org>
63461
63462         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
63463         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
63464         input.
63465         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
63466         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
63467         unistr/u8-uctomb.
63468
63469 2007-03-28  Bruno Haible  <bruno@clisp.org>
63470
63471         * modules/unistr/u8-mbtoucr: New file.
63472         * lib/unistr/u8-mbtoucr.c: New file.
63473         * modules/unistr/u16-mbtoucr: New file.
63474         * lib/unistr/u16-mbtoucr.c: New file.
63475         * modules/unistr/u16-mbtoucr: New file.
63476         * lib/unistr/u16-mbtoucr.c: New file.
63477         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
63478
63479 2007-03-27  Simon Josefsson  <simon@josefsson.org>
63480             Bruno Haible  <bruno@clisp.org>
63481
63482         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
63483         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
63484         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
63485
63486         * m4/stdio_h.m4: Add stubs for vasprintf too.
63487
63488         * modules/stdio: Support vasprintf in sed command.
63489
63490         * modules/vasprintf: Depend on stdio for prototypes.  Remove
63491         vasprintf.h.  Add stdio module indicator.
63492
63493         * lib/stdio_.h: Declare asprintf and vasprintf, based on
63494         vasprintf.h.
63495
63496         * lib/vasprintf.h: File removed.
63497
63498         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
63499         * lib/vasprintf.c: Ditto.
63500         * lib/xvasprintf.c: Ditto.
63501         * tests/test-vasprintf-posix.c: Ditto.
63502         * tests/test-vasprintf.c: Ditto.
63503
63504 2007-03-27  Bruno Haible  <bruno@clisp.org>
63505
63506         Make vasnprintf multithread-safe.
63507         * lib/vasnprintf.c (decimal_point_char): New function.
63508         (VASNPRINTF): Use it.
63509         Suggested by Simon Josefsson.
63510
63511 2007-03-27  Eric Blake  <ebb9@byu.net>
63512
63513         Support sub-second birthtime on cygwin.
63514         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
63515         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
63516         (get_stat_birthtime): Also work with st_birthtim.
63517
63518 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
63519
63520         * lib/stat-time.h (USE_BIRTHTIME): Remove.
63521         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
63522         (get_stat_birthtime_ns): Do not try to use "spare" fields.
63523         (get_stat_birthtime_ns): Simplify compile-time tests.
63524         (get_stat_birthtime): Change the API to look like
63525         get_stat_mtime etc., except return a negative tv_nsec on error.
63526         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
63527         Don't check for "spare" fields.
63528         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
63529         or for struct stat.st_birthtime, as these tests aren't used.
63530         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
63531
63532 2007-03-27  Bruno Haible  <bruno@clisp.org>
63533
63534         * lib/stat-time.h: Include <sys/stat.h>.
63535
63536 2007-03-27  James Youngman  <jay@gnu.org>
63537
63538         * lib/stat-time.h (get_stat_birthtime): New function for
63539           retrieving st_birthtime as provided by UFS2 (hence *BSD).
63540         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
63541           and its variants.
63542         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
63543         * modules/stat-time-test: New file.
63544         * tests/test-stat-time.c: New test, devised by Bruno Haible.
63545
63546 2007-03-26  Bruno Haible  <bruno@clisp.org>
63547
63548         Better support of signalling NaNs.
63549         * lib/atanl.c: Include isnanl.h.
63550         (atanl): Perform test for NaN at the beginning of the function and
63551         through a call to isnanl.
63552         * lib/cosl.c: Include isnanl.h.
63553         (cosl): Perform test for NaN at the beginning of the function and
63554         through a call to isnanl.
63555         * lib/ldexpl.c: Include isnanl.h.
63556         (ldexpl): Perform test for NaN through a call to isnanl.
63557         * lib/logl.c: Include isnanl.h.
63558         (logl): Perform test for NaN at the beginning of the function and
63559         through a call to isnanl.
63560         * lib/sinl.c: Include isnanl.h.
63561         (sinl): Perform test for NaN at the beginning of the function and
63562         through a call to isnanl.
63563         * lib/sqrtl.c: Include isnanl.h.
63564         (sqrtl): Perform test for NaN at the beginning of the function and
63565         through a call to isnanl.
63566         * lib/tanl.c: Include isnanl.h.
63567         (tanl): Perform test for NaN at the beginning of the function and
63568         through a call to isnanl.
63569         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
63570         * modules/mathl (Depends-on): Add isnanl.
63571
63572 2007-03-26  Eric Blake  <ebb9@byu.net>
63573
63574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
63575         regression in logic sense of previous patch.
63576
63577 2007-03-26  Bruno Haible  <bruno@clisp.org>
63578
63579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
63580         unportable shell command "if ! ...".
63581         Reported by Ralf Wildenhues.
63582
63583 2007-03-25  Bruno Haible  <bruno@clisp.org>
63584
63585         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
63586         <sysexits.h> file, and only add EX_CONFIG.
63587         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
63588         absolute file name and whether it is sufficient. Substitute also
63589         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
63590         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
63591         ABSOLUTE_SYSEXITS_H into sysexits.h.
63592
63593 2007-03-25  Bruno Haible  <bruno@clisp.org>
63594
63595         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
63596         hints is NULL.
63597
63598 2007-03-25  Bruno Haible  <bruno@clisp.org>
63599
63600         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
63601         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
63602
63603 2007-03-25  Bruno Haible  <bruno@clisp.org>
63604
63605         * lib/vasnprintf.c: Include langinfo.h.
63606         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
63607         multithread-safe.
63608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
63609         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
63610         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63611         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63612         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63613         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63614         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63615         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
63616         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63617         Reported by Simon Josefsson.
63618
63619 2007-03-25  Bruno Haible  <bruno@clisp.org>
63620
63621         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
63622         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
63623         * modules/vasnprintf (Depends-on): Add stdint.
63624
63625 2007-03-25  Bruno Haible  <bruno@clisp.org>
63626
63627         * modules/fpieee: New file.
63628         * m4/fpieee.m4: New file.
63629         * modules/isnan-nolibm (Depends-on): Add fpieee.
63630         * modules/isnanl-nolibm (Depends-on): Add fpieee.
63631         * modules/isnanl (Depends-on): Add fpieee.
63632
63633 2007-03-25  Bruno Haible  <bruno@clisp.org>
63634
63635         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
63636
63637 2007-03-25  Bruno Haible  <bruno@clisp.org>
63638
63639         Avoid test failures on IRIX 6.5.
63640         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
63641         (main): Use it.
63642         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
63643         macros.
63644         (main): Use them.
63645
63646 2007-03-25  Bruno Haible  <bruno@clisp.org>
63647
63648         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
63649         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
63650         exists but doesn't work.
63651         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
63652         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
63653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
63654         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
63655         math.h.
63656
63657 2007-03-25  Bruno Haible  <bruno@clisp.org>
63658
63659         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
63660         returns inf. Needed on IRIX 6.5.
63661
63662 2007-03-25  Bruno Haible  <bruno@clisp.org>
63663
63664         * tests/test-frexpl.c: Include isnanl-nolibm.h.
63665         (main): Use isnanl instead of x != x idiom.
63666         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
63667
63668         * tests/test-frexp.c: Include isnan.h.
63669         (main): Use isnan instead of x != x idiom.
63670         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
63671
63672 2007-03-25  Bruno Haible  <bruno@clisp.org>
63673
63674         * tests/test-frexp.c (NaN): New function/macro.
63675         (main): Use it instead of 0.0 / 0.0.
63676         * tests/test-isnan.c (NaN): New function/macro.
63677         (main): Use it instead of 0.0 / 0.0.
63678         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
63679         (test_function): Use it instead of 0.0 / 0.0.
63680         * tests/test-vasprintf-posix.c (NaN): New function/macro.
63681         (test_function): Use it instead of 0.0 / 0.0.
63682         * tests/test-snprintf-posix.h (NaN): New function/macro.
63683         (test_function): Use it instead of 0.0 / 0.0.
63684         * tests/test-sprintf-posix.h (NaN): New function/macro.
63685         (test_function): Use it instead of 0.0 / 0.0.
63686         * tests/test-fprintf-posix.h (NaN): New function/macro.
63687         (test_function): Use it instead of 0.0 / 0.0.
63688         * tests/test-printf-posix.h (NaN): New function/macro.
63689         (test_function): Use it instead of 0.0 / 0.0.
63690
63691         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
63692
63693 2007-03-25  Bruno Haible  <bruno@clisp.org>
63694
63695         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
63696
63697 2007-03-25  Bruno Haible  <bruno@clisp.org>
63698
63699         * lib/regexec.c (merge_state_with_log): Make static.
63700
63701 2007-03-25  Bruno Haible  <bruno@clisp.org>
63702
63703         * lib/trigl.c (kernel_rem_pio2): Make static.
63704
63705 2007-03-25  Bruno Haible  <bruno@clisp.org>
63706
63707         * lib/sincosl.c (sincosl_table): Make static.
63708
63709 2007-03-25  Bruno Haible  <bruno@clisp.org>
63710
63711         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
63712         if the compiler does not support C99.
63713
63714 2007-03-25  Bruno Haible  <bruno@clisp.org>
63715
63716         * modules/time (Makefile.am): Ensure all rule action lines start with a
63717         tab.
63718
63719 2007-03-24  Bruno Haible  <bruno@clisp.org>
63720
63721         * modules/tsearch-tests: New file.
63722         * tests/test-tsearch.sh: New file.
63723         * tests/test-tsearch.c: New file, mostly copied from glibc.
63724
63725         * modules/search-tests: New file.
63726         * tests/test-search.c: New file.
63727
63728         * modules/search: New file.
63729         * lib/search_.h: New file, incorporating lib/tsearch.h.
63730         * m4/search_h.m4: New file.
63731         * lib/tsearch.h: Remove file.
63732         * lib/tsearch.c: Include search.h instead of tsearch.h.
63733         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
63734         HAVE_TSEARCH.
63735         * modules/tsearch (Files): Remove lib/tsearch.h.
63736         (Depends-on): Add search.
63737         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
63738         (Include): Change tsearch.h into search.h.
63739
63740 2007-03-24  Bruno Haible  <bruno@clisp.org>
63741
63742         * modules/fpucw: New file.
63743         * lib/fpucw.h: New file.
63744         * lib/frexp.c: Include fpucw.h.
63745         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63746         (FUNC): Use them.
63747         * lib/printf-frexp.c: Include fpucw.h.
63748         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63749         (FUNC): Use them.
63750         * lib/vasnprintf.c: Include fpucw.h.
63751         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
63752         'long double' calculations.
63753         * tests/test-frexpl.c: Include fpucw.h.
63754         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63755         * tests/test-printf-frexpl.c: Include fpucw.h.
63756         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63757         * modules/frexpl (Depends-on): Add fpucw.
63758         * modules/printf-frexpl (Depends-on): Likewise.
63759         * modules/fprintf-posix (Depends-on): Likewise.
63760         * modules/snprintf-posix (Depends-on): Likewise.
63761         * modules/sprintf-posix (Depends-on): Likewise.
63762         * modules/vasnprintf-posix (Depends-on): Likewise.
63763         * modules/vasprintf-posix (Depends-on): Likewise.
63764         * modules/vfprintf-posix (Depends-on): Likewise.
63765         * modules/vsnprintf-posix (Depends-on): Likewise.
63766         * modules/vsprintf-posix (Depends-on): Likewise.
63767         * modules/frexpl-tests (Depends-on): Likewise.
63768         * modules/printf-frexpl-tests (Depends-on): Likewise.
63769
63770 2007-03-24  Bruno Haible  <bruno@clisp.org>
63771
63772         * lib/float+.h: New file.
63773         * lib/isnan.c: Include float+.h.
63774         (SIZE): New macro.
63775         (FUNC): Compare only SIZE bytes of the value.
63776         * lib/vasnprintf.c: Include float+.h.
63777         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
63778         SIZEOF_LDBL or SIZEOF_DBL bytes.
63779         * modules/isnan-nolibm (Files): Add lib/float+.h.
63780         * modules/isnanl-nolibm (Files): Add lib/float+.h.
63781         * modules/isnanl (Files): Add lib/float+.h.
63782         * modules/vasnprintf (Files): Add lib/float+.h.
63783
63784 2007-03-24  Bruno Haible  <bruno@clisp.org>
63785
63786         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
63787         include isnanl-nolibm.h.
63788
63789 2007-03-24  Bruno Haible  <bruno@clisp.org>
63790
63791         * tests/test-read-file.c (main): Don't produce spurious output for
63792         expected situations. Make the test fail if it encountered unexpected
63793         results.
63794
63795 2007-03-24  Bruno Haible  <bruno@clisp.org>
63796
63797         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
63798         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
63799
63800 2007-03-24  Bruno Haible  <bruno@clisp.org>
63801
63802         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
63803
63804 2007-03-24  Bruno Haible  <bruno@clisp.org>
63805
63806         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
63807         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
63808
63809         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
63810         * modules/utf8-ucs4: Turn into a symbolic link to module
63811         unistr/u8-mbtouc.
63812
63813         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
63814         utf8-ucs4-unsafe.
63815         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
63816         unistr/u8-mbtouc-unsafe.
63817
63818         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
63819         * modules/utf16-ucs4: Turn into a symbolic link to module
63820         unistr/u16-mbtouc.
63821
63822         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
63823         utf16-ucs4-unsafe.
63824         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
63825         unistr/u16-mbtouc-unsafe.
63826
63827         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
63828         * modules/ucs4-utf8: Turn into a symbolic link to module
63829         unistr/u8-ubtomb.
63830
63831         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
63832         * modules/ucs4-utf16: Turn into a symbolic link to module
63833         unistr/u16-ubtomb.
63834
63835 2007-03-24  Bruno Haible  <bruno@clisp.org>
63836
63837         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
63838         Enable the function only if HAVE_INLINE.
63839         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
63840         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63841         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
63842         Enable the function only if HAVE_INLINE.
63843         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
63844         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63845         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
63846         Enable the function only if HAVE_INLINE.
63847         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
63848         Enable the function only if HAVE_INLINE.
63849         * modules/utf8-ucs4: Update.
63850         * modules/utf8-ucs4-unsafe: Update.
63851         * modules/utf16-ucs4: Update.
63852         * modules/utf16-ucs4-unsafe: Update.
63853         * modules/ucs4-utf8: Update.
63854         * modules/ucs4-utf16: Update.
63855
63856 2007-03-24  Bruno Haible  <bruno@clisp.org>
63857
63858         * lib/utf8-ucs4.h: Remove file.
63859         * lib/utf8-ucs4-unsafe.h: Remove file.
63860         * lib/utf16-ucs4.h: Remove file.
63861         * lib/utf16-ucs4-unsafe.h: Remove file.
63862         * lib/ucs4-utf8.h: Remove file.
63863         * lib/ucs4-utf16.h: Remove file.
63864         * lib/unistr.h: Include their previous contents.
63865         * m4/utf-ucs4.m4: Remove file.
63866         * m4/ucs4-utf.m4: Remove file.
63867         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
63868         (Depends-on): Add unistr/base.
63869         (configure.ac): Remove gl_UTF_UCS4.
63870         (Makefile.am): Update.
63871         (Include): Change to unistr.h.
63872         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
63873         (Depends-on): Add unistr/base.
63874         (configure.ac): Remove gl_UTF_UCS4.
63875         (Makefile.am): Update.
63876         (Include): Change to unistr.h.
63877         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
63878         (Depends-on): Add unistr/base.
63879         (configure.ac): Remove gl_UTF_UCS4.
63880         (Makefile.am): Update.
63881         (Include): Change to unistr.h.
63882         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
63883         (Depends-on): Add unistr/base.
63884         (configure.ac): Remove gl_UTF_UCS4.
63885         (Makefile.am): Update.
63886         (Include): Change to unistr.h.
63887         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
63888         (Depends-on): Add unistr/base.
63889         (configure.ac): Remove gl_UCS4_UTF.
63890         (Makefile.am): Update.
63891         (Include): Change to unistr.h.
63892         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
63893         (Depends-on): Add unistr/base.
63894         (configure.ac): Remove gl_UCS4_UTF.
63895         (Makefile.am): Update.
63896         (Include): Change to unistr.h.
63897         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
63898         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
63899         utf8-ucs4-unsafe.h.
63900         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
63901         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
63902         utf16-ucs4-unsafe.h.
63903         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
63904         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
63905         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
63906         * lib/unistr/u8-strchr.c: Likewise.
63907         * lib/unistr/u8-strrchr.c: Likewise.
63908         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
63909         * lib/unistr/u16-strchr.c: Likewise.
63910         * lib/unistr/u16-strrchr.c: Likewise.
63911         * lib/striconveh.c: Update.
63912         * lib/linebreak.c: Update.
63913
63914 2007-03-24  Bruno Haible  <bruno@clisp.org>
63915
63916         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
63917         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
63918
63919 2007-03-22  Bruno Haible  <bruno@clisp.org>
63920
63921         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
63922
63923 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63924
63925         * MODULES.html.sh (File system functions): New module write-any-file.
63926         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
63927         * m4/write-any-file.m4: New files.
63928
63929 2007-03-23  Eric Blake  <ebb9@byu.net>
63930
63931         * gnulib-tool: Rearrange space-tab sequences, since some editors
63932         like to eat them.
63933
63934 2007-03-23  Eric Blake  <ebb9@byu.net>
63935
63936         * lib/version-etc.c (version_etc_va): Update license wording to
63937         be more concise.  Recommended by Richard Stallman.
63938
63939 2007-03-22  Bruno Haible  <bruno@clisp.org>
63940
63941         * lib/poll.c (MSG_PEEK): New fallback definition.
63942
63943 2007-03-22  Bruno Haible  <bruno@clisp.org>
63944
63945         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
63946         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
63947         (main): Update.
63948         Fixes a compilation error on BeOS.
63949
63950 2007-03-22  Bruno Haible  <bruno@clisp.org>
63951
63952         * modules/frexpl-tests: New file.
63953         * tests/test-frexpl.c: New file.
63954
63955         * modules/frexpl: New file.
63956         * m4/frexpl.m4: New file.
63957         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
63958         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
63959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
63960         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
63961         (Depends-on): Add frexpl. Remove isnanl-nolibm.
63962         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
63963
63964 2007-03-22  Bruno Haible  <bruno@clisp.org>
63965
63966         * lib/frexpl.c: Share code with lib/frexp.c.
63967         * modules/mathl (Files): Add lib/frexp.c.
63968         (Depends-on): Add isnanl-nolibm.
63969
63970 2007-03-22  Bruno Haible  <bruno@clisp.org>
63971
63972         * modules/printf-frexp (Files): Add m4/frexp.m4.
63973         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
63974         only if the found frexp function actually works.
63975
63976 2007-03-22  Bruno Haible  <bruno@clisp.org>
63977
63978         * lib/frexp.c: Remove older implementation that uses divisions.
63979
63980 2007-03-21  Bruno Haible  <bruno@clisp.org>
63981
63982         * modules/frexp-tests: New file.
63983         * tests/test-frexp.c: New file.
63984
63985         * modules/frexp: New file.
63986         * lib/frexp.c: New file.
63987         * m4/frexp.m4: New file.
63988         * lib/math_.h (frexp): New declaration.
63989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
63990         REPLACE_FREXP.
63991         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
63992
63993 2007-03-21  Bruno Haible  <bruno@clisp.org>
63994
63995         * modules/isnanl-tests: New file.
63996         * tests/test-isnanl.c: New file.
63997
63998         * modules/isnanl: New file.
63999         * lib/isnanl.h: New file.
64000         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
64001         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
64002         gl_FUNC_ISNANL_WORKS.
64003         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
64004         New macros.
64005
64006 2007-03-21  Bruno Haible  <bruno@clisp.org>
64007
64008         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
64009         lib/isnanl.h.
64010         (Include): Update.
64011         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
64012         * lib/vasnprintf.c: Update.
64013         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
64014         tests/test-isnanl.h, remove tests/test-isnanl.c.
64015         (Makefile.am): Update.
64016         * tests/test-isnanl-nolibm.c: New file.
64017         * tests/test-isnanl.h: New file.
64018         * tests/test-isnanl.c: Remove file.
64019
64020 2007-03-21  Jim Meyering  <jim@meyering.net>
64021
64022         When trying to open ".", treat ESTALE like EACCES.
64023         * lib/savewd.c (savewd_save): Resort to forking not just upon
64024         failure with EACCES, but also when errno is ESTALE.
64025
64026 2007-03-20  Bruno Haible  <bruno@clisp.org>
64027
64028         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
64029         Needed on AIX 5.1. Reported by Matthew Woehlke.
64030
64031 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64032
64033         Suggestions by Bruno Haible:
64034         * lib/acl-internal.h: Include "gettext.h" rather than rolling
64035         our own.
64036         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
64037         * modules/acl (Depends-on): Add gettext.
64038
64039 2007-03-19  Bruno Haible  <bruno@clisp.org>
64040
64041         * modules/iconvme: Remove file.
64042         * lib/iconvme.h: Remove file.
64043         * lib/iconvme.c: Remove file.
64044         * m4/iconvme.m4: Remove file.
64045
64046 2007-03-19  Bruno Haible  <bruno@clisp.org>
64047
64048         * doc/relocatable-maint.texi: Break long shell script line.
64049         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64050
64051 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64052
64053         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
64054         handle file_has_acl.
64055         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
64056         * lib/acl.c: Move header inclusions and related macro defns into
64057         lib/acl-internal.h.
64058         (S_ISLNK): Remove defn, since that's now done for us.
64059         (file_has_acl): Move to lib/file-has-acl.c.
64060         Call acl_trivial if available.  This is the crucial part of the fix.
64061         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
64062         shared within the library.  Rewrite a bit, partly to make it compatible
64063         with the GNU coding style.
64064         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
64065         Remove unnecessary double-quotes.
64066         Don't test for acl_to_text; the build will catch that.
64067         Replace acl_entries if it doesn't exist and it is needed.
64068         Check for -lsec and acl_trivial (as used on Solaris 10).
64069         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
64070         lib/file-has-acl.c.
64071         (Depends-on): Add sys_stat, for S_ISLNK.
64072
64073 2007-03-19  Ben Pfaff  <blp@gnu.org>
64074
64075         * doc/gnulib.texi: Fix typos.
64076         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64077
64078 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64079
64080         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
64081         If size is zero here, buf must be zero.
64082
64083 2007-03-19  Simon Josefsson  <simon@josefsson.org>
64084
64085         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
64086         <bruno@clisp.org>.
64087
64088 2007-03-18  Bruno Haible  <bruno@clisp.org>
64089
64090         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
64091         Suggested by Eric Blake.
64092
64093 2007-03-18  Ben Pfaff  <blp@gnu.org>
64094
64095         * doc/relocatable.texi: Recommend using as prefix a directory
64096         that does not exist and will never be created.  Based on
64097         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
64098         and others.
64099
64100 2007-03-17  Bruno Haible  <bruno@clisp.org>
64101
64102         * lib/fchownat.c: Include lchown.h.
64103
64104 2007-03-17  Bruno Haible  <bruno@clisp.org>
64105
64106         Fix endless loop when the given allocated size was > INT_MAX.
64107         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
64108         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
64109         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
64110         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
64111         * lib/sprintf.c (sprintf): Likewise.
64112
64113 2007-03-17  Bruno Haible  <bruno@clisp.org>
64114
64115         * tests/test-argp-2.sh (func_compare): Output a context diff.
64116
64117 2007-03-17  Bruno Haible  <bruno@clisp.org>
64118
64119         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
64120         locale's decimal-point character.
64121
64122 2007-03-17  Bruno Haible  <bruno@clisp.org>
64123
64124         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
64125         before comparing it. Needed because on some platforms (e.g. x86) a
64126         'long double' occupies less bytes than sizeof (long double).
64127
64128 2007-03-17  Bruno Haible  <bruno@clisp.org>
64129
64130         * tests/test-crc.c (main): Make printf statements 64-bit clean.
64131         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
64132         * tests/test-getaddrinfo.c (simple): Likewise.
64133         * tests/test-read-file.c (main): Likewise.
64134
64135 2007-03-17  Bruno Haible  <bruno@clisp.org>
64136
64137         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
64138
64139 2007-03-17  Bruno Haible  <bruno@clisp.org>
64140
64141         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
64142         unused variable.
64143
64144 2007-03-17  Bruno Haible  <bruno@clisp.org>
64145
64146         * tests/test-c-strcasecmp.c: Include c-strcase.h.
64147         * tests/test-c-strncasecmp.c: Likewise.
64148
64149 2007-03-17  Bruno Haible  <bruno@clisp.org>
64150
64151         * modules/stdlib (Depends-on): Add unistd.
64152         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
64153         Needed for MacOS X 10.3.
64154
64155 2007-03-17  Bruno Haible  <bruno@clisp.org>
64156
64157         * lib/unistr/u-strdup.h: Include <stdlib.h>.
64158
64159 2007-03-17  Bruno Haible  <bruno@clisp.org>
64160
64161         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
64162
64163 2007-03-17  Bruno Haible  <bruno@clisp.org>
64164
64165         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
64166         to reflect files copied from gnulib (with or without modifications).
64167         Suggested by Jim Meyering.
64168
64169 2007-03-17  Eric Blake  <ebb9@byu.net>
64170
64171         * NEWS: Document stdlib change from 2007-02-18.
64172
64173 2007-03-17  Jim Meyering  <jim@meyering.net>
64174
64175         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
64176         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
64177         someone uses a name containing shell meta-characters.
64178         Reported by Alfred M. Szmidt.
64179
64180         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
64181
64182 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64183
64184         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
64185         and copy gettext configuration files only if configure.ac contains
64186         a use of AM_GNU_GETTEXT_VERSION.
64187
64188 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64189
64190         * build-aux/bootstrap (gnulib_name): New variable.
64191         (gnulib_tool_options): Use it.
64192
64193 2007-03-13  Simon Josefsson  <simon@josefsson.org>
64194
64195         * tests/test-des.c: Use new namespace.
64196
64197 2007-03-15  Bruno Haible  <bruno@clisp.org>
64198
64199         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
64200         Reported by James Youngman <jay@gnu.org>.
64201
64202 2007-03-15  Bruno Haible  <bruno@clisp.org>
64203
64204         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
64205         declared prototype. Needed with cc on OSF/1 5.1.
64206
64207 2007-03-15  Bruno Haible  <bruno@clisp.org>
64208
64209         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
64210         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
64211         (struct gl_list_implementation): Add dispose_fn argument to the
64212         'create_empty', 'create' methods.
64213         (struct gl_list_impl_base): Add field 'dispose_fn'.
64214         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
64215         argument.
64216         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
64217         dispose_fn argument.
64218         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
64219         dispose_fn on the dropped values.
64220         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
64221         dispose_fn argument.
64222         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
64223         dropped values.
64224         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
64225         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64226         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
64227         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64228         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
64229         argument.
64230         (gl_tree_list_free): Call dispose_fn on the dropped values.
64231         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
64232         the dropped values.
64233         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64234         Add dispose_fn argument.
64235         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
64236         Call dispose_fn on the dropped values.
64237         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
64238         Add dispose_fn argument.
64239         (gl_sublist_create): Initialize the 'dispose_fn' field.
64240         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
64241         * tests/test-array_list.c (main): Update.
64242         * tests/test-carray_list.c (main): Update.
64243         * tests/test-avltree_list.c (main): Update.
64244         * tests/test-rbtree_list.c (main): Update.
64245         * tests/test-avltreehash_list.c (main): Update.
64246         * tests/test-rbtreehash_list.c (main): Update.
64247         * tests/test-linked_list.c (main): Update.
64248         * tests/test-linkedhash_list.c (main): Update.
64249         * tests/test-array_oset.c (main): Update.
64250
64251 2007-03-15  Bruno Haible  <bruno@clisp.org>
64252
64253         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
64254         (gl_oset_create_empty): Add dispose_fn argument.
64255         (struct gl_oset_implementation): Add dispose_fn argument to
64256         'create_empty' method.
64257         (struct gl_oset_impl_base): Add dispose_fn field.
64258         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
64259         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
64260         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
64261         values.
64262         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
64263         (gl_tree_oset_free): Call dispose_fn on the dropped values.
64264         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64265         dropped value.
64266         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64267         dropped value.
64268         * tests/test-array_oset.c (main): Update.
64269         * tests/test-avltree_oset.c (main): Update.
64270         * tests/test-rbtree_oset.c (main): Update.
64271         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
64272
64273 2007-03-13  Bruno Haible  <bruno@clisp.org>
64274
64275         * tests/test-stdbool.c (i): Update after last patch.
64276
64277 2007-03-12  Bruno Haible  <bruno@clisp.org>
64278
64279         * lib/quotearg.c: Include <wctype.h> early, before the definition of
64280         the iswprint macro. Needed on Solaris 2.5.1.
64281
64282 2007-03-12  Bruno Haible  <bruno@clisp.org>
64283
64284         * tests/test-printf-frexp.c (main): Declare x as volatile.
64285
64286 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64287
64288         * doc/gnulib.texi (Build robot for gnulib): New section.
64289
64290 2007-03-12  Jim Meyering  <jim@meyering.net>
64291
64292         * build-aux/bootstrap: New file.
64293         * build-aux/bootstrap.conf: New file, from coreutils.
64294
64295 2007-03-11  Bruno Haible  <bruno@clisp.org>
64296
64297         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
64298
64299 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64300
64301         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
64302         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
64303         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
64304
64305 2007-03-11  Bruno Haible  <bruno@clisp.org>
64306
64307         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
64308         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
64309
64310 2007-03-11  Bruno Haible  <bruno@clisp.org>
64311
64312         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
64313         formula. Needed for SunPRO C 5.0.
64314
64315 2007-03-11  Bruno Haible  <bruno@clisp.org>
64316
64317         * modules/long-options (Depends-on): Add getopt.
64318
64319 2007-03-11  Bruno Haible  <bruno@clisp.org>
64320
64321         * modules/modechange (Depends-on): Add stdbool.
64322
64323 2007-03-11  Bruno Haible  <bruno@clisp.org>
64324
64325         * modules/i-ring (Depends-on): Add stdbool.
64326
64327 2007-03-11  Bruno Haible  <bruno@clisp.org>
64328
64329         * modules/gc-des (Depends-on): Add stdbool.
64330
64331 2007-03-11  Bruno Haible  <bruno@clisp.org>
64332
64333         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
64334
64335 2007-03-11  Bruno Haible  <bruno@clisp.org>
64336
64337         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
64338
64339 2007-03-11  Bruno Haible  <bruno@clisp.org>
64340
64341         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
64342
64343 2007-03-11  Bruno Haible  <bruno@clisp.org>
64344
64345         * lib/vasnprintf.c (sprintf): Undefine.
64346
64347 2007-03-11  Bruno Haible  <bruno@clisp.org>
64348
64349         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
64350         initializers in SunPRO C and Compaq C compilers.
64351
64352 2007-03-11  Bruno Haible  <bruno@clisp.org>
64353
64354         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
64355         decrementing code ANSI C compliant.
64356
64357 2007-03-11  Bruno Haible  <bruno@clisp.org>
64358
64359         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
64360         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
64361
64362 2007-03-11  Bruno Haible  <bruno@clisp.org>
64363
64364         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
64365         <stdbool.h> substitute doesn't pass.
64366
64367 2007-03-11  Bruno Haible  <bruno@clisp.org>
64368
64369         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
64370
64371 2007-03-11  Bruno Haible  <bruno@clisp.org>
64372
64373         * gnulib-tool (func_create_megatestdir): Create also an autobuild
64374         script, for submission to autobuild.josefsson.org.
64375
64376 2007-03-10  Bruno Haible  <bruno@clisp.org>
64377
64378         * modules/canonicalize-lgpl-tests: New file.
64379         * tests/test-canonicalize-lgpl.sh: New file.
64380         * tests/test-canonicalize-lgpl.c: New file.
64381
64382         * modules/c-strcase-tests: New file.
64383         * tests/test-c-strcase.sh: New file.
64384         * tests/test-c-strcasecmp.c: New file.
64385         * tests/test-c-strncasecmp.c: New file.
64386
64387         * modules/atexit-tests: New file.
64388         * tests/test-atexit.sh: New file.
64389         * tests/test-atexit.c: New file.
64390
64391 2007-03-10  Bruno Haible  <bruno@clisp.org>
64392
64393         * tests/test-binary-io.sh: Use temporary filenames that are not so
64394         likely to clash with those of other tests (in a parallel make).
64395         * tests/test-binary-io.c: Likewise.
64396
64397 2007-03-10  Bruno Haible  <bruno@clisp.org>
64398
64399         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
64400         fallback; use #error instead.
64401         Suggested by Simon Josefsson.
64402
64403 2007-03-10  Bruno Haible  <bruno@clisp.org>
64404
64405         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
64406         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
64407         first and the last.
64408
64409 2007-03-10  Bruno Haible  <bruno@clisp.org>
64410
64411         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
64412
64413 2007-03-10  Bruno Haible  <bruno@clisp.org>
64414
64415         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
64416         "make distcheck".
64417         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
64418         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
64419         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
64420
64421 2007-03-10  Bruno Haible  <bruno@clisp.org>
64422
64423         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
64424         variable.
64425         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
64426         variable.
64427
64428 2007-03-09  Eric Blake  <ebb9@byu.net>
64429         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
64430
64431         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
64432         types are not being provided by gnulib.
64433         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
64434         types are supported.
64435
64436 2007-03-10  Bruno Haible  <bruno@clisp.org>
64437
64438         * lib/stdio_.h (__attribute__): New macro.
64439         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
64440         vsprintf): Specify __attribute__ __format__ for GCC.
64441         Suggested by Eric Blake.
64442
64443 2007-03-09  Bruno Haible  <bruno@clisp.org>
64444
64445         * modules/printf-posix-tests: New file.
64446         * tests/test-printf-posix.sh: New file.
64447         * tests/test-printf-posix.c: New file.
64448
64449         * modules/printf-posix: New file.
64450         * lib/printf.c: New file.
64451         * m4/printf-posix-rpl.m4: New file.
64452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
64453         REPLACE_PRINTF.
64454         * lib/stdio_.h (printf): New declaration.
64455         (format, __format__, ____printf____, ____scanf____, ____strftime____,
64456         ____strfmon____): New macros.
64457         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
64458         REPLACE_PRINTF.
64459
64460 2007-03-09  Bruno Haible  <bruno@clisp.org>
64461
64462         * tests/test-vasnprintf-posix2.sh: New file.
64463         * tests/test-vasnprintf-posix2.c: New file.
64464         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
64465         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64466         (Makefile.am): Activate test-vasnprintf-posix2.sh.
64467
64468         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
64469         a locale dependent decimal point, rather than always '.'.
64470
64471 2007-03-09  Eric Blake  <ebb9@byu.net>
64472
64473         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
64474         spite of platforms like Tandem/NSK that define it to -1.
64475
64476 2007-03-08  Bruno Haible  <bruno@clisp.org>
64477
64478         * modules/vprintf-posix-tests: New file.
64479         * tests/test-vprintf-posix.sh: New file.
64480         * tests/test-vprintf-posix.c: New file.
64481         * tests/test-printf-posix.h: New file.
64482
64483         * modules/vprintf-posix: New file.
64484         * lib/vprintf.c: New file.
64485         * m4/vprintf-posix.m4: New file.
64486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
64487         REPLACE_VPRINTF.
64488         * lib/stdio_.h (vprintf): New declaration.
64489         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
64490         REPLACE_VPRINTF.
64491
64492 2007-03-08  Bruno Haible  <bruno@clisp.org>
64493
64494         * modules/fprintf-posix-tests: New file.
64495         * tests/test-fprintf-posix.sh: New file.
64496         * tests/test-fprintf-posix.c: New file.
64497
64498         * modules/fprintf-posix: New file.
64499         * lib/fprintf.c: New file.
64500         * m4/fprintf-posix.m4: New file.
64501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
64502         REPLACE_FPRINTF.
64503         * lib/stdio_.h (fprintf): New declaration.
64504         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
64505         REPLACE_FPRINTF.
64506
64507 2007-03-08  Bruno Haible  <bruno@clisp.org>
64508
64509         * modules/vfprintf-posix-tests: New file.
64510         * tests/test-vfprintf-posix.sh: New file.
64511         * tests/test-vfprintf-posix.c: New file.
64512         * tests/test-fprintf-posix.h: New file.
64513         * tests/test-fprintf-posix.out: New file.
64514
64515         * modules/vfprintf-posix: New file.
64516         * lib/vfprintf.c: New file.
64517         * m4/vfprintf-posix.m4: New file.
64518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
64519         REPLACE_VFPRINTF.
64520         * lib/stdio_.h (vfprintf): New declaration.
64521         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
64522         REPLACE_VFPRINTF.
64523
64524 2007-03-08  Bruno Haible  <bruno@clisp.org>
64525
64526         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
64527
64528 2007-03-08  Bruno Haible  <bruno@clisp.org>
64529
64530         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
64531         instead of 'expr' invocations.
64532         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64533         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64534         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64535         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64536         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64537         Suggested by Paul Eggert.
64538
64539 2007-03-08  Bruno Haible  <bruno@clisp.org>
64540
64541         * modules/fseterr-tests: New file.
64542         * tests/test-fseterr.c: New file.
64543
64544         * modules/fseterr: New file.
64545         * lib/fseterr.h: New file.
64546         * lib/fseterr.c: New file.
64547
64548 2007-03-08  Bruno Haible  <bruno@clisp.org>
64549
64550         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
64551         * lib/getopt_.h: Likewise.
64552         * lib/mbswidth.h: Likewise.
64553         * lib/setenv.h: Likewise.
64554         * lib/vasnprintf.h: Likewise.
64555         * lib/vasprintf.h: Likewise.
64556         * lib/verror.h: Likewise.
64557         * lib/xsetenv.h: Likewise.
64558         * lib/xvasprintf.h: Likewise.
64559
64560 2007-03-08  Jim Meyering  <jim@meyering.net>
64561
64562         * users.txt: Add parted.
64563
64564         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
64565
64566 2007-03-07  Bruno Haible  <bruno@clisp.org>
64567
64568         * m4/printf.m4: Make the shell script snippets copy&pastable.
64569
64570 2007-03-02  Bruno Haible  <bruno@clisp.org>
64571
64572         * lib/netinet_in_.h: New file.
64573         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
64574         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
64575         * modules/netinet_in (Files): Add lib/netinet_in_.h.
64576         (Depends-on): Add absolute-header.
64577         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
64578         into netinet/in.h.
64579
64580 2007-03-03  Bruno Haible  <bruno@clisp.org>
64581
64582         * lib/sys_select_.h: New file.
64583         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
64584         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
64585         * modules/sys_select (Files): Add lib/sys_select_.h.
64586         (Depends-on): Add absolute-header.
64587         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
64588         into sys/select.h.
64589
64590 2007-03-02  Bruno Haible  <bruno@clisp.org>
64591
64592         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
64593         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
64594         values.
64595         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
64596         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
64597         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
64598         * modules/sys_socket (Depends-on): Add absolute-header.
64599         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
64600         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
64601         (Include): Remove requirement of inclusion of <sys/types.h>.
64602
64603 2007-03-02  Bruno Haible  <bruno@clisp.org>
64604
64605         * lib/byteswap_.h (bswap_32): Fix formula.
64606
64607 2007-03-06  Bruno Haible  <bruno@clisp.org>
64608
64609         * modules/sprintf-posix-tests: New file.
64610         * tests/test-sprintf-posix.c: New file.
64611
64612         * modules/sprintf-posix: New file.
64613         * lib/sprintf.c: New file.
64614         * m4/sprintf-posix.m4: New file.
64615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
64616         REPLACE_SPRINTF.
64617         * lib/stdio_.h (sprintf): New declaration.
64618         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
64619         REPLACE_SPRINTF.
64620
64621 2007-03-06  Bruno Haible  <bruno@clisp.org>
64622
64623         * modules/vsprintf-posix-tests: New file.
64624         * tests/test-vsprintf-posix.c: New file.
64625         * tests/test-sprintf-posix.h: New file.
64626
64627         * modules/vsprintf-posix: New file.
64628         * lib/vsprintf.c: New file.
64629         * m4/vsprintf-posix.m4: New file.
64630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
64631         REPLACE_VSPRINTF.
64632         * lib/stdio_.h (vsprintf): New declaration.
64633         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
64634         REPLACE_VSPRINTF.
64635
64636 2007-03-06  Bruno Haible  <bruno@clisp.org>
64637
64638         * modules/vsnprintf (Depend-on): Remove minmax.
64639
64640 2007-03-06  Bruno Haible  <bruno@clisp.org>
64641
64642         * modules/snprintf-posix-tests: New file.
64643         * tests/test-snprintf-posix.c: New file.
64644
64645         * modules/snprintf-posix: New file.
64646         * m4/snprintf-posix.m4: New file.
64647         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
64648         gl_FUNC_SNPRINTF.
64649         (gl_FUNC_SNPRINTF): Invoke it.
64650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
64651         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
64652         is set.
64653         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
64654
64655 2007-03-06  Bruno Haible  <bruno@clisp.org>
64656
64657         * modules/vsnprintf-posix-tests: New file.
64658         * tests/test-vsnprintf-posix.c: New file.
64659         * tests/test-snprintf-posix.h: New file.
64660
64661         * modules/vsnprintf-posix: New file.
64662         * m4/vsnprintf-posix.m4: New file.
64663         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
64664         gl_FUNC_VSNPRINTF.
64665         (gl_FUNC_VSNPRINTF): Invoke it.
64666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
64667         * lib/stdio_.h (vsnprintf): Define as a replacement if
64668         REPLACE_VSNPRINTF is set.
64669         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
64670
64671 2007-03-06  Bruno Haible  <bruno@clisp.org>
64672
64673         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
64674         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
64675
64676 2007-03-06  Bruno Haible  <bruno@clisp.org>
64677
64678         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
64679         (asinl): Declare also if HAVE_DECL_ASINL is set.
64680         (atanl): Declare also if HAVE_DECL_ATANL is set.
64681         (ceill): Declare also if HAVE_DECL_CEILL is set.
64682         (cosl): Declare also if HAVE_DECL_COSL is set.
64683         (expl): Declare also if HAVE_DECL_EXPL is set.
64684         (floorl): Declare also if HAVE_DECL_FLOORL is set.
64685         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
64686         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
64687         (logl): Declare also if HAVE_DECL_LOGL is set.
64688         (sinl): Declare also if HAVE_DECL_SINL is set.
64689         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
64690         (tanl): Declare also if HAVE_DECL_TANL is set.
64691         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
64692         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
64693         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
64694         declaration of frexpl, ldexpl.
64695         * modules/printf-frexpl (Depends-on): Add math.
64696         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
64697
64698 2007-03-05  Bruno Haible  <bruno@clisp.org>
64699
64700         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
64701         frexpl and ldexpl are declared.
64702         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
64703
64704 2007-03-05  Bruno Haible  <bruno@clisp.org>
64705
64706         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
64707         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
64708
64709 2007-03-05  Bruno Haible  <bruno@clisp.org>
64710
64711         * lib/stdio_.h: Include <stddef.h>.
64712
64713 2007-03-05  Bruno Haible  <bruno@clisp.org>
64714
64715         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
64716
64717 2007-03-05  Bruno Haible  <bruno@clisp.org>
64718
64719         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
64720         NetBSD 4, from Ralf Wildenhues.
64721
64722 2007-03-04  Bruno Haible  <bruno@clisp.org>
64723
64724         * lib/vasprintf.h: Update #if logic for the case when the functions
64725         exist but are overridden.
64726
64727 2007-03-04  Bruno Haible  <bruno@clisp.org>
64728
64729         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
64730         implementations: glibc-2.4 and MacOS X 10.3.
64731         * tests/test-vasnprintf-posix.c (test_function): Test also the case
64732         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
64733         * tests/test-vasprintf-posix.c (test_function): Likewise.
64734
64735 2007-03-04  Bruno Haible  <bruno@clisp.org>
64736
64737         * modules/vasprintf-posix-tests: New file.
64738         * tests/test-vasprintf-posix.c: New file.
64739
64740         * modules/vasprintf-posix: New file.
64741         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
64742         defined.
64743         * m4/vasprintf-posix.m4: New file.
64744         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
64745         gl_FUNC_VASPRINTF.
64746         (gl_FUNC_VASPRINTF): Invoke it.
64747         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
64748         here.
64749         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
64750
64751 2007-03-04  Bruno Haible  <bruno@clisp.org>
64752
64753         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
64754         REPLACE_GETTIMEOFDAY.
64755         * modules/sys_time (Makefile.am): Likewise.
64756         * m4/sys_time_h.m4: Likewise.
64757         * m4/gettimeofday.m4: Likewise.
64758
64759 2007-03-04  Bruno Haible  <bruno@clisp.org>
64760
64761         * modules/vasnprintf-posix-tests: New file.
64762         * tests/test-vasnprintf-posix.c: New file.
64763
64764         * modules/vasnprintf-posix: New file.
64765         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
64766         printf-frexpl.h.
64767         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
64768         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
64769         REPLACE_VASNPRINTF is defined.
64770         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
64771         gl_FUNC_VASNPRINTF.
64772         (gl_FUNC_VASNPRINTF): Invoke it.
64773         * m4/vasnprintf-posix.m4: New file.
64774         * m4/printf.m4: New file.
64775
64776 2007-03-04  Bruno Haible  <bruno@clisp.org>
64777
64778         Compile progreloc.c only if --enable-relocatable is specified.
64779         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
64780         if --enable-relocatable was specified.
64781         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
64782         lib_SOURCES.
64783
64784 2007-03-04  Jim Meyering  <jim@meyering.net>
64785
64786         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
64787         Use it consistently, rather than enumerating errno constants.
64788
64789 2007-03-04  Bruno Haible  <bruno@clisp.org>
64790
64791         * modules/xvasprintf-tests: New file.
64792         * tests/test-xvasprintf.c: New file.
64793
64794         * modules/vasprintf-tests: New file.
64795         * tests/test-vasprintf.c: New file.
64796
64797         * modules/vasnprintf-tests: New file.
64798         * tests/test-vasnprintf.c: New file.
64799
64800         * modules/vsnprintf-tests: New file.
64801         * tests/test-vsnprintf.c: New file.
64802
64803         * modules/snprintf-tests: New file.
64804         * tests/test-snprintf.c: New file.
64805
64806 2007-03-04  Bruno Haible  <bruno@clisp.org>
64807
64808         Compile relocatable.c only if --enable-relocatable is specified.
64809         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
64810         gl_RELOCATABLE_LIBRARY.
64811         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
64812         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
64813         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
64814         gl_RELOCATABLE_LIBRARY.
64815         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
64816         (Makefile.am): Remove lib_SOURCES.
64817         * modules/relocatable-lib-lgpl (configure.ac): Invoke
64818         gl_RELOCATABLE_LIBRARY.
64819         (Makefile.am): Remove lib_SOURCES.
64820         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
64821         always.
64822         * modules/relocatable-prog-wrapper (configure.ac): Invoke
64823         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
64824
64825 2007-03-04  Bruno Haible  <bruno@clisp.org>
64826
64827         * modules/argmatch-tests: New file.
64828         * tests/test-argmatch.c: New file.
64829
64830         * tests/test-allocsa.c (main): Halve the number of loop runs.
64831
64832         * modules/alloca-opt-tests: New file.
64833         * tests/test-alloca-opt.c: New file.
64834
64835 2007-03-04  Jim Meyering  <jim@meyering.net>
64836
64837         Work around difference between Linux ACLs and Solaris 10 ZFS.
64838         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
64839         for EINVAL.
64840
64841 2007-03-03  Bruno Haible  <bruno@clisp.org>
64842
64843         * modules/relocatable-prog (Depends-on): Add back progreloc's
64844         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
64845
64846 2007-03-03  Bruno Haible  <bruno@clisp.org>
64847
64848         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
64849         * modules/relocatable-lib: New file.
64850
64851 2007-03-03  Bruno Haible  <bruno@clisp.org>
64852
64853         * modules/relocatable-prog: Renamed from modules/relocatable.
64854         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
64855
64856 2007-03-03  Bruno Haible  <bruno@clisp.org>
64857
64858         * modules/relocatable-script (Files): Add doc/relocatable.texi,
64859         m4/relocatable-lib.m4.
64860         (Depends-on): Remove 'relocatable'.
64861         (configure.ac): Add gl_RELOCATABLE_NOP.
64862
64863 2007-03-03  Bruno Haible  <bruno@clisp.org>
64864
64865         * modules/relocatable-prog-wrapper: New file.
64866         * modules/relocatable (Depends-on): Add it. Remove all other
64867         dependencies except progname.
64868         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
64869
64870         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
64871         (gl_FUNC_STRERROR): Nop.
64872         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
64873
64874         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
64875         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
64876
64877         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
64878         (gl_FUNC_READLINK): Update.
64879
64880         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
64881
64882 2007-03-03  Bruno Haible  <bruno@clisp.org>
64883
64884         * lib/xreadlink.c: Include <unistd.h> unconditionally.
64885         * modules/xreadlink (Depends-on): Add unistd.
64886         * modules/xreadlink-with-size (Depends-on): Likewise.
64887
64888 2007-03-03  Bruno Haible  <bruno@clisp.org>
64889
64890         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
64891         extracted from gt_FUNC_SETENV.
64892         (gt_FUNC_SETENV): Remove macro.
64893         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
64894         remove gt_FUNC_SETENV.
64895
64896 2007-03-03  Bruno Haible  <bruno@clisp.org>
64897
64898         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
64899         ENABLE_RELOCATABLE here.
64900         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
64901
64902 2007-03-03  Bruno Haible  <bruno@clisp.org>
64903
64904         * modules/rbtreehash-list-tests (Depends-on): Add progname.
64905         * tests/test-rbtreehash_list.c: Include progname.h.
64906         (main): Call set_program_name.
64907
64908         * modules/rbtree-oset-tests (Depends-on): Add progname.
64909         * tests/test-rbtree_oset.c: Include progname.h.
64910         (main): Call set_program_name.
64911
64912         * modules/rbtree-list-tests (Depends-on): Add progname.
64913         * tests/test-rbtree_list.c: Include progname.h.
64914         (main): Call set_program_name.
64915
64916         * modules/linked-list-tests (Depends-on): Add progname.
64917         * tests/test-linked_list.c: Include progname.h.
64918         (main): Call set_program_name.
64919
64920 2007-03-03  Bruno Haible  <bruno@clisp.org>
64921
64922         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
64923         All uses of __restrict changed to _Restrict_.
64924         * lib/glob_.h (__restrict): Remove macro.
64925
64926 2007-03-02  Bruno Haible  <bruno@clisp.org>
64927
64928         * modules/gettext (configure.ac): Require gettext infrastructure
64929         from version 0.16.1.
64930
64931 2007-03-02  Bruno Haible  <bruno@clisp.org>
64932
64933         * modules/linkedhash-list-tests (Depends-on): Add progname.
64934         * tests/test-linkedhash_list.c: Include progname.h.
64935         (main): Call set_program_name.
64936
64937         * modules/carray-list-tests (Depends-on): Add progname.
64938         * tests/test-carray_list.c: Include progname.h.
64939         (main): Call set_program_name.
64940
64941         * modules/avltreehash-list-tests (Depends-on): Add progname.
64942         * tests/test-avltreehash_list.c: Include progname.h.
64943         (main): Call set_program_name.
64944
64945         * modules/avltree-oset-tests (Depends-on): Add progname.
64946         * tests/test-avltree_oset.c: Include progname.h.
64947         (main): Call set_program_name.
64948
64949         * modules/avltree-list-tests (Depends-on): Add progname.
64950         * tests/test-avltree_list.c: Include progname.h.
64951         (main): Call set_program_name.
64952
64953         * modules/array-oset-tests (Depends-on): Add progname.
64954         * tests/test-array_oset.c: Include progname.h.
64955         (main): Call set_program_name.
64956
64957         * modules/array-list-tests (Depends-on): Add progname.
64958         * tests/test-array_list.c: Include progname.h.
64959         (main): Call set_program_name.
64960
64961         * modules/argp-tests (Depends-on): Add progname.
64962         * tests/test-argp.c: Include argp.h first. Include progname.h.
64963         (main): Call set_program_name.
64964
64965 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
64966
64967         * doc/gnulib-tool.texi (Initial import): Reword description of
64968         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
64969         limited effect even if defined after the first system include.
64970
64971 2007-03-01  Bruno Haible  <bruno@clisp.org>
64972
64973         * build-aux/config.libpath: Update to libtool-1.5.22.
64974         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64975
64976 2007-03-01  Bruno Haible  <bruno@clisp.org>
64977
64978         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
64979         foo_CFLAGS.
64980         Reported by Ralf Wildenhues.
64981
64982 2007-03-01  Bruno Haible  <bruno@clisp.org>
64983
64984         * build-aux/install-reloc: Remove object files left over by some
64985         compilers.
64986         Reported by Ralf Wildenhues.
64987
64988 2007-03-01  Bruno Haible  <bruno@clisp.org>
64989
64990         * build-aux/install-reloc: Break long lines.
64991
64992 2007-03-01  Bruno Haible  <bruno@clisp.org>
64993
64994         * doc/relocatable.texi: Document that it may not work on OpenBSD.
64995         Reported by Ralf Wildenhues.
64996
64997 2007-03-01  Bruno Haible  <bruno@clisp.org>
64998
64999         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
65000         include ordering constraints.
65001
65002 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65003
65004         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
65005         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
65006         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
65007         as another example.
65008         * lib/time_.h: Fix misspelling.
65009         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65010         Require gl_HEADER_TIME_H_DEFAULTS.
65011         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
65012         * m4/time_r.m4 (gl_TIME_R): Likewise.
65013         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
65014
65015 2007-03-01  Bruno Haible  <bruno@clisp.org>
65016
65017         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
65018         * m4/utimens.m4 (gl_UTIMENS): Likewise.
65019
65020 2007-03-01  Jim Meyering  <jim@meyering.net>
65021
65022         * modules/xreadlink (Maintainer): Add my name.
65023         * modules/xreadlink-with-size (Depends-on): Alphabetize.
65024
65025 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
65026             Bruno Haible  <bruno@clisp.org>
65027
65028         * build-aux/install-reloc: Compile also c-ctype.c.
65029         * build-aux/relocatable.sh.in: New file.
65030         * doc/relocatable.texi: New file.
65031         * doc/relocatable-maint.texi: New file.
65032         * doc/gnulib.texi: Include relocatable-maint.texi.
65033         * lib/progreloc.c: Include unistd.h unconditionally.
65034         * lib/relocwrapper.c: Include unistd.h unconditionally.
65035         Include c-ctype.h.
65036         (add_dotbin): Use c_tolower.
65037         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
65038         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
65039         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
65040         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
65041         to m4/relocatable-lib.m4.
65042         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
65043         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
65044         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
65045         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
65046         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
65047         * modules/relocatable: New file.
65048         * modules/relocatable-lib: New file.
65049         * modules/relocatable-script: New file.
65050
65051 2007-02-28  Bruno Haible  <bruno@clisp.org>
65052
65053         Import --enable-relocatable infrastructure.
65054         * build-aux/config.libpath: New file, from GNU gettext.
65055         * build-aux/install-reloc: New file, from GNU gettext.
65056         * build-aux/reloc-ldflags: New file, from GNU gettext.
65057         * lib/relocatable.h: New file, from GNU gettext.
65058         * lib/relocatable.c: New file, from GNU gettext.
65059         * lib/relocwrapper.c: New file, from GNU gettext.
65060         * m4/relocatable.m4: New file, from GNU gettext.
65061
65062 2007-02-28  Bruno Haible  <bruno@clisp.org>
65063
65064         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
65065
65066         * modules/xreadlink: New file, from GNU gettext with modifications.
65067         * lib/xreadlink.c: New file, from GNU gettext.
65068         * lib/xreadlink.h: Add comments.
65069         (xreadlink): New declaration.
65070
65071         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
65072         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
65073         lib/xreadlink-with-size.c.
65074         (configure.ac): Remove gl_XREADLINK invocation.
65075         (Makefile.am): Augment lib_SOURCES.
65076         * m4/xreadlink.m4: Remove file.
65077         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
65078         (xreadlink_with_size): Renamed from xreadink.
65079         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
65080         * modules/canonicalize (Depends-on): Replace xreadlink with
65081         xreadlink-with-size.
65082         * lib/canonicalize.c (canonicalize_filename_mode): Update.
65083
65084 2007-02-25  Jim Meyering  <jim@meyering.net>
65085
65086         * build-aux/announce-gen: When complaining about excess arguments,
65087         list them.
65088
65089 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65090
65091         * README: Document signed integer overflow situation more
65092         accurately.
65093
65094 2007-02-25  Bruno Haible  <bruno@clisp.org>
65095
65096         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
65097         'a' or 'A' conversion.
65098
65099 2007-02-25  Bruno Haible  <bruno@clisp.org>
65100
65101         * modules/filename: Renamed from modules/pathname.
65102         (Files): Replace lib/pathname.h with lib/filename.h. Replace
65103         lib/concatpath.c with lib/concat-filename.c.
65104         (Makefile.am): Update.
65105         (Include): Replace pathname.h with filename.h.
65106         * lib/filename.h: Renamed from lib/pathname.h.
65107         (concatenated_filename): Renamed from concatenated_pathname.
65108         * lib/concat-filename.c: Renamed from lib/concatpath.c.
65109         (concatenated_filename): Renamed from concatenated_pathname.
65110         * lib/findprog.c: Include filename.h instead of pathname.h.
65111         (find_in_path): Update.
65112         * lib/javacomp.c: Include filename.h instead of pathname.h.
65113         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
65114         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
65115         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
65116         is_oldgcj_14_13_usable, is_javac_usable): Update.
65117         * lib/javaexec.c: Include filename.h instead of pathname.h.
65118         (execute_java_class): Update.
65119         * modules/findprog: Update.
65120         * modules/javacomp: Update.
65121         * modules/javaexec: Update.
65122         * MODULES.html.sh (File system functions): Add 'filename', remove
65123         'pathname'.
65124
65125 2007-02-25  Bruno Haible  <bruno@clisp.org>
65126
65127         * modules/printf-frexpl-tests: New file.
65128         * tests/test-printf-frexpl.c: New file.
65129
65130         * modules/printf-frexpl: New file.
65131         * lib/printf-frexpl.h: New file.
65132         * lib/printf-frexpl.c: New file.
65133         * m4/printf-frexpl.m4: New file.
65134
65135 2007-02-25  Bruno Haible  <bruno@clisp.org>
65136
65137         * modules/printf-frexp-tests: New file.
65138         * tests/test-printf-frexp.c: New file.
65139
65140         * modules/printf-frexp: New file.
65141         * lib/printf-frexp.h: New file.
65142         * lib/printf-frexp.c: New file.
65143         * m4/printf-frexp.m4: New file.
65144
65145 2007-02-25  Bruno Haible  <bruno@clisp.org>
65146
65147         Assume automake >= 1.10 for the tests.
65148         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
65149         * modules/arctwo-tests: Likewise.
65150         * modules/argp-tests: Likewise.
65151         * modules/avltree-list-tests: Likewise.
65152         * modules/avltree-oset-tests: Likewise.
65153         * modules/avltreehash-list-tests: Likewise.
65154         * modules/carray-list-tests: Likewise.
65155         * modules/crc-tests: Likewise.
65156         * modules/des-tests: Likewise.
65157         * modules/gc-arcfour-tests: Likewise.
65158         * modules/gc-arctwo-tests: Likewise.
65159         * modules/gc-des-tests: Likewise.
65160         * modules/gc-hmac-md5-tests: Likewise.
65161         * modules/gc-hmac-sha1-tests: Likewise.
65162         * modules/gc-md2-tests: Likewise.
65163         * modules/gc-md4-tests: Likewise.
65164         * modules/gc-md5-tests: Likewise.
65165         * modules/gc-pbkdf2-sha1-tests: Likewise.
65166         * modules/gc-rijndael-tests: Likewise.
65167         * modules/gc-sha1-tests: Likewise.
65168         * modules/gc-tests: Likewise.
65169         * modules/getaddrinfo-tests: Likewise.
65170         * modules/hmac-md5-tests: Likewise.
65171         * modules/hmac-sha1-tests: Likewise.
65172         * modules/linked-list-tests: Likewise.
65173         * modules/linkedhash-list-tests: Likewise.
65174         * modules/lock-tests: Likewise.
65175         * modules/md2-tests: Likewise.
65176         * modules/md4-tests: Likewise.
65177         * modules/md5-tests: Likewise.
65178         * modules/rbtree-list-tests: Likewise.
65179         * modules/rbtree-oset-tests: Likewise.
65180         * modules/rbtreehash-list-tests: Likewise.
65181         * modules/read-file-tests: Likewise.
65182         * modules/rijndael-tests: Likewise.
65183         * modules/stdint-tests: Likewise.
65184         * modules/tls-tests: Likewise.
65185
65186 2007-02-24  Bruno Haible  <bruno@clisp.org>
65187
65188         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
65189         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
65190         function; instead check whether isnan with a double argument links.
65191         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
65192         function; instead check whether isnan with a 'long double' argument
65193         links.
65194         Reported by Eric Blake <ebb9@byu.net>.
65195
65196 2007-02-24  Bruno Haible  <bruno@clisp.org>
65197
65198         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
65199         defined.
65200         * lib/isnanl.c: Remove all code. Just include isnan.c.
65201         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
65202
65203 2007-02-25  Jim Meyering  <jim@meyering.net>
65204
65205         Avoid conflicting types for 'unsetenv' on FreeBSD.
65206         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
65207         conflicting with FreeBSD's (5.0 and 6.1) function declaration
65208         in stdlib.h.
65209
65210 2007-02-24  Bruno Haible  <bruno@clisp.org>
65211
65212         * modules/isnanl-nolibm-tests: New file.
65213         * tests/test-isnanl.c: New file.
65214
65215         * modules/isnanl-nolibm: New file.
65216         * lib/isnanl.h: New file.
65217         * lib/isnanl.c: New file.
65218         * m4/isnanl.m4: New file.
65219
65220 2007-02-24  Bruno Haible  <bruno@clisp.org>
65221
65222         * modules/isnan-nolibm-tests: New file.
65223         * tests/test-isnan.c: New file.
65224
65225         * modules/isnan-nolibm: New file.
65226         * lib/isnan.h: New file.
65227         * lib/isnan.c: New file.
65228         * m4/isnan.m4: New file.
65229
65230 2007-02-24  Bruno Haible  <bruno@clisp.org>
65231
65232         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
65233         assume that an exponent fits in 20 bits.
65234
65235 2007-02-24  Jim Meyering  <jim@meyering.net>
65236
65237         * m4/regex.m4: Update the description of the configure-time option,
65238         --without-included-regex, to state accurately what the defaults are,
65239         and perhaps to give people an idea why using this option is risky.
65240
65241 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65242
65243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
65244         loops on small arguments.  This attempts to avoid the problem
65245         Bruno Haible reported for AIX 4.3.2 in
65246         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
65247
65248 2007-02-23  Bruno Haible  <bruno@clisp.org>
65249
65250         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
65251         Needed for help2man.
65252
65253 2007-02-23  Karl Berry  <karl@gnu.org>
65254
65255         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
65256         exists, foo.h should be cvs-ignored, not committed.
65257
65258 2007-02-23  Eric Blake  <ebb9@byu.net>
65259
65260         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
65261         * lib/stat-time.h (includes): Likewise.
65262         * lib/utimecmp.c (includes): Likewise.
65263         * lib/utimens.h (includes): Likewise.
65264         * lib/getdate.y (includes): Also include "timespec.h" for use
65265         internal to the module.
65266         * modules/utimens (Depends-on): Revert yesterday's patch.
65267         * modules/nanosleep (Depends-on): Add missing dependency.
65268
65269 2007-02-22  Bruno Haible  <bruno@clisp.org>
65270
65271         * lib/glob.c: Don't include getlogin_r.h.
65272
65273 2007-02-22  Jim Meyering  <jim@meyering.net>
65274
65275         * modules/utimens (Depends-on): Add timespec, required for
65276         utimens.h's inclusion of timespec.h.
65277
65278 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
65279
65280         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
65281         long unreadable paths in GNU/Linux.  Problem reported by Andreas
65282         Schwab in
65283         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
65284         I'll try to think of a better way to fix the Solaris problem.
65285
65286         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
65287         like glibc; on Solaris 10, it fails with errno == EINVAL.
65288         POSIX says the behavior is unspecified if the first argument is NULL,
65289         so play it safe and never pass NULL to the system getcwd.
65290
65291 2007-02-21  Jim Meyering  <jim@meyering.net>
65292
65293         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
65294         of gettimeofday.  It would conflict with the one now always
65295         provided via sys_time_.h.  Reported by Matthew Woehlke, as
65296         an IRIX 6.5 build failure.
65297
65298 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65299
65300         Minor fixups to port to Solaris 10 with Sun C 5.8.
65301         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
65302         * modules/getcwd (Depends-on): Add dirfd.
65303         * lib/putenv.c (putenv): #undef it.
65304         (rpl_putenv): New decl.
65305         (malloc, free): Include <stdlib.h> rather than prototyping separately.
65306
65307 2007-02-20  Bruno Haible  <bruno@clisp.org>
65308
65309         * modules/stdio-tests: New file.
65310         * tests/test-stdio.c: New file.
65311
65312         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
65313         (Depends-on): Add stdio.
65314         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65315         (Include): Use <stdio.h> instead of vsnprintf.h.
65316         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65317         HAVE_DECL_VSNPRINTF.
65318         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
65319
65320         * modules/snprintf (Files): Remove lib/snprintf.h.
65321         (Depends-on): Add stdio.
65322         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65323         (Include): Use <stdio.h> instead of snprintf.h.
65324         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65325         HAVE_DECL_SNPRINTF.
65326         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
65327         * lib/getaddrinfo.c: Likewise.
65328
65329         * modules/stdio: New file.
65330         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
65331         * lib/snprintf.h: Remove file.
65332         * lib/vsnprintf.h: Remove file.
65333         * lib/.cppi-disable: Remove snprintf.h.
65334         * m4/stdio_h.m4: New file.
65335         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
65336
65337 2007-02-20  Jim Meyering  <jim@meyering.net>
65338
65339         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
65340         used by e.g., mingw.  From Bruno Haible.
65341
65342 2007-02-19  Bruno Haible  <bruno@clisp.org>
65343
65344         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
65345         warnings.
65346         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65347
65348 2007-02-19  Bruno Haible  <bruno@clisp.org>
65349
65350         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
65351         from mingw users.
65352
65353 2007-02-19  Bruno Haible  <bruno@clisp.org>
65354
65355         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
65356         warnings.
65357         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
65358
65359 2007-02-19  Jim Meyering  <jim@meyering.net>
65360
65361         Don't use FD after a successful "fdopendir (fd)".
65362         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
65363         Reset it by calling dirfd on the just-obtained DIR*.
65364
65365         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
65366         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
65367
65368 2007-02-18  Bruno Haible  <bruno@clisp.org>
65369
65370         * lib/readlink.c: Include <unistd.h>.
65371         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
65372         HAVE_READLINK.
65373         * modules/readlink (Depends-on): Add unistd.
65374         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65375         (Include): Add <unistd.h>.
65376
65377         * lib/getlogin_r.h: Remove file.
65378         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
65379         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
65380         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
65381         HAVE_DECL_GETLOGIN_R.
65382         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
65383         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65384         (Include): Use <unistd.h> instead of getlogin_r.h.
65385
65386         * lib/getcwd.h: Remove file.
65387         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
65388         * lib/xgetcwd.c: Likewise.
65389         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
65390         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
65391         * modules/getcwd (Files): Remove lib/getcwd.h.
65392         (Depends-on): Add unistd.
65393         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65394         (Include): Use <unistd.h> instad of getcwd.h.
65395
65396         * lib/ftruncate.c: Include <unistd.h> first.
65397         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
65398         Set HAVE_FTRUNCATE.
65399         * modules/ftruncate (Depends-on): Add unistd.
65400         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65401
65402         * lib/fchdir.c: Include <unistd.h> first.
65403         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
65404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
65405         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
65406         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65407         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
65408
65409         * lib/dup2.c: Include <unistd.h> first.
65410         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
65411         HAVE_DUP2.
65412         * modules/dup2 (Depends-on): Add unistd.
65413         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65414
65415         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
65416         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
65417         REPLACE_CHOWN. Don't define chown as a macro here.
65418         * modules/chown (Depends-on): Add unistd.
65419         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65420
65421         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
65422         Add definition for GL_LINK_WARNING.
65423         (chown, dup2): New declarations.
65424         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
65425         link warning.
65426         (ftruncate): New declaration.
65427         (getcwd): New declaration, taken from old getcwd.h.
65428         (getlogin_r): New declaration, taken from old getlogin_r.h.
65429         (readlink): New declaration.
65430         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
65431         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
65432         (gl_PREREQ_UNISTD): Remove macro.
65433         (gl_UNISTD_MODULE_INDICATOR): New macro.
65434         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
65435         many new variables. Don't set UNISTD_H.
65436         * modules/unistd (Description): Change.
65437         (Depends-on): Add link-warning.
65438         (configure.ac): Update.
65439         (Makefile.am): Create unistd.h always. Substitute many new variables
65440         into it.
65441
65442 2007-02-18  Bruno Haible  <bruno@clisp.org>
65443
65444         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
65445         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
65446         HAVE_GETSUBOPT.
65447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
65448         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
65449         * lib/getsubopt.h: Remove file.
65450         * modules/getsubopt (Files): Remove lib/getsubopt.h.
65451         (Depends-on): Add stdlib.
65452         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65453         (Includes): Use <stdlib.h> instead of getsubopt.h.
65454         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
65455         Set HAVE_GETSUBOPT.
65456         * lib/getsubopt.c: Don't include getsubopt.h.
65457
65458 2007-02-18  Bruno Haible  <bruno@clisp.org>
65459
65460         * modules/fchdir (Depends-on): Add dup2.
65461
65462 2007-02-18  Bruno Haible  <bruno@clisp.org>
65463
65464         * lib/stdlib_.h: Handle glibc's special invocation convention
65465         specially.
65466
65467 2007-02-18  Bruno Haible  <bruno@clisp.org>
65468
65469         * modules/stdlib-tests: New file.
65470         * tests/test-stdlib.c: New file.
65471
65472         * modules/mkstemp (Files): Remove lib/mkstemp.h.
65473         (Depends-on): Add stdlib.
65474         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65475         (Includes): Use <stdlib.h> instead of mkstemp.h.
65476         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65477         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
65478         * lib/mkstemp.c: Don't include mkstemp.h.
65479         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
65480         * lib/stdlib--.h: Don't include mkstemp.h.
65481
65482         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
65483         (Depends-on): Add stdlib.
65484         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65485         (Includes): Use <stdlib.h> instead of mkdtemp.h.
65486         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65487         HAVE_MKDTEMP.
65488         * lib/mkdtemp.c: Don't include mkdtemp.h.
65489         * lib/clean-temp.c: Don't include mkdtemp.h.
65490
65491         * modules/exit (Files): Remove lib/exit.h.
65492         (Depends-on): Add stdlib.
65493         (Makefile.am): Remove lib_SOURCES.
65494         (Include): Use <stdlib.h> instead of exit.h.
65495         * lib/argmatch.c: Don't include exit.h.
65496         * lib/execute.c: Likewise.
65497         * lib/pagealign_alloc.c: Likewise.
65498         * lib/pipe.c: Likewise.
65499         * lib/wait-process.c: Likewise.
65500         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
65501         * lib/exitfail.c: Likewise.
65502         * lib/savewd.c: Likewise.
65503         * lib/xsetenv.c: Likewise.
65504
65505         * modules/stdlib: New file.
65506         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
65507         and extra comments about mkstemp().
65508         * lib/exit.h: Remove file.
65509         * lib/mkdtemp.h: Remove file.
65510         * lib/mkstemp.h: Remove file.
65511         * m4/stdlib_h.m4: New file.
65512         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
65513
65514 2007-02-18  Bruno Haible  <bruno@clisp.org>
65515
65516         * modules/math-tests: New file.
65517         * tests/test-math.c: New file.
65518
65519         * modules/math: New file.
65520         * modules/mathl (Files): Remove lib/mathl.h.
65521         (Depends-on): Add math.
65522         (Makefile.am): Don't mention mathl.h.
65523         (Include): Use <math.h> instead of mathl.h.
65524         * lib/math_.h: New file.
65525         * lib/mathl.h: Remove file.
65526         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
65527         mathl.h.
65528         * lib/asinl.c: Likewise.
65529         * lib/atanl.c: Likewise.
65530         * lib/ceill.c: Likewise.
65531         * lib/cosl.c: Likewise.
65532         * lib/expl.c: Likewise.
65533         * lib/floorl.c: Likewise.
65534         * lib/frexpl.c: Likewise.
65535         * lib/ldexpl.c: Likewise.
65536         * lib/logl.c: Likewise.
65537         * lib/sincosl.c: Likewise.
65538         * lib/sinl.c: Likewise.
65539         * lib/sqrtl.c: Likewise.
65540         * lib/tanl.c: Likewise.
65541         * lib/trigl.c: Likewise.
65542         * m4/math_h.m4: New file.
65543         * MODULES.html.sh (Mathematics): Add math.
65544
65545 2007-02-17  Bruno Haible  <bruno@clisp.org>
65546
65547         * modules/wctype-tests: New file.
65548         * tests/test-wctype.c: New file.
65549
65550         * modules/wchar-tests: New file.
65551         * tests/test-wchar.c: New file.
65552
65553         * modules/unistd-tests: New file.
65554         * tests/test-unistd.c: New file.
65555
65556         * modules/time-tests: New file.
65557         * tests/test-time.c: New file.
65558
65559         * modules/sysexits-tests: New file.
65560         * tests/test-sysexits.c: New file.
65561
65562         * modules/sys_time-tests: New file.
65563         * tests/test-sys_time.c: New file.
65564
65565         * modules/sys_stat-tests: New file.
65566         * tests/test-sys_stat.c: New file.
65567
65568         * modules/sys_socket-tests: New file.
65569         * tests/test-sys_socket.c: New file.
65570
65571         * modules/sys_select-tests: New file.
65572         * tests/test-sys_select.c: New file.
65573
65574         * modules/string-tests: New file.
65575         * tests/test-string.c: New file.
65576
65577         * modules/stdbool-tests: New file.
65578         * tests/test-stdbool.c: New file.
65579
65580         * modules/netinet_in-tests: New file.
65581         * tests/test-netinet_in.c: New file.
65582
65583         * modules/inttypes-tests: New file.
65584         * tests/test-inttypes.c: New file.
65585
65586         * modules/fcntl-tests: New file.
65587         * tests/test-fcntl.c: New file.
65588
65589         * modules/byteswap-tests: New file.
65590         * tests/test-byteswap.c: New file.
65591
65592         * modules/arpa_inet-tests: New file.
65593         * tests/test-arpa_inet.c: New file.
65594
65595 2007-02-17  Bruno Haible  <bruno@clisp.org>
65596
65597         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
65598         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
65599         if the corresponding module is not enabled. Emit link warnings if
65600         the function is used nevertheless.
65601         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
65602         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
65603         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
65604         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
65605         * modules/inttypes (Depends-on): Add link-warning.
65606         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65607         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
65608         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
65609         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
65610         * modules/imaxdiv (configure.ac): Likewise.
65611         * modules/strtoimax (configure.ac): Likewise.
65612         * modules/strtoumax (configure.ac): Likewise.
65613
65614 2007-02-17  Bruno Haible  <bruno@clisp.org>
65615
65616         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
65617         gl_STRING_MODULE_INDICATOR_DEFAULTS.
65618         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
65619         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
65620
65621 2007-02-17  Bruno Haible  <bruno@clisp.org>
65622
65623         * modules/link-warning: New file.
65624         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
65625         * lib/string_.h (GL_LINK_WARNING): Remove definition.
65626         * modules/string (Depends-on): Add link-warning.
65627         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65628         string.h.
65629         * MODULES.html.sh (Support for building libraries and executables): Add
65630         link-warning.
65631
65632 2007-02-17  Bruno Haible  <bruno@clisp.org>
65633
65634         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
65635         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
65636         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
65637         long lines.
65638
65639 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
65640             Bruno Haible  <bruno@clisp.org>
65641
65642         * modules/tmpfile: New file.
65643         * lib/tmpfile.c: New file.
65644         * m4/tmpfile.m4: New file.
65645         * MODULES.html.sh (func_all_modules): New section "Input/output".
65646
65647 2007-02-15  Bruno Haible  <bruno@clisp.org>
65648
65649         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
65650         (supports_delete_on_close): New function.
65651         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
65652
65653 2007-02-14  Bruno Haible  <bruno@clisp.org>
65654
65655         * modules/mbspcasecmp-tests: New file.
65656         * tests/test-mbspcasecmp.sh: New file.
65657         * tests/test-mbspcasecmp.c: New file.
65658
65659         New module mbspcasecmp.
65660         * modules/mbspcasecmp: New file.
65661         * lib/mbspcasecmp.c: New file.
65662         * lib/string_.h (strncasecmp): Change warning message.
65663         (mbspcasecmp): New declaration.
65664         * m4/mbspcasecmp.m4: New file.
65665         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65666         GNULIB_MBSPCASECMP.
65667         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
65668         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
65669
65670 2007-02-14  Bruno Haible  <bruno@clisp.org>
65671
65672         * modules/mbsncasecmp-tests: New file.
65673         * tests/test-mbsncasecmp.sh: New file.
65674         * tests/test-mbsncasecmp.c: New file.
65675
65676         New module mbsncasecmp.
65677         * modules/mbsncasecmp: New file.
65678         * lib/mbsncasecmp.c: New file.
65679         * lib/string_.h (mbsncasecmp): New declaration.
65680         * m4/mbsncasecmp.m4: New file.
65681         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65682         GNULIB_MBSNCASECMP.
65683         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
65684         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
65685
65686 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65687
65688         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
65689         Verify that it doesn't overlap with our flags.
65690         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
65691         do not have the desired effect in multibyte locales; instead, use
65692         mbscasecmp.
65693         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
65694         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
65695         we don't require GNU fnmatch ourselves (if our users require it, they
65696         should do so explicitly).
65697
65698         Fix regex code so it doesn't rely on strcasecmp.
65699         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
65700         Otherwise, include gnulib's langinfo.h.
65701         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
65702         undesirable behavior in non-C locales.  Instead, rely on localecharset.
65703         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
65704         * modules/regex (FILES): Remove m4/codeset.m4.
65705         (Depends-on): Add localcharset.  Remove strcase.
65706
65707 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65708
65709         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
65710         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
65711
65712 2007-02-13  Bruno Haible  <bruno@clisp.org>
65713
65714         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
65715         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65716
65717 2007-02-12  Bruno Haible  <bruno@clisp.org>
65718
65719         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65720         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
65721         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
65722         time warning rather than a link error.
65723
65724 2007-02-12  Bruno Haible  <bruno@clisp.org>
65725
65726         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
65727         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65728         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65729
65730 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65731
65732         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
65733         args, not 2.
65734
65735 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65736
65737         New module 'time', so that apps can include <time.h> as per
65738         POSIX and GNU instead of separate include files like time_r.h
65739         and timegm.h.  This implementation tries out a simpler approach
65740         for replacing decls in standard include files (as compared to
65741         the string module), somewhat as an experiment.
65742
65743         * config/srclist.txt: Comment out mktime.c for now.
65744         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
65745         since it doesn't apply any more.  Use generic wording instead.
65746         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
65747         'time'.
65748         * lib/time_.h, m4/time_h.m4, modules/time: New files.
65749         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
65750         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
65751         Don't include <sys/types.h>; no longer needed since we assume C89.
65752         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
65753         * lib/strftime.c: Likewise.
65754         * lib/time_r.c: Likewise.
65755         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
65756         * lib/nanosleep.c: Include <time.h> first, to check interface.
65757         * lib/strptime.c: Likewise.
65758         * lib/time_r.c: Likewise.
65759         * lib/timegm.c: Likewise.
65760         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
65761         needed.
65762         * lib/timegm.c: Don't include timegm.h; no longer needed.
65763         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
65764         time.h now handles any problems in that area.
65765         (struct timespec, nanosleep): Remove; time.h now arranges for these.
65766         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
65767         that time.h defines struct timespec.
65768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
65769         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
65770         handles that.
65771         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
65772         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
65773         needed.  Set REPLACE_LOCALTIME.
65774         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
65775         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
65776         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
65777         nanosleep; time_h.m4 now does that.  Don't require
65778         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
65779         module handles this now.
65780         * modules/getdate (Depends-on): Remove timespec.  Add time.
65781         * modules/nanosleep (Depends-on): Likewise.
65782         * modules/stat-time (Depends-on): Likewise.
65783         * modules/nanosleep (Include): Include time.h, not timespec.h.
65784         * modules/strptime (Files): Remove lib/strptime.h.
65785         (Depends-on): Add extensions, time.
65786         (Include): Include time.h, not strptime.h.
65787         * modules/time_r (Files): Remove lib/time_r.h.
65788         (Depends-on): Add time.
65789         (Include): Include time.h, not time_r.h.
65790         * modules/timegm: Likewise.
65791         * modules/timespec (Description): Now does timespec-related decls
65792         of our own, instead of struct timespec itself.
65793         (Depends-on): Add time; remove extensions.
65794         (Maintainer): Add self.
65795         * modules/utimecmp (Depends-on): Add time; remove timespec.
65796         * modules/utimens (Depends-on): Likewise.
65797         * modules/xnanosleep (Depends-on): Likewise.
65798
65799 2007-02-11  Bruno Haible  <bruno@clisp.org>
65800
65801         * lib/c-strstr.c: Include allocsa.h.
65802         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65803         * lib/c-strcasestr.c: Include allocsa.h.
65804         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65805         * lib/strcasestr.c: Include allocsa.h.
65806         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65807         * lib/mbsstr.c: Include allocsa.h.
65808         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65809         allocsa/freesa instead of malloc/free.
65810         * lib/mbscasestr.c: Include allocsa.h.
65811         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65812         allocsa/freesa instead of malloc/free.
65813         * modules/c-strstr (Depends-on): Add allocsa.
65814         * modules/c-strcasestr (Depends-on): Likewise.
65815         * modules/strcasestr (Depends-on): Likewise.
65816         * modules/mbsstr (Depends-on): Likewise.
65817         * modules/mbscasestr (Depends-on): Likewise.
65818
65819 2007-02-11  Bruno Haible  <bruno@clisp.org>
65820
65821         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
65822
65823         * modules/mbsspn-tests: New file.
65824         * tests/test-mbsspn.sh: New file.
65825         * tests/test-mbsspn.c: New file.
65826
65827 2007-02-11  Bruno Haible  <bruno@clisp.org>
65828
65829         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
65830
65831         * modules/mbspbrk-tests: New file.
65832         * tests/test-mbspbrk.sh: New file.
65833         * tests/test-mbspbrk.c: New file.
65834
65835 2007-02-11  Bruno Haible  <bruno@clisp.org>
65836
65837         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
65838         unneeded cast.
65839
65840         * modules/mbscspn-tests: New file.
65841         * tests/test-mbscspn.sh: New file.
65842         * tests/test-mbscspn.c: New file.
65843
65844 2007-02-11  Bruno Haible  <bruno@clisp.org>
65845
65846         * modules/mbscasecmp-tests: New file.
65847         * tests/test-mbscasecmp.sh: New file.
65848         * tests/test-mbscasecmp.c: New file.
65849
65850 2007-02-11  Bruno Haible  <bruno@clisp.org>
65851
65852         Ensure O(n) worst-case complexity of mbscasestr.
65853         * lib/mbscasestr.c: Include stdbool.h.
65854         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65855         functions.
65856         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
65857         the bookkeeping indicates that it's worth it.
65858         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
65859
65860         * modules/mbscasestr-tests: New file.
65861         * tests/test-mbscasestr1.c: New file.
65862         * tests/test-mbscasestr2.sh: New file.
65863         * tests/test-mbscasestr2.c: New file.
65864         * tests/test-mbscasestr3.sh: New file.
65865         * tests/test-mbscasestr3.c: New file.
65866         * tests/test-mbscasestr4.sh: New file.
65867         * tests/test-mbscasestr4.c: New file.
65868         * m4/locale-tr.m4: New file.
65869
65870 2007-02-11  Bruno Haible  <bruno@clisp.org>
65871
65872         Ensure O(n) worst-case complexity of mbsstr.
65873         * lib/mbsstr.c: Include stdbool.h.
65874         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65875         functions.
65876         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
65877         bookkeeping indicates that it's worth it.
65878         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
65879
65880         * modules/mbsstr-tests: New file.
65881         * tests/test-mbsstr1.c: New file.
65882         * tests/test-mbsstr2.sh: New file.
65883         * tests/test-mbsstr2.c: New file.
65884         * tests/test-mbsstr3.sh: New file.
65885         * tests/test-mbsstr3.c: New file.
65886         * m4/locale-fr.m4: New file.
65887
65888 2007-02-11  Bruno Haible  <bruno@clisp.org>
65889
65890         * lib/mbsrchr.c (mbsrchr): Fix bug.
65891
65892         * modules/mbsrchr-tests: New file.
65893         * tests/test-mbsrchr.sh: New file.
65894         * tests/test-mbsrchr.c: New file.
65895
65896 2007-02-11  Bruno Haible  <bruno@clisp.org>
65897
65898         * lib/mbschr.c (mbschr): Fix bug.
65899
65900         * modules/mbschr-tests: New file.
65901         * tests/test-mbschr.sh: New file.
65902         * tests/test-mbschr.c: New file.
65903         * m4/locale-zh.m4: New file.
65904
65905 2007-02-11  Bruno Haible  <bruno@clisp.org>
65906
65907         Support for copying multibyte string iterators.
65908         * lib/mbiter.h: Include <string.h>.
65909         (mbiter_multi_copy): New function.
65910         (mbi_copy): New macro.
65911         * lib/mbuiter.h: Include <string.h>.
65912         (mbuiter_multi_copy): New function.
65913         (mbui_copy): New macro.
65914
65915 2007-02-11  Bruno Haible  <bruno@clisp.org>
65916
65917         New module mbslen.
65918         * modules/mbslen: New file.
65919         * lib/mbslen.c: New file.
65920         * lib/string_.h (mbslen): New declaration.
65921         * m4/mbslen.m4: New file.
65922         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65923         GNULIB_MBSLEN.
65924         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
65925         * MODULES.html.sh (Internationalization functions): Add mbslen.
65926
65927 2007-02-11  Bruno Haible  <bruno@clisp.org>
65928
65929         Ensure O(n) worst-case complexity of strcasestr substitute.
65930         * lib/strcasestr.c: Include stdbool.h.
65931         (knuth_morris_pratt): New function.
65932         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65933         bookkeeping indicates that it's worth it.
65934         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
65935
65936         * modules/strcasestr-tests: New file.
65937         * tests/test-strcasestr.c: New file.
65938
65939 2007-02-11  Bruno Haible  <bruno@clisp.org>
65940
65941         Ensure O(n) worst-case complexity of c_strcasestr.
65942         * lib/c-strcasestr.c: Include stdbool.h, string.h.
65943         (knuth_morris_pratt): New function.
65944         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
65945         the bookkeeping indicates that it's worth it.
65946         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
65947
65948         * modules/c-strcasestr-tests: New file.
65949         * tests/test-c-strcasestr.c: New file.
65950
65951 2007-02-11  Bruno Haible  <bruno@clisp.org>
65952
65953         Ensure O(n) worst-case complexity of c_strstr.
65954         * lib/c-strstr.c: Include stdbool.h, string.h.
65955         (knuth_morris_pratt): New function.
65956         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65957         bookkeeping indicates that it's worth it.
65958         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
65959
65960         * lib/c-strstr.c: Complete rewrite for maintainability.
65961
65962         * modules/c-strstr-tests: New file.
65963         * tests/test-c-strstr.c: New file.
65964
65965 2007-02-11  Bruno Haible  <bruno@clisp.org>
65966
65967         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
65968         5.2.1 and earlier, whereby \055 was treated just like the range
65969         delimiter '-'.
65970         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65971
65972 2007-02-08  Bruno Haible  <bruno@clisp.org>
65973
65974         * modules/regex (Depends-on): Add stdbool.
65975         Reported by Dalibor Topic <robilad@kaffe.org>.
65976
65977 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65978
65979         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
65980         Prefer returning from main to exiting from it.
65981         Remove unnecessary parens after sizeof.
65982
65983 2007-02-05  Bruno Haible  <bruno@clisp.org>
65984
65985         New module mbssep.
65986         * modules/mbssep: New file.
65987         * lib/mbssep.c: New file.
65988         * lib/string_.h (strsep): Add a conditional link warning.
65989         (mbssep): New declaration.
65990         * m4/mbssep.m4: New file.
65991         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65992         GNULIB_MBSSEP.
65993         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
65994         * MODULES.html.sh (Internationalization functions): Add mbssep.
65995
65996 2007-02-05  Bruno Haible  <bruno@clisp.org>
65997
65998         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
65999         Optimize search in case of 1 delimiter.
66000
66001 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66002
66003         * lib/acl.h: Include sys/types.h before sys/acl.h.
66004
66005 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66006
66007         Merge upstream fix for glibc bugzilla #3957:
66008
66009         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
66010
66011         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
66012         bit for RE_HAT_LISTS_NOT_NEWLINE.
66013         (build_charclass_op): Remove bogus comment.
66014
66015 2007-02-05  Simon Josefsson  <simon@josefsson.org>
66016
66017         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
66018
66019 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66020
66021         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
66022         * lib/memmem.c [!defined _LIBC]: Include config.h.
66023
66024 2007-02-04  Bruno Haible  <bruno@clisp.org>
66025
66026         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
66027         warning message.
66028
66029 2007-02-04  Bruno Haible  <bruno@clisp.org>
66030
66031         New module mbstok_r.
66032         * modules/mbstok_r: New file.
66033         * lib/mbstok_r.c: New file.
66034         * lib/string_.h (strtok_r): Change argument names to match the
66035         comments. Add a conditional link warning.
66036         (mbstok_r): New declaration.
66037         * m4/mbstok_r.m4: New file.
66038         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66039         GNULIB_MBSTOK_R.
66040         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
66041         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
66042
66043 2007-02-04  Bruno Haible  <bruno@clisp.org>
66044
66045         New module mbsspn.
66046         * modules/mbsspn: New file.
66047         * lib/mbsspn.c: New file.
66048         * lib/string_.h (strspn): Add a conditional link warning.
66049         (mbsspn): New declaration.
66050         * m4/mbsspn.m4: New file.
66051         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66052         GNULIB_MBSSPN.
66053         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
66054         * MODULES.html.sh (Internationalization functions): Add mbsspn.
66055
66056 2007-02-04  Bruno Haible  <bruno@clisp.org>
66057
66058         New module mbspbrk.
66059         * modules/mbspbrk: New file.
66060         * lib/mbspbrk.c: New file.
66061         * lib/string_.h (strpbrk): Add a conditional link warning.
66062         (mbspbrk): New declaration.
66063         * m4/mbspbrk.m4: New file.
66064         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66065         GNULIB_MBSPBRK.
66066         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
66067         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
66068
66069 2007-02-04  Bruno Haible  <bruno@clisp.org>
66070
66071         New module mbscspn.
66072         * modules/mbscspn: New file.
66073         * lib/mbscspn.c: New file.
66074         * lib/string_.h (strcspn): Add a conditional link warning.
66075         (mbscspn): New declaration.
66076         * m4/mbscspn.m4: New file.
66077         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66078         GNULIB_MBSCSPN.
66079         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
66080         * MODULES.html.sh (Internationalization functions): Add mbscspn.
66081
66082 2007-02-04  Bruno Haible  <bruno@clisp.org>
66083
66084         New module mbscasestr, reduced goal of strcasestr.
66085         * modules/mbscasestr: New file.
66086         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
66087         (mbscasestr): Renamed from strcasestr.
66088         * lib/strcasestr.c: Don't include mbuiter.h.
66089         (strcasestr): Remove support for multibyte locales.
66090         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
66091         Change the conditional link warning.
66092         (mbscasestr): New declaration.
66093         * m4/mbscasestr.m4: New file.
66094         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
66095         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
66096         REPLACE_STRCASESTR.
66097         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
66098         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66099         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66100         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
66101         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
66102         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66103         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
66104         (Depends-on): Remove mbuiter.
66105         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
66106
66107 2007-02-04  Bruno Haible  <bruno@clisp.org>
66108
66109         Simplify handling of strncasecmp.
66110         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
66111         the conditional link warning.
66112         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66113         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
66114         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
66115         * modules/strcase (configure.ac): Don't invoke
66116         gl_STRING_MODULE_INDICATOR.
66117         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
66118
66119 2007-02-04  Bruno Haible  <bruno@clisp.org>
66120
66121         New module mbscasecmp, reduced goal of strcasecmp.
66122         * modules/mbscasecmp: New file.
66123         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
66124         (mbscasecmp): Renamed from strcasecmp.
66125         * lib/strcasecmp.c: Don't include mbuiter.h.
66126         (strcasecmp): Remove support for multibyte locales.
66127         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
66128         Change the conditional link warning.
66129         (mbscasecmp): New declaration.
66130         * m4/mbscasecmp.m4: New file.
66131         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
66132         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
66133         REPLACE_STRCASECMP.
66134         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
66135         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66136         GNULIB_MBSCASECMP.
66137         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
66138         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
66139         * modules/strcase (Files): Remove m4/mbrtowc.m4.
66140         (Depends-on): Remove mbuiter.
66141         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
66142
66143 2007-02-04  Bruno Haible  <bruno@clisp.org>
66144
66145         New module mbsstr. Remove module strstr.
66146         * modules/mbsstr: New file.
66147         * modules/strstr: Remove file.
66148         * lib/mbsstr.c: Renamed from lib/strstr.c.
66149         (mbsstr): Renamed from strstr.
66150         * lib/string_.h (strstr): Remove declaration. Change the conditional
66151         link warning.
66152         (mbsstr): New declaration.
66153         * m4/mbsstr.m4: New file.
66154         * m4/strstr.m4: Remove file.
66155         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66156         REPLACE_STRSTR.
66157         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
66158         Don't initialize GNULIB_STRSTR.
66159         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
66160         substitute GNULIB_STRSTR and REPLACE_STRSTR.
66161         * MODULES.html.sh (Internationalization functions): Add mbsstr.
66162         (Support for systems lacking ANSI C 89): Remove strstr.
66163
66164 2007-02-04  Bruno Haible  <bruno@clisp.org>
66165
66166         New module mbsrchr.
66167         * modules/mbsrchr: New file.
66168         * lib/mbsrchr.c: New file.
66169         * lib/string_.h (strrchr): Add a conditional link warning.
66170         (mbsrchr): New declaration.
66171         * m4/mbsrchr.m4: New file.
66172         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66173         GNULIB_MBSRCHR.
66174         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
66175         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
66176
66177 2007-02-04  Bruno Haible  <bruno@clisp.org>
66178
66179         New module mbschr.
66180         * modules/mbschr: New file.
66181         * lib/mbschr.c: New file.
66182         * lib/string_.h (strchr): Add a conditional link warning.
66183         (mbschr): New declaration.
66184         * m4/mbschr.m4: New file.
66185         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66186         GNULIB_MBSCHR.
66187         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
66188         * MODULES.html.sh (Internationalization functions): Add mbschr.
66189
66190 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66191
66192         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
66193
66194         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
66195
66196 2007-02-04  Bruno Haible  <bruno@clisp.org>
66197
66198         New module description section 'configure.ac-early'.
66199         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
66200         (func_get_autoconf_early_snippet): New function.
66201         (func_import, func_create_testdir): Use it. Remove special cases for
66202         modules 'extensions' and 'lock'.
66203         * modules/extensions (configure.ac-early): Require
66204         gl_USE_SYSTEM_EXTENSIONS.
66205         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
66206
66207 2007-02-04  Bruno Haible  <bruno@clisp.org>
66208
66209         Make use of gcj-4.3's -fsource and -ftarget option.
66210         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
66211         and if so try the options -fsource and -ftarget.
66212         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
66213         source_version, ftarget_option, target_version arguments.
66214         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
66215         (is_envjavac_oldgcj_14_14_usable): Renamed from
66216         is_envjavac_gcj_14_14_usable.
66217         (is_envjavac_oldgcj_14_13_usable): Renamed from
66218         is_envjavac_gcj_14_13_usable.
66219         (is_gcj_present): Update.
66220         (is_gcj_43, is_gcj43_usable): New functions.
66221         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
66222         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
66223         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
66224         try the options -fsource and -ftarget.
66225
66226 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66227
66228         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
66229         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
66230         larger value.
66231
66232 2007-02-03  Jim Meyering  <jim@meyering.net>
66233
66234         Give tools a better chance to allocate space for very large buffers.
66235         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
66236
66237         Make pwd and readlink work also when run with an unreadable parent dir
66238         on systems with openat support.
66239         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
66240         provided getcwd function, even when we have openat support.
66241         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
66242
66243 2007-02-02  Bruno Haible  <bruno@clisp.org>
66244
66245         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66246         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
66247         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
66248         portability problems if one of these functions is only used on specific
66249         platforms.
66250         Reported by Paul Eggert.
66251
66252 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
66253
66254         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
66255         is causing more trouble than it's curing.
66256         * lib/regex_internal.h (__mempcpy): Remove.
66257         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
66258         (and make the code a tad smaller to boot).
66259         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
66260
66261 2007-02-02  Jim Meyering  <jim@meyering.net>
66262
66263         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
66264         section, not in the Makefile.am: one.
66265
66266 2007-02-02  Eric Blake  <ebb9@byu.net>
66267
66268         * lib/strchrnul.c: Always include config.h first.
66269
66270         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
66271         gnulib strstr is not necessary here.
66272
66273 2007-02-02  Simon Josefsson  <simon@josefsson.org>
66274
66275         * m4/socklen.m4: Fix typo.
66276
66277 2007-02-02  Eric Blake  <ebb9@byu.net>
66278
66279         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
66280         * modules/netinet_in (Makefile.am): Likewise.
66281
66282 2007-02-01  Bruno Haible  <bruno@clisp.org>
66283
66284         * lib/string_.h (GL_LINK_WARNING): New macro.
66285         (strcasecmp, strstr, strcasestr): If provided by the system,
66286         conditionally define as a macro that leads to a warning instead of to
66287         an error.
66288         (strncasecmp): Conditionally define as a macro that leads to a warning.
66289
66290 2007-02-01  Karl Berry  <karl@gnu.org>
66291
66292         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
66293
66294 2007-02-01  Bruno Haible  <bruno@clisp.org>
66295
66296         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
66297         renamings.
66298
66299 2007-02-01  Eric Blake  <ebb9@byu.net>
66300
66301         * modules/regex (Depends-on): Revert dependence on mempcpy.
66302         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
66303         module's definition of mempcpy.
66304         Reported by Paul Eggert.
66305
66306 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66307
66308         * lib/string_.h: If the gnulib module XYZ is not present, undefine
66309         the symbol XYZ before redefining it.  This fixes a problem with
66310         programs that don't use XYZ, when compiled on systems that define
66311         XYZ to something else.
66312
66313 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
66314
66315         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
66316         occurs when "mkdir -m foo" creates a setgid directory that is (1)
66317         writeable to group or other and (2) is intended to have a special
66318         mode bit that is set or cleared.  In such a case, the directory
66319         should be neither group- nor other-writeable until the special
66320         mode bits are right.
66321
66322 2007-01-31  Eric Blake  <ebb9@byu.net>
66323
66324         * modules/mountlist (Depends-on): Add strstr.
66325
66326         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
66327         bug.
66328         * modules/string (Makefile.am): Remove redundant replacement.
66329         * modules/regex (Depends-on): Add mempcpy.
66330
66331 2007-01-31  Bruno Haible  <bruno@clisp.org>
66332
66333         New module description field 'Link'.
66334         * gnulib-tool (func_usage): Document --extract-link-directive.
66335         (sed_extract_prog): Recognize 'Link' directive.
66336         (func_get_link_directive): New function.
66337         (func_import): Show summary of link directives.
66338         Handle --extract-link-directive option.
66339         * modules/acl (Link): New section.
66340         * modules/clock-time (Link): New section.
66341         * modules/euidaccess (Link): New section.
66342         * modules/gettext (Link): New section.
66343         * modules/iconv (Link): New section.
66344         * modules/lock (Link): New section.
66345         * modules/nanosleep (Link): New section.
66346         * modules/readline (Link): New section.
66347
66348 2007-01-27  Bruno Haible  <bruno@clisp.org>
66349
66350         Enforce the use of gnulib modules for unportable <string.h> functions.
66351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
66352         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
66353         (gl_HEADER_STRING_H_BODY): Require it.
66354         * lib/string_.h: If the gnulib module XYZ is not present, redefine
66355         the symbol XYZ to one that gives a link error.
66356         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
66357         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
66358         * modules/mempcpy (configure.ac): Likewise.
66359         * modules/memrchr (configure.ac): Likewise.
66360         * modules/stpcpy (configure.ac): Likewise.
66361         * modules/stpncpy (configure.ac): Likewise.
66362         * modules/strcase (configure.ac): Likewise.
66363         * modules/strcasestr (configure.ac): Likewise.
66364         * modules/strchrnul (configure.ac): Likewise.
66365         * modules/strdup (configure.ac): Likewise.
66366         * modules/strndup (configure.ac): Likewise.
66367         * modules/strnlen (configure.ac): Likewise.
66368         * modules/strpbrk (configure.ac): Likewise.
66369         * modules/strsep (configure.ac): Likewise.
66370         * modules/strstr (configure.ac): Likewise.
66371         * modules/strtok_r (configure.ac): Likewise.
66372
66373 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
66374
66375         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
66376
66377 2007-01-30  Jim Meyering  <jim@meyering.net>
66378
66379         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
66380
66381 2007-01-29  Bruno Haible  <bruno@clisp.org>
66382
66383         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
66384         * lib/execute.c: Likewise.
66385         * lib/pipe.c: Likewise.
66386         * lib/printf-args.h: Likewise.
66387         * lib/printf-args.c: Likewise.
66388         * lib/printf-parse.c: Likewise.
66389         * lib/vasnprintf.c: Likewise.
66390
66391 2007-01-29  Eric Blake  <ebb9@byu.net>
66392
66393         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
66394         declaration.
66395
66396 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
66397
66398         * lib/strptime.h (strptime): Use 'restrict' for args where
66399         POSIX requires this.
66400         * lib/strptime.c (strptime): Likewise.
66401         Change license notice from LGPL to GPL, since gnulib-tool will
66402         change this as needed.
66403         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
66404         defined.
66405         Include "strptime.h" first, to check interface.
66406         Do not #undef _LIBC and _NL_CURRENT.
66407         Do not include <stdlib.h>; no longer needed.
66408         Include "time_r.h" and declare ptime_locale_status
66409         only if _LIBC is not defined.
66410         (__P): Remove unused macro.
66411         (match_string): Bring back glibc version, but use it only if _LIBC
66412         is defined.
66413         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
66414         Remove unnecessary assertion and abort() call.
66415         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
66416         * m4/strptime.m4: Fix serial number comment.
66417         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
66418         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
66419         (Depends-on): Add time_r.
66420
66421 2007-01-29  Bruno Haible  <bruno@clisp.org>
66422
66423         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66424         strptime.
66425         * modules/strptime (Depends-on): Add stdbool.
66426         * lib/strptime.h: Include <time.h> always. Add comments.
66427
66428 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66429
66430         * modules/strptime: New file.
66431         * lib/strptime.h: New file.
66432         * lib/strptime.c: New file.
66433         * m4/strptime.m4: New file.
66434
66435 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66436
66437         * MODULES.html.sh: New module mpsort.
66438         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
66439
66440         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
66441         a circularity problem with HP-UX ia64 reported by Bob Proulx in
66442         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
66443         All uses changed.
66444         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
66445         All uses changed.
66446         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
66447         to _Restrict_.
66448         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
66449         the parameter matches the prototype.
66450
66451 2007-01-28  Jim Meyering  <jim@meyering.net>
66452
66453         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
66454         sys/time.h here, reverting that part of the previous patch:
66455         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
66456
66457 2007-01-28  Bruno Haible  <bruno@clisp.org>
66458
66459         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
66460         value of $(SYS_TIME_H).
66461         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
66462         remove it conditionally, too. [added by Jim Meyering]
66463         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
66464         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66465         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
66466         GETTIMEOFDAY_REPLACEMENT to 1.
66467
66468 2007-01-28  Bruno Haible  <bruno@clisp.org>
66469
66470         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
66471         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
66472         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
66473         Set UNISTD_H instead of UNISTD_H2.
66474         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
66475
66476 2007-01-28  Bruno Haible  <bruno@clisp.org>
66477
66478         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
66479         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
66480
66481 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66482
66483         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
66484         (func_create_testdir): Ensure C locale for `grep' and `tr'
66485         character ranges.
66486         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
66487         ACLOCAL_AMFLAGS parsing state machine.
66488
66489 2007-01-27  Bruno Haible  <bruno@clisp.org>
66490
66491         * modules/unistr/base: Update.
66492
66493 2007-01-27  Bruno Haible  <bruno@clisp.org>
66494
66495         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
66496         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
66497         * modules/unistr/u32-mbtouc-unsafe: Renamed from
66498         modules/unistr/u32-mbtouc.
66499         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
66500         * lib/unistr.h: Update.
66501         * lib/linebreak.c: Update.
66502         * modules/unistr/u32-mbtouc: Renamed from
66503         modules/unistr/u32-mbtouc-safe.
66504         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
66505         * lib/unistr.h: Update.
66506         * lib/unistr/u32-to-u8.c: Update.
66507         * lib/unistr/u32-to-u16.c: Update.
66508
66509 2007-01-27  Bruno Haible  <bruno@clisp.org>
66510
66511         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
66512         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
66513         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
66514         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
66515         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
66516         * modules/unistr/u16-mbtouc-unsafe: Renamed from
66517         modules/unistr/u16-mbtouc.
66518         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
66519         * lib/unistr.h: Update.
66520         * lib/linebreak.c: Update.
66521         * modules/linebreak: Update.
66522         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
66523         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
66524         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
66525         * modules/unistr/u16-mbtouc: Renamed from
66526         modules/unistr/u16-mbtouc-safe.
66527         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
66528         * lib/unistr.h: Update.
66529         * lib/unistr/u16-to-u8.c: Update.
66530         * modules/unistr/u16-to-u8: Update.
66531         * lib/unistr/u16-to-u32.c: Update.
66532         * modules/unistr/u16-to-u32: Update.
66533
66534 2007-01-27  Bruno Haible  <bruno@clisp.org>
66535
66536         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
66537         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
66538         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
66539         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
66540         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
66541         * modules/unistr/u8-mbtouc-unsafe: Renamed from
66542         modules/unistr/u8-mbtouc.
66543         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
66544         * lib/unistr.h: Update.
66545         * lib/striconveh.c: Update.
66546         * modules/striconveh: Update.
66547         * lib/linebreak.c: Update.
66548         * modules/linebreak: Update.
66549         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
66550         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
66551         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
66552         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
66553         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
66554         * lib/unistr.h: Update.
66555         * lib/striconveh.c: Update.
66556         * modules/striconveh: Update.
66557         * lib/unistr/u8-to-u16.c: Update.
66558         * modules/unistr/u8-to-u16: Update.
66559         * lib/unistr/u8-to-u32.c: Update.
66560         * modules/unistr/u8-to-u32: Update.
66561
66562 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66563
66564         Sync from Libtool.
66565         * lib/argz.c: Do not include strings.h nor memory.h, include
66566         string.h unconditionally.  Patch by Simon Josefsson.
66567
66568 2007-01-27  Bruno Haible  <bruno@clisp.org>
66569
66570         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
66571         from gl_HEADER_STRING_H_BODY.
66572         (gl_HEADER_STRING_H_BODY): Require it.
66573         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
66574         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66575         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66576         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66577         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66578         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
66579         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66580         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66581         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
66582         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66583         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66584         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
66585         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66586         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
66587         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66588
66589 2007-01-27  Bruno Haible  <bruno@clisp.org>
66590
66591         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
66592         check_PROGRAMS into noinst_PROGRAMS.
66593         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
66594         check_PROGRAMS in this case.
66595         (func_import): Set for_test to false.
66596         (func_create_testdir): Set for_test to true.
66597
66598 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66599             Bruno Haible  <bruno@clisp.org>
66600
66601         * modules/strcasestr (Files): Remove lib/strcasestr.h.
66602         (Depends-on): Add string.
66603         (Includes): Use <string.h> instead of strcasestr.h.
66604         * modules/string (Makefile.am): Also substitute the value of
66605         REPLACE_STRCASESTR.
66606         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
66607         assume strcasestr is declared in <string.h> not <strings.h>. Also
66608         set REPLACE_STRCASESTR.
66609         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
66610         REPLACE_STRCASESTR.
66611         * lib/strcasestr.h: Remove file.
66612         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
66613         * lib/string_.h (strcasestr): New declaration.
66614
66615 2007-01-27  Bruno Haible  <bruno@clisp.org>
66616
66617         * lib/string_.h: Use 'extern'.
66618
66619 2007-01-27  Jim Meyering  <jim@meyering.net>
66620
66621         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
66622         of set-but-not-used local, "q".
66623
66624         * lib/mempcpy.c: Include <config.h> before <string.h>.
66625         This fixes a compilation error on HP-UX, due to the system's
66626         "restrict"-using mempcpy prototype.
66627
66628 2007-01-26  Bruno Haible  <bruno@clisp.org>
66629
66630         Small optimization.
66631         * lib/javacomp.c: Include c-strstr.h.
66632          (is_envjavac_gcj): Use c_strstr instead of strstr.
66633         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
66634
66635 2007-01-26  Bruno Haible  <bruno@clisp.org>
66636
66637         * MODULES.html.sh (Unicode string functions): Add the new modules.
66638
66639         * modules/uniconv/u32-strconv-to-locale: New file.
66640         * lib/uniconv/u32-strconv-to-locale.c: New file.
66641
66642         * modules/uniconv/u16-strconv-to-locale: New file.
66643         * lib/uniconv/u16-strconv-to-locale.c: New file.
66644
66645         * modules/uniconv/u8-strconv-to-locale: New file.
66646         * lib/uniconv/u8-strconv-to-locale.c: New file.
66647
66648         * modules/uniconv/u32-strconv-from-locale: New file.
66649         * lib/uniconv/u32-strconv-from-locale.c: New file.
66650
66651         * modules/uniconv/u16-strconv-from-locale: New file.
66652         * lib/uniconv/u16-strconv-from-locale.c: New file.
66653
66654         * modules/uniconv/u8-strconv-from-locale: New file.
66655         * lib/uniconv/u8-strconv-from-locale.c: New file.
66656
66657         * modules/uniconv/u32-strconv-to-enc: New file.
66658         * lib/uniconv/u32-strconv-to-enc.c: New file.
66659         * modules/uniconv/u32-strconv-to-enc-tests: New file.
66660         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
66661
66662         * modules/uniconv/u16-strconv-to-enc: New file.
66663         * lib/uniconv/u16-strconv-to-enc.c: New file.
66664         * lib/uniconv/u-strconv-to-enc.h: New file.
66665         * modules/uniconv/u16-strconv-to-enc-tests: New file.
66666         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
66667
66668         * modules/uniconv/u8-strconv-to-enc: New file.
66669         * lib/uniconv/u8-strconv-to-enc.c: New file.
66670         * modules/uniconv/u8-strconv-to-enc-tests: New file.
66671         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
66672
66673         * modules/uniconv/u32-strconv-from-enc: New file.
66674         * lib/uniconv/u32-strconv-from-enc.c: New file.
66675         * modules/uniconv/u32-strconv-from-enc-tests: New file.
66676         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
66677
66678         * modules/uniconv/u16-strconv-from-enc: New file.
66679         * lib/uniconv/u16-strconv-from-enc.c: New file.
66680         * modules/uniconv/u16-strconv-from-enc-tests: New file.
66681         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
66682
66683         * modules/uniconv/u8-strconv-from-enc: New file.
66684         * lib/uniconv/u8-strconv-from-enc.c: New file.
66685         * lib/uniconv/u-strconv-from-enc.h: New file.
66686         * modules/uniconv/u8-strconv-from-enc-tests: New file.
66687         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
66688
66689         * modules/uniconv/u32-conv-from-enc: New file.
66690         * lib/uniconv/u32-conv-from-enc.c: New file.
66691         * modules/uniconv/u32-conv-from-enc-tests: New file.
66692         * tests/uniconv/test-u32-conv-from-enc.c: New file.
66693
66694         * modules/uniconv/u16-conv-from-enc: New file.
66695         * lib/uniconv/u16-conv-from-enc.c: New file.
66696         * lib/uniconv/u-conv-from-enc.h: New file.
66697         * modules/uniconv/u16-conv-from-enc-tests: New file.
66698         * tests/uniconv/test-u16-conv-from-enc.c: New file.
66699
66700         * modules/uniconv/u8-conv-from-enc: New file.
66701         * lib/uniconv/u8-conv-from-enc.c: New file.
66702         * modules/uniconv/u8-conv-from-enc-tests: New file.
66703         * tests/uniconv/test-u8-conv-from-enc.c: New file.
66704
66705         * modules/uniconv/base: New file.
66706         * lib/uniconv.h: New file.
66707
66708 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66709
66710         * doc/gnulib-tool.texi (Initial import): Update to match current
66711         behavior with strdup module.
66712         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
66713         * lib/memmem.h: Remove; all uses removed.  This is now done
66714         by <string.h>.
66715         * lib/mempcpy.h: Likewise.
66716         * lib/memrchr.h: Likewise.
66717         * lib/stpcpy.h: Likewise.
66718         * lib/stpncpy.h: Likewise.
66719         * lib/strcase.h: Likewise.
66720         * lib/strchrnul.h: Likewise.
66721         * lib/strdup.h: Likewise.
66722         * lib/strndup.h: Likewise.
66723         * lib/strnlen.h: Likewise.
66724         * lib/strpbrk.h: Likewise.
66725         * lib/strsep.h: Likewise.
66726         * lib/strstr.h: Likewise.
66727         * lib/strtok_r.h: Likewise.
66728         * lib/string_.h: New file.
66729         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
66730         Rely on <string.h> instead.
66731         * lib/canon-host.c: Likewise.
66732         * lib/chdir-long.c: Likewise.
66733         * lib/concatpath.c: Likewise.
66734         * lib/exclude.c: Likewise.
66735         * lib/fchdir.c: Likewise.
66736         * lib/getaddrinfo.c: Likewise.
66737         * lib/getcwd.c: Likewise.
66738         * lib/getsubopt.c: Likewise.
66739         * lib/glob.c: Likewise.
66740         * lib/hard-locale.c: Likewise.
66741         * lib/iconvme.c: Likewise.
66742         * lib/javacomp.c: Likewise.
66743         * lib/mempcpy.c: Likewise.
66744         * lib/memrchr.c: Likewise.
66745         * lib/regex_internal.h: Likewise.
66746         * lib/stpncpy.c: Likewise.
66747         * lib/strcasecmp.c: Likewise.
66748         * lib/strchrnul.c: Likewise.
66749         * lib/strdup.c: Likewise.
66750         * lib/striconv.c: Likewise.
66751         * lib/striconveh.c: Likewise.
66752         * lib/striconveha.c: Likewise.
66753         * lib/strncasecmp.c: Likewise.
66754         * lib/strndup.c: Likewise.
66755         * lib/strnlen.c: Likewise.
66756         * lib/strsep.c: Likewise.
66757         * lib/strstr.c: Likewise.
66758         * lib/strtok_r.c: Likewise.
66759         * lib/userspec.c: Likewise.
66760         * lib/w32spawn.h: Likewise.
66761         * lib/xstrndup.c: Likewise.
66762         * lib/mountlist.c (strstr): Remove decl.
66763         * m4/string_h.m4: New file.
66764         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
66765         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
66766         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
66767         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
66768         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
66769         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
66770         Set REPLACE_STRCASECMP if necessary.
66771         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
66772         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
66773         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
66774         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
66775         HAVE_DECL_STRDUP if necessary.
66776         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
66777         since gl_FUNC_STRNDUP does that now.
66778         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
66779         Check for decl here...
66780         (gl_PREREQ_STRNLEN): ... not here.
66781         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
66782         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
66783         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
66784         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
66785         necessary.
66786         * modules/string: New file.
66787         * modules/memmem (Files): Remove special-purpose include file.
66788         (Depends-on): Add string.
66789         (Include): Include <string.h>, not the removed file.
66790         * modules/mempcpy: Likewise.
66791         * modules/memrchr: Likewise.
66792         * modules/stpcpy: Likewise.
66793         * modules/stpncpy: Likewise.
66794         * modules/strcase: Likewise.
66795         * modules/strchrnul: Likewise.
66796         * modules/strdup: Likewise.
66797         * modules/strndup: Likewise.
66798         * modules/strnlen: Likewise.
66799         * modules/strpbrk: Likewise.
66800         * modules/strsep: Likewise.
66801         * modules/strstr: Likewise.
66802         * modules/strtok_r: Likewise.
66803         * tests/test-dirname.c: Don't include "strdup.h", since
66804         <string.h> now suffices.
66805         * tests/test-memmem.c: Don't include "memmem.h", since
66806         <string.h> now suffices.
66807
66808 2007-01-25  Bruno Haible  <bruno@clisp.org>
66809
66810         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
66811         *resultp is 0.
66812
66813         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
66814         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
66815         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
66816         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
66817
66818         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
66819         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
66820         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
66821         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
66822         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
66823         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
66824
66825 2007-01-24  Bruno Haible  <bruno@clisp.org>
66826
66827         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
66828         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
66829         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
66830         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
66831         gl_FUNC_FTS_CORE.
66832         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
66833         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
66834         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66835         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
66836         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
66837         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
66838         gl_FUNC_FCHOWNAT.
66839         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
66840         gl_FUNC_STRFTIME.
66841         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
66842         Reported by Ralf Wildenhues.
66843
66844 2007-01-24  Bruno Haible  <bruno@clisp.org>
66845
66846         Drop AC_REQUIRE calls that are redundant with the module dependencies.
66847         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
66848         gl_GETADDRINFO.
66849         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
66850         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
66851         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
66852
66853 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
66854
66855         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
66856         Don't use 'exit'; just return from 'main'.
66857         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
66858
66859         * lib/fnmatch_.h: Readjust white space and comments to match
66860         glibc, to avoid spurious diffs.
66861
66862 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66863
66864         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
66865         2004-12-01 change by Jakub Jelinek, since this code won't compile
66866         if !LIBC.  Problem reported by Bob Proulx.
66867
66868 2007-01-23  Bruno Haible  <bruno@clisp.org>
66869
66870         * lib/striconveh.c: Include c-strcaseeq.h.
66871         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
66872         * modules/striconveh (Depends-on): Add c-strcaseeq.
66873
66874 2007-01-23  Bruno Haible  <bruno@clisp.org>
66875
66876         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
66877
66878         * modules/c-strcaseeq: New file.
66879         * lib/c-strcaseeq.h: New file.
66880
66881         * modules/streq: New file.
66882         * lib/streq.h: New file.
66883
66884 2007-01-23  Bruno Haible  <bruno@clisp.org>
66885
66886         * modules/striconveha-tests: New file.
66887         * tests/test-striconveha.c: New file.
66888
66889         * lib/striconveha.h: Include <stdbool.h>.
66890         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
66891         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
66892         (mem_iconveha_notranslit): Renamed from mem_iconveha.
66893         (mem_iconveha): New function.
66894         (str_iconveha_notranslit): Renamed from str_iconveha.
66895         (str_iconveha): New function.
66896         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
66897         c-strcase.
66898
66899 2007-01-23  Bruno Haible  <bruno@clisp.org>
66900
66901         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
66902         encodings without forgiving before trying any encoding with handler.
66903         (str_iconveha): Try all encodings without forgiving before trying any
66904         encoding with handler.
66905
66906 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66907
66908         Import the following changes from libc.
66909
66910         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66911
66912         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
66913
66914         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66915
66916         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
66917         normal_bracket label.
66918
66919         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
66920
66921         [BZ #361]
66922         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
66923         to normal_bracket after fetching the next character.
66924
66925 2007-01-22  Bruno Haible  <bruno@clisp.org>
66926
66927         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
66928         argument.
66929         * lib/striconveh.c (iconv_carefully_1): New function.
66930         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
66931         argument.
66932         (str_cd_iconveh): Update.
66933         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
66934         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
66935         * tests/test-striconveh.c (MAGIC): New macro.
66936         (new_offsets): New function.
66937         (main): Test call with and without offsets.
66938
66939 2007-01-22  Bruno Haible  <bruno@clisp.org>
66940
66941         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
66942         * modules/sys_select (Makefile.am): Likewise.
66943         * modules/sys_socket (Makefile.am): Likewise.
66944         * modules/sys_time (Makefile.am): Likewise.
66945
66946 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66947
66948         * modules/gettimeofday (License): Change from GPL to LGPL, since
66949         gettimeofday is a library function.
66950
66951 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66952
66953         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
66954
66955 2007-01-21  Bruno Haible  <bruno@clisp.org>
66956
66957         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
66958
66959 2007-01-21  Bruno Haible  <bruno@clisp.org>
66960
66961         * modules/striconveha: New file.
66962         * lib/striconveha.h: New file.
66963         * lib/striconveha.c: New file.
66964         * MODULES.html.sh (Internationalization functions): Add striconveha.
66965         * lib/striconv.c (str_iconv): Optimize the case of an empty input
66966         string.
66967         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
66968
66969 2007-01-21  Bruno Haible  <bruno@clisp.org>
66970
66971         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
66972         * lib/striconveh.c (str_iconveh): Likewise.
66973
66974 2007-01-21  Bruno Haible  <bruno@clisp.org>
66975
66976         * lib/striconveh.h (mem_iconveh): New declaration.
66977         * lib/striconveh.c (mem_iconveh): New function.
66978         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
66979
66980 2007-01-21  Bruno Haible  <bruno@clisp.org>
66981
66982         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
66983
66984         * lib/striconveh.h (mem_cd_iconveh): Change specification.
66985         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
66986         original result buffer.
66987         (str_cd_iconveh): Update.
66988         * tests/test-striconveh.c (main): Update.
66989
66990         * lib/striconv.h (mem_cd_iconv): Change specification.
66991         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
66992         result buffer.
66993         (str_cd_iconv): Update.
66994         * tests/test-striconv.c (main): Update.
66995
66996 2007-01-21  Bruno Haible  <bruno@clisp.org>
66997
66998         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
66999
67000 2007-01-20  Jim Meyering  <jim@meyering.net>
67001
67002         * lib/userspec.c (parse_with_separator): If a user or group string
67003         starts with "+", skip the corresponding name-to-ID look-up, since
67004         such a look-up must fail: user and group names may not include "+".
67005
67006 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67007
67008         * lib/poll.c: Include sys/time.h and time.h unconditionally,
67009         since we now assume the sys_time module.
67010         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
67011         check for sys/time.h; no longer needed.
67012         * modules/poll (Depends-on): Depend on sys_time.
67013
67014 2007-01-18  Bruno Haible  <bruno@clisp.org>
67015
67016         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
67017         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67018
67019         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
67020         gettimeofday.
67021
67022         * tests/test-gettimeofday.c: Include <time.h>.
67023         (dummy): Remove variable.
67024
67025         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
67026         gl_HEADER_SYS_TIME_H.
67027         (gl_HEADER_SYS_TIME_H): New macro.
67028
67029         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
67030         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67031         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
67032         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
67033         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67034         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
67035         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
67036         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67037         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
67038         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
67039         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67040
67041         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
67042         last change; it caused a compilation error when cross-compiling to
67043         Cygwin.
67044
67045 2007-01-18  Jim Meyering  <jim@meyering.net>
67046
67047         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
67048         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
67049         than the race-prone "test -d sys || mkdir sys".
67050         (configure.ac): Use AC_PROG_MKDIR_P.
67051         * modules/sys_select: Likewise.
67052         * modules/sys_socket: Likewise.
67053         * modules/sys_time: Likewise.
67054
67055 2007-01-18  Eric Blake  <ebb9@byu.net>
67056
67057         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
67058         replace gettimeofday.
67059         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
67060         name, to avoid infinite recursion.
67061
67062 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
67063
67064         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
67065         module sys_time.
67066         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
67067         assume timespec.h defines struct timeval.
67068         * lib/settime.c: Likewise.
67069         * lib/utimens.c: Likewise.
67070         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
67071         since we now assume the gettimeofday module.
67072         * lib/tempname.c (__gen_tempname): Likewise.
67073         * lib/gettimeofday.h: Remove.
67074         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
67075         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
67076         Include <time.h>, for 'time()'.
67077         (localtime_buffer_addr): Also use this workaround if
67078         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
67079         to simplify the uses.  All uses changed.
67080         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
67081         that #undef is inside {}, and 'const' follows type name consistently.
67082         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
67083         (gettimeofday): Do not use the maximum possible value for
67084         tv->tv_usec, since that might break usages other than ls.c.
67085         Instead, we'll leave ls.c alone.  This undoes today's patch
67086         by Bruno.  Add a compile-time warning for 1s-clock resolution;
67087         we've never observed the problem but might as well keep the
67088         canary.
67089         * lib/nanosleep.c: Include timespec.h first, for interface check.
67090         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
67091         now assume the sys_time module.
67092         * lib/tempname.c: Likewise.
67093         * lib/timespec.h: Likewise.
67094         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
67095         needed.
67096         * lib/strftime.c: Likewise.
67097         * lib/timespec.h: Likewise.
67098         * lib/posixtm.c: Include posixtm.h first, for interface check.
67099         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
67100         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
67101         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
67102         * lib/sys_time_.h: New file.
67103         * lib/timespec.h (struct timespec): Use long int, not long.
67104         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
67105         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
67106         Remove obsolescent call to AC_HEADER_TIME.
67107         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
67108         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67109         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67110         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
67111         Likewise.
67112         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
67113         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
67114         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
67115         into the sys_time module.  Check for gettimeofday just once.
67116         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
67117         for gettimeofday signature to just check the signature.  Merely
67118         compile it, since linking doesn't test signature.  Improve test for
67119         whether gettimeofday.o is actually needed.
67120         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
67121         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
67122         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
67123         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67124         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
67125         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
67126         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
67127         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
67128         than worrying about sys/time.h.
67129         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67130         Don't bother worrying about TIME_WITH_SYS_TIME.
67131         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
67132         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
67133         * m4/sys_time_h.m4: New file.
67134         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
67135         Don't include sys/time.h.  Return from main rather than exiting.
67136         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
67137         all uses changed.
67138         * modules/gethrxtime (Depends-on): Add sys_time.
67139         * modules/gettime (Depends-on): Likewise.
67140         * modules/gettimeofday (Depends-on): Likewise.
67141         * modules/nanosleep (Depends-on): Likewise.
67142         * modules/settime (Depends-on): Likewise.
67143         * modules/tempname (Depends-on): Likewise.
67144         * modules/utimens (Depends-on): Likewise.
67145         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
67146         (Include): Change back to <sys/time.h>.
67147         (Maintainer): Add self.
67148         * modules/sys_time: New file.
67149         * modules/tempname (Depends-on): Add gettimeofday.
67150         * tests/test-gettimeofday.c: Include <sys/time.h>
67151         rather than gettimeofday.h.
67152
67153 2007-01-17  Bruno Haible  <bruno@clisp.org>
67154
67155         * gnulib-tool (func_get_license): Revert last patch. Instead, let
67156         the license default to GPL.
67157         (func_create_testdir): Don't complain if a module is LGPL and its
67158         tests module depends on GPLed modules.
67159
67160 2007-01-17  Bruno Haible  <bruno@clisp.org>
67161
67162         * lib/gettimeofday.c (gettimeofday): Add code for the case
67163         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
67164         maximum possible value for tv->tv_usec, rather than the minimum one.
67165
67166 2005-10-08  Martin Lambers  <marlam@marlam.de>
67167 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67168 2007-01-16  Bruno Haible  <bruno@clisp.org>
67169
67170         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
67171         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
67172         gl_FUNC_GETTIMEOFDAY.
67173         (Include): Add gettimeofday.h.
67174         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
67175         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
67176         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
67177         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
67178         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
67179         * lib/gettimeofday.h: New file.
67180         * lib/gettimeofday.c: Include <sys/timeb.h>.
67181         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
67182         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67183         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
67184         fall back on time().
67185
67186         * tests/test-gettimeofday.c: New file.
67187         * modules/gettimeofday-tests: New file.
67188
67189 2007-01-16  Eric Blake  <ebb9@byu.net>
67190
67191         * modules/fnmatch (Depends-on): Depend on wchar.
67192         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
67193         * m4/fnmatch.m4: Likewise.
67194         * modules/mbchar (Makefile.am): Assume <wchar.h>.
67195         * m4/mbchar.m4: Likewise.
67196         * modules/mbswidth (Depends-on): Depend on wchar.
67197         * lib/mbswidth.c: Assume <wchar.h>.
67198         * m4/mbswidth.m4: Likewise.
67199         * modules/quotearg (Depends-on): Depend on wchar.
67200         * lib/quotearg.c: Assume <wchar.h>.
67201         * m4/quotearg.m4: Likewise.
67202         * modules/regex (Depends-on): Depend on wchar.
67203         * lib/regex_internal.h: Assume <wchar.h>.
67204         * m4/regex.m4: Likewise.
67205         * modules/stdint (Depends-on): Depend on wchar.
67206         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
67207         * m4/stdint.m4: Likewise.
67208         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
67209         * modules/strftime (Depends-on): Depend on wchar.
67210         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
67211         * modules/strtol (Depends-on): Depend on wchar.
67212         * lib/strtol.c: Assume <wchar.h>.
67213         * modules/wcwidth (Depends-on): Depend on wchar.
67214         * lib/wcwidth.h: Assume <wchar.h>.
67215         * m4/wcwidth.m4: Likewise.
67216
67217 2007-01-16  Bruno Haible  <bruno@clisp.org>
67218
67219         * modules/csharpexec-script: New, created from...
67220         * modules/csharpexec: ... this.
67221
67222 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
67223
67224         * modules/javaexec-script: New, created from...
67225         * modules/javaexec: ... this.
67226
67227 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67228
67229         * modules/poll (Dependencies): Add sys_select.
67230
67231 2007-01-15  Jim Meyering  <jim@meyering.net>
67232
67233         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
67234         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
67235         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
67236         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
67237
67238 2007-01-15  Bruno Haible  <bruno@clisp.org>
67239
67240         * modules/striconveh: New file.
67241         * lib/striconveh.h: New file.
67242         * lib/striconveh.c: New file.
67243         * MODULES.html.sh (Internationalization functions): Add striconveh.
67244
67245         * modules/striconveh-tests: New file.
67246         * tests/test-striconveh.c: New file.
67247
67248 2007-01-15  Bruno Haible  <bruno@clisp.org>
67249
67250         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
67251         not from GNU libiconv or GNU libc.
67252
67253 2007-01-15  Bruno Haible  <bruno@clisp.org>
67254
67255         * doc/gnulib-intro.texi (Copyright): Explain the different license
67256         terms for module descriptions, autoconf macros, tests, documentation.
67257
67258 2007-01-14  Bruno Haible  <bruno@clisp.org>
67259
67260         * modules/striconv-tests: New file.
67261         * tests/test-striconv.c: New file.
67262
67263 2007-01-14  Bruno Haible  <bruno@clisp.org>
67264
67265         * modules/iconv-tests: New file.
67266         * tests/test-iconv.c: New file.
67267
67268 2007-01-14  Bruno Haible  <bruno@clisp.org>
67269
67270         * gnulib-tool (func_get_license): For test modules, use the license of
67271         the main module.
67272
67273 2007-01-14  Bruno Haible  <bruno@clisp.org>
67274
67275         * modules/iconv (Include): Clarify that <iconv.h> can only be included
67276         if iconv is found to exist.
67277
67278 2007-01-14  Bruno Haible  <bruno@clisp.org>
67279
67280         * modules/c-ctype-tests: New file.
67281         * tests/test-c-ctype.c: New file.
67282
67283 2007-01-14  Bruno Haible  <bruno@clisp.org>
67284
67285         * modules/binary-io-tests: New file.
67286         * tests/test-binary-io.sh: New file.
67287         * tests/test-binary-io.c: New file.
67288
67289 2007-01-14  Bruno Haible  <bruno@clisp.org>
67290
67291         * modules/array-oset-tests: New file.
67292         * tests/test-array_oset.c: New file.
67293
67294 2007-01-14  Bruno Haible  <bruno@clisp.org>
67295
67296         * modules/array-list-tests: New file.
67297         * tests/test-array_list.c: New file.
67298
67299 2007-01-14  Bruno Haible  <bruno@clisp.org>
67300
67301         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
67302         and make.
67303         Reported by Simon Josefsson in
67304         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
67305
67306 2007-01-14  Bruno Haible  <bruno@clisp.org>
67307
67308         * modules/allocsa-tests: New file.
67309         * tests/test-allocsa.c: New file.
67310
67311 2007-01-14  Bruno Haible  <bruno@clisp.org>
67312
67313         * modules/fchdir (Depends-on): Add absolute-header.
67314         * modules/unistd (Depends-on): Likewise.
67315
67316 2006-12-30  Bruno Haible  <bruno@clisp.org>
67317
67318         * modules/fchdir: New file.
67319         * modules/unistd (Files): Add lib/unistd_.h.
67320         (Makefile.am): Generate unistd.h from unistd_.h.
67321         * lib/fchdir.c: New file.
67322         * lib/dirent_.h: New file.
67323         * lib/unistd_.h: New file.
67324         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
67325         * m4/fchdir.m4: New file.
67326         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
67327         (gl_HEADER_UNISTD): Invoke it.
67328         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
67329         function.
67330         * lib/backupfile.c (opendir, closedir): Undefine.
67331         * lib/chown.c (open, close): Undefine.
67332         * lib/clean-temp.c (open, close): Undefine.
67333         * lib/copy-file.c (open, close): Undefine.
67334         * lib/execute.c (open, close): Undefine.
67335         * lib/fsusage.c (open, close): Undefine.
67336         * lib/gc-gnulib.c (open, close): Undefine.
67337         * lib/getcwd.c (opendir, closedir): Undefine.
67338         * lib/glob.c (opendir, closedir): Undefine.
67339         * lib/javacomp.c (open, close): Undefine.
67340         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
67341         * lib/openat-proc.c (open, close): Undefine.
67342         * lib/pagealign_alloc.c (open, close): Undefine.
67343         * lib/pipe.c (open, close): Undefine.
67344         * lib/progreloc.c (open, close): Undefine.
67345         * lib/savedir.c (opendir, closedir): Undefine.
67346         * lib/utime.c (open, close): Undefine.
67347         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
67348
67349 2007-01-10  Bruno Haible  <bruno@clisp.org>
67350
67351         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
67352
67353 2007-01-12  Eric Blake  <ebb9@byu.net>
67354
67355         Provide a robust <wchar.h>.  Further simplifications are now
67356         possible in other modules, but not included here.
67357         * modules/wchar: New module.
67358         * m4/wchar.m4: New file.
67359         * lib/wchar_.h: Likewise.
67360         * modules/mbchar (Depends-on): Depend on wchar, as the first use
67361         of the new module.
67362         * MODULES.html.sh (Extended multibyte and wide character utilities):
67363         New section.
67364
67365 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
67366
67367         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
67368         to a reasonable default for memory allocation.
67369         (xreadlink): Don't allocate a huge buffer, to work around a buggy
67370         file system that reports garbage st_size values for symlinks.
67371         Problem reported by Liyang Hu.
67372
67373 2007-01-11  Simon Josefsson  <simon@josefsson.org>
67374
67375         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
67376         Emacs .#* auto-save files).
67377
67378 2007-01-11  Bruno Haible  <bruno@clisp.org>
67379
67380         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
67381         directory.
67382
67383 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67384
67385         Use @...@ consistently in lib/wctype_.h.
67386         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
67387         on it being set to 1 or 0.
67388         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
67389         go back to AC_SUBSTing it.
67390         * modules/wctype (Makefile.am): Undo previous change.
67391
67392 2007-01-10  Eric Blake  <ebb9@byu.net>
67393
67394         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
67395         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
67396         * modules/wctype (Makefile.am): Likewise.
67397         Reported by Chris McGuire.
67398
67399 2007-01-10  Jim Meyering  <jim@meyering.net>
67400
67401         fts.c: a small readability/maintainability improvement
67402         * lib/fts.c (fts_read): Make this code slightly more readable and
67403         maintainable by hoisting the "sp->fts_cur = p" assignments to
67404         immediately follow the statements that set P.  Derived from
67405         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
67406
67407 2007-01-10  Eric Blake  <ebb9@byu.net>
67408
67409         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
67410         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
67411         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67412         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67413         Reported by Chris McGuire.
67414
67415 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67416
67417         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
67418         in sed script.
67419
67420 2007-01-09  Bruno Haible  <bruno@clisp.org>
67421
67422         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
67423         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
67424         variables.
67425         (func_module): Use them.
67426
67427 2007-01-09  Bruno Haible  <bruno@clisp.org>
67428
67429         * modules/unistr/base: New file.
67430         * lib/unistr.h: New file.
67431
67432         * modules/unistr/u8-to-u16: New file.
67433         * lib/unistr/u8-to-u16.c: New file.
67434
67435         * modules/unistr/u8-to-u32: New file.
67436         * lib/unistr/u8-to-u32.c: New file.
67437
67438         * modules/unistr/u16-to-u8: New file.
67439         * lib/unistr/u16-to-u8.c: New file.
67440
67441         * modules/unistr/u16-to-u32: New file.
67442         * lib/unistr/u16-to-u32.c: New file.
67443
67444         * modules/unistr/u32-to-u8: New file.
67445         * lib/unistr/u32-to-u8.c: New file.
67446
67447         * modules/unistr/u32-to-u16: New file.
67448         * lib/unistr/u32-to-u16.c: New file.
67449
67450         * modules/unistr/u8-check: New file.
67451         * modules/unistr/u16-check: New file.
67452         * modules/unistr/u32-check: New file.
67453         * lib/unistr/u8-check.c: New file.
67454         * lib/unistr/u16-check.c: New file.
67455         * lib/unistr/u32-check.c: New file.
67456
67457         * modules/unistr/u8-chr: New file.
67458         * modules/unistr/u16-chr: New file.
67459         * modules/unistr/u32-chr: New file.
67460         * lib/unistr/u8-chr.c: New file.
67461         * lib/unistr/u16-chr.c: New file.
67462         * lib/unistr/u32-chr.c: New file.
67463
67464         * modules/unistr/u8-cmp: New file.
67465         * modules/unistr/u16-cmp: New file.
67466         * modules/unistr/u32-cmp: New file.
67467         * lib/unistr/u8-cmp.c: New file.
67468         * lib/unistr/u16-cmp.c: New file.
67469         * lib/unistr/u32-cmp.c: New file.
67470
67471         * modules/unistr/u8-cpy: New file.
67472         * modules/unistr/u16-cpy: New file.
67473         * modules/unistr/u32-cpy: New file.
67474         * lib/unistr/u8-cpy.c: New file.
67475         * lib/unistr/u16-cpy.c: New file.
67476         * lib/unistr/u32-cpy.c: New file.
67477         * lib/unistr/u-cpy.h: New file.
67478
67479         * modules/unistr/u8-cpy-alloc: New file.
67480         * modules/unistr/u16-cpy-alloc: New file.
67481         * modules/unistr/u32-cpy-alloc: New file.
67482         * lib/unistr/u8-cpy-alloc.c: New file.
67483         * lib/unistr/u16-cpy-alloc.c: New file.
67484         * lib/unistr/u32-cpy-alloc.c: New file.
67485         * lib/unistr/u-cpy-alloc.h: New file.
67486
67487         * modules/unistr/u8-endswith: New file.
67488         * modules/unistr/u16-endswith: New file.
67489         * modules/unistr/u32-endswith: New file.
67490         * lib/unistr/u8-endswith.c: New file.
67491         * lib/unistr/u16-endswith.c: New file.
67492         * lib/unistr/u32-endswith.c: New file.
67493         * lib/unistr/u-endswith.h: New file.
67494
67495         * modules/unistr/u8-mblen: New file.
67496         * modules/unistr/u16-mblen: New file.
67497         * modules/unistr/u32-mblen: New file.
67498         * lib/unistr/u8-mblen.c: New file.
67499         * lib/unistr/u16-mblen.c: New file.
67500         * lib/unistr/u32-mblen.c: New file.
67501
67502         * modules/unistr/u8-mbtouc: New file.
67503         * modules/unistr/u16-mbtouc: New file.
67504         * modules/unistr/u32-mbtouc: New file.
67505         * lib/unistr/u8-mbtouc.c: New file.
67506         * lib/unistr/u16-mbtouc.c: New file.
67507         * lib/unistr/u32-mbtouc.c: New file.
67508
67509         * modules/unistr/u8-mbtouc-safe: New file.
67510         * modules/unistr/u16-mbtouc-safe: New file.
67511         * modules/unistr/u32-mbtouc-safe: New file.
67512         * lib/unistr/u8-mbtouc-safe.c: New file.
67513         * lib/unistr/u16-mbtouc-safe.c: New file.
67514         * lib/unistr/u32-mbtouc-safe.c: New file.
67515
67516         * modules/unistr/u8-move: New file.
67517         * modules/unistr/u16-move: New file.
67518         * modules/unistr/u32-move: New file.
67519         * lib/unistr/u8-move.c: New file.
67520         * lib/unistr/u16-move.c: New file.
67521         * lib/unistr/u32-move.c: New file.
67522         * lib/unistr/u-move.h: New file.
67523
67524         * modules/unistr/u8-next: New file.
67525         * modules/unistr/u16-next: New file.
67526         * modules/unistr/u32-next: New file.
67527         * lib/unistr/u8-next.c: New file.
67528         * lib/unistr/u16-next.c: New file.
67529         * lib/unistr/u32-next.c: New file.
67530
67531         * modules/unistr/u8-prev: New file.
67532         * modules/unistr/u16-prev: New file.
67533         * modules/unistr/u32-prev: New file.
67534         * lib/unistr/u8-prev.c: New file.
67535         * lib/unistr/u16-prev.c: New file.
67536         * lib/unistr/u32-prev.c: New file.
67537
67538         * modules/unistr/u8-set: New file.
67539         * modules/unistr/u16-set: New file.
67540         * modules/unistr/u32-set: New file.
67541         * lib/unistr/u8-set.c: New file.
67542         * lib/unistr/u16-set.c: New file.
67543         * lib/unistr/u32-set.c: New file.
67544         * lib/unistr/u-set.h: New file.
67545
67546         * modules/unistr/u8-startswith: New file.
67547         * modules/unistr/u16-startswith: New file.
67548         * modules/unistr/u32-startswith: New file.
67549         * lib/unistr/u8-startswith.c: New file.
67550         * lib/unistr/u16-startswith.c: New file.
67551         * lib/unistr/u32-startswith.c: New file.
67552         * lib/unistr/u-startswith.h: New file.
67553
67554         * modules/unistr/u8-stpcpy: New file.
67555         * modules/unistr/u16-stpcpy: New file.
67556         * modules/unistr/u32-stpcpy: New file.
67557         * lib/unistr/u8-stpcpy.c: New file.
67558         * lib/unistr/u16-stpcpy.c: New file.
67559         * lib/unistr/u32-stpcpy.c: New file.
67560         * lib/unistr/u-stpcpy.h: New file.
67561
67562         * modules/unistr/u8-stpncpy: New file.
67563         * modules/unistr/u16-stpncpy: New file.
67564         * modules/unistr/u32-stpncpy: New file.
67565         * lib/unistr/u8-stpncpy.c: New file.
67566         * lib/unistr/u16-stpncpy.c: New file.
67567         * lib/unistr/u32-stpncpy.c: New file.
67568         * lib/unistr/u-stpncpy.h: New file.
67569
67570         * modules/unistr/u8-strcat: New file.
67571         * modules/unistr/u16-strcat: New file.
67572         * modules/unistr/u32-strcat: New file.
67573         * lib/unistr/u8-strcat.c: New file.
67574         * lib/unistr/u16-strcat.c: New file.
67575         * lib/unistr/u32-strcat.c: New file.
67576         * lib/unistr/u-strcat.h: New file.
67577
67578         * modules/unistr/u8-strchr: New file.
67579         * modules/unistr/u16-strchr: New file.
67580         * modules/unistr/u32-strchr: New file.
67581         * lib/unistr/u8-strchr.c: New file.
67582         * lib/unistr/u16-strchr.c: New file.
67583         * lib/unistr/u32-strchr.c: New file.
67584
67585         * modules/unistr/u8-strcmp: New file.
67586         * modules/unistr/u16-strcmp: New file.
67587         * modules/unistr/u32-strcmp: New file.
67588         * lib/unistr/u8-strcmp.c: New file.
67589         * lib/unistr/u16-strcmp.c: New file.
67590         * lib/unistr/u32-strcmp.c: New file.
67591
67592         * modules/unistr/u8-strcpy: New file.
67593         * modules/unistr/u16-strcpy: New file.
67594         * modules/unistr/u32-strcpy: New file.
67595         * lib/unistr/u8-strcpy.c: New file.
67596         * lib/unistr/u16-strcpy.c: New file.
67597         * lib/unistr/u32-strcpy.c: New file.
67598         * lib/unistr/u-strcpy.h: New file.
67599
67600         * modules/unistr/u8-strcspn: New file.
67601         * modules/unistr/u16-strcspn: New file.
67602         * modules/unistr/u32-strcspn: New file.
67603         * lib/unistr/u8-strcspn.c: New file.
67604         * lib/unistr/u16-strcspn.c: New file.
67605         * lib/unistr/u32-strcspn.c: New file.
67606         * lib/unistr/u-strcspn.h: New file.
67607
67608         * modules/unistr/u8-strdup: New file.
67609         * modules/unistr/u16-strdup: New file.
67610         * modules/unistr/u32-strdup: New file.
67611         * lib/unistr/u8-strdup.c: New file.
67612         * lib/unistr/u16-strdup.c: New file.
67613         * lib/unistr/u32-strdup.c: New file.
67614         * lib/unistr/u-strdup.h: New file.
67615
67616         * modules/unistr/u8-strlen: New file.
67617         * modules/unistr/u16-strlen: New file.
67618         * modules/unistr/u32-strlen: New file.
67619         * lib/unistr/u8-strlen.c: New file.
67620         * lib/unistr/u16-strlen.c: New file.
67621         * lib/unistr/u32-strlen.c: New file.
67622         * lib/unistr/u-strlen.h: New file.
67623
67624         * modules/unistr/u8-strmblen: New file.
67625         * modules/unistr/u16-strmblen: New file.
67626         * modules/unistr/u32-strmblen: New file.
67627         * lib/unistr/u8-strmblen.c: New file.
67628         * lib/unistr/u16-strmblen.c: New file.
67629         * lib/unistr/u32-strmblen.c: New file.
67630
67631         * modules/unistr/u8-strmbtouc: New file.
67632         * modules/unistr/u16-strmbtouc: New file.
67633         * modules/unistr/u32-strmbtouc: New file.
67634         * lib/unistr/u8-strmbtouc.c: New file.
67635         * lib/unistr/u16-strmbtouc.c: New file.
67636         * lib/unistr/u32-strmbtouc.c: New file.
67637
67638         * modules/unistr/u8-strncat: New file.
67639         * modules/unistr/u16-strncat: New file.
67640         * modules/unistr/u32-strncat: New file.
67641         * lib/unistr/u8-strncat.c: New file.
67642         * lib/unistr/u16-strncat.c: New file.
67643         * lib/unistr/u32-strncat.c: New file.
67644         * lib/unistr/u-strncat.h: New file.
67645
67646         * modules/unistr/u8-strncmp: New file.
67647         * modules/unistr/u16-strncmp: New file.
67648         * modules/unistr/u32-strncmp: New file.
67649         * lib/unistr/u8-strncmp.c: New file.
67650         * lib/unistr/u16-strncmp.c: New file.
67651         * lib/unistr/u32-strncmp.c: New file.
67652
67653         * modules/unistr/u8-strncpy: New file.
67654         * modules/unistr/u16-strncpy: New file.
67655         * modules/unistr/u32-strncpy: New file.
67656         * lib/unistr/u8-strncpy.c: New file.
67657         * lib/unistr/u16-strncpy.c: New file.
67658         * lib/unistr/u32-strncpy.c: New file.
67659         * lib/unistr/u-strncpy.h: New file.
67660
67661         * modules/unistr/u8-strnlen: New file.
67662         * modules/unistr/u16-strnlen: New file.
67663         * modules/unistr/u32-strnlen: New file.
67664         * lib/unistr/u8-strnlen.c: New file.
67665         * lib/unistr/u16-strnlen.c: New file.
67666         * lib/unistr/u32-strnlen.c: New file.
67667         * lib/unistr/u-strnlen.h: New file.
67668
67669         * modules/unistr/u8-strpbrk: New file.
67670         * modules/unistr/u16-strpbrk: New file.
67671         * modules/unistr/u32-strpbrk: New file.
67672         * lib/unistr/u8-strpbrk.c: New file.
67673         * lib/unistr/u16-strpbrk.c: New file.
67674         * lib/unistr/u32-strpbrk.c: New file.
67675         * lib/unistr/u-strpbrk.h: New file.
67676
67677         * modules/unistr/u8-strrchr: New file.
67678         * modules/unistr/u16-strrchr: New file.
67679         * modules/unistr/u32-strrchr: New file.
67680         * lib/unistr/u8-strrchr.c: New file.
67681         * lib/unistr/u16-strrchr.c: New file.
67682         * lib/unistr/u32-strrchr.c: New file.
67683
67684         * modules/unistr/u8-strspn: New file.
67685         * modules/unistr/u16-strspn: New file.
67686         * modules/unistr/u32-strspn: New file.
67687         * lib/unistr/u8-strspn.c: New file.
67688         * lib/unistr/u16-strspn.c: New file.
67689         * lib/unistr/u32-strspn.c: New file.
67690         * lib/unistr/u-strspn.h: New file.
67691
67692         * modules/unistr/u8-strstr: New file.
67693         * modules/unistr/u16-strstr: New file.
67694         * modules/unistr/u32-strstr: New file.
67695         * lib/unistr/u8-strstr.c: New file.
67696         * lib/unistr/u16-strstr.c: New file.
67697         * lib/unistr/u32-strstr.c: New file.
67698         * lib/unistr/u-strstr.h: New file.
67699
67700         * modules/unistr/u8-strtok: New file.
67701         * modules/unistr/u16-strtok: New file.
67702         * modules/unistr/u32-strtok: New file.
67703         * lib/unistr/u8-strtok.c: New file.
67704         * lib/unistr/u16-strtok.c: New file.
67705         * lib/unistr/u32-strtok.c: New file.
67706         * lib/unistr/u-strtok.h: New file.
67707
67708         * modules/unistr/u8-uctomb: New file.
67709         * modules/unistr/u16-uctomb: New file.
67710         * modules/unistr/u32-uctomb: New file.
67711         * lib/unistr/u8-uctomb.c: New file.
67712         * lib/unistr/u16-uctomb.c: New file.
67713         * lib/unistr/u32-uctomb.c: New file.
67714
67715         * MODULES.html.sh (Unicode string functions): Add the new modules.
67716
67717 2007-01-08  Bruno Haible  <bruno@clisp.org>
67718
67719         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
67720         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
67721         subdirectories.
67722
67723 2007-01-08  Karl Berry  <karl@gnu.org>
67724
67725         * doc/error.texi: mention that main() fns must set program_name
67726         when progname is used.
67727
67728 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
67729
67730         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
67731         WCTYPE_H is empty, for the benefit of builds from non-distclean
67732         directories.  Problem reported by Eric Blake in
67733         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
67734
67735 2007-01-08  Bruno Haible  <bruno@clisp.org>
67736
67737         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
67738         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
67739         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
67740         PROVIDE_CANONICALIZE_FILENAME_MODE.
67741         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
67742
67743 2007-01-08  Bruno Haible  <bruno@clisp.org>
67744
67745         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
67746         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
67747         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
67748         * lib/fts.c: Likewise.
67749         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
67750
67751 2006-12-25  Bruno Haible  <bruno@clisp.org>
67752
67753         * modules/utf8-ucs4-safe: New file.
67754         * lib/utf8-ucs4-safe.h: New file.
67755         * lib/unistr/utf8-ucs4-safe.c: New file.
67756
67757         * modules/utf16-ucs4-safe: New file.
67758         * lib/utf16-ucs4-safe.h: New file.
67759         * lib/unistr/utf16-ucs4-safe.c: New file.
67760
67761         * MODULES.html.sh (Unicode string functions): Add the new modules.
67762
67763 2007-01-08  Bruno Haible  <bruno@clisp.org>
67764
67765         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
67766         (Depends-on): Add unitypes.
67767         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67768         (u8_mbtouc_aux): Move out to separate file.
67769         (u8_mbtouc): Use ucs4_t, uint8_t types.
67770         * lib/unistr/utf8-ucs4.c: New file.
67771
67772         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
67773         (Depends-on): Add unitypes.
67774         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67775         (u16_mbtouc_aux): Move out to separate file.
67776         (u16_mbtouc): Use ucs4_t, uint16_t types.
67777         * lib/unistr/utf16-ucs4.c: New file.
67778
67779         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
67780         (Depends-on): Add unitypes.
67781         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
67782         (u8_uctomb_aux): Move out to separate file.
67783         (u8_uctomb): Use ucs4_t, uint8_t types.
67784         * lib/unistr/ucs4-utf8.c: New file.
67785
67786         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
67787         (Depends-on): Add unitypes.
67788         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
67789         (u16_uctomb_aux): Move out to separate file.
67790         (u16_uctomb): Use ucs4_t, uint16_t types.
67791         * lib/unistr/ucs4-utf16.c: New file.
67792
67793 2006-12-25  Bruno Haible  <bruno@clisp.org>
67794
67795         * modules/unitypes: New file.
67796         * lib/unitypes.h: New file.
67797         * MODULES.html.sh (func_all_modules): New section "Unicode string
67798         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
67799         this section. Add unitypes.
67800
67801 2007-01-08  Bruno Haible  <bruno@clisp.org>
67802
67803         Avoid variable names that conflict with those from libtool.
67804         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
67805         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
67806         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
67807         library_names_spec to acl_library_names_spec, hardcode_* to
67808         acl_hardcode_*.
67809         Reported by Ralf Wildenhues.
67810
67811 2007-01-08  Bruno Haible  <bruno@clisp.org>
67812
67813         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
67814         definition.
67815         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
67816         definition.
67817         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
67818         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
67819         definition.
67820         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
67821         definition.
67822         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
67823         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
67824         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
67825         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
67826         definition.
67827         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
67828         definition.
67829         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
67830         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
67831         GC_USE_<algorithm>.
67832         * lib/gc-libgcrypt.c: Likewise.
67833         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
67834         * modules/gc-arctwo (configure.ac): Likewise.
67835         * modules/gc-des (configure.ac): Likewise.
67836         * modules/gc-hmac-md5 (configure.ac): Likewise.
67837         * modules/gc-hmac-sha1 (configure.ac): Likewise.
67838         * modules/gc-md2 (configure.ac): Likewise.
67839         * modules/gc-md4 (configure.ac): Likewise.
67840         * modules/gc-md5 (configure.ac): Likewise.
67841         * modules/gc-random (configure.ac): Likewise.
67842         * modules/gc-rijndael (configure.ac): Likewise.
67843         * modules/gc-sha1 (configure.ac): Likewise.
67844
67845 2007-01-08  Bruno Haible  <bruno@clisp.org>
67846
67847         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
67848         macro definition.
67849         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
67850         definition.
67851         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
67852         definition.
67853         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
67854         * modules/fcntl-safer (configure.ac): Likewise.
67855         * modules/fopen-safer (configure.ac): Likewise.
67856         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
67857         GNULIB_FWRITEERROR macro definition.
67858
67859 2007-01-08  Bruno Haible  <bruno@clisp.org>
67860
67861         * m4/gnulib-common.m4: New file.
67862         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
67863         (func_get_filelist): Add m4/gnulib-common.m4.
67864
67865 2007-01-08  Bruno Haible  <bruno@clisp.org>
67866
67867         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
67868         command.
67869
67870 2007-01-08  Jim Meyering  <jim@meyering.net>
67871
67872         Use a more robust test for a "can't happen" condition.
67873         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
67874         narrowed the st_size value.  Presuming the "can't happen" condition
67875         is true, that narrowing could conceivably convert an invalid st_size
67876         value into a valid one.  Instead, use a change based on Matthew
67877         Woehlke's original patch.
67878
67879         Slight readability improvement: use an assert-like macro
67880         in place of literal "abort ()" uses.
67881         * lib/fts.c (fts_assert): Define.
67882         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
67883         Use this macro instead of a bare 'abort'.
67884
67885 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
67886
67887         Don't worry about using IRIX 5.3's wctype.h broken definitions;
67888         simply work around them.
67889         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
67890         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
67891         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
67892         declaring.
67893         Don't bother to define as macros, since the standard doesn't require it.
67894         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
67895         longer worry about IRIX 5.3.
67896         (HAVE_WCTYPE_CTMP_BUG): Remove.
67897
67898 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67899
67900         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
67901         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
67902         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67903         Problems reported by Georg Schwarz for IRIX 5.3.
67904
67905         * gnulib-tool (autoconf_minversion): Take the maximum version number
67906         found, not the minimum.  Problem reported by James Youngman.
67907
67908 2007-01-03  Karl Berry  <karl@gnu.org>
67909
67910         * doc/error.texi: new file, explaining interaction with progname.
67911         * doc/gnulib.texi: include it.  Update copyright.
67912
67913 2007-01-03  Simon Josefsson  <simon@josefsson.org>
67914
67915         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
67916         AC_CANONICAL_HOST, to improve autobuild outputs.
67917
67918 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
67919             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67920
67921         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
67922         sockets, server sockets, and other file descriptors.  Count errors
67923         to compute the return value.  Reorder the code a bit to be easier
67924         to follow.  Don't set event bits that were not requested (except
67925         POLLERR and POLLHUP).
67926
67927 2007-01-01  Bruno Haible  <bruno@clisp.org>
67928
67929         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
67930
67931 2007-01-03  Jim Meyering  <jim@meyering.net>
67932
67933         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
67934
67935 2007-01-02  Bruno Haible  <bruno@clisp.org>
67936
67937         * modules/settime (Include): Require timespec.h.
67938         * modules/nanosleep (Include): Likewise.
67939
67940 2007-01-01  Bruno Haible  <bruno@clisp.org>
67941
67942         * gnulib-tool (func_emit_copyright_notice): Bump year.
67943         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
67944
67945 2007-01-01  Bruno Haible  <bruno@clisp.org>
67946
67947         Improve support for OpenBSD.
67948         * build-aux/config.rpath (libname_spec): Export.
67949         (library_names_spec): New variable. Export.
67950         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
67951         library_names_spec from the config.rpath output. Locate shared library
67952         through the name pattern in library_names_spec.
67953
67954 2007-01-01  Eric Blake  <ebb9@byu.net>
67955
67956         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
67957
67958 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
67959
67960         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
67961         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
67962         assume the C locale, and avoid an "eval" that could cause trouble.
67963         Problem with SORT reported by Bob Proulx.
67964
67965         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
67966         Define.  Trivial patch from Henning Nielsen Lund, originally
67967         sent to bug-grep@gnu.org today.
67968
67969 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
67970
67971         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
67972         struct stat.  Problem reported by Henning Nielsen Lund.
67973         * lib/acl.c: Include acl.h first, to check interface.  Don't
67974         bother to include sys/types.h and sys/stat.h again.
67975
67976 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67977
67978         Import the following change from libc; problem reported by
67979         Sven Verdoolaege.
67980
67981         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
67982
67983         [BZ #1373]
67984         * lib/argp.h: Remove __NTH for __argp_usage inline function.
67985
67986 2006-12-28  Jim Meyering  <jim@meyering.net>
67987
67988         * build-aux/announce-gen: Do not assume that the package
67989         builds any of tar.gz, tar.bz2, and .xdelta files.
67990         Suggestion from Simon Josefsson.
67991
67992 2006-12-28  Simon Josefsson  <simon@josefsson.org>
67993
67994         * modules/announce-gen: New file.
67995
67996 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
67997
67998         * lib/mbchar.h: Just include <wctype.h>; the wctype module
67999         handles its gotchas now.
68000         * lib/mbswidth.c: Likewise.
68001         * lib/wcwidth.h: Likewise.
68002         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
68003         and iswcntrl; the wctype module does this stuff now.
68004         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68006         * modules/mbchar (Depends-on): Add wctype.
68007         * modules/mbswidth (Depends-on): Likewise.
68008         * modules/wcwidth (Depends-on): Likewise.
68009
68010 2006-12-27  Eric Blake  <ebb9@byu.net>
68011
68012         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
68013         module uses more than what <wctype.h> is required to provide.
68014
68015 2006-12-26  Eric Blake  <ebb9@byu.net>
68016
68017         * gnulib-tool (sed_extract_prog): Avoid space-tab.
68018
68019 2006-12-26  Eric Blake  <ebb9@byu.net>
68020
68021         * modules/absolute-header: New module.
68022         * modules/fcntl (Depends-on): Depend on it.
68023         * modules/inttypes (Depends-on): Likewise.
68024         * modules/stdint (Depends-on): Likewise.
68025         * modules/sys_stat (Depends-on): Likewise.
68026         * modules/wctype (Depends-on): Likewise.
68027         * MODULES.html.sh (Support for building libraries and
68028         executables): Document it.
68029
68030 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
68031
68032         * gnulib-tool (SED): Remove, undoing previous change.
68033         The problem was that it broke coreutils on Solaris, because
68034         "sed --posix" leaked into a makefile.
68035         (sed): New alias, if 'alias' and GNU sed.
68036
68037 2006-12-24  Jim Meyering  <jim@meyering.net>
68038
68039         Work around an fchownat bug in glibc-2.4:
68040         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
68041         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
68042         in spite of the -P option.
68043         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
68044         New macros.
68045         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
68046         * modules/openat (Files): Add lib/fchownat.c.
68047         * lib/openat.c (fchownat): Don't define here.  Move to...
68048         * lib/fchownat.c: ...this new file.
68049
68050 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68051
68052         Fix bug reported by Bruno Haible in
68053         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
68054         where quotearg.c didn't compile on Mac OS X 10.2 because it
68055         lacks <wchar.h> and wint_t.
68056         * lib/wctype_.h (__wctype_wint_t): New type.
68057         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
68058         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
68059         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
68060         Arg is now of type __wctype_wint_t, not wint_t.
68061         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
68062         substitute HAVE_WINT_T.
68063         * modules/wctype (Files): Add m4/wint_t.m4.
68064         (wctype.h): Substitute HAVE_WINT_T.
68065
68066 2006-12-23  Bruno Haible  <bruno@clisp.org>
68067
68068         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
68069
68070 2006-12-23  Bruno Haible  <bruno@clisp.org>
68071
68072         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
68073         S_ISLNK.
68074         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
68075         mingw.
68076
68077 2006-12-22  Bruno Haible  <bruno@clisp.org>
68078
68079         * lib/copy-file.c: Include acl.h.
68080         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
68081         Close the file descriptors only after being done with copy_acl.
68082         * modules/copy-file (Depends-on): Add acl.
68083
68084 2006-12-22  Bruno Haible  <bruno@clisp.org>
68085
68086         * gnulib-tool (SED): New variable.
68087         Use $SED instead of sed everywhere.
68088
68089 2006-12-22  Bruno Haible  <bruno@clisp.org>
68090
68091         * modules/no-c++: New file.
68092         * m4/no-c++.m4: New file.
68093         * MODULES.html.sh (Support for building libraries and executables):
68094         Add no-c++.
68095
68096 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
68097
68098         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68099         Include <limits.h>, and use its INT_MAX to rewrite the
68100         j loop so that it does not overflow 'int'.  Problem reported by
68101         Ralf Wildenhues in
68102         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
68103         Play it safe by shifting left by 1 rather than multiplying by 2,
68104         as GCC is less likely to optimize this away when the value
68105         is signed (when it assumes overflow leads to undefined behavior).
68106         Also, don't assume time_t uses two's complement.
68107
68108 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
68109
68110         * MODULES.html.sh: New module wctype.
68111         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
68112         * lib/fnmatch.c: Don't bother to include <wchar.h> before
68113         <wctype.h>, since the new wctype module should fix this.
68114         * lib/quotearg.c: Include <wctype.h> unconditionally, since
68115         the wctype module should arrange for it.
68116         * lib/regex_internal.h: Likewise.
68117         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
68118         since the wctype module should handle this now.
68119         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
68120         * modules/fnmatch (Depends-on): Add wctype.
68121         * modules/quotearg (Depends-on): Likewise.
68122         * modules/regex (Depends-on): Likewise.
68123
68124 2006-12-19  Bruno Haible  <bruno@clisp.org>
68125
68126         * lib/strdup.h [C++]: Wrap definitions in extern "C".
68127         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
68128
68129 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68130
68131         * modules/savewd (Depends-on): Fix dependency on fcntl.
68132
68133 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68134
68135         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
68136         conforms to C99, rather than relying on the user's environment
68137         setting of STDINT_H.
68138
68139 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68140         and Eric Blake  <ebb9@byu.net>
68141
68142         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
68143         This is more consistent with the other defines here.
68144         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
68145         Port to z/OS.  Problem reported by Paul Gilmartin.
68146         Change local vars to use gl_ prefix rather than ac_.
68147         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
68148         with other defines.
68149         * modules/double-slash-root: New module.
68150         * modules/dirname (Files): Remove m4/double-slash-root.m4.
68151         (Depends-on): Add double-slash-root.
68152         * MODULES.html.sh (File system functions): Mention new module.
68153
68154 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
68155
68156         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
68157         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
68158         This is for the benefit of gzip, which doesn't do i18n.
68159
68160 2006-12-12  Jim Meyering  <jim@meyering.net>
68161
68162         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
68163         Reported by Andreas Schwab <schwab@suse.de>.
68164
68165 2006-12-12  Bruno Haible  <bruno@clisp.org>
68166
68167         Merge these changes.
68168         2006-09-05  Bruno Haible  <bruno@clisp.org>
68169         * lib/iconvme.c (iconv_string): No need to save and restore errno when
68170         iconv_alloc succeeded.
68171         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
68172         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
68173         test for " && dest " at the end - dest is always != NULL there. Call
68174         iconv with 4xNULL arguments initially, to reset the state. Call iconv
68175         with 2xNULL arguments, also to flush the state storage. Handle the
68176         IRIX iconv behaviour. Realloc the final result, to throw away unused
68177         memory.
68178
68179 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
68180
68181         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
68182         and fchmodat unconditionally, since glibc 2.4 has them.
68183         Problem reported by Arkadiusz Miskiewicz.
68184
68185 2006-12-10  Bruno Haible  <bruno@clisp.org>
68186
68187         * gnulib-tool (func_import): Show the include files only for those
68188         modules that are copied and specified.
68189         Reported by Karl Berry.
68190
68191 2006-12-08  Jim Meyering  <jim@meyering.net>
68192
68193         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
68194         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
68195
68196         * build-aux/announce-gen: Add two new options, both optional:
68197         --bootstrap-tools=TOOL_LIST
68198               a comma-separated list of tools, e.g.,
68199               autoconf,automake,bison,gnulib
68200         --gnulib-snapshot-date=DATE
68201               if gnulib is in the bootstrap tool list,
68202               then report this as the snapshot date.
68203               If not specified, use the current date/time.
68204               If you specify a date here, be sure it's UTC.
68205
68206 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68207
68208         * tests/test-argp-2.sh: Fix test to match actual output.
68209         (func_compare): Fix sed script to be portable.
68210
68211 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
68212
68213         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
68214         workaround for this case.  It is not autoconfigured now; offhand
68215         it's hard to see how to autoconfigure it.
68216
68217 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
68218
68219         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
68220         a directory that is about to be chowned.  Such a directory's
68221         initial file permissions should permit the owner only and this
68222         should not be changed until after the chown, since the group and
68223         other bits would be incorrect if they granted permission before
68224         the chown.
68225
68226         Fix porting problem for iswctype reported by Georg Schwarz in:
68227         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
68228         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
68229         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
68230         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
68231         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68232
68233 2006-12-03  Jim Meyering  <jim@meyering.net>
68234
68235         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
68236         p->fts_statp may not yet be defined.
68237         (fts_read): Instead, set it in the caller, once p->fts_statp is
68238         sure to be defined, and corresponds to a top-level directory.
68239         This bug made du -x fail.  Here's the coreutils test case:
68240         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
68241         Reported by Mike Frysinger.
68242
68243 2006-12-01  Jim Meyering  <jim@meyering.net>
68244
68245         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
68246         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
68247         Reported by Simon Josefsson.
68248
68249 2006-11-30  Jim Meyering  <jim@meyering.net>
68250
68251         * m4/warning.m4: Use the all-permissive copyright notice
68252         recommended by RMS (rather than LGPL).
68253         * m4/vararrays.m4: Likewise.
68254         * m4/flexmember.m4: Likewise.
68255
68256 2006-11-29  Bruno Haible  <bruno@clisp.org>
68257
68258         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68259         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
68260         using +=.
68261         Reported by Simon Josefsson <simon@josefsson.org>.
68262
68263 2006-11-28  James Youngman <jay@gnu.org>
68264
68265         * README: Advise users that they might find the bug-gnulib@gnu.org
68266         and autotools-announce@gnu.org mailing lists useful.
68267
68268 2006-11-28  Bruno Haible  <bruno@clisp.org>
68269
68270         * m4/ptrdiff_max.m4: Remove file.
68271
68272 2006-11-21  Bruno Haible  <bruno@clisp.org>
68273
68274         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
68275         _AC_COMPUTE_INT.
68276         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68277         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
68278         _AC_COMPUTE_INT.
68279         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68280         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
68281         _AC_COMPUTE_INT.
68282         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68283
68284 2006-11-28  Jim Meyering  <jim@meyering.net>
68285
68286         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
68287         warning from "gcc -Wshadow" about shadowing the builtin.
68288
68289 2006-11-27  Bruno Haible  <bruno@clisp.org>
68290
68291         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
68292         _AC_COMPUTE_INT.
68293         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68294
68295 2006-11-27  Bruno Haible  <bruno@clisp.org>
68296             Paul Eggert  <eggert@cs.ucla.edu>
68297
68298         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
68299
68300 2006-11-26  Bruno Haible  <bruno@clisp.org>
68301
68302         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68303         noinst_LTLIBRARIES.
68304
68305 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68306             Bruno Haible  <bruno@clisp.org>
68307
68308         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
68309         if compiling with "gcc -ansi".
68310
68311 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68312
68313         Fix some incompatibilities with gcc -ansi -pedantic.
68314         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
68315         if compiling pedantically with GCC, unless it's C99 or later.
68316         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
68317         it mishandles gcc -ansi -pedantic as well.
68318         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
68319         if gcc -pedantic.
68320         * lib/regexec.c (check_node_accept_bytes): Don't use auto
68321         initializers for struct if -pedantic, unless it's C99 or later.
68322
68323 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
68324
68325         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
68326         Don't close an fd more than once. Identical atimes indicate
68327         success, not failure.
68328
68329 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
68330
68331         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
68332
68333 2006-11-23  Jim Meyering  <jim@meyering.net>
68334
68335         * build-aux/announce-gen: New file.  From coreutils.
68336
68337 2006-11-22  Jim Meyering  <jim@meyering.net>
68338
68339         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
68340         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
68341         (fts_read): Use a temporary to narrow the overused st_size member
68342         before using it in a switch statement.  Reported by Matthew Woehlke.
68343
68344         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
68345         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68346
68347 2006-11-20  Bruno Haible  <bruno@clisp.org>
68348
68349         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
68350         changequote instead of pairs of brackets.
68351         Reported by Andreas Schwab <schwab@suse.de>.
68352
68353 2006-11-21  Jim Meyering  <jim@meyering.net>
68354
68355         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
68356         so as to remain compatible with older compilers.
68357         Patch from Michael Deutschmann.
68358
68359 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68360
68361         * MODULES.html.sh (File system functions): Add openat.
68362
68363         * lib/openat.h (rpl_fstatat): New macro, if
68364         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
68365         (fstatat): Define to rpl_fstatat under the same conditions,
68366         unless COMPILING_FSTATAT.
68367         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
68368         seems to have the bug.
68369         * lib/fstatat.c: New file.
68370         * modules/openat (Files): Add it.
68371
68372 2006-11-20  Bruno Haible  <bruno@clisp.org>
68373
68374         * Makefile: New file.
68375
68376 2006-11-20  Jim Meyering  <jim@meyering.net>
68377
68378         The beginnings of syntax-related checks for gnulib.
68379         * lib/Makefile: New file.
68380         * lib/t-idcache: New script.  Ensure that the two halves of
68381         idcache.c stay in sync.
68382
68383         * lib/idcache.c: Adjust comments in user- and group- portions to
68384         be more accurate, and to be consistent with one another.
68385
68386 2006-11-20  Jim Meyering  <jim@meyering.net>
68387
68388         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
68389         continue using the flexible array member (thus, this module performs
68390         half as many malloc calls), with the addition that...
68391         (getgroup, getuser): Consistently record a non-match via an empty
68392         "name" string, and map an empty string match to a NULL return value.
68393         * modules/idcache (Depends-on): Re-add flexmember.
68394
68395         * lib/idcache.c (getuser): Remove all uses of the register keyword.
68396         (getuidbyname, getgroup, getgidbyname): Likewise.
68397
68398         Use cleaner syntax: NULL rather than 0.
68399         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
68400
68401 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68402
68403         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
68404         It mishandled the case where the group was missing.
68405         Problem reported by Greg Schafer.
68406         * modules/idcache: Likewise.
68407
68408 2006-11-18  Jim Meyering  <jim@meyering.net>
68409
68410         * check-module (%exempt_header): Add exception for some
68411         conditionally-included headers.
68412
68413         * modules/i-ring (Depends-on): Add verify.
68414         (License): Change to LGPL.
68415
68416 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68417
68418         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
68419         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
68420         and inttostr.h.  Use snprintf rather than uinttostr, so that
68421         LGPLed code doesn't depend on GPLed.
68422
68423 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68424
68425         * modules/inline (License): Change from GPL to LGPL.
68426
68427 2006-11-17  Jim Meyering  <jim@meyering.net>
68428
68429         * modules/d-type (License): Switch to LGPL.
68430
68431 2006-11-15  Bruno Haible  <bruno@clisp.org>
68432
68433         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
68434
68435 2006-11-15  Eric Blake  <ebb9@byu.net>
68436
68437         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
68438         the module dependency.
68439
68440 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68441             Bruno Haible  <bruno@clisp.org>
68442
68443         * gnulib-tool (func_create_testdir): Add license consistency check.
68444
68445 2006-11-15  Eric Blake  <ebb9@byu.net>
68446
68447         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
68448         random "(cached)" in configure output.
68449
68450 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68451
68452         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
68453         test for conforming inttypes.h is both announced and cached.
68454
68455         * MODULES.html.sh (seen_modules, seen_files): New variables.
68456         (func_module): Rewrite to use a few less gnulib-tool and sed
68457         invocations.  Avoid a couple of quadratic algorithms for ...
68458         (missed_modules, missed_files): ... these, with ...
68459         (func_append, func_tmpdir): ... these new functions, from
68460         gnulib-tool.  Analogously, install traps for cleanup.
68461
68462         * tests/test-gc.c (main): Remove unused variables.
68463         * tests/test-read-file.c: Include stdlib.h, for 'free'.
68464
68465 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
68466
68467         * modules/inttostr (License): Change to LGPL.
68468
68469 2006-11-14  Eric Blake  <ebb9@byu.net>
68470
68471         * modules/tempname (License): Change to LGPL.
68472
68473 2006-11-14  Eric Blake  <ebb9@byu.net>
68474
68475         * doc/functions.texi (Function Portability): *printf functions on
68476         Cygwin now understand all POSIX size specifiers.
68477
68478 2006-11-14  Bruno Haible  <bruno@clisp.org>
68479
68480         * modules/c-ctype (License): Change to LGPL.
68481
68482 2006-11-12  Bruno Haible  <bruno@clisp.org>
68483
68484         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
68485         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
68486         for GNOME libraries, for which the include files are installed in
68487         subdirectories of $prefix/include.
68488
68489 2006-11-12  Bruno Haible  <bruno@clisp.org>
68490
68491         * m4/lib-link.m4: Require at least autoconf-2.54.
68492         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
68493         name to underscores for the --with option.
68494
68495 2006-11-13  Bruno Haible  <bruno@clisp.org>
68496
68497         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
68498         the tests directory.
68499         Reported by Ralf Wildenhues.
68500
68501 2006-11-13  Bruno Haible  <bruno@clisp.org>
68502
68503         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
68504         (func_emit_initmacro_end): Undo the override here.
68505         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
68506         Works around the famous automake error in coreutils.
68507
68508 2006-11-13  Eric Blake  <ebb9@byu.net>
68509
68510         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
68511         element, not its node.
68512
68513 2006-11-12  Bruno Haible  <bruno@clisp.org>
68514
68515         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
68516         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
68517
68518 2006-11-12  Bruno Haible  <bruno@clisp.org>
68519
68520         * gnulib-tool: New option --local-symlink.
68521         (func_usage): Document it.
68522         (lsymbolic): New variable.
68523         (func_import, func_create_testdir): If --symlink was not specified,
68524         test whether --local-symlink was specified and the file comes from
68525         the local_gnulib_dir.
68526
68527 2006-11-12  Bruno Haible  <bruno@clisp.org>
68528
68529         * gnulib-tool (func_ln): New function.
68530         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
68531
68532 2006-11-12  Bruno Haible  <bruno@clisp.org>
68533
68534         Finish support for source files in subdirectories.
68535         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
68536         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
68537         AUTOMAKE_OPTIONS.
68538         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
68539
68540 2006-11-12  Bruno Haible  <bruno@clisp.org>
68541
68542         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68543         EXTRA_lib_SOURCES augmentation.
68544         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
68545
68546 2006-11-12  Jim Meyering  <jim@meyering.net>
68547
68548         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
68549         file descriptors.  This also averts a failure on systems with
68550         native openat support when a traversed directory lacks "x" access.
68551         * lib/fts_.h: Include "i-ring.h"
68552         (struct FTS) [fts_fd_ring]: New member.
68553         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
68554         (FCHDIR): Add parentheses.
68555         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
68556         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
68557         When descending, rather than simply closing the previous
68558         fts_cwd_fd value, push that file descriptor onto the ring.
68559         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
68560         (fts_open): Initialize the new fd_ring member.
68561         (fts_close): Clear the ring.
68562         (fts_safe_changedir): When possible, use our new fd_ring to skip
68563         the diropen and fstat and dev/ino comparison that would normally
68564         accompany a virtual `chdir ("..")'.
68565
68566         * modules/fts (Depends-on): Add i-ring.
68567         * modules/i-ring: New module.
68568         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
68569         * m4/i-ring.m4: New file.
68570
68571 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68572
68573         * gnulib-tool (func_create_testdir): Fix replacement of
68574         `build-aux' in configure.ac.  Run autotools in gltests
68575         subdirectory.
68576         (func_create_testdir, func_create_megatestdir, test): There is
68577         no need for '--force' in most autotool invocations in a new
68578         tree.  Actually fail the whole test if any of the tools, or the
68579         configure or make stages fail.
68580
68581         Sync from Automake.
68582         * build-aux/gnupload: Revert last change.  Add pointer to upload
68583         instructions of the GNU Maintenance Instructions.
68584         Suggestion by Karl Berry.
68585
68586 2006-11-10  Jim Meyering  <jim@meyering.net>
68587
68588         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
68589
68590 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68591
68592         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
68593         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
68594         (bind_textdomain_codeset) [! ENABLE_NLS]:
68595         Evaluate all the arguments.  That way, callers get compatible behavior
68596         if the arguments have side effects.  Also, it avoids some GCC
68597         diagnostics in some cases; Joel E. Denny reported problems when Bison
68598         was configured with --enable-gcc-warnigs.
68599
68600 2006-11-10  Jim Meyering  <jim@meyering.net>
68601
68602         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
68603         relevant options in CFLAGS (like -O, -fno-inline) are taken into
68604         account.
68605
68606 2006-11-10  Jim Meyering  <jim@meyering.net>
68607
68608         * modules/inline: New file/module.
68609         * modules/xalloc (Files): Remove m4/inline.m4.
68610         (Depends-on): Add inline, instead.
68611         * modules/oset: Likewise.
68612         * modules/list: Likewise.
68613
68614 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68615
68616         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
68617         Problem reported by Matthew Woehlke.
68618
68619 2006-11-09  Bruno Haible  <bruno@clisp.org>
68620
68621         * lib/tempname.c (gen_tempname): Remove variant that invokes
68622         __gen_tempname.
68623         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
68624         __gen_tempname.
68625
68626 2006-11-08  Bruno Haible  <bruno@clisp.org>
68627
68628         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
68629         to 'yes' instead of 'cross-compiling'.
68630
68631 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
68632
68633         * lib/quotearg.h (quotearg_free): New decl.
68634         * lib/quotearg.c (quotearg_free): New function.
68635         (slot0, nslots, slotvec0, slotvec):
68636         Now file-scope so that quotearg_free can get at them.
68637
68638 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68639
68640         Sync from Automake.
68641         * build-aux/gnupload: Add missing 'gnu' to example URL.
68642         Report by Karl Berry.
68643
68644 2006-11-08  Bruno Haible  <bruno@clisp.org>
68645
68646         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
68647         Suggested by Paul Eggert.
68648
68649 2006-11-08  Jim Meyering  <jim@meyering.net>
68650
68651         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
68652         It's already included if !_LIBC.
68653         (fts_safe_changedir): Add a comment.
68654
68655 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68656
68657         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
68658         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
68659         Matthew Woehlke.
68660
68661         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
68662         definitions up, to avoid colliding with change below.
68663         (static_inline) [HAVE_INLINE]: New macro.
68664         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
68665         Provide extern decls when !HAVE_INLINE.  Do not define unless
68666         static_inline is defined, either by us or by xmalloc.c.  Use
68667         static_inline rather than static inline.
68668         (XCALLOC): Optimize sizeof(T) = 1 case.
68669         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
68670
68671 2006-11-07  Bruno Haible  <bruno@clisp.org>
68672
68673         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
68674         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
68675         AC_C_INLINE.
68676         * modules/xalloc (Files): Add m4/inline.m4.
68677
68678 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68679
68680         * README: Fix typo.
68681         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
68682         (Miscellanous Notes): ...from this.
68683
68684 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68685
68686         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
68687         Mention that offsetof should be used instead of sizeof.
68688         From Bruno Haible.
68689
68690 2006-11-07  Bruno Haible  <bruno@clisp.org>
68691
68692         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
68693
68694 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68695
68696         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68697         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
68698         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68699         (gl_tree_add_before, gl_tree_add_after):
68700         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
68701         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
68702         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68703         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
68704         (gl_linked_add_after, gl_linked_add_at): Likewise.
68705         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
68706         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68707         (gl_tree_add_before, gl_tree_add_after): Likewise.
68708         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
68709         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
68710         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
68711
68712 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68713
68714         * lib/gl_oset.h: Use C comment style, not C++ comment style.
68715
68716 2006-11-06  Bruno Haible  <bruno@clisp.org>
68717
68718         * m4/inline.m4: New file.
68719         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
68720         * modules/list (Files): Add m4/inline.m4.
68721         * modules/oset (Files): Likewise.
68722
68723 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68724
68725         * lib/idcache.c: Include <stddef.h>, for offsetof.
68726         (struct userid.name): Change from char * to a flexible array member.
68727         All uses changed.
68728         * modules/idcache (Depends-on): Add flexmember.
68729
68730         * MODULES.html.sh (Core language properties): New module flexmember.
68731         * modules/flexmember, m4/flexmember.m4: New files.
68732
68733         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
68734         inline functions that are identical with the old xnmalloc_inline,
68735         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
68736         that we can avoid some unnecessary integer multiplications and
68737         divisions in the common case where the element size is known at
68738         compile time.
68739         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
68740         needed.
68741         (xnboundedmalloc): Remove.
68742         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
68743         arguments, for consistency with rest of this header.
68744         (xcharalloc): Rewrite using XNMALLOC.
68745         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
68746         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
68747         versions have been moved to lib/xalloc.h and renamed to be the
68748         non-*_inline versions.
68749         (xmalloc, xrealloc): Implement without reference to the xnmalloc
68750         and xnrealloc functions, since those functions are now inline and
68751         now call us.
68752         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
68753         renaming described above.
68754         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
68755         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
68756         captures the dependency in AC_C_INLINE.
68757
68758         New module canonicalize-lgpl, proposed by Charles Wilson in
68759         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
68760         with a few small changes afterwards.
68761         * MODULES.html.sh (File system functions): New module
68762         canonicalize-lgpl.
68763         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
68764         and canonicalize_file_name.
68765         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
68766         * modules/canonicalize-lgpl: New files.
68767
68768 2006-11-05  Bruno Haible  <bruno@clisp.org>
68769
68770         * gnulib-tool (func_import, func_create_testdir): Create directories
68771         also for files in subdirectories of lib/.
68772
68773 2006-11-05  Bruno Haible  <bruno@clisp.org>
68774
68775         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
68776         ANSI C compliant.
68777
68778 2006-11-03  Bruno Haible  <bruno@clisp.org>
68779
68780         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68781         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
68782         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
68783         (xnboundedmalloc): New inline function.
68784         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
68785         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
68786         xmalloc.
68787         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
68788         xmalloc.
68789         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
68790         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
68791         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
68792         xmalloc.
68793         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68794         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
68795         xmalloc.
68796         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
68797         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68798         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
68799         xmalloc.
68800         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68801         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
68802         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68803         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
68804         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
68805         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
68806         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
68807
68808 2006-11-03  Bruno Haible  <bruno@clisp.org>
68809
68810         * lib/c-ctype.h [C++]: Define functions without name mangling.
68811         * lib/fwriteerror.h [C++]: Likewise.
68812         * lib/gcd.h [C++]: Likewise.
68813         * lib/linebreak.h [C++]: Likewise.
68814
68815 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68816
68817         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
68818         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
68819         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
68820         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68821         Check for functions and headers just once.
68822         Check for declaration of canonicalize_file_name.
68823         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
68824
68825 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68826
68827         * gnulib-tool (func_import): Fix typo in actioncmd.
68828
68829 2006-11-02  Bruno Haible  <bruno@clisp.org>
68830
68831         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
68832         newline sequence in the Makefile.am snippet as a space, like "make"
68833         does.
68834         Reported by Roger Persson <perrog@gmail.com>.
68835
68836 2006-11-01  Bruno Haible  <bruno@clisp.org>
68837
68838         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
68839         already declared in <string.h>.
68840         * lib/strcase.h (strncasecmp): Don't declare it if yes.
68841
68842 2006-11-01  Bruno Haible  <bruno@clisp.org>
68843
68844         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
68845         * lib/strcase.h: Include <string.h>.
68846         (strcasecmp): Define to rpl_strcasecmp here.
68847
68848 2006-11-01  Bruno Haible  <bruno@clisp.org>
68849
68850         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
68851
68852 2006-11-01  Eric Blake  <ebb9@byu.net>
68853
68854         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
68855
68856         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
68857
68858 2006-10-29  Bruno Haible  <bruno@clisp.org>
68859
68860         Make it compile in C++ mode.
68861         * lib/full-write.c (full_rw): Add a cast.
68862
68863 2006-11-01  Bruno Haible  <bruno@clisp.org>
68864
68865         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
68866         be POSIX compliant.
68867         Reported by Roger Persson <perrog@gmail.com>.
68868
68869 2006-11-01  Eric Blake  <ebb9@byu.net>
68870
68871         * lib/getopt_.h: Fix comments.
68872
68873 2006-10-31  Eric Blake  <ebb9@byu.net>
68874
68875         * modules/tmpdir (Depends-on): Add sys_stat.
68876         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
68877         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
68878         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
68879         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
68880         tempname.
68881
68882 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
68883
68884         Avoid some C++ diagnostics reported by Bruno Haible.
68885         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
68886         xmalloc.
68887         (quotearg_alloc): Use xcharalloc rather than xmalloc.
68888         (struct slotvec): Move to top level.
68889         (quotearg_n_options): Rewrite to avoid xmalloc.
68890         * lib/xalloc.h (xcharalloc): New function.
68891         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
68892         [defined __cplusplus]: Add function template that provides result
68893         type propagation.  This part of the change is from Bruno Haible.
68894
68895 2006-10-29  Bruno Haible  <bruno@clisp.org>
68896
68897         Make it compile in C++ mode.
68898         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
68899         * lib/strnlen1.c (strnlen1): Cast memchr result.
68900         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
68901         * lib/clean-temp.c (string_equals, string_hash): Add casts.
68902         (create_temp_dir): Rename local variable 'template'.
68903         (compile_csharp_using_sscli): Add cast.
68904         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
68905         * lib/findprog.c (find_in_path): Likewise.
68906         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
68907         * lib/wait-process.c (register_slave_subprocess): Likewise.
68908
68909 2006-10-22  Bruno Haible  <bruno@clisp.org>
68910
68911         * modules/tsearch: New file.
68912         * lib/tsearch.h: New file.
68913         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
68914         * m4/tsearch.m4: New file.
68915         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
68916
68917 2006-10-29  Eric Blake  <ebb9@byu.net>
68918
68919         * lib/arcfour.c: Assume config.h.
68920         * lib/arctwo.c: Likewise.
68921         * lib/base64.c: Likewise.
68922         * lib/check-version.c: Likewise.
68923         * lib/crc.c: Likewise.
68924         * lib/des.c: Likewise.
68925         * lib/gc-gnulib.c: Likewise.
68926         * lib/gc-libgcrypt.c: Likewise.
68927         * lib/gc-pbkdf2-sha1.c: Likewise.
68928         * lib/getaddrinfo.c: Likewise.
68929         * lib/getdelim.c: Likewise.
68930         * lib/getline.c: Likewise.
68931         * lib/hmac-md5.c: Likewise.
68932         * lib/hmac-sha1.c: Likewise.
68933         * lib/iconvme.c: Likewise.
68934         * lib/md2.c: Likewise.
68935         * lib/md4.c: Likewise.
68936         * lib/memxor.c: Likewise.
68937         * lib/read-file.c: Likewise.
68938         * lib/readline.c: Likewise.
68939         * lib/rijndael-alg-fst.c: Likewise.
68940         * lib/rijndael-api-fst.c: Likewise.
68941         * lib/xgetdomainname.c: Likewise.
68942
68943 2006-10-28  Eric Blake  <ebb9@byu.net>
68944
68945         * lib/xstrndup.c: Assume config.h.
68946
68947 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68948
68949         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
68950         stat-macros.h is now for our own macros, whereas stat_h is for
68951         macros in the <sys/stat.h> name space.
68952         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
68953         (STAT_MACROS_H): Remove.
68954         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
68955         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
68956         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
68957         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
68958         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
68959         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
68960         Move these macros to ...
68961         * lib/stat_.h: here.  Don't include stat-macros.h.
68962         * lib/canonicalize.c: Don't include stat-macros.h.
68963         * lib/chown.c: Likewise.
68964         * lib/euidaccess.c: Likewise.
68965         * lib/file-type.c: Likewise.
68966         * lib/filemode.c: Likewise.
68967         * lib/glob.c: Likewise.
68968         * lib/isapipe.c: Likewise.
68969         * lib/lchown.c: Likewise.
68970         * lib/lstat.c: Likewise.
68971         * lib/mkdir-p.c: Likewise.
68972         * lib/rmdir.c: Likewise.
68973         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
68974         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
68975         unless mkdir isn't declared, to speed up 'configure'.
68976         Always create sys/stat.h, since it's unlikely any real sys/stat.h
68977         would define all the S_* symbols.
68978         * modules/canonicalize (Depends-on):
68979         Depend on sys_stat, not stat-macros.
68980         * modules/chown: Likewise.
68981         * modules/euidaccess: Likewise.
68982         * modules/filemode: Likewise.
68983         * modules/file-type: Likewise.
68984         * modules/glob: Likewise.
68985         * modules/isapipe: Likewise.
68986         * modules/lchown: Likewise.
68987         * modules/lstat: Likewise.
68988         * modules/mkancesdirs: Likewise.
68989         * modules/rmdir: Likewise.
68990         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
68991         * modules/modechange: Likewise.
68992         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
68993         (configure.ac): Remove gl_STAT_MACROS.
68994         * modules/sys_stat (Depends-on): Remove stat-macros.
68995
68996 2006-10-27  Bruno Haible  <bruno@clisp.org>
68997
68998         * m4/signed.m4: Remove file.
68999         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
69000         invocation.
69001         * modules/vasnprintf (Files): Remove m4/signed.m4.
69002
69003 2006-10-27  Bruno Haible  <bruno@clisp.org>
69004
69005         Update to GNU gettext 0.16.
69006         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
69007         m4/inttypes-h.m4, m4/signed.m4.
69008         * m4/gettext.m4: Update to GNU gettext 0.16.
69009         * m4/intl.m4: New file, from GNU gettext.
69010         * m4/intldir.m4: New file, from GNU gettext.
69011         * config/srclist.txt: Update
69012
69013 2006-10-27  Eric Blake  <ebb9@byu.net>
69014
69015         * MODULES.html.sh: Document tempname.
69016         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
69017         dependencies.
69018         (Files): Move lib/tempname.c...
69019         * modules/tempname: ...to this new module.
69020         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
69021         (gl_PREREQ_TEMPNAME): Move...
69022         * m4/tempname.m4: ...to this new file.
69023         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
69024         * modules/sys_stat (Depends-on): Add stat-macros.
69025         * lib/stat_.h (includes): Pick up stat macros.
69026         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
69027         if stat macros are broken.
69028         * lib/tempname.c (includes): No need to include "stat-macros.h".
69029         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
69030         (direxists, __path_search) [!_LIBC]: Don't compile these in
69031         gnulib; the tmpdir module covers that.
69032         * lib/tempname.h: New file.
69033
69034 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
69035
69036         * COPYING: Explain how gnulib-tool converts licence headers.
69037         Almost all wording by Eric Blake.
69038
69039 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
69040
69041         * lib/mbchar.h (is_basic_table): Make read-only.
69042         * lib/mbchar.c (is_basic_table): Likewise.
69043         Reported by John Darrington.
69044
69045 2006-10-25  Bruno Haible  <bruno@clisp.org>
69046
69047         * lib/progname.h (set_program_name): Undefine before defining.
69048
69049 2006-10-25  Bruno Haible  <bruno@clisp.org>
69050
69051         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
69052         false for non-gcc C++ compilers.
69053         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
69054
69055 2006-10-24  Bruno Haible  <bruno@clisp.org>
69056
69057         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
69058         iconv implementations like Irix iconv.
69059
69060 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69061
69062         * modules/vararrays: New file.
69063         * m4/vararrays.m4: New file, taken from diffutils.
69064         * MODULES.html.sh: New module vararrays.
69065
69066 2006-10-24  Karl Berry  <karl@gnu.org>
69067
69068         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
69069         Don't call GNU Unix.
69070
69071 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69072
69073         * users.txt: Add Libtool.
69074
69075         Sync from Libtool:
69076
69077         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69078
69079         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
69080         to gnulib's policy of including config.h unconditionally.
69081
69082 2006-10-24  Bruno Haible  <bruno@clisp.org>
69083
69084         * modules/wcwidth (Files): Add m4/wint_t.m4.
69085         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
69086         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
69087
69088 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69089
69090         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
69091         to pacify GCC with some -W flags enabled.  Problem reported by
69092         Bruno Haible.
69093
69094 2006-10-24  Jim Meyering  <jim@meyering.net>
69095
69096         * MODULES.html.sh: Remove uinttostr.  It's not a module.
69097         Reported by Karl Berry.
69098
69099 2006-10-23  Bruno Haible  <bruno@clisp.org>
69100
69101         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
69102
69103 2006-10-24  Bruno Haible  <bruno@clisp.org>
69104
69105         * lib/gl_list.h: Use C comment style, not C++ comment style.
69106
69107 2006-10-23  Eric Blake  <ebb9@byu.net>
69108
69109         * lib/getaddrinfo.c (includes): Add missing include.
69110
69111 2006-10-23  Bruno Haible  <bruno@clisp.org>
69112             Paul Eggert  <eggert@cs.ucla.edu>
69113
69114         Ability to rename obstack_free.
69115         * lib/obstack.h (__obstack_free): New macro. Declare instead of
69116         obstack_free.
69117         (obstack_free): Invoke the __obstack_free macro.
69118         * lib/obstack.c (obstack_free): Use __obstack_free macro.
69119
69120 2006-10-23  Bruno Haible  <bruno@clisp.org>
69121             Paul Eggert  <eggert@cs.ucla.edu>
69122
69123         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
69124         __argc, __argv from the declaration. (They are defined as macros on
69125         mingw.)
69126
69127 2006-10-22  Bruno Haible  <bruno@clisp.org>
69128
69129         * doc/gnulib-intro.texi: New file.
69130         * doc/gnulib.texi: Include it.
69131
69132 2006-10-21  Bruno Haible  <bruno@clisp.org>
69133
69134         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
69135         "Introduction", "Miscellanous Notes", "Particular Modules".
69136
69137 2006-10-21  Bruno Haible  <bruno@clisp.org>
69138
69139         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69140         Change mostlyclean-local rule to avoid sh syntax error from bash
69141         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
69142
69143 2006-10-23  Jim Meyering  <jim@meyering.net>
69144
69145         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
69146         in place of snprintf.
69147
69148         * modules/inttostr (Files): Add lib/uinttostr.c.
69149         * lib/uinttostr.c (inttostr): New file/function.
69150         * lib/inttostr.h (uinttostr): Declare.
69151         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
69152         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69153         Add uinttostr.
69154         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
69155
69156 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69157
69158         * lib/canonicalize.c (ELOOP): Define if not already defined.
69159         Problem reported by Bruno Haible in
69160         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
69161
69162 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69163
69164         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
69165         Problem reported by Perry Smith and Ville Laurikari.
69166
69167         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
69168         uses.
69169
69170 2006-10-19  Bruno Haible  <bruno@clisp.org>
69171
69172         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
69173         for mingw.
69174
69175 2006-10-19  Bruno Haible  <bruno@clisp.org>
69176
69177         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
69178         Needed for mingw.
69179
69180 2006-10-19  Bruno Haible  <bruno@clisp.org>
69181
69182         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
69183
69184 2006-10-19  Bruno Haible  <bruno@clisp.org>
69185
69186         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
69187         it.
69188
69189 2006-10-19  Bruno Haible  <bruno@clisp.org>
69190
69191         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
69192         invocation.
69193
69194 2006-10-19  Bruno Haible  <bruno@clisp.org>
69195
69196         * gnulib-tool (func_create_testdir): Don't include ftruncate and
69197         mountlist by default.
69198
69199 2006-10-16  Bruno Haible  <bruno@clisp.org>
69200
69201         * lib/c-strstr.c: Include c-strstr.h.
69202
69203 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69204
69205         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
69206         in a slash.
69207
69208 2006-10-18  Bruno Haible  <bruno@clisp.org>
69209
69210         * lib/lock.h [C++]: Wrap definitions in extern "C".
69211
69212 2006-10-18  Bruno Haible  <bruno@clisp.org>
69213
69214         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
69215         gl_LIBOBJS list.
69216
69217 2006-10-18  Bruno Haible  <bruno@clisp.org>
69218
69219         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
69220
69221 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
69222
69223         * lib/xstrtol.h: Include gettext.h.
69224         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
69225         Problem reported by Eric Blake.
69226         * modules/xstrtol (Depends-on): Add gettext-h.
69227
69228 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
69229
69230         * lib/strftime.c (advance): New macro.
69231         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
69232         incomplete type, so you can't add 0 to it.  Problem and patch
69233         reported by Eelco Dolstra for dietlibc.
69234
69235 2006-10-18  Jim Meyering  <jim@meyering.net>
69236
69237         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
69238         type for a local, and rename it: s/up/user_proc/.
69239
69240 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
69241
69242         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
69243         READ_UTMP_USER_PROCESS.
69244         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
69245
69246 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69247
69248         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
69249         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
69250
69251 2006-10-17  Eric Blake  <ebb9@byu.net>
69252
69253         * lib/sigprocmask.c (sigprocmask): Fix typo.
69254
69255         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
69256
69257         * modules/clean-temp (Makefile.am): Don't add to make output...
69258         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
69259         config.h.
69260
69261 2006-10-17  Bruno Haible  <bruno@clisp.org>
69262
69263         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
69264         differently if DEFAULT_TEXT_DOMAIN is set.
69265
69266 2006-10-16  Bruno Haible  <bruno@clisp.org>
69267
69268         * lib/clean-temp.c: Include fwriteerror.h.
69269
69270 2006-10-16  Bruno Haible  <bruno@clisp.org>
69271
69272         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
69273
69274 2006-10-16  Bruno Haible  <bruno@clisp.org>
69275
69276         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
69277         * lib/sigprocmask.h: Include <sys/types.h>.
69278         (sigset_t): Use the system's definition if present.
69279
69280 2006-10-17  Eric Blake  <ebb9@byu.net>
69281
69282         * lib/xvasprintf.c (includes): Assume config.h.
69283         * lib/xasprintf.c (includes): Likewise.
69284
69285 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
69286
69287         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
69288         at least as wide as intmax_t.
69289
69290 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
69291
69292         (Imported from Automake.)
69293         * build-aux/gnupload: Update to version 1.1 of directive file.
69294
69295 2006-10-16  Eric Blake  <ebb9@byu.net>
69296
69297         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
69298         match Automake 1.10a.
69299
69300 2006-10-14  Bruno Haible  <bruno@clisp.org>
69301
69302         * modules/sigprocmask: New file.
69303         * lib/sigprocmask.h: New file.
69304         * lib/sigprocmask.c: New file.
69305         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
69306         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
69307         request sigprocmask.o.
69308         (gl_PREREQ_SIGPROCMASK): New macro.
69309         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
69310         (Depends-on): Add sigprocmask.
69311         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
69312         gt_SIGNALBLOCKING. Test for 'raise' only once.
69313         * lib/fatal-signal.c: Include sigprocmask.h.
69314         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
69315         unblock_fatal_signals): Define always.
69316         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69317         sigprocmask.
69318
69319 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69320
69321         Sync from Automake.
69322         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
69323         which incorrectly sets the mode of an existing destination
69324         directory.  In some cases the unpatched install-sh could do the
69325         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
69326         system.  We hope this is rare in practice, but it's clearly worth
69327         fixing.  Problem reported by Alex Unleashed in
69328         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
69329         Also, don't bother to check for -m bugs unless we're using -m;
69330         suggested by Stepan Kasal.
69331
69332 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69333
69334         Sync from Automake.
69335         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
69336         `-c' flag, so they appear at the same position as in %FASTDEP%
69337         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
69338         which ignores unknown options only after the first non-option.
69339         Bug report against M4 by Nelson H. F. Beebe.
69340
69341 2006-10-13  Jim Meyering  <jim@meyering.net>
69342
69343         Fix a bug in yesterday's change.
69344         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
69345         p->fts_statp->st_dev would be used uninitialized.
69346         Ensures that we always call fts_stat on the very first entry.
69347         Miklos Szeredi reported that find -xdev stopped working.
69348
69349 2006-10-12  Bruno Haible  <bruno@clisp.org>
69350
69351         * gnulib-tool (func_get_automake_snippet): Append an automatically
69352         computed EXTRA_DIST augmentation.
69353         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
69354         * modules/alloca-opt (Makefile.am): Likewise.
69355         * modules/allocsa (Makefile.am): Likewise.
69356         * modules/arcfour (Makefile.am): Likewise.
69357         * modules/arctwo (Makefile.am): Likewise.
69358         * modules/argmatch (Makefile.am): Likewise.
69359         * modules/argz (Makefile.am): Likewise.
69360         * modules/atexit (Makefile.am): Likewise.
69361         * modules/backupfile (Makefile.am): Likewise.
69362         * modules/byteswap (Makefile.am): Likewise.
69363         * modules/c-strtod (Makefile.am): Likewise.
69364         * modules/c-strtold (Makefile.am): Likewise.
69365         * modules/calloc (Makefile.am): Likewise.
69366         * modules/canon-host (Makefile.am): Likewise.
69367         * modules/canonicalize (Makefile.am): Likewise.
69368         * modules/chdir-long (Makefile.am): Likewise.
69369         * modules/chdir-safer (Makefile.am): Likewise.
69370         * modules/check-version (Makefile.am): Likewise.
69371         * modules/chown (Makefile.am): Likewise.
69372         * modules/cloexec (Makefile.am): Likewise.
69373         * modules/close-stream (Makefile.am): Likewise.
69374         * modules/closeout (Makefile.am): Likewise.
69375         * modules/crc (Makefile.am): Likewise.
69376         * modules/csharpexec (Makefile.am): Likewise.
69377         * modules/cycle-check (Makefile.am): Likewise.
69378         * modules/des (Makefile.am): Likewise.
69379         * modules/dev-ino (Makefile.am): Likewise.
69380         * modules/dirfd (Makefile.am): Likewise.
69381         * modules/dirname (Makefile.am): Likewise.
69382         * modules/dup2 (Makefile.am): Likewise.
69383         * modules/eealloc (Makefile.am): Likewise.
69384         * modules/error (Makefile.am): Likewise.
69385         * modules/euidaccess (Makefile.am): Likewise.
69386         * modules/exclude (Makefile.am): Likewise.
69387         * modules/exitfail (Makefile.am): Likewise.
69388         * modules/fcntl-safer (Makefile.am): Likewise.
69389         * modules/fcntl (Makefile.am): Likewise.
69390         * modules/file-type (Makefile.am): Likewise.
69391         * modules/fileblocks (Makefile.am): Likewise.
69392         * modules/filemode (Makefile.am): Likewise.
69393         * modules/filenamecat (Makefile.am): Likewise.
69394         * modules/fnmatch (Makefile.am): Likewise.
69395         * modules/fopen-safer (Makefile.am): Likewise.
69396         * modules/fpending (Makefile.am): Likewise.
69397         * modules/fprintftime (Makefile.am): Likewise.
69398         * modules/free (Makefile.am): Likewise.
69399         * modules/fsusage (Makefile.am): Likewise.
69400         * modules/ftruncate (Makefile.am): Likewise.
69401         * modules/fts (Makefile.am): Likewise.
69402         * modules/gc-arcfour (Makefile.am): Likewise.
69403         * modules/gc-des (Makefile.am): Likewise.
69404         * modules/gc-hmac-md5 (Makefile.am): Likewise.
69405         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
69406         * modules/gc-md4 (Makefile.am): Likewise.
69407         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69408         * modules/gc-sha1 (Makefile.am): Likewise.
69409         * modules/gc (Makefile.am): Likewise.
69410         * modules/getaddrinfo (Makefile.am): Likewise.
69411         * modules/getcwd (Makefile.am): Likewise.
69412         * modules/getdelim (Makefile.am): Likewise.
69413         * modules/getdomainname (Makefile.am): Likewise.
69414         * modules/getgroups (Makefile.am): Likewise.
69415         * modules/gethostname (Makefile.am): Likewise.
69416         * modules/gethrxtime (Makefile.am): Likewise.
69417         * modules/getline (Makefile.am): Likewise.
69418         * modules/getloadavg (Makefile.am): Likewise.
69419         * modules/getlogin_r (Makefile.am): Likewise.
69420         * modules/getndelim2 (Makefile.am): Likewise.
69421         * modules/getopt (Makefile.am): Likewise.
69422         * modules/getpagesize (Makefile.am): Likewise.
69423         * modules/getpass-gnu (Makefile.am): Likewise.
69424         * modules/getpass (Makefile.am): Likewise.
69425         * modules/getsubopt (Makefile.am): Likewise.
69426         * modules/gettime (Makefile.am): Likewise.
69427         * modules/gettimeofday (Makefile.am): Likewise.
69428         * modules/getugroups (Makefile.am): Likewise.
69429         * modules/getusershell (Makefile.am): Likewise.
69430         * modules/glob (Makefile.am): Likewise.
69431         * modules/group-member (Makefile.am): Likewise.
69432         * modules/hard-locale (Makefile.am): Likewise.
69433         * modules/hash (Makefile.am): Likewise.
69434         * modules/hmac-md5 (Makefile.am): Likewise.
69435         * modules/hmac-sha1 (Makefile.am): Likewise.
69436         * modules/human (Makefile.am): Likewise.
69437         * modules/idcache (Makefile.am): Likewise.
69438         * modules/imaxabs (Makefile.am): Likewise.
69439         * modules/imaxdiv (Makefile.am): Likewise.
69440         * modules/inet_ntop (Makefile.am): Likewise.
69441         * modules/inet_pton (Makefile.am): Likewise.
69442         * modules/intprops (Makefile.am): Likewise.
69443         * modules/inttostr (Makefile.am): Likewise.
69444         * modules/inttypes (Makefile.am): Likewise.
69445         * modules/isapipe (Makefile.am): Likewise.
69446         * modules/javaversion (Makefile.am): Likewise.
69447         * modules/lchmod (Makefile.am): Likewise.
69448         * modules/lchown (Makefile.am): Likewise.
69449         * modules/localcharset (Makefile.am): Likewise.
69450         * modules/long-options (Makefile.am): Likewise.
69451         * modules/lstat (Makefile.am): Likewise.
69452         * modules/malloc (Makefile.am): Likewise.
69453         * modules/mathl (Makefile.am): Likewise.
69454         * modules/mbchar (Makefile.am): Likewise.
69455         * modules/md2 (Makefile.am): Likewise.
69456         * modules/md4 (Makefile.am): Likewise.
69457         * modules/md5 (Makefile.am): Likewise.
69458         * modules/memcasecmp (Makefile.am): Likewise.
69459         * modules/memchr (Makefile.am): Likewise.
69460         * modules/memcmp (Makefile.am): Likewise.
69461         * modules/memcoll (Makefile.am): Likewise.
69462         * modules/memcpy (Makefile.am): Likewise.
69463         * modules/memmem (Makefile.am): Likewise.
69464         * modules/memmove (Makefile.am): Likewise.
69465         * modules/mempcpy (Makefile.am): Likewise.
69466         * modules/memrchr (Makefile.am): Likewise.
69467         * modules/memset (Makefile.am): Likewise.
69468         * modules/memxor (Makefile.am): Likewise.
69469         * modules/mkancesdirs (Makefile.am): Likewise.
69470         * modules/mkdir-p (Makefile.am): Likewise.
69471         * modules/mkdir (Makefile.am): Likewise.
69472         * modules/mkdtemp (Makefile.am): Likewise.
69473         * modules/mkstemp (Makefile.am): Likewise.
69474         * modules/mktime (Makefile.am): Likewise.
69475         * modules/modechange (Makefile.am): Likewise.
69476         * modules/mountlist (Makefile.am): Likewise.
69477         * modules/nanosleep (Makefile.am): Likewise.
69478         * modules/obstack (Makefile.am): Likewise.
69479         * modules/openat (Makefile.am): Likewise.
69480         * modules/pagealign_alloc (Makefile.am): Likewise.
69481         * modules/pathmax (Makefile.am): Likewise.
69482         * modules/physmem (Makefile.am): Likewise.
69483         * modules/poll (Makefile.am): Likewise.
69484         * modules/posixtm (Makefile.am): Likewise.
69485         * modules/posixver (Makefile.am): Likewise.
69486         * modules/putenv (Makefile.am): Likewise.
69487         * modules/quote (Makefile.am): Likewise.
69488         * modules/quotearg (Makefile.am): Likewise.
69489         * modules/raise (Makefile.am): Likewise.
69490         * modules/read-file (Makefile.am): Likewise.
69491         * modules/readline (Makefile.am): Likewise.
69492         * modules/readlink (Makefile.am): Likewise.
69493         * modules/readtokens (Makefile.am): Likewise.
69494         * modules/readutmp (Makefile.am): Likewise.
69495         * modules/realloc (Makefile.am): Likewise.
69496         * modules/regex (Makefile.am): Likewise.
69497         * modules/rename-dest-slash (Makefile.am): Likewise.
69498         * modules/rename (Makefile.am): Likewise.
69499         * modules/rijndael (Makefile.am): Likewise.
69500         * modules/rmdir (Makefile.am): Likewise.
69501         * modules/rpmatch (Makefile.am): Likewise.
69502         * modules/safe-read (Makefile.am): Likewise.
69503         * modules/safe-write (Makefile.am): Likewise.
69504         * modules/same-inode (Makefile.am): Likewise.
69505         * modules/same (Makefile.am): Likewise.
69506         * modules/save-cwd (Makefile.am): Likewise.
69507         * modules/savedir (Makefile.am): Likewise.
69508         * modules/setenv (Makefile.am): Likewise.
69509         * modules/settime (Makefile.am): Likewise.
69510         * modules/sha1 (Makefile.am): Likewise.
69511         * modules/sig2str (Makefile.am): Likewise.
69512         * modules/snprintf (Makefile.am): Likewise.
69513         * modules/stat-macros (Makefile.am): Likewise.
69514         * modules/stat-time (Makefile.am): Likewise.
69515         * modules/stdbool (Makefile.am): Likewise.
69516         * modules/stdint (Makefile.am): Likewise.
69517         * modules/stdlib-safer (Makefile.am): Likewise.
69518         * modules/stpcpy (Makefile.am): Likewise.
69519         * modules/stpncpy (Makefile.am): Likewise.
69520         * modules/strcase (Makefile.am): Likewise.
69521         * modules/strcasestr (Makefile.am): Likewise.
69522         * modules/strchrnul (Makefile.am): Likewise.
69523         * modules/strcspn (Makefile.am): Likewise.
69524         * modules/strdup (Makefile.am): Likewise.
69525         * modules/strerror (Makefile.am): Likewise.
69526         * modules/strftime (Makefile.am): Likewise.
69527         * modules/strndup (Makefile.am): Likewise.
69528         * modules/strnlen (Makefile.am): Likewise.
69529         * modules/strpbrk (Makefile.am): Likewise.
69530         * modules/strsep (Makefile.am): Likewise.
69531         * modules/strstr (Makefile.am): Likewise.
69532         * modules/strtod (Makefile.am): Likewise.
69533         * modules/strtoimax (Makefile.am): Likewise.
69534         * modules/strtok_r (Makefile.am): Likewise.
69535         * modules/strtol (Makefile.am): Likewise.
69536         * modules/strtoll (Makefile.am): Likewise.
69537         * modules/strtoul (Makefile.am): Likewise.
69538         * modules/strtoull (Makefile.am): Likewise.
69539         * modules/strtoumax (Makefile.am): Likewise.
69540         * modules/strverscmp (Makefile.am): Likewise.
69541         * modules/sys_socket (Makefile.am): Likewise.
69542         * modules/sys_stat (Makefile.am): Likewise.
69543         * modules/sysexits (Makefile.am): Likewise.
69544         * modules/time_r (Makefile.am): Likewise.
69545         * modules/timegm (Makefile.am): Likewise.
69546         * modules/timespec (Makefile.am): Likewise.
69547         * modules/tmpfile-safer (Makefile.am): Likewise.
69548         * modules/trim (Makefile.am): Likewise.
69549         * modules/unistd-safer (Makefile.am): Likewise.
69550         * modules/unlinkdir (Makefile.am): Likewise.
69551         * modules/unlocked-io (Makefile.am): Likewise.
69552         * modules/userspec (Makefile.am): Likewise.
69553         * modules/utime (Makefile.am): Likewise.
69554         * modules/utimecmp (Makefile.am): Likewise.
69555         * modules/utimens (Makefile.am): Likewise.
69556         * modules/vasnprintf (Makefile.am): Likewise.
69557         * modules/vasprintf (Makefile.am): Likewise.
69558         * modules/vsnprintf (Makefile.am): Likewise.
69559         * modules/xalloc (Makefile.am): Likewise.
69560         * modules/xgetcwd (Makefile.am): Likewise.
69561         * modules/xnanosleep (Makefile.am): Likewise.
69562         * modules/xreadlink (Makefile.am): Likewise.
69563         * modules/xstrtod (Makefile.am): Likewise.
69564         * modules/xstrtol (Makefile.am): Likewise.
69565         * modules/xstrtold (Makefile.am): Likewise.
69566         * modules/yesno (Makefile.am): Likewise.
69567         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
69568
69569 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * modules/error (Makefile.am): Distribute files through
69572         EXTRA_DIST, not lib_SOURCES.
69573
69574 2006-10-12  Eric Blake  <ebb9@byu.net>
69575
69576         * modules/error (Makefile.am): Distribute files in /lib.
69577         * modules/obstack (Makefile.am): Likewise.
69578
69579 2006-10-12  Bruno Haible  <bruno@clisp.org>
69580
69581         * modules/acl (Makefile.am): Distribute all files in lib/ through
69582         EXTRA_DIST.
69583         * modules/arcfour (Makefile.am): Likewise.
69584         * modules/arctwo (Makefile.am): Likewise.
69585         * modules/argmatch (Makefile.am): Likewise.
69586         * modules/argz (Makefile.am): Likewise.
69587         * modules/atexit (Makefile.am): Likewise.
69588         * modules/backupfile (Makefile.am): Likewise.
69589         * modules/c-strtod (Makefile.am): Likewise.
69590         * modules/c-strtold (Makefile.am): Likewise.
69591         * modules/calloc (Makefile.am): Likewise.
69592         * modules/canon-host (Makefile.am): Likewise.
69593         * modules/canonicalize (Makefile.am): Likewise.
69594         * modules/chdir-long (Makefile.am): Likewise.
69595         * modules/chdir-safer (Makefile.am): Likewise.
69596         * modules/check-version (Makefile.am): Likewise.
69597         * modules/chown (Makefile.am): Likewise.
69598         * modules/cloexec (Makefile.am): Likewise.
69599         * modules/close-stream (Makefile.am): Likewise.
69600         * modules/closeout (Makefile.am): Likewise.
69601         * modules/crc (Makefile.am): Likewise.
69602         * modules/cycle-check (Makefile.am): Likewise.
69603         * modules/des (Makefile.am): Likewise.
69604         * modules/dirfd (Makefile.am): Likewise.
69605         * modules/dirname (Makefile.am): Likewise.
69606         * modules/dup2 (Makefile.am): Likewise.
69607         * modules/euidaccess (Makefile.am): Likewise.
69608         * modules/exclude (Makefile.am): Likewise.
69609         * modules/exitfail (Makefile.am): Likewise.
69610         * modules/fcntl-safer (Makefile.am): Likewise.
69611         * modules/file-type (Makefile.am): Likewise.
69612         * modules/fileblocks (Makefile.am): Likewise.
69613         * modules/filemode (Makefile.am): Likewise.
69614         * modules/filenamecat (Makefile.am): Likewise.
69615         * modules/fnmatch (Makefile.am): Likewise.
69616         * modules/fopen-safer (Makefile.am): Likewise.
69617         * modules/fpending (Makefile.am): Likewise.
69618         * modules/fprintftime (Makefile.am): Likewise.
69619         * modules/free (Makefile.am): Likewise.
69620         * modules/fsusage (Makefile.am): Likewise.
69621         * modules/ftruncate (Makefile.am): Likewise.
69622         * modules/fts (Makefile.am): Likewise.
69623         * modules/gc (Makefile.am): Likewise.
69624         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69625         * modules/getaddrinfo (Makefile.am): Likewise.
69626         * modules/getcwd (Makefile.am): Likewise.
69627         * modules/getdelim (Makefile.am): Likewise.
69628         * modules/getdomainname (Makefile.am): Likewise.
69629         * modules/getgroups (Makefile.am): Likewise.
69630         * modules/gethostname (Makefile.am): Likewise.
69631         * modules/gethrxtime (Makefile.am): Likewise.
69632         * modules/getline (Makefile.am): Likewise.
69633         * modules/getloadavg (Makefile.am): Likewise.
69634         * modules/getlogin_r (Makefile.am): Likewise.
69635         * modules/getopt (Makefile.am): Likewise.
69636         * modules/getpass (Makefile.am): Likewise.
69637         * modules/getpass-gnu (Makefile.am): Likewise.
69638         * modules/getsubopt (Makefile.am): Likewise.
69639         * modules/gettime (Makefile.am): Likewise.
69640         * modules/gettimeofday (Makefile.am): Likewise.
69641         * modules/getugroups (Makefile.am): Likewise.
69642         * modules/getusershell (Makefile.am): Likewise.
69643         * modules/glob (Makefile.am): Likewise.
69644         * modules/group-member (Makefile.am): Likewise.
69645         * modules/hard-locale (Makefile.am): Likewise.
69646         * modules/hash (Makefile.am): Likewise.
69647         * modules/hmac-md5 (Makefile.am): Likewise.
69648         * modules/hmac-sha1 (Makefile.am): Likewise.
69649         * modules/human (Makefile.am): Likewise.
69650         * modules/idcache (Makefile.am): Likewise.
69651         * modules/imaxabs (Makefile.am): Likewise.
69652         * modules/imaxdiv (Makefile.am): Likewise.
69653         * modules/inet_ntop (Makefile.am): Likewise.
69654         * modules/inet_pton (Makefile.am): Likewise.
69655         * modules/inttostr (Makefile.am): Likewise.
69656         * modules/isapipe (Makefile.am): Likewise.
69657         * modules/lchown (Makefile.am): Likewise.
69658         * modules/long-options (Makefile.am): Likewise.
69659         * modules/lstat (Makefile.am): Likewise.
69660         * modules/malloc (Makefile.am): Likewise.
69661         * modules/mathl (Makefile.am): Likewise.
69662         * modules/mbchar (Makefile.am): Likewise.
69663         * modules/md2 (Makefile.am): Likewise.
69664         * modules/md4 (Makefile.am): Likewise.
69665         * modules/md5 (Makefile.am): Likewise.
69666         * modules/memcasecmp (Makefile.am): Likewise.
69667         * modules/memchr (Makefile.am): Likewise.
69668         * modules/memcmp (Makefile.am): Likewise.
69669         * modules/memcoll (Makefile.am): Likewise.
69670         * modules/memcpy (Makefile.am): Likewise.
69671         * modules/memmem (Makefile.am): Likewise.
69672         * modules/memmove (Makefile.am): Likewise.
69673         * modules/mempcpy (Makefile.am): Likewise.
69674         * modules/memrchr (Makefile.am): Likewise.
69675         * modules/memset (Makefile.am): Likewise.
69676         * modules/memxor (Makefile.am): Likewise.
69677         * modules/mkancesdirs (Makefile.am): Likewise.
69678         * modules/mkdir (Makefile.am): Likewise.
69679         * modules/mkdir-p (Makefile.am): Likewise.
69680         * modules/mkdtemp (Makefile.am): Likewise.
69681         * modules/mkstemp (Makefile.am): Likewise.
69682         * modules/mktime (Makefile.am): Likewise.
69683         * modules/modechange (Makefile.am): Likewise.
69684         * modules/mountlist (Makefile.am): Likewise.
69685         * modules/nanosleep (Makefile.am): Likewise.
69686         * modules/openat (Makefile.am): Likewise.
69687         * modules/pagealign_alloc (Makefile.am): Likewise.
69688         * modules/physmem (Makefile.am): Likewise.
69689         * modules/poll (Makefile.am): Likewise.
69690         * modules/posixtm (Makefile.am): Likewise.
69691         * modules/posixver (Makefile.am): Likewise.
69692         * modules/putenv (Makefile.am): Likewise.
69693         * modules/quote (Makefile.am): Likewise.
69694         * modules/quotearg (Makefile.am): Likewise.
69695         * modules/raise (Makefile.am): Likewise.
69696         * modules/read-file (Makefile.am): Likewise.
69697         * modules/readline (Makefile.am): Likewise.
69698         * modules/readlink (Makefile.am): Likewise.
69699         * modules/readtokens (Makefile.am): Likewise.
69700         * modules/readutmp (Makefile.am): Likewise.
69701         * modules/realloc (Makefile.am): Likewise.
69702         * modules/regex (Makefile.am): Likewise.
69703         * modules/rename (Makefile.am): Likewise.
69704         * modules/rename-dest-slash (Makefile.am): Likewise.
69705         * modules/rijndael (Makefile.am): Likewise.
69706         * modules/rmdir (Makefile.am): Likewise.
69707         * modules/rpmatch (Makefile.am): Likewise.
69708         * modules/safe-read (Makefile.am): Likewise.
69709         * modules/safe-write (Makefile.am): Likewise.
69710         * modules/same (Makefile.am): Likewise.
69711         * modules/save-cwd (Makefile.am): Likewise.
69712         * modules/savedir (Makefile.am): Likewise.
69713         * modules/setenv (Makefile.am): Likewise.
69714         * modules/settime (Makefile.am): Likewise.
69715         * modules/sha1 (Makefile.am): Likewise.
69716         * modules/sig2str (Makefile.am): Likewise.
69717         * modules/snprintf (Makefile.am): Likewise.
69718         * modules/stdlib-safer (Makefile.am): Likewise.
69719         * modules/stpcpy (Makefile.am): Likewise.
69720         * modules/stpncpy (Makefile.am): Likewise.
69721         * modules/strcase (Makefile.am): Likewise.
69722         * modules/strcasestr (Makefile.am): Likewise.
69723         * modules/strchrnul (Makefile.am): Likewise.
69724         * modules/strcspn (Makefile.am): Likewise.
69725         * modules/strdup (Makefile.am): Likewise.
69726         * modules/strerror (Makefile.am): Likewise.
69727         * modules/strftime (Makefile.am): Likewise.
69728         * modules/strndup (Makefile.am): Likewise.
69729         * modules/strnlen (Makefile.am): Likewise.
69730         * modules/strpbrk (Makefile.am): Likewise.
69731         * modules/strsep (Makefile.am): Likewise.
69732         * modules/strstr (Makefile.am): Likewise.
69733         * modules/strtod (Makefile.am): Likewise.
69734         * modules/strtoimax (Makefile.am): Likewise.
69735         * modules/strtok_r (Makefile.am): Likewise.
69736         * modules/strtol (Makefile.am): Likewise.
69737         * modules/strtoll (Makefile.am): Likewise.
69738         * modules/strtoul (Makefile.am): Likewise.
69739         * modules/strtoull (Makefile.am): Likewise.
69740         * modules/strtoumax (Makefile.am): Likewise.
69741         * modules/strverscmp (Makefile.am): Likewise.
69742         * modules/time_r (Makefile.am): Likewise.
69743         * modules/timegm (Makefile.am): Likewise.
69744         * modules/tmpfile-safer (Makefile.am): Likewise.
69745         * modules/unistd-safer (Makefile.am): Likewise.
69746         * modules/unlinkdir (Makefile.am): Likewise.
69747         * modules/userspec (Makefile.am): Likewise.
69748         * modules/utime (Makefile.am): Likewise.
69749         * modules/utimecmp (Makefile.am): Likewise.
69750         * modules/utimens (Makefile.am): Likewise.
69751         * modules/vasnprintf (Makefile.am): Likewise.
69752         * modules/vasprintf (Makefile.am): Likewise.
69753         * modules/vsnprintf (Makefile.am): Likewise.
69754         * modules/xalloc (Makefile.am): Likewise.
69755         * modules/xgetcwd (Makefile.am): Likewise.
69756         * modules/xnanosleep (Makefile.am): Likewise.
69757         * modules/xreadlink (Makefile.am): Likewise.
69758         * modules/xstrtod (Makefile.am): Likewise.
69759         * modules/xstrtol (Makefile.am): Likewise.
69760         * modules/xstrtold (Makefile.am): Likewise.
69761         * modules/yesno (Makefile.am): Likewise.
69762
69763 2006-10-12  Jim Meyering  <jim@meyering.net>
69764
69765         * m4/getloadavg.m4: Revert the change below.
69766
69767         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
69768         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
69769         fail with a symlink, which is what coreutils' ./bootstrap now
69770         creates by default.
69771
69772 2006-10-12  Bruno Haible  <bruno@clisp.org>
69773
69774         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
69775         mingw.
69776         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
69777         MSVC and mingw explicitly.
69778
69779 2006-10-11  Simon Josefsson  <jas@extundo.com>
69780             Bruno Haible  <bruno@clisp.org>
69781
69782         Add support for multiple gnulib-tool invocations in the scope of a
69783         single configure.ac file.
69784         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
69785         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
69786         with the same contents as the _LIBADD variable.
69787         (func_emit_initmacro_start, func_emit_initmacro_end,
69788         func_emit_initmacro_done): New functions.
69789         (func_import, func_create_testdir): Invoke them. Allow the identifiers
69790         gl_LIBOBJS and gl_LTLIBOBJS.
69791
69792 2006-10-11  Bruno Haible  <bruno@clisp.org>
69793
69794         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
69795         (func_create_testdir): Don't create po/Makefile.am, don't invoke
69796         autoreconf. Instead, invoke autopoint explicitly but move back the
69797         *.m4 files from gnulib.
69798
69799 2006-10-11  Bruno Haible  <bruno@clisp.org>
69800
69801         * gnulib-tool (func_usage): Make module names after --create-testdir
69802         optional.
69803         (func_create_testdir): If no module was specified, use nearly all
69804         modules.
69805
69806 2006-10-12  Jim Meyering  <jim@meyering.net>
69807
69808         Big performance improvement for fts-based tools that use FTS_NOSTAT.
69809         Avoid spurious inode-mismatch problems on non-POSIX file systems.
69810         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
69811         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
69812         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
69813         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
69814         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
69815         (fts_set_stat_required): New function.
69816         (fts_open): Defer the calls to fts_stat, if possible or requested.
69817         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
69818         into fts_stat itself.
69819         (fts_read): Perform any required (deferred) fts_stat call.
69820         (fts_build): Likewise, for the directory we're about to open and read.
69821         In the readdir loop, carefully decide whether each entry will require
69822         an eventual call to fts_stat, using dirent.d_type info if available.
69823         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
69824         a command line argument into this function.  Update all callers.
69825         Map a return value of FTS_DOT to FTS_D for a command line argument.
69826         * modules/fts (Depends-on): Add d-type.  Alphabetize.
69827         Thanks to Miklos Szeredi for his tenacity and for the initial
69828         bug report about "find" failing on a FUSE-based file system.
69829
69830         * lib/fts.c (fts_open): Use consistent indentation.
69831
69832 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69833
69834         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
69835         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
69836         reported by Jim Meyering.  All uses of cache variables renamed
69837         to match Autoconf's.
69838         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
69839         the other one.
69840
69841         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
69842         Fix misspelling in diagnostic.
69843
69844 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69845
69846         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
69847         defined.  Problem reported by Matthew Woehlke.
69848
69849         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
69850         Add support for Tandem NonStop R series.
69851         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
69852         Use new macro.
69853
69854         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
69855         (has_trailing_slash): Omit size arg; all callers changed.
69856         Omit 'inline', since it doesn't help performance and we'd
69857         need to configure it.
69858         Don't count //, ///, etc. as having a trailing slash.
69859         As a side effect, this removes a C99ism reported by Matthew Woehlke.
69860         (rpl_rename_dest_slash): On failure, use rename's errno rather
69861         than (in some cases) an incorrect or junk errno.
69862         Simplify code by removing need to compute length; this does
69863         cause it to make two passes instead of one over the file name,
69864         but it's worth it.
69865
69866         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
69867         change, since Autoconf's version may no longer be appropriate now
69868         that we are using CVS Autoconf's version.  Add support for Tandem.
69869
69870 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69871             Bruno Haible  <bruno@clisp.org>
69872
69873         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
69874         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
69875         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
69876         gl_AC_TYPE_LONG_LONG.
69877
69878         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
69879         instead of HAVE_LONG_LONG.
69880         * lib/printf-args.c (printf_fetchargs): Likewise.
69881         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
69882         * lib/vasnprintf.c (VASNPRINTF): Likewise.
69883         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
69884         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
69885         gl_AC_TYPE_LONG_LONG.
69886
69887 2006-10-11  Bruno Haible  <bruno@clisp.org>
69888
69889         * m4/longlong.m4: Add comments.
69890         * m4/ulonglong.m4: Likewise.
69891
69892 2006-10-10  Bruno Haible  <bruno@clisp.org>
69893
69894         Make it possible to #define stpcpy, strdup to aliases.
69895         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
69896         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
69897
69898 2006-10-10  Bruno Haible  <bruno@clisp.org>
69899
69900         Make it possible to #define gcd to an alias.
69901         * lib/gcd.c: Include config.h.
69902
69903 2006-10-10  Bruno Haible  <bruno@clisp.org>
69904
69905         Make it possible to #define c_isascii to an alias.
69906         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
69907         defined. Undefine the macros before defining them, to avoid gcc
69908         warnings.
69909         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
69910         define NO_C_CTYPE_MACROS early.
69911
69912 2006-10-10  Bruno Haible  <bruno@clisp.org>
69913
69914         Make it possible to #define set_program_name to an alias.
69915         * lib/progname.c: Don't undefine set_program_name; instead, undefine
69916         ENABLE_RELOCATABLE early.
69917
69918 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69919
69920         Port to Tandem NSK OSS, which has 64-bit signed int but at most
69921         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
69922         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
69923         More generally, don't assume that 64-bit signed int is available
69924         if unsigned int is, and vice versa.
69925         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
69926         unsigned symbols, not on their signed counterparts.
69927         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
69928         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
69929         (UINT64_C, UINTMAX_C):
69930         Likewise.
69931         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
69932         unsigned counterparts.
69933         (Have_long_long, Unsigned): New macros.
69934         (Int): Renamed from INT.
69935         (strtoimax): Use the new macros.
69936         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
69937         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
69938         * modules/inttypes (inttypes.h): Substitute
69939         HAVE_UNSIGNED_LONG_LONG_INT.
69940         * modules/stdint (stdint.h): Likewise.
69941         (Files): Add m4/ulonglong.m4.
69942
69943 2006-10-10  Bruno Haible  <bruno@clisp.org>
69944
69945         Fix a gcc -Wshadow warning.
69946         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
69947         to 'bucket'.
69948         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
69949         gl_linked_indexof_from_to): Likewise.
69950         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
69951         Likewise.
69952         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
69953         Likewise.
69954         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
69955         Reported by Eric Blake.
69956
69957 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
69958
69959         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
69960         for NetBSD.  Problem reported by Bruno Haible.
69961
69962 2006-10-09  Jim Meyering  <jim@meyering.net>
69963
69964         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
69965         Patch from Bruno Haible.
69966
69967 2006-10-09  Jim Meyering  <jim@meyering.net>
69968
69969         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
69970         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
69971         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
69972
69973 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69974
69975         Don't include <config.h> twice; this doesn't work in some cases,
69976         e.g., when config.h has "#define intmax_t long long int" and
69977         we include <config.h>, <inttypes.h>, <config.h> in that order.
69978         Problem reported by Matthew Woehlke in:
69979         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
69980         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
69981         * lib/fts-cycle.c: Don't include config.h.
69982         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
69983         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
69984         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
69985         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
69986         inttypes.h.
69987         * lib/xstrtoumax.c: Likewise.
69988         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
69989         __strtol and the like, so that this module is more like its siblings.
69990         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
69991         Remove; no longer needed now that we assume gnulib inttypes.h.
69992
69993 2006-10-08  Bruno Haible  <bruno@clisp.org>
69994
69995         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
69996         option.
69997
69998 2006-10-07  Jim Meyering  <jim@meyering.net>
69999
70000         * modules/inttypes (inttypes.h): Revert what seems to have been
70001         an inadvertent part of today's change: use "|", not "/" in the
70002         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
70003
70004 2006-10-07  Bruno Haible  <bruno@clisp.org>
70005
70006         * modules/sublist: New file.
70007
70008 2006-10-07  Bruno Haible  <bruno@clisp.org>
70009
70010         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
70011         * modules/argz (argz.h): Likewise.
70012         * modules/arpa_inet (arpa/inet.h): Likewise.
70013         * modules/byteswap (byteswap.h): Likewise.
70014         * modules/configmake (configmake.h): Likewise.
70015         * modules/fcntl (fcntl.h): Likewise.
70016         * modules/fnmatch (fnmatch.h): Likewise.
70017         * modules/getopt (getopt.h): Likewise.
70018         * modules/glob (glob.h): Likewise.
70019         * modules/inttypes (inttypes.h): Likewise.
70020         * modules/netinet_in (netinet/in.h): Likewise.
70021         * modules/poll (poll.h): Likewise.
70022         * modules/stdbool (stdbool.h): Likewise.
70023         * modules/stdint (stdint.h): Likewise.
70024         * modules/sys_select (sys/select.h): Likewise.
70025         * modules/sys_socket (sys/socket.h): Likewise.
70026         * modules/sys_stat (sys/stat.h): Likewise.
70027         * modules/sysexits (sysexits.h): Likewise.
70028         * modules/unistd (unistd.h): Likewise.
70029         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70030         Add a "DO NOT EDIT" comment to the generated file.
70031         (func_import): Likewise for gnulib-comp.m4.
70032
70033 2006-10-07  Bruno Haible  <bruno@clisp.org>
70034
70035         * lib/gl_sublist.h: New file.
70036         * lib/gl_sublist.c: New file.
70037
70038 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
70041         name (relative to the original working directory) and the file
70042         name component (relative to the temporary working directory).  All
70043         callers changed.
70044         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
70045         * lib/mkdir-p.c (make_dir_parents): Likewise.
70046         * lib/mkdir-p.h (make_dir_parents): Likewise.
70047
70048 2006-10-06  Eric Blake  <ebb9@byu.net>
70049
70050         Define several macros for use by the clean-temp module.
70051         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
70052         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
70053         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
70054
70055         * lib/clean-temp.h (close_stream_temp): New declaration.
70056         * lib/clean-temp.c (includes): Pull in headers according to what
70057         other modules are in use.
70058         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
70059
70060 2006-10-06  Bruno Haible  <bruno@clisp.org>
70061
70062         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
70063         instead of fopen, fwriteerror.
70064
70065 2006-10-06  Bruno Haible  <bruno@clisp.org>
70066
70067         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
70068         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
70069         int.
70070         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
70071         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
70072         Return an error indicator.
70073         Suggested by Eric Blake.
70074
70075 2006-10-06  Bruno Haible  <bruno@clisp.org>
70076
70077         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
70078         Reported by Eric Blake.
70079
70080 2006-10-06  Bruno Haible  <bruno@clisp.org>
70081
70082         * modules/closeout (Description): Mention stderr too.
70083
70084 2006-10-06  Bruno Haible  <bruno@clisp.org>
70085         and Paul Eggert  <eggert@cs.ucla.edu>
70086
70087         * lib/closeout.c (close_stdout): Also close stderr.
70088         * lib/closeout.h: Update comment.
70089
70090 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70091
70092         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
70093         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
70094         * lib/dirchownmod.c: Include lchown.h.
70095         * lib/lchown.c: Don't include files that lchown.h now includes.
70096         Don't declare chown, since lchown.h now does that.
70097         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
70098         (lchown): Define to rpl_chown if lchown is declared but
70099         does not exist.  Declare using a prototype if lchown is not
70100         declared.  Add a copyright notice.
70101         * lib/mkstemp.h: Include <unistd.h>.
70102         * lib/openat.c: Include lchown.h.
70103
70104         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
70105         we now test for that separately.
70106         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
70107         rather than O_NOFOLLOW, when testing whether it's possible to
70108         avoid a race condition reliably.
70109         * lib/savewd.c (savewd_chdir): Likewise.
70110
70111         Remove macros that are no longer needed now that stdint.h is
70112         reliable.
70113         * lib/fsusage.c (UINTMAX_MAX): Remove.
70114         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
70115         * lib/utimecmp.c (SIZE_MAX): Remove.
70116
70117         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
70118
70119         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
70120         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
70121         O_NOATIME works.
70122
70123 2006-10-05  Bruno Haible  <bruno@clisp.org>
70124
70125         * lib/gl_list.h (gl_sortedlist_search_from_to,
70126         gl_sortedlist_indexof_from_to): New declarations.
70127         (gl_list_implementation): New fields sortedlist_search_from_to,
70128         sortedlist_indexof_from_to.
70129         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
70130         inline functions.
70131         * lib/gl_list.c (gl_sortedlist_search_from_to,
70132         gl_sortedlist_indexof_from_to): New functions.
70133         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
70134         function.
70135         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
70136         (gl_array_sortedlist_search_from_to): New function.
70137         (gl_array_list_implementation): Update.
70138         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
70139         function.
70140         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
70141         (gl_carray_sortedlist_search_from_to): New function.
70142         (gl_carray_list_implementation): Update.
70143         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
70144         gl_linked_sortedlist_indexof_from_to): New functions.
70145         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70146         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70147         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
70148         gl_tree_sortedlist_indexof_from_to): New functions.
70149         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70150         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70151         Update.
70152         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70153         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
70154         Update.
70155
70156 2006-10-05  Bruno Haible  <bruno@clisp.org>
70157
70158         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
70159         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
70160         (struct gl_list_implementation): Add fields search_from_to,
70161         indexof_from_to. Remove fields search, indexof.
70162         (gl_list_search): Use the search_from_to method.
70163         (gl_list_search_from, gl_list_search_from_to): New functions.
70164         (gl_list_indexof): Use the indexof_from_to method.
70165         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70166         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
70167         (gl_list_search_from, gl_list_search_from_to): New functions.
70168         (gl_list_indexof): Use the indexof_from_to method.
70169         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70170         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
70171         gl_array_indexof. Add start_index, end_index arguments.
70172         (gl_array_search_from_to): Renamed from gl_array_search. Add
70173         start_index, end_index arguments.
70174         (gl_array_remove, gl_array_list_implementation): Update.
70175         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
70176         gl_carray_indexof. Add start_index, end_index arguments.
70177         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
70178         start_index, end_index arguments.
70179         (gl_carray_remove, gl_carray_list_implementation): Update.
70180         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
70181         gl_linked_search. Add start_index, end_index arguments.
70182         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
70183         start_index, end_index arguments.
70184         (gl_linked_remove): Update.
70185         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70186         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70187         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
70188         field to 'size_t'.
70189         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
70190         gl_tree_search. Add start_index, end_index arguments.
70191         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70192         start_index, end_index arguments.
70193         (gl_tree_remove): Update.
70194         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70195         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70196         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
70197         function.
70198         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
70199         gl_tree_search. Add start_index, end_index arguments.
70200         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70201         start_index, end_index arguments.
70202         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70203         Update.
70204         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
70205
70206 2006-10-05  Bruno Haible  <bruno@clisp.org>
70207
70208         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
70209
70210         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
70211         fwriteerror_temp): New declarations.
70212         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
70213         (descriptors): New variable.
70214         (cleanup): First, close the descriptors.
70215         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
70216         fclose_temp, fwriteerror_temp): New functions.
70217
70218 2006-10-04  Jim Meyering  <jim@meyering.net>
70219
70220         * lib/fts.c (fts_open): Tiny comment change.
70221
70222 2006-10-04  Bruno Haible  <bruno@clisp.org>
70223
70224         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
70225         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
70226         gl_LOCK_BODY.
70227         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
70228         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
70229         gl_LOCK_EARLY_BODY.
70230         (gl_LOCK): Require gl_LOCK_BODY.
70231
70232 2006-10-04  Bruno Haible  <bruno@clisp.org>
70233
70234         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
70235         (gl_oset_search_atleast): New declaration.
70236         (struct gl_oset_implementation): Add field 'search_atleast'.
70237         (gl_oset_search_atleast): New inline function.
70238         * lib/gl_oset.c (gl_oset_search_atleast): New function.
70239         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
70240         (gl_array_oset_implementation): Update.
70241         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
70242         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
70243         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
70244
70245 2006-10-04  Bruno Haible  <bruno@clisp.org>
70246
70247         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
70248
70249 2006-10-03  Bruno Haible  <bruno@clisp.org>
70250
70251         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
70252         from gl_avltreehash_list_implementation.
70253
70254 2006-10-03  Bruno Haible  <bruno@clisp.org>
70255
70256         * lib/gl_oset.c (gl_oset_add): Fix return type.
70257
70258 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
70259
70260         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
70261
70262 2006-10-02  Eric Blake  <ebb9@byu.net>
70263
70264         * modules/strnlen (Depends-on): Add extensions.
70265
70266 2006-10-02  Eric Blake  <ebb9@byu.net>
70267
70268         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
70269         definition in 2.60+.
70270
70271 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70272
70273         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
70274         checks.
70275
70276 2006-10-02  Bruno Haible  <bruno@clisp.org>
70277
70278         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
70279         to the AUTOMAKE_OPTIONS.
70280         Reported by Jim Meyering.
70281
70282 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70283
70284         Work around bug in Solaris 10 /proc file system:
70285         /proc/self/fd/NNN/.. isn't the parent directory of
70286         the directory whose file descriptor is NNN.  This needs to
70287         be worked around at run time, not compile time, since a
70288         program might be built on Solaris 8, where things work, and
70289         run on Solaris 10.
70290         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
70291         to use the following interface instead:
70292         (OPENAT_BUFFER_SIZE): New macro.
70293         (openat_proc_name): New function.
70294         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
70295         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
70296         Likewise.
70297         * lib/openat-proc.c: New file.
70298         * modules/openat (Files): Add lib/openat-proc.c.
70299         (Depends-on): Add same-inode, stdbool.
70300         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
70301
70302 2006-09-29  Bruno Haible  <bruno@clisp.org>
70303
70304         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
70305         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
70306         argument. Set stdout_closed before testing for ferror, not after.
70307         (fwriteerror, fwriteerror_no_ebadf): New functions.
70308
70309 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70310
70311         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
70312
70313 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
70314
70315         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
70316         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
70317
70318 2006-09-28  Jim Meyering  <jim@meyering.net>
70319
70320         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
70321         Include <unistd.h>.
70322
70323 2006-09-28  Bruno Haible  <bruno@clisp.org>
70324
70325         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
70326         * modules/linkedhash-list (Depends-on): Likewise.
70327         * modules/rbtreehash-list (Depends-on): Likewise.
70328
70329 2006-09-28  Bruno Haible  <bruno@clisp.org>
70330
70331         * lib/strndup.h: Simplify the redefinition of strndup.
70332         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
70333         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
70334
70335 2006-09-28  Bruno Haible  <bruno@clisp.org>
70336
70337         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
70338         * lib/gl_linkedhash_list.c: Likewise.
70339         * lib/gl_rbtreehash_list.c: Likewise.
70340
70341 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70342
70343         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
70344         getaddrinfo.
70345
70346         * lib/__fpending.h: Don't include <stdio_ext.h> unless
70347         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
70348         it causes <stdio_ext.h> to cause a compile-time error.
70349         Problem reported by Nelson H. F. Beebe.
70350         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
70351         of HAVE_DECL___PENDING.
70352
70353         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
70354         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
70355         declaration.
70356
70357 2006-09-27  Jim Meyering  <jim@meyering.net>
70358
70359         This file could end up with a definition for a function
70360         named __strndup, rather than rpl_strndup on a system with
70361         incomplete weak_alias support.
70362         * lib/strndup.c (strndup): Rename from __strndup.
70363         Remove #defines that used to map __strndup to strndup.
70364         Don't use K&R prototypes.
70365         Remove LIBC-related code, since this file is not sync'd with glibc.
70366         * lib/strndup.h: Revamp, accordingly.
70367         * m4/strndup.m4: Modernize.
70368
70369 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70370
70371         * modules/savewd (Depends-on): Add 'raise'.
70372         * lib/savewd.c: Include <signal.h>, for 'raise'.
70373
70374 2006-09-26  Jim Meyering  <jim@meyering.net>
70375
70376         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
70377         when we detect Darwin 8.7.0's acl_get_file bug.
70378         Rearrange to perform the new (below) run-test while $LIBS
70379         contains any acl-related library.  Set USE_ACL at the end.
70380         (gl_ACL_GET_FILE): New function.
70381
70382 2006-09-26  Eric Blake  <ebb9@byu.net>
70383
70384         * lib/verror.c: Include <config.h> unconditionally.
70385
70386 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
70387
70388         * modules/clock-time (Maintainer): Add self.
70389         * modules/getlogin_r (Depends-on): Add extensions.
70390
70391 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70392
70393         * modules/clock-time: New module.
70394         * modules/nanosleep (Depends-on): Add clock-time.
70395         * modules/gethrxtime (Depends-on): Likewise.
70396         * modules/gettime (Depends-on): Likewise.
70397         * modules/settime (Depends-on): Likewise.
70398
70399         * modules/fts-lgpl: Depend on openat.
70400         * modules/mkancesdirs: Depend on savewd.
70401         * modules/mkdir-p: Likewise.
70402
70403 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70404
70405         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
70406
70407         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
70408         `gl_have_arbitrary_file_name_length_limit' to
70409         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
70410         actually works between configure runs.
70411
70412 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70413             Bruno Haible  <bruno@clisp.org>
70414
70415         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
70416
70417 2006-09-25  Jim Meyering  <jim@meyering.net>
70418
70419         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
70420         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
70421
70422 2006-09-25  Eric Blake  <ebb9@byu.net>
70423
70424         * gnulib-tool (func_import, func_create_testdir): Fix typos in
70425         exec's in 2006-09-18 patch when shuffling fds.
70426
70427 2006-09-25  Bruno Haible  <bruno@clisp.org>
70428
70429         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
70430         Reported by Jim Meyering.
70431
70432 2006-09-24  Jim Meyering  <jim@meyering.net>
70433
70434         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
70435         compare a pointer against a literal "0".  That caused failures with
70436         at least HP-UX's hpcc.
70437
70438 2006-09-22  Simon Josefsson  <jas@extundo.com>
70439
70440         * modules/gc-sha1:
70441         * modules/gc-md4:
70442         * modules/gc-hmac-sha1:
70443         * modules/gc-hmac-md5:
70444         * modules/gc-des:
70445         * modules/gc-arcfour: Distribute more files.
70446
70447 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70448
70449         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
70450         (gl_linked_iterator_from_to): Initialize struct completely.
70451         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
70452         (gl_tree_iterator_from_to): Likewise
70453         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
70454         * lib/gl_array_list.c [lint] (gl_array_iterator)
70455         (gl_array_iterator_from_to): Likewise.
70456         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
70457         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
70458         (gl_carray_iterator_from_to): Likewise.
70459
70460         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
70461         * lib/md4.c (md4_process_block): Remove unused variable.
70462         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
70463         parentheses for clarity.
70464
70465 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70466
70467         * modules/bison-i18n (Depends-on): Add gettext.
70468
70469 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70470
70471         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
70472         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
70473         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
70474         also add missing comma that caused broken test.
70475         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
70476         stdlib.h, for `abort'.
70477         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
70478         variables.
70479         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
70480         include unistd.h if present, for `rmdir'.
70481         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
70482         variables.
70483         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
70484         in the process include standard headers for prototypes.
70485         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
70486         gets declared on GNU/Linux.
70487         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
70488         unistd.h, for `rmdir'.
70489         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
70490
70491         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
70492         always true.
70493         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
70494
70495         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
70496
70497 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70498
70499         * gnulib-tool (func_version): Create output all at once.  This
70500         may help avoid triggering unnecessary SIGPIPEs, and at any
70501         rate it doesn't hurt.
70502
70503 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70504             Bruno Haible  <bruno@clisp.org>
70505
70506         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
70507         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70508         * m4/signed.m4 (bh_C_SIGNED): Likewise.
70509
70510         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
70511         (gl_FUNC_VASPRINTF): Invoke it.
70512
70513 2006-09-22  Bruno Haible  <bruno@clisp.org>
70514
70515         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
70516         getloadavg.c as first argument.
70517
70518 2006-09-22  Bruno Haible  <bruno@clisp.org>
70519
70520         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
70521         at the beginning of the gl_INIT macro.
70522         * modules/getloadavg (configure.ac): Pass $gl_source_base to
70523         gl_GETLOADAVG.
70524
70525 2006-09-22  Bruno Haible  <bruno@clisp.org>
70526
70527         * gnulib-tool (func_create_megatestdir): Don't include the config-h
70528         module.
70529         Suggested by Ralf Wildenhues.
70530
70531 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70532
70533         Import this patch from libc:
70534
70535         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
70536
70537         * lib/regex_internal.c (re_string_reconstruct): Handle
70538         offset < pstr->valid_raw_len && pstr->offsets_needed case.
70539         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
70540         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
70541         re_string_context_at.
70542
70543         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
70544         now requires it.
70545         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
70546         gl_REGEX now does it for us.
70547         (gl_REGEX): Add test taken from
70548         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
70549
70550         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
70551         Check that large offsets work.  Modernize Autoconf usages.
70552         Prefer "yes" to mean a good thing rather than a bad.
70553         Don't put "#define mkstemp" in config.h, as this might interfere
70554         with standard system headers that "#define mkstemp mkstemp64".
70555
70556         * modules/mkstemp (Depends-on): Add extensions, so that
70557         mkstemp is visible on some platforms.
70558         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
70559         (Include): Change to "mkstemp.h" from <stdlib.h>.
70560         (Files): Add mkstemp.h.
70561
70562         * lib/mkstemp.h: New file, since some standard headers
70563         #define mkstemp.
70564         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
70565         Include "mkstemp.h".
70566         Make the _LIBC code resemble glibc original more,
70567         e.g., use K&R style.
70568         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
70569         (mkstemp): Remove, since mkstemp.h does this for us.
70570         * lib/stdlib--.h: Include mkstemp.h.
70571
70572         Import this patch from libc:
70573
70574         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70575
70576         * lib/tempname.c (__gen_tempname): Change attempts_min
70577         into a macro.  Use preprocessor to decide how to initialize
70578         attempts [Coverity CID 67].
70579
70580 2006-09-20  Bruno Haible  <bruno@clisp.org>
70581
70582         * lib/mkdtemp.c: Import from libc.
70583         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70584                 * sysdeps/posix/tempname.c (__gen_tempname): Change
70585                 attempts_min into a macro.  Use preprocessor to decide how to
70586                 initialize attempts [Coverity CID 67].
70587         2001-11-27  Paul Eggert  <eggert@twinsun.com>
70588                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
70589                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
70590
70591 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70592
70593         * gnulib-tool (func_exit): New function, to allow to pass the
70594         exit status portably through the trap.  Use everywhere.
70595         (--help, --version): Signal a write error.
70596         (trap): catch SIGPIPE, for write errors.
70597         Exit at the end of the trap, with the correct exit status.
70598
70599 2006-09-19  Karl Berry  <karl@gnu.org>
70600
70601         * doc/gnulib.texi: note about the license texinfo files.
70602
70603 2006-09-19  Eric Blake  <ebb9@byu.net>
70604
70605         * gnulib-tool: Avoid space-tab.
70606
70607 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70608
70609         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
70610         that prevented coreutils 6.1 from building.  Problem reported
70611         by Petter Reinholdtsen.
70612
70613 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70614
70615         * gnulib-tool (avoidlist): Fix typo that broke options like
70616         --avoid=lock that are used by coreutils bootstrap.
70617
70618 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
70619
70620         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
70621         more systematically.
70622
70623 2006-09-18  Jim Meyering  <jim@meyering.net>
70624
70625         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
70626
70627 2006-09-18  Bruno Haible  <bruno@clisp.org>
70628
70629         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
70630
70631 2006-09-18  Bruno Haible  <bruno@clisp.org>
70632
70633         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
70634         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
70635         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
70636         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
70637         * m4/gettext.m4: Require autoconf >= 2.52.
70638         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
70639         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
70640         of gl_cv_header_inttypes_h.
70641
70642 2006-09-18  Bruno Haible  <bruno@clisp.org>
70643
70644         * lib/javaversion.c: Include configmake.h.
70645
70646 2006-09-18  Bruno Haible  <bruno@clisp.org>
70647
70648         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
70649         avoid that the while loops be executed in a subshell.
70650
70651 2006-09-18  Bruno Haible  <bruno@clisp.org>
70652
70653         * MODULES.html.sh (func_module): Break long lines.
70654         Suggested by Bruce Korb <bkorb@gnu.org>.
70655
70656 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70657
70658         Speed up by a factor of 1.12.
70659         * gnulib-tool (nl): New variable.
70660         (func_import): Rewrite include directive extraction to only read each
70661         directive once.
70662
70663 2006-09-17  Bruno Haible  <bruno@clisp.org>
70664
70665         * modules/javaversion (Makefile.am): Remove DEFS setting.
70666         (Depends-on): Add configmake, for PKGDATADIR definition.
70667
70668 2006-09-17  Bruno Haible  <bruno@clisp.org>
70669
70670         * gnulib-tool (func_create_testdir): Rewrite all files at once.
70671
70672 2006-09-17  Bruno Haible  <bruno@clisp.org>
70673
70674         * gnulib-tool (func_append): New function, stolen from libtool.m4.
70675         (func_modules_transitive_closure, func_modules_add_dummy,
70676         func_modules_to_filelist, func_import, func_create_testdir,
70677         func_create_megatestdir, ...): Use it wherever possible.
70678         Suggested by Ralf Wildenhues.
70679
70680 2006-09-16  Karl Berry  <karl@gnu.org>
70681
70682         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
70683         to avoid sectioning errors.
70684         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
70685         [ifinfo]: blank line after @center-ed titles.
70686         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
70687         Spell FSF address consistently with others.
70688         (These changes approved by rms.)
70689
70690 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70691
70692         Speed up by a factor of 1.61.
70693         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
70694         already checked module names again.
70695
70696 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70697
70698         Speed up by a factor of 1.13.
70699         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
70700         for new_files, and the input to func_add_or_update.
70701
70702 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70703
70704         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
70705         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
70706
70707 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70708
70709         * modules/mkancesdirs (Depends-on): Add fcntl.
70710         * modules/savewd: New file.
70711         * MODULES.html.sh (File system functions): Add savewd.
70712
70713         * modules/configmake (Makefile.am): Add support for the
70714         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
70715
70716 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70717
70718         * m4/savewd.m4: New file.
70719
70720 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70721
70722         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
70723         (dirchownmod): New arg FD.  All callers changed.
70724         Use FD rather than opening the directory ourself, as opening is
70725         now the caller's responsibility.
70726         * lib/dirchownmod.h: Likewise.
70727         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
70728         hosts that require <sys/types.h> before <sys/stat.h>.  Include
70729         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
70730         (test_dir): Remove.
70731         (mkancesdirs): Return length of prefix of FILE that has already
70732         been made, or -2 if there is a child doing the work.  Redo
70733         algorithm so that it is O(N) rather than O(N**2).  Optimize away
70734         ".", and treat ".." specially since it might stray back into
70735         already-created areas.  Use a subprocess if necessary.  New arg
70736         WD; all users changed.  MAKE_DIR function should now return 1
70737         if it creates a directory that is not readable.  Return -2 if
70738         a child process is spun off.
70739         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
70740         Adjust signature to match code.
70741         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
70742         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
70743         all users changed.
70744         * lib/savewd.c, lib/savewd.h: New files.
70745
70746 2006-09-15  Jim Meyering  <jim@meyering.net>
70747
70748         * modules/rename-dest-slash: New module.
70749         * MODULES.html.sh (posix_compat): Add it here.
70750
70751         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
70752
70753 2006-09-15  Jim Meyering  <jim@meyering.net>
70754
70755         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
70756         file.
70757
70758         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
70759
70760 2006-09-15  Jim Meyering  <jim@meyering.net>
70761
70762         * lib/rename-dest-slash.c (has_trailing_slash): Use
70763         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
70764         (rpl_rename_dest_slash): Perform the cheaper trailing slash
70765         test before testing whether SRC is a directory.
70766         Suggestions from Bruno Haible.
70767
70768         Avoid a warning about an unused variable.
70769         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
70770         into the #ifdef block where it's used.
70771
70772         * lib/rename-dest-slash.c: New file.
70773
70774 2006-09-14  Bruno Haible  <bruno@clisp.org>
70775
70776         * lib/allocsa.c: Include <config.h> unconditionally.
70777         * lib/asnprintf.c: Likewise.
70778         * lib/asprintf.c: Likewise.
70779         * lib/c-strcasecmp.c: Likewise.
70780         * lib/c-strcasestr.c: Likewise.
70781         * lib/c-strncasecmp.c: Likewise.
70782         * lib/c-strstr.c: Likewise.
70783         * lib/classpath.c: Likewise.
70784         * lib/clean-temp.c: Likewise.
70785         * lib/concatpath.c: Likewise.
70786         * lib/copy-file.c: Likewise.
70787         * lib/csharpcomp.c: Likewise.
70788         * lib/csharpexec.c: Likewise.
70789         * lib/execute.c: Likewise.
70790         * lib/fatal-signal.c: Likewise.
70791         * lib/findprog.c: Likewise.
70792         * lib/fwriteerror.c: Likewise.
70793         * lib/gl_array_list.c: Likewise.
70794         * lib/gl_array_oset.c: Likewise.
70795         * lib/gl_avltree_list.c: Likewise.
70796         * lib/gl_avltree_oset.c: Likewise.
70797         * lib/gl_avltreehash_list.c: Likewise.
70798         * lib/gl_carray_list.c: Likewise.
70799         * lib/gl_linked_list.c: Likewise.
70800         * lib/gl_linkedhash_list.c: Likewise.
70801         * lib/gl_list.c: Likewise.
70802         * lib/gl_oset.c: Likewise.
70803         * lib/gl_rbtree_list.c: Likewise.
70804         * lib/gl_rbtree_oset.c: Likewise.
70805         * lib/gl_rbtreehash_list.c: Likewise.
70806         * lib/imaxabs.c: Likewise.
70807         * lib/imaxdiv.c: Likewise.
70808         * lib/javacomp.c: Likewise.
70809         * lib/javaexec.c: Likewise.
70810         * lib/javaversion.c: Likewise.
70811         * lib/linebreak.c: Likewise.
70812         * lib/localcharset.c: Likewise.
70813         * lib/lock.c: Likewise.
70814         * lib/mbchar.c: Likewise.
70815         * lib/mbswidth.c: Likewise.
70816         * lib/mkdtemp.c: Likewise.
70817         * lib/pipe.c: Likewise.
70818         * lib/printf-args.c: Likewise.
70819         * lib/printf-parse.c: Likewise.
70820         * lib/progname.c: Likewise.
70821         * lib/progreloc.c: Likewise.
70822         * lib/readlink.c: Likewise.
70823         * lib/sh-quote.c: Likewise.
70824         * lib/stpcpy.c: Likewise.
70825         * lib/stpncpy.c: Likewise.
70826         * lib/strcasecmp.c: Likewise.
70827         * lib/strcasestr.c: Likewise.
70828         * lib/strcspn.c: Likewise.
70829         * lib/striconv.c: Likewise.
70830         * lib/strncasecmp.c: Likewise.
70831         * lib/strnlen1.c: Likewise.
70832         * lib/strstr.c: Likewise.
70833         * lib/strtok_r.c: Likewise.
70834         * lib/tls.c: Likewise.
70835         * lib/tmpdir.c: Likewise.
70836         * lib/unicodeio.c: Likewise.
70837         * lib/unsetenv.c: Likewise.
70838         * lib/vasnprintf.c: Likewise.
70839         * lib/vasprintf.c: Likewise.
70840         * lib/wait-process.c: Likewise.
70841         * lib/xallocsa.c: Likewise.
70842         * lib/xsetenv.c: Likewise.
70843         * lib/xstriconv.c: Likewise.
70844
70845 2006-09-13  Simon Josefsson  <jas@extundo.com>
70846
70847         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
70848         that internally, suggested by Ralf Wildenhues
70849         <Ralf.Wildenhues@gmx.de>.
70850
70851 2006-09-13  Simon Josefsson  <jas@extundo.com>
70852
70853         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
70854         @LIBOBJS@.
70855         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70856
70857 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70858
70859         * lib/_fpending.c: Include <config.h> unconditionally, since we no
70860         longer worry about uses that don't define HAVE_CONFIG_H.
70861         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
70862         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
70863         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
70864         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
70865         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
70866         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
70867         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
70868         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
70869         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
70870         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
70871         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
70872         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
70873         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
70874         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
70875         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
70876         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
70877         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
70878         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
70879         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
70880         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
70881         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
70882         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
70883         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
70884         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
70885         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
70886         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
70887         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
70888         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
70889         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
70890         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
70891         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
70892         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
70893         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
70894         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
70895         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
70896         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
70897         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
70898         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
70899         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
70900         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
70901         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
70902         Likewise.
70903
70904 2006-09-13  Eric Blake  <ebb9@byu.net>
70905
70906         * lib/getopt.c: Fix typo in last commit.
70907
70908 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70909
70910         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
70911         dgettext.
70912
70913 2006-09-12  Jim Meyering  <jim@meyering.net>
70914
70915         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
70916         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
70917         Reported by Nelson H. F. Beebe.
70918
70919 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70920
70921         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
70922         program_invocation_name and program_invocation_short_name are
70923         initialized.
70924         * lib/argp-namefrob.h: Move declarations of program_invocation_name
70925         and program_invocation_short_name to argp.h, so they are visible
70926         to user programs.
70927         * lib/argp.h: Likewise
70928
70929 2006-09-10  Bruno Haible  <bruno@clisp.org>
70930
70931         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70932         m4/inttypes_h.m4, m4/uintmax_t.m4.
70933
70934 2006-09-10  Bruno Haible  <bruno@clisp.org>
70935
70936         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
70937         gl_AC_TYPE_UINTMAX_T.
70938
70939 2006-09-10  Bruno Haible  <bruno@clisp.org>
70940
70941         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
70942
70943 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70944
70945         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
70946         convention.  Text proposed by Bruno Haible.
70947         (struct argp_option): Document the use of N_() wrappers.
70948
70949         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
70950         '\v', and translate the two parts separately, instead of feeding
70951         the whole string to gettext.  This allows to exclude
70952         '\v' from the strings visible to the translator by writing doc
70953         strings as N_("..") "\v" N_("..").
70954
70955 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         * config/srclist.txt: Undo latest change; the bug was fixed.
70958
70959 2006-09-09  Bruno Haible  <bruno@clisp.org>
70960
70961         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
70962         assignments if building a library without libtool.
70963         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
70964         in func_emit_lib_Makefile_am.
70965         (func_import): When building a static library libfoo.a, arrange to
70966         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
70967         (func_create_testdir): Likewise.
70968         * modules/gc (configure.ac, Makefile.am): If building statically,
70969         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
70970         * modules/iconvme (configure.ac, Makefile.am): Likewise.
70971         * modules/striconv (configure.ac, Makefile.am): Likewise.
70972         Based on a suggestion by Ralf Wildenhues.
70973
70974 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70975
70976         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70977         Check for unistd.h too, since Autoconf doesn't assume POSIX.
70978         Also:
70979
70980         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70981         Add year_2050_test to catch glibc bug 2821
70982         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70983
70984         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70985         Prefer #ifdef to #if.
70986
70987         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
70988         Return from 'main' instead of calling 'exit'.
70989
70990 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70991
70992         * lib/mktime.c (guess_time_tm): Fix bug where mktime
70993         returned the maximum time_t value rather than (time_t) -1.
70994         Problem originally reported by William Bardwell
70995         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70996
70997         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70998         Moved to here ...
70999         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71000         ... from here.
71001
71002 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71003
71004         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
71005         2821 is fixed.
71006
71007 2006-09-08  Jim Meyering  <jim@meyering.net>
71008
71009         Don't make generated files read-only.  That would bother too many
71010         people.  However, do retain the ability to work when targets are
71011         read-only: remove the destination and temporary files before writing
71012         them (when generated via sed or echo), or by using the -f option for
71013         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
71014         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71015         * modules/byteswap, modules/configmake, modules/fcntl:
71016         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71017         * modules/localcharset, modules/netinet_in, modules/poll:
71018         * modules/stdbool, modules/stdint, modules/sys_select:
71019         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71020
71021 2006-09-08  Jim Meyering  <jim@meyering.net>
71022
71023         Avoid new build failure on FreeBSD 6.0.
71024         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
71025         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
71026         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
71027
71028 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71029
71030         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
71031
71032 2006-09-07  Jim Meyering  <jim@meyering.net>
71033
71034         Fix global typo in last change: use chmod u-w, not chmod u-x.
71035         Spotted by Paul Eggert and Bruce Korb.
71036         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71037         * modules/byteswap, modules/configmake, modules/fcntl:
71038         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71039         * modules/localcharset, modules/netinet_in, modules/poll:
71040         * modules/stdbool, modules/stdint, modules/sys_select:
71041         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71042
71043 2006-09-06  Jim Meyering  <jim@meyering.net>
71044
71045         Make generated files be read-only.
71046         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
71047         Ensure that each generated file is now read-only.
71048         * modules/argz: Likewise.
71049         * modules/arpa_inet: Likewise.
71050         * modules/byteswap: Likewise.
71051         * modules/configmake: Likewise.
71052         * modules/fcntl: Likewise.
71053         * modules/fnmatch: Likewise.
71054         * modules/getopt: Likewise.
71055         * modules/glob: Likewise.
71056         * modules/inttypes: Likewise.
71057         * modules/netinet_in: Likewise.
71058         * modules/poll: Likewise.
71059         * modules/stdbool: Likewise.
71060         * modules/stdint: Likewise.
71061         * modules/sys_select: Likewise.
71062         * modules/sys_socket: Likewise.
71063         * modules/sys_stat: Likewise.
71064         * modules/sysexits: Likewise.
71065         * modules/localcharset: Same as above, but continue using temporary
71066         file named "t-$@" (why different?) rather than the "$@-t" used
71067         everywhere else.
71068
71069         * modules/sysexits (Makefile.am): Replace literal occurrences
71070         of "sysexit.h" more readable, and more consistent, "$@".
71071
71072 2006-09-06  Bruno Haible  <bruno@clisp.org>
71073
71074         * modules/striconv: New file.
71075         * modules/xstriconv: New file.
71076         * MODULES.html.sh (Internationalization functions): Add striconv,
71077         xstriconv.
71078
71079 2006-09-06  Bruno Haible  <bruno@clisp.org>
71080
71081         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
71082         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
71083         not using libtool correctly.
71084
71085 2006-09-06  Bruno Haible  <bruno@clisp.org>
71086
71087         * lib/striconv.h: New file.
71088         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
71089         iconvstring.c.
71090         * lib/xstriconv.h: New file.
71091         * lib/xstriconv.c: New file.
71092
71093 2006-09-06  Bruno Haible  <bruno@clisp.org>
71094
71095         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71096         lib_..._LDFLAGS.
71097
71098 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71099
71100         * lib/argz_.h: Sync from Libtool.
71101
71102         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
71103                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71104
71105         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
71106
71107 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71108
71109         * modules/trim: New file.
71110
71111 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71112
71113         * lib/trim.h: New file.
71114         * lib/trim.c: New file.
71115
71116 2006-09-05  Bruno Haible  <bruno@clisp.org>
71117
71118         * MODULES.html.sh (String handling): Add trim.
71119
71120 2006-09-04  Karl Berry  <karl@gnu.org>
71121
71122         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
71123         until next release.
71124
71125 2006-09-03  Bruno Haible  <bruno@clisp.org>
71126
71127         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
71128         correctly.
71129
71130 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71131
71132         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
71133         not gl_GETLOADAVG.  Omit unneeded semicolons.
71134         Problems reported by Ralf Wildenhues in
71135         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71136         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
71137         at the end, which is the usual gnulib style.
71138
71139         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
71140         of doing all the work ourselves.
71141         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
71142         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
71143
71144 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71145
71146         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
71147         Problem reported by Ralf Wildenhues in
71148         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71149
71150         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
71151         HAVE_STRUCT_STATFS_F_FSTYPENAME.
71152
71153 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71154
71155         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
71156         yesterday's patch by changing test -n to test -z.
71157
71158 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71159
71160         * modules/getloadavg (Files): Add m4/getloadavg.m4.
71161         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
71162         the former is now obsolescent.
71163
71164         * modules/chdir-long (Depends-on): Add fcntl.
71165
71166 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
71169         obsolescent, and programs should use gnulib instead.
71170         * m4/getloadavg.m4: New file, with contents taken from Autoconf
71171         but with prefixes changed.
71172
71173 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71174
71175         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
71176         or stdbool.h, because they might not exist while configuring.
71177
71178         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
71179         Don't include unistd.h or limits.h; not needed, since chdir-long.h
71180         does that for us.
71181         (O_DIRECTORY): Remove.
71182
71183 2006-08-31  Eric Blake  <ebb9@byu.net>
71184
71185         * gnulib-tool: Don't let emacs change spaces to TAB.
71186
71187 2006-08-31  Bruno Haible  <bruno@clisp.org>
71188
71189         * gnulib-tool: When calling func_import more than once, do it in a
71190         subshell.
71191         Reported by Eric Blake <ebb9@byu.net>.
71192
71193 2006-08-31  Bruno Haible  <bruno@clisp.org>
71194
71195         * gnulib-tool (nl): Remove variable.
71196         (sed_transform_lib_file): Use more robust test for config-h module.
71197         (func_import): Fix typo in 2006-08-25 patch.
71198
71199 2006-08-31  Bruno Haible  <bruno@clisp.org>
71200
71201         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
71202         specified, augment Makefile.am variables instead of assigning them.
71203
71204 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71205
71206         Work around a bug in both the Linux and SunOS 64-bit kernels:
71207         nanosleep mishandles sleeps for longer than 2**31 seconds.
71208         Problem reported by Frank v Waveren in
71209         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71210         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
71211         Check for nanosleep bug.
71212         (LIB_NANOSLEEP): Append clock_gettime library if needed.
71213
71214 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71215
71216         Work around a bug in both the Linux and SunOS 64-bit kernels:
71217         nanosleep mishandles sleeps for longer than 2**31 seconds.
71218         Problem reported by Frank v Waveren in
71219         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71220         * lib/nanosleep.c (BILLION): New constant.
71221         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
71222         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
71223         implementation.
71224
71225 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71226
71227         * modules/nanosleep (Depends-on): Add gettime.
71228
71229 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71230         and Simon Josefsson  <jas@extundo.com>
71231         and Oskar Liljeblad  <oskar@osk.mine.nu>
71232
71233         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
71234         * gnulib-tool (func_import): New license type 'unmodifiable license
71235         text'.
71236         * modules/fdl: Use it.  Longer description.
71237         * module/gpl, module/lgpl: New files.
71238
71239 2006-08-30  Jim Meyering  <jim@meyering.net>
71240
71241         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
71242         shadowing the parameter.
71243
71244 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71245
71246         Sync from Libtool:
71247
71248         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71249
71250         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
71251         sharing with gnulib.  Report by Eric Blake.
71252
71253 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71254
71255         * modules/isapipe: New file.
71256         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
71257
71258 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71259
71260         * modules/configmake (Makefile.am): Add a comment, and omit
71261         the CONFIGMAKE_ prefix from generated macro names.  Suggested
71262         by Bruno Haible.
71263
71264 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71265
71266         * m4/isapipe.m4: New file.
71267
71268 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71269
71270         * lib/isapipe.c, lib/isapipe.h: New files.
71271
71272 2006-08-29  Jim Meyering  <jim@meyering.net>
71273
71274         * modules/configmake (Makefile.am): Make configmake.h depend on
71275         Makefile.  Otherwise, a stale configmake.h could hang around.
71276
71277 2006-08-29  Eric Blake  <ebb9@byu.net>
71278
71279         * lib/error.c (error_at_line, print_errno_message): Match libc, after
71280         resolution of upstream bug 3044.
71281
71282 2006-08-29  Bruno Haible  <bruno@clisp.org>
71283
71284         * modules/localcharset (Depends-on): Add configmake.
71285         (Makefile.am): Remove setting of LIBDIR through DEFS.
71286
71287 2006-08-29  Bruno Haible  <bruno@clisp.org>
71288
71289         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
71290         defined.
71291
71292 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71293
71294         * modules/fcntl: New file.
71295         * modules/chdir-safer (Depends-on): Add fcntl.
71296         * modules/fts: Likewise.
71297         * modules/mkdir-p: Likewise.
71298
71299         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
71300         This undoes the most recent change, since we're now addressing the
71301         problem in a different way.
71302
71303         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
71304         into output, since the output might be called Makefile.am even
71305         if $makefile_name is something different.
71306         (func_import): Use $makefile_am rather than
71307         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
71308         empty.
71309
71310         * modules/inttypes (Files): Add m4/inttypes-h.m4.
71311
71312 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71313
71314         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
71315         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
71316         recent change to stdint.m4, since we're now addressing the problem in a
71317         different way.
71318
71319 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71320
71321         * m4/fcntl_h.m4: New file.
71322
71323 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71324
71325         * lib/fcntl_.h: New file.
71326         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
71327         the fcntl module.
71328         * lib/dirchownmod.c: Likewise.
71329         * lib/fts.c: Likewise.
71330
71331         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
71332         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
71333         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
71334         just before including <inttypes.h>, to avoid circular inclusion.
71335
71336 2006-08-28  Jim Meyering  <jim@meyering.net>
71337
71338         * doc/visibility.texi: Actually read and correct the grammar of the
71339         sentence affected by yesterday's change.
71340
71341 2006-08-28  Eric Blake  <ebb9@byu.net>
71342
71343         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
71344         needs wrapper.
71345
71346 2006-08-28  Eric Blake  <ebb9@byu.net>
71347
71348         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
71349
71350 2006-08-28  Eric Blake  <ebb9@byu.net>
71351
71352         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
71353
71354 2006-08-28  Bruno Haible  <bruno@clisp.org>
71355
71356         * modules/c-strstr: New file, from GNU gettext.
71357         * MODULES.html.sh (String handling): Add c-strstr.
71358
71359 2006-08-28  Bruno Haible  <bruno@clisp.org>
71360
71361         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
71362         macros.
71363         Reported by Eric Blake.
71364
71365 2006-08-28  Bruno Haible  <bruno@clisp.org>
71366
71367         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
71368         (VASNPRINTF): Return a string of length > INT_MAX without failing.
71369         * lib/vasprintf.c: Include errno.h, limits.h.
71370         (EOVERFLOW): New fallback definition.
71371         (vasprintf): Test here whether the string length is > INT_MAX.
71372         * lib/vsnprintf.c: Include errno.h, limits.h.
71373         (EOVERFLOW): New fallback definition.
71374         (vsnprintf): Fix bug when generated string was too long for the buffer.
71375         Test here whether the string length is > INT_MAX.
71376
71377 2006-08-28  Bruno Haible  <bruno@clisp.org>
71378
71379         * lib/inttypes_.h (SCNX*): Remove definitions.
71380         Reported by Eric Blake.
71381
71382 2006-08-28  Bruno Haible  <bruno@clisp.org>
71383
71384         * lib/c-strstr.h: New file, from GNU gettext.
71385         * lib/c-strstr.c: New file, from GNU gettext.
71386
71387 2006-08-28  Bruno Haible  <bruno@clisp.org>
71388
71389         * gnulib-tool: Reorder some statements.
71390
71391 2006-08-28  Bruno Haible  <bruno@clisp.org>
71392
71393         * gnulib-tool: New option --makefile-name.
71394         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
71395         $makefile_name.
71396         (func_import): Write $makefile_name to the cache file, and read it from
71397         there unless explicitly specified. Use $makefile_name as file name
71398         instead of Makefile.am. Adjust the recommendations accordingly.
71399
71400 2006-08-28  Bruno Haible  <bruno@clisp.org>
71401
71402         * gnulib-tool (func_verify_module): Check against misapplying patch.
71403
71404 2006-08-28  Bruno Haible  <bruno@clisp.org>
71405
71406         * gnulib-tool (func_relativize, func_relconcat): New functions.
71407         Give an error if --local-dir is given with --update.
71408         Remove trailing slashes from $local_gnulib_dir.
71409         (func_import): Store the relativized $local_gnulib_dir in
71410         gnulib-cache.m4, and read it from there if not specified explicitly.
71411
71412 2006-08-28  Bruno Haible  <bruno@clisp.org>
71413
71414         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
71415         is the current directory. Respect also $local_gnulib_dir.
71416
71417 2006-08-28  Bruno Haible  <bruno@clisp.org>
71418             Simon Josefsson  <jas@extundo.com>
71419
71420         BeOS portability.
71421         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
71422
71423 2006-08-27  Jim Meyering  <jim@meyering.net>
71424
71425         * doc/visibility.texi: Remove duplicate word: "pointer".
71426
71427 2006-08-26  Bruno Haible  <bruno@clisp.org>
71428
71429         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
71430         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
71431         (Makefile.am): Create inttypes.h from inttypes_.h.
71432         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
71433
71434         * modules/imaxabs: New file.
71435
71436         * modules/imaxdiv: New file.
71437
71438 2006-08-26  Bruno Haible  <bruno@clisp.org>
71439
71440         * m4/inttypes.m4: New file.
71441         * m4/_inttypes_h.m4: Remove file.
71442         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
71443         PRI_MACROS_BROKEN.
71444         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
71445
71446         * m4/imaxabs.m4: New file.
71447
71448         * m4/imaxdiv.m4: New file.
71449
71450 2006-08-26  Bruno Haible  <bruno@clisp.org>
71451
71452         * lib/inttypes_.h: New file.
71453         * lib/inttypes.h: Remove file.
71454         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
71455
71456         * lib/imaxabs.c: New file.
71457
71458         * lib/imaxdiv.c: New file.
71459
71460 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71461
71462         New config-h module, so that "make" output needn't be cluttered
71463         by -DHAVE_CONFIG_H.
71464         * MODULES.html.sh (Support for building libraries and executables):
71465         Add config-h.
71466         * modules/config-h: New file.
71467         * gnulib-tool (nl, sed_transform_lib_file): New vars.
71468         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
71469         the config-h module is used.
71470
71471         New configmake module, so that "make" output needn't be cluttered
71472         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
71473         * MODULES.html.sh (Support for building libraries and executables):
71474         Add configmake.
71475         * modules/configmake: New file.
71476
71477 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71478
71479         * m4/config-h.m4: New file.
71480
71481 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71482
71483         * config/srclist.txt: Add elisp-comp.
71484
71485 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71486
71487         * MODULES.html.sh (Support for building libraries and executables):
71488         Add elisp-comp.
71489         * build-aux/elisp-comp: New file.
71490         * modules/elisp-comp: New file.
71491
71492 2006-08-24  Bruno Haible  <bruno@clisp.org>
71493
71494         * gnulib-tool (func_create_testdir): Use non-default values of
71495         sourcebase and m4base.
71496
71497 2006-08-24  Bruno Haible  <bruno@clisp.org>
71498
71499         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
71500         HTML structure.
71501
71502 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71503
71504         * modules/openat (Depends-on): Add lchown.
71505
71506 2006-08-23  Bruno Haible  <bruno@clisp.org>
71507
71508         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
71509         of gl_LOCK_EARLY instead of gl_LOCK.
71510
71511 2006-08-23  Bruno Haible  <bruno@clisp.org>
71512
71513         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
71514         on OSF/1 to no.
71515         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
71516
71517 2006-08-23  Bruno Haible  <bruno@clisp.org>
71518
71519         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
71520         as unusable.
71521
71522         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
71523         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
71524         (gl_LOCK): New macro.
71525
71526 2006-08-22  Simon Josefsson  <jas@extundo.com>
71527
71528         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
71529         to md5 module.
71530
71531 2006-08-22  Simon Josefsson  <jas@extundo.com>
71532
71533         * MODULES.html.sh: Add "Support for maintaining and release
71534         projects".
71535
71536         * build-aux/gnupload: New file, from coreutils.
71537
71538 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71539
71540         Avoid the need for AC_LIBSOURCES in m4 macros.
71541         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
71542         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
71543         * modules/check-version (EXTRA_DIST): Add check-version.h.
71544         * modules/crc (EXTRA_DIST): Add crc.h.
71545         * modules/des (EXTRA_DIST): Add des.h.
71546         * modules/gc (EXTRA_DIST): Add gc.h.
71547         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
71548         * modules/getline (EXTRA_DIST): Add getline.h.
71549         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
71550         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
71551         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
71552         * modules/md2 (EXTRA_DIST): Add md2.h.
71553         * modules/md4 (EXTRA_DIST): Add md4.h.
71554         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
71555         * modules/read-file (EXTRA_DIST): Add read-file.h.
71556         * modules/readline (EXTRA_DIST): Add readline.h.
71557         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
71558         rijndael-api-fst.h.
71559
71560 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71561
71562         * m4/rijndael.m4 (gl_ARCFOUR):
71563         * m4/arctwo.m4 (gl_ARCTWO):
71564         * m4/check-version.m4 (gl_CHECK_VERSION):
71565         * m4/crc.m4 (gl_CRC):
71566         * m4/des.m4 (gl_DES):
71567         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
71568         * m4/gc.m4 (gl_GC):
71569         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
71570         * m4/getline.m4 (gl_FUNC_GETLINE):
71571         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
71572         * m4/hmac-md5.m4 (gl_HMAC_MD5):
71573         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
71574         * m4/md2.m4 (gl_MD2):
71575         * m4/md4.m4 (gl_MD4):
71576         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
71577         * m4/read-file.m4 (gl_FUNC_READ_FILE):
71578         * m4/readline.m4 (gl_FUNC_READLINE):
71579         * m4/rijndael.m4 (gl_RIJNDAEL):
71580         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71581         to get the necessary .h files and whatnot.
71582
71583 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71584
71585         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
71586         gnulib rather than the other way around.
71587         * config/srclistvars.sh (COREUTILS): Remove.
71588
71589 2006-08-22  Jim Meyering  <jim@meyering.net>
71590
71591         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
71592
71593         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
71594
71595 2006-08-22  Eric Blake  <ebb9@byu.net>
71596
71597         * modules/regexprops-generic: New file.
71598         * MODULES.html.sh (Support for building documentation): List it.
71599
71600 2006-08-22  Eric Blake  <ebb9@byu.net>
71601
71602         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
71603         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71604         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
71605         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
71606
71607 2006-08-22  Bruno Haible  <bruno@clisp.org>
71608
71609         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
71610         and lib_LTLIBRARIES like the other lib_* variables.
71611
71612 2006-08-22  Bruno Haible  <bruno@clisp.org>
71613
71614         * build-aux/x-to-1.in: New file, from GNU gettext.
71615
71616 2006-08-22  Bruno Haible  <bruno@clisp.org>
71617
71618         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
71619         <utmpx.h> exists.
71620
71621 2006-08-22  Bruno Haible  <bruno@clisp.org>
71622
71623         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
71624         <utmpx.h> exists.
71625
71626 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71627
71628         BeOS portability.
71629         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
71630         exist.
71631         Problem reported by Bruno Haible.
71632
71633 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71634
71635         Avoid the need for AC_LIBSOURCES in m4 macros.
71636         * modules/acl (EXTRA_DIST): Add acl.h.
71637         * modules/argmatch (Files): Add m4/argmatch.m4.
71638         (configure.ac): Add gl_ARGMATCH.
71639         (EXTRA_DIST): Renamed from lib_SOURCES, for
71640         consistency with the other modules.  Remove argmatch.c.
71641         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
71642         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
71643         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
71644         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
71645         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
71646         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
71647         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
71648         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
71649         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
71650         * modules/closeout (EXTRA_DIST): Add closeout.h.
71651         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
71652         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
71653         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
71654         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
71655         dirname.h; remove basename.c and stripslash.c.
71656         * modules/exclude (EXTRA_DIST): Add exclude.h.
71657         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
71658         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
71659         * modules/file-type (EXTRA_DIST): Add file-type.h.
71660         * modules/filemode (EXTRA_DIST): Add filemode.h.
71661         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
71662         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71663         * modules/fpending (EXTRA_DIST): Add __fpending.h.
71664         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
71665         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
71666         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
71667         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
71668         * modules/getdate (EXTRA_DIST): Add getdate.c.
71669         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
71670         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
71671         * modules/getpass (EXTRA_DIST): Add getpass.h.
71672         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
71673         * modules/group-member (EXTRA_DIST): Add group-member.h.
71674         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
71675         * modules/hash (EXTRA_DIST): Add hash.h.
71676         * modules/human (EXTRA_DIST): Add human.h.
71677         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
71678         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
71679         * modules/lchown (EXTRA_DIST): Add lchown.h.
71680         * modules/long-options (EXTRA_DIST): Add long-options.h.
71681         * modules/lstat (EXTRA_DIST): Add lstat.h.
71682         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
71683         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
71684         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
71685         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
71686         * modules/memxor (EXTRA_DIST): Add memxor.h.
71687         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
71688         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
71689         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
71690         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
71691         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
71692         * modules/physmem (EXTRA_DIST): Add physmem.h.
71693         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
71694         * modules/posixver (EXTRA_DIST): Add posixver.h.
71695         * modules/quote (EXTRA_DIST): Add quote.h.
71696         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
71697         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
71698         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
71699         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
71700         regex_internal.h regexec.c.
71701         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
71702         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
71703         * modules/same (EXTRA_DIST): Add same.h.
71704         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
71705         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
71706         * modules/savedir (EXTRA_DIST): Add savedir.h.
71707         * modules/sha1 (EXTRA_DIST): Add sha1.h.
71708         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
71709         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
71710         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
71711         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
71712         * modules/strdup (EXTRA_DIST): Add strdup.h.
71713         * modules/strftime (EXTRA_DIST): Add strftime.h.
71714         * modules/strndup (EXTRA_DIST): Add strndup.h.
71715         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
71716         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
71717         * modules/time_r (EXTRA_DIST): Add time_r.h.
71718         * modules/timespec (EXTRA_DIST): Add timespec.h.
71719         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71720         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
71721         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
71722         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
71723         * modules/userspec (EXTRA_DIST): Add userspec.h.
71724         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
71725         * modules/utimens (EXTRA_DIST): Add utimens.h.
71726         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
71727         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
71728         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
71729         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
71730         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
71731         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
71732         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
71733         * modules/yesno (EXTRA_DIST): Add yesno.h.
71734
71735 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71736
71737         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
71738
71739         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
71740         * m4/dev-ino.m4, same-inode.m4: Remove.
71741
71742         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
71743         * m4/acl.m4 (AC_FUNC_ACL):
71744         * m4/backupfile.m4 (gl_BACKUPFILE):
71745         * m4/c-strtod.m4 (gl_C99_STRTOLD):
71746         * m4/canon-host.m4 (gl_CANON_HOST):
71747         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71748         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
71749         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
71750         * m4/cloexec.m4 (gl_CLOEXEC):
71751         * m4/close-stream.m4 (gl_CLOSE_STREAM):
71752         * m4/closeout.m4 (gl_CLOSEOUT):
71753         * m4/dirfd.m4 (gl_FUNC_DIRFD):
71754         * m4/dirname.m4 (gl_DIRNAME):
71755         * m4/exclude.m4 (gl_EXCLUDE):
71756         * m4/exitfail.m4 (gl_EXITFAIL):
71757         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
71758         * m4/file-type.m4 (gl_FILE_TYPE):
71759         * m4/filemode.m4 (gl_FILEMODE):
71760         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
71761         * m4/fpending.m4 (gl_FUNC_FPENDING):
71762         * m4/fprintftime.m4 (gl_FPRINTFTIME):
71763         * m4/fts.m4 (gl_FUNC_FTS):
71764         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
71765         * m4/getdate.m4 (gl_GETDATE):
71766         * m4/gethrxtime.m4 (gl_GETHRXTIME):
71767         * m4/getpagesize.m4 (gl_GETPAGESIZE):
71768         * m4/getpass.m4 (gl_FUNC_GETPASS):
71769         * m4/gettime.m4 (gl_GETTIME):
71770         * m4/getugroups.m4 (gl_GETUGROUPS):
71771         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
71772         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
71773         * m4/hard-locale.m4 (gl_HARD_LOCALE):
71774         * m4/hash.m4 (gl_HASH):
71775         * m4/idcache.m4 (gl_IDCACHE):
71776         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
71777         * m4/lchown.m4 (gl_FUNC_LCHOWN):
71778         * m4/long-options.m4 (gl_LONG_OPTIONS):
71779         * m4/lstat.m4 (gl_FUNC_LSTAT):
71780         * m4/md5.m4 (gl_MD5):
71781         * m4/memcasecmp.m4 (gl_MEMCASECMP):
71782         * m4/memcoll.m4 (gl_MEMCOLL):
71783         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
71784         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
71785         * m4/memxor.m4 (gl_MEMXOR):
71786         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
71787         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
71788         * m4/modechange.m4 (gl_MODECHANGE):
71789         * m4/mountlist.m4 (gl_MOUNTLIST):
71790         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71791         * m4/openat.m4 (gl_FUNC_OPENAT):
71792         * m4/pathmax.m4 (gl_PATHMAX):
71793         * m4/physmem.m4 (gl_PHYSMEM):
71794         * m4/posixtm.m4 (gl_POSIXTM):
71795         * m4/posixver.m4 (gl_POSIXVER):
71796         * m4/quote.m4 (gl_QUOTE):
71797         * m4/quotearg.m4 (gl_QUOTEARG):
71798         * m4/readtokens.m4 (gl_READTOKENS):
71799         * m4/readutmp.m4 (gl_READUTMP):
71800         * m4/regex.m4 (gl_REGEX):
71801         * m4/safe-read.m4 (gl_SAFE_READ):
71802         * m4/safe-write.m4 (gl_SAFE_WRITE):
71803         * m4/same.m4 (gl_SAME):
71804         * m4/save-cwd.m4 (gl_SAVE_CWD):
71805         * m4/savedir.m4 (gl_SAVEDIR):
71806         * m4/settime.m4 (gl_SETTIME):
71807         * m4/sha1.m4 (gl_SHA1):
71808         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
71809         * m4/stat-macros.m4 (gl_STAT_MACROS):
71810         * m4/stat-time.m4 (gl_STAT_TIME):
71811         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
71812         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
71813         * m4/strdup.m4 (gl_FUNC_STRDUP):
71814         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
71815         * m4/strndup.m4 (gl_FUNC_STRNDUP):
71816         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
71817         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
71818         * m4/time_r.m4 (gl_TIME_R):
71819         * m4/timespec.m4 (gl_TIMESPEC):
71820         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
71821         * m4/unlinkdir.m4 (gl_UNLINKDIR):
71822         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
71823         * m4/userspec.m4 (gl_USERSPEC):
71824         * m4/utimecmp.m4 (gl_UTIMECMP):
71825         * m4/utimens.m4 (gl_UTIMENS):
71826         * m4/xalloc.m4 (gl_XALLOC):
71827         * m4/xgetcwd.m4 (gl_XGETCWD):
71828         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
71829         * m4/xreadlink.m4 (gl_XREADLINK):
71830         * m4/xstrtod.m4 (gl_XSTRTOD):
71831         * m4/yesno.m4 (gl_YESNO):
71832         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71833         to get the necessary .h files and whatnot.
71834
71835 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
71836             Bruno Haible  <bruno@clisp.org>
71837
71838         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
71839         /bin/sh understanding of '!' conditional negation.
71840
71841 2006-08-21  Jim Meyering  <jim@meyering.net>
71842
71843         * modules/openat (Depends-on): Really alphabetize.
71844
71845         * modules/acl (Depends-on): Add error and quote.
71846
71847         * check-module (find_included_lib_files): Add at-func.c to the
71848         ok-to-include-more-than-once white list.
71849
71850         * modules/openat (Depends-on): Add lstat.  Alphabetize.
71851
71852 2006-08-21  Bruno Haible  <bruno@clisp.org>
71853
71854         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71855         Emit a pkgdata_DATA variable only if some snippets add contents to it.
71856         Reported by Martin Lambers <marlam@marlam.de>.
71857
71858 2006-08-21  Bruno Haible  <bruno@clisp.org>
71859
71860         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
71861         specify an installation location, don't emit a noinst_LIBRARIES or
71862         noinst_LTLIBRARIES assignment.
71863
71864 2006-08-21  Bruno Haible  <bruno@clisp.org>
71865
71866         BeOS portability.
71867         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
71868         BeOS has mbrtowc() but no <wctype.h>.
71869
71870 2006-08-21  Bruno Haible  <bruno@clisp.org>
71871
71872         BeOS portability.
71873         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
71874         exist.
71875
71876 2006-08-21  Bruno Haible  <bruno@clisp.org>
71877
71878         BeOS portability.
71879         * lib/mbchar.h: Include <wctype.h> only if it exists.
71880
71881 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71882
71883         Remove files that are no longer needed by their respective modules.
71884         * m4/obstack.m4: Remove.
71885         * m4/strerror_r.m4: Remove.
71886         * m4/uint32_t.m4: Remove.
71887         * m4/uintptr_t.m4: Remove.
71888         * m4/ullong_max.m4: Remove.
71889         * m4/xstrtoimax.m4: Remove.
71890         * m4/xstrtoumax.m4: Remove.
71891
71892         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
71893         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
71894         dependencies now capture this.
71895
71896         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
71897         Do not use AC_LIBSOURCES, since gnulib modules now do this.
71898         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
71899         * m4/human.m4 (gl_HUMAN): Likewise.
71900         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
71901         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
71902
71903         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
71904
71905         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
71906         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
71907         stdint.
71908         * m4/human.m4 (gl_HUMAN): Likewise.
71909         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
71910         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
71911         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71912         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71913         * m4/xstrtol (gl_XSTRTOL): Likewise.
71914
71915         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
71916         AC_TYPE_LONG_LONG_INT.
71917         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71918         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
71919         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
71920         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71921
71922         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
71923         on stdbool.
71924
71925         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
71926         (gl_PREREQ_XSTRTOUL): Remove.
71927
71928         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
71929
71930         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
71931         mode.
71932
71933 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71934
71935         Add and change modules to make it easier for coreutils to use
71936         gnulib-tool.
71937         * modules/backupfile (Files): Remove m4/d-ino.m4.
71938         (Depends-on): Add d-ino.
71939         * modules/cycle-check (Depends-on): Add stdint.
71940         (lib_SOURCES): Add cycle-check.h.
71941         * modules/d-ino: New module.
71942         * modules/d-type: New module.
71943         * modules/error (Files): Remove m4/strerror_r.m4.
71944         * modules/filemode (Files): Add m4/st_dm_mode.m4.
71945         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71946         m4/inttypes_h.m4, m4/uintmax_t.m4.
71947         (Depends-on): Add stdint.
71948         (lib_SOURCES): Add fsusage.h.
71949         * modules/getcwd (Files): Remove d-ino.m4.
71950         (Depends-on): Add d-ino.
71951         * modules/getndelim2 (Depends-on): Add stdint.
71952         * modules/glob (Files): Remove m4/d-type.m4.
71953         (Depends-on): Add d-type.
71954         * modules/host-os: New module.
71955         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
71956         m4/inttypes_h.m4, m4/uintmax_t.m4.
71957         * Depends-on: Add stdint.
71958         (lib_SOURCES): Add human.h.
71959         * modules/inttostr (Files): Remove m4/intmax_t.m4,
71960         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
71961         m4/uintmax_t.m4, m4/ulonglong.m4.
71962         (Depends-on): Add stdint.
71963         (EXTRA_DIST): Add inttostr.h.
71964         * modules/lchmod: New module.
71965         * modules/link-follow: New module.
71966         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
71967         (Depends-on): Add lchmod.
71968         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
71969         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
71970         (Depends-on): Add stdint.
71971         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
71972         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
71973         (Depends-on): Add stdint.
71974         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
71975         * modules/perl: New module.
71976         * modules/regex (Depends-on): Add stdint.
71977         * modules/rmdir-errno: New module.
71978         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71979         m4/intmax_t.m4.
71980         (Depends-on): Add stdint.
71981         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71982         m4/uintmax_t.m4.
71983         (Depends-on): Add stdint.
71984         * modules/unlink-busy: New module.
71985         * modules/utimecmp (Depends-on): Add stdint.
71986         * modules/uptime: New module.
71987         * modules/winsz-ioctl: New module.
71988         * modules/winsz-termios: New module.
71989         * modules/xnanosleep (Depends-on): Add nanosleep.
71990         * modules/ullong_max: Remove.
71991         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
71992         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
71993         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
71994         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
71995         (Depends-on): Add inttypes.
71996         (lib_SOURCES): Add xstrtol.h.
71997         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
71998         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
71999         * MODULES.html.sh: Move 'assert' into the assert section.
72000         Move 'dummy' into the linking section.
72001         Remove ullong_max.
72002         Add section for compatibility checks for POSIX:2001 functions,
72003         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
72004         winsz-ioctl, and winsz-termios into it.
72005         Add lchmod.
72006         Add top-level Misc section and put host-os, perl, and uptime
72007         into it.
72008
72009 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72010
72011         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
72012         now assume the stdint module.  Do not include inttypes.h.
72013         * lib/fsusage.h: Likewise.
72014         * lib/getndelim2.c: Likewise.
72015         * lib/human.h: Likewise.
72016         * lib/inttostr.h: Likewise.
72017         * lib/obstack.c: Likewise.
72018         * lib/regex_internal.h: Likewise.
72019         * lib/tempname.c: Likewise.
72020         * lib/utimecmp.c: Likewise.
72021         * lib/xstrtol.h: Likewise.
72022
72023         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
72024
72025         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
72026         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
72027         * lib/xtime.h: Likewise.
72028
72029 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72030
72031         * modules/openat (Files): Add lib/fchmodat.c.
72032         Fixes problem reported by Jay Youngman.
72033
72034 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72035
72036         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
72037         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
72038
72039 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
72040             Bruno Haible  <bruno@clisp.org>
72041
72042         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
72043         and is a script that invokes bison. Tighten the code. Add comments.
72044
72045 2006-08-18  Jim Meyering  <jim@meyering.net>
72046
72047         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
72048         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
72049         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
72050         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
72051
72052 2006-08-18  Bruno Haible  <bruno@clisp.org>
72053
72054         * modules/bison-i18n: New file.
72055         * MODULES.html.sh (Internationalization functions): Add it.
72056
72057 2006-08-18  Bruno Haible  <bruno@clisp.org>
72058
72059         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
72060         sys/statvfs.h. When getmntinfo was found, check its declaration and
72061         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
72062
72063 2006-08-18  Bruno Haible  <bruno@clisp.org>
72064
72065         * m4/bison-i18n.m4: New file, from bison.
72066
72067 2006-08-18  Bruno Haible  <bruno@clisp.org>
72068
72069         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
72070         (ME_DUMMY): Treat "kernfs" as a dummy.
72071         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
72072
72073 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72074
72075         Update from coreutils.
72076
72077         2006-08-15  Jim Meyering  <jim@meyering.net>
72078
72079         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
72080
72081         2006-01-17  Jim Meyering  <jim@meyering.net>
72082
72083         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
72084
72085         2006-01-11  Jim Meyering  <jim@meyering.net>
72086
72087         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
72088         Check for the lchmod function.
72089
72090 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72091
72092         Update from coreutils.
72093
72094         * lib/__fpending.h: Add copyright notice.
72095         * lib/fprintftime.h: Likewise.
72096         * lib/savedir.c: Use (C) in copyright notice.
72097         * lib/savedir.h: Likewise.
72098
72099         2006-08-15  Jim Meyering  <jim@meyering.net>
72100
72101         * lib/at-func.c: New file, with the logic of all emulated at-functions.
72102         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
72103         in support of the EXPECTED_ERRNO macro.
72104         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
72105         definitions.  Instead, define the appropriate symbols and include
72106         "at-func.c".
72107         * lib/mkdirat.c (mkdirat): Likewise.
72108         * lib/fchmodat.c (fchmodat): Likewise.
72109         (ENOSYS): Remove definition.
72110         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
72111         it.  Don't include "unistd--.h" -- it wasn't ever used.
72112
72113         2006-01-17  Jim Meyering  <jim@meyering.net>
72114
72115         Rewrite fts.c not to change the current working directory,
72116         by using openat, fstatat, fdopendir, etc..
72117
72118         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
72119         (HAVE_OPENAT_SUPPORT): Define.
72120         [_LIBC] (fchdir): Don't undef or define; no longer used.
72121         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
72122         Now, this `function' always succeeds, and consumes its file descriptor
72123         parameter -- so callers must not close such FDs.  Update callers.
72124         (diropen_fd, opendirat, cwd_advance_fd): New functions.
72125         (diropen): Add parameter, SP.  Adjust all callers.
72126         Implement using diropen_fd, rather than open.
72127         (fts_open): Initialize new member, fts_cwd_fd.
72128         Remove fts_rft-setting code.
72129         (fts_close): Close fts_cwd_fd, if necessary.
72130         (__opendir2): Define in terms of opendir or opendirat,
72131         depending on whether the FST_NOCHDIR flag is set.
72132         (fts_build): Since fts_safe_changedir consumes its FD, and since
72133         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
72134         and close the dup'd file descriptor upon failure.
72135         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
72136         (fts_safe_changedir): Tweak semantics to reflect that this function
72137         now calls cwd_advance_fd and hence consumes its FD argument.
72138         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
72139         [struct FTS] (fts_rft): Remove now-unused member.
72140         [struct FTS] (fts_cycle.state): Improve comment.
72141
72142         * lib/openat.c (openat_needs_fchdir): New function.
72143         * lib/openat.h (openat_needs_fchdir): Declare it.
72144
72145 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72146
72147         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
72148         Problem and fix reported by Pádraig Brady in
72149         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
72150
72151 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72152
72153         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
72154
72155 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72156
72157         * lib/memcoll.c (memcoll): Optimize for the common case where the
72158         arguments are bytewise equal.
72159
72160 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72161
72162         * doc/regexprops-generic.texi: Add a copyright notice.
72163
72164 2006-08-15  Bruno Haible  <bruno@clisp.org>
72165
72166         * modules/tmpdir (License): Change to LGPL.
72167
72168 2006-08-15  Bruno Haible  <bruno@clisp.org>
72169
72170         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
72171         module.
72172
72173 2006-08-14  Simon Josefsson  <jas@extundo.com>
72174
72175         * config/srclist.txt: Add gnupload.
72176
72177 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72178
72179         Change copyright notice from LGPL 2 to GPL 2, since that's the
72180         standard form used in the gnulib repository.
72181         * tests/test-lock.c: Likewise.
72182         * tests/test-stdint.c: Likewise.
72183         * tests/test-tls.c: Likewise.
72184
72185         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
72186         prelude-manager.  User shorter URLs for GNU projects, without '?'.
72187         Add copyright notice.
72188
72189         * check-module: Add copyright notice.  Output a copyright
72190         notice if "--version" is specified.
72191         * modules/COPYING: New file.
72192         * tests/test-getaddrinfo.c: Add copyright notice.
72193         * tests/test-verify.c: Likewise.
72194
72195 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72196
72197         Change copyright notice from LGPL 2 to GPL 2, since that's the
72198         standard form used in the gnulib repository.
72199         * lib/lock.c: LGPL -> GPL.
72200         * lib/lock.h: Likewise.
72201         * lib/strnlen1.c: Likewise.
72202         * lib/strnlen1.h: Likewise.
72203         * lib/tls.c: Likewise.
72204         * lib/tls.h: Likewise.
72205         * lib/tmpdir.c: Likewise.
72206
72207         * lib/TODO: Remove; this belongs only in coreutils.
72208
72209 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72210
72211         Add copyright notices to long-enough files that lack them, since
72212         otherwise the files aren't clearly free.  Use the same notice that
72213         getdate.texi already uses.
72214         * doc/alloca-opt.texi: Add copyright notice.
72215         * doc/alloca.texi: Likewise.
72216         * doc/ctime.texi: Likewise.
72217         * doc/functions.texi: Likewise.
72218         * doc/gcd.texi: Likewise.
72219         * doc/gnulib-tool.texi: Likewise.
72220         * doc/inet_ntoa.texi: Likewise.
72221         * doc/visibility.texi: Likewise.
72222
72223         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
72224         * doc/quote.texi: Add copyright notice.
72225
72226         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
72227         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
72228         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
72229         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
72230         is now obsolete, and give a pointer to the Sun list.
72231         Add copyright notice.
72232
72233 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72234
72235         * config/srclistvars.sh: Add copyright notice.
72236
72237 2006-08-14  Eric Blake  <ebb9@byu.net>
72238
72239         Import the following change from libc:
72240
72241         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
72242
72243         Upstream bug 2997.
72244         * lib/misc/error.c: Add space between program name and message if file
72245         name is missing.
72246
72247 2006-08-12  Karl Berry  <karl@gnu.org>
72248
72249         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
72250         remove, these originate in gnulib now.
72251
72252 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72253
72254         * doc/Makefile (standards.info standards.html standards.dvi):
72255         Also depend on make-stds.texi.
72256
72257 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72258
72259         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
72260         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
72261
72262         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
72263         in wchar_t.  Problem reported by Eric Blake.
72264
72265         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
72266         LEN is smaller than SIZE.  Suggested by Bruno Haible.
72267         Also, help the compiler to keep LEN in a register.
72268
72269 2006-08-11  Eric Blake  <ebb9@byu.net>
72270
72271         * users.txt: Sort.  Add tar.
72272
72273 2006-08-11  Bruno Haible  <bruno@clisp.org>
72274
72275         * users.txt: New file.
72276
72277 2006-08-11  Bruno Haible  <bruno@clisp.org>
72278
72279         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
72280         before <wchar.h>. Needed for OSF/1 and BSD/OS.
72281
72282 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72283
72284         * modules/snprintf (Depends-on): Remove minmax.
72285         (Maintainer): Add self and Bruno.
72286
72287 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72288
72289         * lib/.cppi-disable: Add snprintf.h, socket_.h.
72290         * lib/snprintf.c: Include <errno.h> and <limits.h>.
72291         (EOVERFLOW): Define if the system does not.
72292         Do not include "minmax.h"; it wasn't used.
72293         (snprintf): Don't assume size_t promotes to an unsigned type.
72294         Fix bug when generated string was too long for the buffer: the
72295         buffer's contents are supposed to be the initial prefix of the
72296         output.  Don't assume vasnprintf returns EOVERFLOW if the size
72297         exceeds INT_MAX; do the check ourselves.
72298
72299         Import the following changes from libc:
72300
72301         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
72302
72303         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
72304         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
72305         set wc to the byte which couldn't be converted.
72306         (re_string_reconstruct): Don't clear valid_raw_len before calling
72307         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
72308         tip_context using re_string_context_at.
72309
72310         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
72311
72312         * lib/posix/regex.h: g++ still cannot handled [restrict].
72313
72314         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
72315
72316         * lib/posix/regex.h: Remove special handling for VMS.
72317
72318 2006-08-10  Jim Meyering  <jim@meyering.net>
72319
72320         * modules/same-inode: New module.
72321         * modules/dev-ino: New module.
72322         * modules/cycle-check: Depend on these modules, rather than simply
72323         including their .h files.
72324         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
72325         required via m4/cycle-check.m4.
72326         * modules/same: Depend on new same-inode module, rather than
72327         including same-inode.h.
72328         * modules/chdir-safer: New file.
72329
72330         * modules/chown (Depends-on): Add stat-macros.
72331
72332 2006-08-10  Jim Meyering  <jim@meyering.net>
72333
72334         * m4/cycle-check.m4: New file.
72335         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
72336         * m4/dev-ino.m4, m4/same-inode.m4: New files.
72337
72338 2006-08-10  Eric Blake  <ebb9@byu.net>
72339
72340         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
72341         in from original proposal.
72342
72343 2006-08-10  Eric Blake  <ebb9@byu.net>
72344         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72345
72346         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
72347         namespace.
72348
72349 2006-08-10  Bruno Haible  <bruno@clisp.org>
72350
72351         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
72352         as well.
72353
72354 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72355
72356         Sync from coreutils.
72357
72358         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
72359
72360         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
72361         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
72362
72363 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72364
72365         * modules/restrict: Remove; no longer needed now that we assume
72366         Autoconf 2.59 or later.
72367         * MODULES.html.sh: Remove 'restrict'.
72368         * modules/argp (Depends-on): Remove 'restrict'.
72369         * modules/base64 (Depends-on): Likewise.
72370         * modules/gc (Depends-on): Likewise.
72371         * modules/getaddrinfo (Depends-on): Likewise.
72372         * modules/glob (Depends-on): Likewise.
72373         * modules/inet_ntop (Depends-on): Likewise.
72374         * modules/inet_pton (Depends-on): Likewise.
72375         * modules/memxor (Depends-on): Likewise.
72376         * modules/regex (Depends-on): Likewise.
72377         * modules/strtok_r (Depends-on): Likewise.
72378         * modules/time_r (Depends-on): Likewise.
72379
72380 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72381
72382         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
72383         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
72384         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72385         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
72386         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
72387         * m4/memxor.m4 (gl_MEMXOR): Likewise.
72388         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
72389         gl_C_RESTRICT replaced by AC_C_RESTRICT.
72390
72391         Merge from coreutils.
72392         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
72393         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
72394         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72395         * m4/time_r.m4 (gl_TIME_R): Likewise.
72396
72397 2006-08-09  Karl Berry  <karl@gnu.org>
72398
72399         * config/srclist.txt: no more gettext-tools, per Bruno.
72400
72401 2006-08-08  Eric Blake  <ebb9@byu.net>
72402
72403         * modules/verror: New module.
72404         * MODULES.html.sh: Document it.
72405
72406 2006-08-08  Eric Blake  <ebb9@byu.net>
72407
72408         * lib/verror.h, lib/verror.c: New files.
72409
72410 2006-08-08  Eric Blake  <ebb9@byu.net>
72411
72412         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
72413         verror_at_line output complies with GNU Coding Standards even when
72414         file is NULL.
72415
72416 2006-08-07  Bruno Haible  <bruno@clisp.org>
72417
72418         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
72419         versions of AIX.
72420         Reported by Ralf Wildenhues.
72421
72422 2006-08-07  Bruno Haible  <bruno@clisp.org>
72423
72424         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
72425         in an AC_DEFUN. Needed so that the autoconf snippets can use
72426         AC_REQUIRE.
72427
72428 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72429
72430         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72431         Initialize pkgdata_DATA.
72432         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
72433         overriding it.
72434
72435 2006-08-06  Eric Blake  <ebb9@byu.net>
72436
72437         * lib/error.h: Fold in some upstream changes from glibc.
72438         * lib/error.c: Likewise.
72439
72440 2006-08-04  Bruno Haible  <bruno@clisp.org>
72441
72442         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72443         Make the mostlyclean-local rule depend on mostlyclean-generic.
72444         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
72445
72446 2006-07-31  Bruno Haible  <bruno@clisp.org>
72447
72448         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
72449         <stdlib.h>, <string.h>.
72450
72451 2006-07-30  Bruno Haible  <bruno@clisp.org>
72452
72453         * modules/readlink (License): Change to LGPL.
72454
72455 2006-07-30  Bruno Haible  <bruno@clisp.org>
72456
72457         * modules/javaversion (Makefile.am): Distribute javaversion.java and
72458         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
72459         set PKGDATADIR to point to it.
72460
72461 2006-07-30  Bruno Haible  <bruno@clisp.org>
72462
72463         * modules/csharpexec (configure.ac): Comment out macro invocation.
72464         * modules/javaexec (configure.ac): Likewise.
72465         * modules/javacomp-script (configure.ac): Likewise.
72466
72467         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
72468
72469 2006-07-30  Bruno Haible  <bruno@clisp.org>
72470
72471         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
72472         linked-list.
72473
72474 2006-07-30  Bruno Haible  <bruno@clisp.org>
72475
72476         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
72477
72478 2006-07-30  Bruno Haible  <bruno@clisp.org>
72479
72480         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72481         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
72482         get removed.
72483
72484 2006-07-29  Bruno Haible  <bruno@clisp.org>
72485
72486         Make it possible for gnulib-tool to work with locally modified or
72487         augmented gnulib repositories.
72488         * gnulib-tool (func_usage): Document --local-dir option.
72489         (local_gnulib_dir): New variable.
72490         Handle --local-dir option.
72491         (func_lookup_file): New function.
72492         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
72493         (func_get_description, func_get_filelist, func_get_description,
72494         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
72495         func_get_automake_snippet, func_get_include_directive,
72496         func_get_license, func_get_maintainer): Use func_lookup_file.
72497         (func_import, func_create_testdir): Use func_lookup_file.
72498
72499 2006-07-29  Bruno Haible  <bruno@clisp.org>
72500
72501         * modules/setenv (Depends-on): Add unistd.
72502
72503 2006-07-29  Bruno Haible  <bruno@clisp.org>
72504
72505         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
72506
72507 2006-07-29  Bruno Haible  <bruno@clisp.org>
72508
72509         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
72510
72511 2006-07-29  Bruno Haible  <bruno@clisp.org>
72512
72513         * gnulib-tool (import, update): If there is no Makefile.am, look at
72514         aclocal.m4, instead of bailing out.
72515
72516 2006-07-29  Bruno Haible  <bruno@clisp.org>
72517
72518         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
72519         Categorize the options by when they are useful.
72520
72521 2006-07-29  Bruno Haible  <bruno@clisp.org>
72522
72523         * gnulib-tool (func_usage): Document option --no-libtool.
72524         Handle option --no-libtool.
72525         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
72526         for changed semantics of $libtool variable.
72527         (func_import): Likewise. If libtool is not used, show this through
72528         an option --no-libtool.
72529         (func_create_testdir): Update.
72530
72531 2006-07-29  Bruno Haible  <bruno@clisp.org>
72532
72533         * gnulib-tool (func_import): Extend error message about missing
72534         --doc-base.
72535
72536 2006-07-29  Bruno Haible  <bruno@clisp.org>
72537
72538         * gnulib-tool (func_import): Don't create the $docbase directory if
72539         there is no file to store there.
72540
72541 2006-07-29  Bruno Haible  <bruno@clisp.org>
72542
72543         * gnulib-tool (autoconf_minversion): If a --dir option is given and
72544         relevant, look for configure.ac there, not in the current directory.
72545         Also use a simple search for AC_PREREQ, not "autoconf --trace".
72546
72547 2006-07-29  Bruno Haible  <bruno@clisp.org>
72548
72549         * gnulib-tool (SORT): New variable.
72550         (func_usage): Undocument --assume-autoconf option.
72551         Remove --assume-autoconf option handling.
72552         (autoconf_minversion): Determine from the contents of configure.ac.
72553         (func_import): Remove autoconf_minversion handling.
72554         Suggested by Eric Blake.
72555
72556 2006-07-29  Bruno Haible  <bruno@clisp.org>
72557
72558         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
72559
72560 2006-07-29  Bruno Haible  <bruno@clisp.org>
72561
72562         * config/srclist.txt (*setenv.[ch]): Remove rules.
72563
72564 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72565
72566         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
72567
72568 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72569
72570         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
72571         arpa/inet.h.
72572
72573 2006-07-28  Simon Josefsson  <jas@extundo.com>
72574
72575         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
72576         * modules/inet_pton (Depends-on): Likewise.
72577
72578 2006-07-28  Simon Josefsson  <jas@extundo.com>
72579
72580         * m4/netinet_in_h.m4: New file.
72581
72582 2006-07-28  Simon Josefsson  <jas@extundo.com>
72583
72584         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
72585         #include's.
72586
72587 2006-07-28  Simon Josefsson  <jas@extundo.com>
72588
72589         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
72590         #include's.
72591
72592 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
72593
72594         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
72595         setgid on directories only if they set these bits.
72596         * lib/modechange.h: Remove obsolete comment about masks.
72597
72598 2006-07-28  Eric Blake  <ebb9@byu.net>
72599
72600         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
72601         macro expansion.
72602
72603 2006-07-28  Bruno Haible  <bruno@clisp.org>
72604
72605         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
72606
72607 2006-07-28  Bruno Haible  <bruno@clisp.org>
72608
72609         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
72610
72611 2006-07-28  Bruno Haible  <bruno@clisp.org>
72612
72613         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
72614         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
72615         Define fallbacks.
72616         Avoids link error on FreeBSD 4.x.
72617         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72618
72619         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
72620         encoding.
72621         * lib/mbswidth.c (iswcntrl): Likewise.
72622
72623 2006-07-27  Bruno Haible  <bruno@clisp.org>
72624
72625         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
72626         test.
72627
72628 2006-07-27  Bruno Haible  <bruno@clisp.org>
72629
72630         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
72631         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
72632         defined.
72633
72634 2006-07-26  Eric Blake  <ebb9@byu.net>
72635
72636         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
72637
72638 2006-07-26  Eric Blake  <ebb9@byu.net>
72639
72640         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
72641         like mingw that lack mkstemp.
72642         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
72643         avoid compilation warning on mingw.
72644
72645 2006-07-26  Bruno Haible  <bruno@clisp.org>
72646
72647         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
72648         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
72649         INT_FAST*_MIN, INTPTR_MIN.
72650
72651 2006-07-25  Bruno Haible  <bruno@clisp.org>
72652
72653         * modules/version-etc (Depends-on): Add stdarg.
72654
72655 2006-07-25  Bruno Haible  <bruno@clisp.org>
72656
72657         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
72658         complex commands.
72659
72660 2006-07-25  Bruno Haible  <bruno@clisp.org>
72661
72662         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
72663         defined in <stdarg.h> or config.h.
72664
72665 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72666
72667         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
72668         (gl_STDIO_SAFER): Remove.
72669
72670 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72671
72672         * MODULES.html.sh (File stream based Input/Output):
72673         Add fopen-safer, tmpfile-safer; remove stdio-safer.
72674         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
72675         * modules/fopen-safer, modules/tmpfile-safer: New files.
72676         * modules/stdio-safer: Remove.
72677
72678 2006-07-24  Bruno Haible  <bruno@clisp.org>
72679
72680         * modules/tmpdir: New file.
72681         * MODULES.html.sh (File system functions): Add it.
72682
72683 2006-07-24  Bruno Haible  <bruno@clisp.org>
72684
72685         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
72686         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
72687
72688 2006-07-24  Bruno Haible  <bruno@clisp.org>
72689
72690         * modules/clean-temp: New file.
72691
72692 2006-07-24  Bruno Haible  <bruno@clisp.org>
72693
72694         * m4/tmpdir.m4: New file, from GNU gettext.
72695
72696 2006-07-24  Bruno Haible  <bruno@clisp.org>
72697
72698         * lib/tmpdir.h: New file, from GNU gettext.
72699         * lib/tmpdir.c: New file, from GNU gettext.
72700
72701 2006-07-24  Bruno Haible  <bruno@clisp.org>
72702
72703         * lib/clean-temp.h: New file, from GNU gettext.
72704         * lib/clean-temp.c: New file, from GNU gettext.
72705
72706 2006-07-23  Eric Blake  <ebb9@byu.net>
72707
72708         * modules/stdio-safer (Files): Add tmpfile-safer.c.
72709         (Depends-on): Add binary-io.
72710
72711 2006-07-23  Eric Blake  <ebb9@byu.net>
72712
72713         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
72714
72715 2006-07-23  Eric Blake  <ebb9@byu.net>
72716
72717         * lib/tmpfile-safer.c: New file.
72718         * lib/stdio-safer.h (fopen_safer): Add prototype.
72719         * lib/stdio--.h (tmpfile): Make safer.
72720
72721 2006-07-23  Bruno Haible  <bruno@clisp.org>
72722
72723         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
72724         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
72725         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
72726         gl_linked_remove_at): Use it.
72727
72728 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72729         and Simon Josefsson <jas@extundo.com>
72730
72731         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
72732
72733         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
72734
72735 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72736
72737         * modules/close-stream: New file.
72738         * modules/closeout (Description): Make it clear that it exits
72739         with a diagnostic on error.
72740         (Depends-on): Add close-stream.  Remove fpending, stdbool.
72741         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
72742
72743 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72744
72745         * m4/close-stream.m4: New file.
72746
72747 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72748
72749         * lib/close-stream.c, lib/close-stream.h: New files.
72750
72751 2006-07-22  Bruno Haible  <bruno@clisp.org>
72752
72753         Merge from GNU gettext 0.15.
72754
72755         2006-05-01  Bruno Haible  <bruno@clisp.org>
72756
72757                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
72758
72759         2006-07-22  Bruno Haible  <bruno@clisp.org>
72760
72761                 * modules/javaversion: New file.
72762                 * MODULES.html.sh (Java): Add javaversion.
72763
72764         2006-03-12  Bruno Haible  <bruno@clisp.org>
72765
72766                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
72767
72768         2005-12-04  Bruno Haible  <bruno@clisp.org>
72769
72770                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
72771                 (untested).
72772
72773         2006-06-21  Bruno Haible  <bruno@clisp.org>
72774
72775                 Avoid warnings from recent versions of mcs.
72776                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
72777                 -o, -L, -r any more. Use options documented since mcs-1.0
72778                 instead. Similarly for -g.
72779
72780         2005-12-04  Bruno Haible  <bruno@clisp.org>
72781
72782                 * build-aux/csharpcomp.sh.in: Suffix for resources is
72783                 .resources, not .resource.
72784
72785         2005-07-09  Bruno Haible  <bruno@clisp.org>
72786
72787                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
72788                 add a .dll suffix.
72789                 Reported by Mark Junker <mjscod@gmx.de>.
72790
72791         2006-07-22  Bruno Haible  <bruno@clisp.org>
72792
72793                 * modules/gettext: Upgrade to gettext-0.15.
72794                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
72795                 m4/visibility.m4.
72796                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
72797
72798 2006-07-22  Bruno Haible  <bruno@clisp.org>
72799
72800         Merge from GNU gettext 0.15.
72801
72802         2006-03-25  Bruno Haible  <bruno@clisp.org>
72803
72804                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
72805
72806         2006-07-21  Bruno Haible  <bruno@clisp.org>
72807
72808                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
72809                 "1.1".
72810
72811         2006-05-09  Bruno Haible  <bruno@clisp.org>
72812
72813                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
72814                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
72815                 for the conftestver execution.
72816
72817         2006-05-01  Bruno Haible  <bruno@clisp.org>
72818
72819                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
72820                 optional target-version argument. Verify that the compiler
72821                 groks source of the specified source-version, or add -source
72822                 option as necessary. Verify that the compiler produces
72823                 bytecode in the specified target-version, or add -target and
72824                 -source options as necessary. Make the result of the test
72825                 available as variable CONF_JAVAC. Also log error output in
72826                 config.log.
72827
72828         2006-03-11  Bruno Haible  <bruno@clisp.org>
72829
72830                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
72831
72832         2006-05-09  Bruno Haible  <bruno@clisp.org>
72833
72834                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
72835                 CLASSPATH_SEPARATOR to a semicolon.
72836
72837         2006-03-12  Bruno Haible  <bruno@clisp.org>
72838
72839                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
72840                 available as variable CONF_JAVA, for subsequent autoconf
72841                 tests. Also log error output in config.log.
72842
72843         2006-07-19  Bruno Haible  <bruno@clisp.org>
72844
72845                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
72846                 that getline works on glibc2 systems. Needed to avoid trouble
72847                 in relocatable.c.
72848                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
72849
72850         2005-12-04  Bruno Haible  <bruno@clisp.org>
72851
72852                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
72853                 launcher (untested).
72854
72855         2005-12-04  Bruno Haible  <bruno@clisp.org>
72856
72857                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
72858
72859         2006-07-22  Bruno Haible  <bruno@clisp.org>
72860
72861                 * gettext.m4: Update from GNU gettext-0.15.
72862                 * nls.m4: Likewise.
72863                 * po.m4: Likewise.
72864                 * inttypes-pri.m4: Likewise.
72865                 * inttypes-h.m4: Renamed from inttypes.m4.
72866                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
72867
72868 2006-07-22  Bruno Haible  <bruno@clisp.org>
72869
72870         Merge from GNU gettext 0.15.
72871
72872         2005-07-05  Bruno Haible  <bruno@clisp.org>
72873
72874                 * printf-args.c (printf_fetchargs): Work around broken
72875                 definition of wint_t on mingw.
72876
72877         2005-02-12  Bruno Haible  <bruno@clisp.org>
72878
72879                 * xallocsa.h: Add extern "C" for C++.
72880
72881         2006-05-17  Bruno Haible  <bruno@clisp.org>
72882
72883                 Cygwin portability.
72884                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
72885
72886         2006-04-30  Bruno Haible  <bruno@clisp.org>
72887
72888                 * progreloc.c: Include <mach-o/dyld.h> if available.
72889                 (find_executable): Use _NSGetExecutablePath when possible.
72890
72891         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72892
72893                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
72894                 function.
72895
72896         2005-12-29  Bruno Haible  <bruno@clisp.org>
72897
72898                 * progreloc.c (set_program_name_and_installdir): Fix
72899                 compilation error.
72900
72901         2005-12-04  Bruno Haible  <bruno@clisp.org>
72902
72903                 Cygwin portability.
72904                 * progreloc.c: Include <windows.h> also on Cygwin.
72905                 (find_executable): Add support for Cygwin.
72906                 (set_program_name_and_installdir): Handle also platforms with
72907                 nonempty EXEEXT.
72908
72909         2006-07-11  Bruno Haible  <bruno@clisp.org>
72910
72911                 * javacomp.c: Fix a comment.
72912                 Reported by Jim Meyering.
72913
72914         2006-04-30  Bruno Haible  <bruno@clisp.org>
72915
72916                 * javacomp.h (compile_java_class): Add source_version,
72917                 target_version arguments.
72918                 * javacomp.c: Rewritten to choose only a compiler that
72919                 respects the specified source_version and target_version.
72920
72921         2006-06-27  Bruno Haible  <bruno@clisp.org>
72922
72923                 Assume correct S_ISDIR macro.
72924                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
72925
72926         2006-07-22  Bruno Haible  <bruno@clisp.org>
72927
72928                 * javaversion.h: New file, from GNU gettext.
72929                 * javaversion.c: New file, from GNU gettext.
72930                 * javaversion.java: New file, from GNU gettext.
72931                 * javaversion.class: New file, from GNU gettext.
72932
72933         2006-05-17  Bruno Haible  <bruno@clisp.org>
72934
72935                 Cygwin portability.
72936                 * javaexec.c (execute_java_class): Test for jview program
72937                 also on Cygwin.
72938
72939         2006-04-09  Bruno Haible  <bruno@clisp.org>
72940
72941                 * fatal-signal.c: Don't include string.h.
72942                 (at_fatal_signal): Use a copying loop instead of memcpy.
72943
72944         2005-12-04  Bruno Haible  <bruno@clisp.org>
72945
72946                 * csharpexec.c: Add support for 'clix' launcher (untested).
72947                 (execute_csharp_using_sscli): New function.
72948                 (execute_csharp_program): Call it.
72949
72950         2006-06-21  Bruno Haible  <bruno@clisp.org>
72951
72952                 Avoid warnings from recent versions of mcs.
72953                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
72954                 -o, -L, -r any more. Use options documented since mcs-1.0
72955                 instead. Similarly for -g.
72956
72957         2005-07-09  Bruno Haible  <bruno@clisp.org>
72958
72959                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
72960                 add a .dll suffix.
72961                 Reported by Mark Junker <mjscod@gmx.de>.
72962
72963         2006-06-17  Bruno Haible  <bruno@clisp.org>
72964
72965                 * config.charset: Update for NetBSD 3.0.
72966
72967         2006-05-17  Bruno Haible  <bruno@clisp.org>
72968
72969                 Cygwin portability.
72970                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
72971
72972         2006-05-16  Bruno Haible  <bruno@clisp.org>
72973
72974                 * localcharset.c [CYGWIN]: Include <windows.h>.
72975                 (get_charset_aliases): For Cygwin, return the same CPxxx
72976                 aliases list as under WIN32.
72977                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
72978                 the environment variables. Fall back to GetACP().
72979
72980         2006-04-05  Bruno Haible  <bruno@clisp.org>
72981
72982                 * config.charset: Update Juan Manuel Guerrero's address.
72983
72984         2005-02-12  Bruno Haible  <bruno@clisp.org>
72985
72986                 * allocsa.h: Add extern "C" for C++.
72987
72988         2005-02-10  Bruno Haible  <bruno@clisp.org>
72989
72990                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
72991                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
72992
72993         2006-07-22  Bruno Haible  <bruno@clisp.org>
72994
72995                 * gettext.h: Update to GNU gettext-0.15.
72996
72997 2006-07-22  Bruno Haible  <bruno@clisp.org>
72998
72999         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
73000         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
73001         lib-prefix.m4, longdouble.m4, ssize_t.m4.
73002
73003 2006-07-21  Eric Blake  <ebb9@byu.net>
73004
73005         * modules/stdlib-safer: New file.
73006         * MODULES.html.sh (File stream based Input/Output): Add
73007         stdlib-safer.
73008
73009 2006-07-21  Eric Blake  <ebb9@byu.net>
73010
73011         * lib/stdlib-safer.h: New file from coreutils, required by
73012         stdlib--.h.
73013
73014 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
73015
73016         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
73017
73018 2006-07-20  Bruno Haible  <bruno@clisp.org>
73019
73020         * gnulib-tool: Recognize new option --assume-autoconf.
73021         (autoconf_minversion): New variable.
73022         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
73023
73024 2006-07-20  Bruno Haible  <bruno@clisp.org>
73025
73026         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
73027
73028 2006-07-19  Derek R. Price  <derek@ximbiot.com>
73029
73030         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
73031         Reindent and repaginate.
73032
73033 2006-07-19  Derek Price  <derek@ximbiot.com>
73034
73035         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
73036         Correct grammar.
73037
73038 2006-07-17  Bruno Haible  <bruno@clisp.org>
73039
73040         * modules/list: New file.
73041         * modules/array-list: New file.
73042         * modules/carray-list, modules/carray-list-tests: New files.
73043         * modules/linked-list, modules/linked-list-tests: New files.
73044         * modules/avltree-list, modules/avltree-list-tests: New files.
73045         * modules/rbtree-list, modules/rbtree-list-tests: New files.
73046         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
73047         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
73048         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
73049         * modules/oset: New file.
73050         * modules/array-oset: New file.
73051         * modules/avltree-oset, modules/avltree-oset-tests: New files.
73052         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
73053         * tests/test-carray_list.c: New file.
73054         * tests/test-linked_list.c: New file.
73055         * tests/test-avltree_list.c: New file.
73056         * tests/test-rbtree_list.c: New file.
73057         * tests/test-linkedhash_list.c: New file.
73058         * tests/test-avltreehash_list.c: New file.
73059         * tests/test-rbtreehash_list.c: New file.
73060         * tests/test-avltree_oset.c: New file.
73061         * tests/test-rbtree_oset.c: New file.
73062         * MODULES.html.sh (Container data structures): New section.
73063
73064 2006-07-17  Bruno Haible  <bruno@clisp.org>
73065
73066         * m4/gl_list.m4: New file.
73067
73068 2006-07-17  Bruno Haible  <bruno@clisp.org>
73069
73070         * lib/gl_list.h: New file.
73071         * lib/gl_list.c: New file.
73072         * lib/gl_array_list.h: New file.
73073         * lib/gl_array_list.c: New file.
73074         * lib/gl_carray_list.h: New file.
73075         * lib/gl_carray_list.c: New file.
73076         * lib/gl_linked_list.h: New file.
73077         * lib/gl_linked_list.c: New file.
73078         * lib/gl_anylinked_list1.h: New file.
73079         * lib/gl_anylinked_list2.h: New file.
73080         * lib/gl_avltree_list.h: New file.
73081         * lib/gl_avltree_list.c: New file.
73082         * lib/gl_anyavltree_list1.h: New file.
73083         * lib/gl_anyavltree_list2.h: New file.
73084         * lib/gl_rbtree_list.h: New file.
73085         * lib/gl_rbtree_list.c: New file.
73086         * lib/gl_anyrbtree_list1.h: New file.
73087         * lib/gl_anyrbtree_list2.h: New file.
73088         * lib/gl_anytree_list1.h: New file.
73089         * lib/gl_anytree_list2.h: New file.
73090         * lib/gl_linkedhash_list.h: New file.
73091         * lib/gl_linkedhash_list.c: New file.
73092         * lib/gl_anyhash_list1.h: New file.
73093         * lib/gl_anyhash_list2.h: New file.
73094         * lib/gl_avltreehash_list.h: New file.
73095         * lib/gl_avltreehash_list.c: New file.
73096         * lib/gl_rbtreehash_list.h: New file.
73097         * lib/gl_rbtreehash_list.c: New file.
73098         * lib/gl_anytreehash_list1.h: New file.
73099         * lib/gl_anytreehash_list2.h: New file.
73100
73101         * lib/gl_oset.h: New file.
73102         * lib/gl_oset.c: New file.
73103         * lib/gl_array_oset.h: New file.
73104         * lib/gl_array_oset.c: New file.
73105         * lib/gl_avltree_oset.h: New file.
73106         * lib/gl_avltree_oset.c: New file.
73107         * lib/gl_rbtree_oset.h: New file.
73108         * lib/gl_rbtree_oset.c: New file.
73109         * lib/gl_anytree_oset.h: New file.
73110
73111 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73112
73113         * m4/mkancesdirs.m4: New file.
73114         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
73115         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
73116         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
73117         it.
73118
73119 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73120
73121         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
73122         * lib/mkancesdirs.h: New files.
73123         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
73124         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
73125         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
73126         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
73127         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
73128         callers changed.  Revamp internals significantly, by not
73129         attempting to create directories that are temporarily more
73130         permissive than the final results.  Do not attempt to use
73131         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
73132         This removes some race conditions, fixes some bugs, and simplifies
73133         things.  Use new dirchownmod function to do owner and mode changes.
73134         * lib/mkdir-p.h: Likewise.
73135         * lib/modechange.c (octal_to_mode): New function.
73136         (struct mode_change): New member mentioned.
73137         (make_node_op_equals): New arg mentioned.  All callers changed.
73138         (mode_compile): Keep track of which mode bits the user has explicitly
73139         mentioned.
73140         (mode_adjust): New arg DIR, so that we implement the X op correctly.
73141         New arg PMODE_BITS, to keep track of which mode bits the user
73142         mentioned; it treats S_ISUID and S_ISGID speciall.
73143         All callers changed.
73144         * lib/modechange.h: Likewise.
73145
73146 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73147
73148         * MODULES.html.sh: Add mkancestors.
73149         * modules/mkancesdirs: New module.
73150         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
73151         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
73152         The chdir-safer and afs files are now orphans; I'll remove them
73153         unless someone speaks up.
73154         Add lib/dirchownmod.c, lib/dirchownmod.h.
73155         (Depends-on): Remove alloca, chown, save-cwd, dirname.
73156         Add lchown, mkancesdirs.
73157         (Maintainer): Add self.
73158
73159 2006-07-15  Karl Berry  <karl@gnu.org>
73160
73161         * gnulib-tool: help message wording/arrangement.
73162
73163 2006-07-14  Simon Josefsson  <jas@extundo.com>
73164
73165         * doc/gnulib.texi (Libtool and Windows): New section.
73166
73167 2006-07-12  Simon Josefsson  <jas@extundo.com>
73168
73169         * modules/gendocs (License): Fix license, approved by Karl.
73170
73171 2006-07-12  Eric Blake  <ebb9@byu.net>
73172
73173         * MODULES.html.sh: Add gendocs.
73174
73175 2006-07-11  Eric Blake  <ebb9@byu.net>
73176
73177         * modules/fdl: New module, to install doc/fdl.texi.
73178         * MODULES.html.sh: Add new section for documentation modules.
73179         * gnulib-tool: Avoid space-tab.
73180         (--doc-base): New option, to manage files from doc.
73181
73182 2006-07-11  Eric Blake  <ebb9@byu.net>
73183
73184         * m4/absolute-header.m4: Fix comments to match recent change.
73185
73186 2006-07-11  Eric Blake  <ebb9@byu.net>
73187
73188         * gnulib-tool: List --doc-base before --tests-base.
73189
73190 2006-07-11  Derek R. Price  <derek@ximbiot.com>
73191
73192         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
73193
73194 2006-07-11  Bruno Haible  <bruno@clisp.org>
73195
73196         * README: Mention where to put documentation.
73197
73198 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73199
73200         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
73201
73202 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73203
73204         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
73205         to stdint.m4.
73206
73207 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73208
73209         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
73210         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
73211         "no/such/file/stdint.h" when there is no such file, so that
73212         the resulting C code can be parsed by dodgy compilers.
73213         Problems reported by Bob Proulx.
73214
73215 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73216
73217         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
73218         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73219         macros into the GNU _D_EXACT_NAMLEN.
73220         * lib/savedir.c:  Likewise.
73221         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
73222
73223 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73224         and Paul Eggert  <eggert@cs.ucla.edu>
73225
73226         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
73227         * m4/savedir.m4:
73228         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73229         macros into the GNU _D_EXACT_NAMLEN.
73230
73231 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73232
73233         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
73234         around the absolute name, to work around a problem with the HP-UX
73235         11.23 native C compiler, reported by Bob Proulx.
73236
73237 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73238
73239         * doc/maintain.texi, make-stds.texi: Sync from
73240         <http://savannah.gnu.org/projects/gnustandards>.
73241
73242 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73243
73244         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
73245
73246 2006-07-09  Jim Meyering  <jim@meyering.net>
73247
73248         * m4/glob.m4: Remove a doubled word in a comment.
73249
73250 2006-07-09  Jim Meyering  <jim@meyering.net>
73251
73252         * lib/argp-pv.c: Remove a doubled word in a comment.
73253         * lib/check-version.c (check_version): Likewise.
73254         * lib/javacomp.c (compile_java_class): Likewise.
73255
73256 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73257
73258         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
73259         for the benefit of people using Autoconf 2.60.  If you want to
73260         support older Autoconf versions you can copy m4/onceonly_2_57.m4
73261         (or m4/onceonly.m4, if pre-2.57) manually.
73262
73263 2006-07-08  Jim Meyering  <jim@meyering.net>
73264
73265         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
73266         comment.
73267         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
73268         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
73269         comment.
73270
73271 2006-07-08  Jim Meyering  <jim@meyering.net>
73272
73273         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
73274
73275 2006-07-07  Simon Josefsson  <jas@extundo.com>
73276
73277         * tests/test-crc.c: Change expected crc value, the test vector
73278         were probably computed using the old broken crc.c?
73279
73280 2006-07-06  Simon Josefsson  <jas@extundo.com>
73281
73282         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
73283         now the canonical place for the M4 file).
73284
73285         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
73286         from the sys_socket dependency now.
73287
73288         * modules/inet_pton (Files): Ditto.
73289
73290         * modules/inet_ntop (Files): Ditto.
73291
73292 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73293
73294         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
73295         not gl_PREREQ_GETUSERSHELL.
73296
73297 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73298
73299         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
73300         with only one argument, for Autoconf 2.60.
73301         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
73302         expand to nothing, so add a shell command to avoid syntax error.
73303         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73304
73305 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73306
73307         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
73308
73309 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73310
73311         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
73312         no longer needed.  Check for isblank decl.
73313         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
73314         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
73315         of existence.
73316
73317 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73318
73319         * lib/getloadavg.c: Use __VMS, not VMS.
73320         * lib/getopt.c: Likewise.
73321         * lib/getpagesize.h: Likewise.
73322         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
73323         and probably does not work.
73324
73325 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73326
73327         * lib/.cppi-disable: Add wcwidth.
73328         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
73329         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
73330         (ISGRAPH): Remove.  All uses changed to isgraph.
73331         (FOLD) [!defined _LIBC]: Remove special case.
73332         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
73333         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
73334         HAVE_ISBLANK.
73335         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
73336         case.
73337
73338 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73339
73340         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
73341         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
73342         brackets.  Other minor changes to suppress some compiler
73343         warnings.
73344
73345 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73346         and Paul Eggert  <eggert@cs.ucla.edu>
73347
73348         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
73349         of invoking obsolescent AC_HEADER_DIRENT macro.
73350         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
73351         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
73352         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
73353         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73354         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
73355         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73356         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
73357         * m4/readdir.m4: Remove; no longer needed.
73358
73359 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73360         and Paul Eggert  <eggert@cs.ucla.edu>
73361
73362         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
73363         Don't worry about this obsolete case any more.
73364         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
73365         directories.
73366         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
73367         worry about this obsolete case any more.
73368         * lib/fts.c: Likewise.
73369         * lib/getcwd.c: Likewise.
73370         * lib/glob.h: Likewise.
73371         * lib/savedir.c: Likewise.
73372
73373 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73374
73375         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
73376         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
73377         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
73378         needed.
73379         All uses removed.
73380         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73381         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73382         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
73383         needed.
73384         * m4/getdate.m4 (gl_GETDATE): Likewise.
73385         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73386         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73387         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73388         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73389         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73390         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73391         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
73392         needed.
73393
73394 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73395
73396         * lib/memcasecmp.c: Include <limits.h>.
73397         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
73398         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
73399         Don't assume isdigit succeeds only on '0' through '9'.
73400
73401 2006-07-05  Eric Blake  <ebb9@byu.net>
73402
73403         * modules/getaddrinfo (Depends-on): Add snprintf.
73404
73405 2006-07-05  Eric Blake  <ebb9@byu.net>
73406
73407         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
73408         to avoid 'header present but could not be compiled' on cygwin.
73409
73410 2006-07-05  Eric Blake  <ebb9@byu.net>
73411
73412         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
73413         missing from netdb.h.
73414         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
73415
73416 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73417
73418         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
73419         no longer needed.
73420         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
73421         * m4/getdate.m4 (gl_GETDATE): Likewise.
73422         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73423         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73424         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73425         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73426         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73427
73428 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73429
73430         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
73431         All uses of is_space replaced by isspace.
73432         * lib/exit.h: Don't talk about STDC_HEADERS.
73433         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
73434         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
73435         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
73436         replaced by isprint etc.
73437         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
73438         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73439         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
73440         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
73441         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
73442         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73443
73444 2006-07-05  Bruno Haible  <bruno@clisp.org>
73445
73446         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
73447         the function exists, before testing against AIX.
73448         Reported by Martin Lambers <marlam@marlam.de>.
73449
73450 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73451
73452         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
73453         From Mark D. Baushke.
73454
73455 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73456
73457         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
73458         to the absolute name, not just one, to bypass Sun C 5.8's
73459         "warning: #include of /usr/include/... may be non-portable".
73460
73461 2006-07-04  Eric Blake  <ebb9@byu.net>
73462
73463         * modules/dirname-tests: New test module.
73464         * tests/test-dirname.c: New file, replacing dirname.c
73465         TEST_DIRNAME section that was recently deleted.
73466
73467 2006-07-04  Bruno Haible  <bruno@clisp.org>
73468
73469         Assume ANSI C header files and <ctype.h> functions.
73470         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
73471         (mbsnwidth): Use isprint, iscntrl instead.
73472
73473 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73474
73475         Merge from coreutils.
73476         * MODULES.html.sh: Add xstrtold.
73477         * modules/xstrtold: New file.
73478         * modules/cycle-check (Files): Add lib/same-inode.h.
73479         * modules/dirname (Files): Add m4/double-slash-root.m4.
73480         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
73481         * modules/mkdir-p (Files): Add lib/same-inode.h.
73482         * modules/same (Files): Add lib/same-inode.h.
73483
73484 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73485
73486         * m4/absolute-header.m4: Renamed from full-header-path.m4.
73487         This is to keep the terminology clean; POSIX talks about
73488         "absolute pathnames", not "full pathnames", but the GNU
73489         Coding Standards say to use "path" for something else;
73490         so use "absolute" to keep both sides happy.
73491         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
73492         Set gl_absolute_header, not gl_full_header_path.
73493         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
73494         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
73495         All uses changed.
73496
73497         Merge from coreutils.
73498
73499         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73500
73501         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
73502         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
73503         want to require the building of c-strtod.o.
73504         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
73505         needs -lm directly.
73506         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
73507
73508         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73509
73510         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
73511         --as-needed option if available.  Problem reported by Albert Chin in
73512         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
73513         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
73514         cc merely issues a bunch of annoying warnings for --as-needed
73515         (this problem was reported by Bob Proulx).  Also, try linking with
73516         -lm to detect a bug in binutils 2.16 (this problem was reported
73517         by Ralf Wildenhues).
73518
73519         2006-06-18  Jim Meyering  <jim@meyering.net>
73520
73521         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
73522         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
73523         macro.
73524         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
73525         also check for glibc-2.4's abort-inducing bug.
73526
73527         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
73528         Low-probability clean-up should be to use rmdir to get rid of
73529         the just-created directory, not unlink.
73530
73531         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
73532         configure fail, and request a bug report to inform us about it.
73533         Add a comment that, barring reports to the contrary, in 2007 we'll
73534         assume ftruncate is universally available.
73535
73536         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73537
73538         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
73539
73540         2006-03-12  Jim Meyering  <jim@meyering.net>
73541
73542         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
73543         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
73544         * m4/same.m4 (gl_SAME): Likewise.
73545         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
73546
73547         2006-03-11  Eric Blake  <ebb9@byu.net>
73548
73549         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
73550         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
73551         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
73552         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
73553
73554 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73555
73556         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
73557         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
73558         reported by Mark D. Baushke, one in
73559         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
73560
73561         Merge from coreutils.
73562
73563         * lib/.cppi-disable: Add stdint_.h.
73564         * lib/.cvsignore: Add stdint.h.
73565
73566         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73567
73568         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
73569         both double and long double versions.
73570         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
73571         * lib/xstrtold.c: New file.
73572         * lib/xstrtod.h (xstrtold): New decl.
73573
73574         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73575
73576         * lib/filemode.c (setst): Remove.
73577         (strmode): Rewrite to avoid setst.  This makes the code shorter,
73578         (arguably) clearer, and the generated code is a bit smaller on my
73579         Debian GNU/Linux stable x86 host.
73580
73581         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73582
73583         * lib/filemode.c: Include "filemode.h" first, to test the interface.
73584         Assume that filemode.h includes sys/types.h and sys/stat.h.
73585         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
73586         (ftypelet): Reorder to put common cases first, for efficiency.
73587         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
73588         to do 'M'.
73589         (strmode): Renamed from mode_string, and now stores 12 bytes instead
73590         of 10, for compatibility with FreeBSD.  All callers changed.
73591         (filemodestring): Now stores 12 bytes instead of 10, and sets file
73592         types that can't be deduced solely from st_mode.  First arg is now a
73593         const pointer.
73594         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
73595         (strmode): Renamed from mode_string.
73596         (filemodestring): New decl.
73597         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
73598         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
73599         needed.
73600         (S_ISPORT, S_ISWHT): New macros, if not already defined.
73601
73602         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73603
73604         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
73605         fsusage.h now does that.  Include fsusage.h first, to test interface.
73606         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
73607         at most one method (the old code could have generated decls that
73608         didn't conform to C89, not that this was ever exercised).
73609         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
73610
73611         2006-03-19  Jim Meyering  <jim@meyering.net>
73612
73613         Work even in a chroot where d_ino values for entries in "/"
73614         don't match the stat.st_ino values for the same names.
73615         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
73616         number, iterate through all entries again, using lstat instead.
73617         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
73618         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
73619
73620         * lib/getcwd.c (__getcwd): Clarify a comment.
73621         Use memcpy in place of a call to strcpy.
73622
73623         2006-03-12  Jim Meyering  <jim@meyering.net>
73624
73625         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
73626         matches that of the current directory (which we're about to chdir ".."
73627         out of), then save the dev-ino of the parent, instead.
73628
73629         * lib/same-inode.h (SAME_INODE): New file/macro.
73630         * lib/chdir-safer.c (SAME_INODE): Remove definition.
73631         Include "same-inode.h", instead.
73632         * lib/same.c: Likewise.
73633         * lib/cycle-check.h: Include "same-inode.h".
73634         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
73635         * lib/cycle-check.c (SAME_INODE): Remove definition.
73636         * lib/root-dev-ino.h: Include "same-inode.h".
73637
73638         2006-03-11  Eric Blake  <ebb9@byu.net>
73639
73640         * lib/same.c (same_name): s/base_name/last_component/
73641         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
73642         * lib/filenamecat.c (file_name_concat): Likewise.
73643
73644         2006-03-11  Eric Blake  <ebb9@byu.net>,
73645                     Paul Eggert  <eggert@cs.ucla.edu>
73646
73647         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
73648         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
73649         drive prefix.
73650         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
73651         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
73652         (last_component): New method.
73653         * lib/dirname.c (dir_len): Determine when drive letters need a
73654         subsequent slash.  Preserve // when it is special.
73655         (dir_name): Don't append dot when drive letter is absolute.
73656         [TEST_DIRNAME]: Move into a full-blown gnulib test.
73657         * lib/basename.c (base_name): New semantics - malloc the result.
73658         Preserve // when it is special.  Preserve relative files that look
73659         like drive letters.
73660         (base_len): Preserve // when it is special.
73661         (last_component): New method, similar to old base_name semantics.
73662         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
73663         base_name.  Strip redundant slashes from ///.
73664
73665 2006-07-03  Jim Meyering  <jim@meyering.net>
73666
73667         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
73668         macro is used before the first cycle_check call.
73669
73670 2006-07-03  Eric Blake  <ebb9@byu.net>
73671
73672         * modules/dirname (Depends-on): Add xstrndup.
73673
73674 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73675
73676         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
73677         test cases, so that config.log is a bit easier to follow.
73678
73679 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73680
73681         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
73682         both are 64 bits, since this seems to be the tradition, and this
73683         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
73684         we ever run into a host that prefers long long to long in this
73685         case, we'll need another configure-time test.  Problem reported by
73686         Jim Meyering.
73687
73688 2006-07-02  Eric Blake  <ebb9@byu.net>
73689
73690         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
73691
73692 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73693
73694         * modules/inttypes (Depends-on): No longer depends on stdint.
73695         * modules/stdint (Description): Say more about assumptions.
73696         Say that the fast types might differ.  Say macros are used.
73697         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
73698         (Makefile.am): Revise list of substituted symbols to match
73699         new stdint.m4.
73700         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
73701         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
73702         * tests/test-stdint.c (verify_same_types)
73703         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
73704         the code conforms to C99/C89.
73705         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
73706         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
73707
73708 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73709
73710         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
73711         but fix a bug, by requiring at least 64 bits.
73712         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
73713         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
73714         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
73715         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73716
73717         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
73718         changes.  Make 2.59 a prerequisite.  Check and substitute for
73719         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
73720         inttypes.h.  Do not use special include files; just use the
73721         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
73722         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
73723         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
73724         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
73725         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
73726         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
73727         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
73728         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
73729         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
73730         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
73731         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
73732         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
73733         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
73734         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
73735         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
73736         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
73737         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
73738         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
73739         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
73740         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
73741         WINT_MAX.  Check for C99 conformance more strictly, by detecting
73742         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
73743         not check for things that C99 does not require, e.g., int8_t.  If
73744         a test isn't needed unless <stdint.h> isn't working, and is
73745         unlikely to be needed for any other reason, then don't do it
73746         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
73747         size_t, since we assume C89 freestanding at least.  Do not check
73748         for sig_atomic_t, wchar_t, or wint_t, since the code now does
73749         the right thing even if the types are not defined.  Instead use:
73750         (gl_STDINT_TYPE_PROPERTIES): New macro.
73751         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
73752         testing whether <sys/types.h> clashes, as Autoconf does this for
73753         us now.  All uses removed.
73754         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
73755         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
73756         (gl_CHECK_TYPE_SAME):
73757         Remove; no longer needed.
73758         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
73759         exists, since we'll return 0 anyway in that case.
73760         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
73761
73762 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73763
73764         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
73765         possible collision with system files.
73766         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
73767         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
73768         WCHAR_MIN and WCHAR_MAX in this case.
73769         (<stddef.h>): Do not include; no longer needed.
73770         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
73771         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
73772         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
73773         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
73774         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
73775         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
73776         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
73777         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
73778         !defined(__c99))]: Include in this case too, since it's harmless
73779         now.
73780         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
73781         dangerous to do so.
73782         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
73783         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
73784         (_STDINT_MIN, _STDINT_MAX): New macros.
73785         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
73786         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
73787         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
73788         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
73789         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
73790         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
73791         macros, not typedefs; this simplifies things quite a bit.
73792         Use long int for all types narrower than int64_t.
73793         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
73794         Define in terms of long long int or int64_t or long int,
73795         not int64_t or int32_t.  This saves some compile-time testing.
73796         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
73797         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
73798         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
73799         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
73800         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
73801         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
73802         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
73803         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
73804         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
73805         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
73806         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73807         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73808         undef any previous version and define our own version, for
73809         simplicity and consistency with the new macros for types.
73810         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73811         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73812         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
73813         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
73814         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
73815         @WINT_T_SUFFIX@ to keep things simple here.
73816         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
73817         Simplify by assuming typical 8/16/32/64 host, since we're
73818         already doing that elsewhere anyway.
73819         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
73820         and assume long long int is 64 bits if available.  This
73821         speeds up 'configure'.
73822
73823 2006-07-01  Eric Blake  <ebb9@byu.net>
73824
73825         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
73826         Reported by Andreas Buening.
73827
73828 2006-07-01  Eric Blake  <ebb9@byu.net>
73829
73830         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
73831
73832 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73833
73834         * lib/getaddrinfo.c: fixed typo
73835
73836 2006-06-29  Jim Meyering  <jim@meyering.net>
73837
73838         * modules/strftime (Maintainer): Add my name, since with the
73839         FPRINTFTIME changes strftime.c has forked from glibc.
73840
73841 2006-06-29  Eric Blake  <ebb9@byu.net>
73842
73843         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
73844
73845 2006-06-29  Eric Blake  <ebb9@byu.net>
73846
73847         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
73848
73849 2006-06-29  Eric Blake  <ebb9@byu.net>
73850
73851         * lib/stat_.h: New file.
73852
73853 2006-06-29  Eric Blake  <ebb9@byu.net>
73854
73855         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
73856         unused static function.
73857
73858 2006-06-29  Eric Blake  <ebb9@byu.net>
73859
73860         * doc/functions.texi (Function Portability): Document missing lstat
73861         on mingw.
73862
73863 2006-06-29  Eric Blake  <ebb9@byu.net>
73864
73865         * MODULES.html.sh: Add sys_stat.
73866         * modules/sys_stat: New module.
73867         * modules/mkstemp (Depends-on): Add sys_stat.
73868
73869 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73870
73871         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
73872
73873 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73874
73875         * m4/c-bs-a.m4: Removed.
73876
73877 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73878
73879         * lib/strftime.c: Assume strftime() exists.
73880
73881 2006-06-29  Derek Price  <derek@ximbiot.com>
73882
73883         * modules/c-bs-a: Removed - \a is C89.
73884         * MODULES.html.sh: Remove c-bs-a.
73885
73886 2006-06-29  Bruno Haible  <bruno@clisp.org>
73887
73888         * modules/wcwidth (License): Change to LGPL.
73889
73890 2006-06-28  Simon Josefsson  <jas@extundo.com>
73891
73892         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
73893         on _WIN32.
73894
73895         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
73896         getnameinfo.
73897
73898 2006-06-28  Simon Josefsson  <jas@extundo.com>
73899
73900         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
73901
73902 2006-06-28  Simon Josefsson  <jas@extundo.com>
73903
73904         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
73905         functions there.  It will succeed on Windows XP, but on Windows
73906         2000 and (presumably) earlier, it will fail, and use the internal
73907         re-implementation.
73908         (use_win32_p): New function.
73909         (getaddrinfo): Use strtoul on servname, to support numeric ports.
73910         Support AI_NUMERICSERV to disable getservbyname.
73911         (getnameinfo): New function, only supports
73912         NI_NUMERICHOST|NI_NUMERICSERV for now.
73913
73914         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
73915         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
73916         getnameinfo.
73917
73918 2006-06-28  Eric Blake  <ebb9@byu.net>
73919
73920         * modules/wcwidth: New file.
73921         * modules/mbchar (Depends-on): Add wcwidth.
73922         * modules/mbswidth (Depends-on): Add wcwidth.
73923         * MODULES.html.sh: Add wcwidth.
73924
73925 2006-06-28  Eric Blake  <ebb9@byu.net>
73926
73927         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
73928         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
73929
73930 2006-06-28  Eric Blake  <ebb9@byu.net>
73931
73932         * lib/xvasprintf.h: Fix comments.
73933
73934 2006-06-28  Eric Blake  <ebb9@byu.net>
73935
73936         * lib/mbchar.h (wcwidth): Include wcwidth.h.
73937         * lib/mbswidth.c (wcwidth): Move from here...
73938         * lib/wcwidth.h: ...to this new file.
73939
73940 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73941
73942         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
73943
73944         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
73945         it's obsolete.
73946         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
73947
73948 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73949
73950         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
73951         Autoconf 2.60 says this stuff was obsolete.
73952
73953 2006-06-28  Bruno Haible  <bruno@clisp.org>
73954
73955         * modules/wcwidth (Files): Add m4/wchar_t.m4.
73956
73957 2006-06-28  Bruno Haible  <bruno@clisp.org>
73958
73959         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
73960         gt_TYPE_WCHAR_T.
73961
73962 2006-06-28  Bruno Haible  <bruno@clisp.org>
73963
73964         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
73965         declaration for wcwidth.
73966         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
73967
73968 2006-06-28  Bruno Haible  <bruno@clisp.org>
73969
73970         * lib/mkdtemp.c [MINGW]: Include <io.h>.
73971         (mkdir): Define using _mkdir.
73972
73973 2006-06-28  Bruno Haible  <bruno@clisp.org>
73974
73975         * lib/getaddrinfo.h: Fix POSIX URL.
73976         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
73977         _WIN32.
73978         (use_win32_p): Make static.
73979         (getaddrinfo): Reject service name if it is empty or does not consist
73980         solely of decimal digits, or if its value is > 65535.
73981         (getnameinfo): Remove useless casts.
73982
73983 2006-06-27  Simon Josefsson  <jas@extundo.com>
73984
73985         * modules/sys_select: New file, suggested by Bruno Haible, Paul
73986         Eggert and Martin Lambers.
73987
73988 2006-06-27  Simon Josefsson  <jas@extundo.com>
73989
73990         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
73991         Eggert and Martin Lambers.
73992
73993 2006-06-27  Bruno Haible  <bruno@clisp.org>
73994
73995         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
73996         result to 0, not to empty.
73997         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
73998
73999 2006-06-27  Bruno Haible  <bruno@clisp.org>
74000
74001         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
74002
74003 2006-06-26  Simon Josefsson  <jas@extundo.com>
74004
74005         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
74006         present.
74007
74008 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
74009
74010         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
74011         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
74012         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
74013
74014 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
74015
74016         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
74017
74018 2006-06-26  Bruno Haible  <bruno@clisp.org>
74019
74020         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
74021
74022 2006-06-26  Bruno Haible  <bruno@clisp.org>
74023
74024         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
74025
74026 2006-06-26  Bruno Haible  <bruno@clisp.org>
74027
74028         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
74029         SGI C compiler in pre-C99 mode.
74030         Suggested by Mark D. Baushke and Larry Jones.
74031
74032 2006-06-26  Bruno Haible  <bruno@clisp.org>
74033
74034         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
74035         WCHAR_MAX.
74036         Reported by Mark D. Baushke and Larry Jones.
74037
74038 2006-06-26  Bruno Haible  <bruno@clisp.org>
74039
74040         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
74041         in pre-C99 mode.
74042         Suggested by Mark D. Baushke and Larry Jones.
74043
74044 2006-06-23  Simon Josefsson  <jas@extundo.com>
74045             Bruno Haible  <bruno@clisp.org>
74046
74047         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
74048         Emit mostlyclean-local rule.
74049         (func_emit_tests_Makefile_am): Likewise.
74050         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
74051
74052 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
74053
74054         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
74055
74056 2006-06-23  Bruno Haible  <bruno@clisp.org>
74057
74058         * tests/test-stdint.c: Update to match ISO C 99 Technical
74059         Corrigendum 1.
74060
74061 2006-06-23  Bruno Haible  <bruno@clisp.org>
74062
74063         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
74064
74065 2006-06-23  Bruno Haible  <bruno@clisp.org>
74066
74067         * lib/stdint_.h: Treat IRIX like OpenBSD.
74068
74069 2006-06-23  Bruno Haible  <bruno@clisp.org>
74070
74071         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
74072         ISO C 99 Technical Corrigendum 1.
74073
74074 2006-06-22  Simon Josefsson  <jas@extundo.com>
74075
74076         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
74077         MinGW.
74078
74079 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74080
74081         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
74082         needed.  Some compiler complained about some of them.  Problem reported
74083         by Larry Jones in
74084         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
74085
74086 2006-06-21  Simon Josefsson  <jas@extundo.com>
74087
74088         * tests/test-getaddrinfo.c: New file.
74089
74090         * modules/getaddrinfo-tests: New file.
74091
74092         * MODULES.html.sh: Add inet_pton.
74093
74094         * modules/inet_pton: New file.
74095
74096 2006-06-21  Simon Josefsson  <jas@extundo.com>
74097
74098         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
74099         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
74100         of using the (limited) gnulib implementation on Windows XP.
74101
74102         * m4/inet_pton.m4: New file.
74103
74104 2006-06-21  Simon Josefsson  <jas@extundo.com>
74105
74106         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
74107         variable.
74108
74109         * lib/socket_.h: Don't define WINVER.
74110
74111         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
74112         slightly modified to work in gnulib.
74113
74114 2006-06-21  Simon Josefsson  <jas@extundo.com>
74115
74116         * doc/gnulib.texi (Windows sockets): Add.
74117
74118 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
74119
74120         * lib/read-file.c (fread_file): Start with buffer allocation of
74121         0 bytes rather than 1 byte; this simplifies the code.
74122         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
74123         code to free buffer and save/restore errno.
74124         (internal_read_file): Remove unused local.
74125
74126 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
74127
74128         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
74129         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
74130         Problem reported by Denis Excoffier in
74131         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
74132
74133 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74134
74135         * modules/sys_socket, modules/socklen: Include sys/types since
74136         FreeBSD 4.x's sys/socket.h needs it.
74137
74138 2006-06-19  Simon Josefsson  <jas@extundo.com>
74139
74140         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
74141
74142 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
74143
74144         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
74145
74146 2006-06-19  Bruno Haible  <bruno@clisp.org>
74147
74148         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
74149         and FULL_PATH_INTTYPES_H in angle brackets.
74150         Reported by Mark D. Baushke <mdb@gnu.org>.
74151
74152 2006-06-17  Eric Blake  <ebb9@byu.net>
74153
74154         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
74155         errno.
74156
74157 2006-06-17  Bruno Haible  <bruno@clisp.org>
74158
74159         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
74160         <sys/inttypes.h>.
74161
74162 2006-06-17  Bruno Haible  <bruno@clisp.org>
74163
74164         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
74165         whether errno is declared. Assume <errno.h> declares errno.
74166
74167 2006-06-17  Bruno Haible  <bruno@clisp.org>
74168
74169         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
74170
74171 2006-06-17  Bruno Haible  <bruno@clisp.org>
74172
74173         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
74174         problem on Solaris 2.5.1.
74175
74176 2006-06-16  Eric Blake  <ebb9@byu.net>
74177
74178         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
74179         * lib/unicodeio.c [!defined errno]: Likewise.
74180         * lib/strtol.c [!defined errno]: Likewise.
74181         * lib/strtod.c [!defined errno]: Likewise.
74182
74183 2006-06-15  Eric Blake  <ebb9@byu.net>
74184
74185         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
74186
74187 2006-06-15  Eric Blake  <ebb9@byu.net>
74188
74189         * config/srclist.txt (ssize_t.m4): Lose sync.
74190
74191 2006-06-15  Bruno Haible  <bruno@clisp.org>
74192
74193         * modules/stdint (Files): Include m4/full-header-path.m4,
74194         m4/size_max.m4, m4/wchar_t.m4.
74195         (Makefile.am): Many more substitutions.
74196         * modules/stdint-tests: New file.
74197         * tests/test-stdint.c: New file.
74198
74199 2006-06-15  Bruno Haible  <bruno@clisp.org>
74200
74201         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
74202         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
74203         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
74204         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
74205         gl_CHECK_TYPE_SAME): New macros.
74206
74207 2006-06-15  Bruno Haible  <bruno@clisp.org>
74208
74209         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
74210
74211 2006-06-15  Bruno Haible  <bruno@clisp.org>
74212
74213         * lib/stdint_.h: Rewritten to be fully auto-configured.
74214         Fixes bug on HP-UX/IA64.
74215
74216 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
74217
74218         * lib/getdate.y (__attribute__): Don't define if already defined.
74219         Problem reported by Larry Jones.
74220         * lib/utimens.c (__attribute__): Likewise.
74221
74222 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
74223
74224         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
74225         reported by Andreas Schwab.
74226
74227 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74228             Bruno Haible  <bruno@clisp.org>
74229
74230         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
74231         check for the declaration of strnlen and a run test that exposes the
74232         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
74233         rpl_strndup.
74234
74235 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74236             Bruno Haible  <bruno@clisp.org>
74237
74238         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
74239
74240 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74241
74242         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
74243         compile test, for Tru64 4.0D.
74244
74245 2006-05-28  Karl Berry  <karl@gnu.org>
74246
74247         * config/srclist.txt (printf-args.c): lose sync.
74248
74249 2006-05-26  Martin Lambers  <marlam@marlam.de>
74250
74251         * lib/getpass.c: Updates the test for the native W32 API, and adds
74252         missing includes, thus fixing compilation warnings.
74253
74254 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74255
74256         * lib/exclude.c (exclude_fnmatch): New function.
74257         (excluded_file_name): Call exclude_fnmatch.
74258         * lib/exclude.h (excluded_file_name): New prototype
74259
74260 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
74261
74262         * lib/tempname.c (small_open, large_open): New macros.
74263         (__open, __open64) [!_LIBC]: Remove.
74264         (__gen_tempname): Use small_open and large_open instead of __open
74265         and __open64.  This fixes a portability bug on HP-UX 11.11i
74266         reported by Simon Wing-Tang in
74267         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
74268
74269 2006-05-24  Bruno Haible  <bruno@clisp.org>
74270
74271         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
74272         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
74273         Reported by Thorsten Maerz <torte@netztorte.de> via
74274         Aaron Stone <aaron@serendipity.cx>.
74275
74276 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74277
74278         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
74279         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
74280         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
74281         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
74282         not really conditional on the cache.
74283         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
74284
74285 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74286
74287         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
74288         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
74289         (my_usleep): Don't mishandle maximum value.
74290
74291 2006-05-19  Jim Meyering  <jim@meyering.net>
74292
74293         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
74294
74295 2006-05-17  Bruno Haible  <bruno@clisp.org>
74296
74297         Cygwin portability.
74298         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
74299
74300 2006-05-17  Bruno Haible  <bruno@clisp.org>
74301
74302         * lib/stdint_.h: Fix recognition of Cygwin.
74303
74304 2006-05-15  Bruno Haible  <bruno@clisp.org>
74305
74306         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
74307         on libtool patch by Ralf Wildenhues.
74308
74309 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74310
74311         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
74312         test for C99 conformance; (bool) 0.5 is an integer constant
74313         expression, but (bool) -0.5 is not.  Problem reported by Fedor
74314         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
74315
74316 2006-05-11  Simon Josefsson  <jas@extundo.com>
74317
74318         * m4/xvasprintf.m4: Fix obvious typo.
74319
74320 2006-05-11  Jim Meyering  <jim@meyering.net>
74321
74322         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
74323         James Lemley.
74324
74325 2006-05-10  Simon Josefsson  <jas@extundo.com>
74326
74327         * lib/md4.c: Typo fix, update copyright years.
74328         (K1, K2): Don't use L because it turn computations into 64-bit on
74329         64-bit platforms.
74330
74331 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
74332
74333         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
74334         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
74335         unwanted sign propagation, e.g., on hosts with 64-bit int.
74336         There still are some problems with reeelly weird theoretical hosts
74337         (e.g., 33-bit int) but it's not worth worrying about now.
74338         * lib/sha1.c (rol): Likewise.
74339         (K1, K2, K3, K4): Remove unnecessary L suffix.
74340
74341 2006-05-10  Bruno Haible  <bruno@clisp.org>
74342
74343         * lib/des.c: Cast to avoid warnings.
74344
74345 2006-05-09  Bruno Haible  <bruno@clisp.org>
74346
74347         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
74348         (Depends-on): Depend also on xsize, stdarg.
74349         (configure.ac): Add gl_XVASPRINTF.
74350
74351 2006-05-09  Bruno Haible  <bruno@clisp.org>
74352
74353         * m4/xvasprintf.m4: New file.
74354
74355 2006-05-09  Bruno Haible  <bruno@clisp.org>
74356
74357         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
74358         (EOVERFLOW): Define fallback value.
74359         (xstrcat): New function.
74360         (xvasprintf): Recognize the special case of a string concatenation.
74361
74362 2006-05-08  Eric Blake  <ebb9@byu.net>
74363
74364         * gnulib-tool (func_version): Base copyright year on CVS date.
74365         (func_emit_copyright_notice): New function.
74366         (func_emit_lib_Makefile_am): Use it.
74367         (func_emit_tests_Makefile_am): Likewise.
74368         (func_import): Likewise.
74369
74370 2006-05-08  Bruno Haible  <bruno@clisp.org>
74371
74372         * modules/stdarg: New file.
74373         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
74374
74375 2006-05-08  Bruno Haible  <bruno@clisp.org>
74376
74377         * m4/stdarg.m4: New file, from GNU gettext.
74378
74379 2006-05-08  Bruno Haible  <bruno@clisp.org>
74380
74381         * config/srclist.txt (build-aux/config.rpath): different from latest
74382         release.
74383
74384 2006-05-08  Bruno Haible  <bruno@clisp.org>
74385
74386         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
74387
74388 2006-05-05  Jim Meyering  <jim@meyering.net>
74389
74390         * m4/warning.m4: New file, derived from bison's file by the same name.
74391
74392 2006-05-03  Bruno Haible  <bruno@clisp.org>
74393
74394         * lib/stdint_.h: Shorter URL.
74395         * lib/inttypes.h: Likewise.
74396
74397 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74398
74399         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
74400
74401 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74402
74403         * lib/verify.h: Document the internals better.  Most of this change
74404         was written by Bruno Haible.
74405
74406 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74407
74408         * doc/verify.texi: New file, partly based on a proposal by
74409         Bruno Haible.
74410
74411 2006-05-02  Bruno Haible  <bruno@clisp.org>
74412
74413         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
74414         test from here...
74415         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
74416
74417 2006-04-29  Bruno Haible  <bruno@clisp.org>
74418
74419         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
74420         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
74421
74422 2006-04-29  Bruno Haible  <bruno@clisp.org>
74423
74424         * gnulib-tool: Make --update option actually work.
74425
74426 2006-04-29  Bruno Haible  <bruno@clisp.org>
74427
74428         * doc/gcd.texi: New file.
74429         * doc/gnulib.texi: Include it.
74430
74431 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
74432
74433         * lib/getdate.y (get_date): When adding relative date, start with the
74434         initial time, not with the result of the first mktime call.
74435
74436 2006-04-25  Bruno Haible  <bruno@clisp.org>
74437
74438         * gnulib-tool (func_import): Output the include directives in three
74439         blocks, sorted separately.
74440         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74441
74442 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74443
74444         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
74445         to define main with arguments, for C++.  Reported by Eric Blake.
74446         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
74447         Prefer 'int main ()' to 'int main (void)', for C++.
74448         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
74449         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
74450         for 'main', for C99 and C++.
74451
74452 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74453
74454         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
74455         Don't assume that exit status -1 is valid.
74456         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74457         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74458         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
74459         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
74460         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
74461         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
74462         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
74463         functions can be used without declaring them, or that you can
74464         exit with status -1.
74465         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
74466
74467 2006-04-24  Karl Berry  <karl@gnu.org>
74468
74469         * config/srclist.txt (longdouble.m4): sync lost.
74470
74471 2006-04-24  Eric Blake  <ebb9@byu.net>
74472
74473         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
74474
74475 2006-04-24  Bruno Haible  <bruno@clisp.org>
74476
74477         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
74478         poll() implementation in AIX.
74479         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74480
74481 2006-04-24  Bruno Haible  <bruno@clisp.org>
74482
74483         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
74484         assigned exactly once.
74485
74486 2006-04-23  Claudio Fontana  <claudio@gnu.org>
74487             Bruno Haible  <bruno@clisp.org>
74488
74489         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
74490         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
74491         for AM_CPPFLAGS.
74492
74493 2006-04-23  Bruno Haible  <bruno@clisp.org>
74494
74495         * modules/copy-file: Depend on unistd.
74496         * modules/execute: Likewise.
74497         * modules/fatal-signal: Likewise.
74498         * modules/findprog: Likewise.
74499         * modules/mkdtemp : Likewise.
74500         * modules/pipe: Likewise.
74501         * modules/wait-process: Likewise.
74502
74503 2006-04-23  Bruno Haible  <bruno@clisp.org>
74504
74505         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
74506         condition was already detected.
74507         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74508
74509 2006-04-23  Bruno Haible  <bruno@clisp.org>
74510
74511         * lib/copy-file.c: Include <unistd.h> unconditionally.
74512         * lib/execute.c: Likewise.
74513         * lib/fatal-signal.c: Likewise.
74514         * lib/findprog.c: Likewise.
74515         * lib/mkdtemp.c: Likewise.
74516         * lib/pipe.h: Likewise.
74517         * lib/pipe.c: Likewise.
74518         * lib/wait-process.h: Likewise.
74519
74520 2006-04-23  Bruno Haible  <bruno@clisp.org>
74521
74522         * gnulib-tool (func_usage): Fix --import description. Document
74523         --update.
74524         (func_import): Create temporary file in a temporary directory, if
74525         --dry-run is specified. Silence errors from 'grep' when there are no
74526         m4 files in $m4dir.
74527         (func_create_testdir): Silence errors from 'grep' when there are no
74528         m4 files in $m4dir.
74529         Reported by Karl Berry <karl@freefriends.org>.
74530
74531 2006-04-20  Bruno Haible  <bruno@clisp.org>
74532
74533         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
74534         one argument, so that the code will be portable to Autoconf 2.60.
74535         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
74536         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74537         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
74538
74539 2006-04-19  Derek Price  <derek@ximbiot.com>
74540             Eric Blake  <ebb9@byu.net>
74541
74542         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
74543         rather than "/full/path.h".  Update comment to match.  Shorten &
74544         generalize m4_translit call via AS_TR_CPP.
74545
74546 2006-04-19  Derek Price  <derek@ximbiot.com>
74547             Eric Blake  <ebb9@byu.net>
74548
74549         * lib/inttypes.h: Correct grammar in comment.
74550
74551 2006-04-18  Derek Price  <derek@ximbiot.com>
74552             Paul Eggert  <eggert@cs.ucla.edu>
74553
74554         * modules/inttypes: New file.
74555         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
74556
74557 2006-04-18  Derek Price  <derek@ximbiot.com>
74558             Paul Eggert  <eggert@cs.ucla.edu>
74559
74560         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
74561         New files.
74562
74563 2006-04-18  Derek Price  <derek@ximbiot.com>
74564             Paul Eggert  <eggert@cs.ucla.edu>
74565
74566         * lib/inttypes.h: New file.
74567         * lib/strtoimax.c: Assume <inttypes.h>.
74568
74569 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
74570
74571         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
74572         isn't mounted.  Problem reported by Kir Kolyshkin.
74573
74574 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74575
74576         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
74577         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
74578         Derek R. Price.
74579         * lib/regex.h (RE_DUP_MAX): Update comment to match current
74580         implementation.
74581
74582 2006-04-12  Eric Blake  <ebb9@byu.net>
74583
74584         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
74585         is now done automatically by the corresponding Autoconf macro.
74586
74587 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
74588
74589         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
74590         time_r.h.
74591
74592 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74593
74594         Merge regex changes from libc, removing some of our
74595         POSIX-conformance changes that were rejected and redoing them in a
74596         less-intrusive way.
74597
74598         * lib/regcomp.c (re_compile_internal, init_dfa):
74599         Length arg is now size_t, not Idx.  All uses changed.
74600         (peek_token): Forward decl now says internal_function.
74601         (__re_error_msgid, __re_error_msgid_idx):
74602         Now static rather than extern with attribute_hidden.
74603         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
74604         For some reason libc prefers K&R style defns for external functions.
74605         (regerror) [!defined _LIBC]: Likewise.
74606         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
74607         (seek_collating_symbol_entry, lookup_collation_sequence_value):
74608         (build_range_exp, build_collating_symbol):
74609         Use K&R-style defn.
74610         (re_compile_fastmap): Use '\0' to memset, not 0.
74611         (utf8_sb_map): Make the calculations more obvious.
74612         (init_dfa, parse_bracket_exp, build_charclass_op):
74613         Call calloc and cast result, as glibc does.
74614         (init_word_char, fetch_token, peek_token, peek_token_bracket):
74615         (build_range_exp, build_collating_symbol):
74616         Now internal functions.
74617
74618         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
74619
74620         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
74621         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
74622         Don't depend on VMS; depend on __VMS instead, for POSIX
74623         namespace cleanness.
74624         (regoff_t): Define to ssize_t, not long int.
74625
74626         Remove the REG_ macros named below.  Instead, make the old names
74627         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
74628         __USE_GNU_REGEX.
74629         (REG_BACKSLASH_ESCAPE_IN_LISTS):
74630         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
74631         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
74632         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
74633         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
74634         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
74635         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
74636         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
74637         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
74638         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
74639         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
74640         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
74641         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
74642         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
74643         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
74644         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
74645         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
74646         (REG_NREGS):
74647         Remove.  All uses replaced by the old RE_* names.
74648         (RE_BACKSLASH_ESCAPE_IN_LISTS):
74649         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
74650         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
74651         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
74652         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
74653         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
74654         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
74655         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
74656         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
74657         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
74658         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
74659         Don't bother having these macros be independent of each others'
74660         values, since they no longer exist in the POSIX name space.
74661
74662         Rename the following member names back to their old names,
74663         unless !__USE_GNU_REGEX.  All uses changed back.
74664         (buffer): Renamed from re_buffer.
74665         (allocated): Renamed from re_allocated.
74666         (used): Renamed from re_used.
74667         (syntax): Renamed from re_syntax.
74668         (fastmap): Renamed from re_fastmap.
74669         (translate): Renamed from re_translate.
74670         (can_be_null): Renamed from re_can_be_null.
74671         (regs_allocated): Renamed from re_regs_allocated.
74672         (fastmap_accurate): Renamed from re_fastmap_accurate.
74673         (no_sub): Renamed from re_no_sub.
74674         (not_bol): Renamed from re_not_bol.
74675         (not_eol): Renamed from re_not_eol.
74676         (newline_anchor): Renamed from re_newline_anchor.
74677         (num_regs): Renamed from rm_num_regs.
74678         (start): Renamed from rm_start.
74679         (end): Renamed from rm_end.
74680
74681         (free_state): Move up a bit.
74682
74683         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
74684         #define to be empty.
74685         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
74686         when that is what is intended.
74687         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
74688         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
74689         (MAX): New macro.
74690         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
74691         All uses changed back to re_malloc, etc.  It's now the caller's
74692         responsibility to check for overflow; all callers changed.
74693         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
74694         (re_x2nrealloc): Remove.
74695         (free_state): Remove decl.
74696
74697         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
74698         (re_set_registers, re_exec):
74699         Use K&R-style defn.
74700
74701         2006-01-31  Roland McGrath  <roland@redhat.com>
74702
74703         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
74704         Reported by Mike Frysinger <vapier@gentoo.org>.
74705
74706         2006-01-15  Andreas Jaeger  <aj@suse.de>
74707
74708         [BZ #1950]
74709         * lib/regex_internal.c (re_string_reconstruct): Adjust for
74710         build_wcs_upper_buffer change.
74711         (build_wcs_upper_buffer): Change return type.
74712
74713         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
74714
74715         * lib/regex_internal.h: Include <stdint.h> if available.
74716
74717         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
74718
74719         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
74720
74721         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74722
74723         * lib/regcomp.c: Adjust for changed secondary hash function.
74724
74725         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
74726
74727         * lib/regex.h: Pretty printing.
74728         Clean up namespace a bit.
74729
74730         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
74731
74732         * lib/regexec.c (update_cur_sifted_state, check_arrival,
74733         check_arrival_add_next_nodes): Avoid using uninitialized variable.
74734
74735         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74736                     Ulrich Drepper  <drepper@redhat.com>
74737
74738         [BZ #1302]
74739         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
74740         changed.
74741         (bitset_word_t): Renamed from bitset_word.  All uses changed.
74742
74743         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
74744
74745         [BZ #281]
74746         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
74747         * lib/regcomp.c: Remove unnecessary uses of
74748         unsigned RE_TRANSLATE_TYPE.
74749         * lib/regex_internal.h: Likewise.
74750         * lib/regex_internal.c: Likewise.
74751         * lib/regexec.c: Likewise.
74752         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
74753
74754         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
74755
74756         * lib/regexec.c (find_recover_state): Remove unnecessary
74757         initialization.
74758         (transit_state_bkref): Make DFA a const pointer.
74759         (get_subexp): Likewise.
74760         (check_arrival): Likewise.
74761         (update_cur_sifted_state): Likewise.
74762         (re_search_internal): Likewise.
74763         (prune_impossible_nodes): Likewise.
74764         (acquire_init_state_context): Likewise.
74765         (proceed_next_node): Likewise.
74766         (set_regs): Likewise.
74767         (free_fail_stack_return): Likewise.
74768         (check_arrival_expand_ecl): Mark DFA parameter as const.
74769         (check_arrival_expand_ecl_sub): Likewise.
74770         (check_subexp_limits): Likewise.
74771         (sub_epsilon_src_nodes):  Likewise.
74772         (add_epsilon_src_nodes):  Likewise.
74773         (merge_state_array): Likewise.
74774         (update_regs): Likewise.
74775         (build_trtable): Likewise.
74776         (sift_states_backward): Mark MCTX parameter as const.
74777         (build_sifted_states): Likewise.
74778         (update_cur_sifted_state): Likewise.
74779         (sift_states_mkref): Likewise.
74780         (check_arrival_expand_ecl): Mark eclosure as const.
74781         (check_dst_limits_calc_pos_1): Likewise.
74782         * lib/regex_internal.h (re_match_context_t): Make dfa a const
74783         pointer.
74784
74785         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
74786
74787         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
74788         (transit_state_sb): Likewise.
74789         (transit_state_mb): Likewise.
74790         (sift_states_iter_mb): Likewise.
74791         (check_arrival_add_next_nodes): Likewise.
74792         (check_node_accept_bytes): Change first parameter to pointer-to-const.
74793         [_LIBC] (re_search_2_stub): Use mempcpy.
74794
74795         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
74796         mbrtowc for very simple UTF-8 case.
74797
74798         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
74799         a pointer-to-const.
74800         (re_acquire_state_context): Likewise.
74801         * lib/regex_internal.h: Adjust prototypes.
74802
74803         * lib/regex.c: Prevent using C++ compilers.
74804
74805         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
74806         (re_acquire_state_context): Likewise.
74807
74808 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74809
74810         * modules/regex (Depends-on): Add ssize_t.
74811
74812 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74813
74814         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
74815         translation table.
74816
74817 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74818
74819         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
74820
74821 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
74822             Bruno Haible  <bruno@clisp.org>
74823
74824         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
74825         <sys/types.h> and <inttypes.h>.
74826
74827 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74828
74829         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
74830         `__error_t_defined', so argp.h will not typedef the former.
74831
74832 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
74833
74834         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
74835         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
74836         glibc names.  Even if glibc is changed to conform to POSIX, the
74837         traditional names will be available anyway, since regex depends on
74838         the extensions module.  Also, fix a longstanding typo in the
74839         implementation of Spencer ERE test #75 from grep 2.3.  Problems
74840         reported by Emanuele Giaquinta.  Also, change sense of cached
74841         variable, so that the message makes sense.
74842
74843 2006-03-24  Simon Josefsson  <jas@extundo.com>
74844
74845         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
74846         including some doc fixes.
74847         (base64_encode_alloc): Fix +1 bug on allocation failures.
74848
74849 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74850
74851         * lib/base64.c (base64_encode): Do not read past end of array with
74852         unsanitized input on systems with CHAR_BIT > 8.
74853
74854 2006-03-24  Eric Blake  <ebb9@byu.net>
74855
74856         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
74857
74858 2006-03-22  Karl Berry  <karl@gnu.org>
74859
74860         * config/srclist.txt (*setenv.[ch]): get from coreutils.
74861         * config/srclistvars.sh (COREUTILS): new var.
74862
74863 2006-03-17  Jim Meyering  <jim@meyering.net>
74864
74865         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
74866         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
74867
74868 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74869
74870         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
74871         no longer needs it.  Instead, check that regoff_t is as least
74872         as wide as ptrdiff_t.
74873
74874         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
74875         so that our regex.h stays compatible with the installed regex.
74876         This is helpful for installers who configure --without-included-regex.
74877         Problem reported by Emanuele Giaquinta.
74878
74879 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74880
74881         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
74882         Typedef to long int, not to off_, as POSIX will likely change
74883         in that direction.
74884
74885 2006-03-15  Eric Blake  <ebb9@byu.net>
74886
74887         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
74888
74889 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74890
74891         * lib/argp-help.c (validate_uparams): Fix typo
74892         * lib/argp-parse.c (argp_default_options): Consistently begin help
74893         messages with a lowercase letter.
74894
74895 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
74896
74897         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
74898         overrun buffers and shouldn't be used (much as gets shouldn't be
74899         used).
74900         * lib/time_r.c (asctime_r, ctime_r): Likewise.
74901
74902 2006-03-08  Simon Josefsson  <jas@extundo.com>
74903
74904         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
74905         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74906
74907 2006-03-08  Simon Josefsson  <jas@extundo.com>
74908
74909         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
74910         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74911
74912 2006-03-08  Simon Josefsson  <jas@extundo.com>
74913
74914         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
74915         signal that configure disabled the device.
74916
74917 2006-03-08  Simon Josefsson  <jas@extundo.com>
74918
74919         * build-aux/maint.mk: Fix refresh-po, to handle no translated
74920         languages.
74921
74922 2006-03-07  Simon Josefsson  <jas@extundo.com>
74923
74924         * modules/getopt (Depends-on): Add unistd.
74925
74926         * modules/unistd: New file.
74927
74928 2006-03-07  Simon Josefsson  <jas@extundo.com>
74929
74930         * modules/gc-random: New file.
74931
74932 2006-03-07  Simon Josefsson  <jas@extundo.com>
74933
74934         * m4/unistd_h.m4: New file.
74935
74936 2006-03-07  Simon Josefsson  <jas@extundo.com>
74937
74938         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
74939         test to be side-effect free by storing the result in the cache
74940         variable gl_cv_lib_readline, and moving the assignment of
74941         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
74942         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74943
74944 2006-03-07  Simon Josefsson  <jas@extundo.com>
74945
74946         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
74947         error on missing devices (the functions will return an error).
74948
74949         * m4/gc.m4: Move random stuff to gc-random.m4
74950
74951 2006-03-07  Simon Josefsson  <jas@extundo.com>
74952
74953         * lib/unistd_.h: New file.
74954
74955 2006-03-07  Simon Josefsson  <jas@extundo.com>
74956
74957         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
74958
74959 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74960
74961         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
74962         Problem reported by Juan Manuel Guerrero.
74963
74964 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74965
74966         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
74967         the unistd module.
74968         * lib/getlogin_r.c: Likewise.
74969         * lib/getlogin_r.h: Likewise.
74970         * lib/glob.c: Likewise.
74971         * lib/pagealign_alloc.c: Likewise.
74972         * lib/unistd_.h: Remove; no longer needed.
74973
74974 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74975
74976         * MODULES.html.sh (Support for systems lacking POSIX:2001):
74977         Add unistd.
74978         * modules/c-stack (Depends-on): Add unistd.
74979         * modules/getlogin_r: Likewise.
74980         * modules/glob: Likewise.
74981         * modules/pagealign_alloc: Likewise.
74982         * modules/unistd (Files): Remove lib/unistd_.h.
74983         (EXTRA_DIST): Remove.
74984         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
74985         need unistd_.h.
74986         (MOSTLYCLEANFILES): Remove unistd.h-t.
74987
74988 2006-03-03  Simon Josefsson  <jas@extundo.com>
74989
74990         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
74991
74992 2006-03-03  Simon Josefsson  <jas@extundo.com>
74993
74994         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
74995         libidn and bison.
74996
74997 2006-03-03  Simon Josefsson  <jas@extundo.com>
74998
74999         * build-aux/maint.mk: Add indent target.
75000
75001 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
75002
75003         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
75004         our replacement poll.h in any case, to avoid a differing
75005         declaration from a system header.  Seen on AIX.
75006
75007 2006-03-01  Simon Josefsson  <jas@extundo.com>
75008
75009         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
75010         <kasal@ucw.cz>.
75011
75012 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75013
75014         * modules/gettime (Depends-on): Add extensions module.
75015         * modules/nanosleep (Depends-on): Likewise.
75016         * modules/settime (Depends-on): Likewise.
75017
75018 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75019
75020         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
75021         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
75022         pedantically.
75023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75024         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
75025
75026         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
75027         not "==".  Reported by Ralf Wildenhues.
75028
75029 2006-03-01  Karl Berry  <karl@gnu.org>
75030
75031         * doc/Copyright/request-*: new files, synced from gnuorg.
75032
75033 2006-03-01  Karl Berry  <karl@gnu.org>
75034
75035         * config/srclist.txt (Copyright/*): new entries.
75036
75037 2006-02-28  Simon Josefsson  <jas@extundo.com>
75038
75039         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
75040
75041 2006-02-27  Simon Josefsson  <jas@extundo.com>
75042
75043         * lib/base64.h: Indent #define's.  From Jim Meyering
75044         <jim@meyering.net>.
75045
75046 2006-02-27  Jim Meyering  <jim@meyering.net>
75047
75048         Revert the change of 2006-02-24, so these files can continue
75049         to be sync'd from gettext.
75050         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
75051         of `config.h'.
75052
75053 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75054
75055         * modules/intprops: New file.
75056         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75057         Add intprops.
75058         * modules/getloadavg (Files): Remove lib/intprops.h.
75059         (Depends-on): Add intprops.
75060         * modules/human: Likewise.
75061         * modules/inttostr: Likewise.
75062         * modules/openat: Likewise.
75063         * modules/sig2str: Likewise.
75064         * modules/userspec: Likewise.
75065         * modules/utimecmp: Likewise.
75066         * modules/xnanosleep: Likewise.
75067         * modules/xstrtol: Likewise.
75068
75069 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
75070
75071         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
75072         * modules/lock-tests (TESTS): Use $(EXEEXT).
75073         * modules/tls-tests: Likewise.
75074         * modules/argp-tests: Likewise.
75075         (check_PROGRAMS): New var, replacing...
75076         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
75077
75078 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75079
75080         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
75081         `config.h'.
75082
75083 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
75084
75085         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
75086
75087 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75088
75089         Sync from coreutils.
75090         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
75091         gl_CHDIR_SAFER.
75092
75093 2006-02-22  Jim Meyering  <jim@meyering.net>
75094
75095         Sync from coreutils.
75096         * m4/chdir-safer.m4: New file.
75097
75098 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
75099
75100         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
75101         AT_FDCWD exceeds INT_MAX.
75102         * lib/openat.h (AT_FDCWD): Likewise.
75103
75104 2006-02-17  Eric Blake  <address@hidden>
75105
75106         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
75107
75108 2006-02-16  Simon Josefsson  <jas@extundo.com>
75109
75110         * modules/getaddrinfo (Depends-on): Add sys_socket.
75111
75112 2006-02-15  Simon Josefsson  <jas@extundo.com>
75113
75114         * build-aux/maint.mk: Add dsyntax-check rule.
75115
75116 2006-02-15  Eric Blake  <ebb9@byu.net>
75117
75118         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
75119         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
75120         'present but cannot compile' warnings on cygwin.
75121         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
75122         use ws2tcpip.h if sys/socket.h works.
75123         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
75124         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
75125
75126 2006-02-14  Simon Josefsson  <jas@extundo.com>
75127
75128         * modules/maintainer-makefile (Files): Rename.
75129
75130         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
75131         and (the local) Makefile.cfg to maint-cfg.mk.
75132
75133         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
75134         to the latter.
75135
75136         * modules/maintainer-makefile: New module.
75137
75138         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
75139         severaly stripped to make it possible to build it up from scratch
75140         with reliable tests.
75141
75142         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
75143         fixes to permit overriding the default actions when configure and
75144         makefile are not available.
75145
75146 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
75147
75148         Sync from coreutils.
75149         * modules/lstat (Depends-on): Don't depend on xalloc.
75150         (License): Change from GPL to LGPL, since this is now simply a
75151         replacement for a libc function.
75152
75153 2006-02-14  Jim Meyering  <jim@meyering.net>
75154
75155         Sync from coreutils.
75156
75157         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
75158         failure on deficient systems, and simplify gnulib lgpl dependencies.
75159         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
75160         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
75161
75162         * lib/xalloc-die.c: Remove unused definition of N_.
75163
75164 2006-02-14  Jim Meyering  <jim@meyering.net>
75165
75166         Sync from coreutils.
75167         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
75168         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
75169         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
75170         double-quote uses of that variable, to accommodate the rare case in
75171         which getmntent is available in none of the libraries checked.  This
75172         happens at least on FreeBSD 5.0.
75173
75174 2006-02-13  Simon Josefsson  <jas@extundo.com>
75175
75176         * gnulib-tool (Usage): Fix --import, from
75177         karl@freefriends.org (Karl Berry).
75178
75179 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75180
75181         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
75182
75183 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
75184
75185         * lib/argp-namefrob.h: Restore changes accidentally lost during the
75186         "autoupdate" on 2005-12-12.
75187
75188 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75189
75190         * modules/closeout (Depends-on): Remove atexit.
75191
75192 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75193
75194         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
75195         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
75196
75197 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
75200         __EXTENSIONS__ if this causes compilation to fail.  Problem
75201         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
75202         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
75203
75204 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
75205
75206         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
75207         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
75208         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
75209         All uses changed.
75210
75211 2006-01-26  Simon Josefsson  <jas@extundo.com>
75212
75213         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
75214         prototype is visible on mingw32.
75215
75216         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
75217         for mingw32.
75218
75219         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
75220         mingw32).
75221
75222 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75223
75224         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
75225         attempt to open for write; this always fails, at least on POSIX
75226         hosts.  This reinstates the 2006-01-09 change, which was
75227         inadvertently removed.
75228
75229 2006-01-26  Bruno Haible  <bruno@clisp.org>
75230
75231         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
75232         Reported by Paul Eggert.
75233
75234 2006-01-26  Bruno Haible  <bruno@clisp.org>
75235             Paul Eggert  <eggert@cs.ucla.edu>
75236
75237         * lib/stdbool_.h (_Bool)
75238         [(! (defined __cplusplus || defined __BEOS__)
75239           && !defined __GNUC__
75240           && !(defined __HP_cc || defined __xlc__
75241                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
75242                || defined __sgi))]:
75243         #define to signed char in these cases too; this simplifies
75244         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
75245         etc., separately) and makes it more conservative.
75246
75247 2006-01-25  Simon Josefsson  <jas@extundo.com>
75248
75249         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
75250         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
75251         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
75252
75253 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75254
75255         * lib/argp-namefrob.h: Bugfix. Remove stray #
75256
75257 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
75258
75259         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
75260         so that we test the test.
75261         Check for yet another HP-UX cc bug involving *bool |= bool.
75262
75263 2006-01-25  Karl Berry  <karl@gnu.org>
75264
75265         * config/srclist.txt (vasnprintf.c): sync lost.
75266
75267 2006-01-25  Jim Meyering  <jim@meyering.net>
75268
75269         Sync from the stable (b5) branch of coreutils:
75270
75271         * lib/fts.c (fts_children): Don't let close() clobber errno from
75272         failed fchdir().
75273
75274         * lib/fts.c (fts_stat): When following a symlink-to-directory,
75275         don't necessarily interpret stat-fails+lstat-succeeds as indicating
75276         a dangling symlink.  That can also happen at least for ELOOP.
75277         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
75278         FYI, this bug predates the inclusion of fts.c in coreutils.
75279
75280         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
75281         in their own block, so pre-c99 compilers don't object.
75282
75283         Avoid the double-free (first in fts_read, second in fts_close) that
75284         would occur when an `active' directory is made inaccessible (e.g.,
75285         via chmod a-x) during a traversal.
75286         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75287         before returning.  Reproduce this failure by
75288         mkdir -p a/b; cd a; chmod a-x . b
75289         Reported by Stavros Passas.
75290
75291 2006-01-25  Jim Meyering  <jim@meyering.net>
75292
75293         * lib/fileblocks.c: Remove more useless parentheses.
75294         * lib/readutmp.h: Likewise.
75295
75296 2006-01-25  Bruno Haible  <bruno@clisp.org>
75297
75298         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
75299         warnings.
75300         Reported by Paul Eggert.
75301
75302 2006-01-25  Bruno Haible  <bruno@clisp.org>
75303
75304         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
75305         rid of a trap command. For Solaris sh.
75306         Reported by Mark D. Baushke <mdb@gnu.org>.
75307
75308 2006-01-24  Simon Josefsson  <jas@extundo.com>
75309
75310         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
75311         Bruno.
75312
75313 2006-01-24  Karl Berry  <karl@gnu.org>
75314
75315         * config/srclist.txt (argp-namefrob.h): sync lost.
75316
75317 2006-01-24  Jim Meyering  <jim@meyering.net>
75318
75319         * modules/openat (Files): Add lib/intprops.h.
75320         From Mark D. Baushke.
75321
75322 2006-01-24  Jim Meyering  <jim@meyering.net>
75323
75324         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
75325         Reported by Mark D. Baushke.
75326
75327 2006-01-24  Jim Meyering  <jim@meyering.net>
75328
75329         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
75330
75331 2006-01-24  Bruno Haible  <bruno@clisp.org>
75332
75333         * modules/strnlen (Maintainer): Change from glibc to all.
75334
75335 2006-01-24  Bruno Haible  <bruno@clisp.org>
75336
75337         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
75338         Patch by Paul Eggert.
75339
75340 2006-01-24  Bruno Haible  <bruno@clisp.org>
75341
75342         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
75343         already has it.
75344         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
75345         2005-11-26.
75346
75347         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
75348         'signed char' to avoid problems with the built-in _Bool type.
75349         Reported by Paul Eggert on 2005-11-26.
75350
75351 2006-01-24  Bruno Haible  <bruno@clisp.org>
75352
75353         * gnulib-tool (func_import): Avoid constructing complicated sed
75354         expressions inside backquote.
75355         Report and solution by Mark D. Baushke <mdb@gnu.org>.
75356
75357 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
75358
75359         These changes imported from libc.
75360         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
75361         test and two separate function calls.
75362         * lib/strndup.c (__strndup): Add libc_hidden_def.
75363
75364 2006-01-23  Simon Josefsson  <jas@extundo.com>
75365
75366         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
75367         Remove the test_*_SOURCES variable: automake infers it by default.
75368         * modules/tls-tests: Likewise.
75369
75370 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75371
75372         Work around porting bugs reported by Dieter in
75373         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
75374         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
75375         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
75376         Include "getopt.h" first, to check interface.
75377         (getenv): Declare only if defined HAVE_DECL_GETENV &&
75378         !HAVE_DECL_GETENV.
75379         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
75380         (__strndup): Revert to K&R-style function dfns, the glibc style.
75381         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
75382         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
75383         Include strnlen.h first, to get prototype properly.
75384         (strnlen): Renamed from __strnlen.
75385         Remove weak alias.
75386
75387 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
75390
75391 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75392
75393         * config/srclist.txt: Adjust to reflect glibc reorganization.
75394         This affects only comments.
75395
75396 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75397
75398          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
75399          Reported by Bruce Korb <bkorb@gnu.org>.
75400
75401 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75402
75403         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
75404         to pacify gcc -Wswitch-default.
75405
75406 2006-01-22  Bruno Haible  <bruno@clisp.org>
75407
75408         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
75409         temporary buffer for sprintf, take into account the precision also
75410         for 'd', 'i', 'u', 'o', 'x', 'X'.
75411
75412 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75413
75414         * modules/argp-tests: New module
75415         * tests/test-argp.c: New file
75416         * tests/test-argp-2.sh: New file
75417
75418 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75419
75420         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
75421         (__argp_base_name): Removed
75422         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
75423         typo.
75424         (__argp_base_name): Provide macro definition or extern declaration
75425         depending on the configuration
75426
75427 2006-01-20  Simon Josefsson  <jas@extundo.com>
75428
75429         * modules/inet_ntop (Depends-on): Depend on sys_socket.
75430
75431 2006-01-20  Simon Josefsson  <jas@extundo.com>
75432
75433         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
75434
75435 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75436
75437         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
75438         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
75439         Suggested by Bruno Haible.
75440
75441 2006-01-20  Karl Berry  <karl@gnu.org>
75442
75443         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
75444         until changes propagate, I guess.
75445
75446 2006-01-19  Simon Josefsson  <jas@extundo.com>
75447
75448         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
75449
75450 2006-01-19  Simon Josefsson  <jas@extundo.com>
75451
75452         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
75453
75454 2006-01-19  Simon Josefsson  <jas@extundo.com>
75455
75456         * gnulib-tool: Set check_PROGRAMS.
75457
75458         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75459         modules/des-tests, modules/gc-arcfour-tests,
75460         modules/gc-arctwo-tests, modules/gc-des-tests,
75461         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75462         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75463         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75464         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75465         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75466         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
75467         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
75468         test_*_SOURCES.
75469
75470 2006-01-18  Simon Josefsson  <jas@extundo.com>
75471
75472         * modules/socklen (Depends-on): Depend on sys_socket.
75473
75474 2006-01-18  Simon Josefsson  <jas@extundo.com>
75475
75476         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75477         modules/des-tests, modules/gc-arcfour-tests,
75478         modules/gc-arctwo-tests, modules/gc-des-tests,
75479         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75480         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75481         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75482         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75483         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75484         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
75485         $(EXEEXT) to automake TESTS variable, for mingw32.
75486
75487 2006-01-17  Simon Josefsson  <jas@extundo.com>
75488
75489         * modules/socklen (Include): Need sys/socket.h.
75490
75491 2006-01-17  Bruno Haible  <bruno@clisp.org>
75492
75493         * modules/ssize_t (Include): Add <sys/types.h>.
75494
75495 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
75496
75497         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
75498         it's not portable and it doesn't work with cross-compiles.
75499         Problem reported by Bruno Haible.  Fix missing-$ typo in
75500         'test "gl_cv_ignore_unused_libraries" ...' that prevented
75501         -zignore from being used with Sun's C compiler.
75502
75503 2006-01-12  Simon Josefsson  <jas@extundo.com>
75504
75505         * lib/base64.c: Fix warning, reported by Bruno Haible
75506         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
75507
75508 2006-01-12  Bruno Haible  <bruno@clisp.org>
75509
75510         * modules/ldd: New file.
75511         * build-aux/ldd.sh.in: New file.
75512         * MODULES.html.sh (Support for building libraries and executables): Add
75513         ldd.
75514
75515 2006-01-12  Bruno Haible  <bruno@clisp.org>
75516
75517         * m4/ldd.m4: New file.
75518
75519 2006-01-12  Bruno Haible  <bruno@clisp.org>
75520
75521         * gnulib-tool (func_import, func_create_testdir): Don't go into an
75522         endless loop while replacing $auxdir with build-aux.
75523
75524 2006-01-11  Simon Josefsson  <jas@extundo.com>
75525
75526         * lib/stdint_.h (SIZE_MAX): Add missing (.
75527
75528 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
75529
75530         Sync from coreutils.
75531         * lib/md5.c: Fix commentary typos.
75532         (alignof, UNALIGNED_P): No need for a GCC-specific version.
75533         * lib/md5.h (__attribute__): Remove; unused.
75534         * lib/sha1.c: Fix commentary to match md5 better.
75535         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
75536         so that we don't need to worry about alignment.  All uses changed.
75537         This merges the 2005-10-28 md5 change into sha1.
75538
75539 2006-01-11  Jim Meyering  <jim@meyering.net>
75540
75541         Sync from coreutils.
75542         * lib/md5.c (OP): Fix spacing.
75543
75544 2006-01-11  Bruno Haible  <bruno@clisp.org>
75545
75546         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75547         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
75548         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
75549
75550 2006-01-11  Bruno Haible  <bruno@clisp.org>
75551
75552         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75553         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
75554         the "early" section as well.
75555
75556 2006-01-11  Bruno Haible  <bruno@clisp.org>
75557
75558         Avoid "ar: no archive members specified" error on MacOS X.
75559         * gnulib-tool (func_modules_add_dummy): New function.
75560         (func_import, func_create_testdir): Invoke it.
75561
75562 2006-01-11  Bruno Haible  <bruno@clisp.org>
75563
75564         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
75565         with $auxdir in AC_CONFIG_FILES statements.
75566
75567 2006-01-11  Bruno Haible  <bruno@clisp.org>
75568
75569         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75570         Initialize also noinst_HEADERS to empty.
75571
75572 2006-01-11  Bruno Haible  <bruno@clisp.org>
75573
75574         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
75575         variables.
75576         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
75577         autoreconf.
75578
75579 2006-01-11  Bruno Haible  <bruno@clisp.org>
75580
75581         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
75582         overridable by the user.
75583         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75584
75585 2006-01-10  Simon Josefsson  <jas@extundo.com>
75586
75587         * modules/sys_socket: New file.
75588
75589 2006-01-10  Simon Josefsson  <jas@extundo.com>
75590
75591         * m4/sys_socket_h.m4: New file.
75592
75593 2006-01-10  Simon Josefsson  <jas@extundo.com>
75594
75595         * lib/socket_.h: New file.
75596
75597 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75598
75599         * modules/readutmp (Maintainer): Add myself.
75600
75601 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75602
75603         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
75604         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
75605         People who are still concerned with buggy memcmp implementations
75606         can invoke gl_FUNC_MEMCMP themselves.
75607
75608 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75609
75610         * lib/regex_internal.h (BITSET_WORD_BITS):
75611         Work around a bug in 64-bit PGC (before version 6.1-2), where the
75612         preprocessor mishandles large unsigned values as if they were signed.
75613         Problem reported by Claudio Fontana in
75614         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
75615
75616 2006-01-10  Jim Meyering  <jim@meyering.net>
75617
75618         Avoid the double-free (first in fts_read, second in fts_close) that
75619         would occur when an `active' directory is made inaccessible (e.g.,
75620         via chmod a-x) during a traversal.
75621         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75622         before returning.  Reproduce this failure by
75623         mkdir -p a/b; cd a; chmod a-x . b
75624         Reported by Stavros Passas.
75625
75626         Sync from coreutils.
75627         * lib/sha1.c: Tweak grammar in a comment.
75628
75629 2006-01-10  Jim Meyering  <jim@meyering.net>
75630
75631         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
75632         Patch by Joerg Sonnenberger.
75633
75634 2006-01-10  Bruno Haible  <bruno@clisp.org>
75635
75636         * modules/readutmp: Depend on module free.
75637         * modules/strtok_r: Depend on module restrict.
75638
75639 2006-01-10  Bruno Haible  <bruno@clisp.org>
75640
75641         * modules/gettext (configure.ac): Add an invocation of
75642         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
75643
75644 2006-01-10  Bruno Haible  <bruno@clisp.org>
75645
75646         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
75647         Reported by Werner Lemberg <wl@gnu.org>.
75648
75649 2006-01-10  Bruno Haible  <bruno@clisp.org>
75650
75651         * lib/localcharset.c: Update from GNU gettext.
75652
75653 2006-01-10  Bruno Haible  <bruno@clisp.org>
75654
75655         * lib/argp.h (__const): Remove macro. Use const instead.
75656         * lib/argp-fmtstream.h (__const): Likewise.
75657         * lib/glob_.h (__const): Remove macro.
75658         * lib/glob-libc.h: Use const instead of __const.
75659
75660 2006-01-10  Bruno Haible  <bruno@clisp.org>
75661
75662         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
75663         variable.
75664         Needed to avoid an automake error regarding the 'gettext' module.
75665
75666 2006-01-09  Simon Josefsson  <jas@extundo.com>
75667
75668         * modules/inet_ntop (Depends-on): Add restrict.
75669
75670 2006-01-09  Simon Josefsson  <jas@extundo.com>
75671
75672         * modules/gc-rijndael-tests (License): Put under LGPL.
75673
75674         * modules/gc-des-tests (License): Likewise.
75675
75676         * modules/gc-arcfour-tests (License): Likewise.
75677
75678         * modules/gc-arctwo-tests (License): Likewise.
75679
75680         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
75681
75682         * modules/gc-hmac-sha1-tests (Files): Likewise.
75683
75684         * modules/gc-hmac-md5-tests (License): Likewise.
75685
75686         * modules/gc-sha1-tests (License): Likewise.
75687
75688         * modules/gc-md5-tests (License): Likewise.
75689
75690         * modules/gc-md4-tests (License): Likewise.
75691
75692         * modules/gc-md2-tests (License): Likewise.
75693
75694         * modules/gc-tests (License): Likewise.
75695
75696         * modules/des-tests (License): Likewise.
75697
75698         * modules/md4-tests (License): Likewise.
75699
75700         * modules/md2-tests (License): Likewise.
75701
75702 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75703
75704         Sync from coreutils:
75705
75706         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
75707         * modules/lib-ignore: New file.
75708         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
75709         chdir-safer.m4, lchmod.m4.
75710         * modules/openat: Add mkdirat.c, openat-priv.h.
75711
75712 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75713
75714         Sync from coreutils.
75715         * m4/lib-ignore.m4: New file.
75716         * m4/lchmod.m4: New file.
75717
75718 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75719
75720         Sync from coreutils.
75721         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
75722         for write access: POSIX says that must fail.
75723         * lib/fts.c (diropen): Likewise.
75724         * lib/save-cwd.c (save_cwd): Likewise.
75725         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
75726         well, for minor improvements on hosts that lack O_DIRECTORY.
75727         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
75728         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
75729         Fall back on chown if open failed with EACCES.
75730
75731         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
75732         Report an error at compile-time if only a 1-second nominal clock
75733         resolution is found.
75734
75735         * lib/lchmod.h: New file.
75736         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
75737         (make_dir_parents): Use lchown rather than chown, and
75738         lchmod rather than chmod.
75739
75740         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
75741         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
75742         "proc" reported by n0dalus.
75743
75744         * lib/mountlist.c: Include <limits.h>.
75745         (dev_from_mount_options)
75746         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
75747         New function.  It no longer assumes "dev=" has the System V meaning
75748         on Linux (since it doesn't).  It also parses "dev=" more carefully.
75749         (read_file_system_list)
75750         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
75751         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
75752         dev= in that case.
75753
75754         * lib/posixtm.h (PDS_PRE_2000): New macro.
75755         * lib/posixtm.c (year): Arg is now syntax_bits rather than
75756         allow_century.  All usages changed.  Reject dates outside the range
75757         1969-1999 if PDS_PRE_2000 is used.
75758
75759 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75760
75761         Sync from coreutils.
75762         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
75763         (Time of day items): Mention the possibility of leap seconds.
75764         Problem reported by Dr. David Alan Gilbert.
75765
75766 2006-01-09  Jim Meyering  <jim@meyering.net>
75767
75768         Sync from coreutils.
75769
75770         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
75771
75772         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
75773
75774         * lib/modechange.c (mode_compile): Reject an invalid mode string
75775         that starts with an octal digit.  From Andreas Gruenbacher.
75776
75777         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
75778         and dup to open_safer and dup_safer, respectively.
75779         (openat_permissive): Fix typo in comment.
75780
75781         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
75782         "gettext.h"; either no longer needed or are guaranteed by openat.h.
75783         (_): Remove; no longer needed.
75784         (openat): Renamed from rpl_openat; no need for rpl_openat
75785         since openat.h renames openat for us.
75786         Replace most of the body with a call to openat_permissive,
75787         to avoid duplicate code.
75788         Port to (probably hypothetical) environments were mode_t is
75789         wider than int.
75790         (openat_permissive): Require mode arg, so that we can check
75791         types better.  Put it just after flags.  Change cwd failure
75792         indicator from pointer-to-bool to pointer-to-errno-value.
75793         All callers changed.
75794         Invoke openat_save_fail and/or openat_restore_fail if
75795         cwd_errno is null, so that openat can call us.
75796         (openat_permissive, fdopendir, fstatat, unlinkat):
75797         Simplify errno handling to avoid some duplicate code,
75798         as it's OK to set errno on success.
75799         * lib/openat.h: Revamp code so that function macros depend on
75800         __OPENAT_PREFIX only, not also on AT_FDCWD.
75801         (openat_ro): Remove.  Caller changed to use openat_permissive.
75802         (openat_permissive): Now a macro, if not a function.
75803         (openat_restore_fail, openat_save_fail): Now always functions,
75804         since mkdirat needs them even if __OPENAT_PREFIX is defined.
75805
75806         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
75807         and openat.c.
75808         * lib/mkdirat.c: Include openat-priv.h.
75809         Remove definitions of macros defined therein.
75810         * lib/openat.c: Likewise.
75811
75812         * lib/mkdirat.c (mkdirat): New file and function.
75813         * lib/openat.h (mkdirat): Declare.
75814
75815         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
75816
75817         * lib/openat.h (openat_permissive): Declare.
75818         (openat_ro): Define.
75819
75820         * lib/openat.c (EXPECTED_ERRNO): New macro.
75821         (openat_permissive): New function -- used in remove.c rewrite.
75822         (all functions): Set errno just before returning, only if there
75823         was an actual failure.
75824         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
75825
75826         Emulate openat-family functions using Linux's procfs, if possible.
75827         Idea and some code based on Ulrich Drepper's glibc changes.
75828
75829         * lib/openat.c: (BUILD_PROC_NAME): New macro.
75830         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
75831         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
75832         before falling back on save_cwd and restore_cwd.
75833         (fdopendir, fstatat, unlinkat): Likewise.
75834
75835         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
75836         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
75837
75838         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
75839         as second argument to va_arg.  Otherwise, some versions of gcc
75840         warn that `if this code is reached, the program will abort'.
75841
75842 2006-01-09  Jim Meyering  <jim@meyering.net>
75843
75844         Sync from coreutils.
75845         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
75846         Require openat-priv.h.
75847
75848 2006-01-09  Bruno Haible  <bruno@clisp.org>
75849
75850         * modules/strnlen (Include): Use strnlen.h.
75851
75852 2006-01-09  Bruno Haible  <bruno@clisp.org>
75853
75854         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
75855
75856 2006-01-09  Bruno Haible  <bruno@clisp.org>
75857
75858         * lib/sysexit_.h (EX_OK): New macro.
75859         Suggested by Martin Lambers <marlam@marlam.de>.
75860
75861 2006-01-09  Bruno Haible  <bruno@clisp.org>
75862
75863         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
75864         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
75865
75866 2006-01-09  Bruno Haible  <bruno@clisp.org>
75867
75868         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
75869         numbers.
75870
75871 2006-01-09  Bruno Haible  <bruno@clisp.org>
75872
75873         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
75874         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
75875         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
75876         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
75877
75878 2006-01-09  Bruno Haible  <bruno@clisp.org>
75879
75880         * build-aux/javacomp.sh.in: New file, moved from lib/.
75881         * modules/javacomp-script (Files): Update.
75882         (configure.ac): Add AC_CONFIG_FILES invocation.
75883         (EXTRA_DIST): Remove variable.
75884
75885         * build-aux/javaexec.sh.in: New file, moved from lib/.
75886         * modules/javaexec (Files): Update.
75887         (configure.ac): Add AC_CONFIG_FILES invocation.
75888         (EXTRA_DIST): Remove javaexec.sh.in.
75889
75890         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
75891         * modules/csharpcomp-script (Files): Update.
75892         (configure.ac): Add AC_CONFIG_FILES invocation.
75893         (EXTRA_DIST): Remove variable.
75894
75895         * build-aux/csharpexec.sh.in: New file, moved from lib/.
75896         * modules/csharpexec (Files): Update.
75897         (configure.ac): Add AC_CONFIG_FILES invocation.
75898         (EXTRA_DIST): Remove csharpexec.sh.in.
75899
75900 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75901
75902         Sync from coreutils.
75903
75904         Add POSIX ACL support
75905         * lib/acl.h (copy_acl, set_acl): Add declarations.
75906         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
75907         systems other than Linux.
75908         (chmod_or_fchmod): New function: use fchmod when possible,
75909         and chmod otherwise.
75910         (file_has_acl): Add a POSIX ACL implementation, with a
75911         Linux-specific subcase.
75912         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
75913         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
75914         acls are unsupported.
75915         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
75916         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
75917         are unsupported.
75918
75919 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75920
75921         Sync from coreutils.
75922         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
75923
75924 2006-01-07  Bruno Haible  <bruno@clisp.org>
75925
75926         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
75927         gl_EARLY.
75928
75929 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75930
75931         * lib/strftime.c (tzname): Don't declare if it is already #defined.
75932         Problem reported for Mingw by Mark Junker.
75933
75934 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         * README: Gnulib normally doesn't generate a tarball.
75937
75938 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
75939
75940         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
75941         long int, not int, for nanosecond counts, so that people who are
75942         used to POSIX struct timespec won't be surprised.  Reported by Jim
75943         Meyering.
75944
75945 2005-12-28  Bruno Haible  <bruno@clisp.org>
75946
75947         * build-aux/config.rpath: Update from GNU gettext.
75948
75949 2005-12-16  Jim Meyering  <jim@meyering.net>
75950
75951         * modules/fprintftime: New module.
75952         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
75953
75954 2005-12-16  Jim Meyering  <jim@meyering.net>
75955
75956         * m4/fprintftime.m4: New file.
75957
75958 2005-12-16  Jim Meyering  <jim@meyering.net>
75959
75960         * lib/fprintftime.c, lib/fprintftime.h: New files.
75961
75962 2005-12-15  Simon Josefsson  <jas@extundo.com>
75963
75964         * modules/socklen (configure.ac): Fix M4 macro name, to align with
75965         new m4/socklen.m4.
75966
75967 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75968
75969         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
75970         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
75971
75972 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75973
75974         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
75975         * lib/argp-help.c (fill_in_uparams): Check if the constructed
75976         struct uparams is valid. Fall back to the default values if it is
75977         not.
75978
75979 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75980
75981         * modules/argp (Files): Add argp-pin.c
75982         (Depends-on): dirname
75983         (lib_SOURCES): Add argp-pin.c
75984
75985 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75986
75987         * m4/argp.m4:  Check if program_invocation_name and
75988         program_invocation_short_name are declared and define appropriate
75989         macros if they are not.
75990
75991 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75992
75993         * lib/argp-help.c (__argp_base_name): New function
75994         (__argp_short_program_name): Rewrite using __argp_base_name
75995         * lib/argp-namefrob.h: Define program_invocation_name and
75996         program_invocation_short_name if requested
75997         (__argp_base_name): Add prototype
75998         * lib/argp-parse.c (argp_def): Use gettext wrappers
75999         (argp_default_parser): Use __argp_base_name
76000         * lib/argp-pin.c: New file. Defines program_invocation_name and
76001         program_invocation_short_name on systems that lack them.
76002
76003 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76004
76005         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
76006         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76007         porting problem reported by Georg Schwarz in
76008         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76009
76010 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76011
76012         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
76013         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76014         porting problem reported by Georg Schwarz in
76015         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76016
76017 2005-12-05  Bruno Haible  <bruno@clisp.org>
76018
76019         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
76020         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
76021         Reported by Mark Junker <mjscod@gmx.de>.
76022
76023 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
76024
76025         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
76026         Use implementation from Albert Chin, with some
76027         comments/corrections by Stepan Kasal and myself.
76028
76029 2005-12-02  Bruno Haible  <bruno@clisp.org>
76030
76031         * gnulib-tool (func_import): Accept GPLed build tool modules when
76032         --lgpl is given.
76033         * modules/csharpcomp-script: New file.
76034         * modules/csharpcomp: Depend on it.
76035         * modules/javacomp-script: New file.
76036         * modules/javacomp: Depend on it.
76037         Suggested by Simon Josefsson.
76038
76039 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
76040
76041         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
76042         statement, to work around an HP-UX 10.20 compiler bug reported by
76043         Peter O'Gorman.
76044
76045 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76046
76047         * modules/savedir (Depends-on): Add openat.
76048
76049 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76050
76051         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
76052         (uintmax_t) [defined uintmax_t]: Do not declare.
76053         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
76054         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
76055         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
76056         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
76057         sake of portability to weird hosts that C allows (though we don't
76058         know of any practical examples).
76059
76060         * lib/savedir.h (fdsavedir): New decl.
76061         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
76062         contains most of the former guts of savedir.
76063         (savedir): Use savedirstream.
76064         Include "openat.h".
76065
76066 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76067
76068         * modules/obstack (Files): Add m4/ulonglong.m4.
76069         Problem reported by Davide Angelocola.
76070
76071 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
76072
76073         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
76074         coreutils no longer futzes with rounding modes.
76075
76076 2005-11-14  Jim Meyering  <jim@meyering.net>
76077
76078         * lib/mkstemp-safer.c: Include <config.h>, required for possible
76079         replacement of mkstemp.
76080
76081 2005-11-10  Simon Josefsson  <jas@extundo.com>
76082
76083         * lib/readline.c: Remove EOL.
76084
76085 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76086
76087         * modules/gethrxtime (Depends-on): Add gettime.
76088
76089 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76090
76091         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
76092         or gettimeofday; no longer needed.
76093
76094 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76095
76096         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
76097         time business.
76098         (gethrxtime) [! (HAVE_NANOUPTIME
76099         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
76100         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
76101         our own approximation.
76102
76103 2005-11-08  Eric Blake  <ebb9@byu.net>
76104
76105         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76106
76107 2005-11-08  Eric Blake  <ebb9@byu.net>
76108
76109         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76110
76111 2005-11-04  Bruno Haible  <bruno@clisp.org>
76112
76113         * gnulib-tool: Implement --update mode.
76114
76115 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76116
76117         Fix porting problem reported by Theodoros V. Kalamatianos.
76118         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
76119         Don't assume that futimes failing means we must fail.
76120
76121 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76122
76123         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
76124         variables to suggest the intended function of the PATH_MAX check.
76125
76126 2005-10-30  Kean Johnston  <jkj@sco.com>
76127
76128         Trivial changes to support SCO systems.
76129         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
76130         as PATH_MAX.
76131         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
76132         where __ptr is null when no I/O is pending.
76133
76134 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76135
76136         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
76137         leave errno alone.  Problem reported by Dmitry V. Levin.
76138
76139 2005-10-28  Simon Josefsson  <jas@extundo.com>
76140
76141         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
76142         Test more.
76143
76144         * tests/test-gc-md2.c, tests/test-md2.c: New files.
76145
76146         * modules/md2, modules/md2-tests: New files.
76147
76148 2005-10-28  Simon Josefsson  <jas@extundo.com>
76149
76150         * m4/inet_ntop.m4: More tests.
76151
76152         * m4/gc-md2.m4, md2.m4: New file.
76153
76154 2005-10-28  Simon Josefsson  <jas@extundo.com>
76155
76156         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
76157         "restrict" keywords, as per POSIX.  Protect the function
76158         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
76159         Don't use K&R prototypes.  Check the sprintf return values.
76160         Re-define EAFNOSUPPORT if not present.  Indent.
76161
76162         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
76163         suggested by Bruno Haible <bruno@clisp.org>.
76164
76165         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
76166
76167         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
76168
76169         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
76170         libgcrypt).
76171
76172         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
76173
76174         * lib/md2.h, lib/md2.c: New files.
76175
76176 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
76177
76178         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
76179         errno alone.  Problem reported by Frederic Jolliton.
76180
76181 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76182
76183         * modules/verify (License): Change from GPL to LGPL.  This is a
76184         tiny module and there are apparently near-equivalents that are
76185         under the BSD license.
76186
76187 2005-10-24  Simon Josefsson  <jas@extundo.com>
76188
76189         * modules/sha1: Relicense to LGPL.
76190
76191 2005-10-24  Simon Josefsson  <jas@extundo.com>
76192
76193         * lib/md4.h: Shrink buffer size, now that we changed the type.
76194
76195 2005-10-23  Simon Josefsson  <jas@extundo.com>
76196
76197         * gnulib-tool (func_import): Fix --tests-base.
76198
76199 2005-10-22  Simon Josefsson  <jas@extundo.com>
76200
76201         * modules/arcfour (Depends-on): Need stdint.
76202
76203 2005-10-22  Simon Josefsson  <jas@extundo.com>
76204
76205         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
76206         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
76207
76208 2005-10-22  Simon Josefsson  <jas@extundo.com>
76209
76210         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
76211         suggested by Bruno Haible <bruno@clisp.org>.
76212
76213 2005-10-22  Simon Josefsson  <jas@extundo.com>
76214
76215         * lib/crc.h: Include stddef.h, for size_t.
76216
76217 2005-10-22  Simon Josefsson  <jas@extundo.com>
76218
76219         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
76220         arcfour_context struct (simplify test vector testing in GNU
76221         Shishi).
76222
76223 2005-10-21  Simon Josefsson  <jas@extundo.com>
76224
76225         * modules/des, modules/des-tests: New files.
76226
76227         * modules/gc-des, modules/gc-des-tests: New files.
76228
76229         * tests/test-des.c, tests/test-gc-des.c: New file.
76230
76231 2005-10-21  Simon Josefsson  <jas@extundo.com>
76232
76233         * modules/arctwo, modules/arctwo-tests: New files.
76234
76235         * tests/test-arctwo.c: New file.
76236
76237         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
76238
76239         * tests/test-gc-arctwo.c: New file.
76240
76241 2005-10-21  Simon Josefsson  <jas@extundo.com>
76242
76243         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
76244         Bruno Haible <bruno@clisp.org>.
76245
76246         * m4/gc-des.m4: New file.
76247
76248 2005-10-21  Simon Josefsson  <jas@extundo.com>
76249
76250         * m4/arctwo.m4: New file.
76251
76252         * m4/gc-arctwo.m4: New file.
76253
76254 2005-10-21  Simon Josefsson  <jas@extundo.com>
76255
76256         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
76257         block.
76258
76259 2005-10-21  Simon Josefsson  <jas@extundo.com>
76260
76261         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
76262         <bruno@clisp.org>.
76263
76264         * lib/hmac-sha1.c (hmac_sha1): Likewise.
76265
76266         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
76267         Bruno Haible <bruno@clisp.org>.
76268
76269         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
76270         <bruno@clisp.org>.
76271
76272 2005-10-21  Simon Josefsson  <jas@extundo.com>
76273
76274         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
76275
76276 2005-10-21  Simon Josefsson  <jas@extundo.com>
76277
76278         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
76279
76280 2005-10-21  Simon Josefsson  <jas@extundo.com>
76281
76282         * lib/des.h, lib/des.c: New files.
76283
76284         * lib/gc-gnulib.c: Support DES.c
76285
76286 2005-10-21  Simon Josefsson  <jas@extundo.com>
76287
76288         * lib/arctwo.h, lib/arctwo.c: New files.
76289
76290         * lib/gc-gnulib.c: Support ARCTWO.
76291
76292 2005-10-21  Simon Josefsson  <jas@extundo.com>
76293
76294         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
76295         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76296
76297 2005-10-21  Simon Josefsson  <jas@extundo.com>
76298
76299         * gnulib-tool (func_import, func_create_testdir): Define automake
76300         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
76301         Makefile.am snippet),
76302         suggested by Bruno Haible <bruno@clisp.org>.
76303
76304         * modules/gc (Makefile.am): Use it.
76305
76306 2005-10-21  Bruno Haible  <bruno@clisp.org>
76307
76308         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
76309         patch.
76310
76311 2005-10-19  Simon Josefsson  <jas@extundo.com>
76312
76313         * tests/test-gc-rijndael.c: New file.
76314
76315         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
76316
76317 2005-10-19  Simon Josefsson  <jas@extundo.com>
76318
76319         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
76320         interface too.
76321
76322 2005-10-19  Simon Josefsson  <jas@extundo.com>
76323
76324         * tests/test-gc-arcfour.c: New file.
76325
76326         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
76327
76328 2005-10-19  Simon Josefsson  <jas@extundo.com>
76329
76330         * modules/gc-md4, modules/gc-md4-tests: New file.
76331
76332         * tests/test-gc-md4.c: New file.
76333
76334 2005-10-19  Simon Josefsson  <jas@extundo.com>
76335
76336         * m4/gc-md4.m4: New file.
76337
76338 2005-10-19  Simon Josefsson  <jas@extundo.com>
76339
76340         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
76341         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
76342         <kasal@ucw.cz>.
76343
76344 2005-10-19  Simon Josefsson  <jas@extundo.com>
76345
76346         * m4/gc-arcfour.m4: New file.
76347
76348         * m4/gc-rijndael.m4: New file.
76349
76350 2005-10-19  Simon Josefsson  <jas@extundo.com>
76351
76352         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
76353
76354 2005-10-19  Simon Josefsson  <jas@extundo.com>
76355
76356         * lib/gc-gnulib.c: Support ARCFOUR.
76357
76358 2005-10-19  Simon Josefsson  <jas@extundo.com>
76359
76360         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
76361         support.
76362
76363         * lib/gc.h: Add ECB enum type.
76364
76365         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
76366
76367 2005-10-18  Simon Josefsson  <jas@extundo.com>
76368
76369         * tests/test-md5.c: New file.
76370
76371         * modules/md5-tests: New file.
76372
76373 2005-10-18  Simon Josefsson  <jas@extundo.com>
76374
76375         * tests/test-md4.c: New file.
76376
76377         * modules/md4, modules/md4-tests: New files.
76378
76379 2005-10-18  Simon Josefsson  <jas@extundo.com>
76380
76381         * m4/md4.m4: New file.
76382
76383 2005-10-18  Simon Josefsson  <jas@extundo.com>
76384
76385         * lib/md4.h, lib/md4.c: New files, based on md5.?.
76386
76387 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
76388
76389         * gnulib-tool (func_create_testdir): Omit the second check whether
76390         BUILT_SOURCES in nonempty.
76391
76392 2005-10-17  Simon Josefsson  <jas@extundo.com>
76393
76394         * tests/test-rijndael.c: New file.
76395
76396 2005-10-17  Simon Josefsson  <jas@extundo.com>
76397
76398         * modules/sha1: Depend on stdint instead of md5.
76399
76400         * modules/md5: Depend on stdint, remove uint32_t.
76401
76402 2005-10-17  Simon Josefsson  <jas@extundo.com>
76403
76404         * modules/gc-sha1-tests: New file.
76405
76406         * tests/test-gc-sha1.c: New file.
76407
76408 2005-10-17  Simon Josefsson  <jas@extundo.com>
76409
76410         * m4/md5.m4: Remove call to uint32_t.m4.
76411
76412 2005-10-17  Simon Josefsson  <jas@extundo.com>
76413
76414         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
76415
76416         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
76417         md5.h.
76418
76419         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
76420
76421         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
76422
76423 2005-10-17  Simon Josefsson  <jas@extundo.com>
76424
76425         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
76426
76427 2005-10-17  Simon Josefsson  <jas@extundo.com>
76428
76429         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
76430
76431 2005-10-17  Simon Josefsson  <jas@extundo.com>
76432
76433         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
76434
76435         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
76436
76437 2005-10-17  Bruno Haible  <bruno@clisp.org>
76438
76439         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
76440         that it can also be used in a test.
76441
76442 2005-10-16  Bruno Haible  <bruno@clisp.org>
76443
76444         * gnulib-tool (func_emit_tests_Makefile_am): Also define
76445         TESTS_ENVIRONMENT, so that individual tests can augment it.
76446
76447         * gnulib-tool (func_create_testdir): Use an intermediate target for
76448         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
76449         macros, like $(ALLOCA_H), which cannot be passed through the command
76450         line.
76451
76452 2005-10-15  Simon Josefsson  <jas@extundo.com>
76453
76454         * modules/rijndael-tests: New file.
76455
76456         * modules/rijndael: New file.
76457
76458 2005-10-15  Simon Josefsson  <jas@extundo.com>
76459
76460         * m4/rijndael.m4: New file.
76461
76462 2005-10-15  Simon Josefsson  <jas@extundo.com>
76463
76464         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
76465
76466         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
76467
76468 2005-10-14  Simon Josefsson  <jas@extundo.com>
76469
76470         * tests/test-arcfour.c: New file.
76471
76472         * modules/arcfour, modules/arcfour-tests: New files.
76473
76474 2005-10-14  Simon Josefsson  <jas@extundo.com>
76475
76476         * m4/arcfour.m4: New file.
76477
76478 2005-10-14  Simon Josefsson  <jas@extundo.com>
76479
76480         * lib/arcfour.h, lib/arcfour.c: New files.
76481
76482 2005-10-14  Roland McGrath  <roland@redhat.com>
76483
76484         Import from libc.  [BZ #1331]
76485         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
76486         macro argument.
76487         Reported by Matej Vela <vela@debian.org>.
76488
76489 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76490
76491         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
76492         include <wchar.h>; no longer needed.
76493
76494 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76495
76496         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
76497
76498 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
76499         and  Ulrich Drepper  <drepper@redhat.com>
76500
76501         Import from libc.
76502         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
76503         instead of inline stream orientation test and two separate
76504         function calls.  Pay no attention to USE_IN_LIBIO.
76505
76506 2005-10-13  Simon Josefsson  <jas@extundo.com>
76507
76508         * modules/gc-hmac-md5-tests: New file.
76509
76510         * tests/test-gc-hmac-sha1.c: New file.
76511
76512         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
76513
76514         * modules/gc-hmac-md5-tests: New file.
76515
76516         * tests/test-gc-md5.c: New file.
76517
76518         * modules/gc-md5-tests: New file.
76519
76520 2005-10-13  Simon Josefsson  <jas@extundo.com>
76521
76522         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
76523         Move memory allocation outside of loop.
76524
76525 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
76526
76527         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
76528         intermediate directory is in a read-only file system.  Problem
76529         reported by Eric Blake.
76530
76531 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
76532
76533         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
76534
76535 2005-10-12  Simon Josefsson  <jas@extundo.com>
76536
76537         * tests/test-hmac-sha1.c: New file.
76538
76539         * modules/hmac-sha1-tests: New file.
76540
76541         * modules/hmac-sha1: New file.
76542
76543 2005-10-12  Simon Josefsson  <jas@extundo.com>
76544
76545         * modules/gc-sha1: New file.
76546
76547 2005-10-12  Simon Josefsson  <jas@extundo.com>
76548
76549         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
76550
76551         * tests/test-gc-pbkdf2-sha1.c: New file.
76552
76553 2005-10-12  Simon Josefsson  <jas@extundo.com>
76554
76555         * modules/gc-md5, modules/gc-hmac-md5: New files.
76556
76557         * modules/gc (Files): Remove md5, memxor and hmac files.
76558
76559 2005-10-12  Simon Josefsson  <jas@extundo.com>
76560
76561         * m4/gc-pbkdf2-sha1.m4: New file.
76562
76563         * m4/gc-hmac-sha1.m4: New file.
76564
76565         * m4/gc-sha1: New file.
76566
76567         * m4/hmac-sha1.m4: New file.
76568
76569 2005-10-12  Simon Josefsson  <jas@extundo.com>
76570
76571         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
76572
76573         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
76574
76575 2005-10-12  Simon Josefsson  <jas@extundo.com>
76576
76577         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
76578         suggested by Bruno Haible <bruno@clisp.org>.
76579
76580 2005-10-12  Simon Josefsson  <jas@extundo.com>
76581
76582         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
76583
76584 2005-10-12  Simon Josefsson  <jas@extundo.com>
76585
76586         * lib/gc-pbkdf2-sha1.c: New file.
76587
76588         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
76589
76590 2005-10-12  Simon Josefsson  <jas@extundo.com>
76591
76592         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
76593
76594         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
76595
76596 2005-10-12  Simon Josefsson  <jas@extundo.com>
76597
76598         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
76599         GC_USE_HMAC_MD5, respectively.
76600
76601         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
76602         (gc_md5): Fix typo.
76603
76604         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
76605
76606         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
76607
76608         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
76609
76610 2005-10-12  Bruno Haible  <bruno@clisp.org>
76611
76612         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
76613         Reported by Stepan Kasal <kasal@ucw.cz>.
76614
76615 2005-10-11  Simon Josefsson  <jas@extundo.com>
76616
76617         * tests/test-crc.c: New file.
76618
76619         * modules/crc, modules/crc-tests: New files.
76620
76621 2005-10-11  Simon Josefsson  <jas@extundo.com>
76622
76623         * m4/crc.m4: New file.
76624
76625 2005-10-11  Simon Josefsson  <jas@extundo.com>
76626
76627         * lib/gc.h: Add gc_hash and gc_hash_buffer.
76628
76629         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
76630
76631         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
76632
76633 2005-10-11  Simon Josefsson  <jas@extundo.com>
76634
76635         * lib/crc.h, lib/crc.c: New files.
76636
76637         * lib/gc.h (gc_hash_buffer): Add doc.
76638
76639 2005-10-11  Bruno Haible  <bruno@clisp.org>
76640
76641         * modules/c-strcasestr: New file.
76642         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
76643
76644 2005-10-11  Bruno Haible  <bruno@clisp.org>
76645
76646         * modules/c-strcase: New file.
76647         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
76648
76649 2005-10-11  Bruno Haible  <bruno@clisp.org>
76650
76651         * lib/strcasecmp.c: Include limits.h.
76652         (strcasecmp): Avoid integer overflow on exotic platforms.
76653         * lib/strncasecmp.c: Include limits.h.
76654         (strncasecmp): Avoid integer overflow on exotic platforms.
76655         Reported by Paul Eggert.
76656
76657 2005-10-11  Bruno Haible  <bruno@clisp.org>
76658
76659         * lib/c-strcasestr.h: New file, from GNU gettext.
76660         * lib/c-strcasestr.c: New file, from GNU gettext.
76661
76662 2005-10-11  Bruno Haible  <bruno@clisp.org>
76663
76664         * lib/c-strcase.h: New file, from GNU gettext.
76665         * lib/c-strcasecmp.c: New file, from GNU gettext.
76666         * lib/c-strncasecmp.c: New file, from GNU gettext.
76667
76668 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76669
76670         * modules/mempcpy (License): GPL -> LGPL.
76671         * modules/strchrnul (License): Likewise.
76672         * modules/sysexits (License): Likewise.
76673
76674 2005-10-08  Simon Josefsson  <jas@extundo.com>
76675
76676         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
76677
76678 2005-10-07  Simon Josefsson  <jas@extundo.com>
76679
76680         * m4/memxor.m4: Remove gl_C_RESTRICT call.
76681
76682 2005-10-06  Simon Josefsson  <jas@extundo.com>
76683
76684         * tests/test-hmac-md5.c: New file.
76685
76686         * modules/hmac-md5-tests: New file.
76687
76688         * modules/hmac-md5: New file.
76689
76690 2005-10-06  Simon Josefsson  <jas@extundo.com>
76691
76692         * m4/hmac-md5.m4: New file.
76693
76694         * m4/memxor.m4: Require gl_C_RESTRICT.
76695
76696 2005-10-06  Simon Josefsson  <jas@extundo.com>
76697
76698         * lib/memxor.c (memxor): Avoid casts and warnings.
76699
76700 2005-10-06  Simon Josefsson  <jas@extundo.com>
76701
76702         * lib/hmac-md5.c: New file.
76703
76704         * lib/hmac.h: New file.
76705
76706 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76707
76708         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
76709         promotes to int, not unsigned int, to catch the AIX 5.3
76710         compiler bug.
76711
76712 2005-10-05  Simon Josefsson  <jas@extundo.com>
76713
76714         * modules/memxor: New file.
76715
76716         * modules/iconv (Files): Move config.rpath to havelib, it is used
76717         there.
76718
76719         * modules/havelib (Files): Add config.rpath.
76720
76721 2005-10-05  Simon Josefsson  <jas@extundo.com>
76722
76723         * m4/memxor.m4: New file.
76724
76725 2005-10-05  Simon Josefsson  <jas@extundo.com>
76726
76727         * lib/memxor.c (memxor): Fix compiler error.
76728
76729         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
76730         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
76731
76732         * lib/memxor.h, lib/memxor.c: New files.
76733
76734         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
76735         we assume all systems have it, suggested by Jim Meyering
76736         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
76737         any systems lack sys/socket.h; mingw32 is known to lack it, but we
76738         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
76739         same reasons.
76740
76741 2005-10-05  Simon Josefsson  <jas@extundo.com>
76742
76743         * config/srclist.txt: Add glibc bug 1423 for md5.h.
76744
76745 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76746
76747         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
76748         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
76749         needed, since the source code now assumes these .h files.
76750
76751 2005-10-05  Derek Price  <derek@ximbiot.com>
76752
76753         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
76754
76755 2005-10-05  Bruno Haible  <bruno@clisp.org>
76756
76757         * modules/stdint (License): Change to LGPL.
76758
76759 2005-10-04  Simon Josefsson  <jas@extundo.com>
76760
76761         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
76762         D. Baushke" <mdb@gnu.org>.
76763
76764 2005-10-04  Bruno Haible  <bruno@clisp.org>
76765
76766         * lib/verify.h (verify_true): Provide alternative definition for C++.
76767
76768 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
76769
76770         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
76771         (SSIZE_MAX): New macro, if not already defined.
76772         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
76773         than 2 GiB.
76774
76775 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76776
76777         Sync from coreutils.
76778         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
76779         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
76780         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
76781         ULLONG_MAX doesn't work with 2.7.2.1.
76782
76783 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76784
76785         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
76786         From Ben Pfaff.
76787
76788         * modules/exclude (Depends-on): Depend on verify.
76789         * modules/strtoimax (Depends-on): Likewise.
76790         * modules/utimecmp (Depends-on): Likewise.
76791
76792 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76793
76794         * lib/exclude.c: Include verify.h.
76795         (verify): Remove.  All callers changed to use verify.h's version.
76796         * lib/strtoimax.c: Likewise.
76797         * lib/utimecmp.c: Likewis.e
76798
76799         Sync from coreutils.
76800         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
76801         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
76802         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
76803         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
76804         bother returning ENOSYS if settimeofday or stime fails; just let
76805         them return whatever errno they want to return.
76806         * lib/utimens.c: Include unistd.h, for dup2.
76807         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
76808         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
76809
76810 2005-10-02  Jim Meyering  <jim@meyering.net>
76811
76812         Sync from coreutils.
76813         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
76814         from glibc-2.2.5 that fails for read-only files.
76815
76816 2005-10-02  Jim Meyering  <jim@meyering.net>
76817
76818         Sync from coreutils.
76819         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
76820         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
76821         `#if HAVE_CONFIG_H'.
76822         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
76823         Remove AT_FDCWD test.
76824         Do not consume the fd unless successful.
76825         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
76826         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
76827         block, so that we don't even try to compile it if settimeofday is
76828         available.  This works around a compilation failure on OSF1 V5.1,
76829         due to stime requiring a `long int*' while tv_sec is `int'.
76830
76831 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
76832
76833         Sync from coreutils.
76834         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
76835         against `yes', rather than just testing for nonempty.
76836
76837 2005-10-01  Simon Josefsson  <jas@extundo.com>
76838
76839         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
76840         and Darwin.
76841
76842         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
76843         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
76844         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
76845         freeaddrinfo and gai_strerror are declared by the POSIX headers.
76846         Check if struct addrinfo is declared.
76847
76848 2005-10-01  Simon Josefsson  <jas@extundo.com>
76849
76850         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
76851         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
76852         AI_* and EAI_* definitions.  Protect function declarations.
76853
76854 2005-10-01  Jim Meyering  <jim@meyering.net>
76855
76856         Sync from coreutils.
76857
76858         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
76859         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
76860         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
76861         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76862         in the inet and nsl libraries.  Required on Solaris 5.7.
76863
76864 2005-10-01  Jim Meyering  <jim@meyering.net>
76865
76866         Sync from coreutils.
76867         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76868         in the inet and nsl libraries.  Required on Solaris 5.7.
76869
76870 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
76871
76872         * lib/getdelim.c (getdelim): Remove unused variables.
76873
76874 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76875
76876         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
76877         so that the code works even with ancient cpp.  Portability problem
76878         with GCC 2.7.2.1 reported by Thomas M.Ott.
76879
76880 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76881
76882         * modules/regex (Depends-on): Add strcase.
76883
76884         * modules/gethostname (Licence): Change from GPL to LGPL, since
76885         gethostname.c is a trivial implementation of a standard library
76886         function.
76887         * modules/poll (License): Change from GPL to LGPL, since it's
76888         derived from LGPL code.
76889
76890 2005-09-27  Jim Meyering  <jim@meyering.net>
76891
76892         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
76893         HAVE_CONFIG_H.
76894
76895         * lib/intprops.h (signed_type_or_expr__): Define.
76896         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
76897         for unsigned types.
76898
76899 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76900
76901         * lib/verify.h (verify_expr): Remove, replacing with:
76902         (verify_true): New macro that returns true instead of void.
76903         (verify_type__): Remove.
76904         (verify): Use verify_true rather than verify_type__.
76905
76906 2005-09-26  Bruno Haible  <bruno@clisp.org>
76907
76908         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
76909         is necessary.
76910         (lib_SOURCES): Remove mbchar.c.
76911         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
76912         (Files): Add m4/mbrtowc.m4.
76913         * modules/mbiter: Likewise.
76914         * modules/mbuiter: Likewise.
76915
76916 2005-09-26  Bruno Haible  <bruno@clisp.org>
76917
76918         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
76919         compile mbchar.c if they are not both present.
76920         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
76921         * m4/mbiter.m4 (gl_MBITER): Likewise.
76922         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
76923         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
76924         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
76925
76926 2005-09-25  Jim Meyering  <jim@meyering.net>
76927
76928         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
76929         also uses socklen_t.
76930
76931 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
76932
76933         * lib/utimens.c (ENOSYS): Define if not already defined.
76934         (futimens): Support having a null PATH if the file descriptor
76935         is nonnegative.
76936
76937         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
76938         Remove.
76939         (__attribute): Define to empty unless GCC 3.1 or later.
76940         This works around a core dump on OpenBSD 3.4, which has GCC
76941         2.95.3, which dumps core when given __attribute__(()).  It also
76942         simplifies other tests, since we really don't want to bother with
76943         worrying about which ancient version of GCC supported what.
76944         Original problem reported by Yoann Vandoorselaere, with part of
76945         the fix suggested by Derek Price.
76946
76947 2005-09-24  Jim Meyering  <jim@meyering.net>
76948
76949         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
76950         so we can once again use a positive bitfield width of 1 -- now we
76951         don't have to explain why we were using a bitfield width of 2.
76952
76953 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76954
76955         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
76956         and similarly for the other external symbols.  Problem reported
76957         by James Gallager.
76958
76959         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
76960         bug reported by Jim Meyering.
76961
76962         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
76963         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
76964         not needed, since socklen is a prerequisite module.
76965
76966 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76967
76968         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
76969         Problem reported by Eric Blake.
76970         (getaddrinfo): Initialize se so that it's not garbage.
76971         Redo internal storage allocation so that it doesn't make unportable
76972         assumptions about alignment.
76973         Fix a memory leak.
76974
76975         * lib/utimens.c (futimens): Use futimesat if available.
76976         Prefer it to futimes since it doesn't have the futimes bug.
76977
76978         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
76979         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
76980         Instead, declare a function that returns a pointer to an array,
76981         and use verify_type__ to declare the size of the array.
76982         Problem and germ of a solution reported by Bruno Haible.
76983         (verify_type__): Use 2, not 1, for bitfield size, to avoid
76984         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
76985
76986 2005-09-23  Jim Meyering  <jim@meyering.net>
76987
76988         Sync from coreutils.
76989         Correct build failure (socklen_t not defined) on at least
76990         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
76991         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
76992
76993 2005-09-23  Jim Meyering  <jim@meyering.net>
76994
76995         * modules/getaddrinfo (Depends-on): Add socklen.
76996
76997 2005-09-23  Bruno Haible  <bruno@clisp.org>
76998
76999         * tests/test-verify.c: New file.
77000
77001 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77002
77003         Sync from coreutils.
77004
77005         * modules/argmatch (Depends-on): Add verify.
77006         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
77007         unistd-safer.
77008         * modules/save-cwd (Depends-on): Likewise.
77009
77010         * modules/openat (Files): Add lib/openat-die.c.
77011         (Depends-on): Remove error, exitfail.
77012         Add dirname.
77013
77014         * modules/verify: New file.
77015         * MODULES.html.sh (Diagnostics <assert.h>): New section,
77016         with "verify" module.
77017
77018 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77019
77020         Sync from coreutils.
77021
77022         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
77023         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
77024         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
77025         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
77026         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
77027         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
77028         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
77029         Don't bother checking for string.h, stdlib.h, unistd.h.
77030         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
77031         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
77032         module's job.
77033         * m4/jm-macros.m4 (gl_MACROS): Likewise.
77034         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
77035
77036         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
77037         (gl_GETDATE): Use it.
77038
77039         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
77040
77041 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77042
77043         Sync from coreutils.
77044
77045         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
77046         stat-time.h.
77047         * lib/argmatch.h: Include verify.h
77048         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
77049         (ARGMATCH_ASSERT): Remove; unused.
77050         * lib/canonicalize.c: Assume STDC_HEADERS.
77051         * lib/exclude.c: Include "strcase.h".
77052         * lib/regex_internal.h [!defined _LIBC]: Likewise.
77053         * lib/getusershell.c: Include stdio--.h rather than stdio.h
77054         and stdio-safer.h.
77055         (getusershell): Call fopen, not fopen_safer.
77056         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
77057         Do not include unistd-safer.h.
77058         (save_cwd): Don't call fd_safer; no longer needed
77059         now that we include fcntl--.h.
77060
77061         * lib/getdate.y (relative_time): New type.
77062         (RELATIVE_TIME_0): New constant.
77063         (parser_control): Use relative_time instead of doing it ourselves.
77064         (%union): Add new relative_time rel member.
77065         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
77066         Now typeless.
77067         (relunit, relunit_snumber): Now of type rel.
77068         (zone, rel, relunit, get_date): Adjust to above changes.
77069
77070         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
77071         Do not include unistd-safer.h.
77072         (getloadavg): Don't call fd_safer; no longer needed
77073         now that we include fcntl--.h.
77074
77075         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
77076         (make_dir_parents): Treat ENOSYS like EEXIST.
77077
77078         Improve quality of diagnostics on restore_cwd failure.
77079         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
77080         (make_dir_parents): Last arg is now int * (for errno), not bool *.
77081         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
77082         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
77083         each time through the loop.  Do not diagnose restore_cwd failure;
77084         that is the caller's job (and perhaps the caller does not care).
77085
77086         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
77087         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
77088         If the file already exists but is not a directory, don't bother
77089         to try to make its parents.
77090         Close potential file descriptor leak if we can't chdir("/") (!).
77091         Don't always return true if chdir($PWD) fails; return true only
77092         if the requested action was done successfully (except for the
77093         chdir($PWD)).
77094         Don't log final directory unless we actually made it.
77095         Refactor to avoid duplicate code to fix up permissions.
77096         Don't attempt to fix up parent permissions if chdir($PWD) fails.
77097
77098         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
77099         to make it a bit faster and (I hope) clearer.
77100         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
77101         Fix bug in formats like %2N.
77102
77103         * lib/verify.h: New file.
77104
77105 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77106
77107         Sync from coreutils.
77108         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
77109
77110 2005-09-22  Jim Meyering  <jim@meyering.net>
77111
77112         Sync from coreutils.
77113
77114         * m4/lstat.m4 (gl_FUNC_LSTAT):
77115         Use AC_LIBSOURCES to require lstat.c and lstat.h.
77116         Remove obsolete comment.
77117         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
77118         * m4/xstrtod.m4: Likewise.
77119
77120         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
77121
77122 2005-09-22  Jim Meyering  <jim@meyering.net>
77123
77124         Sync from coreutils.
77125
77126         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
77127
77128         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
77129         the .tm_year member, since otherwise gcc-4.0 would now warn about
77130         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
77131
77132         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
77133         order to avoid an unsuppressible warning from gcc on 64-bit systems.
77134
77135         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
77136         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
77137         when run in a time zone for which daylight savings time is in effect
77138         for the starting date.
77139
77140         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
77141         stop us from restricting permissions of just-created absolute-named
77142         directories.
77143         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
77144         to restore initial working directory.
77145         * lib/mkdir-p.c (make_dir_parents): New parameter:
77146         different_working_dir, to tell caller if/when we change the working
77147         directory and are unable to return to the initial one.
77148         * lib/mkdir-p.h (make_dir_parents): Update prototype.
77149         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
77150         `return false'.  This fixes a bug introduced on 2004-07-30.
77151
77152         * lib/openat.c (fdopendir): Be sure to close the supplied
77153         file descriptor before returning.  This makes our replacement
77154         implementation a little closer to Solaris's, where fdopendir
77155         ties the file descriptor to the returned DIR* pointer.
77156         * lib/openat.c (unlinkat): New function.
77157         * lib/openat.h (unlinkat): Add prototype.
77158         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
77159         (openat_restore_fail): Rename from openat_restore_die.
77160         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
77161
77162         Provide an alternative to exiting immediately upon save_cwd or
77163         restore_cwd failure.  Now, an application can arrange e.g.,
77164         to perform a longjump in that case.
77165         * lib/openat.c: Include dirname.h.
77166         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
77167         (rpl_openat, fdopendir, fstatat): Call openat_save_die
77168         and openat_restore_die rather than calling error directly.
77169         Don't include "error.h" or "exitfail.h"; they're no longer needed.
77170
77171         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
77172         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
77173         define.
77174
77175         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
77176         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
77177                             int utc, int nanoseconds);
77178         Background:
77179         date should not have to allocate a megabyte of virtual memory to
77180         handle a format argument like +%1048575T.  When implemented with
77181         strftime, it must allocate such a buffer, use strftime to fill it
77182         in, print it, then free it.
77183         With fprintftime, it simply prints everything and exits.
77184         With no need for memory allocation, that's one fewer way to fail.
77185         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
77186         optional field width, not before, so we accept %9:z, not %:9z.
77187         (my_strftime): Be sure to use L_('x') for literals.
77188
77189         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
77190         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
77191         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
77192         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
77193         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
77194         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
77195         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
77196         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
77197         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
77198         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
77199         * lib/xgethostname.c, lib/xreadlink.c:
77200         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
77201
77202         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
77203         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
77204         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
77205         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77206         and don't include <sys/file.h>).
77207
77208 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
77209
77210         Sync from coreutils.
77211
77212         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
77213         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
77214         [!LDAV_DONE]: Avoid unused variable warning.
77215
77216 2005-09-21  Bruno Haible  <bruno@clisp.org>
77217
77218         * lib/unicodeio.h (unicode_to_mb): New declaration.
77219
77220 2005-09-20  Derek Price  <derek@ximbiot.com>
77221
77222         * lib/getaddrinfo.c: Don't include <netdb.h> included from
77223         getaddrinfo.h.
77224
77225 2005-09-20  Bruno Haible  <bruno@clisp.org>
77226
77227         * gnulib-tool: Remove trailing slashes from the values specified for
77228         --source-base, --m4-base, --tests-base, --aux-dir.
77229         Suggested by Simon Josefsson <jas@extundo.com>.
77230
77231 2005-09-20  Bruno Haible  <bruno@clisp.org>
77232
77233         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
77234         func_modules_to_filelist, func_import, func_create_testdir): Make all
77235         sorting results locale-independent, so that gnulib-cache.m4 doesn't
77236         change when gnulib-tool is invoked in a different locale.
77237
77238 2005-09-19  Simon Josefsson  <jas@extundo.com>
77239
77240         * m4/socklen.m4: Fix typo.
77241
77242 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77243
77244         Use a consistent style for including <config.h>.
77245         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
77246         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
77247         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
77248         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
77249         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
77250         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
77251         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
77252         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
77253         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
77254         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
77255         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
77256         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
77257         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
77258         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
77259         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
77260         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
77261         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
77262         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
77263         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
77264         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
77265         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
77266         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
77267         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
77268         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
77269         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
77270         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
77271         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
77272         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
77273         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
77274         lib/xstrtoumax.c, lib/yesno.c:
77275         Standardize inclusion of config.h.
77276         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
77277         lib/inttostr.h:  Removed inclusion of config.h from header files.
77278         * lib/inttostr.c:  Adjusted in-tree users.
77279         * lib/timespec.h: Remove superfluous warning to include config.h.
77280         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
77281         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
77282         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
77283         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
77284         config.h with HAVE_CONFIG_H.
77285
77286 2005-09-19  Jim Meyering  <jim@meyering.net>
77287
77288         * modules/pathmax (License): Change to LGPL.
77289
77290 2005-09-19  Derek Price  <derek@ximbiot.com>
77291
77292         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
77293
77294 2005-09-19  Bruno Haible  <bruno@clisp.org>
77295
77296         * gnulib-tool (import): Provide default for --tests-base.
77297
77298 2005-09-19  Bruno Haible  <bruno@clisp.org>
77299
77300         * doc/quote.texi: New file, extracted from gnulib.texi.
77301         * doc/ctime.texi: New file, extracted from gnulib.texi.
77302         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
77303         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
77304         * doc/gnulib.texi: Include them.
77305
77306 2005-09-18  Bruno Haible  <bruno@clisp.org>
77307
77308         Portability fix.
77309         * gnulib-tool (func_readlink): New function.
77310         (func_ln_if_changed): Use it.
77311
77312 2005-09-18  Bruno Haible  <bruno@clisp.org>
77313
77314         * gnulib-tool: Support --with-tests also with --import.
77315         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
77316         (func_import): Use variables $testsbase and $inctests. Emit a
77317         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
77318         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
77319         SUBDIRS += $testsdir.
77320         (func_create_testdir): Update.
77321
77322 2005-09-18  Bruno Haible  <bruno@clisp.org>
77323
77324         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
77325         instead of $dry_run.
77326         (func_cp_if_changed, func_mv_if_changed): Remove functions.
77327         (func_ln_if_changed): Don't handle dry-run here.
77328         (func_import): In dry-run mode, detect more precisely which actions
77329         would be performed, and don't use "...ing" verbs.
77330
77331 2005-09-18  Bruno Haible  <bruno@clisp.org>
77332
77333         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
77334         (func_import): Use join on two temporary files instead of three nested
77335         loops, in order to determine which files are new or old.
77336
77337 2005-09-18  Bruno Haible  <bruno@clisp.org>
77338
77339         * gnulib-tool (func_import): Comment out code that spits out the
77340         new files with --dry-run.
77341
77342 2005-09-18  Bruno Haible  <bruno@clisp.org>
77343
77344         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
77345
77346 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77347
77348         * lib/stat-time.h: New file.
77349         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
77350         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
77351         in a different way.
77352         (timespec_cmp): New function.
77353         * lib/utimecmp.c: Include stat-time.h.
77354         (SYSCALL_RESOLUTION): Depend on whether various struct stat
77355         members exist, not on the obsolescent ST_MTIM_NSEC.
77356         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
77357
77358 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77359
77360         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
77361
77362 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77363
77364         * MODULES.html.sh (File system functions): Add stat-time.
77365         * modules/stat-time: New file.
77366         * modules/timespec (Files): Remove m4/st_mtim.m4; this
77367         is now done in a different way, by the stat-time module.
77368         * modules/utimecmp (Depends-on): Add stat-time.
77369
77370 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77371
77372         * m4/st_mtim.m4: Remove.  Superseded by...
77373         * m4/stat-time.m4: New file.
77374         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
77375         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
77376
77377 2005-09-15  Derek Price  <derek@ximbiot.com>
77378
77379         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
77380
77381 2005-09-15  Derek Price  <derek@ximbiot.com>
77382
77383         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
77384         * lib/regex_internal.c: Ditto, using this...
77385         (__GNUC_PREREQ): ...new macro.
77386         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
77387         using...
77388         (__GNUC_PREREQ): ...this new macro.
77389
77390         * lib/strstr.h: Include string.h. Define strstr as a macro here.
77391
77392 2005-09-15  Derek Price  <derek@ximbiot.com>
77393             Paul Eggert  <eggert@cs.ucla.edu>
77394
77395         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
77396         changes, consolidating in...
77397         * lib/regex_internal.h: ...this file.
77398
77399 2005-09-13  Jim Meyering  <jim@meyering.net>
77400
77401         * lib/canon-host.c: Filter through gnu indent and reword comments
77402         slightly.
77403         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
77404
77405 2005-09-13  Derek Price  <derek@ximbiot.com>
77406
77407         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
77408         failure.
77409         Reported by Jim Meyering  <jim@meyering.net>.
77410
77411 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77412
77413         * lib/base64.c: Typo.
77414         (base64_encode): Put b64str in initialized data section.
77415
77416 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
77417
77418         Merge glibc and coreutils changes into gnulib, plus a few
77419         extra fixes.
77420         * lib/md5.c: Use #error rather than a string.
77421         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
77422         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
77423         (__attribute__): Define to empty for non recent-GCC.
77424         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
77425         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
77426         Renamed from their non-__ counterparts, with new macros replacing
77427         them if not _LIBC.  Add __THROW attribute.
77428         (rol): Remove.
77429         (struct md5_ctx): Align buffer if using GCC.
77430         * lib/sha1.h (struct sha1_ctx): Likewise.
77431         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
77432         The old name was backwards.
77433         (NOTSWAP): Remove; not used.
77434         (rol): New macro, moved here from md5.h.
77435         (sha1_process_block): Remove a FIXME that doesn't make sense.
77436
77437 2005-09-12  Derek Price  <derek@ximbiot.com>
77438
77439         Return usable errors from canon-host.
77440         * lib/canon-host.h: New file.
77441         * lib/canon-host.c (canon_host): Wrap...
77442         (canon_host_r): ...this new function, which now relies exclusively on
77443         getaddrinfo.
77444         (ch_strerror): New function.
77445         (last_cherror): New global.
77446         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
77447         interface.
77448         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
77449         void *.
77450         (freeaddrinfo): Free ai->ai_canonname when set.
77451
77452 2005-09-12  Derek Price  <derek@ximbiot.com>
77453
77454         Make canon-host require getaddrinfo.
77455         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
77456         AC_LIBSOURCE canon-host.h.  Call...
77457         (gl_PREREQ_CANON_HOST): ...this new function, which requires
77458         gl_GETADDRINFO.
77459         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
77460
77461 2005-09-12  Derek Price  <derek@ximbiot.com>
77462
77463         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
77464         LGPL.
77465         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
77466
77467 2005-09-12  Derek Price  <derek@ximbiot.com>
77468
77469         * lib/gai_strerror.c: Include config.h when available.  Include
77470         getaddrinfo.h before other headers to test interface.
77471         Reported by Larry Jones <lawrence.jones@ugs.com>.
77472
77473 2005-09-12  Derek Price  <derek@ximbiot.com>
77474             Paul Eggert  <eggert@cs.ucla.edu>
77475
77476         * modules/glob (Files): Add glob-libc.h.
77477
77478 2005-09-12  Derek Price  <derek@ximbiot.com>
77479             Paul Eggert  <eggert@cs.ucla.edu>
77480
77481         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
77482         glob_.h, glob-libc.h.
77483         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
77484
77485 2005-09-12  Derek Price  <derek@ximbiot.com>
77486             Paul Eggert  <eggert@cs.ucla.edu>
77487
77488         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
77489         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
77490         protecting things that should be done only in gnulib contexts.
77491         * lib/glob_.h: New file, containing only the glob things needed for
77492         gnulib.
77493         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
77494         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
77495         (glob, globfree, glob_pattern_p): Now defined simply in terms of
77496         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
77497         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
77498         and to respect the namespace rules better.
77499
77500 2005-09-08  Simon Josefsson  <jas@extundo.com>
77501
77502         * modules/socklen: New file.
77503
77504 2005-09-08  Simon Josefsson  <jas@extundo.com>
77505
77506         * m4/socklen.m4: New file.
77507
77508 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77509
77510         * modules/utimens (Files): Add m4/utimbuf.m4, since
77511         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
77512         Reported by Sergey Poznyakoff.
77513
77514 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77515
77516         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
77517         definitions, since that's the preferred style in glibc.
77518         Fix a minor spacing issue, and update copyright notice to match
77519         glibc's.
77520
77521 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77522
77523         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
77524
77525 2005-09-06  Simon Josefsson  <jas@extundo.com>
77526
77527         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
77528         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
77529
77530 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77531
77532         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
77533         warning.
77534
77535 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77536
77537         * config/srclist.txt: Add glibc bug 1302.
77538
77539 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
77540
77541         Change bitset word type from unsigned int to unsigned long int,
77542         as this has better performance on typical 64-bit hosts.
77543         Port bitset code to hosts with unusual word sizes.
77544         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
77545         (build_collating_symbol):
77546         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
77547         argument is a bitset.  This is merely a style issue, but it makes
77548         it clearer that an entire array is expected.
77549         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
77550         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
77551         Port to the case where bitset_word is not the same as unsigned int.
77552         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77553         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
77554         Likewise.
77555         * lib/regexec.c (check_dst_limits_calc_pos_1,
77556         check_subexp_matching_top):
77557         (build_trtable, group_nodes_into_DFAstates):
77558         Likewise.
77559         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
77560         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
77561         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
77562         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
77563         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
77564         * lib/regcomp.c (optimize_subexps, lower_subexp):
77565         Work even if bitset_word has holes in its bitwise representation.
77566         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
77567         * lib/regexec.c (check_dst_limits_calc_pos_1,
77568         check_subexp_matching_top):
77569         Likewise.
77570         * lib/regex_internal.c (re_string_reconstruct):
77571         Don't assume UCHAR_MAX == 255.
77572         * lib/regex_internal.h (bitset_set_all): Likewise.
77573         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
77574         All uses changed.
77575         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
77576         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
77577         All uses changed.
77578         (BITSET_WORD_MAX): New macro.
77579         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
77580         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
77581         (bitset_empty, bitset_copy):
77582         Prefer sizeof (bitset) to multiplying it out ourselves.
77583         (bitset_not_merge): Remove; unused.
77584         (bitset_contain): Return bool, not unsigned int with one bit on.
77585         All callers changed.
77586         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
77587         alignment than re_node_set; do this by defining a new internal
77588         type struct dests_alloc and using it to allocate memory.
77589
77590 2005-09-05  Bruno Haible  <bruno@clisp.org>
77591
77592         * gnulib-tool (func_import): Fix comparison in handling of symbolic
77593         links.
77594
77595 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
77596
77597         * modules/size_max (Makefile.am): Add size_max.h
77598
77599 2005-09-04  Derek Price  <derek@ximbiot.com>
77600
77601         * gnulib-tool (func_import): Fix reversed $symbolic logic.
77602
77603 2005-09-03  Simon Josefsson  <jas@extundo.com>
77604
77605         * gnulib-tool: Fix typo.
77606
77607 2005-09-03  Simon Josefsson  <jas@extundo.com>
77608
77609         * config/srclist.txt: Add glibc bug 1293.
77610
77611 2005-09-03  Derek Price  <derek@ximbiot.com>
77612
77613         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
77614         From Larry Jones <lawrence.jones@ugs.com>.
77615
77616 2005-09-02  Simon Josefsson  <jas@extundo.com>
77617
77618         * modules/socklen: New file.
77619
77620 2005-09-02  Simon Josefsson  <jas@extundo.com>
77621
77622         * modules/havelib: New module.
77623
77624         * modules/gettext, modules/iconv, modules/lock, modules/readline:
77625         Use havelib.
77626
77627 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77628
77629         Check for arithmetic overflow when calculating sizes, to prevent
77630         some buffer-overflow issues.  These patches are conservative, in the
77631         sense that when I couldn't determine whether an overflow was possible,
77632         I inserted a run-time check.
77633         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
77634         macros.
77635         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
77636         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
77637         (re_xnrealloc, re_x2nrealloc): New inline functions.
77638         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
77639         parse_bracket_exp):
77640         (build_equiv_class, build_charclass): Check for arithmetic overflow
77641         in size expression calculations.
77642         * lib/regex_internal.c (re_string_realloc_buffers):
77643         (build_wcs_upper_buffer, re_node_set_add_intersect):
77644         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
77645         (re_dfa_add_node, register_state): Likewise.
77646         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
77647         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
77648         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
77649         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
77650
77651 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77652
77653         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77654         m4/ulonglong.m4.  Problem reported by Martin Lambers.
77655
77656 2005-09-02  Bruno Haible  <bruno@clisp.org>
77657
77658         Support for lib vs. lib64 distinction on biarch platforms.
77659         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
77660         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
77661         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
77662
77663 2005-09-02  Bruno Haible  <bruno@clisp.org>
77664
77665         * gnulib-tool (import): In the other first-use case, provide defaults
77666         as well.
77667
77668 2005-09-02  Bruno Haible  <bruno@clisp.org>
77669
77670         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
77671         patches not yet found in the latest gettext release.
77672
77673 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77674
77675         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
77676         to avoid a collision with bits/local_lim.h in glibc.
77677         All uses changed.  Problem reported by Dmitry V. Levin in
77678         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
77679
77680         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
77681         bugs in int versus size_t comparisons.
77682         (re_string_context_at): Fix bug where the code assumed that
77683         Idx is signed.
77684
77685         Use bool where appropriate.
77686         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
77687         All callers changed.
77688         (calc_eclosure_iter): Likewise, for ROOT arg.
77689         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
77690         (build_charclass_op): Likewise, for NON_MATCH arg.
77691         * lib/regex_internal.c (re_string_allocate, re_string_construct):
77692         (re_string_construct_common): Likewise, for ICASE arg.
77693         * lib/regexec.c (re_search_2_stub, re_search_stub):
77694         Likewise, for RET_LEN arg.
77695         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
77696         (set_regs): Likewise, for FL_BACKTRACK arg.
77697         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
77698         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
77699         (calc_eclosure_iter, parse_bracket_exp):
77700         Use bool for internal variables that are booleans.
77701         * lib/regexec.c (re_search_internal, check_matching,
77702         proceed_next_node):
77703         (set_regs, build_sifted_states, sift_states_bkref):
77704         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
77705         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77706         (find_collation_sequence_value):
77707         Likewise.
77708         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
77709         (re_node_set_compare):
77710         Return bool, not int. All callers changed.
77711         * lib/regexec.c (check_halt_node_context, check_dst_limits):
77712         (build_trtable, check_node_accept): Likewise.
77713         * lib/regex_internal.h: Include stdbool.h.
77714
77715         Fix bugs uncovered when converting to bool.
77716         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
77717         failure instead of charging ahead blindly.
77718         * lib/regex_internal.c (register_state): Likewise.
77719         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
77720         for freeing internal storage.
77721         (group_nodes_into_DFA_states): Use unsigned int, not int, for
77722         bitset pieces used as boolean, to avoid undefined behavior
77723         on hosts that do int overflow checking.
77724
77725 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77726
77727         * config/srclist.txt: Add glibc bugs 1285-1287.
77728
77729 2005-09-01  Jim Meyering  <jim@meyering.net>
77730
77731         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
77732         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
77733         Require gl_STAT_MACROS, too.
77734
77735 2005-09-01  Bruno Haible  <bruno@clisp.org>
77736
77737         * gnulib-tool (import): In the first-use case, provide defaults.
77738
77739 2005-09-01  Bruno Haible  <bruno@clisp.org>
77740
77741         * gnulib-tool (func_import): Remove the .tmp files.
77742
77743 2005-09-01  Bruno Haible  <bruno@clisp.org>
77744
77745         * gnulib-tool (func_import): Fix handling of symbolic links.
77746
77747 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77748
77749         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
77750         old glibc regex code mishandles strings longer than 2**31 bytes.
77751         This patch fixes this when the regex code is used in gnulib
77752         (i.e., outside glibc).
77753
77754         This patch should not affect the use of the regex code inside
77755         glibc.  No doubt this problem also needs to be handled for glibc
77756         as well, but the result will be an incompatible change to the
77757         glibc ABI, and the old ABI will have to be supported too.  That
77758         can be the the subject for another patch.
77759
77760         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
77761         governing whether the rest of this patch is active.  By default,
77762         the macro is disabled and the patch has no effect.
77763         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
77764         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
77765         (struct re_pattern_buffer, re_search, re_search_2, re_match):
77766         (re_match_2, re_set_registers): Use the new types.
77767         * lib/regex_internal.h (Idx, re_hashval_t): New types.
77768         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
77769         New macros.
77770         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
77771         (re_string_context_at, bin_tree_t, re_dfastate_t):
77772         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
77773         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
77774         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
77775         (re_string_char_size_at, re_string_wchar_at):
77776         (re_string_elem_size_at):
77777         Use the new types and macros to port to 64-bit hosts.
77778         Use unsigned types for internal values, so that the code
77779         mostly works even for arrays larger than SSIZE_MAX.
77780         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
77781         (search_duplicated_node, calc_eclosure_iter, fetch_number):
77782         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
77783         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
77784         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
77785         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
77786         (calc_inveclosure, parse_dup_op, build_range_exp):
77787         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
77788         (fetch_number, create_token_tree, mark_opt_subexp):
77789         Likewise.
77790         * lib/regex_internal.c (re_string_construct_common,
77791         create_ci_newstate):
77792         (create_cd_newstate, re_string_allocate, re_string_construct):
77793         (re_string_realloc_buffers, build_wcs_upper_buffer):
77794         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77795         (re_string_reconstruct, re_string_peek_byte_case):
77796         (re_string_fetch_byte_case, re_string_context_at):
77797         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77798         (re_node_set_init_copy, re_node_set_add_intersect):
77799         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77800         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77801         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77802         (re_acquire_state, re_acquire_state_context, register_state):
77803         Likewise.
77804         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
77805         search_cur_bkref_entry):
77806         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
77807         (re_search_internal, re_search_2_stub, re_search_stub)
77808         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
77809         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
77810         (update_cur_sifted_state, check_dst_limits):
77811         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77812         (check_subexp_limits, sift_states_bkref, merge_state_array):
77813         (check_subexp_matching_top, get_subexp, get_subexp_sub):
77814         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
77815         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77816         (expand_bkref_cache, check_node_accept_bytes):
77817         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
77818         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
77819         (acquire_init_state_context, check_halt_node_context):
77820         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
77821         (sift_states_backward, clean_state_log_if_needed):
77822         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
77823         (find_recover_state, transit_state_sb, transit_state_mb):
77824         (transit_state_bkref, build_trtable, match_ctx_clean):
77825         Likewise.
77826         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
77827         to work around an assumption that REG_MISSING is negative.
77828
77829         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
77830         (seek_collating_symbol_entry) [defined _LIBC]:
77831         (lookup_collation_sequence_value) [defined _LIBC]:
77832         (build_range_exp, build_collating_symbol) [defined _LIBC]:
77833         Use prototypes rather than old-style function definitions.
77834         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
77835         (transit_state_sb) [0]:
77836         (find_collation_sequence_value) [defined _LIBC]: Likewise.
77837
77838         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
77839         rm_eo.
77840
77841         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
77842         (optimize_subexps, lower_subexp):
77843         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
77844         since the signed shift might overflow.  Use 1u<<31 instead.
77845         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77846         Likewise.
77847         * lib/regexec.c (check_dst_limits_calc_pos_1,
77848         check_subexp_matching_top): Likewise.
77849
77850         * lib/regcomp.c (optimize_subexps, lower_subexp):
77851         Use CHAR_BIT rather than 8, for clarity.
77852         * lib/regexec.c (check_dst_limits_calc_pos_1):
77853         (check_subexp_matching_top): Likewise.
77854         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
77855         have to worry about portability issues when shifting it left.
77856         Remove no-longer-needed test for table_size > 0.
77857         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
77858         in a word, as the resulting behavior is undefined.
77859         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
77860         in one case, a <= should have been an <, and in another case the
77861         whole test was missing.
77862         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
77863         the standard name CHAR_BIT.
77864         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
77865         this is not true on one's complement and signed-magnitude hosts.
77866
77867         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
77868         next_last_offset.
77869         (struct re_dfa_t): Remove unused member states_alloc.
77870         * lib/regcomp.c (init_dfa): Don't initialize unused members.
77871
77872 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77873
77874         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
77875         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
77876         and large-file glibc and in 32-bit large-file Solaris.
77877
77878 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77879
77880         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
77881         lengths fit in regoff_t; this isn't true if regoff_t is the same
77882         width as size_t.
77883         * lib/regex.c (re_search_internal): 5th arg is LAST_START
77884         (= START + RANGE) instead of RANGE.  This avoids overflow
77885         problems when regoff_t is the same width as size_t.
77886         All callers changed.
77887         (re_search_2_stub): Check for overflow when adding the
77888         sizes of the two strings.
77889         (re_search_stub): Check for overflow when adding START
77890         to RANGE; if it occurs, substitute the extreme value.
77891
77892 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77893
77894         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
77895
77896 2005-08-31  Jim Meyering  <jim@meyering.net>
77897
77898         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
77899         a pointer-to-const.
77900         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
77901         (register_state): Likewise.
77902         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
77903         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77904         (group_nodes_into_DFAstates): Likewise.
77905
77906 2005-08-31  Jim Meyering  <jim@meyering.net>
77907
77908         * check-module: Add a FIXME comment.
77909
77910 2005-08-31  Eric Blake  <ebb9@byu.net>
77911
77912         * modules/unistd-safer (Files): Add unistd--.h.
77913         * modules/stdio-safer (Files): Add stdio--.h.
77914
77915 2005-08-31  Derek Price  <derek@ximbiot.com>
77916
77917         * lib/getdelim.c (getdelim): Return EOF on EOF.
77918         Reported by Larry Jones <lawrence.jones@ugs.com>.
77919
77920 2005-08-31  Bruno Haible  <bruno@clisp.org>
77921
77922         Avoid unnecessary diffs in the generated lib/Makefile.am.
77923         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
77924         the generated files.
77925         (func_import): Don't set cmd.
77926
77927 2005-08-31  Bruno Haible  <bruno@clisp.org>
77928
77929         * lib/strstr.c: Include <stddef.h>, for NULL.
77930         * lib/strcasestr.c: Likewise.
77931         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77932
77933 2005-08-31  Bruno Haible  <bruno@clisp.org>
77934
77935         * gnulib-tool: New option --macro-prefix.
77936         (func_import): Use macro_prefix.
77937         (import): Handle option --macro-prefix.
77938
77939 2005-08-31  Bruno Haible  <bruno@clisp.org>
77940
77941         * gnulib-tool (import): Rename most ac_* variables to cached_*.
77942         Also use new variables cached_lgpl, cached_libtool.
77943
77944 2005-08-31  Bruno Haible  <bruno@clisp.org>
77945
77946         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
77947         always instantiating them.
77948
77949 2005-08-31  Bruno Haible  <bruno@clisp.org>
77950
77951         * gnulib-tool (func_import): Read the previous cached settings
77952         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
77953         earlier added by gnulib but are now dropped. Warn when a gnulib file
77954         overwrites a non-gnulib file.
77955
77956 2005-08-31  Bruno Haible  <bruno@clisp.org>
77957
77958         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
77959         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
77960         projects that don't keep autogenerated files in CVS. Put into
77961         actioncmd only the specified modules, not the transitive closure.
77962
77963 2005-08-31  Bruno Haible  <bruno@clisp.org>
77964
77965         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
77966         Create directories that shall be filled.
77967         (import): Don't look for gl_* macros in configure.ac. Recurse across
77968         all directories containing a gnulib-cache.m4 files, if meaningful.
77969
77970 2005-08-31  Bruno Haible  <bruno@clisp.org>
77971
77972         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
77973         (import): Set seen_libtool when we see gl_LIBTOOL.
77974
77975 2005-08-31  Bruno Haible  <bruno@clisp.org>
77976
77977         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
77978         declaration macro definitions from generated gnulib.m4.
77979
77980 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
77981
77982         * lib/iconvme.h: Add prototype for iconv_alloc.
77983
77984 2005-08-29  Simon Josefsson  <jas@extundo.com>
77985
77986         * lib/iconvme.c: Fix errno.
77987
77988 2005-08-29  Bruno Haible  <bruno@clisp.org>
77989
77990         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
77991         that it works when the directory contains spaces.
77992
77993 2005-08-29  Bruno Haible  <bruno@clisp.org>
77994
77995         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
77996
77997 2005-08-29  Bruno Haible  <bruno@clisp.org>
77998
77999         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
78000         Emit more advice.
78001
78002 2005-08-29  Bruno Haible  <bruno@clisp.org>
78003         and Stepan Kasal  <kasal@ucw.cz>
78004
78005         * check-module: If more parameters are given, check each of them
78006         separately; add more exceptions, as noted by Jim Meyering.
78007         (check_module): New procedure.
78008         (%exempt_header): Now contains all exceptions.
78009
78010 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
78011
78012         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
78013
78014 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78015
78016         * lib/iconvme.c: Split iconv_string into iconv_alloc.
78017
78018 2005-08-28  Bruno Haible  <bruno@clisp.org>
78019
78020         * m4/gnulib-tool.m4: New file.
78021
78022 2005-08-27  Jim Meyering  <jim@meyering.net>
78023
78024         * modules/unistd-safer (Files): Add pipe-safer.c.
78025         * modules/fcntl-safer (Files): Add creat-safer.c.
78026
78027 2005-08-27  Jim Meyering  <jim@meyering.net>
78028
78029         * m4/stdlib-safer.m4: New file.  From coreutils.
78030         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
78031         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
78032         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
78033         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
78034         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
78035
78036 2005-08-27  Jim Meyering  <jim@meyering.net>
78037
78038         * lib/fopen-safer.c: Merge minor changes from coreutils.
78039         * lib/dup-safer.c: Likewise.
78040         * lib/fd-safer.c: Likewise.
78041
78042         Merge from coreutils.
78043         * lib/stdio--.h: New file.
78044         * lib/stdlib--.h: New file.
78045         * lib/mkstemp-safer.c: New file.
78046
78047         GNU tar needs these.
78048         * lib/pipe-safer.c: New file.
78049         * lib/creat-safer.c: New file.
78050         * lib/fcntl--.h (creat): Define to creat_safer.
78051         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
78052         * lib/unistd--.h (pipe): Define to pipe_safer.
78053         * lib/unistd-safer.h: Declare pipe_safer.
78054
78055 2005-08-26  Simon Josefsson  <jas@extundo.com>
78056
78057         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
78058         Haible <bruno@clisp.org>.
78059
78060 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
78061
78062         * lib/regex_internal.h: Remove all references to
78063         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
78064         or better.
78065         (bitset_not, bitset_merge, bitset_not_merge):
78066         (bitset_mask, re_string_allocate, re_string_construct):
78067         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
78068         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
78069         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
78070         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
78071         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78072         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78073         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
78074         (re_acquire_state_context):
78075         Remove unnecessary forward decls.
78076         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
78077         Put __attribute at function definition,
78078         now that the function decl has been removed.
78079         * lib/regex_internal.c (re_string_peek_byte_case):
78080         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
78081         Likewise.
78082
78083 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
78084
78085         * m4/regex.m4: Add AC_PREREQ(2.50).
78086         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
78087
78088 2005-08-25  Simon Josefsson  <jas@extundo.com>
78089
78090         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
78091         __fsetlocking.
78092
78093 2005-08-25  Simon Josefsson  <jas@extundo.com>
78094
78095         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
78096         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
78097         GLIBC specific code.
78098
78099 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78100
78101         Make regex safe for g++.  This fixes one real bug (an "err"
78102         that should have been "*err").  g++ problem reported by
78103         Sam Steingold.
78104         * lib/regex_internal.h (re_calloc): New macro, consistent with
78105         re_malloc etc.  All callers of calloc changed to use re_calloc.
78106         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
78107         not int.  All callers changed.
78108         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
78109         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
78110         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
78111         (find_recover_state): Change "err" to "*err"; this fixes what
78112         appears to be a real bug.
78113         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
78114         versus int.
78115
78116 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78117
78118         * modules/regex (Depends-on): Add malloc, since the code
78119         assumes that !malloc(0) means failure.
78120
78121 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78122
78123         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
78124
78125         alloca modernization/simplification for regex.
78126         * lib/regex.c: Remove portability cruft for alloca.  This no longer
78127         needs to be at the start of the file, and can be moved into
78128         regex_internal.h and simplified.
78129         * lib/regex_internal.h: Include <alloca.h>.
78130         (__libc_use_alloca) [!defined _LIBC]: New macro.
78131         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
78132         now works outside glibc.
78133
78134 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78135
78136         * config/srclist.txt: Add glibc bugs 1241, 1245.
78137
78138 2005-08-25  Jim Meyering  <jim@meyering.net>
78139
78140         * lib/open-safer.c: Include <config.h>.
78141         Otherwise, we'd lose LARGEFILE support in any file using
78142         e.g. "fcntl--.h"
78143
78144 2005-08-25  Bruno Haible  <bruno@clisp.org>
78145
78146         * m4/minmax.m4: Require autoconf 2.52.
78147         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
78148         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
78149         alternatives of translit over the alphabet.
78150         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
78151
78152 2005-08-24  Simon Josefsson  <jas@extundo.com>
78153
78154         * tests/test-getpass.c: New file.
78155
78156 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78157
78158         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
78159         for GNU regex features.
78160
78161 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78162
78163         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
78164         * lib/regex.h (regerror): Likewise.
78165
78166         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
78167         requires this.  (The code never needed it.)
78168
78169         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
78170         All uses of recently-renamed identifiers changed to use the new,
78171         POSIX-compliant names.  The code will build and run just fine
78172         without these changes, but it's better to eat our own dog food
78173         and use the standard-conforming names.
78174
78175         * lib/regex.h: Fix a multitude of POSIX name space violations.
78176         These changes have an effect only for programs that define
78177         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
78178         do not change anything for programs compiled in the normal way.
78179         Also, there is no effect on the ABI.
78180
78181         (_REGEX_SOURCE): New macro.
78182         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
78183         defined and _GNU_SOURCE is not; this fixes a name space violation.
78184
78185         Rename the following macros to obey POSIX requirements.
78186         The old names are still visible as macros if _REGEX_SOURCE is defined.
78187         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
78188         RE_BACKSLASH_ESCAPE_IN_LISTS.
78189         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
78190         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
78191         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
78192         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
78193         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
78194         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
78195         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
78196         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
78197         (REG_INTERVALS): renamed from RE_INTERVALS.
78198         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
78199         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
78200         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
78201         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
78202         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
78203         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
78204         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
78205         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
78206         RE_UNMATCHED_RIGHT_PAREN_ORD.
78207         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
78208         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
78209         (REG_DEBUG): renamed from RE_DEBUG.
78210         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
78211         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
78212         unusual, since we can't clash with the POSIX REG_ICASE.
78213         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
78214         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
78215         (REG_NO_SUB): renamed from RE_NO_SUB.
78216         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
78217         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
78218         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
78219         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
78220         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
78221         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
78222         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
78223         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
78224         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
78225         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
78226         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
78227         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
78228         RE_SYNTAX_POSIX_MINIMAL_BASIC.
78229         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
78230         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
78231         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
78232         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
78233         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
78234         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
78235         (REG_FIXED): Renamed from REGS_FIXED.
78236         (REG_NREGS): Renamed from RE_NREGS.
78237
78238         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
78239         of other REG_* macros, since POSIX says the user is allowed to
78240         #undef these macros selectively.
78241
78242         (reg_errcode_t): Update comment stating what other tables need
78243         to be consistent.
78244
78245         Rename the following enum values to obey POSIX requirements.
78246         The old names are still visible as macros.
78247         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
78248         is not defined, since GNU is supposed to be a superset of POSIX as
78249         much as possible, and since we want reg_errcode_t to be a signed
78250         type for implementation consistency.
78251         (_REG_NOERROR): Renamed from REG_NOERROR.
78252         (_REG_NOMATCH): Renamed from REG_NOMATCH.
78253         (_REG_BADPAT): Renamed from REG_BADPAT.
78254         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
78255         (_REG_ECTYPE): Renamed from REG_ECTYPE.
78256         (_REG_EESCAPE): Renamed from REG_EESCAPE.
78257         (_REG_ESUBREG): Renamed from REG_ESUBREG.
78258         (_REG_EBRACK): Renamed from REG_EBRACK.
78259         (_REG_EPAREN): Renamed from REG_EPAREN.
78260         (_REG_EBRACE): Renamed from REG_EBRACE.
78261         (_REG_BADBR): Renamed from REG_BADBR.
78262         (_REG_ERANGE): Renamed from REG_ERANGE.
78263         (_REG_ESPACE): Renamed from REG_ESPACE.
78264         (_REG_BADRPT): Renamed from REG_BADRPT.
78265         (_REG_EEND): Renamed from REG_EEND.
78266         (_REG_ESIZE): Renamed from REG_ESIZE.
78267         (_REG_ERPAREN): Renamed from REG_ERPAREN.
78268         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
78269         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
78270         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
78271         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
78272
78273         (_REG_RE_NAME, _REG_RM_NAME): New macros.
78274         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
78275         changed.  But support the old name if the new one is not defined
78276         and if _REGEX_SOURCE.
78277
78278         Change the following member names in struct re_pattern_buffer.
78279         The old names are still supported if !_REGEX_SOURCE.
78280         The new names are always supported, regardless of _REGEX_SOURCE.
78281         (re_buffer): Renamed from buffer.
78282         (re_allocated): Renamed from allocated.
78283         (re_used): Renamed from used.
78284         (re_syntax): Renamed from syntax.
78285         (re_fastmap): Renamed from fastmap.
78286         (re_translate): Renamed from translate.
78287         (re_can_be_null): Renamed from can_be_null.
78288         (re_regs_allocated): Renamed from regs_allocated.
78289         (re_fastmap_accurate): Renamed from fastmap_accurate.
78290         (re_no_sub): Renamed from no_sub.
78291         (re_not_bol): Renamed from not_bol.
78292         (re_not_eol): Renamed from not_eol.
78293         (re_newline_anchor): Renamed from newline_anchor.
78294
78295         Change the following member names in struct re_registers.
78296         The old names are still supported if !_REGEX_SOURCE.
78297         The new names are always supported, regardless of _REGEX_SOURCE.
78298         (rm_num_regs): Renamed from num_regs.
78299         (rm_start): Renamed from start.
78300         (rm_end): Renamed from end.
78301
78302         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
78303         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
78304         Prepend __ to parameter names.
78305
78306         Undo yesterday's changes.
78307
78308 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78309
78310         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
78311         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
78312         lib/regex.c.
78313
78314 2005-08-24  Jim Meyering  <jim@meyering.net>
78315
78316         Sync from coreutils.
78317         * m4/fcntl-safer.m4: New file.
78318
78319         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
78320         and object files for this module.
78321
78322 2005-08-24  Jim Meyering  <jim@meyering.net>
78323
78324         Sync from coreutils.
78325         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
78326
78327 2005-08-24  Jim Meyering  <jim@meyering.net>
78328
78329         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
78330         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
78331
78332 2005-08-24  Jim Meyering  <jim@meyering.net>
78333
78334         * modules/fcntl-safer: New module.
78335         * modules/fts (Depends-on): Add fcntl-safer.
78336         * MODULES.html.sh (File descriptor based Input/Output):
78337         Add fcntl-safer.
78338
78339 2005-08-24  Bruno Haible  <bruno@clisp.org>
78340
78341         Support for unit test modules.
78342         * modules/README: Mention tests modules.
78343         * modules/TEMPLATE-TESTS: New file.
78344         * gnulib-tool: New options --extract-tests-module, --with-tests and
78345         --tests-base (unused for the moment).
78346         (testsbase, inctests): New variables.
78347         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
78348         (func_verify_module): Exclude TEMPLATE-TESTS.
78349         (func_verify_nontests_module, func_verify_tests_module): New functions.
78350         (func_get_dependencies): Add implicit dependency for tests modules.
78351         (func_get_tests_module): New function.
78352         (func_modules_transitive_closure): When --with-tests was specified,
78353         include the unit tests as well, unless explicitly avoided.
78354         (func_emit_lib_Makefile_am): Ignore the tests modules here.
78355         (func_emit_tests_Makefile_am): New function.
78356         (func_create_testdir): When --with-tests was specified, emit a
78357         tests/ directory.
78358         * MODULES.html.sh (Future developments): Update.
78359
78360 2005-08-24  Bruno Haible  <bruno@clisp.org>
78361
78362         * modules/tls-tests: New file.
78363         * tests/test-tls.c: New file, from GNU gettext.
78364
78365 2005-08-24  Bruno Haible  <bruno@clisp.org>
78366
78367         * modules/lock-tests: New file.
78368         * tests/test-lock.c: New file, from GNU gettext.
78369
78370 2005-08-24  Bruno Haible  <bruno@clisp.org>
78371
78372         * lib/lock.h: Add multiple inclusion guard.
78373         * lib/tls.h: Add multiple inclusion guard.
78374
78375 2005-08-24  Bruno Haible  <bruno@clisp.org>
78376
78377         * gnulib-tool: Add support for the --aux-dir option to
78378         --create-testdir, --create-megatestdir, --test, --megatest.
78379         (func_create_testdir, func_create_megatestdir): Optionally emit a
78380         AC_CONFIG_AUX_DIR directive.
78381         (create-testdir, create-megatestdir, test, megatest): Provide a
78382         default value for $auxdir.
78383
78384 2005-08-24  Bruno Haible  <bruno@clisp.org>
78385
78386         * gnulib-tool (import): Use compound statement instead of subshell
78387         where possible.
78388
78389 2005-08-24  Bruno Haible  <bruno@clisp.org>
78390
78391         * gnulib-tool (import): Change --aux-dir default to "build-aux".
78392
78393 2005-08-24  Bruno Haible  <bruno@clisp.org>
78394
78395         * gnulib-tool (func_version): Update.
78396
78397 2005-08-24  Bruno Haible  <bruno@clisp.org>
78398
78399         * gnulib-tool (func_import, func_create_testdir,
78400         func_create_megatestdir): Quote all autoconf macro arguments.
78401
78402 2005-08-24  Bruno Haible  <bruno@clisp.org>
78403
78404         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
78405         option --force, because --force causes the aclocal.m4 of each
78406         subdirectory to be newer than the corresponding config.h.in.
78407
78408 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78409
78410         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
78411         All contents moved to gl_REGEX.
78412         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
78413         assume that it does.
78414
78415 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78416
78417         * lib/regex.h (REG_NOSYS)
78418         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
78419         Define, since POSIX requires it as of 2001.
78420         (_REG_ENOSYS)
78421         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
78422         New private symbol, used to keep the enum signed in all cases.
78423         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
78424         Youngman in
78425         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
78426
78427         * lib/regex_internal.c (re_string_skip_chars, register_state):
78428         (calc_state_hash):
78429         Remove forward decls; no longer needed now that we use prototypes.
78430         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
78431         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
78432         (clean_state_log_if_needed): Likewise.
78433
78434 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78435
78436         * config/srclist.txt: Add glibc bugs 1231-1233.
78437
78438 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78439
78440         Fix problems reported by Sam Steingold in
78441         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
78442         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
78443         assumed that reg_errcode_t is a signed type, which is not
78444         necessarily true if _XOPEN_SOURCE is not defined.
78445         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
78446         since some compilers warn about it otherwise.
78447
78448 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78449
78450         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
78451         (init_word_char, create_initial_state, duplicate_node_closure):
78452         (fetch_token, peek_token_bracket, build_range_exp):
78453         (build_collating_symbol): Remove forward decls; no longer needed
78454         now that we use prototypes.
78455
78456         * lib/regcomp.c:
78457         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
78458         (re_compile_fastmap_iter, regcomp, regerror, regfree):
78459         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
78460         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
78461         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
78462         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
78463         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
78464         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
78465         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
78466         (build_range_exp, build_collating_symbol, parse_bracket_exp):
78467         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
78468         (build_charclass, build_charclass_op, fetch_number, create_tree):
78469         (create_token_tree, mark_opt_subexp, duplicate_tree):
78470         Use prototypes rather than old-style definitions.
78471
78472         * lib/regex_internal.c:
78473         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
78474         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
78475         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78476         (re_string_reconstruct, re_string_peek_byte_case):
78477         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
78478         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78479         (re_node_set_init_copy, re_node_set_add_intersect):
78480         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78481         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78482         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78483         (re_acquire_state, re_acquire_state_context, register_state):
78484         (create_ci_newstate, create_cd_newstate, free_state):
78485         Likewise.
78486         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
78487         re_search_2):
78488         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
78489         (re_search_internal, prune_impossible_nodes):
78490         (acquire_init_state_context, check_matching, static):
78491         (check_halt_node_context, check_halt_state_context, proceed_next_node):
78492         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
78493         (update_regs, sift_states_backward, build_sifted_states):
78494         (clean_state_log_if_needed, merge_state_array):
78495         (update_cur_sifted_state, add_epsilon_src_nodes):
78496         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
78497         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
78498         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
78499         (find_recover_state, check_subexp_matching_top, transit_state_mb):
78500         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
78501         (check_arrival, check_arrival_add_next_nodes):
78502         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78503         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78504         (check_node_accept_bytes, check_node_accept, extend_buffers):
78505         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
78506         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
78507         (sift_ctx_init):
78508         Likewise.
78509
78510         * lib/regex_internal.h:
78511         (re_string_allocate, re_string_construct, re_string_reconstruct):
78512         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
78513         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
78514         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
78515         (re_string_context_at, re_string_peek_byte_case):
78516         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
78517         is defined, since we now use prototypes always.
78518
78519         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
78520         C89 or better.  All uses removed.
78521
78522 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78523
78524         * config/srclist.txt: Add glibc bugs 1220-1227.
78525
78526 2005-08-20  Jim Meyering  <jim@meyering.net>
78527
78528         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
78529         of unused local, dfa.
78530
78531 2005-08-20  Bruno Haible  <bruno@clisp.org>
78532
78533         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
78534
78535 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78536
78537         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
78538         (re_node_set_insert_last, re_dfa_add_node):
78539         Rename local variables to avoid GCC shadowing warnings.
78540
78541 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78542
78543         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
78544         [defined lint]: Suppress bogus uninitialized-variable warnings.
78545
78546         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
78547         and let the caller return REG_ESPACE if out of space.  This
78548         removes an uninitialied-variable warning with GCC 4.0.1, and also
78549         avoids taking the address of a local variable.  All callers
78550         changed.
78551
78552 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78553
78554         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
78555         $LIBCSRC/posix/regexec.c.
78556         Add glibc bug 1217 for regcomp.c.
78557
78558 2005-08-19  Jim Meyering  <jim@meyering.net>
78559
78560         * lib/regexec.c (proceed_next_node): Redo local variables to
78561         avoid GCC shadowing warnings.
78562
78563 2005-08-18  Bruno Haible  <bruno@clisp.org>
78564
78565         * lib/strstr.c (strstr): Fix return value in multibyte case.
78566         * lib/strcasestr.c (strcasestr): Likewise.
78567
78568 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78569
78570         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
78571
78572 2005-08-17  Jim Meyering  <jim@meyering.net>
78573
78574         Make the %s format (seconds since the epoch) work for a negative
78575         number and when used with a zero-padded field width, e.g. %015s.
78576
78577         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
78578         label so that it precedes the code to set `digits'.  Otherwise,
78579         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
78580         print `00-22'.  Now, it prints `-0022', as it should.
78581
78582 2005-08-17  Bruno Haible  <bruno@clisp.org>
78583
78584         * modules/strstr (Files): Add m4/mbrtowc.m4.
78585         (Depends-on): Add mbuiter.
78586
78587 2005-08-17  Bruno Haible  <bruno@clisp.org>
78588
78589         * modules/strcasestr: New file.
78590         * MODULES.html.sh (String handling, based on ANSI C 89): Add
78591         strcasestr.
78592
78593 2005-08-17  Bruno Haible  <bruno@clisp.org>
78594
78595         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
78596
78597 2005-08-17  Bruno Haible  <bruno@clisp.org>
78598
78599         * modules/mbuiter: New file.
78600         * MODULES.html.sh (Extended multibyte and wide character utilities):
78601         Add mbuiter.
78602
78603 2005-08-17  Bruno Haible  <bruno@clisp.org>
78604
78605         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
78606         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
78607
78608 2005-08-17  Bruno Haible  <bruno@clisp.org>
78609
78610         * m4/strcasestr.m4: New file.
78611
78612 2005-08-17  Bruno Haible  <bruno@clisp.org>
78613
78614         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
78615         * lib/strstr.c: Completely rewritten, with multibyte locale support.
78616
78617 2005-08-17  Bruno Haible  <bruno@clisp.org>
78618
78619         * lib/strcasestr.h: New file.
78620         * lib/strcasestr.c: New file.
78621
78622 2005-08-17  Bruno Haible  <bruno@clisp.org>
78623
78624         * lib/strcasecmp.c: Use mbuiter.h.
78625
78626 2005-08-17  Bruno Haible  <bruno@clisp.org>
78627
78628         * lib/mbuiter.h: New file.
78629
78630 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78631
78632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
78633         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
78634         and gl_GETOPT are both invoked via different paths (as happens
78635         with GNU tar CVS because it uses both argp and getopt), the former
78636         wins.
78637
78638 2005-08-16  Bruno Haible  <bruno@clisp.org>
78639
78640         * modules/tls: New file.
78641         * MODULES.html.sh (Multithreading): Add tls.
78642
78643 2005-08-16  Bruno Haible  <bruno@clisp.org>
78644
78645         * modules/strnlen1: New file.
78646         * MODULES.html.sh (String handling): Add strnlen1.
78647
78648 2005-08-16  Bruno Haible  <bruno@clisp.org>
78649
78650         * modules/strcase (Files): Add m4/mbrtowc.m4.
78651         (Depends-on): Add strnlen1, mbchar.
78652
78653 2005-08-16  Bruno Haible  <bruno@clisp.org>
78654
78655         * modules/mbiter: New file.
78656         * MODULES.html.sh (Extended multibyte and wide character utilities):
78657         Add mbiter.
78658
78659 2005-08-16  Bruno Haible  <bruno@clisp.org>
78660
78661         * modules/mbfile: New file.
78662         * MODULES.html.sh (Extended multibyte and wide character utilities):
78663         Add mbfile.
78664
78665 2005-08-16  Bruno Haible  <bruno@clisp.org>
78666
78667         * modules/mbchar: New file.
78668         * MODULES.html.sh (Extended multibyte and wide character utilities):
78669         New section.
78670
78671 2005-08-16  Bruno Haible  <bruno@clisp.org>
78672
78673         * m4/tls.m4: New file, from GNU gettext.
78674
78675 2005-08-16  Bruno Haible  <bruno@clisp.org>
78676
78677         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
78678         always.
78679         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
78680
78681 2005-08-16  Bruno Haible  <bruno@clisp.org>
78682
78683         * m4/mbiter.m4: New file.
78684
78685 2005-08-16  Bruno Haible  <bruno@clisp.org>
78686
78687         * m4/mbfile.m4: New file.
78688
78689 2005-08-16  Bruno Haible  <bruno@clisp.org>
78690
78691         * m4/mbchar.m4: New file.
78692
78693 2005-08-16  Bruno Haible  <bruno@clisp.org>
78694
78695         * lib/tls.h: New file, from GNU gettext.
78696         * lib/tls.c: New file, from GNU gettext.
78697
78698 2005-08-16  Bruno Haible  <bruno@clisp.org>
78699
78700         * lib/strnlen1.h: New file.
78701         * lib/strnlen1.c: New file.
78702
78703 2005-08-16  Bruno Haible  <bruno@clisp.org>
78704
78705         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
78706         (mbi_init): Update.
78707         (mbi_avail, mbi_advance): Let the iteration end before the terminating
78708         NUL byte, not after it.
78709
78710 2005-08-16  Bruno Haible  <bruno@clisp.org>
78711
78712         * lib/strcase.h (strcasecmp): Add note in comments.
78713         * lib/strncasecmp.c: Use code from strcasecmp.c.
78714         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
78715         (strcasecmp): Work correctly in multibyte locales.
78716
78717 2005-08-16  Bruno Haible  <bruno@clisp.org>
78718
78719         * lib/mbiter.h: New file.
78720
78721 2005-08-16  Bruno Haible  <bruno@clisp.org>
78722
78723         * lib/mbfile.h: New file.
78724
78725 2005-08-16  Bruno Haible  <bruno@clisp.org>
78726
78727         * lib/mbchar.h: New file.
78728         * lib/mbchar.c: New file.
78729
78730 2005-08-16  Bruno Haible  <bruno@clisp.org>
78731
78732         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
78733         the valid ones. Makes the comparison operations transitive:
78734         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
78735         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
78736
78737 2005-08-15  Simon Josefsson  <jas@extundo.com>
78738
78739         * modules/ssize_t (License): Change to 'unlimited'.
78740
78741         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
78742
78743 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78744
78745         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
78746         Add comments for each pending glibc patch.
78747
78748 2005-08-15  Bruno Haible  <bruno@clisp.org>
78749
78750         * lib/regex.h (__restrict_arr): Don't define to __restrict if
78751         __cplusplus is defined.
78752
78753 2005-08-14  Jim Meyering  <jim@meyering.net>
78754
78755         Sync from coreutils.
78756
78757         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
78758         Use the hash-table-based cycle-detection code not just when
78759         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
78760         Reported by James Youngman in
78761         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
78762         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
78763         FTS_TIGHT_CYCLE_CHECK.
78764         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
78765         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
78766         once again.
78767         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
78768         * lib/fts.c (fd_safer): Remove decl.
78769         Include fcntl--.h rather than unistd-safer.h
78770         (fts_safe_changedir): Don't call fd_safer; no longer needed
78771         now that we include fcntl--.h.
78772
78773 2005-08-12  Simon Josefsson  <jas@extundo.com>
78774
78775         * modules/getndelim2: Use ssize_t module.
78776         * modules/getnline: Likewise.
78777         * modules/safe-read: Likewise.
78778         * modules/xreadlink: Likewise.
78779
78780         * modules/ssize_t: New file.
78781
78782 2005-08-12  Simon Josefsson  <jas@extundo.com>
78783
78784         * m4/readline.m4: Look for termcap, curses or ncurses if required.
78785
78786 2005-08-12  Simon Josefsson  <jas@extundo.com>
78787
78788         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78789         ssize_t.
78790
78791 2005-08-12  Simon Josefsson  <jas@extundo.com>
78792
78793         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
78794         readline, getdelim and check_version.
78795         (Support for systems lacking ISO C 99: Sizes of integer types):
78796         Add size_max.
78797
78798 2005-08-12  Bruno Haible  <bruno@clisp.org>
78799
78800         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
78801
78802 2005-08-11  Simon Josefsson  <jas@extundo.com>
78803
78804         * modules/readline: New file.
78805
78806         * modules/strnlen (Files): Add strnlen.h.
78807
78808 2005-08-11  Simon Josefsson  <jas@extundo.com>
78809
78810         * m4/readline.m4: New file.
78811
78812 2005-08-11  Simon Josefsson  <jas@extundo.com>
78813
78814         * lib/readline.h, readline.c: New file.
78815
78816 2005-08-11  Simon Josefsson  <jas@extundo.com>
78817
78818         * doc/gnulib.texi (Initial import, Finishing touches): Mention
78819         gl_AVOID.
78820
78821 2005-08-11  Bruno Haible  <bruno@clisp.org>
78822
78823         * lib/strnlen.h (strnlen): Change parameter name to match comment.
78824
78825 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
78826
78827         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
78828
78829 2005-08-10  Simon Josefsson  <jas@extundo.com>
78830
78831         * tests/test-iconvme.c: New file.
78832
78833 2005-08-10  Simon Josefsson  <jas@extundo.com>
78834
78835         * m4/strnlen.m4: New file.
78836
78837         * m4/strndup.m4: Don't check for strnlen declaration, done in
78838         strnlen.m4.
78839
78840 2005-08-10  Simon Josefsson  <jas@extundo.com>
78841
78842         * lib/strndup.c: Use strnlen.h.
78843
78844         * lib/strnlen.h: New file.
78845
78846 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78847
78848         * README: Typos.
78849
78850 2005-08-02  Simon Josefsson  <jas@extundo.com>
78851
78852         * modules/readline: New file.
78853
78854 2005-08-02  Simon Josefsson  <jas@extundo.com>
78855
78856         * modules/getdelim: New file.
78857
78858         * modules/getline: Rewrite, don't use getndelim2.
78859
78860 2005-08-02  Simon Josefsson  <jas@extundo.com>
78861
78862         * m4/getline.m4: Separate out getdelim stuff into separate module.
78863
78864         * m4/getdelim.m4: New file.
78865
78866 2005-08-02  Simon Josefsson  <jas@extundo.com>
78867
78868         * lib/getline.h, getline.c: Rewrite.
78869
78870         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
78871
78872 2005-07-31  Bruno Haible  <bruno@clisp.org>
78873
78874         * lib/lock.h (gl_lock_initializer): New macro.
78875         (gl_lock_define_initialized): Use it.
78876         (gl_rwlock_initializer): New macro.
78877         (gl_rwlock_define_initialized): Use it.
78878         (gl_recursive_lock_initializer): New macro.
78879         (gl_recursive_lock_define_initialized): Use it.
78880
78881 2005-07-30  Karl Berry  <karl@gnu.org>
78882
78883         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
78884         Report from Ben Pfaff, regarding getopt.
78885
78886 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
78887
78888         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
78889         normal way.
78890         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
78891         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
78892         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
78893         (gl_GETOPT): Use the new macros.  Most of the implementation
78894         is moved to the new macros.  This is for programs like Emacs
78895         that don't want all the functionality of gl_GETOPT.
78896
78897 2005-07-26  Bruno Haible  <bruno@clisp.org>
78898
78899         * m4/lock.m4: Update from GNU gettext.
78900
78901 2005-07-26  Bruno Haible  <bruno@clisp.org>
78902
78903         * lib/lock.h: Update from GNU gettext.
78904         * lib/lock.c: Update from GNU gettext.
78905
78906 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
78907
78908         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
78909         obsolescent AC_TRY_RUN.  Include the default includes files, for
78910         'exit'.
78911
78912 2005-07-24  Bruno Haible  <bruno@clisp.org>
78913
78914         * modules/visibility: New file.
78915         * MODULES.html.sh (Misc): Add visibility.
78916
78917 2005-07-24  Bruno Haible  <bruno@clisp.org>
78918
78919         * m4/visibility.m4: New file.
78920
78921 2005-07-24  Bruno Haible  <bruno@clisp.org>
78922
78923         * doc/visibility.texi: New file.
78924
78925 2005-07-22  Bruno Haible  <bruno@clisp.org>
78926
78927         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
78928         $(ALLOCA_H), redundant through BUILT_SOURCES.
78929         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
78930         redundant through BUILT_SOURCES.
78931         * modules/byteswap (Makefile.am): Remove explicit dependency on
78932         $(BYTESWAP_H), redundant through BUILT_SOURCES.
78933         * modules/fnmatch (Makefile.am): Remove explicit dependency on
78934         $(FNMATCH_H), redundant through BUILT_SOURCES.
78935         * modules/getopt (Makefile.am): Remove explicit dependency on
78936         $(GETOPT_H), redundant through BUILT_SOURCES.
78937         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
78938         redundant through BUILT_SOURCES.
78939         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
78940         redundant through BUILT_SOURCES.
78941         * modules/stdbool (Makefile.am): Remove explicit dependency on
78942         $(STDBOOL_H), redundant through BUILT_SOURCES.
78943         * modules/stdint (Makefile.am): Remove explicit dependency on
78944         $(STDINT_H), redundant through BUILT_SOURCES.
78945         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
78946         Remove explicit dependency on $(SYSEXITS_H).
78947         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
78948
78949 2005-07-18  Simon Josefsson  <jas@extundo.com>
78950
78951         * lib/check-version.c (check_version): Accept identical versions too.
78952
78953 2005-07-18  Bruno Haible  <bruno@clisp.org>
78954
78955         * modules/lock: New file.
78956         * MODULES.html.sh (Multithreading): New section.
78957
78958 2005-07-18  Bruno Haible  <bruno@clisp.org>
78959
78960         * m4/lock.m4: New file, from GNU gettext.
78961
78962 2005-07-18  Bruno Haible  <bruno@clisp.org>
78963
78964         * lib/lock.h: New file, from GNU gettext.
78965         * lib/lock.c: New file, from GNU gettext.
78966
78967 2005-07-18  Bruno Haible  <bruno@clisp.org>
78968
78969         * lib/lock.h (gl_once_t): New type.
78970         (gl_once_define, gl_once): New macros.
78971         * lib/lock.c (fresh_once): New variable.
78972         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
78973         functions.
78974
78975 2005-07-16  Simon Josefsson  <jas@extundo.com>
78976
78977         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
78978         workaround, suggested by Bruno.
78979
78980 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78981
78982         * modules/xalloc (Depends-on): Add xalloc-die.
78983         * modules/xvasprintf (Depends-on): Add xalloc-die.
78984
78985 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78986
78987         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
78988         with a minor change.
78989
78990 2005-07-15  Bruno Haible  <bruno@clisp.org>
78991
78992         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
78993         When using lib/poll.c, define poll as rpl_poll.
78994
78995 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * modules/argp (Depends-on): Remove unlocked-io.
78998
78999 2005-07-14  Derek Price  <derek@ximbiot.com>
79000
79001         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
79002         for glob symlink bug.
79003
79004 2005-07-14  Bruno Haible  <bruno@clisp.org>
79005
79006         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
79007         Instead, test for *_unlocked function declarations directly.
79008
79009 2005-07-11  Simon Josefsson  <jas@extundo.com>
79010
79011         * modules/size_max: New file.
79012
79013         * modules/xsize: Depend on size_max module for size_max.m4.
79014
79015 2005-07-11  Simon Josefsson  <jas@extundo.com>
79016
79017         * lib/size_max.h: New file.
79018
79019 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
79020
79021         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
79022         copyright symbol and the year.
79023         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
79024         (version_etc_va): Use parameterized copyright notice.
79025         Reword to conform to the current GNU coding standards.
79026
79027 2005-07-11  Karl Berry  <karl@gnu.org>
79028
79029         * doc/gnulib.texi (Quoting): new node.
79030         (Initial import): more info, from Patrice.
79031
79032 2005-07-11  Bruno Haible  <bruno@clisp.org>
79033
79034         * gnulib-tool (func_usage): Document option --avoid.
79035         (Command line options): Handle --avoid.
79036         (func_acceptable): New function.
79037         (func_modules_transitive_closure): Use it.
79038
79039 2005-07-11  Bruno Haible  <bruno@clisp.org>
79040
79041         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
79042         Reported by Jim Meyering.
79043
79044 2005-07-10  Bruno Haible  <bruno@clisp.org>
79045
79046         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
79047         Needed when size_t is smaller than 'unsigned int'.
79048         Reported by Paul Eggert.
79049
79050 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79051
79052         * modules/argp (Depends-on): Add unlocked-io
79053
79054 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79055
79056         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
79057         block of defines.
79058
79059 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79060
79061         * config/srclist.txt: Comment out regcomp.c, since we have a porting
79062         fix now.
79063
79064 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
79065         and Paul Eggert  <eggert@cs.ucla.edu>
79066
79067         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
79068         in wint_t, not wchar_t.  Remove now-unnecessary cast.
79069
79070 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79071
79072         * modules/regex (Files): Add lib/regex_internal.c,
79073         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
79074         (Depends-on): Add extensions.
79075         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
79076
79077 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79078
79079         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
79080         pathconf.
79081         * m4/same.m4 (gl_SAME): Likewise.
79082         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
79083
79084         * m4/regex.m4: Adjust to new libc regex implementation.
79085         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
79086         all the .c and .h parts of (the new) regex.
79087         Quote the m4 stuff better.
79088         Check for RE_ICASE bug of old gnulib.
79089         Check for REG_STARTEND of recent libc.
79090         Rename local variables from jm_* to gl_*.
79091         Quote operand of "test -f".
79092         Say "recent enough" version of libc, not "version 2".
79093         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
79094         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
79095         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
79096         Remove check for btowc, isascii.
79097         Require AM_LANGINFO_CODESET.
79098
79099 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79100
79101         * lib/regex.c, regex.h: Sync from libc.
79102         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
79103         * lib/regexec.c:
79104         New files, synced from libc, except that regex_internal.h
79105         currently has a small porting fix.
79106
79107 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79108
79109         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
79110         regex_internal.c, regexec.c.
79111         Add regex_internal.h too, but as a comment, since the libc version
79112         is currently broken in gnulib mode.
79113
79114 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79115
79116         Support programs like Emacs that use gnulib but not gettext.
79117         * MODULES.html.sh (Internationalization functions): Add gettext-h.
79118         * modules/gettext-h: New file.
79119         * modules/gettext (Files): Remove lib/gettext.h.
79120         (Depends-on): Add gettext-h.
79121         (Makefile.am): Remove lib_SOURCES.
79122         * modules/argmatch, modules/c-stack, modules/closeout:
79123         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
79124         * modules/execute, modules/file-type, modules/getaddrinfo:
79125         * modules/getopt, modules/human, modules/javacomp:
79126         * modules/javaexec, modules/mkdir-p, modules/obstack:
79127         * modules/openat, modules/pagealign_alloc, modules/pipe:
79128         * modules/quotearg, modules/regex, modules/rpmatch:
79129         * modules/unicodeio, modules/userspec, modules/version-etc:
79130         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
79131         * modules/xsetenv:
79132         Depend on gettext-h, not gettext.
79133
79134 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79135
79136         * gnulib-tool (func_import): Add support for 'public domain' license.
79137         * modules/alloca, modules/atexit, modules/memmove:
79138         Now public domain, not GPL.
79139         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
79140         * modules/realloc, modules/strerror, modules/strtod:
79141         Now LGPL, not GPL.
79142
79143 2005-07-05  Bruno Haible  <bruno@clisp.org>
79144
79145         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
79146         autoconf CVS. Needed for mingw.
79147
79148 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79149
79150         Remove the dependency of the strftime module on the tzset module.
79151         * modules/strftime (Depends-on): Remove dependency on tzset.
79152
79153 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79154
79155         Remove the dependency of the strftime module on the tzset module.
79156         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
79157         gl_FUNC_TZSET_CLOBBER.
79158
79159 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79160
79161         Remove the dependency of the strftime module on the tzset module.
79162         * lib/strftime.c (my_strftime)
79163         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
79164         Copy the input structure, to work around some of the bug with
79165         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
79166         Solaris releases, you should also use the tzset module, but we won't
79167         require it as a dependency any more since we don't want LGPLed code
79168         to depend on GPLed code.
79169
79170 2005-07-02  Jim Meyering  <jim@meyering.net>
79171
79172         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
79173         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
79174         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
79175         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
79176
79177 2005-07-02  Jim Meyering  <jim@meyering.net>
79178
79179         * lib/backupfile.c (backup_args): Change a `0' to NULL.
79180
79181 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79182
79183         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
79184         declares only 'struct timespec;' (!).
79185
79186 2005-07-01  Jim Meyering  <jim@meyering.net>
79187
79188         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
79189         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
79190         * lib/save-cwd.c, tempname.c:
79191         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79192         and don't include <sys/file.h>).
79193
79194 2005-06-29  Jim Meyering  <jim@meyering.net>
79195
79196         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
79197         type name.  Use the variable name instead.
79198         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
79199         Likewise.
79200
79201 2005-06-28  Simon Josefsson  <jas@extundo.com>
79202
79203         * modules/check-version (Files): Add check-version.m4.
79204
79205 2005-06-28  Simon Josefsson  <jas@extundo.com>
79206
79207         * m4/check-version.m4: New file, suggested by Jim Meyering
79208         <jim@meyering.net>.
79209
79210 2005-06-28  Simon Josefsson  <jas@extundo.com>
79211
79212         * lib/check-version.h, lib/check-version.c: New files.
79213
79214 2005-06-28  Simon Josefsson  <jas@extundo.com>
79215
79216         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
79217         collision with global variable.  Better indentation.  Don't
79218         increment buffer pointer beyond buffer end.  Based on comments
79219         from Paul Eggert <eggert@cs.ucla.edu>.
79220
79221         * lib/base64.h: Indent.
79222
79223 2005-06-28  Simon Josefsson  <jas@extundo.com>
79224
79225         * doc/gnulib.texi (Library version handling): New section.
79226
79227 2005-06-28  Jim Meyering  <jim@meyering.net>
79228
79229         * check-module (find_included_lib_files): Hard-code another
79230         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
79231         but modules/fts-lgpl (correctly) does not list those files.
79232
79233         * modules/canonicalize (Files): Add lib/pathmax.h.
79234
79235 2005-06-25  Simon Josefsson  <jas@extundo.com>
79236
79237         * modules/check-version: New file.
79238
79239 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
79240
79241         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
79242         initializer of struct addrinfo, as an indication that we don't
79243         care how many members the structure has.
79244
79245 2005-06-24  Derek Price  <derek@ximbiot.com>
79246         and Bruno Haible  <bruno@clisp.org>
79247
79248         Remove stat module & update lstat.
79249         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
79250         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79251         * m4/stat.m4: Remove this file.
79252
79253 2005-06-24  Derek Price  <derek@ximbiot.com>
79254         and Bruno Haible  <bruno@clisp.org>
79255
79256         Remove stat module & update lstat.
79257         * lib/stat.c: Remove this file...
79258         (slash_aware_lstat): ...moving this content and its support...
79259         * lib/lstat.c (rpl_lstat): ...into here.
79260         * lib/lstat.h: New file.
79261
79262 2005-06-24  Derek Price  <derek@ximbiot.com>
79263         and Bruno Haible  <bruno@clisp.org>
79264
79265         Remove stat module & update lstat.
79266         * config/srclist.txt (libc sources): Remove stat.
79267
79268 2005-06-24  Derek Price  <derek@ximbiot.com>
79269         and Bruno Haible  <bruno@clisp.org>
79270
79271         Remove stat module & update lstat.
79272         * MODULES.html.sh (stat): Remove.
79273         * MODULES.html: Regenerated.
79274         * modules/lstat (Description): Correct function name.
79275         (Files): Add "lstat.h".
79276         (Depends-on): Remove stat, add xalloc, stat-macros.
79277         * modules/stat: Remove this file.
79278         (Include): Add "lstat.h", remove <sys/stat.h>.
79279
79280 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
79281
79282         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
79283         (ranged_convert): Don't save conversion in a temporary struct.
79284         This causes a warning with GCC 4.0.0, and anyway in the typical
79285         case it's not worth the extra 100 bytes or so of code.
79286         (ranged_convert, __mktime_internal): When calling a function via a
79287         pointer P, use P () rather than (*P) (), as we now assume C89 or
79288         better.
79289
79290 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79291
79292         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
79293         "who -r" failed to give output.  Problem reported by Tim Waugh.
79294
79295         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
79296         (xcalloc): Use it to avoid needless tests.
79297         Problem reported by Jim Meyering.
79298
79299 2005-06-20  Derek Price  <derek@ximbiot.com>
79300
79301         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
79302         unnecessary for Autoconfs > 2.59c.
79303
79304 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79305
79306         * lib/argp.h (__option_is_short): Check upper limit of
79307         __key. Isprint() requires its argument to have the value
79308         of an unsigned char or EOF.
79309
79310 2005-06-16  Jim Meyering  <jim@meyering.net>
79311
79312         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
79313         when either N or S is zero.
79314
79315 2005-06-16  Derek Price  <derek@ximbiot.com>
79316
79317         * m4/bison.m4: Declare YACC & YFLAGS precious.
79318
79319 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
79320
79321         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
79322         multibyte string or pattern, fall back on unibyte matching.
79323         Problem reported by James Youngman.
79324
79325 2005-06-08  Bruno Haible  <bruno@clisp.org>
79326
79327         * modules/csharpcomp: New file.
79328         * MODULES.html.sh (C#): Add csharpcomp.
79329
79330 2005-06-08  Bruno Haible  <bruno@clisp.org>
79331
79332         * m4/csharpcomp.m4: New file, from GNU gettext.
79333
79334 2005-06-08  Bruno Haible  <bruno@clisp.org>
79335
79336         * lib/csharpcomp.h: New file, from GNU gettext.
79337         * lib/csharpcomp.c: New file, from GNU gettext.
79338         * lib/csharpcomp.sh.in: New file, from GNU gettext.
79339
79340 2005-06-08  Bruno Haible  <bruno@clisp.org>
79341
79342         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
79343         warning on mingw.
79344
79345 2005-06-07  Derek Price  <derek@ximbiot.com>
79346
79347         Sync from CVS.
79348         * lib/glob_.h: Indent nested #ifdef.
79349
79350 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79351
79352         Sync from coreutils.
79353         Use "file name" when talking about file names, instead of "filename"
79354         or "path", as per the GNU coding standards.
79355         * lib/mkdir-p.c: Renamed from makepath.c.
79356         (make_dir_parents): Renamed from make_path.  All callers changed.
79357         * lib/mkdir-p.h: Likewise.  All includers changed.
79358         * lib/filenamecat.c: Renamed from path-concat.c.
79359         (file_name_concat): Renamed from path_concat.  All callers changed.
79360         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
79361         * lib/filenamecat.h: Likewise.  All includers changed.
79362         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
79363         in comments or local variable names.
79364         * lib/basename.c: Likewise.
79365         * lib/canonicalize.c, canonicalize.h: Likewise.
79366         * lib/dirname.c, dirname.h: Likewise.
79367         * lib/euidaccess.c: Likewise.
79368         * lib/exclude.c: Likewise
79369         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
79370         * lib/fsusage.c, fsuage.h: Likewise.
79371         * lib/fts.c, fts_.h: Likewise.
79372         * lib/getcwd.c: Likewise.
79373         * lib/getloadavg.c: Likewise.
79374         * lib/mkstemp.c: Likewise.
79375         * lib/mountlist.c, mountlist.h: Likewise.
79376         * lib/openat.c, openat.h: Likewise.
79377         * lib/readlink-stub.c: Likewise.
79378         * lib/readutmp.c, readutmp.h: Likewise.
79379         * lib/rename.c: Likewise.
79380         * lib/rmdir.c: Likewise.
79381         * lib/same.c: Likewise.
79382         * lib/savedir.c: Likewise.
79383         * lib/stripslash.c: Likewise.
79384         * lib/tempname.c: Likewise.
79385         * lib/xreadlink.c: Likewise.
79386         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
79387         All uses changed.
79388         * lib/exclude.h: Likewise.
79389
79390         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
79391         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79392         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
79393         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79394         * lib/pathmax.h: Include <limits.h> unconditionally, since other
79395         files have been getting away with it for years (MORE/BSD 4.3
79396         is extinct now).
79397         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
79398         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79399
79400         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
79401         Define to 256, not 255, as per modern POSIX.
79402
79403 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79404
79405         Sync from coreutils.
79406         Use "file name" when talking about file names, instead of "filename"
79407         or "path", as per the GNU coding standards.
79408         * MODULES.html.sh: mkdir-p renamed from makepath.
79409         filenamecat renamed from path-concat.
79410         * modules/filenamecat: Renamed from modules/path-concat.
79411         (Files): filenamecat.h and filenamecat.c renamed from
79412         path-concat.h and path-concat.c.
79413         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
79414         (Include): filenamecat.h, not path-concat.h.
79415         * modules/mkdir-p: Renamed from modules/makepath.
79416         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
79417         makepath.c.
79418         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
79419         (Include): mkdir-p.h, not makepath.h.
79420
79421 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79422
79423         Sync from coreutils.
79424         * m4/mkdir-p.m4: Renamed from makepath.m4.
79425         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
79426         Rename files from makepath.c to mkdir-p.c, and from
79427         makepath.h to mkdir-p.h.
79428         * m4/filenamecat.m4: Renamed from path-concat.m4.
79429         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
79430         Rename files from path-concat.c to filenamecat.c,
79431         and from path-concat.h to filenamecat.h.
79432         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
79433         "file name" in local variables or comments.
79434         * m4/rename.m4: Likewise.
79435
79436 2005-06-01  Bruno Haible  <bruno@clisp.org>
79437
79438         * modules/csharpexec: New file.
79439         * MODULES.html.sh (C#): New section.
79440
79441 2005-06-01  Bruno Haible  <bruno@clisp.org>
79442
79443         * m4/csharp.m4: New file, from GNU gettext.
79444         * m4/csharpexec.m4: New file, from GNU gettext.
79445
79446 2005-06-01  Bruno Haible  <bruno@clisp.org>
79447
79448         * lib/csharpexec.h: New file, from GNU gettext.
79449         * lib/csharpexec.c: New file, from GNU gettext.
79450         * lib/csharpexec.sh.in: New file, from GNU gettext.
79451
79452 2005-05-31  Derek Price  <derek@ximbiot.com>
79453             Paul Eggert  <eggert@cs.ucla.edu>
79454
79455         Sync from cvs.
79456         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79457
79458 2005-05-31  Derek Price  <derek@ximbiot.com>
79459             Paul Eggert  <eggert@cs.ucla.edu>
79460
79461         Sync from cvs.
79462         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79463
79464 2005-05-29  Derek Price  <derek@ximbiot.com>
79465
79466         * config/srclist.txt (glob_.h, glob.c): Add these files.
79467
79468 2005-05-29  Derek Price  <derek@ximbiot.com>
79469
79470         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
79471         * modules/glob: New file.
79472         * modules/getlogin_r: Add link to POSIX spec in description.
79473
79474 2005-05-29  Derek Price  <derek@ximbiot.com>
79475             Paul Eggert  <eggert@cs.ucla.edu>
79476
79477         * m4/glob.m4: New file.
79478
79479 2005-05-29  Derek Price  <derek@ximbiot.com>
79480             Paul Eggert  <eggert@cs.ucla.edu>
79481
79482         * lib/glob_.h, lib/glob.c: New files.
79483
79484 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79485
79486         * modules/fts (Files): Remove m4/inttypes-pri.m4.
79487         * modules/fts-lgpl (Depends-on): Remove gettext.
79488
79489 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79490
79491         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
79492         and don't require gt_INTTYPES_PRI.
79493
79494 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79495
79496         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
79497
79498         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
79499         the configuration hassle isn't worth it.
79500         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
79501         (LONGEST_MODIFIER, PRIuMAX): Remove.
79502
79503 2005-05-27  Bruno Haible  <bruno@clisp.org>
79504
79505         * lib/getlogin_r.h: Remove second include of <stddef.h>.
79506
79507 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
79508
79509         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
79510         _POSIX_PTHREAD_SEMANTICS for Solaris.
79511
79512 2005-05-25  Derek Price  <derek@ximbiot.com>
79513
79514         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
79515
79516 2005-05-25  Derek Price  <derek@ximbiot.com>
79517             Paul Eggert  <eggert@cs.ucla.edu>
79518
79519         * modules/getlogin_r, m4/getlogin_r.m4: New files.
79520         * lib/getlogin_r.c, getlogin_r.h: New files.
79521
79522 2005-05-25  Bruno Haible  <bruno@clisp.org>
79523             Derek Price  <derek@ximbiot.com>
79524
79525         * lib/getlogin_r.h: Simplify API documentation.
79526
79527 2005-05-23  Derek Price  <derek@ximbiot.com>
79528
79529         * modules/minmax (Files): Add m4/minmax.m4.
79530         (configure.ac): Add gl_MINMAX.
79531
79532 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79533
79534         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
79535         so that unistd-safer.h (GPL'ed code) need not be included.
79536
79537 2005-05-22  Bruno Haible  <bruno@clisp.org>
79538
79539         * m4/minmax.m4: New file.
79540         Based on a patch by Derek Price <derek@ximbiot.com>.
79541
79542 2005-05-22  Bruno Haible  <bruno@clisp.org>
79543
79544         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
79545         (INT64_MIN): Fix definition.
79546         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
79547
79548         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
79549         NEED_SIGNED_INT_TYPES.
79550
79551         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
79552         HAVE_SYSTEM_INTTYPES.
79553
79554 2005-05-22  Bruno Haible  <bruno@clisp.org>
79555
79556         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
79557         Also include <sys/param.h> if it defines MIN, MAX.
79558         Based on a patch by Derek Price <derek@ximbiot.com>.
79559
79560 2005-05-21  Jim Meyering  <jim@meyering.net>
79561
79562         * modules/fts (Files): Add m4/inttypes-pri.m4.
79563         (Depends-on): Add lstat and remove gettext.  Alphabetize.
79564
79565 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79566
79567         New fts module.
79568         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
79569         (setup_dir, free_dir): New functions.
79570         (enter_dir, leave_dir): Define trivial
79571         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
79572         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
79573         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
79574         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
79575         Move to fts-cycle.c.
79576         (fts_open): Use setup_dir.
79577         (fts_close): Use free_dir.
79578         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
79579         This adds a label and some gotos, but the alternatives were messier.
79580         Check for memory allocation failure when entering a dir.
79581         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
79582         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
79583         (FTS): New member fts_cycle, that is a union that contains the
79584         old active_dir_ht and cycle_state.  All uses changed to mention
79585         fts_cycle.ht and fts_cycle.state.
79586         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
79587         fts.c, with the following changes:
79588         (setup_dir, free_dir): New functions.
79589         (enter_dir): Now returns bool.  Return true if successful, false
79590         if memory exhausted.  All callers changed.
79591         Do not bother partly cleaning up on
79592         memory allocation failure; that is free_dir's job.
79593         However, free ad if hash_insert fails, to avoid memory leak.
79594         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
79595         fts->fts_options to see which union member to use.
79596
79597 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79598
79599         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
79600         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
79601
79602 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79603
79604         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
79605
79606 2005-05-20  Jim Meyering  <jim@meyering.net>
79607
79608         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
79609         Now a macro, to pacify GCC.
79610
79611 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79612
79613         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
79614         of -1.
79615
79616 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79617
79618         * lib/chown.c (rpl_chown): Return -1 on failure.
79619
79620 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79621
79622         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
79623         Don't check for stddef.h.
79624         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
79625         don't use its results.
79626         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
79627         since we include them unconditionally.  Don't require
79628         AM_STDBOOL_H, since stdbool is a prerequisite.
79629         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
79630         since we assume C89 or better.
79631         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
79632         as we don't use their results.
79633         Don't check for fchdir, memmove, memset, strrchr, as we use
79634         them unconditionally.
79635         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
79636         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
79637
79638 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79639
79640         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
79641         Include <stddef.h> unconditionally, since we assume C89 now.
79642         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
79643         * lib/fts.c: Include fts_.h first, to check interface.
79644         Do not include intprops.h; no longer needed.
79645         Include cycle-check.h and hash.h, since fts_.h no longer does.
79646         Remove unnecessary casts of closedir to void.
79647         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
79648         decide whether to decrement nlinks.
79649         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
79650         (FTS): Use struct hash_table * instead of Hash_table, so that
79651         we no longer need to include hash.h here.
79652
79653 2005-05-18  Jim Meyering  <jim@meyering.net>
79654
79655         * modules/dirfd (License): Change to LGPL.  Most of the code
79656         is already in the public domain.
79657
79658 2005-05-18  Jim Meyering  <jim@meyering.net>
79659
79660         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
79661         Reported by Yoann Vandoorselaere.
79662
79663 2005-05-17  Jim Meyering  <jim@meyering.net>
79664
79665         * m4/fts.m4: New file, from coreutils.
79666
79667 2005-05-17  Jim Meyering  <jim@meyering.net>
79668
79669         * lib/fts.c, lib/fts_.h: New files, from coreutils.
79670
79671 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79672
79673         Sync from coreutils.
79674         * m4/unlinkdir.m4: New file.
79675
79676 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79677
79678         Sync from coreutils.
79679         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
79680         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
79681         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
79682         White space changes only.
79683         * lib/makepath.c (make_path): Port to hosts where leading "//" is
79684         special.
79685         * lib/yesno.c: Include getline.h, not ctype.h.
79686         (yesno): Don't remove leading white space; POSIX doesn't allow it.
79687         Use getline to remove arbitrary restriction on response length.
79688
79689 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79690
79691         * config/srclist-update: Spell out "Street" in FSF postal
79692         mail address; this is the style the FSF seems to prefer.
79693
79694         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
79695         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
79696         this updates FSF postal mail address.
79697
79698         Sync from coreutils.
79699         * modules/unlinkdir: New file.
79700         * modules/yesno (Depends-on): Add getline.
79701         * MODULES.html.sh (File system functions): Add unlinkdir.
79702
79703 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79704
79705         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
79706         lib/strsep.h:
79707         Change the initial comment to refer to GPL, not LGPL.
79708         gnulib-tool will change it to LGPL as needed.
79709
79710         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
79711         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
79712         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
79713         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
79714         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
79715         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
79716         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
79717         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
79718         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
79719         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
79720         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
79721         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
79722         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
79723         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
79724         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
79725         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
79726         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
79727         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
79728         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
79729         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
79730         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
79731         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
79732         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
79733         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
79734         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
79735         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
79736         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
79737         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
79738         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
79739         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
79740         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
79741         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
79742         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
79743         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
79744         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
79745         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
79746         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
79747         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
79748         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
79749         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
79750         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
79751         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
79752         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
79753         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
79754         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
79755         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
79756         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
79757         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
79758         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
79759         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
79760         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79761         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
79762         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
79763         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
79764         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
79765         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
79766         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
79767         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
79768         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
79769         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
79770         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
79771         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
79772         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
79773         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
79774         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
79775         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
79776         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
79777         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
79778         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
79779         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
79780         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
79781         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
79782         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
79783         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
79784         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
79785         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
79786         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
79787         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
79788         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
79789         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
79790         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
79791         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
79792         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
79793         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
79794         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
79795         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
79796         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
79797         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
79798         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
79799         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
79800         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
79801         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
79802         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
79803         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
79804         lib/yesno.c, lib/yesno.h:
79805         Update FSF postal mail address.
79806
79807 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79808
79809         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
79810         tests/test-memmem.c, tests/test-stpncpy.c:
79811         Update FSF postal mail address.
79812
79813 2005-05-13  Bruno Haible  <bruno@clisp.org>
79814
79815         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
79816         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
79817         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
79818         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
79819         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
79820         Add support for 64-bit integers in the MSVC compiler.
79821
79822 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79823
79824         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
79825
79826 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
79827
79828         * gnulib-tool (func_import): Sort and uniquify recommended includes.
79829
79830 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
79831
79832         * doc/getdate.texi (General date syntax): Don't say that date
79833         date --iso-8601=ns generates acceptable dates; it doesn't yet.
79834         Problem reported by Nic Ferrier.
79835
79836 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79837
79838         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
79839         specified in ai_socktype. Fix invalid ai_protocol
79840         check. ai_protocol is usually set to 0 or depending on
79841         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
79842         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
79843         ai_socktype / ai_protocol in the returned addrinfo structure.
79844
79845 2005-05-10  Simon Josefsson  <jas@extundo.com>
79846
79847         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
79848         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79849
79850 2005-05-10  Karl Berry  <karl@gnu.org>
79851
79852         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
79853         (from http://www.gnu.org/licenses).
79854         * doc/COPYING.LIB: also rename to COPYING.LESSER.
79855         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
79856         fdl.texi suffices.
79857
79858 2005-05-10  Karl Berry  <karl@gnu.org>
79859
79860         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
79861         (COPYING.DOC): remove.
79862
79863         * config/srclist-update: new FSF address.
79864
79865 2005-05-10  Derek Price  <derek@ximbiot.com>
79866
79867         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
79868         possible.
79869
79870 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79871             Bruno Haible  <bruno@clisp.org>
79872
79873         * modules/inet_ntop: New file.
79874         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79875         inet_ntop.
79876
79877 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79878             Bruno Haible  <bruno@clisp.org>
79879
79880         * m4/inet_ntop.m4: New file.
79881
79882 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79883             Bruno Haible  <bruno@clisp.org>
79884
79885         * lib/inet_ntop.h: New file.
79886         * lib/inet_ntop.c: New file, from glibc with modifications.
79887
79888 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
79889
79890         * modules/time_r (License): Change to LGPL.
79891         * modules/extensions (License): Change to LGPL.  Actually,
79892         the license is more permissive than that, but currently gnulib-tool
79893         doesn't know how to handle more-permissive licenses.
79894
79895         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
79896         Problem reported by Dave Love.
79897
79898 2005-05-08  Jim Meyering  <jim@meyering.net>
79899
79900         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
79901         blank.
79902
79903 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79904
79905         * modules/argmatch (Depends-on): Add stdbool.
79906         * modules/backupfile (Depends-on): Likewise.
79907         * modules/chdir-long (Depends-on): Likewise.
79908         * modules/closeout (Depends-on): Likewise.
79909         * modules/cycle-check (Depends-on): Likewise.
79910         * modules/dirname (Depends-on): Likewise.
79911         * modules/fnmatch (Depends-on): Likewise.
79912         * modules/fsusage (Depends-on): Likewise.
79913         * modules/fwriteerror (Depends-on): Likewise.
79914         * modules/getcwd (Depends-on): Likewise.
79915         * modules/getloadavg (Depends-on): Likewise.
79916         * modules/hard-locale (Depends-on): Likewise.
79917         * modules/makepath (Depends-on): Likewise.
79918         * modules/mountlist (Depends-on): Likewise.
79919         * modules/nanosleep (Depends-on): Likewise.
79920         * modules/posixtm (Depends-on): Likewise.
79921         * modules/quotearg (Depends-on): Likewise.
79922         * modules/readtokens (Depends-on): Likewise.
79923         * modules/readtokens0 (Depends-on): Likewise.
79924         * modules/readutmp (Depends-on): Likewise.
79925         * modules/save-cwd (Depends-on): Likewise.
79926         * modules/strftime (Depends-on): Likewise.
79927         * modules/userspec (Depends-on): Likewise.
79928         * modules/utimecmp (Depends-on): Likewise.
79929         * modules/xgetcwd (Depends-on): Likewise.
79930         * modules/xnanosleep (Depends-on): Likewise.
79931         * modules/xstrtod (Depends-on): Likewise.
79932         * modules/yesno (Depends-on): Likewise.
79933
79934 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
79935
79936         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
79937         needless checks.
79938
79939 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79940
79941         Merge from coreutils.  Among other things,
79942         add bulletproofing for cases where stdin, stdout, or stderr are closed.
79943         * lib/fd-safer.c: New file.
79944         * lib/fcntl-safer.h, open-safer.c: Remove.
79945         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
79946         * lib/dup-safer.c: Include unistd-safer.h first.
79947         Don't include errno.h.
79948         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
79949         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
79950         * lib/file-type.c: Rely on file-type.h change.
79951         * lib/getloadavg.c: Include unistd-safer.h.
79952         (getloadavg): Use safer open.
79953         * lib/getusershell.c: Include "stdio-safer.h".
79954         (getusershell): Use safer fopen.
79955         * lib/long-options.c (long_options): Use NULL rather than 0.
79956         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
79957         'free'.
79958         * lib/modechange.c: Likewise.
79959         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
79960         (MODE_DONE): New constant.
79961         (struct mode_change): Remove 'next' member.
79962         (make_node_op_equals): New function; like the old one of the
79963         same name, except it allocates an array.
79964         (mode_compile, mode_create_from_ref): Use it.
79965         (mode_compile): Allocate result as an array, not a linked list.
79966         Parse octal string ourself, so that we catch mistakes like "+0".
79967         (mode_adjust): Arg is an array, not a linked list.
79968         * lib/modechange.c: Include stat-macros.h, xalloc.h.
79969         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
79970         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
79971         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
79972         Remove.  This is now stat-macros.h's job.
79973         (talloc): Remove.  All callers replaced by xalloc, so that
79974         our invokers don't have to worry about reporting memory failures.
79975         (make_node_op_equals): Remove.
79976         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79977         New constants.
79978         (struct mode_change): Moved here from modechange.h.
79979         (mode_append_entry): Remove.
79980         (mode_compile): Remove MASKED_OPS arg, since it encouraged
79981         apps to have incorrect behavior.  Use simpler algorithm for head
79982         and tail.  Don't futz with umask; that's now the job of mode_adjust.
79983         Detect more invalid usages rather than having somewhat-random behavior.
79984         Don't insert an "a=" action, as that leads to incorrect behavior.
79985         (mode_compile, mode_create_from_ref): Return NULL on error instead
79986         of an enum, since now there's only one way to have an error.  All
79987         callers changed.
79988         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
79989         at the correct time.  Simplify calculation of "+u" and its ilk.
79990         Don't mishandle "+X".
79991         (mode_free): Remove "register" and localize decls.
79992         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79993         (struct mode_change): Move to modechange.c; callers don't
79994         need to see this stuff.
79995         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
79996         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
79997         (mode_change, mode_adjust): Reflect the new signatures noted above.
79998         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
79999         that might redefine system include files.
80000         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
80001         (my_usleep): Use NULL rather than (void *) 0.
80002         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
80003         Use siginterrupt to specify that system calls should be interrupted.
80004         (rpl_nanosleep): Move initialization of suspended closer to call of
80005         my_usleep.
80006         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
80007         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
80008         (desirable_utmp_entry): New function.
80009         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
80010         using x2nrealloc, to simplify logic.
80011         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
80012         size calculation.  Do not assume utmp file is a regular file.
80013         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
80014         (READ_UTMP_CHECK_PIDS): New constant.
80015         * lib/save-cwd.c: Include unistd-safer.h.
80016         (save_cwd): Use fd_safer.
80017         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
80018         [!_LIBC] Include "stat-macros.h" instead.
80019         * lib/unistd-safer.h (fd_safer): New decl.
80020
80021 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80022
80023         * modules/getloadavg (Depends-on): Add unistd-safer.
80024         * modules/getusershell (Depends-on): Add stdio-safer.
80025         * modules/lstat (Depends-on): Remove xalloc.
80026         * modules/mkstemp (Depends-on): Add stat-macros.
80027         * modules/modechange (Depends-on): Remove xstrtol.
80028         Add stat-macros, xalloc.
80029         * modules/save-cwd (Depends-on): Add unistd-safer.
80030         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
80031         * modules/unistd-safer (Files): Add lib/fd-safer.c
80032         (Makefile.am): Remove lib_SOURCES.
80033
80034         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
80035         Remove fcntl-safer; unistd-safer supersedes it.
80036
80037 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80038
80039         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
80040         AC_HEADER_STAT.
80041         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
80042         (gl_PREREQ_CHOWN): Remove.
80043         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
80044         it.  Don't require AC_HEADER_STAT.
80045         (gl_PREREQ_LSTAT): Remove.
80046         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
80047         Don't require AC_HEADER_STAT.
80048         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
80049         (gl_PREREQ_RMDIR): Remove.
80050         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
80051         mention stat-macros.h or AC_HEADER_STAT, since we'll make
80052         the stat-macros module a prerequisite.
80053         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
80054         * m4/filemode.m4 (gl_FILEMODE): Likewise.
80055         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
80056         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
80057         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
80058         variable names.
80059         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
80060         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
80061         variable prefixes.
80062         * m4/fcntl-safer.m4: Remove.
80063         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
80064         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
80065         Invoke gl_PREREQ_FD_SAFER.
80066         (gl_PREREQ_FD_SAFER): New macro.
80067         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
80068         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
80069         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
80070         Remove duplicate call to AC_LIBOBJ(readutmp).
80071         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
80072
80073         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
80074         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
80075
80076 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80077
80078         * MODULES.html.sh (Misc): Add byteswap.
80079
80080 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80081
80082         * modules/getcwd (Depends-on): Add extensions.
80083         * modules/openat (Depends-on): Likewise.
80084
80085 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80086
80087         * modules/byteswap: New file.
80088
80089 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80090
80091         * m4/byteswap.m4: New file.
80092
80093 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80094
80095         * lib/byteswap_.h: New file.
80096
80097 2005-04-25  Karl Berry  <karl@gnu.org>
80098
80099         * m4/gettext.m4: Update from GNU gettext 0.14.4.
80100
80101 2005-04-25  Albert Chin  <china@thewrittenword.com>
80102
80103         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
80104         Toolkit C bug.
80105
80106 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
80107
80108         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
80109         (func_ln_if_changed): Remove forcibly for no error message
80110         in case file does not exist.
80111
80112 2005-04-19  Simon Josefsson  <jas@extundo.com>
80113
80114         * gnulib-tool (Options): Make --symlink mean --symbolic.
80115
80116 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
80117
80118         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
80119
80120 2005-04-16  Simon Josefsson  <jas@extundo.com>
80121
80122         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
80123
80124 2005-04-15  Simon Josefsson  <jas@extundo.com>
80125
80126         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
80127
80128 2005-04-15  Simon Josefsson  <jas@extundo.com>
80129
80130         * gnulib-tool: Rename --symlink to --symbolic.
80131
80132 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
80133
80134         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
80135         symbolic links to files instead of copying/moving.  Add --aux-dir,
80136         specifying directory relative --dir where auxiliary build tools
80137         are placed.
80138
80139 2005-04-14  Bruno Haible  <bruno@clisp.org>
80140
80141         * modules/allocsa (License): Change to LGPL.
80142         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
80143
80144 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80145
80146         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
80147         that "UTC +1 second" continues to work.  Problem reported
80148         by Dmitry V. Levin.
80149         (relunit_snumber): New rule.
80150         (relunit): Use it.
80151
80152 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80153
80154         * lib/getdate.y (universal_time_zone_table): New constant.
80155         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
80156         universal_time_zone_table.
80157         (lookup_zone): Prefer universal_time_zone_table to
80158         local_time_zone_table, so that "GMT" time stamps are allowed in
80159         London during the summer.  Problem reported by Ian Abbott.
80160
80161 2005-04-12  Jim Meyering  <jim@meyering.net>
80162
80163         * lib/human.c (humblock): Set *options even when returning due to
80164         xstrtoumax conversion failure.  Thanks to a used-uninitialized
80165         warning from gcc-4.
80166
80167 2005-04-09  Jim Meyering  <jim@meyering.net>
80168
80169         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
80170         -Wuninitialized: initialize tm0.tm_year.
80171
80172 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
80173
80174         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
80175         count, since there's no maximum.  All uses changed.
80176         Add member dsts_seen.
80177         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
80178         not being INT_MAX.
80179         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
80180         Use pc_rels_seen to decide whther a date is absolute.
80181
80182         * lib/getdate.y (number): Don't overwrite year.
80183         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
80184         check.
80185
80186 2005-04-02  Simon Josefsson  <jas@extundo.com>
80187
80188         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
80189         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
80190
80191 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
80192
80193         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
80194         where no absolute path name can be longer than PATH_MAX.
80195
80196 2005-03-27  Jim Meyering  <jim@meyering.net>
80197
80198         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
80199
80200 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
80201
80202         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
80203         "one's complement" -> "ones' complement" in comment, as per Knuth.
80204         "value of type" -> "type or expression" in comment.
80205         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
80206
80207 2005-03-26  Jim Meyering  <jim@meyering.net>
80208
80209         Comment nits.
80210         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
80211         Correct typos: s/or/of/.
80212
80213 2005-03-26  Jim Meyering  <jim@meyering.net>
80214
80215         * modules/check-include-files: Move to ../ and rename to...
80216         * check-module: ...this.
80217
80218 2005-03-25  Jim Meyering  <jim@meyering.net>
80219
80220         * modules/xvasprintf (Files): Add xalloc.h.
80221
80222 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
80223
80224         * modules/gettext (Files): config/config.rpath ->
80225         build-aux/config.rpath
80226         * modules/iconv (Files): Likewise.
80227         Problem reported by Oskar Liljeblad.
80228
80229 2005-03-23  Jim Meyering  <jim@meyering.net>
80230
80231         * modules/check-include-files: New script to check for
80232         missing dependencies, multiple includes, etc.
80233
80234         * modules/c-strtold (Depends-on): Add xalloc.
80235         * modules/c-strtod (Depends-on): Add xalloc.
80236         * modules/hash (Depends-on): Add xalloc.
80237         (Files): Remove lib/xalloc.h.
80238
80239         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
80240         * modules/userspec (Files): Add lib/inttostr.h.
80241
80242 2005-03-23  Jim Meyering  <jim@meyering.net>
80243
80244         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
80245
80246 2005-03-22  Jim Meyering  <jim@meyering.net>
80247
80248         * modules/stat-macros: New module.
80249         * modules/canonicalize, modules/euidaccess, modules/file-type,
80250         * modules/filemode, modules/lchown, modules/makepath,
80251         * modules/rmdir, modules/stat: Depend on new stat-macros module
80252         rather than listing lib/stat-macros.h manually.
80253         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
80254
80255 2005-03-22  Jim Meyering  <jim@meyering.net>
80256
80257         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
80258
80259 2005-03-22  Bruno Haible  <bruno@clisp.org>
80260
80261         * config/srclist.txt: Replace target directory 'config' with
80262         'build-aux'.
80263         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
80264         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
80265         ../build-aux/.
80266
80267 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
80268
80269         * modules/chdir-long (Depends-on): Add mempcpy.
80270
80271         * modules/acl, modules/backupfile, modules/c-strtod,
80272         modules/c-strtold, modules/canon-host, modules/canonicalize,
80273         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
80274         modules/exclude, modules/exitfail, modules/file-type,
80275         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
80276         modules/getdate, modules/getline, modules/getpagesize,
80277         modules/getpass, modules/getugroups, modules/group-member,
80278         modules/hard-locale, modules/hash, modules/human, modules/idcache,
80279         modules/inttostr, modules/long-options, modules/makepath,
80280         modules/md5, modules/memcasecmp, modules/memcoll,
80281         modules/modechange, modules/mountlist, modules/path-concat,
80282         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
80283         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
80284         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
80285         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
80286         modules/strftime, modules/strndup, modules/strverscmp,
80287         modules/timespec, modules/unlocked-io, modules/userspec,
80288         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
80289         modules/yesno:
80290         Remove lib_SOURCES line from Makefile.am section, as this is now
80291         done automatically by the corresponding Autoconf macro.
80292
80293 2005-03-21  Jim Meyering  <jim@meyering.net>
80294
80295         Changes imported from coreutils.
80296
80297         * lib/cycle-check.c: Don't include xalloc.h.
80298
80299         * lib/path-concat.c: Don't include assert.h.
80300         (path_concat): Remove assertion that would have triggered
80301         for ABASE starting with more than one slash.
80302         Reported by Andreas Schwab.
80303
80304         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
80305         properly when ABASE is an absolute file name.
80306         Correct the description of this function.
80307         Include <assert.h>.
80308         Add an assertion and a test driver.
80309         This fixes a bug introduced on 2004-07-02.
80310         Andreas Schwab reported the resulting failure of cp --parents:
80311         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
80312
80313 2005-03-21  Jim Meyering  <jim@meyering.net>
80314
80315         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
80316         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
80317
80318 2005-03-21  Jim Meyering  <jim@meyering.net>
80319         and  Paul Eggert  <eggert@cs.ucla.edu>
80320
80321         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
80322         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
80323         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
80324         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
80325         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
80326         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
80327         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
80328         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
80329         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
80330         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
80331         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
80332         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
80333         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
80334         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
80335         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
80336         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
80337         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
80338         for these modules.
80339
80340 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
80341
80342         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
80343         (which shouldn't happen), generate nothing instead of returning 0
80344         immediately, so that nstrftime (NULL, ...) doesn't return 0.
80345
80346 2005-03-16  Bruno Haible  <bruno@clisp.org>
80347
80348         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
80349         HAVE_LONGLONG_64BIT.
80350
80351 2005-03-16  Bruno Haible  <bruno@clisp.org>
80352
80353         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
80354         HAVE_LONGLONG_64BIT.
80355
80356 2005-03-16  Bruno Haible  <bruno@clisp.org>
80357
80358         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
80359         HAVE_LONGLONG_64BIT.
80360
80361 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80362
80363         * lib/strftime.c (my_strftime): Prepend space to format so that we can
80364         reliably distinguish strftime failure from empty output on POSIX
80365         hosts.
80366
80367 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80368
80369         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
80370         (iconv_string): Don't guess a size-zero buffer, as that might cause
80371         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
80372         result would be 'too large', where 'too large' is (heuristically)
80373         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
80374         overflow concerns.  This will prevent some unwanted malloc failures
80375         when the inputs are very large.
80376
80377 2005-03-15  Karl Berry  <karl@gnu.org>
80378
80379         * config/srclist.txt (config.rpath): from gettext.
80380         * config/config.rpath: update.
80381
80382 2005-03-15  Bruno Haible  <bruno@clisp.org>
80383
80384         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
80385         to 'negate'.
80386
80387         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
80388         variable.
80389
80390         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
80391         results.
80392
80393 2005-03-14  Simon Josefsson  <jas@extundo.com>
80394
80395         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
80396         <fx@gnu.org>.
80397
80398 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
80399
80400         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
80401         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
80402         intprops.h.
80403         * lib/strtol.c: Likewise.
80404
80405 2005-03-14  Jim Meyering  <jim@meyering.net>
80406
80407         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
80408         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
80409         to be nonzero so that we (and caller) can detect the difference
80410         between a valid zero-length expansion and an error return, even
80411         when the underlying strftime fails before writing anything into
80412         that location.
80413
80414 2005-03-14  Bruno Haible  <bruno@clisp.org>
80415
80416         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
80417         Update from GNU gettext 0.14.3.
80418
80419 2005-03-10  Jim Meyering  <jim@meyering.net>
80420
80421         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
80422
80423 2005-03-10  Jim Meyering  <jim@meyering.net>
80424
80425         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
80426         so that this module works on systems without fchdir.
80427
80428 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80429
80430         Factor int-properties macros into a single file, except for
80431         glibc-related files.
80432         * lib/intprops.h: New file.
80433         * lib/getloadavg.c: Include it instead of limits.h.
80434         (INT_STRLEN_BOUND): Remove.
80435         * lib/human.c: Include intprops.h.
80436         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
80437         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
80438         302/1000.
80439         * lib/inttostr.h: Include intprops.h instead of limits.h.
80440         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
80441         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
80442         for consistency with intprops.h.
80443         (time_t_is_integer, twos_complement_arithmetic): Use them.
80444         * lib/sig2str.h: Include <signal.h>, intprops.h.
80445         (INT_STRLEN_BOUND): Remove.
80446         * lib/strftime.c (TYPE_SIGNED): Remove.
80447         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
80448         * lib/strtol.c: Adjust comments to match intprops.h.
80449         * lib/userspec.c: Include intprops.h.
80450         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
80451         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
80452         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
80453         instead of rolling our own expressions.
80454         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
80455
80456         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
80457         instead of int.
80458         (my_strftime): Do not mishandle years close to INT_MAX, by doing
80459         the right thing even if adding 1900 would overflow.  Similarly
80460         for tm_mon + 1 and tm_yday + 1.
80461         Make %Y always equivalent to %C%y, and similarly for %G and %g.
80462         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
80463         (DO_SIGNED_NUMBER): New macro.
80464         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
80465
80466 2005-03-07  Bruno Haible  <bruno@clisp.org>
80467
80468         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
80469
80470 2005-03-07  Bruno Haible  <bruno@clisp.org>
80471
80472         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
80473
80474 2005-03-04  Derek R. Price  <derek@ximbiot.com>
80475
80476         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
80477         (func_import): Only replace files via --import when they have actually
80478         changed.
80479
80480 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80481
80482         * m4/mmap-anon.m4: New file.
80483         * m4/pagealign_alloc.m4: New file.
80484
80485 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80486             Bruno Haible  <bruno@clisp.org>
80487
80488         * modules/pagealign_alloc: New file.
80489         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
80490
80491 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80492             Bruno Haible  <bruno@clisp.org>
80493
80494         * lib/pagealign_alloc.h: New file.
80495         * lib/pagealign_alloc.c: New file.
80496
80497 2005-03-03  Bruno Haible  <bruno@clisp.org>
80498
80499         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
80500         Use an all-permissive copyright notice, recommended by RMS.
80501
80502 2005-03-02  Bruno Haible  <bruno@clisp.org>
80503
80504         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
80505         of AIX, the replacement has to be done only after <string.h> is
80506         included, therefore not in config.h. stpncpy.h does the replacement,
80507         and stpncpy.c uses it.
80508
80509 2005-03-02  Bruno Haible  <bruno@clisp.org>
80510
80511         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
80512         stpncpy.c uses it.
80513
80514 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80515
80516         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
80517         The workaround isn't strictly needed for POSIX conformance, and
80518         it's too much of a pain to configure and maintain.  We'll ask
80519         people to fix their kernels instead.
80520         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
80521         (NANOSLEEP_BUG_WORKAROUND): Remove.
80522         (xnanosleep): Remove the workaround.
80523
80524 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80525
80526         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
80527         Reported by Derek Price.
80528         (Include): Add "timespec.h".
80529
80530         * modules/xnanosleep (Depends-on): Remove gethrxtime.
80531
80532 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80533
80534         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
80535         to detect nanosleep bug.
80536
80537 2005-03-01  Bruno Haible  <bruno@clisp.org>
80538
80539         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
80540
80541 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80542
80543         * modules/gethrxtime: New file.
80544         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
80545         (Depends-on): Add gethrxtime.
80546         (configure.ac): Add gl_XNANOSLEEP.
80547         (Makefile.am): Remove lib_SOURCES line.
80548
80549 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80550
80551         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
80552         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
80553
80554 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80555
80556         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
80557         * lib/timespec.h (gettime): Return void, since it always
80558         succeeds now.  All uses changed.
80559         * lib/gettime.c (gettime): Likewise.
80560         [HAVE_NANOTIME]: Prefer nanotime.
80561         Assume gettimeofday succeeds, as POSIX requires.
80562         Assime time () succeeds, since other code already does.
80563         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
80564         (timespec_subtract): Remove.
80565         (NANOSLEEP_BUG_WORKAROUND): New constant.
80566         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
80567         things considerably.  Use it only on GNU/Linux hosts, since the
80568         workaround shouldn't be needed elsewhere.
80569
80570 2005-02-24  Bruno Haible  <bruno@clisp.org>
80571
80572         * modules/gettext (Files): Add m4/glibc2.m4.
80573
80574 2005-02-24  Bruno Haible  <bruno@clisp.org>
80575
80576         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
80577         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
80578         * m4/progtest.m4:
80579         Update from GNU gettext 0.14.2.
80580         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
80581
80582 2005-02-24  Bruno Haible  <bruno@clisp.org>
80583
80584         * lib/localcharset.c: Update from GNU gettext 0.14.2.
80585         * lib/config.charset: Update from GNU gettext 0.14.2.
80586
80587 2005-02-24  Bruno Haible  <bruno@clisp.org>
80588
80589         * lib/gettext.h: Update from GNU gettext 0.14.2.
80590
80591 2005-02-23  Simon Josefsson  <jas@extundo.com>
80592
80593         * m4/iconvme.m4: New file.
80594
80595 2005-02-23  Jim Meyering  <jim@meyering.net>
80596
80597         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
80598         change.
80599         Thanks to Bruno Haible for catching it.
80600
80601 2005-02-22  Simon Josefsson  <jas@extundo.com>
80602
80603         * modules/iconvme: New file.
80604
80605         * MODULES.html.sh: Add iconvme.
80606
80607 2005-02-22  Simon Josefsson  <jas@extundo.com>
80608
80609         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
80610
80611 2005-02-22  Simon Josefsson  <jas@extundo.com>
80612
80613         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
80614
80615 2005-02-22  Jim Meyering  <jim@meyering.net>
80616
80617         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
80618         s/ifndef/ifdef/.
80619
80620 2005-02-20  Neil Conway  <neilc@samurai.com>
80621
80622         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
80623         returned by OSX/Darwin if the specified buffer is not large
80624         enough for the hostname.
80625
80626 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80627
80628         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
80629         pass it to _help, otherwise the latter coredumps trying to
80630         dereference state.root_argp.
80631
80632 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80633
80634         * modules/chdir-long (Depends-on): Add memrchr.
80635         * modules/memrchr (Files): Add lib/memrchr.h.
80636         (Include): "memrchr.h".
80637
80638 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80639
80640         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
80641
80642 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80643
80644         * lib/memrchr.h: New file.
80645         * lib/chdir-long.c: Include it.
80646         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
80647         Don't bother including stddef.h.
80648
80649 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
80650
80651         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
80652         inclusion.
80653         Include <sys/types.h>, for dev_t.
80654         (ME_DUMMY, ME_REMOTE): Move from here....
80655         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
80656         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
80657         Dmitry V. Levin.
80658         Include mountlist.h first, to test the interface.
80659
80660 2005-01-29  Bruno Haible  <bruno@clisp.org>
80661
80662         * lib/progname.c (program_name): Initialize.
80663         Needed when linking statically on MacOS X.
80664
80665 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80666
80667         Sync from coreutils.
80668         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
80669         (Depends-on): Add c-strtod.
80670         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
80671
80672 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80673
80674         Sync from coreutils.
80675         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
80676
80677         Remove files that are specific to coreutils.
80678         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
80679
80680 2005-01-28  Bruno Haible  <bruno@clisp.org>
80681
80682         * modules/javacomp: New file.
80683         * MODULES.html.sh (Java): Add javacomp.
80684
80685 2005-01-28  Bruno Haible  <bruno@clisp.org>
80686
80687         * m4/javacomp.m4: New file, from GNU gettext.
80688
80689 2005-01-28  Bruno Haible  <bruno@clisp.org>
80690
80691         * lib/javacomp.sh.in: New file, from GNU gettext.
80692         * lib/javacomp.h: New file, from GNU gettext.
80693         * lib/javacomp.c: New file, from GNU gettext.
80694
80695 2005-01-26  Simon Josefsson  <jas@extundo.com>
80696
80697         * lib/gai_strerror.c: Use GPL in header.
80698
80699 2005-01-26  Bruno Haible  <bruno@clisp.org>
80700
80701         * modules/javaexec: New file.
80702         * MODULES.html.sh (Java): Add javaexec.
80703
80704 2005-01-26  Bruno Haible  <bruno@clisp.org>
80705
80706         * m4/javaexec.m4: New file, from GNU gettext.
80707
80708 2005-01-26  Bruno Haible  <bruno@clisp.org>
80709
80710         * lib/javaexec.sh.in: New file, from GNU gettext.
80711         * lib/javaexec.h: New file, from GNU gettext.
80712         * lib/javaexec.c: New file, from GNU gettext.
80713
80714 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80715
80716         * modules/lchown (Depends-on): Remove lchown.h
80717
80718 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80719
80720         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
80721         must be defined if the header file was not found, in order
80722         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
80723
80724 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80725
80726         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
80727         initializers for struct pentry_state.
80728         (__argp_error): Check return value of __asprintf
80729         (__argp_failure): Translate error message
80730
80731         * lib/argp-parse.c: Removed braces around the expansion of N_()
80732
80733 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80734
80735         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
80736         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
80737         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
80738         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
80739         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
80740         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
80741         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
80742         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
80743         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
80744         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
80745         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
80746         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
80747         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
80748         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
80749         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
80750         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
80751         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
80752         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
80753         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
80754         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
80755         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
80756         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
80757         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
80758         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
80759         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
80760         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
80761         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
80762         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
80763         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
80764         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
80765         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
80766         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
80767         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
80768         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
80769         xstrtol.m4, xstrtoumax.m4, yesno.m4:
80770         Use an all-permissive copyright notice, recommended by RMS.
80771
80772 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
80773
80774         * modules/chdir-long (Depends-on): Remove mempcpy.
80775
80776 2005-01-21  Jim Meyering  <jim@meyering.net>
80777
80778         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
80779         same value as for Solaris 9.
80780
80781         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
80782         component length.  This included changing the parameter to be
80783         of type `char *' rather than `char const *'.
80784         * lib/chdir-long.h (chdir_long): Update prototype.
80785
80786         * lib/openat.c (fdopendir, fstatat): New functions.
80787         * lib/openat.h: Include headers required for use of DIR and struct
80788         stat.
80789         [AT_SYMLINK_NOFOLLOW]: Define.
80790         (fdopendir, fstatat): Add prototypes.
80791
80792 2005-01-21  Bruno Haible  <bruno@clisp.org>
80793
80794         * modules/classpath: New file.
80795         * MODULES.html.sh (Java): Add classpath.
80796
80797 2005-01-21  Bruno Haible  <bruno@clisp.org>
80798
80799         * lib/classpath.h: New file, from GNU gettext.
80800         * lib/classpath.c: New file, from GNU gettext.
80801
80802 2005-01-20  Simon Josefsson  <jas@extundo.com>
80803
80804         * modules/version-etc-fsf: New file.
80805
80806 2005-01-20  Simon Josefsson  <jas@extundo.com>
80807
80808         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
80809         * lib/version-etc.c: Remove version_etc_copyright.
80810         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
80811         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
80812
80813 2005-01-20  Simon Josefsson  <jas@extundo.com>
80814
80815         * lib/base64.h (isbase64): Add.
80816
80817         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
80818         using a unsigned prototype, don't inline.
80819         (base64_decode): Use it.
80820
80821 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80822
80823         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
80824         it.
80825
80826 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80827
80828         * lib/save-cwd.c (save_cwd): Remove code to support the case
80829         where fchdir is missing or flaky.
80830
80831 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80832
80833         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
80834
80835 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
80836
80837         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
80838         AC_LIBSOURCES now does this.
80839         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
80840         with new ullong_max module.
80841
80842 2005-01-19  Bruno Haible  <bruno@clisp.org>
80843
80844         * modules/sh-quote: New file.
80845         * MODULES.html.sh (Executing programs): Add sh-quote.
80846
80847 2005-01-19  Bruno Haible  <bruno@clisp.org>
80848
80849         * lib/sh-quote.h: New file, from GNU gettext.
80850         * lib/sh-quote.c: New file, from GNU gettext.
80851
80852 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80853
80854         Merge from coreutils.
80855         * m4/ullong_max.m4: New file.
80856         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
80857         (gl_MACROS): Assume localeconv exists.
80858
80859 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80860
80861         Merge changes from coreutils, as described below in several
80862         changelogs dated today.
80863
80864         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
80865         (O_DIRECTORY): Remove; not needed here, since "." must be
80866         a directory.  All uses removed.
80867         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
80868         universal on Suns, and we also need to test for IRIX.
80869         Revamp code to use 'if' rather than '#if'.
80870         Avoid unnecessary comparison of cwd->desc to 0.
80871
80872         * lib/utimens.c (futimens): Robustify the previous patch, by checking
80873         for known valid error numbers rather than observed invalid ones.
80874
80875 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80876
80877         * modules/ullong_max: New file.
80878
80879         * modules/chdir-long, modules/openat: New files.
80880         * modules/save-cwd (Depends-on): Depend on chdir-long.
80881         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
80882
80883 2005-01-18  Jim Meyering  <jim@meyering.net>
80884
80885         Merge from coreutils.
80886         * m4/chdir-long.m4, m4/openat.m4: New files.
80887         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
80888         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
80889         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
80890         is sane and DOES follow symlinks.  Besides, testing 20 different
80891         systems found no broken chown implementations.
80892         Prompted by a change in rsync's copy of this macro.
80893         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
80894
80895         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
80896
80897         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
80898         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
80899         NULL-means-set-to-current-time semantics.
80900         Remove temporary file immediately, rather than waiting
80901         for configure's at-exit trap code to do it.
80902
80903 2005-01-18  Jim Meyering  <jim@meyering.net>
80904
80905         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80906
80907         * lib/utimens.c (futimens): Account for the fact that futimes
80908         can also fail with errno == ENOSYS or errno == ENOENT.
80909         Patch from Dmitry V. Levin.
80910
80911         Change the name of the robust chdir function from chdir to chdir_long.
80912         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
80913         (restore_cwd): Use chdir_long, not chdir.
80914         * lib/chdir-long.c: Renamed from chdir.c.
80915         * lib/chdir-long.h: Renamed from chdir.h.
80916         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
80917         Hurd.
80918
80919 2005-01-18  Bruno Haible  <bruno@clisp.org>
80920
80921         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
80922         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
80923         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
80924         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
80925         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
80926         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
80927         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
80928         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
80929         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
80930         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
80931         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
80932         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
80933         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
80934         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
80935         Use an all-permissive copyright notice, recommended by RMS.
80936
80937 2005-01-18  Bob Proulx  <bob@proulx.com>
80938
80939         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
80940         simplify offsetof() macro construct to avoid compile failure with
80941         native HP-UX 11.0 ANSI C compiler.
80942
80943 2005-01-17  Bruno Haible  <bruno@clisp.org>
80944
80945         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
80946         redundant because stpncpy.m4 takes care of it.
80947
80948 2005-01-17  Bruno Haible  <bruno@clisp.org>
80949
80950         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
80951
80952 2005-01-17  Bruno Haible  <bruno@clisp.org>
80953
80954         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
80955         used.
80956
80957 2005-01-17  Bruno Haible  <bruno@clisp.org>
80958
80959         * lib/fwriteerror.h (fwriteerror): Change specification to include
80960         fclose.
80961         * lib/fwriteerror.c: Include <stdbool.h>.
80962         (fwriteerror): At the end, close the file stream. Record whether
80963         stdout was already closed.
80964
80965 2005-01-17  Bruno Haible  <bruno@clisp.org>
80966
80967         * lib/execute.c (environ): Declare if needed.
80968         * lib/pipe.c (environ): Likewise.
80969         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
80970
80971 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80972
80973         * modules/argp: Depend on vsnprintf
80974
80975 2005-01-10  Jim Meyering  <jim@meyering.net>
80976
80977         * modules/closeout (Depends-on): Add atexit.
80978
80979 2005-01-06  Bruno Haible  <bruno@clisp.org>
80980
80981         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
80982
80983 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80984
80985         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
80986         definitions to be after all include files, to avoid collisions.
80987         Problem reported by Bob Proulx.
80988
80989 2005-01-04  Jim Meyering  <jim@meyering.net>
80990
80991         Changes imported from coreutils.
80992         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
80993         as the mkstemp template, use a temporary directory and an
80994         8.3-friendly template to avoid trouble on systems like DJGPP.
80995         Reported by Juan M. Guerrero via Stepan Kasal.
80996         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
80997         close. Remove the temporary directory right away, rather than waiting
80998         for configure's at-exit trap code to do it.
80999         Suggestion from Stepan Kasal.
81000
81001 2005-01-01  Simon Josefsson  <jas@extundo.com>
81002
81003         * gnulib-tool: Print #include directives when --import'ing.
81004
81005 2004-12-28  Simon Josefsson  <jas@extundo.com>
81006
81007         * tests/test-base64.c: Include required header files.  Remove
81008         unused variables.
81009
81010 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81011
81012         * modules/error (Depends-on): Remove gettext.
81013
81014 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81015
81016         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
81017         not needed.  This removes a dependency on the gettext module.
81018         [defined _LIBC]: Do not include <libintl.h>; not needed.
81019
81020 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81021
81022         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
81023         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
81024
81025 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81026
81027         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
81028         HAVE_DECL_STRTOLD.
81029
81030 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81031
81032         * modules/getdate (Depends-on): Remove alloca-opt.
81033
81034 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81035
81036         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
81037
81038 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81039
81040         * lib/argp-parse.c: Include <stddef.h>.
81041         (alignof, alignto): New macros.
81042         (parser_init): Don't assume that void * is aligned sufficiently
81043         for struct option.
81044
81045         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
81046         need to extend the stack.
81047         (YYINITDEPTH): New macro, so that the initial stack isn't overly
81048         large.
81049
81050 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81051
81052         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
81053
81054 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81055
81056         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
81057         (2004-10-24) change.  Apparently this was a false alarm.
81058
81059         * modules/getdate: Depend on alloca-opt, not alloca.
81060
81061 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81062
81063         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
81064         Remove now-obsolete comment about AIX.
81065         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
81066         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
81067         (YYMAXDEPTH): New macro.
81068
81069 2004-12-18  Simon Josefsson  <jas@extundo.com>
81070
81071         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
81072
81073 2004-12-18  Bruno Haible  <bruno@clisp.org>
81074
81075         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
81076
81077 2004-12-18  Bruno Haible  <bruno@clisp.org>
81078
81079         * lib/fatal-signal.c (fatal_signals): Make non-const.
81080         (init_fatal_signals): New function.
81081         (uninstall_handlers, install_handlers): Ignore signals that were set to
81082         SIG_IGN.
81083         (at_fatal_signal): Call init_fatal_signals.
81084         (init_fatal_signal_set): Likewise. Ignore signals that were set to
81085         SIG_IGN.
81086         Reported by Paul Eggert.
81087
81088 2004-12-18  Bruno Haible  <bruno@clisp.org>
81089
81090         * doc/alloca.texi: New file.
81091         * doc/alloca-opt.texi: New file.
81092
81093 2004-12-17  Jim Meyering  <jim@meyering.net>
81094
81095         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
81096         Otherwise, install-sh could exit with improper exit status when
81097         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
81098
81099 2004-12-16  Simon Josefsson  <jas@extundo.com>
81100
81101         * tests/test-base64.c: Add license.
81102
81103 2004-12-15  Stepan Kasal  <address@hidden>
81104
81105         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
81106
81107 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
81108
81109         * modules/getcwd (Files): Add m4/d-ino.m4.
81110         Suggested by Mark D. Baushke.
81111
81112 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81113
81114         * lib/getdate.y (textint): New member "negative".
81115         (time_zone_hhmm): New function.
81116         Expect 14 shift-reduce conflicts, not 13.
81117         (o_colon_minutes): New rule.
81118         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
81119         (yylex): Set the "negative" member of signed numbers.
81120
81121 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81122
81123         * doc/getdate.texi (Time of day items, Time zone items):
81124         Describe new formats +00:00, UTC+00:00.
81125
81126 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81127
81128         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
81129         spurious "-l"s.  Problem reported by Stepan Kasal.
81130
81131 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
81132
81133         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
81134         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
81135
81136 2004-12-04  Simon Josefsson  <jas@extundo.com>
81137
81138         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
81139         Vandoorselaere <yoann@prelude-ids.org>.
81140
81141 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81142
81143         Changes imported from coreutils.
81144         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
81145         exist.
81146         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
81147
81148 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81149
81150         Changes imported from coreutils.
81151         * lib/hard-locale.c: Assume <locale.h> exists.
81152         Include "strdup.h".
81153         (GLIBC_VERSION): New macro.
81154         (hard_locale): Assume setlocale exists.
81155         Rewrite to avoid #ifdef.
81156         Use strdup rather than malloc + strcpy.
81157         * lib/human.c: Assume <locale.h> exists.
81158         (human_readable): Assume localeconv exists.
81159
81160 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81161
81162         * modules/hard-locale (Depends-on): Add strdup.
81163
81164 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
81165
81166         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
81167         convert T2, not T.  (Imported from libc.)
81168
81169 2004-11-30  Simon Josefsson  <jas@extundo.com>
81170
81171         * modules/restrict (License): Change to LGPL.
81172
81173 2004-11-30  Simon Josefsson  <jas@extundo.com>
81174
81175         * m4/restrict.m4: Add copyright and copying conditions.
81176
81177 2004-11-30  Simon Josefsson  <jas@extundo.com>
81178
81179         * m4/base64.m4: New file.
81180
81181 2004-11-30  Simon Josefsson  <jas@extundo.com>
81182
81183         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
81184         base64.
81185
81186         * tests/test-base64.c: New file.
81187
81188         * modules/base64: New file.
81189
81190 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81191
81192         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
81193         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
81194
81195         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
81196
81197 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81198
81199         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
81200         (__getcwd.c): Don't restore errno; glibc doesn't.
81201         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
81202         first, falling back to our code only if its results look suspicious.
81203         Ensure that the resulting buffer is only as large as necessary.
81204
81205         * lib/readutmp.c: Include readutmp.h first.
81206         Include <errno.h>, since readutmp.h no longer does that.
81207         * lib/readutmp.h: Don't include <errno.h>,
81208         <sys/param.h>, <time.h>; not needed to establish interface.
81209         (errno): Remove decl.
81210         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
81211         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
81212         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
81213
81214 2004-11-28  Simon Josefsson  <jas@extundo.com>
81215
81216         * lib/base64.h, base64.c: New file.
81217
81218 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
81219
81220         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
81221
81222 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
81223
81224         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
81225         (Depends-on): Remove pathmax, same.  Add mempcpy.
81226         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
81227         (Makefile.am): Append getcwd.h to lib_SOURCES.
81228         (Include): Add getcwd.h.
81229         (Maintainer): Change from Jim Meyering to "all, glibc",
81230         since getdate now uses intended-for-glibc code.
81231         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
81232         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
81233
81234 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81235
81236         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
81237         HP's ANSI C compiler.
81238         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
81239         Declaring int functions causes warnings on some modern systems and
81240         shouldn't be needed to compile on ancient ones.
81241         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
81242         defined.
81243
81244         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
81245         with the following changes.
81246         (__set_errno): Parenthesize properly.
81247         Include <stdbool.h>.
81248         (MIN, MAX, MATCHING_INO): New macros.
81249         (__getcwd): Define with prototype, not K&R form.
81250         Use heuristics to allocate default buffer on stack if possible.
81251         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
81252         behavior, and to avoid the PATH_MAX limit when computing
81253         ../../../../...
81254         Use MATCHING_INO to compare inode number to file.
81255         Check for arithmetic overflow in size calculations.
81256         Fix bug in reallocation of dot array that caused getcwd to fail
81257         on directories nested deeper than 75.
81258         Be more careful about saving errno on error.
81259         Do not use realloc; use only free+malloc, as this is a bit
81260         more flexible and avoids a needless copy operation.
81261         Do not inspect st_dev and st_ino for symbolic links; POSIX
81262         doesn't specify the latter.
81263         Check for closedir errors.
81264         Avoid needless casts.
81265         Use "#ifdef weak_alias" around weak_alias, to be like other
81266         glibc code.
81267         The following changes to getcwd.c have effect only when used in
81268         gnulib; they have no effect inside glibc proper.
81269         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
81270         as alloca isn't used.
81271         (alloca, __alloca): Likewise.
81272         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
81273         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81274         unconditionally, as gnulib assumes C89 or better.
81275         Do not include <sys/param.h>.
81276         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
81277         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
81278         better.
81279         (NULL) [!defined NULL]: Remove; we assume C89 or better.
81280         Include <dirent.h> in a way that is compatible with modern Autoconf.
81281         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
81282         New macros, if not already defined.
81283         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
81284         Use "_LIBC", not "defined _LIBC", for consistency.
81285         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
81286         a mempcpy module.
81287         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
81288         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
81289         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
81290         credit only to Jim Meyering and adjust the copyright dates.
81291         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
81292         <stdlib.h>, <unistd.h>, "pathmax.h".
81293         Instead, include "xgetcwd.h" (first) and "getcwd.h".
81294         (INITIAL_BUFFER_SIZE): Remove.
81295         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
81296
81297 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81298
81299         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
81300         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
81301         Use the _ONCE methods, for efficiency.
81302         Check for fcntl.h.  In test program, include <errno.h>
81303         and <fcntl.h> if available.  Remove old K&R cruft from
81304         test program.  Check for common errors in GNU/Linux,
81305         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
81306         don't do AC_LIBOBJ, as that's getcwd.m4's job.
81307         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
81308         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
81309         name accordingly.
81310         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
81311         accommodate new getcwd.c.
81312         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
81313         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
81314         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
81315         that's all we need now.
81316
81317 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81318
81319         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
81320         argp-parse.c depends on getopt internals, that means we should
81321         always use our getopt, to be on the safe side.
81322         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
81323         order not to spoil the result of an eventual previous invocation
81324         of gl_GETOPT_SUBSTITUTE.
81325
81326 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81327
81328         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
81329         redefinition warnings. To avoid them, include the defines
81330         in `#if !defined __need_getopt ... #endif'. The only place
81331         where __getopt_argv_const is used is in definitions
81332         of getopt_long and getopt_long_only below, which are as well
81333         protected by `#ifndef __need_getopt'.
81334         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
81335         __need_getopt after including <stdio.h> and <unistd.h> These
81336         headers might have defined it.
81337
81338 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81339
81340         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
81341
81342 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81343
81344         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
81345         (futimens): New function, which uses futimes if available.
81346         (futimens, utimens): Support timespec==NULL, with same semantics
81347         as utime and utimens.
81348         * lib/utimens.h (futimens): New decl.
81349
81350 2004-11-23  Jim Meyering  <jim@meyering.net>
81351
81352         * lib/getopt_.h: Remove trailing blanks.
81353
81354 2004-11-23  Jim Meyering  <jim@meyering.net>
81355
81356         * lib/__fpending.c: Add comment.
81357
81358 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
81359
81360         * modules/canonicalize (Depends-on): Add xreadlink.
81361         Problem reported by James Youngman.
81362
81363 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
81364
81365         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
81366         New macros.
81367         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
81368         optopt): Use them instead of invoking ## directly; otherwise, the
81369         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
81370
81371 2004-11-19  Bruno Haible  <bruno@clisp.org>
81372
81373         * lib/strtok_r.c: Move comments from here...
81374         * lib/strtok_r.h: ... to here.
81375
81376 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81377
81378         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
81379         implementations that mishandle size_t overflow.
81380
81381 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81382
81383         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
81384         might fail.  Problem reported by Yoann Vandoorselaere.
81385         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
81386         implementations that mishandle size_t overflow.
81387
81388 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81389
81390         * modules/canon-host (Depends-on): Add strdup.
81391
81392 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81393
81394         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
81395
81396 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81397
81398         * lib/canon-host.c: Include "strdup.h".
81399         (canon_host): Use getaddrinfo if available, so that IPv6 works.
81400         Use strdup instead of malloc/strcpy to duplicate strings.
81401
81402         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
81403         (human_space_before_unit): New constant.
81404         * lib/human.c (human_readable): Support it.
81405
81406         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
81407         (xgetcwd): Set errno correctly when failing.
81408         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
81409         the failure is actually due to a PATH_MAX problem.
81410
81411         Further getopt changes to make it more likely that glibc will
81412         buy the changes back.
81413         * lib/getopt.c (POSIXLY_CORRECT): New constant.
81414         (getopt): Use it, so to preserve glibc semantic
81415         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
81416         when compiling for libc.
81417         * lib/getopt_.h (__getopt_argv_const): Bring it back.
81418         (getopt_long, getopt_long_only): Use it.
81419
81420         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81421         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
81422         (getopt): Argv is now char * const *, as per standard.
81423         (_getopt_internal_r, _getopt_internal): Argv is now char **,
81424         not char *__getopt_argv_const *.
81425         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81426         _getopt_long_only_r): Likewise.
81427         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
81428         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81429         _getopt_long_r, _getopt_long_only_r): Likewise.
81430         * lib/getopt_.h (__getopt_argv_const): Remove.
81431         (getopt): Argv is now char * const *, as per standard.
81432
81433         * lib/getdate.y (tORDINAL): New token.
81434         (day, relunit): Allow it for relative times.
81435         (relative_time_table): Use tORDINAL for ordinals.
81436
81437 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81438
81439         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
81440         Document that "second" isn't allowed as an ordinal number.
81441
81442 2004-11-16  Jim Meyering  <jim@meyering.net>
81443
81444         * modules/closeout (Depends-on): Add fpending.
81445
81446 2004-11-15  Jim Meyering  <jim@meyering.net>
81447
81448         * lib/closeout.c: Include "__fpending.h" once again.
81449         Include <stdbool.h>.
81450         (close_stdout): Don't fail just because stdout was closed initially,
81451         since some programs don't write to stdout in the normal course of
81452         operation (other than --version and --help), and we don't want this
81453         function to make e.g. `touch file >&-' fail.
81454         But do fail if it was closed and someone has tried to write to it.
81455         E.g., `printf foo >&-' must fail.
81456
81457 2004-11-13  Jim Meyering  <jim@meyering.net>
81458
81459         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
81460
81461 2004-11-12  Simon Josefsson  <jas@extundo.com>
81462
81463         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
81464         small doc fix is still pending.
81465
81466 2004-11-11  Simon Josefsson  <jas@extundo.com>
81467
81468         * modules/strtok_r: New file.
81469
81470         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81471         strtok_r.
81472
81473 2004-11-11  Simon Josefsson  <jas@extundo.com>
81474
81475         * m4/strtok_r.m4: New file.
81476
81477         * m4/getopt.m4: Replace opterr.
81478
81479 2004-11-11  Simon Josefsson  <jas@extundo.com>
81480
81481         * lib/strtok_r.h, strtok_r.c: New file.
81482
81483 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81484
81485         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
81486         of replacing opterr, getopt, etc.  This should handle the
81487         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
81488
81489 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81490
81491         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
81492         we can stop lying to compilers about the constness of argv when we
81493         are compiled outside glibc.
81494         (getopt, getopt_long, getopt_long_only): Use it.
81495         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81496         _getopt_internal, getopt): Likewise.
81497         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81498         _getopt_long_only_r): Likewise.
81499         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81500         _getopt_long_r, _getopt_long_only_r): Likewise.
81501
81502         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
81503         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
81504         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
81505         the other external symbols.
81506         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
81507         declaration, since the above renaming now works around collisions.
81508
81509 2004-11-11  Jim Meyering  <jim@meyering.net>
81510
81511         * lib/linebreak.c: Remove trailing blanks.
81512         * lib/alloca_.h: Likewise.
81513         * lib/acosl.c: Likewise.
81514         * lib/euidaccess.c: Likewise.
81515         * lib/allocsa.h: Likewise.
81516
81517 2004-11-10  Simon Josefsson  <jas@extundo.com>
81518
81519         * m4/getaddrinfo.m4: New file.
81520
81521 2004-11-10  Simon Josefsson  <jas@extundo.com>
81522
81523         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
81524
81525 2004-11-10  Simon Josefsson  <jas@extundo.com>
81526
81527         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81528         getaddrinfo.
81529
81530         * modules/getaddrinfo: New file.
81531
81532 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81533
81534         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
81535
81536 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81537
81538         * lib/mktime.c (SHR): New macro, which is a portable
81539         substitute for >> that should work even on Crays.
81540         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
81541         Problem reported by Mark D. Baushke in
81542         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
81543         * lib/getdate.y (SHR): Likewise.
81544         (tm_diff): Use it.
81545         * lib/strftime.c (SHR): Likewise.
81546         (tm_diff): Use it.
81547         * lib/quotearg.c (struct quoting_options): Use unsigned int for
81548         quote_these_too, so that right shifts are well defined.  All uses
81549         changed.
81550
81551 2004-11-10  Jim Meyering  <jim@meyering.net>
81552
81553         Ensure that no close failure goes unreported.
81554         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
81555         return early when it seems there's nothing to flush.
81556         Don't include __fpending.h.
81557
81558 2004-11-10  Jim Meyering  <jim@meyering.net>
81559
81560         * modules/closeout (Depends-on): Remove fpending.
81561
81562 2004-11-10  Jim Meyering  <jim@meyering.net>
81563
81564         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
81565
81566 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81567
81568         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
81569         gl_FUNC_STRFTIME.
81570         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
81571         and AC_REQUIRE when possible, to avoid duplicate checks.
81572         Check for <wchar.h>.
81573
81574 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81575
81576         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
81577
81578 2004-11-09  Bruno Haible  <bruno@clisp.org>
81579
81580         * m4/sockpfaf.m4: New file.
81581
81582 2004-11-05  Bruno Haible  <bruno@clisp.org>
81583
81584         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
81585         Reported by Mark D. Baushke <mdb@cvshome.org>.
81586
81587 2004-11-04  Bruno Haible  <bruno@clisp.org>
81588
81589         2004-09-11  Bruno Haible  <bruno@clisp.org>
81590                 * allocsa.valgrind: New file.
81591         2004-02-06  Bruno Haible  <bruno@clisp.org>
81592                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
81593                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
81594                 Reported by Christopher Seip <chris.seip@hp.com>.
81595
81596 2004-11-04  Bruno Haible  <bruno@clisp.org>
81597
81598         * modules/allocsa (Files): Add lib/allocsa.valgrind.
81599         (Makefile.am): Distribute it.
81600
81601 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
81602
81603         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
81604         with errno == ERANGE if the buffer is too small.
81605         Problem reported by Mark D. Baushke.
81606
81607 2004-11-03  Albert Chin  <china@thewrittenword.com>
81608             Paul Eggert  <eggert@cs.ucla.edu>
81609
81610         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
81611         equivalent, substitute $ac_type for equivalent type rather than
81612         blindly using uint32_t *always* which won't work if uint32_t is not
81613         available.  Define _UINT32_T to work around typedef of uint32_t if
81614         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
81615         2.5.1.
81616
81617 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81618
81619         * m4/jm-macros.m4: Sync from coreutils.
81620         (gl_MACROS): Check for mbrlen, for pathchk.
81621         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
81622
81623 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81624
81625         * lib/xreadlink.c (MAXSIZE): New macro.
81626         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
81627         size does not exceed MAXSIZE.  Avoid cast.
81628         As suggested by Mark D. Baushke in
81629         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
81630         if readlink fails with buffer size just under MAXSIZE, try again
81631         with MAXSIZE.
81632
81633 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81634
81635         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
81636
81637 2004-11-02  Derek R. Price  <derek@ximbiot.com>
81638         and  Paul Eggert  <eggert@cs.ucla.edu>
81639
81640         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
81641         (get_date): Overparenthesize to avoid GCC warning.
81642
81643 2004-11-02  Bruno Haible  <bruno@clisp.org>
81644
81645         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
81646         returns void.
81647
81648 2004-11-02  Bruno Haible  <bruno@clisp.org>
81649
81650         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
81651         function returns void.
81652
81653 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81654
81655         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
81656         fflush_unlocked, flockfile, funlockfile, funlockfile,
81657         fputs_unlocked, putc_unlocked.
81658
81659 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81660
81661         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81662         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
81663         already declared.
81664
81665 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81666
81667         * modules/getdate (Files): Add doc/getdate.texi.
81668         (Depends-on): Add setenv, xalloc.
81669
81670 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81671
81672         * lib/getdate.y: Add support for TZ="foo" within a date string.
81673         Fix some bugs near time_t boundaries.  Reject dates with
81674         out-of-range components, e.g., "Sept 31".
81675         Include <stdlib.h>, "setenv.h", "xalloc.h".
81676         (ISDIGIT_LOCALE): Remove; unused.
81677         Note that the TZ and time functions used here are not reentrant.
81678         (mktime_ok, get_tz): New functions.
81679         (TZBUFSIZE): New constant.
81680         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
81681         This requires that we sometimes generate our own TZ="XXX..." setting.
81682
81683 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81684
81685         * doc/getdate.texi: New file, from coreutils with modifications for
81686         the new TZ parsing.
81687
81688 2004-10-27  Derek R. Price  <derek@ximbiot.com>
81689
81690         * lib/mktime.c (not_equal_tm): Remove redundant check.
81691
81692 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81693
81694         * modules/regex (lib_SOURCES): Add regex.c.
81695         Reported by James Youngman in
81696         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
81697
81698 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81699
81700         * lib/getdate.y: Use Bison 1.875 features, and some minor
81701         code cleanups.  This change does not affect semantics.
81702         Don't include <stdlib.h>; no longer needed.
81703         Don't include unlocked-io.h; only the "#if TEST" code uses
81704         stdio, and performance isn't crucial there.
81705         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
81706         Bison 1.875 features as described below.
81707         All uses of "PC." replaced by "pc->".
81708         (YYSTYPE): Add a forward declaration.
81709         (yylex, yyerror): Use full prototypes in forward decls.
81710         Use "%pure-parser" rather than obsolescent "%pure_parser".
81711         Use %parse-param and %lex-param instead of obsolescent
81712         YYPARSE_PARAM and YYLEX_PARAM.
81713         (meridian_table, month_and_day_table, time_units_table,
81714         relative_time_table, time_zone_table, military_table,
81715         lookup_zone, lookup_word, get_date):
81716         Use NULL instead of 0 where appropriate.
81717         (to_hour): Avoid abort (), to avoid a dependency on
81718         stdlib.h.
81719         (yyerror, yylex): Now accepts parser_control * arg.
81720         (main) [TEST]: Use '\0' rather than 0 for char.
81721
81722 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81723
81724         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
81725
81726 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81727
81728         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
81729         It's now the caller's responsibility to handle the case where
81730         !HAVE_GETPAGESIZE && !defined getpagesize.
81731
81732         * lib/mktime.c (leapyear): Arg is long int, not int.
81733
81734 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
81735
81736         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
81737
81738 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81739
81740         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
81741         missing.  Problem reported by James Youngman.
81742
81743 2004-10-16  Simon Josefsson  <jas@extundo.com>
81744
81745         * gnulib-tool: Fix comments.  Fix parse problem.
81746         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
81747
81748 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
81749
81750         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
81751         implementation of getopt_long.  Problem reported by Alexander Taler in:
81752         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
81753
81754 2004-10-15  Bruno Haible  <bruno@clisp.org>
81755
81756         * gnulib-tool: Untabify. Initialize supplied_libname.
81757         (func_usage): More homogenous output.
81758         (func_modules_transitive_closure, func_modules_to_filelist,
81759         func_emit_lib_Makefile_am): New functions.
81760         (func_import): New function, extracted from big case statement. Use
81761         func_get_license, func_modules_transitive_closure,
81762         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
81763         opt_lgpl. Don't use test -a, as it's not portable.
81764         (func_create_testdir): Use func_modules_transitive_closure,
81765         func_modules_to_filelist, func_emit_lib_Makefile_am.
81766
81767 2004-10-15  Bruno Haible  <bruno@clisp.org>
81768
81769         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
81770
81771 2004-10-15  Bruno Haible  <bruno@clisp.org>
81772
81773         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
81774         the portions belonging to each module.
81775         Suggested by Derek Robert Price <derek@ximbiot.com>.
81776
81777 2004-10-12  Simon Josefsson  <jas@extundo.com>
81778
81779         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81780         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
81781         to real functions.
81782
81783 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81784
81785         * modules/vsnprintf: New file.
81786
81787 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81788
81789         * m4/vsnprintf.m4: New file.
81790
81791 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81792
81793         * lib/vsnprintf.h: New file.
81794         * lib/vsnprintf.c: New file.
81795
81796 2004-10-11  Bruno Haible  <bruno@clisp.org>
81797
81798         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
81799         vsnprintf.
81800
81801 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81802
81803         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
81804
81805 2004-10-07  Bruno Haible  <bruno@clisp.org>
81806
81807         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
81808         fits into the provided buffer.
81809
81810 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81811
81812         * lib/diacrit.c, diacrit.h: Add GPL notice.
81813
81814         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
81815         notice.
81816         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
81817         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
81818         This avoids a potential constant-folding bug.
81819
81820 2004-10-05  Bruno Haible  <bruno@clisp.org>
81821
81822         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
81823         for the declaration of strsep.
81824
81825 2004-10-05  Bruno Haible  <bruno@clisp.org>
81826
81827         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
81828
81829 2004-10-04  Simon Josefsson  <jas@extundo.com>
81830
81831         * modules/memmem: New file.
81832         * tests/test-memmem.c: New file.
81833         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
81834
81835 2004-10-04  Simon Josefsson  <jas@extundo.com>
81836
81837         * m4/memmem.m4: New file.
81838
81839 2004-10-04  Simon Josefsson  <jas@extundo.com>
81840
81841         * lib/memmem.h: New file.
81842         * lib/memmem.c: New file, taken from glibc.
81843
81844 2004-10-04  Simon Josefsson  <jas@extundo.com>
81845
81846         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
81847         '#ifdef USE_UNLOCKED_IO'.
81848
81849 2004-10-04  Simon Josefsson  <jas@extundo.com>
81850
81851         * config/srclist.txt: Add memmem from glibc.
81852
81853 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81854
81855         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
81856
81857         * modules/argmatch, modules/argp, modules/closeout, modules/error,
81858         modules/exclude, modules/getdate, modules/getline,
81859         modules/getndelim2, modules/getpass, modules/getpass-gnu,
81860         modules/getusershell, modules/linebuffer, modules/md5,
81861         modules/mountlist, modules/posixtm, modules/readtokens,
81862         modules/readutmp, modules/regex, modules/sha1,
81863         modules/version-etc, modules/yesno:
81864         Remove dependency on unlocked-io.
81865
81866 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81867
81868         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
81869
81870         * m4/unlocked-io.m4: Add copyright notice.
81871         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
81872
81873 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81874
81875         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
81876         * lib/xmalloc.c (xmemdup): Likewise.
81877         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
81878         XFREE): Remove these long-obsolescent macros.
81879         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
81880         * lib/xstrdup.c: Remove.
81881
81882         * lib/regex.c (re_comp): Cast gettext return value to char *,
81883         Problem reported by Martin Neitzel via Mark D. Baushke.
81884
81885 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81886
81887         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
81888         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
81889         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
81890         regex.c, sha1.c, version-etc.c, yesno.c:
81891         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
81892         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
81893         the includer's responsibility.
81894
81895         Sync from coreutils.
81896
81897         * lib/modechange.c (mode_compile): Don't decrement a pointer that
81898         points to the start of a string, as the C Standard says the
81899         resulting behavior is undefined.
81900
81901         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
81902         simple -> simple_backups, numbered_existing ->
81903         numbered_existing_backups, numbered -> numbered_backups
81904         to avoid shadowing problems.  All uses changed.
81905         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
81906         * lib/backupfile.c (check_extension, numbered_backup):
81907         Rename locals to avoid shadowing 'basename'.
81908         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
81909         once.
81910
81911         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
81912         * lib/.cvsignore: Add getopt.h.
81913
81914 2004-10-04  Bruno Haible  <bruno@clisp.org>
81915
81916         * modules/README: New file.
81917         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
81918         not a module.
81919
81920 2004-10-02  Jim Meyering  <jim@meyering.net>
81921
81922         * lib/dirfd.h, getpagesize.h: Add copyright notice.
81923
81924 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81925
81926         * modules/strsep: New file.
81927
81928 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81929
81930         * m4/strsep.m4: New file.
81931
81932 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81933
81934         * lib/strsep.h: New file.
81935         * lib/strsep.c: New file.
81936
81937 2004-10-01  Simon Josefsson  <jas@extundo.com>
81938
81939         * lib/snprintf.c (snprintf): Handle size==0.
81940
81941 2004-10-01  Simon Josefsson  <jas@extundo.com>
81942             Bruno Haible  <bruno@clisp.org>
81943
81944         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
81945         (snprintf): Declare 'args'.
81946
81947 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
81948
81949         * lib/snprintf.c: Remove comments as to why each header is needed.
81950
81951 2004-10-01  Bruno Haible  <bruno@clisp.org>
81952
81953         * MODULES.html.sh: Add strsep.
81954
81955 2004-09-30  Simon Josefsson  <jas@extundo.com>
81956
81957         * modules/snprintf: New file.
81958
81959 2004-09-30  Simon Josefsson  <jas@extundo.com>
81960
81961         * m4/snprintf.m4: New file.
81962
81963 2004-09-30  Simon Josefsson  <jas@extundo.com>
81964
81965         * lib/snprintf.h, lib/snprintf.c: New files.
81966
81967 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81968
81969         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
81970         (hol_entry_help): Never translate an empty string.
81971         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
81972         * lib/argp.h (OPTION_NO_TRANS): New option.
81973
81974 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81975
81976         * modules/argp (Maintainer): Replace Simon Josefsson
81977         by Sergey Poznyakoff.
81978
81979 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81980
81981         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
81982         changes merged back into glibc.
81983
81984 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81985
81986         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
81987
81988 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81989
81990         * lib/xvasprintf.c: Include xalloc.h.
81991         (xvasprintf): Use xalloc_die, not xmalloc_die.
81992
81993 2004-09-29  Bruno Haible  <bruno@clisp.org>
81994
81995         * modules/alloca-opt: New file, derived from modules/alloca.
81996         * modules/allocsa: Depend on alloca-opt instead of alloca.
81997         * modules/setenv: Likewise.
81998         * modules/vasnprintf: Likewise.
81999         * MODULES.html.sh: Add alloca-opt.
82000
82001 2004-09-28  Simon Josefsson  <jas@extundo.com>
82002
82003         * gnulib-tool: New parameter --lgpl, to asseert that modules are
82004         LGPL, and to replace license template from GPL to LGPL.
82005
82006 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82007
82008         * modules/dummy: Change license to LGPL.
82009
82010 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82011
82012         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
82013
82014 2004-09-24  Simon Josefsson  <jas@extundo.com>
82015
82016         * modules/minmax (License): Change from GPL to LGPL.
82017
82018 2004-09-23  Simon Josefsson  <jas@extundo.com>
82019
82020         * gnulib-tool (--import): Typo.
82021
82022 2004-09-23  Simon Josefsson  <jas@extundo.com>
82023
82024         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
82025
82026 2004-09-22  Bruno Haible  <bruno@clisp.org>
82027
82028         * modules/*: Add 'License' field.
82029         * gnulib-tool: Accept --extract-license option.
82030         (func_get_license): New function.
82031
82032 2004-09-21  Bruno Haible  <bruno@clisp.org>
82033
82034         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
82035         Reported by Simon Josefsson.
82036
82037 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82038
82039         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
82040         gl_AC_TYPE_LONG_LONG.
82041
82042 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82043
82044         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
82045
82046 2004-09-18  Simon Josefsson  <jas@extundo.com>
82047         and  Paul Eggert  <eggert@cs.ucla.edu>
82048
82049         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
82050         calls with autoreconf.  Define GL_LIB.
82051
82052 2004-09-14  Karl Berry  <karl@gnu.org>
82053
82054         * config/srclist.txt: unsync setenv.c, sigh.
82055
82056 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82057
82058         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
82059         Problem reported by Bruno Haible in:
82060         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
82061
82062 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82063
82064         * config/srclist.txt: Comment out argp-pvh.c.
82065
82066 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
82067
82068         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
82069         in case some system header has #define'd it.  Problem reported by
82070         Soeren D. Schulze in
82071         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
82072
82073 2004-09-09  Karl Berry  <karl@gnu.org>
82074
82075         * regex.[ch]: delete from the root.  These were supposed to be
82076                 synced with emacs cvs, but this has not happened for about
82077                 a year, and anyway nothing else uses emacs regex.[ch].
82078                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
82079                 lib/regex[.ch] is untouched.
82080
82081 2004-09-09  Bruno Haible  <bruno@clisp.org>
82082
82083         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
82084
82085 2004-09-09  Bruno Haible  <bruno@clisp.org>
82086
82087         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
82088         modifications.
82089         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
82090
82091 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82092
82093         * modules/xvasprintf: New file.
82094         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
82095
82096 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82097
82098         * lib/xvasprintf.h: New file.
82099         * lib/xvasprintf.c: New file.
82100         * lib/xasprintf.c: New file.
82101
82102 2004-09-08  Bruno Haible  <bruno@clisp.org>
82103
82104         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
82105
82106 2004-09-08  Bruno Haible  <bruno@clisp.org>
82107
82108         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
82109         length is > INT_MAX.
82110         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
82111         more.
82112
82113 2004-09-08  Bruno Haible  <bruno@clisp.org>
82114
82115         * lib/stdint_.h: New file, taken from GNU clisp.
82116
82117 2004-09-08  Bruno Haible  <bruno@clisp.org>
82118             Oskar Liljeblad  <oskar@osk.mine.nu>
82119
82120         * modules/stdint: New file.
82121         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
82122
82123 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82124
82125         Import from coreutils.
82126         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
82127         strings on unbounded length.  alloca's performance benefits aren't
82128         that important here.
82129         (V_STRDUP): Remove.
82130         (parse_with_separator): New function, with most of the internals
82131         of the old parse_user_spec.  Allow user to omit both user and group,
82132         for compatibility with FreeBSD.
82133         Clone only the user name, not the entire spec.
82134         Do not set *uid, *gid unless entirely successful.
82135         Avoid memory leak in some failing cases.
82136         Fix regression for USER.GROUP reported by Dmitry V. Levin in
82137         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
82138         (parse_user_spec): Rewrite to use parse_with_separator.
82139
82140 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82141
82142         * modules/userspec: Don't depend on alloca.
82143
82144 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82145
82146         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
82147
82148 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82149
82150         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
82151         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
82152         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
82153
82154 2004-08-16  Simon Josefsson  <jas@extundo.com>
82155
82156         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
82157         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
82158         Add --dry-run for --import.
82159         Let user provided command line parameters override configure.ac
82160         settings.
82161
82162 2004-08-12  Simon Josefsson  <jas@extundo.com>
82163
82164         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
82165         as discussed with Paul Eggert in threads rooted at
82166         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
82167         and
82168         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
82169         Before, the test was empty, and relied on ELIDE_CODE in source
82170         code.)
82171         (gl_PREREQ_GETOPT): New macro.
82172         (gl_GETOPT): Use them.
82173
82174 2004-08-12  Simon Josefsson  <jas@extundo.com>
82175
82176         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
82177         * lib/getopt_.h: Renamed from getopt.h.
82178
82179 2004-08-12  Simon Josefsson  <jas@extundo.com>
82180
82181         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
82182         Change default library name from libfoo to libgnu.
82183         Now, if you have a configure.ac that says:
82184                 gl_SOURCE_BASE(gl)
82185                 gl_M4_BASE(gl/m4)
82186                 gl_MODULES(error getopt etcetera)
82187                 gl_INIT
82188         you can import all you need by running:
82189                 ../gnulib/gnulib-tool --import
82190
82191         * modules/getopt (Files): Rename getopt.h to getopt_.h.
82192         (Makefile.am): Rewrite, use logic from argz.
82193         (Include): Use <getopt.h> instead of "getopt.h".
82194
82195 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82196
82197         * modules/argp (Files): Add m4/unlocked-io.m4.
82198         (Depends-on): Add extensions.
82199
82200 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82201
82202         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
82203         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
82204         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
82205         Check for program_invocation_name, program_invocation_short_name,
82206         flockfile, funlockfile, features.h, _getopt_long_only_r.
82207
82208 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82209
82210         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
82211         its complicated substitute.
82212         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
82213         and program_invocation_name.
82214         (__argp_basename) [!_LIBC]: Remove; the only use was
82215         replaced by its body.
82216         (__argp_short_program_name): Change condition from
82217         !defined __argp_short_program_name to
82218         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
82219         to match argp-namefrob.h.
82220         (__argp_failure): Don't assume strerror_r returns char *.
82221         * lib/argp-parse.c (N_): Define unconditionally.
82222         (argp_default_options): Fill out initializers with 0 to avoid
82223         gcc warnings.
82224
82225 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82226
82227         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
82228         getopt1.c.
82229
82230 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82231
82232         Merge from coreutils.
82233
82234         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
82235
82236         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
82237         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
82238
82239 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82240
82241         Merge from coreutils.
82242
82243         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
82244         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
82245         for Reliant Unix 5.43.
82246
82247         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
82248         (union fooround): Use uintmax_t, not long int.
82249         The rest is a merge from libc:
82250         [defined _LIBC]: Include <shlib-compat.h>.
82251         (_obstack) [defined _LIBC]: Remove after 2.3.4.
82252
82253         * lib/settime.c (settime): Recode to avoid warning with
82254         Sun Forte C 6U2.
82255
82256         * lib/strverscmp.c: Convert to UTF-8.
82257
82258 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82259
82260         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82261         m4/uintmax_t.m4.
82262
82263 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82264
82265         * modules/xalloc-die: New file.
82266         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
82267
82268         * modules/md5 (Files): Add m4/uint32_t.m4.
82269         * modules/sha1: Renamed from modules/sha.
82270         (Files):
82271         Rename lib/sha.h to lib/sha1.h.
82272         Rename lib/sha.c to lib/sha1.c.
82273         Rename m4/sha.m4 to m4/sha1.m4.
82274         (lib_SOURCES): Likewise.
82275         (configure.ac): Rename gl_SHA to gl_SHA1.
82276         (Include): sha.h -> sha1.h.
82277
82278 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82279
82280         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
82281         * m4/sha1.m4: Renamed from sha.m4.
82282         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
82283
82284 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82285
82286         * lib/obstack.h (obstack_empty_p):
82287         Don't assume that chunk->contents is suitably aligned.
82288         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
82289         Likewise. Problem reported by Benno in
82290         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
82291
82292         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
82293         readable.  This could be improved further but it'd take some work.
82294
82295 2004-08-08  Simon Josefsson  <jas@extundo.com>
82296
82297         * modules/xgethostname (Depends-on): Remove exit and error (not
82298         used).
82299
82300         * modules/getpass-gnu: Add getpass.h.
82301         (Depends-on): Add stdbool.
82302         * modules/getpass: Add getpass.h.
82303
82304 2004-08-08  Simon Josefsson  <jas@extundo.com>
82305
82306         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
82307         Check getpass declaration.
82308
82309 2004-08-08  Simon Josefsson  <jas@extundo.com>
82310
82311         * lib/xgethostname.c: Don't include error.h (not used).
82312
82313         * lib/getpass.h: Add.
82314         * lib/getpass.c: Include getpass.h first.
82315
82316 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
82317
82318         * lib/xalloc-die.c: New file.
82319         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
82320         All uses removed.
82321         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
82322         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
82323         xalloc-die.c.
82324         (_, N_, xalloc_die): Move to xalloc-die.c.
82325         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
82326         so that we needn't mess with xalloc_msg_memory_exhausted.
82327
82328         * lib/sha1.h: Renamed from sha.h.
82329         (SHA1_H): Renamed from _SHA_H.
82330         (sha1_ctx): Renamed from sha_ctx.
82331         (sha1_init_ctx): Renamed from sha_init_ctx.
82332         (sha1_process_block): Renamed from sha_process_block.
82333         (sha1_process_bytes): Renamed from sha_process_bytes.
82334         (sha1_finish_ctx): Renamed from sha_finish_ctx.
82335         (sha1_read_ctx): Renamed from sha_read_ctx.
82336         (sha1_stream): Renamed from sha_stream.
82337         (sha1_buffer): Renamed from sha_buffer.
82338         * lib/sha1.c: Likewise; renamed from sha.c.
82339         Do not include <sys/types.h>.
82340         Include <stddef.h> rather than <stdlib.h>.
82341
82342 2004-08-08  Bruno Haible  <bruno@clisp.org>
82343
82344         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
82345         FILESYSTEM_PREFIX_LEN.
82346         * lib/progreloc.c: Likewise.
82347         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
82348
82349 2004-08-06  Simon Josefsson  <jas@extundo.com>
82350
82351         * modules/progname (Depends-on): Don't depend on stdbool.
82352
82353 2004-08-06  Simon Josefsson  <jas@extundo.com>
82354
82355         * modules/getsubopt: New file.
82356         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82357         getsubopt.
82358
82359 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82360
82361         More merge from coreutils.
82362
82363         * m4/utimens.m4, m4/utimecmp.m4: New files.
82364         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
82365         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
82366         prereq.m4, sha.m4: Import changes from coreutils.
82367
82368 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82369
82370         More merge from coreutils.
82371         * modules/raise, modules/readtokens0, modules/utimens:
82372         * modules/utimecmp, module/xnanosleep: New files.
82373         * modules/strftime: Add lib/strftime.h.
82374         Change include from <time.h> to "strftime.h".
82375         * modules/yesno: Add lib/yesno.h.
82376         * modules/backupfile: Remove lib/addext.c.
82377         * modules/euidaccess: Add stat-macros.h.
82378         * modules/canonicalize, modules/euidaccess,
82379         modules/filemode, modules/lchown, modules/makepath,
82380         modules/rmdir, modules/stat: Likewise.
82381
82382 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82383
82384         Merge from tar.
82385         * lib/argp-help.c (make_hol, hol_append): Don't assume that
82386         SIZE_MAX is a valid preprocessor constant.
82387         (__argp_basename): Change from "#ifndef _LIBC"
82388         to "#ifndef __argp_short_program_name", so that
82389         we don't compile these functions for tar.
82390
82391         More merges from coreutils.
82392         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
82393         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
82394         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
82395         * lib/addext.c: Remove; no longer needed.
82396         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
82397         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
82398         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
82399         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
82400         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
82401         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
82402         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
82403         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
82404         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
82405         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82406         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
82407         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
82408         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
82409         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
82410         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
82411         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
82412         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
82413         Import changes from coreutils.
82414
82415 2004-08-05  Simon Josefsson  <jas@extundo.com>
82416
82417         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
82418
82419 2004-08-05  Simon Josefsson  <jas@extundo.com>
82420
82421         * m4/getsubopt.m4: New file.
82422
82423 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82424
82425         Merge from coreutils.
82426
82427         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
82428         * m4/getcwd-path-max.m4: New files.
82429
82430         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
82431         FILESYSTEM_PREFIX_LEN ->
82432         FILE_SYSTEM_PREFIX_LEN.
82433         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
82434         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
82435         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
82436         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
82437
82438         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
82439         prerequisite modules now handle the DOS stuff.
82440         Don't check for unistd.h.
82441
82442 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82443
82444         Merge from coreutils.
82445
82446         * lib/.gdb-history: Remove; this doesn't belong here.
82447
82448         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
82449         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
82450         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
82451         * lib/getcwd.c: New files.
82452
82453         * lib/dirname.h: Include <stdbool.h>.
82454         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
82455         for consistency with POSIX terminology.  All uses changed.
82456         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
82457         (strip_trailing_slashes): Use bool for booleans.
82458         * lib/stripslash.c (strip_trailing_slashes): Likewise.
82459
82460         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
82461         sometimes returns a positive errno value even when it succeeds.
82462         (print_errno_message) [!LIBC]: Fall back on strerror if
82463         __strerror_r fails.
82464
82465         * lib/path-concat.c (mempcpy): Don't define if a system header defines
82466         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
82467         (longest_relative_suffix): New function.
82468         (path_concat): Use it.  Assume first argument is not NULL.
82469         Port to DOS.  Omit redundant separators.
82470         Report an error instead of returning NULL.
82471         Use mempcpy instead of memcpy.
82472         (xpath_concat): Remove: not declared or used.
82473
82474         * lib/same.h: Include <stdbool.h>
82475         (same_name): Return bool, not int.
82476         * lib/same.c (same_name): Likewise.
82477         (errno): Don't declare; we assume C89 or better now.
82478
82479         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
82480         if not already defined.
82481
82482         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
82483         * lib/dup-safer.c (errno): Likewise.
82484
82485 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82486
82487         Merge from coreutils.
82488         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
82489         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
82490         * modules/path-concat: Don't depend on strdup.
82491
82492 2004-08-03  Simon Josefsson  <jas@extundo.com>
82493
82494         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
82495         * lib/progname.h: Don't include stdbool.h.
82496
82497 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82498
82499         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
82500         * MODULES.html.sh (func_all_modules): Remove fatal.
82501
82502 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82503
82504         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
82505
82506 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82507
82508         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
82509         working.
82510
82511 2004-08-02  Simon Josefsson  <jas@extundo.com>
82512
82513         * lib/getsubopt.h: New file, with comments from Bruno Haible.
82514         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
82515         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
82516
82517 2004-08-01  Simon Josefsson  <jas@extundo.com>
82518
82519         * lib/xgetdomainname.c: Include stdlib.h, for free().
82520
82521 2004-07-19  Bruno Haible  <bruno@clisp.org>
82522
82523         * MODULES.html.sh (func_all_modules): Add dummy.
82524
82525 2004-07-16  Simon Josefsson  <jas@extundo.com>
82526
82527         * modules/dummy: New file.
82528
82529 2004-07-16  Simon Josefsson  <jas@extundo.com>
82530
82531         * lib/dummy.c: New file.
82532
82533 2004-07-16  Bruno Haible  <bruno@clisp.org>
82534
82535         * lib/backupfile.h: Add extern "C" for C++.
82536         * lib/closeout.h: Likewise.
82537         * lib/copy-file.h: Likewise.
82538         * lib/findprog.h: Likewise.
82539         * lib/full-write.h: Likewise.
82540         * lib/pathname.h: Likewise.
82541         * lib/progname.h: Likewise.
82542         * lib/stpcpy.h: Likewise.
82543         * lib/stpncpy.h: Likewise.
82544         * lib/strcase.h: Likewise.
82545         * lib/strstr.h: Likewise.
82546         * lib/xalloc.h: Likewise.
82547
82548         * lib/mbswidth.h: Add extern "C" for C++.
82549         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
82550
82551 2004-07-13  Robert Millan  <robertmh@gnu.org>
82552
82553         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
82554
82555 2004-07-09  Simon Josefsson  <jas@extundo.com>
82556
82557         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
82558         failed without this.)
82559
82560 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82561
82562         * modules/chown (Files): Add lib/fchown-stub.c, since
82563         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
82564
82565 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82566
82567         * lib/fchown-stub.c: New file.
82568
82569 2004-06-24  Jim Meyering  <jim@meyering.net>
82570
82571         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
82572
82573 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82574
82575         * modules/argz: Omit "#include".
82576
82577         * MODULES.html.sh (func_all_modules): Add calloc, to match
82578         2004-06-01 addition of calloc module.
82579
82580 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82581
82582         * m4/argz.m4: New file, which is autoupdated from libtool.
82583
82584 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82585
82586         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
82587         libtool.
82588
82589 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82590
82591         * config/srclist-update: Don't insist on "USA." before the
82592         close-comment, as libtool omits the period and puts the */ on a
82593         separate line.
82594         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
82595         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
82596
82597 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
82598
82599         * modules/argz: New file.
82600         * MODULES.html.sh (func_all_modules): Add argz.
82601
82602 2004-06-12  Jim Meyering  <jim@meyering.net>
82603         and  Paul Eggert  <eggert@cs.ucla.edu>
82604
82605         * modules/hash (Files): Add lib/xalloc.h.
82606         * modules/pipe (Depends-on): Add wait-process.
82607         * modules/stat (Depends-on): Add xalloc.
82608         * modules/userspec (Files): Add lib/userspec.h.
82609         * modules/xstrto
82610
82611         Upgrade from gettext-0.13.
82612         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
82613         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
82614         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
82615
82616 2004-06-10  Jim Meyering  <jim@meyering.net>
82617
82618         * lib/calloc.c: New file.
82619
82620 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
82621
82622         * lib/getdate.y (yylex): Allow space between sign and number.
82623         Problem reported by Dan Jacobson.
82624
82625 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82626
82627         Merge from coreutils CVS.
82628
82629         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
82630         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
82631         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
82632         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
82633         xstrtol.m4: Fix copyright date and/or serial number.
82634
82635         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
82636         See if we need an fchown replacement.
82637         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
82638         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
82639         and use the replacement function if we detect either defect.
82640
82641         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
82642         gl_UTIMECMP.
82643
82644 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82645         and  Jim Meyering  <jim@meyering.net>
82646
82647         Merge from coreutils CVS.
82648
82649         * lib/stat-macros.h: New file, with contents from file-type.h
82650         and coreutils' system.h.
82651         * lib/file-type.c: Include "stat-macros.h".
82652         * lib/file-type.h (file_type): Move all macro definitions to new file,
82653         stat-macros.h.
82654
82655         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
82656         Wrap old code with this conditional.
82657         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
82658         function that does not dereference symlinks.
82659         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
82660
82661         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
82662         dependency problems.
82663         (xreadlink): Accept new arg SIZE, for efficiency.
82664         All decls and uses changed.
82665         * lib/xreadlink.h: Include <stddef.h>, for size_t.
82666
82667         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
82668         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
82669
82670         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
82671         sysexits.h.
82672
82673 2004-06-01  Jim Meyering  <jim@meyering.net>
82674
82675         * m4/calloc.m4: New file.
82676
82677 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
82678
82679         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
82680         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
82681         Also, fix a typo in a diagnostic.
82682
82683 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82684
82685         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
82686         or AC_FUNC_REALLOC.
82687
82688 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82689
82690         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
82691         macros to be defined.
82692         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
82693         the allocator returns NULL because the requested size is zero.
82694
82695 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82696
82697         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
82698         var.  Add comment explaining why libc still defines it.  This
82699         merges the following patch from glibc:
82700         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
82701
82702 2004-05-20  Andreas Schwab  <schwab@suse.de>
82703
82704         * m4/free.m4: Replace free if it not known to work, not the other
82705         way round.
82706
82707 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82708
82709         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
82710         present in glibc since revision 1.1 of this file.
82711         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
82712         obstack_alignment_mask, obstack_alloc, obstack_base,
82713         obstack_blank, obstack_blank_fast, obstack_chunk_size,
82714         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
82715         obstack_grow0, obstack_init, obstack_int_grow,
82716         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
82717         obstack_next_free, obstack_object_size, obstack_ptr_grow,
82718         obstack_ptr_grow_fast, obstack_room): Remove declarations of
82719         nonexistent functions.
82720
82721 2004-05-18  Karl Berry  <karl@gnu.org>
82722
82723         * config/srclist.txt: break link for vasnprintf.c.
82724
82725 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82726
82727         Port obstack to the AS/400, where pointers are 16 bytes wide and
82728         you cannot cast an integer to a valid pointer.  This patch is
82729         currently waiting to be integrated into glibc; see
82730         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
82731
82732         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
82733         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
82734         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
82735         (struct obstack): temp member is now a union of a pointer and
82736         an integer, instead of an integer.  All integer uses changed.
82737         This does not affect the physical layout of struct obstack,
82738         except on hosts (like the AS/400) where the size or alignment of
82739         void * is greater than that of ptrdiff_t.
82740         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
82741         __STDC__)]: Store temporary in pointer member of union, not
82742         integer member.
82743         * lib/obstack.c: Include <stddef.h>, for offsetof.
82744         (struct fooalign): Remove; it doesn't need a name.
82745         (union fooround): Change double to long double, and add void *.
82746         (DEFAULT_ALIGNMENT): Use offsetof to compute.
82747         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
82748         not a macro.  Hence the values are always int; so remove all
82749         casts-to-int in uses.
82750
82751 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82752
82753         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
82754         we can get this patch merged into glibc.
82755
82756 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82757             Paul Eggert  <eggert@cs.ucla.edu>
82758
82759         * m4/argp: Depend on alloca.
82760
82761 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82762             Paul Eggert  <eggert@cs.ucla.edu>
82763
82764         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
82765         freecoding.
82766
82767 2004-05-17  Bruno Haible  <bruno@clisp.org>
82768
82769         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
82770         precision that consists of a '.' followed by an empty digit string.
82771         Patch by Tor Lillqvist <tml@iki.fi>.
82772
82773 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82774
82775         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
82776         for backward compatibility with older code.  We need our own
82777         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
82778         it under some other name, and our alloca.h will define it.
82779
82780 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82781             Derek Price  <derek@ximbiot.com>
82782
82783         * lib/alloca.c: Include <alloca.h>, to get our interface.
82784         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
82785         include <alloca.h> first.  Use C89 prototype for alloca; this
82786         requires including <stddef.h> for size_t.  Use extern "C" if C++.
82787         Use #elif for simplicity, since we can assume C89 now.
82788         Don't try to source the system alloca.h since it will not be found
82789         and to prevent recursively including its replacement.
82790         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
82791         * lib/regex.c: Likewise.
82792
82793 2004-05-16  Derek Price  <derek@ximbiot.com>
82794             Paul Eggert  <eggert@cs.ucla.edu>
82795
82796         getline cleanup.  This changes the getndelim2 API: both order of
82797         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
82798         no delimiter).
82799
82800         * lib/getline.c: Don't include stddef.h or stdio.h, since our
82801         interface does that.
82802         (getline): Always use getdelim, so that we don't have two
82803         copies of this code.
82804         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
82805         if available.
82806         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
82807         (GETNDELIM2_MAXIMUM): New macro.
82808         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
82809         instead of the old practice of delim2==0.  All callers changed.
82810         Return -1 on overflow, instead of returning junk.
82811         Do not set *linesize unless allocation succeeds.
82812         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
82813         that we include sys/types.h.
82814         * lib/getnline.h: Likewise.
82815         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
82816         (getndelim2): Reorder arguments.
82817         * lib/getnline.c (getnline, getndelim):
82818         Don't discard the NMAX argument.
82819         (getnline): Invoke getndelim, to avoid code duplication.
82820         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
82821         of (size_t) -1 by callers of the getnline family.
82822
82823 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82824
82825         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
82826         Check for gettimeofday.
82827         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
82828         Check for settimeofday, stime.
82829
82830 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82831
82832         * lib/nanosleep.c (suspended): Change its type from int to
82833         sig_atomic_t volatile.
82834         (first_call): Make it private to rpl_nanosleep, and have it
82835         be zero initially as that's a bit faster.
82836         (my_usleep): Round up fractional times instead of truncating them,
82837         as this is the usual meaning for 'sleep'.
82838
82839         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
82840         doesn't work.
82841         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
82842         (ENOSYS): Define if not defined.
82843         (settime): Fall back on stime if it exists and settimeofday fails.
82844         But don't bother with fallbacks if a method fails with errno == EPERM.
82845
82846 2004-05-11  Jim Meyering  <jim@meyering.net>
82847
82848         Prior to this change, the save_cwd caller required read access to the
82849         current directory on most systems (ones with the fchdir function).
82850
82851         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
82852         fails, try write-only, and finally, resort to using xgetcwd.
82853
82854 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82855
82856         * lib/obstack.c, obstack.h: Import changes from libc.
82857
82858 2004-04-28  Bruno Haible  <bruno@clisp.org>
82859
82860         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
82861         also implicitly appends .exe to executables.
82862         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
82863         accepts Windows pathnames.
82864         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82865         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82866         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82867         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82868         Reported by Derek Robert Price <derek@ximbiot.com>.
82869
82870 2004-04-21  Karl Berry  <karl@gnu.org>
82871
82872         * config/srclist.txt (localcharset.c): break sync.
82873
82874 2004-04-20  Paul Eggert  <eggert@twinsun.com>
82875
82876         * m4/host-os.m4: Add a copyright notice.
82877
82878 2004-04-20  Jim Meyering  <jim@meyering.net>
82879
82880         Change UTILS_ to gl_ in AC_DEFINE'd names.
82881         Change utils_- and jm_-prefixed variables, too.
82882         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
82883         UTILS_FUNC_MKDIR_TRAILING_SLASH.
82884         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
82885
82886         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
82887         Don't emit trailing blanks.
82888         Also rename jm_-prefixed variables to have gl_ prefix.
82889
82890         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
82891         Also rename jm_-prefixed variables to have gl_ prefix.
82892
82893         * m4/jm-macros.m4: Reflect the renamings.
82894         * m4/prereq.m4: Likewise.
82895
82896 2004-04-20  Jim Meyering  <jim@meyering.net>
82897
82898         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
82899         memory.
82900
82901 2004-04-20  Jim Meyering  <jim@meyering.net>
82902             Bruno Haible  <bruno@clisp.org>
82903
82904         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
82905         memory when realloc fails.
82906
82907 2004-04-19  Jim Meyering  <jim@meyering.net>
82908
82909         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
82910         now that readutmp.c may call `free (0)'.
82911
82912 2004-04-19  Bruno Haible  <bruno@clisp.org>
82913
82914         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
82915         * m4/inttypes_h.m4: Likewise.
82916         * m4/stdint_h.m4: Likewise.
82917         * m4/intmax_t.m4: Likewise.
82918         * m4/uintmax_t.m4: Likewise.
82919
82920 2004-04-18  Jim Meyering  <jim@meyering.net>
82921
82922         * m4/prereq.m4: Don't forbid jm_ prefix.
82923
82924         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
82925         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
82926         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
82927         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
82928         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
82929         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
82930         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
82931         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
82932         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
82933         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
82934         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
82935         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
82936         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
82937         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
82938         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
82939         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
82940         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
82941         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
82942         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
82943
82944 2004-04-18  Jim Meyering  <jim@meyering.net>
82945
82946         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
82947         failure, don't leak memory and do call END_UTMP_ENT.
82948
82949 2004-04-16  Jim Meyering  <jim@meyering.net>
82950
82951         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
82952         coreutils' stat program.
82953         (gl_PREREQ): Don't require jm_PREREQ_STAT.
82954
82955 2004-04-11  Paul Eggert  <eggert@twinsun.com>
82956
82957         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
82958         C89.
82959         (CHAR_BIT): Remove, since we assume C89.
82960         Include <stdint.h> if available, as per current Autoconf CVS advice.
82961
82962 2004-03-31  Jim Meyering  <jim@meyering.net>
82963
82964         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
82965         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
82966         * m4/xalloc.m4: Likewise.
82967
82968 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82969
82970         Merge from coreutils.
82971
82972         * m4/inttostr.m4: New file.
82973         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
82974         Require AM_STDBOOL_H and gl_TIMESPEC instead.
82975         Require gl_CLOCK_TIME.
82976         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
82977
82978 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82979
82980         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
82981         not bool, to be more consistent with Unix conventions.
82982         Suggested by Bruno Haible.
82983
82984         Merge from coreutils.
82985
82986         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
82987         * lib/umaxtostr.c: New files.
82988
82989         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
82990         the usual <time.h> dance.
82991         (get_date): Change signature to support fractional time stamps.
82992         All callers changed.
82993         * lib/getdate.y: Include "getdate.h" first, as we can now
82994         assume C89 and don't need to worry about 'const'.
82995         Similarly, include "unlocked-io.h" near start, not in middle.
82996         Include <limits.h>.
82997         (textint.value): Use long int rather than int.
82998         (textint.digits): Use size_t rather than int.
82999         (BILLION, LOG10_BILLION): New constants.
83000         (parser_control): New member rel_ns.  Members day_ordinal,
83001         time_zone, month, day, hour, minutes, rel_year, rel_month,
83002         rel_day, rel_hour, rel_minutes, rel_seconds
83003         are now long int, not int.  Member seconds is now struct timespec,
83004         not int.  New member timespec_seen.  Members dates_seen, days_seen,
83005         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
83006         not int.
83007         (%union.intval): Now long int, not int.
83008         New member timespec.
83009         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
83010         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
83011         (spec): Now is a timespec or an item list.
83012         (timespec, items): New nonterminals.
83013         (time, rel, relunit, number, get_date):
83014         Add support for fractional seconds.
83015         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
83016         (gmtime, localtime, mktime): Remove decls; not needed with C89.
83017         (to_hour): First arg is now long int, not int.
83018         (to_year): Returns long int, not int.
83019         Don't treat year -70 like 70.
83020         (tm_diff): Returns long int, not int.
83021         (lookup_word): Use bool instead of int when appropriate.
83022         (yylex): Use size_t for count, not int.
83023         Detect overflow when parsing large integer constants.
83024         Add support for fractions.
83025         (get_date): Make pointers 'const' if possible.
83026         Use more-portable code to detect integer overflow.
83027         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
83028         Don't use ctime; it's not reliable if the year has >4 digits.
83029
83030         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
83031         This is for compatibility with BSD.
83032
83033         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
83034         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
83035         From coreutils' system.h.
83036
83037         * lib/userspec.c: Don't include "posixver.h".
83038         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
83039         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
83040         compatible extension.  Simplify code by removing a boolean int
83041         that was always nonzero if a string was nonnull.
83042
83043 2004-03-30  Jim Meyering  <jim@meyering.net>
83044
83045         Merge from coreutils.
83046
83047         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
83048         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
83049         on some systems one must include <grp.h> before it.
83050         Reported by Christian Krackowizer.
83051
83052 2004-03-30  Jim Meyering  <jim@meyering.net>
83053
83054         Merge from coreutils.
83055
83056         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
83057
83058         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
83059         an empty input stream.
83060
83061         * lib/readtokens.c: Include <stdbool.h>.
83062         (readtoken): Use `size_t' rather than int/long.
83063         All callers adjusted.
83064         Use `bool' rather than `int' where appropriate.
83065         Use memset rather than an explicit loop.
83066         Use x2nrealloc rather than xrealloc.
83067         Allow the use of `\0' as a delimiter.
83068         (readtokens): Likewise.
83069         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
83070
83071 2004-03-30  Jim Meyering  <jim@meyering.net>
83072
83073         * m4/realloc.m4: Remove file, since now it does no more than
83074         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
83075         the `configure.ac' section of module/realloc.
83076         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
83077
83078 2004-03-30  Bruno Haible  <bruno@clisp.org>
83079
83080         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
83081         nonnull.
83082
83083 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83084
83085         Merge changes to getloadavg.c from coreutils and Emacs.
83086
83087         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
83088         Define to an expression, not to the empty string.
83089         Include cloexec.h and xalloc.h.
83090         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
83091         Use set_cloexec_flag rather than rolling our own.
83092         * lib/cloexec.c, lib/cloexec.h: New files.
83093
83094 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83095
83096         * m4/cloexec.m4: New file.
83097
83098 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83099
83100         * lib/getopt.h: Sync with libc CVS.
83101
83102 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83103             Bruno Haible  <bruno@clisp.org>
83104
83105         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
83106         mbswidth.
83107
83108 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83109             Bruno Haible  <bruno@clisp.org>
83110
83111         * lib/mbswidth.h: Include <wchar.h> only if
83112         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
83113         <wchar.h>.
83114         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
83115
83116 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83117
83118         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
83119         Sync with libc CVS.
83120         * lib/getopt_int.h: New file, also synced from libc.
83121
83122 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83123
83124         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
83125         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
83126         Bring back getopt.c, getopt.h, getopt1.c.
83127
83128 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83129
83130         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
83131         All uses changed.  Check for sa_sigaction member; this fixes
83132         a bug first reported by Jason Andrade in
83133         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83134
83135 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83136
83137         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
83138         '#if' expressions.  Unlike the code it replaces, it does not
83139         depend on (defined _SC_PAGESIZE).  However, it does depend on
83140         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
83141         first reported by Jason Andrade in
83142         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83143
83144 2004-02-25  Simon Josefsson  <jas@extundo.com>
83145
83146         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
83147
83148 2004-02-25  Simon Josefsson  <jas@extundo.com>
83149
83150         * lib/strdup.h: New file.
83151         * lib/strdup.c: Include it.
83152         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
83153         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
83154
83155 2004-02-23  Karl Berry  <karl@gnu.org>
83156
83157         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
83158         (from fencepost.gnu.org:/gd/gnuorg).
83159
83160 2004-02-23  Karl Berry  <karl@gnu.org>
83161
83162         * config/srclistvars.sh (GNUORG) [karl]: redefine.
83163         * config/srclist.txt: add maintain/standards documents.
83164
83165 2004-02-18  Bruno Haible  <bruno@clisp.org>
83166
83167         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
83168         Reported by Derek Robert Price <derek@ximbiot.com>.
83169
83170 2004-02-16  Karl Berry  <karl@gnu.org>
83171
83172         * config/mkinstalldirs, install-sh: update from automake.
83173
83174 2004-02-06  Karl Berry  <karl@gnu.org>
83175
83176         * m4/po.m4: update from gettext 0.14.1.
83177
83178 2004-02-06  Karl Berry  <karl@gnu.org>
83179
83180         * lib/config.charset: update from gettext 0.14.1.
83181
83182 2004-02-05  Paul Eggert  <eggert@twinsun.com>
83183
83184         Add comments and code, prompted by suggestions from Bruno Haible
83185         for sh-quote.
83186         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
83187         describing the enum quoting_style values.
83188         * lib/quotearg.c (quotearg_alloc): New function.
83189         (quotearg_buffer_restyled): Treat lone { and } as special.
83190         Treat = as special.  Work around bug with older shells
83191         that "see" a '\' that is really the 2nd byte of a multibyte char.
83192         Quote empty string with shell_quoting_style.
83193
83194 2004-02-03  Bruno Haible  <bruno@clisp.org>
83195
83196         * m4/pipe.m4: New file, from GNU gettext.
83197
83198 2004-02-03  Bruno Haible  <bruno@clisp.org>
83199
83200         * lib/pipe.h: New file, from GNU gettext.
83201         * lib/pipe.c: New file, from GNU gettext.
83202
83203 2004-01-27  Bruno Haible  <bruno@clisp.org>
83204
83205         * m4/execute.m4: New file, from GNU gettext.
83206
83207 2004-01-27  Bruno Haible  <bruno@clisp.org>
83208
83209         * lib/execute.h: New file, from GNU gettext.
83210         * lib/execute.c: New file, from GNU gettext.
83211         * lib/w32spawn.h: New file, from GNU gettext.
83212
83213 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83214
83215         Merge from diffutils.
83216
83217         * lib/file-type.c (file_type): Add typed memory objects.
83218         * lib/file-type.h (S_TYPEISTMO): New macro.
83219
83220         * lib/c-stack.h (c_stack_action): Remove argv argument.
83221         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
83222         (die): Don't calculate message unless segv_action returns.
83223         (get_stack_location, min_address_from_argv, max_address_from_argv,
83224         volatile stack_base, volatile_stack_size): Remove.
83225         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
83226         that every segmentation violation is a stack overflow.  (Ouch!)
83227         See Debian bug 136249 (still outstanding) for more info about why
83228         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
83229
83230 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83231
83232         Exit-status fix from coreutils.
83233
83234         Use exit_failure consistently in place of EXIT_FAILURE,
83235         so that program exit statuses are consistent on failure.
83236
83237         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
83238         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
83239         * lib/argmatch.h: Comment fix to match the above.
83240         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
83241         Now a macro referring to exit_failure, instead of a separate
83242         variable.  Include "exitfail.h" to get it.
83243         * lib/xstrtol.h: Include "exitfail.h".
83244         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
83245
83246         * lib/long-options.c (parse_long_options): Use prototype
83247         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
83248         for clarity.
83249
83250 2004-01-21  Jim Meyering  <jim@meyering.net>
83251
83252         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
83253         so as not to conflict with a different-sized __mktime_internal
83254         function in GNU libc.
83255         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
83256         Problem building statically-linked `ls' reported by Michael Brunnbauer.
83257
83258 2004-01-20  Karl Berry  <karl@gnu.org>
83259
83260         * config/config.guess: update from config.
83261
83262         * config/srclistvars.sh: GNUWWWLICENSES for karl.
83263
83264 2004-01-20  Bruno Haible  <bruno@clisp.org>
83265
83266         Safer stack allocation.
83267         * lib/setenv.c: Include allocsa.h.
83268         (alloca): Remove fallback definition.
83269         (freea): Remove macro.
83270         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
83271         instead of freea.
83272
83273 2004-01-20  Bruno Haible  <bruno@clisp.org>
83274
83275         * m4/eealloc.m4: New file, from GNU gettext.
83276
83277 2004-01-20  Bruno Haible  <bruno@clisp.org>
83278
83279         * m4/allocsa.m4: New file, from GNU gettext.
83280
83281 2004-01-20  Bruno Haible  <bruno@clisp.org>
83282
83283         * lib/xallocsa.h: New file, from GNU gettext.
83284         * lib/xallocsa.c: New file, from GNU gettext.
83285
83286 2004-01-20  Bruno Haible  <bruno@clisp.org>
83287
83288         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
83289
83290 2004-01-20  Bruno Haible  <bruno@clisp.org>
83291
83292         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
83293         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
83294         specially.
83295
83296 2004-01-20  Bruno Haible  <bruno@clisp.org>
83297
83298         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
83299         patch.
83300
83301 2004-01-20  Bruno Haible  <bruno@clisp.org>
83302
83303         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
83304
83305 2004-01-20  Bruno Haible  <bruno@clisp.org>
83306
83307         * lib/eealloc.h: New file.
83308
83309 2004-01-20  Bruno Haible  <bruno@clisp.org>
83310
83311         * lib/binary-io.h: Avoid warnings on Cygwin.
83312
83313 2004-01-20  Bruno Haible  <bruno@clisp.org>
83314
83315         * lib/allocsa.h: New file, from GNU gettext.
83316         * lib/allocsa.c: New file, from GNU gettext.
83317
83318 2004-01-18  Karl Berry  <karl@gnu.org>
83319
83320         * doc/gpl.texi, doc/lgpl.texi: new files.
83321
83322 2004-01-18  Karl Berry  <karl@gnu.org>
83323
83324         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
83325         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
83326
83327 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83328
83329         Merge from coreutils.
83330
83331         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
83332         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
83333         (gl_DEFAULT_POSIX2_VERSION): Move
83334         the documentation from 'configure' into 'config.hin',
83335         so that 'configure --help' isn't burdened by it and
83336         we don't have to worry about its formatting there.
83337         Reword the documentation so that it's more succinct
83338         and can be run together into a single paragraph.
83339         * m4/same.m4 (gl_SAME): Check for pathconf.
83340
83341 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83342
83343         Merge from coreutils.
83344
83345         * lib/posixver.c: Include posixver.h.
83346
83347         * lib/same.c: Include <stdbool.h>, <limits.h>.
83348         (_POSIX_NAME_MAX): Define if not defined.
83349         (MIN): New macro.
83350         (same_name): If file names are silently truncated, report
83351         that the file names are the same if they are the same after
83352         the silent truncation.
83353
83354         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
83355         conversion function.
83356         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
83357         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
83358         longer needed.
83359
83360 2004-01-15  Jim Meyering  <jim@meyering.net>
83361
83362         Merge from coreutils.
83363
83364         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
83365         if no library is required.
83366         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
83367         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
83368         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
83369         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
83370         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
83371         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
83372         value, $ac_cv_search_crypt, if it's "none required".
83373         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
83374         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
83375         not gl_FUNC_GETLOADAVG.
83376         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
83377         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
83378
83379 2004-01-15  Jim Meyering  <jim@meyering.net>
83380
83381         Merge from coreutils.
83382
83383         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
83384         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
83385         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
83386
83387         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
83388         optional configure-time default.
83389
83390         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83391
83392         * lib/xreadlink.c (xreadlink): Correct outdated comment.
83393
83394 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
83395
83396         Merge from coreutils.
83397
83398         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
83399         value, $ac_cv_search_nanosleep, if it's "none required".
83400
83401 2004-01-14  Paul Eggert  <eggert@twinsun.com>
83402
83403         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
83404         with like-named macro in fnmatch.c.
83405         (EXT): Use an internal constant instead.
83406
83407         Merge fnmatch patches from glibc.
83408         * lib/fnmatch.c (mbsinit): Remove define.
83409         Add libc_hidden_ver (__fnmatch, fnmatch).
83410         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
83411         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
83412
83413 2004-01-14  Karl Berry  <karl@gnu.org>
83414
83415         * config/install-sh: update from automake.
83416
83417 2004-01-13  Karl Berry  <karl@gnu.org>
83418
83419         * config/install-sh: update from automake.
83420
83421 2004-01-09  Karl Berry  <karl@gnu.org>
83422
83423         * config/install-sh: update from automake.
83424
83425 2004-01-05  Karl Berry  <karl@gnu.org>
83426
83427         * config/config.{sub,guess}: update from config.
83428
83429 2003-12-31  Karl Berry  <karl@gnu.org>
83430
83431         * config/depcomp: update from automake.
83432
83433 2003-12-14  Karl Berry  <karl@gnu.org>
83434
83435         * lib/config.charset: update from gettext-runtime.
83436
83437 2003-12-03  Paul Eggert  <eggert@twinsun.com>
83438
83439         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
83440         Bug reported by Alfred M. Szmidt.
83441
83442 2003-12-03  Bruno Haible  <bruno@clisp.org>
83443
83444         * m4/gettext.m4: Upgrade from gettext-0.13.
83445         * m4/po.m4: Upgrade from gettext-0.13.
83446         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
83447         * m4/intmax.m4: New file, from gettext-0.13.
83448         * m4/printf-posix.m4: New file, from gettext-0.13.
83449
83450 2003-11-29  Karl Berry  <karl@gnu.org>
83451
83452         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
83453
83454 2003-11-25  Paul Eggert  <eggert@twinsun.com>
83455             Bruno Haible  <bruno@clisp.org>
83456
83457         * lib/printf-parse.h: Don't include sys/types.h.
83458         (ARG_NONE): New macro.
83459         (char_directive): Change type of *arg_index fields to size_t.
83460         * lib/printf-parse.c: Don't include sys/types.h.
83461         (SSIZE_MAX): Remove macro.
83462         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
83463         Remove unnecessary overflow check.
83464         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
83465         fields.
83466
83467 2003-11-25  Bruno Haible  <bruno@clisp.org>
83468
83469         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
83470
83471 2003-11-25  Bruno Haible  <bruno@clisp.org>
83472
83473         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
83474         gt_TYPE_SSIZE_T.
83475
83476 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83477
83478         * modules/alloca: Remove dependency on xalloc.
83479
83480 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83481
83482         * lib/alloca.c: Remove dependency on xalloc module.
83483         (xalloc_die): Remove.
83484         (memory_full) [!defined emacs]: New macro.
83485         [!defined emacs]: Don't include xalloc.h.
83486         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
83487         address arithmetic overflows.  Change datatypes a bit to avoid
83488         unnecessary casts.
83489
83490 2003-11-22  Jim Meyering  <jim@meyering.net>
83491
83492         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
83493         s/size/size_t/.
83494
83495 2003-11-21  Karl Berry  <karl@gnu.org>
83496
83497         * config/config.{sub,guess}: update from config.
83498
83499 2003-11-18  Karl Berry  <karl@gnu.org>
83500
83501         * config/config.{sub,guess}: update from config.
83502
83503         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
83504
83505 2003-11-17  Paul Eggert  <eggert@twinsun.com>
83506
83507         * README: Mention that S+T cannot overflow if S is the size of
83508         an existing object and T is sufficiently small.
83509
83510 2003-11-17  Jim Meyering  <jim@meyering.net>
83511
83512         On systems without utime and without a utimes function capable of
83513         dealing with a NULL struct utimbuf* argument, this utime replacement
83514         could -- in unusual circumstances -- leak a file descriptor.
83515         * lib/utime.c: Include <unistd.h> and <errno.h>.
83516         (utime_null): Be sure to close `fd' and to preserve errno.
83517         Reported by Geoff Collyer via Arnold Robbins.
83518
83519 2003-11-17  Bruno Haible  <bruno@clisp.org>
83520
83521         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
83522         (Depends-on): Add xsize.
83523
83524 2003-11-17  Bruno Haible  <bruno@clisp.org>
83525
83526         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
83527
83528 2003-11-17  Bruno Haible  <bruno@clisp.org>
83529
83530         * lib/vasnprintf.c (alloca): Remove fallback definition.
83531         (freea): Remove definition.
83532         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
83533         Reported by Paul Eggert.
83534
83535 2003-11-16  Paul Eggert  <eggert@twinsun.com>
83536             Bruno Haible  <bruno@clisp.org>
83537
83538         Protect against address arithmetic overflow.
83539         * lib/printf-args.h: Include stddef.h.
83540         (arguments): Change type of field 'count' to size_t.
83541         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
83542         'unsigned int' where appropriate.
83543         * lib/printf-parse.h: Include sys/types.h.
83544         (char_directive): Change type of *arg_index fields to ssize_t.
83545         (char_directives): Change type of fields 'count', max_*_length to
83546         size_t.
83547         * lib/printf-parse.c: Include sys/types.h and xsize.h.
83548         (SSIZE_MAX): Define fallback value.
83549         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
83550         instead of 'int' where appropriate. Check a_allocated, d_allocated
83551         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
83552         * lib/vasnprintf.c: Include xsize.h.
83553         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
83554         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
83555         overflow. Avoid wraparound when converting a width or precision from
83556         decimal to binary.
83557
83558 2003-11-16  Bruno Haible  <bruno@clisp.org>
83559
83560         Update from GNU gettext.
83561         * lib/printf-parse.c: Generalize to it can be compiled for wide
83562         strings.
83563         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
83564         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
83565         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
83566         SNPRINTF): New macros.
83567         Don't include <alloca.h> if the file is used inside libintl.
83568         (local_wcslen): New function, for Solaris 2.5.1.
83569         (VASNPRINTF): Use it instead of wcslen.
83570
83571 2003-11-16  Bruno Haible  <bruno@clisp.org>
83572
83573         * lib/xsize.h (xmax): New function.
83574         (xsum, xsum3, xsum4): Declare as "pure" functions.
83575
83576 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83577
83578         * modules/xalloc (Files): Undo latest change, since xalloc.h
83579         no longer needs SIZE_MAX or PTRDIFF_MAX.
83580
83581 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83582
83583         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
83584         gl_PTRDIFF_MAX.
83585
83586 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83587
83588         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
83589         "return", to pacify some unknown compiler.  Problem reported
83590         by Joerg Schilling.
83591
83592 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83593
83594         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
83595         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
83596         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
83597         heuristic is just as accurate as far as we know, and it removes a
83598         dependency on size_max.m4 and ptrdiff_max.m4.
83599
83600 2003-11-11  Bruno Haible  <bruno@clisp.org>
83601
83602         * modules/xsize (Files): Add m4/size_max.m4.
83603         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
83604
83605 2003-11-11  Bruno Haible  <bruno@clisp.org>
83606
83607         * m4/size_max.m4: New file.
83608         * m4/ptrdiff_max.m4: New file.
83609         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
83610         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
83611         (gl_XALLOC): Invoke it.
83612
83613 2003-11-11  Bruno Haible  <bruno@clisp.org>
83614
83615         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
83616         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
83617         defined.
83618
83619 2003-11-10  Paul Eggert  <eggert@twinsun.com>
83620
83621         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
83622         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
83623         rejected some allocations of exactly SIZE_MAX - 2 bytes.
83624         From Bruno Haible.
83625         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
83626         not (size_t) -1, since it's defined here.
83627
83628 2003-11-09  Karl Berry  <karl@gnu.org>
83629
83630         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
83631
83632 2003-11-06  Paul Eggert  <eggert@twinsun.com>
83633
83634         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
83635         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
83636         Reject sizes of exactly SIZE_MAX bytes.
83637         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
83638         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
83639
83640 2003-11-05  Bruno Haible  <bruno@clisp.org>
83641
83642         * lib/xsize.h: Include limits.h, to avoid a possible collision with
83643         SIZE_MAX defined in <limits.h> on Solaris.
83644
83645 2003-11-04  Jim Meyering  <jim@meyering.net>
83646
83647         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
83648         variable names, rather than @VAR@.
83649         * modules/poll: Likewise.
83650
83651 2003-11-04  Bruno Haible  <bruno@clisp.org>
83652
83653         * modules/xsize: New file.
83654         * modules/linebreak: Depend on xsize.
83655         * MODULES.html.sh (func_all_modules): Add xsize.
83656
83657 2003-11-04  Bruno Haible  <bruno@clisp.org>
83658
83659         * m4/xsize.m4: New file.
83660
83661 2003-11-04  Bruno Haible  <bruno@clisp.org>
83662
83663         * lib/xsize.h: New file.
83664         * lib/linebreak.c: Include xsize.h.
83665         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
83666         argument for overflow.
83667         Suggested by Paul Eggert.
83668
83669 2003-11-03  Karl Berry  <karl@gnu.org>
83670
83671         * config/config.{guess,sub}: update from config.
83672
83673 2003-11-03  Jim Meyering  <jim@meyering.net>
83674
83675         * modules/userspec (lib_SOURCES): Add userspec.h.
83676         (Include): Add "userspec.h".
83677         Improve description.
83678
83679 2003-11-03  Jim Meyering  <jim@meyering.net>
83680
83681         * lib/userspec.c: Include "userspec.h".
83682         * lib/userspec.h: New file.
83683
83684 2003-11-03  Bruno Haible  <bruno@clisp.org>
83685
83686         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
83687
83688 2003-11-03  Bruno Haible  <bruno@clisp.org>
83689
83690         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
83691         available, to avoid (extremely rare) race condition.
83692         Suggested by Paul Eggert.
83693
83694 2003-11-02  Karl Berry  <karl@gnu.org>
83695
83696         * config/srclist.txt (vasprintf.c): sync broken, sigh.
83697
83698 2003-10-31  Paul Eggert  <eggert@twinsun.com>
83699
83700         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
83701         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
83702         (read_filesystem_list): Set and use me_type_malloced.
83703         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
83704         whatever the type happens to be), for brevity and consistency.
83705         Check for size calculation overflow on Alphas running OSF/1.
83706
83707 2003-10-31  Jim Meyering  <jim@meyering.net>
83708
83709         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
83710
83711         * lib/linebuffer.c: Include <string.h> for declaration of memset.
83712
83713 2003-10-30  Paul Eggert  <eggert@twinsun.com>
83714             Bruno Haible  <bruno@clisp.org>
83715
83716         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
83717         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
83718
83719 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83720
83721         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
83722         netbsd*-gnu*.  Suggested by Robert Millan.
83723
83724 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83725
83726         * modules/group-member: Depend on stdbool.
83727
83728 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83729
83730         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
83731
83732 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83733
83734         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
83735         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
83736         after the 'gnu' in these cases.  This fixes some bugs in the
83737         previous change, and is based on suggestions by Robert Millan.
83738
83739 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83740
83741         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
83742         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
83743         no longer needed.
83744         * lib/quotearg.c (quotearg_n_options): Use it.
83745         * lib/group-member.c: Include <stdbool.h>.
83746         (free_group_info): Arg is now const *; don't free arg.
83747         (get_group_info): Now returns bool and accepts struct group_info *,
83748         rather than returning a malloc'ed struct group_info *.
83749         All uses changed.  Check for overflow in internal size calculation.
83750
83751         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
83752         rather than xmalloc/xrealloc.
83753         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
83754         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
83755         conformance bug: the old code used a pointer after freeing the
83756         storage that it addressed.
83757         * lib/hash.c (hash_initialize): Simplify the code by using
83758         xalloc_oversized rather than doing it by hand.
83759         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
83760         the buffer preserved.  Use free and xmalloc instead.
83761         * lib/quotearg.c (quotearg_n_options): Likewise.
83762         Use a simpler test for size overflow.  Don't use xalloc_oversized
83763         because unsigned int might be wider than size_t (!); this suggests
83764         that we should switch from unsigned int to size_t for slot numbers.
83765
83766 2003-10-28  Paul Eggert  <eggert@twinsun.com>
83767
83768         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
83769         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
83770         NetBSD kernels.  Requested by Richard Stallman.
83771
83772 2003-10-27  Paul Eggert  <eggert@twinsun.com>
83773
83774         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
83775         to allocate the returned structure.  Do not allocate a subarray,
83776         as x2nrealloc will do that.
83777         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
83778         instead of xnrealloc.
83779         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
83780
83781 2003-10-27  Bruno Haible  <bruno@clisp.org>
83782
83783         * lib/stdbool_.h: Better support for BeOS.
83784
83785 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83786
83787         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
83788         now uses inline.
83789
83790 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83791
83792         * lib/xalloc.h (xalloc_oversized): New static inline function, for
83793         callers that want to do their own size-overflow checking.  Include
83794         <stdbool.h>, since xalloc_oversized returns bool.
83795         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
83796         to use xalloc_oversized.
83797
83798         Add two functions x2realloc, x2nrealloc, for programs that grow
83799         arrays dynamically by doubling their sizes.
83800         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
83801         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
83802         New functions.
83803
83804         Port to C99 semantics for 'inline' of external functions.
83805         Bug reported by Bruno Haible.
83806         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
83807         with the old contents of xnmalloc.
83808         (xnmalloc, xmalloc): Use it.
83809         (xnrealloc_inline): New static inline function,
83810         with the old contents of xnrealloc.
83811         (xnrealloc, xrealloc): Use it.
83812
83813         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
83814         that.
83815
83816 2003-10-26  Karl Berry  <karl@gnu.org>
83817
83818         * config/srclist.txt (COPYING.DOC): no longer available from
83819         /gd/gnuorg; don't know where the ultimate source is.
83820
83821 2003-10-25  Paul Eggert  <eggert@twinsun.com>
83822
83823         Fix several address-calculation bugs in the hash modules,
83824         plus some minor code cleanup.
83825
83826         * lib/hash.h: Include <stdbool.h>, for bool.
83827         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
83828         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
83829         hash_get_n_entries, hash_get_max_bucket_length,
83830         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
83831         hash_rehash): Use size_t rather than unsigned.
83832         * lib/hash.c (struct hash_table, hash_get_n_buckets,
83833         hash_get_n_buckets_used, hash_get_n_entries,
83834         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
83835         hash_get_entries, hash_do_for_each, hash_string, is_prime,
83836         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
83837         Likewise.
83838         (SIZE_MAX): Define if not defined.
83839         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
83840         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
83841         hash_print):
83842         Use const * when possible.
83843         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
83844         (check_tuning): Fix bug: if tuning parameters were very close to
83845         0 or 1, rounding errors could have caused subscript violations.
83846         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
83847         (hash_initialize): Add 'fail:' label
83848         to free table and return NULL, and use it to simplify code.
83849         Use calloc rather than clearing the storage ourself.
83850         (hash_initialize, hash_rehash): Check for arithmetic overflow in
83851         buffer size calculations.
83852         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
83853         Include <stddef.h>, for size_t.
83854         * lib/hash-pjw.c (hash_pjw): Likewise.
83855         Switch to method described by Bruno Haible.
83856         Include <limits.h>, for CHAR_BIT.
83857         (SIZE_BITS): New macro.
83858
83859 2003-10-23  Paul Eggert  <eggert@twinsun.com>
83860
83861         * m4/getline.m4 (AM_FUNC_GETLINE):
83862         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
83863         hosts.  Problem reported by Derek Robert Price in
83864         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
83865         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
83866         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
83867
83868 2003-10-21  Paul Eggert  <eggert@twinsun.com>
83869
83870         * lib/getndelim2.c (getndelim2): When size calculation overflows,
83871         ceiling the allocation at NMAX bytes rather than silently
83872         discarding input bytes before NMAX is reached.  This makes
83873         a difference only if NMAX exceeds SIZE_MAX / 2.
83874
83875         * lib/obstack.c: Merge from glibc.
83876         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
83877         Add libc_hidden_def (_obstack_newchunk).
83878         (_obstack_free) [! defined _LIBC]: Remove.
83879         [defined _LIBC]: Make a strong alias from obstack_free, rather than
83880         a clone of the function body.
83881         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
83882         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
83883
83884         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
83885         glibc.
83886         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
83887         arg to memcpy.
83888
83889         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
83890         (obstack_ptr_grow_fast, obstack_int_grow_fast):
83891         Don't use lvalue casts, as GCC plans to remove support for them
83892         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
83893         was also present in the non-GCC version, indicating that this
83894         code had always been buggy and had never been widely used.
83895         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
83896         Use the fast variant of each macro, rather than copying the
83897         definiens of the fast variant; that way, we'll be more likely to
83898         catch future bugs in the fast variants.
83899
83900 2003-10-20  Bruno Haible  <bruno@clisp.org>
83901
83902         * modules/wait-process: New file.
83903         * MODULES.html.sh (func_all_modules): Add wait-process.
83904
83905 2003-10-20  Bruno Haible  <bruno@clisp.org>
83906
83907         * m4/wait-process.m4: New file.
83908
83909 2003-10-20  Bruno Haible  <bruno@clisp.org>
83910
83911         * lib/wait-process.h: New file, from GNU gettext.
83912         * lib/wait-process.c: New file, from GNU gettext.
83913
83914 2003-10-19  Jim Meyering  <jim@meyering.net>
83915
83916         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
83917         HPUX 10.20.
83918
83919 2003-10-18  Karl Berry  <karl@gnu.org>
83920
83921         * config/config.guess: update from config.
83922
83923 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83924
83925         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
83926         (getgroups): First arg is int, not size_t.
83927         Don't let 'free' mangle errno.
83928
83929 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83930
83931         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
83932
83933 2003-10-16  Karl Berry  <karl@gnu.org>
83934
83935         * config/config.{guess,sub}: update from config.
83936
83937 2003-10-16  Jim Meyering  <jim@meyering.net>
83938
83939         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
83940         memcpy.
83941
83942 2003-10-15  Paul Eggert  <eggert@twinsun.com>
83943
83944         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
83945         (SIZE_MAX): Remove.
83946         (new_exclude, add_exclude_file): Initial size no longer needs to
83947         be a power of 2.
83948         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
83949         our own address arithmetic overflow checking.
83950
83951         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
83952         (fnmatch): Do not alloca more than 2000 wide characters;
83953         instead, use malloc for large buffers.
83954         Check for address arithmetic overflow, and return -1
83955         with errno set to ENOMEM in that case.
83956         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
83957         (NEW_PATTERN): Do not alloca more than 8000 bytes;
83958         instead, return -1.  Check for address arithmetic overflow.
83959
83960 2003-10-14  Paul Eggert  <eggert@twinsun.com>
83961
83962         Handle invalid suffixes and overflow independently, so that
83963         callers can treat them independently as needed.  Fix some bugs in
83964         suffix handling, e.g., "100k@" was not diagnosed as an invalid
83965         suffix for a human-readable blocksize.  The major caller-visible
83966         change is the addition of a new
83967         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
83968         that both overflow and suffix chars were found.
83969
83970         * lib/human.c (humblock): Don't check separately for invalid suffix
83971         char; that is xstrtoumax's job (now that its bug is fixed).
83972         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
83973         INTMAX_MAX]: New macros.
83974         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
83975         TYPE_MAXIMUM): New macros.
83976         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
83977         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
83978         if overflow occurs, as it's what __strtol does and it's more useful
83979         in practice.
83980         (__xstrtol): If __strtol reports some error other than ERANGE,
83981         reflect it to the caller as LONGINT_INVALID.  If it reports
83982         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
83983         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
83984         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
83985         value.
83986         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
83987         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
83988         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
83989         [defined UINTMAX_MAX]: New macros.
83990
83991 2003-10-14  Bruno Haible  <bruno@clisp.org>
83992
83993         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
83994
83995 2003-10-14  Bruno Haible  <bruno@clisp.org>
83996
83997         * m4/sig_atomic_t: New file, from GNU gettext.
83998         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
83999
84000 2003-10-14  Bruno Haible  <bruno@clisp.org>
84001
84002         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
84003         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
84004         Also use volatile where needed.
84005
84006 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84007
84008         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
84009         Change maintainer from Bruno Haible to 'all'.
84010
84011 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84012
84013         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
84014
84015 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84016
84017         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
84018         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
84019         and define in terms of the other primitives.
84020         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
84021         (SIZE_MAX): Define if not already defined.
84022         (array_size_overflow): New function.
84023         (xalloc_die): Abort instead of exiting if 'error' returns.
84024         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
84025         (xmalloc, xrealloc): Use them.
84026         (xcalloc): Check for address arithmetic overflow.
84027         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
84028         a bit faster than strcpy.
84029
84030 2003-10-10  Simon Josefsson  <jas@extundo.com>
84031
84032         * modules/argp (Depends-on): Add restrict and strcase.
84033
84034 2003-10-10  Simon Josefsson  <jas@extundo.com>
84035
84036         * m4/argp.m4: Add AC_C_INLINE.
84037
84038 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84039
84040         Merge getpass from libc, plus a few fixes.
84041
84042         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
84043         Include <stdbool.h>.
84044         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
84045         __fsetlocking to empty.
84046         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
84047         do include <bits/libc-lock.h>.
84048         Do not include <fcntl.h>; not needed.
84049         [_LIBC]: Include <wchar.h>.
84050         (NOTCANCEL_MODE): New macro.
84051         (flockfile, funlockfile) [_LIBC]: New macros.
84052         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
84053         [!_LIBC]: New macros.
84054         (call_fclose): New function.
84055         (getpass): Use it.  Save tty stream separately; this simplifies the
84056         code and makes it more reliable if stdin happens to equal stdout.
84057         Invoke __fsetlocking on tty.
84058         Handle thread cancellation if needed.
84059         Namespace cleanup (use __tcgetattr, __getline).
84060         Use bool for Booleans.
84061         [USE_IN_LIBIO]: Handle wide streams.
84062         [!_LIBC]: Unconditionally do the fseek, since we don't know what
84063         stream might go where.
84064
84065         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
84066         doesn't have to include <stdio.h> before us.
84067         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
84068         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
84069         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
84070         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
84071         if not declared, so that we can use getpass.c code from libc without
84072         rewriting it.
84073         (flockfile, ftrylockfile, funlockfile): New macros.
84074
84075 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84076
84077         * modules/getpass: Depend on stdbool.
84078
84079 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84080
84081         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
84082
84083 2003-10-07  Karl Berry  <karl@gnu.org>
84084
84085         * config/config.{guess,sub}: update from config.
84086
84087 2003-10-06  Jim Meyering  <jim@meyering.net>
84088             Bruno Haible  <bruno@clisp.org>
84089
84090         This lets translators provide better translations for the
84091         "Written by ..." part of --version output.
84092         * lib/version-etc.h: Include stdarg.h.
84093         (version_etc_copyright): Declare as readonly.
84094         (version_etc): Make this function variadic with a NULL-terminated list
84095         of author name strings.
84096         (version_etc_va): New declaration.
84097         * lib/version-etc.c: Include stdarg.h, stdlib.h.
84098         (version_etc_copyright): Declare as readonly.
84099         (version_etc_va): New function. Provide a different translatable string
84100         for each possible number of authors < 10. Abbreviate when there are 10
84101         authors or more.
84102         (version_etc): Make this function variadic. Call version_etc_va.
84103         Suggestion from Gary V. Vaughan.
84104
84105         * lib/long-options.h (parse_long_options): Change prototype: the
84106         authors string is moved to the end and becomes variadic.
84107         * lib/long-options.c: Include stdarg.h.
84108         (parse_long_options): Make this function variadic, too.
84109         Call version_etc_va, not version_etc.
84110
84111 2003-10-06  Bruno Haible  <bruno@clisp.org>
84112
84113         * modules/version-etc-2: Remove file.
84114         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
84115
84116 2003-10-06  Bruno Haible  <bruno@clisp.org>
84117
84118         * modules/fatal-signal: New file.
84119         * MODULES.html.sh (func_all_modules): Add fatal-signal.
84120
84121 2003-10-06  Bruno Haible  <bruno@clisp.org>
84122
84123         * m4/fatal-signal.m4: New file.
84124         * m4/signalblocking.m4: New file, from GNU gettext.
84125
84126 2003-10-06  Bruno Haible  <bruno@clisp.org>
84127
84128         * lib/version-etc-2.h: Remove file.
84129         * lib/version-etc-2.c: Remove file.
84130
84131 2003-10-06  Bruno Haible  <bruno@clisp.org>
84132
84133         * lib/fatal-signal.h: New file, from GNU gettext.
84134         * lib/fatal-signal.c: New file, from GNU gettext.
84135
84136 2003-10-05  Paul Eggert  <eggert@twinsun.com>
84137
84138         * README: Rework advice for preventing empty .o files.
84139         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
84140         not <sys/types.h>.
84141
84142 2003-10-04  Karl Berry  <karl@gnu.org>
84143
84144         * lib/argp*: update from libc.
84145
84146 2003-10-04  Karl Berry  <karl@gnu.org>
84147
84148         * config/config.{guess,sub}: update from config.
84149
84150 2003-10-02  Bruno Haible  <bruno@clisp.org>
84151
84152         * modules/lchown (Include): Add lchown.h.
84153         * modules/time_r (Include): Use "..." syntax.
84154         * modules/xgetdomainname (Include): Add xgetdomainname.h.
84155
84156 2003-10-01  Simon Josefsson  <jas@extundo.com>
84157
84158         * MODULES.html.sh (func_all_modules): Move gethostname from section
84159         'based on' to section 'lacking' POSIX:2001.
84160
84161 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
84162
84163         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
84164         to output mode on the same stream.
84165
84166 2003-09-29  Paul Eggert  <eggert@twinsun.com>
84167
84168         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
84169         Fix arg typo in previous patch.
84170
84171 2003-09-28  Jim Meyering  <jim@meyering.net>
84172
84173         * lib/error.c: Correct cpp indentation.
84174
84175 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84176
84177         * modules/free: New file.
84178
84179 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84180
84181         * m4/free.m4: New file.
84182
84183 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84184
84185         * lib/minmax.h (MIN, MAX)
84186         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
84187         Omit the special code that used __typeof__, since we worry that
84188         it could be more trouble than it's worth.  See:
84189         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
84190         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
84191
84192         * lib/free.c: New file.
84193
84194 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
84195
84196         Trivial fixes to Makefile.am parts of module listings.
84197         * modules/strstr: Append strstr.h to lib_SOURCES.
84198         * modules/strcase: Likewise, for strcase.h.
84199
84200 2003-09-27  Karl Berry  <karl@gnu.org>
84201
84202         * config/mkinstalldirs: update from automake.
84203
84204 2003-09-26  Paul Eggert  <eggert@twinsun.com>
84205
84206         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
84207         (error_tail): Do not loop, reallocating temporary buffer, since
84208         the output cannot contain more wide characters than the input
84209         contains bytes, the size must be big enough already.  This avoids
84210         one potential size overflow calculation.  Check for size overflow
84211         when calculating temporary buffer size.  Free temporary buffer
84212         when done, if it was allocated with malloc; this plugs a memory
84213         leak.  Remove casts from void * to pointers, that are no longer
84214         needed now that we're assuming C89 or better.
84215
84216         Merge error changes from glibc.
84217
84218         * lib/error.c, error.h: Update copyright notice header to match glibc.
84219         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
84220         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
84221         Disable cancellation while printing error.
84222         * lib/error.h: Prepend __ to parameter names.
84223
84224 2003-09-26  Jim Meyering  <jim@meyering.net>
84225
84226         * lib/error.c (error_tail): Move some declarations
84227         into inner scope where the local variables are used.
84228
84229 2003-09-26  Bruno Haible  <bruno@clisp.org>
84230
84231         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
84232         stpncpy().
84233         Don't define stpncpy through config.h; it's now done through stpncpy.h.
84234
84235 2003-09-26  Bruno Haible  <bruno@clisp.org>
84236
84237         * lib/stpncpy.h (gnu_stpncpy): New declaration.
84238         (stpncpy): Define as alias for gnu_stpncpy.
84239         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
84240
84241 2003-09-25  Simon Josefsson  <jas@extundo.com>
84242
84243         * lib/xgetdomainname.h: New file.
84244         * lib/xgetdomainname.c: New file.
84245
84246 2003-09-25  Simon Josefsson  <jas@extundo.com>
84247             Bruno Haible  <bruno@clisp.org>
84248
84249         * modules/getdomainname: New file.
84250         * modules/xgetdomainname: New file.
84251         * MODULES.html.sh (func_all_modules): Add getdomainname,
84252         xgetdomainname.
84253
84254 2003-09-25  Simon Josefsson  <jas@extundo.com>
84255             Bruno Haible  <bruno@clisp.org>
84256
84257         * m4/getdomainname.m4: New file.
84258
84259 2003-09-25  Simon Josefsson  <jas@extundo.com>
84260             Bruno Haible  <bruno@clisp.org>
84261
84262         * lib/getdomainname.h: New file.
84263         * lib/getdomainname.c: New file.
84264
84265 2003-09-25  Karl Berry  <karl@gnu.org>
84266
84267         * lib/argp-fmtstream.c, argp-help.c: update from libc.
84268
84269 2003-09-25  Karl Berry  <karl@gnu.org>
84270
84271         * config/install-sh: update from automake.
84272
84273 2003-09-25  Bruno Haible  <bruno@clisp.org>
84274
84275         * modules/version-etc-2: New file, from modules/version-etc with
84276         modifications.
84277         * MODULES.html.sh (func_all_modules): Add version-etc-2.
84278
84279 2003-09-25  Bruno Haible  <bruno@clisp.org>
84280
84281         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
84282         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
84283
84284 2003-09-24  Simon Josefsson  <jas@extundo.com>
84285
84286         * modules/xgethostname: Add xgethostname.h.
84287
84288 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84289
84290         * lib/linebuffer.c (freebuffer): Don't free the argument, just
84291         the buffer associated with the argument.  Bug reported by
84292         Simon Josefsson.
84293
84294 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84295
84296         * README: Document assumptions that 'int' is at least 32 bits
84297         wide, that integer arithmetic is 2's complement without overflow,
84298         that there are no holes in integer values, that adding sizes of
84299         two nonoverlapping objects can't overflow, and that all-bits-zero
84300         yields scalar zero.  Fix spelling and capitalization typos.
84301
84302 2003-09-19  Karl Berry  <karl@gnu.org>
84303
84304         * lib/argp.h: update from libc.
84305
84306 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84307
84308         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
84309         to avoid spurious warnings like "AC_RUN_IFELSE was called before
84310         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
84311
84312 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84313
84314         * gnulib-tool: Use "test -h", not "test -L", for portability
84315         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
84316         (tags_regexp): Remove, since \| doesn't conform to POSIX.
84317         (sed_extract_prog): Issue s commands one-by-one, rather than
84318         using \| in one s command.
84319
84320 2003-09-16  Paul Eggert  <eggert@twinsun.com>
84321
84322         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
84323         input error, instead of returning NULL the next time we are called
84324         (and therefore losing track of errno).
84325
84326 2003-09-16  Bruno Haible  <bruno@clisp.org>
84327
84328         * gnulib-tool (func_create_testdir): Warn about duplicated
84329         dependencies.
84330
84331 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84332
84333         * modules/argmatch, modules/fatal, modules/obstack,
84334         modules/xalloc, modules/xgethostname: Sort dependencies by
84335         importance, not alphabetically.
84336
84337 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84338
84339         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
84340         fails, so that the caller gets the proper errno.
84341
84342         * lib/readutmp.c (read_utmp): Likewise.
84343         Check for fstat error.  Close stream and free storage
84344         when failing.
84345
84346 2003-09-14  Karl Berry  <karl@gnu.org>
84347
84348         * config/srclist.txt (strdup.c): disable for c89 changes.
84349
84350 2003-09-14  Jim Meyering  <jim@meyering.net>
84351
84352         * lib/getloadavg.c: Correct cpp indentation.
84353         * lib/strdup.c: Likewise.
84354         * lib/vasnprintf.c: Likewise.
84355
84356 2003-09-14  Bruno Haible  <bruno@clisp.org>
84357
84358         * modules/fwriteerror: New file.
84359         * MODULES.html.sh (func_all_modules): Add fwriteerror.
84360
84361 2003-09-14  Bruno Haible  <bruno@clisp.org>
84362
84363         * lib/fwriteerror.h: New file.
84364         * lib/fwriteerror.c: New file.
84365
84366 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84367
84368         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
84369         modules/xgethostname, modules/xalloc: Depend on exit.
84370
84371 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84372
84373         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
84374
84375         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
84376         and AC_MINIX, too, so that their extensions are available.
84377
84378         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
84379         This macro has been superseded by gl_BACKUPFILE.
84380
84381         More patches to assume C89 or better.
84382
84383         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
84384
84385         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
84386         unconditionally.
84387         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
84388         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
84389         Include <string.h>, <stdlib.h> unconditionally.
84390         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
84391         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
84392         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
84393         headers or for string.h.
84394         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
84395         or strtoul.
84396
84397         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
84398         headers.
84399         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
84400         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84401         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
84402         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
84403         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84404         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
84405         memcpy, memset.
84406         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
84407         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
84408         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
84409         strtol.
84410         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
84411         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
84412         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
84413         strtoul.
84414
84415 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84416
84417         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
84418         * lib/obstack.c [!defined _LIBC]: Likewise.
84419         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
84420         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
84421         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
84422
84423         More changes to assume C89 or better.
84424
84425         * lib/error.c (error_tail): Assume vprintf.
84426
84427         * lib/argmatch.c (getenv): Remove decl.
84428         * lib/progreloc.c (get_full_program_name): Define via prototype.
84429         * lib/setenv.c (clearenv): Likewise.
84430         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
84431         needed.
84432         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
84433         (malloc, memcpy): Remove decls.
84434         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
84435         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
84436         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84437         (memcpy): Remove macro.
84438         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
84439         (__P): Remove.  All uses removed.
84440         (PTR): Remove.  All uses changed to void *.
84441         (CHAR_BIT, NULL): Remove.
84442         (spaces, zeros, memset_space, memset_zero)
84443         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
84444         Remove.
84445         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
84446         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
84447         Define with prototype.
84448         Remove now-unnecessary prototype decl.
84449         (extra_args_spec): Assume ANSI C.  All uses changed.
84450         (extra_args_spec_iso): Remove.
84451         (my_strftime, emacs_strftimeu): Define via prototype.
84452         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
84453         unconditionally.
84454         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
84455         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
84456         (strtoul, strtol): Remove decls.
84457         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
84458         LONG_MAX): Remove.
84459         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84460         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
84461         (LOCALE_PARAM_PROTO): New macro.
84462         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
84463         (INTERNAL (strtol), strtol): Define with a prototype.
84464         (PARAMS): Remove.  All uses removed.
84465         * lib/tempname.c: Include <string.h> unconditionally.
84466         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
84467         * lib/xgethostname.c (main): Define with a prototype.
84468         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
84469         Include <stdlib.h> unconditionally.
84470         (calloc, malloc, realloc, free): Remove decls.
84471         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
84472         Include <stdlib.h> unconditionally.  Sort include file names.
84473         (strtod): Remove.
84474         (xstrtod): Define with a prototype.
84475         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
84476         (strtol, strtoul): Remove decls.
84477
84478 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84479
84480         More patches to assume C89 or better.
84481         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
84482         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
84483         string.h, memchr, STDC_HEADERS.
84484
84485 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84486
84487         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
84488         Include <stdlib.h>, <string.h> unconditionally.
84489         Remove now-unnecessary cast to char *.
84490         * lib/strnlen.c: Include <string.h> unconditionally.
84491         * lib/yesno.c (yesno): Define with a prototype.
84492
84493 2003-09-11  Bruno Haible  <bruno@clisp.org>
84494
84495         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
84496
84497 2003-09-10  Jim Meyering  <jim@meyering.net>
84498
84499         * lib/error.c: Correct indentation of cpp directives.
84500
84501 2003-09-10  Bruno Haible  <bruno@clisp.org>
84502
84503         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
84504         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
84505         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
84506         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
84507         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
84508         <stdlib.h> and <string.h> checks.
84509         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
84510         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
84511
84512 2003-09-10  Bruno Haible  <bruno@clisp.org>
84513
84514         * lib/strcspn.c: Include <string.h> unconditionally.
84515         * lib/strpbrk.c: Include <string.h> unconditionally.
84516         * lib/strstr.c: Include <string.h> unconditionally.
84517         * lib/unicodeio.c: Include <string.h> unconditionally.
84518         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
84519         * lib/unsetenv.c: Likewise.
84520         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
84521         * lib/yesno.c: Include <stdlib.h> unconditionally.
84522         (rpmatch): Add prototype.
84523
84524 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84525
84526         More patches to assume C89 or better.
84527         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
84528         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
84529         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
84530         or for string.h.
84531         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
84532         stdlib.h.
84533         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
84534         C headers.
84535         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
84536         string.h.
84537         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
84538         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
84539         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
84540         or for string.h.
84541         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
84542         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
84543         C headers.
84544         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
84545         memcpy.
84546         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
84547         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
84548         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
84549         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
84550         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
84551         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
84552         string.h, free.
84553         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
84554         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
84555         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
84556         C headers, or for string.h.
84557         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
84558         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
84559         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
84560         headers, memory.h, stdlib.h, string.h, strings.h.
84561         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
84562         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
84563         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
84564         strchr.
84565         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
84566         headers, memory.h, string.h.
84567         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
84568         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
84569         free.
84570         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
84571         headers.
84572         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
84573         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
84574         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
84575         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
84576         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
84577
84578 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84579
84580         More K&R removal.
84581
84582         * lib/acosl.c (main): Use a prototype.
84583         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
84584         tanl.c: Likewise.
84585
84586         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
84587
84588         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
84589         (getopt, etopt_long, getopt_long_only, _getopt_internal)
84590         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
84591         with a prototype.
84592         * lib/getopt.c (const): Remove macro.
84593         Include <string.h> unconditionally.
84594         (my_index): Remove; all uses changed to strchr.
84595         (strlen): Remove decl.
84596         (exchange): Remove forward decl; no longer needed.
84597         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
84598         Define with prototype.
84599         * lib/getopt1.c (const): Remove macro.
84600         (getopt_long, getopt_long_only, main): Define with prototype.
84601
84602         * lib/getugroups.c: Include <string.h> unconditionally.
84603
84604         * lib/getusershell.c: Include <stdlib.h> unconditionally.
84605         (getusershell, setusershell, endusershell, readname, main):
84606         Define with prototypes.
84607
84608         * lib/group-member.c: Include group-member.h first.
84609         Include <stdlib.h> unconditionally.
84610
84611         * lib/hard-locale.c: Include hard-locale.h first.
84612         Include <stdlib.h>, <string.h> unconditionally.
84613
84614         * lib/hash.c (free, malloc): Remove decls.
84615         Include <stdlib.h> unconditionally.
84616
84617         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
84618         (getenv): Do not declare.
84619
84620         * lib/idcache.c: Include <string.h> unconditionally.
84621
84622         * lib/long-options.c: Include long-options.h first, to test interface.
84623         Include <stdlib.h> unconditionally.
84624
84625         * lib/makepath.c: Include makepath.h first, to test interface.
84626         Include <stdlib.h> and <string.h> unconditionally.
84627
84628         * lib/linebuffer.c: Include <stdlib.h>.
84629         (free): Remove decl.
84630
84631         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
84632         stddef.h. rpl_malloc returns void *, not char *.
84633         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
84634         prototype.
84635
84636         * lib/md5.h: Include <limits.h> unconditionally.
84637         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
84638         (__P): Remove; all uses removed.
84639         * lib/md5.c: Include "md5.h" first.
84640         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
84641         md5_buffer, md5_process_bytes, md5_process_block):
84642         Define with prototypes.
84643         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
84644         * lib/sha.c: Include "sha.h" first.
84645         Include <stdlib.h>, <string.h> unconditionally.
84646
84647         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
84648         * lib/memcmp.c (__ptr_t): Likewise.
84649         * lib/memrchr.c (__ptr_t): Likewise.
84650         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
84651         Include <string.h> unconditionally.
84652         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
84653         * lib/memchr.c: Include <stdlib.h> unconditionally.
84654         * lib/memchr.c (LONG_MAX): Remove.
84655         * lib/memrchr.c (LONG_MAX): Likewise.
84656         * lib/memchr.c (__memchr): Define via a prototype.
84657         * lib/memrchr.c (__memrchr): Likewise.
84658         * lib/memcmp.c (__P): Remove, and remove all uses.
84659         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
84660         Remove forward decls; no longer needed.
84661         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
84662         Use types required by C89 in prototype.
84663
84664         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
84665         * lib/savedir.c: Likewise.
84666         * lib/mkdir.c (free): Remove decl.
84667         * lib/rmdir.c (rmdir): Define with a prototype.
84668         * lib/savedir.c: Include savedir.h first, to test interface.
84669
84670         * lib/mktime.c (STDC_HEADERS): Remove.
84671         Include <stdlib.h>, <string.h> unconditionally.
84672
84673         * lib/modechange.c: Include <stdlib.h> unconditionally.
84674         (malloc): Remove decl.
84675
84676         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
84677         (free): Remove decl.
84678
84679         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
84680         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
84681         (This type really should be intptr_t, but that's a C99ism.)
84682         (_obstack_memcpy): Remove: all uses changed to memcpy.
84683         Include <string.h> unconditionally.
84684         (struct obstack): Assume __STDC__ for types of members
84685         chunkfun, freefun, extra_arg.
84686         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
84687         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
84688         obstack_begin, obstack_specify_allocation,
84689         obstack_specify_allocation_with_arg, obstack_chunkfun,
84690         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
84691         Remove unprototyped decls and the macros that use them.
84692         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
84693         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
84694         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
84695         (defined __STDC__ && __STDC__)]:
84696         Remove nonprototyped code.
84697         Include <stdlib.h> unconditionally.
84698         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
84699         _obstack_allocated_p, _obstack_free, obstack_free,
84700         _obstack_memory_used, print_and_abort):
84701         Define using prototypes.
84702         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
84703         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
84704         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
84705         obstack_next_free, obstack_object_size, obstack_room) [0]:
84706         Remove unused, unprototyped code.
84707
84708         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
84709
84710         * lib/physmem.c (physmem_total, physmem_available, main): Define
84711         with prototypes.
84712
84713         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
84714         (main): Define with a prototype.
84715
84716         * lib/posixver.c (getenv): Remove decl.
84717
84718         * lib/putenv.c (malloc): Returns void *, not char *.
84719         Include <string.h> unconditionally.
84720         (strchr, memcpy, NULL): Do not define.
84721
84722         * lib/readtokens.c: Include readtokens.h first, to test interface.
84723         Include <stdlib.h>, <string.h> unconditionally.
84724         (init_tokenbuffer): Define with a prototype.
84725
84726         * lib/regex.c (PARAMS): Remove.  All uses removed.
84727         All uses of _RE_ARGS removed, too.
84728         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84729         unconditionally.
84730         (bzero): Assume memset exists.
84731         (memcmp, memcpy, NULL): Remove.
84732         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
84733         char, or assignments to local vars of type signed char.
84734         (init_syntax_once, PREFIX(extract_number_and_incr),
84735         PREFIX(print_partial_compiled_pattern),
84736         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
84737         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
84738         PREFIX(regex_grow_registers), PREFIX(regex_compile),
84739         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
84740         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
84741         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
84742         wcs_compile_range, byte_compile_range, truncate_wchar,
84743         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
84744         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
84745         count_mbs_length, wcs_re_match_2_internal,
84746         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
84747         PREFIX(alt_match_null_string_p),
84748         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
84749         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
84750         regfree, PREFIX(extract_number)): Define with prototype.  Remove
84751         now-unnecessary declaration, if any.
84752         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
84753         regcomp, regexec):
84754         Remove now-unnecessary casts among pointer types.
84755         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
84756
84757         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
84758         (free): Remove decl.
84759
84760         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
84761
84762         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
84763         (free): Remove decl.
84764
84765         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
84766         * lib/xgetcwd.c: Likewise.
84767
84768         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
84769         (free): Remove decl.
84770
84771         * lib/strchrnul.c (strchrnul): Define with a prototype.
84772         Fix bug: c_in was not converted to char before searching.
84773
84774         The following changes are not K&R related:
84775
84776         * lib/group-member.h: Include <sys/types.h>, so that this file is
84777         self-contained.
84778         * lib/makepath.h: Likewise.
84779
84780         * lib/getusershell.c (readname, default_index, line_size, readname):
84781         Use size_t, not int, for sizes.
84782         (readname): If the size overflows, report an error instead of
84783         looping forever.
84784
84785 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84786
84787         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
84788         libc.
84789
84790 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84791
84792         * README: New section: portability guidelines.
84793
84794 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84795
84796         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
84797         C89 spec.
84798
84799 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84800
84801         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
84802
84803 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84804
84805         Assume C89 or better; remove K&R cruft.
84806         A few of these changes were first proposed by Derek Robert Price
84807         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
84808
84809         * lib/addext.c: Include <string.h> unconditionally.
84810         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
84811         Don't declare getenv or malloc.
84812
84813         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
84814         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
84815         (NULL): Remove.
84816         (find_stack_direction, alloca): Use prototypes.
84817
84818         * lib/atexit.c (atexit): Define using a prototype.
84819
84820         * lib/basename.c, dirname.c, stripslash.c:
84821         Include <string.h> unconditionally.
84822
84823         * lib/bcopy.c: Include <stddef.h>.
84824         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
84825
84826         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
84827
84828         * lib/error.h (error, error_at_line, error_print_progname)
84829         [! (defined (__STDC__) && __STDC__)]: Remove decls.
84830         * lib/error.c: Include error.h first, to check interface.
84831         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84832         (VA_START): Remove; all uses changeed to va_start.
84833         (exit, strerror): Remove decls.
84834         (error_print_progname): Prototype uncondionally.
84835         Don't include <errno.h>; no longer needed.
84836         (private_strerror): Remove.
84837         (error_tail): Always define.
84838         (error, error_at_line): Assume C89 or better; always use prototypes.
84839         * lib/fatal.c: Include "fatal.h" first, to test interface.
84840         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84841         (VA_START): Remove; all uses changed to va_start.
84842         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
84843         this case.
84844         (exit): Remove decl.
84845         (fatal): Prototype unconditionally.  Assume va_start works.
84846         Abort at end, to pacify gcc.
84847
84848         * lib/euidaccess.c (main): Define with a prototype.
84849
84850         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
84851
84852         * lib/exitfail.c: Include <stdlib.h> unconditionally.
84853
84854         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
84855         prototypes.
84856         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
84857         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
84858         (getenv): Remove decl.
84859         (fnmatch): Define using a prototype.
84860         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
84861         (FCT): Define using a prototype.
84862
84863         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
84864
84865         * lib/gethostname.c: Include <stddef.h>.
84866         (gethostname): Define with prototype.  Length is size_t, not int.
84867
84868 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84869
84870         Assume C89 or better; remove K&R cruft.
84871         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
84872         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
84873         string.h, getenv, malloc.
84874         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
84875         headers.
84876         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
84877         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
84878         do not check for strerror.
84879         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
84880         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
84881         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
84882         do not check for doprnt or vprintf.
84883         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
84884         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
84885
84886 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84887
84888         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
84889         getversion.c should have been removed then, but was accidentally
84890         preserved.
84891
84892         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
84893         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
84894
84895 2003-09-08  Karl Berry  <karl@gnu.org>
84896
84897         * config/config.sub, config.guess, srclistvars.sh: update from savannah
84898                 config, forget about prep.
84899
84900         * config/depcomp, missing: update from automake.
84901
84902 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84903
84904         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
84905         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84906
84907 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84908
84909         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
84910         copy_tm_result.  Bug reported by Simon Josefsson in
84911         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84912
84913 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84914
84915         * m4/time_r.m4: New file.
84916         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
84917         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
84918         is. Check for timegm declaration.
84919         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
84920         Do not check for gmtime_r.
84921         Replace mktime if __mktime_internal does not exist and if mktime
84922         hasn't been replaced already.
84923
84924 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84925
84926         * lib/time_r.c, lib/time_r.h: New files.
84927
84928         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
84929         __localtime_r.
84930         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
84931         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
84932
84933         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
84934         __gmtime_r.
84935         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
84936         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
84937         Include <time_r.h>.
84938
84939         * lib/timegm.c: Switch to glibc implementation, with the following
84940         changes:
84941         [defined HAVE_CONFIG_H]: Include <config.h>.
84942         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
84943         (__mktime_internal) [!defined _LIBC]: New decl.
84944         (__gmtime_r) [!defined _LIBC]: New macro and function.
84945         (timegm): Use a prototype, since gnulib assumes C89.
84946         Do not bother declaring tmp to be const, as it's not really usefu.
84947         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
84948         (timegm): Declare only if HAVE_DECL_TIMEGM.
84949
84950 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84951
84952         * MODULES.html.sh (func_all_modules): Add time_r.
84953         * modules/time_r: New file.
84954         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
84955         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
84956
84957 2003-09-03  Paul Eggert  <eggert@twinsun.com>
84958
84959         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
84960         Bug reported by Lute Kamstra in
84961         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
84962
84963         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
84964         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
84965         course with correspondingly smaller numbers for tomorrow and
84966         yesterday.  From Tadayoshi Funaba.  Originally installed into
84967         sh-utils on 1999-08-07, but the patch got lost (I guess during the
84968         coreutils merge?).
84969
84970 2003-08-31  Simon Josefsson  <jas@extundo.com>
84971
84972         * modules/timegm: New file.
84973         * MODULES.html.sh (func_all_modules): Add timegm.
84974
84975 2003-08-31  Simon Josefsson  <jas@extundo.com>
84976
84977         * m4/timegm.m4: New file.
84978
84979 2003-08-31  Simon Josefsson  <jas@extundo.com>
84980
84981         * lib/timegm.h: New file.
84982         * lib/timegm.c: New file.  Based on
84983         wget-1.8.2/src/http.c:mktime_from_utc.
84984
84985 2003-08-31  Karl Berry  <karl@gnu.org>
84986
84987         * lib/argp.h: update from libc.
84988
84989 2003-08-28  Bruno Haible  <bruno@clisp.org>
84990
84991         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
84992         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
84993         followed by '#define fnmatch fnmatch_posix' gives an error.
84994
84995 2003-08-28  Bruno Haible  <bruno@clisp.org>
84996
84997         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
84998         warning on QNX, which defines O_BINARY to 000000.
84999
85000 2003-08-27  Jim Meyering  <jim@meyering.net>
85001
85002         * m4/mkstemp.m4: Require that the system mkstemp be able to create
85003         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
85004         would fail after 32.  Reported by Danny Levinson.  Details here:
85005         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
85006
85007 2003-08-24  Bruno Haible  <bruno@clisp.org>
85008
85009         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
85010         MSVC7 <stdio.h> is included later.
85011
85012 2003-08-22  Simon Josefsson  <jas@extundo.com>
85013
85014         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
85015
85016 2003-08-20  Karl Berry  <karl@gnu.org>
85017
85018         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
85019
85020 2003-08-20  Bruno Haible  <bruno@clisp.org>
85021
85022         * modules/progname: New file.
85023         * MODULES.html.sh (func_all_modules): Add progname.
85024
85025 2003-08-20  Bruno Haible  <bruno@clisp.org>
85026
85027         * lib/progname.h: New file, from GNU gettext.
85028         * lib/progname.c: New file, from GNU gettext.
85029         * lib/progreloc.c: New file, from GNU gettext.
85030
85031 2003-08-19  Jim Meyering  <jim@meyering.net>
85032
85033         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
85034         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
85035
85036 2003-08-19  Bruno Haible  <bruno@clisp.org>
85037
85038         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
85039         more.
85040
85041 2003-08-19  Bruno Haible  <bruno@clisp.org>
85042
85043         * lib/xstrdup.c: Assume <string.h> exists.
85044
85045 2003-08-18  Paul Eggert  <eggert@twinsun.com>
85046
85047         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
85048         in makefile rules.
85049
85050 2003-08-18  Jim Meyering  <jim@meyering.net>
85051
85052         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
85053         * m4/lib-ld.m4: Likewise.
85054
85055 2003-08-18  Jim Meyering  <jim@meyering.net>
85056
85057         * lib/setenv.h: Indent nested cpp directive.
85058         * lib/vasnprintf.c: Remove trailing blanks.
85059
85060 2003-08-17  Simon Josefsson  <jas@extundo.com>
85061
85062         * modules/xstrndup: New file.
85063         * MODULES.html.sh (func_all_modules): Add xstrndup.
85064
85065 2003-08-17  Simon Josefsson  <jas@extundo.com>
85066
85067         * modules/argp: Fix autoconf macro name. Add more dependencies.
85068
85069 2003-08-17  Simon Josefsson  <jas@extundo.com>
85070
85071         * m4/xstrndup.m4: New file.
85072
85073 2003-08-17  Simon Josefsson  <jas@extundo.com>
85074
85075         * m4/argp.m4: New file.
85076
85077 2003-08-17  Simon Josefsson  <jas@extundo.com>
85078             Bruno Haible  <bruno@clisp.org>
85079
85080         * lib/xstrndup.h: New file.
85081         * lib/xstrndup.c: New file.
85082
85083 2003-08-17  Bruno Haible  <bruno@clisp.org>
85084
85085         * modules/strndup (Files, Include): Add lib/strndup.h.
85086
85087 2003-08-17  Bruno Haible  <bruno@clisp.org>
85088
85089         * modules/euidaccess (Files): Add lib/euidaccess.h.
85090
85091 2003-08-17  Bruno Haible  <bruno@clisp.org>
85092
85093         * lib/strndup.h: New file.
85094
85095 2003-08-17  Bruno Haible  <bruno@clisp.org>
85096
85097         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
85098         like AC_GNU_SOURCE.
85099         * modules/extensions (configure.ac): Comment out the invocation of
85100         gl_USE_SYSTEM_EXTENSIONS.
85101
85102 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85103
85104         Merges from coreutils, etc.
85105         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
85106         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
85107         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
85108         fixing a typo.
85109         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
85110         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
85111
85112 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85113
85114         Document merge from coreutils.
85115         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
85116         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
85117         * modules/utime: Add m4/utimes-null.m4.
85118
85119 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85120
85121         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
85122         space, undoing this 2003-08-12 change:
85123         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85124
85125 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85126
85127         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
85128         strtoul.c from libc, undoing this 2003-08-12 change:
85129         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85130
85131 2003-08-16  Jim Meyering  <jim@meyering.net>
85132
85133         Merges from coreutils.
85134         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
85135         prefix.  Adjust cache variables similarly.  Create 500 rather than
85136         just 300 files, to exercise bug on Darwin6.5, too.
85137         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
85138         $missing_dir.
85139         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
85140         AM_SYS_POSIX_TERMIOS.
85141         Reported by mkc@mathdogs.com.
85142         Also change use of $am_cv_sys_posix_termios
85143         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
85144         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
85145         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
85146         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
85147         in /proc/mounts until it finds one with matching device number.  This
85148         is unnecessary when the FILE argument *is* a mount point.  No stat call
85149         is necessary in that case.  So, disable the statvfs-testing code on
85150         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
85151         as RedHat bug# 84846.
85152         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85153         to 1MB, so as not to render systems with no stack size limit (e.g.,
85154         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85155         Include <unistd.h>.  On some systems,
85156         it is required for the definition of _SC_PAGESIZE.
85157
85158 2003-08-16  Jim Meyering  <jim@meyering.net>
85159
85160         Merge from coreutils.
85161         * lib/xstrtoimax.c: #else #if -> #elif.
85162         * lib/xstrtoumax.c: Likewise.
85163
85164 2003-08-16  Jim Meyering  <jim@meyering.net>
85165
85166         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
85167         * m4/utimes.m4: Removed.
85168         * m4/utimes-null.m4: Renamed from utimes.m4.
85169
85170         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85171         to 1MB, so as not to render systems with no stack size limit (e.g.,
85172         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85173         Include <unistd.h>.  On some systems,
85174         it is required for the definition of _SC_PAGESIZE.
85175
85176 2003-08-16  Jim Meyering  <jim@meyering.net>
85177         and Paul Eggert  <eggert@cs.ucla.edu>
85178
85179         Merges from coreutils, etc.
85180
85181         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
85182         using the latest version from cvs.  This avoids problems with #line
85183         directives using a vendor (Sun) compiler.
85184         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
85185         Don't set GETGROUPS_LIB here; now it's
85186         done via getgroups.m4's wrapper function.
85187         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
85188         rather than just in sh-util/configure.in, so that the
85189         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
85190         same.
85191         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
85192         AC_FUNC_GETLOADAVG where to find getloadavg.c.
85193         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
85194         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
85195         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
85196         Remove code that is now done by the newly-required macros.
85197         Append $(EXEEXT) to DF_PROG.
85198         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
85199         Do not invoke or require the following here,
85200         since prereq.m4 or some gnulib .m4 now does this for us:
85201         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
85202         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
85203         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
85204         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
85205         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
85206         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
85207         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
85208         AC_FUNC_OBSTACK.
85209         Do not replace the following functions, as this is now the job
85210         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
85211         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
85212         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
85213         atexit getpass, strdup, getpagesize.
85214         Replace 'raise'.
85215         Do not check for the following functions, as this is now the job
85216         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
85217         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
85218         setregid.
85219         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
85220         Check for sys/sysctl.h.
85221         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
85222         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
85223         of checking for ssize_t ourselves.
85224
85225         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
85226         Require every macro that gnulib/modules/* suggests for us.
85227         (jm_PREREQ_ADDEXT): New macro.
85228         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
85229         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
85230
85231         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
85232         (gl_PHYSMEM): Use it.
85233         Also check for `table' function.
85234         Check for new headers and functions.
85235         Add check for sys/sysmp.h.
85236         With suggestions from Kaveh Ghazi.
85237         Ignore headers that are present but cannot be compiled.  This
85238         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
85239         C 5.4.
85240
85241 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85242
85243         Document merge from coreutils.
85244         * modules/userspec: Depend on posixver.
85245         * modules/strftime: Depend on tzset.
85246
85247 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85248
85249         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
85250         rather than tab, after '#' in shell-script copyright notices.
85251         Suggested by Bruno Haible.
85252
85253 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85254
85255         * config/srclist-update: Use three spaces, rather than tab, after '#'
85256         in shell-script copyright notices.  Suggested by Bruno Haible.
85257         Remove unnecessary parenthesization in regular expression.
85258
85259 2003-08-15  Jim Meyering  <jim@meyering.net>
85260
85261         Merge from coreutils.
85262         * lib/xgethostname.c: Include <stdlib.h>.
85263         (xghostname): Don't exit for anything other than memory-related
85264         failure; just return NULL.
85265         * lib/userspec.c: Include "posixver.h".
85266         (parse_user_spec): Accept `.' as a separator only
85267         in pre-POSIX-200112 mode.
85268         * lib/strtoimax.c: Use #elif rather than #else #if.
85269         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
85270         Remove function, now that we can rely on a working tzset function.
85271         [!_LIBC]: Ensure that the required autoconf test has been run.
85272         [!defined _NL_CURRENT && HAVE_STRFTIME]:
85273         Use underlying_strftime for %r.
85274         * lib/sha.c: Merge in some clean-up and optimization changes from
85275         glibc.
85276         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
85277         Ensure that it is a multiple of 64.
85278         Rearrange loop exit tests so as to avoid performing an
85279         additional fread after encountering an error or EOF.
85280         * lib/realloc.c: Update copyright date.
85281
85282 2003-08-15  Jim Meyering  <jim@meyering.net>
85283         and Paul Eggert  <eggert@twinsun.com>
85284
85285         Merge from coreutils.
85286         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
85287         member but strut utmpx does not.  Needed for AIX 4.3.3.
85288         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
85289
85290 2003-08-15  Jim Meyering  <jim@meyering.net>
85291         and Paul Eggert  <eggert@cs.ucla.edu>
85292
85293         Merges from coreutils, etc.
85294         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
85295         Require gl_FUNC_TZSET_CLOBBER.
85296         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
85297         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
85298         members.
85299
85300 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85301
85302         Help the merge from coreutils.
85303         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
85304         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
85305         * m4/tzset.m4: Use it too.
85306
85307 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85308
85309         * modules/tzset: New file.
85310
85311 2003-08-14  Jim Meyering  <jim@meyering.net>
85312
85313         Merges from coreutils.
85314         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
85315         variable names, rather than @FNMATCH_H@.
85316         * modules/alloca: Likewise for $(ALLOCA_H).
85317
85318         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
85319         the three copies of the literal target, `fnmatch.h'.
85320         * modules/alloca (alloca.h): Likewise.
85321
85322 2003-08-14  Jim Meyering  <jim@meyering.net>
85323
85324         Merge from coreutils.
85325         * m4/tzset.m4: New file.
85326         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
85327         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
85328         otherwise, AIX 5.1 systems would end up using the latter.
85329         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
85330         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
85331         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
85332         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
85333
85334 2003-08-14  Jim Meyering  <jim@meyering.net>
85335
85336         Merge from coreutils.
85337         * lib/obstack.h: Whitespace changes.
85338         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
85339         and xcalloc return values.
85340         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
85341         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
85342         hang on OSF/1 5.1 for DIR on both local and remote file systems.
85343         Reported by (and fix confirmed by) Nelson H. F. Beebe.
85344         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85345         error from mntctl.
85346         Use mntctl's return value to drive the entry-processing loop, since
85347         we can't rely on the value of the vmt_length member in the last
85348         entry.  On some systems doing so could result in exhausting
85349         virtual memory.  Based in part on a patch from Mike Jetzer.
85350
85351 2003-08-14  Jim Meyering  <jim@meyering.net>
85352         and Paul Eggert  <eggert@twinsun.com>
85353
85354         Merges from coreutils, plus other fixes.
85355         * lib/physmem.c: Merge in portability changes from gcc/libiberty
85356         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
85357         for credits and details.  Thanks to Kaveh Ghazi for helping
85358         to keep these files in sync.
85359         (ARRAY_SIZE): Define it.
85360         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
85361         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
85362         (memcasecmp): Don't assume size_t fits in unsigned int.
85363         Remove casts and duplicate code.
85364         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
85365         (memcpy): Remove definition.
85366         Merge in some clean-up and optimization changes from glibc.
85367         [BLOCKSIZE]: Move definition to top of file.
85368         Ensure that it is a multiple of 64.
85369         Rearrange loop exit tests so as to avoid performing an
85370         additional fread after encountering an error or EOF.
85371         * lib/md5.h (md5_uintptr): Define.
85372         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
85373         return to the initial working directory.  Preserve errno
85374         for caller.
85375         * lib/idcache.c: Include "xalloc.h".
85376         (xmalloc, xrealloc): Remove decls.
85377         (getuser): Remove casts no longer required in C89.
85378         * lib/human.c: Include stdio.h, for sprintf.
85379         * lib/group-member.c: Include "xalloc.h".
85380         (xmalloc, xrealloc): Remove decls.
85381         (get_group_info): Remove casts no longer required in C89.
85382         * lib/getusershell.c (readname): Remove casts no longer required in
85383         C89.
85384         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
85385         * lib/getline.c: Whitespace fix, from coreutils.
85386
85387 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85388
85389         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
85390         Check for isascii.
85391
85392         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85393         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85394         Undo previous (whitespace-only) change.
85395
85396 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85397
85398         * lib/exclude.c: Include <ctype.h>
85399         (IN_CTYPE_DOMAIN): New macro.
85400         (is_space): New fn.
85401         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
85402         and empty lines.
85403
85404         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85405         Undo previous (whitespace-only) change.
85406
85407 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85408
85409         * config/srclist-update: Change update back to the old behavior,
85410         leaving whitespace alone.  Use one 'sed' command rather than a
85411         pipeline.
85412         (fixlicense): Now a variable, not a function.
85413         (remove_trailing_blanks): Remove.
85414         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
85415         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85416         Undo previous (whitespace-only) change.
85417
85418 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85419
85420         Merge from coreutils.
85421         * modules/euidaccess: Add lib_SOURCES, include for new
85422         file euidaccess.h
85423
85424 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85425
85426         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85427         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85428         Normalize leading white space and remove trailing white space.
85429
85430         Merge from coreutils
85431         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
85432
85433         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
85434         0.12.1.  These files are now being upgraded automatically by
85435         ../config/srclist-update.
85436
85437 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85438
85439         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85440         Normalize leading white space and remove trailing white space.
85441         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
85442         notice, as per ../config/srclist-update.
85443
85444         Merge from coreutils.
85445         * lib/euidaccess.h: New file.
85446         * lib/euidaccess.c: Include it.
85447         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
85448         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
85449         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
85450
85451 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85452
85453         * config/srclist-update: Add copyright notice.
85454         (remove_id_lines, remove_trailing_blanks): New constants.
85455         (fixfile): Use them to normalize spacing a bit in copied files.
85456         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85457         Normalize leading white space and remove trailing white space.
85458
85459         * config/texinfo.tex: Sync with texinfo.
85460
85461         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
85462         strtoul.c from libc, to merge coreutils whitespace changes.
85463
85464         * config/srclist.txt: Get the following m4 files from gettext:
85465         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
85466         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
85467         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
85468         wint_t.m4.
85469
85470 2003-08-12  Karl Berry  <karl@gnu.org>
85471
85472         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
85473         been made.
85474
85475 2003-08-11  Paul Eggert  <eggert@twinsun.com>
85476
85477         * modules/gnu-source, m4/gnu-source.m4:
85478         Remove; we're assuming Autoconf 2.54 or later now.
85479         Suggested by Bruno Haible.
85480         * MODULES.html.sh (func_all_modules): Remove gnu-source.
85481
85482 2003-08-11  Bruno Haible  <bruno@clisp.org>
85483
85484         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
85485
85486 2003-08-11  Bruno Haible  <bruno@clisp.org>
85487
85488         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
85489         (vasnprintf): Use it instead of wcslen.
85490
85491 2003-08-11  Bruno Haible  <bruno@clisp.org>
85492
85493         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
85494         value to ensure that _Bool promotes to int. Use #define for _Bool when
85495         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
85496
85497 2003-08-10  Karl Berry  <karl@gnu.org>
85498
85499         * lib/regex.h: update from libc (whitespace fix).
85500
85501 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85502
85503         Merge some files from coreutils.  These changes were
85504         originally made by Jim Meyering.
85505         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
85506         many older Unixes require this.
85507         * lib/alloca.c (alloca): Remove cast to argument of free;
85508         no longer needed in C89.
85509         * lib/alloca_.h, regex.h: Fix white space to match
85510         what GNU indent does.
85511
85512 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85513
85514         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
85515         apparently Emacs's Unicode mode got confused before my 2003-08-05
85516         checkin.
85517
85518 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85519
85520         * m4/extensions.m4: New file.
85521         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
85522         Require gl_USE_SYSTEM_EXTENSIONS.
85523         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
85524         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
85525
85526 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85527
85528         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
85529         * modules/extensions, modules/gnu-source: New files.
85530         * modules/timespec, modules/unlocked-io: Depend on extensions.
85531
85532 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85533
85534         * modules/restrict: New file.
85535         * MODULES.html.sh (func_all_modules): Add restrict.
85536         * modules/regex: Depend on restrict.
85537
85538 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85539
85540         * m4/restrict.m4: New file.
85541         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
85542
85543 2003-08-07  Bruno Haible  <bruno@clisp.org>
85544
85545         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
85546         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
85547
85548 2003-08-07  Bruno Haible  <bruno@clisp.org>
85549
85550         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
85551         makes the module 'getndelim2' compatible with the module 'getline'.
85552
85553 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85554
85555         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
85556         byte with "\201" to avoid glitches when editing that source file
85557         with multi-gnome-terminal.
85558
85559 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85560
85561         * lib/bumpalloc.h: Remove.
85562
85563 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85564
85565         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
85566         * modules/bumpalloc: Remove.
85567
85568 2003-08-04  Paul Eggert  <eggert@twinsun.com>
85569
85570         * lib/getloadavg.c: Change copyright notice and spacing to conform to
85571         GNU coding style.
85572
85573         Merge from coreutils.
85574         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
85575         1. From glibc.
85576         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
85577         from Karl Berry, implemented by Jim Meyering.
85578         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
85579         from Dmitry V. Levin.
85580         Remove anachronistic cast of xrealloc.
85581         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
85582         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
85583         type. Otherwise, it wouldn't compile with at least /bin/cc on
85584         ymp-cray-unicos9.0.2.X.
85585         Combine two mostly-identical uses of alloca into one.
85586         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
85587
85588 2003-08-04  Dave Love  <d.love@dl.ac.uk>
85589
85590         [From Emacs.]
85591
85592         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
85593         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
85594         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
85595         obsolete NLIST_NAME_UNION.
85596         [__GNU__]: Undef BSD and FSCALE.
85597         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
85598
85599 2003-08-03  Paul Eggert  <eggert@twinsun.com>
85600
85601         * lib/stdbool_.h (_Bool): Make it signed char, instead of
85602         an enum type, so that it's guaranteed to promote to int.  See:
85603         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
85604
85605 2003-08-03  Karl Berry  <karl@gnu.org>
85606
85607         * config/depcomp: update from automake.
85608
85609 2003-07-31  Paul Eggert  <eggert@twinsun.com>
85610
85611         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
85612         (strerror): Don't assume that a printable int fits in 14 bytes.
85613
85614 2003-07-31  Bruno Haible  <bruno@clisp.org>
85615
85616         * modules/getpass-gnu: New file.
85617         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
85618
85619 2003-07-31  Bruno Haible  <bruno@clisp.org>
85620
85621         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
85622
85623 2003-07-24  Karl Berry  <karl@gnu.org>
85624
85625         * config/missing: update from automake.
85626
85627 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
85628             Bruno Haible  <bruno@clisp.org>
85629
85630         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
85631         * lib/getline.c (getline, getdelim): Likewise.
85632         Remove _GNU_SOURCE define; now it's defined in config.h through
85633         m4/getline.m4.
85634
85635 2003-07-23  Karl Berry  <karl@gnu.org>
85636
85637         * config/config.sub: update from prep.
85638
85639 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85640
85641         * modules/xalloc (Depends-on): Add exitfail.
85642         * modules/xmemcoll: Likewise.
85643
85644 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85645
85646         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
85647         over-parenthesization in macros.
85648
85649         Sync with coreutils.
85650
85651         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
85652         required by C99.
85653
85654         Use `exit_failure' for xalloc and xmemcoll instead of their own
85655         private exit-failure variables.
85656         * lib/xalloc.h (xalloc_exit_failure): Remove.
85657         * lib/xmalloc.c: Likewise.  Include exitfail.h.
85658         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
85659         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
85660         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
85661         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
85662
85663 2003-07-20  Jim Meyering  <jim@meyering.net>
85664
85665         * modules/closeout (Depends-on): Add exitfail.
85666         Suggestion from Bruno Haible.
85667
85668 2003-07-19  Karl Berry  <karl@gnu.org>
85669
85670         * config/config.sub: update from prep.
85671
85672 2003-07-18  Paul Eggert  <eggert@twinsun.com>
85673
85674         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
85675         Remove.
85676         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
85677         to test that it can stand by itself.  Include "exitfail.h".
85678         Clients should set exit_failure instead.
85679         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
85680
85681 2003-07-18  Bruno Haible  <bruno@clisp.org>
85682
85683         * modules/getndelim2: New file.
85684         * modules/getline: Share files with module getndelim2.
85685         * modules/getnline: Depend on getndelim2 instead of sharing files with
85686         it. Add getnline.c to lib_SOURCES.
85687         * MODULES.html.sh (func_all_modules): Add getndelim2.
85688
85689 2003-07-18  Bruno Haible  <bruno@clisp.org>
85690
85691         * m4/getndelim2.m4: New file.
85692         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
85693         invoke gl_PREREQ_GETNDELIM2.
85694         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
85695         gl_PREREQ_GETNDELIM2.
85696         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
85697         gl_GETNDELIM2.
85698
85699 2003-07-18  Bruno Haible  <bruno@clisp.org>
85700
85701         * lib/getndelim2.h: New file.
85702         * lib/getndelim2.c: Make into a module of its own. Include config.h,
85703         getndelim2.h.
85704         (getndelim2): Make non-static. Change return type to ssize_t.
85705         * lib/getline.h: Change argument names.
85706         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
85707         * lib/getnline.c: Include getndelim2.h.
85708
85709 2003-07-18  Andreas Schwab  <schwab@suse.de>
85710
85711         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
85712
85713 2003-07-17  Karl Berry  <karl@gnu.org>
85714
85715         * config/config.sub: update from prep.
85716
85717 2003-07-17  Bruno Haible  <bruno@clisp.org>
85718
85719         * modules/getnline: New file.
85720         * modules/getline: Add lib/getndelim2.c to source file list.
85721         * MODULES.html.sh (func_all_modules): Add getnline.
85722
85723 2003-07-17  Bruno Haible  <bruno@clisp.org>
85724
85725         * m4/getnline.m4: New file.
85726
85727 2003-07-17  Bruno Haible  <bruno@clisp.org>
85728
85729         * m4/Makefile.am.in: Remove file.
85730         * m4/Makefile.am: Remove file.
85731         * m4/Makefile.in: Remove file.
85732
85733 2003-07-17  Bruno Haible  <bruno@clisp.org>
85734
85735         * lib/getnline.h: New file.
85736         * lib/getnline.c: New file.
85737         * lib/getndelim2.c: New file, extracted from getline.c.
85738         (getndelim2): Renamed from getdelim2, with added nmax argument.
85739         * lib/getline.c: Include getndelim2.c.
85740         (getdelim2): Moved out to getndelim2.c.
85741         (getline, getdelim): Update.
85742
85743 2003-07-17  Bruno Haible  <bruno@clisp.org>
85744
85745         * lib/Makefile.am: Remove file.
85746         * lib/Makefile.in: Remove file.
85747
85748 2003-07-17  Bruno Haible  <bruno@clisp.org>
85749
85750         * configure.in: Remove file.
85751         * Makefile.in: Remove file.
85752
85753 2003-07-17  Bruno Haible  <bruno@clisp.org>
85754
85755         * MODULES.html.sh: Put the </BODY> right before </HTML>.
85756
85757 2003-07-16  Karl Berry  <karl@gnu.org>
85758
85759         * config/srclist-update: was running fixlicense twice, which caused
85760                 texinfo.tex to be nullified for some reason.  Simplify,
85761                 $gplsrc is no longer needed as far as I can see?
85762
85763 2003-07-16  Jim Meyering  <jim@meyering.net>
85764
85765         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
85766
85767 2003-07-15  Paul Eggert  <eggert@twinsun.com>
85768
85769         * config/srclist.txt: Get the following files from gettext-runtime/intl
85770         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
85771         ref-del.sin.  From Bruno Haible.
85772         * config/srclist-update (fixfile): Change grep pattern again, since the
85773         previous fix didn't work (there was another trailing $).  Use
85774         '[$]' to escape the $s.
85775
85776 2003-07-15  Karl Berry  <karl@gnu.org>
85777
85778         * lib/vasnprintf.c: update from gettext.
85779
85780 2003-07-15  Karl Berry  <karl@gnu.org>
85781
85782         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
85783         gets expanded when surrounded by '$'.
85784
85785 2003-07-15  Jim Meyering  <jim@meyering.net>
85786
85787         * modules/save-cwd: Don't depend on error.  From Derek Price.
85788
85789 2003-07-15  Jim Meyering  <jim@meyering.net>
85790
85791         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
85792
85793 2003-07-14  Simon Josefsson  <jas@extundo.com>
85794
85795         * modules/mempcpy: New file.
85796         * MODULES.html.sh (func_all_modules): Add mempcpy.
85797
85798 2003-07-14  Simon Josefsson  <jas@extundo.com>
85799
85800         * m4/mempcpy.m4: New file.
85801
85802 2003-07-14  Simon Josefsson  <jas@extundo.com>
85803
85804         * lib/mempcpy.h: New file.
85805         * lib/mempcpy.c: New file.
85806
85807 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85808
85809         * modules/getdate, modules/posixtm: Depend on mktime.
85810
85811 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85812
85813         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
85814         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
85815         unicodeio.c, unicodeio.h, unlocked-io.h:
85816         Switch from LGPL to GPL.
85817
85818 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85819
85820         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
85821         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
85822         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
85823         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
85824         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
85825         updated automatically by ../config/srclist-update.  This changes
85826         their license from LPGL to GPL.
85827
85828 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85829
85830         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
85831         assumed to refer to the root of the most recent stable gettext version.
85832         * config/srclistvars.sh: Add defaults for eggert.
85833         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
85834         Match "This program" as well as "The program".  This is needed
85835         for gettext.
85836
85837 2003-07-14  Jim Meyering  <jim@meyering.net>
85838
85839         Don't emit diagnostics.  Let callers do that.
85840         * lib/save-cwd.c: Don't include "error.h".
85841         (save_cwd): Don't call error.  Ensure that errno is valid
85842         when returning nonzero.
85843
85844         * lib/save-cwd.h (restore_cwd): Update prototype.
85845         * lib/save-cwd.c (restore_cwd): Remove two parameters.
85846         Simplify.  Don't call error upon failure.  Let callers do that.
85847         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
85848         when auditing is enabled.  But don't bother updating the #if.
85849
85850 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
85851
85852         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
85853         it breaks C++ compilation.
85854         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
85855
85856 2003-07-10  Simon Josefsson  <jas@extundo.com>
85857
85858         * modules/strchrnul (Makefile.am): Add strchrnul.h.
85859
85860 2003-07-10  Jim Meyering  <jim@meyering.net>
85861
85862         * m4/clock_time.m4: Remove trailing blank.
85863         * m4/intmax_t.m4: Likewise.
85864
85865 2003-07-10  Jim Meyering  <jim@meyering.net>
85866
85867         * lib/vasnprintf.c: Remove trailing blanks.
85868         Make cpp indentation consistent.
85869
85870 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85871
85872         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
85873         posixver.c, strftime.c, strnlen.c, strverscmp.c:
85874         Switch from LGPL to GPL.
85875
85876 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85877
85878         * config/srclist.txt: Sort sublists.  Add
85879         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
85880         that differ from gnulib for one reason or another; we'd like this list
85881         to be smaller but for now let's document what we have.
85882
85883 2003-07-08  Paul Eggert  <eggert@twinsun.com>
85884
85885         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
85886         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
85887         and sweeter "eval x=$x".
85888         * config/srclist.txt: Get lib/argp* from glibc.
85889
85890 2003-07-07  Paul Eggert  <eggert@twinsun.com>
85891
85892         * lib/mktime.c: Fix some boundary cases and remove need for floating
85893         point.
85894
85895         Issue a compile-time diagnostic if time_t is floating point, or if
85896         two's complement arithmetic is not in effect, or if arithmetic
85897         right shift does not propagate the sign.  These assumptions were
85898         all in the original code but they weren't checked.
85899
85900         (TIME_T_MIDPOINT, verify): New macros.
85901         (__isleap): Remove; it has integer overflow problems.
85902         (leapyear): New function, without those problems.
85903         (ydhms_tm_diff): Remove; splitting into two parts.
85904         (ydhms_diff): New function, containing the arithmetic part of
85905         the old ydhms_tm_diff function.  Issue a compile-time
85906         diagnostic if we are not using C99 integer division.
85907         Avoid casts when possible.
85908         (guess_time_tm): New function, containing the checking part of
85909         the old ydhms_tm_diff function.  Return the new value, rather than
85910         the difference between it and the old.  Accept a new argument T
85911         so that *T specifies the old value.  Check for overflow in the result.
85912
85913         (__mktime_internal): Use a time_t offset, not a long int offset.
85914         This undoes the 2003-06-04 change, which is no longer needed now
85915         that we have better overflow checking.
85916         (localtime_offset): Likewise.
85917
85918         (__mktime_internal): Avoid harmful overflow on hosts where time_t
85919         and long are 64-bit but int is only 32-bit.
85920         (ydhms_diff): Use long int to store year1 and yday1.
85921         Issue a compile-time diagnostic if long int is not wide enough.
85922
85923         (__mktime_internal): Use long int to store adjusted year and yday.
85924         Use plain C rather than preprocessor commands, if that doesn't
85925         affect efficiency.
85926         Check for overflow (and try to repair) after each probe
85927         rather than checking only at the very end.  This avoids some bugs
85928         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
85929         does not equal GMT offset at maximum time).
85930         Use integer to check for overflow rather than floating point; this
85931         is more portable to non-IEEE hosts, and is a tad faster.
85932         When we detect that we are oscillating between two values,
85933         don't check whether tm_isdst has the requested value, since
85934         we already know the answer.  When tm_isdst has the wrong value,
85935         use a different heuristic to find the right one, based on the
85936         extreme values actually observed in practice in tz2003a,
85937         rather than the (overly optimistic) "previous 3 calendar quarters".
85938
85939         (not_equal_tm, print_tm, check_result): Use "const T" rather than
85940         "T const" to accommodate glibc style.
85941         (check_result): Use less-confusing report format.  "long" -> "long int.
85942         (main): Likewise.
85943         Don't loop if the iteration overflows time_t.
85944         Allow a negative step in the iteration.
85945
85946 2003-07-06  Karl Berry  <karl@gnu.org>
85947
85948         * config/depcomp: update from automake.
85949         * config/config.sub: update from prep.
85950
85951 2003-07-03  Karl Berry  <karl@gnu.org>
85952
85953         * config/config.guess: update from prep.
85954
85955 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85956
85957         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
85958         xreadlink.c now includes it unconditionally.
85959
85960 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85961
85962         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
85963         having it depend on HAVE_SYS_TYPES_H.
85964
85965 2003-07-01  Bruno Haible  <bruno@clisp.org>
85966
85967         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
85968         <sys/types.h> should be sufficient.
85969         Reported by Paul Eggert.
85970
85971 2003-06-26  Karl Berry  <karl@gnu.org>
85972
85973         * config/depcomp: update from automake.
85974
85975 2003-06-26  Bruno Haible  <bruno@clisp.org>
85976
85977         * modules/human: Depend on module stdbool.
85978
85979 2003-06-25  Bruno Haible  <bruno@clisp.org>
85980
85981         * modules/readlink: New file.
85982         * modules/xreadlink: Depend on it.
85983         * MODULES.html.sh (func_all_modules): Add readlink.
85984
85985 2003-06-25  Bruno Haible  <bruno@clisp.org>
85986
85987         * m4/readlink.m4: New file.
85988
85989 2003-06-25  Bruno Haible  <bruno@clisp.org>
85990
85991         * lib/readlink.c: New file.
85992
85993 2003-06-22  Karl Berry  <karl@gnu.org>
85994
85995         * config/srclist.txt: update mkinstalldirs from automake.
85996         * config/mkinstalldirs: update.
85997
85998 2003-06-22  Bruno Haible  <bruno@clisp.org>
85999
86000         Portability to mingw32.
86001         * m4/ssize_t.m4: New file, from GNU gettext.
86002         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
86003         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
86004
86005 2003-06-22  Bruno Haible  <bruno@clisp.org>
86006
86007         * modules/safe-read: Add m4/ssize_t.m4.
86008         * modules/xreadlink: Add m4/ssize_t.m4.
86009
86010 2003-06-20  Bruno Haible  <bruno@clisp.org>
86011
86012         Assume C89, so PARAMS isn't needed.
86013         * lib/unicodeio.h (PARAMS): Remove.
86014         * lib/unicodeio.c: Don't use PARAMS.
86015
86016 2003-06-18  Karl Berry  <karl@gnu.org>
86017
86018         * config/config.{guess,sub}: update from prep.
86019
86020 2003-06-18  Jim Meyering  <jim@meyering.net>
86021
86022         Merge changes from coreutils.
86023         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
86024         Remove explicit declarations of xmalloc and realloc.
86025         Include xalloc.h.
86026         (read_utmp): Remove anachronistic cast of xmalloc.
86027
86028 2003-06-17  Paul Eggert  <eggert@twinsun.com>
86029
86030         Assume C89, so PARAMS isn't needed.
86031         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
86032         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
86033         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
86034         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
86035         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
86036         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
86037         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
86038         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
86039         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
86040         lib/xstrtod.h, lib/xstrtol.h: Likewise.
86041         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
86042         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
86043         no longer needed. Anyway, config.h should always be included before any
86044         other file.
86045
86046 2003-06-11  Simon Josefsson  <jas@extundo.com>
86047
86048         * modules/sysexits: New file.
86049         * MODULES.html.sh (func_all_modules): Add sysexits.
86050
86051 2003-06-11  Simon Josefsson  <jas@extundo.com>
86052
86053         * lib/sysexit_.h: New file.
86054
86055 2003-06-11  Derek Price  <derek@ximbiot.com>
86056
86057         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
86058         necessary.
86059
86060 2003-06-11  Bruno Haible  <bruno@clisp.org>
86061
86062         * m4/sysexits.m4: New file.
86063
86064 2003-06-10  Simon Josefsson  <jas@extundo.com>
86065
86066         * lib/argp.h: New file, from glibc.
86067         * lib/argp-ba.c: New file, from glibc.
86068         * lib/argp-eexst.c: New file, from glibc.
86069         * lib/argp-fmtstream.c: New file, from glibc.
86070         * lib/argp-fmtstream.h: New file, from glibc.
86071         * lib/argp-fs-xinl.c: New file, from glibc.
86072         * lib/argp-help.c: New file, from glibc.
86073         * lib/argp-namefrob.h: New file, from glibc.
86074         * lib/argp-parse.c: New file, from glibc.
86075         * lib/argp-pv.c: New file, from glibc.
86076         * lib/argp-pvh.c: New file, from glibc.
86077         * lib/argp-xinl.c: New file, from glibc.
86078
86079 2003-06-10  Simon Josefsson  <jas@extundo.com>
86080
86081         * modules/strchrnul: New file.
86082
86083 2003-06-10  Simon Josefsson  <jas@extundo.com>
86084
86085         * modules/argp: New file.
86086
86087 2003-06-10  Simon Josefsson  <jas@extundo.com>
86088
86089         * m4/strchrnul.m4: New file.
86090
86091 2003-06-10  Simon Josefsson  <jas@extundo.com>
86092
86093         * lib/strchrnul.h: New file.
86094         * lib/strchrnul.c: New file.
86095
86096 2003-06-10  Bruno Haible  <bruno@clisp.org>
86097
86098         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
86099
86100 2003-06-07  Karl Berry  <karl@gnu.org>
86101
86102         * config/config.{guess,sub}: update from prep.
86103
86104 2003-06-07  Jim Meyering  <jim@meyering.net>
86105
86106         * modules/strtod: Use $(...) notation, not @...@ for
86107         AC_REPLACE'd variables.
86108         * modules/localcharset: Likewise.
86109
86110 2003-06-07  Jim Meyering  <jim@meyering.net>
86111
86112         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
86113         in place of my name in the copyright comment.
86114         Remove definition and uses of __P.
86115
86116         From coreutils.
86117         * lib/stat.c: Don't declare xmalloc explicitly.
86118         Instead, include "xalloc.h".
86119         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
86120         xrealloc, and xcalloc return values.
86121         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
86122         Improve comment.
86123         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
86124
86125 2003-06-07  Bruno Haible  <bruno@clisp.org>
86126
86127         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
86128         avoid AC_CONFIG_LINKS.
86129         * modules/fnmatch (Makefile.am): Use explicit creation rule for
86130         fnmatch.h, to avoid AC_CONFIG_LINKS.
86131         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
86132
86133 2003-06-07  Bruno Haible  <bruno@clisp.org>
86134
86135         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
86136         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
86137         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86138         directory.
86139         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
86140         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86141         directory.
86142
86143 2003-06-06  Jim Meyering  <jim@meyering.net>
86144
86145         Merge from coreutils.
86146         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
86147         Consolidate declarations and initializations of *_base* locals.
86148
86149         Merge from coreutils.
86150         This avoids a core dump on systems without GNU putenv,
86151         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
86152         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
86153         (unsetenv): New static function, from GNU libc.
86154         (rpl_putenv): Use it.
86155
86156         * lib/modechange.c: Remove trailing blanks.
86157
86158         Merge from coreutils.
86159         * lib/fsusage.c: Remove declaration of statfs.
86160         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
86161
86162         * lib/posixtm.c: Include <stdbool.h> unconditionally.
86163
86164 2003-06-06  Jim Meyering  <jim@meyering.net>
86165
86166         * lib/stdbool_.h: Renamed from stdbool.h.in.
86167
86168 2003-06-06  Jim Meyering  <jim@meyering.net>
86169             Bruno Haible  <bruno@clisp.org>
86170
86171         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
86172         Adjust Makefile.am snippet not to redirect directly to target.
86173         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
86174
86175 2003-06-05  Paul Eggert  <eggert@twinsun.com>
86176
86177         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
86178         mismatch, look in future quarters as well as past.  This fixes a
86179         bug when processing fall-backwards gaps immediately after a long
86180         period of daylight-saving time.
86181
86182         * lib/mktime.c: Assume freestanding C89 or better.
86183         (HAVE_LIMITS_H): Remove.  Assume it's 1.
86184         (__P): Remove; not used.
86185         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
86186         (mktime, not_equal_tm, print_tm, check_result,
86187         main): Use prototypes.  Use const * where appropriate.
86188         (main): Fix typo in testing code that uncovered by above changes.
86189         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
86190
86191 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86192
86193         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
86194         locale.h, localeconv.  This merges changes from coreutils.
86195
86196         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
86197         It can be removed after the next Autoconf is released.
86198         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
86199         needed.
86200
86201 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86202
86203         * lib/mktime.c: Fix Debian bug 177940
86204         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
86205         (localtime_offset): Now long int, not time_t, because we want it
86206         to be guaranteed to be signed.  All uses changed.
86207         (__mktime_internal): If overflow would occur when adding offset,
86208         don't add it.
86209
86210         Merge 'human' changes from coreutils.  Rewrite to support
86211         locale-specific notations like thousands separators.
86212         * lib/human.c: Simplify authorship notice.
86213         Include human.h immediately after config.h.
86214         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
86215         <limits.h>: Do not include, since human.h does.
86216         (SIZE_MAX, UINTMAX_MAX): New macros.
86217         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
86218         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
86219         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
86220         (power_letter): Renamed from suffixes.
86221         (generate_suffix_backwards): Remove.
86222         (adjust_value): Now takes int style (because of human.h changes)
86223         and long double value (for greater precision on some platforms).
86224         (group_number): New function.
86225         (human_readable): Use it.  Use integer options, not enum.
86226         Put the options before the sizes in the arg list.
86227         Support all the new options.
86228         The old human_readable function has been removed;
86229         use inttostr.h instead.
86230         (human_readable, default_block_size, humblock):
86231         Use uintmax_t, not int, for block sizes.
86232         (human_readable_inexact, block_size_types): Remove.
86233         (block_size_opts): New constant.
86234         (human_options): Renamed from human_block_size, with new signature
86235         that allows block sizes up to UINTMAX_MAX.  All callers changed.
86236         * lib/human.h: Add copyright and authorship notice.
86237         Include <limits.h> and <stdbool.h> unconditionally.
86238         (PARAMS): Remove.  All uses removed.
86239         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
86240         (enum human_inexact_style): Remove tag; now a nameless enum.
86241         (human_floor, human_ceiling, human_round_to_even): Now have
86242         values 2, 0, 1 rather than -1, 1, 0.
86243         (human_group_digits, human_suppress_point_zero, human_autoscale,
86244         human_base_1024, human_SI, human_B): New constants.
86245         (human_readable_inexact, human_block_size): Remove.
86246         (human_readable): Size args are now uintmax_t, not int.
86247         (human_options): New decl.
86248
86249         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
86250         unnecessary now that we assume C89 or better.  This change
86251         imported from coreutils.
86252
86253         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86254         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
86255         in the 2003-05-30 sync from glibc.
86256
86257         .h files should stand alone, but we shouldn't include <sys/types.h>
86258         if we can get away with just <stddef.h>.
86259
86260         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
86261         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
86262         rather than <sys/types.h>, as we merely need size_t.
86263         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
86264         to get size_t.
86265         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
86266         Include <stdio.h>, to get FILE.
86267         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
86268         memcasecmp.h has included <stddef.h> and all we need is size_t.
86269         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
86270         our interface, instead of including <sys/types.h>
86271
86272 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86273
86274         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
86275         now, as glibc mktime is buggy on non-glibc systems.
86276
86277 2003-06-03  Karl Berry  <karl@gnu.org>
86278
86279         * config/config.sub: update from prep.
86280
86281 2003-06-02  Paul Eggert  <eggert@twinsun.com>
86282
86283         [from coreutils]
86284         Fix some minor time-related bugs with POSIX time arguments.
86285         Some valid time stamps were being rejected (notably -1, and
86286         time stamps before 1900 on 64-bit hosts).  And some invalid
86287         time stamps were being accepted, e.g. September 31.
86288
86289         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
86290         that we can return (time_t) -1 successfully.
86291         * lib/posixtm.c: Likewise.
86292         [HAVE_STDBOOL_H]: Include <stdbool.h>.
86293         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
86294         (t): Remove static var.
86295         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
86296         of static var.  All uses changed.
86297         (year): Do not reject years before 1900; they can occur with
86298         64-bit time_t.
86299         (posix_time_parse): Do not check for out-of-range components;
86300         that is now the caller's responsibility, since our checks were
86301         only approximations.
86302         (posixtime): Use mktime to check for out-of-range components,
86303         since it knows them exactly.
86304         If mktime returns (time_t) -1, check whether an error actually occurred
86305         by invoking localtime on -1.
86306         (main) [TEST_POSIXTIME]: Check for input data errors, and report
86307         posixtime failures better.
86308         Improve the test data (in comments only).
86309
86310 2003-06-02  Karl Berry  <karl@gnu.org>
86311
86312         * config/mkinstalldirs (version): new variable.
86313         (--version): new option.
86314         (usage): improve message.
86315
86316 2003-05-30  Karl Berry  <karl@gnu.org>
86317
86318         * lib/mktime.c: update from libc.
86319
86320 2003-05-30  Bruno Haible  <bruno@clisp.org>
86321
86322         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
86323         * config/config.rpath: Upgrade to gettext-0.12.1.
86324
86325 2003-05-30  Bruno Haible  <bruno@clisp.org>
86326
86327         * m4/gettext.m4: Upgrade to gettext-0.12.1.
86328         * m4/nls.m4: New file, from gettext-0.12.1.
86329         * m4/po.m4: New file, from gettext-0.12.1.
86330         * m4/progtest.m4: Upgrade to gettext-0.12.1.
86331
86332 2003-05-30  Bruno Haible  <bruno@clisp.org>
86333
86334         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
86335         * lib/localcharset.h: Likewise.
86336         * lib/localcharset.c: Likewise.
86337
86338 2003-05-29  Karl Berry  <karl@gnu.org>
86339
86340         * config/config.rpath: update from gettext.
86341
86342 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86343
86344         Assume the headers required for C89 freestanding compilers.
86345         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
86346         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
86347         * m4/human.m4 (gl_HUMAN): Likewise.
86348         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
86349         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
86350         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86351         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
86352         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86353         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
86354
86355 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86356
86357         Assume the headers required for C89 freestanding compilers.
86358         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
86359         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
86360         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
86361         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
86362         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
86363         define, since <limits.h> is guaranteed to do that.
86364         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
86365         * lib/exclude.c: Include <stdbool.h> unconditionally.
86366         * lib/tempname.c: Include <stddef.h> unconditionally.
86367         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
86368         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
86369         <stddef.h> does that.
86370         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
86371         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
86372         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
86373         needed.
86374         * lib/xstrtol.c: Likewise.
86375         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
86376         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
86377
86378         * lib/addext.c (addext): Use assignment rather than cast, to avoid
86379         warnings on some platforms.
86380
86381         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86382         arbitrarily.
86383
86384 2003-05-26  Jim Meyering  <jim@meyering.net>
86385
86386         Merge in a change from coreutils:
86387         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
86388         that is guaranteed to be `no'.  Use `no_such_member' to indicate
86389         that condition, rather than `-1' which is slightly misleading.
86390         Change the name of the cache variable to have the gl_ prefix.
86391         Prompted by a patch from Richard Dawe for DJGPP.
86392
86393 2003-05-24  Karl Berry  <karl@gnu.org>
86394
86395         * config/config.guess: update from prep.
86396
86397 2003-05-22  Karl Berry  <karl@gnu.org>
86398
86399         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
86400
86401 2003-05-20  Karl Berry  <karl@gnu.org>
86402
86403         * config/config.guess: update from prep.
86404
86405 2003-05-18  Karl Berry  <karl@gnu.org>
86406
86407         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
86408         might actually be set by the user.
86409
86410         * config/depcomp, install-sh, mdate-sh: update from automake.
86411
86412 2003-05-17  Bruno Haible  <bruno@clisp.org>
86413
86414         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
86415         invalid expansion for AC_EGREP_CPP.
86416         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
86417         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
86418         Suggested by Akim Demaille <akim@epita.fr> in
86419         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
86420
86421 2003-05-12  Jim Meyering  <jim@meyering.net>
86422
86423         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
86424         the space-padded-by-default conversion specifiers, %e, %k, %l.
86425
86426 2003-05-12  Bruno Haible  <bruno@clisp.org>
86427
86428         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
86429         the string is longer than 4 KB.
86430
86431 2003-05-11  Karl Berry  <karl@gnu.org>
86432
86433         * config/config.{guess,sub}: update from prep.
86434
86435 2003-05-09  Bruno Haible  <bruno@clisp.org>
86436
86437         * modules/error: Add m4/strerror_r.m4 to file list.
86438
86439 2003-05-03  Bruno Haible  <bruno@clisp.org>
86440
86441         Upgrade to Unicode-4.0.
86442         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
86443         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
86444         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
86445         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
86446         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
86447         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
86448         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
86449         Change width of U+E0100..U+E01EF from 1 to 0.
86450
86451 2003-04-25  Jim Meyering  <jim@meyering.net>
86452
86453         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
86454         of type size_t, not int.
86455
86456 2003-04-25  Bruno Haible  <bruno@clisp.org>
86457
86458         * lib/copy-file.c: Include <stddef.h>, for size_t.
86459
86460 2003-04-21  Paul Eggert  <eggert@twinsun.com>
86461
86462         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
86463         code which expansion is under static control.  Patch imported from
86464         Akim Demaille's patch to Bison; see
86465         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
86466
86467 2003-04-14  Bruno Haible  <bruno@clisp.org>
86468
86469         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
86470
86471 2003-04-11  Jim Meyering  <jim@meyering.net>
86472
86473         Merge changes from Coreutils.
86474
86475         2003-03-22  Jim Meyering  <jim@meyering.net>
86476
86477         * lib/strftime.c (widen): Cast alloca return value to proper type.
86478
86479         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
86480
86481         From GNU libc.
86482         * lib/strftime.c (my_strftime): Handle very large width
86483         specifications for numeric values correctly.  Improve checks for
86484         overflow.
86485
86486         2003-01-19  Jim Meyering  <jim@meyering.net>
86487
86488         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
86489         definitions.
86490         (nl_get_alt_digit) [! defined my_strftime]: Define.
86491         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
86492         _nl_get_alt_digit and _nl_get_walt_digit.
86493
86494         * lib/strftime.c (my_strftime): Merge in locale-related changes from
86495         libc. These changes have no effect outside of _LIBC.
86496
86497 2003-04-10  Bruno Haible  <bruno@clisp.org>
86498
86499         * modules/findprog: New file.
86500         * MODULES.html.sh (func_all_modules): Add it.
86501
86502 2003-04-10  Bruno Haible  <bruno@clisp.org>
86503
86504         * m4/findprog.m4: New file.
86505         * m4/eaccess.m4: New file.
86506
86507 2003-04-10  Bruno Haible  <bruno@clisp.org>
86508
86509         * lib/findprog.h: New file, from GNU gettext.
86510         * lib/findprog.c: New file, from GNU gettext.
86511
86512 2003-04-05  Jim Meyering  <jim@meyering.net>
86513
86514         Merge changes from Coreutils.
86515
86516         * lib/exclude.h (PARAMS): Remove definition and uses.
86517         * lib/exclude.c: Remove uses of `PARAMS'.
86518
86519         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
86520         Add test-cases for DOS filenames. Declare program_name.
86521         (main): Set up program_name.  Patch by Rich Dawe.
86522
86523         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86524         error from mntctl.
86525         Use mntctl's return value to drive the entry-processing loop, since
86526         we can't rely on the value of the vmt_length member in the last
86527         entry.  On some systems doing so could result in exhausting
86528         virtual memory.  Based in part on a patch from Mike Jetzer.
86529
86530 2003-04-04  Bruno Haible  <bruno@clisp.org>
86531
86532         * modules/linebreak: New file.
86533         * MODULES.html.sh (func_all_modules): Add it.
86534
86535 2003-04-04  Bruno Haible  <bruno@clisp.org>
86536
86537         * m4/linebreak.m4: New file.
86538
86539 2003-04-04  Bruno Haible  <bruno@clisp.org>
86540
86541         * lib/linebreak.h: New file, from GNU gettext.
86542         * lib/linebreak.c: New file, from GNU gettext with slight
86543         modifications.
86544         * lib/lbrkprop.h: New file, from GNU gettext.
86545
86546 2003-04-03  Bruno Haible  <bruno@clisp.org>
86547
86548         * modules/utf8-ucs4: New file.
86549         * modules/utf16-ucs4: New file.
86550         * modules/ucs4-utf8: New file.
86551         * modules/ucs4-utf16: New file.
86552         * MODULES.html.sh (func_all_modules): Add them.
86553
86554 2003-04-03  Bruno Haible  <bruno@clisp.org>
86555
86556         * m4/utf-ucs4.m4: New file.
86557         * m4/ucs4-utf.m4: New file.
86558
86559 2003-04-03  Bruno Haible  <bruno@clisp.org>
86560
86561         * lib/utf8-ucs4.h: New file, from GNU gettext.
86562         * lib/utf16-ucs4.h: New file, from GNU gettext.
86563         * lib/ucs4-utf8.h: New file, from GNU gettext.
86564         * lib/ucs4-utf16.h: New file, from GNU gettext.
86565
86566 2003-04-02  Bruno Haible  <bruno@clisp.org>
86567
86568         * modules/binary-io: New file.
86569         * MODULES.html.sh (func_all_modules): Add it.
86570
86571 2003-04-02  Bruno Haible  <bruno@clisp.org>
86572
86573         * lib/binary-io.h: New file, from GNU gettext.
86574
86575 2003-04-01  Bruno Haible  <bruno@clisp.org>
86576
86577         * modules/pathname: New file.
86578         * MODULES.html.sh (func_all_modules): Add it.
86579
86580 2003-04-01  Bruno Haible  <bruno@clisp.org>
86581
86582         * lib/pathname.h: New file, from GNU gettext.
86583         * lib/concatpath.c: New file, from GNU gettext.
86584
86585 2003-03-30  Bruno Haible  <bruno@clisp.org>
86586
86587         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
86588
86589 2003-03-30  Bruno Haible  <bruno@clisp.org>
86590
86591         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
86592         function chown() doesn't exist.
86593
86594 2003-03-28  Bruno Haible  <bruno@clisp.org>
86595
86596         * modules/copy-file: New file.
86597         * MODULES.html.sh (func_all_modules): Add it.
86598
86599 2003-03-28  Bruno Haible  <bruno@clisp.org>
86600
86601         * m4/copy-file.m4: New file.
86602
86603 2003-03-28  Bruno Haible  <bruno@clisp.org>
86604
86605         * lib/copy-file.h: New file, from GNU gettext.
86606         * lib/copy-file.c: New file, from GNU gettext.
86607
86608 2003-03-18  Jim Meyering  <jim@meyering.net>
86609
86610         * lib/quote.c (quote_n): Fix typo in comment.
86611
86612 2003-03-18  Bruno Haible  <bruno@clisp.org>
86613
86614         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
86615         checking.
86616         * m4/onceonly_2_57.m4: Likewise.
86617
86618 2003-03-17  Bruno Haible  <bruno@clisp.org>
86619
86620         * m4/onceonly.m4: Require autoconf 2.54 or newer.
86621         (m4_quote): Remove macro.
86622         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
86623
86624 2003-03-14  Jim Meyering  <jim@meyering.net>
86625
86626         Merge changes from Coreutils.
86627         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
86628         to be const, in order to avoid warnings.
86629         (obstack_room): Likewise.
86630         (obstack_empty_p): Likewise.
86631
86632 2003-03-14  Bruno Haible  <bruno@clisp.org>
86633
86634         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
86635         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
86636
86637 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86638
86639         Merge changes from Bison.
86640         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
86641         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
86642         when compiling Bison 1.875's `bitset bset = obstack_alloc
86643         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
86644         * lib/hash.c: Include <stdbool.h> unconditionally.
86645
86646 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86647
86648         * m4/onceonly.m4 (m4_quote): New macro.
86649         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
86650         Quote AC_FOREACH variable-expansions properly.
86651
86652 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86653
86654         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
86655
86656 2003-03-09  Paul Eggert  <eggert@twinsun.com>
86657
86658         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
86659         Reported by Bruce Becker; see:
86660         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
86661
86662 2003-03-03  Paul Eggert  <eggert@twinsun.com>
86663             Bruno Haible  <bruno@clisp.org>
86664
86665         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
86666         Reported by John Hughes, see
86667         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
86668
86669 2003-02-20  Bruno Haible  <bruno@clisp.org>
86670
86671         * MODULES.html.sh (func_all_modules): Add poll.
86672
86673 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86674
86675         * modules/poll: New file.
86676
86677 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86678
86679         * lib/poll_.h: New file.
86680         * lib/poll.c: New file.
86681
86682 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86683
86684         * m4/poll.m4: New file.
86685
86686 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86687
86688         * modules/mathl: New file.
86689
86690 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86691
86692         * lib/mathl.h: New file.
86693         * lib/acosl.c: New file.
86694         * lib/asinl.c: New file.
86695         * lib/atanl.c: New file.
86696         * lib/ceill.c: New file.
86697         * lib/cosl.c: New file.
86698         * lib/expl.c: New file.
86699         * lib/floorl.c: New file.
86700         * lib/frexpl.c: New file.
86701         * lib/ldexpl.c: New file.
86702         * lib/logl.c: New file.
86703         * lib/sincosl.c: New file.
86704         * lib/sinl.c: New file.
86705         * lib/sqrtl.c: New file.
86706         * lib/tanl.c: New file.
86707         * lib/trigl.c: New file.
86708         * lib/trigl.h: New file.
86709
86710 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86711
86712         * m4/mathl.m4: New file.
86713
86714 2003-02-18  Bruno Haible  <bruno@clisp.org>
86715
86716         * MODULES.html.sh (func_all_modules): Add mathl.
86717
86718 2003-02-17  Bruno Haible  <bruno@clisp.org>
86719
86720         * modules/mkdtemp: New module.
86721         * MODULES.html.sh (func_all_modules): Add it.
86722
86723 2003-02-17  Bruno Haible  <bruno@clisp.org>
86724
86725         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
86726
86727 2003-02-17  Bruno Haible  <bruno@clisp.org>
86728
86729         * lib/mkdtemp.h: New file, from GNU gettext.
86730         * lib/mkdtemp.c: New file, from GNU gettext.
86731
86732 2003-02-02  Jim Meyering  <jim@meyering.net>
86733
86734         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
86735         e.g. glibc-2.2.93.
86736
86737 2003-01-31  Bruno Haible  <bruno@clisp.org>
86738
86739         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
86740         'rpl_rename'.
86741         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
86742         'rpl_strnlen'.
86743         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
86744         'rpl_strtod'.
86745         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
86746         'rpl_utime'.
86747
86748 2003-01-31  Bruno Haible  <bruno@clisp.org>
86749
86750         * lib/rename.c: #undef rename before defining rpl_rename.
86751         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
86752
86753 2003-01-30  Bruno Haible  <bruno@clisp.org>
86754
86755         * modules/vasnprintf, modules/vasprintf: New modules.
86756         * MODULES.html.sh (func_all_modules): Add them.
86757
86758 2003-01-30  Bruno Haible  <bruno@clisp.org>
86759
86760         * m4/signed.m4: New file, from GNU gettext.
86761         * m4/longdouble.m4: New file, from GNU gettext.
86762         * m4/wchar_t.m4: New file, from GNU gettext.
86763         * m4/wint_t.m4: New file, from GNU gettext.
86764         * m4/vasnprintf.m4: New file.
86765         * m4/vasprintf.m4: New file.
86766
86767 2003-01-30  Bruno Haible  <bruno@clisp.org>
86768
86769         * lib/printf-args.h: New file, from GNU gettext.
86770         * lib/printf-args.c: New file, from GNU gettext.
86771         * lib/printf-parse.h: New file, from GNU gettext.
86772         * lib/printf-parse.c: New file, from GNU gettext.
86773         * lib/vasnprintf.h: New file, from GNU gettext.
86774         * lib/vasnprintf.c: New file, from GNU gettext.
86775         * lib/asnprintf.c: New file, from GNU gettext.
86776         * lib/vasprintf.h: New file, from GNU gettext with modifications.
86777         * lib/vasprintf.c: New file, from GNU gettext.
86778         * lib/asprintf.c: New file, from GNU gettext.
86779
86780 2003-01-29  Bruno Haible  <bruno@clisp.org>
86781
86782         * modules/stpncpy: New module.
86783         * MODULES.html.sh (func_all_modules): Add it.
86784
86785 2003-01-29  Bruno Haible  <bruno@clisp.org>
86786
86787         * m4/stpncpy.m4: New file.
86788
86789 2003-01-29  Bruno Haible  <bruno@clisp.org>
86790
86791         * lib/stpncpy.h: New file, from GNU gettext with modifications.
86792         * lib/stpncpy.c: New file, from GNU gettext with modifications.
86793
86794 2003-01-28  Bruno Haible  <bruno@clisp.org>
86795
86796         * modules/c-ctype: New module.
86797         * MODULES.html.sh (func_all_modules): Add it.
86798
86799 2003-01-28  Bruno Haible  <bruno@clisp.org>
86800
86801         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
86802         Paul Eggert.
86803         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
86804         Paul Eggert.
86805
86806 2003-01-27  Bruno Haible  <bruno@clisp.org>
86807
86808         * modules/xsetenv: New module.
86809         * MODULES.html.sh (func_all_modules): Add it.
86810
86811 2003-01-27  Bruno Haible  <bruno@clisp.org>
86812
86813         * lib/xsetenv.h: New file, from GNU gettext.
86814         * lib/xsetenv.c: New file, from GNU gettext.
86815
86816 2003-01-23  Jim Meyering  <jim@meyering.net>
86817
86818         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
86819         from working on systems without dirfd (at least Irix and OSF1/Tru64).
86820
86821 2003-01-23  Bruno Haible  <bruno@clisp.org>
86822
86823         * modules/minmax: New module.
86824         * MODULES.html.sh (func_all_modules): Add it.
86825
86826 2003-01-23  Bruno Haible  <bruno@clisp.org>
86827
86828         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
86829         Eggert.
86830
86831 2003-01-22  Bruno Haible  <bruno@clisp.org>
86832
86833         * modules/exit: New module.
86834         * MODULES.html.sh (func_all_modules): Add it.
86835
86836 2003-01-22  Bruno Haible  <bruno@clisp.org>
86837
86838         * lib/exit.h: New file, from GNU gettext.
86839
86840 2003-01-19  Bruno Haible  <bruno@clisp.org>
86841
86842         * gnulib-tool: Recognize option --extract-maintainer.
86843         (func_get_maintainer): New function.
86844         * modules/*: Add Maintainer entry.
86845
86846 2003-01-16  Jim Meyering  <jim@meyering.net>
86847
86848         * m4/regex.m4: The `regex' struct is both input and output.
86849         Initialize it before each use.  Patch by Tim Waugh.
86850
86851 2003-01-16  Bruno Haible  <bruno@clisp.org>
86852
86853         * MODULES.html.sh: Add a table of contents. Add the module name as
86854         leftmost column. Add hyperlinks.
86855
86856 2003-01-15  Bruno Haible  <bruno@clisp.org>
86857
86858         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
86859
86860 2003-01-15  Bruno Haible  <bruno@clisp.org>
86861
86862         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
86863         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
86864         suffix.
86865
86866 2003-01-15  Bruno Haible  <bruno@clisp.org>
86867
86868         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
86869
86870 2003-01-15  Bruno Haible  <bruno@clisp.org>
86871
86872         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
86873         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
86874
86875 2003-01-14  Jim Meyering  <jim@meyering.net>
86876
86877         * lib/same.c (same_name): Tweak a comment.
86878
86879 2003-01-14  Bruno Haible  <bruno@clisp.org>
86880
86881         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
86882         when a string comparison is sufficient.
86883
86884 2003-01-14  Bruno Haible  <bruno@clisp.org>
86885
86886         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
86887         'unsigned int'.
86888
86889 2003-01-14  Bruno Haible  <bruno@clisp.org>
86890
86891         * lib/hash-pjw.c: Add comment about low quality of this function.
86892
86893 2003-01-13  Bruno Haible  <bruno@clisp.org>
86894
86895         * modules/stpcpy: Distribute lib/stpcpy.h.
86896         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
86897
86898 2003-01-13  Bruno Haible  <bruno@clisp.org>
86899
86900         * modules/*: Add a description.
86901         * modules/strpbrk: Fix Makefile.am snippet.
86902         * modules/strtoimax: Fix dependencies.
86903         * modules/strtoumax: Likewise.
86904
86905 2003-01-13  Bruno Haible  <bruno@clisp.org>
86906
86907         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
86908         * modules/alloca (Makefile.am): All object files depend on alloca.h.
86909         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
86910
86911 2003-01-13  Bruno Haible  <bruno@clisp.org>
86912
86913         * gnulib-tool (func_create_testdir): Store config/* files in the main
86914         directory.
86915         * config.rpath: Move to ...
86916         * config/config.rpath: ... here.
86917         * modules/gettext: Contains config/config.rpath, not config.rpath.
86918         * modules/iconv: Likewise.
86919
86920 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86921
86922         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86923         to avoid collisions with libcurses and libreadline.
86924
86925         * m4/getstr.m4: Remove.
86926         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
86927
86928 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86929
86930         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86931         to avoid collisions with libcurses and libreadline.
86932
86933         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
86934         * lib/getstr.h, getstr.c: Remove.
86935         * lib/getline.c: Include "getline.h", to check interface.
86936         Move body of old getstr.c here: this defines MIN_CHUNK and
86937         declares getdelim2, which is renamed from getstr.
86938         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
86939
86940         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
86941         All uses changed.
86942         * lib/linebuffer.h: Likewise.
86943         (readline): Remove backward-compatibility macro.
86944
86945 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86946
86947         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86948         to avoid collisions with libcurses and libreadline.
86949         * getstr: Remove.
86950         * MODULES.html.sh: Remove getstr.
86951         * modules/getline: Depend on unlocked-io, not getstr.
86952
86953 2003-01-12  Jim Meyering  <jim@meyering.net>
86954
86955         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
86956
86957 2003-01-10  Bruno Haible  <bruno@clisp.org>
86958
86959         * modules/alloca: Change Makefile.am requirements. Simplify Include
86960         requirements. Add lib/alloca_.h to file list.
86961
86962 2003-01-10  Bruno Haible  <bruno@clisp.org>
86963
86964         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
86965
86966 2003-01-10  Bruno Haible  <bruno@clisp.org>
86967
86968         * lib/alloca_.h: New file.
86969         * lib/getdate.y: Unconditionally include alloca.h.
86970         * lib/makepath.c: Likewise.
86971         * lib/setenv.c: Likewise.
86972         * lib/userspec.c: Likewise.
86973
86974 2003-01-09  Karl Berry  <karl@gnu.org>
86975
86976         * MODULES.html.sh: include `dirname $0` in PATH, to find
86977         gnulib-tool.
86978
86979 2003-01-09  Bruno Haible  <bruno@clisp.org>
86980
86981         * modules/stdbool: Change configure.ac, Makefile.am requirements.
86982         Simplify Include requirements. Add lib/stdbool.h.in to file list.
86983
86984 2003-01-09  Bruno Haible  <bruno@clisp.org>
86985
86986         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
86987
86988 2003-01-09  Bruno Haible  <bruno@clisp.org>
86989
86990         * lib/stdbool.h.in: New file.
86991
86992 2003-01-09  Bruno Haible  <bruno@clisp.org>
86993
86994         * gnulib-tool (func_all_modules): Ignore files ending in ~.
86995         * MODULES.html.sh: Likewise.
86996
86997 2003-01-08  Jim Meyering  <jim@meyering.net>
86998
86999         * lib/full-write.c: Undefine and define-away `const' after inclusion
87000         of errno.h, not before.  Suggestion from Bruno Haible.
87001
87002 2003-01-08  Bruno Haible  <bruno@clisp.org>
87003
87004         * modules/full-read: Depend on full-write.
87005
87006 2003-01-08  Bruno Haible  <bruno@clisp.org>
87007
87008         * lib/safe-read.c: Include specification header first, to ensure its
87009         selfcontainedness.
87010         * lib/full-write.c: Likewise.
87011
87012 2003-01-07  Jim Meyering  <jim@meyering.net>
87013
87014         * lib/full-write.c: Rework so that it may serve to define full_read,
87015         too.
87016         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
87017
87018 2003-01-07  Bruno Haible  <bruno@clisp.org>
87019
87020         * lib/strtoimax.c: Include <stdint.h> as an alternative to
87021         <inttypes.h>.
87022         * lib/xstrtol.h: Likewise.
87023         * lib/xstrtoimax.c: Likewise.
87024         * lib/xstrtoumax.c: Likewise.
87025         * lib/human.h: Likewise.
87026
87027         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
87028         on systems that have <inttypes.h> but not <stdint.h>.
87029
87030 2003-01-07  Bruno Haible  <bruno@clisp.org>
87031
87032         * MODULES.html.sh: Add copyright notice.
87033         (missed_files): Omit CVS directory entries.
87034         (func_module): Make it work with sed-3.02.
87035         * MODULES.txt: Remove file.
87036
87037 2003-01-06  Jim Meyering  <jim@meyering.net>
87038
87039         * lib/version-etc.c: Update year in translatable copyright string.
87040
87041 2003-01-03  Karl Berry  <karl@gnu.org>
87042
87043         * config/config.{guess,sub}: update from prep.
87044
87045 2003-01-02  Karl Berry  <karl@gnu.org>
87046
87047         * doc/COPYING.DOC: belatedly updated to 1.2.
87048
87049 2003-01-01  Karl Berry  <karl@gnu.org>
87050
87051         * gnulib-tool (func_verify_module): report module name $module in
87052         error message, not $1.
87053         * gnulib-tool (create-testdir): don't complain if destdir couldn't
87054         be created, only if it doesn't exist.
87055         * gnulib-tool (last_checkin_date): don't expand the $Date here.
87056
87057 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87058
87059         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
87060
87061 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87062
87063         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
87064         memcmp if strcoll doesn't work.
87065
87066 2002-12-31  Bruno Haible  <bruno@clisp.org>
87067
87068         * lib/utime.c (utime_null): No need to call ftruncate if the file was
87069         nonempty.
87070
87071 2002-12-31  Bruno Haible  <bruno@clisp.org>
87072
87073         * lib/memcoll.c (STRCOLL): New macro.
87074         (memcoll): Use it.
87075
87076 2002-12-31  Bruno Haible  <bruno@clisp.org>
87077
87078         * lib/localcharset.h: New file.
87079         * lib/localcharset.c: Include it.
87080         * lib/unicodeio.c: Likewise.
87081
87082 2002-12-31  Bruno Haible  <bruno@clisp.org>
87083
87084         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
87085         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
87086
87087 2002-12-31  Bruno Haible  <bruno@clisp.org>
87088
87089         * lib/getline.h: Include <stddef.h>, for size_t.
87090
87091         * lib/unicodeio.h: Include <stddef.h>, for size_t.
87092         * lib/unicodeio.c: Don't include <stddef.h>.
87093
87094 2002-12-31  Bruno Haible  <bruno@clisp.org>
87095
87096         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
87097         HAVE_TM_ZONE.
87098
87099 2002-12-24  Karl Berry  <karl@gnu.org>
87100
87101         * config/config.guess: update from prep.
87102
87103 2002-12-24  Bruno Haible  <bruno@clisp.org>
87104
87105         General infrasructure.
87106         * m4/README: Rewritten.
87107         * m4/onceonly.m4: New file.
87108         * m4/onceonly_2_57.m4: New file.
87109
87110         Module atexit.
87111         * m4/atexit.m4: New file.
87112
87113         Module strtod.
87114         * m4/strtod.m4: New file.
87115
87116         Module strtol.
87117         * m4/strtol.m4: New file.
87118
87119         Module strtoul.
87120         * m4/strtoul.m4: New file.
87121
87122         Module memchr.
87123         * m4/memchr.m4: New file.
87124
87125         Module memcmp.
87126         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
87127         (jm_FUNC_MEMCMP): Invoke it.
87128
87129         Module memcpy.
87130         * m4/memcpy.m4: New file.
87131
87132         Module memmove.
87133         * m4/memmove.m4: New file.
87134
87135         Module memset.
87136         * m4/memset.m4: New file.
87137
87138         Module strcspn.
87139         * m4/strcspn.m4: New file.
87140
87141         Module strpbrk.
87142         * m4/strpbrk.m4: New file.
87143
87144         Module strstr.
87145         * m4/strstr.m4: New file.
87146
87147         Module strerror.
87148         * m4/strerror.m4: New file.
87149
87150         Module mktime.
87151         * m4/mktime.m4: Renamed from jm-mktime.m4.
87152         (gl_PREREQ_MKTIME): New macro.
87153         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
87154
87155         Module malloc.
87156         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
87157         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
87158         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
87159
87160         Module realloc.
87161         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
87162         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
87163         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
87164
87165         Module strftime.
87166         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
87167         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
87168         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
87169         gl_TM_GMTOFF.
87170         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
87171
87172         Module xalloc.
87173         * m4/xalloc.m4: New file.
87174
87175         Module alloca.
87176         * m4/alloca.m4: New file.
87177
87178         Module putenv.
87179         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
87180         (jm_FUNC_PUTENV): Invoke it.
87181
87182         Module setenv.
87183         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
87184         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
87185         when invoked twice.
87186         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
87187         gt_FUNC_SETENV.
87188
87189         Module memrchr.
87190         * m4/memrchr.m4: New file.
87191
87192         Module stpcpy.
87193         * m4/stpcpy.m4: New file.
87194
87195         Module strcase.
87196         * m4/strcase.m4: New file.
87197
87198         Module strdup.
87199         * m4/strdup.m4: New file.
87200
87201         Module strnlen.
87202         * m4/strnlen.m4: New file.
87203
87204         Module strndup.
87205         * m4/strndup.m4: New file.
87206
87207         Module xstrtod.
87208         * m4/xstrtod.m4: New file.
87209
87210         Module xstrtol.
87211         * m4/xstrtol.m4: New file.
87212
87213         Module getdate.
87214         * m4/getdate.m4: New file.
87215
87216         Module unlocked-io.
87217         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
87218         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
87219         * m4/jm-glibc-io.m4n: Remove file.
87220
87221         Module long-options.
87222         * m4/long-options.m4: New file.
87223
87224         Module md5.
87225         * m4/md5.m4: New file.
87226
87227         Module sha.
87228         * m4/sha.m4: New file.
87229
87230         Module getstr.
87231         * m4/getstr.m4: New file.
87232
87233         Module getline.
87234         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
87235         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
87236         <sys/types.h>, for size_t. Use the function name gnu_getline, not
87237         simply getline. Infoke gl_PREREQ_GETLINE.
87238
87239         Module obstack.
87240         * m4/obstack.m4: New file.
87241
87242         Module hash.
87243         * m4/hash.m4: New file.
87244
87245         Module readtokens.
87246         * m4/readtokens.m4: New file.
87247
87248         Module strverscmp.
87249         * m4/strverscmp.m4: New file.
87250
87251         Module stdbool.
87252         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
87253         OSF/1.
87254
87255         Module strtoll.
87256         * m4/strtoll.m4: New file.
87257
87258         Module strtoull.
87259         * m4/strtoull.m4: New file.
87260
87261         Module strtoimax.
87262         * m4/strtoimax.m4: New file.
87263
87264         Module strtoumax.
87265         * m4/strtoumax.m4: New file.
87266
87267         Module xstrtoimax.
87268         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
87269         jm_AC_PREREQ_XSTRTOIMAX.
87270         Moved the strtol prerequisites to strtol.m4.
87271         Moved the strtoll prerequisites to strtoll.m4.
87272         Moved the strtoimax prerequisites to strtoimax.m4.
87273
87274         Module xstrtoumax.
87275         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
87276         jm_AC_PREREQ_XSTRTOUMAX.
87277         Moved the strtoul prerequisites to strtoul.m4.
87278         Moved the strtoull prerequisites to strtoull.m4.
87279         Moved the strtoumax prerequisites to strtoumax.m4.
87280
87281         Module chown.
87282         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
87283         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
87284
87285         Module dup2.
87286         * m4/dup2.m4: New file.
87287
87288         Module ftruncate.
87289         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
87290         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
87291
87292         Module getgroups.
87293         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
87294         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
87295
87296         Module gettimeofday.
87297         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
87298         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
87299         gl_PREREQ_GETTIMEOFDAY.
87300
87301         Module mkdir.
87302         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
87303         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
87304
87305         Module mkstemp.
87306         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
87307         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
87308         jm_AC_TYPE_UINTMAX_T.
87309         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
87310
87311         Module stat.
87312         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
87313         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
87314
87315         Module lstat.
87316         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
87317         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
87318
87319         Module timespec.
87320         * m4/timespec.m4 (gl_TIMESPEC): New macro.
87321         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
87322         * m4/st_mtim.m4: Indentation.
87323
87324         Module nanosleep.
87325         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
87326         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
87327         gl_PREREQ_NANOSLEEP.
87328
87329         Module regex.
87330         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
87331         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
87332         (gl_REGEX): New macro.
87333
87334         Module rename.
87335         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
87336         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
87337
87338         Module rmdir.
87339         * m4/rmdir.m4: New file.
87340
87341         Module utime.
87342         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
87343         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
87344         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
87345
87346         Module dirname.
87347         * m4/dirname.m4: New file.
87348
87349         Module getopt.
87350         * m4/getopt.m4: New file.
87351
87352         Module unistd-safer.
87353         * m4/unistd-safer.m4: New file.
87354
87355         Module fnmatch.
87356         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
87357         declaration.
87358         (gl_PREREQ_FNMATCH_EXTRA): New macro.
87359         (gl_FUNC_FNMATCH_POSIX): New macro.
87360         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
87361         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
87362         simply fnmatch.
87363
87364         Module exclude.
87365         * m4/exclude.m4: New file.
87366
87367         Module human.
87368         * m4/human.m4: New file.
87369
87370         Module acl.
87371         * m4/acl.m4: Nop.
87372
87373         Module backupfile.
87374         * m4/backupfile.m4: New file.
87375         * m4/d-ino.m4: Indentation.
87376
87377         Module fsusage.
87378         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
87379         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
87380         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
87381
87382         Module dirfd.
87383         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
87384         requirements.
87385
87386         Module euidaccess.
87387         * m4/euidaccess.m4: New file.
87388
87389         Module file-type.
87390         * m4/file-type.m4: New file.
87391
87392         Module fileblocks.
87393         * m4/fileblocks.m4: New file.
87394
87395         Module filemode.
87396         * m4/filemode.m4: New file.
87397
87398         Module isdir.
87399         * m4/isdir.m4: New file.
87400
87401         Module lchown.
87402         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
87403         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
87404
87405         Module makepath.
87406         * m4/makepath.m4: New file.
87407
87408         Module modechange.
87409         * m4/modechange.m4: New file.
87410
87411         Module mountlist.
87412         * m4/mountlist.m4: New file.
87413         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
87414         Indentation.
87415
87416         Module path-concat.
87417         * m4/path-concat.m4: New file.
87418
87419         Module pathmax.
87420         * m4/pathmax.m4: New file.
87421
87422         Module same.
87423         * m4/same.m4: New file.
87424
87425         Module save-cwd.
87426         * m4/save-cwd.m4: New file.
87427
87428         Module savedir.
87429         * m4/savedir.m4: New file.
87430
87431         Module xgetcwd.
87432         * m4/xgetcwd.m4: New file.
87433         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
87434
87435         Module xreadlink.
87436         * m4/xreadlink.m4: New file.
87437
87438         Module safe-read.
87439         * m4/safe-read.m4: New file.
87440
87441         Module safe-write.
87442         * m4/safe-write.m4: New file.
87443
87444         Module closeout.
87445         * m4/closeout.m4: New file.
87446
87447         Module stdio-safer.
87448         * m4/stdio-safer.m4: New file.
87449
87450         Module getpass.
87451         * m4/getpass.m4: New file.
87452
87453         Module getugroups.
87454         * m4/getugroups.m4: New file.
87455
87456         Module group-member.
87457         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
87458         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
87459
87460         Module idcache.
87461         * m4/idcache.m4: New file.
87462
87463         Module userspec.
87464         * m4/userspec.m4: New file.
87465
87466         Module gettime.
87467         * m4/clock_time.m4: New file.
87468         * m4/gettime.m4: New file.
87469
87470         Module settime.
87471         * m4/settime.m4: New file.
87472
87473         Module posixtm.
87474         * m4/posixtm.m4: New file.
87475
87476         Module gethostname.
87477         * m4/gethostname.m4: New file.
87478
87479         Module canon-host.
87480         * m4/canon-host.m4: New file.
87481
87482         Module gettext.
87483         * m4/codeset.m4: New file, from gettext-0.11.5.
87484         * m4/gettext.m4: New file, from gettext-0.11.5.
87485         * m4/glibc21.m4: New file, from gettext-0.11.5.
87486         * m4/iconv.m4: New file, from gettext-0.11.5.
87487         * m4/intdiv0.m4: New file, from gettext-0.11.5.
87488         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
87489         * m4/inttypes.m4: New file, from gettext-0.11.5.
87490         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
87491         * m4/isc-posix.m4: New file, from gettext-0.11.5.
87492         * m4/lcmessage.m4: New file, from gettext-0.11.5.
87493         * m4/lib-ld.m4: New file, from gettext-0.11.5.
87494         * m4/lib-link.m4: New file, from gettext-0.11.5.
87495         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
87496         * m4/progtest.m4: New file, from gettext-0.11.5.
87497         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
87498         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
87499         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
87500
87501         Module localcharset.
87502         * m4/localcharset.m4: New file.
87503
87504         Module hard-locale.
87505         * m4/hard-locale.m4: New file.
87506
87507         Module mbswidth.
87508         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
87509         onceonly macros.
87510         * m4/mbrtowc.m4: Add comment.
87511
87512         Module memcasecmp.
87513         * m4/memcasecmp.m4: New file.
87514
87515         Module memcoll.
87516         * m4/memcoll.m4: New file.
87517
87518         Module unicodeio.
87519         * m4/unicodeio.m4: New file.
87520
87521         Module rpmatch.
87522         * m4/rpmatch.m4: New file.
87523
87524         Module yesno.
87525         * m4/yesno.m4: New file.
87526
87527         Module exitfail.
87528         * m4/exitfail.m4: New file.
87529
87530         Module c-stack.
87531         * m4/c-stack.m4 (gl_C_STACK): New macro.
87532         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
87533
87534         Module error.
87535         * m4/error.m4 (gl_ERROR): New macro.
87536         (jm_PREREQ_ERROR): Use onceonly macros.
87537
87538         Module fatal.
87539         * m4/fatal.m4: New file.
87540
87541         Module getloadavg.
87542         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
87543         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
87544
87545         Module getpagesize.
87546         * m4/getpagesize.m4: New file.
87547
87548         Module getusershell.
87549         * m4/getusershell.m4: New file.
87550
87551         Module physmem.
87552         * m4/physmem.m4: New file.
87553
87554         Module posixver.
87555         * m4/posixver.m4: New file.
87556
87557         Module quotearg.
87558         * m4/quotearg.m4: New file.
87559
87560         Module quote.
87561         * m4/quote.m4: New file.
87562
87563         Module readutmp.
87564         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
87565
87566         Module sig2str.
87567         * m4/sig2str.m4: New file.
87568
87569         Other.
87570         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
87571         ulonglong.m4.
87572         * m4/intmax_t.m4: New file.
87573         * m4/d-type.m4: Indentation.
87574         * m4/jm-macros.m4: Update.
87575         * m4/prereq.m4 (jm_PREREQ): Update.
87576         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
87577         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
87578         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
87579         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
87580         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
87581         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
87582         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
87583         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
87584         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
87585         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
87586         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
87587         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
87588         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
87589         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
87590         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
87591         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
87592         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
87593         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
87594         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
87595
87596 2002-12-24  Bruno Haible  <bruno@clisp.org>
87597
87598         * MODULES.txt: Update according to m4/ changes.
87599
87600         Module gettext.
87601         * config.rpath: New file, from gettext-0.11.5.
87602
87603         * modules/*: New module descriptions.
87604         * gnulib-tool: New file.
87605         * MODULES.html.sh: New file.
87606
87607 2002-12-21  Karl Berry  <karl@gnu.org>
87608
87609         * doc/fdl.texi: update to version 1.2.
87610
87611 2002-12-19  Karl Berry  <karl@gnu.org>
87612
87613         * config/config.guess: update from prep.
87614
87615 2002-12-18  Bruno Haible  <bruno@clisp.org>
87616
87617         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
87618         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
87619
87620 2002-12-17  Bruno Haible  <bruno@clisp.org>
87621
87622         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
87623         stdlib.h, string.h.
87624
87625 2002-12-17  Bruno Haible  <bruno@clisp.org>
87626
87627         * lib/canon-host.c (strdup): Remove unused declaration.
87628
87629         * lib/fsusage.c: Include full_read.h.
87630         (get_fs_usage): Use full_read instead of safe_read.
87631
87632         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
87633
87634 2002-12-12  Karl Berry  <karl@gnu.org>
87635
87636         * config/config.guess: update from prep.
87637
87638 2002-12-11  Bruno Haible  <bruno@clisp.org>
87639
87640         * m4/setenv.m4: New file, from gettext-0.11.5.
87641
87642 2002-12-11  Bruno Haible  <bruno@clisp.org>
87643
87644         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
87645         not unsetenv().
87646         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
87647         modifications:
87648
87649         2002-12-11  Bruno Haible  <bruno@clisp.org>
87650
87651                 * setenv.c (alloca): Fall back to malloc.
87652                 (freea): New macro.
87653                 (setenv): Use freea() to free memory allocated with alloca().
87654
87655         2002-11-13  Bruno Haible  <bruno@clisp.org>
87656
87657                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
87658                 function declarations.
87659                 * unsetenv.c (unsetenv): Likewise.
87660
87661         2002-03-04  Bruno Haible  <bruno@clisp.org>
87662
87663                 Portability to AIX 4.3.3.
87664                 * unsetenv.c: New file, extracted from setenv.c.
87665                 * setenv.c: Move the unsetenv() function to unsetenv.c.
87666
87667         2001-12-20  Bruno Haible  <bruno@clisp.org>
87668
87669                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
87670                 use malloc instead. For SunOS 4.
87671
87672         2001-12-11  Bruno Haible  <bruno@clisp.org>
87673
87674                 * setenv.c: Declare alloca.
87675                 (compar_fn_t): New typedef.
87676                 (KNOWN_VALUE, STORE_VALUE): Use it.
87677
87678         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
87679         setenv.h.
87680
87681 2002-12-10  Paul Eggert  <eggert@twinsun.com>
87682
87683         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
87684         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
87685         Choose values that are less likely to collide with system fnmatch
87686         options.
87687         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
87688         defined (e.g., a pure POSIX system).
87689         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
87690         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
87691
87692 2002-12-06  Paul Eggert  <eggert@twinsun.com>
87693
87694         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
87695         a pain in practice to deal with generated m4 files.  This change
87696         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
87697
87698         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
87699         and jm-glibc-io.m4, as they are no longer a special case.
87700         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
87701         kludge and the auto-generation stuff.  Check only whether the
87702         functions are declared, not whether they exist, since older hosts
87703         that don't declare the functions can't use the optimization anyway.
87704
87705 2002-12-06  Jim Meyering  <jim@meyering.net>
87706
87707         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
87708
87709         Merge in changes from libc's misc/error.c, in preparation
87710         for the merge of gnulib's changes back into libc.
87711
87712         * lib/error.c (_): Define only if not already defined.
87713         Move definition to follow all #include directives.
87714         Include unlocked-io.h only if !_LIBC.
87715         [_LIBC]: Include <libio/libioP.h>.
87716         [USE_IN_LIBIO]: Include <libio/iolibio.h>
87717         (fflush): Tweak definition to use INTUSE.
87718         (putc): Define.
87719
87720 2002-12-05  Paul Eggert  <eggert@twinsun.com>
87721
87722         * lib/alloca.c [defined emacs]: Include "lisp.h".
87723         (xalloc_die) [defined emacs]: New macro.
87724         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
87725         [! defined emacs]: Include <xalloc.h>.
87726         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
87727         (pointer): Typedef to POINTER_TYPE *.
87728         (malloc): Remove decl; we now always use xmalloc.
87729         (alloca): Use old-style definition, since Emacs needs this.
87730         Check for arithmetic overflow when computing combined size.
87731
87732 2002-12-04  Paul Eggert  <eggert@twinsun.com>
87733
87734         Do not generate unlocked-io.h automatically, since it's easier to
87735         maintain it by hand.
87736
87737         * lib/unlocked-io.h: New file, from GNU diffutils,
87738         but with proper copyright notice and attribution.
87739         * lib/gen-uio: Remove.
87740         * lib/Makefile.am: Add copyright notice.
87741         (libfetish_a_SOURCES): Add unlocked-io.h.
87742         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
87743         (DISTCLEANFILES, io_functions): Remove macros.
87744         (EXTRA_DIST): Remove gen_uio.
87745         (unlocked-io.h): Remove rule.
87746
87747 2002-12-04  Jim Meyering  <jim@meyering.net>
87748
87749         Reflect the fact that stat.c and lstat.c are no longer generated.
87750         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
87751         (DISTCLEANFILES): Likewise.
87752         (EXTRA_DIST): Likewise.
87753         (all_local): Don't depend on stat.c or lstat.c.
87754         (stat.c, lstat.c): Remove rules.
87755         (EXTRA_DIST): Remove xstat.in.
87756
87757         * lib/xstat.in: Remove file.  Contents moved into stat.c.
87758         * lib/stat.c: New file.  Contents mostly from xstat.in.
87759         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
87760         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
87761
87762         * lib/safe-read.c: Rework so that it may serve to define safe_write,
87763         too.
87764         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
87765
87766 2002-12-03  Jim Meyering  <jim@meyering.net>
87767
87768         * lib/safe-read.c, safe-write.c: Change variable names and comments,
87769         but not semantics, to minimize the differences between these two files.
87770         (safe_read): Change comment to mention SAFE_READ_ERROR.
87771
87772         * lib/safe-read.c (IS_EINTR): Define.
87773         (safe_read): Use IS_EINTR in place of in-function cpp directives.
87774
87775 2002-12-02  Jim Meyering  <jim@meyering.net>
87776
87777         * lib/safe-read.c (EINTR): Define.
87778         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87779         (INT_MAX): Provide fallback.
87780         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
87781
87782         * lib/safe-read.h (SAFE_READ_ERROR): Define.
87783
87784 2002-12-02  Bruno Haible  <bruno@clisp.org>
87785
87786         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
87787         Define, taken from safe-read.c.
87788         (INT_MAX): Provide fallback.
87789         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
87790         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
87791
87792         * lib/safe-read.c (EINTR): Remove definition.
87793         (safe_read): Don't use EINTR if it is absent.
87794
87795 2002-12-01  Jim Meyering  <jim@meyering.net>
87796
87797         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
87798         zero.
87799         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
87800
87801 2002-11-27  Paul Eggert  <eggert@twinsun.com>
87802
87803         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
87804         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
87805         with `if (! (value < limit)) abort ();', for readability.
87806
87807 2002-11-26  Karl Berry  <karl@gnu.org>
87808
87809         * lib/strdup.c: copy from libc again, with jim's ok.
87810         * lib/.cppi-disable: re-add strdup.c
87811
87812 2002-11-25  Karl Berry  <karl@gnu.org>
87813
87814         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
87815         instead of "strtol.c".
87816
87817 2002-11-25  Karl Berry  <karl@gnu.org>
87818
87819         * config/install-sh: update from automake for variable quoting, $0 in
87820         error msgs, etc.
87821
87822         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
87823         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
87824         entry.
87825
87826 2002-11-25  Jim Meyering  <jim@meyering.net>
87827
87828         * lib/mktime.c: Sync from libc, now that it has the latest fix.
87829
87830 2002-11-24  Karl Berry  <karl@gnu.org>
87831
87832         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
87833         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
87834
87835 2002-11-24  Jim Meyering  <jim@meyering.net>
87836
87837         Update from coreutils:
87838
87839         * lib/mktime.c: Merge in changes from libc.
87840
87841         Avoid a link-time failure on some Linux systems.
87842         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
87843         (otherwise).
87844         (__mon_yday): Declare with the STATIC attribute.
87845         (__mktime_internal): Likewise.
87846         Based on a report from Greg Schafer.
87847
87848 2002-11-23  Jim Meyering  <jim@meyering.net>
87849
87850         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
87851         Use `unsigned', not `int', as type of index.
87852
87853         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
87854
87855         * lib/fsusage.c: Remove unneeded parentheses around operands of
87856         `defined'.
87857
87858 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87859
87860         * lib/quotearg.h: Allow multiple inclusion by surrounding with
87861         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
87862         so that we can be included first.
87863         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
87864         * lib/quotearg.c: Include quotearg.h immediately after config.h.
87865         No need to include stddef.h or sys/types.h any more.
87866         Surround local include files with "", not "<>".
87867         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
87868         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
87869         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
87870         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
87871         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
87872         (ISPRINT): Remove; no longer needed now that we assume C89.
87873
87874         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
87875         Preserve errno.
87876
87877         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
87878         quotearg_char): Use SIZE_MAX rather than
87879         (size_t) -1 when we are talking about "infinity".
87880
87881         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
87882
87883 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87884
87885         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
87886         hint that one should use `if (! x) abort ();' rather than `assert
87887         (x);', and anyway it's one less thing to worry about configuring.
87888         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
87889         hash_rehash, hash_insert): Use abort rather than assert.
87890
87891 2002-11-22  Bruno Haible  <bruno@clisp.org>
87892
87893         * lib/safe-read.h: Assume C89. Add comments.
87894         (safe_read): Change return type to size_t.
87895         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
87896         byte counts > SSIZE_MAX correctly.
87897         * lib/safe-write.h: New file.
87898         * lib/safe-write.c: New file.
87899         * lib/full-read.h: New file.
87900         * lib/full-read.c: New file.
87901         * lib/full-write.h: Assume C89. Add comments.
87902         * lib/full-write.c: Include safe-write.h.
87903         (full_write): Rewritten to use safe_write.
87904         Suggested by Jim Meyering and Paul Eggert.
87905
87906 2002-11-21  Jim Meyering  <jim@meyering.net>
87907
87908         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
87909
87910         Merge in changes from the coreutils.
87911
87912         2002-09-25  Paul Eggert  <eggert@twinsun.com>
87913         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
87914         <stdint.h>.
87915         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
87916         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
87917         int.  Work more efficiently if X is the same width as uintmax_t.
87918         Do not compare X to -1, to avoid bogus compiler warning.
87919         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
87920         Don't assume that f_frsize and f_bsize are the same type.
87921
87922         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
87923         warning on FreeBSD.
87924
87925         * lib/makepath.c (make_path): Restore umask *before* creating the final
87926         component.
87927         (make_path): Minor reformatting.
87928
87929         * lib/xmalloc.c: Adjust to work with new autoconf macros,
87930         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
87931         HAVE_MALLOC/HAVE_REALLOC.
87932
87933         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
87934         dummy ones.  At least on GNU/Linux systems, `auto' means something
87935         else.
87936         From Michael Stone.
87937
87938 2002-11-21  Bruno Haible  <bruno@clisp.org>
87939
87940         Remove case insensitive option matching.
87941         * lib/argmatch.h (argcasematch): Remove declaration.
87942         (ARGCASEMATCH): Remove macro.
87943         (__xargmatch_internal): Remove case_sensitive argument.
87944         (XARGMATCH): Update.
87945         (XARGCASEMATCH): Remove macro.
87946         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
87947         case_sensitive argument.
87948         (argcasematch): Remove function.
87949         (__xargmatch_internal): Remove case_sensitive argument.
87950         (main): Use XARGMATCH instead of XARGCASEMATCH.
87951
87952         * lib/xmalloc.c: Change compile-time error message. Add comment about
87953         required autoconf version.
87954
87955 2002-11-20  Paul Eggert  <eggert@twinsun.com>
87956
87957         Merge argmatch cleanups from Bison.  Assume C89.
87958
87959         * lib/argmatch.c: Include config.h here, not in argmatch.h.
87960         Include stdlib.h, for EXIT_FAILURE.
87961         Always include <string.h>, since we assume C89.
87962         (EXIT_FAILURE): Remove pre-C89 bug workaround.
87963         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
87964         Include <stddef.h> instead, since it's all we need for size_t.
87965         (PARAMS): Remove.  All uses removed.
87966         (ARRAY_CARDINALITY): Do not bother to #undef.
87967         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
87968         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87969         Remove unnecessary parentheses.
87970         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87971         Insert necessary parentheses.
87972         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
87973         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
87974
87975 2002-11-19  Bruno Haible  <bruno@clisp.org>
87976
87977         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
87978         * lib/mbswidth.h: Include <stddef.h>, for size_t.
87979
87980         * lib/mbswidth.h (PARAMS): Remove macro.
87981         (mbswidth, mbsnwidth): Use ANSI C function declarations.
87982         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
87983
87984         * lib/gcd.h (PARAMS): Remove macro.
87985         (gcd): Use ANSI C function declarations.
87986         * lib/gcd.c (gcd): Likewise.
87987
87988 2002-11-15  Bruno Haible  <bruno@clisp.org>
87989
87990         * lib/strcspn.c: Include <stddef.h>.
87991         (strcspn): Use ANSI C function declaration. Change return type to
87992         size_t. Use NULL.
87993         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
87994         (strpbrk): Use NULL.
87995         * lib/strpbrk.h (PARAMS): Remove macro.
87996         (strpbrk): Use ANSI C function declaration.
87997         * lib/strstr.c: Don't include <sys/types.h>.
87998         * lib/strstr.h (PARAMS): Remove macro.
87999         (strstr): Use ANSI C function declarations.
88000
88001 2002-11-14  Karl Berry  <karl@gnu.org>
88002
88003         * config/mkinstalldirs: `do' on separate line, instead of
88004         `for var; do'.
88005
88006 2002-11-06  Bruno Haible  <bruno@clisp.org>
88007
88008         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
88009         * lib/gcd.c (gcd): Likewise.
88010
88011 2002-11-05  Bruno Haible  <bruno@clisp.org>
88012
88013         * lib/gcd.h: New file, from gettext-0.11.5.
88014         * lib/gcd.c: New file, from gettext-0.11.5.
88015
88016 2002-11-05  Bruno Haible  <bruno@clisp.org>
88017
88018         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88019         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88020         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88021         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88022
88023         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
88024         <libintl.h>.
88025         * lib/makepath.c: Include gettext.h instead of <locale.h> and
88026         <libintl.h>.
88027
88028         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
88029         * lib/human.c: Include gettext.h instead of <libintl.h>.
88030         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
88031         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
88032         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
88033         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
88034         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
88035         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
88036         (textdomain): Remove definition.
88037         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
88038
88039         * lib/long-options.c: Remove include of <libintl.h> and definition of
88040         _.
88041         * lib/same.c: Remove include of <libintl.h> and definition of _.
88042
88043 2002-11-04  Owen Taylor  <otaylor@redhat.com>
88044
88045         * lib/config.charset: A few additions for Solaris.
88046
88047 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88048
88049         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
88050         * lib/localcharset.c (locale_charset): Declare as extern "C".
88051
88052 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88053
88054         * lib/config.charset: msdos in uk_UA uses CP1125.
88055
88056 2002-11-04  Bruno Haible  <bruno@clisp.org>
88057
88058         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
88059         * lib/strcase.h: New file, from GNU gettext-0.11.5.
88060         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
88061         * lib/strstr.h: New file, from GNU gettext-0.11.5.
88062         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
88063
88064 2002-11-04  Bruno Haible  <bruno@clisp.org>
88065
88066         * lib/localcharset.c (locale_charset): Don't return an empty string.
88067
88068 2002-11-04  Bruno Haible  <bruno@clisp.org>
88069
88070         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
88071         aliases.
88072
88073 2002-11-04  Bruno Haible  <bruno@clisp.org>
88074
88075         * lib/config.charset: Update for newest glibc. Add canonical names
88076         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
88077
88078 2002-11-04  Bruno Haible  <bruno@clisp.org>
88079
88080         * lib/config.charset: Add support for NetBSD.
88081
88082 2002-11-04  Bruno Haible  <bruno@clisp.org>
88083
88084         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
88085
88086 2002-11-01  Bruno Haible  <bruno@clisp.org>
88087
88088         * configure.in: Add AC_CONFIG_AUX_DIR call.
88089         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
88090         test/Makefile.
88091         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
88092
88093 2002-09-28  Karl Berry  <karl@gnu.org>
88094
88095         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
88096         installed automake until the next release, since changes have been
88097         made.
88098
88099 2002-09-25  Karl Berry  <karl@gnu.org>
88100
88101         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
88102         * lib/getopt*: copy from libc/posix.
88103         * lib/gettext.h: copy from gettext.
88104         * lib/.cppi-disable: add strdup.c, gettext.h.
88105
88106 2002-09-25  Karl Berry  <karl@gnu.org>
88107
88108         * config/srclist.txt: enable gettext.h check.
88109         * config/config.{guess,sub}: update from prep.
88110         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
88111                 from automake 1.6.3.
88112         See srclist*.
88113
88114 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
88115
88116         * regex.c (PATFETCH): Remove the translating fetch.
88117         (PATFETCH_RAW): Rename to PATFETCH.
88118         (set_image_of_range): New fun.
88119         (SET_RANGE_TABLE_WORK_AREA): Use it.
88120         (regex_compile): Don't translate the pattern chars so eagerly.
88121         Only do it when inserting an `exactn' bytecode or when handling
88122         a char-range.
88123         (mutually_exclusive_p): Avoid empty statement.
88124
88125 2002-07-06  Jim Meyering  <meyering@lucent.com>
88126
88127         * m4/README: Don't mention Makefile.am.in.
88128         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
88129
88130 2002-07-01  Jim Meyering  <meyering@lucent.com>
88131
88132         * lib/c-stack.c: Include sys/time.h.
88133         From Volker Borchert.
88134
88135 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88136
88137         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
88138
88139 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88140
88141         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
88142         New macro.  Use it uniformly instead of
88143         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
88144         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
88145         reported by Vin Shelton.
88146
88147 2002-06-22  Paul Eggert  <eggert@twinsun.com>
88148
88149         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
88150         Do not assume SA_SIGINFO behavior.
88151         Bug reported by Jim Meyering on NetBSD 1.5.2.
88152
88153 2002-06-22  Jim Meyering  <meyering@lucent.com>
88154
88155         * m4/c-stack.m4: New file, from diffutils-2.8.2.
88156         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
88157
88158         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
88159         now that configure.ac uses AC_GNU_SOURCE.
88160         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
88161         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
88162
88163         Update to latest tools.  Suggestions from Paul Eggert.
88164         * m4/stdbool.m4: New file, from diffutils-2.8.2.
88165         * m4/gnu-source.m4: Update from diffutils-2.8.2.
88166         * m4/fnmatch.m4: Likewise.
88167         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
88168         to AC_HEADER_STDBOOL
88169
88170 2002-06-22  Jim Meyering  <meyering@lucent.com>
88171
88172         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
88173         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
88174
88175 2002-06-22  Jim Meyering  <meyering@lucent.com>
88176
88177         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
88178
88179         * lib/exitfail.c, exitfail.h: Likewise.
88180         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
88181
88182         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
88183         of fnmatch.h.
88184         (EXTRA_DIST): Add fnmatch_loop.c.
88185         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
88186
88187         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
88188         * lib/fnmatch.c: Update from diffutils-2.8.2.
88189         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
88190         * lib/fnmatch.h: Remove file.
88191
88192 2002-06-21  Jim Meyering  <meyering@lucent.com>
88193
88194         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
88195         * m4/mbrtowc.m4: Likewise.
88196
88197         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
88198         * m4/mbswidth.m4: Reflect name change:
88199         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
88200         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88201
88202         * m4/lib-link.m4: Update from gettext-0.11.2.
88203         * m4/gettext.m4: Likewise.
88204
88205         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
88206         From Alfred M. Szmidt.
88207
88208 2002-06-18  Paul Eggert  <eggert@twinsun.com>
88209
88210         * lib/file-type.h: Report an error if neither S_ISREG nor
88211         S_IFREG is defined, instead of using a test specific to glibc
88212         2.2.  This should be safe, since POSIX requires S_ISREG and
88213         Unix Version 7 had S_IFREG.  We don't need to check for
88214         <sys/types.h> since we don't use any symbols that it defines.
88215
88216 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
88217
88218         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
88219         $@-t, so that each temporary file name is unique and valid in the first
88220         8 characters, for operation under DOS.
88221
88222 2002-06-15  Paul Eggert  <eggert@twinsun.com>
88223
88224         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
88225
88226 2002-06-15  Jim Meyering  <meyering@lucent.com>
88227
88228         Work even with DJGPP 2.03, which lacks support for symlinks.
88229         From Richard Dawe.
88230         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
88231         is defined.
88232         * lib/lchown.c (S_ISLNK): Likewise.
88233
88234 2002-06-15  Jim Meyering  <meyering@lucent.com>
88235
88236         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
88237         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
88238         have been included before this file.
88239
88240 2002-06-14  Jim Meyering  <meyering@lucent.com>
88241
88242         * lib/file-type.h: Use the version from diffutils-2.8.2.
88243         * lib/file-type.c: Likewise.
88244
88245 2002-06-07  Jim Meyering  <meyering@lucent.com>
88246
88247         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
88248         They're needed at least for NetBSD 1.5.2.
88249         ($statxfs_includes): Include those same headers.
88250         ($statxfs_includes): Include sys/vfs.h if available.
88251         ($statxfs_includes): Likewise for sys/statvfs.h.
88252         Check for the following members in both structs statfs and statvfs:
88253         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
88254
88255 2002-06-01  Jim Meyering  <meyering@lucent.com>
88256
88257         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
88258         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
88259
88260 2002-05-28  Jim Meyering  <meyering@lucent.com>
88261
88262         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
88263         Reported by Volker Borchert.
88264
88265 2002-05-27  Jim Meyering  <meyering@lucent.com>
88266
88267         Fix a problem seen only on nonconforming systems whereby ls.c's
88268         use of localtime, and then of gettimeofday would cause trouble:
88269         the localtime call used to initialize rpl_gettimeofday's save
88270         mechanism would clobber ls's current local time information so
88271         that in any long listing the first file would always be listed
88272         with date 1970-01-01.  Analysis by Volker Borchert.
88273
88274         * lib/gettimeofday.c (localtime): Undefine.
88275         (rpl_localtime): New function.
88276
88277 2002-05-27  Jim Meyering  <meyering@lucent.com>
88278
88279         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
88280         localtime.
88281
88282         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
88283         use the replacement function; it wouldn't resolve at link time.
88284         Reported by Volker Borchert.
88285
88286 2002-05-22  Jim Meyering  <meyering@lucent.com>
88287
88288         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
88289         file-type.h.
88290         * lib/file-type.h: New file.
88291         * lib/file-type.c (file_type): New file/function.  Extracted from
88292         diffutils.
88293
88294 2002-04-30  Jim Meyering  <meyering@lucent.com>
88295
88296         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
88297
88298 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88299
88300         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
88301
88302 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88303
88304         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
88305         Do not check for alloca.h (no longer used) or stdbool.h (was never
88306         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
88307
88308 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88309
88310         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
88311
88312 2002-04-29  Jim Meyering  <meyering@lucent.com>
88313
88314         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
88315         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
88316         Use AC_FUNC_STRNLEN here instead.
88317
88318         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
88319         With autoconf-2.53a, it's part of AC_PROG_CC.
88320
88321 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88322
88323         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
88324         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
88325
88326 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88327
88328         * lib/sig2str.h, lib/sig2str.c: New files.
88329         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
88330
88331 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88332
88333         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
88334         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
88335         of 127, since 64 is the largest conceivable number for ancient
88336         nonstandard hosts.
88337         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
88338
88339 2002-04-28  Jim Meyering  <meyering@lucent.com>
88340
88341         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
88342
88343 2002-04-24  Jim Meyering  <meyering@lucent.com>
88344
88345         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
88346         (jm_PREREQ): Use it.
88347
88348         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
88349         mach/mach.h fcntl.h.
88350         Check for this function: setlocale.
88351
88352 2002-04-24  Jim Meyering  <meyering@lucent.com>
88353
88354         * lib/gettext.h: New file, from Gettext.
88355         * lib/Makefile.am (INCLUDES): Remove -I../intl.
88356         (libfetish_a_SOURCES): Add gettext.h.
88357
88358 2002-04-16  Jim Meyering  <meyering@lucent.com>
88359
88360         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
88361         ut_pid, ut_id, ut_exit.
88362
88363 2002-04-16  Jim Meyering  <meyering@lucent.com>
88364
88365         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
88366         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
88367         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
88368
88369 2002-04-12  Jim Meyering  <meyering@lucent.com>
88370
88371         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
88372         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
88373         existence of the getmntinfo function.  Needed for Darwin 5.3.
88374
88375         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
88376         This is necessary at least on Darwin 5.3.
88377
88378         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
88379         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
88380         strnlen.o in the library, and that makes some versions of ranlib
88381         object.
88382
88383 2002-04-12  Jim Meyering  <meyering@lucent.com>
88384
88385         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
88386
88387 2002-04-09  Jim Meyering  <meyering@lucent.com>
88388
88389         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
88390         to be more precise.  Rather than saying we're checking whether the
88391         function `works', say what we're testing.
88392         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
88393         Reported by Bruno Haible.
88394
88395 2002-03-10  Jim Meyering  <meyering@lucent.com>
88396
88397         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
88398         Suggestion from Santiago Vila.
88399
88400 2002-03-08  Jim Meyering  <meyering@lucent.com>
88401
88402         * lib/rename.c: Mention that this wrapper is needed also on
88403         mips-dec-ultrix4.4 systems.
88404
88405 2002-03-02  Jim Meyering  <meyering@lucent.com>
88406
88407         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
88408         not HAVE_CLOCK_SETTIME.
88409
88410 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88411
88412         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
88413         Check for clock_settime.
88414
88415 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88416
88417         * lib/nanosleep.h: Rename to....
88418         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
88419
88420         * lib/gettime.c: New file.
88421         * lib/settime.c: New file.
88422         * lib/stime.c: Remove.
88423
88424         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
88425         timespec.h.  Remove nanosleep.h.
88426
88427 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88428
88429         * m4/acl.m4: New file.
88430         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
88431         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
88432
88433 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88434
88435         * lib/acl.c, lib/acl.h: New files.
88436         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
88437
88438 2002-02-24  Jim Meyering  <meyering@lucent.com>
88439
88440         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
88441         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
88442         cause trouble.  Reported by Nelson Beebe.
88443
88444 2002-02-23  Paul Eggert  <eggert@twinsun.com>
88445
88446         * lib/path-concat.c (xpath_concat): Reorder code to pacify
88447         compilers that don't know that xalloc_die never returns.
88448
88449 2002-02-20  Jim Meyering  <meyering@lucent.com>
88450
88451         * lib/getdate.c: Regenerate using bison-1.33.
88452
88453 2002-02-17  Jim Meyering  <meyering@lucent.com>
88454
88455         * config/config.guess (main): Don't use `head -1'; it's no longer
88456         portable. Use `sed 1q' instead.
88457
88458 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
88459
88460         * m4/codeset.m4: Upgrade to gettext-0.11.
88461         * m4/gettext.m4: Upgrade to gettext-0.11.
88462         * m4/glibc21.m4: Upgrade to gettext-0.11.
88463         * m4/iconv.m4: Upgrade to gettext-0.11.
88464         * m4/isc-posix.m4: Upgrade to gettext-0.11.
88465         * m4/lcmessage.m4: Upgrade to gettext-0.11.
88466         * m4/lib-ld.m4: New file, from gettext-0.11.
88467         * m4/lib-link.m4: New file, from gettext-0.11.
88468         * m4/lib-prefix.m4: New file, from gettext-0.11.
88469         * m4/progtest.m4: Upgrade to gettext-0.11.
88470
88471 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88472
88473         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
88474         (jm_PREREQ): Use it.
88475
88476 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88477
88478         * lib/posixver.c, lib/posixver.h: New files.
88479         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88480
88481 2002-02-02  Paul Eggert  <eggert@twinsun.com>
88482             Bruno Haible  <bruno@clisp.org>
88483
88484         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
88485         (fwrite_success_callback): New declaration.
88486         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
88487         print_unicode_char. Call failure callback instead of error.
88488         (fwrite_success_callback): New function.
88489         (exit_failure_callback): New function.
88490         (fallback_failure_callback): New function.
88491         (print_unicode_char): Call unicode_to_mb.
88492
88493 2002-01-26  Jim Meyering  <meyering@lucent.com>
88494
88495         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
88496         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
88497
88498 2002-01-26  Jim Meyering  <meyering@lucent.com>
88499
88500         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
88501
88502 2002-01-22  Paul Eggert  <eggert@twinsun.com>
88503
88504         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
88505
88506 2002-01-22  Jim Meyering  <meyering@lucent.com>
88507
88508         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
88509         Otherwise, some versions of automake would omit the rule that makes
88510         Makefile from Makefile.in.
88511
88512 2002-01-21  Paul Eggert  <eggert@twinsun.com>
88513
88514         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
88515         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88516         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
88517         (memcoll): Set errno to zero if there is no error.
88518
88519         * lib/quotearg.c (quotearg_buffer_restyled):
88520         Fix bug with quoting buffers containing NUL when backslashing escapes.
88521         This bug was exposed by the other changes in this patch.
88522         (quotearg_n_options): New arg ARGSIZE.
88523         All callers changed.
88524         (quoting_options_from_style): New function.
88525         (quotearg_n_style): Use it.
88526         (quotearg_n_style_mem): New function.
88527
88528         * lib/quotearg.h (quotearg_n_style_mem): New function.
88529
88530 2002-01-19  Jim Meyering  <meyering@lucent.com>
88531
88532         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
88533         Remove useless quotes: DF_PROG="df".
88534         * m4/strnlen.m4: New file.
88535
88536 2002-01-16  Paul Eggert  <eggert@twinsun.com>
88537
88538         * lib/backupfile.c (ISDIGIT): Comment fix.
88539         * lib/getdate.y (ISDIGIT): Likewise.
88540         * lib/posixtm.c (ISDIGIT, year): Likewise.
88541         * lib/strverscmp.c (ISDIGIT): Likewise.
88542         * lib/userspec.c (ISDIGIT): Likewise.
88543
88544 2002-01-16  Jim Meyering  <meyering@lucent.com>
88545
88546         * lib/getdate.y: Add three semicolons, each just before a closing
88547         brace. Bison (as of version 1.31) no longer papers over that mistake.
88548
88549 2002-01-05  Jim Meyering  <meyering@lucent.com>
88550
88551         * lib/version-etc.c (version_etc_copyright): Update copyright year.
88552
88553 2001-12-19  Paul Eggert  <eggert@twinsun.com>
88554
88555         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
88556         not silently exit merely because the output buffer happens to
88557         have nothing pending.
88558
88559 2001-12-18  Paul Eggert  <eggert@twinsun.com>
88560
88561         See the big note in ../ChangeLog.
88562         * lib/human.c (suffixes): Prefer K to k for 1024.
88563         (generate_suffix_backwards): New function.
88564         (human_readable_inexact): Use it.
88565         * lib/xstrtol.c (__xstrtol): If there is no number but there
88566         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
88567         Accept 'K' as well as 'k'.
88568
88569 2001-12-15  Jim Meyering  <meyering@lucent.com>
88570
88571         * lib/regex.h (__restrict_arr): Update from libc.
88572
88573         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
88574         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
88575         (STREQ): Define.
88576
88577 2001-12-14  Jim Meyering  <meyering@lucent.com>
88578
88579         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
88580         Suggestion from Bruno Haible.
88581
88582 2001-12-10  Jim Meyering  <meyering@lucent.com>
88583
88584         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
88585         xrealloc, Instead, include "xalloc.h".
88586         (initbuffer): Don't cast xmalloc return value to char*.
88587         (readline): Reword comment.
88588         Don't cast xrealloc return value to char*
88589         Return NULL, not 0.
88590
88591 2001-12-09  Jim Meyering  <meyering@lucent.com>
88592
88593         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
88594         about `signed and unsigned type in conditional expression'.
88595         * lib/posixtm.c (posix_time_parse): Likewise.
88596
88597         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
88598
88599         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
88600         to avoid a pedantic warning.
88601
88602         * lib/getstr.c: Don't include assert.h.
88603         (getstr): Remove warning-evoking assertions.
88604         Return -1 if offset parameter is out of bounds.
88605         Change the type of a local from int to size_t.
88606
88607         * lib/strftime.c (my_strftime_localtime_r): Include this function
88608         definition in the `#if ! HAVE_TM_GMTOFF' block.
88609
88610         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
88611         Include xalloc.h instead.
88612
88613 2001-12-02  Jim Meyering  <meyering@lucent.com>
88614
88615         * lib/tempname.c: Don't declare getenv, thus reverting the change of
88616         2001-11-18.  It's no longer necessary, now that stdlib.h is always
88617         included.
88618
88619         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
88620         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
88621
88622 2001-11-30  Akim Demaille  <akim@epita.fr>
88623
88624         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
88625         before being defined.
88626
88627 2001-11-27  Paul Eggert  <eggert@twinsun.com>
88628
88629         * lib/quotearg.h (quotearg_n, quotearg_n_style):
88630         First arg is int, not unsigned.
88631         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
88632         (SIZE_MAX, UINT_MAX): New macros.
88633         (quotearg_n_options): Abort if N is negative.
88634         Avoid overflow check on hosts where size_t is 64 bits and int
88635         is 32 bits, as overflow is impossible there.
88636         Fix off-by-one typo that caused unnecessary reallocation.
88637
88638 2001-11-27  Jim Meyering  <meyering@lucent.com>
88639
88640         * lib/tempname.c: Merge with version from libc.
88641         * lib/regex.c: Likewise.
88642
88643         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
88644         systems for which STDC_HEADERS is 0, it was not included, resulting in
88645         a warning about an integer-to-pointer conversion problem with getenv.
88646         Reported by Volker Borchert.
88647
88648 2001-11-26  Jim Meyering  <meyering@lucent.com>
88649
88650         * lib/gtod.h: Remove file.
88651         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
88652         * lib/gettimeofday.c: Don't include gtod.h.
88653         (GTOD_init): Remove function.
88654         (rpl_gettimeofday): Do its job here instead, rather than aborting.
88655         Suggestion from Volker Borchert.
88656
88657 2001-11-23  Jim Meyering  <meyering@lucent.com>
88658
88659         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
88660         it.
88661         * lib/hash.c (struct hash_table): Define it here instead.
88662
88663 2001-11-22  Jim Meyering  <meyering@lucent.com>
88664
88665         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
88666
88667 2001-11-20  Jim Meyering  <meyering@lucent.com>
88668
88669         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
88670         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
88671
88672 2001-11-19  Jim Meyering  <meyering@lucent.com>
88673
88674         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
88675         directory.  Use "conftestXXXXXX" as the template.
88676         Suggestion from Paul Eggert.
88677
88678         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
88679         immediately, so the test doesn't mistakenly hit the max-open-files
88680         limit.
88681
88682 2001-11-18  Paul Eggert  <eggert@twinsun.com>
88683
88684         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
88685         (TEMPORARIES): New macro.
88686         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
88687         removes an artificial limitation (e.g. HP-UX 10.20, where
88688         TMP_MAX is 17576).
88689
88690 2001-11-18  Jim Meyering  <meyering@lucent.com>
88691
88692         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
88693
88694 2001-11-18  Jim Meyering  <meyering@lucent.com>
88695
88696         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
88697         on SunOS 4.
88698
88699         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
88700         files will be created before anything else.
88701
88702 2001-11-17  Paul Eggert  <eggert@twinsun.com>
88703
88704         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
88705         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
88706
88707 2001-11-17  Jim Meyering  <meyering@lucent.com>
88708
88709         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
88710         Prompted by a report from Bob Proulx.
88711
88712         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
88713         Instead, require UTILS_FUNC_MKSTEMP.
88714
88715 2001-11-17  Jim Meyering  <meyering@lucent.com>
88716
88717         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
88718         Now, that's done as part of AC_FUNC_STRTOD.
88719
88720 2001-11-17  Jim Meyering  <meyering@lucent.com>
88721
88722         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
88723         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
88724         rather than group writable.  Patch by Juan F. Codagnone.
88725
88726         * lib/readtokens.c: Remove explicit declarations of xmalloc and
88727         xrealloc, Instead, include "xalloc.h".
88728
88729         * lib/mountlist.c: Include unlocked-io.h after all system headers.
88730         Remove explicit declarations of xmalloc, xrealloc,
88731         and xstrdup.  Instead, include "xalloc.h".
88732
88733         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
88734         unlocked-io.h.
88735         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
88736         Likewise.
88737         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
88738
88739         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
88740         Reported by Padraig Brady.
88741
88742         * lib/mkstemp.c: #undef mkstemp.
88743         Include config.h.
88744         (rpl_mkstemp): Rename from mkstemp.
88745         Protoize.
88746
88747 2001-11-16  Jim Meyering  <meyering@lucent.com>
88748
88749         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
88750         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
88751         determine the amount of total physical memory, use pstat_getstatic.
88752         HPUX-11 doesn't define _SC_PHYS_PAGES.
88753         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
88754         If sysconf couldn't be used to determine the amount of available
88755         physical memory, use both pstat_getstatic and pstat_getdynamic.
88756         Based on a patch from Bob Proulx.
88757
88758 2001-11-10  Jim Meyering  <meyering@lucent.com>
88759
88760         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
88761         (jm_PREREQ): Use it.
88762
88763 2001-11-09  Jim Meyering  <meyering@lucent.com>
88764
88765         * m4/jm-macros.m4: Require autoconf-2.52f.
88766         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
88767         Use these AC_-prefixed names, not the AM_-prefixed ones.
88768
88769         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
88770
88771 2001-11-05  Jim Meyering  <meyering@lucent.com>
88772
88773         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
88774
88775 2001-11-04  Jim Meyering  <meyering@lucent.com>
88776
88777         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
88778         $DEFS.
88779
88780 2001-11-03  Jim Meyering  <meyering@lucent.com>
88781
88782         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
88783         of AC_DEFUN.
88784
88785         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
88786         know the name of the variable in the macro definition.
88787
88788 2001-11-03  Jim Meyering  <meyering@lucent.com>
88789
88790         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
88791         in argmatch_to_argument call.
88792
88793         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
88794         argument.
88795
88796         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
88797         e.g., a fault due to an attempt to free a NULL pointer.
88798
88799 2001-11-01  Jim Meyering  <meyering@lucent.com>
88800
88801         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
88802         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
88803
88804 2001-11-01  Jim Meyering  <meyering@lucent.com>
88805
88806         * lib/dirfd.c, lib/dirfd.h: New files.
88807         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
88808
88809         * lib/hash.c (hash_print) [TESTING]: Clean up.
88810
88811 2001-10-22  Paul Eggert  <eggert@twinsun.com>
88812
88813         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
88814         to avoid a warning if -Wall.
88815
88816 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
88817
88818         * README: New file
88819         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
88820         (per RMS's instructions, this is now the canonical source)
88821         * lgpl/, gpl/: New directories.
88822
88823 2001-10-21  Paul Eggert  <eggert@twinsun.com>
88824
88825         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
88826
88827 2001-10-21  Jim Meyering  <meyering@lucent.com>
88828
88829         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
88830         this code would end up calling gettext even in packages built
88831         with --disable-nls.
88832         * lib/getopt.c (_): Likewise.
88833         * lib/regex.c (_): Likewise.
88834
88835 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88836
88837         * m4/error.m4 (jm_PREREQ_ERROR):
88838         Do not invoke AC_CHECK_FUNCS with strerror_r, as
88839         AC_FUNC_STRERROR_R does that.
88840         Check for strerror declaration.
88841
88842         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
88843         are supposed to have them these days.
88844         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
88845         Merge changes from latest Autoconf CVS.
88846         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
88847         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
88848         POSIX decided to standardize on the int flavor of strerror_r.
88849
88850 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88851
88852         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
88853         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
88854         Use strerror_r that is only a macro, even if it is not a function.
88855         (strerror): Check for HAVE_DECL_STRERROR before declaring.
88856         (private_strerror): Use prototypes, not old-style function definition.
88857         (print_errno_message): New function.
88858         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
88859         char*-flavored one.
88860         (error_tail, error, error_at_line): Use it.
88861
88862 2001-10-11  Jim Meyering  <meyering@lucent.com>
88863
88864         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
88865         and quote_n (1, ... to avoid clobbering a buffer.
88866
88867 2001-10-05  Jim Meyering  <meyering@lucent.com>
88868
88869         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
88870         hash-pjw.h.
88871         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
88872         * lib/hash-pjw.h: New file.
88873
88874 2001-09-30  Jim Meyering  <meyering@lucent.com>
88875
88876         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
88877         `struct fsstat' has the `f_fstypename' member.
88878         Use that to define FS_TYPE, which is now used to make
88879         the getfsstat link test tighter.
88880
88881 2001-09-30  Jim Meyering  <meyering@lucent.com>
88882
88883         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
88884         Include <sys/ucred.h>, for Apple Darwin.
88885         Include sys/mount.h and sys/fs_types.h only if available.
88886         (FS_TYPE): Define.
88887         (read_filesystem_list): Use FS_TYPE.
88888
88889 2001-09-29  Paul Eggert  <eggert@twinsun.com>
88890
88891         * lib/exclude.c (excluded_filename): 0 -> false, since it's
88892         a boolean context.
88893
88894 2001-09-29  Jim Meyering  <meyering@lucent.com>
88895
88896         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88897         [one-argument getmntent function]): Include stdio.h before mntent.h.
88898         SunOS 4.1.x needs it for the declaration of `FILE'.
88899         Patch by Volker Borchert.
88900
88901         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88902         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
88903         sys/fs_types.h, and make the link-test for getfsstat guard #include
88904         directives with appropriate #if HAVE_*_H tests so that we can
88905         detect getfsstat on Apple Darwin1.3.7 systems.
88906         Reported by Nelson Beebe.
88907         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
88908
88909 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88910
88911         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88912         #defines strtoimax.  Also treat the other strto* functions
88913         like strtoimax.
88914
88915         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88916         Check for strtoul and strtoumax,
88917         as those declarations are made even in the signed case.
88918         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
88919         Likewise, for strtol and strtoimax.
88920
88921 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88922
88923         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88924         #defines strtoimax.  Also treat the other strto* functions
88925         like strtoimax.
88926
88927         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
88928         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
88929         (strtoimax, strtoumax): Do not declare if already defined as a macro.
88930
88931 2001-09-26  Jim Meyering  <meyering@lucent.com>
88932
88933         Most macros in unlocked-io.h had the wrong number of arguments.
88934         * lib/gen-uio: New script.
88935         (USE_UNLOCKED_IO): Define to 1 if not already defined.
88936         * lib/unlocked-io.hin: Remove file.
88937         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
88938         rather than trying to embed it here.
88939         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
88940         Reported by Padraig Brady.
88941
88942 2001-09-25  Volker Borchert  <bt@teknon.de>
88943
88944         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
88945         `result'.
88946
88947 2001-09-24  Jim Meyering  <meyering@lucent.com>
88948
88949         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
88950
88951 2001-09-23  Jim Meyering  <meyering@lucent.com>
88952
88953         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
88954         instead of the mere test for existence of mntent.h.  The latter
88955         would get a false-positive on AIX 3.4 systems.
88956         In the outer getmntent if-block, don't die if neither of the getmntent
88957         tests succeeds.  Instead, just fall through and continue with the
88958         remaining tests.
88959
88960 2001-09-23  Jim Meyering  <meyering@lucent.com>
88961
88962         * lib/mountlist.c: Remove useless parentheses in #if directives.
88963         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
88964         the deprecated MOUNTED symbol is no longer defined in mntent.h.
88965
88966 2001-09-22  Jim Meyering  <meyering@lucent.com>
88967
88968         * m4/gettext.m4: New file.  From gettext.
88969         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
88970         * m4/progtest.m4: Likewise
88971         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
88972         * m4/glibc21.m4: Likewise.
88973
88974         * m4/libintl.m4: Remove.  No longer used.
88975
88976 2001-09-22  Jim Meyering  <meyering@lucent.com>
88977
88978         * lib/localcharset.c: Update from latest gettext.
88979         * lib/config.charset: Likewise.
88980
88981 2001-09-20  Jim Meyering  <meyering@lucent.com>
88982
88983         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
88984         strtoimax.
88985         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
88986         strtoumax.
88987
88988 2001-09-20  Jim Meyering  <meyering@lucent.com>
88989
88990         * lib/xstrtol.c (strtoimax): Guard declaration with
88991         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
88992         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
88993         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
88994         (strtoumax): Likewise, for completeness (it wasn't necessary).
88995
88996 2001-09-17  Paul Eggert  <eggert@twinsun.com>
88997
88998         * lib/strtoimax.c (HAVE_LONG_LONG):
88999         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
89000         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
89001         to work around bug in IBM C compiler.
89002
89003 2001-09-17  Jim Meyering  <meyering@lucent.com>
89004
89005         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
89006         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
89007         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
89008         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
89009         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
89010         whenever the right hand side need not be expanded by the shell.
89011
89012 2001-09-16  Paul Eggert  <eggert@twinsun.com>
89013
89014         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
89015         library.  It's not correct, as some older glibcs are buggy.
89016         fnmatch wasn't fixed until glibc 2.2.
89017
89018         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
89019         special shell magic here.
89020
89021 2001-09-16  Jim Meyering  <meyering@lucent.com>
89022
89023         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
89024         * m4/jm-macros.m4: Require it.
89025
89026 2001-09-16  Jim Meyering  <meyering@lucent.com>
89027
89028         * lib/mkdir.c: New file.
89029
89030 2001-09-15  Jim Meyering  <meyering@lucent.com>
89031
89032         * m4/jm-macros.m4: Check for help2man.
89033
89034 2001-09-11  Jim Meyering  <meyering@lucent.com>
89035
89036         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
89037         The body, by Paul Eggert, was moved here from configure.in.
89038         * m4/jm-macros.m4: Require UTILS_HOST_OS.
89039
89040 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89041
89042         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
89043         (jm_PREREQ): Use it.
89044
89045 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89046
89047         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
89048         Use ssize_t, not int, to store result of readlink.
89049         Check for ssize_t overflow as well as size_t overflow,
89050         as POSIX says the result of readlink is implementation-defined
89051         when ssize_t overflows.
89052         Remove unnecessary cast to char*.
89053         Use free+malloc instead of realloc, as the storage doesn't need
89054         to be preserved and it's clearer and can be more efficient that way.
89055         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
89056         * lib/xreadlink.h (xreadlink): Update prototype.
89057
89058 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89059
89060         * lib/xgetcwd.c: Revert some of the previous change; intead,
89061         fix the HAVE_GETCWD_NULL code to behave more like the
89062         !HAVE_GETCWD_NULL code used to.
89063
89064         Include "xalloc.h".
89065         (xgetcwd): Do not return NULL when memory is exhausted; instead,
89066         invoke xalloc_die.
89067
89068 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89069
89070         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
89071         sys/param.h, as pathmax.h includes them.
89072
89073 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89074
89075         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
89076         (jm_PREREQ_XGETCWD): New macro.
89077
89078         * m4/getcwd.m4: New file.
89079
89080 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89081
89082         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
89083         like the HAVE_GETCWD_NULL code.
89084         Include pathmax.h if not HAVE_GETCWD.
89085         Do not include xalloc.h.
89086         (INITIAL_BUFFER_SIZE): New symbol.
89087         Do not use xmalloc / xrealloc, since the caller is responsible for
89088         handling errors.  Preserve errno around `free' during failure.
89089         Do not overrun buffer when using getwd.
89090
89091 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89092
89093         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
89094         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
89095         getcwd (NULL, 0).
89096
89097 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89098
89099         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
89100         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
89101         spotted by Jim Meyering.
89102
89103 2001-09-03  Jim Meyering  <meyering@lucent.com>
89104
89105         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
89106         failure.
89107
89108 2001-09-02  Jim Meyering  <meyering@lucent.com>
89109
89110         * lib/error.c: Update from GNU libc.
89111
89112 2001-09-01  Jim Meyering  <meyering@lucent.com>
89113
89114         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
89115         Used by df.
89116
89117 2001-09-01  Jim Meyering  <meyering@lucent.com>
89118
89119         * lib/xreadlink.c: New file.
89120         * lib/xreadlink.h: New file.
89121         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
89122         xreadlink.h.
89123
89124         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
89125         doesn't conflict with sparc Solaris 7's definition in
89126         /usr/include/sys/int_types.h.
89127
89128         * lib/exclude.c: Use `""', not `<>' to #include non-system header
89129         files.
89130         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
89131         and strncasecmp as r-values.  Unixware didn't have declarations.
89132
89133 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89134
89135         * lib/xstrtol.h: Add copyright notice.
89136         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
89137         LONGINT_INVALID_SUFFIX_CHAR.
89138
89139 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89140
89141         * lib/xstrtol.c (strtoimax): New decl.
89142
89143 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89144
89145         * lib/xgetcwd.c: Don't include pathmax.h.
89146         Include stdlib.h and unistd.h if available.
89147         Include xalloc.h.
89148         (xmalloc, xstrdup, free): Remove decls.
89149         (xgetcwd): Don't assume sizes fit in unsigned.
89150         Check for overflow when computing sizes.
89151         Simplify reallocation code.
89152
89153 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89154
89155         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
89156         a directory's st_size can have an arbitrary value, so the old
89157         usage could waste an arbitrary amount of memory.  All uses
89158         changed.
89159         * lib/savedir.h: Update prototype.
89160
89161 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89162
89163         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
89164
89165         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
89166         old strtoimax.c.
89167
89168         Also, make the following further changes to make this file's
89169         configuration more similar to that of strtol.c:
89170         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
89171         (strtoumax, uintmax_t, strtoull, strtol): Remove.
89172         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
89173         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
89174         changed to signed values.
89175
89176         And make the following changes as well:
89177         Fix copyright notice, as 1999 was missing.
89178         (verify): New macro.
89179         (strtoimax): Check sizes at compile-time, not run-time.
89180         Prefer strtol to strtoll if both work.
89181         (main): Remove; it was not that useful and was a pain to maintain.
89182
89183         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
89184
89185 2001-08-31  Jim Meyering  <meyering@lucent.com>
89186
89187         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
89188         Use an initial, malloc'd, buffer of length 128 rather than
89189         a statically allocated one of length 1024.
89190
89191 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89192
89193         Simplify code, partly by assuming autoconf 2.52 semantics.
89194
89195         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
89196
89197         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
89198         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
89199         All uses removed.
89200         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
89201         Move AC_REQUIRE to next-to-top level, to avoid confusion.
89202         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
89203         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
89204         jm_AC_HEADER_INTTYPES_H.
89205         * m4/jm-macros.m4 (jm_MACROS): Likewise.
89206
89207         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
89208
89209         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89210         Quote first arg of AC_DEFUN.
89211         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
89212         since they are needed to parse the include file even if we need
89213         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
89214         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
89215         but with opposite signedness.
89216
89217 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89218
89219         Merge 'exclude' changes from tar 1.13.22.
89220         This fixes one or two unlikely storage allocation overflow bugs,
89221         but doesn't change user-visible behavior otherwise.
89222
89223 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89224
89225         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
89226         (jm_PREREQ_EXCLUDE): New macro.
89227
89228 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89229
89230         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
89231         tm to be declared.
89232
89233 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89234
89235         * lib/hash.c: Remove '2001' from copyright notice.
89236
89237 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89238
89239         * lib/full-write.h: New file.
89240         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
89241         * lib/full-write.c: Correct credits, as cccp.c no longer
89242         exists and anyway it was so heavily changed from the old cccp
89243         code as to be unrecognizable.  Include full-write.h.
89244         (full_write): Return size_t, with short writes meaning failure.
89245         All callers changed.  This fixes a bug with large buffers
89246         on 64-bit hosts.
89247         * lib/utime.c: Include full-write.h.
89248
89249 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89250
89251         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
89252         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
89253         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
89254         Include if available.
89255         (<xalloc.h>): Include
89256         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
89257         (verify): New macro.  Use it to verify that EXCLUDE macros do not
89258         collide with FNM macros.
89259         (struct patopts): New struct.
89260         (struct exclude): Use it, as exclude patterns now come with options.
89261         (new_exclude): Support above changes.
89262         (new_exclude, add_exclude_file):
89263         Initial size must now be a power of two to simplify overflow checking.
89264         (free_exclude, fnmatch_no_wildcards): New function.
89265         (excluded_filename): No longer requires options arg, as the options
89266         are determined by add_exclude.  Now returns bool, not int.
89267         (excluded_filename, add_exclude):
89268         Add support for the fancy new exclusion options.
89269         (add_exclude, add_exclude_file): Now takes int options arg.
89270         Check for arithmetic overflow when computing sizes.
89271         (add_exclude_file): xrealloc might modify errno, so don't
89272         realloc until after errno might be used.
89273
89274         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
89275         New macros.
89276         (free_exclude): New decl.
89277         (add_exclude, add_exclude_file): Now takes int options arg.
89278         (excluded_filename): No longer requires options arg, as the options
89279         are determined by add_exclude.  Now returns bool, not int.
89280
89281 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89282
89283         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
89284
89285 2001-08-27  Jim Meyering  <meyering@lucent.com>
89286
89287         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
89288
89289         * lib/version-etc.c (N_): Remove definition.
89290         Revert most of last change.
89291         Instead, simply don't mark the `Copyright...' string for translation.
89292         Based on advice from Paul Eggert.
89293
89294         * lib/strtoxmax.c: Tweak comment.
89295
89296 2001-08-26  Jim Meyering  <meyering@lucent.com>
89297
89298         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
89299
89300         * m4/xstrtoimax.m4: New file.
89301         * m4/xstrtoumax.m4: Add comments explaining why we
89302         AC_REPLACE_FUNCS(strtol).
89303
89304 2001-08-26  Jim Meyering  <meyering@lucent.com>
89305
89306         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
89307         of copyright with `%s' so translators don't get an untranslated
89308         message in 2002.
89309         (COPYRIGHT_YEAR): Define.
89310         (version_etc): Use fprintf rather than fputs.
89311         Suggestion from Ulrich Drepper.
89312
89313         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
89314
89315         * lib/strtoll.c: New file, from GNU libc.
89316         * lib/xstrtoimax.c: New file.
89317
89318         * lib/xstrtol.h: Add xstrtoimax.
89319         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
89320         * lib/strtoimax.c: New file.  Likewise, but first define
89321         STRTOUXMAX_SIGNED.
89322
89323         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
89324         ...
89325         * lib/strtoxmax.c: ... then renamed to this.
89326
89327 2001-08-18  Paul Eggert  <eggert@twinsun.com>
89328
89329         * m4/inttypes.m4: Add AC_PREREQ(2.13).
89330         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
89331         (jm_AC_TYPE_INTMAX_T): New macro.
89332         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
89333
89334         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
89335
89336         * m4/longlong.m4: Renamed from ulonglong.m4.
89337         * m4/inttypes.m4: Renamed from inttypes_h.m4.
89338         * m4/uintmax_t.m4: Removed.
89339
89340 2001-08-13  Paul Eggert  <eggert@twinsun.com>
89341
89342         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
89343         Port to Solaris 8, where 'sed' requires a space after the 'r'
89344         command, and where sh dislikes "$/".  Clean up the spacing a bit.
89345         Redirect output to $tmp just once.
89346
89347 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
89348
89349         * lib/addext.c (<errno.h>): Include.
89350         (errno): Declare if not defined.
89351         (addext): Work correctly when pathconf returns -1 and leaves
89352         errno alone because there is no limit.  Also, work even if
89353         pathconf returns a value greater than SIZE_MAX.
89354
89355 2001-08-12  Jim Meyering  <meyering@lucent.com>
89356
89357         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
89358         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
89359         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
89360         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
89361         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
89362         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
89363         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
89364         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
89365         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
89366         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
89367         utime.m4, utimes.m4, xstrtoumax.m4:
89368         Quote the first argument in each use of AC_DEFUN.
89369
89370 2001-08-12  Jim Meyering  <meyering@lucent.com>
89371
89372         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
89373         Simply `return getcwd (NULL, 0);'.
89374         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
89375         Use 1300 as initial value for length, not PATH_MAX.
89376
89377         * lib/pathmax.h: Clean up cpp syntax.
89378
89379 2001-08-12  Jim Meyering  <meyering@lucent.com>
89380
89381         * lib/gettimeofday.c: New file.
89382         * lib/gtod.h: New file.
89383         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
89384
89385 2001-08-05  Jim Meyering  <meyering@lucent.com>
89386
89387         * m4/jm-macros.m4: Require autoconf-2.52.
89388
89389 2001-08-04  Jim Meyering  <meyering@lucent.com>
89390
89391         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
89392         stmt, to get in sync with glibc.
89393
89394 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89395
89396         The following changes are from gettext 0.10.39 as maintained by
89397         Bruno Haible.
89398
89399         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
89400         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
89401         with inverted sense.  All uses changed.
89402
89403         * lib/mbswidth.c: Don't include <limits.h>.
89404         Include <stdlib.h> and <string.h> unconditionally.
89405         (iswcntrl, mbsinit, ISCNTRL): New macros.
89406         (mbsnwidth): Use K&R style function declarations.
89407         Don't bother checking for MB_LEN_MAX == 1, since the compiler
89408         can optimize it when MB_CUR_MAX == 1.
89409         The width of control characters is zero, not 1.
89410
89411 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89412
89413         The following changes are from gettext 0.10.39 as maintained by
89414         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
89415
89416         * m4/codeset.m4: Upgrade to serial AM1.
89417         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
89418         all uses changed.  Quote first arg of AC_DEFUN.
89419         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
89420
89421         * m4/iconv.m4: Upgrade to serial AM2.
89422         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
89423         Add --with-libconv-prefix.
89424         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
89425         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
89426         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
89427         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
89428         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
89429
89430         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
89431         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
89432         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
89433         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
89434         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
89435         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
89436         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
89437         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
89438         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
89439
89440         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
89441         string.h any more.
89442
89443         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
89444         not the default value.
89445
89446         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
89447         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
89448         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
89449         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
89450         Also check for iswcntrl, used for wcwidth fallback.
89451         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
89452         to Autoconf 2.13.
89453
89454 2001-08-03  Jim Meyering  <meyering@lucent.com>
89455
89456         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
89457         as it was in the original.  Reported by Paul Eggert.
89458
89459 2001-07-16  Jim Meyering  <meyering@lucent.com>
89460
89461         * m4/gettimeofday.m4: New file.
89462         Prompted by a report from Bernhard Baehr.
89463
89464 2001-07-15  Jim Meyering  <meyering@lucent.com>
89465
89466         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
89467         stuff. Now it's in ../Makefile.cfg.
89468
89469 2001-07-15  Jim Meyering  <meyering@lucent.com>
89470
89471         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
89472         (BUILT_SOURCES): Add unlocked-io.h.
89473         (io_functions): Define.
89474         (unlocked-io.h): New rule.
89475         (DISTCLEANFILES): Add unlocked-io.h.
89476         (all-local): Depend on unlocked-io.h, to ensure it is created.
89477
89478         * lib/unlocked-io.hin: New file
89479
89480         * lib/regex.c: Update from glibc.
89481
89482 2001-07-05  Jim Meyering  <meyering@lucent.com>
89483
89484         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
89485         recommendation.
89486         (libfetish_a_SOURCES): Put all .h files here instead.
89487         Remove a thus-exposed (better checks in automake) duplicate and
89488         two unnecessary .h files.
89489
89490 2001-07-04  Jim Meyering  <meyering@lucent.com>
89491
89492         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
89493         that generates jm-glibc-io.m4 so that it doesn't trigger any make
89494         distcheck failure.
89495
89496 2001-07-02  Jim Meyering  <meyering@lucent.com>
89497
89498         The following changes were prompted by suggestions from Bruno Haible.
89499
89500         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
89501         is now generated.
89502         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
89503         definition of EXTRA_DIST.
89504         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
89505         ensure that the generated file is created/updated whenever the list
89506         of $(unlocked_functions) is changed.
89507         (jm-glibc-io.m4): New rule.
89508         (unlocked-io.h): New rule -- currently unused.
89509
89510 2001-06-24  Jim Meyering  <meyering@lucent.com>
89511
89512         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
89513         unmatched right bracket, rather than kludging it with an extra,
89514         falsely-matching quote in a comment.  Patch by Akim Demaille.
89515
89516 2001-06-11  Jim Meyering  <meyering@lucent.com>
89517
89518         * lib/regex.c: Update from GNU libc.
89519
89520 2001-05-27  Jim Meyering  <meyering@lucent.com>
89521
89522         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
89523         Check for ut_type in struct utmp.
89524
89525 2001-05-27  Jim Meyering  <meyering@lucent.com>
89526
89527         * lib/readutmp.h (UT_TYPE): Define.
89528
89529 2001-05-24  Jim Meyering  <meyering@lucent.com>
89530
89531         * lib/argmatch.c: Include "quote.h".
89532         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
89533         quote function.  Reported by Göran Uddeborg.
89534
89535 2001-05-22  Jim Meyering  <meyering@lucent.com>
89536
89537         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
89538         now that we use the package-supplied version unconditionally.
89539         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
89540
89541 2001-05-21  Jim Meyering  <meyering@lucent.com>
89542
89543         * m4/regex.m4: Change a couple backticks to single quotes to avoid
89544         shell syntax errors.
89545
89546 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89547
89548         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
89549
89550 2001-05-20  Paul Eggert  <eggert@twinsun.com>
89551
89552         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
89553         Don't bother to check library strftime, since
89554         we'll be using our own my_strftime function anyway.
89555         Define my_strftime instead of strftime.
89556
89557 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
89558
89559         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
89560         which is not yet declared.
89561
89562 2001-05-15  Jim Meyering  <meyering@lucent.com>
89563
89564         * m4/regex.m4: Use proper quoting so brackets appear in the test
89565         program.
89566         Reported by, and with help from, Bruno Haible.
89567
89568 2001-05-13  Jim Meyering  <meyering@lucent.com>
89569
89570         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
89571         undefined.
89572
89573 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89574
89575         dirname code cleanup.  base_name now behaves more compatibly
89576         with POSIX basename when given file names that have trailing
89577         slashes, and similarly for dir_name.  Add new primitives
89578         base_len and dir_len.  Put the directory-name-related decls
89579         into dirname.h.
89580
89581         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
89582         * lib/backupfile.c (base_name): Likewise.
89583         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
89584         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
89585         * lib/makepath.c (strip_trailing_slashes): Likewise.
89586         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
89587         ISSLASH): Likewise.
89588         * lib/rename.c (strip_trailing_slashes): Likewise.
89589         * lib/same.c (base_name): Likewise.
89590         * lib/stripslash.c (ISSLASH): Likewise.
89591
89592         * lib/addext.c: Include <dirname.h> after size_t is defined.
89593         * lib/backupfile.c: Likewise.
89594
89595         * lib/addext.c (addext): Use base_len to trim redundant
89596         trailing slashes instead of doing it ourselves.
89597         But do not trim the last slash if it is not redundant.
89598
89599         * lib/backupfile.c (find_backup_file_name,
89600         max_backup_version): Use base_len instead of rolling it ourselves.
89601         Handle the case of "" and (on DOS) "C:" correctly.
89602
89603         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
89604         needed. Include <string.h>, <dirname.h>.
89605         (base_name): Allow file names ending in slashes, other than names
89606         that are all slashes.  In this case, return the basename followed
89607         by the slashes.  This is more general, and can be used in places
89608         where the original base_name purposely had an assertion failure.
89609         (base_len): New function.
89610
89611         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
89612         Do not include <assert.h>; no longer needed.
89613         Include xalloc.h.
89614         (memrchr): Remove decl.
89615         (dir_name_r): Remove.
89616         (dir_len): Renamed from dirlen.  All callers changed.
89617         Rewrite in terms of base_name, for simplicity and consistency.
89618         (dir_name): Never return NULL.  All callers changed.
89619         Do not include <stdlib.h> in test program; no longer needed.
89620         return 0; is fine for test program.
89621
89622         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
89623         New macros.
89624         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
89625
89626         * lib/path-concat.c (path_concat): Use base_len to compute
89627         base length, not strlen; this means we cannot rely on memcpy
89628         to null-terminate.
89629
89630         * lib/same.c (STREQ): Remove.
89631         (same_name): Handle the case where the basename ends in trailing '/'.
89632
89633         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
89634         a slash was stripped.  Do not strip the last slash after a
89635         file system prefix.
89636
89637 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89638
89639         * lib/Makefile.am (libfetish_a_SOURCES):
89640         Add strftime.c, since we now compile it on all hosts.
89641
89642         * lib/strftime.c (my_strftime):
89643         Define to nstrftime if emacs, but only if my_strftime is not defined.
89644         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
89645         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
89646         Add one more extra argument: a nanoseconds value.
89647         All uses changed.
89648         (ns): New macro.
89649         (my_strftime function): Add %N format.
89650         (emacs_strftimeu): Renamed from emacs_strftime,
89651         with extra ut argument.
89652
89653 2001-05-09  Paul Eggert  <eggert@twinsun.com>
89654
89655         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
89656
89657 2001-04-21  Jim Meyering  <meyering@lucent.com>
89658
89659         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
89660         doesn't interfere.
89661
89662 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89663
89664         * m4/ftruncate.m4: Check for chsize.
89665         Link with ftruncate.o unconditionally if ftruncate is missing.
89666         This was required when cross-compiling to i586-mingw32msvc.
89667
89668 2001-04-08  Jim Meyering  <meyering@lucent.com>
89669
89670         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
89671         recomputed; that's necessary when the offset spans a DST transition.
89672         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
89673
89674 2001-04-02  Jim Meyering  <meyering@lucent.com>
89675
89676         * lib/regex.h, regex.c: Update from GNU libc.
89677
89678 2001-03-24  Jim Meyering  <meyering@lucent.com>
89679
89680         * m4/jm-macros.m4: Require autoconf-2.49d.
89681
89682 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
89683
89684         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
89685
89686 2001-03-19  Paul Eggert  <eggert@twinsun.com>
89687
89688         * lib/version-etc.c (version_etc_copyright): Update to 2001.
89689
89690 2001-03-17  Jim Meyering  <meyering@lucent.com>
89691
89692         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
89693         now that the version in autoconf is equivalent.
89694         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
89695
89696         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
89697         Suggestion from Akim Demaille.
89698
89699         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
89700         (jm_PREREQ_TEMPNAME): New function.
89701
89702 2001-03-16  Paul Eggert  <eggert@twinsun.com>
89703
89704         * lib/tempname.c (uint64_t): Define to uintmax_t if
89705         not defined, and if UINT64_MAX is not defined.
89706         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
89707         Reported by John David Anglin.
89708
89709 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
89710
89711         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
89712         resolve alias if codeset is empty.
89713         * lib/config.charset (BeOS): Use wildcard syntax.
89714
89715 2001-03-13  Jim Meyering  <meyering@lucent.com>
89716
89717         * lib/path-concat.c (path_concat)
89718         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
89719         concatenating e.g., `C:' and `foo'.
89720         From Bruno Haible.
89721
89722 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89723
89724         * lib/localcharset.c (locale_charset): Don't use
89725         setlocale(LC_CTYPE,NULL). Don't return NULL.
89726         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
89727
89728 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89729
89730         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
89731         support for DOS/DJGPP.
89732
89733 2001-03-01  Paul Eggert  <eggert@twinsun.com>
89734
89735         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
89736         lacks mkstemp.  Compile our own tempname.c if we compile our own
89737         mkstemp.c, as mkstemp relies on tempname.
89738
89739 2001-03-01  Jim Meyering  <meyering@lucent.com>
89740
89741         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
89742         AH_VERBATIM really does output its argument verbatim.
89743
89744 2001-02-28  Paul Eggert  <eggert@twinsun.com>
89745
89746         * lib/Makefile.am (libfetish_a_SOURCES):
89747         Add dup-safer.c, fopen-safer.c.
89748         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
89749
89750         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
89751         * lib/unistd-safer.h: New files.
89752
89753 2001-02-25  Paul Eggert  <eggert@twinsun.com>
89754
89755         The mkstemp replacement is taken from glibc 2.2.2, with some
89756         portability fixes for use outside glibc, as follows:
89757
89758         * lib/tempname.c (struct_stat64): New macro.
89759         (direxists, __gen_tempname): Use it.
89760         This avoids a portability problem with Solaris 8.
89761
89762         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
89763         (<stddef.h>, <stdint.h>, <string.h>):
89764         Include only if STDC_HEADERS || _LIBC.
89765         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
89766         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
89767         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
89768         (__set_errno): Define this macro if <errno.h> doesn't.
89769         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
89770         Define these macros if <stdio.h> doesn't.
89771         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
89772         Define these macros if <sys/stat.h>
89773         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
89774         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
89775         __xstat64): Define if not _LIBC.
89776         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
89777         (__gen_tempname): Invoke gettimeofday only if
89778         HAVE_GETTIMEOFDAY || _LIBC;
89779         otherwise, fall back on plain "time".
89780         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
89781
89782         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
89783
89784         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
89785
89786 2001-02-18  Paul Eggert  <eggert@twinsun.com>
89787
89788         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
89789
89790 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89791
89792         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
89793         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
89794         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
89795         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89796
89797 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89798
89799         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
89800         Remove workaround macros for hosts that have mbrtowc but not
89801         mbstate_t, as we now insist on proper declarations for both
89802         before using mbrtowc.
89803
89804 2001-02-17  Jim Meyering  <meyering@lucent.com>
89805
89806         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
89807         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
89808         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
89809         UnixWare 7.1.1.
89810
89811         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
89812         rather than AC_CACHE_VAL.
89813
89814 2001-02-17  Jim Meyering  <meyering@lucent.com>
89815
89816         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
89817         around included file name.
89818
89819         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
89820
89821         * lib/strftime.c: Update from GNU libc (the only changes were to
89822         comments).
89823
89824 2001-02-17  Jim Meyering  <meyering@lucent.com>
89825
89826         * lib/regex.c: Update from libc.
89827
89828 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
89829
89830         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
89831         clash.
89832
89833 2001-02-16  Paul Eggert  <eggert@twinsun.com>
89834
89835         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
89836         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
89837         Reported by Mark Hounschell via Paul Eggert.
89838
89839 2001-02-07  Jim Meyering  <meyering@lucent.com>
89840
89841         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
89842
89843 2001-02-05  Jim Meyering  <meyering@lucent.com>
89844
89845         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
89846         it includes the patch required for `large file' support with at least
89847         HP-UX's 10.20 /bin/cc.
89848
89849 2001-02-03  Jim Meyering  <meyering@lucent.com>
89850
89851         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
89852         AS_IF, now that it works once again (mysteriously).
89853         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89854
89855 2001-01-30  Jim Meyering  <meyering@lucent.com>
89856
89857         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
89858         * m4/chown.m4: Rename conftestchown to conftest.chown.
89859         * m4/rename.m4: s/conftestdir/conftest.d1/ and
89860         s/conftestdir2/conftest.d2/.
89861         * m4/utimes.m4: s/conftestdata/conftest.data/
89862         Inspired by Pavel Roskin's change in autoconf.
89863
89864 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
89865
89866         * lib/config.charset: Update for FreeBSD 4.2.
89867
89868 2001-01-27  Jim Meyering  <meyering@lucent.com>
89869
89870         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
89871         a use of AS_IF.
89872         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89873
89874 2001-01-26  Jim Meyering  <meyering@lucent.com>
89875
89876         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
89877         quotearg.c includes it.
89878
89879 2001-01-26  Jim Meyering  <meyering@lucent.com>
89880
89881         * lib/quotearg.c: Include stddef.h.
89882         * lib/quote.c: Include stddef.h.
89883         Reported by Axel Kittenberger.
89884
89885         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
89886         line in double quotes so that it evokes a better diagnostic.
89887         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
89888         Reported by Axel Kittenberger.
89889
89890 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
89891
89892         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
89893         as if it was a `charset'.
89894
89895 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89896
89897         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
89898         has const.
89899
89900 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89901
89902         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
89903         to avoid a warning.  Add back 'const' to inptr.
89904
89905 2001-01-20  Jim Meyering  <meyering@lucent.com>
89906
89907         Be sure that headers are checked before used in code compiled
89908         for the type checks.
89909         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
89910         In place of that, invoke jm_CHECK_ALL_TYPES.
89911         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
89912         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
89913         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
89914         The check for ssize_t was mistakenly run before the test for unistd.h.
89915
89916         The configure-time check for stdbool.h was missing.
89917         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
89918         (jm_PREREQ_HASH): New function.
89919
89920 2001-01-17  Jim Meyering  <meyering@lucent.com>
89921
89922         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
89923         for autoconf-2.49c.
89924         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
89925
89926 2001-01-16  Jim Meyering  <meyering@lucent.com>
89927
89928         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
89929         From Bruno Haible.
89930
89931 2001-01-14  Jim Meyering  <meyering@lucent.com>
89932
89933         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
89934         foo and bar.  Create conftestdir/ in the script, not in the C code.
89935         Remove directories in the script, not in the C code.
89936         Remove conftestdir{,2} before trying to create the directory.
89937         Make the entire configure script fail if the mkdir fails.
89938
89939 2001-01-14  Jim Meyering  <meyering@lucent.com>
89940
89941         * lib/rename.c: New file.  From Volker Borchert.
89942         Include stdlib.h, string.h or strings.h, and xalloc.h.
89943         Use strip_trailing_slashes rather than open-coding it.
89944
89945 2001-01-03  Paul Eggert  <eggert@twinsun.com>
89946
89947         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
89948
89949 2001-01-03  Jim Meyering  <meyering@lucent.com>
89950
89951         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
89952         of local `inptr' to avoid warning with some system declarations of
89953         iconv.
89954
89955 2001-01-02  Volker Borchert  <bt@teknon.de>
89956
89957         * m4/rename.m4: New file.
89958         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
89959
89960 2001-01-01  Jim Meyering  <meyering@lucent.com>
89961
89962         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
89963         even on systems with utmpx.h.  It's necessary for the declaration of
89964         utmp's ut_user member.  Reported by Andreas Jaeger.
89965
89966         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
89967         available. They are required for the declarations of getgrgid and
89968         getpwuid resp.
89969         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
89970         Reported by Andreas Jaeger.
89971
89972 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
89973
89974         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
89975         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
89976         so `make install' also works in VPATH builds.
89977
89978 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
89979
89980         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
89981         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
89982         can be used in subdirectories.
89983
89984 2000-12-29  Paul Eggert  <eggert@twinsun.com>
89985
89986         * lib/modechange.c: Do not assume that mode_t uses the
89987         traditional octal encoding.  E.g. "chmod 1 FOO" should set
89988         the other-execute bit of FOO even if S_IXOTH != 1.
89989
89990         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
89991         WOTH, XOTH, ALLM): New macros.
89992         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
89993          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
89994         Use them.
89995         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
89996         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
89997         (mode_compile):
89998         No need to use uintmax_t; unsigned long is long enough.
89999         Don't bother to get suffix since we don't use it.
90000
90001 2000-12-26  Jim Meyering  <meyering@lucent.com>
90002
90003         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
90004         better with autoheader.
90005
90006 2000-12-24  Jim Meyering  <meyering@lucent.com>
90007
90008         * lib/hash.c (is_prime): Return explicit boolean values.
90009         (hash_get_first): Return NULL to appease Irix5.6's 89.
90010         Reported by Nelson Beebe.
90011
90012 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
90013
90014         * lib/localcharset.c (locale_charset): Add support for Win32.
90015
90016 2000-12-18  Paul Eggert  <eggert@twinsun.com>
90017
90018         * lib/physmem.h, lib/physmem.c: New files.
90019
90020         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
90021         (noinst_HEADERS): Add physmem.h.
90022
90023         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
90024         't' for compatibility with Solaris 8 sort.
90025
90026 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
90027
90028         * lib/config.charset: Add support for BeOS.
90029
90030 2000-12-17  Jim Meyering  <meyering@lucent.com>
90031
90032         * m4/dos.m4 (jm_AC_DOS): New file and macro.
90033         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
90034
90035 2000-12-16  Jim Meyering  <meyering@lucent.com>
90036
90037         This bug had a serious impact on chown: `chown N:M FILE' (for integer
90038         N and M) would have treated it like `chown N:N FILE'.
90039
90040         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
90041
90042 2000-12-16  Jim Meyering  <meyering@lucent.com>
90043
90044         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
90045         SHELLS_FILE to a file name that's useful on djgpp systems.
90046         Include stdlib.h.
90047         (ADDITIONAL_DEFAULT_SHELLS): Define.
90048         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
90049         Based mostly on a patch from Prashant TR.
90050
90051 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
90052
90053         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
90054         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
90055         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
90056
90057 2000-12-08  Andreas Schwab  <schwab@suse.de>
90058
90059         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
90060         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
90061
90062 2000-12-07  Jim Meyering  <meyering@lucent.com>
90063
90064         * lib/stripslash.c (ISSLASH): Define.
90065         (strip_trailing_slashes): Use ISSLASH rather than comparing against
90066         `/'.
90067         From Prashant TR.
90068
90069         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
90070         (dir_name_r): Declare this function as static.
90071         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
90072         manifest itself on a name containing a mix of slashes and
90073         backslashes.
90074         Make this function work with names starting with a DOS-style
90075         drive letter and colon prefix.
90076         (dir_name): Append `.' if necessary.
90077         Based mostly on patches from Prashant TR and Eli Zaretskii.
90078
90079         * lib/dirname.h (dir_name_r): Remove prototype.
90080
90081 2000-12-06  Paul Eggert  <eggert@twinsun.com>
90082
90083         * m4/off_t-format.m4: Remove this file.
90084         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
90085
90086 2000-12-06  Jim Meyering  <meyering@lucent.com>
90087
90088         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
90089         replacement strtoull, we may well need the replacement strtoul, too.
90090         Check for declarations of strtoul and strtoull.
90091         Check for strtol.  Mainly as a cue to cause automake to include
90092         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
90093         Check for limits.h -- strtol.c needs it.
90094
90095 2000-12-05  Jim Meyering  <meyering@lucent.com>
90096
90097         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
90098
90099 2000-12-04  Jim Meyering  <meyering@lucent.com>
90100
90101         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
90102         Also include memory.h, stdlib.h, unistd.h if appropriate.
90103         Reported by Andreas Jaeger (conflicting declaration of malloc).
90104
90105 2000-12-02  Jim Meyering  <meyering@lucent.com>
90106
90107         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
90108         * m4/jm-macros.m4 (jm_MACROS): require it.
90109
90110 2000-12-02  Jim Meyering  <meyering@lucent.com>
90111
90112         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
90113
90114 2000-12-01  Paul Eggert  <eggert@twinsun.com>
90115
90116         * lib/memrchr.c: Include <config.h> before any system include file.
90117
90118 2000-11-30  Jim Meyering  <meyering@lucent.com>
90119
90120         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
90121
90122 2000-11-30  Jim Meyering  <meyering@lucent.com>
90123
90124         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
90125
90126 2000-11-29  Paul Eggert  <eggert@twinsun.com>
90127
90128         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
90129
90130 2000-11-26  Jim Meyering  <meyering@lucent.com>
90131
90132         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
90133
90134 2000-11-22  Paul Eggert  <eggert@twinsun.com>
90135
90136         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
90137         size of (size_t) -1; it's not portable.
90138
90139 2000-11-17  Jim Meyering  <meyering@lucent.com>
90140
90141         * lib/strstr.c: Update from GNU libc.
90142
90143 2000-11-17  Akim Demaille  <akim@epita.fr>
90144
90145         * lib/obstack.h: Formatting changes.
90146         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
90147         prevent type checking.
90148         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
90149         cast the value to (void *): assigning a `foo *' to a `void *'
90150         variable is valid.
90151         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
90152
90153 2000-11-16  Jim Meyering  <meyering@lucent.com>
90154
90155         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
90156
90157 2000-11-11  Jim Meyering  <meyering@lucent.com>
90158
90159         * lib/error.c: Add a couple #includes, merging from GNU libc version.
90160
90161 2000-11-10  Jim Meyering  <meyering@lucent.com>
90162
90163         * lib/obstack.h: Update from GNU libc.
90164         * lib/obstack.c: Likewise.
90165
90166 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
90167
90168         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
90169
90170 2000-11-06  Paul Eggert  <eggert@twinsun.com>
90171
90172         * lib/getusershell.c (setusershell): Use rewind rather than
90173         fseek/fseeko, to avoid configuration hassles with fseeko.
90174         Don't bother opening SHELLS_FILE if shellstream is NULL;
90175         it's not necessary.
90176
90177 2000-11-05  Jim Meyering  <meyering@lucent.com>
90178
90179         * lib/makepath.h (make_dir): Declare.
90180         * lib/makepath.c (make_dir): Remove `static' attribute.
90181         Tweak a comment.
90182
90183 2000-11-04  Jim Meyering  <meyering@lucent.com>
90184
90185         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
90186
90187 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
90188
90189         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
90190         last one in a bucket, advance to the next bucket.
90191
90192 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
90193
90194         * lib/fnmatch.c: Do not comment out all the code if we are using
90195         the GNU C library, because in some cases we are replacing buggy
90196         code in the GNU C library itself.
90197
90198 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
90199
90200         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
90201         (regex_compile): Catch bogus \(\1\).
90202
90203 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90204
90205         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
90206         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
90207         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
90208
90209 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90210
90211         * lib/error.h, getline.h, modechange.h:
90212         Remove "2000" from Copyright line, as the file hasn't been
90213         changed this year other than in the copyright notice.
90214
90215         * lib/xalloc.h: Add "2000" to Copyright line, as this file
90216         was changed this year.
90217
90218 2000-10-29  Jim Meyering  <meyering@lucent.com>
90219
90220         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
90221         renaming.
90222         * m4/ls-mntd-fs.m4: Likewise
90223
90224 2000-10-29  Jim Meyering  <meyering@lucent.com>
90225
90226         * lib/xstat.in: Fix grammar in comment.
90227
90228 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
90229
90230         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
90231         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
90232         doesn't define __restrict_arr.
90233
90234 2000-10-28  Jim Meyering  <meyering@lucent.com>
90235
90236         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
90237         (jm_PREREQ_MEMCHR): New function.
90238
90239 2000-10-28  Jim Meyering  <meyering@lucent.com>
90240
90241         * lib/memchr.c: Update from libc.
90242         Adjust for portability:
90243         [HAVE_STDLIB_H]: Include stdlib.h.
90244         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
90245         Undef __memchr, too.
90246         [!weak_alias]: Define __memchr to memchr.
90247
90248         * lib/regex.c: Update from libc.
90249         * lib/regex.h: Likewise.
90250         * lib/getopt1.c: Likewise.
90251         * lib/memcmp.c: Likewise.
90252
90253         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
90254         Avoid using fseek, when possible -- it's broken by design.
90255         Patch by Ulrich Drepper.
90256
90257 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
90258
90259         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
90260         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
90261         Giving in to popular pressure to shut up the compiler with casts.
90262
90263 2000-10-26  Jim Meyering  <meyering@lucent.com>
90264
90265         * lib/strftime.c: Update from libc.
90266
90267 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
90268
90269         * regex.c: More `unsigned char' -> `re_char' changes.
90270         Also change several `int' into `re_wchar_t'.
90271         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
90272         (PUSH_FAILURE_POINTER): Don't cast any more.
90273         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
90274         We want GCC to complain, since this piece of code makes
90275         re_match non-reentrant, which *should* be fixed.
90276         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
90277         (EXTEND_BUFFER): Use RETALLOC.
90278         (SET_LIST_BIT): Don't cast.
90279         (re_wchar_t): New type.
90280         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
90281         that those two functions will always properly return.
90282         (IMMEDIATE_QUIT_CHECK): Cast to void.
90283         (analyse_first): Use recursion rather than an explicit stack.
90284         (re_compile_fastmap): Can't fail anymore.
90285         (re_search_2): Don't check re_compile_fastmap for failure.
90286         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
90287         Now also sets the new value (passed in a new argument).
90288         (re_match_2_internal): Use it.
90289         Also, use a new var `reg' of type size_t when looping through regs
90290         rather than reuse the inappropriate `mcnt'.
90291
90292 2000-10-25  Jim Meyering  <meyering@lucent.com>
90293
90294         * lib/obstack.c: Update from libc.
90295
90296 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
90297
90298         * regex.c (regex_compile): Change the way of handling a range from
90299         a char less than 256 to a char not less than 256.
90300
90301 2000-10-24  Andrew Innes  <andrewi@gnu.org>
90302
90303         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
90304         NT-Emacs only.
90305         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
90306         so that re_search functions only quit when callers expect them to.
90307
90308 2000-10-23  Jim Meyering  <meyering@lucent.com>
90309
90310         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
90311         wrong.  That set_locale call must not have any side effects.
90312         From Paul Eggert.
90313
90314 2000-10-22  Jim Meyering  <meyering@lucent.com>
90315
90316         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
90317         [CYCLIC]: Remove now-unused definition.
90318
90319         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
90320         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
90321         Suggestion from Ulrich Drepper.
90322
90323 2000-10-21  Jim Meyering  <meyering@lucent.com>
90324
90325         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
90326         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
90327         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
90328
90329 2000-10-21  Jim Meyering  <meyering@lucent.com>
90330
90331         * lib/dirname.c (memrchr): Declare if necessary.
90332         (dir_name): Remove the restriction that there be no
90333         trailing slashes.  Now, this code skips past them, effectively
90334         ignoring them.
90335         [TEST_DIRNAME] (main): New unit tests.
90336
90337         * lib/memrchr.c: New file from GNU libc.
90338         Undef __memrchr, too.
90339         [!weak_alias]: Define __memrchr to memrchr.
90340         Guard weak_alias use with `#ifdef weak_alias'.
90341
90342 2000-10-21  Jim Meyering  <meyering@lucent.com>
90343
90344         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
90345         (dir_name): Use dir_name_r.
90346         * lib/dirname.h (dir_name_r): Declare it.
90347
90348 2000-10-17  Jim Meyering  <meyering@lucent.com>
90349
90350         * lib/quote.h (PARAMS): Define and use.
90351         Reported by Akim Demaille.
90352
90353         * lib/getopt.c: Update from libc.
90354
90355 2000-10-16  Jim Meyering  <meyering@lucent.com>
90356
90357         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
90358         setlocale.
90359         From Jan Fedak.
90360
90361 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
90362
90363         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
90364
90365 2000-09-25  Jim Meyering  <meyering@lucent.com>
90366
90367         * lib/md5.h (rol): Define (from GnuPG).
90368
90369         * lib/sha.c: Give credit (GnuPG) where due.
90370         (M): Use rol rather than open-coding it.
90371         Add a FIXME comment.
90372
90373 2000-09-21  Jim Meyering  <meyering@lucent.com>
90374
90375         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
90376         Reported by Michael Stone.
90377
90378 2000-09-20  Jim Meyering  <meyering@lucent.com>
90379
90380         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
90381         (noinst_HEADERS): Add sha.h.
90382         Based on code from Scott G. Miller and from GnuPG.
90383
90384 2000-09-18  Jim Meyering  <meyering@lucent.com>
90385
90386         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
90387         LIBS. Otherwise, everyone ends up linking with -lelf for some
90388         configurations.
90389         Reported by Mike Stone.
90390
90391 2000-09-15  Jim Meyering  <meyering@lucent.com>
90392
90393         * lib/regex.c: Update from libc.
90394
90395 2000-09-10  Jim Meyering  <meyering@lucent.com>
90396
90397         * lib/getopt.c (_getopt_internal): Update from glibc.
90398
90399 2000-09-09  Jim Meyering  <meyering@lucent.com>
90400
90401         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
90402         think it should be used as a general replacement for isascii.
90403         * lib/fnmatch.c: Likewise.
90404         * lib/mbswidth.c: Likewise
90405         * lib/regex.c: Likewise.
90406
90407         Don't use atoi.
90408         * lib/userspec.c: Include sys/param.h and limits.h.
90409         Include xstrtol.h.
90410         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90411         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
90412         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
90413         UID, GID.  Check range.
90414
90415 2000-09-06  Jim Meyering  <meyering@lucent.com>
90416
90417         * lib/getopt.c (_getopt_internal): Update from glibc.
90418
90419 2000-08-30  Jim Meyering  <meyering@lucent.com>
90420
90421         * lib/strftime.c: Merge in changes from GNU libc.
90422
90423 2000-08-26  Jim Meyering  <meyering@lucent.com>
90424
90425         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
90426         * m4/fpending.m4: New file.
90427
90428 2000-08-26  Jim Meyering  <meyering@lucent.com>
90429
90430         * lib/closeout.c: Include "__fpending.h".
90431         (close_stdout_status): Return right away if there's nothing to flush.
90432
90433         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
90434         * lib/__fpending.c: New file.
90435         * lib/__fpending.h: New file.
90436
90437 2000-08-20  Jim Meyering  <meyering@lucent.com>
90438
90439         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
90440         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
90441         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
90442
90443 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
90444
90445         Improve fileutils installation on systems where running
90446         programs (like install) can't be unlinked.
90447         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
90448         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
90449
90450 2000-08-07  Paul Eggert  <eggert@twinsun.com>
90451
90452         Standardize on "memory exhausted" instead of "Memory exhausted"
90453         or "virtual memory exhausted".
90454         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
90455         "virtual memory exhausted".
90456         * lib/same.c (same_name): Invoke xalloc_die instead of printing
90457         our own message.
90458         * lib/userspec.c (parse_user_spec): Likewise.
90459         * lib/bumpalloc.h: comment fix
90460         * lib/same.c, userspec.c: Include xalloc.h.
90461
90462         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
90463         not char *const and pointing to a constant array.
90464         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
90465         (xrealloc): Comment fix.
90466
90467         * lib/userspec.c (parse_user_spec):
90468         Don't translate a message until just before returning,
90469         to avoid unnecessary translation.
90470
90471 2000-08-07  Jim Meyering  <meyering@lucent.com>
90472
90473         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
90474         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
90475         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
90476         getgroups.c, gethostname.c, getopt.h, group-member.c,
90477         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
90478         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
90479         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
90480         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
90481         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
90482         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
90483         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
90484         yesno.c: Back out Copyright date changes for each file with no change
90485         this year.  This eases coordination with other programs using the same
90486         source code modules.  From Paul Eggert.
90487
90488 2000-08-06  Paul Eggert  <eggert@twinsun.com>
90489
90490         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
90491         not char, for compatibility with glibc 2.1.3 strftime.c.
90492
90493 2000-08-03  Greg McGary  <greg@mcgary.org>
90494
90495         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
90496         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
90497         (EXTEND_BUFFER): Use them.
90498
90499 2000-08-01  Jim Meyering  <meyering@lucent.com>
90500
90501         * lib/dirname.c (ISSLASH): Define.
90502         (BACKSLASH_IS_PATH_SEPARATOR): Define.
90503         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
90504         both `\' and `/' may be use as path separators.
90505         Based on a patch from Prashant TR.
90506
90507 2000-07-31  Paul Eggert  <eggert@twinsun.com>
90508
90509         * lib/quotearg.c (quotearg_n_options): Don't make the initial
90510         slot vector a constant, since it might get modified.
90511
90512 2000-07-31  Jim Meyering  <meyering@lucent.com>
90513
90514         * lib/xmalloc.c: Use `virtual memory exhausted', not
90515         `Memory exhausted'.
90516         * lib/obstack.c (print_and_abort): Likewise.
90517
90518 2000-07-30  Paul Eggert  <eggert@twinsun.com>
90519
90520         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
90521         buffer, so that the caller can always quote one small
90522         component of a "memory exhausted" message in slot 0.
90523         From a suggestion by Jim Meyering.
90524
90525 2000-07-30  Jim Meyering  <meyering@lucent.com>
90526
90527         * lib/makepath.c (make_path): Quote the other instance, too.
90528
90529         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
90530         (STATIC_BUF_SIZE): Define.
90531         (quotearg_n_options): Use only statically allocated storage when
90532         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
90533         than STATIC_BUF_SIZE.
90534
90535 2000-07-29  Jim Meyering  <meyering@lucent.com>
90536
90537         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
90538         * lib/dirname.c (dir_name): Likewise.
90539
90540         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
90541         `/'.
90542
90543         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
90544         (dir_name): Assert that there are no trailing slashes.
90545
90546 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
90547
90548         * lib/mbswidth.h (mbswidth): Add a flags argument.
90549         (mbswidth): New declaration.
90550         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
90551         * lib/mbswidth.c (mbswidth): Add a flags argument.
90552         (mbsnwidth): New function.
90553
90554 2000-07-24  Jim Meyering  <meyering@lucent.com>
90555
90556         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
90557
90558 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90559
90560         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
90561
90562 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90563
90564         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
90565         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
90566         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
90567         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
90568         invoke multibyte primitives.
90569
90570 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90571
90572         * lib/quotearg.c:
90573         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
90574         so that mbstate_t is always defined.
90575
90576         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
90577         be 1 in at least one GCC installation, and this configuration
90578         error is likely to be common.  Ignoring MB_LEN_MAX hurts
90579         performance on hosts that have mbrtowc but have only unibyte
90580         locales, but I assume these hosts are rare.
90581
90582 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90583
90584         * lib/mbswidth.c (_XOPEN_SOURCE):
90585         Don't define; this causes problems on Solaris 7.
90586         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
90587
90588 2000-07-23  Jim Meyering  <meyering@lucent.com>
90589
90590         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
90591         too: getgrgid, getpwuid, getuid.
90592
90593 2000-07-23  Jim Meyering  <meyering@lucent.com>
90594
90595         * lib/basename.c (base_name): Add an assertion.
90596
90597 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
90598
90599         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
90600         shadow its mbsinit function.
90601
90602 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90603
90604         * lib/mbswidth.h: New file.
90605         * lib/mbswidth.c: New file.
90606         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
90607         (noinst_HEADERS): Add mbswidth.h.
90608
90609 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90610
90611         * lib/config.charset: Add support for FreeBSD. Improve support for
90612         HP-UX and IRIX 6.
90613
90614 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
90615
90616         * m4/mbswidth.m4: New file.
90617         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
90618
90619 2000-07-15  Jim Meyering  <meyering@lucent.com>
90620
90621         * lib/makepath.c: Include quote.h.
90622         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
90623         corresponding argument in a `quote (...)' call.
90624         Give better diagnostics.
90625
90626         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
90627         (noinst_HEADERS): Add quote.h.
90628
90629         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
90630         from tar's src/misc.c.
90631         * lib/quote.h: New file.  Prototypes for same.
90632
90633 2000-07-14  Paul Eggert  <eggert@twinsun.com>
90634
90635         From a suggestion by Bruno Haible.
90636         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
90637         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
90638         to decide whether to define the BeOS workaround macro;
90639         this adjusts to the change to AC_MBSTATE_T.
90640
90641 2000-07-14  Jim Meyering  <meyering@lucent.com>
90642
90643         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
90644         jm_AC_TYPE_UINTMAX_T.
90645
90646 2000-07-13  Paul Eggert  <eggert@twinsun.com>
90647
90648         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
90649
90650         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
90651         quotearg_buffer_restyled): Add support for
90652         clocale_quoting_style.  Undo previous change to
90653         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
90654         and "{RIGHT QUOTATION MARK}" msgids.
90655
90656 2000-07-10  Paul Eggert  <eggert@twinsun.com>
90657
90658         From a suggestion by Bruno Haible.
90659         * m4/mbstate_t.m4 (AC_MBSTATE_T):
90660         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
90661         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
90662         and mbstate_t, to a single-part test that simply defines mbstate_t.
90663         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
90664         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
90665
90666 2000-07-10  Jim Meyering  <meyering@lucent.com>
90667
90668         * m4/strerror_r.m4: Mirror the correction made in autoconf.
90669
90670         * m4/gnu-source.m4: Output to confdefs.h directly.
90671         Suggestion from Akim Demaille.
90672
90673 2000-07-09  Paul Eggert  <eggert@twinsun.com>
90674
90675         The old behavior of quoting `like this' doesn't look good with
90676         newer, ISO-style fonts.  See:
90677         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
90678
90679         Instead, quote "like this" by default.  Let the translator
90680         tailor the locale-specific quoting behavior by providing
90681         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
90682
90683         * lib/quotearg.c (N_): New macro.
90684         (gettext_default): New function.
90685         (quotearg_buffer_restyled): Use
90686         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
90687         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
90688
90689 2000-07-09  Jim Meyering  <meyering@lucent.com>
90690
90691         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
90692         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
90693
90694         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
90695         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
90696
90697 2000-07-09  Jim Meyering  <meyering@lucent.com>
90698
90699         * lib/Most files: Update copyright dates to include 2000.
90700
90701 2000-07-08  Jim Meyering  <meyering@lucent.com>
90702
90703         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
90704         if not defined.
90705         (xgethostname): Remove now-unnecessary #ifdef.
90706         Move declaration of `err' into loop where it's used.
90707
90708 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90709         and Bruno Haible  <haible@clisp.cons.org>
90710
90711         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
90712         only if the test for an object-type mbstate_t fails.  This
90713         prevents us from mistakenly reporting that mbstate_t is a
90714         system object type after we "#define mbstate_t int" to work
90715         around its lack.
90716
90717 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90718         and Bruno Haible  <haible@clisp.cons.org>
90719
90720         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
90721
90722 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90723
90724         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
90725         to strerror_r.
90726         Include <ctype.h> for use of isalpha.
90727
90728 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90729
90730         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
90731         by allocating a larger buffer. Test the gethostname return value for
90732         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
90733         returns an error and ENAMETOOLONG isn't defined.
90734
90735 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90736
90737         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
90738         dimension.
90739
90740 2000-07-04  Jim Meyering  <meyering@lucent.com>
90741
90742         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
90743         of the deprecated AC_CHECKING.
90744
90745 2000-07-04  Jim Meyering  <meyering@lucent.com>
90746
90747         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
90748         Reported by Bruno Haible.
90749
90750 2000-07-04  Jim Meyering  <meyering@lucent.com>
90751
90752         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
90753         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
90754         lacks mbrtowc.
90755
90756 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90757
90758         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
90759         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
90760
90761 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90762         and Bruno Haible  <haible@clisp.cons.org>
90763
90764         * lib/quotearg.c (mbrtowc):
90765         Assign to *pwc, and return 1 only if result is nonzero.
90766         (iswprint): Use ISPRINT when substituting our own mbrtowc.
90767
90768 2000-07-03  Jim Meyering  <meyering@lucent.com>
90769
90770         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
90771
90772 2000-07-03  Jim Meyering  <meyering@lucent.com>
90773
90774         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
90775         This is necessary to get a definition of e.g., UTMP_FILE on
90776         HP-UX 10.20.
90777         From Bob Proulx.
90778
90779 2000-07-02  Jim Meyering  <meyering@lucent.com>
90780
90781         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
90782
90783         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
90784         AC_LIBOBJ(function_name).
90785         * m4/chown.m4: Likewise.
90786         * m4/fnmatch.m4: Likewise.
90787         * m4/ftruncate.m4: Likewise.
90788         * m4/getgroups.m4: Likewise.
90789         * m4/getline.m4: Likewise.
90790         * m4/group-member.m4: Likewise.
90791         * m4/jm-macros.m4: Likewise.
90792         * m4/lstat.m4: Likewise.
90793         * m4/malloc.m4: Likewise.
90794         * m4/memcmp.m4: Likewise.
90795         * m4/nanosleep.m4: Likewise.
90796         * m4/putenv.m4: Likewise.
90797         * m4/realloc.m4: Likewise.
90798         * m4/regex.m4: Likewise.
90799         * m4/stat.m4: Likewise.
90800         * m4/strftime.m4: Likewise.
90801
90802 2000-07-02  Jim Meyering  <meyering@lucent.com>
90803
90804         * lib/quotearg.c (mbstate_t): Don't define here.
90805
90806 2000-07-02  Jim Meyering  <meyering@lucent.com>
90807
90808         * lib/nanosleep.c (SIGCONT): Define if not already defined.
90809
90810 2000-07-01  Jim Meyering  <meyering@lucent.com>
90811
90812         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
90813
90814 2000-07-01  Jim Meyering  <meyering@lucent.com>
90815
90816         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
90817         problem.
90818
90819 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90820
90821         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
90822         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
90823
90824 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90825
90826         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
90827         per change in ../m4/ls-mntd-fs.m4.
90828         (read_filesystem_list): Ignore symbolic links.
90829
90830 2000-06-29  Jim Meyering  <meyering@lucent.com>
90831
90832         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
90833         for declaration of strcmp.
90834
90835         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
90836
90837         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
90838         Avoid warning by casting result to `char *' to remove `const'.
90839
90840 2000-06-28  Jim Meyering  <meyering@lucent.com>
90841
90842         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
90843         included by quotearg.c, for which we perform this test.  From
90844         Bruno Haible.
90845
90846 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90847
90848         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
90849         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
90850         <utmpx.h> exists, put readutmp.o into LIBOBJS.
90851
90852 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90853
90854         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
90855
90856 2000-06-26  Paul Eggert  <eggert@twinsun.com>
90857
90858         savedir now sets errno on failure and invokes xmalloc to get memory.
90859         Fix a couple of other minor bugs while we're at it.
90860
90861         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
90862         (NAMLEN): Remove macro.
90863         (malloc, realloc): Remove decls.
90864         (stpcpy): Likewise.
90865         ("xalloc.h"): Include.
90866         (NAME_SIZE_DEFAULT): New macro.
90867         (savedir): Use xmalloc / xrealloc to allocate memory.
90868         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
90869         Skip "" directory entries.
90870         Use strlen to calculate directory entry length, since the old method
90871         is rarely used these days and isn't worth supporting.
90872         Don't use a pointer after freeing it.
90873         Check for integer overflow when calculating allocation size.
90874         Use memcpy to copy entries, instead of stpcpy.
90875         Set errno properly when returning NULL.
90876         Check for readdir error.
90877
90878 2000-06-26  Jim Meyering  <meyering@lucent.com>
90879
90880         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
90881
90882 2000-06-25  Jim Meyering  <meyering@lucent.com>
90883
90884         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
90885         Linux header bug when _XOPEN_SOURCE is defined to 500.
90886
90887 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90888
90889         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
90890         deficiency.
90891
90892 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90893
90894         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
90895         Include xalloc.h.
90896         Don't include <stdlib.h>.  Don't declare malloc, realloc.
90897
90898 2000-06-24  Jim Meyering  <meyering@lucent.com>
90899
90900         * m4/strerror_r.m4: Revive this file -- to try out an experimental
90901         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
90902         for which strerror does return char*, but which lacks a conveniently
90903         accessible declaration of the function.  If the compile-test says
90904         strerror_r doesn't work, then resort to a `run'-test that works on
90905         BeOS and segfaults on DEC Unix.
90906
90907 2000-06-24  Jim Meyering  <meyering@lucent.com>
90908
90909         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
90910
90911 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90912
90913         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
90914         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
90915
90916 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90917
90918         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
90919         (mbrtowc, mbstate_t): Define substitutes if
90920         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
90921         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
90922         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
90923
90924 2000-06-23  Jim Meyering  <meyering@lucent.com>
90925
90926         * m4/afs.m4: Add missing AC_MSG_RESULT.
90927         Reported by Bruno Haible.
90928
90929         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
90930         Suggestion from Bruno Haible.
90931
90932 2000-06-23  Jim Meyering  <meyering@lucent.com>
90933
90934         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
90935
90936 2000-06-21  Jim Meyering  <meyering@lucent.com>
90937
90938         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
90939
90940 2000-06-21  Jim Meyering  <meyering@lucent.com>
90941
90942         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
90943         (noinst_HEADERS): Add getstr.h.
90944
90945         * lib/getline.c (getstr): Move into a separate file.
90946         * lib/getstr.c (getstr): New file, extracted from getline.c, with
90947         the following changes: new parameter, delim2; both delim[12]
90948         parameters have type `int', not `char'.  The latter would lose
90949         with 8-bit delimiters.
90950         * lib/getstr.h: New file.
90951
90952 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90953
90954         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
90955         than 1024, return a memory chunk of least possible size, instead
90956         of size PATH_MAX + 2. In the loop, increment the size proportionally.
90957         Use free/xmalloc instead of xrealloc to avoid copying for very long
90958         paths.
90959
90960 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90961
90962         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
90963         the empty string.
90964
90965 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90966
90967         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
90968         address, not strdup.  Include <stdlib.h> and don't declare free().
90969
90970 2000-06-19  Jim Meyering  <meyering@lucent.com>
90971
90972         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
90973
90974 2000-06-18  Jim Meyering  <meyering@lucent.com>
90975
90976         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
90977
90978         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
90979         `checking whether...' message to be consistent with that of the
90980         lstat test.
90981
90982 2000-06-18  Jim Meyering  <meyering@lucent.com>
90983
90984         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
90985         Besides, these days every porting target provides a mkdir function.
90986
90987         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
90988         needed. (this snippet comes from src/system.h).
90989
90990 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
90991
90992         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
90993
90994 2000-06-15  Paul Eggert  <eggert@twinsun.com>
90995
90996         * lib/human.c (adjust_value): New function.
90997         (human_readable_inexact): Apply rounding style even when
90998         printing approximate values.
90999
91000 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91001
91002         * lib/human.c (human_readable_inexact): Allow an input block
91003         size that is not a multiple of the output block size, and vice versa.
91004         Reported by Piergiorgio Sartor.
91005
91006 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91007
91008         * lib/getdate.y (get_date): Apply relative times after time
91009         zone indicator, not before.  Reported by Todd A. Jacobs.
91010
91011 2000-06-13  Jim Meyering  <meyering@lucent.com>
91012
91013         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
91014
91015         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
91016
91017 2000-06-12  Paul Eggert  <eggert@twinsun.com>
91018
91019         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
91020
91021 2000-06-12  Jim Meyering  <meyering@lucent.com>
91022
91023         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
91024         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
91025         optional argument.
91026         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
91027         the optional argument, `lib'.
91028
91029 2000-06-08  Jim Meyering  <meyering@lucent.com>
91030
91031         * m4/largefile.m4: Remove file (now that it's part of autoconf).
91032
91033 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91034
91035         Rewrite largefile configuration so that we don't need to run
91036         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
91037         AC_CANONICAL_HOST in configure.in -- jmm]
91038
91039         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
91040         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
91041         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
91042         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
91043         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
91044         All uses changed.
91045         Instead of inspecting the output of getconf, try to compile the
91046         test program without and with the macro definition.
91047         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
91048         for getconf.  Instead, check for the needed flags by compiling
91049         test programs.
91050
91051 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91052
91053         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
91054
91055 2000-06-04  Jim Meyering  <meyering@lucent.com>
91056
91057         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
91058         SunOS 4.1.4 for which gid_t is an unsigned type.
91059
91060 2000-06-03  Jim Meyering  <meyering@lucent.com>
91061
91062         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
91063         now that autoconf requires that.
91064
91065         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
91066         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
91067         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
91068
91069 2000-06-03  Jim Meyering  <meyering@lucent.com>
91070
91071         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
91072
91073 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91074
91075         * m4/glibc21.m4: New file.
91076         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
91077
91078 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91079
91080         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
91081         newer, don't install charset.alias.
91082         * lib/config.charset: Change the Linux/glibc rules so they become empty
91083         on glibc-2.1 or newer.
91084
91085 2000-06-02  Jim Meyering  <meyering@lucent.com>
91086
91087         * lib/mountlist.c: Back out last change.  Instead, do this...
91088         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
91089         me_dummy member using the same `ignore'-testing code.
91090         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
91091         fs_type strings.
91092         From Mark D. Roth.
91093
91094 2000-05-29  Jim Meyering  <meyering@lucent.com>
91095
91096         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
91097         mounts with the `ignore' attribute.  Based on a patch from
91098         Mark D. Roth.
91099
91100 2000-05-28  Jim Meyering  <meyering@lucent.com>
91101
91102         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
91103         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91104         * m4/stat.m4: Likewise.
91105         * m4/lstat.m4: Likewise.
91106         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
91107
91108         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
91109         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
91110
91111 2000-05-26  Jim Meyering  <meyering@lucent.com>
91112
91113         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
91114
91115 2000-05-24  Jim Meyering  <meyering@lucent.com>
91116
91117         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
91118         autoconf requires that.
91119         * m4/lib-check.m4: Likewise.
91120         * m4/jm-macros.m4: Likewise.
91121         * m4/strftime.m4: Likewise.
91122
91123         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
91124         AC_CHECK_DECLS, now that autoconf requires that.
91125
91126 2000-05-22  Jim Meyering  <meyering@lucent.com>
91127
91128         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91129         * m4/lstat.m4: Likewise.
91130
91131 2000-05-22  Jim Meyering  <meyering@lucent.com>
91132
91133         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
91134
91135 2000-05-20  Jim Meyering  <meyering@lucent.com>
91136
91137         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
91138         (jm_PREREQ): Use it.
91139
91140 2000-05-18  Jim Meyering  <meyering@lucent.com>
91141
91142         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
91143         back, too, since it may have been modified by allocate_entry.
91144         (hash_delete): Rewrite to use neither the assignment operator
91145         nor the comma operator in an if-expression.
91146
91147 2000-05-15  Paul Eggert  <eggert@twinsun.com>
91148
91149         * lib/closeout.c:
91150         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
91151         Remove; no longer needed.
91152         "quotearg.h": Add include.
91153         (file_name): Do not bother to explicitly initialize to NULL; it's less
91154         efficient on some hosts.
91155         (close_stdout_status): Remove test as to whether stdout was already
91156         closed; it breaks for the case "echo x | sort >&-".
91157         Quote file name colons.
91158         Do not assume that _("write error") lacks format strings.
91159
91160 2000-05-15  Jim Meyering  <meyering@lucent.com>
91161
91162         * lib/version-etc.c (version_etc_copyright): Update the copyright
91163         string used in all --version output.
91164
91165 2000-05-14  Jim Meyering  <meyering@lucent.com>
91166
91167         * lib/closeout.c (close_stdout_set_file_name): New function.
91168         (close_stdout_status): Use new file-scoped global.
91169         Return right away if fstat says the stdout file descriptor is invalid.
91170         * lib/closeout.h (close_stdout_set_file_name): Declare.
91171
91172 2000-05-10  Jim Meyering  <meyering@lucent.com>
91173
91174         * lib/closeout.c [default_exit_status]: New file-scoped variable.
91175         (close_stdout_set_status): New function.
91176         * lib/closeout.h (close_stdout_set_status): Declare.
91177
91178 2000-05-09  Jim Meyering  <meyering@lucent.com>
91179
91180         * m4/gettext.m4: Rename this...
91181         * m4/libintl.m4: ...to this.
91182
91183 2000-05-08  Jim Meyering  <meyering@lucent.com>
91184
91185         * lib/long-options.c: Don't include closeout.h.
91186         (parse_long_options): Don't call close_stdout for --version.
91187
91188 2000-05-06  Paul Eggert  <eggert@twinsun.com>
91189
91190         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
91191         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
91192         2.1.3 bug.  This avoids a clash when files like regex.c define
91193         _GNU_SOURCE.
91194
91195 2000-05-06  Jim Meyering  <meyering@lucent.com>
91196
91197         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
91198         (AC_REPLACE_FUNCS): Add strnlen.
91199
91200         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
91201         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
91202
91203         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
91204         AC_SEARCH_LIBS call for nanosleep.
91205         (LIB_NANOSLEEP): Set and AC_SUBST.
91206
91207 2000-05-06  Jim Meyering  <meyering@lucent.com>
91208
91209         * lib/strnlen.c: Undefine __strnlen and strnlen.
91210         [!weak_alias]: Define __strnlen to strnlen.
91211
91212         * lib/atexit.c: New file, from libiberty.
91213
91214 2000-05-06  Jim Meyering  <meyering@lucent.com>
91215
91216         * lib/closeout.c (close_stdout_status): Also check for errors on the
91217         stderr stream.
91218
91219 2000-05-05  Jim Meyering  <meyering@lucent.com>
91220
91221         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
91222         AC_SEARCH_LIBS call for clock_gettime.
91223         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
91224
91225         * m4/search-libs.m4: Update from autoconf.
91226
91227         su doesn't work on Solaris 2.6.
91228         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
91229         <shadow.h>.  Reported by Dragos Harabor.
91230
91231 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
91232
91233         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
91234         memcpy instead of xmalloc, xrealloc, path_concat.
91235         (locale_charset): Treat empty environment variables as absent.
91236         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
91237
91238 2000-05-04  Jim Meyering  <meyering@lucent.com>
91239
91240         * lib/getopt.c: Update from glibc.
91241         * lib/obstack.c: Likewise.
91242         * lib/obstack.h: Likewise.
91243         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
91244         file
91245
91246         * lib/regex.h: Likewise.
91247         * lib/strndup.c: Likewise.
91248         * lib/strnlen.c: New file, from glibc.
91249
91250 2000-05-03  Jim Meyering  <meyering@lucent.com>
91251
91252         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
91253
91254 2000-05-02  Paul Eggert  <eggert@twinsun.com>
91255
91256         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
91257         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
91258         compile-time test, rather than inspecting host and OS, to
91259         decide whether to define _LARGEFILE_SOURCE.
91260
91261 2000-05-01  Jim Meyering  <meyering@lucent.com>
91262
91263         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
91264
91265         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
91266         Based on a patch from Bruno Haible.
91267
91268 2000-05-01  Jim Meyering  <meyering@lucent.com>
91269
91270         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
91271
91272 2000-04-29  Jim Meyering  <meyering@lucent.com>
91273
91274         * lib/path-concat.c: Declare strdup only if it's not defined.
91275         * lib/canon-host.c: Likewise.
91276
91277 2000-04-28  Jim Meyering  <meyering@lucent.com>
91278
91279         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
91280         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
91281         is included first, then limits.h is included by locale.h by libintl.h.
91282         From John David Anglin.
91283
91284 2000-04-25  Jim Meyering  <meyering@lucent.com>
91285
91286         * lib/makepath.c (S_IRWXUGO): Define.
91287         (make_path): Always perform explicit chmod if MODE specifies any
91288         of the `special' permission bits.  Prompted by a bug report against
91289         install from Mate Wierdl and Joost van Baal.
91290
91291 2000-04-18  Jim Meyering  <meyering@lucent.com>
91292
91293         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
91294         (jm_PREREQ): Use it.
91295
91296 2000-04-18  Jim Meyering  <meyering@lucent.com>
91297
91298         * lib/README: New file.
91299
91300         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
91301         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
91302
91303 2000-04-17  Jim Meyering  <meyering@lucent.com>
91304
91305         Get it right :-)
91306         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
91307         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
91308         Suggestion from Akim Demaille.
91309
91310 2000-04-17  Jim Meyering  <meyering@lucent.com>
91311
91312         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
91313         the definition of it to rpl_strftime also defined-away the system's
91314         declaration.
91315
91316 2000-04-15  Jim Meyering  <meyering@lucent.com>
91317
91318         Use `C' to denote so-called `contiguous' files, the same way
91319         that tar does.
91320         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
91321         (ftypelet): Use S_ISCTG.
91322         From Michael Deutschmann.
91323
91324 2000-04-14  Jim Meyering  <meyering@lucent.com>
91325
91326         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
91327         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
91328         clobbered.
91329
91330 2000-04-14  Jim Meyering  <meyering@lucent.com>
91331
91332         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
91333
91334 2000-04-13  Jim Meyering  <meyering@lucent.com>
91335
91336         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
91337         AH_VERBATIM to insert required #ifndef into config.h.in.
91338         Suggestion from Akim Demaille.
91339
91340 2000-04-12  Jim Meyering  <meyering@lucent.com>
91341
91342         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
91343         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
91344         Christian Krackowizer.
91345
91346         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
91347         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
91348         (AC_SYS_LARGEFILE): Require.
91349         (AM_C_PROTOTYPES): Require.
91350
91351 2000-04-08  Jim Meyering  <meyering@lucent.com>
91352
91353         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
91354         names don't conflict.  Reported by Eli Zaretskii.
91355
91356 2000-04-07  Jim Meyering  <meyering@lucent.com>
91357
91358         * lib/putenv.c: Move inclusion of errno.h so it follows that of
91359         sys/types.h, to work around system header problems on AIX 3.2.5.
91360         From Bruno Haible.
91361
91362 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
91363
91364         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
91365         bug.  Deal with the different error behavior of Irix iconv.
91366
91367 2000-04-05  Paul Eggert  <eggert@twinsun.com>
91368
91369         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
91370         IRIX if the installer said otherwise.
91371
91372 2000-04-05  Jim Meyering  <meyering@lucent.com>
91373
91374         Portability tweaks required for ultrix4.3.
91375         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
91376         (jm_CHECK_DECLS): Add getutent to the list of functions.
91377         (_jm_DECL_HEADERS): Add utmpx.h.
91378         From John David Anglin.
91379
91380         * m4/strftime.m4: Back out the 2000-04-02 change.
91381         Instead of that change, simply undefine putenv in the test program.
91382
91383 2000-04-05  Jim Meyering  <meyering@lucent.com>
91384
91385         Portability tweaks required for ultrix4.3.
91386         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
91387         getutent.
91388         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
91389         * lib/canon-host.c: Declare strdup.
91390         * lib/path-concat.c: Likewise.
91391         From John David Anglin.
91392
91393 2000-04-04  Jim Meyering  <meyering@lucent.com>
91394
91395         Be more DOS 8.3-friendly.
91396         * lib/ref-add.sin: Renamed from ref-add.sed.in.
91397         * lib/ref-del.sin: Renamed from ref-del.sed.in.
91398         * lib/Makefile.am: Reflect renaming.
91399         Reported by Eli Zaretskii.
91400
91401         Use a temporary file name that won't clash with `charset.alias'
91402         in the DOS 8.3 name space.
91403         * lib/Makefile.am (charset_tmp): Define.
91404         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
91405         (uninstall-local): Likewise.
91406         Reported by Eli Zaretskii.
91407
91408 2000-04-03  Jim Meyering  <meyering@lucent.com>
91409
91410         * m4/gettext.m4: Fix typo in comment.
91411
91412         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
91413         textutils/configure.in).  Suggestion from Paul Eggert.
91414         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
91415
91416 2000-04-02  Paul Eggert  <eggert@twinsun.com>
91417
91418         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
91419         variable in the shell rather than using putenv, which isn't
91420         portable.  This avoids the configure-time inter-test dependency
91421         on the potentially-renamed putenv function.
91422
91423 2000-03-30  Paul Eggert  <eggert@twinsun.com>
91424
91425         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
91426         before checking struct stat.st_blksize, so that
91427         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
91428
91429 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91430
91431         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
91432         since strftime.c uses HAVE_STRFTIME to decide whether to use
91433         the underlying strftime.
91434
91435 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91436
91437         * lib/time/strftime.c (my_strftime): Make sure we call the system
91438         strftime, not ourselves, when invoking the underlying strftime.
91439
91440 2000-03-24  Jim Meyering  <meyering@lucent.com>
91441
91442         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
91443         (charset_alias): Define.
91444         (install-exec-local): Factor out common code.
91445         (uninstall-local): Split lines longer than 80.
91446         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
91447         (SUFFIXES): Define.
91448         (.sed.in.sed): New rule.  Don't redirect directly to $@.
91449         (CLEANFILES): Add ref-add.sed and ref-del.sed.
91450
91451 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
91452
91453         * lib/config.charset: Output a line containing "Packages using this
91454         file".
91455         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
91456         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
91457         ref-del.sed): New rules.
91458
91459 2000-03-17  Jim Meyering  <meyering@lucent.com>
91460
91461         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
91462         Otherwise, include <strings.h>
91463
91464 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
91465
91466         * lib/unicodeio.c (utf8_wctomb): New function.
91467         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
91468         format instead of in UCS-4 with platform dependent endianness.
91469
91470 2000-03-10  Jim Meyering  <meyering@lucent.com>
91471
91472         * m4/lib-check.m4: Look for getspnam in -lgen, too.
91473         From Marco Franzen.
91474
91475 2000-03-07  Paul Eggert  <eggert@twinsun.com>
91476
91477         * lib/savedir.c (savedir): Work even if directory size is
91478         negative; this can happen with some screwy NFS configurations.
91479
91480 2000-03-06  Jim Meyering  <meyering@lucent.com>
91481
91482         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
91483         if it's NULL (because we ran out of memory).  From Bruno Haible.
91484
91485 2000-03-05  Jim Meyering  <meyering@lucent.com>
91486
91487         * lib/localcharset.c ("path-concat.h"): Include.
91488         (get_charset_aliases): Use path_concat instead of ANSI string
91489         concatenation.
91490
91491         * lib/unicodeio.h (PARAMS): Define.
91492         Use it to guard prototype.
91493
91494 2000-03-04  Jim Meyering  <meyering@lucent.com>
91495
91496         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
91497         for lib/localcharset.c.
91498
91499 2000-03-04  Jim Meyering  <meyering@lucent.com>
91500
91501         * lib/Makefile.am (install-exec-local): Create $(libdir) before
91502         installing into it.
91503         (uninstall-local): Uncomment this rule so `make distcheck' works
91504         once again.
91505
91506         * lib/unicodeio.c (<errno.h>): Include it.
91507         (errno): Declare if not defined.
91508
91509         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
91510
91511         * lib/config.charset: New version, incorporating remarks from a linux
91512         i18n mailing list.  From Bruno Haible.
91513
91514 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
91515
91516         * m4/codeset.m4: New file.
91517         * m4/iconv.m4: New file.
91518         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
91519
91520 2000-03-03  Jim Meyering  <meyering@lucent.com>
91521
91522         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
91523
91524 2000-03-02  Jim Meyering  <meyering@lucent.com>
91525
91526         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
91527         the messages come out on separate lines.
91528
91529         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
91530         rather than jm_CHECK_DECLARATIONS.
91531         * m4/decl.m4: Remove now-unused file.
91532
91533         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
91534         geteuid.
91535
91536 2000-03-02  Jim Meyering  <meyering@lucent.com>
91537
91538         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
91539
91540 2000-03-01  Jim Meyering  <meyering@lucent.com>
91541
91542         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
91543         * lib/unicodeio.c: Likewise.
91544
91545 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
91546
91547         * lib/config.charset: New file.
91548         * lib/localcharset.c: New file.
91549         * lib/unicodeio.h, lib/unicodeio.c: New files.
91550         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
91551         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
91552         (noinst_HEADERS): Add unicodeio.h.
91553         (all-local, install-exec-local, charset.alias): New targets.
91554
91555 2000-02-28  Paul Eggert  <eggert@twinsun.com>
91556
91557         * lib/quotearg.c (ALERT_CHAR): New macro.
91558         (quotearg_buffer_restyled): Use it.
91559
91560 2000-02-27  Jim Meyering  <meyering@lucent.com>
91561
91562         * m4/check-decl.m4: Add getenv to the list.
91563
91564 2000-02-27  Jim Meyering  <meyering@lucent.com>
91565
91566         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
91567         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
91568
91569         * lib/backupfile.c: Guard inclusion of stdlib.h with
91570         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
91571         Declare malloc if needed.
91572
91573         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
91574         `#ifndef HAVE_DECL..'
91575         now that autoconf always defines the HAVE_DECL_ symbols.
91576         * lib/human.c: Likewise.
91577         * lib/same.c: Likewise.
91578         * lib/strtoumax.c: Likewise.
91579
91580         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
91581         declaration check was not run.
91582         * lib/hash.c: Likewise.
91583         * lib/human.c: Likewise.
91584         * lib/same.c: Likewise.
91585         * lib/strtoumax.c: Likewise.
91586
91587         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
91588         `.', then first look up the entire `.'-containing string as a login
91589         name.
91590
91591 2000-02-23  Jim Meyering  <meyering@lucent.com>
91592
91593         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
91594         in place of my hack.
91595
91596 2000-02-18  Paul Eggert  <eggert@twinsun.com>
91597
91598         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
91599         (textint): New typedef.
91600         (parser_control): Member year changed from int to textint.
91601         All uses changed.
91602         (YYSTYPE): Removed; replaced by %union with int and textint members.
91603         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
91604         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
91605         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
91606         (tSNUMBER, tUNUMBER): Now of type <textintval>.
91607         (date, number, to_year): Use width of number in digits, not its value,
91608         to determine whether it's a 2-digit year, or a 2-digit time.
91609         (yylex): Store number of digits of numeric tokens.
91610         Reported by John Kendall.
91611
91612         (parser_control): Changed from struct parser_control to typedef (for
91613         consistency).  All uses changed.
91614
91615         (tID): Removed; not used.
91616         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
91617
91618 2000-02-14  Paul Eggert  <eggert@twinsun.com>
91619
91620         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
91621         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
91622
91623 2000-02-12  Jim Meyering  <meyering@lucent.com>
91624
91625         * lib/userspec.c (ISDIGIT): Define it.
91626         (isdigit): Remove definition.
91627         (is_number): Use ISDIGIT, not isdigit.
91628         <libintl.h>: Include.
91629         (_ and N_): Define.
91630         (parse_user_spec): Mark translatable strings.
91631
91632 2000-02-10  Jim Meyering  <meyering@lucent.com>
91633
91634         With these changes, nanosleep.[ch] are finally enough like the other
91635         lib/* replacement files to compile on a few more losing systems.
91636
91637         * lib/nanosleep.h: Don't include config.h.
91638         Remove prototype from declaration of nanosleep.
91639         (PARAMS): Remove now-unneeded definition.
91640         * lib/nanosleep.c: #undef nanosleep.
91641         (rpl_nanosleep): Rename from nanosleep.
91642
91643 2000-02-10  Jim Meyering  <meyering@lucent.com>
91644
91645         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
91646         gnu_nanosleep to rpl_nanosleep.
91647
91648 2000-02-09  Jim Meyering  <meyering@lucent.com>
91649
91650         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
91651         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
91652
91653 2000-02-08  Akim Demaille  <akim@epita.fr>
91654
91655         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
91656         `[' and `]' and remove uses of `changequote'.
91657         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
91658         (AC_SYS_LARGEFILE): Likewise.
91659         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
91660         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
91661         of changequote.
91662         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
91663         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
91664         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
91665         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
91666
91667 2000-02-05  Jim Meyering  <meyering@lucent.com>
91668
91669         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
91670         Remove explicit use of AC_HEADER_TIME.  It is required by
91671         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
91672         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
91673         in autoconf whereby the expansion of the latter ended up preceding
91674         the expansion of its prerequisite, AC_HEADER_TIME.
91675         Reported by Volker Borchert.
91676
91677 2000-02-03  Jim Meyering  <meyering@lucent.com>
91678
91679         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
91680
91681 2000-02-03  Jim Meyering  <meyering@lucent.com>
91682
91683         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
91684         rather than with `#if HAVE_UTMPNAME'.
91685
91686 2000-02-02  Jim Meyering  <meyering@lucent.com>
91687
91688         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
91689         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
91690         Reported by Eli Zaretskii.
91691
91692 2000-02-01  Jim Meyering  <meyering@lucent.com>
91693
91694         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
91695
91696 2000-01-31  Jim Meyering  <meyering@lucent.com>
91697
91698         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
91699         functions.  Add the time.h and sys/time.h headers along with the
91700         AC_REQUIRE'ment of AC_HEADER_TIME.
91701
91702 2000-01-31  Jim Meyering  <meyering@lucent.com>
91703
91704         * lib/nanosleep.h (nanosleep): Guard declaration with
91705         `#if ! HAVE_DECL_NANOSLEEP'.
91706         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
91707         the declaration in that vendor's sys/timers.h.
91708         Reported by Christian Krackowizer.
91709
91710         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
91711         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
91712         (ISPRINT): Likewise.
91713         Reported by Tom Tromey.
91714
91715 2000-01-30  Jim Meyering  <meyering@lucent.com>
91716
91717         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
91718
91719         * m4/prereq.m4 (utmp_includes): Define.
91720         Check for ut_user and ut_name members in both struct utmpx
91721         and struct utmp.
91722
91723 2000-01-30  Jim Meyering  <meyering@lucent.com>
91724
91725         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
91726         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
91727         header files where only utmpx.ut_user is declared.
91728
91729         * lib/readutmp.h (UT_USER): Define.
91730
91731 2000-01-29  Jim Meyering  <meyering@lucent.com>
91732
91733         * m4/lib-check.m4: New file containing library-related checks from
91734         fileutils and sh-utils (textutils had none).
91735
91736 2000-01-28  Jim Meyering  <meyering@lucent.com>
91737
91738         * m4/perl.m4: Change format of warning message to look more like that
91739         from the missing script.  Suggestion from François Pinard.
91740
91741 2000-01-25  Jim Meyering  <meyering@lucent.com>
91742
91743         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
91744         well as time.h in the compile check.
91745         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
91746         Fix typo in cross-compiling case: s/yes/no/.
91747
91748 2000-01-23  Jim Meyering  <meyering@lucent.com>
91749
91750         * m4/jm-macros.m4: Move df-related tests here from
91751         fileutils/configure.in
91752
91753         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
91754         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
91755
91756         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
91757         s/space/ac_fsusage_space/.
91758         (jm_FILE_SYSTEM_USAGE): Take two parameters.
91759
91760         * m4/ftruncate.m4: New file (derived from part of
91761         fileutils/configure.in).
91762         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
91763         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
91764
91765         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
91766         AC_SUBST these here, rather than just in sh-util/configure.in, so
91767         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
91768         all the same.
91769         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
91770         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
91771         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
91772         (AC_SUBST(POW_LIBM)): Likewise.
91773         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
91774
91775 2000-01-23  Jim Meyering  <meyering@lucent.com>
91776
91777         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
91778         obstack.c.
91779
91780 2000-01-22  Jim Meyering  <meyering@lucent.com>
91781
91782         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
91783
91784         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
91785
91786         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
91787         configure.in
91788         (AC_CHECK_HEADERS): Likewise for sh-utils.
91789         (AC_CHECK_HEADERS): Likewise for textutils.
91790         Merge the three lists of headers.
91791
91792         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
91793         from fileutils' configure.in.
91794
91795         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
91796         code. Moved tests into their own function (_jm_DECL_HEADERS) in
91797         check-decl.m4.
91798
91799         * m4/check-decl.m4: Use #if rather than #ifdef.
91800         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
91801         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
91802         (_jm_DECL_HEADERS): Define new function.
91803         (jm_CHECK_DECLARATIONS): Require it.
91804
91805 2000-01-22  Jim Meyering  <meyering@lucent.com>
91806
91807         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
91808         [! HAVE_DECL_STRTOULL]: Declare strtoull.
91809         Required for some AIX systems.  Reported by Christian Krackowizer.
91810         [TESTING] (main): New function.
91811
91812         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
91813         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
91814         letters.
91815
91816         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
91817         iswprint.
91818
91819         * lib/strverscmp.c (ISDIGIT): Define.
91820         (strverscmp): Use ISDIGIT, not isdigit.
91821
91822 2000-01-19  Jim Meyering  <meyering@lucent.com>
91823
91824         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
91825         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
91826         defines `struct timespec' in <sys/time.h>
91827
91828         * m4/c-bs-a.m4: Remove uses of changequote altogether.
91829         Thanks to Akim for explaining.
91830
91831 2000-01-17  Paul Eggert  <eggert@twinsun.com>
91832
91833         * lib/nanosleep.c (nanosleep):
91834         Don't use SA_INTERRUPT to decide whether to call sigaction, as
91835         POSIX.1 doesn't require SA_INTERRUPT and some systems
91836         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
91837         it's been part of POSIX.1 since day 1 (in 1988).
91838
91839 2000-01-17  Jim Meyering  <meyering@lucent.com>
91840
91841         * lib/interlock: Remove unused file.  Reported by François Pinard.
91842
91843 2000-01-16  Paul Eggert  <eggert@twinsun.com>
91844
91845         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
91846         alert, backslash, formfeed, and vertical tab unnecessarily in
91847         shell quoting style.
91848
91849 2000-01-16  Jim Meyering  <meyering@lucent.com>
91850
91851         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
91852         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
91853         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
91854         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
91855
91856 2000-01-16  Jim Meyering  <meyering@lucent.com>
91857
91858         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
91859         because the latter didn't work.
91860
91861 2000-01-15  Jim Meyering  <meyering@lucent.com>
91862
91863         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
91864         (AC_REPLACE_FUNCS): Add memcpy and memset.
91865         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
91866         Add strpbrk.
91867         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
91868
91869 2000-01-12  Jim Meyering  <meyering@lucent.com>
91870
91871         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
91872         (jm_PREREQ): Use it.
91873         (jm_PREREQ_READUTMP): New macro.
91874         (jm_PREREQ): Use it.
91875
91876 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91877
91878         Quote multibyte characters correctly.
91879         * m4/c-bs-a.m4: New file.
91880         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
91881         (jm_PREREQ): Use it.
91882
91883 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91884
91885         * m4/uintmax_t.m4: Port to autoconf 2.13.
91886
91887 2000-01-08  Jim Meyering  <meyering@ascend.com>
91888
91889         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
91890         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
91891
91892 2000-01-04  Jim Meyering  <meyering@ascend.com>
91893
91894         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
91895         jm_STRUCT_DIRENT_D_TYPE.
91896         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
91897         jm_STRUCT_DIRENT_D_INO.
91898         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
91899         jm_STRUCT_UTIMBUF.
91900         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
91901         renamings.
91902         * m4/utime.m4: Likewise.
91903
91904         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
91905         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
91906
91907 2000-01-03  Paul Eggert  <eggert@twinsun.com>
91908
91909         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
91910         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
91911
91912 2000-01-02  Jim Meyering  <meyering@ascend.com>
91913
91914         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
91915         remember if this is necessary.
91916
91917 1999-12-26  Jim Meyering  <meyering@ascend.com>
91918
91919         * m4/jm-macros.m4: Use it here.
91920         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
91921
91922 1999-12-23  Jim Meyering  <meyering@ascend.com>
91923
91924         * m4/jm-macros.m4: Check for clock_gettime (moved from
91925         fileutils/configure.in)
91926         Check for gettimeofday.
91927
91928 1999-12-20  Jim Meyering  <meyering@ascend.com>
91929
91930         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
91931         autoconf-2.14a-1999-12-20.
91932
91933 1999-12-19  Jim Meyering  <meyering@ascend.com>
91934
91935         * m4/lstat-slash.m4: New file.
91936         * m4/jm-macros.m4: Use the new macro:
91937         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91938
91939 1999-12-07  Jim Meyering  <meyering@ascend.com>
91940
91941         * m4/perl.m4: Require that File::Compare be available, too.
91942         Too many systems seem to lack it.
91943
91944         * m4/strftime.m4: Add checks for most of the cpp macros tested in
91945         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
91946
91947 1999-11-18  Paul Eggert  <eggert@twinsun.com>
91948
91949         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
91950         problem with the QNX 4.25 shell, which doesn't propagate exit
91951         status of failed commands inside shell assignments.
91952
91953 1999-11-17  Jim Meyering  <meyering@ascend.com>
91954
91955         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
91956
91957 1999-11-07  Jim Meyering  <meyering@ascend.com>
91958
91959         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
91960
91961 1999-11-06  Jim Meyering  <meyering@ascend.com>
91962
91963         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
91964         * m4/jm-macros.m4 (jm_MACROS): Use it here.
91965
91966 1999-11-05  Jim Meyering  <meyering@ascend.com>
91967
91968         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
91969         configure.in of textutils, fileutils, and sh-utils into this one
91970         (shared between those packages) file.
91971         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
91972         AC_STRUCT_ST_BLKSIZE.
91973
91974 1999-11-03  Jim Meyering  <meyering@ascend.com>
91975
91976         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
91977         of AC_CHECK_TYPE checks includes unistd.h.
91978         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
91979         Suggestion from Akim Demaille.
91980
91981 1999-10-30  Jim Meyering  <meyering@ascend.com>
91982
91983         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
91984         m4-quoted string.
91985         * m4/ls-mntd-fs.m4: Likewise.
91986         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
91987         * m4/jm-winsz1.m4: Likewise.
91988
91989         * m4/const.m4: Remove file, since the fix made it into the experimental
91990         version of autoconf.
91991         * m4/mktime.m4: Likewise.
91992
91993         * m4/check-type.m4: Remove file, now that the latest version of
91994         AC_CHECK_TYPE takes a third arg to specify additional #includes.
91995
91996         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
91997         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
91998         AC_CHECK_TYPE.
91999
92000 1999-10-04  Jim Meyering  <meyering@ascend.com>
92001
92002         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
92003
92004 1999-09-22  Paul Eggert  <eggert@twinsun.com>
92005
92006         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
92007         2.95.1 bug with HP-UX 10.20.
92008
92009 1999-09-17  Jim Meyering  <meyering@ascend.com>
92010
92011         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
92012         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
92013         due to missing strdup (against sh-utils-2.0).
92014
92015 1999-08-29  Jim Meyering  <meyering@ascend.com>
92016
92017         * m4/jm-macros.m4: Require jm_BISON.
92018         * m4/bison.m4: New file.
92019
92020 1999-08-17  Paul Eggert  <eggert@twinsun.com>
92021
92022         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
92023         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
92024
92025 1999-08-05  Jim Meyering  <meyering@ascend.com>
92026
92027         * m4/getline.m4: Rename test file from conftestdata to conftest.data
92028         to avoid conflicts with `conftest' on 8+3 filesystems.
92029         Suggestion from Eli Zaretskii.
92030
92031 1999-08-04  Jim Meyering  <meyering@ascend.com>
92032
92033         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
92034         fileutils and sh-utils (textutils's getline test was inadequate).
92035         (AM_FUNC_GETLINE): Run this test.
92036         (AC_CHECK_FUNCS): Check for getdelim.
92037         Reported by Bob Proulx.
92038
92039 1999-08-02  Jim Meyering  <meyering@ascend.com>
92040
92041         * m4/jm-macros.m4: Add a comment.
92042
92043 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92044
92045         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
92046         <inttypes.h> defines strtoumax as a macro (and not as a
92047         function).
92048
92049 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92050
92051         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
92052         that we can shift, multiply and divide unsigned long long
92053         values; Ultrix cc can't do it.
92054
92055 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92056
92057         * m4/mktime.m4: New file, which is a preview of what should appear
92058         in the next public autoconf release.
92059
92060 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92061
92062         * m4/lfs.m4: Remove this file.
92063         * m4/largefile.m4: New file.  It contains the old contents of
92064         lfs.m4, except that all names with prefix AC_LFS have been
92065         changed to use the prefix AC_SYS_LARGEFILE instead, to be
92066         compatible with future autoconf versions.  Also, some minor m4
92067         quoting problems have been fixed.
92068
92069 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92070
92071         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
92072         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
92073         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
92074         and simplify the shell code.
92075
92076 1999-08-01  Jim Meyering  <meyering@ascend.com>
92077
92078         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
92079         m4.
92080
92081 1999-07-20  Jim Meyering  <meyering@ascend.com>
92082
92083         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
92084
92085 1999-07-15  Jim Meyering  <meyering@ascend.com>
92086
92087         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
92088
92089 1999-05-22  Jim Meyering  <meyering@ascend.com>
92090
92091         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
92092
92093 1999-05-20  Jim Meyering  <meyering@ascend.com>
92094
92095         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
92096         Add a colon after each `then' in case $4 is empty.
92097
92098 1999-05-16  Jim Meyering  <meyering@ascend.com>
92099
92100         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
92101
92102 1999-05-10  Jim Meyering  <meyering@ascend.com>
92103
92104         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
92105
92106         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
92107         AC_FUNC_MKTIME.
92108
92109 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
92110
92111         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
92112
92113 1999-05-04  Paul Eggert  <eggert@twinsun.com>
92114
92115         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
92116         not CPPFLAGS, so that linking works correctly in IRIX.
92117
92118 1999-04-30  Paul Eggert  <eggert@twinsun.com>
92119
92120         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
92121
92122 1999-04-20  Paul Eggert  <eggert@twinsun.com>
92123
92124         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
92125         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
92126         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
92127         jm_AC_TYPE_UNSIGNED_LONG_LONG.
92128         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
92129
92130         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
92131
92132 1999-04-20  Jim Meyering  <meyering@ascend.com>
92133
92134         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
92135         AC_REPLACE xstroull if necessary.  From Paul Eggert.
92136         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
92137
92138 1999-04-18  Jim Meyering  <meyering@ascend.com>
92139
92140         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
92141         * m4/jm-macros.m4: Use it.
92142
92143 1999-04-06  Jim Meyering  <meyering@ascend.com>
92144
92145         * m4/strftime.m4: Remove test for %f.
92146
92147 1999-03-29  Jim Meyering  <meyering@ascend.com>
92148
92149         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
92150         superset of the AC_TYPE_* checks in the textutils, fileutils,
92151         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
92152         AC_TYPE_PID_T.
92153
92154 1999-03-28  Jim Meyering  <meyering@ascend.com>
92155
92156         * m4/jm-macros.m4: Define GNU_PACKAGE here.
92157         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
92158         replaced e.g., in the *.sh files of the sh-utils.
92159
92160 1999-03-20  Jim Meyering  <meyering@ascend.com>
92161
92162         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
92163         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
92164         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
92165
92166 1999-03-19  Jim Meyering  <meyering@ascend.com>
92167
92168         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
92169
92170 1999-03-12  Jim Meyering  <meyering@ascend.com>
92171
92172         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
92173
92174 1999-03-07  Jim Meyering  <meyering@ascend.com>
92175
92176         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
92177         declared.
92178
92179 1999-02-17  Jim Meyering  <meyering@ascend.com>
92180
92181         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
92182         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
92183
92184 1999-02-07  Jim Meyering  <meyering@ascend.com>
92185
92186         * m4/group-member.m4: New file -- extracted from sh-utils'
92187         configure.in.
92188
92189         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
92190         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
92191
92192 1999-02-06  Jim Meyering  <meyering@ascend.com>
92193
92194         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
92195         * m4/fnmatch.m4: Likewise.
92196         * m4/getgroups.m4: Likewise.
92197         * m4/lstat.m4: Likewise.
92198         * m4/malloc.m4: Likewise.
92199         * m4/putenv.m4: Likewise.
92200         * m4/realloc.m4: Likewise.
92201         * m4/regex.m4: Likewise.
92202         * m4/stat.m4: Likewise.
92203         * m4/strftime.m4: Likewise.
92204         Suggestion from Alain Magloire.
92205
92206         * m4/chown.m4: Use `.$ac_objext', not `.o'.
92207         * m4/fnmatch.m4: Likewise.
92208         * m4/getgroups.m4: Likewise.
92209         * m4/getline.m4: Likewise.
92210         * m4/lstat.m4: Likewise.
92211         * m4/malloc.m4: Likewise.
92212         * m4/memcmp.m4: Likewise.
92213         * m4/putenv.m4: Likewise.
92214         * m4/realloc.m4: Likewise.
92215         * m4/regex.m4: Likewise.
92216         * m4/stat.m4: Likewise.
92217         * m4/strftime.m4: Likewise.
92218         Suggestion from Alain Magloire.
92219
92220         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
92221         an argument.
92222
92223         * m4/regex.m4: Add a run-time Test for proper operation of
92224         re_compile_pattern.
92225
92226 1999-01-31  Jim Meyering  <meyering@ascend.com>
92227
92228         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
92229
92230 1999-01-30  Jim Meyering  <meyering@ascend.com>
92231
92232         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
92233
92234         * m4/jm-mktime.m4: Make this a wrapper around the official
92235         AM_FUNC_MKTIME rather than my private copy, now that the official one
92236         is up to date.
92237         * m4/mktime.m4: Remove file.
92238
92239         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
92240         * m4/uptime.m4: Likewise.
92241         * m4/uintmax_t.m4: Likewise.
92242
92243 1999-01-28  Jim Meyering  <meyering@ascend.com>
92244
92245         * m4/jm-macros.m4: Use jm_AFS.
92246         * m4/afs.m4: New file (from fileutils' configure.in).
92247
92248         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
92249         * m4/chown.m4: Likewise.
92250         * m4/d-ino.m4: Likewise.
92251         * m4/d-type.m4: Likewise.
92252         * m4/fnmatch.m4: Likewise.
92253         * m4/getgroups.m4: Likewise.
92254         * m4/gettext.m4: Likewise.
92255         * m4/jm-mktime.m4: Likewise.
92256         * m4/jm-winsz2.m4: Likewise.
92257         * m4/lcmessage.m4: Likewise.
92258         * m4/ls-mntd-fs.m4: Likewise.
92259         * m4/malloc.m4: Likewise.
92260         * m4/memcmp.m4: Likewise.
92261         * m4/putenv.m4: Likewise.
92262         * m4/realloc.m4: Likewise.
92263         * m4/st_mtim.m4: Likewise.
92264         * m4/strftime.m4: Likewise.
92265
92266 1999-01-16  Jim Meyering  <meyering@ascend.com>
92267
92268         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
92269         (ARGMATCH_DIE_DECL): Define.
92270
92271 1999-01-12  Jim Meyering  <meyering@ascend.com>
92272
92273         * m4/Makefile.am.in: Rewrite to avoid using fmt.
92274         Reported by Lars Hecking.
92275
92276 1999-01-10  Jim Meyering  <meyering@ascend.com>
92277
92278         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
92279         gross kludge.
92280         * m4/inttypes_h.m4: Likewise.
92281         * m4/lstat.m4: Likewise.
92282         * m4/malloc.m4: Likewise.
92283         * m4/readdir.m4: Likewise.
92284         * m4/realloc.m4: Likewise.
92285         * m4/st_dm_mode.m4: Likewise.
92286         * m4/stat.m4: Likewise.
92287         * m4/utimbuf.m4: Likewise.
92288         * m4/utimes.m4: Likewise.
92289
92290         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
92291         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
92292         comments in config.h.in are meaningful.
92293
92294         * m4/jm-macros.m4: Require autoconf-2.13 here.
92295
92296         * m4/regex.m4: By default, don't use the included regex.c on systems
92297         with glibc 2.  Suggestion from Uli Drepper.
92298
92299 1999-01-02  Jim Meyering  <meyering@ascend.com>
92300
92301         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
92302
92303 1998-12-18  Jim Meyering  <meyering@ascend.com>
92304
92305         * m4/Makefile.am.in (Makefile.am): Simplify rule.
92306         Based on a suggestion from Lars Hecking.
92307
92308 1998-11-16  Paul Eggert  <eggert@twinsun.com>
92309
92310         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
92311
92312 1998-11-16  Jim Meyering  <meyering@ascend.com>
92313
92314         * m4/lfs.m4: Double-quote the `uname...` expression.
92315
92316 1998-11-14  Jim Meyering  <meyering@ascend.com>
92317
92318         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
92319         * m4/stat.m4: Likewise.
92320
92321 1998-11-03  Jim Meyering  <meyering@ascend.com>
92322
92323         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
92324         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
92325
92326 1998-10-18  Jim Meyering  <meyering@ascend.com>
92327
92328         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
92329
92330 1998-10-17  Jim Meyering  <meyering@ascend.com>
92331
92332         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
92333         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
92334         calls for those previously hard-coded headers.  Instead, take a new
92335         parameter.
92336         (jm_CHECK_DECLARATIONS): Reflect interface change.
92337         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
92338         (jm_CHECK_DECL_LOCALTIME_R): New macro.
92339
92340         * m4/mktime.m4: Test for spring-forward gap before long-running test.
92341
92342 1998-10-14  Jim Meyering  <meyering@ascend.com>
92343
92344         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
92345         instead of "TZ=America/Vancouver".  From Paul Eggert.
92346
92347 1998-10-11  Jim Meyering  <meyering@ascend.com>
92348
92349         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
92350         This adds a test for a recently added compatibility fix for mktime.c.
92351         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
92352
92353 1998-09-27  Jim Meyering  <meyering@ascend.com>
92354
92355         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
92356
92357         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
92358         ../configure.in, including a change from Gordon Matzigkeit to allow
92359         cross-compiling for the Hurd.
92360
92361         * m4/glibc.m4: New file/macro to test for the GNU C Library
92362         versions 1 and 2.  From Gordon Matzigkeit.
92363         Indent.
92364
92365 1998-09-21  Jim Meyering  <meyering@ascend.com>
92366
92367         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
92368
92369 1998-08-18  Paul Eggert  <eggert@twinsun.com>
92370
92371         Port nanosecond-resolution times to UnixWare 2.1.2 and
92372         pedantic Solaris 2.6.
92373
92374         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
92375         AC_STRUCT_ST_MTIM.
92376         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
92377         Generate name of ns member, instead of just 1 or undef.
92378         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
92379
92380 1998-08-15  Jim Meyering  <meyering@ascend.com>
92381
92382         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
92383         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
92384         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
92385         instead of jm_TYPE_SSIZE_T.
92386
92387 1998-08-12  Jim Meyering  <meyering@ascend.com>
92388
92389         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
92390
92391 1998-08-02  Jim Meyering  <meyering@ascend.com>
92392
92393         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
92394         in acconfig.h manually.
92395
92396 1998-07-31  Paul Eggert  <eggert@twinsun.com>
92397
92398         * m4/st_mtim.m4: New file.
92399
92400 1998-07-28  Jim Meyering  <meyering@ascend.com>
92401
92402         * m4/utimes.m4: Undef stat.
92403
92404 1998-07-25  Jim Meyering  <meyering@ascend.com>
92405
92406         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
92407         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
92408
92409 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
92410
92411         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
92412         uid and gid actually remain unchanged.
92413
92414 1998-07-07  Jim Meyering  <meyering@ascend.com>
92415
92416         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
92417
92418 1998-07-04  Jim Meyering  <meyering@ascend.com>
92419
92420         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
92421         to prove that this macro can be used in packages without regex.c.
92422
92423 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
92424
92425         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
92426         is to be used.
92427
92428 1998-07-03  Jim Meyering  <meyering@ascend.com>
92429
92430         * m4/gettext.m4: Add -lintl if it's found to be necessary.
92431
92432         * m4/gettext.m4: New file -- from gettext-0.10.35.
92433         * m4/lcmessage.m4: Likewise.
92434         * m4/progtest.m4: Likewise.
92435
92436         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
92437         * m4/jm-macros.m4: Require the new macro.
92438
92439 1998-06-29  Jim Meyering  <meyering@ascend.com>
92440
92441         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
92442         for the definition of NGROUPS (used in a system header included
92443         by sys/mount.h).
92444
92445 1998-06-28  Jim Meyering  <meyering@ascend.com>
92446
92447         * m4/ls-mntd-fs.m4: New file.
92448         * m4/fstypename.m4: New file.
92449
92450         * m4/jm-macros.m4: Require the new macro.
92451         * m4/jm-glibc-io.m4: New file.
92452
92453 1998-05-19  Jim Meyering  <meyering@ascend.com>
92454
92455         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
92456         * m4/lchown.m4: New file.
92457
92458         * m4/Makefile.am.in: New file.
92459         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
92460
92461 1998-05-14  Jim Meyering  <meyering@ascend.com>
92462
92463         * m4/Makefile.am (EXTRA_DIST): Add them.
92464         * m4/jm-macros.m4: New file.
92465         * m4/utimbuf.m4: New file.
92466
92467 1998-05-12  Jim Meyering  <meyering@ascend.com>
92468
92469         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
92470
92471 1998-05-11  Jim Meyering  <meyering@ascend.com>
92472
92473         * m4/isc-posix.m4: New file.
92474
92475 1998-05-10  Jim Meyering  <meyering@ascend.com>
92476
92477         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
92478
92479 1998-05-09  Jim Meyering  <meyering@ascend.com>
92480
92481         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
92482         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
92483         with automake.
92484
92485         * m4/ssize_t.m4: New file.
92486         * m4/mktime.m4: Remove file -- the new automake has this now.
92487
92488 1998-04-26  Jim Meyering  <meyering@ascend.com>
92489
92490         * m4/assert.m4: New file.
92491         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
92492
92493 1998-04-05  Jim Meyering  <meyering@ascend.com>
92494
92495         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
92496         (jm_PREREQ): Use it here.
92497
92498 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
92499
92500         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
92501         in acconfig.h.
92502
92503 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
92504
92505         * m4/prereq.m4: New file.
92506         * m4/error.m4: New file.
92507         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
92508
92509 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
92510
92511         * m4/getline.m4: Don't set am_cv_func_working_getline before the
92512         cache-check for the same variable -- that defeated the purpose of
92513         the test; the test program was never run.  This was a problem only
92514         on systems with losing getline functions -- HP-UX 10.20 is one.
92515         Reported by Bjorn Helgaas.
92516
92517 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
92518
92519         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
92520
92521 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
92522
92523         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
92524
92525         * m4/const.m4: New file.  Use an initializer in this declaration
92526         typedef int charset[2]; const charset x;
92527         Reported by Bob Glickstein.
92528
92529 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
92530
92531         * m4/chown.m4: Fix reversed types on -1 args to chown.
92532         From Kaveh Ghazi.
92533
92534 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
92535
92536         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
92537         Add lseek and memchr.
92538
92539         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
92540         T.E.Dickey <dickey@clark.net> said that some older preprocessors
92541         have a 20-character limit on names.
92542
92543 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
92544
92545         * m4/inttypes_h.m4: New file.
92546         * m4/uintmax_t.m4: New file.
92547         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
92548
92549
92550         -----
92551
92552         Local Variables:
92553         coding: utf-8
92554         End:
92555
92556         Copyright (C) 1997-2012 Free Software Foundation, Inc.
92557
92558         Copying and distribution of this file, with or without
92559         modification, are permitted provided the copyright notice
92560         and this notice are preserved.