d7a3b57736b842152b29179d46e9092fb3826f89
[gnulib.git] / ChangeLog
1 2012-02-26  Bruno Haible  <bruno@clisp.org>
2
3         New module 'fma-ieee'.
4         * modules/fma-ieee: New file.
5
6         Tests for module 'fmaf-ieee'.
7         * modules/fmaf-ieee-tests: New file.
8         * tests/test-fmaf-ieee.c: New file.
9         * tests/test-fma-ieee.h: New file.
10
11         New module 'fmaf-ieee'.
12         * modules/fmaf-ieee: New file.
13
14 2012-02-26  Bruno Haible  <bruno@clisp.org>
15
16         Tests for module 'ldexpl-ieee'.
17         * modules/ldexpl-ieee-tests: New file.
18         * tests/test-ldexpl-ieee.c: New file.
19
20         New module 'ldexpl-ieee'.
21         * modules/ldexpl-ieee: New file.
22
23         Tests for module 'ldexp-ieee'.
24         * modules/ldexp-ieee-tests: New file.
25         * tests/test-ldexp-ieee.c: New file.
26
27         New module 'ldexp-ieee'.
28         * modules/ldexp-ieee: New file.
29
30         Tests for module 'ldexpf-ieee'.
31         * modules/ldexpf-ieee-tests: New file.
32         * tests/test-ldexpf-ieee.c: New file.
33         * tests/test-ldexp-ieee.h: New file.
34
35         New module 'ldexpf-ieee'.
36         * modules/ldexpf-ieee: New file.
37
38 2012-02-26  Bruno Haible  <bruno@clisp.org>
39
40         Refactor frexp*-ieee tests.
41         * tests/test-frexp-ieee.h: New file.
42         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
43         (main): Just call test_function.
44         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
45         (main): Just call test_function.
46         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
47         (main): Just call test_function.
48         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
49         * modules/frexp-ieee-tests (Files): Likewise.
50         * modules/frexpl-ieee-tests (Files): Likewise.
51
52         Tests for module 'frexpl-ieee'.
53         * modules/frexpl-ieee-tests: New file.
54         * tests/test-frexpl-ieee.c: New file.
55
56         New module 'frexpl-ieee'.
57         * modules/frexpl-ieee: New file.
58
59         Tests for module 'frexp-ieee'.
60         * modules/frexp-ieee-tests: New file.
61         * tests/test-frexp-ieee.c: New file.
62
63         New module 'frexp-ieee'.
64         * modules/frexp-ieee: New file.
65
66         Tests for module 'frexpf-ieee'.
67         * modules/frexpf-ieee-tests: New file.
68         * tests/test-frexpf-ieee.c: New file.
69
70         New module 'frexpf-ieee'.
71         * modules/frexpf-ieee: New file.
72
73 2012-02-26  Bruno Haible  <bruno@clisp.org>
74
75         roundl-ieee tests: More tests.
76         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
77         (main): Add tests for [MX] shaded specification in POSIX.
78         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
79         (Depends-on): Add isnanl-nolibm.
80
81         round-ieee tests: More tests.
82         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
83         (main): Add tests for [MX] shaded specification in POSIX.
84         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
85         (Depends-on): Add isnand-nolibm.
86
87         roundf-ieee tests: More tests.
88         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
89         (main): Add tests for [MX] shaded specification in POSIX.
90         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
91         (Depends-on): Add isnanf-nolibm.
92
93         truncl-ieee tests: More tests.
94         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
95         (main): Add tests for [MX] shaded specification in POSIX.
96         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
97         (Depends-on): Add isnanl-nolibm.
98
99         trunc-ieee tests: More tests.
100         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
101         (main): Add tests for [MX] shaded specification in POSIX.
102         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
103         (Depends-on): Add isnand-nolibm.
104
105         truncf-ieee tests: More tests.
106         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
107         (main): Add tests for [MX] shaded specification in POSIX.
108         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
109         (Depends-on): Add isnanf-nolibm.
110
111         ceill-ieee tests: More tests.
112         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
113         (main): Add tests for [MX] shaded specification in POSIX.
114         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
115         (Depends-on): Add isnanl-nolibm.
116
117         ceil-ieee tests: More tests.
118         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
119         (main): Add tests for [MX] shaded specification in POSIX.
120         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
121         (Depends-on): Add isnand-nolibm.
122
123         ceilf-ieee tests: More tests.
124         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
125         (main): Add tests for [MX] shaded specification in POSIX.
126         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
127         (Depends-on): Add isnanf-nolibm.
128
129         floorl-ieee tests: More tests.
130         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
131         (main): Add tests for [MX] shaded specification in POSIX.
132         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
133         (Depends-on): Add isnanl-nolibm.
134
135         floor-ieee tests: More tests.
136         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
137         (main): Add tests for [MX] shaded specification in POSIX.
138         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
139         (Depends-on): Add isnand-nolibm.
140
141         floorf-ieee tests: More tests.
142         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
143         (main): Add tests for [MX] shaded specification in POSIX.
144         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
145         (Depends-on): Add isnanf-nolibm.
146
147 2012-02-26  Bruno Haible  <bruno@clisp.org>
148
149         fpieee: More comments.
150         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
151
152 2012-02-25  Bruno Haible  <bruno@clisp.org>
153
154         Tests for module 'log10l'.
155         * modules/log10l-tests: New file.
156         * tests/test-log10l.c: New file.
157         * tests/test-math-c++.cc: Check the declaration of log10l.
158
159         New module 'log10l'.
160         * lib/math.in.h (log10l): New declaration.
161         * lib/log10l.c: New file.
162         * m4/log10l.m4: New file.
163         * modules/log10l: New file.
164         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
165         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
166         HAVE_DECL_LOG10L.
167         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
168         HAVE_DECL_LOG10L.
169         * doc/posix-functions/log10l.texi: Mention the new module.
170
171 2012-02-25  Bruno Haible  <bruno@clisp.org>
172
173         fmodl, remainder*: Avoid wrong results due to rounding errors.
174         * lib/fmodl.c (fmodl): Correct the result if it is not within the
175         expected bounds.
176         * lib/remainderf.c (remainderf): Likewise.
177         * lib/remainder.c (remainder): Likewise.
178         * lib/remainderl.c (remainderl): Likewise.
179
180 2012-02-25  Bruno Haible  <bruno@clisp.org>
181
182         Tests for module 'remainderl'.
183         * modules/remainderl-tests: New file.
184         * tests/test-remainderl.c: New file.
185         * tests/test-math-c++.cc: Check the declaration of remainderl.
186
187         New module 'remainderl'.
188         * lib/math.in.h (remainderl): New declaration.
189         * lib/remainderl.c: New file.
190         * m4/remainderl.m4: New file.
191         * modules/remainderl: New file.
192         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
194         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
195         HAVE_REMAINDERL.
196         * doc/posix-functions/remainderl.texi: Mention the new module.
197
198 2012-02-25  Bruno Haible  <bruno@clisp.org>
199
200         Tests for module 'remainderf'.
201         * modules/remainderf-tests: New file.
202         * tests/test-remainderf.c: New file.
203         * tests/test-math-c++.cc: Check the declaration of remainderf.
204
205         New module 'remainderf'.
206         * lib/math.in.h (remainderf): New declaration.
207         * lib/remainderf.c: New file.
208         * m4/remainderf.m4: New file.
209         * modules/remainderf: New file.
210         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
211         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
212         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
213         HAVE_REMAINDERF.
214         * doc/posix-functions/remainderf.texi: Mention the new module.
215
216 2012-02-25  Bruno Haible  <bruno@clisp.org>
217
218         remainder: Support for MSVC.
219         * lib/math.in.h (remainder): New declaration.
220         * lib/remainder.c: New file.
221         * m4/remainder.m4: New file.
222         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
223         (Depends-on): Add math, round, fma.
224         (configure.ac): Use results of gl_FUNC_REMAINDER.
225         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
227         HAVE_DECL_REMAINDER.
228         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
229         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
230         * tests/test-math-c++.cc: Check the declaration of remainder.
231         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
232         problems are fixed.
233
234 2012-02-25  Bruno Haible  <bruno@clisp.org>
235
236         Tests for module 'fmodl'.
237         * modules/fmodl-tests: New file.
238         * tests/test-fmodl.c: New file.
239         * tests/test-math-c++.cc: Check the declaration of fmodl.
240
241         New module 'fmodl'.
242         * lib/math.in.h (fmodl): New declaration.
243         * lib/fmodl.c: New file.
244         * m4/fmodl.m4: New file.
245         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
246         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
247         REPLACE_FMODL.
248         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
249         REPLACE_FMODL.
250         * modules/fmodl: New file.
251         * doc/posix-functions/fmodl.texi: Mention the new module.
252
253 2012-02-25  Bruno Haible  <bruno@clisp.org>
254
255         Tests for module 'modfl'.
256         * modules/modfl-tests: New file.
257         * tests/test-modfl.c: New file.
258         * tests/test-math-c++.cc: Check the declaration of modfl.
259
260         New module 'modfl'.
261         * lib/math.in.h (modfl): New declaration.
262         * lib/modfl.c: New file.
263         * m4/modfl.m4: New file.
264         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
265         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
266         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
267         * modules/modfl: New file.
268         * doc/posix-functions/modfl.texi: Mention the new module.
269
270 2012-02-25  Bruno Haible  <bruno@clisp.org>
271
272         Tests for module 'fabsl'.
273         * modules/fabsl-tests: New file.
274         * tests/test-fabsl.c: New file.
275         * tests/test-math-c++.cc: Check the declaration of fabsl.
276
277         New module 'fabsl'.
278         * lib/math.in.h (fabsl): New declaration.
279         * lib/fabsl.c: New file.
280         * m4/fabsl.m4: New file.
281         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
282         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
283         REPLACE_FABSL.
284         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
285         REPLACE_FABSL.
286         * modules/fabsl: New file.
287         * doc/posix-functions/fabsl.texi: Mention the new module.
288
289 2012-02-25  Bruno Haible  <bruno@clisp.org>
290
291         fabs tests: More tests.
292         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
293         (zero): New variable.
294         (main): Add tests for signed zero.
295         * modules/fabs-tests (Files): Add tests/minus-zero.h.
296
297         fabsf tests: More tests.
298         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
299         (zero): New variable.
300         (main): Add tests for signed zero.
301         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
302
303 2012-02-24  Bruno Haible  <bruno@clisp.org>
304
305         atanl: Provide function definition on MSVC.
306         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
307         function pointer.
308         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
309
310 2012-02-24  Bruno Haible  <bruno@clisp.org>
311
312         acosl: Provide function definition on MSVC.
313         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
314         function pointer.
315         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
316
317 2012-02-24  Bruno Haible  <bruno@clisp.org>
318
319         asinl: Provide function definition on MSVC.
320         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
321         function pointer.
322         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
323
324 2012-02-24  Bruno Haible  <bruno@clisp.org>
325
326         tanl: Provide function definition on MSVC.
327         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
328         function pointer.
329         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
330
331 2012-02-24  Bruno Haible  <bruno@clisp.org>
332
333         cosl: Provide function definition on MSVC.
334         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
335         function pointer.
336         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
337
338 2012-02-24  Bruno Haible  <bruno@clisp.org>
339
340         sinl: Provide function definition on MSVC.
341         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
342         function pointer.
343         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
344
345 2012-02-24  Bruno Haible  <bruno@clisp.org>
346
347         logl: Provide function definition on MSVC.
348         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
349         function pointer.
350         * lib/math.in.h (logl): Undefine if it does not exist as a function.
351
352 2012-02-24  Bruno Haible  <bruno@clisp.org>
353
354         expl: Provide function definition on MSVC.
355         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
356         function pointer.
357         * lib/math.in.h (expl): Undefine if it does not exist as a function.
358
359 2012-02-24  Bruno Haible  <bruno@clisp.org>
360
361         sqrtl: Provide function definition on MSVC.
362         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
363         a function pointer.
364         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
365
366 2012-02-24  Bruno Haible  <bruno@clisp.org>
367
368         ceill: Provide function definition on MSVC.
369         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
370         used as a function pointer.
371         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
372
373 2012-02-24  Bruno Haible  <bruno@clisp.org>
374
375         floorl: Provide function definition on MSVC.
376         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
377         used as a function pointer.
378         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
379
380 2012-02-24  Bruno Haible  <bruno@clisp.org>
381
382         ceilf: Provide function definition on MSVC.
383         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
384         used as a function pointer.
385         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
386
387 2012-02-24  Bruno Haible  <bruno@clisp.org>
388
389         floorf: Provide function definition on MSVC.
390         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
391         used as a function pointer.
392         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
393
394 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
395
396         stdnoreturn: new module
397         This implements a replacement for C11's <stdnoreturn.h>.
398         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
399         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
400         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
401         * tests/test-stdnoreturn.c: New files.
402
403 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
404
405         regex: fix false multibyte matches in some regular expressions
406         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
407         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
408         * lib/regex_internal.c (re_string_skip_chars):
409         Fix miscomputation of remain_len that may cause incomplete
410         multi-byte character and false match.
411
412 2012-02-24  Jim Meyering  <meyering@redhat.com>
413
414         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
415         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
416         uses with "==" *before* the call, e.g., 0 == strcmp (...)
417         Remove now-unnecessary str''cmp obfuscation.
418         Suggested by Akim Demaille.
419
420 2012-02-24  Bruno Haible  <bruno@clisp.org>
421
422         streq: Rename macro.
423         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
424         * NEWS: Mention the change.
425         * lib/mbrtowc.c (mbrtowc): Update.
426         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
427         * lib/wcwidth.c (wcwidth): Update.
428         Suggested by Akim Demaille and Jim Meyering.
429
430 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
431
432         regex: fix typo in definition of MIN
433         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
434         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
435
436 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
437             Bruno Haible  <bruno@clisp.org>
438
439         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
440         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
441         entries into a stack-allocated buffer directly.
442         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
443
444 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
445             Bruno Haible  <bruno@clisp.org>
446
447         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
448
449          - There were several instances of this pattern:
450
451              for (;;) {
452                n = acl (f, GETACLCNT, 0, NULL);
453                [ allocate an array A of size N ]
454                if (acl (f, GETACL, n, a) == n)
455                  break;
456              }
457
458            This loop might never terminate if some other process is constantly
459            manipulating the file's ACL.  The loop should be rewritten to
460            terminate.
461
462          - The acl (... GETACLNT ...) call is merely an optimization; its value
463            is merely a hint as to how big to make the array.  A better
464            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
465            and just guess a reasonably-big size, growing the size and trying
466            again if it's not large enough.  This guarantees termination, and
467            saves a system call.
468
469         * lib/acl-internal.h: Include <limits.h>.
470         (MIN, SIZE_MAX): New macros.
471         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
472         a stack-allocated buffer, and use malloc if it does not fit. Don't
473         use GETACLCNT.
474         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
475
476 2012-02-19  Bruno Haible  <bruno@clisp.org>
477
478         acl: Fix endless loop on Solaris with vxfs.
479         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
480         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
481         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
482         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
483         * tests/test-sameacls.c (main)[Solaris]: Likewise.
484         Reported by Bill Jones in
485         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
486
487 2012-02-19  Bruno Haible  <bruno@clisp.org>
488
489         acl: Fix copy-acl test failure on Solaris 11 2011-11.
490         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
491         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
492         that this function returns 0 in some more cases.
493
494 2012-02-19  Bruno Haible  <bruno@clisp.org>
495
496         acl: Update doc references.
497         * doc/acl-resources.txt: Update links to Solaris documentation.
498
499 2012-02-19  Bruno Haible  <bruno@clisp.org>
500
501         Fix test failure in many locales on Solaris 11.
502         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
503         'tr' arguments.
504         * tests/test-pipe-filter-ii1.c (main): Likewise.
505         * build-aux/bootstrap (check_versions): Run 'tr' command with range
506         expressions in the C locale.
507         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
508         * m4/host-os.m4 (gl_HOST_OS): Likewise.
509
510 2012-02-19  Bruno Haible  <bruno@clisp.org>
511
512         gnulib-tool: Improve usage message.
513         * gnulib-tool (func_usage): Move doc of --help and --version to the
514         section "Operation modes".
515
516 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
517
518         README-release: make it easier to execute commands
519         * top/README-release: break commands out on to separate lines.
520
521 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
522
523         GNUmakefile: simplify detection of unconfigured trees
524         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
525         whether the tree make is being run from is already configured or
526         not.  Related simplifications.
527
528 2012-02-13  Simon Josefsson  <simon@josefsson.org>
529
530         * gnulib-tool (func_usage): Document --help and --version.
531
532 2012-02-11  Jim Meyering  <meyering@redhat.com>
533
534         bootstrap: don't exit 0 upon gnulib-tool failure
535         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
536         its exit status, not 0.
537
538 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
539
540         README-release: various improvements
541         * top/README-release: Give a command to push changes for the
542         release.  Add "distcheck" to list of other pre-release checks.
543         Fix instance of "make stable" which should be "make TYPE".
544
545 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
546
547         maint: replace FSF snail-mail addresses with URLs
548         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
549         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
550         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
551         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
552         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
553         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
554         * lib/check-version.c, lib/check-version.h, lib/config.charset:
555         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
556         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
557         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
558         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
559         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
560         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
561         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
562         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
563         * lib/glthread/thread.c, lib/glthread/thread.h:
564         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
565         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
566         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
567         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
568         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
569         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
570         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
571         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
572         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
573         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
574         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
575         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
576         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
577         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
578         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
579         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
580         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
581         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
582         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
583         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
584         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
585         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
586         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
587         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
588         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
589         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
590         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
591         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
592         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
593         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
594         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
595         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
596         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
597         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
598         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
599         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
600         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
601         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
602         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
603         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
604         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
605         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
606         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
607         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
608         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
609         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
610         * tests/test-poll.c, tests/test-quotearg-simple.c:
611         * tests/test-quotearg.c, tests/test-quotearg.h:
612         * tests/test-round-ieee.c, tests/test-round1.c:
613         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
614         * tests/test-roundl-ieee.c, tests/test-roundl.c:
615         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
616         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
617         * tests/test-strerror.c, tests/test-strerror_r.c:
618         * tests/test-strsignal.c, tests/test-strverscmp.c:
619         * tests/test-xmemdup0.c:
620         Replace FSF snail mail addresses with URLs, as per GNU coding
621         standards.  See glibc bug
622         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
623
624 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
625
626         README-release: capitalize a word and split a line
627         * top/README-release: Fix punctuation and spacing.
628
629 2012-02-08  Akim Demaille  <demaille@gostai.com>
630
631         fatal-signal: use C prototypes (with explicit void).
632         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
633         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
634
635 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
636
637         regex: spelling fix
638         * lib/regexec.c: spelling fix
639
640         regex: rely on stdint.h for SIZE_MAX
641         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
642
643 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
644
645         regex: merge glibc changes
646
647         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
648         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
649         (init_word_char): Work even if bitset words are not exactly 32 or
650         64 bits wide.  Don't assume there are no padding bits.
651         * lib/regex.c [_LIBC]: Do not include <config.h>.
652         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
653         and -Wtype-limits.
654         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
655         needless disagreement with glibc.  All uses changed.  Define it to
656         1 only if _GNU_SOURCE, to match glibc.
657         (_REG_RM_NAME): Remove; no longer needed, since the names in
658         question are now all protected by __USE_GNU.
659         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
660         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
661         * lib/regex_internal.h (MIN): New macro.
662
663         2012-01-03 Ulrich Drepper <drepper@gmail.com>
664         * lib/regcomp.c (init_word_char): Optimize regex a bit.
665
666         2011-12-30 Jakub Jelinek <jakub@redhat.com>
667         * lib/regex_internal.c (re_string_fetch_byte_case):
668         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
669         is miscompiled, and it turns out it is because of an incorrect
670         attribute on re_string_fetch_byte_case.  Unlike
671         re_string_peek_byte_case, this one is really not pure, it modifies
672         memory (increments pstr->cur_idx), and with the pure attribute GCC
673         assumed it doesn't and it cached the presumed value of
674         regexp->cur_idx in a variable across the
675          for (;; ++i)
676            {
677              if (i >= BRACKET_NAME_BUF_SIZE)
678                return REG_EBRACK;
679              if (token->type == OP_OPEN_CHAR_CLASS)
680                ch = re_string_fetch_byte_case (regexp);
681              else
682                ch = re_string_fetch_byte (regexp);
683              if (re_string_eoi(regexp))
684                return REG_EBRACK;
685              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
686                break;
687              elem->opr.name[i] = ch;
688            }
689
690         2011-11-29 Andreas Schwab <schwab@redhat.com>
691         * lib/regcomp.c (build_equiv_class):
692         Fix access after end of search string in regex matcher.
693
694         2011-11-12 Ulrich Drepper <drepper@redhat.com>
695         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
696
697         2011-10-12 Ulrich Drepper <drepper@redhat.com>
698         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
699
700         2011-10-11 Ulrich Drepper <drepper@redhat.com>
701         * lib/regcomp.c (parse_branch, parse_sub_exp):
702         More regex memory leak fixes and tests.
703         (parse_sub_exp, parse_bracket_exp):
704         Fix memory leak for some invalid regular expressions.
705
706         2011-05-28 Ulrich Drepper <drepper@gmail.com>
707         * lib/regex_internal.c, lib/regexec.c:
708         Fix unnecessary overallocation due to incomplete character.  When
709         incomplete characters are found at the end of a string the code
710         ran amok and allocated lots of memory.  Stricter limits are now in
711         place.
712
713         2011-05-20 Reuben Thomas <rrt@sc3d.org>
714         * lib/regex.h: Update documentation.
715
716         2011-05-16 Aharon Robbins <arnold@skeeve.com>
717         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
718
719         2010-05-05 Andreas Schwab <schwab@redhat.com>
720         * lib/regexec.c (find_collation_sequence_value):
721         Fix lookup of collation sequence value during regexp matching.
722
723         2010-01-22 Ulrich Drepper <drepper@redhat.com>
724         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
725
726         2008-01-16 Ulrich Drepper <drepper@redhat.com>
727         * lib/regex.h: Cleanup namespace.
728
729         2007-11-26 Ulrich Drepper <drepper@redhat.com>
730         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
731
732         2007-08-26 Ulrich Drepper <drepper@redhat.com>
733         * lib/regex_internal.h: Prevent some declarations and definitions
734         to be seen when used in tests.
735
736         2005-05-06 Ulrich Drepper <drepper@redhat.com>
737         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
738         __libc_lock_* macros if not _LIBC.
739         (struct re_dfa_t): Add lock.
740
741 2012-02-07  Eric Blake  <eblake@redhat.com>
742
743         maint.mk: also prohibit lower-case @var@
744         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
745         lower case, like @top_srcdir@.
746
747 2012-02-04  Eric Blake  <eblake@redhat.com>
748
749         canonicalize: avoid uninitialized memory use
750         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
751         random '/' left in dest.
752         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
753
754 2012-02-04  Bruno Haible  <bruno@clisp.org>
755
756         isatty: Fix test failure of ptsname_r on native Windows.
757         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
758         and don't set errno.
759         (isatty): Test first whether fd is valid. Set errno when returning 0.
760
761 2012-02-04  Bruno Haible  <bruno@clisp.org>
762
763         spawn-pipe tests: Fix a NULL program name in a diagnostic.
764         * tests/test-spawn-pipe-main.c: Include progname.h.
765         (main): Invoke set_program_name.
766         * modules/spawn-pipe-tests (Depends-on): Add progname.
767
768         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
769         * tests/test-nonblocking-socket-main.c: Include progname.h.
770         (main): Invoke set_program_name.
771         * modules/nonblocking-socket-tests (Depends-on): Add progname.
772
773         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
774         * tests/test-nonblocking-pipe-main.c: Include progname.h.
775         (main): Invoke set_program_name.
776         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
777
778 2012-02-04  Eric Blake  <eblake@redhat.com>
779
780         canonicalize-lgpl: fix // handling
781         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
782
783         canonicalize: fix // handling
784         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
785         /// to //, since only // is special.
786
787 2012-02-04  Bruno Haible  <bruno@clisp.org>
788
789         ioctl: Fix test failure on native Windows.
790         * lib/ioctl.c: Include msvc-nothrow.h.
791         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
792
793 2012-02-04  Bruno Haible  <bruno@clisp.org>
794
795         fsync: Avoid test failure on native Windows.
796         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
797         read-only.
798
799 2012-02-04  Bruno Haible  <bruno@clisp.org>
800
801         sys_select: Avoid syntax error on OpenBSD 5.0.
802         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
803         currently being included, just include the system's <sys/select.h>.
804
805 2012-02-04  Bruno Haible  <bruno@clisp.org>
806
807         sys_select: Avoid syntax error on OpenBSD 5.0.
808         * lib/sys_select.in.h: Include <signal.h> only after the include_next
809         <sys/select.h>, not before.
810         Reported by Jiri B <jirib@devio.us>.
811
812 2012-02-04  Bruno Haible  <bruno@clisp.org>
813
814         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
815         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
816         global variables.
817         * tests/test-get-rusage-data.c (main): Likewise.
818         Reported by Jim Meyering.
819
820 2012-02-04  Bruno Haible  <bruno@clisp.org>
821
822         stdioext: Fix last commit.
823         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
824
825 2012-02-03  Bruno Haible  <bruno@clisp.org>
826
827         stdioext: Add tentative support for Plan9.
828         * lib/stdio-impl.h: Include <errno.h>.
829         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
830         * lib/freadable.c (freadable): Likewise.
831         * lib/fwritable.c (fwritable): Likewise.
832         * lib/fbufmode.c (fbufmode): Likewise.
833         * lib/freading.c (freading): Likewise.
834         * lib/fwriting.c (fwriting): Likewise.
835         * lib/freadptr.c (freadptr): Likewise.
836         * lib/freadseek.c (freadptrinc): Likewise.
837         * lib/freadahead.c (freadahead): Likewise.
838         * lib/fpurge.c (fpurge): Likewise.
839         * lib/fseeko.c (rpl_fseeko): Likewise.
840         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
841         Reported by Jens Staal <staal1978@gmail.com>.
842
843 2012-02-02  Jim Meyering  <meyering@redhat.com>
844
845         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
846         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
847         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
848         not even to try to add the attribute.  Instead, add a pragma to suppress
849         the suggestion/warning.
850
851 2012-01-31  Karl Berry  <karl@gnu.org>
852
853         setstate doc: typo.
854         * doc/posix-functions/setstate.texi (setstate): { not (.
855
856 2012-01-31  Bruno Haible  <bruno@clisp.org>
857
858         popen: Make more robust on Windows.
859         * lib/popen.c: On native Windows, use the _popen based code even if
860         HAVE_POPEN is set.
861         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
862         environment variable on native Windows.
863
864 2012-01-30  Bruno Haible  <bruno@clisp.org>
865
866         pclose: Fix typo.
867         * lib/stdio.in.h (pclose): Fix typo in warning message.
868
869 2012-01-30  Bruno Haible  <bruno@clisp.org>
870
871         doc about getlogin_r, setstate.
872         * doc/posix-functions/getlogin_r.texi: List the incompatible
873         declaration problem under "not fixed by gnulib".
874         * doc/posix-functions/setstate.texi: Mention incompatible declaration
875         problem on Solaris 11 and other platforms.
876
877 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
878             Bruno Haible  <bruno@clisp.org>
879
880         poll tests: Make test more robust.
881         * tests/test-poll.c: Include macros.h.
882         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
883         return value of various I/O operations.
884         * modules/poll-tests (Files): Add tests/macros.h.
885
886 2012-01-30  Bruno Haible  <bruno@clisp.org>
887
888         sys_stat: Fix support for mingw64 and MSVC.
889         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
890         header files already do it.
891         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
892         stat itself.
893         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
894
895 2012-01-30  Bruno Haible  <bruno@clisp.org>
896
897         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
899         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
900
901 2012-01-29  Bruno Haible  <bruno@clisp.org>
902
903         quotearg: Fix test failure on MacOS X 10.5.
904         * tests/test-quotearg-simple.c: Include localcharset.h.
905         (main): If the locale encoding is not ASCII, bypass the tests of
906         locale_quoting_style and clocale_quoting_style.
907         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
908
909 2012-01-29  Jim Meyering  <meyering@redhat.com>
910
911         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
912         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
913         detect uses of canonicalize_file_name.
914
915 2012-01-28  Bruno Haible  <bruno@clisp.org>
916
917         test-framework-sh: Fix test failure with AIX 7.1 diff.
918         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
919         in column 1, like 'diff -c' does.
920         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
921         whether 'diff -u' is used. Instead, test whether the output contains
922         some '@' character.
923
924 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
925
926         strtoimax: eliminate need for stdint.h, inttypes.h checks
927         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
928         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
929         the prerequisites for a recently-introduced strtoimax test.
930         I guess this might cause strtoimax to be replaced when not
931         strictly necessary on older hosts, but this shouldn't introduce
932         any bugs and it should make Emacs 'configure' faster on typical
933         modern hosts.  Problem discovered when importing the latest gnulib
934         to an Emacs test version.
935         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
936
937 2012-01-28  Bruno Haible  <bruno@clisp.org>
938
939         sys_time: Override 'struct timeval' on some native Windows platforms.
940         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
941         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
942         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
943         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
944         needs to be overridden.
945         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
946         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
947         * tests/test-sys_select.c: Check that the tv_sec member has the same
948         size as a 'time_t'.
949         * tests/test-sys_time.c: Likewise.
950         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
951         is set, set also REPLACE_GETTIMEOFDAY.
952         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
953         convert the resulting 'struct timeval' before returning.
954         * lib/select.c: Include <sys/time.h>.
955         (select, timeval): Undefine at the right place.
956         * modules/select (Depends-on): Add sys_time.
957         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
958         some Windows platforms.
959         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
960
961 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
962
963         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
964         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
965         an integer.
966         * lib/fcntl.c (dupfd): Likewise.
967         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
968
969 2012-01-28  Bruno Haible  <bruno@clisp.org>
970
971         fcntl: Avoid compilation error on native Windows.
972         * modules/fcntl (Depends-on): Add 'close'.
973
974 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
975
976         select, poll, isatty: Avoid warnings on x86_64 mingw64.
977         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
978         pointer to an integer.
979         * lib/poll.c (IsConsoleHandle): Likewise.
980         * lib/isatty.c (IsConsoleHandle): Likewise.
981
982 2012-01-28  Jim Meyering  <meyering@redhat.com>
983
984         doc: clarify README-release
985         * top/README-release: Clarify: you should make a point to have
986         the latest stable versions of build tools in your PATH, and the
987         reference to buildreq is solely for its list of tool names, not
988         for its minimal-functional version numbers.
989         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
990
991         maint.mk: use more readable (yet functionally equivalent) quoting
992         It is common to quote a single quote in a single quoted string like
993         this:  '...'\''...'.  Unless you know the idiom, that looks like
994         gibberish, so prefer to double-quote the string when possible.
995         Then you can use a more readable, lone single quote: "...'..."
996         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
997         "don't" is more readable than the equivalent 'don'\''t'.
998         (sc_cast_of_x_alloc_return_value): Likewise.
999         (sc_cast_of_alloca_return_value): Likewise.
1000         (sc_makefile_path_separator_check): Similar: use ":" in '...',
1001         rather than '\'':'\''.
1002
1003 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1004
1005         stdalign: relax _Alignof and tighten _Alignas test
1006         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
1007         as it was too strict: alignof must divide offsetof, but it need
1008         not equal offsetof.  Inspired by Joseph S. Myers's comment
1009         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
1010         Conversely, tighten the _Alignas test a bit, as the resulting
1011         alignment must be exactly 8.
1012
1013 2012-01-27  Bruno Haible  <bruno@clisp.org>
1014
1015         stdalign: Document the last change.
1016         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
1017
1018 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1019
1020         stdalign: check that alignof and offsetof are consistent
1021         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
1022         Problem reported for gnulib by Richard W.M. Jones in
1023         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
1024
1025 2012-01-27  Jim Meyering  <meyering@redhat.com>
1026
1027         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
1028         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
1029         convert a sequence with gaps to the minimal containing range.
1030         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
1031         * tests/test-update-copyright.sh: Test for this.
1032         The FSF confirmed it is ok to do this, assuming there is at
1033         least one significant change per year in the affected range:
1034         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
1035
1036 2012-01-26  Bruno Haible  <bruno@clisp.org>
1037
1038         pipe2: refine doc about thread-safety
1039         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
1040         multithread-safety problem.
1041         * doc/glibc-functions/accept4.texi: Likewise.
1042
1043 2012-01-26  Bruno Haible  <bruno@clisp.org>
1044
1045         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
1046         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
1047         In the test program, include <fcntl.h>, for O_RDONLY.
1048
1049 2012-01-26  Eric Blake  <eblake@redhat.com>
1050
1051         pipe2: document lack of thread-safety in replacement
1052         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
1053         issue in replacement.
1054         * doc/glibc-functions/accept4.texi (accept4): Likewise.
1055         Based on a report by Eric Wong.
1056
1057 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1058             Bruno Haible  <bruno@clisp.org>
1059
1060         malloca: Avoid warnings on x86_64 mingw64.
1061         * lib/malloca.c: Include <stdint.h>.
1062         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
1063         * modules/malloca (Depends-on): Add stdint.
1064         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
1065
1066 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1067
1068         obstack: remove __STDC__ conditionals
1069         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
1070         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
1071         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
1072         m4/include_next.m4 as the only gnulib-maintained places that still
1073         refer to __STDC__.
1074
1075 2012-01-24  Bruno Haible  <bruno@clisp.org>
1076
1077         havelib: Modern quoting.
1078         * build-aux/config.rpath: Quote 'like this', not `like this', as per
1079         the recent change to the GNU coding standards.
1080
1081 2012-01-24  Bruno Haible  <bruno@clisp.org>
1082
1083         stdint: Improve support for Android.
1084         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
1085         Reported by Simon Josefsson <simon@josefsson.org>.
1086
1087 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1088
1089         doc: omit trailing empty lines from INSTALL etc.
1090         * doc/Makefile (INSTALL): Omit trailing empty lines.
1091         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
1092         omit trailing empty lines.  This simplifies the build procedure.
1093
1094 2012-01-23  Jim Meyering  <meyering@redhat.com>
1095
1096         tests: avoid spurious warnings about gl_sockets_startup
1097         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
1098         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
1099         reporting a "statement with no effect".
1100         * tests/test-accept.c (main): Mark as "(void)".
1101         * tests/test-accept4.c (main): Likewise.
1102         * tests/test-bind.c (main): Likewise.
1103         * tests/test-connect.c (main): Likewise.
1104         * tests/test-getpeername.c (main): Likewise.
1105         * tests/test-getsockname.c (main): Likewise.
1106         * tests/test-getsockopt.c (main): Likewise.
1107         * tests/test-listen.c (main): Likewise.
1108         * tests/test-recv.c (main): Likewise.
1109         * tests/test-recvfrom.c (main): Likewise.
1110         * tests/test-send.c (main): Likewise.
1111         * tests/test-sendto.c (main): Likewise.
1112         * tests/test-setsockopt.c (main): Likewise.
1113         * tests/test-shutdown.c (main): Likewise.
1114
1115 2012-01-21  Bruno Haible  <bruno@clisp.org>
1116
1117         locale-fr.m4: Fix for Android.
1118         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
1119         failure of the test program on Bionic libc.
1120
1121 2012-01-21  Jim Meyering  <meyering@redhat.com>
1122
1123         bootstrap: fail when bootstrap_post_import_hook fails
1124         Otherwise, it's far too easy to miss diagnostics emitted
1125         between gnulib-tool's output and that of running configure.
1126         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
1127
1128 2012-01-17  Jim Meyering  <meyering@redhat.com>
1129
1130         maint: enable sc_trailing_blank
1131         * build-aux/pmccabe.css: Remove trailing blanks.
1132         * doc/acl-cygwin.txt: Likewise.
1133         * doc/gnu-oids.texi: Likewise
1134         * cfg.mk: Enable sc_trailing_blank.
1135         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
1136
1137 2012-01-17  Jim Meyering  <meyering@redhat.com>
1138
1139         maint: enable sc_prohibit_openat_without_use
1140         * cfg.mk: Enable sc_prohibit_openat_without_use.
1141         Exempt lib/selinux-at.c.
1142
1143 2012-01-17  Jim Meyering  <meyering@redhat.com>
1144
1145         maint: enable sc_prohibit_cloexec_without_use
1146         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
1147         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
1148
1149 2012-01-17  Jim Meyering  <meyering@redhat.com>
1150
1151         maint: enable sc_prohibit_intprops_without_use
1152         * cfg.mk: Enable sc_prohibit_intprops_without_use
1153         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
1154
1155 2012-01-17  Jim Meyering  <meyering@redhat.com>
1156
1157         maint: enable sc_prohibit_hash_pjw_without_use
1158         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
1159         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
1160         to match any use of \<hash_pjw\>, i.e., not necessarily with a
1161         following " (".
1162
1163 2012-01-17  Jim Meyering  <meyering@redhat.com>
1164
1165         maint: enable double-word-prohibiting rule
1166         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
1167         Exempt three files.
1168
1169 2012-01-17  Jim Meyering  <meyering@redhat.com>
1170
1171         maint: remove empty lines at EOF, but excluding modules/*
1172         Apply syntax rules at home as well as abroad.  Most changes
1173         were induced by running this:
1174           make srcdir=. _build-aux=build-aux -f top/maint.mk \
1175             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
1176             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
1177         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
1178         Exempt modules/* and two binary files.
1179         Also exempt doc/INSTALL*, per request from Bruno Haible.
1180         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
1181         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
1182         * doc/Copyright/request-assign.future: Likewise.
1183         * doc/Copyright/request-disclaim.changes: Likewise.
1184         * doc/INSTALL: Likewise.
1185         * doc/INSTALL.ISO: Likewise.
1186         * doc/INSTALL.UTF-8: Likewise.
1187         * doc/acl-cygwin.txt: Likewise.
1188         * doc/acl-resources.txt: Likewise.
1189         * doc/fdl-1.2.texi: Likewise.
1190         * doc/fdl-1.3.texi: Likewise.
1191         * doc/fdl.texi: Likewise.
1192         * lib/argp-pin.c: Likewise.
1193         * lib/round.c: Likewise.
1194         * lib/unicase/u16-totitle.c: Likewise.
1195         * lib/unictype/block_test.c: Likewise.
1196         * lib/uninorm/canonical-decomposition.c: Likewise.
1197         * m4/README: Likewise.
1198         * m4/relocatable-lib.m4: Likewise.
1199         * tests/test-isnand-nolibm.c: Likewise.
1200         * tests/test-isnand.c: Likewise.
1201         * tests/uninorm/NormalizationTest.txt: Likewise.
1202
1203 2012-01-17  Jim Meyering  <meyering@redhat.com>
1204
1205         maint: add framework to run syntax-check rules against gnulib sources
1206         * cfg.mk: New file, to disable all currently-failing tests.
1207         We'll enable them one by one, as they are made to pass.
1208         * Makefile (sc_maint): New rule.
1209
1210 2012-01-21  Bruno Haible  <bruno@clisp.org>
1211
1212         stdint: Add support for Android.
1213         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
1214         include the system's <stdint.h>.
1215         Reported by Simon Josefsson <simon@josefsson.org>.
1216
1217 2012-01-19  Jim Meyering  <meyering@redhat.com>
1218
1219         bootstrap: add bootstrap_post_import_hook
1220         Bison does still need something like the gnulib_mk_hook whose
1221         invocation I had to remove along with slurp in commit 767ccd40.
1222         Technically, we could get along without it, but doing so would
1223         have required living with a warning and a mandatory post-bootstrap
1224         automake rerun.
1225         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
1226         (bootstrap_post_import_hook): New function.
1227         Invoke it after gnulib-tool --import and before autoreconf.
1228
1229 2012-01-18  Jim Meyering  <meyering@redhat.com>
1230
1231         gitlog-to-changelog: don't use "no_"-prefixed variable name
1232         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
1233         to enable both --cluster and --no-cluster.  Change variable name,
1234         s/\$no_cluster/$cluster/, and reverse usage to match.
1235
1236         gitlog-to-changelog: use "||", not "or" in expressions
1237         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
1238         expressions.
1239
1240 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
1241
1242         gitlog-to-changelog: new option --no-cluster
1243         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
1244         clustering of adjacent commit messages.
1245
1246 2012-01-17  Jim Meyering  <meyering@redhat.com>
1247
1248         maint: spell file systems with two words, not one
1249         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
1250         two words, not one.
1251
1252 2012-01-16  Jim Meyering  <meyering@redhat.com>
1253
1254         bootstrap: add a FIXME comment to ensure we eventually remove the hack
1255         * build-aux/bootstrap (gnulib_tool_options): Add comment.
1256
1257 2012-01-16  Eric Blake  <eblake@redhat.com>
1258
1259         bootstrap: cater to autoconf 2.59
1260         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
1261         is not available.
1262
1263         bootstrap: properly check for libtool
1264         * build-aux/bootstrap (libtoolize): Also run libtool when older
1265         usage is detected.
1266
1267 2012-01-15  Bruno Haible  <bruno@clisp.org>
1268
1269         Improve support for MSVC 9.
1270         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
1271         clashes on MSVC.
1272         * lib/fcntl.in.h: Likewise.
1273         * lib/stdlib.in.h: Likewise.
1274         * lib/sys_stat.in.h: Likewise.
1275
1276 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
1277
1278         gnupload: we hold the master copy of this script now
1279         For motivation and more information, see:
1280         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
1281         * build-aux/gnupload: Make it clear in the heading comments that the
1282         master copy of this file is maintained by gnulib.  Since we are at
1283         it, bump its copyright year and ...
1284         ($scriptversion): ... the date in its version.
1285         ($usage): Patches and bug reports should be sent to the gnulib list,
1286         not the automake one.
1287         * config/srclist.txt: Don't try to sync 'gnupload' from automake
1288         anymore.
1289
1290 2012-01-15  Bruno Haible  <bruno@clisp.org>
1291
1292         Fix module 'random'.
1293         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
1294         initstate, setstate are declared.
1295
1296 2012-01-14  Bruno Haible  <bruno@clisp.org>
1297
1298         Tests for module 'random'.
1299         * modules/random-tests: New file.
1300         * tests/test-random.c: New file, based on tests/test-random_r.c.
1301
1302         New module 'random'.
1303         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
1304         declarations.
1305         * lib/random.c: New file, based on glibc/stdlib/random.c.
1306         * m4/random.m4: New file.
1307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
1308         HAVE_RANDOM.
1309         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
1310         * modules/random: New file.
1311         * config/srclist.txt: Add an entry for random.c.
1312         * doc/posix-functions/random.texi: Mention the 'random' module.
1313         * doc/posix-functions/initstate.texi: Likewise.
1314         * doc/posix-functions/setstate.texi: Likewise.
1315         * doc/posix-functions/srandom.texi: Likewise.
1316
1317 2012-01-12  Bruno Haible  <bruno@clisp.org>
1318
1319         random_r: Use common idioms.
1320         * lib/random_r.c: Include <stdlib.h> first.
1321
1322         random_r: Override incompatible API on AIX, OSF/1.
1323         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
1324         Override the system function if REPLACE_RANDOM_R is 1.
1325         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
1326         and OSF/1, set REPLACE_RANDOM_R.
1327         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
1328         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
1329         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
1330         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
1331         * doc/glibc-functions/random_r.texi: Likewise.
1332         * doc/glibc-functions/setstate_r.texi: Likewise.
1333
1334         random_r: Support for MSVC 9.
1335         * lib/random_r.c: Include stdint.h, not inttypes.h.
1336
1337 2012-01-12  Eric Blake  <eblake@redhat.com>
1338
1339         inet_ntop: guard extra work by IF_LINT
1340         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
1341         better code generation when not checking for warnings.
1342         Suggested by Paul Eggert and Jim Meyering.
1343
1344         strptime: fix regression on mingw
1345         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
1346         Fix regression.  Reported by Bruno Haible.
1347
1348 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
1349             Bruno Haible  <bruno@clisp.org>
1350
1351         copy-file: add error-code-returning variant.
1352         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
1353         (qcopy_file_preserving): New declaration.
1354         * lib/copy-file.c (qcopy_file_preserving): Renamed from
1355         copy_file_preserving. Change return type to 'int'. Don't emit an error
1356         message here.
1357         (copy_file_preserving): New function.
1358         * tests/test-copy-file.c: Include <stdlib.h>.
1359         (main): Test qcopy_file_preserving if the environment variable
1360         NO_STDERR_OUTPUT is set.
1361         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
1362         with NO_STDERR_OUTPUT
1363         * tests/test-copy-file-2.sh: Likewise.
1364
1365 2012-01-10  Bruno Haible  <bruno@clisp.org>
1366
1367         copy-file: Use 'quote' module consistently.
1368         * lib/copy-file.c (copy_file_preserving): Use quote().
1369
1370         copy-file: Refactor.
1371         * lib/copy-file.c: Include quote.h.
1372         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
1373         message here.
1374         * modules/copy-file (Depends-on): Add quote.
1375
1376         acl: Export qcopy_acl.
1377         * lib/acl.h (qcopy_acl): New declaration.
1378         * lib/copy-acl.c (qcopy_acl): Make non-static.
1379
1380         acl: Rename a local variable.
1381         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
1382
1383         acl: Align return values of copy_acl and qcopy_acl.
1384         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
1385         maybe < -1.
1386
1387 2012-01-11  Eric Blake  <eblake@redhat.com>
1388
1389         strptime: silence gcc warnings
1390         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
1391         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
1392         Reported by Daniel P. Berrange.
1393
1394         inet_ntop: silence gcc warning
1395         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
1396         Reported by Daniel P. Berrange.
1397
1398 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
1399
1400         getloadavg test: skip the test on GNU/Linux without /proc mounted
1401         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
1402         file.  When /proc is not mounted, it always fails with ENOENT.
1403         * tests/test-getloadavg.c (main): Treat ENOENT return code from
1404         getloadavg(3) the same way as ENOSYS and ENOTSUP.
1405
1406 2012-01-10  Bruno Haible  <bruno@clisp.org>
1407
1408         regex: Avoid link error on MSVC 9.
1409         * modules/regex (Depends-on): Add wctype.
1410
1411 2012-01-10  Bruno Haible  <bruno@clisp.org>
1412
1413         doc: Mention --with-tests option.
1414         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
1415         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
1416         --with-tests.
1417         Reported by Reuben Thomas.
1418
1419 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
1420
1421         users.txt: order package names lexicographically.
1422         * users.txt: Order package names lexicographically.
1423
1424 2012-01-10  Jim Meyering  <meyering@redhat.com>
1425
1426         maint.mk: fix description in comment
1427         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
1428
1429         ignore-value: remove deprecated ignore_ptr function
1430         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
1431         * NEWS: Note this.
1432
1433 2012-01-09  Jim Meyering  <meyering@redhat.com>
1434
1435         test-init.sh: avoid a subshell
1436         * tests/test-init.sh: Remove protective subshell.
1437         Suggested by Bernhard Voelker.  While a subshell is normally
1438         required to protect against older shells (Solaris, FreeBSD) that
1439         warn about a missing program before performing redirection, the
1440         shell-selection tests performed by init.sh probably exclude any
1441         offending shell.
1442
1443 2012-01-08  Bruno Haible  <bruno@clisp.org>
1444
1445         setlocale tests: Avoid test failure on Solaris 11 2011-11.
1446         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
1447         variable.
1448
1449 2012-01-08  Bruno Haible  <bruno@clisp.org>
1450
1451         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
1452         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1453         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1454         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
1455         macro.
1456         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
1457         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1458         * lib/spawn_faction_addopen.c: Add workaround implementation if
1459         HAVE_WORKING_POSIX_SPAWN.
1460         * modules/spawn (Makefile): Substitute
1461         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1462         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
1463         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
1464         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1465         (Depends-on): Update conditions.
1466         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1467         the Solaris 11 bug.
1468
1469 2012-01-08  Bruno Haible  <bruno@clisp.org>
1470
1471         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
1472         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1473         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1474         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
1475         macro.
1476         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
1477         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1478         * lib/spawn_faction_adddup2.c: Add workaround implementation if
1479         HAVE_WORKING_POSIX_SPAWN.
1480         * modules/spawn (Makefile): Substitute
1481         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1482         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
1483         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
1484         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1485         (Depends-on): Update conditions.
1486         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1487         the Solaris 11 bug.
1488
1489 2012-01-08  Bruno Haible  <bruno@clisp.org>
1490
1491         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
1492         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1493         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1494         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
1495         HAVE_WORKING_POSIX_SPAWN.
1496         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
1497         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
1498         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1499         * lib/spawn_faction_addclose.c: Add workaround implementation if
1500         HAVE_WORKING_POSIX_SPAWN.
1501         * modules/spawn (Makefile): Substitute
1502         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1503         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
1504         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
1505         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1506         (Depends-on): Update conditions.
1507         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1508         the Solaris 11 bug.
1509
1510 2012-01-08  Bruno Haible  <bruno@clisp.org>
1511
1512         doc: Update for Solaris 11 2011-11.
1513         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
1514         * m4/printf.m4: Update comments.
1515
1516 2012-01-08  Bruno Haible  <bruno@clisp.org>
1517
1518         mktime: Avoid compilation error on Solaris 11.
1519         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
1520
1521 2012-01-08  Bruno Haible  <bruno@clisp.org>
1522
1523         doc: Small fix.
1524         * doc/posix-headers/nl_types.texi: Correct platforms list.
1525
1526 2012-01-08  Simon Josefsson  <simon@josefsson.org>
1527
1528         Add lgpl-3.0 module.
1529         * MODULES.html.sh (Support for building documentation): Add
1530         lgpl-3.0.
1531         * modules/lgpl-3.0: New file.
1532
1533 2012-01-08  Jim Meyering  <meyering@redhat.com>
1534
1535         select.c: indent with spaces, not TABs
1536         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
1537
1538 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1539
1540         quotearg: do not use grave accent for left quote
1541         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
1542         locale_quoting_style.
1543         (quotearg_buffer_restyled): Fix example.
1544         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
1545
1546 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1547
1548         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
1549         Most programs do not have translation catalogs for English and much
1550         less separate catalogs for British and American English.  Drop the
1551         suggestion to translators about these two, and provide it
1552         automatically for Unicode locales.  Like most programs, even those
1553         using American English, we use single quotation marks.  This conflicts
1554         with the American typographic convention, but works better when you
1555         cite the entire error message within double quotes.  It also tries not
1556         to clash with established practice and with what non-gnulib programs
1557         will usually do.
1558         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
1559         using an UTF-8 or GB-18030 locale.  The list of other locales with
1560         quotes was provided by Bruno Haible.
1561         (quotearg_buffer_restyled): Adjust instructions to translators.
1562         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
1563         text, since this would be wrong when using Unicode.
1564         * modules/quotearg: Depend on c-strcaseeq.
1565
1566 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1567
1568         quotearg: fix Wikipedia link
1569         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
1570
1571 2012-01-07  Simon Josefsson  <simon@josefsson.org>
1572
1573         Fix for mingw with MSVC9.
1574         * m4/ld-version-script.m4: Check that compiler rejects version
1575         scripts with syntax errors.  Reported by Bruno Haible
1576         <bruno@clisp.org>.
1577
1578 2012-01-06  Bruno Haible  <bruno@clisp.org>
1579
1580         Talk about "native Windows API", not "Woe32".
1581         * lib/accept4.c: Update comments to mention native Windows.
1582         * lib/execute.c: Likewise.
1583         * lib/fatal-signal.c: Likewise.
1584         * lib/localcharset.c: Likewise.
1585         * lib/nanosleep.c: Likewise.
1586         * lib/nl_langinfo.c: Likewise.
1587         * lib/pclose.c: Likewise.
1588         * lib/pipe-filter-gi.c: Likewise.
1589         * lib/pipe-filter-ii.c: Likewise.
1590         * lib/pipe.c: Likewise.
1591         * lib/pipe2.c: Likewise.
1592         * lib/popen.c: Likewise.
1593         * lib/progreloc.c: Likewise.
1594         * lib/relocatable.c: Likewise.
1595         * lib/sigaction.c: Likewise.
1596         * lib/sigprocmask.c: Likewise.
1597         * lib/spawn-pipe.h: Likewise.
1598         * lib/spawn-pipe.c: Likewise.
1599         * lib/spawni.c: Likewise.
1600         * lib/stat-time.h: Likewise.
1601         * lib/w32spawn.h: Likewise.
1602         * tests/test-isatty.c: Likewise.
1603         * lib/config.charset: More comments.
1604         * doc/gnulib-intro.texi: Mention native Windows.
1605         * doc/posix-functions/_Exit_C99.texi: Likewise.
1606         * doc/posix-headers/fcntl.texi: Likewise.
1607
1608 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
1609
1610         argp: Avoid crash if translator uses % characters in a translation.
1611         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
1612         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1613
1614 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1615
1616         doc: C11 and C++11 are now official
1617         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
1618         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
1619         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
1620         * modules/stdalign:
1621         Replace references to draft C1X to C11, and to draft C++0X to C++11.
1622
1623 2012-01-06  Bruno Haible  <bruno@clisp.org>
1624
1625         uc-is-grapheme-break tests: Tweak.
1626         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
1627         message.
1628
1629 2012-01-06  Bruno Haible  <bruno@clisp.org>
1630
1631         test-init.sh: correct the test for diff -u
1632         * tests/test-init.sh: Also redirect stdout to /dev/null.
1633
1634 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1635
1636         Use ', not `, for quoting output.
1637         * build-aux/announce-gen (usage, sizes, print_news_deltas)
1638         (print_changelog_deltas, get_tool_versions, main program):
1639         * build-aux/git-version-gen:
1640         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
1641         * build-aux/move-if-change (help):
1642         * build-aux/useless-if-before-free (usage, main program):
1643         * check-module (parse_module_file, usage)
1644         (find_included_lib_files, check_module):
1645         * lib/argmatch.c (main) [TEST]:
1646         * lib/argp-help.c (_help):
1647         * lib/getopt1.c (main) [TEST]:
1648         * lib/git-merge-changelog.c (usage):
1649         * lib/xstrtol-error.c (xstrtol_error):
1650         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1651         * m4/argz.m4 (gl_FUNC_ARGZ):
1652         * m4/bison.m4 (gl_BISON):
1653         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
1654         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1655         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1656         * m4/fpending.m4 (gl_PREREQ_FPENDING):
1657         * m4/gc-random.m4 (gl_GC_RANDOM):
1658         * m4/intl.m4 (gt_CHECK_DECL):
1659         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
1660         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
1661         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1662         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
1663         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
1664         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
1665         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
1666         * tests/test-dirname.c (main):
1667         * tests/test-getpass.c (main):
1668         * tests/test-iconvme.c (main):
1669         * tests/test-parse-datetime.c (LOG):
1670         * tests/test-xstrtoimax.sh:
1671         * tests/test-xstrtol.sh:
1672         * tests/test-xstrtoll.sh:
1673         * tests/test-xstrtoumax.sh:
1674         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
1675         * top/GNUmakefile (abort-due-to-no-makefile):
1676         Quote 'like this', not `like this', as per the recent change to
1677         the GNU coding standards.
1678
1679 2012-01-05  Bruno Haible  <bruno@clisp.org>
1680
1681         strtoimax: Don't force a replacement on systems where intmax_t is int.
1682         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
1683         'intmax_t' is not larger than 'int'.
1684         Reported by Pádraig Brady <P@draigBrady.com>.
1685
1686 2012-01-05  Bruno Haible  <bruno@clisp.org>
1687
1688         doc: Mention NetBSD bugs.
1689         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
1690         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
1691
1692 2012-01-05  Bruno Haible  <bruno@clisp.org>
1693
1694         strtoumax tests: Enhance tests.
1695         * tests/test-strtoumax.c (main): Add tests for large values.
1696
1697 2012-01-05  Bruno Haible  <bruno@clisp.org>
1698
1699         strtoimax: Work around AIX 5.1 bug.
1700         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
1701         definition.
1702         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
1703         Set HAVE_STRTOIMAX.
1704         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
1705         REPLACE_STRTOIMAX.
1706         * modules/inttypes-incomplete (Makefile.am): Substitute
1707         REPLACE_STRTOIMAX.
1708         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
1709         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
1710         (Depends-on): Update conditions.
1711         * tests/test-strtoimax.c (main): Add tests for large values.
1712         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
1713
1714 2012-01-05  Bruno Haible  <bruno@clisp.org>
1715
1716         inttypes: Modernize.
1717         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
1718         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
1719         (Makefile.am): Update inttypes.h rule.
1720
1721 2012-01-05  Jim Meyering  <meyering@redhat.com>
1722
1723         init.sh: don't waste a subshell just to redirect stderr
1724         * tests/init.sh: In testing for diff -u and diff -c, use a
1725         stderr-redirecting exec inside `...` rather than a subshell.
1726
1727         test-init.sh: avoid failure on HP-UX 11.00
1728         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
1729         resolves to diff -c or cmp.  Reported by Bruno Haible.
1730
1731 2012-01-05  Bruno Haible  <bruno@clisp.org>
1732
1733         Tests for module 'strtoull'.
1734         * modules/strtoull-tests: New file.
1735         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
1736
1737 2012-01-05  Bruno Haible  <bruno@clisp.org>
1738
1739         Tests for module 'strtoll'.
1740         * modules/strtoll-tests: New file.
1741         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
1742
1743 2012-01-05  Bruno Haible  <bruno@clisp.org>
1744
1745         Tests for module 'strtoul'.
1746         * modules/strtoul-tests: New file.
1747         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
1748
1749 2012-01-05  Bruno Haible  <bruno@clisp.org>
1750
1751         Tests for module 'strtol'.
1752         * modules/strtol-tests: New file.
1753         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
1754
1755 2012-01-04  Jim Meyering  <meyering@redhat.com>
1756
1757         test-init.sh: accommodate Solaris 5.10's different diff -u output
1758         * tests/test-init.sh: Also exempt @@ lines from the comparison
1759         of diff output, since Solaris 5.10 and GNU diff formats differ.
1760         Reported by Stefano Lattarini.
1761
1762 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1763
1764         test-posixtm: don't assume signed integer wraparound
1765         * tests/test-posixtm.c (main): Don't assume wraparound semantics
1766         after signed integer overflow.  Inspired by (though it may not
1767         fix) Bruno Haible's bug report in
1768         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
1769
1770         Spell out "Windows 9x" and "Windows XP".
1771         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
1772         "Windows 9x" and "WinXP" with "Windows XP".
1773
1774 2012-01-04  Jim Meyering  <meyering@redhat.com>
1775
1776         test-vc-list-files-cvs.sh: remove obsolete comment
1777         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
1778         double exit.  Now that's all encapsulated via skip_ and Exit.
1779
1780 2012-01-04  Bruno Haible  <bruno@clisp.org>
1781
1782         Talk about "native Windows API", not "Win32".
1783         * lib/classpath.c: Update comments to mention native Windows.
1784         * lib/csharpexec.c: Likewise.
1785         * lib/dup2.c: Likewise.
1786         * lib/error.c: Likewise.
1787         * lib/fcntl.c: Likewise.
1788         * lib/filename.h: Likewise.
1789         * lib/findprog.c: Likewise.
1790         * lib/get-rusage-as.c: Likewise.
1791         * lib/get-rusage-data.c: Likewise.
1792         * lib/getpagesize.c: Likewise.
1793         * lib/javaexec.c: Likewise.
1794         * lib/msvc-inval.c: Likewise.
1795         * lib/msvc-nothrow.c: Likewise.
1796         * lib/nanosleep.c: Likewise.
1797         * lib/nonblocking.c: Likewise.
1798         * lib/printf-parse.c: Likewise.
1799         * lib/setlocale.c: Likewise.
1800         * lib/sigaction.c: Likewise.
1801         * lib/strerror_r.c: Likewise.
1802         * lib/tmpdir.c: Likewise.
1803         * lib/vasnprintf.c: Likewise.
1804         * lib/w32spawn.h: Likewise.
1805         * lib/waitpid.c: Likewise.
1806         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
1807         * m4/locale-ar.m4: Likewise.
1808         * m4/locale-fr.m4: Likewise.
1809         * m4/locale-ja.m4: Likewise.
1810         * m4/locale-tr.m4: Likewise.
1811         * m4/locale-zh.m4: Likewise.
1812         * m4/printf.m4: Likewise.
1813         * tests/test-cloexec.c: Likewise.
1814         * tests/test-copy-acl.sh: Likewise.
1815         * tests/test-copy-file.sh: Likewise.
1816         * tests/test-file-has-acl.sh: Likewise.
1817         * tests/test-set-mode-acl.sh: Likewise.
1818         * tests/test-dup-safer.c: Likewise.
1819         * tests/test-dup2.c: Likewise.
1820         * tests/test-dup3.c: Likewise.
1821         * tests/test-fcntl.c: Likewise.
1822         * tests/test-nonblocking-pipe.h: Likewise.
1823         * tests/test-nonblocking-socket.h: Likewise.
1824         * tests/test-pipe.c: Likewise.
1825         * tests/test-pipe2.c: Likewise.
1826         * tests/test-spawn-pipe-child.c: Likewise.
1827         * doc/acl-resources.txt: Likewise.
1828         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1829         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
1830         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
1831         * lib/localcharset.c: Update comments to mention native Windows.
1832         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1833         * lib/localename.c: Likewise.
1834         * lib/progreloc.c: Likewise.
1835         * lib/relocatable.c: Likewise.
1836         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1837         (windows_compute_revents): Renamed from win32_compute_revents.
1838         (windows_compute_revents_socket): Renamed from
1839         win32_compute_revents_socket.
1840         * lib/select.c: Update comments to mention native Windows.
1841         (windows_poll_handle): Renamed from win32_poll_handle.
1842         * m4/threadlib.m4: Update comments to mention native Windows.
1843         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
1844         --enable-threads=windows instead of --enable-threads=win32. Set
1845         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
1846         * lib/glthread/lock.h: Update comments to mention native Windows.
1847         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
1848         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
1849         USE_WIN32_THREADS.
1850         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
1851         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
1852         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
1853         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
1854         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
1855         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
1856         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
1857         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
1858         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
1859         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
1860         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
1861         * tests/test-tls.c: Likewise.
1862         Rationale:
1863         Microsoft renamed the "Win32 API" to "Windows API", as it is available
1864         on both 32-bit and 64-bit Windows systems.
1865         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
1866         line of distinction is between "native Windows" on one side and Unix/
1867         POSIX systems on the other side. More details in
1868         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
1869         Suggested by Paul Eggert.
1870
1871 2012-01-03  Bruno Haible  <bruno@clisp.org>
1872
1873         isatty: Support for MSVC 9.
1874         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
1875         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
1876         (_isatty_nothrow): New function.
1877         (isatty): Use it instead of _isatty.
1878         (IsConsoleHandle): Add comment, from Paolo Bonzini.
1879         * lib/poll.c (IsConsoleHandle): Likewise.
1880         * lib/select.c (IsConsoleHandle): Likewise.
1881         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
1882         (gl_PREREQ_ISATTY): New macro.
1883         * modules/isatty (Depends-on): Add msvc-inval.
1884         (configure.ac): Invoke gl_PREREQ_ISATTY.
1885
1886 2012-01-03  Jim Meyering  <meyering@redhat.com>
1887
1888         maint.mk: remove temporary transition aid from over 1.5 years ago
1889         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
1890         purpose was to aid in the transition (avoiding silent malfunction)
1891         from that old name to the new _sc_search_regexp.  This shim was
1892         added by commit 219c504b.
1893
1894         init.sh: do not try to accommodate compare arguments starting with "-"
1895         * tests/init.sh (compare_dev_null_): Do not try to accommodate
1896         compare arguments that start with "-".  Besides, we do not worry
1897         about this when invoking diff or cmp; why start now with sed?
1898         Using "--" to separate options from argument would trigger sed
1899         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
1900         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
1901
1902 2012-01-02  Bruno Haible  <bruno@clisp.org>
1903
1904         Enhance tests for module 'isatty'.
1905         * modules/isatty-tests (Depends-on): Add pipe-posix.
1906         * tests/test-isatty.c: Include <fcntl.h>.
1907         (DEV_NULL): New macro.
1908         (main): Test the resut of isatty() also on regular files, pipes, and
1909         /dev/null.
1910
1911         New module 'isatty'.
1912         * lib/unistd.in.h (isatty): New declaration.
1913         * lib/isatty.c: New file, based on an idea of
1914         Bastien Roucariès <roucaries.bastien@gmail.com>.
1915         * m4/isatty.m4: New file.
1916         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
1917         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
1918         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
1919         REPLACE_ISATTY.
1920         * modules/isatty: New file.
1921         * doc/posix-functions/isatty.texi: Mention the new module.
1922         Suggested by Paolo Bonzini.
1923
1924 2012-01-02  Bruno Haible  <bruno@clisp.org>
1925
1926         canonicalize: Tweak 2011-12-29 commit.
1927         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
1928         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
1929
1930 2012-01-02  Jim Meyering  <meyering@redhat.com>
1931
1932         gitlog-to-changelog: describe input syntax in --help output
1933         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
1934
1935         gitlog-to-changelog: fix typo in --help: show backslash before email @
1936         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
1937         in sources, but not in actual output.
1938
1939 2011-12-30  Jim Meyering  <meyering@redhat.com>
1940
1941         gitlog-to-changelog: don't malfunction when name contains %-directive
1942         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
1943         in a name string cause trouble.  E.g., with a user name of "%s",
1944         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
1945
1946 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
1947
1948         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
1949         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
1950         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
1951         the "  (tiny change)" notation that is appended to the standard
1952         ChangeLog "date  name  email" header line.
1953
1954 2012-01-01  Jim Meyering  <meyering@redhat.com>
1955
1956         test-framework-sh: init.sh: fix "make dist" failure
1957         When using gnulib-tool's --with-tests option and any module that
1958         depends on test-framework-sh, "make dist" would fail due to the
1959         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
1960         in the gltests directory, and not in the gllib/ directory.
1961         One way to work around that is to move the EXTRA_DIST += init.sh
1962         from the primary module to the -tests one:
1963         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
1964         * modules/test-framework-sh (Makefile.am): ...not here.
1965         Reported by Tom G. Christensen in
1966         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
1967
1968         version-etc: update copyright year reported by --version
1969         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
1970
1971 2011-12-31  Pádraig Brady  <P@draigBrady.com>
1972
1973         canonicalize: only stat() if required
1974         * lib/canonicalize.c (canonicalize_filename_mode):
1975         Avoid calling l?stat() when both CAN_MISSING,
1976         and CAN_NOLINKS are set, as we neither need
1977         to resolve symlinks or test component existence.
1978
1979 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1980
1981         doc: cover st_ino issues once; add OpenVMS etc.
1982         * doc/posix-functions/stat.texi (stat):
1983         * doc/posix-functions/lstat.texi (lstat):
1984         * doc/posix-functions/fstatat.texi (fstatat):
1985         * doc/posix-functions/fstat.texi (fstat):
1986         Move general 'struct stat' stuff to sys_stat.texi,
1987         leaving behind a pointer.
1988         * doc/posix-headers/sys_stat.texi (sys/stat.h):
1989         Merge duplicate info about 'struct stat' problems into here.
1990         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
1991         and suggest partial workarounds.
1992
1993         same-inode: port to OpenVMS
1994         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
1995         three st_ino values.
1996
1997 2011-12-30  Pádraig Brady  <P@draigBrady.com>
1998
1999         canonicalize: fix references to stat() and lstat()
2000         * lib/canonicalize.c (canonicalize_filename_mode):
2001         Ensure references always resolve to a replacement
2002         function if required (even via a macro).
2003
2004 2011-12-30  Jim Meyering  <meyering@redhat.com>
2005
2006         gitlog-to-changelog: remove a little duplication
2007         * build-aux/gitlog-to-changelog (main): Grep @lines once,
2008         rather than twice.
2009
2010 2011-12-29  Pádraig Brady  <P@draigBrady.com>
2011
2012         canonicalize: add support for not resolving symlinks
2013         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
2014         indicate we don't want to follow symlinks.  Also
2015         provide CAN_MODE_MASK to aid setting these existing
2016         mutually exclusive values.
2017         * lib/canonicalize.c (canonicalize_filename_mode):
2018         Extract the flags from can_mode parameter, which
2019         are currently just used to select between stat()
2020         and lstat().  Also ensure that mutually exclusive
2021         values are flagged immediately as invalid.
2022         * tests/test-canonicalize.c: Verify symlinks are
2023         not followed, and that invalid flag combinations
2024         are diagnosed.
2025
2026 2011-12-25  Jim Meyering  <meyering@redhat.com>
2027
2028         gitlog-to-changelog: do not clump multi-paragraph entries
2029         Identical header lines (date,name,email+coauthors) are suppressed,
2030         thus putting all entries with those same characteristics under
2031         a single header.  However, when a log entry consists of two or
2032         more paragraphs, it may not be clear where it starts and ends.
2033         This change makes it so that such an entry is always separated
2034         from others by a header line, even when that header would
2035         otherwise be suppressed.
2036         * build-aux/gitlog-to-changelog: Implement the above.
2037         Inspired by a related request from Stefano Lattarini in
2038         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
2039
2040 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2041
2042         announce-gen: fix `cmd' typo in diagnostic
2043         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
2044         diagnostic: a missing '$' meant that the command was not output.
2045
2046 2011-12-23  Jim Meyering  <meyering@redhat.com>
2047
2048         test-framework-sh: distribute init.sh
2049         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
2050         Otherwise, "make -C gnulib-tests check" (at least in grep) would
2051         fail due to the lack of init.sh.
2052
2053         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
2054         * modules/atexit-tests: Rather than listing tests/init.sh,
2055         now that there's a module for it, simply depend on that new module.
2056         * modules/closein-tests: Likewise.
2057         * modules/exclude-tests: Likewise.
2058         * modules/getcwd-tests: Likewise.
2059         * modules/perror-tests: Likewise.
2060         * modules/pread-tests: Likewise.
2061         * modules/pwrite-tests: Likewise.
2062         * modules/vc-list-files-tests: Likewise.
2063         * modules/verify-tests: Likewise.
2064         * modules/xalloc-die-tests: Likewise.
2065         * modules/xstrtoimax-tests: Likewise.
2066         * modules/xstrtol-tests: Likewise.
2067         * modules/xstrtoll-tests: Likewise.
2068         * modules/xstrtoumax-tests: Likewise.
2069         * modules/yesno-tests: Likewise.
2070
2071 2011-12-22  Jim Meyering  <meyering@redhat.com>
2072
2073         test-framework-sh: add minimal tests of init.sh's compare function
2074         * modules/test-framework-sh-tests: New file.
2075         * tests/test-init.sh: New file.
2076
2077         test-framework-sh: new module
2078         * modules/test-framework-sh: New file.
2079         * MODULES.html.sh (Support for maintaining and releasing projects):
2080         List it.
2081
2082         init.sh: do not emit simulated diff output to stderr
2083         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
2084
2085 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2086
2087         .gitignore: ignore gnulib.dvi and regex.info
2088         * doc/.gitignore:add gnulib.dvi and regex.info
2089
2090 2011-12-22  Jim Meyering  <meyering@redhat.com>
2091
2092         init.sh: correct previous change
2093         * tests/init.sh (compare): My previous change was wrong.
2094         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
2095
2096         init.sh: avoid unwarranted test failure when using "set -e"
2097         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
2098         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
2099         a use like "compare exp out" would get evoke an unconditional failure.
2100
2101 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
2102
2103         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
2104         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
2105         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
2106         autoreconf that did not.
2107         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
2108         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2109
2110 2011-12-17  Jim Meyering  <meyering@redhat.com>
2111
2112         bootstrap: remove some now-unneeded code
2113         This script arose back when gnulib-tool was young.
2114         Since then, it has seen improvements that render much of this
2115         script unnecessary.  In particular, it can now make symlinks
2116         to the files it uses.  Also, I no longer see as much value in
2117         marking files as read-only via comments.
2118         If you relied on the symlink-creation feature of the preceding
2119         version of this script, you can get most of that functionality
2120         by adding the --symlink option to the definition of
2121         gnulib_tool_option_extras in your bootstrap.conf file.
2122         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
2123         Run autopoint and libtoolize *before* gnulib-tool.
2124         After it, run an abbreviated autoreconf, rather than a loop around
2125         all tools.
2126         (slirp, bt_mark_as_generated): Remove functions.
2127
2128 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2129
2130         ftoastr: fix typo
2131         * lib/ftoastr.h: Fix misspelling in comment.
2132
2133 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
2134
2135         * top/README-release: fix punctuation.
2136
2137 2011-12-17  Jim Meyering  <meyering@redhat.com>
2138
2139         bootstrap: correct the recent buildreq change
2140         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
2141         had no effect.
2142         * build-aux/bootstrap (buildreq): Bracket each search term with
2143         "*...*", so that the shell "case" statement works as intended.
2144         Add comments.
2145
2146 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
2147
2148         build: let bootstrap resort to wget when downloading .po files
2149         * build-aux/bootstrap (download_po_files): Fallback to wget when
2150         downloading the .po files via rsync fails.  This is necessary to
2151         bootstrap from behind a strict firewall.
2152
2153 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2154
2155         stdint: don't assume C++11 when compiling with g++
2156         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
2157         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
2158         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
2159         work also in C++ before C++11, as that improperly inhibits
2160         generating a substitute stdint.h for that case.
2161
2162 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2163
2164         alloca: protect comment from gnulib-tool
2165         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
2166         that gnulib-tool doesn't think it's a license, and munge it to
2167         say "GCC version 3".
2168
2169 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
2170
2171         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
2172         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
2173         $(abs_top_builddir) instead of $(top_builddir).
2174
2175 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
2176
2177         strftime-tests: also test nanoseconds
2178         * tests/test-strftime.c (T): Add a test of %N.
2179
2180 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
2181
2182         inttypes, stdint: add C++11 support
2183         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
2184         when including inttypes.h and stdint.h.  Support this change to
2185         the standard.
2186         * doc/posix-headers/inttypes.texi (inttypes.h):
2187         * doc/posix-headers/stdint.texi (stdint.h): Document this.
2188         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
2189         Define if not defined already, for the benefit of pre-C++11 hosts.
2190         Define the standard format macros (e.g., PRId8) always.
2191         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
2192         Likewise, if __cpluspus.  Define the standard constant and limit
2193         macros (e.g., INT8_C, INT8_MAX) always.
2194         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
2195         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
2196         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
2197         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
2198         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
2199         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
2200         Likewise.
2201
2202 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2203
2204         nonblocking tests: Fix test failure on Linux/PPC.
2205         Suggested by Prerna Saxena in
2206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
2207         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
2208         Set to 1100000.
2209
2210 2011-12-12  Jim Meyering  <meyering@redhat.com>
2211
2212         argmatch: don't hard-code `' when listing valid option arguments
2213         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
2214         use the quote function to add quotes.  Use fputs rather than
2215         fprintf for the format string with no format directive.
2216
2217 2011-12-07  Eric Blake  <eblake@redhat.com>
2218
2219         bootstrap: detect tools required by gnulib-tool
2220         * build-aux/bootstrap (buildreq): Provide minimum implicit
2221         dependencies.
2222         * DEPENDENCIES: Mention patch as a prereq.
2223
2224 2011-12-04  Bruno Haible  <bruno@clisp.org>
2225
2226         sethostname: Port to Windows platforms.
2227         * lib/sethostname.c: Provide an alternate implementation for Windows
2228         platforms.
2229         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
2230         (main): Skip the test if sethostname() fails with EPERM. On Windows
2231         platforms, don't check the result of gethostname().
2232
2233 2011-12-04  Bruno Haible  <bruno@clisp.org>
2234             Jim Meyering  <meyering@redhat.com>
2235
2236         tests: Avoid spurious error message on platforms without mktemp program.
2237         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
2238
2239 2011-12-04  Bruno Haible  <bruno@clisp.org>
2240
2241         sethostname: Fix documentation.
2242         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
2243         "not fixed" section.
2244
2245 2011-12-03  Bruno Haible  <bruno@clisp.org>
2246
2247         gnulib-tool: Verify that the License field is present and non-empty.
2248         * gnulib-tool (func_get_license_raw): New function, extracted from
2249         func_get_license.
2250         (func_get_license): Use it. Warn if the module is not a test module and
2251         has no license.
2252         Suggested by Jim Meyering.
2253
2254 2011-12-03  Bruno Haible  <bruno@clisp.org>
2255
2256         sethostname tests: Fix link error on mingw.
2257         * tests/test-sethostname1.c: New file, extracted from
2258         tests/test-sethostname.c.
2259         * tests/test-sethostname2.c: New file, extracted from
2260         tests/test-sethostname.c.
2261         * tests/test-sethostname.c: Remove file.
2262         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
2263         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
2264         (Depends-on): Add gethostname.
2265         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
2266         Link the latter with $(GETHOSTNAME_LIB).
2267
2268         sethostname tests: Fix compilation error on mingw.
2269         * tests/test-sethostname.c: Don't include <sys/types.h>.
2270         (geteuid): Use a dummy value without uid_t.
2271         * modules/sethostname-tests (Depends-on): Remove sys_types.
2272
2273         sethostname tests: Avoid a gcc warning.
2274         * tests/test-sethostname.c (main): Remove an unused variable.
2275
2276         Tweak last commit.
2277         * modules/sethostname-tests (Files): Sort by decreasing importance.
2278         (configure.ac): Check for geteuid.
2279         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
2280         the test when there's nothing to test. Drop an unnecessary cast.
2281         Improve an error message. Verify that the final sethostname() call
2282         succeeds.
2283
2284 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2285
2286         Add a test suite for the sethostname module.
2287         * modules/sethostname-tests: New file.  A test program
2288         for the sethostname module.
2289         * tests/test-sethostname.c: Likewise.
2290
2291 2011-12-03  Bruno Haible  <bruno@clisp.org>
2292
2293         Tweak last commit.
2294         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
2295         Fix preprocessor directives indentation. Fix typos.
2296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
2297         * modules/unistd (Makefile): Likewise.
2298
2299 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2300
2301         Integrate the sethostname module into unistd.
2302         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
2303         into the unistd.h header.
2304         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
2305         preprocessor directives.
2306         * modules/unistd: Setup the Makefile substitutions of the
2307         SETHOSTNAME preprocessor directives.
2308
2309 2011-12-03  Bruno Haible  <bruno@clisp.org>
2310
2311         Tweak last commit.
2312         * lib/sethostname.c: Don't include <string.h>.
2313         (sethostname): No need to copy the argument string to the stack. Don't
2314         call clearerr. Preserve errno when fprintf failed.
2315         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
2316         Don't invoke AC_REPLACE_FUNCS.
2317         * modules/sethostname (Link): Remove empty section.
2318         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
2319         failure problem.
2320
2321 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2322
2323         New module 'sethostname'.
2324         * lib/sethostname.c (sethostname): New file.  Provide sethostname
2325         for systems that lack it.
2326         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
2327         sethostname declaration and function.
2328         * modules/sethostname: New file.  Define the sethostname module.
2329
2330 2011-12-03  Bruno Haible  <bruno@clisp.org>
2331
2332         Tweak last commit.
2333         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
2334
2335 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2336
2337         Split the HOST_NAME_MAX detection into a separate m4 macro.
2338         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
2339         macro so it can be used by the pending sethostname module.
2340
2341 2011-12-03  Bruno Haible  <bruno@clisp.org>
2342
2343         Fix module descriptions syntax.
2344         * modules/argv-iter (License): Fix syntax.
2345         * modules/di-set (License): Likewise.
2346         * modules/ino-map (License): Likewise.
2347         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
2348
2349 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2350
2351         stdalign: port to Clang 3.0
2352         Problem reported by Simon Josefsson in
2353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
2354         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
2355         which has <stdalign.h> but which does not define alignof.
2356         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
2357
2358 2011-12-01  Eric Blake  <eblake@redhat.com>
2359
2360         mktempd: silence dd usage
2361         * build-aux/mktempd (rand_bytes): Silence dd.
2362
2363 2011-11-30  Simon Josefsson  <simon@josefsson.org>
2364
2365         manywarnings: Don't mention gcc version in docstring.
2366         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
2367         Jim Meyering <meyering@redhat.com>.
2368
2369 2011-11-30  Jim Meyering  <meyering@redhat.com>
2370
2371         hash: mark a few floating point constants with "f" suffix
2372         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
2373         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
2374         floating point constants with "f", since they're destined to be
2375         saved/used as "float"s.
2376
2377 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
2378
2379         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
2380         * tests/test-float.c (test_long_double): Correct and re-enable the
2381         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
2382
2383 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
2384
2385         Avoid subtracting two pointers that don't point into the same block.
2386         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
2387         only pointers into the same memory block are subtracted. We cannot
2388         assume that sizeof (ptrdiff_t) == sizeof (void *).
2389
2390 2011-11-29  Eric Blake  <eblake@redhat.com>
2391
2392         maint.mk: add syntax check for use of compare from init.sh
2393         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
2394         moved here from coreutils.
2395
2396         manywarnings: drop -Wunsuffixed-float-constants
2397         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
2398         '1.0D', which is the only way to silence this warning for 'double'.
2399
2400 2011-11-29  Jim Meyering  <meyering@redhat.com>
2401
2402         hash: mark compute_bucket_size with the pure attribute
2403         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
2404
2405         quotearg, propername: correct pragma guard expression
2406         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
2407         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
2408
2409 2011-11-28  Jim Meyering  <meyering@redhat.com>
2410
2411         propername: do not mark proper_name with the const attribute
2412         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
2413         since it examines data pointed to by its parameter.
2414         * lib/propername.c (proper_name): Instead, add a pragma to suppress
2415         the suggestion from -Wsuggest-attribute=const.
2416
2417         propername: mark one more function as const
2418         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
2419
2420 2011-11-27  Jim Meyering  <meyering@redhat.com>
2421
2422         mark functions with const and pure attributes
2423
2424         Mark functions per suggestions from gcc-4.6 when using these options:
2425         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
2426         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
2427         Follow these guidelines: when possible, apply the attribute to
2428         an extern declaration, not to its definition.  Apply it to the
2429         definition only when the definition is static.
2430         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
2431         * lib/argv-iter.h (argv_iter_n_args): Likewise.
2432         * lib/base64.h (isbase64): Likewise.
2433         * lib/basename-lgpl.c (last_component, base_len): Likewise.
2434         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
2435         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
2436         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
2437         (c_tolower, c_toupper): Likewise.
2438         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
2439         * lib/chdir-long.c (find_non_slash): Likewise.
2440         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
2441         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
2442         * lib/file-type.h (file_type): Likewise.
2443         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
2444         * lib/filevercmp.c (verrevcmp): Likewise.
2445         * lib/freadahead.h (freadahead): Likewise.
2446         * lib/fts.c (fts_maxarglen): Likewise.
2447         * lib/hash-pjw.h (hash_pjw): Likewise.
2448         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
2449         * lib/hash.c (is_prime, next_prime): Likewise.
2450         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
2451         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
2452         (hash_table_ok, hash_get_first, hash_string): Likewise.
2453         (compute_bucket_size): Likewise.
2454         * lib/i-ring.h (i_ring_empty): Likewise.
2455         * lib/isnan.c (isnanl): Likewise.
2456         * lib/math.h (isnanl, rpl_isnanl): Likewise.
2457         * lib/memcasecmp.h (memcasecmp): Likewise.
2458         * lib/memchr2.h (memchr2): Likewise.
2459         * lib/memcmp2.h (memcmp2): Likewise.
2460         * lib/parse-datetime.y (lookup_zone): Likewise.
2461         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
2462         [!WINDOWS_SOCKETS]: Likewise.
2463         * lib/strnlen1.h (strnlen1): Likewise.
2464         * lib/uniwidth.in.h (uc_width): Likewise.
2465         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
2466         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
2467         (quoting_options_from_style): Add a comment.
2468         * lib/propername.h (proper_name): Add a comment.
2469
2470 2011-11-27  Bruno Haible  <bruno@clisp.org>
2471
2472         Remove unused macros from !_LIBC code in glibc-borrowed files.
2473         * lib/fnmatch.c (STRCOLL): Remove macro.
2474         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
2475         * lib/glob.c (__stat, __readdir64): Remove macros.
2476         * lib/tempname.c (__open64, __xstat64): Remove macros.
2477         Suggested by Paul Eggert.
2478
2479 2011-11-27  Bruno Haible  <bruno@clisp.org>
2480
2481         getcwd: Fix link error on MSVC 9.
2482         * modules/getcwd (Depends-on): Add readdir, rewinddir.
2483
2484 2011-11-27  Bruno Haible  <bruno@clisp.org>
2485
2486         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
2487         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
2488         HAVE_OPENDIR is 0.
2489         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
2490         HAVE_CLOSEDIR is 0.
2491         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
2492         is 0.
2493         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
2494
2495 2011-11-27  Bruno Haible  <bruno@clisp.org>
2496
2497         getcwd: Fix bug from 2011-08-17.
2498         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
2499         platforms that need it.
2500         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
2501         code of 4 to be a failure, not a success. This ensures that
2502         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
2503
2504 2011-11-27  Bruno Haible  <bruno@clisp.org>
2505
2506         binary-io tests: Avoid test failure on mingw when libtool is used.
2507         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
2508         Don't verify the size of t-bin-out1.tmp here.
2509         * tests/test-binary-io.sh: Verify it here.
2510         Reported by Simon Josefsson.
2511
2512 2011-11-26  Bruno Haible  <bruno@clisp.org>
2513
2514         Fix conflict between two instantiations of module 'unistd'.
2515         * gnulib-tool (func_emit_autoconf_snippet): Substitute
2516         ${include_guard_prefix} also in the autoconf snippet.
2517         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
2518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
2519         GNULIB_UNISTD_H_GETOPT.
2520         * modules/getopt-posix (configure.ac): Set the
2521         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
2522         * modules/getopt-gnu (configure.ac): Likewise.
2523         * modules/unistd (Makefile.am): Change the substitution value of
2524         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
2525         Reported by Simon Josefsson.
2526
2527 2011-11-25  Bruno Haible  <bruno@clisp.org>
2528
2529         pagealign_alloc: Doc and comments.
2530         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
2531         module.
2532         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
2533
2534 2011-11-25  Jim Meyering  <meyering@redhat.com>
2535
2536         test-update-copyright.sh: avoid false-positive failure
2537         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
2538         around false positive failure on Cygwin/Windows.  The latter was
2539         matching erroneously-created files with names like
2540         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
2541
2542 2011-11-25  Simon Josefsson  <simon@josefsson.org>
2543
2544         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
2545         * m4/valgrind-tests.m4: Check that the parameters that will be
2546         used works, not just a subset of them.  Reported by Bruno Haible
2547         <bruno@clisp.org>.
2548
2549 2011-11-24  Jim Meyering  <meyering@redhat.com>
2550
2551         test-stdalign.c: comment out long double tests
2552         * tests/test-stdalign.c: Don't try to reduce alignment of long double
2553         variables.  That provokes errors like this from gcc-4.7.0 20111124:
2554         error: '_Alignas' specifiers cannot reduce alignment of \
2555         'static_longdouble_alignas'.
2556
2557 2011-11-22  Jim Meyering  <meyering@redhat.com>
2558
2559         init.sh: make "compare /dev/null FILE" output more readable
2560         * tests/init.sh (compare_): Document the preferred order of arguments.
2561         (emit_diff_u_header_): New function.
2562         (compare_dev_null_): Emit a simulated diff, rather than just the
2563         contents of the unexpected file.  Suggestion from Bruno Haible.
2564
2565 2011-11-21  Jim Meyering  <meyering@redhat.com>
2566             Eric Blake  <eblake@redhat.com>
2567
2568         init.sh: work around OSF/1 5.1's mishandling of /dev/null
2569         * tests/init.sh: Make our compare function slightly more portable.
2570         Reported by Bruno Haible in
2571         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
2572
2573 2011-11-21  Simon Josefsson  <simon@josefsson.org>
2574
2575         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
2576         before using it, in code that ends up in config.h.
2577
2578 2011-11-20  Bruno Haible  <bruno@clisp.org>
2579
2580         getcwd: Work around getcwd bug on AIX 5..7.
2581         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
2582         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
2583         Use a different value for gl_cv_func_getcwd_path_max. Move the
2584         definition of HAVE_PARTLY_WORKING_GETCWD from here...
2585         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
2586         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
2587         Define HAVE_MINIMALLY_WORKING_GETCWD.
2588         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
2589         where it is not even minimally working, that is, on AIX.
2590         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
2591         m4/getcwd-path-max.m4.
2592         (main): Update exit code computation.
2593         * doc/posix-functions/getcwd.texi: Mention list of platforms where
2594         getcwd does not handle long file names.
2595
2596 2011-11-20  Bruno Haible  <bruno@clisp.org>
2597
2598         getcwd: Fix bug from 2009-09-10.
2599         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
2600         like "no".
2601
2602 2011-11-20  Simon Josefsson  <simon@josefsson.org>
2603
2604         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
2605
2606 2011-11-20  Bruno Haible  <bruno@clisp.org>
2607
2608         fma tests: Avoid shadowing local variables.
2609         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
2610         expected.
2611
2612 2011-11-20  Bruno Haible  <bruno@clisp.org>
2613
2614         copysignf tests: Fix.
2615         * tests/test-copysignf.c: Fix signature check.
2616
2617 2011-11-20  Bruno Haible  <bruno@clisp.org>
2618
2619         fma: Remove unused code.
2620         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
2621         unused macros.
2622
2623 2011-11-20  Bruno Haible  <bruno@clisp.org>
2624
2625         sethostname: Fix doc about AIX.
2626         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
2627         sethostname; it has it.
2628
2629         sethostname: Mention more portability problems.
2630         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
2631         problem.
2632         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2633
2634 2011-11-19  Bruno Haible  <bruno@clisp.org>
2635
2636         Depend on module fcntl-h when AT_FDCWD is used.
2637         * modules/utimens (Depends-on): Add fcntl-h.
2638         * modules/areadlinkat (Depends-on): Likewise.
2639         * modules/areadlinkat-with-size (Depends-on): Likewise.
2640         * modules/faccessat (Depends-on): Likewise.
2641         * modules/fchmodat (Depends-on): Likewise.
2642         * modules/fchownat (Depends-on): Likewise.
2643         * modules/getcwd (Depends-on): Likewise.
2644         * modules/mkdirat (Depends-on): Likewise.
2645         * modules/mkfifoat (Depends-on): Likewise.
2646         * modules/readlinkat (Depends-on): Likewise.
2647         * modules/symlinkat (Depends-on): Likewise.
2648         * modules/dup2-tests (Depends-on): Likewise.
2649         * modules/fdutimensat-tests (Depends-on): Likewise.
2650         * modules/futimens-tests (Depends-on): Likewise.
2651
2652 2011-11-19  Bruno Haible  <bruno@clisp.org>
2653
2654         euidaccess: Update a comment.
2655         * lib/euidaccess.c: Update comment about platforms with faccessat.
2656
2657 2011-11-19  Bruno Haible  <bruno@clisp.org>
2658
2659         openat: Fix file list.
2660         * modules/openat (Files): Remove lib/at-func.c.
2661
2662 2011-11-19  Bruno Haible  <bruno@clisp.org>
2663
2664         fstatat: Simplify.
2665         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
2666         gnulib should define rpl_fstatat, there is a
2667         "#define fstatat rpl_fstatat" in <sys/stat.h>.
2668
2669 2011-11-19  Bruno Haible  <bruno@clisp.org>
2670
2671         Ensure 'inline' can be used in tests/test-utimens-common.h.
2672         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
2673         * modules/futimens-tests (configure.ac): Likewise.
2674         * modules/utimens-tests (configure.ac): Likewise.
2675         * modules/utimensat-tests (configure.ac): Likewise.
2676
2677 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2678
2679         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
2680         not hash_insert0.
2681         (hash_insert_if_absent): Doc fix.
2682
2683 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2684
2685         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
2686
2687 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2688
2689         test-getcwd: disambiguate exit status
2690         * tests/test-getcwd.c (test_long_name): Return 0..7.
2691         (main): Exit with an unambiguous exit status.  The old
2692         code yielded a mysterious mixture of two failure codes.
2693
2694         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
2695         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
2696         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
2697         rpl_fstatat or fstatat.  This should fix the other problem
2698         reported by Kai Habel in
2699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2700         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
2701         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
2702         and I reproduced it on a Solaris 8 host we still have in production.
2703
2704 2011-11-18  Jim Meyering  <meyering@redhat.com>
2705
2706         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
2707         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
2708         Add a sentence to the comment.
2709         (hash_insert0): New function that simply calls hash_insert_if_absent.
2710         * lib/hash.h (hash_insert_if_absent): Declare it.
2711         (hash_insert0): Add deprecation attribute.
2712         (_GL_ATTRIBUTE_DEPRECATED): Define.
2713         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
2714         not hash_insert0.
2715         * NEWS: Mention it, even though it's not really an incompatible change.
2716
2717 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
2718
2719         openat: avoid compilation failure due to lack of <errno.h> inclusion
2720         * lib/openat.c: Include <errno.h>.
2721
2722 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2723
2724         * modules/getcwd (Depends-on): Add fdopendir.
2725         This fixes one of the two problems reported by Kai Habel in
2726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2727
2728         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
2729         stdalign problem reported by Ian Beckwith in
2730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
2731         * modules/crypto/gc-arcfour (Depends-on):
2732         Depend conditionally on crypto/arcfour.
2733         * modules/crypto/gc-arctwo (Depends-on):
2734         Depend conditionally on crypto/arctwo.
2735         * modules/crypto/gc-des (Depends-on):
2736         Depend conditionally on crypto/des.
2737         * modules/crypto/gc-hmac-md5 (Depends-on):
2738         Depend conditionally on crypto/hmac-md5.
2739         * modules/crypto/gc-hmac-sha1 (Depends-on):
2740         Depend conditionally on crypto/hmac-sha1.
2741         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
2742         * modules/crypto/gc-md4 (Depends-on):
2743         Depend conditionally on crypto/md4.
2744         * modules/crypto/gc-md5 (Depends-on):
2745         Depend conditionally on crypto/md5.
2746         * modules/crypto/gc-rijndael (Depends-on):
2747         Depend conditionally on crypto/rijndael.
2748         * modules/crypto/gc-sha1 (Depends-on):
2749         Depend conditionally on crypto/sha1.
2750         * modules/crypto/gc-arcfour:
2751         * modules/crypto/gc-arctwo:
2752         * modules/crypto/gc-des:
2753         * modules/crypto/gc-hmac-md5:
2754         * modules/crypto/gc-hmac-sha1:
2755         * modules/crypto/gc-md2:
2756         * modules/crypto/gc-md4:
2757         * modules/crypto/gc-md5:
2758         * modules/crypto/gc-rijndael:
2759         * modules/crypto/gc-sha1:
2760         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
2761         now that the conditional dependencies do the work for us.
2762
2763 2011-11-17  Jim Meyering  <meyering@redhat.com>
2764
2765         tests: factor st_ctime-comparison out of two headers
2766         * tests/test-utimens-common.h (ctime_compare): Define.
2767         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
2768         * tests/test-lutimens.h (test_lutimens): Likewise.
2769         * tests/test-utimens.h (test_utimens): Likewise.
2770
2771         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
2772         Invoke the test program via an init.sh-using wrapper.
2773         * tests/test-getcwd.sh: New file.
2774         * modules/getcwd-tests (Files): Add it.
2775         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
2776
2777 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
2778
2779         gitlog-to-changelog: support multi-author commits.
2780         The FSF cares about keeping track of all authors of patches to its
2781         projects, but Git doesn't provide obvious support for multi-author
2782         changesets. Consensus seems to be forming around the use of extra
2783         Signed-off-by inspired lines in the log message formatted as
2784         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
2785         multi-author commits between version control systems.
2786         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
2787         log message and output in standard ChangeLog multi-author format.
2788         Reported by Peter Rosin <peda@lysator.liu.se>
2789
2790 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
2791             Bruno Haible  <bruno@clisp.org>
2792
2793         Fix some modules' file list.
2794         * modules/fstatat (Files): Add m4/lstat.m4.
2795         * modules/openat (Files): Likewise.
2796         * modules/unlinkat (Files): Likewise.
2797
2798 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
2799
2800         maint.mk: fix tight-scope.mk generation in VPATH builds.
2801         * top/maint.mk (tight-scope.mk): Make sure to prefix file
2802         reference with $(srcdir) so that the file is found correctly even
2803         when running `make syntax-check' in a VPATH build.
2804
2805 2011-11-13  Bruno Haible  <bruno@clisp.org>
2806             Jim Meyering  <meyering@redhat.com>
2807
2808         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
2809         * tests/init.sh (compare): Remove "No differences encountered" or
2810         synonymous output from the 'diff' program.
2811
2812 2011-11-13  Bruno Haible  <bruno@clisp.org>
2813
2814         Makefile: Tweak indentation.
2815         * Makefile: Use tab as first character in every line that contains rule
2816         commands.
2817
2818 2011-11-13  Bruno Haible  <bruno@clisp.org>
2819
2820         Syntax check for copyright statements.
2821         * check-copyright: New file.
2822         * Makefile (sc_check_copyright): New rule.
2823
2824 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2825
2826         * build-aux/git-version-gen: Add --prefix to configure the tag
2827         match string.
2828
2829 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2830
2831         * build-aux/git-version-gen: Add --help and --version.
2832
2833 2011-11-12  Jim Meyering  <meyering@redhat.com>
2834
2835         revamp the other test-exclude?.sh scripts to use init.sh, too
2836         * tests/test-exclude1.sh: Use init.sh.
2837         * tests/test-exclude2.sh: Likewise.
2838         * tests/test-exclude3.sh: Likewise.
2839         * tests/test-exclude4.sh: Likewise.
2840         * tests/test-exclude5.sh: Likewise.
2841         * tests/test-exclude6.sh: Likewise.
2842         * tests/test-exclude7.sh: Likewise.
2843         * tests/test-exclude8.sh: Likewise.
2844         * modules/exclude-tests (Files): List init.sh.
2845
2846         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
2847         These shell scripts ignored failure of the binary test-exclude,
2848         so making the latter return 77 didn't cause them to be skipped.
2849         * tests/test-exclude5.sh: Exit with test-exclude's error status
2850         when that program fails.  Revamp to use init.sh.
2851         * tests/test-exclude2.sh: Likewise.
2852
2853         test-exclude: fix a typo
2854         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
2855
2856 2011-11-11  Bruno Haible  <bruno@clisp.org>
2857
2858         obstack: Fix compilation error on MSVC 9.
2859         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
2860
2861 2011-11-11  Jim Meyering  <meyering@redhat.com>
2862
2863         test-exclude: skip tests rather than failing on deficient systems
2864         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
2865         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
2866         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
2867         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
2868
2869 2011-11-10  Bruno Haible  <bruno@clisp.org>
2870
2871         ptsname_r test: Avoid gcc warning on glibc systems.
2872         * tests/test-ptsname_r.c (null_ptr): New function.
2873         (test_errors): Use it.
2874
2875 2011-11-10  Bruno Haible  <bruno@clisp.org>
2876
2877         ptsname_r: Avoid compilation error on OSF/1 5.1.
2878         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
2879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
2880         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
2881         function is not declared or incompatibly declared.
2882         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
2883         * modules/ptsname_r (Depends-on, configure.ac): Update.
2884         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
2885
2886 2011-11-10  Bruno Haible  <bruno@clisp.org>
2887
2888         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
2889         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
2890         When cross-compiling, guess yes on all platforms except AIX.
2891         Reported by Ludovic Courtès <ludo@gnu.org>.
2892
2893 2011-11-09  Bruno Haible  <bruno@clisp.org>
2894
2895         ptsname_r tests: Fix bugs.
2896         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
2897         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
2898
2899 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2900
2901         fstatat: work with cross-compilation
2902         Problem reported by Ludovic Courtès in
2903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
2904         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
2905         "cross-compiling" and assume the bug is present.  Replace
2906         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
2907         an inverted sense, to be more conservative about our assumptions.
2908         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
2909
2910 2011-11-09  Bruno Haible  <bruno@clisp.org>
2911
2912         Improve MODULES.html output.
2913         * modules/mkfifoat (Description): Use the word "function".
2914         * modules/readlinkat (Description): Likewise.
2915         * modules/symlinkat (Description): Likewise.
2916
2917 2011-11-09  Eric Blake  <eblake@redhat.com>
2918
2919         ptsname_r-tests: new test module
2920         * modules/ptsname_r-tests: New module.
2921         * tests/test-ptsname_r.c: New file.
2922
2923         ptsname_r: new module
2924         * modules/ptsname_r: New module.
2925         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
2926         * lib/ptsname.c (__ptsname_r): Split...
2927         * lib/ptsname_r.c: ...into new file.
2928         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2929         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
2930         * modules/stdlib (Makefile.am): Substitute witnesses.
2931         * lib/stdlib.in.h (ptsname_r): Declare it.
2932         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
2933         * MODULES.html.sh (Misc): Likewise.
2934         * modules/ptsname (Depends-on): Alter dependency.
2935         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
2936
2937 2011-11-09  Jim Meyering  <meyering@redhat.com>
2938
2939         announce-gen: be more concise when there's only one URL+tarball
2940         * build-aux/announce-gen (get_tool_versions): When you distribute
2941         only one type of tarball, combine the first two "Here are..."
2942         sections and make the key-checking grammar independent of
2943         how many tarballs there are.
2944
2945 2011-11-09  Eric Blake  <eblake@redhat.com>
2946
2947         openpty: provide a stub on mingw
2948         * lib/pty.in.h (includes): Provide forward declarations.
2949         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
2950
2951         raise: fix mingw handling of SIGPIPE
2952         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
2953
2954 2011-11-08  Bruno Haible  <bruno@clisp.org>
2955
2956         More conditional dependencies.
2957         * modules/faccessat (Depends-on): Add conditions.
2958         * modules/fchmodat (Depends-on): Likewise.
2959         * modules/fchownat (Depends-on): Likewise.
2960         * modules/fstatat (Depends-on): Likewise.
2961         * modules/mkfifoat (Depends-on): Likewise.
2962         * modules/readlinkat (Depends-on): Likewise.
2963         * modules/symlinkat (Depends-on): Likewise.
2964         * modules/unlinkat (Depends-on): Likewise.
2965         * modules/utimensat (Depends-on): Likewise.
2966         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
2967         * modules/linkat (Depends-on): Refine the conditions.
2968         * modules/renameat (Depends-on): Likewise.
2969
2970 2011-11-08  Bruno Haible  <bruno@clisp.org>
2971
2972         faccessat: Move AC_LIBOBJ invocation to module description.
2973         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
2974         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
2975         invocation from here...
2976         * modules/faccessat (configure.ac): ... to here. Invoke
2977         gl_PREREQ_FACCESSAT.
2978
2979 2011-11-08  Bruno Haible  <bruno@clisp.org>
2980
2981         faccessat: Simplify autoconf macro.
2982         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
2983         gl_FUNC_EUIDACCESS.
2984
2985 2011-11-08  Bruno Haible  <bruno@clisp.org>
2986
2987         renameat: Fix dependencies.
2988         * modules/renameat (Depends-on): Add stdbool.
2989
2990 2011-11-08  Bruno Haible  <bruno@clisp.org>
2991
2992         mkfifoat: Fix module description.
2993         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
2994         not gl_UNISTD_MODULE_INDICATOR.
2995
2996 2011-11-08  Bruno Haible  <bruno@clisp.org>
2997
2998         fstatat: Remove unused dependency.
2999         * modules/fstatat (Depends-on): Remove fstat.
3000
3001 2011-11-08  Simon Josefsson  <simon@josefsson.org>
3002
3003         GNUmakefile: behave when Makefile is missing.
3004         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
3005
3006 2011-11-08  Bruno Haible  <bruno@clisp.org>
3007
3008         openat: Conditionalize dependencies.
3009         * lib/openat.c: Reduce the scope of some #includes.
3010         * modules/openat (Depends-on): Add conditions.
3011
3012 2011-11-07  Jim Meyering  <meyering@redhat.com>
3013
3014         maint.mk: extract GPG key ID without using a temporary file
3015         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
3016         without using a temporary file.  Based on a suggestion from Werner Koch
3017         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
3018
3019 2011-11-07  Eric Blake  <eblake@redhat.com>
3020
3021         grantpt: fix typo
3022         * lib/stdlib.in.h (grantpt): Check correct function.
3023
3024         maint.mk: silence new syntax check
3025         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
3026
3027 2011-11-06  Bruno Haible  <bruno@clisp.org>
3028
3029         Doc about floating-point and math API.
3030         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
3031         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
3032
3033 2011-11-06  Bruno Haible  <bruno@clisp.org>
3034
3035         stdalign tests: Skip the test when compiled by Sun C.
3036         * tests/test-stdalign.c (main): Skip the test on Sun C.
3037
3038 2011-11-06  Bruno Haible  <bruno@clisp.org>
3039
3040         ansi-c++-opt: Complete the 2011-06-05 change.
3041         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
3042         does not support namespaces, set the variable to "no", not to ":".
3043
3044 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
3045
3046         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
3047
3048 2011-11-06  Bruno Haible  <bruno@clisp.org>
3049
3050         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
3051         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
3052         (minus_zerol) [HP-UX]: New macro.
3053         (unary_minus) [HP-UX]: New function.
3054         (copysignl) [HP-UX]: Use unary_minus function.
3055
3056 2011-11-06  Bruno Haible  <bruno@clisp.org>
3057
3058         ldexp, ldexpf, ldexpl: Enhance tests.
3059         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
3060         and tests/test-ldexpl.c.
3061         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
3062         LDEXP, MIN_EXP, MAX_EXP): New macros.
3063         Include test-ldexp.h.
3064         (main): Just call test_function.
3065         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
3066         infinity.h, nan.h.
3067         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3068         MAX_EXP): New macros.
3069         Include test-ldexp.h.
3070         (x, y): Remove variables.
3071         (main): Just call test_function.
3072         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
3073         infinity.h, nan.h.
3074         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3075         MAX_EXP): New macros.
3076         Include test-ldexp.h.
3077         (x, y): Remove variables.
3078         (main): Just call test_function.
3079         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
3080         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
3081         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3082         (Depends-on): Add isnand-nolibm, signbit, float.
3083         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
3084         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3085         (Depends-on): Add isnanf-nolibm, signbit, float.
3086
3087 2011-11-06  Bruno Haible  <bruno@clisp.org>
3088
3089         math tests: Cosmetics.
3090         * tests/test-math-c++.cc: Reorder declarations.
3091
3092 2011-11-05  Bruno Haible  <bruno@clisp.org>
3093
3094         fma*: Simplify test.
3095         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
3096         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
3097
3098         Tests for module 'fmal'.
3099         * modules/fmal-tests: New file.
3100         * tests/test-fmal1.c: New file.
3101         * tests/test-fmal2.c: New file.
3102
3103         New module 'fmal'.
3104         * lib/math.in.h (fmal): New declaration.
3105         * lib/fmal.c: New file.
3106         * m4/fmal.m4: New file.
3107         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
3108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
3109         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
3110         REPLACE_FMAL.
3111         * modules/fmal: New file.
3112         * doc/posix-functions/fmal.texi: Mention the new module and the various
3113         bugs.
3114
3115         Tests for module 'fmaf'.
3116         * modules/fmaf-tests: New file.
3117         * tests/test-fmaf1.c: New file.
3118         * tests/test-fmaf2.c: New file.
3119
3120         New module 'fmaf'.
3121         * lib/math.in.h (fmaf): New declaration.
3122         * lib/fmaf.c: New file.
3123         * m4/fmaf.m4: New file.
3124         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
3125         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
3126         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
3127         REPLACE_FMAF.
3128         * modules/fmaf: New file.
3129         * doc/posix-functions/fmaf.texi: Mention the new module and the various
3130         bugs.
3131
3132         Tests for module 'fma'.
3133         * modules/fma-tests: New file.
3134         * tests/test-fma1.c: New file.
3135         * tests/test-fma1.h: New file.
3136         * tests/test-fma2.c: New file.
3137         * tests/test-fma2.h: New file.
3138
3139         New module 'fma'.
3140         * lib/math.in.h (fma): New declaration.
3141         * lib/fma.c: New file.
3142         * m4/fma.m4: New file.
3143         * m4/fegetround.m4: New file.
3144         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
3145         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
3146         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
3147         REPLACE_FMA.
3148         * modules/fma: New file.
3149         * doc/posix-functions/fma.texi: Mention the new module and the various
3150         bugs.
3151
3152         Extend gl_MATHFUNC.
3153         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
3154         Support 'void' as argument type.
3155         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
3156
3157 2011-11-05  Jim Meyering  <meyering@redhat.com>
3158
3159         maint.mk: also prohibit inclusion of dirent.h without use
3160         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
3161
3162 2011-11-05  Bruno Haible  <bruno@clisp.org>
3163
3164         ldexpl tests: Avoid test failure on MSVC 9.
3165         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
3166         value. Needed in order to enforce the conversion from a value greater
3167         than LDBL_MAX to Infinity.
3168
3169 2011-11-05  Bruno Haible  <bruno@clisp.org>
3170
3171         New modules 'at-internal', 'openat-h', split off from module 'openat'.
3172         * modules/at-internal: New file, extracted from modules/openat.
3173         * modules/openat-h: New file.
3174         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
3175         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
3176         * modules/openat (Description): Add reference to POSIX function.
3177         (Files): Remove lib/openat.h, lib/openat-proc.c.
3178         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
3179         intprops, unistd.
3180         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
3181         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
3182         gl_FCNTL_MODULE_INDICATOR.
3183         (Include): Remove unistd.h, openat.h.
3184         * modules/areadlinkat (Files): Add lib/at-func.c.
3185         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3186         openat-die, openat-h, save-cwd.
3187         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
3188         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3189         openat-die, openat-h, save-cwd, unistd.
3190         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
3191         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3192         openat-h, save-cwd. Remove fcntl-h, openat.
3193         * modules/fchmodat (Files): Remove lib/openat.h.
3194         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3195         openat, stdbool, unistd.
3196         * modules/fchownat (Files): Remove lib/openat.h.
3197         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3198         openat, stdbool, sys_stat.
3199         * modules/fdopendir (Files): Remove lib/openat-priv.h,
3200         lib/openat-proc.c.
3201         (Depends-on): Add at-internal.
3202         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
3203         * modules/fstatat (Files): Remove lib/openat.h.
3204         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3205         stdbool, unistd.
3206         * modules/fts (Depends-on): Add openat-h.
3207         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
3208         openat.
3209         * modules/mkdirat (Files): Remove lib/openat.h.
3210         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3211         openat, stdbool, sys_stat.
3212         * modules/mkfifoat (Files): Add lib/at-func.c.
3213         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3214         openat-h, save-cwd. Remove fcntl-h, openat.
3215         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
3216         * modules/readlinkat (Files): Add lib/at-func.c.
3217         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3218         openat-h, save-cwd. Remove fcntl-h, openat.
3219         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
3220         openat.
3221         * modules/selinux-at (Files): Add lib/at-func.c.
3222         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3223         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
3224         * modules/symlinkat (Files): Add lib/at-func.c.
3225         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3226         openat-h, save-cwd. Remove fcntl-h, openat.
3227         * modules/unlinkat (Files): Remove lib/openat.h.
3228         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3229         stdbool.
3230         * modules/utimensat (Files): Add lib/at-func.c.
3231         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
3232         openat-die, openat-h, save-cwd.
3233         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
3234         * modules/fdutimensat-tests (Depends-on): Add openat.
3235         * modules/fstatat-tests (Depends-on): Add openat-h.
3236         * modules/readlinkat-tests (Depends-on): Add openat.
3237         * modules/symlinkat-tests (Depends-on): Add openat.
3238
3239 2011-11-05  Bruno Haible  <bruno@clisp.org>
3240
3241         openat: Include <stdbool.h>.
3242         * lib/openat.c: Include <stdbool.h>.
3243
3244 2011-11-04  Bruno Haible  <bruno@clisp.org>
3245
3246         fchownat, renameat, unlinkat: Fix dependencies.
3247         * modules/fchownat (Depends-on): Add fstatat.
3248         * modules/renameat (Depends-on): Likewise.
3249         * modules/unlinkat (Depends-on): Likewise.
3250
3251 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
3252
3253         openat: remove direct dependency on dirent
3254         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
3255         and hasn't been needed ever since fdopendir was split into its own
3256         module on 2009-08-31.
3257         * modules/openat (Depends-on): Remove dirent.
3258
3259 2011-11-04  Bruno Haible  <bruno@clisp.org>
3260
3261         renameat: Optimize code size.
3262         * modules/renameat (configure.ac): Don't compile at-func2.c if
3263         REPLACE_RENAMEAT is 1.
3264
3265 2011-11-04  Bruno Haible  <bruno@clisp.org>
3266
3267         openat tests: Fix file list.
3268         * modules/openat-tests (Files): Add tests/test-open.h.
3269
3270 2011-11-04  Bruno Haible  <bruno@clisp.org>
3271
3272         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
3273         * modules/fchmodat (Depends-on): Add openat-die.
3274         * modules/fchownat (Depends-on): Likewise.
3275         * modules/linkat (Depends-on): Likewise.
3276         * modules/renameat (Depends-on): Likewise.
3277         * modules/openat (Depends-on): Add dirent.
3278
3279 2011-11-04  Jim Meyering  <meyering@redhat.com>
3280
3281         at-func*.c: fix comments
3282         * lib/at-func2.c: Correct/improve first-line comment.
3283         * lib/at-func.c: Correct grammar in first-line comment.
3284
3285 2011-11-04  Bruno Haible  <bruno@clisp.org>
3286
3287         New module 'mkdirat', split off from module 'openat'.
3288         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
3289         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
3290         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
3291         * modules/mkdirat: New file, extracted from modules/openat.
3292         * modules/openat (Files): Remove lib/mkdirat.c.
3293         (Depends-on): Remove mkdir.
3294         (configure.ac): Remove AC_LIBOBJ of mkdirat.
3295         (Include): Remove <sys/stat.h>.
3296         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
3297         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
3298         tests/test-mkdir.h.
3299         (Depends-on): Remove ignore-value.
3300         (Makefile.am): Remove rules for test-mkdirat.
3301         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
3302         of module 'openat'.
3303         * NEWS: Mention the change.
3304
3305 2011-11-04  Bruno Haible  <bruno@clisp.org>
3306
3307         closedir: Avoid warning on mingw.
3308         * lib/closedir.c: Include <unistd.h>.
3309
3310 2011-11-04  Bruno Haible  <bruno@clisp.org>
3311
3312         New module 'fstatat', split off from module 'openat'.
3313         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
3314         defined.
3315         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
3316         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
3317         gl_FUNC_FSTATAT.
3318         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
3319         * modules/fstatat: New file, extracted from modules/openat.
3320         * modules/openat (Files): Remove lib/fstatat.c.
3321         (Depends-on): Remove lstat.
3322         (configure.ac): Remove AC_LIBOBJ of fstatat.
3323         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
3324         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
3325         tests/test-lstat.h, tests/test-stat.h.
3326         (Depends-on): Remove getcwd-lgpl.
3327         (Makefile.am): Remove rules for test-fstatat.
3328         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
3329         of module 'openat'.
3330         * NEWS: Mention the change.
3331         * modules/getcwd (Depends-on): Add fstatat.
3332         * modules/linkat (Depends-on): Likewise.
3333         * modules/mkfifoat-tests (Depends-on): Likewise.
3334         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
3335
3336 2011-11-03  Bruno Haible  <bruno@clisp.org>
3337
3338         New module 'unlinkat', split off from module 'openat'.
3339         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
3340         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
3341         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
3342         * modules/unlinkat: New file, extracted from modules/openat. Correct
3343         the dependency conditions.
3344         * modules/openat (Files): Remove lib/unlinkat.c.
3345         (Depends-on): Remove rmdir, unlink.
3346         (configure.ac): Remove AC_LIBOBJ of unlinkat.
3347         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
3348         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
3349         tests/test-rmdir.h, tests/test-unlink.h.
3350         (Depends-on): Remove unlinkdir.
3351         (Makefile.am): Remove rules for test-unlinkat.
3352         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
3353         of module 'openat'.
3354         * NEWS: Mention the change.
3355         * modules/linkat-tests (Depends-on): Add unlinkat.
3356         * modules/mkfifoat-tests (Depends-on): Likewise.
3357         * modules/readlinkat-tests (Depends-on): Likewise.
3358
3359 2011-11-02  Bruno Haible  <bruno@clisp.org>
3360
3361         New module 'fchmodat', split off from module 'openat'.
3362         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
3363         defined.
3364         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
3365         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
3366         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
3367         * modules/fchmodat: New file, extracted from modules/openat.
3368         * modules/openat (Files): Remove lib/fchmodat.c.
3369         (configure.ac): Remove AC_LIBOBJ of fchmodat.
3370         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
3371         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
3372         (Makefile.am): Remove rules for test-fchmodat.
3373         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
3374         of module 'openat'.
3375         * NEWS: Mention the change.
3376
3377 2011-11-02  Jim Meyering  <meyering@redhat.com>
3378
3379         putenv: indent #definition of "environ" to placate cppi
3380         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
3381
3382         gitlog-to-changelog: provide a ChangeLog-repair mechanism
3383         Git logs are often treated as immutable, because editing them
3384         changes the SHA1 checksums of all descendants.  Thus, errors in
3385         git logs tend to stay there forever.  However, when we generate
3386         a ChangeLog file -- typically for distribution -- from that git log,
3387         we can actually make corrections in the generated file.  The key
3388         lies in recording in machine-readable/applicable form the desired
3389         corrections.  See --help for description and an example.
3390         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
3391         (usage): Describe it; alphabetize option descriptions.
3392         (main): Honor the new option, carefully.
3393
3394 2011-11-01  Jim Meyering  <meyering@redhat.com>
3395
3396         gitlog-to-changelog: avoid an infloop
3397         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
3398         that ends up being empty.
3399
3400 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3401
3402         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
3403         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
3404         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
3405         contains (possibly-quoted) backslashes.  This should avoid
3406         all-too-common shell bugs if COMPLICATED contains backslashes in
3407         the "wrong" places.  Reported by David Evans in
3408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
3409         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
3410         because we want ASCII ranges.  Is there some reason we don't use
3411         the C locale everywhere in this script?
3412         (func_module, top level): Avoid unwanted pathname expansion when
3413         $repo_url_prefix or $repo_url_suffix_repl contain shell
3414         metacharacters like '?' and '*'.
3415
3416 2011-11-01  Bruno Haible  <bruno@clisp.org>
3417
3418         fchownat: Improve description.
3419         * modules/fchownat (Description): Add link to function.
3420
3421 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3422
3423         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
3424         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
3425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
3426         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
3427
3428 2011-11-01  Bruno Haible  <bruno@clisp.org>
3429
3430         alignof: Avoid collision with stdalign module.
3431         * lib/alignof.h (alignof): Remove macro.
3432         * NEWS: Mention the change.
3433         Reported by Paul Eggert.
3434
3435 2011-11-01  Bruno Haible  <bruno@clisp.org>
3436
3437         New module 'fchownat', split off from module 'openat'.
3438         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
3439         defined.
3440         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
3441         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
3442         invoke gl_FUNC_FCHOWNAT.
3443         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
3444         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
3445         * modules/fchownat: New file, extracted from modules/openat.
3446         * modules/openat (Files): Remove lib/fchownat.c.
3447         (Depends-on): Remove lchown.
3448         (configure.ac): Remove AC_LIBOBJ of fchownat.
3449         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
3450         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
3451         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
3452         (Depends-on): Remove mgetgroups, usleep, stat-time.
3453         (configure.ac): Remove test for getegid.
3454         (Makefile.am): Remove rules for test-fchownat.
3455         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
3456         of module 'openat'.
3457         * NEWS: Mention the change.
3458
3459 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
3460
3461         stdalign: port better to MSVC and to Sun C 5.11
3462         This fixes some of the problems reported by Bruno Haible in
3463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
3464         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
3465         shortcomings of MSVC and of Sun C 5.11.
3466         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
3467         around __declspec arg.
3468         * modules/stdalign-tests (Files): Add tests/macros.h.
3469         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
3470         Include macros.h, for ASSERT.
3471         (DECLARE_ALIGNED): Remove.
3472         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
3473         to catch bug), and to 1 if not (simplifies the rest of the code).
3474         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
3475         (CHECK_AUTO): Remove.
3476         (CHECK_ALIGNED): Check only the alignment of the static vars,
3477         since auto var alignment isn't supported by Sun C 5.11.
3478         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
3479         ASSERT failures are easier to diagnose.
3480
3481 2011-10-31  Bruno Haible  <bruno@clisp.org>
3482
3483         doc about some IRIX 5.3 problems.
3484         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
3485         on IRIX 5.3.
3486         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
3487         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
3488         5.3.
3489         * doc/posix-functions/grantpt.texi: Likewise.
3490         * doc/posix-functions/unlockpt.texi: Likewise.
3491         * doc/posix-functions/lgamma.texi: Likewise.
3492         * doc/posix-functions/nextafter.texi: Likewise.
3493         * doc/posix-functions/remainder.texi: Likewise.
3494         * doc/posix-functions/select.texi: Mention misplaced declaration on
3495         IRIX 5.3.
3496         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3497
3498 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
3499
3500         gitlog-to-changelog: fix git-log invocation.
3501         git-log mishandles date strings before 1970-01-01 UTC, and there is
3502         no use to specify --since=1970-01-01 by default anyway.
3503         * build-aux/gitlog-to-changelog: By default, when no --since option
3504         was given, do not specify explicit --since option to git-log.
3505
3506 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
3507
3508         gitlog-to-changelog: new option --append-dot.
3509         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
3510         first non-blank line of each commit message terminated with a dot.
3511
3512 2011-10-30  Bruno Haible  <bruno@clisp.org>
3513
3514         ffsl, ffsll: Avoid compilation error due to 'restrict'.
3515         * lib/ffsl.h: Include <config.h>.
3516         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
3517
3518 2011-10-30  Jim Meyering  <meyering@redhat.com>
3519
3520         GNUmakefile: reenable "make syntax-check" for most projects
3521         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
3522         build-aux variable", "syntax-check" would do nothing but succeed with
3523         the "No version control files detected..." diagnostic (unless you
3524         happened to override _build-aux via cfg.mk).
3525         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
3526         to precede inclusion of maint.mk.  Otherwise, these variables would
3527         be used undefined in any project that does not override the default.
3528
3529 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
3530
3531         gitlog-to-changelog: treat a message with only blank lines as empty.
3532         * build-aux/gitlog-to-changelog: Move the code that removes leading and
3533         trailing blank lines before the code that issues a warning about an
3534         empty commit message.
3535
3536 2011-10-30  Jim Meyering  <meyering@redhat.com>
3537
3538         test-parse-datetime.c: avoid new DST-related false positive test failure
3539         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
3540         based on the time/date we'll convert, not the current time.
3541         Otherwise, the moment we cross a DST boundary like today's in
3542         Europe, (CEST to CET), that offset ends up being one hour off.
3543
3544 2011-10-27  Bruno Haible  <bruno@clisp.org>
3545
3546         fstat: Tweak documentation.
3547         * modules/fstat (Description): More precise description.
3548
3549 2011-10-27  Bruno Haible  <bruno@clisp.org>
3550
3551         Update documentation regarding 'largefile' module.
3552         * doc/posix-functions/fstat.texi: Tweak wording.
3553         * doc/posix-functions/opendir.texi: Mention that the module fixes the
3554         problems with huge directories and/or small ino_t types.
3555         * doc/posix-functions/readdir.texi: Likewise.
3556         * doc/posix-functions/rewinddir.texi: Likewise.
3557
3558 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
3559
3560         maint.mk: don't maintain a second build-aux variable.
3561         * maint.mk (build_aux): Removed.  The maintainer-makefile module
3562         depends on GNUmakefile, which already maintains a cfg.mk
3563         overridable $(_build-aux) for projects with a non-standard
3564         build-aux directory location, although without the $(srcdir)
3565         prefix.  Use that variable consistently instead of introducing a
3566         second one.  Adjust all call sites.
3567
3568 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
3569
3570         Add stdalign module and use it in other modules.
3571         This is based on a previous proposal by Bruno Haible
3572         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
3573
3574         stdalign: new module
3575         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
3576         * modules/stdalign: New files.
3577         * MODULES.html.sh (c1x_core_properties): Add stdalign.
3578         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
3579
3580         stdalign-tests: new module
3581         * modules/stdalign-tests, tests/test-stdalign.c: New files.
3582
3583         argp: use stdalign
3584         * lib/argp-parse.c: Include <stdalign.h>.
3585         (alignof): Remove.
3586         * modules/argp (Depends-on): Add stdalign.
3587
3588         crypto libraries: use stdalign
3589         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3590         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
3591         Do not include <stdlib.h> twice, in md4.c.
3592         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
3593         because we are accessing a pointer's bit-pattern, not a size.
3594         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
3595         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
3596         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3597         * modules/crypto/sha512: Likewise.
3598
3599         sys_socket: use stdalign, not alignof
3600         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
3601         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
3602
3603 2011-10-27  Bruno Haible  <bruno@clisp.org>
3604
3605         raise test: Avoid a test failure on Linux/MIPS.
3606         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
3607         because 99 is a valid signal on Linux/MIPS.
3608
3609 2011-10-27  Bruno Haible  <bruno@clisp.org>
3610
3611         nonblocking tests: Fix test failure on Linux/MIPS.
3612         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
3613         Set to 270000.
3614
3615 2011-10-27  Bruno Haible  <bruno@clisp.org>
3616
3617         utimensat: Work around problem on Linux/hppa.
3618         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
3619         values.
3620         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
3621
3622 2011-10-25  Jim Meyering  <meyering@redhat.com>
3623
3624         maint.mk: fix a bug in sc_prohibit_stddef_without_use
3625         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
3626         after symbols like NULL, size_t, etc.
3627         Reported by Alfred M. Szmidt.
3628
3629         maint.mk: exempt ENODATA from a syntax-check rule
3630         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
3631         from the sc_prohibit_always-defined_macros syntax-check rule.
3632         Add a comment.  See this for more details:
3633         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
3634
3635 2011-10-23  Jim Meyering  <meyering@redhat.com>
3636
3637         fts: close parent dir FD before returning from post-traversal fts_read
3638         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
3639         unlink A, even though an FD open on A remained.  This is suboptimal
3640         (holding a file descriptor open longer than needed), but otherwise not
3641         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
3642         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
3643         that represents a real problem: it causes the removal of A to fail
3644         with e.g., "rm: cannot remove `A': Device or resource busy"
3645
3646         fts visits each directory twice and keeps a cache (fts_fd_ring) of
3647         directory file descriptors.  After completing the final, FTS_DP,
3648         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
3649         cache, but then proceeded to add a new FD to it via the subsequent
3650         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
3651         final file descriptor would be closed only via fts_close's call to
3652         fd_ring_clear.  Now, it is usually closed earlier, via the final
3653         FTS_DP-returning fts_read call.
3654         * lib/fts.c (restore_initial_cwd): New function, converted from
3655         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
3656         Update callers.
3657         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
3658         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
3659
3660 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
3661             Bruno Haible  <bruno@clisp.org>
3662             Jim Meyering  <jim@meyering.net>
3663
3664         readme-release: improve safety of release prep instructions.
3665         * README-release: Don't git pull all branches when only master
3666         is needed for the release process.
3667         Run make maintainer-clean before changing trees and merging.
3668         Don't try to run ./configure right after git pull in case files
3669         that influence the bootstrap process have changed, move the
3670         ./configure step to after running ./bootstrap.
3671         Don't bootstrap "one last time"... it's the first time!
3672
3673 2011-10-22  Bruno Haible  <bruno@clisp.org>
3674
3675         errno, strerror-override: Support for MSVC 10.
3676         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
3677         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
3678         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
3679         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
3680         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
3681         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
3682         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
3683         Assign values compatible with MSVC 10.
3684         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
3685         New macros.
3686         (GNULIB_defined_EWINSOCK): New macro.
3687         * lib/strerror-override.c (strerror_override): Update accordingly.
3688         * lib/strerror-override.h: Likewise.
3689         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
3690         longer equal to the corresponding errno value.
3691         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3692
3693 2011-10-22  Bruno Haible  <bruno@clisp.org>
3694
3695         perror: Recognize when test program crashes.
3696         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
3697         strerror, set gl_cv_func_perror_works to no.
3698         Reported by Daniel Richard G. <skunk@iskunk.org>.
3699
3700         perror: Fix indentation.
3701         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
3702
3703 2011-10-22  Bruno Haible  <bruno@clisp.org>
3704
3705         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
3706         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
3707         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
3708         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
3709         functions, not as a macro.
3710         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
3711         macros.
3712         (isfinite, isinf, isnan, signbit): Check overloaded functions and
3713         absence of macro.
3714         Suggested by Eric Blake.
3715         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3716
3717 2011-10-21  Bruno Haible  <bruno@clisp.org>
3718
3719         relocatable-prog-wrapper: Don't leave object files behind.
3720         * build-aux/install-reloc: Re-synchronize list of .o files to be
3721         removed with list of compilation units.
3722
3723 2011-10-20  Bruno Haible  <bruno@clisp.org>
3724
3725         openpty, posix_openpt: Remove code duplication.
3726         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
3727         * lib/openpty.c: Include <stdlib.h>.
3728         (openpty): Use posix_openpt on all platforms except IRIX.
3729         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
3730
3731 2011-10-20  Bruno Haible  <bruno@clisp.org>
3732
3733         unlockpt: Detect invalid argument.
3734         * lib/unlockpt.c: Include <fcntl.h>.
3735         (unlockpt): Check whether fd is valid, using fcntl().
3736         * modules/unlockpt (Depends-on): Add fcntl-h.
3737
3738 2011-10-20  Bruno Haible  <bruno@clisp.org>
3739
3740         openpty: Avoid compilation error on AIX 6.1.
3741         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
3742
3743 2011-10-20  Bruno Haible  <bruno@clisp.org>
3744
3745         posix_openpt: Support for OpenBSD.
3746         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
3747         (posix_openpt) [OpenBSD]: New code.
3748         * lib/grantpt.c: Include <fcntl.h>.
3749         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
3750         * modules/grantpt (Depends-on): Add fcntl-h.
3751
3752 2011-10-20  Bruno Haible  <bruno@clisp.org>
3753
3754         posix_openpt test: Coding style.
3755         * tests/test-posix_openpt.c: Use GNU coding style.
3756
3757 2011-10-20  Bruno Haible  <bruno@clisp.org>
3758
3759         grantpt: Support --avoid=pt_chown.
3760         * modules/grantpt (Files): Add lib/pty-private.h.
3761
3762 2011-10-20  Bruno Haible  <bruno@clisp.org>
3763
3764         posix_openpt: Fix autoconf macro.
3765         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
3766         unneeded check for _getpty.
3767
3768 2011-10-20  Bruno Haible  <bruno@clisp.org>
3769
3770         openpty: Update comments.
3771         * lib/openpty.c: Add comments about Minix.
3772
3773 2011-10-19  Eric Blake  <eblake@redhat.com>
3774
3775         openpty: relax license
3776         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
3777
3778         pt_chown: use configmake to simplify build
3779         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
3780
3781         ptsname and others: relax license
3782         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
3783         * modules/unlockpt (License): Likewise.
3784         * modules/pt_chown (License): Likewise.
3785         * modules/ptsname (License): Likewise.
3786         * modules/ttyname_r (License): Likewise.
3787
3788 2011-10-19  Jim Meyering  <meyering@redhat.com>
3789
3790         posix_openpt: remove spurious #endif
3791         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
3792
3793 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
3794
3795         maint.mk: Respect $(build_aux) in web-manual rule.
3796         * top/maint.mk (web-manual): Find gen-announce script in user's
3797         $(build_aux) directory instead of hard-coding 'build-aux'.
3798
3799 2011-10-19  Bruno Haible  <bruno@clisp.org>
3800
3801         posix_openpt: Fix compilation error.
3802         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
3803         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
3804         Mention the openpty module as an alternative.
3805
3806 2011-10-19  Bruno Haible  <bruno@clisp.org>
3807
3808         Support for old NeXTstep 3.3 frexp().
3809         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
3810         execution time of the test to 5 seconds.
3811         Reported by Daniel Richard G. <skunk@iskunk.org>.
3812
3813 2011-10-19  Bruno Haible  <bruno@clisp.org>
3814
3815         Support for old NeXTstep 3.3 sed.
3816         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
3817         part, use /.../, not \|...|. Escape periods in the header file name.
3818         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3819         Reported by Daniel Richard G. <skunk@iskunk.org>.
3820
3821 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3822
3823         Support for old NeXTstep 3.3 gcc.
3824         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
3825         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
3826         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
3827         * lib/spawn.in.h (_Restrict_arr_): Likewise.
3828         * lib/regex.h (_Restrict_arr_): Likewise.
3829         * lib/regex_internal.h (re_token_t): Likewise.
3830         * lib/regexec.c (check_node_accept_bytes): Likewise.
3831         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
3832
3833 2011-10-18  Eric Blake  <eblake@redhat.com>
3834
3835         posix_openpt: new module
3836         * modules/posix_openpt: New module.
3837         * m4/posix_openpt.m4: New file.
3838         * lib/posix_openpt.c: Likewise.
3839         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3840         (gl_STDLIB_H_DEFAULTS): Set defaults.
3841         * modules/stdlib (Makefile.am): Substitute macros.
3842         * lib/stdlib.in.h (posix_openpt): Declare.
3843         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
3844         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
3845         * modules/posix_openpt-tests: New test module.
3846         * tests/test-posix_openpt.c: New test.
3847
3848 2011-10-15  Bruno Haible  <bruno@clisp.org>
3849
3850         xstrtoll: Fix compilation failure.
3851         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
3852         from lib/strtol.c.
3853         * doc/posix-headers/limits.texi: Mention missing numerical limits on
3854         some platforms.
3855         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3856
3857 2011-10-15  Bruno Haible  <bruno@clisp.org>
3858
3859         vasnprintf: Optimize bit search operation.
3860         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
3861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
3862         gl_DOUBLE_EXPONENT_LOCATION.
3863         * modules/vasnprintf (Files): Add m4/exponentd.m4.
3864         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3865         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3866         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3867         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3868         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3869         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3870         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3871         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
3872
3873 2011-10-15  Bruno Haible  <bruno@clisp.org>
3874
3875         vasnprintf: Fix comments.
3876         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
3877
3878 2011-10-14  Bruno Haible  <bruno@clisp.org>
3879
3880         Tests for module 'integer_length_ll'.
3881         * modules/integer_length_ll-tests: New file.
3882         * tests/test-integer_length_ll.c: New file.
3883
3884         New module 'integer_length_ll'.
3885         * lib/integer_length_ll.c: New file.
3886         * modules/integer_length_ll: New file.
3887
3888 2011-10-14  Bruno Haible  <bruno@clisp.org>
3889
3890         Tests for module 'integer_length_l'.
3891         * modules/integer_length_l-tests: New file.
3892         * tests/test-integer_length_l.c: New file.
3893
3894         New module 'integer_length_l'.
3895         * lib/integer_length_l.c: New file.
3896         * modules/integer_length_l: New file.
3897
3898 2011-10-14  Bruno Haible  <bruno@clisp.org>
3899
3900         Tests for module 'integer_length'.
3901         * modules/integer_length-tests: New file.
3902         * tests/test-integer_length.c: New file.
3903
3904         New module 'integer_length'.
3905         * lib/integer_length.h: New file.
3906         * lib/integer_length.c: New file.
3907         * modules/integer_length: New file.
3908
3909 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3910
3911         popen: Fix dependency conditions.
3912         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
3913
3914 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3915
3916         perror: Fix autoconf test.
3917         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
3918         <stdlib.h> and <string.h>.
3919
3920 2011-10-14  Bruno Haible  <bruno@clisp.org>
3921
3922         ffsl: Optimize on 64-bit platforms.
3923         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
3924         unrolling.
3925
3926 2011-10-13  Bruno Haible  <bruno@clisp.org>
3927
3928         ffsl: Optimize on 32-bit platforms.
3929         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
3930         use ffs() without a loop.
3931
3932         ffsl, ffsll: Optimize for GCC.
3933         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
3934         * lib/ffsl.c (GCC_BUILTIN): New macro.
3935         * lib/ffsll.c (GCC_BUILTIN): Likewise.
3936
3937 2011-10-13  Bruno Haible  <bruno@clisp.org>
3938
3939         ffs, bcopy, memset: Support symbol renaming via config.h.
3940         * lib/ffs.c: Include <config.h>.
3941         * lib/bcopy.c: Likewise.
3942         * lib/memset.c: Likewise.
3943
3944 2011-10-10  Bruno Haible  <bruno@clisp.org>
3945
3946         atanl: Simplify for platforms where 'long double' == 'double'.
3947         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3948         alternative implementation.
3949         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3950         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3951         * modules/atanl (Depends-on): Add atan. Update conditions.
3952
3953 2011-10-10  Bruno Haible  <bruno@clisp.org>
3954
3955         acosl: Simplify for platforms where 'long double' == 'double'.
3956         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3957         alternative implementation.
3958         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3959         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3960         * modules/acosl (Depends-on): Add acos. Update conditions.
3961
3962 2011-10-10  Bruno Haible  <bruno@clisp.org>
3963
3964         asinl: Simplify for platforms where 'long double' == 'double'.
3965         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3966         alternative implementation.
3967         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3968         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3969         * modules/asinl (Depends-on): Add asin. Update conditions.
3970
3971 2011-10-10  Bruno Haible  <bruno@clisp.org>
3972
3973         tanl: Simplify for platforms where 'long double' == 'double'.
3974         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3975         implementation.
3976         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3977         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3978         * modules/tanl (Depends-on): Add tan. Update conditions.
3979         (configure.ac): Don't compile trigl.c if
3980         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3981
3982 2011-10-10  Bruno Haible  <bruno@clisp.org>
3983
3984         cosl: Simplify for platforms where 'long double' == 'double'.
3985         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3986         implementation.
3987         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3988         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3989         * modules/cosl (Depends-on): Add cos. Update conditions.
3990         (configure.ac): Don't compile sincosl.c and trigl.c if
3991         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3992
3993 2011-10-10  Bruno Haible  <bruno@clisp.org>
3994
3995         sinl: Simplify for platforms where 'long double' == 'double'.
3996         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3997         implementation.
3998         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3999         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4000         * modules/sinl (Depends-on): Add sin. 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         logl: Simplify for platforms where 'long double' == 'double'.
4007         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4008         implementation.
4009         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4010         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4011         * modules/logl (Depends-on): Add log. Update conditions.
4012
4013 2011-10-10  Bruno Haible  <bruno@clisp.org>
4014
4015         expl: Simplify for platforms where 'long double' == 'double'.
4016         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4017         implementation.
4018         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4019         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4020         * modules/expl (Depends-on): Add exp. Update conditions.
4021
4022 2011-10-10  Bruno Haible  <bruno@clisp.org>
4023
4024         sqrtl: Simplify for platforms where 'long double' == 'double'.
4025         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4026         alternative implementation.
4027         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4028         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4029         * modules/sqrtl (Depends-on): Update conditions.
4030
4031 2011-10-10  Bruno Haible  <bruno@clisp.org>
4032
4033         ldexpl: Simplify for platforms where 'long double' == 'double'.
4034         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4035         alternative implementation.
4036         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4037         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4038         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
4039
4040 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
4041
4042         ffsll: set correct witness
4043         * modules/ffsll (configure.ac): Fix typo.
4044
4045 2011-10-10  Bruno Haible  <bruno@clisp.org>
4046
4047         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
4048         * lib/printf-frexpl.c: Include <config.h>.
4049         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4050         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
4051         second time.
4052         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
4053         gl_LONG_DOUBLE_VS_DOUBLE.
4054         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
4055         conditions.
4056
4057 2011-10-10  Bruno Haible  <bruno@clisp.org>
4058
4059         frexpl: Simplify for platforms where 'long double' == 'double'.
4060         * lib/frexpl.c: Include <config.h>.
4061         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4062         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4063         time.
4064         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4065         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4066         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
4067         * modules/frexpl (Depends-on): Add frexp. Update conditions.
4068         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
4069         conditions.
4070
4071 2011-10-10  Jim Meyering  <meyering@redhat.com>
4072
4073         test-renameat: don't leave behind a temporary file
4074         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
4075           ERROR: files left in build directory after distclean:
4076           ./gltests/test-renameat.too
4077           make[1]: *** [distcleancheck] Error 1
4078         Reported by Tom G. Christensen.
4079
4080 2011-10-09  Bruno Haible  <bruno@clisp.org>
4081
4082         rint: Determine RINT_LIBM correctly on AIX 7.
4083         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
4084         directly, not only through a function pointer. Also accept an optional
4085         4th argument with extra code.
4086         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
4087         rintf() call by gcc when optimizing.
4088
4089         mathfunc.m4: Refactor.
4090         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
4091         m4 variable.
4092
4093 2011-10-09  Bruno Haible  <bruno@clisp.org>
4094
4095         rintl: Simplify for platforms where 'long double' == 'double'.
4096         * lib/rintl.c: Include <config.h>.
4097         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4098         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4099         time.
4100         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4101         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4102         * modules/rintl (Depends-on): Add rint. Update conditions.
4103
4104 2011-10-09  Bruno Haible  <bruno@clisp.org>
4105
4106         roundl: Simplify for platforms where 'long double' == 'double'.
4107         * lib/roundl.c: Include <config.h>.
4108         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4109         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4110         time.
4111         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4112         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4113         * modules/roundl (Depends-on): Add round. Update conditions.
4114
4115 2011-10-09  Bruno Haible  <bruno@clisp.org>
4116
4117         truncl: Simplify for platforms where 'long double' == 'double'.
4118         * lib/truncl.c: Include <config.h>.
4119         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4120         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4121         time.
4122         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4123         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4124         * modules/truncl (Depends-on): Add trunc. Update conditions.
4125
4126 2011-10-09  Bruno Haible  <bruno@clisp.org>
4127
4128         ceill: Simplify for platforms where 'long double' == 'double'.
4129         * lib/ceill.c: Include <config.h>.
4130         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4131         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4132         time.
4133         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4134         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4135         * modules/ceill (Depends-on): Add ceil. Update conditions.
4136
4137 2011-10-09  Bruno Haible  <bruno@clisp.org>
4138
4139         floorl: Simplify for platforms where 'long double' == 'double'.
4140         * lib/floorl.c: Include <config.h>.
4141         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4142         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4143         time.
4144         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4145         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4146         * modules/floorl (Depends-on): Add floor. Update conditions.
4147
4148 2011-10-09  Bruno Haible  <bruno@clisp.org>
4149
4150         rint: Fix ordering constraints.
4151         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
4152         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4153         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4154
4155 2011-10-09  Bruno Haible  <bruno@clisp.org>
4156
4157         copysignl: Simplify for platforms where 'long double' == 'double'.
4158         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4159         alternative.
4160         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4161         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4162         * modules/copysignl (Depends-on): Add copysign. Update conditions.
4163
4164 2011-10-09  Bruno Haible  <bruno@clisp.org>
4165
4166         Tests for module 'rintl'.
4167         * modules/rintl-tests: New file.
4168         * tests/test-rintl.c: New file.
4169
4170         New module 'rintl'.
4171         * lib/math.in.h (rintl): New declaration.
4172         * lib/rintl.c: New file.
4173         * m4/rintl.m4: New file.
4174         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
4175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
4176         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
4177         * modules/rintl: New file.
4178         * tests/test-math-c++.cc: Check the declaration of rintl.
4179         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4180         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
4181         * doc/posix-functions/rintl.texi: Mention the new module.
4182
4183 2011-10-09  Bruno Haible  <bruno@clisp.org>
4184
4185         Tests for module 'rintf'.
4186         * modules/rintf-tests: New file.
4187         * tests/test-rintf.c: New file.
4188
4189         New module 'rintf'.
4190         * lib/math.in.h (rintf): New declaration.
4191         * lib/rintf.c: New file.
4192         * m4/rintf.m4: New file.
4193         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
4194         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
4195         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
4196         * modules/rintf: New file.
4197         * tests/test-math-c++.cc: Check the declaration of rintf.
4198         * doc/posix-functions/rintf.texi: Mention the new module.
4199
4200 2011-10-09  Bruno Haible  <bruno@clisp.org>
4201
4202         rint: Support for MSVC.
4203         * lib/math.in.h (rint): New declaration.
4204         * lib/rint.c: New file.
4205         * m4/rint.m4: New file.
4206         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
4207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
4208         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
4209         * modules/rint (Description): Fix.
4210         (Files): Add lib/rint.c, m4/rint.m4.
4211         (Depends-on): Add math.
4212         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
4213         gl_MATH_MODULE_INDICATOR.
4214         * tests/test-math-c++.cc: Check the declaration of rint.
4215         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4216         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
4217         * doc/posix-functions/rint.texi: Mention the replacement provided by
4218         the module.
4219
4220         rint tests: More tests.
4221         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
4222         minus-zero.h, infinity.h, nan.h.
4223         (main): Skip the test if the current rounding mode is not standard. Add
4224         tests for negative numbers, minus zero, infinity, NaN.
4225         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
4226         tests/nan.h.
4227         (Depends-on): Add isnand-nolibm.
4228
4229 2011-10-09  Bruno Haible  <bruno@clisp.org>
4230
4231         Tests for module 'copysignl'.
4232         * modules/copysignl-tests: New file.
4233         * tests/test-copysignl.c: New file.
4234
4235         New module 'copysignl'.
4236         * lib/math.in.h (copysignl): New declaration.
4237         * lib/copysignl.c: New file.
4238         * m4/copysignl.m4: New file.
4239         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
4240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
4241         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
4242         HAVE_COPYSIGNL.
4243         * modules/copysignl: New file.
4244         * tests/test-math-c++.cc: Check the declaration of copysignl.
4245         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4246         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
4247         * doc/posix-functions/copysignl.texi: Mention the new module.
4248
4249 2011-10-09  Bruno Haible  <bruno@clisp.org>
4250
4251         Tests for module 'copysignf'.
4252         * modules/copysignf-tests: New file.
4253         * tests/test-copysignf.c: New file.
4254
4255         New module 'copysignf'.
4256         * lib/math.in.h (copysignf): New declaration.
4257         * lib/copysignf.c: New file.
4258         * m4/copysignf.m4: New file.
4259         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
4260         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
4261         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
4262         HAVE_COPYSIGNF.
4263         * modules/copysignf: New file.
4264         * tests/test-math-c++.cc: Check the declaration of copysignf.
4265         * doc/posix-functions/copysignf.texi: Mention the new module.
4266
4267 2011-10-09  Bruno Haible  <bruno@clisp.org>
4268
4269         Ensure that HAVE_* variables are set to 1 before they are set to 0.
4270         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
4271         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
4272         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4273         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
4274         gl_SIGNAL_H_DEFAULTS.
4275
4276 2011-10-09  Bruno Haible  <bruno@clisp.org>
4277
4278         poll: Make macro safer.
4279         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
4280         ac_cv_header_poll_h is not set.
4281
4282 2011-10-09  Bruno Haible  <bruno@clisp.org>
4283
4284         copysign: Provide replacement.
4285         * lib/math.in.h (copysign): New declaration.
4286         * lib/copysign.c: New file.
4287         * m4/copysign.m4: New file.
4288         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
4289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
4290         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
4291         HAVE_COPYSIGN.
4292         * modules/copysign (Description): Clarify.
4293         (Files): Add lib/copysign.c, m4/copysign.m4.
4294         (Depends-on): Add math, signbit.
4295         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
4296         gl_MATH_MODULE_INDICATOR.
4297         * tests/test-math-c++.cc: Check the declaration of copysign.
4298         * doc/posix-functions/copysign.texi: Mention the effects of the module
4299         on Minix and MSVC.
4300
4301 2011-10-09  Bruno Haible  <bruno@clisp.org>
4302
4303         isinf: Ensure macro on AIX 5.1.
4304         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
4305         macro.
4306         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
4307
4308 2011-10-09  Bruno Haible  <bruno@clisp.org>
4309
4310         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
4311         * modules/snprintf-posix-tests (configure.ac): Require
4312         gl_LONG_DOUBLE_VS_DOUBLE.
4313         * modules/sprintf-posix-tests (configure.ac): Likewise.
4314         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
4315         * modules/vasprintf-posix-tests (configure.ac): Likewise.
4316         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
4317         * modules/vsprintf-posix-tests (configure.ac): Likewise.
4318         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
4319         tests on platforms where 'long double' is the same as 'double'.
4320         * tests/test-sprintf-posix.h (test_function): Likewise.
4321         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4322         * tests/test-vasprintf-posix.c (test_function): Likewise.
4323
4324         *printf: Fix for platforms where 'long double' == 'double'.
4325         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
4326         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
4327         * modules/dprintf-posix (Files): Add m4/math_h.m4.
4328         * modules/fprintf-posix (Files): Likewise.
4329         * modules/obstack-printf-posix (Files): Likewise.
4330         * modules/snprintf-posix (Files): Likewise.
4331         * modules/sprintf-posix (Files): Likewise.
4332         * modules/vasnprintf (Files): Likewise.
4333         * modules/vasnprintf-posix (Files): Likewise.
4334         * modules/vasprintf-posix (Files): Likewise.
4335         * modules/vdprintf-posix (Files): Likewise.
4336         * modules/vfprintf-posix (Files): Likewise.
4337         * modules/vsnprintf-posix (Files): Likewise.
4338         * modules/vsprintf-posix (Files): Likewise.
4339         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4340         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4341         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4342         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4343         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4344         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4345         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4346
4347         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
4348         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
4349         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4350         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
4351         'long double'.
4352         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
4353
4354         isinf: Fix for platforms where 'long double' == 'double'.
4355         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4356         Don't blindly assume 80-bit 'long double'.
4357
4358         isfinite: Fix for platforms where 'long double' == 'double'.
4359         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4360         Don't blindly assume 80-bit 'long double'.
4361
4362         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
4363         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
4364         * modules/isfinite-tests (configure.ac): Require
4365         gl_LONG_DOUBLE_VS_DOUBLE.
4366         * modules/isinf-tests (configure.ac): Likewise.
4367         * modules/isnan-tests (configure.ac): Likewise.
4368         * modules/isnanl-tests (configure.ac): Likewise.
4369         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
4370         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
4371         tests on platforms where 'long double' is the same as 'double'.
4372         * tests/test-isinf.c (test_isinfl): Likewise.
4373         * tests/test-isnan.c (test_long_double): Likewise.
4374         * tests/test-isnanl.h (main): Likewise.
4375
4376 2011-10-08  Bruno Haible  <bruno@clisp.org>
4377
4378         Tests for module 'tanhf'.
4379         * modules/tanhf-tests: New file.
4380         * tests/test-tanhf.c: New file.
4381
4382         New module 'tanhf'.
4383         * lib/math.in.h (tanhf): New declaration.
4384         * lib/tanhf.c: New file.
4385         * m4/tanhf.m4: New file.
4386         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
4387         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
4388         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
4389         * modules/tanhf: New file.
4390         * tests/test-math-c++.cc: Check the declaration of tanhf.
4391         * doc/posix-functions/tanhf.texi: Mention the new module.
4392
4393         tanh: Use a .m4 file.
4394         * m4/tanh.m4: New file.
4395         * modules/tanh (Files): Add it.
4396         (configure.ac): Just invoke gl_FUNC_TANH.
4397
4398 2011-10-08  Bruno Haible  <bruno@clisp.org>
4399
4400         Tests for module 'coshf'.
4401         * modules/coshf-tests: New file.
4402         * tests/test-coshf.c: New file.
4403
4404         New module 'coshf'.
4405         * lib/math.in.h (coshf): New declaration.
4406         * lib/coshf.c: New file.
4407         * m4/coshf.m4: New file.
4408         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
4409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
4410         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
4411         * modules/coshf: New file.
4412         * tests/test-math-c++.cc: Check the declaration of coshf.
4413         * doc/posix-functions/coshf.texi: Mention the new module.
4414
4415         cosh: Use a .m4 file.
4416         * m4/cosh.m4: New file.
4417         * modules/cosh (Files): Add it.
4418         (configure.ac): Just invoke gl_FUNC_COSH.
4419
4420 2011-10-08  Bruno Haible  <bruno@clisp.org>
4421
4422         Tests for module 'sinhf'.
4423         * modules/sinhf-tests: New file.
4424         * tests/test-sinhf.c: New file.
4425
4426         New module 'sinhf'.
4427         * lib/math.in.h (sinhf): New declaration.
4428         * lib/sinhf.c: New file.
4429         * m4/sinhf.m4: New file.
4430         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
4431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
4432         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
4433         * modules/sinhf: New file.
4434         * tests/test-math-c++.cc: Check the declaration of sinhf.
4435         * doc/posix-functions/sinhf.texi: Mention the new module.
4436
4437         sinh: Use a .m4 file.
4438         * m4/sinh.m4: New file.
4439         * modules/sinh (Files): Add it.
4440         (configure.ac): Just invoke gl_FUNC_SINH.
4441
4442 2011-10-08  Bruno Haible  <bruno@clisp.org>
4443
4444         Tests for module 'atan2f'.
4445         * modules/atan2f-tests: New file.
4446         * tests/test-atan2f.c: New file.
4447
4448         New module 'atan2f'.
4449         * lib/math.in.h (atan2f): New declaration.
4450         * lib/atan2f.c: New file.
4451         * m4/atan2f.m4: New file.
4452         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
4453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
4454         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
4455         * modules/atan2f: New file.
4456         * tests/test-math-c++.cc: Check the declaration of atan2f.
4457         * doc/posix-functions/atan2f.texi: Mention the new module.
4458
4459         atan2: Use a .m4 file.
4460         * m4/atan2.m4: New file.
4461         * modules/atan2 (Files): Add it.
4462         (configure.ac): Just invoke gl_FUNC_ATAN2.
4463
4464 2011-10-08  Bruno Haible  <bruno@clisp.org>
4465
4466         Tests for module 'atanf'.
4467         * modules/atanf-tests: New file.
4468         * tests/test-atanf.c: New file.
4469
4470         New module 'atanf'.
4471         * lib/math.in.h (atanf): New declaration.
4472         * lib/atanf.c: New file.
4473         * m4/atanf.m4: New file.
4474         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
4475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
4476         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
4477         * modules/atanf: New file.
4478         * tests/test-math-c++.cc: Check the declaration of atanf.
4479         * doc/posix-functions/atanf.texi: Mention the new module.
4480
4481         atan: Use a .m4 file.
4482         * m4/atan.m4: New file.
4483         * modules/atan (Files): Add it.
4484         (configure.ac): Just invoke gl_FUNC_ATAN.
4485
4486 2011-10-08  Bruno Haible  <bruno@clisp.org>
4487
4488         Tests for module 'acosf'.
4489         * modules/acosf-tests: New file.
4490         * tests/test-acosf.c: New file.
4491
4492         New module 'acosf'.
4493         * lib/math.in.h (acosf): New declaration.
4494         * lib/acosf.c: New file.
4495         * m4/acosf.m4: New file.
4496         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
4497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
4498         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
4499         * modules/acosf: New file.
4500         * tests/test-math-c++.cc: Check the declaration of acosf.
4501         * doc/posix-functions/acosf.texi: Mention the new module.
4502
4503         acos: Use a .m4 file.
4504         * m4/acos.m4: New file.
4505         * modules/acos (Files): Add it.
4506         (configure.ac): Just invoke gl_FUNC_ACOS.
4507
4508 2011-10-08  Bruno Haible  <bruno@clisp.org>
4509
4510         Tests for module 'asinf'.
4511         * modules/asinf-tests: New file.
4512         * tests/test-asinf.c: New file.
4513
4514         New module 'asinf'.
4515         * lib/math.in.h (asinf): New declaration.
4516         * lib/asinf.c: New file.
4517         * m4/asinf.m4: New file.
4518         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
4519         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
4520         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
4521         * modules/asinf: New file.
4522         * tests/test-math-c++.cc: Check the declaration of asinf.
4523         * doc/posix-functions/asinf.texi: Mention the new module.
4524
4525         asin: Use a .m4 file.
4526         * m4/asin.m4: New file.
4527         * modules/asin (Files): Add it.
4528         (configure.ac): Just invoke gl_FUNC_ASIN.
4529
4530 2011-10-08  Bruno Haible  <bruno@clisp.org>
4531
4532         Tests for module 'tanf'.
4533         * modules/tanf-tests: New file.
4534         * tests/test-tanf.c: New file.
4535
4536         New module 'tanf'.
4537         * lib/math.in.h (tanf): New declaration.
4538         * lib/tanf.c: New file.
4539         * m4/tanf.m4: New file.
4540         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
4541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
4542         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
4543         * modules/tanf: New file.
4544         * tests/test-math-c++.cc: Check the declaration of tanf.
4545         * doc/posix-functions/tanf.texi: Mention the new module.
4546
4547         tan: Use a .m4 file.
4548         * m4/tan.m4: New file.
4549         * modules/tan (Files): Add it.
4550         (configure.ac): Just invoke gl_FUNC_TAN.
4551
4552 2011-10-08  Bruno Haible  <bruno@clisp.org>
4553
4554         Tests for module 'cosf'.
4555         * modules/cosf-tests: New file.
4556         * tests/test-cosf.c: New file.
4557
4558         New module 'cosf'.
4559         * lib/math.in.h (cosf): New declaration.
4560         * lib/cosf.c: New file.
4561         * m4/cosf.m4: New file.
4562         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
4563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
4564         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
4565         * modules/cosf: New file.
4566         * tests/test-math-c++.cc: Check the declaration of cosf.
4567         * doc/posix-functions/cosf.texi: Mention the new module.
4568
4569         cos: Use a .m4 file.
4570         * m4/cos.m4: New file.
4571         * modules/cos (Files): Add it.
4572         (configure.ac): Just invoke gl_FUNC_COS.
4573
4574 2011-10-08  Bruno Haible  <bruno@clisp.org>
4575
4576         Tests for module 'sinf'.
4577         * modules/sinf-tests: New file.
4578         * tests/test-sinf.c: New file.
4579
4580         New module 'sinf'.
4581         * lib/math.in.h (sinf): New declaration.
4582         * lib/sinf.c: New file.
4583         * m4/sinf.m4: New file.
4584         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
4585         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
4586         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
4587         * modules/sinf: New file.
4588         * tests/test-math-c++.cc: Check the declaration of sinf.
4589         * doc/posix-functions/sinf.texi: Mention the new module.
4590
4591         sin: Use a .m4 file.
4592         * m4/sin.m4: New file.
4593         * modules/sin (Files): Add it.
4594         (configure.ac): Just invoke gl_FUNC_SIN.
4595
4596 2011-10-08  Bruno Haible  <bruno@clisp.org>
4597
4598         Tests for module 'powf'.
4599         * modules/powf-tests: New file.
4600         * tests/test-powf.c: New file.
4601
4602         New module 'powf'.
4603         * lib/math.in.h (powf): New declaration.
4604         * lib/powf.c: New file.
4605         * m4/powf.m4: New file.
4606         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
4607         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
4608         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
4609         * modules/powf: New file.
4610         * tests/test-math-c++.cc: Check the declaration of powf.
4611         * doc/posix-functions/powf.texi: Mention the new module.
4612
4613         pow: Use a .m4 file.
4614         * m4/pow.m4: New file.
4615         * modules/pow (Files): Add it.
4616         (configure.ac): Just invoke gl_FUNC_POW.
4617
4618 2011-10-08  Bruno Haible  <bruno@clisp.org>
4619
4620         Tests for module 'log10f'.
4621         * modules/log10f-tests: New file.
4622         * tests/test-log10f.c: New file.
4623
4624         New module 'log10f'.
4625         * lib/math.in.h (log10f): New declaration.
4626         * lib/log10f.c: New file.
4627         * m4/log10f.m4: New file.
4628         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
4629         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
4630         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
4631         * modules/log10f: New file.
4632         * tests/test-math-c++.cc: Check the declaration of log10f.
4633         * doc/posix-functions/log10f.texi: Mention the new module.
4634
4635         log10: Use a .m4 file.
4636         * m4/log10.m4: New file.
4637         * modules/log10 (Files): Add it.
4638         (configure.ac): Just invoke gl_FUNC_LOG10.
4639
4640 2011-10-08  Bruno Haible  <bruno@clisp.org>
4641
4642         Tests for module 'logf'.
4643         * modules/logf-tests: New file.
4644         * tests/test-logf.c: New file.
4645
4646         New module 'logf'.
4647         * lib/math.in.h (logf): New declaration.
4648         * lib/logf.c: New file.
4649         * m4/logf.m4: New file.
4650         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
4651         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
4652         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
4653         * modules/logf: New file.
4654         * tests/test-math-c++.cc: Check the declaration of logf.
4655         * doc/posix-functions/logf.texi: Mention the new module.
4656
4657         log: Use a .m4 file.
4658         * m4/log.m4: New file.
4659         * modules/log (Files): Add it.
4660         (configure.ac): Just invoke gl_FUNC_LOG.
4661
4662 2011-10-08  Bruno Haible  <bruno@clisp.org>
4663
4664         Tests for module 'expf'.
4665         * modules/expf-tests: New file.
4666         * tests/test-expf.c: New file.
4667
4668         New module 'expf'.
4669         * lib/math.in.h (expf): New declaration.
4670         * lib/expf.c: New file.
4671         * m4/expf.m4: New file.
4672         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
4673         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
4674         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
4675         * modules/expf: New file.
4676         * tests/test-math-c++.cc: Check the declaration of expf.
4677         * doc/posix-functions/expf.texi: Mention the new module.
4678
4679         exp: Use a .m4 file.
4680         * m4/exp.m4: New file.
4681         * modules/exp (Files): Add it.
4682         (configure.ac): Just invoke gl_FUNC_EXP.
4683
4684 2011-10-08  Bruno Haible  <bruno@clisp.org>
4685
4686         Tests for module 'sqrtf'.
4687         * modules/sqrtf-tests: New file.
4688         * tests/test-sqrtf.c: New file.
4689
4690         New module 'sqrtf'.
4691         * lib/math.in.h (sqrtf): New declaration.
4692         * lib/sqrtf.c: New file.
4693         * m4/sqrtf.m4: New file.
4694         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
4695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
4696         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
4697         * modules/sqrtf: New file.
4698         * tests/test-math-c++.cc: Check the declaration of sqrtf.
4699         * doc/posix-functions/sqrtf.texi: Mention the new module.
4700
4701 2011-10-08  Bruno Haible  <bruno@clisp.org>
4702
4703         Tests: Avoid link failures w.r.t. libintl.
4704         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
4705         $(LIBINTL).
4706         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
4707         $(LIBINTL).
4708         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
4709         against $(LIBINTL).
4710         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
4711         $(LIBINTL).
4712         * modules/openat-tests (Makefile.am): Link test-fchmodat against
4713         $(LIBINTL).
4714         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
4715
4716 2011-10-08  Bruno Haible  <bruno@clisp.org>
4717
4718         pow tests: Defeat compiler optimizations.
4719         * tests/test-pow.c (main): Assign arguments to x and y before use.
4720
4721 2011-10-08  Bruno Haible  <bruno@clisp.org>
4722
4723         gnulib-tool: Improve last commit.
4724         * gnulib-tool (func_modules_transitive_closure): Simplify code.
4725         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
4726         ignore dependencies that are not among the modules list.
4727
4728 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
4729
4730         gnulib-tool: don't follow dependencies to avoided modules
4731         This fixes a bug that is related to the previous one.
4732         * gnulib-tool (func_modules_transitive_closure)
4733         (func_emit_autoconf_snippets):
4734         Check whether a dependency is acceptable before using it.
4735         (--extract-dependencies): Report an error if --avoid is also used,
4736         since this combination of options is not yet supported.
4737
4738         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
4739         Problem reported by Peter Dyballa in
4740         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
4741         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
4742         when echoing "$condition".
4743
4744 2011-10-07  Bruno Haible  <bruno@clisp.org>
4745
4746         Fix documentation about math functions on MacOS X.
4747         * doc/posix-functions/exp2.texi: Don't say the function is missing on
4748         MacOS X 10.5.
4749         * doc/posix-functions/fdim.texi: Likewise.
4750         * doc/posix-functions/feclearexcept.texi: Likewise.
4751         * doc/posix-functions/fegetenv.texi: Likewise.
4752         * doc/posix-functions/fegetround.texi: Likewise.
4753         * doc/posix-functions/feholdexcept.texi: Likewise.
4754         * doc/posix-functions/feraiseexcept.texi: Likewise.
4755         * doc/posix-functions/fesetenv.texi: Likewise.
4756         * doc/posix-functions/fesetround.texi: Likewise.
4757         * doc/posix-functions/fetestexcept.texi: Likewise.
4758         * doc/posix-functions/feupdateenv.texi: Likewise.
4759         * doc/posix-functions/fmax.texi: Likewise.
4760         * doc/posix-functions/fmin.texi: Likewise.
4761         * doc/posix-functions/log2.texi: Likewise.
4762         * doc/posix-functions/modff.texi: Likewise.
4763         * doc/posix-functions/nan.texi: Likewise.
4764         * doc/posix-functions/nanf.texi: Likewise.
4765         * doc/posix-functions/nextafterf.texi: Likewise.
4766         * doc/posix-functions/remquo.texi: Likewise.
4767
4768 2011-10-07  Bruno Haible  <bruno@clisp.org>
4769
4770         modff: Drop assumption about library that defines modff.
4771         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
4772         AC_CHECK_FUNCS.
4773         * modules/modff (Files): Add m4/mathfunc.m4.
4774
4775 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
4776
4777         raise tests: Avoid a GCC warning.
4778         * tests/test-raise.c (handler): Use _Noreturn.
4779
4780 2011-10-07  Bruno Haible  <bruno@clisp.org>
4781
4782         Tests for module 'ldexpf'.
4783         * modules/ldexpf-tests: New file.
4784         * tests/test-ldexpf.c: New file.
4785
4786         New module 'ldexpf'.
4787         * lib/math.in.h (ldexpf): New declaration.
4788         * lib/ldexpf.c: New file.
4789         * m4/ldexpf.m4: New file.
4790         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
4791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
4792         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
4793         * modules/ldexpf: New file.
4794         * tests/test-math-c++.cc: Check the declaration of ldexpf.
4795         * doc/posix-functions/ldexpf.texi: Mention the new module.
4796
4797 2011-10-06  Bruno Haible  <bruno@clisp.org>
4798
4799         frexpf: Work around problems on IRIX and mingw.
4800         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
4801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
4802         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
4803         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
4804         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
4805         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
4806         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
4807
4808 2011-10-06  Bruno Haible  <bruno@clisp.org>
4809
4810         fabsf: Drop assumption about library that defines fabsf.
4811         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
4812         AC_CHECK_FUNCS.
4813         * modules/fabsf (Files): Add m4/mathfunc.m4.
4814
4815 2011-10-06  Bruno Haible  <bruno@clisp.org>
4816
4817         frexpf: Drop assumption about library that defines frexpf.
4818         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
4819         'int *', 'float *', 'long double *', 'float', 'long double'.
4820         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
4821         AC_CHECK_FUNCS.
4822         * modules/frexpf (Files): Add m4/mathfunc.m4.
4823
4824         Tests for module 'frexpf'.
4825         * modules/frexpf-tests: New file.
4826         * tests/test-frexpf.c: New file.
4827
4828         New module 'frexpf'.
4829         * lib/math.in.h (frexpf): New declaration.
4830         * lib/frexpf.c: New file.
4831         * m4/frexpf.m4: New file.
4832         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
4833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
4834         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
4835         * modules/frexpf: New file.
4836         * tests/test-math-c++.cc: Check the declaration of frexpf.
4837         * doc/posix-functions/frexpf.texi: Mention the new module.
4838
4839 2011-10-06  Bruno Haible  <bruno@clisp.org>
4840
4841         math: Sort function declarations of math.in.h.
4842         * lib/math.in.h (frexp, logb): Move declarations.
4843
4844 2011-10-05  Bruno Haible  <bruno@clisp.org>
4845
4846         Tests for module 'modff'.
4847         * modules/modff-tests: New file.
4848         * tests/test-modff.c: New file.
4849
4850         New module 'modff'.
4851         * lib/math.in.h (modff): New declaration.
4852         * lib/modff.c: New file.
4853         * m4/modff.m4: New file.
4854         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
4855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
4856         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
4857         * modules/modff: New file.
4858         * tests/test-math-c++.cc: Check the declaration of modff.
4859         * doc/posix-functions/modff.texi: Mention the new module.
4860
4861         modf tests: Make test sharper.
4862         * tests/test-modf.c (main): Strengthen upper bound.
4863
4864         modf: Use a .m4 file.
4865         * m4/modf.m4: New file.
4866         * modules/modf (Files): Add it.
4867         (configure.ac): Just invoke gl_FUNC_MODF.
4868
4869 2011-10-05  Bruno Haible  <bruno@clisp.org>
4870
4871         Tests for module 'fmodf'.
4872         * modules/fmodf-tests: New file.
4873         * tests/test-fmodf.c: New file.
4874
4875         New module 'fmodf'.
4876         * lib/math.in.h (fmodf): New declaration.
4877         * lib/fmodf.c: New file.
4878         * m4/fmodf.m4: New file.
4879         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
4880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
4881         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
4882         * modules/fmodf: New file.
4883         * tests/test-math-c++.cc: Check the declaration of fmodf.
4884         * doc/posix-functions/fmodf.texi: Mention the new module.
4885
4886         fmod: Use a .m4 file.
4887         * m4/fmod.m4: New file.
4888         * modules/fmod (Files): Add it.
4889         (configure.ac): Just invoke gl_FUNC_FMOD.
4890
4891 2011-10-05  Bruno Haible  <bruno@clisp.org>
4892
4893         Tests for module 'fabsf'.
4894         * modules/fabsf-tests: New file.
4895         * tests/test-fabsf.c: New file.
4896
4897         New module 'fabsf'.
4898         * lib/math.in.h (fabsf): New declaration.
4899         * lib/fabsf.c: New file.
4900         * m4/fabsf.m4: New file.
4901         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
4902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
4903         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
4904         * modules/fabsf: New file.
4905         * tests/test-math-c++.cc: Check the declaration of fabsf.
4906         * doc/posix-functions/fabsf.texi: Mention the new module.
4907
4908         fabs: Use a .m4 file.
4909         * m4/fabs.m4: New file.
4910         * modules/fabs (Files): Add it.
4911         (configure.ac): Just invoke gl_FUNC_FABS.
4912
4913 2011-10-05  Jim Meyering  <meyering@redhat.com>
4914
4915         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
4916         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
4917         ls -lL regression introduced in coreutils-8.12, it does so at the
4918         cost of an additional stat call in the common case.  Besides, now
4919         that the kernel change that prompted commit 95f7c57f has been reverted
4920         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
4921         we have no use for commit 95f7c57f, "file-has-acl: use
4922         acl_extended_file_nofollow if available".
4923
4924 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
4925
4926         file-has-acl: revert unintended change in behavior of ls -L
4927         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
4928         derived from...
4929         (file_has_acl): ...code here.  Call it.
4930         This problem was introduced with 2011-07-22 commit 95f7c57f,
4931         "file-has-acl: use acl_extended_file_nofollow if available".
4932         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
4933
4934 2011-10-03  Bruno Haible  <bruno@clisp.org>
4935
4936         poll: Avoid link errors on MSVC.
4937         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
4938         * modules/poll (Depends-on): Add sockets.
4939         (Link): New section.
4940         * NEWS: Mention the change.
4941         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
4942         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
4943         $(LIB_POLL) instead of $(LIBSOCKET).
4944
4945 2011-10-03  Bruno Haible  <bruno@clisp.org>
4946
4947         sys_select tests: Fix link error on MSVC 9.
4948         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
4949         with $(LIB_SELECT) instead of $(LIBSOCKET).
4950
4951 2011-10-03  Bruno Haible  <bruno@clisp.org>
4952
4953         sys_select: Fix compilation error on mingw.
4954         * lib/sys_select.in.h: On native Windows, include <io.h>.
4955
4956 2011-10-03  Bruno Haible  <bruno@clisp.org>
4957
4958         wmemset: Support for MSVC.
4959         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
4960         whether wmemset() exists.
4961
4962 2011-10-03  Bruno Haible  <bruno@clisp.org>
4963
4964         wmemmove: Support for MSVC.
4965         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
4966         whether wmemmove() exists.
4967
4968 2011-10-03  Bruno Haible  <bruno@clisp.org>
4969
4970         wmemcpy: Support for MSVC.
4971         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
4972         whether wmemcpy() exists.
4973
4974 2011-10-03  Bruno Haible  <bruno@clisp.org>
4975
4976         wmemcmp: Support for MSVC.
4977         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
4978         whether wmemcmp() exists.
4979
4980 2011-10-03  Bruno Haible  <bruno@clisp.org>
4981
4982         wmemchr: Support for MSVC.
4983         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
4984         whether wmemchr() exists.
4985
4986 2011-10-03  Bruno Haible  <bruno@clisp.org>
4987
4988         glthread/*, strsignal: Support for MSVC.
4989         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
4990         including <winsock.h> on MSVC 9.
4991         * lib/glthread/lock.h: Likewise.
4992         * lib/glthread/thread.h: Likewise.
4993         * lib/glthread/tls.h: Likewise.
4994         * lib/glthread/yield.h: Likewise.
4995         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
4996         if HAVE_UNISTD_H is false.
4997         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
4998
4999 2011-10-03  Bruno Haible  <bruno@clisp.org>
5000
5001         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
5002         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
5003         Set to 100000.
5004
5005 2011-10-03  Bruno Haible  <bruno@clisp.org>
5006
5007         acl: Fix specification.
5008         * lib/file-has-acl.c (file_has_acl): Fix specification.
5009
5010 2011-10-03  Bruno Haible  <bruno@clisp.org>
5011
5012         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
5013         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
5014         (compute_curr_prefix, shared_library_fullname,
5015         find_shared_library_fullname, get_shared_library_fullname, relocate):
5016         Use it together with PIC && INSTALLDIR.
5017         Reported by <jojelino@gmail.com>
5018         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
5019
5020 2011-10-01  Jim Meyering  <meyering@redhat.com>
5021
5022         maint.mk: adjust a release-related rule not to require use of gzip
5023         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
5024         Instead, check each file in $(DIST_ARCHIVES).  This is better for
5025         projects that build only .tar.xz files.  Also fix an erroneous test.
5026
5027         test-linkat: don't leave behind a temporary file
5028         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
5029         Otherwise, coreutils' "make distcheck" would fail with this:
5030           Only in /c/cu/tests/torture/coreutils/test/\
5031             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
5032           make[2]: *** [my-distcheck] Error 1
5033
5034         float, math: add omitted file
5035         * lib/itold.c: Add file, required for yesterday's float change.
5036
5037 2011-10-01  Bruno Haible  <bruno@clisp.org>
5038
5039         isinf: Fix for OpenBSD/x86.
5040         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
5041         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
5042         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
5043
5044 2011-10-01  Bruno Haible  <bruno@clisp.org>
5045
5046         isfinite: Fix syntax error in configure test.
5047         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
5048
5049         isfinite: Fix typo.
5050         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
5051         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
5052
5053 2011-10-01  Bruno Haible  <bruno@clisp.org>
5054
5055         nonblocking tests: Fix test failure on Linux/IA-64.
5056         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
5057         Set to 270000.
5058
5059 2011-10-01  Bruno Haible  <bruno@clisp.org>
5060
5061         mkfifoat tests: Fix a test failure on mingw.
5062         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
5063         with error ENOSYS.
5064
5065 2011-09-30  Bruno Haible  <bruno@clisp.org>
5066
5067         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
5068         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
5069         'long double'. Set REPLACE_ITOLD.
5070         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
5071         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
5072         * lib/itold.c: New file.
5073         * modules/float (Files): Add lib/itold.c.
5074         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
5075         (Makefile.am): Substitute REPLACE_ITOLD.
5076         * modules/math (Depends-on): Add float.
5077         (Makefile.am): Substitute REPLACE_ITOLD.
5078         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
5079         * doc/posix-headers/math.texi: Likewise.
5080         * doc/posix-functions/logl.texi: Likewise.
5081
5082 2011-09-30  Bruno Haible  <bruno@clisp.org>
5083
5084         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
5085         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
5086         Set to 140000.
5087
5088 2011-09-30  Bruno Haible  <bruno@clisp.org>
5089
5090         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
5091         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
5092         invocation, say "right after AC_PROG_CC_STDC", not "right after
5093         AC_PROG_CC".
5094         Reported by Gary V. Vaughan <gary@gnu.org>.
5095
5096 2011-09-30  Bruno Haible  <bruno@clisp.org>
5097
5098         Centralize C99 requirement.
5099         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
5100         * modules/stdarg (configure.ac-early): Invoke it instead of
5101         AC_PROG_CC_STDC.
5102         Reported by Gary V. Vaughan and Paul Eggert.
5103
5104 2011-09-29  Bruno Haible  <bruno@clisp.org>
5105
5106         float: Fix LDBL_MAX value on Linux/PowerPC.
5107         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
5108         on Linux/PowerPC.
5109         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
5110         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
5111         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
5112         platform.
5113         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
5114
5115 2011-09-29  Bruno Haible  <bruno@clisp.org>
5116
5117         doc: Improve doc about gl_EARLY.
5118         * doc/gnulib-tool.texi (Initial import): Mention where to place an
5119         AC_PROG_CC_STDC invocation.
5120         Reported by Gary V. Vaughan <gary@gnu.org>.
5121
5122 2011-09-28  Bruno Haible  <bruno@clisp.org>
5123
5124         fgetc, fputc, fread, fwrite tests: Fix link error.
5125         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
5126         on non-MSVC platforms.
5127         * tests/test-fputc.c (main): Likewise.
5128         * tests/test-fread.c (main): Likewise.
5129         * tests/test-fwrite.c (main): Likewise.
5130         Reported by Jim Meyering.
5131
5132 2011-09-27  Bruno Haible  <bruno@clisp.org>
5133
5134         fputc, fwrite tests: Avoid test failure on MSVC.
5135         * tests/test-fgetc.c: Include msvc-inval.h.
5136         (main): Invoke gl_msvc_inval_ensure_handler.
5137         * tests/test-fputc.c: Include msvc-inval.h.
5138         (main): Invoke gl_msvc_inval_ensure_handler.
5139         * tests/test-fread.c: Include msvc-inval.h.
5140         (main): Invoke gl_msvc_inval_ensure_handler.
5141         * tests/test-fwrite.c: Include msvc-inval.h.
5142         (main): Invoke gl_msvc_inval_ensure_handler.
5143         * modules/fgetc-tests (Depends-on): Add msvc-inval.
5144         * modules/fputc-tests (Depends-on): Likewise.
5145         * modules/fread-tests (Depends-on): Likewise.
5146         * modules/fwrite-tests (Depends-on): Likewise.
5147
5148 2011-09-27  Bruno Haible  <bruno@clisp.org>
5149
5150         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
5151         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
5152         (raise): Remove older, duplicated declaration.
5153         (_gl_raise_SIGPIPE): New declaration.
5154         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
5155         (rpl_raise): Remove function.
5156         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
5157         a gnulib-defined SIGPIPE here.
5158         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
5159         'sigprocmask' has detected missing signal-blocking and the module
5160         'sigpipe' is enabled.
5161         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5162
5163 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
5164
5165         base64-tests: avoid memory leak
5166         * tests/test-base64.c (main): Plug memory leak.
5167
5168         base32: new module
5169         * modules/base32: New module.
5170         * lib/base32.c: New file.
5171         * lib/base32.h: Likewise.
5172         * m4/base32.m4: Likewise.
5173         * modules/base32-tests: New test.
5174         * tests/test-base32.c: Likewise.
5175         * MODULES.html.sh (Misc): Mention it.
5176
5177 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5178
5179         gnulib: use more-standard license notice wording
5180         * gnulib-tool (func_emit_copyright_notice): When emitting a
5181         license notice into a file, use the standard wording as suggested
5182         by the current information for GNU maintainers, except say "file"
5183         rather than "program".  The new wording gives a license version
5184         number, which addresses an issue raised by Glenn Morris in
5185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
5186         * m4/onceonly.m4: Use that same wording here, too.
5187
5188         dup2: minor simplification
5189         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
5190         as lib/dup2.c no longer uses 'inline'.
5191
5192 2011-09-25  Bruno Haible  <bruno@clisp.org>
5193
5194         strings: Fix compilation error on MSVC.
5195         * lib/strings.in.h: Include <stddef.h> for size_t.
5196
5197 2011-09-25  Bruno Haible  <bruno@clisp.org>
5198
5199         fflush et al.: Document limitation on MSVC.
5200         * doc/posix-functions/fflush.texi: Document possible crash in handling
5201         mode other than DEFAULT_HANDLING.
5202         * doc/posix-functions/fgetc.texi: Likewise.
5203         * doc/posix-functions/fputc.texi: Likewise.
5204         * doc/posix-functions/fread.texi: Likewise.
5205         * doc/posix-functions/fwrite.texi: Likewise.
5206
5207 2011-09-25  Bruno Haible  <bruno@clisp.org>
5208
5209         msvc-inval: Allow three invalid parameter handling modes.
5210         * lib/msvc-inval.h: Don't include <stdlib.h> here.
5211         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
5212         macros.
5213         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
5214         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
5215         SANE_LIBRARY_HANDLING as a no-op.
5216         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
5217         <stdlib.h>.
5218         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
5219
5220 2011-09-25  Bruno Haible  <bruno@clisp.org>
5221
5222         msvc-inval: Make handler multithread-safe.
5223         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
5224         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
5225         declarations.
5226         (gl_msvc_inval_current): New declaration.
5227         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5228         Operate on the structure returned by gl_msvc_inval_current().
5229         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
5230         Remove varaiables.
5231         (tls_index, tls_initialized): New variables.
5232         (not_per_thread): New variable.
5233         (gl_msvc_inval_current): New function.
5234         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
5235         returned by gl_msvc_inval_current().
5236
5237 2011-09-25  Bruno Haible  <bruno@clisp.org>
5238
5239         msvc-inval: Install handler globally.
5240         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
5241         !_MSC_VER.
5242         (gl_msvc_invalid_parameter_handler): Remove declaration.
5243         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
5244         declarations.
5245         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5246         Install the handler globally, don't uninstall it.
5247         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
5248         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
5249         currently valid, call RaiseException instead.
5250         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
5251         for !_MSC_VER.
5252
5253 2011-09-25  Bruno Haible  <bruno@clisp.org>
5254
5255         strerror_r-posix: Fix for MSVC 9.
5256         * lib/strerror_r.c (local_snprintf): New function.
5257         (snprintf): Define to local_snprintf, not to _snprintf.
5258
5259 2011-09-25  Bruno Haible  <bruno@clisp.org>
5260
5261         ftruncate: Support for MSVC 9.
5262         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
5263         (chsize_nothrow): New function.
5264         (chsize): Redefine as a macro.
5265         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
5266         * modules/ftruncate (Depends-on): Add msvc-inval.
5267
5268 2011-09-25  Bruno Haible  <bruno@clisp.org>
5269
5270         New module 'fstat'.
5271         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
5272         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
5273         * lib/fchdir.c (rpl_fstat): Remove function.
5274         * m4/fstat.m4: New file.
5275         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
5276         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
5277         declared.
5278         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
5279         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
5280         * modules/fstat: New file.
5281         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
5282         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
5283         is set.
5284         * doc/posix-functions/fstat.texi: Mention the new module and the
5285         problem on MSVC.
5286         * NEWS: Mention the change.
5287         * modules/acl (Depends-on): Add fstat.
5288         * modules/chdir-safer (Depends-on): Likewise.
5289         * modules/chown (Depends-on): Likewise.
5290         * modules/copy-file (Depends-on): Likewise.
5291         * modules/fchdir (Depends-on): Likewise.
5292         * modules/fdopendir (Depends-on): Likewise.
5293         * modules/fopen (Depends-on): Likewise.
5294         * modules/fts (Depends-on): Likewise.
5295         * modules/getcwd (Depends-on): Likewise.
5296         * modules/isapipe (Depends-on): Likewise.
5297         * modules/linkat (Depends-on): Likewise.
5298         * modules/lseek (Depends-on): Likewise.
5299         * modules/mkdir-p (Depends-on): Likewise.
5300         * modules/open (Depends-on): Likewise.
5301         * modules/openat (Depends-on): Likewise.
5302         * modules/read-file (Depends-on): Likewise.
5303         * modules/renameat (Depends-on): Likewise.
5304         * modules/utimens (Depends-on): Likewise.
5305
5306 2011-09-25  Bruno Haible  <bruno@clisp.org>
5307
5308         linkat: Fix compilation on MSVC 9.
5309         * lib/linkat.c: Don't include <stdint.h>.
5310
5311 2011-09-25  Bruno Haible  <bruno@clisp.org>
5312
5313         fclose: Support for MSVC 9.
5314         * lib/fclose.c: Include msvc-inval.h.
5315         (fclose_nothrow): New function.
5316         (rpl_fclose): Use it.
5317         * modules/fclose (Depends-on): Add msvc-inval.
5318         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
5319
5320 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
5321
5322         dup2: minor simplifications
5323         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
5324         that it's a performance win.
5325         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
5326         ! defined __CYGWIN__)" to "ifdef F_GETFL".
5327
5328 2011-09-24  Jim Meyering  <meyering@redhat.com>
5329
5330         test-futimens: avoid a warning from gcc -Wshadow
5331         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
5332         to avoid a shadowing warning.
5333
5334 2011-09-24  Bruno Haible  <bruno@clisp.org>
5335
5336         fdopen: Support for MSVC 9.
5337         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
5338         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
5339         * lib/fdopen.c: Include msvc-inval.h.
5340         (fdopen_nothrow): New function.
5341         (rpl_fdopen): Use it.
5342         * modules/fdopen (Depends-on): Add msvc-inval.
5343         * modules/fclose-tests (Depends-on): Add fdopen.
5344         * modules/fflush-tests (Depends-on): Likewise.
5345         * modules/fgetc-tests (Depends-on): Likewise.
5346         * modules/fputc-tests (Depends-on): Likewise.
5347         * modules/fread-tests (Depends-on): Likewise.
5348         * modules/freopen-tests (Depends-on): Likewise.
5349         * modules/fseeko-tests (Depends-on): Likewise.
5350         * modules/ftello-tests (Depends-on): Likewise.
5351         * modules/fwrite-tests  (Depends-on): Likewise.
5352         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
5353
5354 2011-09-24  Bruno Haible  <bruno@clisp.org>
5355
5356         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
5357         * modules/fgetc-tests (Depends-on): Add unistd.
5358         * modules/fputc-tests (Depends-on): Likewise.
5359         * modules/fread-tests (Depends-on): Likewise.
5360         * modules/fwrite-tests (Depends-on): Likewise.
5361
5362 2011-09-24  Bruno Haible  <bruno@clisp.org>
5363
5364         dup: Simplify autoconf test.
5365         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
5366         on gl_MSVC_INVAL's result.
5367
5368 2011-09-24  Bruno Haible  <bruno@clisp.org>
5369
5370         Tests for function fwrite().
5371         * modules/fwrite-tests: New file.
5372         * tests/test-fwrite.c: New file.
5373         * modules/stdio-tests (Depends-on): Add fwrite-tests.
5374
5375         Tests for function fread().
5376         * modules/fread-tests: New file.
5377         * tests/test-fread.c: New file.
5378         * modules/stdio-tests (Depends-on): Add fread-tests.
5379
5380         Activate fputc tests.
5381         * modules/stdio-tests (Depends-on): Add fputc-tests.
5382
5383         Enhance fgetc, fputc tests.
5384         * tests/test-fgetc.c (main): Also test the stream's error indicator.
5385         * tests/test-fputc.c (main): Likewise.
5386
5387 2011-09-24  Bruno Haible  <bruno@clisp.org>
5388
5389         write: Support for MSVC 9.
5390         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5391         is not 1.
5392         * lib/write.c (write_nothrow): New function.
5393         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
5394         not 1. Use write_nothrow.
5395         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
5396         invalid parameter handler.
5397         (gl_PREREQ_WRITE): New macro.
5398         * modules/write (Depends-on): Add msvc-inval.
5399         (configure.ac): Invoke gl_PREREQ_WRITE.
5400         * doc/posix-functions/write.texi: Mention the problem on MSVC.
5401
5402 2011-09-24  Bruno Haible  <bruno@clisp.org>
5403
5404         read: Fix last commit.
5405         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
5406
5407 2011-09-24  Bruno Haible  <bruno@clisp.org>
5408
5409         dup2: Fix last commit.
5410         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
5411         (rpl_dup2): Disable fcntl workaround on native Windows.
5412
5413         sigprocmask: Make code safer.
5414         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
5415         section that changes macro definitions for this compilation unit.
5416
5417 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5418
5419         dup2: clarify by coalescing Windows-specific material
5420         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
5421         "msvc-nothrow.h"' to the Windows-specific section, so that the
5422         Emacs source need not contain these include files.
5423         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
5424         Windows-specific fixes into this function rather than just the
5425         nothrow fix, as this shortens and clarifies the code.  Always
5426         define as a function, as that's a bit cleaner than having it be
5427         sometimes a function and sometimes a macro.
5428         (rpl_dup2): Move the Windows-specific stuff out of here and into
5429         ms_windows_dup2.  Don't protect the Haiku-related fix with
5430         "#if !defined __linux__", as the same code also works around
5431         a Linux kernel bug, and it doesn't add any system calls on any
5432         platform.  Add comment about FreeBSD 6.1.
5433
5434         sigprocmask: move #include directive
5435         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
5436         Windows-specific section, so that the Emacs source need not
5437         contain msvc-inval.h.
5438
5439 2011-09-23  Bruno Haible  <bruno@clisp.org>
5440
5441         read: Support for MSVC 9.
5442         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5443         is not 1.
5444         * lib/read.c (read_nothrow): New function.
5445         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
5446         read_nothrow.
5447         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
5448         invalid parameter handler.
5449         (gl_PREREQ_READ): New macro.
5450         * modules/read (Depends-on): Add msvc-inval.
5451         (configure.ac): Invoke gl_PREREQ_READ.
5452         * doc/posix-functions/read.texi: Mention the problem on MSVC.
5453
5454 2011-09-23  Bruno Haible  <bruno@clisp.org>
5455
5456         close: Support for MSVC 9.
5457         * lib/close.c: Include <errno.h>, msvc-inval.h.
5458         (close_nothrow): New function.
5459         (rpl_close): Use it.
5460         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
5461         invalid parameter handler.
5462         * modules/close (Depends-on): Add msvc-inval.
5463         * modules/dup2-tests (Depends-on): Add close.
5464         * modules/dup3-tests (Depends-on): Likewise.
5465         * modules/fcntl-tests (Depends-on): Likewise.
5466         * modules/spawn-pipe-tests (Depends-on): Likewise.
5467         * modules/unistd-safer-tests (Depends-on): Likewise.
5468         * doc/posix-functions/close.texi: Mention the problem on MSVC.
5469
5470 2011-09-23  Bruno Haible  <bruno@clisp.org>
5471
5472         New module 'dup'.
5473         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
5474         Allow replacement.
5475         * lib/dup.c: New file.
5476         * lib/fchdir.c (rpl_dup): Remove function.
5477         * m4/dup.m4: New file.
5478         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
5479         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
5480         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
5481         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
5482         * modules/dup: New file.
5483         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
5484         'dup' module is in use.
5485         * modules/fdopendir (Depends-on): Add dup.
5486         * modules/fdutimensat-tests (Depends-on): Likewise.
5487         * modules/fts (Depends-on): Likewise.
5488         * modules/futimens-tests (Depends-on): Likewise.
5489         * modules/posix_spawnp-tests (Depends-on): Likewise.
5490         * modules/unistd-safer-tests (Depends-on): Likewise.
5491         * modules/utimens-tests (Depends-on): Likewise.
5492         * doc/posix-functions/dup.texi: Mention the new module and the problem
5493         on MSVC.
5494
5495 2011-09-23  Bruno Haible  <bruno@clisp.org>
5496
5497         getdtablesize: Support for MSVC 9.
5498         * lib/getdtablesize.c: Include msvc-inval.h.
5499         (_setmaxstdio_nothrow): New function.
5500         (_setmaxstdio): Redefine it.
5501         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
5502         * modules/getdtablesize (Depends-on): Add msvc-inval.
5503         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
5504
5505 2011-09-23  Bruno Haible  <bruno@clisp.org>
5506
5507         signal-h: Rename from signal.
5508         * modules/signal-h: Renamed from modules/signal.
5509         * modules/pthread_sigmask (Depends-on): Update.
5510         * modules/raise (Depends-on): Likewise.
5511         * modules/sigaction (Depends-on): Likewise.
5512         * modules/sigpipe (Depends-on): Likewise.
5513         * modules/sigprocmask (Depends-on): Likewise.
5514         * modules/sys_select (Depends-on): Likewise.
5515         * modules/signal-h-tests: Renamed from modules/signal-tests.
5516         (Files, Depends-on, Makefile.am): Update.
5517         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
5518         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
5519         (Files, Makefile.am): Update.
5520         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
5521         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
5522         * modules/signal: New placeholder file.
5523         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
5524         * doc/posix-headers/signal.texi: Update.
5525         * NEWS: Mention the change.
5526
5527 2011-09-23  Bruno Haible  <bruno@clisp.org>
5528
5529         sigprocmask: Avoid crashes through signal() on MSVC 9.
5530         * lib/sigprocmask.c: Include msvc-inval.h.
5531         (signal_nothrow): New function.
5532         (signal): Redefine it.
5533         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
5534         * modules/sigprocmask (Depends-on): Add msvc-inval.
5535         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
5536
5537 2011-09-23  Bruno Haible  <bruno@clisp.org>
5538
5539         Tests for module 'raise'.
5540         * modules/raise-tests: New file.
5541         * tests/test-raise.c: New file.
5542
5543         raise: Support for MSVC.
5544         * lib/signal.in.h (raise): New declaration.
5545         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
5546         for native Windows platforms.
5547         * m4/raise.m4: New file.
5548         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
5549         HAVE_RAISE, REPLACE_RAISE.
5550         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
5551         REPLACE_RAISE.
5552         * modules/raise (Status, Notice): Remove fields.
5553         (Files): Add m4/raise.m4.
5554         (Depends-on): Add signal, msvc-inval.
5555         (configure.ac): Use the common idioms.
5556         (Maintainer): Add me.
5557         * tests/test-signal-c++.cc: Check the signature of raise.
5558         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
5559
5560 2011-09-23  Bruno Haible  <bruno@clisp.org>
5561
5562         pipe2: Fix compilation on pre-C99 compilers.
5563         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
5564
5565 2011-09-23  Bruno Haible  <bruno@clisp.org>
5566
5567         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
5568         * lib/msvc-nothrow.h: New file.
5569         * lib/msvc-nothrow.c: New file.
5570         * m4/msvc-nothrow.m4: New file.
5571         * modules/msvc-nothrow: New file.
5572         * lib/dup2.c: Include msvc-nothrow.h.
5573         (rpl_dup2): No need to protect _get_osfhandle call here.
5574         * lib/accept4.c: Include msvc-nothrow.h.
5575         * lib/error.c: Likewise.
5576         * lib/fcntl.c: Likewise.
5577         * lib/lseek.c: Likewise.
5578         * lib/nonblocking.c: Likewise.
5579         * lib/poll.c: Likewise.
5580         * lib/read.c: Likewise.
5581         * lib/select.c: Likewise.
5582         * lib/sockets.h: Likewise.
5583         * lib/sockets.c: Likewise.
5584         * lib/stdio-read.c: Likewise.
5585         * lib/stdio-write.c: Likewise.
5586         * lib/write.c: Likewise.
5587         * lib/w32sock.h: Likewise.
5588         * lib/w32spawn.h: Likewise.
5589         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
5590         * lib/fsync.c: Likewise.
5591         * lib/isapipe.c: Likewise.
5592         * modules/dup2 (Depends-on): Add msvc-nothrow.
5593         * modules/accept4 (Depends-on): Likewise.
5594         * modules/error (Depends-on): Likewise.
5595         * modules/fcntl (Depends-on): Likewise.
5596         * modules/lseek (Depends-on): Likewise.
5597         * modules/nonblocking (Depends-on): Likewise.
5598         * modules/poll (Depends-on): Likewise.
5599         * modules/read (Depends-on): Likewise.
5600         * modules/select (Depends-on): Likewise.
5601         * modules/sockets (Depends-on): Likewise.
5602         * modules/sigpipe (Depends-on): Likewise.
5603         * modules/write (Depends-on): Likewise.
5604         * modules/accept (Depends-on): Likewise.
5605         * modules/bind (Depends-on): Likewise.
5606         * modules/connect (Depends-on): Likewise.
5607         * modules/gethostname (Depends-on): Likewise.
5608         * modules/getpeername (Depends-on): Likewise.
5609         * modules/getsockname (Depends-on): Likewise.
5610         * modules/getsockopt (Depends-on): Likewise.
5611         * modules/ioctl (Depends-on): Likewise.
5612         * modules/listen (Depends-on): Likewise.
5613         * modules/recv (Depends-on): Likewise.
5614         * modules/recvfrom (Depends-on): Likewise.
5615         * modules/send (Depends-on): Likewise.
5616         * modules/sendto (Depends-on): Likewise.
5617         * modules/setsockopt (Depends-on): Likewise.
5618         * modules/shutdown (Depends-on): Likewise.
5619         * modules/socket (Depends-on): Likewise.
5620         * modules/execute (Depends-on): Likewise.
5621         * modules/spawn-pipe (Depends-on): Likewise.
5622         * modules/flock (Depends-on): Likewise.
5623         * modules/fsync (Depends-on): Likewise.
5624         * modules/isapipe (Depends-on): Likewise.
5625         * tests/test-cloexec.c: Include msvc-nothrow.h.
5626         * tests/test-dup-safer.c: Likewise.
5627         * tests/test-dup2.c: Likewise.
5628         * tests/test-dup3.c: Likewise.
5629         * tests/test-fcntl.c: Likewise.
5630         * tests/test-pipe.c: Likewise.
5631         * tests/test-pipe2.c: Likewise.
5632         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
5633         * modules/unistd-safer-tests (Depends-on): Likewise.
5634         * modules/dup2-tests (Depends-on): Likewise.
5635         * modules/dup3-tests (Depends-on): Likewise.
5636         * modules/fcntl-tests (Depends-on): Likewise.
5637         * modules/pipe-posix-tests (Depends-on): Likewise.
5638         * modules/pipe2-tests (Depends-on): Likewise.
5639
5640 2011-09-23  Bruno Haible  <bruno@clisp.org>
5641
5642         dup2: Make code more maintainable.
5643         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
5644         (rpl_dup2): Use it.
5645         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
5646         * modules/dup2 (configure.ac): Invoke it.
5647         Reported by Paul Eggert.
5648
5649 2011-09-23  Bruno Haible  <bruno@clisp.org>
5650
5651         msvc-inval: Fix compilation error.
5652         * lib/msvc-inval.h: Include <excpt.h>.
5653
5654 2011-09-23  Bruno Haible  <bruno@clisp.org>
5655
5656         mkdir: Tweak for MSVC 9.
5657         * lib/sys_stat.in.h: Update comments.
5658         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
5659
5660         Tests for module 'chdir'.
5661         * modules/chdir-tests: New file.
5662         * tests/test-chdir.c: New file.
5663
5664         New module 'chdir'.
5665         * modules/chdir: New file.
5666         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
5667         (chdir): New declaration.
5668         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
5669         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
5670         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
5671         * tests/test-unistd-c++.cc: Check signature of chdir.
5672         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
5673         * modules/chdir-long (Depends-on): Add chdir.
5674         * modules/fchdir (Depends-on): Likewise.
5675         * modules/rename (Depends-on): Likewise.
5676         * modules/savewd (Depends-on): Likewise.
5677
5678         rmdir: Support for mingw, MSVC 9.
5679         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
5680         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
5681
5682         getcwd: Tweak for MSVC 9.
5683         * lib/unistd.in.h: Update comments.
5684         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
5685
5686 2011-09-22  Bruno Haible  <bruno@clisp.org>
5687
5688         strerror_r-posix: Avoid a link error on MSVC.
5689         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
5690         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
5691
5692 2011-09-22  Bruno Haible  <bruno@clisp.org>
5693
5694         select: Avoid link errors on MSVC.
5695         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
5696         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
5697         * modules/pselect (Link): Likewise.
5698         * NEWS: Mention the change.
5699         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
5700         test-select-stdin against $(LIB_SELECT).
5701         * modules/pselect-tests (Makefile.am): Link test-pselect against
5702         $(LIB_SELECT).
5703
5704 2011-09-22  Bruno Haible  <bruno@clisp.org>
5705
5706         select: Avoid compilation error on MSVC.
5707         * lib/select.c: Don't include <stdbool.h>.
5708
5709 2011-09-21  Bruno Haible  <bruno@clisp.org>
5710
5711         Consolidate all uses of PATH_MAX in *.m4 files.
5712         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
5713         macros.
5714         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
5715         and gl_PATHMAX_SNIPPET.
5716         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5717         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5718         * modules/chdir-long (Files): Add m4/pathmax.m4.
5719         * modules/getcwd (Files): Likewise.
5720
5721 2011-09-21  Bruno Haible  <bruno@clisp.org>
5722
5723         ftruncate: Un-deprecate, concentrate on Win32 support.
5724         * modules/ftruncate (Status, Notice): Remove sections.
5725         (Depends-on): Add largefile.
5726         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
5727         non-mingw platforms.
5728         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
5729         include <io.h>.
5730         * modules/perror-tests (Depends-on): Add ftruncate.
5731         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
5732         'ftruncate' module.
5733
5734 2011-09-21  Bruno Haible  <bruno@clisp.org>
5735
5736         Add dependencies to new dirent related modules.
5737         * modules/opendir (Depends-on): Add closedir.
5738         * modules/getcwd (Depends-on): Add opendir, closedir.
5739         * modules/dirent-safer-tests (Depends-on): Likewise.
5740         * modules/fdopendir-tests (Depends-on): Likewise.
5741         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
5742         * modules/renameat-tests (Depends-on): Likewise.
5743
5744 2011-09-21  Bruno Haible  <bruno@clisp.org>
5745
5746         opendir: Avoid compilation error on mingw.
5747         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
5748         * modules/opendir (Depends-on): Add unistd.
5749
5750 2011-09-21  Bruno Haible  <bruno@clisp.org>
5751
5752         ftruncate tests: Avoid a test failure on mingw.
5753         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
5754
5755 2011-09-21  Bruno Haible  <bruno@clisp.org>
5756
5757         select tests: Avoid test failures on OSF/1 5.1 and mingw.
5758         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
5759         native Windows.
5760
5761 2011-09-21  Bruno Haible  <bruno@clisp.org>
5762
5763         New module 'fdopen'.
5764         * lib/stdio.in.h (fdopen): New declaration.
5765         * lib/fdopen.c: New file.
5766         * m4/fdopen.m4: New file.
5767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
5768         REPLACE_FDOPEN.
5769         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
5770         REPLACE_FDOPEN.
5771         * modules/fdopen: New file.
5772         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
5773         * tests/test-stdio-c++.cc: Check signature of fdopen.
5774         * doc/posix-functions/fdopen.texi: Mention the new module.
5775
5776 2011-09-21  Bruno Haible  <bruno@clisp.org>
5777
5778         unlockpt tests: Avoid test failure on NetBSD 5.1.
5779         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
5780         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
5781
5782 2011-09-21  Bruno Haible  <bruno@clisp.org>
5783
5784         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
5785         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
5786         * tests/test-getlogin_r.c (main): Likewise.
5787
5788 2011-09-20  Bruno Haible  <bruno@clisp.org>
5789
5790         time tests: Don't require pid_t.
5791         * doc/posix-headers/time.texi: Revert last change.
5792         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
5793         * tests/test-time.c: Comment out the check for pid_t.
5794
5795 2011-09-20  Bruno Haible  <bruno@clisp.org>
5796
5797         fsync tests: Avoid a test failure on mingw.
5798         * tests/test-fsync.c (main): Allow a failure with EIO.
5799
5800 2011-09-20  Bruno Haible  <bruno@clisp.org>
5801
5802         euidaccess: Update comments.
5803         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
5804
5805 2011-09-20  Bruno Haible  <bruno@clisp.org>
5806
5807         Ensure EBADF returns for socket functions on mingw.
5808         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
5809         descriptor is invalid.
5810         * lib/bind.c (rpl_bind): Likewise.
5811         * lib/connect.c (rpl_connect): Likewise.
5812         * lib/getpeername.c (rpl_getpeername): Likewise.
5813         * lib/getsockname.c (rpl_getsockname): Likewise.
5814         * lib/getsockopt.c (rpl_getsockopt): Likewise.
5815         * lib/listen.c (rpl_listen): Likewise.
5816         * lib/recv.c (rpl_recv): Likewise.
5817         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5818         * lib/send.c (rpl_send): Likewise.
5819         * lib/sendto.c (rpl_sendto): Likewise.
5820         * lib/setsockopt.c (rpl_setsockopt): Likewise.
5821         * lib/shutdown.c (rpl_shutdown): Likewise.
5822
5823 2011-09-20  Bruno Haible  <bruno@clisp.org>
5824
5825         select tests: EBADF tests.
5826         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
5827         test_bad_fd): New functions.
5828         (test_function): Invoke also test_bad_fd.
5829
5830 2011-09-20  Bruno Haible  <bruno@clisp.org>
5831
5832         Tests for module 'posix_spawn_file_actions_addopen.
5833         * modules/posix_spawn_file_actions_addopen-tests: New file.
5834         * tests/test-posix_spawn_file_actions_addopen.c: New file.
5835
5836         Tests for module 'posix_spawn_file_actions_adddup2'.
5837         * modules/posix_spawn_file_actions_adddup2-tests: New file.
5838         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
5839
5840         Tests for module 'posix_spawn_file_actions_addclose'.
5841         * modules/posix_spawn_file_actions_addclose-tests: New file.
5842         * tests/test-posix_spawn_file_actions_addclose.c: New file.
5843
5844 2011-09-20  Bruno Haible  <bruno@clisp.org>
5845
5846         Tests for module 'unlockpt'.
5847         * modules/unlockpt-tests: New file.
5848         * tests/test-unlockpt.c: New file.
5849         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
5850
5851         Tests for module 'grantpt'.
5852         * modules/grantpt-tests: New file.
5853         * tests/test-grantpt.c: New file.
5854         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
5855
5856 2011-09-20  Bruno Haible  <bruno@clisp.org>
5857
5858         freopen tests: EBADF tests.
5859         * tests/test-freopen.c: Include errno.h, unistd.h.
5860         (main): Add tests for EBADF, commented out for the moment.
5861
5862         fclose tests: EBADF tests.
5863         * tests/test-fclose.c (main): Add tests for EBADF.
5864
5865         fflush tests: EBADF tests.
5866         * tests/test-fflush.c: Include errno.h, macros.h.
5867         (main): Add tests for EBADF.
5868
5869         ftello tests: EBADF tests.
5870         * tests/test-ftello4.sh: New file.
5871         * tests/test-ftello4.c: New file.
5872         * modules/ftello-tests (Files): Add them.
5873         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
5874
5875         fseeko tests: EBADF tests.
5876         * tests/test-fseeko4.sh: New file.
5877         * tests/test-fseeko4.c: New file.
5878         * modules/fseeko-tests (Files): Add them.
5879         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
5880
5881         Tests for function fputc().
5882         * modules/fputc-tests: New file.
5883         * tests/test-fputc.c: New file.
5884         * modules/stdio-tests (Depends-on): Add fputc-tests.
5885
5886         Tests for function fgetc().
5887         * modules/fgetc-tests: New file.
5888         * tests/test-fgetc.c: New file.
5889         * modules/stdio-tests (Depends-on): Add fgetc-tests.
5890
5891         Tests for function fdopen().
5892         * modules/fdopen-tests: New file.
5893         * tests/test-fdopen.c: New file.
5894         * modules/stdio-tests (Depends-on): Add fdopen-tests.
5895
5896         Tests for module 'vdprintf'.
5897         * modules/vdprintf-tests: New file.
5898         * tests/test-vdprintf.c: New file.
5899
5900         Tests for module 'dprintf'.
5901         * modules/dprintf-tests: New file.
5902         * tests/test-dprintf.c: New file.
5903
5904 2011-09-20  Bruno Haible  <bruno@clisp.org>
5905
5906         Tests for module 'ioctl'.
5907         * modules/ioctl-tests: New file.
5908         * tests/test-ioctl.c: New file.
5909
5910 2011-09-20  Bruno Haible  <bruno@clisp.org>
5911
5912         fcntl tests: EBADF tests.
5913         * tests/test-fcntl.c (main): Add more tests for EBADF.
5914
5915 2011-09-20  Bruno Haible  <bruno@clisp.org>
5916
5917         utimensat tests: EBADF tests.
5918         * tests/test-utimensat.c (main): Add tests for EBADF.
5919
5920         renameat tests: EBADF tests.
5921         * tests/test-renameat.c (main): Add tests for EBADF.
5922
5923         mkfifoat tests: EBADF tests.
5924         * tests/test-mkfifoat.c (main): Add tests for EBADF.
5925
5926         readlinkat tests: EBADF tests.
5927         * tests/test-readlinkat.c (main): Add tests for EBADF.
5928
5929         symlinkat tests: EBADF tests.
5930         * tests/test-symlinkat.c (main): Add tests for EBADF.
5931
5932         linkat tests: EBADF tests.
5933         * tests/test-linkat.c (main): Add tests for EBADF.
5934
5935         Tests for module 'faccessat'.
5936         * modules/faccessat-tests: New file.
5937         * tests/test-faccessat.c: New file.
5938
5939         fdopendir tests: EBADF tests.
5940         * tests/test-fdopendir.c (main): Add more tests for EBADF.
5941
5942         openat tests: EBADF tests.
5943         * tests/test-fchownat.c (main): Add tests for EBADF.
5944         * tests/test-fstatat.c (main): Likewise.
5945         * tests/test-mkdirat.c (main): Likewise.
5946         * tests/test-openat.c (main): Likewise.
5947         * tests/test-unlinkat.c (main): Likewise.
5948         * tests/test-fchmodat.c: New file.
5949         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
5950         (Makefile.am): Also run 'test-fchmodat'.
5951
5952 2011-09-20  Bruno Haible  <bruno@clisp.org>
5953
5954         utimens, futimens, fdutimensat tests: EBADF tests.
5955         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
5956
5957         Tests for function fstat().
5958         * modules/fstat-tests: New file.
5959         * tests/test-fstat.c: New file.
5960         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
5961
5962 2011-09-20  Bruno Haible  <bruno@clisp.org>
5963
5964         test-ttyname_r tests: EBADF tests.
5965         * tests/test-ttyname_r.c (main): Add tests for EBADF.
5966
5967         Tests for module 'isatty'.
5968         * modules/isatty-tests: New file.
5969         * tests/test-isatty.c: New file.
5970
5971         Tests for module 'write'.
5972         * modules/write-tests: New file.
5973         * tests/test-write.c: New file.
5974
5975         Tests for module 'read'.
5976         * modules/read-tests: New file.
5977         * tests/test-read.c: New file.
5978
5979         pwrite tests: EBADF tests.
5980         * tests/test-pwrite.c (main): Add tests for EBADF.
5981
5982         pread tests: EBADF tests.
5983         * tests/test-pread.c (main): Add tests for EBADF.
5984
5985         lseek tests: EBADF tests.
5986         * tests/test-lseek.c (main): Add more tests for EBADF.
5987
5988         Tests for module 'ftruncate'.
5989         * modules/ftruncate-tests: New file.
5990         * tests/test-ftruncate.sh: New file.
5991         * tests/test-ftruncate.c: New file.
5992
5993         fsync tests: EBADF tests.
5994         * tests/test-fsync.c (main): Add more tests for EBADF.
5995
5996         fdatasync tests: EBADF tests.
5997         * tests/test-fdatasync.c (main): Add more tests for EBADF.
5998
5999         Tests for module 'fchown'.
6000         * modules/fchown-tests: New file.
6001         * tests/test-fchown.c: New file.
6002
6003         Tests for module 'fchmod'.
6004         * modules/fchmod-tests: New file.
6005         * tests/test-fchmod.c: New file.
6006
6007         fchdir tests: EBADF tests.
6008         * tests/test-fchdir.c (main): Add more tests for EBADF.
6009
6010         dup2 tests: EBADF tests.
6011         * tests/test-dup2.c (main): Add more tests for EBADF.
6012
6013         Tests for module 'dup'.
6014         * modules/dup-tests: New file.
6015         * tests/test-dup.c: New file.
6016
6017         Tests for module 'close'.
6018         * modules/close-tests: New file.
6019         * tests/test-close.c: New file.
6020
6021 2011-09-20  Bruno Haible  <bruno@clisp.org>
6022
6023         Tests for module 'shutdown'.
6024         * modules/shutdown-tests: New file.
6025         * tests/test-shutdown.c: New file.
6026
6027         Tests for module 'setsockopt'.
6028         * modules/setsockopt-tests: New file.
6029         * tests/test-setsockopt.c: New file.
6030
6031         Tests for module 'sendto'.
6032         * modules/sendto-tests: New file.
6033         * tests/test-sendto.c: New file.
6034
6035         Tests for module 'send'.
6036         * modules/send-tests: New file.
6037         * tests/test-send.c: New file.
6038
6039         Tests for module 'recvfrom'.
6040         * modules/recvfrom-tests: New file.
6041         * tests/test-recvfrom.c: New file.
6042
6043         Tests for module 'recv'.
6044         * modules/recv-tests: New file.
6045         * tests/test-recv.c: New file.
6046
6047         Tests for module 'listen'.
6048         * modules/listen-tests: New file.
6049         * tests/test-listen.c: New file.
6050
6051         Tests for module 'getsockopt'.
6052         * modules/getsockopt-tests: New file.
6053         * tests/test-getsockopt.c: New file.
6054
6055         Tests for module 'getsockname'.
6056         * modules/getsockname-tests: New file.
6057         * tests/test-getsockname.c: New file.
6058
6059         Tests for module 'getpeername'.
6060         * modules/getpeername-tests: New file.
6061         * tests/test-getpeername.c: New file.
6062
6063         Tests for module 'connect'.
6064         * modules/connect-tests: New file.
6065         * tests/test-connect.c: New file.
6066
6067         Tests for module 'bind'.
6068         * modules/bind-tests: New file.
6069         * tests/test-bind.c: New file.
6070
6071         accept4 tests: Fix for native Windows.
6072         * tests/test-accept4.c: Include sockets.h.
6073         (main): Invoke gl_sockets_startup.
6074         * modules/accept4-tests (Depends-on): Add sockets.
6075
6076         accept tests: Fix for native Windows.
6077         * tests/test-accept.c: Include sockets.h.
6078         (main): Invoke gl_sockets_startup.
6079         * modules/accept-tests (Depends-on): Add sockets.
6080
6081 2011-09-19  Bruno Haible  <bruno@clisp.org>
6082
6083         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
6084         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
6085         do...while(0).
6086         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
6087         Suggested by Paul Eggert.
6088
6089 2011-09-19  Bruno Haible  <bruno@clisp.org>
6090
6091         sched: Ensure pid_t is defined.
6092         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
6093         not define pid_t.
6094         * lib/sched.in.h: Include <sys/types.h>.
6095         * doc/posix-headers/sched.texi: Mention the pid_t problem.
6096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6097
6098 2011-09-19  Bruno Haible  <bruno@clisp.org>
6099
6100         msvc-inval: Ensure the entire expansion is a single statement.
6101         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
6102         of braces.
6103
6104 2011-09-19  Jim Meyering  <meyering@redhat.com>
6105
6106         tests: use printf, not echo in init.sh's warn_ function
6107         * tests/init.sh (warn_): Use printf, not echo.  The latter would
6108         misbehave when given strings containing a backslash or starting
6109         with e.g., -n.  James Youngman suggested setting IFS.
6110
6111 2011-09-19  Eric Blake  <eblake@redhat.com>
6112
6113         futimens: enhance test
6114         * tests/test-futimens.h (test_futimens): Also check for EBADF on
6115         closed non-negative fd.
6116
6117         date: accept 'hence' as opposite of 'ago'
6118         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
6119         * tests/test-parse-datetime.c (main): Enhance test.
6120         Suggested by Jesse Wilson.
6121
6122 2011-09-19  Jim Meyering  <meyering@redhat.com>
6123
6124         getcwd: don't fail in a deep directory on a system without openat
6125         Before this change, getcwd would fail when called from a directory
6126         of depth PATH_MAX / 3 or greater.  That was due to the fact that
6127         the non-openat implementation used "..", "../..", "../../..", etc.
6128         to access ancestor directories.  With too many, that string would
6129         be longer than PATH_MAX.
6130         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
6131         using gnulib's openat replacement.
6132         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
6133         we're using the replacement function.
6134
6135 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
6136
6137         maint.mk: avoid warnings from perl about missing files
6138         * top/maint.mk (def_sym_regex): Ignore files listed in
6139         $(gl_other_headers_) that do not exist, say because a project
6140         does not use a corresponding module.
6141
6142 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6143
6144         stat: use pathmax.h only if needed
6145         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
6146         This is better for Emacs, which does not have a mingw port and
6147         therefore can avoid the pathmax module.
6148
6149         utimens: remove dependency on dup2
6150         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
6151         to work around the Linux kernel bug.
6152         * modules/utimens (Depends-on): Remove dup2.
6153
6154 2011-09-18  Bruno Haible  <bruno@clisp.org>
6155
6156         inet_ntop, inet_pton: Look for it also in libresolv.
6157         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
6158         libnsl, search for it in libresolv.
6159         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6160         Needed on Solaris 7.
6161
6162 2011-09-18  Bruno Haible  <bruno@clisp.org>
6163
6164         accept, accept4 tests: Avoid link error on Solaris.
6165         * modules/accept-tests (Makefile.am): Link test-accept against
6166         $(LIBSOCKET).
6167         * modules/accept4-tests (Makefile.am): Link test-accept4 against
6168         $(LIBSOCKET).
6169
6170         accept4: Avoid link error on Solaris.
6171         * modules/accept4 (Link): New section.
6172
6173         socket functions: Avoid link errors on Solaris.
6174         * modules/accept (Depends-on): Add socketlib.
6175         (Link): New section.
6176         * modules/bind (Depends-on): Add socketlib.
6177         (Link): New section.
6178         * modules/connect (Depends-on): Add socketlib.
6179         (Link): New section.
6180         * modules/getpeername (Depends-on): Add socketlib.
6181         (Link): New section.
6182         * modules/getsockname (Depends-on): Add socketlib.
6183         (Link): New section.
6184         * modules/getsockopt (Depends-on): Add socketlib.
6185         (Link): New section.
6186         * modules/listen (Depends-on): Add socketlib.
6187         (Link): New section.
6188         * modules/recv (Depends-on): Add socketlib.
6189         (Link): New section.
6190         * modules/recvfrom (Depends-on): Add socketlib.
6191         (Link): New section.
6192         * modules/send (Depends-on): Add socketlib.
6193         (Link): New section.
6194         * modules/sendto (Depends-on): Add socketlib.
6195         (Link): New section.
6196         * modules/setsockopt (Depends-on): Add socketlib.
6197         (Link): New section.
6198         * modules/shutdown (Depends-on): Add socketlib.
6199         (Link): New section.
6200         * modules/socket (Depends-on): Add socketlib.
6201         (Link): New section.
6202
6203 2011-09-18  Bruno Haible  <bruno@clisp.org>
6204
6205         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
6206         * tests/test-ptsname.c (main): Terminate the test if it takes longer
6207         than 5 seconds.
6208         * modules/ptsname-tests (configure.ac): Test for alarm.
6209
6210 2011-09-18  Bruno Haible  <bruno@clisp.org>
6211
6212         posix_spawn_file_actions_add*: Fix module dependencies.
6213         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
6214         posix_spawn_file_actions_init.
6215         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
6216         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
6217
6218 2011-09-18  Bruno Haible  <bruno@clisp.org>
6219
6220         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
6221         * tests/test-rename.h (test_rename): Allow error code EEXIST.
6222         * tests/test-renameat.c (main): Likewise.
6223
6224 2011-09-18  Bruno Haible  <bruno@clisp.org>
6225
6226         Tests for module 'accept4'.
6227         * modules/accept4-tests: New file.
6228         * tests/test-accept4.c: New file.
6229
6230 2011-09-18  Bruno Haible  <bruno@clisp.org>
6231
6232         Tests for module 'accept'.
6233         * modules/accept-tests: New file.
6234         * tests/test-accept.c: New file.
6235
6236 2011-09-18  Bruno Haible  <bruno@clisp.org>
6237
6238         dup2: Support for MSVC.
6239         * lib/dup2.c: Include msvc-inval.h.
6240         (rpl_dup2): Handle invalid parameter notifications during dup2 and
6241         _get_osfhandle calls.
6242         * modules/dup2 (Depends-on): Add msvc-inval.
6243         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
6244
6245         New module 'msvc-inval'.
6246         * lib/msvc-inval.h: New file.
6247         * lib/msvc-inval.c: New file.
6248         * m4/msvc-inval.m4: New file.
6249         * modules/msvc-inval: New file.
6250
6251 2011-09-17  Bruno Haible  <bruno@clisp.org>
6252
6253         Tests for module 'pclose'.
6254         * modules/pclose-tests: New file.
6255
6256         New module 'pclose'.
6257         * lib/stdio.in.h (pclose): New declaration.
6258         * lib/pclose.c: New file.
6259         * m4/pclose.m4: New file.
6260         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
6261         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
6262         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
6263         * modules/pclose: New file.
6264         * modules/popen-tests (Depends-on): Add pclose.
6265         * modules/popen-safer-tests (Depends-on): Likewise.
6266         * doc/posix-functions/pclose.texi: Mention the new module.
6267
6268 2011-09-17  Bruno Haible  <bruno@clisp.org>
6269
6270         popen: Support for MSVC.
6271         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
6272         * lib/popen.c (popen): Provide alternate definition for native Windows.
6273         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
6274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
6275         * modules/popen (Depends-on, configure.ac): Update condition.
6276         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
6277         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
6278         fixed.
6279
6280 2011-09-17  Bruno Haible  <bruno@clisp.org>
6281
6282         isnanl, isnand, isnanf: Work around MSVC bug.
6283         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
6284
6285 2011-09-17  Bruno Haible  <bruno@clisp.org>
6286
6287         sys_socket tests: Fix recent mistake.
6288         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
6289
6290 2011-09-17  Bruno Haible  <bruno@clisp.org>
6291
6292         putenv: Support for MSVC.
6293         * modules/putenv (Depends-on): Add environ.
6294         * lib/putenv.c (environ): Disable declaration.
6295         * lib/unistd.in.h: Update comment.
6296
6297 2011-09-17  Bruno Haible  <bruno@clisp.org>
6298
6299         math: Avoid macro redefinition warnings on MSVC.
6300         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
6301         Undefine before redefining.
6302
6303 2011-09-17  Bruno Haible  <bruno@clisp.org>
6304
6305         doc: Mention functions which are declared as macros.
6306         * doc/posix-functions/*[fl].texi: Mention that some functions are
6307         defined as macros with arguments only.
6308
6309 2011-09-17  Bruno Haible  <bruno@clisp.org>
6310
6311         Add dependencies to new dirent related modules.
6312         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
6313         * modules/fts (Depends-on): Likewise.
6314         * modules/glob (Depends-on): Likewise.
6315         * modules/savedir (Depends-on): Likewise.
6316         * modules/scandir (Depends-on): Likewise.
6317         * modules/dirent-safer (Depends-on): Add opendir, closedir.
6318         * modules/fdopendir (Depends-on): Add opendir.
6319
6320 2011-09-17  Bruno Haible  <bruno@clisp.org>
6321
6322         inet_pton: Support for MSVC on Windows Vista or newer.
6323         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
6324         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
6325         HAVE_DECL_INET_PTON is defined.
6326         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6327         On platforms with <winsock2.h>, test whether inet_pton is declared in
6328         <ws2tcpip.h>. If so, arrange to replace it.
6329         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6330         REPLACE_INET_PTON.
6331         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
6332         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
6333         (Depends-on, configure.ac): Update condition.
6334         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
6335
6336 2011-09-17  Bruno Haible  <bruno@clisp.org>
6337
6338         inet_ntop: Support for MSVC on Windows Vista or newer.
6339         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
6340         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
6341         HAVE_DECL_INET_NTOP is defined.
6342         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6343         On platforms with <winsock2.h>, test whether inet_ntop is declared in
6344         <ws2tcpip.h>. If so, arrange to replace it.
6345         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6346         REPLACE_INET_NTOP.
6347         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
6348         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
6349         (Depends-on, configure.ac): Update condition.
6350         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
6351
6352 2011-09-16  Eric Blake  <eblake@redhat.com>
6353
6354         test-fsync: yet another enhancement
6355         * tests/test-fsync.c (main): Also test behavior on read-only text
6356         file.
6357
6358 2011-09-16  Bruno Haible  <bruno@clisp.org>
6359
6360         Enhance fsync, fdatasync tests.
6361         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
6362         * tests/test-fdatasync.c (main): Likewise.
6363
6364 2011-09-16  Bruno Haible  <bruno@clisp.org>
6365
6366         Support for MSVC compiler: Ensure mode_t gets defined.
6367         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
6368         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6369         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6370         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
6371         * tests/test-fcntl-h.c: Check that mode_t is defined.
6372         * tests/test-sys_stat.c: Likewise.
6373         * tests/test-sys_types.c: Likewise.
6374         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
6375         * doc/posix-headers/sys_stat.texi: Likewise.
6376         * doc/posix-headers/sys_types.texi: Likewise.
6377
6378 2011-09-16  Bruno Haible  <bruno@clisp.org>
6379
6380         sys_stat: Support for MSVC.
6381         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
6382         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
6383         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
6384         MSVC.
6385
6386 2011-09-16  Bruno Haible  <bruno@clisp.org>
6387
6388         Support for MSVC compiler: Ensure off_t gets defined.
6389         * lib/unistd.in.h: Include <sys/types.h>.
6390         * tests/test-fcntl-h.c: Check that off_t is defined.
6391         * tests/test-sys_stat.c: Likewise.
6392         * tests/test-sys_types.c: Likewise.
6393
6394 2011-09-16  Eric Blake  <eblake@redhat.com>
6395
6396         fdatasync: port to Solaris
6397         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
6398         * modules/fdatasync (Link): Document it.
6399         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
6400
6401         fdatasync: port to MacOS X 10.7
6402         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
6403         declared.
6404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
6405         * modules/unistd (Makefile.am): Substitute it.
6406         * lib/unistd.in.h (fdatasync): Declare on MacOS.
6407         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
6408
6409         fdatasync: minor improvements
6410         * modules/fdatasync (Depends-on): Add condition for fsync.
6411         * lib/fdatasync.c (fdatasync): Add comment.
6412         * tests/test-unistd-c++.cc: Test fdatasync.
6413
6414         unistd: update refs to newer POSIX
6415         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
6416         Suggested by Bruno Haible.
6417
6418         fdatasync: new module
6419         * modules/fsync (Description): Document difference to fdatasync.
6420         * modules/fdatasync: New module.
6421         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
6422         * lib/fdatasync.c (fdatasync): Likewise.
6423         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
6424         defaults.
6425         * modules/unistd (Makefile.am): Set witnesses.
6426         * lib/unistd.in.h (fdatasync): Declare.
6427         * MODULES.html.sh: Document it.
6428         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
6429         * modules/fdatasync-tests: New test.
6430         * tests/test-fdatasync.c: Likewise.
6431
6432 2011-09-16  Eric Blake  <eblake@redhat.com>
6433
6434         test-fsync: enhance tests
6435         * modules/fsync-tests (Depends-on): Add errno, for mingw.
6436         * tests/test-fsync.c (main): Enhance test.
6437
6438 2011-09-15  Bruno Haible  <bruno@clisp.org>
6439
6440         Support for MSVC compiler: Ensure ssize_t gets defined.
6441         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
6442         * doc/posix-headers/stdio.texi: Likewise.
6443         * modules/stdio (Depends-on): Add ssize_t.
6444         * modules/sys_socket (Depends-on): Likewise.
6445         * modules/sys_types (Depends-on): Likewise.
6446         * modules/sys_uio (Depends-on): Likewise.
6447         * modules/unistd (Depends-on): Likewise.
6448         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
6449         * tests/test-sys_types.c: Check that ssize_t is defined.
6450
6451 2011-09-14  Bruno Haible  <bruno@clisp.org>
6452
6453         Avoid using #, the m4 comment starter character, near brackets.
6454         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
6455         delimiter character in sed expressions.
6456         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6457         Suggested by Eric Blake.
6458
6459         Properly quote AC_CHECK_DECLS' 4th argument.
6460         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
6461         argument.
6462         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6463         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6464         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6465         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6466         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6467         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
6468         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
6469         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
6470         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
6471         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6472         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
6473         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6474         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6475         * m4/isinf.m4 (gl_ISINF): Likewise.
6476         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6477         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6478         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6479         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6480         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6481         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6482         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6483         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6484         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
6485         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6486         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6487         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
6489         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6490         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6491         Reported by Eric Blake.
6492
6493         Properly quote AC_CHECK_DECL's 4th argument.
6494         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
6495         argument.
6496         * m4/argp.m4 (gl_ARGP): Likewise.
6497         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6498         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6499         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6500         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6501         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
6502         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
6503         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6504         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6505         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6506         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6507         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6508         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6509         Reported by Eric Blake.
6510
6511 2011-09-14  Eric Blake  <eblake@redhat.com>
6512
6513         opendir: avoid compile warning
6514         * lib/opendir.c (includes): Always include errno.h.
6515         Reported by Tatsuro MATSUOKA.
6516
6517 2011-09-14  Jim Meyering  <meyering@redhat.com>
6518
6519         maint.mk: sc_tight_scope: propagate failure from sub-make
6520         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
6521         Reported by Martin von Gagern.
6522
6523 2011-09-13  Bruno Haible  <bruno@clisp.org>
6524
6525         tempname: Support for MSVC.
6526         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
6527         MSVC.
6528         * modules/tempname (Depends-on): Add fcntl-h.
6529
6530 2011-09-13  Bruno Haible  <bruno@clisp.org>
6531
6532         sys_time: Support for MSVC.
6533         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
6534         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
6535         include <winsock2.h>.
6536         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
6537         function declarations that collide with POSIX.
6538         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
6539         (Makefile.am): Substitute HAVE_WINSOCK2_H.
6540
6541 2011-09-13  Bruno Haible  <bruno@clisp.org>
6542
6543         stat: Support for MSVC.
6544         * lib/stat.c: Include pathmax.h.
6545         * modules/stat (Depends-on): Add pathmax.
6546
6547         pathmax: Support for native Windows.
6548         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
6549
6550 2011-09-12  Bruno Haible  <bruno@clisp.org>
6551
6552         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
6553         * lib/dirent.in.h (struct dirent): New type.
6554         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
6555         DT_WHT): New macros.
6556         (DIR): New type.
6557         (opendir, closedir): Declare only if the module 'opendir' is enabled.
6558         (readdir, rewinddir): New declarations.
6559         * lib/dirent-private.h: New file.
6560         * lib/opendir.c: New file.
6561         * lib/readdir.c: New file.
6562         * lib/rewinddir.c: New file.
6563         * lib/closedir.c: New file.
6564         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
6565         * m4/opendir.m4: New file.
6566         * m4/readdir.m4: New file.
6567         * m4/rewinddir.m4: New file.
6568         * m4/closedir.m4: New file.
6569         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
6570         REPLACE_CLOSEDIR here.
6571         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
6572         readdir, rewinddir are declared.
6573         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
6574         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
6575         HAVE_REWINDDIR, HAVE_CLOSEDIR.
6576         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
6577         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
6578         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
6579         * modules/opendir: New file.
6580         * modules/readdir: New file.
6581         * modules/rewinddir: New file.
6582         * modules/closedir: New file.
6583         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
6584         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
6585         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
6586         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
6587         * NEWS: Mention the 'fchdir' change.
6588
6589 2011-09-11  Bruno Haible  <bruno@clisp.org>
6590
6591         asm-underscore.m4: Support for MSVC.
6592         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
6593         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
6594
6595 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
6596
6597         Doc about crypt functions.
6598         * doc/posix-functions/crypt.texi: Expand range of glibc versions
6599         needing for _GNU_SOURCE to get crypt.
6600         * doc/posix-functions/encrypt.texi: Likewise.
6601         * doc/posix-functions/setkey.texi: Likewise.
6602
6603 2011-09-11  Bruno Haible  <bruno@clisp.org>
6604
6605         doc: Update regarding MSVC 9.
6606         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
6607         tested".
6608         * doc/posix-functions/*.texi: Update with info about MSVC 9.
6609         * doc/posix-headers/*.texi: Likewise.
6610         * doc/pastposix-functions/*.texi: Likewise.
6611         * doc/glibc-functions/*.texi: Likewise.
6612         * doc/glibc-headers/*.texi: Likewise.
6613
6614 2011-09-11  Bruno Haible  <bruno@clisp.org>
6615
6616         unistd et al.: Don't assume <unistd.h> exists.
6617         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
6618         does not exist.
6619         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
6620         exist. But include <stdlib.h>.
6621         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
6622         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
6623         symlink() does not exist.
6624         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
6625         include <io.h> instead.
6626         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
6627         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
6628         include <direct.h> instead.
6629         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6630         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6631         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
6632         <io.h> instead.
6633         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
6634         correctly if the system does not have hard links.
6635         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
6636         <direct.h> instead.
6637         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
6638         it when looking for function declarations.
6639         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
6640         <direct.h> and <io.h> instead.
6641         * doc/posix-headers/unistd.texi: More details about MSVC problem.
6642
6643 2011-09-11  Bruno Haible  <bruno@clisp.org>
6644
6645         strcase: Support for MSVC.
6646         * modules/strcase (Status, Notice): Remove obsoletion mark.
6647         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
6648         * doc/posix-functions/strncasecmp.texi: Likewise.
6649
6650         strings: Don't assume <strings.h> exists.
6651         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
6652         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
6653         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
6654         * doc/posix-headers/strings.texi: Mention the MSVC problem.
6655
6656 2011-09-11  Bruno Haible  <bruno@clisp.org>
6657
6658         dirent: Don't assume <dirent.h> exists.
6659         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
6660         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
6661         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
6662         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
6663
6664 2011-09-11  Bruno Haible  <bruno@clisp.org>
6665
6666         Fix wint_t on MSVC.
6667         * lib/wchar.in.h (wint_t): On MSVC, override it.
6668         * lib/wctype.in.h (wint_t): Likewise.
6669         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
6670         MSVC.
6671         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
6672         * doc/posix-headers/wctype.texi: Likewise.
6673
6674 2011-09-11  Bruno Haible  <bruno@clisp.org>
6675
6676         sys_types: Fix typo.
6677         * lib/sys_types.in.h: Fix typo in comment.
6678         Reported by Paul Eggert.
6679
6680         Support for MSVC compiler: Ensure size_t gets defined.
6681         * modules/strings (Depends-on): Add 'sys_types'.
6682         * modules/sys_uio (Depends-on): Likewise.
6683         * lib/sys_uio.in.h: Update comment.
6684
6685         C++ tests for module 'sys_types'.
6686         * modules/sys_types-c++-tests: New file.
6687         * tests/test-sys_types-c++.cc: New file.
6688
6689         Tests for module 'sys_types'.
6690         * modules/sys_types-tests: New file.
6691         * tests/test-sys_types.c: New file.
6692
6693         New module 'sys_types'.
6694         * lib/sys_types.in.h: New file.
6695         * m4/sys_types_h.m4: New file.
6696         * modules/sys_types: New file.
6697         * doc/posix-headers/sys_types.texi: Mention the new module and the
6698         size_t problem on MSVC 9.
6699
6700 2011-09-11  Bruno Haible  <bruno@clisp.org>
6701
6702         Support for MSVC compiler: Avoid division by a literal 0.
6703         * lib/math.in.h (NAN): Define through a function call also on MSVC.
6704         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
6705         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
6706         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
6707         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
6708         * tests/infinity.h: New file.
6709         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
6710         on MSVC.
6711         * tests/test-ceilf1.c: Include infinity.h.
6712         (main): Use Infinityf.
6713         * tests/test-ceil1.c: Include infinity.h.
6714         (main): Use Infinityd.
6715         * tests/test-ceill.c: Include infinity.h.
6716         (main): Use Infinityl.
6717         * tests/test-dprintf-posix.c: Include infinity.h.
6718         (test_function): Use Infinityd.
6719         * tests/test-floorf1.c: Include infinity.h.
6720         (main): Use Infinityf.
6721         * tests/test-floor1.c: Include infinity.h.
6722         (main): Use Infinityd.
6723         * tests/test-floorl.c: Include infinity.h.
6724         (main): Use Infinityl.
6725         * tests/test-fprintf-posix.c: Include infinity.h.
6726         (test_function): Use Infinityd.
6727         * tests/test-frexp.c: Include infinity.h.
6728         (main): Use Infinityd.
6729         * tests/test-frexpl.c: Include infinity.h.
6730         (main): Use Infinityl.
6731         * tests/test-isfinite.c: Include infinity.h.
6732         (test_isfinitef): Use Infinityf.
6733         (test_isfinited): Use Infinityd.
6734         (test_isfinitel): Use Infinityl.
6735         * tests/test-isinf.c: Include infinity.h.
6736         (test_isinff): Use Infinityf.
6737         (test_isinfd): Use Infinityd.
6738         (test_isinfl): Use Infinityl.
6739         * tests/test-isnan.c: Include infinity.h.
6740         (test_float): Use Infinityf.
6741         (test_double): Use Infinityd.
6742         (test_long_double): Use Infinityl.
6743         * tests/test-isnanf.h: Include infinity.h.
6744         (main): Use Infinityf.
6745         * tests/test-isnand.h: Include infinity.h.
6746         (main): Use Infinityd.
6747         * tests/test-isnanl.h: Include infinity.h.
6748         (main): Use Infinityl.
6749         * tests/test-ldexpl.c: Include infinity.h.
6750         (main): Use Infinityl.
6751         * tests/test-printf-posix.h: Include infinity.h.
6752         (test_function): Use Infinityd.
6753         * tests/test-roundf1.c: Include infinity.h.
6754         (main): Use Infinityf.
6755         * tests/test-round1.c: Include infinity.h.
6756         (main): Use Infinityd.
6757         * tests/test-roundl.c: Include infinity.h.
6758         (main): Use Infinityl.
6759         * tests/test-signbit.c: Include infinity.h.
6760         (test_signbitf): Use Infinityf.
6761         (test_signbitd): Use Infinityd.
6762         (test_signbitl): Use Infinityl.
6763         * tests/test-snprintf-posix.h: Include infinity.h.
6764         (test_function): Use Infinityd, Infinityl.
6765         * tests/test-sprintf-posix.h: Include infinity.h.
6766         (test_function): Use Infinityd, Infinityl.
6767         * tests/test-truncf1.c: Include infinity.h.
6768         (main): Use Infinityf.
6769         * tests/test-trunc1.c: Include infinity.h.
6770         (main): Use Infinityd.
6771         * tests/test-truncl.c: Include infinity.h.
6772         (main): Use Infinityl.
6773         * tests/test-vasnprintf-posix.c: Include infinity.h.
6774         (test_function): Use Infinityd, Infinityl.
6775         * tests/test-vasprintf-posix.c: Include infinity.h.
6776         (test_function): Use Infinityd, Infinityl.
6777         * modules/ceilf-tests (Files): Add tests/infinity.h.
6778         * modules/ceil-tests (Files): Likewise.
6779         * modules/ceill-tests (Files): Likewise.
6780         * modules/dprintf-posix-tests (Files): Likewise.
6781         * modules/floorf-tests (Files): Likewise.
6782         * modules/floor-tests (Files): Likewise.
6783         * modules/floorl-tests (Files): Likewise.
6784         * modules/fprintf-posix-tests (Files): Likewise.
6785         * modules/frexp-tests (Files): Likewise.
6786         * modules/frexp-nolibm-tests (Files): Likewise.
6787         * modules/frexpl-tests (Files): Likewise.
6788         * modules/frexpl-nolibm-tests (Files): Likewise.
6789         * modules/isfinite-tests (Files): Likewise.
6790         * modules/isinf-tests (Files): Likewise.
6791         * modules/isnan-tests (Files): Likewise.
6792         * modules/isnanf-tests (Files): Likewise.
6793         * modules/isnanf-nolibm-tests (Files): Likewise.
6794         * modules/isnand-tests (Files): Likewise.
6795         * modules/isnand-nolibm-tests (Files): Likewise.
6796         * modules/isnanl-tests (Files): Likewise.
6797         * modules/isnanl-nolibm-tests (Files): Likewise.
6798         * modules/ldexpl-tests (Files): Likewise.
6799         * modules/printf-posix-tests (Files): Likewise.
6800         * modules/roundf-tests (Files): Likewise.
6801         * modules/round-tests (Files): Likewise.
6802         * modules/roundl-tests (Files): Likewise.
6803         * modules/signbit-tests (Files): Likewise.
6804         * modules/snprintf-posix-tests (Files): Likewise.
6805         * modules/sprintf-posix-tests (Files): Likewise.
6806         * modules/truncf-tests (Files): Likewise.
6807         * modules/trunc-tests (Files): Likewise.
6808         * modules/truncl-tests (Files): Likewise.
6809         * modules/vasnprintf-posix-tests (Files): Likewise.
6810         * modules/vasprintf-posix-tests (Files): Likewise.
6811         * modules/vdprintf-posix-tests (Files): Likewise.
6812         * modules/vfprintf-posix-tests (Files): Likewise.
6813         * modules/vprintf-posix-tests (Files): Likewise.
6814         * modules/vsnprintf-posix-tests (Files): Likewise.
6815         * modules/vsprintf-posix-tests (Files): Likewise.
6816         * modules/xprintf-posix-tests (Files): Likewise.
6817
6818 2011-09-11  Bruno Haible  <bruno@clisp.org>
6819
6820         Ensure pid_t gets defined.
6821         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
6822         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6823         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6824         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6825         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6826         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6827         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6828         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6829         * tests/test-fcntl-h.c: Check that pid_t is defined.
6830         * tests/test-sched.c: Likewise.
6831         * tests/test-termios.c: Likewise.
6832         * tests/test-time.c: Likewise.
6833         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
6834         * doc/posix-headers/signal.texi: Likewise.
6835         * doc/posix-headers/sys_types.texi: Likewise.
6836         * doc/posix-headers/time.texi: Likewise.
6837
6838 2011-09-11  Bruno Haible  <bruno@clisp.org>
6839
6840         acl: Fix compilation on Solaris 10 (older version).
6841         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
6842         of ACE_EVERYONE.
6843         * lib/set-mode-acl.c (qset_acl): Likewise.
6844         Reported by Christian Jullien <eligis@orange.fr>.
6845
6846 2011-09-10  Bruno Haible  <bruno@clisp.org>
6847
6848         iconv, unsetenv: Add support for MSVC compiler.
6849         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
6850         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
6851
6852 2011-09-10  Bruno Haible  <bruno@clisp.org>
6853
6854         *printf: Add support for MSVC compiler.
6855         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
6856         handles the exception caused by the %n directive. When cross-compiling,
6857         guess no on native Windows.
6858         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6859         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
6860         emulate it through vsnprintf.
6861         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
6862         * doc/posix-functions/dprintf.texi: Update documentation regarding
6863         MSVC 9.
6864         * doc/posix-functions/fprintf.texi: Likewise.
6865         * doc/posix-functions/printf.texi: Likewise.
6866         * doc/posix-functions/snprintf.texi: Likewise.
6867         * doc/posix-functions/sprintf.texi: Likewise.
6868         * doc/posix-functions/swprintf.texi: Likewise.
6869         * doc/posix-functions/vdprintf.texi: Likewise.
6870         * doc/posix-functions/vfprintf.texi: Likewise.
6871         * doc/posix-functions/vprintf.texi: Likewise.
6872         * doc/posix-functions/vsnprintf.texi: Likewise.
6873         * doc/posix-functions/vsprintf.texi: Likewise.
6874         * doc/glibc-functions/asprintf.texi: Likewise.
6875         * doc/glibc-functions/obstack_printf.texi: Likewise.
6876         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6877         * doc/glibc-functions/vasprintf.texi: Likewise.
6878
6879 2011-09-10  Bruno Haible  <bruno@clisp.org>
6880
6881         nocrash: Add support for native Windows.
6882         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
6883
6884 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
6885             Bruno Haible  <bruno@clisp.org>
6886
6887         absolute-header, include-next: Add support for MSVC compiler.
6888         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
6889         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
6890         directory separator in #line directives.
6891         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
6892         recognize also backslash as directory separator in #line directives.
6893
6894 2011-09-08  Jim Meyering  <meyering@redhat.com>
6895
6896         maint.mk: mark the post-release commit log with "maint: " prefix
6897         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
6898         one-line commit-log summary.
6899
6900 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
6901             Bruno Haible  <bruno@clisp.org>
6902
6903         Doc about crypt functions.
6904         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
6905         systems.
6906         * doc/posix-functions/encrypt.texi: Likewise.
6907         * doc/posix-functions/setkey.texi: Likewise.
6908
6909 2011-09-08  Simon Josefsson  <simon@josefsson.org>
6910
6911         * lib/gc.h: Fix copyright header.
6912
6913 2011-09-07  Bruno Haible  <bruno@clisp.org>
6914
6915         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
6916         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
6917         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
6918
6919 2011-09-07  Bruno Haible  <bruno@clisp.org>
6920
6921         openat: Work around compilation error with OSF/1 5.1 DTK cc.
6922         * lib/fopen.c: Use different syntax for include of <stdio.h>.
6923         * lib/freopen.c: Likewise.
6924         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
6925         * lib/lstat.c: Likewise.
6926         * lib/stat.c: Likewise.
6927         * lib/open.c: Use different syntax for include of <fcntl.h>.
6928         * lib/openat.c: Include fcntl.h again, explicitly.
6929
6930 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
6931
6932         parse-datetime: document the newly accepted format
6933         * doc/parse-datetime.texi (Combined date and time of day items):
6934         New section.
6935
6936 2011-09-06  Bruno Haible  <bruno@clisp.org>
6937
6938         acl: Fix a test failure on newer Solaris 10 with ZFS.
6939         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
6940         ENOSYS as no ACL.
6941         Reported by Jim Meyering.
6942
6943 2011-09-06  Bruno Haible  <bruno@clisp.org>
6944
6945         acl: Update for AIX >= 5.3 with NFS.
6946         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
6947         ENOSYS as no ACL.
6948
6949         acl: Fix a test failure on AIX >= 5.3 with NFS.
6950         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
6951         as no ACL.
6952
6953 2011-09-06  Bruno Haible  <bruno@clisp.org>
6954
6955         acl: Fix a test failure on IRIX 6.5 with NFS.
6956         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
6957         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
6958         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
6959         * lib/copy-acl.c (qcopy_acl): Likewise.
6960
6961 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6962
6963         openat: port to AIX 7.1 with large files
6964         AIX 7.1 does a "#define openat open64at" if large files are in use,
6965         so we can't simply #undef openat.  Use the orig_openat trick (similar
6966         to orig_open in lib/open.c) to work around the problem.  Problem
6967         reported by Kevin Brott for GNU tar, in the thread containing
6968         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
6969         * lib/openat.c (__need_system_fcntl_h): Define first.
6970         Include <fcntl.h> and <sys/types.h> before undefining.
6971         (orig_openat) [HAVE_OPENAT]: New inline function.
6972         (openat) [HAVE_OPENAT]: Do not undef.
6973         (rpl_openat): Use orig_openat, not openat.
6974
6975 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6976             Bruno Haible  <bruno@clisp.org>
6977
6978         acl: Avoid errors on NonStop Kernel.
6979         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
6980         ENOTSUP errors.
6981
6982 2011-09-05  Bruno Haible  <bruno@clisp.org>
6983
6984         acl: Clean up Solaris code.
6985         * lib/acl-internal.h: Remove no-op #if.
6986         * lib/file-has-acl.c: Likewise.
6987         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
6988         * lib/copy-acl.c (qcopy_acl): Likewise.
6989
6990 2011-09-05  Bruno Haible  <bruno@clisp.org>
6991
6992         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
6993         binaries built on the original Solaris 10.
6994         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
6995         trivial.
6996
6997 2011-09-05  Bruno Haible  <bruno@clisp.org>
6998
6999         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7000         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
7001         10.
7002         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
7003         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
7004         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
7005         instead of acl_get, facl_get, acl_set, facl_set.
7006
7007 2011-09-05  Bruno Haible  <bruno@clisp.org>
7008
7009         copy-file: Try unit tests on more file systems.
7010         * tests/test-copy-file-1.sh: New file.
7011         * tests/test-copy-file-2.sh: New file.
7012         * modules/copy-file-tests (Files): Add them.
7013         (Makefile.am): Add them to TESTS.
7014
7015         acl: Try unit tests on more file systems.
7016         * tests/test-file-has-acl-1.sh: New file.
7017         * tests/test-file-has-acl-2.sh: New file.
7018         * tests/test-set-mode-acl-1.sh: New file.
7019         * tests/test-set-mode-acl-2.sh: New file.
7020         * tests/test-copy-acl-1.sh: New file.
7021         * tests/test-copy-acl-2.sh: New file.
7022         * modules/acl-tests (Files): Add them.
7023         (Makefile.am): Add them to TESTS.
7024
7025 2011-09-04  Bruno Haible  <bruno@clisp.org>
7026
7027         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7028         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
7029         10.
7030         (OLD_ALLOW, OLD_DENY): New macros.
7031         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
7032         ACE_ACCESS_ALLOWED_ACE_TYPE.
7033         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
7034         ACE_ACCESS_DENIED_ACE_TYPE.
7035         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
7036         (NEW_ACE_EXECUTE): Fix value.
7037         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
7038         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
7039         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
7040         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
7041         NEW_ACE_SYNCHRONIZE): New macros.
7042         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
7043         instead of acl_fromtext, acl_set, facl_set.
7044         Fixes a coreutils/tests/cp/perm failure.
7045
7046 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
7047
7048         openat: test for fstatat (..., 0) bug
7049         Further testing with tar suggests that fstatat (..., 0)
7050         does not work in general, on AIX 7.1; see
7051         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
7052         So, give up entirely on AIX 7.1's fstatat, and fall back on our
7053         replacement fstatat (which is what older AIX releases were using
7054         anyway).
7055         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
7056         use is now changed to orig_fstatat.  This was probably the right
7057         thing to do anyway.
7058         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
7059         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
7060         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
7061         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
7062         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
7063         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
7064         if the bug is found.
7065
7066         openat: test for fstatat (AT_FDCWD, ..., 0) bug
7067         This tests for another fstatat bug on AIX 7.1:
7068         fstatat (AT_FDCWD, ..., 0) does not work.  See
7069         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
7070         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
7071         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
7072         (rpl_fstatat): Adjust so that it works around either (or both)
7073         bugs if present.
7074         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
7075
7076 2011-09-03  Karl Berry  <karl@gnu.org>
7077
7078         * doc/regex.texi (Character Class Operators): Avoid literal ":"
7079         in index entries.
7080
7081 2011-09-02  Bruno Haible  <bruno@clisp.org>
7082
7083         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
7084         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
7085         values of AR, ARFLAGS, RANLIB.
7086         Reported by John W. Eaton <jwe@gnu.org> for Octave.
7087
7088 2011-09-02  Bruno Haible  <bruno@clisp.org>
7089
7090         Find 'ar' program that fits with --host argument.
7091         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
7092
7093 2011-09-02  Bruno Haible  <bruno@clisp.org>
7094
7095         tests: init.sh: Support any non-GNU diff.
7096         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
7097         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
7098         Solaris 8.
7099
7100 2011-09-02  Bruno Haible  <bruno@clisp.org>
7101
7102         tests: init.sh: work also with any non-GNU diff that supports -u
7103         * tests/init.sh: Relax check for diff -u support.
7104         Rather than checking for GNU diff via --version, simply check
7105         for support for -u itself.  Useful at least on OpenBSD 4.9,
7106         AIX 7.1, IRIX 6.5, and Solaris 10.
7107
7108 2011-09-01  Bruno Haible  <bruno@clisp.org>
7109
7110         strtoimax, strtoumax: Document problem on HP-UX 11.
7111         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
7112         * doc/posix-functions/strtoumax.texi: Likewise.
7113
7114 2011-09-01  Bruno Haible  <bruno@clisp.org>
7115
7116         strtoumax: Avoid link error on OSF/1 with DTK cc.
7117         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
7118         defined as a function.
7119         * modules/strtoumax (Depends-on, configure.ac): Test only whether
7120         strtoumax is defined, not whether it is declared.
7121
7122 2011-09-01  Bruno Haible  <bruno@clisp.org>
7123
7124         strtoimax: Avoid link error on OSF/1 with DTK cc.
7125         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
7126         defined as a function.
7127         * modules/strtoimax (Depends-on, configure.ac): Test only whether
7128         strtoimax is defined, not whether it is declared.
7129
7130 2011-09-01  Bruno Haible  <bruno@clisp.org>
7131
7132         imaxdiv: Avoid link error on OSF/1 with DTK cc.
7133         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
7134         as a function.
7135         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
7136         whether it is declared.
7137
7138 2011-09-01  Bruno Haible  <bruno@clisp.org>
7139
7140         imaxabs: Avoid link error on OSF/1 with DTK cc.
7141         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
7142         as a function.
7143         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
7144         whether it is declared.
7145
7146 2011-09-01  Bruno Haible  <bruno@clisp.org>
7147
7148         Tests for module 'strtoumax'.
7149         * modules/strtoumax-tests: New file.
7150         * tests/test-strtoumax.c: New file.
7151
7152         Tests for module 'strtoimax'.
7153         * modules/strtoimax-tests: New file.
7154         * tests/test-strtoimax.c: New file.
7155
7156         Tests for module 'imaxdiv'.
7157         * modules/imaxdiv-tests: New file.
7158         * tests/test-imaxdiv.c: New file.
7159
7160         Tests for module 'imaxabs'.
7161         * modules/imaxabs-tests: New file.
7162         * tests/test-imaxabs.c: New file.
7163
7164 2011-09-01  Bruno Haible  <bruno@clisp.org>
7165
7166         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
7167         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
7168         pthread_create.
7169
7170 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7171
7172         openat: work around AIX 7.1 fstatat issue
7173         This should fix the problem that was not properly fixed
7174         in the previous change, dated 2011-08-30.
7175         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
7176         __need_system_stat_h defined.
7177         (orig_fstatat) [HAVE_FSTATAT]: New function.
7178         (rpl_fstatat): Go back to the old way of doing things,
7179         except call orig_fstatat instead of fstatat.
7180         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
7181         Remove unnecessary check whether fstatat fills in st_size etc.
7182
7183 2011-09-01  Bruno Haible  <bruno@clisp.org>
7184
7185         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
7186         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
7187         just include the system's header.
7188
7189 2011-08-31  Jim Meyering  <meyering@redhat.com>
7190
7191         tests: avoid spurious assertion failure in test-float.c on ppc64
7192         * tests/test-float.c (test_long_double): Comment out an assertion,
7193         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
7194         with gcc-4.4.4.
7195
7196         maint: indent with spaces, not TABs
7197         I need to get in the habit of running gnulib's "make check".
7198         Both of these would have been caught.
7199         * m4/largefile.m4: Indent with spaces, not TABs.
7200         * lib/parse-datetime.y (iso_8601_time): Likewise.
7201         Spotted by Pádraig Brady.
7202
7203         test-parse-datetime.c: accommodate a relatively strict gcc warning
7204         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
7205         to avoid a warning from gcc's -Werror=missing-declarations.
7206         Insert a few spaces-before-funcall-parenthesis.
7207
7208 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
7209
7210         parse-datetime: accept ISO 8601 date and time rep with "T" separator
7211         The parser now accepts ISO 8601 date-time strings with "T" as the
7212         separator.  It has long parsed dates like "2004-02-29 16:21:42"
7213         with a space between the date and time strings.  Now it also parses
7214         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
7215         variants like "2004-02-29T16:21:42.333-07:00"
7216         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
7217         of day representation using the 'T' separator character.
7218         * doc/parse-datetime.texi (General date syntax): replace use of
7219         deprecated --iso-8601 option with --rfc-3339 in example of date
7220         command output formats that can be parsed.
7221         * tests/test-parse-datetime.c (tm_diff): New function, taken from
7222         lib/parse-datetime.y.
7223         (gmt_offset): New function.
7224         (main): Add additional test cases to validate ISO8601 extended
7225         date and time of day parsing.
7226
7227 2011-08-31  Bruno Haible  <bruno@clisp.org>
7228
7229         freopen: Documentation.
7230         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
7231         name.
7232         Reported by Claudio Bley <claudio.bley@gmail.com>.
7233
7234 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
7235
7236         freopen: Don't crash if the filename argument is NULL.
7237         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
7238         NULL.
7239
7240 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
7241
7242         openat: work around AIX 7.1 fstatat bug
7243         Problem reported by Kevin Brott for GNU tar, in the thread containing
7244         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
7245         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
7246         FSTATAT_ST_SIZE_ETC_BROKEN.
7247         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
7248         rpl_fstatat.
7249         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
7250         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
7251         AC_CHECK_FUNCS_ONCE for fstatat.
7252         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
7253         fchmodat, mkdirat, openat and unlinkat.
7254
7255 2011-08-30  Bruno Haible  <bruno@clisp.org>
7256
7257         Avoid endless recursions if config.h includes some header files.
7258         * lib/fopen.c (__need_FILE): Define already before including config.h.
7259         * lib/freopen.c (__need_FILE): Likewise.
7260         * lib/open.c (__need_system_fcntl_h): Likewise.
7261         * lib/stat.c (__need_system_sys_stat_h): Likewise.
7262         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
7263         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7264
7265 2011-08-25  Karl Berry  <karl@gnu.org>
7266
7267         * config/srclist.txt (ylwrap): new try.
7268         * build-aux/ylwrap: new file.
7269
7270 2011-08-23  Bruno Haible  <bruno@clisp.org>
7271
7272         tmpdir: Use a good default directory on native Windows.
7273         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
7274         (P_tmpdir): Default to _P_tmpdir on native Windows.
7275         (path_search): On native Windows, try the value returned by GetTempPath
7276         before trying P_tmpdir.
7277         * modules/tmpdir (Depends-on): Add pathmax.
7278         Suggested by John Darrington <john@darrington.wattle.id.au>.
7279
7280 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
7281
7282         doc: fix typo in README-release
7283         * top/README-release: Capitalize first word of a sentence.
7284
7285 2011-08-19  Jim Meyering  <meyering@redhat.com>
7286
7287         fts: do not exhaust memory when processing million-entry directories
7288         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
7289         directory would require about 256*N bytes of memory.  Thus, it was
7290         easy to construct a directory too large to be processed by any of
7291         those tools.  With this change, fts' maximum memory utilization is
7292         now limited to around 30MB.
7293         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
7294         (fts_read): When we've processed the final entry (i.e., when
7295         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
7296         using the parent entry to read any remaining entries.  Dispatch
7297         depending on what fts_build returns:
7298         - NULL+stop, aka failure: stop
7299         - NULL otherwise: move up in the dir hierarchy
7300         - non-NULL: handle this new entry
7301         (fts_build): Declare and use new local, continue_readdir.
7302         Prepare to be called from fts_read, when the entries
7303         from a partially-read directory have just been exhausted.
7304         In that case, we'll skip the opendir and instead use the parent's
7305         fts_dirp and derive dir_fd from that.
7306         Finally, in the readdir loop, if we read max_entries entries,
7307         exit the loop ensuring *not* to call closedir.  This is required
7308         so that fts_dirp can be reused on a subsequent call.
7309         Prompted by Ben England's report of memory exhaustion in find
7310         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
7311
7312         maint: fts: move decl of `dp' down into while loop; split a long line
7313         * lib/fts.c (fts_build): No semantic change.
7314
7315         fts: add/use new struct member, fts_dirp
7316         We are about to use this to manage any directory with
7317         too many entries to read all of them into memory at once.
7318         To do that, we'll need to save the DIR* pointer in each
7319         affected FTSENT struct.
7320         * lib/fts_.h: Include <dirent.h>.
7321         (struct FTSENT) [fts_dirp]: New member.
7322         * lib/fts.c (closedir_and_clear): Define.
7323         Use it in place of closedir so that we are sure to
7324         clear the new fts_dirp member when done with it.
7325         (fts_alloc): Initialize the new member.
7326         (fts_lfree): Free, if needed.
7327
7328         maint: fts: give __opendir2 a new parameter and rename
7329         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
7330         than surreptitiously using sole caller's "dir_fd".
7331         (fts_opendir): Rename from __opendir2.
7332
7333         maint: fts.c: remove __opendir2's now-unused parameter, oflag
7334         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
7335
7336         maint: fts.c: correct off-by-one indentation
7337         * lib/fts.c (fts_build): Correct indentation, change style
7338         of a couple of block comments, and bracing style.
7339
7340         maint: fts.c: move __opendir2 #define "up" out of function body
7341         * lib/fts.c (__opendir2): Move "up".  No semantic change.
7342
7343         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
7344         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
7345         out for a long time and besides was useful only on BSD systems.
7346
7347 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7348
7349         regex: port to Stratus OpenVOS
7350         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
7351         define to empty, rather than attempting nonportable optimizations.
7352         Problem reported by Paul Green in:
7353         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
7354         and fix suggested by Eric Blake in:
7355         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
7356
7357 2011-08-17  Eric Blake  <eblake@redhat.com>
7358
7359         getcwd: fix test failures on mingw
7360         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
7361         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
7362         test if long directory cannot be created, and allow mingw errno.
7363
7364         getcwd-lgpl: fix m4 to match relaxed test for BSD
7365         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
7366         (gl_FUNC_GETCWD_SIGNATURE): New macro.
7367         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
7368         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
7369         signature problem.
7370
7371         getcwd: fix compilation on mingw64
7372         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
7373         getcwd.
7374         Reported by Marc-André Lureau.
7375
7376         pipe2: silence compiler warning
7377         * lib/pipe2.c (pipe2): Hide label if it is not used.
7378
7379 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
7380
7381         relocatable-prog: fix link error
7382         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
7383         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
7384         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
7385         into modules/relocatable-lib without noticing that
7386         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
7387         also needs to build relocatable.c.
7388
7389 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
7390
7391         getaddrinfo: fix sh typo in gai_strerrorA decl checking
7392         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
7393         shell code: it contained a 'break' that was not in a loop.
7394         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
7395         via a shell-language loop; this may have been true in old Autoconf
7396         versions, but it's not true in Autoconf 2.68.  I found this bug
7397         when testing coreutils git on Solaris 8, whose shell complains
7398         about the syntax error.
7399
7400 2011-08-12  Simon Josefsson  <simon@josefsson.org>
7401
7402         * lib/base64.c: Fix comment to reference RFC 4648.
7403         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
7404         <gvtulder@gmail.com>.
7405
7406 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7407
7408         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
7409
7410         po/Makefile.in.in: fix make -q problem
7411         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
7412         rule, since there's no file named 'check-macro-version' and its
7413         use as a file breaks make -q.
7414         (all): Don't depend on check-macro-version.
7415         (CHECK_MACRO_VERSION): New macro.
7416         (stamp-po): Use it.
7417
7418         configmake: fix make -q problem
7419         * modules/configmake (configmake.h): Update configmake.h's time stamp
7420         even if the file does not change.  Otherwise, 'make -q' fails.
7421         Problem reported by Simon Josefsson in
7422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
7423
7424 2011-08-11  Jim Meyering  <meyering@redhat.com>
7425
7426         git-version-gen: correct the advice in a comment
7427         * build-aux/git-version-gen: Correct comment.
7428         Don't recommend to list .tarball-version in .gitignore.
7429
7430 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7431
7432         base64: fix off-by-one buffer size bug
7433         Problem and (trivial) fix reported by Gijs van Tulder in
7434         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
7435         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
7436         * tests/test-base64.c (main): Catch the bug.
7437
7438 2011-08-10  Eric Blake  <eblake@redhat.com>
7439
7440         closein: correct comments
7441         * lib/closein.c (close_stdin): Improve comments.
7442
7443 2011-08-09  Bruno Haible  <bruno@clisp.org>
7444
7445         More tests for 'fseeko'.
7446         * tests/test-fseeko3.c: New file, from Eric Blake.
7447         * tests/test-fseeko3.sh: New file.
7448         * modules/fseeko-tests (Files): Add them.
7449         (TESTS): Add test-fseeko3.sh.
7450         (check_PROGRAMS): Add test-fseeko3.
7451
7452 2011-08-09  Eric Blake  <eblake@redhat.com>
7453
7454         fseeko: remove unneeded hack
7455         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
7456
7457         fseeko: fix bug on glibc
7458         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
7459         Reported by John W. Eaton.
7460
7461 2011-08-08  Bruno Haible  <bruno@clisp.org>
7462
7463         unictype/base: Fix interoperability with preinstalled libunistring.
7464         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
7465         Reported by Simon Josefsson.
7466
7467 2011-08-08  Bruno Haible  <bruno@clisp.org>
7468
7469         iswblank: Detect declaration correctly.
7470         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
7471         AC_CHECK_DECLS invocation.
7472
7473 2011-08-08  Bruno Haible  <bruno@clisp.org>
7474
7475         tcgetsid: Detect declaration correctly.
7476         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
7477         AC_CHECK_DECLS invocation.
7478         Reported by Simon Josefsson.
7479
7480 2011-08-08  Eric Blake  <eblake@redhat.com>
7481
7482         largefile: fix typo that regressed large file support
7483         * modules/largefile (configure.ac-early): Fix section name.
7484
7485 2011-08-06  Karl Berry  <karl@gnu.org>
7486
7487         * MODULES.html.sh (func_all_files): _Noreturn is no longer
7488         a separate module.
7489
7490 2011-08-05  Simon Josefsson  <simon@josefsson.org>
7491
7492         openat: Fix warnings and commens when building unlinkat.c on Hurd.
7493         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
7494         get prototype for free.
7495
7496 2011-08-04  Bruno Haible  <bruno@clisp.org>
7497
7498         Tests for module 'pathmax'.
7499         * modules/pathmax-tests: New file.
7500         * tests/test-pathmax.c: New file.
7501
7502         canonicalize-lgpl: Support larger filenames on the Hurd.
7503         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
7504         Reported by Paul Eggert.
7505
7506         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
7507         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
7508         * lib/chdir-long.h: Include pathmax.h.
7509         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
7510         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
7511         (PATH_MAX): Remove code that is done by pathmax.h.
7512         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
7513         * lib/tmpfile.c: Add a comment.
7514         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
7515         * modules/chdir-long (Depends-on): Add pathmax.
7516         * modules/getcwd (Depends-on): Add pathmax.
7517         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
7518         is not defined.
7519         * doc/posix-headers/limits.texi: Mention the pathmax module.
7520         * NEWS: Mention the change.
7521
7522 2011-08-02  Bruno Haible  <bruno@clisp.org>
7523
7524         pthread_sigmask: Actually use results of gl_THREADLIB.
7525         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
7526         gl_THREADLIB, not gl_[]THREADLIB.
7527         Reported by Eric Blake.
7528
7529 2011-08-02  Jim Meyering  <meyering@redhat.com>
7530
7531         maint.mk: relax the default _gl_TS_function_match regexp
7532         * top/maint.mk (_gl_TS_function_match): Don't require at least one
7533         space between function name and "(" in an "extern" declaration.
7534         That would fail to match a decl with no space there: extern void foo();
7535
7536 2011-07-31  Iain Nicol  <iain@thenicols.net>
7537
7538         git-version-gen: document that EXTRA_DIST must include .version
7539         * build-aux/git-version-gen: In the how-to-use comment, document
7540         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
7541         will fail when run from an unpacked distribution tarball.
7542
7543 2011-08-01  Bruno Haible  <bruno@clisp.org>
7544
7545         wctype-h: Fix last change.
7546         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
7547         REPLACE_TOWLOWER to 0.
7548         Reported by Sam Steingold <sds@gnu.org>.
7549
7550 2011-07-31  Bruno Haible  <bruno@clisp.org>
7551
7552         frexpl: Update autoconf test.
7553         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
7554         according to changes of 2011-06-20.
7555
7556 2011-07-31  Bruno Haible  <bruno@clisp.org>
7557
7558         sys_utsname: Add support for Minix.
7559         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
7560         <sys/utsname.h>.
7561         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7562         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
7563
7564 2011-07-31  Bruno Haible  <bruno@clisp.org>
7565
7566         strings: Add support for Minix.
7567         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
7568         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7569         * doc/posix-headers/strings.texi: Document the Minix problem.
7570
7571 2011-07-31  Bruno Haible  <bruno@clisp.org>
7572
7573         wctype-h: Add support for Minix.
7574         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
7575         REPLACE_TOWLOWER.
7576         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
7577         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
7578         REPLACE_ISWCNTRL.
7579
7580 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
7581
7582         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
7583         This is a performance improvement for 64-bit hosts: it causes the
7584         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
7585
7586 2011-07-31  Bruno Haible  <bruno@clisp.org>
7587
7588         stdioext: Add support for Minix.
7589         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
7590         * lib/fpurge.c (fpurge): Likewise.
7591         * lib/freadahead.c (freadahead): Likewise.
7592         * lib/freadable.c (freadable): Likewise.
7593         * lib/freading.c (freading): Likewise.
7594         * lib/freadptr.c (freadptr): Likewise.
7595         * lib/freadseek.c (freadptrinc): Likewise.
7596         * lib/fseeko.c (rpl_fseeko): Likewise.
7597         * lib/fseterr.c (fseterr): Likewise.
7598         * lib/fwritable.c (fwritable): Likewise.
7599         * lib/fwriting.c (fwriting): Likewise.
7600         * lib/fflush.c (clear_ungetc_buffer): Update comment.
7601         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
7602
7603 2011-07-31  Bruno Haible  <bruno@clisp.org>
7604
7605         errno: Port to Minix.
7606         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
7607         ECONNABORTED are defined.
7608         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
7609         GNULIB_defined_ECONNABORTED): New macros.
7610         * lib/strerror-override.h (strerror_override): Test also
7611         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
7612         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
7613         ECONNABORTED.
7614         * doc/posix-headers/errno.texi: Mention the Minix problem.
7615
7616 2011-07-31  Bruno Haible  <bruno@clisp.org>
7617
7618         Work around declaration collisions on Minix.
7619         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
7620         defined, set REPLACE_MBSINIT.
7621         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
7622         defined, set REPLACE_MBRTOWC.
7623         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
7624         set REPLACE_MBRLEN.
7625         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
7626         defined, set REPLACE_MBSRTOWCS.
7627         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
7628         defined, set REPLACE_WCRTOMB.
7629         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
7630         defined, set REPLACE_WCSRTOMBS.
7631
7632 2011-07-31  Bruno Haible  <bruno@clisp.org>
7633
7634         Add support for Minix with ACK compiler.
7635         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
7636         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
7637         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
7638
7639 2011-07-31  Bruno Haible  <bruno@clisp.org>
7640
7641         Documentation about Minix.
7642         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
7643         * doc/glibc-headers/*.texi: Likewise.
7644         * doc/posix-functions/*.texi: Likewise.
7645         * doc/glibc-functions/*.texi: Likewise.
7646
7647 2011-07-31  Bruno Haible  <bruno@clisp.org>
7648
7649         snippet/warn-on-use: Fix indentation.
7650         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
7651
7652 2011-07-25  Jim Meyering  <meyering@redhat.com>
7653
7654         tests: test-update-copyright.sh: remove unnecessary "rm" commands
7655         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
7656         commands.
7657
7658 2011-07-27  Jim Meyering  <meyering@redhat.com>
7659
7660         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
7661         * top/maint.mk (gl_extract_significant_defines_): Now that
7662         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
7663         gnulib/lib/signal.in.h, and now that we recommend to
7664         define-if-undefined those two symbols in application code,
7665         we must filter them out of the "significant" list.
7666         This avoids a "make syntax-check" failure in coreutils.
7667
7668 2011-07-26  Eric Blake  <eblake@redhat.com>
7669
7670         warnings: add comments about previous patch
7671         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
7672         * m4/include_next.m4: Likewise.
7673         * m4/warn-on-use.m4: Likewise.
7674         * m4/warnings.m4: Likewise, and simplify use.
7675         Suggested by Stefano Lattarini.
7676
7677         include-next, warnings: support older autoconf
7678         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
7679         AS_VAR_PUSHDEF in a way that works with older autoconf.
7680         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
7681         Reported by Daniel P. Berrange.
7682
7683 2011-07-25  Bruno Haible  <bruno@clisp.org>
7684
7685         fseek, ftell: Fix doc.
7686         * doc/posix-functions/fseek.texi: Reword statement about
7687         AC_SYS_LARGEFILE.
7688         * doc/posix-functions/ftell.texi: Likewise.
7689
7690 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7691             Bruno Haible  <bruno@clisp.org>
7692
7693         Add dependencies to the 'largefile' module.
7694         * modules/fopen (Depends-on): Add 'largefile'.
7695         * modules/freopen (Depends-on): Likewise.
7696         * modules/fseeko (Depends-on): Likewise.
7697         * modules/ftello (Depends-on): Likewise.
7698         * modules/glob (Depends-on): Likewise.
7699         * modules/lseek (Depends-on): Likewise.
7700         * modules/lstat (Depends-on): Likewise.
7701         * modules/mkostemp (Depends-on): Likewise.
7702         * modules/mkostemps (Depends-on): Likewise.
7703         * modules/mkstemp (Depends-on): Likewise.
7704         * modules/mkstemps (Depends-on): Likewise.
7705         * modules/open (Depends-on): Likewise.
7706         * modules/openat (Depends-on): Likewise.
7707         * modules/pread (Depends-on): Likewise.
7708         * modules/pwrite (Depends-on): Likewise.
7709         * modules/scandir (Depends-on): Likewise.
7710         * modules/stat (Depends-on): Likewise.
7711         * modules/tmpfile (Depends-on): Likewise.
7712         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
7713         since the containing module now depends on the largefile module.
7714         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
7715         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
7716         off_t is fixed by gnulib.
7717         * doc/posix-functions/freopen.texi: Likewise.
7718         * doc/posix-functions/fseeko.texi: Likewise.
7719         * doc/posix-functions/fstatat.texi: Likewise.
7720         * doc/posix-functions/ftello.texi: Likewise.
7721         * doc/posix-functions/glob.texi: Likewise.
7722         * doc/posix-functions/lseek.texi: Likewise.
7723         * doc/posix-functions/lstat.texi: Likewise.
7724         * doc/posix-functions/mkstemp.texi: Likewise.
7725         * doc/posix-functions/open.texi: Likewise.
7726         * doc/posix-functions/openat.texi: Likewise.
7727         * doc/posix-functions/pread.texi: Likewise.
7728         * doc/posix-functions/pwrite.texi: Likewise.
7729         * doc/posix-functions/scandir.texi: Likewise.
7730         * doc/posix-functions/stat.texi: Likewise.
7731         * doc/posix-functions/tmpfile.texi: Likewise.
7732         * doc/glibc-functions/mkostemp.texi: Likewise.
7733         * doc/glibc-functions/mkostemps.texi: Likewise.
7734         * doc/glibc-functions/mkstemps.texi: Likewise.
7735
7736 2011-07-25  Bruno Haible  <bruno@clisp.org>
7737
7738         fcntl: Move AC_LIBOBJ invocation to module description.
7739         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
7740         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
7741
7742         fcntl: Remove call-in from fchdir.m4.
7743         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
7744         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
7745
7746         dup3: Remove potential call-in from fchdir.m4.
7747         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
7748         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
7749
7750         dup2: Move AC_LIBOBJ invocation to module description.
7751         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
7752         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
7753         Don't invoke AC_LIBOBJ.
7754         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
7755
7756         dup2: Remove call-in from fchdir.m4.
7757         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
7758         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
7759
7760         fclose: Move AC_LIBOBJ invocation to module description.
7761         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
7762         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
7763         to 1.
7764         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
7765
7766         fclose: Remove call-in from close.m4.
7767         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
7768         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
7769
7770         close: Move AC_LIBOBJ invocation to module description.
7771         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
7772         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
7773         1.
7774         * modules/close (configure.ac): Invoke AC_LIBOBJ.
7775
7776         close: Remove call-in from fchdir.m4.
7777         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
7778         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
7779
7780         open: Move AC_LIBOBJ invocation to module description.
7781         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
7782         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
7783         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
7784
7785         open: Remove call-in from fchdir.m4.
7786         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
7787         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
7788
7789         fchdir: Start to remove gl_REPLACE_* idiom.
7790         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
7791         (gl_FUNC_FCHDIR): Invoke it.
7792
7793 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7794
7795         * lib/ftell.c (ftell): Comment out cast.
7796
7797         close: use gl_REPLACE_FCLOSE only if defined
7798         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
7799         is defined.  The close module doesn't depend on the fclose module
7800         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
7801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
7802         I reproduced the problem with "./gnulib-tool --test close sys_socket".
7803
7804 2011-07-24  Jim Meyering  <meyering@redhat.com>
7805
7806         test-select.h: avoid warning when using gcc's -Wmissing-declarations
7807         * tests/test-select.h (test_function): Declare as "static".
7808
7809 2011-07-24  Bruno Haible  <bruno@clisp.org>
7810
7811         doc: Mention the effects of AC_SYS_LARGEFILE.
7812         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
7813         on this function.
7814         * doc/posix-functions/aio_error.texi: Likewise.
7815         * doc/posix-functions/aio_fsync.texi: Likewise.
7816         * doc/posix-functions/aio_read.texi: Likewise.
7817         * doc/posix-functions/aio_return.texi: Likewise.
7818         * doc/posix-functions/aio_suspend.texi: Likewise.
7819         * doc/posix-functions/aio_write.texi: Likewise.
7820         * doc/posix-functions/fgetpos.texi: Likewise.
7821         * doc/posix-functions/fopen.texi: Likewise.
7822         * doc/posix-functions/freopen.texi: Likewise.
7823         * doc/posix-functions/fsetpos.texi: Likewise.
7824         * doc/posix-functions/fstatvfs.texi: Likewise.
7825         * doc/posix-functions/ftruncate.texi: Likewise.
7826         * doc/posix-functions/ftw.texi: Likewise.
7827         * doc/posix-functions/getrlimit.texi: Likewise.
7828         * doc/posix-functions/glob.texi: Likewise.
7829         * doc/posix-functions/lio_listio.texi: Likewise.
7830         * doc/posix-functions/lockf.texi: Likewise.
7831         * doc/posix-functions/mkstemp.texi: Likewise.
7832         * doc/posix-functions/mmap.texi: Likewise.
7833         * doc/posix-functions/nftw.texi: Likewise.
7834         * doc/posix-functions/openat.texi: Likewise.
7835         * doc/posix-functions/opendir.texi: Likewise.
7836         * doc/posix-functions/posix_fadvise.texi: Likewise.
7837         * doc/posix-functions/posix_fallocate.texi: Likewise.
7838         * doc/posix-functions/pread.texi: Likewise.
7839         * doc/posix-functions/pwrite.texi: Likewise.
7840         * doc/posix-functions/readdir.texi: Likewise.
7841         * doc/posix-functions/readdir_r.texi: Likewise.
7842         * doc/posix-functions/rewinddir.texi: Likewise.
7843         * doc/posix-functions/scandir.texi: Likewise.
7844         * doc/posix-functions/seekdir.texi: Likewise.
7845         * doc/posix-functions/setrlimit.texi: Likewise.
7846         * doc/posix-functions/statvfs.texi: Likewise.
7847         * doc/posix-functions/telldir.texi: Likewise.
7848         * doc/posix-functions/tmpfile.texi: Likewise.
7849         * doc/posix-functions/truncate.texi: Likewise.
7850         * doc/glibc-functions/fallocate.texi: Likewise.
7851         * doc/glibc-functions/fstatfs.texi: Likewise.
7852         * doc/glibc-functions/fts_children.texi: Likewise.
7853         * doc/glibc-functions/fts_read.texi: Likewise.
7854         * doc/glibc-functions/getdirentries.texi: Likewise.
7855         * doc/glibc-functions/mkostemp.texi: Likewise.
7856         * doc/glibc-functions/mkostemps.texi: Likewise.
7857         * doc/glibc-functions/mkstemps.texi: Likewise.
7858         * doc/glibc-functions/preadv.texi: Likewise.
7859         * doc/glibc-functions/pwritev.texi: Likewise.
7860         * doc/glibc-functions/sendfile.texi: Likewise.
7861         * doc/glibc-functions/statfs.texi: Likewise.
7862
7863 2011-07-24  Bruno Haible  <bruno@clisp.org>
7864
7865         doc: Fix typo.
7866         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
7867
7868 2011-07-24  Bruno Haible  <bruno@clisp.org>
7869
7870         doc: Mention fsusage.
7871         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
7872
7873 2011-07-24  Bruno Haible  <bruno@clisp.org>
7874
7875         doc: Mention new glibc headers and functions.
7876         * doc/glibc-headers/gshadow.texi: New file.
7877         * doc/glibc-functions/endsgent.texi: New file.
7878         * doc/glibc-functions/fgetsgent.texi: New file.
7879         * doc/glibc-functions/fgetsgent_r.texi: New file.
7880         * doc/glibc-functions/getsgent.texi: New file.
7881         * doc/glibc-functions/getsgent_r.texi: New file.
7882         * doc/glibc-functions/getsgnam.texi: New file.
7883         * doc/glibc-functions/getsgnam_r.texi: New file.
7884         * doc/glibc-functions/putsgent.texi: New file.
7885         * doc/glibc-functions/setsgent.texi: New file.
7886         * doc/glibc-functions/sgetsgent.texi: New file.
7887         * doc/glibc-functions/sgetsgent_r.texi: New file.
7888         * doc/glibc-functions/malloc_info.texi: New file.
7889         * doc/glibc-functions/preadv.texi: New file.
7890         * doc/glibc-functions/pwritev.texi: New file.
7891         * doc/glibc-functions/register_printf_modifier.texi: New file.
7892         * doc/glibc-functions/register_printf_specifier.texi: New file.
7893         * doc/glibc-functions/register_printf_type.texi: New file.
7894         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
7895         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
7896         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
7897         * doc/glibc-functions/pthread_getname_np.texi: New file.
7898         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
7899         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
7900         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
7901         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
7902         * doc/glibc-functions/pthread_setname_np.texi: New file.
7903         * doc/glibc-functions/pthread_sigqueue.texi: New file.
7904         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
7905         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
7906         * doc/glibc-functions/qsort_r.texi: New file.
7907         * doc/glibc-functions/quick_exit.texi: New file.
7908         * doc/glibc-functions/syncfs.texi: New file.
7909         * doc/gnulib.texi: Include them.
7910         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
7911         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
7912         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
7913         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
7914         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
7915         * doc/glibc-functions/execvpe.texi: Likewise.
7916
7917 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7918
7919         ftell: don't include <unistd.h>
7920         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
7921         guaranteed to define off_t, and the ftell module depends on the
7922         stdio module.
7923
7924         ftell: do not assume wraparound signed arithmetic
7925         * lib/ftell.c: Include <limits.h>.
7926         (ftell): Don't assume wraparound signed arithmetic.
7927
7928 2011-07-24  Bruno Haible  <bruno@clisp.org>
7929
7930         close: No longer depend on module 'fclose'.
7931         * modules/close (Depends-on): Remove fclose.
7932         * NEWS: Mention the change.
7933         Suggested by Sam Steingold <sds@gnu.org>.
7934
7935 2011-07-24  Bruno Haible  <bruno@clisp.org>
7936
7937         fsusage: Enable large volume support on AIX >= 5.2.
7938         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
7939         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
7940         instead of STAT_STATVFS.
7941         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
7942
7943         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
7944         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
7945         f_blocks field only on MacOS X.
7946
7947         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
7948         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
7949         * modules/fsusage (Depends-on): Add largefile.
7950
7951 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7952
7953         * README: Modernize discussion of signed integers.
7954         Assuming overflow wraparound is no longer safe.
7955         Mention ones' complement and signed magnitude.
7956
7957 2011-07-22  Bruno Haible  <bruno@clisp.org>
7958
7959         select tests, pselect tests: Refactor.
7960         * tests/test-select.h: New file, extracted from tests/test-select.c.
7961         (select_fn): New type.
7962         (test, do_select, do_select_nowait, do_select_wait, test_tty,
7963         test_connect_first, test_accept_first, test_pair, test_socket_pair,
7964         test_pipe): Add my_select argument.
7965         (test_function): Renamed from main. Add my_select argument.
7966         * tests/test-select.c: Move most code to tests/test-select.h. Include
7967         test-select.h.
7968         * modules/select-tests (Files): Add tests/test-select.h.
7969         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
7970         (my_select, main): New functions.
7971         * modules/pselect-tests (Files): Add tests/test-select.h,
7972         tests/macros.h, tests/signature.h.
7973         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
7974         (configure.ac): Check for <sys/wait.h>.
7975
7976 2011-07-22  Bruno Haible  <bruno@clisp.org>
7977
7978         sys_select tests: Check the signature of FD_*.
7979         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
7980         signature tests from here...
7981         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
7982         here.
7983         * modules/sys_select-tests (Files): Add tests/signature.h.
7984
7985 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7986
7987         largefile: new module, replacing large-inode
7988         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
7989         * MODULES.html.sh: Add largefile, remove large-inode.
7990         * modules/largefile, m4/largefile.m4: New files.
7991         * modules/large-inode, m4/large-inode.m4: Remove.
7992
7993         fsusage: port to MacOS X 10.7 with 4 TiB file systems
7994         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
7995         implementations that use only 32 bits to count blocks.
7996         On typical hosts with 1024-byte blocks, this fails with file
7997         systems as small as 4 TiB.  Problem reported by Herb Wartens
7998         <http://debbugs.gnu.org/9140> and this should also fix a similar
7999         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
8000
8001         large-inode: New module
8002         * MODULES.html.sh: Add it.
8003         * modules/large-inode, m4/large-inode.m4: New files.
8004
8005         extensions: Enable extensions on MacOS X 10.5 and later.
8006         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
8007
8008 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
8009
8010         file-has-acl: use acl_extended_file_nofollow if available
8011         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
8012         (acl_extended_file): New macro.
8013         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
8014         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
8015
8016 2011-07-21  Bruno Haible  <bruno@clisp.org>
8017
8018         Declare system functions in a way that works with C++.
8019         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
8020         declare fdopendir as extern "C".
8021         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
8022         declare frexpl as extern "C".
8023         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
8024         declare gai_strerror as extern "C".
8025         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
8026         programs, declare gai_strerror as extern "C".
8027         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
8028         declare getlogin_r as extern "C".
8029         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
8030         as extern "C".
8031         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
8032         declare ldexpl as extern "C".
8033         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
8034         as extern "C".
8035         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
8036         program, declare getmntinfo as extern "C".
8037         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
8038         stpncpy as extern "C".
8039         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
8040         program, declare __xpg_strerror_r as extern "C".
8041         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
8042         strndup as extern "C".
8043         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
8044         declare memset and bzero as extern "C".
8045         Reported by Sam Steingold <sds@gnu.org>.
8046
8047 2011-07-12  Jim Meyering  <meyering@redhat.com>
8048
8049         maint.mk: prohibit inclusion of "verify.h" without use
8050         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
8051
8052 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8053
8054         timer-time: A new module to check for timer_settime()
8055         * m4/timer_time.m4: Check for the posix function.
8056         * modules/timer-time: Add the new module.
8057         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
8058         Mention it.
8059
8060 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
8061             Bruno Haible  <bruno@clisp.org>
8062
8063         pthread_sigmask: assume POSIX threads if --avoid=threadlib
8064         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
8065         not defined, assume POSIX threads and look for pthread_sigmask in
8066         $LIBS, without changing $CPPFLAGS.
8067
8068 2011-07-19  Bruno Haible  <bruno@clisp.org>
8069
8070         strstr: Update cross-compilation guess.
8071         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
8072         CPUs, guess no, in view of glibc
8073         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
8074         Suggested by Eric Blake. Reported by Reuben Thomas.
8075
8076 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8077
8078         getopt-gnu: suppress core dumps from detection code
8079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
8080         to suppress core dumps that may well occur on glibc systems.
8081         * modules/getopt-gnu: Depend on nocrash.
8082
8083 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
8084
8085         pthread_sigmask: ensure usleep is declared
8086         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
8087         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
8088
8089 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
8090
8091         doc: Document NonStop portability issues.
8092         * doc/posix-functions/sigaction.texi (sigaction):
8093         * doc/posix-headers/signal.texi (signal.h):
8094         Document NonStop.  See Joachim Schmitz in
8095         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
8096
8097 2011-07-15  Bruno Haible  <bruno@clisp.org>
8098
8099         ffsl, ffsll: Avoid unportable behaviour.
8100         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
8101
8102 2011-07-15  Bruno Haible  <bruno@clisp.org>
8103
8104         ffs: More tests.
8105         * tests/test-ffs.c (NBITS): New macro.
8106         (main): Add more tests.
8107         * tests/test-ffsl.c (NBITS): New macro.
8108         (main): Add more tests.
8109         * tests/test-ffsll.c (NBITS): New macro.
8110         (main): Add more tests.
8111
8112 2011-07-15  Eric Blake  <eblake@redhat.com>
8113
8114         ffsl, ffsll: new modules
8115         * modules/ffsl: New file.
8116         * modules/ffsll: Likewise.
8117         * m4/ffsl.m4: Likewise.
8118         * m4/ffsll.m4: Likewise.
8119         * lib/ffsl.c: Likewise.
8120         * lib/ffsl.h: Likewise.
8121         * lib/ffsll.c: Likewise.
8122         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
8123         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
8124         * modules/string (Makefile.am): Substitute witnesses.
8125         * lib/strings.in.h (ffsl, ffsll): Declare.
8126         * modules/ffsl-tests: New test file.
8127         * modules/ffsll-tests: Likewise.
8128         * tests/test-ffsl.c: Likewise.
8129         * tests/test-ffsll.c: Likewise.
8130         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8131         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
8132         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
8133
8134         ffs: fix m4 prerequisite
8135         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
8136
8137         ffs: avoid undefined behavior
8138         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
8139         * tests/test-ffs.c (naive, main): Avoid signed shifts.
8140         Reported by Bruno Haible.
8141
8142 2011-07-12  Bruno Haible  <bruno@clisp.org>
8143
8144         pthread_sigmask: Rely on module 'threadlib'.
8145         * modules/pthread_sigmask (Depends-on): Add threadlib.
8146         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
8147         is defined.
8148
8149 2011-07-12  Bruno Haible  <bruno@clisp.org>
8150
8151         regex: Depend on module 'strcase'.
8152         * modules/regex (Depends-on): Add strcase, for strcasecmp().
8153
8154 2011-07-12  Jim Meyering  <meyering@redhat.com>
8155
8156         warn-on-use: fix typo in file name
8157         * modules/snippet/warn-on-use (Files): Correct file name:
8158         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
8159
8160 2011-07-12  Bruno Haible  <bruno@clisp.org>
8161
8162         strings: Document module.
8163         * doc/posix-headers/strings.texi: Mention module 'strings'.
8164
8165 2011-07-12  Bruno Haible  <bruno@clisp.org>
8166
8167         Rename module '_Noreturn' to 'snippet/_Noreturn'.
8168         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
8169         (Files, Makefile.am): Update.
8170         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
8171         * modules/stdlib (Depends-on): Update.
8172
8173 2011-07-12  Bruno Haible  <bruno@clisp.org>
8174
8175         * NEWS: Mention the changes.
8176
8177         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
8178         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
8179         (Files, Makefile.am): Update.
8180         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
8181         * modules/arpa_inet (Depends-on): Update.
8182         * modules/ctype (Depends-on): Update.
8183         * modules/dirent (Depends-on): Update.
8184         * modules/fcntl-h (Depends-on): Update.
8185         * modules/glob (Depends-on): Update.
8186         * modules/iconv-h (Depends-on): Update.
8187         * modules/inttypes-incomplete (Depends-on): Update.
8188         * modules/langinfo (Depends-on): Update.
8189         * modules/locale (Depends-on): Update.
8190         * modules/math (Depends-on): Update.
8191         * modules/netdb (Depends-on): Update.
8192         * modules/poll-h (Depends-on): Update.
8193         * modules/pty (Depends-on): Update.
8194         * modules/search (Depends-on): Update.
8195         * modules/signal (Depends-on): Update.
8196         * modules/spawn (Depends-on): Update.
8197         * modules/stdio (Depends-on): Update.
8198         * modules/stdlib (Depends-on): Update.
8199         * modules/string (Depends-on): Update.
8200         * modules/strings (Depends-on): Update.
8201         * modules/sys_file (Depends-on): Update.
8202         * modules/sys_ioctl (Depends-on): Update.
8203         * modules/sys_select (Depends-on): Update.
8204         * modules/sys_socket (Depends-on): Update.
8205         * modules/sys_stat (Depends-on): Update.
8206         * modules/sys_time (Depends-on): Update.
8207         * modules/sys_times (Depends-on): Update.
8208         * modules/sys_utsname (Depends-on): Update.
8209         * modules/sys_wait (Depends-on): Update.
8210         * modules/termios (Depends-on): Update.
8211         * modules/time (Depends-on): Update.
8212         * modules/unistd (Depends-on): Update.
8213         * modules/wchar (Depends-on): Update.
8214         * modules/wctype-h (Depends-on): Update.
8215         * MODULES.html.sh (Support for building libraries and executables):
8216         Update.
8217
8218         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
8219         * modules/snippet/unused-parameter: Renamed from
8220         modules/unused-parameter.
8221         (Files, Makefile.am): Update.
8222         * build-aux/snippet/unused-parameter.h: Renamed from
8223         build-aux/unused-parameter.h.
8224         * modules/selinux-h (Depends-on): Update.
8225         * modules/unistr/base (Depends-on): Update.
8226         * MODULES.html.sh (Core language properties): Update.
8227
8228         Rename module 'link-warning' to 'snippet/link-warning'.
8229         * modules/snippet/link-warning: Renamed from modules/link-warning.
8230         (Files, Makefile.am): Update.
8231         * build-aux/snippet/link-warning.h: Renamed from
8232         build-aux/link-warning.h.
8233         * MODULES.html.sh (Support for building libraries and executables):
8234         Update.
8235
8236         Rename module 'c++defs' to 'snippet/c++defs'.
8237         * modules/snippet/c++defs: Renamed from modules/c++defs.
8238         (Files, Makefile.am): Update.
8239         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
8240         * modules/arpa_inet (Depends-on): Update.
8241         * modules/ctype (Depends-on): Update.
8242         * modules/dirent (Depends-on): Update.
8243         * modules/fcntl-h (Depends-on): Update.
8244         * modules/glob (Depends-on): Update.
8245         * modules/iconv-h (Depends-on): Update.
8246         * modules/langinfo (Depends-on): Update.
8247         * modules/locale (Depends-on): Update.
8248         * modules/math (Depends-on): Update.
8249         * modules/netdb (Depends-on): Update.
8250         * modules/poll-h (Depends-on): Update.
8251         * modules/pty (Depends-on): Update.
8252         * modules/search (Depends-on): Update.
8253         * modules/signal (Depends-on): Update.
8254         * modules/spawn (Depends-on): Update.
8255         * modules/stdio (Depends-on): Update.
8256         * modules/stdlib (Depends-on): Update.
8257         * modules/string (Depends-on): Update.
8258         * modules/strings (Depends-on): Update.
8259         * modules/sys_ioctl (Depends-on): Update.
8260         * modules/sys_select (Depends-on): Update.
8261         * modules/sys_socket (Depends-on): Update.
8262         * modules/sys_stat (Depends-on): Update.
8263         * modules/sys_time (Depends-on): Update.
8264         * modules/sys_wait (Depends-on): Update.
8265         * modules/termios (Depends-on): Update.
8266         * modules/time (Depends-on): Update.
8267         * modules/unistd (Depends-on): Update.
8268         * modules/wchar (Depends-on): Update.
8269         * modules/wctype-h (Depends-on): Update.
8270
8271         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
8272         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
8273         (Files, Makefile.am): Update.
8274         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
8275         * modules/argv-iter (Depends-on): Update.
8276         * modules/arpa_inet (Depends-on): Update.
8277         * modules/dirent (Depends-on): Update.
8278         * modules/fcntl-h (Depends-on): Update.
8279         * modules/fnmatch (Depends-on): Update.
8280         * modules/getopt-posix (Depends-on): Update.
8281         * modules/glob (Depends-on): Update.
8282         * modules/iconv-h (Depends-on): Update.
8283         * modules/inttypes-incomplete (Depends-on): Update.
8284         * modules/locale (Depends-on): Update.
8285         * modules/math (Depends-on): Update.
8286         * modules/netdb (Depends-on): Update.
8287         * modules/search (Depends-on): Update.
8288         * modules/signal (Depends-on): Update.
8289         * modules/spawn (Depends-on): Update.
8290         * modules/stdio (Depends-on): Update.
8291         * modules/stdlib (Depends-on): Update.
8292         * modules/string (Depends-on): Update.
8293         * modules/strings (Depends-on): Update.
8294         * modules/sys_socket (Depends-on): Update.
8295         * modules/sys_stat (Depends-on): Update.
8296         * modules/sys_time (Depends-on): Update.
8297         * modules/sys_times (Depends-on): Update.
8298         * modules/sys_utsname (Depends-on): Update.
8299         * modules/time (Depends-on): Update.
8300         * modules/unistd (Depends-on): Update.
8301         * modules/wchar (Depends-on): Update.
8302         * MODULES.html.sh (Support for building libraries and executables):
8303         Update.
8304
8305 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8306
8307         Improvements on _Noreturn and related modules.
8308
8309         modules/_Exit-tests: test _Noreturn too
8310         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
8311         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
8312         (main): Use them.
8313
8314         stdnoreturn, stdnoreturn-tests: remove modules
8315         They're not needed here and a bit premature for use elsewhere.  See
8316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
8317         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8318         * tests/test-stdnoreturn.c: Remove files.
8319         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
8320         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
8321         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
8322         and using noreturn.
8323         * modules/openat, modules/sigpipe-die, modules/xalloc:
8324         * modules/xmemdup0, modules/xstrtol:
8325         Remove dependency on stdnoreturn.
8326
8327         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
8328         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
8329         Reparenthesize to avoid GCC warning.
8330         Support Microsoft's syntax.
8331         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
8332
8333         _Noreturn-tests: remove module
8334         * modules/_Noreturn-tests: Remove.
8335         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
8336         * tests/test-_Noreturn.c: Remove.
8337         * tests/test-stdnoreturn.c: Merge from the old
8338         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
8339
8340 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8341
8342         _Noreturn, stdnoreturn, and related modules.
8343
8344         * top/maint.mk: Adjust to new noreturn support.
8345         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
8346         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
8347
8348         xalloc: use stdnoreturn.h
8349         * lib/xalloc.h: Include <stdnoreturn.h>.
8350         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8351         * modules/xalloc (Depends-on): Add stdnoreturn.
8352
8353         xstrtol: use stdnoreturn.h
8354         * lib/xstrtol.h: Include <stdnoreturn.h>.
8355         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8356         * modules/xstrtol (Depends-on): Add stdnoreturn.
8357
8358         xmemdup0: use stdnoreturn.h
8359         * lib/xmemdup0.h: Include <stdnoreturn.h>.
8360         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8361         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
8362
8363         sigpipe-die: use stdnoreturn.h
8364         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
8365         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8366         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
8367
8368         openat: use stdnoreturn.h
8369         * lib/openat.h: Include <stdnoreturn.h>.
8370         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8371         * modules/openat (Depends-on): Add stdnoreturn.
8372
8373         * lib/openat-die.c (openat_save_fail): Modernize comment.
8374
8375         * lib/xalloc-die.c (xalloc_die): Modernize comment.
8376
8377         * lib/glthread/thread.h: Modernize comment.
8378
8379         obstack: use _Noreturn
8380         * lib/obstack.c (__attribute__): Remove macro.
8381         (print_and_abort): Use _Noreturn.
8382
8383         c-stack: use _Noreturn
8384         * lib/c-stack.c (die, overflow_handler, segv_handler):
8385         Use _Noreturn rather than __attribute__((noreturn)).
8386
8387         argmatch-tests, exclude_tests: use _Noreturn
8388         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
8389         Remove.
8390         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
8391
8392         stdlib: use _Noreturn
8393         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
8394         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
8395         * modules/stdlib (Depends-on): Add _Noreturn.
8396         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
8397
8398         stdnoreturn-tests: new module
8399         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
8400
8401         stdnoreturn: new module
8402         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
8403         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
8404
8405         _Noreturn-tests: new module
8406         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
8407
8408         _Noreturn: new module
8409         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
8410         New section, mentioning it.
8411         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
8412
8413         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
8414
8415 2011-07-11  Eric Blake  <eblake@redhat.com>
8416
8417         ffs: new module
8418         * modules/ffs: New file.
8419         * m4/ffs.m4: Likewise.
8420         * lib/ffs.c: Likewise.
8421         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
8422         * modules/strings (Makefile.am): Substitute witness.
8423         (Depends-on): Add c++defs.
8424         * lib/strings.in.h (ffs): Declare.
8425         * modules/ffs-tests: New test file.
8426         * tests/test-ffs.c: Test new module.
8427         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8428         * doc/posix-functions/ffs.texi (ffs): Likewise.
8429
8430         regex: avoid compiler warning
8431         * lib/regex.c (includes): Include <strings.h>, for use of
8432         strcasecmp in regcomp.c.
8433         Reported by Joachim Schmitz.
8434
8435 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8436
8437         stdint: respect system's intmax_t if INTMAX_MAX
8438         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
8439         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
8440         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
8441         long but int64_t is long long, and where we will clash with the
8442         system intmax_t if we override it.  See
8443         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
8444         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
8445         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
8446         similarly for UINTMAX_C.
8447
8448 2011-07-08  Bruno Haible  <bruno@clisp.org>
8449
8450         pthread_sigmask tests: Avoid a compiler warning.
8451         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
8452         non-zero.
8453
8454         sigprocmask tests: A better way to avoid a compiler warning.
8455         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
8456         (main): Complain if system() returns non-zero.
8457         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
8458
8459 2011-07-08  Bruno Haible  <bruno@clisp.org>
8460
8461         pthread_sigmask: Work around IRIX bug.
8462         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
8463         bug.
8464         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
8465         there may be unblocked pending signals.
8466         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
8467
8468 2011-07-08  Bruno Haible  <bruno@clisp.org>
8469
8470         pthread_sigmask: Work around Cygwin bug.
8471         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
8472         bug.
8473         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
8474         the system's pthread_sigmask function.
8475         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
8476
8477 2011-07-08  Bruno Haible  <bruno@clisp.org>
8478
8479         pthread_sigmask: Work around bug in single-threaded implementation.
8480         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
8481         FreeBSD, HP-UX, Solaris bug.
8482         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
8483         * lib/pthread_sigmask.c: Include <stddef.h>.
8484         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
8485         the system's pthread_sigmask function.
8486         * modules/pthread_sigmask (configure.ac): Invoke
8487         gl_PREREQ_PTHREAD_SIGMASK.
8488         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
8489         HP-UX, Solaris.
8490
8491 2011-07-08  Eric Blake  <eblake@redhat.com>
8492
8493         test-sigprocmask: avoid compiler warning
8494         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
8495         * tests/test-sigprocmask.c (main): Use it to silence warning.
8496         Reported by Jim Meyering.
8497
8498         test-snprintf: avoid compiler warning
8499         * tests/test-snprintf.c (main): Avoid shadowed declaration.
8500         * tests/test-vsnprintf.c (main): Likewise.
8501         Reported by Jim Meyering.
8502
8503 2011-07-08  Bruno Haible  <bruno@clisp.org>
8504
8505         Tests for module 'pthread_sigmask'.
8506         * modules/pthread_sigmask-tests: New file.
8507         * tests/test-pthread_sigmask1.c: New file, based on
8508         tests/test-sigprocmask.c.
8509         * tests/test-pthread_sigmask2.c: New file.
8510
8511 2011-07-08  Jim Meyering  <meyering@redhat.com>
8512
8513         test-getopt.h: avoid warning about an unused variable
8514         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
8515
8516 2011-07-07  Jim Meyering  <meyering@redhat.com>
8517
8518         maint: reduce list of files exempt from sc_prohibit_leading_TABs
8519         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
8520         now that it no longer contains leading TABs.
8521         Remove unused "url=FIXME" statement.
8522
8523 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8524
8525         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
8526         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8527         When gl_THREADLIB is not in use, assume that the POSIX sematics
8528         are desired.  This is better for Emacs, which uses POSIX semantics
8529         on GNUish and/or POSIXish platforms, and does not use threads at
8530         all otherwise.
8531
8532         pthread_sigmask: fix typo when testing for libraries
8533         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8534         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
8535
8536 2011-07-08  Eric Blake  <eblake@redhat.com>
8537
8538         fts: introduce FTS_NOATIME
8539         * lib/fts_.h (FTS_NOATIME): New bit flag.
8540         (FTS_OPTIONMASK): Adjust.
8541         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
8542         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
8543
8544 2011-07-08  Bruno Haible  <bruno@clisp.org>
8545
8546         Tests for module 'thread'.
8547         * modules/thread-tests: New file.
8548         * tests/test-thread_self.c: New file.
8549         * tests/test-thread_create.cc: New file.
8550
8551 2011-07-08  Bruno Haible  <bruno@clisp.org>
8552
8553         thread: Avoid gcc warnings when using gl_thread_self().
8554         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
8555         'void *'.
8556         (gl_thread_self_pointer): Update.
8557
8558 2011-07-07  Bruno Haible  <bruno@clisp.org>
8559
8560         signal-c++-tests: Check declaration of pthread_sigmask.
8561         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
8562         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
8563         $(LIB_PTHREAD_SIGMASK).
8564
8565 2011-07-07  Bruno Haible  <bruno@clisp.org>
8566
8567         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
8568         * lib/signal.in.h (pthread_sigmask): Override if
8569         REPLACE_PTHREAD_SIGMASK is 1.
8570         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8571         REPLACE_PTHREAD_SIGMASK.
8572         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
8573         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
8574         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
8575         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8576         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
8577
8578 2011-07-07  Bruno Haible  <bruno@clisp.org>
8579
8580         pthread_sigmask: Ensure declaration in <signal.h>.
8581         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
8582         include <pthread.h>.
8583         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
8584         problem.
8585
8586 2011-07-07  Bruno Haible  <bruno@clisp.org>
8587
8588         pthread_sigmask: Document the module.
8589         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
8590
8591 2011-07-07  Bruno Haible  <bruno@clisp.org>
8592
8593         pthread_sigmask: Follow gnulib conventions.
8594         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
8595         gl_PTHREAD_SIGMASK.
8596         * modules/pthread_sigmask (configure.ac): Update.
8597
8598 2011-07-07  Bruno Haible  <bruno@clisp.org>
8599
8600         pthread_sigmask: Make declaration C++ safe.
8601         * lib/signal.in.h: In two special conditions, just do an #include_next.
8602         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8603         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
8604         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8605         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8606         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
8607         not REPLACE_PTHREAD_MASK.
8608         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
8609         not REPLACE_PTHREAD_MASK.
8610         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8611
8612 2011-07-07  Bruno Haible  <bruno@clisp.org>
8613
8614         pthread_sigmask: Fix return value.
8615         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
8616         * lib/pthread_sigmask.c: New file.
8617         * modules/pthread_sigmask (Files): Add it.
8618         (configure.ac): Invoke AC_LIBOBJ.
8619
8620 2011-07-07  Eric Blake  <eblake@redhat.com>
8621
8622         getopt: more portable argv creation
8623         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
8624         const, use char arrays rather than strings.
8625         Suggested by Paul Eggert.
8626
8627 2011-07-07  Bruno Haible  <bruno@clisp.org>
8628
8629         Tests for module 'sigprocmask'.
8630         * modules/sigprocmask-tests: New file.
8631         * tests/test-sigprocmask.c: New file.
8632
8633 2011-07-07  Bruno Haible  <bruno@clisp.org>
8634
8635         float tests: Tweak.
8636         * tests/test-float.c (main): Tweak skip message.
8637
8638 2011-07-07  Eric Blake  <eblake@redhat.com>
8639
8640         getopt: avoid compiler warning during configure
8641         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
8642         assigning string literals to non-const pointer.
8643
8644         getopt-gnu: avoid crash in glibc getopt
8645         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
8646         * tests/test-getopt.h (test_getopt): Enhance test.
8647         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8648         * doc/posix-functions/getopt.texi (getopt): Document it.
8649         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8650         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8651         Likewise.
8652
8653 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8654
8655         getopt: handle W; without long options in getopt [BZ #12922]
8656         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
8657         but no long options are defined, just return 'W'.
8658
8659 2011-07-07  Bruno Haible  <bruno@clisp.org>
8660
8661         Avoid literal tabs.
8662         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
8663         variable containing a tab instead of a literal tab.
8664         Reported by Jim Meyering.
8665
8666 2011-07-07  Bruno Haible  <bruno@clisp.org>
8667
8668         Comments.
8669         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
8670
8671 2011-07-06  Bruno Haible  <bruno@clisp.org>
8672
8673         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
8674         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
8675         <winsock2.h>.
8676         (rpl_fd_isset, FD_ISSET): New definitions, copied from
8677         lib/sys_socket.in.h.
8678         (close, gethostname): Hide declarations from <winsock2.h>.
8679         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8680         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
8681         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
8682         (select): Don't override if gnulib's <sys/select.h> was already
8683         included.
8684         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8685         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8686         setsockopt, shutdown, select): Tweak indentation.
8687
8688 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8689
8690         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
8691         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
8692         in an application that does not use the sys_select module.
8693
8694 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
8695
8696         poll: do not return 0 on timeout=-1
8697         * lib/poll.c: Loop with yield if no events occured
8698
8699 2011-07-06  Eric Blake  <eblake@redhat.com>
8700
8701         pthread_sigmask: always replace when not using pthread
8702         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
8703         replacement when using some threading other than pthread.  Fix
8704         logic bug.
8705
8706 2011-07-06  Bruno Haible  <bruno@clisp.org>
8707
8708         Comments.
8709         * m4/printf.m4: Update comments about mingw.
8710
8711 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8712
8713         sys_select: define sigset_t more portably
8714         * lib/sys_select.in.h: Always include <sys/types.h>, since
8715         we now need sigset_t and mingw defines it there.
8716         Include <signal.h> before split inclusion guard, to avoid
8717         mishaps on Solaris, whose <signal.h> eventually includes us.
8718         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
8719         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
8720         which come from ...
8721         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
8722         gl_CHECK_TYPE_SIGSET_T.
8723         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
8724         does the real work.
8725         * modules/sys_select (Depends-on): Add 'signal'.
8726
8727         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
8728         Suggested by Bruno Haible.
8729
8730         pselect: Use pthread_sigmask, not sigprocmask.
8731         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
8732         multithreaded apps better than sigprocmask does.
8733         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
8734         sigprocmask directly.
8735
8736 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8737
8738         * lib/pselect.c (pselect): Use plain name, without "rpl_".
8739         Don't #undef,  since we don't need any underlying pselect.
8740         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
8741         (Depends-on): Add select.
8742         (Link): Add $(LIBSOCKET).
8743         These changes suggested by Bruno Haible.
8744
8745         pselect: document better
8746         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8747         * doc/posix-functions/pselect.texi (pselect): Document new module.
8748
8749         pthread_sigmask: new module
8750         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8751         * doc/posix-functions/pthread_sigmask.texi: Document new module.
8752         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
8753         This is done only as a macro; I don't know how well that'll
8754         work for C++.  Move <sys/types.h> include before the include_next,
8755         to avoid mishap on Solaris.
8756         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
8757         * modules/signal (Makefile.am): Substitute the check's results.
8758         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
8759
8760         test-pselect: new module
8761         * modules/pselect-tests, tests/test-pselect.c: New files.
8762         * tests/test-select.c, tests/test-sys_select-c++.cc:
8763         If TEST_PSELECT is defined, test pselect instead of testing select.
8764
8765         * tests/test-sys_select.c (sigset_t): Test for it, too.
8766         Suggested by Bruno Haible.
8767
8768 2011-07-05  Eric Blake  <eblake@redhat.com>
8769
8770         snprintf: guarantee %1$d, for libintl
8771         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
8772         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
8773         * doc/posix-functions/snprintf.texi (snprintf): Update.
8774         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8775         * tests/test-snprintf.c (main): Enhance test.
8776         * tests/test-vsnprintf.c (main): Likewise.
8777
8778 2011-07-05  Jim Meyering  <meyering@redhat.com>
8779
8780         maint: exempt stdio-read.c and stdio-write.c from the cppi check
8781         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
8782         per Bruno's request, to accommodate this idiom (no space after "#")
8783         even when the function is inside an #if block:
8784         char *
8785         gets (char *s)
8786         #undef gets
8787         {
8788           ...
8789         }
8790
8791 2011-07-04  Jim Meyering  <meyering@redhat.com>
8792
8793         maint: indent with spaces, not TABs, and add a rule to check this
8794         * tests/test-userspec.c: Indent with spaces, not TABs.
8795         * tests/test-argp.c: Likewise.
8796         * tests/test-c-stack2.sh: Likewise.
8797         * tests/test-parse-duration.sh: Likewise
8798         * m4/strtod.m4: Likewise.
8799         * m4/alloca.m4: Likewise.
8800         * m4/pselect.m4: Likewise.
8801         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
8802
8803 2011-07-03  Jim Meyering  <meyering@redhat.com>
8804
8805         maint.mk: correct omissions in prohibit_argmatch_without_use check
8806         This rule would mistakenly report that argmatch.h is included without
8807         use even when both the argmatch and invalid_arg macro were used.
8808         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
8809         of argmatch and invalid_arg.
8810
8811 2011-07-03  Bruno Haible  <bruno@clisp.org>
8812
8813         Comments about EINTR.
8814         * lib/safe-read.h: Explain the purpose of this module.
8815         * lib/safe-write.h: Likewise.
8816         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
8817         module.
8818         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
8819         module.
8820         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8821
8822 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8823
8824         xnanosleep: Rewrite to use new dtotimespec module.
8825         It has the conversion code that used to be in xnanosleep.
8826         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
8827         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
8828         (TIME_T_MAX): Remove.
8829         (xnanosleep): Rewrite in terms of dtotimespec.
8830         * modules/xnanosleep (Depends-on): Add dtotimespec.
8831         Remove intprops, stdbool.
8832
8833         timespec-add, timespec-sub: new modules
8834         * lib/timespec.h (timespec_add, timespec_sub): New decls.
8835         * lib/timespec-add.c, lib/timespec-sub.c:
8836         * modules/timespec-add, modules/timespec-sub: New files.
8837
8838         dtotimespec: new module
8839         * lib/timespec.h (dtotimespec): New decl.
8840         * lib/dtotimespec.c, modules/dtotimespec: New files.
8841
8842         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
8843
8844         pselect: new module
8845         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
8846         (pselect): New decls.
8847         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
8848         since the standard pselect decl uses 'restrict'.
8849         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
8850         HAVE_PSELECT, REPLACE_PSELECT.
8851         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
8852         HAVE_PSELECT, REPLACE_PSELECT.
8853         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
8854
8855         sys_select: don't depend on sys_socket
8856         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
8857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
8858         This fix works on GNU and GNU-like platforms, but has not been tested
8859         on native Windows.
8860         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
8861         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
8862         gl_HEADER_SYS_SOCKET.
8863         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
8864         gl_PREREQ_SYS_H_WINSOCK2.
8865
8866 2011-06-29  Eric Blake  <eblake@redhat.com>
8867
8868         pipe2: fix C89 compile problem
8869         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
8870         Reported by Bruno Haible.
8871
8872         pipe, pipe2: don't corrupt fd on error
8873         * lib/pipe.c (pipe): Leave fd unchanged on error.
8874         * lib/pipe2.c (pipe2): Likewise.
8875         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
8876         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8877
8878 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
8879
8880         mmap-anon: do not use regular expressions inadvertently
8881         * m4/mmap-anon.m4: Remove trailing period from strings sought
8882         in the output.
8883
8884 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
8885
8886         nanosleep: fix integer overflow problem
8887         * lib/nanosleep.c (my_usleep): Don't assume signed integer
8888         arithmetic wraps around on overflow.
8889
8890         nanosleep: simplify carrying
8891         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
8892         first call to the underyling nanosleep, not for the last one.
8893         This doesn't fix any bugs, but it simplifies the computation of
8894         the remaining delay.  Found while auditing integer overflow issues.
8895
8896         dup2: remove test for existence of fcntl
8897         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
8898         "#if HAVE_FCNTL", in the configure-time test program.
8899         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
8900         and therefore speeds up "configure" a bit.  Found while
8901         adding the dup2 module to Emacs.
8902
8903 2011-06-24  Eric Blake  <eblake@redhat.com>
8904
8905         maint.mk: enhance useless header checks
8906         * top/maint.mk (_sc_header_without_use): Check both include
8907         styles.
8908         (sc_prohibit_assert_without_use)
8909         (sc_prohibit_close_stream_without_use)
8910         (sc_prohibit_getopt_without_use)
8911         (sc_prohibit_quotearg_without_use)
8912         (sc_prohibit_quote_without_use)
8913         (sc_prohibit_long_options_without_use)
8914         (sc_prohibit_inttostr_without_use)
8915         (sc_prohibit_ignore_value_without_use)
8916         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
8917         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
8918         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
8919         (sc_prohibit_hash_pjw_without_use)
8920         (sc_prohibit_safe_read_without_use)
8921         (sc_prohibit_argmatch_without_use)
8922         (sc_prohibit_canonicalize_without_use)
8923         (sc_prohibit_root_dev_ino_without_use)
8924         (sc_prohibit_openat_without_use)
8925         (sc_prohibit_c_ctype_without_use)
8926         (sc_prohibit_signal_without_use)
8927         (sc_prohibit_stdio--_without_use)
8928         (sc_prohibit_stdio-safer_without_use)
8929         (sc_prohibit_strings_without_use)
8930         (sc_prohibit_intprops_without_use)
8931         (sc_prohibit_stddef_without_use)
8932         (sc_prohibit_xfreopen_without_use): Update clients.
8933
8934 2011-06-24  Jim Meyering  <meyering@redhat.com>
8935
8936         syntax-check: keep one maint.mk rule in sync with its header
8937         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
8938         of the bug Eric has just fixed, with today's commit 25e4c2ec.
8939         I prefer to avoid temporary files here, so use <(...), but that
8940         is not supported by /bin/sh, so...
8941         (SHELL): Define to /bin/bash.
8942
8943 2011-06-24  Eric Blake  <eblake@redhat.com>
8944
8945         maint.mk: update sc_prohibit_intprops_without_use
8946         * top/maint.mk (_intprops_names): Match recent changes.
8947
8948 2011-06-24  Bruno Haible  <bruno@clisp.org>
8949
8950         strerror-override: No-op tweak.
8951         * lib/strerror-override.h (strerror_override): Reorder conditions,
8952         for consistency with lib/strerror-override.c.
8953
8954 2011-06-23  Eric Blake  <eblake@redhat.com>
8955
8956         maint.mk: test further PATH_MAX issues
8957         * top/maint.mk (sc_prohibit_path_max_array): Rename...
8958         (sc_prohibit_path_max_allocation): ...and also test alloca.
8959         Suggested by Jim Meyering.
8960
8961 2011-06-22  Eric Blake  <eblake@redhat.com>
8962
8963         maint.mk: add syntax-check to avoid char[PATH_MAX]
8964         * top/maint.mk (sc_prohibit_path_max_array): New rule.
8965
8966         stat: be robust to PATH_MAX definition
8967         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
8968         * modules/stat (Depends-on): Add verify.
8969
8970         link: work around IRIX bug
8971         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
8972         * lib/link.c (rpl_link): Work around it.
8973         * tests/test-link.h (test_link): Enhance test.
8974         * doc/posix-functions/link.texi (link): Document the bug.
8975
8976         getopt: silence clang warning
8977         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
8978         dereference.
8979         Reported by Gustavo Martin Domato.
8980
8981 2011-06-22  Jim Meyering  <meyering@redhat.com>
8982
8983         bootstrap: do not insert a blank line into each .gitignore file
8984         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
8985
8986 2011-06-21  Eric Blake  <eblake@redhat.com>
8987
8988         perror: test for output mismatch
8989         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
8990         perror on IRIX.
8991
8992         strerror_r: fix OpenBSD behavior on out-of-range
8993         * lib/strerror_r.c (strerror_r): Always use maximal string.
8994         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8995
8996         strerror_r: fix OpenBSD behavior on 0
8997         * lib/strerror-override.c (strerror_override): Also override 0
8998         when needed.
8999         * lib/strerror-override.h (strerror_override): Likewise.
9000         * lib/strerror.c (strerror): Simplify, now that 0 override is done
9001         earlier.
9002         * lib/strerror_r.c (strerror_r): Likewise.
9003         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
9004         behavior...
9005         (gl_FUNC_STRERROR_0): ...into new macro.
9006         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
9007         is overridden.
9008         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
9009         * modules/strerror-override (Files): Add strerror.m4.
9010         (configure.ac): Also provide override for 0 when needed.
9011         * doc/posix-functions/strerror.texi (strerror): Document this.
9012         * doc/posix-functions/perror.texi (perror): Likewise.
9013
9014         perror: adjust array size
9015         * modules/perror (Depends-on): Add strerror-override.
9016         * lib/perror.c (perror): Use it to avoid magic number.
9017
9018         strerror-override: reduce size
9019         * lib/strerror-override.c (strerror_override): Use fewer lines.
9020
9021 2011-06-20  Bruno Haible  <bruno@clisp.org>
9022
9023         pathmax: Ensure correct value for PATH_MAX on HP-UX.
9024         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
9025
9026 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9027
9028         alloca: port to compilers that can optimize like GCC 4.6.0
9029         * lib/alloca.c (find_stack_direction): New signature, taken from
9030         Autoconf git.  This works with GCC 4.6.0.  This code should never
9031         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
9032         be used with other compilers that optimize as well as GCC 4.6.0 does.
9033         (alloca): Adjust to new signature.
9034         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
9035         New macro, which patches Autoconf in a similar way.
9036
9037         c-stack: stop worrying about stack direction
9038         * lib/c-stack.c (find_stack_direction): Remove.
9039         (segv_handler): Don't worry about stack direction growth, as it's
9040         too much of a pain to configure this correctly, given how compilers
9041         are optimizing-away our stack-growth detection code.  Instead, assume
9042         that any access to just before or just after the stack is OK.
9043         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
9044         Don't require AC_FUNC_ALLOCA; no longer needed.
9045
9046 2011-06-20  Eric Blake  <eblake@redhat.com>
9047
9048         test-stat: don't allocate PATH_MAX bytes
9049         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
9050         PATH_MAX-sized buffer.
9051         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
9052         * modules/stat-tests (Depends-on): Likewise.
9053         * tests/test-fstatat.c (includes): Drop pathmax.h.
9054         * tests/test-stat.c (includes): Likewise.
9055         Reported by Bruno Haible.
9056
9057 2011-06-20  Bruno Haible  <bruno@clisp.org>
9058
9059         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
9060         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
9061         * lib/float.c: New file.
9062         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
9063         REPLACE_FLOAT_LDBL.
9064         * modules/float (Files): Add lib/float.c.
9065         (configure.ac): Invoke AC_LIBOBJ.
9066         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
9067
9068 2011-06-20  Bruno Haible  <bruno@clisp.org>
9069
9070         Tests for module 'float'.
9071         * modules/float-tests: New file.
9072         * tests/test-float.c: New file.
9073
9074 2011-06-19  Bruno Haible  <bruno@clisp.org>
9075
9076         isinf: Coding style.
9077         * lib/isinf.c: Use GNU coding style.
9078
9079 2011-06-19  Bruno Haible  <bruno@clisp.org>
9080
9081         linkat test: Avoid test failure on AIX 7.1.
9082         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
9083         * tests/test-link.h (test_link): Likewise.
9084
9085 2011-06-19  Bruno Haible  <bruno@clisp.org>
9086
9087         pread test: Avoid test failure on OpenBSD 4.9.
9088         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
9089
9090 2011-06-19  Bruno Haible  <bruno@clisp.org>
9091
9092         sprintf-posix: Fix test failure on AIX 7.1.
9093         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
9094         * doc/posix-functions/dprintf.texi: Mention limited precision problem
9095         on AIX.
9096         * doc/posix-functions/fprintf.texi: Likewise.
9097         * doc/posix-functions/printf.texi: Likewise.
9098         * doc/posix-functions/snprintf.texi: Likewise.
9099         * doc/posix-functions/sprintf.texi: Likewise.
9100         * doc/posix-functions/vdprintf.texi: Likewise.
9101         * doc/posix-functions/vfprintf.texi: Likewise.
9102         * doc/posix-functions/vprintf.texi: Likewise.
9103         * doc/posix-functions/vsnprintf.texi: Likewise.
9104         * doc/posix-functions/vsprintf.texi: Likewise.
9105
9106 2011-06-19  Bruno Haible  <bruno@clisp.org>
9107
9108         roundl-ieee: Fix test failure on AIX 7.1.
9109         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
9110         * doc/posix-functions/roundl.texi: Mention problem with negative
9111         arguments.
9112
9113 2011-06-19  Bruno Haible  <bruno@clisp.org>
9114
9115         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9116         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
9117         * doc/posix-functions/round.texi: Mention problem with negative
9118         arguments.
9119         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
9120
9121 2011-06-19  Bruno Haible  <bruno@clisp.org>
9122
9123         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9124         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
9125         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
9126         * doc/posix-functions/roundf.texi: Mention problem with negative
9127         arguments.
9128         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
9129
9130 2011-06-19  Bruno Haible  <bruno@clisp.org>
9131
9132         ceilf-ieee: Work around bug on MacOS X 10.5.
9133         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
9134
9135         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
9136         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
9137         IEEE compliant, avoid compiler optimizations.
9138         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
9139         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9140         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
9141         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9142         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9143         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9144         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9145         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9146         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9147         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9148
9149 2011-06-19  Bruno Haible  <bruno@clisp.org>
9150
9151         ceilf-ieee: Work around bug on AIX 7.1.
9152         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
9153         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
9154
9155 2011-06-19  Bruno Haible  <bruno@clisp.org>
9156
9157         ceil-ieee: Work around bug on AIX 7.1.
9158         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
9159         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
9160
9161 2011-06-18  Bruno Haible  <bruno@clisp.org>
9162
9163         fsync test: Avoid test failure on MacOS X and AIX.
9164         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
9165         EINVAL.
9166
9167 2011-06-18  Bruno Haible  <bruno@clisp.org>
9168
9169         openat, fdopendir tests: Fix link errors.
9170         * modules/openat-tests (Depends-on): Add progname.
9171         * modules/fdopendir-tests (Depends-on): Likewise.
9172         * tests/test-fchownat.c: Include progname.h.
9173         (main): Call set_program_name.
9174         * tests/test-fstatat.c: Include progname.h.
9175         (main): Call set_program_name.
9176         * tests/test-mkdirat.c: Include progname.h.
9177         (main): Call set_program_name.
9178         * tests/test-openat.c: Include progname.h.
9179         (main): Call set_program_name.
9180         * tests/test-unlinkat.c: Include progname.h.
9181         (main): Call set_program_name.
9182         * tests/test-fdopendir.c: Include progname.h.
9183         (main): Call set_program_name.
9184
9185 2011-06-18  Bruno Haible  <bruno@clisp.org>
9186
9187         Doc update.
9188         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
9189         HP-UX.
9190         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
9191
9192 2011-06-18  Bruno Haible  <bruno@clisp.org>
9193
9194         getcwd tests: Avoid compilation error on HP-UX 11.31.
9195         * modules/getcwd-tests (Depends-on): Add pathmax.
9196         * tests/test-getcwd.c: Include pathmax.h.
9197
9198 2011-06-18  Bruno Haible  <bruno@clisp.org>
9199
9200         isfinite, isinf: Fix link error on AIX 6 and 7.
9201         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
9202         needed, also test the macro with a 'float' argument.
9203         * m4/isinf.m4 (gl_ISINF): Likewise.
9204
9205 2011-06-18  Bruno Haible  <bruno@clisp.org>
9206
9207         getloadavg: Don't clobber LIBS. Regression from previous commit.
9208         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
9209         AC_CHECK_LIB from here...
9210         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
9211         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
9212         gl_func_getloadavg_done.
9213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9214
9215 2011-06-18  Bruno Haible  <bruno@clisp.org>
9216
9217         clean-temp: Improve documentation.
9218         * lib/clean-temp.h: Explain better how to use this module.
9219         Reported by John Darrington <john@darrington.wattle.id.au>.
9220
9221 2011-06-17  Bruno Haible  <bruno@clisp.org>
9222
9223         pread, pwrite: Avoid cc warning on AIX.
9224         * lib/unistd.in.h (pread): Undefine before defining as a macro.
9225         (pwrite): Likewise.
9226
9227 2011-06-17  Bruno Haible  <bruno@clisp.org>
9228
9229         spawn-pipe tests: Fix link error.
9230         * tests/test-spawn-pipe-child.c: Undefine fprintf.
9231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9232
9233 2011-06-17  Bruno Haible  <bruno@clisp.org>
9234
9235         Tests: Remove unnecessary dependency.
9236         * modules/canonicalize-tests (Depends-on): Remove progname.
9237         * modules/chown-tests (Depends-on): Likewise.
9238         * modules/dirname-tests (Depends-on): Likewise.
9239         * modules/fdopendir-tests (Depends-on): Likewise.
9240         * modules/fdutimensat-tests (Depends-on): Likewise.
9241         * modules/hash-tests (Depends-on): Likewise.
9242         * modules/lchown-tests (Depends-on): Likewise.
9243         * modules/linkat-tests (Depends-on): Likewise.
9244         * modules/renameat-tests (Depends-on): Likewise.
9245         * modules/spawn-pipe-tests (Depends-on): Likewise.
9246         * modules/utimensat-tests (Depends-on): Likewise.
9247
9248 2011-06-17  Bruno Haible  <bruno@clisp.org>
9249
9250         spawn-pipe tests: Fix link error.
9251         * tests/test-spawn-pipe-child.c: Undefine fflush.
9252
9253 2011-06-17  Bruno Haible  <bruno@clisp.org>
9254
9255         Fix tests link errors.
9256         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
9257         * modules/chown-tests (Makefile.am): Don't link test-chown with
9258         LIBINTL.
9259         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
9260         LIBINTL.
9261         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
9262         LIBINTL.
9263         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
9264         LIBINTL.
9265
9266 2011-06-16  Bruno Haible  <bruno@clisp.org>
9267
9268         crypto/gc-sha1: Fix recent regression.
9269         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
9270         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
9271
9272         crypto/gc-md5: Fix recent regression.
9273         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
9274
9275         crypto/gc-md4: Fix recent regression.
9276         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
9277         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
9278
9279         crypto/gc-arctwo: Fix recent regression.
9280         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
9281         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
9282
9283         crypto/gc-rijndael: Fix recent regression.
9284         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
9285         (configure.ac): Invoke AC_LIBOBJ here.
9286         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
9287         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9288
9289         crypto/gc-hmac-sha1: Fix recent regression.
9290         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
9291         (configure.ac): Invoke AC_LIBOBJ here.
9292         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
9293         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9294
9295         crypto/gc-hmac-md5: Fix recent regression.
9296         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
9297         (configure.ac): Invoke AC_LIBOBJ here.
9298         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
9299         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9300
9301         crypto/gc-des: Fix recent regression.
9302         * modules/crypto/gc-des (Files): Remove m4/des.m4.
9303         (configure.ac): Invoke AC_LIBOBJ here.
9304         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
9305         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9306
9307         crypto/gc-arcfour: Fix recent regression.
9308         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
9309         (configure.ac): Invoke AC_LIBOBJ here.
9310         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
9311         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9312
9313 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
9314
9315         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
9316         After the 2011-05-21 change, this macro requires
9317         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
9318         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9319
9320 2011-06-16  Bruno Haible  <bruno@clisp.org>
9321
9322         fprintftime: Move AC_LIBOBJ invocations to module description.
9323         * m4/fprintftime.m4: Remove file.
9324         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
9325         (configure.ac): Remove gl_FPRINTFTIME call.
9326         (Makefile.am): Augment lib_SOURCES.
9327         Reported by Jim Meyering.
9328
9329 2011-06-16  Bruno Haible  <bruno@clisp.org>
9330
9331         tmpfile-safer: Finish 2011-05-23 commit.
9332         * m4/stdio-safer.m4: Really remove file.
9333         Reported by Jim Meyering.
9334
9335 2011-06-16  Bruno Haible  <bruno@clisp.org>
9336
9337         syntax-check: Fix typo.
9338         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
9339         printf-posix.m4.
9340         Reported by Jim Meyering.
9341
9342 2011-06-13  Jim Meyering  <meyering@redhat.com>
9343
9344         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
9345         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
9346
9347 2011-05-23  Bruno Haible  <bruno@clisp.org>
9348
9349         yesno: Move AC_LIBOBJ invocations to module description.
9350         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
9351         * modules/yesno (Makefile.am): Augment lib_SOURCES.
9352
9353 2011-05-23  Bruno Haible  <bruno@clisp.org>
9354
9355         xstrtol: Move AC_LIBOBJ invocations to module description.
9356         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
9357         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
9358
9359 2011-05-23  Bruno Haible  <bruno@clisp.org>
9360
9361         xstrtold: Move AC_LIBOBJ invocations to module description.
9362         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
9363         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
9364
9365 2011-05-23  Bruno Haible  <bruno@clisp.org>
9366
9367         xstrtod: Move AC_LIBOBJ invocations to module description.
9368         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
9369         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
9370
9371 2011-05-23  Bruno Haible  <bruno@clisp.org>
9372
9373         xnanosleep: Move AC_LIBOBJ invocations to module description.
9374         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
9375         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
9376
9377 2011-05-23  Bruno Haible  <bruno@clisp.org>
9378
9379         xgetcwd: Move AC_LIBOBJ invocations to module description.
9380         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
9381         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
9382
9383 2011-05-23  Bruno Haible  <bruno@clisp.org>
9384
9385         xalloc: Move AC_LIBOBJ invocations to module description.
9386         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
9387         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
9388
9389 2011-05-23  Bruno Haible  <bruno@clisp.org>
9390
9391         write-any-file: Move AC_LIBOBJ invocations to module description.
9392         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
9393         invocation.
9394         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
9395
9396 2011-05-23  Bruno Haible  <bruno@clisp.org>
9397
9398         utimens: Move AC_LIBOBJ invocations to module description.
9399         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
9400         * modules/utimens (Makefile.am): Augment lib_SOURCES.
9401
9402 2011-05-23  Bruno Haible  <bruno@clisp.org>
9403
9404         utimecmp: Move AC_LIBOBJ invocations to module description.
9405         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
9406         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
9407
9408 2011-05-23  Bruno Haible  <bruno@clisp.org>
9409
9410         userspec: Move AC_LIBOBJ invocations to module description.
9411         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
9412         * modules/userspec (Makefile.am): Augment lib_SOURCES.
9413
9414 2011-05-23  Bruno Haible  <bruno@clisp.org>
9415
9416         unlinkdir: Move AC_LIBOBJ invocations to module description.
9417         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
9418         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
9419
9420 2011-05-23  Bruno Haible  <bruno@clisp.org>
9421
9422         unistd-safer: Move AC_LIBOBJ invocations to module description.
9423         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
9424         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
9425
9426 2011-05-23  Bruno Haible  <bruno@clisp.org>
9427
9428         tempname: Move AC_LIBOBJ invocations to module description.
9429         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
9430         * modules/tempname (Makefile.am): Augment lib_SOURCES.
9431
9432 2011-05-23  Bruno Haible  <bruno@clisp.org>
9433
9434         strftime: Move AC_LIBOBJ invocations to module description.
9435         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
9436         * modules/strftime (Makefile.am): Augment lib_SOURCES.
9437
9438 2011-05-23  Bruno Haible  <bruno@clisp.org>
9439
9440         stdlib-safer: Move AC_LIBOBJ invocations to module description.
9441         * m4/stdlib-safer.m4: Remove file.
9442         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
9443         (configure.ac): Remove gl_STDLIB_SAFER call.
9444         (Makefile.am): Augment lib_SOURCES.
9445
9446 2011-05-23  Bruno Haible  <bruno@clisp.org>
9447
9448         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
9449         * m4/stdio-safer.m4: Remove file.
9450         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
9451         (configure.ac): Remove gl_TMPFILE_SAFER call.
9452         (Makefile.am): Augment lib_SOURCES.
9453
9454 2011-05-23  Bruno Haible  <bruno@clisp.org>
9455
9456         popen-safer: Move AC_LIBOBJ invocations to module description.
9457         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
9458         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
9459         (configure.ac): Remove gl_POPEN_SAFER call.
9460         (Makefile.am): Augment lib_SOURCES.
9461
9462 2011-05-23  Bruno Haible  <bruno@clisp.org>
9463
9464         freopen-safer: Move AC_LIBOBJ invocations to module description.
9465         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
9466         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
9467         (configure.ac): Remove gl_FREOPEN_SAFER call.
9468         (Makefile.am): Augment lib_SOURCES.
9469
9470 2011-05-23  Bruno Haible  <bruno@clisp.org>
9471
9472         fopen-safer: Move AC_LIBOBJ invocations to module description.
9473         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
9474         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
9475         (configure.ac): Remove gl_FOPEN_SAFER call.
9476         (Makefile.am): Augment lib_SOURCES.
9477
9478 2011-05-23  Bruno Haible  <bruno@clisp.org>
9479
9480         crypto/sha512: Move AC_LIBOBJ invocations to module description.
9481         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
9482         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
9483
9484 2011-05-23  Bruno Haible  <bruno@clisp.org>
9485
9486         crypto/sha256: Move AC_LIBOBJ invocations to module description.
9487         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
9488         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
9489
9490 2011-05-23  Bruno Haible  <bruno@clisp.org>
9491
9492         crypto/sha1: Move AC_LIBOBJ invocations to module description.
9493         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
9494         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
9495
9496 2011-05-23  Bruno Haible  <bruno@clisp.org>
9497
9498         settime: Move AC_LIBOBJ invocations to module description.
9499         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
9500         * modules/settime (Makefile.am): Augment lib_SOURCES.
9501
9502 2011-05-23  Bruno Haible  <bruno@clisp.org>
9503
9504         savedir: Move AC_LIBOBJ invocations to module description.
9505         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
9506         * modules/savedir (Makefile.am): Augment lib_SOURCES.
9507
9508 2011-05-23  Bruno Haible  <bruno@clisp.org>
9509
9510         save-cwd: Move AC_LIBOBJ invocations to module description.
9511         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
9512         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
9513
9514 2011-05-23  Bruno Haible  <bruno@clisp.org>
9515
9516         same: Move AC_LIBOBJ invocations to module description.
9517         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
9518         * modules/same (Makefile.am): Augment lib_SOURCES.
9519
9520 2011-05-23  Bruno Haible  <bruno@clisp.org>
9521
9522         safe-write: Move AC_LIBOBJ invocations to module description.
9523         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
9524         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
9525         instead of gl_SAFE_WRITE.
9526         (Makefile.am): Augment lib_SOURCES.
9527
9528 2011-05-23  Bruno Haible  <bruno@clisp.org>
9529
9530         safe-read: Move AC_LIBOBJ invocations to module description.
9531         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
9532         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
9533         of gl_SAFE_READ.
9534         (Makefile.am): Augment lib_SOURCES.
9535
9536 2011-05-23  Bruno Haible  <bruno@clisp.org>
9537
9538         safe-alloc: Move AC_LIBOBJ invocations to module description.
9539         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
9540         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
9541
9542 2011-05-23  Bruno Haible  <bruno@clisp.org>
9543
9544         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
9545         * m4/rijndael.m4: Remove file.
9546         * modules/crypto/rijndael (Files): Remove it.
9547         (configure.ac): Remove gl_RIJNDAEL call.
9548         (Makefile.am): Augment lib_SOURCES.
9549
9550 2011-05-23  Bruno Haible  <bruno@clisp.org>
9551
9552         readtokens: Move AC_LIBOBJ invocations to module description.
9553         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
9554         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
9555
9556 2011-05-23  Bruno Haible  <bruno@clisp.org>
9557
9558         read-file: Move AC_LIBOBJ invocations to module description.
9559         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
9560         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
9561         of gl_FUNC_READ_FILE.
9562         (Makefile.am): Augment lib_SOURCES.
9563
9564 2011-05-23  Bruno Haible  <bruno@clisp.org>
9565
9566         quotearg: Move AC_LIBOBJ invocations to module description.
9567         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
9568         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
9569
9570 2011-05-23  Bruno Haible  <bruno@clisp.org>
9571
9572         quote: Move AC_LIBOBJ invocations to module description.
9573         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
9574         * modules/quote (Makefile.am): Augment lib_SOURCES.
9575
9576 2011-05-23  Bruno Haible  <bruno@clisp.org>
9577
9578         posixver: Move AC_LIBOBJ invocations to module description.
9579         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
9580         * modules/posixver (Makefile.am): Augment lib_SOURCES.
9581
9582 2011-05-23  Bruno Haible  <bruno@clisp.org>
9583
9584         posixtm: Move AC_LIBOBJ invocations to module description.
9585         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
9586         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
9587
9588 2011-05-23  Bruno Haible  <bruno@clisp.org>
9589
9590         physmem: Move AC_LIBOBJ invocations to module description.
9591         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
9592         * modules/physmem (Makefile.am): Augment lib_SOURCES.
9593
9594 2011-05-23  Bruno Haible  <bruno@clisp.org>
9595
9596         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
9597         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
9598         invocation.
9599         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
9600
9601 2011-05-23  Bruno Haible  <bruno@clisp.org>
9602
9603         mpsort: Move AC_LIBOBJ invocations to module description.
9604         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
9605         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
9606
9607 2011-05-23  Bruno Haible  <bruno@clisp.org>
9608
9609         modechange: Move AC_LIBOBJ invocations to module description.
9610         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
9611         * modules/modechange (Makefile.am): Augment lib_SOURCES.
9612
9613 2011-05-23  Bruno Haible  <bruno@clisp.org>
9614
9615         mkdir-p: Move AC_LIBOBJ invocations to module description.
9616         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
9617         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
9618
9619 2011-05-23  Bruno Haible  <bruno@clisp.org>
9620
9621         mkancesdirs: Move AC_LIBOBJ invocations to module description.
9622         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
9623         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
9624
9625 2011-05-23  Bruno Haible  <bruno@clisp.org>
9626
9627         mgetgroups: Move AC_LIBOBJ invocations to module description.
9628         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
9629         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
9630
9631 2011-05-23  Bruno Haible  <bruno@clisp.org>
9632
9633         memxor: Move AC_LIBOBJ invocations to module description.
9634         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
9635         * modules/memxor (Makefile.am): Augment lib_SOURCES.
9636
9637 2011-05-23  Bruno Haible  <bruno@clisp.org>
9638
9639         memcoll: Move AC_LIBOBJ invocations to module description.
9640         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
9641         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
9642
9643 2011-05-23  Bruno Haible  <bruno@clisp.org>
9644
9645         memcasecmp: Move AC_LIBOBJ invocations to module description.
9646         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
9647         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
9648
9649 2011-05-23  Bruno Haible  <bruno@clisp.org>
9650
9651         crypto/md5: Move AC_LIBOBJ invocations to module description.
9652         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
9653         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
9654
9655 2011-05-23  Bruno Haible  <bruno@clisp.org>
9656
9657         crypto/md4: Move AC_LIBOBJ invocations to module description.
9658         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
9659         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
9660
9661 2011-05-23  Bruno Haible  <bruno@clisp.org>
9662
9663         crypto/md2: Move AC_LIBOBJ invocations to module description.
9664         * m4/md2.m4: Remove file.
9665         * modules/crypto/md2 (Files): Remove it.
9666         (configure.ac): Remove gl_MD2 call.
9667         (Makefile.am): Augment lib_SOURCES.
9668
9669 2011-05-23  Bruno Haible  <bruno@clisp.org>
9670
9671         long-options: Move AC_LIBOBJ invocations to module description.
9672         * m4/long-options.m4: Remove file.
9673         * modules/long-options (Files): Remove it.
9674         (configure.ac): Remove gl_LONG_OPTIONS call.
9675         (Makefile.am): Augment lib_SOURCES.
9676
9677 2011-05-23  Bruno Haible  <bruno@clisp.org>
9678
9679         i-ring: Move AC_LIBOBJ invocations to module description.
9680         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
9681         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
9682
9683 2011-05-23  Bruno Haible  <bruno@clisp.org>
9684
9685         idcache: Move AC_LIBOBJ invocations to module description.
9686         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
9687         * modules/idcache (Makefile.am): Augment lib_SOURCES.
9688
9689 2011-05-23  Bruno Haible  <bruno@clisp.org>
9690
9691         human: Move AC_LIBOBJ invocations to module description.
9692         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
9693         * modules/human (Makefile.am): Augment lib_SOURCES.
9694
9695 2011-05-23  Bruno Haible  <bruno@clisp.org>
9696
9697         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
9698         * m4/hmac-sha1.m4: Remove file.
9699         * modules/crypto/hmac-sha1 (Files): Remove it.
9700         (configure.ac): Remove gl_HMAC_SHA1 call.
9701         (Makefile.am): Augment lib_SOURCES.
9702
9703 2011-05-23  Bruno Haible  <bruno@clisp.org>
9704
9705         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
9706         * m4/hmac-md5.m4: Remove file.
9707         * modules/crypto/hmac-md5 (Files): Remove it.
9708         (configure.ac): Remove gl_HMAC_MD5 call.
9709         (Makefile.am): Augment lib_SOURCES.
9710
9711 2011-05-23  Bruno Haible  <bruno@clisp.org>
9712
9713         hash: Move AC_LIBOBJ invocations to module description.
9714         * m4/hash.m4: Remove file.
9715         * modules/hash (Files): Remove it.
9716         (configure.ac): Remove gl_HASH call.
9717         (Makefile.am): Augment lib_SOURCES.
9718
9719 2011-05-23  Bruno Haible  <bruno@clisp.org>
9720
9721         hard-locale: Move AC_LIBOBJ invocations to module description.
9722         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
9723         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
9724
9725 2011-05-23  Bruno Haible  <bruno@clisp.org>
9726
9727         getugroups: Move AC_LIBOBJ invocations to module description.
9728         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
9729         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
9730
9731 2011-05-23  Bruno Haible  <bruno@clisp.org>
9732
9733         gettime: Move AC_LIBOBJ invocations to module description.
9734         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
9735         * modules/gettime (Makefile.am): Augment lib_SOURCES.
9736
9737 2011-05-23  Bruno Haible  <bruno@clisp.org>
9738
9739         getndelim2: Move AC_LIBOBJ invocations to module description.
9740         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
9741         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
9742
9743 2011-05-23  Bruno Haible  <bruno@clisp.org>
9744
9745         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
9746         * m4/gc-pbkdf2-sha1.m4: Remove file.
9747         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
9748         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
9749         (Makefile.am): Augment lib_SOURCES.
9750
9751 2011-05-23  Bruno Haible  <bruno@clisp.org>
9752
9753         fts: Move AC_LIBOBJ invocations to module description.
9754         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
9755         * modules/fts (configure.ac): ... to here.
9756
9757 2011-05-23  Bruno Haible  <bruno@clisp.org>
9758
9759         file-type: Move AC_LIBOBJ invocations to module description.
9760         * m4/file-type.m4: Remove file.
9761         * modules/file-type (Files): Remove it.
9762         (configure.ac): Remove gl_FILE_TYPE call.
9763         (Makefile.am): Augment lib_SOURCES.
9764
9765 2011-05-23  Bruno Haible  <bruno@clisp.org>
9766
9767         filenamecat*: Respect rules for use of AC_LIBOBJ.
9768         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
9769         Remove AC_LIBOBJ invocation.
9770         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
9771         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
9772
9773 2011-05-23  Bruno Haible  <bruno@clisp.org>
9774
9775         filemode: Move AC_LIBOBJ invocations to module description.
9776         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
9777         * modules/filemode (Makefile.am): Augment lib_SOURCES.
9778
9779 2011-05-23  Bruno Haible  <bruno@clisp.org>
9780
9781         openat-safer: Move AC_LIBOBJ invocations to module description.
9782         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
9783         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
9784
9785 2011-05-23  Bruno Haible  <bruno@clisp.org>
9786
9787         fcntl-safer: Move AC_LIBOBJ invocations to module description.
9788         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
9789         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
9790
9791 2011-05-23  Bruno Haible  <bruno@clisp.org>
9792
9793         exclude: Move AC_LIBOBJ invocations to module description.
9794         * m4/exclude.m4: Remove file.
9795         * modules/exclude (Files): Remove it.
9796         (configure.ac): Remove gl_EXCLUDE call.
9797         (Makefile.am): Augment lib_SOURCES.
9798
9799 2011-05-23  Bruno Haible  <bruno@clisp.org>
9800
9801         dirname*: Respect rules for use of AC_LIBOBJ.
9802         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
9803         invocations.
9804         * modules/dirname (Makefile.am): Augment lib_SOURCES.
9805         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
9806
9807 2011-05-23  Bruno Haible  <bruno@clisp.org>
9808
9809         dirent-safer: Move AC_LIBOBJ invocations to module description.
9810         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
9811         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
9812
9813 2011-05-23  Bruno Haible  <bruno@clisp.org>
9814
9815         crypto/des: Move AC_LIBOBJ invocations to module description.
9816         * m4/des.m4: Remove file.
9817         * modules/crypto/des (Files): Remove it.
9818         (configure.ac): Remove gl_DES call.
9819         (Makefile.am): Augment lib_SOURCES.
9820
9821 2011-05-23  Bruno Haible  <bruno@clisp.org>
9822
9823         cycle-check: Move AC_LIBOBJ invocations to module description.
9824         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
9825         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
9826
9827 2011-05-23  Bruno Haible  <bruno@clisp.org>
9828
9829         c-strtold: Move AC_LIBOBJ invocations to module description.
9830         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
9831         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
9832
9833 2011-05-23  Bruno Haible  <bruno@clisp.org>
9834
9835         c-strtod: Move AC_LIBOBJ invocations to module description.
9836         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
9837         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
9838
9839 2011-05-23  Bruno Haible  <bruno@clisp.org>
9840
9841         crc: Move AC_LIBOBJ invocations to module description.
9842         * m4/crc.m4: Remove file.
9843         * modules/crc (Files): Remove it.
9844         (configure.ac): Remove gl_CRC call.
9845         (Makefile.am): Augment lib_SOURCES.
9846
9847 2011-05-23  Bruno Haible  <bruno@clisp.org>
9848
9849         close-stream: Move AC_LIBOBJ invocations to module description.
9850         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
9851         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
9852
9853 2011-05-23  Bruno Haible  <bruno@clisp.org>
9854
9855         closeout: Move AC_LIBOBJ invocations to module description.
9856         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
9857         * modules/closeout (Makefile.am): Augment lib_SOURCES.
9858
9859 2011-05-23  Bruno Haible  <bruno@clisp.org>
9860
9861         closein: Move AC_LIBOBJ invocations to module description.
9862         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
9863         * modules/closein (Makefile.am): Augment lib_SOURCES.
9864
9865 2011-05-23  Bruno Haible  <bruno@clisp.org>
9866
9867         cloexec: Move AC_LIBOBJ invocations to module description.
9868         * m4/cloexec.m4: Remove file.
9869         * modules/cloexec (Files): Remove it.
9870         (configure.ac): Remove gl_CLOEXEC call.
9871         (Makefile.am): Augment lib_SOURCES.
9872
9873 2011-05-23  Bruno Haible  <bruno@clisp.org>
9874
9875         check-version: Move AC_LIBOBJ invocations to module description.
9876         * m4/check-version.m4: Remove file.
9877         * modules/check-version (Files): Remove it.
9878         (configure.ac): Remove gl_CHECK_VERSION call.
9879         (Makefile.am): Augment lib_SOURCES.
9880
9881 2011-05-23  Bruno Haible  <bruno@clisp.org>
9882
9883         chdir-safer: Move AC_LIBOBJ invocations to module description.
9884         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
9885         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
9886
9887 2011-05-23  Bruno Haible  <bruno@clisp.org>
9888
9889         canonicalize: Move AC_LIBOBJ invocations to module description.
9890         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
9891         AC_LIBOBJ invocation.
9892         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
9893
9894 2011-05-23  Bruno Haible  <bruno@clisp.org>
9895
9896         canon-host: Move AC_LIBOBJ invocations to module description.
9897         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
9898         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
9899         instead of gl_CANON_HOST.
9900         (Makefile.am): Augment lib_SOURCES.
9901
9902 2011-05-23  Bruno Haible  <bruno@clisp.org>
9903
9904         backupfile: Move AC_LIBOBJ invocations to module description.
9905         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
9906         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
9907
9908 2011-05-23  Bruno Haible  <bruno@clisp.org>
9909
9910         argmatch: Move AC_LIBOBJ invocations to module description.
9911         * m4/argmatch.m4: Remove file.
9912         * modules/argmatch (Files): Remove it.
9913         (configure.ac): Remove gl_ARGMATCH call.
9914         (Makefile.am): Augment lib_SOURCES.
9915
9916 2011-05-23  Bruno Haible  <bruno@clisp.org>
9917
9918         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
9919         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
9920         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
9921
9922 2011-05-23  Bruno Haible  <bruno@clisp.org>
9923
9924         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
9925         * m4/arcfour.m4: Remove file.
9926         * modules/crypto/arcfour (Files): Remove it.
9927         (configure.ac): Remove gl_ARCFOUR call.
9928         (Makefile.am): Augment lib_SOURCES.
9929
9930 2011-05-22  Bruno Haible  <bruno@clisp.org>
9931
9932         write: Move AC_LIBOBJ invocations to module description.
9933         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
9934         * modules/write (configure.ac): ... to here.
9935
9936 2011-05-22  Bruno Haible  <bruno@clisp.org>
9937
9938         wmemset: Move AC_LIBOBJ invocations to module description.
9939         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
9940         here...
9941         * modules/wmemset (configure.ac): ... to here.
9942
9943 2011-05-22  Bruno Haible  <bruno@clisp.org>
9944
9945         wmemmove: Move AC_LIBOBJ invocations to module description.
9946         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
9947         here...
9948         * modules/wmemmove (configure.ac): ... to here.
9949
9950 2011-05-22  Bruno Haible  <bruno@clisp.org>
9951
9952         wmemcpy: Move AC_LIBOBJ invocations to module description.
9953         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
9954         here...
9955         * modules/wmemcpy (configure.ac): ... to here.
9956
9957 2011-05-22  Bruno Haible  <bruno@clisp.org>
9958
9959         wmemcmp: Move AC_LIBOBJ invocations to module description.
9960         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
9961         here...
9962         * modules/wmemcmp (configure.ac): ... to here.
9963
9964 2011-05-22  Bruno Haible  <bruno@clisp.org>
9965
9966         wmemchr: Move AC_LIBOBJ invocations to module description.
9967         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
9968         here...
9969         * modules/wmemchr (configure.ac): ... to here.
9970
9971 2011-05-22  Bruno Haible  <bruno@clisp.org>
9972
9973         wcswidth: Move AC_LIBOBJ invocations to module description.
9974         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
9975         here...
9976         * modules/wcswidth (configure.ac): ... to here.
9977
9978 2011-05-22  Bruno Haible  <bruno@clisp.org>
9979
9980         wcwidth: Respect rules for use of AC_LIBOBJ.
9981         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
9982         invocation from here...
9983         * modules/wcwidth (configure.ac): ... to here.
9984         (Depends-on): Update conditions.
9985
9986 2011-05-22  Bruno Haible  <bruno@clisp.org>
9987
9988         wctype: Move AC_LIBOBJ invocations to module description.
9989         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
9990         invocation from here...
9991         * modules/wctype (configure.ac): ... to here.
9992         (Depends-on): Update conditions.
9993
9994 2011-05-22  Bruno Haible  <bruno@clisp.org>
9995
9996         wctrans: Move AC_LIBOBJ invocations to module description.
9997         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
9998         invocation from here...
9999         * modules/wctrans (configure.ac): ... to here.
10000
10001 2011-05-22  Bruno Haible  <bruno@clisp.org>
10002
10003         wctomb: Move AC_LIBOBJ invocations to module description.
10004         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
10005         invocations from here...
10006         * modules/wctomb (configure.ac): ... to here.
10007
10008 2011-05-22  Bruno Haible  <bruno@clisp.org>
10009
10010         wctob: Move AC_LIBOBJ invocations to module description.
10011         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
10012         gl_PREREQ_WCTOB invocations from here...
10013         * modules/wctob (configure.ac): ... to here.
10014         (Depends-on): Update conditions.
10015
10016 2011-05-22  Bruno Haible  <bruno@clisp.org>
10017
10018         wcsxfrm: Move AC_LIBOBJ invocations to module description.
10019         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
10020         here...
10021         * modules/wcsxfrm (configure.ac): ... to here.
10022
10023 2011-05-22  Bruno Haible  <bruno@clisp.org>
10024
10025         wcstok: Move AC_LIBOBJ invocations to module description.
10026         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
10027         * modules/wcstok (configure.ac): ... to here.
10028
10029 2011-05-22  Bruno Haible  <bruno@clisp.org>
10030
10031         wcsstr: Move AC_LIBOBJ invocations to module description.
10032         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
10033         * modules/wcsstr (configure.ac): ... to here.
10034
10035 2011-05-22  Bruno Haible  <bruno@clisp.org>
10036
10037         wcsspn: Move AC_LIBOBJ invocations to module description.
10038         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
10039         * modules/wcsspn (configure.ac): ... to here.
10040
10041 2011-05-22  Bruno Haible  <bruno@clisp.org>
10042
10043         wcsrtombs: Move AC_LIBOBJ invocations to module description.
10044         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
10045         gl_PREREQ_WCSRTOMBS invocations from here...
10046         * modules/wcsrtombs (configure.ac): ... to here.
10047
10048 2011-05-22  Bruno Haible  <bruno@clisp.org>
10049
10050         wcsrchr: Move AC_LIBOBJ invocations to module description.
10051         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
10052         here...
10053         * modules/wcsrchr (configure.ac): ... to here.
10054
10055 2011-05-22  Bruno Haible  <bruno@clisp.org>
10056
10057         wcspbrk: Move AC_LIBOBJ invocations to module description.
10058         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
10059         here...
10060         * modules/wcspbrk (configure.ac): ... to here.
10061
10062 2011-05-22  Bruno Haible  <bruno@clisp.org>
10063
10064         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
10065         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
10066         gl_PREREQ_WCSNRTOMBS invocations from here...
10067         * modules/wcsnrtombs (configure.ac): ... to here.
10068
10069 2011-05-22  Bruno Haible  <bruno@clisp.org>
10070
10071         wcsnlen: Move AC_LIBOBJ invocations to module description.
10072         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
10073         here...
10074         * modules/wcsnlen (configure.ac): ... to here.
10075
10076 2011-05-22  Bruno Haible  <bruno@clisp.org>
10077
10078         wcsncpy: Move AC_LIBOBJ invocations to module description.
10079         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
10080         here...
10081         * modules/wcsncpy (configure.ac): ... to here.
10082
10083 2011-05-22  Bruno Haible  <bruno@clisp.org>
10084
10085         wcsncmp: Move AC_LIBOBJ invocations to module description.
10086         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
10087         here...
10088         * modules/wcsncmp (configure.ac): ... to here.
10089
10090 2011-05-22  Bruno Haible  <bruno@clisp.org>
10091
10092         wcsncat: Move AC_LIBOBJ invocations to module description.
10093         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
10094         here...
10095         * modules/wcsncat (configure.ac): ... to here.
10096
10097 2011-05-22  Bruno Haible  <bruno@clisp.org>
10098
10099         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
10100         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
10101         from here...
10102         * modules/wcsncasecmp (configure.ac): ... to here.
10103
10104 2011-05-22  Bruno Haible  <bruno@clisp.org>
10105
10106         wcslen: Move AC_LIBOBJ invocations to module description.
10107         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
10108         * modules/wcslen (configure.ac): ... to here.
10109
10110 2011-05-22  Bruno Haible  <bruno@clisp.org>
10111
10112         wcsdup: Move AC_LIBOBJ invocations to module description.
10113         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
10114         * modules/wcsdup (configure.ac): ... to here.
10115
10116 2011-05-22  Bruno Haible  <bruno@clisp.org>
10117
10118         wcscspn: Move AC_LIBOBJ invocations to module description.
10119         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
10120         here...
10121         * modules/wcscspn (configure.ac): ... to here.
10122
10123 2011-05-22  Bruno Haible  <bruno@clisp.org>
10124
10125         wcscpy: Move AC_LIBOBJ invocations to module description.
10126         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
10127         * modules/wcscpy (configure.ac): ... to here.
10128
10129 2011-05-22  Bruno Haible  <bruno@clisp.org>
10130
10131         wcscoll: Move AC_LIBOBJ invocations to module description.
10132         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
10133         here...
10134         * modules/wcscoll (configure.ac): ... to here.
10135
10136 2011-05-22  Bruno Haible  <bruno@clisp.org>
10137
10138         wcscmp: Move AC_LIBOBJ invocations to module description.
10139         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
10140         * modules/wcscmp (configure.ac): ... to here.
10141
10142 2011-05-22  Bruno Haible  <bruno@clisp.org>
10143
10144         wcschr: Move AC_LIBOBJ invocations to module description.
10145         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
10146         * modules/wcschr (configure.ac): ... to here.
10147
10148 2011-05-22  Bruno Haible  <bruno@clisp.org>
10149
10150         wcscat: Move AC_LIBOBJ invocations to module description.
10151         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
10152         * modules/wcscat (configure.ac): ... to here.
10153
10154 2011-05-22  Bruno Haible  <bruno@clisp.org>
10155
10156         wcscasecmp: Move AC_LIBOBJ invocations to module description.
10157         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
10158         here...
10159         * modules/wcscasecmp (configure.ac): ... to here.
10160
10161 2011-05-22  Bruno Haible  <bruno@clisp.org>
10162
10163         wcrtomb: Move AC_LIBOBJ invocations to module description.
10164         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
10165         invocations from here...
10166         * modules/wcrtomb (configure.ac): ... to here.
10167
10168 2011-05-22  Bruno Haible  <bruno@clisp.org>
10169
10170         wcpncpy: Move AC_LIBOBJ invocations to module description.
10171         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
10172         here...
10173         * modules/wcpncpy (configure.ac): ... to here.
10174
10175 2011-05-22  Bruno Haible  <bruno@clisp.org>
10176
10177         wcpcpy: Move AC_LIBOBJ invocations to module description.
10178         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
10179         * modules/wcpcpy (configure.ac): ... to here.
10180
10181 2011-05-22  Bruno Haible  <bruno@clisp.org>
10182
10183         waitpid: Move AC_LIBOBJ invocations to module description.
10184         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
10185         invocation from here...
10186         * modules/waitpid (configure.ac): ... to here.
10187
10188 2011-05-22  Bruno Haible  <bruno@clisp.org>
10189
10190         utimensat: Move AC_LIBOBJ invocations to module description.
10191         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
10192         here...
10193         * modules/utimensat (configure.ac): ... to here.
10194
10195 2011-05-22  Bruno Haible  <bruno@clisp.org>
10196
10197         usleep: Move AC_LIBOBJ invocations to module description.
10198         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
10199         here...
10200         * modules/usleep (configure.ac): ... to here.
10201
10202 2011-05-22  Bruno Haible  <bruno@clisp.org>
10203
10204         unlockpt: Move AC_LIBOBJ invocations to module description.
10205         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
10206         gl_PREREQ_UNLOCKPT invocations from here...
10207         * modules/unlockpt (configure.ac): ... to here.
10208
10209 2011-05-22  Bruno Haible  <bruno@clisp.org>
10210
10211         unlink: Respect rules for use of AC_LIBOBJ.
10212         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
10213         * modules/unlink (configure.ac): ... to here.
10214
10215 2011-05-22  Bruno Haible  <bruno@clisp.org>
10216
10217         uname: Move AC_LIBOBJ invocations to module description.
10218         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
10219         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
10220         here...
10221         * modules/uname (configure.ac): ... to here.
10222
10223 2011-05-22  Bruno Haible  <bruno@clisp.org>
10224
10225         ttyname_r: Move AC_LIBOBJ invocations to module description.
10226         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
10227         gl_PREREQ_TTYNAME_R invocations from here...
10228         * modules/ttyname_r (configure.ac): ... to here.
10229
10230 2011-05-22  Bruno Haible  <bruno@clisp.org>
10231
10232         tsearch: Move AC_LIBOBJ invocations to module description.
10233         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
10234         invocations from here...
10235         * modules/tsearch (configure.ac): ... to here.
10236
10237 2011-05-22  Bruno Haible  <bruno@clisp.org>
10238
10239         towctrans: Move AC_LIBOBJ invocations to module description.
10240         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
10241         AC_LIBOBJ invocation from here...
10242         * modules/towctrans (configure.ac): ... to here.
10243
10244 2011-05-22  Bruno Haible  <bruno@clisp.org>
10245
10246         tmpfile: Move AC_LIBOBJ invocations to module description.
10247         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
10248         invocations from here...
10249         * modules/tmpfile (configure.ac): ... to here.
10250
10251 2011-05-22  Bruno Haible  <bruno@clisp.org>
10252
10253         times: Move AC_LIBOBJ invocations to module description.
10254         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
10255         * modules/times (configure.ac): ... to here.
10256
10257 2011-05-22  Bruno Haible  <bruno@clisp.org>
10258
10259         time_r: Move AC_LIBOBJ invocations to module description.
10260         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
10261         invocations from here...
10262         * modules/time_r (configure.ac): ... to here.
10263
10264 2011-05-22  Bruno Haible  <bruno@clisp.org>
10265
10266         timegm: Move AC_LIBOBJ invocations to module description.
10267         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
10268         invocations from here...
10269         * modules/timegm (configure.ac): ... to here.
10270
10271 2011-05-22  Bruno Haible  <bruno@clisp.org>
10272
10273         tcgetsid: Move AC_LIBOBJ invocations to module description.
10274         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
10275         and gl_PREREQ_TCGETSID invocations from here...
10276         * modules/tcgetsid (configure.ac): ... to here.
10277         (Depends-on): Update conditions.
10278
10279 2011-05-22  Bruno Haible  <bruno@clisp.org>
10280
10281         symlinkat: Move AC_LIBOBJ invocations to module description.
10282         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
10283         here...
10284         * modules/symlinkat (configure.ac): ... to here.
10285
10286 2011-05-22  Bruno Haible  <bruno@clisp.org>
10287
10288         symlink: Move AC_LIBOBJ invocations to module description.
10289         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
10290         here...
10291         * modules/symlink (configure.ac): ... to here.
10292
10293 2011-05-22  Bruno Haible  <bruno@clisp.org>
10294
10295         strverscmp: Move AC_LIBOBJ invocations to module description.
10296         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
10297         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
10298         from here...
10299         * modules/strverscmp (configure.ac): ... to here.
10300
10301 2011-05-22  Bruno Haible  <bruno@clisp.org>
10302
10303         strtok_r: Move AC_LIBOBJ invocations to module description.
10304         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
10305         and gl_PREREQ_STRTOK_R invocations from here...
10306         * modules/strtok_r (configure.ac): ... to here.
10307         (Depends-on): Update conditions.
10308
10309 2011-05-22  Bruno Haible  <bruno@clisp.org>
10310
10311         strtoumax: Move AC_LIBOBJ invocations to module description.
10312         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
10313         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
10314         from here...
10315         * modules/strtoumax (configure.ac): ... to here.
10316
10317 2011-05-22  Bruno Haible  <bruno@clisp.org>
10318
10319         strtoimax: Move AC_LIBOBJ invocations to module description.
10320         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
10321         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
10322         from here...
10323         * modules/strtoimax (configure.ac): ... to here.
10324
10325 2011-05-22  Bruno Haible  <bruno@clisp.org>
10326
10327         strtoull: Move AC_LIBOBJ invocations to module description.
10328         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
10329         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
10330         from here...
10331         * modules/strtoull (configure.ac): ... to here.
10332
10333 2011-05-22  Bruno Haible  <bruno@clisp.org>
10334
10335         strtoll: Move AC_LIBOBJ invocations to module description.
10336         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
10337         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
10338         here...
10339         * modules/strtoll (configure.ac): ... to here.
10340
10341 2011-05-22  Bruno Haible  <bruno@clisp.org>
10342
10343         strtoul: Move AC_LIBOBJ invocations to module description.
10344         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
10345         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10346         * modules/strtoul (configure.ac): ... to here.
10347
10348 2011-05-22  Bruno Haible  <bruno@clisp.org>
10349
10350         strtol: Move AC_LIBOBJ invocations to module description.
10351         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
10352         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10353         * modules/strtol (configure.ac): ... to here.
10354
10355 2011-05-22  Bruno Haible  <bruno@clisp.org>
10356
10357         strtod: Move AC_LIBOBJ invocations to module description.
10358         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
10359         invocations from here...
10360         * modules/strtod (configure.ac): ... to here.
10361
10362 2011-05-22  Bruno Haible  <bruno@clisp.org>
10363
10364         strstr*: Move AC_LIBOBJ invocations to module description.
10365         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
10366         invocations from here...
10367         * modules/strstr-simple (configure.ac): ... to here.
10368         * modules/strstr (configure.ac): ... and here.
10369
10370 2011-05-22  Bruno Haible  <bruno@clisp.org>
10371
10372         strsignal: Move AC_LIBOBJ invocations to module description.
10373         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
10374         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
10375         * modules/strsignal (configure.ac): ... to here.
10376         (Depends-on): Update conditions.
10377
10378 2011-05-22  Bruno Haible  <bruno@clisp.org>
10379
10380         strsep: Move AC_LIBOBJ invocations to module description.
10381         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
10382         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
10383         here...
10384         * modules/strsep (configure.ac): ... to here.
10385
10386 2011-05-22  Bruno Haible  <bruno@clisp.org>
10387
10388         strptime: Move AC_LIBOBJ invocations to module description.
10389         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
10390         gl_PREREQ_STRPTIME invocations from here...
10391         * modules/strptime (configure.ac): ... to here.
10392
10393 2011-05-22  Bruno Haible  <bruno@clisp.org>
10394
10395         strpbrk: Move AC_LIBOBJ invocations to module description.
10396         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
10397         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
10398         here...
10399         * modules/strpbrk (configure.ac): ... to here.
10400
10401 2011-05-22  Bruno Haible  <bruno@clisp.org>
10402
10403         strnlen: Move AC_LIBOBJ invocations to module description.
10404         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
10405         invocations from here...
10406         * modules/strnlen (configure.ac): ... to here.
10407
10408 2011-05-22  Bruno Haible  <bruno@clisp.org>
10409
10410         strndup: Move AC_LIBOBJ invocations to module description.
10411         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
10412         invocations from here...
10413         * modules/strndup (configure.ac): ... to here.
10414         (Depends-on): Update conditions.
10415
10416 2011-05-22  Bruno Haible  <bruno@clisp.org>
10417
10418         strncat: Move AC_LIBOBJ invocations to module description.
10419         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
10420         invocations from here...
10421         * modules/strncat (configure.ac): ... to here.
10422
10423 2011-05-22  Bruno Haible  <bruno@clisp.org>
10424
10425         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
10426         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
10427         invocations from here...
10428         * modules/strdup (configure.ac): ... to here.
10429         * modules/strdup-posix (configure.ac): ... and here.
10430
10431 2011-05-22  Bruno Haible  <bruno@clisp.org>
10432
10433         strcspn: Move AC_LIBOBJ invocations to module description.
10434         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
10435         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
10436         here...
10437         * modules/strcspn (configure.ac): ... to here.
10438
10439 2011-05-22  Bruno Haible  <bruno@clisp.org>
10440
10441         strchrnul: Move AC_LIBOBJ invocations to module description.
10442         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
10443         gl_PREREQ_STRCHRNUL invocations from here...
10444         * modules/strchrnul (configure.ac): ... to here.
10445
10446 2011-05-22  Bruno Haible  <bruno@clisp.org>
10447
10448         strcasestr*: Move AC_LIBOBJ invocations to module description.
10449         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10450         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
10451         * modules/strcasestr-simple (configure.ac): ... to here.
10452         * modules/strcasestr (configure.ac): ... and here.
10453
10454 2011-05-22  Bruno Haible  <bruno@clisp.org>
10455
10456         strcase: Move AC_LIBOBJ invocations to module description.
10457         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
10458         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
10459         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
10460         gl_PREREQ_STRNCASECMP invocations from here...
10461         * modules/strcase (configure.ac): ... to here.
10462
10463 2011-05-22  Bruno Haible  <bruno@clisp.org>
10464
10465         stpncpy: Move AC_LIBOBJ invocations to module description.
10466         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
10467         here...
10468         * modules/stpncpy (configure.ac): ... to here.
10469
10470 2011-05-22  Bruno Haible  <bruno@clisp.org>
10471
10472         stpcpy: Move AC_LIBOBJ invocations to module description.
10473         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
10474         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
10475         here...
10476         * modules/stpcpy (configure.ac): ... to here.
10477
10478 2011-05-21  Bruno Haible  <bruno@clisp.org>
10479
10480         stat: Move AC_LIBOBJ invocations to module description.
10481         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
10482         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
10483         here...
10484         * modules/stat (configure.ac): ... to here.
10485
10486 2011-05-21  Bruno Haible  <bruno@clisp.org>
10487
10488         sleep: Move AC_LIBOBJ invocations to module description.
10489         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
10490         * modules/sleep (configure.ac): ... to here.
10491
10492 2011-05-21  Bruno Haible  <bruno@clisp.org>
10493
10494         signbit: Move AC_LIBOBJ invocations to module description.
10495         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
10496         * modules/signbit (configure.ac): ... to here.
10497
10498 2011-05-21  Bruno Haible  <bruno@clisp.org>
10499
10500         sigprocmask: Move AC_LIBOBJ invocations to module description.
10501         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
10502         gl_PREREQ_SIGPROMASK invocations from here...
10503         * modules/sigprocmask (configure.ac): ... to here.
10504
10505 2011-05-21  Bruno Haible  <bruno@clisp.org>
10506
10507         sigaction: Move AC_LIBOBJ invocations to module description.
10508         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
10509         gl_PREREQ_SIGACTION invocations from here...
10510         * modules/sigaction (configure.ac): ... to here.
10511
10512 2011-05-21  Bruno Haible  <bruno@clisp.org>
10513
10514         sig2str: Move AC_LIBOBJ invocations to module description.
10515         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
10516         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
10517         here...
10518         * modules/sig2str (configure.ac): ... to here.
10519
10520 2011-05-21  Bruno Haible  <bruno@clisp.org>
10521
10522         setlocale: Move AC_LIBOBJ invocations to module description.
10523         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
10524         gl_PREREQ_SETLOCALE invocations from here...
10525         * modules/setlocale (configure.ac): ... to here.
10526
10527 2011-05-21  Bruno Haible  <bruno@clisp.org>
10528
10529         unsetenv: Move AC_LIBOBJ invocations to module description.
10530         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
10531         and gl_PREREQ_UNSETENV invocations from here...
10532         * modules/unsetenv (configure.ac): ... to here.
10533         (Depends-on): Update.
10534
10535 2011-05-21  Bruno Haible  <bruno@clisp.org>
10536
10537         setenv: Move AC_LIBOBJ invocations to module description.
10538         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
10539         here...
10540         * modules/setenv (configure.ac): ... to here.
10541
10542 2011-05-21  Bruno Haible  <bruno@clisp.org>
10543
10544         selinux-h: Move AC_LIBOBJ invocations to module description.
10545         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
10546         AC_LIBOBJ invocation from here...
10547         * modules/selinux-h (configure.ac): ... to here.
10548
10549 2011-05-21  Bruno Haible  <bruno@clisp.org>
10550
10551         select: Respect rules for use of AC_LIBOBJ.
10552         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
10553         here...
10554         * modules/select (configure.ac): ... to here.
10555
10556 2011-05-21  Bruno Haible  <bruno@clisp.org>
10557
10558         scandir: Move AC_LIBOBJ invocations to module description.
10559         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
10560         invocations from here...
10561         * modules/scandir (configure.ac): ... to here.
10562
10563 2011-05-21  Bruno Haible  <bruno@clisp.org>
10564
10565         rpmatch: Move AC_LIBOBJ invocations to module description.
10566         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
10567         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
10568         here...
10569         * modules/rpmatch (configure.ac): ... to here.
10570
10571 2011-05-21  Bruno Haible  <bruno@clisp.org>
10572
10573         rmdir: Respect rules for use of AC_LIBOBJ.
10574         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
10575         * modules/rmdir (configure.ac): ... to here.
10576
10577 2011-05-21  Bruno Haible  <bruno@clisp.org>
10578
10579         renameat: Move AC_LIBOBJ invocations to module description.
10580         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
10581         here...
10582         * modules/renameat (configure.ac): ... to here.
10583
10584 2011-05-21  Bruno Haible  <bruno@clisp.org>
10585
10586         rename: Respect rules for use of AC_LIBOBJ.
10587         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
10588         here...
10589         * modules/rename (configure.ac): ... to here.
10590
10591 2011-05-21  Bruno Haible  <bruno@clisp.org>
10592
10593         remove: Move AC_LIBOBJ invocations to module description.
10594         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
10595         here...
10596         * modules/remove (configure.ac): ... to here.
10597
10598 2011-05-21  Bruno Haible  <bruno@clisp.org>
10599
10600         relocatable-lib: Move AC_LIBOBJ invocations to module description.
10601         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
10602         macro.
10603         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
10604         * modules/relocatable-lib (configure.ac): ... to here.
10605         * modules/relocatable-prog-wrapper (configure.ac): Invoke
10606         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
10607
10608 2011-05-21  Bruno Haible  <bruno@clisp.org>
10609
10610         relocatable-prog: Move AC_LIBOBJ invocations to module description.
10611         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
10612         here...
10613         * modules/relocatable-prog (configure.ac): ... to here.
10614
10615 2011-05-21  Bruno Haible  <bruno@clisp.org>
10616
10617         regex: Move AC_LIBOBJ invocations to module description.
10618         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
10619         invocations from here...
10620         * modules/regex (configure.ac): ... to here.
10621
10622 2011-05-21  Bruno Haible  <bruno@clisp.org>
10623
10624         realloc-*: Move AC_LIBOBJ invocations to module description.
10625         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
10626         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
10627         AC_LIBOBJ invocations from here...
10628         * modules/realloc-gnu (configure.ac): ... to here.
10629         * modules/realloc-posix (configure.ac): ... and here.
10630
10631 2011-05-21  Bruno Haible  <bruno@clisp.org>
10632
10633         readutmp: Move AC_LIBOBJ invocations to module description.
10634         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
10635         * modules/readutmp (configure.ac): ... to here.
10636
10637 2011-05-21  Bruno Haible  <bruno@clisp.org>
10638
10639         readlinkat: Move AC_LIBOBJ invocations to module description.
10640         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
10641         here...
10642         * modules/readlinkat (configure.ac): ... to here.
10643
10644 2011-05-21  Bruno Haible  <bruno@clisp.org>
10645
10646         readlink: Move AC_LIBOBJ invocations to module description.
10647         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
10648         gl_PREREQ_READLINK invocations from here...
10649         * modules/readlink (configure.ac): ... to here.
10650
10651 2011-05-21  Bruno Haible  <bruno@clisp.org>
10652
10653         readline: Move AC_LIBOBJ invocations to module description.
10654         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
10655         gl_PREREQ_READLINE invocations from here...
10656         * modules/readline (configure.ac): ... to here.
10657
10658 2011-05-21  Bruno Haible  <bruno@clisp.org>
10659
10660         read: Move AC_LIBOBJ invocations to module description.
10661         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
10662         * modules/read (configure.ac): ... to here.
10663
10664 2011-05-21  Bruno Haible  <bruno@clisp.org>
10665
10666         rawmemchr: Move AC_LIBOBJ invocations to module description.
10667         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
10668         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
10669         from here...
10670         * modules/rawmemchr (configure.ac): ... to here.
10671
10672 2011-05-21  Bruno Haible  <bruno@clisp.org>
10673
10674         random_r: Move AC_LIBOBJ invocations to module description.
10675         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
10676         gl_PREREQ_RANDOM_R invocations from here...
10677         * modules/random_r (configure.ac): ... to here.
10678
10679 2011-05-21  Bruno Haible  <bruno@clisp.org>
10680
10681         pwrite: Move AC_LIBOBJ invocations to module description.
10682         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
10683         * modules/pwrite (configure.ac): ... to here.
10684
10685 2011-05-21  Bruno Haible  <bruno@clisp.org>
10686
10687         putenv: Move AC_LIBOBJ invocations to module description.
10688         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
10689         * modules/putenv (configure.ac): ... to here.
10690
10691 2011-05-21  Bruno Haible  <bruno@clisp.org>
10692
10693         login_tty: Move AC_LIBOBJ invocations to module description.
10694         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
10695         * modules/login_tty (configure.ac): ... to here.
10696
10697 2011-05-21  Bruno Haible  <bruno@clisp.org>
10698
10699         openpty: Move AC_LIBOBJ invocations to module description.
10700         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
10701         * modules/openpty (configure.ac): ... to here.
10702
10703 2011-05-21  Bruno Haible  <bruno@clisp.org>
10704
10705         forkpty: Move AC_LIBOBJ invocations to module description.
10706         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
10707         * modules/forkpty (configure.ac): ... to here.
10708
10709 2011-05-21  Bruno Haible  <bruno@clisp.org>
10710
10711         ptsname: Move AC_LIBOBJ invocations to module description.
10712         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
10713         invocations from here...
10714         * modules/ptsname (configure.ac): ... to here.
10715
10716 2011-05-21  Bruno Haible  <bruno@clisp.org>
10717
10718         pread: Move AC_LIBOBJ invocations to module description.
10719         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
10720         * modules/pread (configure.ac): ... to here.
10721
10722 2011-05-21  Bruno Haible  <bruno@clisp.org>
10723
10724         posix_spawn*: Move AC_LIBOBJ invocations to module description.
10725         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
10726         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
10727         * modules/posix_spawn (configure.ac): ... to here.
10728         * modules/posix_spawnp (configure.ac): ... and here.
10729
10730 2011-05-21  Bruno Haible  <bruno@clisp.org>
10731
10732         popen: Move AC_LIBOBJ invocations to module description.
10733         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
10734         invocations from here...
10735         * modules/popen (configure.ac): ... to here.
10736
10737 2011-05-21  Bruno Haible  <bruno@clisp.org>
10738
10739         poll: Move AC_LIBOBJ invocations to module description.
10740         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
10741         invocations from here...
10742         * modules/poll (configure.ac): ... to here.
10743
10744 2011-05-21  Bruno Haible  <bruno@clisp.org>
10745
10746         pipe-posix: Move AC_LIBOBJ invocations to module description.
10747         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
10748         * modules/pipe-posix (configure.ac): ... to here.
10749
10750 2011-05-21  Bruno Haible  <bruno@clisp.org>
10751
10752         openat: Respect rules for use of AC_LIBOBJ.
10753         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
10754         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10755         * modules/openat (configure.ac): ... to here.
10756
10757 2011-05-21  Bruno Haible  <bruno@clisp.org>
10758
10759         obstack-printf*: Move AC_LIBOBJ invocations to module description.
10760         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
10761         invocation from here...
10762         * modules/obstack-printf (configure.ac): ... to here.
10763         * modules/obstack-printf-posix (configure.ac): ... and here.
10764
10765 2011-05-21  Bruno Haible  <bruno@clisp.org>
10766
10767         nl_langinfo: Move AC_LIBOBJ invocations to module description.
10768         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
10769         from here...
10770         * modules/nl_langinfo (configure.ac): ... to here.
10771
10772 2011-05-21  Bruno Haible  <bruno@clisp.org>
10773
10774         nanosleep: Move AC_LIBOBJ invocations to module description.
10775         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
10776         gl_PREREQ_NANOSLEEP invocations from here...
10777         * modules/nanosleep (configure.ac): ... to here.
10778
10779 2011-05-21  Bruno Haible  <bruno@clisp.org>
10780
10781         mountlist: Move AC_LIBOBJ invocations to module description.
10782         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
10783         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
10784         * modules/mountlist (configure.ac): ... to here.
10785
10786 2011-05-21  Bruno Haible  <bruno@clisp.org>
10787
10788         mktime: Respect rules for use of AC_LIBOBJ.
10789         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
10790         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
10791         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
10792         (gl_FUNC_MKTIME_INTERNAL): ... and here...
10793         * modules/mktime (configure.ac): ... to here.
10794         * modules/mktime-internal (configure.ac): ... and here.
10795         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
10796
10797 2011-05-21  Bruno Haible  <bruno@clisp.org>
10798
10799         mkstemps: Move AC_LIBOBJ invocations to module description.
10800         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
10801         here...
10802         * modules/mkstemps (configure.ac): ... to here.
10803
10804 2011-05-21  Bruno Haible  <bruno@clisp.org>
10805
10806         mkstemp: Move AC_LIBOBJ invocations to module description.
10807         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
10808         gl_PREREQ_MKSTEMP invocations from here...
10809         * modules/mkstemp (configure.ac): ... to here.
10810
10811 2011-05-21  Bruno Haible  <bruno@clisp.org>
10812
10813         mkostemps: Move AC_LIBOBJ invocations to module description.
10814         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
10815         here...
10816         * modules/mkostemps (configure.ac): ... to here.
10817
10818 2011-05-21  Bruno Haible  <bruno@clisp.org>
10819
10820         mkostemp: Move AC_LIBOBJ invocations to module description.
10821         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
10822         gl_PREREQ_MKOSTEMP invocations from here...
10823         * modules/mkostemp (configure.ac): ... to here.
10824
10825 2011-05-21  Bruno Haible  <bruno@clisp.org>
10826
10827         mknod: Move AC_LIBOBJ invocations to module description.
10828         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
10829         * modules/mknod (configure.ac): ... to here.
10830
10831 2011-05-21  Bruno Haible  <bruno@clisp.org>
10832
10833         mkfifoat: Move AC_LIBOBJ invocations to module description.
10834         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
10835         here...
10836         * modules/mkfifoat (configure.ac): ... to here.
10837
10838 2011-05-21  Bruno Haible  <bruno@clisp.org>
10839
10840         mkfifo: Respect rules for use of AC_LIBOBJ.
10841         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
10842         here...
10843         * modules/mkfifo (configure.ac): ... to here.
10844
10845 2011-05-21  Bruno Haible  <bruno@clisp.org>
10846
10847         mkdtemp: Move AC_LIBOBJ invocations to module description.
10848         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
10849         invocations from here...
10850         * modules/mkdtemp (configure.ac): ... to here.
10851
10852 2011-05-21  Bruno Haible  <bruno@clisp.org>
10853
10854         mkdir: Move AC_LIBOBJ invocations to module description.
10855         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
10856         * modules/mkdir (configure.ac): ... to here.
10857
10858 2011-05-21  Bruno Haible  <bruno@clisp.org>
10859
10860         memset: Move AC_LIBOBJ invocations to module description.
10861         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
10862         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
10863         here...
10864         * modules/memset (configure.ac): ... to here.
10865
10866 2011-05-21  Bruno Haible  <bruno@clisp.org>
10867
10868         memrchr: Move AC_LIBOBJ invocations to module description.
10869         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
10870         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
10871         here...
10872         * modules/memrchr (configure.ac): ... to here.
10873
10874 2011-05-21  Bruno Haible  <bruno@clisp.org>
10875
10876         mempcpy: Move AC_LIBOBJ invocations to module description.
10877         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
10878         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
10879         here...
10880         * modules/mempcpy (configure.ac): ... to here.
10881
10882 2011-05-21  Bruno Haible  <bruno@clisp.org>
10883
10884         memmove: Move AC_LIBOBJ invocations to module description.
10885         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
10886         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
10887         here...
10888         * modules/memmove (configure.ac): ... to here.
10889
10890 2011-05-21  Bruno Haible  <bruno@clisp.org>
10891
10892         memmem*: Move AC_LIBOBJ invocations to module description.
10893         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
10894         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
10895         here...
10896         (gl_FUNC_MEMMEM): ... and here...
10897         * modules/memmem-simple (configure.ac): ... to here.
10898         * modules/memmem (configure.ac): ... and here.
10899
10900 2011-05-21  Bruno Haible  <bruno@clisp.org>
10901
10902         memcpy: Move AC_LIBOBJ invocations to module description.
10903         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
10904         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
10905         here...
10906         * modules/memcpy (configure.ac): ... to here.
10907
10908 2011-05-21  Bruno Haible  <bruno@clisp.org>
10909
10910         memcmp: Simplify autoconf macro.
10911         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
10912         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
10913         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
10914
10915 2011-05-21  Bruno Haible  <bruno@clisp.org>
10916
10917         memcmp: Move AC_LIBOBJ invocations to module description.
10918         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
10919         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
10920         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
10921         * modules/memcmp (configure.ac): ... to here.
10922         (Depends-on): Update conditions.
10923
10924 2011-05-21  Bruno Haible  <bruno@clisp.org>
10925
10926         memchr: Respect rules for use of AC_LIBOBJ.
10927         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
10928         invocations from here...
10929         * modules/memchr (configure.ac): ... to here.
10930
10931 2011-05-21  Bruno Haible  <bruno@clisp.org>
10932
10933         mbtowc: Move AC_LIBOBJ invocations to module description.
10934         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
10935         invocations from here...
10936         * modules/mbtowc (configure.ac): ... to here.
10937
10938 2011-05-21  Bruno Haible  <bruno@clisp.org>
10939
10940         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
10941         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
10942         gl_PREREQ_MBSRTOWCS invocations from here...
10943         * modules/mbsrtowcs (configure.ac): ... to here.
10944
10945 2011-05-21  Bruno Haible  <bruno@clisp.org>
10946
10947         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
10948         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
10949         gl_PREREQ_MBSNRTOWCS invocations from here...
10950         * modules/mbsnrtowcs (configure.ac): ... to here.
10951
10952 2011-05-21  Bruno Haible  <bruno@clisp.org>
10953
10954         mbsinit: Move AC_LIBOBJ invocations to module description.
10955         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
10956         invocations from here...
10957         * modules/mbsinit (configure.ac): ... to here.
10958
10959 2011-05-21  Bruno Haible  <bruno@clisp.org>
10960
10961         mbrlen: Move AC_LIBOBJ invocations to module description.
10962         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
10963         invocations from here...
10964         * modules/mbrlen (configure.ac): ... to here.
10965
10966 2011-05-21  Bruno Haible  <bruno@clisp.org>
10967
10968         mbrtowc: Respect rules for use of AC_LIBOBJ.
10969         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
10970         invocations from here...
10971         * modules/mbrtowc (configure.ac): ... to here.
10972
10973 2011-05-21  Bruno Haible  <bruno@clisp.org>
10974
10975         malloc-*: Move AC_LIBOBJ invocations to module description.
10976         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
10977         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
10978         AC_LIBOBJ invocations from here...
10979         * modules/malloc-gnu (configure.ac): ... to here.
10980         * modules/malloc-posix (configure.ac): ... and here.
10981
10982 2011-05-21  Bruno Haible  <bruno@clisp.org>
10983
10984         lstat, openat: Respect rules for use of AC_LIBOBJ.
10985         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
10986         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
10987         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
10988         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
10989         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
10990         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
10991         here.
10992         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
10993
10994 2011-05-21  Bruno Haible  <bruno@clisp.org>
10995
10996         lseek: Move AC_LIBOBJ invocations to module description.
10997         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
10998         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10999         * modules/lseek (configure.ac): ... to here.
11000
11001 2011-05-21  Bruno Haible  <bruno@clisp.org>
11002
11003         linkat: Move AC_LIBOBJ invocations to module description.
11004         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
11005         here...
11006         * modules/linkat (configure.ac): ... to here.
11007
11008 2011-05-21  Bruno Haible  <bruno@clisp.org>
11009
11010         link: Respect rules for use of AC_LIBOBJ.
11011         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
11012         * modules/link (configure.ac): ... to here.
11013
11014 2011-05-21  Bruno Haible  <bruno@clisp.org>
11015
11016         lchown: Move AC_LIBOBJ invocations to module description.
11017         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11018         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11019         * modules/lchown (configure.ac): ... to here.
11020
11021 2011-05-21  Bruno Haible  <bruno@clisp.org>
11022
11023         iswctype: Move AC_LIBOBJ invocations to module description.
11024         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
11025         here...
11026         * modules/iswctype (configure.ac): ... to here.
11027
11028 2011-05-21  Bruno Haible  <bruno@clisp.org>
11029
11030         iswblank: Move AC_LIBOBJ invocations to module description.
11031         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
11032         here...
11033         * modules/iswblank (configure.ac): ... to here.
11034
11035 2011-05-21  Bruno Haible  <bruno@clisp.org>
11036
11037         atanl: Move AC_LIBOBJ invocations to module description.
11038         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
11039         * modules/atanl (configure.ac): ... to here.
11040
11041 2011-05-21  Bruno Haible  <bruno@clisp.org>
11042
11043         acosl: Move AC_LIBOBJ invocations to module description.
11044         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
11045         * modules/acosl (configure.ac): ... to here.
11046
11047 2011-05-21  Bruno Haible  <bruno@clisp.org>
11048
11049         asinl: Respect rules for use of AC_LIBOBJ.
11050         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
11051         * modules/asinl (configure.ac): ... to here.
11052
11053 2011-05-21  Bruno Haible  <bruno@clisp.org>
11054
11055         tanl: Move AC_LIBOBJ invocations to module description.
11056         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
11057         * modules/tanl (configure.ac): ... to here.
11058
11059 2011-05-21  Bruno Haible  <bruno@clisp.org>
11060
11061         cosl: Move AC_LIBOBJ invocations to module description.
11062         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
11063         * modules/cosl (configure.ac): ... to here.
11064
11065 2011-05-21  Bruno Haible  <bruno@clisp.org>
11066
11067         sinl: Move AC_LIBOBJ invocations to module description.
11068         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
11069         * modules/sinl (configure.ac): ... to here.
11070
11071 2011-05-21  Bruno Haible  <bruno@clisp.org>
11072
11073         logl: Move AC_LIBOBJ invocations to module description.
11074         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
11075         * modules/logl (configure.ac): ... to here.
11076
11077 2011-05-21  Bruno Haible  <bruno@clisp.org>
11078
11079         expl: Move AC_LIBOBJ invocations to module description.
11080         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
11081         * modules/expl (configure.ac): ... to here.
11082
11083 2011-05-21  Bruno Haible  <bruno@clisp.org>
11084
11085         roundl: Move AC_LIBOBJ invocations to module description.
11086         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
11087         * modules/roundl (configure.ac): ... to here.
11088
11089 2011-05-21  Bruno Haible  <bruno@clisp.org>
11090
11091         round: Move AC_LIBOBJ invocations to module description.
11092         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
11093         * modules/round (configure.ac): ... to here.
11094
11095 2011-05-21  Bruno Haible  <bruno@clisp.org>
11096
11097         roundf: Move AC_LIBOBJ invocations to module description.
11098         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
11099         * modules/roundf (configure.ac): ... to here.
11100
11101 2011-05-21  Bruno Haible  <bruno@clisp.org>
11102
11103         truncl: Move AC_LIBOBJ invocations to module description.
11104         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
11105         * modules/truncl (configure.ac): ... to here.
11106
11107 2011-05-21  Bruno Haible  <bruno@clisp.org>
11108
11109         trunc: Move AC_LIBOBJ invocations to module description.
11110         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
11111         * modules/trunc (configure.ac): ... to here.
11112
11113 2011-05-21  Bruno Haible  <bruno@clisp.org>
11114
11115         truncf: Move AC_LIBOBJ invocations to module description.
11116         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
11117         * modules/truncf (configure.ac): ... to here.
11118
11119 2011-05-21  Bruno Haible  <bruno@clisp.org>
11120
11121         ceill: Move AC_LIBOBJ invocations to module description.
11122         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
11123         * modules/ceill (configure.ac): ... to here.
11124
11125 2011-05-21  Bruno Haible  <bruno@clisp.org>
11126
11127         ceil: Move AC_LIBOBJ invocations to module description.
11128         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
11129         * modules/ceil (configure.ac): ... to here.
11130
11131 2011-05-21  Bruno Haible  <bruno@clisp.org>
11132
11133         ceilf: Move AC_LIBOBJ invocations to module description.
11134         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
11135         * modules/ceilf (configure.ac): ... to here.
11136
11137 2011-05-21  Bruno Haible  <bruno@clisp.org>
11138
11139         floorl: Respect rules for use of AC_LIBOBJ.
11140         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
11141         * modules/floorl (configure.ac): ... to here.
11142
11143 2011-05-21  Bruno Haible  <bruno@clisp.org>
11144
11145         floor: Respect rules for use of AC_LIBOBJ.
11146         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
11147         * modules/floor (configure.ac): ... to here.
11148
11149 2011-05-21  Bruno Haible  <bruno@clisp.org>
11150
11151         floorf: Move AC_LIBOBJ invocations to module description.
11152         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
11153         * modules/floorf (configure.ac): ... to here.
11154
11155 2011-05-20  Bruno Haible  <bruno@clisp.org>
11156
11157         sqrtl: Respect rules for use of AC_LIBOBJ.
11158         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
11159         * modules/sqrtl (configure.ac): ... to here.
11160
11161 2011-05-20  Bruno Haible  <bruno@clisp.org>
11162
11163         ldexpl: Respect rules for use of AC_LIBOBJ.
11164         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
11165         * modules/ldexpl (configure.ac): ... to here.
11166
11167 2011-05-20  Bruno Haible  <bruno@clisp.org>
11168
11169         frexpl*: Respect rules for use of AC_LIBOBJ.
11170         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
11171         invocation from here...
11172         * modules/frexpl (configure.ac): ... to here.
11173         * modules/frexpl-nolibm (configure.ac): ... and here.
11174
11175 2011-05-20  Bruno Haible  <bruno@clisp.org>
11176
11177         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
11178         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
11179         invocation from here...
11180         * modules/frexp (configure.ac): ... to here.
11181         * modules/frexp-nolibm (configure.ac): ... and here.
11182
11183 2011-05-20  Bruno Haible  <bruno@clisp.org>
11184
11185         isnan: Respect rules for use of AC_LIBOBJ.
11186         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
11187         invocations here.
11188         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
11189         REPLACE_ISNAN.
11190         * modules/isnand (configure.ac): Likewise.
11191         * modules/isnanl (configure.ac): Likewise.
11192
11193 2011-05-20  Bruno Haible  <bruno@clisp.org>
11194
11195         isnanl*: Respect rules for use of AC_LIBOBJ.
11196         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
11197         invocation from here...
11198         * modules/isnanl (configure.ac): ... to here.
11199         * modules/isnanl-nolibm (configure.ac): ... and here.
11200
11201 2011-05-20  Bruno Haible  <bruno@clisp.org>
11202
11203         isnand*: Move AC_LIBOBJ invocations to module description.
11204         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
11205         invocation from here...
11206         * modules/isnand (configure.ac): ... to here.
11207         * modules/isnand-nolibm (configure.ac): ... and here.
11208
11209 2011-05-20  Bruno Haible  <bruno@clisp.org>
11210
11211         isnanf*: Move AC_LIBOBJ invocations to module description.
11212         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
11213         invocation from here...
11214         * modules/isnanf (configure.ac): ... to here.
11215         * modules/isnanf-nolibm (configure.ac): ... and here.
11216
11217 2011-05-20  Bruno Haible  <bruno@clisp.org>
11218
11219         isnan*: Separate the AC_LIBOBJ invocations.
11220         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
11221         AC_LIBOBJ invocation.
11222         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
11223         here.
11224         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
11225         AC_LIBOBJ invocation.
11226         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
11227         here.
11228         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
11229         AC_LIBOBJ invocation.
11230         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
11231         here.
11232         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
11233
11234 2011-05-08  Bruno Haible  <bruno@clisp.org>
11235
11236         isinf: Move AC_LIBOBJ invocations to module description.
11237         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
11238         * modules/isinf (configure.ac): ... to here.
11239
11240 2011-05-08  Bruno Haible  <bruno@clisp.org>
11241
11242         isfinite: Move AC_LIBOBJ invocations to module description.
11243         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
11244         * modules/isfinite (configure.ac): ... to here.
11245
11246 2011-05-08  Bruno Haible  <bruno@clisp.org>
11247
11248         isblank: Move AC_LIBOBJ invocations to module description.
11249         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
11250         here...
11251         * modules/isblank (configure.ac): ... to here.
11252
11253 2011-05-08  Bruno Haible  <bruno@clisp.org>
11254
11255         isapipe: Move AC_LIBOBJ invocations to module description.
11256         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
11257         gl_PREREQ_ISAPIPE invocations from here...
11258         * modules/isapipe (configure.ac): ... to here.
11259         (Depends-on): Update condition.
11260
11261 2011-05-08  Bruno Haible  <bruno@clisp.org>
11262
11263         ioctl: Move AC_LIBOBJ invocations to module description.
11264         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
11265         invocations from here...
11266         * modules/ioctl (configure.ac): ... to here.
11267         (Depends-on): Update condition.
11268
11269 2011-05-08  Bruno Haible  <bruno@clisp.org>
11270
11271         imaxdiv: Move AC_LIBOBJ invocations to module description.
11272         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
11273         invocations from here...
11274         * modules/imaxdiv (configure.ac): ... to here.
11275
11276 2011-05-08  Bruno Haible  <bruno@clisp.org>
11277
11278         imaxabs: Move AC_LIBOBJ invocations to module description.
11279         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
11280         invocations from here...
11281         * modules/imaxabs (configure.ac): ... to here.
11282
11283 2011-05-08  Bruno Haible  <bruno@clisp.org>
11284
11285         getaddrinfo: Move AC_LIBOBJ invocations to module description.
11286         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
11287         AC_LIBOBJ invocations from here...
11288         * modules/getaddrinfo (configure.ac): ... to here.
11289         (Depends-on): Add conditions.
11290
11291 2011-05-08  Bruno Haible  <bruno@clisp.org>
11292
11293         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11294         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
11295         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11296         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
11297         (gl_PREREQ_INET_PTON): ... from here.
11298         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
11299         gl_PREREQ_INET_PTON here.
11300         (Depends-on): Update condition.
11301
11302 2011-05-08  Bruno Haible  <bruno@clisp.org>
11303
11304         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11305         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
11306         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11307         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
11308         (gl_PREREQ_INET_NTOP): ... from here.
11309         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
11310         gl_PREREQ_INET_NTOP here.
11311         (Depends-on): Update condition.
11312
11313 2011-05-08  Bruno Haible  <bruno@clisp.org>
11314
11315         iconv_open: Move AC_LIBOBJ invocations to module description.
11316         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
11317         AC_LIBOBJ invocations from here...
11318         * modules/iconv_open (configure.ac): ... to here.
11319
11320 2011-05-08  Bruno Haible  <bruno@clisp.org>
11321
11322         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
11323         If module 'iconv_open' is among the main modules and module
11324         'iconv_open-utf' is among the tests dependencies, then
11325         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
11326         return the special iconv_t values. Therefore iconv() and iconv_close()
11327         must support these special iconv_t values, already in lib, not only in
11328         tests.
11329         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
11330         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
11331         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
11332         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
11333         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
11334         (Depends-on): Add the dependencies of iconv_open-utf.
11335         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
11336         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
11337         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
11338
11339 2011-05-08  Bruno Haible  <bruno@clisp.org>
11340
11341         group-member: Move AC_LIBOBJ invocations to module description.
11342         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
11343         gl_PREREQ_GROUP_MEMBER invocations from here...
11344         * modules/group-member (configure.ac): ... to here.
11345
11346 2011-05-08  Bruno Haible  <bruno@clisp.org>
11347
11348         grantpt: Move AC_LIBOBJ invocations to module description.
11349         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
11350         invocations from here...
11351         * modules/grantpt (configure.ac): ... to here.
11352
11353 2011-05-08  Bruno Haible  <bruno@clisp.org>
11354
11355         glob: Move AC_LIBOBJ invocations to module description.
11356         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
11357         from here...
11358         * modules/glob (configure.ac): ... to here.
11359
11360 2011-05-08  Bruno Haible  <bruno@clisp.org>
11361
11362         getusershell: Move AC_LIBOBJ invocations to module description.
11363         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
11364         Move AC_LIBOBJ invocation from here...
11365         * modules/getusershell (configure.ac): ... to here.
11366         (Depends-on): Update condition.
11367
11368 2011-05-08  Bruno Haible  <bruno@clisp.org>
11369
11370         gettimeofday: Move AC_LIBOBJ invocations to module description.
11371         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
11372         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
11373         gl_PREREQ_GETTIMEOFDAY invocations from here...
11374         * modules/gettimeofday (configure.ac): ... to here.
11375
11376 2011-05-08  Bruno Haible  <bruno@clisp.org>
11377
11378         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
11379         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
11380         just gl_FUNC_TZSET.
11381         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
11382         (gl_FUNC_TZSET_CLOBBER): Remove actions.
11383         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
11384         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
11385
11386 2011-05-08  Bruno Haible  <bruno@clisp.org>
11387
11388         getsubopt: Move AC_LIBOBJ invocations to module description.
11389         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
11390         gl_PREREQ_GETSUBOPT invocations from here...
11391         * modules/getsubopt (configure.ac): ... to here.
11392
11393 2011-05-08  Bruno Haible  <bruno@clisp.org>
11394
11395         getpass-gnu: Move AC_LIBOBJ invocations to module description.
11396         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
11397         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
11398         * modules/getpass-gnu (configure.ac): ... to here.
11399
11400 2011-05-08  Bruno Haible  <bruno@clisp.org>
11401
11402         getpass: Move AC_LIBOBJ invocations to module description.
11403         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
11404         gl_PREREQ_GETPASS invocations from here...
11405         * modules/getpass (configure.ac): ... to here.
11406
11407 2011-05-08  Bruno Haible  <bruno@clisp.org>
11408
11409         getpagesize: Move AC_LIBOBJ invocations to module description.
11410         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
11411         from here...
11412         * modules/getpagesize (configure.ac): ... to here.
11413
11414 2011-05-08  Bruno Haible  <bruno@clisp.org>
11415
11416         getopt: Move AC_LIBOBJ invocations to module description.
11417         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
11418         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
11419         invocations from here...
11420         * modules/getopt-gnu (configure.ac): ... to here.
11421         * modules/getopt-posix (configure.ac): ... and here.
11422         (Depends-on): Update condition.
11423
11424 2011-05-08  Bruno Haible  <bruno@clisp.org>
11425
11426         getopt, argp: Respect rules for use of AC_LIBOBJ.
11427         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
11428         (gl_REPLACE_GETOPT_ALWAYS): New macro.
11429         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
11430         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
11431
11432 2011-05-08  Bruno Haible  <bruno@clisp.org>
11433
11434         getlogin_r: Move AC_LIBOBJ invocations to module description.
11435         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
11436         gl_PREREQ_GETLOGIN_R invocations from here...
11437         * modules/getlogin_r (configure.ac): ... to here.
11438
11439 2011-05-08  Bruno Haible  <bruno@clisp.org>
11440
11441         getlogin: Move AC_LIBOBJ invocations to module description.
11442         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
11443         here...
11444         * modules/getlogin (configure.ac): ... to here.
11445
11446 2011-05-08  Bruno Haible  <bruno@clisp.org>
11447
11448         getloadavg: Move AC_LIBOBJ invocations to module description.
11449         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
11450         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
11451         * modules/getloadavg (configure.ac): ... to here.
11452
11453 2011-05-08  Bruno Haible  <bruno@clisp.org>
11454
11455         gethrxtime: Move AC_LIBOBJ invocations to module description.
11456         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
11457         LIB_GETHRXTIME from here...
11458         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
11459         invocations from here...
11460         * modules/gethrxtime (configure.ac): ... to here.
11461
11462 2011-05-08  Bruno Haible  <bruno@clisp.org>
11463
11464         gethostname: Move AC_LIBOBJ invocations to module description.
11465         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
11466         gl_PREREQ_GETHOSTNAME invocations from here...
11467         * modules/gethostname (configure.ac): ... to here.
11468
11469 2011-05-08  Bruno Haible  <bruno@clisp.org>
11470
11471         getgroups: Move AC_LIBOBJ invocations to module description.
11472         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
11473         here...
11474         * modules/getgroups (configure.ac): ... to here.
11475
11476 2011-05-08  Bruno Haible  <bruno@clisp.org>
11477
11478         getdtablesize: Move AC_LIBOBJ invocations to module description.
11479         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
11480         invocation from here...
11481         * modules/getdtablesize (configure.ac): ... to here.
11482
11483 2011-05-08  Bruno Haible  <bruno@clisp.org>
11484
11485         getdomainname: Move AC_LIBOBJ invocations to module description.
11486         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
11487         gl_PREREQ_GETDOMAINNAME invocations from here...
11488         * modules/getdomainname (configure.ac): ... to here.
11489
11490 2011-05-08  Bruno Haible  <bruno@clisp.org>
11491
11492         getline: Move AC_LIBOBJ invocations to module description.
11493         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
11494         invocations from here...
11495         * modules/getline (configure.ac): ... to here.
11496
11497 2011-05-08  Bruno Haible  <bruno@clisp.org>
11498
11499         getline: Simplify.
11500         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
11501         It's already handled through the module dependency.
11502
11503 2011-05-08  Bruno Haible  <bruno@clisp.org>
11504
11505         getdelim: Move AC_LIBOBJ invocations to module description.
11506         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
11507         and gl_PREREQ_GETDELIM invocations from here...
11508         * modules/getdelim (configure.ac): ... to here.
11509         (Depends-on): Fix condition.
11510
11511 2011-05-08  Bruno Haible  <bruno@clisp.org>
11512
11513         getcwd: Move AC_LIBOBJ invocations to module description.
11514         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
11515         invocations from here...
11516         * modules/getcwd (configure.ac): ... to here.
11517
11518 2011-05-08  Bruno Haible  <bruno@clisp.org>
11519
11520         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
11521         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
11522         here...
11523         * modules/getcwd-lgpl (configure.ac): ... to here.
11524
11525 2011-05-07  Bruno Haible  <bruno@clisp.org>
11526
11527         crypto/gc: Move AC_LIBOBJ invocations to module description.
11528         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
11529         * modules/crypto/gc (configure.ac): ... to here.
11530
11531 2011-05-07  Bruno Haible  <bruno@clisp.org>
11532
11533         fwriting: Move AC_LIBOBJ invocations to module description.
11534         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
11535         here...
11536         * modules/fwriting (configure.ac): ... to here.
11537
11538 2011-05-07  Bruno Haible  <bruno@clisp.org>
11539
11540         fwritable: Move AC_LIBOBJ invocations to module description.
11541         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
11542         here...
11543         * modules/fwritable (configure.ac): ... to here.
11544
11545 2011-05-07  Bruno Haible  <bruno@clisp.org>
11546
11547         futimens: Move AC_LIBOBJ invocations to module description.
11548         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
11549         here...
11550         * modules/futimens (configure.ac): ... to here.
11551
11552 2011-05-07  Bruno Haible  <bruno@clisp.org>
11553
11554         ftruncate: Move AC_LIBOBJ invocations to module description.
11555         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
11556         gl_PREREQ_FTRUNCATE invocations from here...
11557         * modules/ftruncate (configure.ac): ... to here.
11558
11559 2011-05-07  Bruno Haible  <bruno@clisp.org>
11560
11561         fsync: Move AC_LIBOBJ invocations to module description.
11562         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
11563         invocations from here...
11564         * modules/fsync (configure.ac): ... to here.
11565
11566 2011-05-07  Bruno Haible  <bruno@clisp.org>
11567
11568         fsusage: Move AC_LIBOBJ invocations to module description.
11569         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
11570         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
11571         * modules/fsusage (configure.ac): ... to here.
11572
11573 2011-05-07  Bruno Haible  <bruno@clisp.org>
11574
11575         freopen: Move AC_LIBOBJ invocations to module description.
11576         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
11577         invocations from here...
11578         * modules/freopen (configure.ac): ... to here.
11579
11580 2011-05-07  Bruno Haible  <bruno@clisp.org>
11581
11582         free: Move AC_LIBOBJ invocations to module description.
11583         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
11584         invocations from here...
11585         * modules/free (configure.ac): ... to here.
11586
11587 2011-05-07  Bruno Haible  <bruno@clisp.org>
11588
11589         freadable: Move AC_LIBOBJ invocations to module description.
11590         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
11591         here...
11592         * modules/freadable (configure.ac): ... to here.
11593
11594 2011-05-07  Bruno Haible  <bruno@clisp.org>
11595
11596         fpurge: Move AC_LIBOBJ invocations to module description.
11597         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
11598         invocations from here...
11599         * modules/fpurge (configure.ac): ... to here.
11600
11601 2011-05-07  Bruno Haible  <bruno@clisp.org>
11602
11603         fpending: Move AC_LIBOBJ invocations to module description.
11604         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
11605         gl_FUNC_FPENDING.
11606         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
11607         invocations from here...
11608         * modules/fpending (configure.ac): ... to here.
11609
11610 2011-05-07  Bruno Haible  <bruno@clisp.org>
11611
11612         fopen: Move AC_LIBOBJ invocations to module description.
11613         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
11614         invocations from here...
11615         * modules/fopen (configure.ac): ... to here.
11616
11617 2011-05-07  Bruno Haible  <bruno@clisp.org>
11618
11619         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
11620         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
11621         gl_FUNC_FNMATCH_POSIX.
11622         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
11623         invocations from here...
11624         * modules/fnmatch (configure.ac): ... to here.
11625         * modules/fnmatch-gnu (configure.ac): ... and here.
11626
11627 2011-05-07  Bruno Haible  <bruno@clisp.org>
11628
11629         flock: Move AC_LIBOBJ invocations to module description.
11630         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
11631         invocations from here...
11632         * modules/flock (configure.ac): ... to here.
11633
11634 2011-05-07  Bruno Haible  <bruno@clisp.org>
11635
11636         fileblocks: Move AC_LIBOBJ invocations to module description.
11637         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
11638         gl_PREREQ_FILEBLOCKS invocations from here...
11639         * modules/fileblocks (configure.ac): ... to here.
11640
11641 2011-05-06  Bruno Haible  <bruno@clisp.org>
11642
11643         fflush: Move AC_LIBOBJ invocations to module description.
11644         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
11645         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
11646         invocations from here...
11647         * modules/fflush (configure.ac): ... to here.
11648
11649 2011-05-06  Bruno Haible  <bruno@clisp.org>
11650
11651         fdopendir: Move AC_LIBOBJ invocations to module description.
11652         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
11653         here...
11654         * modules/fdopendir (configure.ac): ... to here.
11655         (Depends-on): Improve conditions.
11656
11657 2011-05-06  Bruno Haible  <bruno@clisp.org>
11658
11659         _Exit: Move AC_LIBOBJ invocations to module description.
11660         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
11661         invocations from here...
11662         * modules/_Exit (configure.ac): ... to here.
11663
11664 2011-05-21  Bruno Haible  <bruno@clisp.org>
11665
11666         euidaccess: Respect rules for use of AC_LIBOBJ.
11667         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11668         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
11669         from here...
11670         * modules/euidaccess (configure.ac): ... to here.
11671
11672 2011-05-06  Bruno Haible  <bruno@clisp.org>
11673
11674         error: Move AC_LIBOBJ invocations to module description.
11675         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
11676         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
11677         invocations from here...
11678         * modules/error (configure.ac): ... to here.
11679
11680 2011-05-06  Bruno Haible  <bruno@clisp.org>
11681
11682         duplocale: Move AC_LIBOBJ invocations to module description.
11683         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
11684         gl_PREREQ_DUPLOCALE invocations from here...
11685         * modules/duplocale (configure.ac): ... to here.
11686
11687 2011-05-05  Bruno Haible  <bruno@clisp.org>
11688
11689         dirfd: Move AC_LIBOBJ invocations to module description.
11690         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
11691         gl_FUNC_DIRFD.
11692         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
11693         here...
11694         * modules/dirfd (configure.ac): ... to here.
11695         (Depends-on): Fix condition.
11696
11697 2011-05-05  Bruno Haible  <bruno@clisp.org>
11698
11699         chown: Respect rules for use of AC_LIBOBJ.
11700         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
11701         * modules/chown (configure.ac): ... to here.
11702
11703 2011-05-05  Bruno Haible  <bruno@clisp.org>
11704
11705         chdir-long: Move AC_LIBOBJ invocations to module description.
11706         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
11707         gl_PREREQ_CHDIR_LONG invocations from here...
11708         * modules/chdir-long (configure.ac): ... to here.
11709
11710 2011-05-05  Bruno Haible  <bruno@clisp.org>
11711
11712         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
11713         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
11714         from here...
11715         * modules/canonicalize-lgpl (configure.ac): ... to here.
11716
11717 2011-05-05  Bruno Haible  <bruno@clisp.org>
11718
11719         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
11720         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
11721         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
11722         REPLACE_CALLOC.
11723         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
11724         * modules/calloc-gnu (configure.ac): Likewise.
11725
11726 2011-05-05  Bruno Haible  <bruno@clisp.org>
11727
11728         btowc: Move AC_LIBOBJ invocations to module description.
11729         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
11730         invocations from here...
11731         * modules/btowc (configure.ac): ... to here.
11732
11733 2011-05-21  Bruno Haible  <bruno@clisp.org>
11734
11735         atexit: Move AC_LIBOBJ invocations to module description.
11736         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
11737         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
11738         here...
11739         * modules/atexit (configure.ac): ... to here.
11740
11741 2011-05-05  Bruno Haible  <bruno@clisp.org>
11742
11743         atoll: Move AC_LIBOBJ invocations to module description.
11744         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
11745         invocations from here...
11746         * modules/atoll (configure.ac): ... to here.
11747
11748 2011-05-05  Bruno Haible  <bruno@clisp.org>
11749
11750         argz: Move AC_LIBOBJ invocations to module description.
11751         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
11752         * modules/argz (configure.ac): ... to here.
11753
11754 2011-05-05  Bruno Haible  <bruno@clisp.org>
11755
11756         alphasort: Move AC_LIBOBJ invocations to module description.
11757         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
11758         gl_PREREQ_ALPHASORT invocations from here...
11759         * modules/alphasort (configure.ac): ... to here.
11760
11761 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11762
11763         verify: new macro verify_expr; verify_true deprecated
11764         * NEWS: Mention this.
11765         * doc/verify.texi (Compile-time Assertions): Document this.
11766         * lib/verify.h (verify_true): Deprecate.
11767         (verify_expr): New macro.
11768         * tests/test-verify.c (function): Test verify_expr.
11769
11770 2011-06-14  Jim Meyering  <meyering@redhat.com>
11771
11772         init.sh: give more portable redirection-related advice in a comment
11773         * tests/init.sh (stderr_fileno_): Update the advice in comments.
11774         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
11775         for lots of discussion.  Stefano Lattarini suggested the solution
11776         of putting "9>&2" after the command.  Reported by Bruno Haible.
11777
11778 2011-06-13  Bruno Haible  <bruno@clisp.org>
11779
11780         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
11781         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
11782         'none'.
11783
11784 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11785
11786         ftoastr: use strtof only if HAVE_STRTOF
11787         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
11788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
11789         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
11790         * modules/ftoastr (configure.ac): Check for strtof.
11791
11792 2011-06-13  Bruno Haible  <bruno@clisp.org>
11793
11794         gnulib-tool: Addendum to 2011-06-08 commit.
11795         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
11796         and --witness-c-macro have been given, augment AM_CPPFLAGS.
11797
11798 2011-06-13  Bruno Haible  <bruno@clisp.org>
11799
11800         fseeko: Provide a non-inline replacement of fseek().
11801         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
11802         * modules/fseeko (Depends-on): Add fseek.
11803         * modules/fseek (License): Change to LGPLv2+.
11804
11805 2011-06-13  Bruno Haible  <bruno@clisp.org>
11806
11807         ftello: Provide a non-inline replacement of ftell().
11808         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
11809         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
11810         not have ftello() (such as on mingw).
11811         * modules/ftello (Depends-on): Add ftell.
11812         * modules/ftell (License): Change to LGPLv2+.
11813
11814 2011-05-07  Bruno Haible  <bruno@clisp.org>
11815
11816         ftell: Move AC_LIBOBJ invocations to module description.
11817         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
11818         * modules/ftell (configure.ac): ... to here.
11819
11820 2011-05-07  Bruno Haible  <bruno@clisp.org>
11821
11822         ftello: Respect rules for use of AC_LIBOBJ.
11823         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
11824         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
11825         here...
11826         * modules/ftello (configure.ac): ... to here.
11827
11828 2011-05-07  Bruno Haible  <bruno@clisp.org>
11829
11830         fseeko: Simplify.
11831         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
11832         (gl_FUNC_FSEEKO): Inline it here.
11833
11834 2011-05-07  Bruno Haible  <bruno@clisp.org>
11835
11836         fseek: Move AC_LIBOBJ invocations to module description.
11837         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
11838         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11839         * modules/fseek (configure.ac): ... to here.
11840
11841 2011-05-07  Bruno Haible  <bruno@clisp.org>
11842
11843         fseek: Respect rules for use of AC_LIBOBJ.
11844         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
11845         here...
11846         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
11847
11848 2011-05-07  Bruno Haible  <bruno@clisp.org>
11849
11850         fseeko: Respect rules for use of AC_LIBOBJ.
11851         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
11852         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
11853         here...
11854         * modules/fseeko (configure.ac): ... to here.
11855
11856 2011-06-13  Bruno Haible  <bruno@clisp.org>
11857
11858         gnulib-tool: Allow comments in the 'Depends-on' section.
11859         * doc/gnulib.texi (Module description): Mention comment syntax in the
11860         Depends-on section.
11861         * gnulib-tool (func_get_dependencies): Filter out comment lines.
11862
11863 2011-06-13  Bruno Haible  <bruno@clisp.org>
11864
11865         file-set.h: guard __attibute__ use, now that it's not always defined
11866         * lib/file-set.h (record_file): Use __attribute__ only with compiler
11867         versions that support it.  This fixes a coreutils build failure with
11868         the vendor cc on HP-UX 11.31.
11869
11870 2011-06-12  Bruno Haible  <bruno@clisp.org>
11871
11872         acl: Add support for HP-UX >= 11.11 JFS ACLs.
11873         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
11874         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
11875         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
11876         (acl, aclsort): New declarations.
11877         (aclv_nontrivial): New declaration.
11878         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
11879         (file_has_acl): Read also the second kind of HP-UX ACLs.
11880         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
11881         kind of HP-UX ACLs if the first kind fails.
11882         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
11883         second kind of HP-UX ACLs.
11884         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
11885         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
11886         agree.
11887         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11888         hpuxjfs.
11889         Handle hpuxjfs.
11890         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11891         hpuxjfs.
11892         Handle hpuxjfs.
11893         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11894         (func_test_same_acls): Use both lsacl and getacl.
11895         Handle hpuxjfs.
11896         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11897         (func_test_same_acls): Use both lsacl and getacl.
11898         Handle hpuxjfs.
11899
11900 2011-06-12  Bruno Haible  <bruno@clisp.org>
11901
11902         acl: Complete the 2010-08-10 fix.
11903         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
11904         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
11905         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
11906         explicitly.
11907         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
11908         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
11909
11910 2011-06-12  Bruno Haible  <bruno@clisp.org>
11911
11912         spawn-pipe tests: Comments.
11913         * tests/test-spawn-pipe-child.c (main): Update comment.
11914         Reported by James Youngman <jay@gnu.org>.
11915
11916 2011-06-11  James Youngman  <jay@gnu.org>
11917
11918         New module 'stat-size'.
11919         * modules/stat-size: New module.  Provides macros for accessing
11920         file size information in instances of struct stat.  Depends on the
11921         fileblocks module because it calls st_blocks.
11922         * lib/stat-size.h: New file, adapted from coreutils' system.h.
11923         * doc/gnulib.texi: Include stat-size.texi.
11924         * doc/stat-size.texi: Documentation for this module.
11925         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
11926         * m4/fileblocks.m4: Mention that stat-size depends on the call to
11927         AC_STRUCT_ST_BLOCKS.
11928
11929 2011-06-09  Bruno Haible  <bruno@clisp.org>
11930
11931         thread: Support pthreads-win32.
11932         * lib/glthread/thread.h (gl_thread_self): Define differently on
11933         pthreads-win32.
11934         (gl_null_thread): New declaration.
11935         (gl_thread_self_pointer): New macro.
11936         * lib/glthread/thread.c (gl_null_thread): New constant.
11937         * tests/test-lock.c: Use gl_thread_self_pointer instead of
11938         gl_thread_self.
11939         * tests/test-tls.c: Likewise.
11940         Suggested by Paul Eggert. Reported by Eric Blake.
11941
11942 2011-06-09  Bruno Haible  <bruno@clisp.org>
11943
11944         thread: Fix confusion between NULL and 0.
11945         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
11946         Reported by Paul Eggert.
11947
11948 2011-06-09  Bruno Haible  <bruno@clisp.org>
11949
11950         spawn-pipe tests: Avoid test failure on HP-UX 11.
11951         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
11952         is closed.
11953
11954 2011-06-09  Bruno Haible  <bruno@clisp.org>
11955
11956         acl tests: Fix compilation error on HP-UX 11.
11957         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11958
11959 2011-06-09  Bruno Haible  <bruno@clisp.org>
11960
11961         rmdir: Avoid test failure on HP-UX 10.20.
11962         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
11963         EEXIST.
11964
11965 2011-06-08  Eric Blake  <eblake@redhat.com>
11966
11967         perror: fix test on mingw
11968         * modules/perror-tests (Depends-on): Add dup2.
11969
11970         strerror_r-posix: fix on MacOS
11971         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
11972         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
11973         logic bug.
11974         * lib/strerror_r.c (strerror_r): Fix the bug.
11975         * lib/strerror.c (strerror): Likewise.
11976         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11977         problem.
11978         * doc/posix-functions/strerror.texi (strerror): Likewise.
11979         * doc/posix-functions/perror.texi (perror): Likewise.
11980         * tests/test-strerror.c (main): Enhance test.
11981         * tests/test-strerror_r.c (main): Likewise.
11982
11983 2011-06-08  Bruno Haible  <bruno@clisp.org>
11984
11985         gnulib-tool: Better isolation between different gnulib-tool invocations.
11986         * gnulib-tool: New option --witness-c-macro.
11987         (witness_c_macro): New variable.
11988         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
11989         AM_CPPFLAGS define it as a C macro.
11990         (func_emit_tests_Makefile_am): Likewise.
11991         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
11992         read it from there.
11993         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
11994         m4_define, not AC_DEFUN.
11995         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
11996         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
11997         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
11998         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
11999         s|...|...|, to substitute the values of the GNULIB_* module indicator
12000         variables.
12001         * modules/dirent (Makefile.am): Likewise.
12002         * modules/fcntl-h (Makefile.am): Likewise.
12003         * modules/iconv-h (Makefile.am): Likewise.
12004         * modules/langinfo (Makefile.am): Likewise.
12005         * modules/locale (Makefile.am): Likewise.
12006         * modules/math (Makefile.am): Likewise.
12007         * modules/netdb (Makefile.am): Likewise.
12008         * modules/poll-h (Makefile.am): Likewise.
12009         * modules/pty (Makefile.am): Likewise.
12010         * modules/search (Makefile.am): Likewise.
12011         * modules/signal (Makefile.am): Likewise.
12012         * modules/spawn (Makefile.am): Likewise.
12013         * modules/stdio (Makefile.am): Likewise.
12014         * modules/stdlib (Makefile.am): Likewise.
12015         * modules/string (Makefile.am): Likewise.
12016         * modules/sys_ioctl (Makefile.am): Likewise.
12017         * modules/sys_select (Makefile.am): Likewise.
12018         * modules/sys_socket (Makefile.am): Likewise.
12019         * modules/sys_stat (Makefile.am): Likewise.
12020         * modules/sys_times (Makefile.am): Likewise.
12021         * modules/sys_utsname (Makefile.am): Likewise.
12022         * modules/sys_wait (Makefile.am): Likewise.
12023         * modules/termios (Makefile.am): Likewise.
12024         * modules/time (Makefile.am): Likewise.
12025         * modules/unistd (Makefile.am): Likewise.
12026         * modules/wchar (Makefile.am): Likewise.
12027
12028 2011-06-08  Eric Blake  <eblake@redhat.com>
12029
12030         strerror: simplify replacement
12031         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
12032         * modules/strerror (configure.ac): No prereqs needed here...
12033         * modules/strerror-override (configure.ac): ...but this needs it.
12034         (Files): Add file for needed prereq macro.
12035
12036 2011-06-08  Bruno Haible  <bruno@clisp.org>
12037
12038         strerror_r-posix: Tweaks.
12039         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
12040         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
12041         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
12042         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
12043         (gl_FUNC_STRERROR_R): ... to here.
12044         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
12045
12046 2011-06-07  Eric Blake  <eblake@redhat.com>
12047
12048         perror: document fixed bugs
12049         * doc/posix-functions/perror.texi (perror): Document recent
12050         patches.
12051
12052 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
12053
12054         stat-time: get_stat_birthtime failure is better-defined
12055         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
12056         return a timestamp whose tv_sec and tv_nsec values are both -1.
12057         Previously, the spec said only that the tv_nsec value was negative.
12058         This upward-compatible change simplifies GNU tar a bit.
12059
12060 2011-06-07  Eric Blake  <eblake@redhat.com>
12061
12062         strerror_r-posix: work around cygwin 1.7.9
12063         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
12064         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
12065         bug without replacing strerror_r.
12066         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
12067         strerror_r is buggy, but without requiring strerror_r compilation.
12068         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
12069
12070         test-perror: relax test to ignore cygwin bug
12071         * tests/test-perror2.c (main): Relax test on requiring detection
12072         of stream errors, and use unbuffered stream.
12073         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
12074         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12075         * doc/posix-functions/fputc.texi (fputc): Likewise.
12076         * doc/posix-functions/fputs.texi (fputs): Likewise.
12077         * doc/posix-functions/fputws.texi (fputws): Likewise.
12078         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12079         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
12080         * doc/posix-functions/getopt.texi (getopt): Likewise.
12081         * doc/posix-functions/perror.texi (perror): Likewise.
12082         * doc/posix-functions/printf.texi (printf): Likewise.
12083         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
12084         * doc/posix-functions/psignal.texi (psignal): Likewise.
12085         * doc/posix-functions/putc.texi (putc): Likewise.
12086         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
12087         Likewise.
12088         * doc/posix-functions/putchar.texi (putchar): Likewise.
12089         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
12090         Likewise.
12091         * doc/posix-functions/puts.texi (puts): Likewise.
12092         * doc/posix-functions/putwc.texi (putwc): Likewise.
12093         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
12094         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12095         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12096         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12097         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12098         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12099         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12100         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12101
12102 2011-05-22  Bruno Haible  <bruno@clisp.org>
12103
12104         strerror: Move AC_LIBOBJ invocations to module description.
12105         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
12106         gl_PREREQ_STRERROR invocations from here...
12107         * modules/strerror (configure.ac): ... to here.
12108
12109 2011-05-21  Bruno Haible  <bruno@clisp.org>
12110
12111         perror: Use common idiom.
12112         * modules/perror (configure.ac): Reorder statements.
12113
12114 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12115
12116         tests: fix usage message in 'mktempd_'
12117         * tests/init.sh (mktempd_): In the usage message, use literal
12118         'mktempd_', not '$ME' (which is even undefined), as the name of
12119         the subroutine.
12120
12121 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12122
12123         tests init: new function 'fatal_', for hard errors
12124         Before this patch, the only way offered by tests/init.sh to
12125         properly signal a hard error was the `framework_failure_'
12126         function.  But the error message issued by that function,
12127         as its name would suggest, refers to a set-up failure in the
12128         testsuite, while hard errors can obviously also be due to
12129         other reasons.  The best way to fix this inconsistency is to
12130         introduce a new function with a more general error message.
12131         * tests/init.sh (fatal_): New function.
12132
12133 2011-06-06  Eric Blake  <eblake@redhat.com>
12134
12135         canonicalize-lgpl: use common idiom
12136         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
12137         over newer POSIX -Rf.
12138         Reported by Bruno Haible.
12139
12140         canonicalize-lgpl: work around AIX realpath bug
12141         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
12142         * doc/posix-functions/realpath.texi (realpath): Document it.
12143         Reported by Bruno Haible.
12144
12145         strerror: work around FreeBSD bug
12146         * lib/strerror.c (strerror): Special case 0.
12147         Reported by Bruno Haible.
12148
12149         strerror-override: avoid bloating errno module
12150         * modules/errno (Files, configure.ac): Move replacement strings...
12151         * modules/strerror-override: ...to new module.
12152         * modules/strerror (Depends-on): Add strerror-override.
12153         * modules/strerror_r-posix (Depends-on): Likewise.
12154         * MODULES.html.sh: Document new module.
12155         Reported by Bruno Haible.
12156
12157 2011-06-06  Bruno Haible  <bruno@clisp.org>
12158
12159         spawn-pipe tests: Rename program.
12160         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
12161         * tests/test-spawn-pipe-child.c: Update comment.
12162         * tests/test-spawn-pipe.sh: Update.
12163         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
12164
12165         spawn-pipe tests: Link the child program only against libc.
12166         * tests/test-spawn-pipe-child.c: New file, extracted from
12167         tests/test-spawn-pipe.c.
12168         (main): Expect only one argument.
12169         (is_open): New function, copied from tests/test-pipe.c.
12170         * tests/test-spawn-pipe.c: Don't include <errno.h>.
12171         (child_main): Remove function.
12172         (test_pipe): Pass only one argument to the child program.
12173         (main): Remove child process code. Expect the child program's name as
12174         first argument.
12175         * tests/test-spawn-pipe.sh: Pass the child program's name as first
12176         argument.
12177         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
12178         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
12179         test-spawn-pipe-child against no libraries.
12180
12181 2011-06-06  Bruno Haible  <bruno@clisp.org>
12182
12183         careadlinkat: Avoid mismatch between ssize_t and int.
12184         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
12185         * lib/careadlinkat.c (careadlinkatcwd): Define always.
12186
12187 2011-06-06  Jim Meyering  <meyering@redhat.com>
12188
12189         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
12190         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
12191         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
12192
12193 2011-06-05  Bruno Haible  <bruno@clisp.org>
12194
12195         ansi-c++-opt: Interoperability with libtool.
12196         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
12197         set the variable to "no", not to ":".
12198         * NEWS: Mention the change.
12199
12200 2011-06-05  Bruno Haible  <bruno@clisp.org>
12201
12202         acl: Fix test failure on AIX 7.
12203         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
12204         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
12205
12206 2011-06-05  Bruno Haible  <bruno@clisp.org>
12207
12208         pipe-filter-ii: Fix test failure on AIX and IRIX.
12209         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
12210         with EAGAIN, retry with a smaller buffer size.
12211
12212 2011-06-05  Bruno Haible  <bruno@clisp.org>
12213
12214         localename: Fix link dependencies.
12215         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
12216         * modules/localename-tests (Makefile.am): Link test-localename with
12217         $(LIBTHREAD).
12218
12219 2011-06-05  Bruno Haible  <bruno@clisp.org>
12220
12221         error: Avoid gcc warning.
12222         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
12223
12224 2011-06-05  Bruno Haible  <bruno@clisp.org>
12225
12226         unsetenv: Avoid gcc warning.
12227         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
12228
12229 2011-06-05  Bruno Haible  <bruno@clisp.org>
12230
12231         setenv: Avoid gcc warning.
12232         * lib/setenv.c (setenv): Provide declaration if system lacks it.
12233
12234 2011-06-05  Bruno Haible  <bruno@clisp.org>
12235
12236         sys_select: Ensure memset is declared also on AIX 7.
12237         * lib/sys_select.in.h: Include <string.h> also on AIX.
12238         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
12239         self-contained also on AIX 7.1.
12240
12241 2011-06-04  Jim Meyering  <meyering@redhat.com>
12242
12243         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
12244         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
12245         function name, "error".
12246         (_gl_translatable_diag_func_re): New configurable variable.
12247
12248 2011-06-04  Bruno Haible  <bruno@clisp.org>
12249
12250         getopt: Avoid gcc warning.
12251         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
12252
12253 2011-06-04  Bruno Haible  <bruno@clisp.org>
12254
12255         strerror_r: Fix comments.
12256         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
12257         commit.
12258
12259 2011-06-04  Bruno Haible  <bruno@clisp.org>
12260
12261         perror: Fix compilation error.
12262         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
12263         Undefine fprintf, not sprintf.
12264         * modules/perror (Depends-on): Remove intprops, verify.
12265
12266 2011-06-04  Bruno Haible  <bruno@clisp.org>
12267
12268         setlocale: Enable replacement on Cygwin 1.5.
12269         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
12270         Cygwin 1.5.x.
12271         * doc/posix-functions/setlocale.texi: Mention that the problem with the
12272         LC_CTYPE category also exists on Cygwin 1.5.x.
12273
12274 2011-06-04  Bruno Haible  <bruno@clisp.org>
12275
12276         strerror-override: Don't disable symbol renamings.
12277         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
12278         * lib/strerror-override.c: Include config.h.
12279         (strerror_override): Don't undefine.
12280
12281 2011-06-03  Bruno Haible  <bruno@clisp.org>
12282
12283         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
12284         * lib/localename.h: Update copyright header.
12285         * lib/localename.c: Likewise.
12286         * lib/relocatable.h: Likewise.
12287         * lib/relocatable.c: Likewise.
12288
12289 2011-06-02  Bruno Haible  <bruno@clisp.org>
12290
12291         doc: Fix a module name.
12292         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
12293
12294 2011-06-02  Bruno Haible  <bruno@clisp.org>
12295
12296         pipe2: Remove dependency on 'nonblocking' module.
12297         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
12298         O_NONBLOCK is defined by gnulib.
12299         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
12300         is zero.
12301         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
12302         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
12303         defined by gnulib.
12304         (get_nonblocking_flag): New function.
12305         (main): Test O_NONBLOCK flag only if it is nonzero.
12306         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
12307
12308 2011-06-03  Jim Meyering  <meyering@redhat.com>
12309
12310         maint: three new prohibit-header-without-use rules
12311         Prohibit use of cloexec.h, posixver.h, same.h without use.
12312         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
12313         (sc_prohibit_posixver_without_use): Likewise.
12314         (sc_prohibit_same_without_use): Likewise.
12315
12316 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12317
12318         allocator: 'die' routine is now given requested size
12319         * lib/allocator.h (struct allocator.die): New size arg.
12320         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
12321         If the actual problem is an ssize_t limitation, not a size_t or
12322         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
12323
12324 2011-06-01  Eric Blake  <eblake@redhat.com>
12325
12326         strerror: drop strerror_r dependency
12327         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
12328         * lib/strerror-override.c (strerror_override): ...to new file.
12329         * lib/strerror-override.h: Add prototype.
12330         * lib/strerror-impl.h: Delete.
12331         * lib/strerror.c (strerror): New implementation.
12332         * modules/errno (Files): Add new files.
12333         (configure.ac): Compile new file as appropriate.
12334         * modules/strerror (Files): Drop unused file.
12335         (Depends-on): Drop strerror_r-posix.
12336         * MODULES.html.sh: Document strerror_r-posix.
12337         Requested by Sam Steingold.
12338
12339         perror: call strerror_r directly
12340         * modules/perror (Files): Drop strerror-impl.h.
12341         * lib/perror.c (perror): Use our own stack buffer, rather than
12342         calling a wrapper that uses static storage.
12343         * doc/posix-functions/perror.texi (perror): Document a limitation
12344         of our replacement.
12345
12346         strerror_r: fix includes for FreeBSD
12347         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
12348         since we use abort on some platforms.
12349         Reported by Matthias Bolte.
12350
12351 2011-05-31  Bruno Haible  <bruno@clisp.org>
12352
12353         Fix link errors in tests: openat-die uses gettext-h.
12354         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
12355         against $(LIBINTL).
12356         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
12357         against $(LIBINTL).
12358         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
12359         $(LIBINTL).
12360         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
12361         against $(LIBINTL).
12362         * modules/linkat-tests (Makefile.am): Link test-linkat against
12363         $(LIBINTL).
12364         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
12365         $(LIBINTL).
12366         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
12367         against $(LIBINTL).
12368         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
12369         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
12370         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
12371         $(LIBINTL).
12372         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
12373         $(LIBINTL).
12374         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
12375         $(LIBINTL).
12376         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12377
12378 2011-05-31  Bruno Haible  <bruno@clisp.org>
12379
12380         Fix link errors in tests: wait-process uses gettext-h.
12381         * modules/nonblocking-pipe-tests (Makefile.am): Set
12382         test_nonblocking_pipe_main_LDADD.
12383         * modules/nonblocking-socket-tests (Makefile.am): Link
12384         test-nonblocking-socket-main against $(LIBINTL).
12385         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12386
12387 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12388
12389         assert-h: work around 'verify' incompatibility
12390         * lib/verify.h: Use @...@ directives, not ifdef.
12391         * modules/assert-h (assert.h): Implement the directives.
12392         (assert.h): Substitute the symbol-prefix more consistently.
12393
12394 2011-05-29  Jim Meyering  <meyering@redhat.com>
12395
12396         trim: remove three superfluous assignments
12397         * lib/trim.c (trim2): Remove three superfluous assignments
12398         and correct brace positioning.
12399
12400 2011-05-29  Bruno Haible  <bruno@clisp.org>
12401
12402         wctype-h: Avoid namespace pollution on Solaris 2.6.
12403         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
12404         identifiers.
12405         * doc/posix-headers/wctype.texi: Mention the problem.
12406         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12407
12408 2011-05-28  Jim Meyering  <meyering@redhat.com>
12409
12410         parse-datetime.y: accommodate -Wstrict-overflow
12411         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
12412         placate -Wstrict-overflow.
12413
12414         trim: avoid a warning from -O2 -Wstrict-overflow
12415         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
12416
12417 2011-05-29  Bruno Haible  <bruno@clisp.org>
12418
12419         gnulib-tool: Fix bug in yesterday's commit.
12420         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
12421         twice.
12422
12423 2011-05-29  Bruno Haible  <bruno@clisp.org>
12424
12425         Allow multiple gnulib generated include files to be combined.
12426         * gnulib-tool (func_compute_include_guard_prefix): New function.
12427         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
12428         ${gl_include_guard_prefix} references.
12429         (func_import, func_create_testdir): Invoke
12430         func_compute_include_guard_prefix.
12431         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
12432         * lib/ctype.in.h: Likewise.
12433         * lib/dirent.in.h: Likewise.
12434         * lib/errno.in.h: Likewise.
12435         * lib/fcntl.in.h: Likewise.
12436         * lib/float.in.h: Likewise.
12437         * lib/getopt.in.h: Likewise.
12438         * lib/iconv.in.h: Likewise.
12439         * lib/langinfo.in.h: Likewise.
12440         * lib/locale.in.h: Likewise.
12441         * lib/math.in.h: Likewise.
12442         * lib/netdb.in.h: Likewise.
12443         * lib/netinet_in.in.h: Likewise.
12444         * lib/poll.in.h: Likewise.
12445         * lib/pthread.in.h: Likewise.
12446         * lib/pty.in.h: Likewise.
12447         * lib/sched.in.h: Likewise.
12448         * lib/se-selinux.in.h: Likewise.
12449         * lib/search.in.h: Likewise.
12450         * lib/signal.in.h: Likewise.
12451         * lib/spawn.in.h: Likewise.
12452         * lib/stdarg.in.h: Likewise.
12453         * lib/stddef.in.h: Likewise.
12454         * lib/stdint.in.h: Likewise.
12455         * lib/stdio.in.h: Likewise.
12456         * lib/stdlib.in.h: Likewise.
12457         * lib/string.in.h: Likewise.
12458         * lib/strings.in.h: Likewise.
12459         * lib/sys_file.in.h: Likewise.
12460         * lib/sys_ioctl.in.h: Likewise.
12461         * lib/sys_select.in.h: Likewise.
12462         * lib/sys_socket.in.h: Likewise.
12463         * lib/sys_stat.in.h: Likewise.
12464         * lib/sys_time.in.h: Likewise.
12465         * lib/sys_times.in.h: Likewise.
12466         * lib/sys_uio.in.h: Likewise.
12467         * lib/sys_utsname.in.h: Likewise.
12468         * lib/sys_wait.in.h: Likewise.
12469         * lib/sysexits.in.h: Likewise.
12470         * lib/termios.in.h: Likewise.
12471         * lib/time.in.h: Likewise.
12472         * lib/unistd.in.h: Likewise.
12473         * lib/wchar.in.h: Likewise.
12474         * lib/wctype.in.h: Likewise.
12475         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
12476         * modules/ctype (Makefile.am): Likewise.
12477         * modules/dirent (Makefile.am): Likewise.
12478         * modules/errno (Makefile.am): Likewise.
12479         * modules/fcntl-h (Makefile.am): Likewise.
12480         * modules/float (Makefile.am): Likewise.
12481         * modules/getopt-posix (Makefile.am): Likewise.
12482         * modules/iconv-h (Makefile.am): Likewise.
12483         * modules/langinfo (Makefile.am): Likewise.
12484         * modules/locale (Makefile.am): Likewise.
12485         * modules/math (Makefile.am): Likewise.
12486         * modules/netdb (Makefile.am): Likewise.
12487         * modules/netinet_in (Makefile.am): Likewise.
12488         * modules/poll-h (Makefile.am): Likewise.
12489         * modules/pthread (Makefile.am): Likewise.
12490         * modules/pty (Makefile.am): Likewise.
12491         * modules/sched (Makefile.am): Likewise.
12492         * modules/search (Makefile.am): Likewise.
12493         * modules/selinux-h (Makefile.am): Likewise.
12494         * modules/signal (Makefile.am): Likewise.
12495         * modules/spawn (Makefile.am): Likewise.
12496         * modules/stdarg (Makefile.am): Likewise.
12497         * modules/stddef (Makefile.am): Likewise.
12498         * modules/stdint (Makefile.am): Likewise.
12499         * modules/stdio (Makefile.am): Likewise.
12500         * modules/stdlib (Makefile.am): Likewise.
12501         * modules/string (Makefile.am): Likewise.
12502         * modules/strings (Makefile.am): Likewise.
12503         * modules/sys_file (Makefile.am): Likewise.
12504         * modules/sys_ioctl (Makefile.am): Likewise.
12505         * modules/sys_select (Makefile.am): Likewise.
12506         * modules/sys_socket (Makefile.am): Likewise.
12507         * modules/sys_stat (Makefile.am): Likewise.
12508         * modules/sys_time (Makefile.am): Likewise.
12509         * modules/sys_times (Makefile.am): Likewise.
12510         * modules/sys_uio (Makefile.am): Likewise.
12511         * modules/sys_utsname (Makefile.am): Likewise.
12512         * modules/sys_wait (Makefile.am): Likewise.
12513         * modules/sysexits (Makefile.am): Likewise.
12514         * modules/termios (Makefile.am): Likewise.
12515         * modules/time (Makefile.am): Likewise.
12516         * modules/unistd (Makefile.am): Likewise.
12517         * modules/wchar (Makefile.am): Likewise.
12518         * modules/wctype-h (Makefile.am): Likewise.
12519         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
12520
12521 2011-05-29  Bruno Haible  <bruno@clisp.org>
12522
12523         assert-h: Allow multiple gnulib generated replacements to coexist.
12524         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
12525
12526 2011-05-29  Bruno Haible  <bruno@clisp.org>
12527
12528         argp: Allow coexistence with strerror_r-posix module.
12529         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
12530         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
12531         by gnulib's <string.h> replacement), assume it has the POSIX signature,
12532         not the glibc signature.
12533
12534 2011-05-28  Bruno Haible  <bruno@clisp.org>
12535
12536         gnulib-tool: Alternative structure of testdirs, similar to --import.
12537         * gnulib-tool: New option --single-configure.
12538         (func_usage): Document it.
12539         (single_configure): New variable.
12540         (func_modules_transitive_closure_separately,
12541         func_modules_transitive_closure_separately,
12542         func_determine_use_libtests, func_modules_add_dummy_separately,
12543         func_modules_to_filelist_separately): New functions, extracted from
12544         func_import.
12545         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
12546         (func_import): Use the new functions.
12547         (func_create_testdir): Set final_modules. Handle $single_configure =
12548         true case.
12549
12550 2011-05-28  Bruno Haible  <bruno@clisp.org>
12551
12552         getloadavg: Remove an unreliable safety check.
12553         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
12554         getloadavg.c is in place.
12555         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
12556         Reported by Sam Steingold <sds@gnu.org>.
12557
12558 2011-05-28  Bruno Haible  <bruno@clisp.org>
12559
12560         doc: Cleanup yet another file produced by texinfo.tex.
12561         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
12562
12563 2011-05-28  Bruno Haible  <bruno@clisp.org>
12564
12565         Finish the conditional dependencies mechanism.
12566         * gnulib-tool: New option --no-conditional-dependencies.
12567         (func_usage): Document it. Don't mark --conditional-dependencies as
12568         experimental.
12569         (cond_dependencies): The possible values can now be true, false, empty.
12570         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
12571         (func_import): Store setting in gnulib-cache.m4 and read it from there.
12572         * doc/gnulib-tool.texi (Conditional dependencies): New section.
12573
12574 2011-05-28  Bruno Haible  <bruno@clisp.org>
12575
12576         doc: Use a recent texinfo.tex.
12577         * doc/Makefile (tex_opts): New variable.
12578         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
12579
12580 2011-05-28  Jim Meyering  <meyering@redhat.com>
12581
12582         intprops.h: adjust comment to match code change
12583         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
12584         only once, it *may* have side effects.  Also fix an unrelated typo.
12585         (_GL_INT_SIGNED): Likewise.
12586
12587 2011-05-26  Simon Josefsson  <simon@josefsson.org>
12588
12589         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
12590
12591 2011-05-26  Bruno Haible  <bruno@clisp.org>
12592
12593         mbsrchr: Avoid collision with system function on Interix.
12594         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
12595         Reported by Markus Duft <mduft@gentoo.org>.
12596
12597 2011-05-15  James Youngman  <jay@gnu.org>
12598
12599         getopt: for ambiguous options, enumerate the possibilities.
12600         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
12601         the ambiguous options when an ambiguous prefix is given. This was
12602         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
12603         glibc change was
12604         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
12605
12606 2011-05-25  Eric Blake  <eblake@redhat.com>
12607
12608         getcwd: work around mingw bug
12609         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
12610         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12611         Reported by Matthias Bolte.
12612
12613 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
12614
12615         test-intprops: disable -Wtype-limits diagnostics
12616         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
12617         diagnostics.  Otherwise, the integer overflow macros generate many
12618         diagnostics.  Reported by Jim Meyering in
12619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12620
12621         intprops: shorten, to pacify gcc -Woverlength-strings
12622         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
12623         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
12624         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
12625         likely to run afoul of C compiler limits for string constant lengths.
12626         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12627
12628 2011-05-24  Eric Blake  <eblake@redhat.com>
12629
12630         docs: document recently fixed glibc printf bug
12631         * doc/posix-functions/fprintf.texi (fprintf): Document it.
12632         * doc/posix-functions/printf.texi (printf): Likewise.
12633         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12634         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12635
12636         closein-tests: convert to init.sh
12637         * modules/closein-tests (Files): Add init.sh
12638         * tests/test-closein.sh Use it.
12639
12640         yesno-tests: convert to init.sh
12641         * modules/yesno-tests (Files): Add init.sh.
12642         * tests/test-yesno.sh: Use it.
12643
12644         atexit-tests: ensure reliable exit status
12645         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
12646         Reported by Bruno Haible.
12647
12648 2011-05-24  Bruno Haible  <bruno@clisp.org>
12649
12650         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
12651         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
12652         gl_PREREQ_STRERROR_R invocations from here...
12653         * modules/strerror_r-posix (configure.ac): ... to here.
12654
12655 2011-05-24  Eric Blake  <eblake@redhat.com>
12656
12657         strerror_r: fix missing header
12658         * lib/strerror_r.c: Avoid compiler warning about snprintf.
12659
12660         strerror_r: fix AIX test failures
12661         * lib/strerror_r.c (strerror_r): Convert silent truncation to
12662         ERANGE failure.
12663
12664         strerror_r: fix Solaris test failures
12665         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
12666         failures.
12667         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12668
12669         strerror_r: enforce POSIX recommendations
12670         * lib/strerror_r.c (safe_copy): New helper method.
12671         (strerror_r): Guarantee a non-empty string.
12672         * tests/test-strerror_r.c (main): Enhance tests to incorporate
12673         recent POSIX rulings and to match our strerror guarantees.
12674         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12675
12676 2011-05-24  Jim Meyering  <meyering@redhat.com>
12677
12678         test-perror2.c: avoid warning about unused variable
12679         * tests/test-perror2.c (main): Remove declaration of unused "fp".
12680
12681 2011-05-24  Eric Blake  <eblake@redhat.com>
12682
12683         perror: avoid spurious test failure on HP-UX
12684         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
12685
12686         tests: fix logic bug in init.sh
12687         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
12688         shell.
12689
12690 2011-05-24  Jim Meyering  <meyering@redhat.com>
12691
12692         utimensat: do not reference an out-of-scope buffer
12693         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
12694         declared in an inner scope, yet "times" would be dereferenced outside
12695         the scope in which "ts" was valid.
12696         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
12697         of ts[2] "out/up", so that the use of aliased "times" (via
12698         "times = ts;") does not end up referencing an out-of-scope "ts"
12699
12700         opendir-safer.c: don't clobber errno; don't close negative FD
12701         * lib/opendir-safer.c (opendir_safer):
12702         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
12703         file descriptor, and more importantly, don't clobber the
12704         offending errno value with EINVAL.  Before, upon failure
12705         of dup_safer, we would pass the negative file descriptor to
12706         fdopendir, which would clobber errno.
12707
12708 2011-05-23  Bruno Haible  <bruno@clisp.org>
12709
12710         idcache: Fix module description.
12711         * modules/idcache (Include): Set to "idcache.h".
12712
12713 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
12714
12715         gnulib-tool: fix portability problem with MacOS sed
12716         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
12717         before the "}".  Problem reported by Leo in
12718         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
12719         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
12720         sed_extract_condition1, sed_extract_condition2.
12721
12722 2011-05-23  Bruno Haible  <bruno@clisp.org>
12723
12724         hash: Simplify autoconf macro.
12725         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
12726
12727 2011-05-23  Bruno Haible  <bruno@clisp.org>
12728
12729         getugroups: Fix module description.
12730         * modules/getugroups (Include): Set to "getugroups.h".
12731
12732 2011-05-23  Bruno Haible  <bruno@clisp.org>
12733
12734         linkat: Simplify autoconf macro.
12735         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
12736
12737 2011-05-23  Bruno Haible  <bruno@clisp.org>
12738             Eric Blake  <eblake@redhat.com>
12739
12740         linkat, renameat: Update dependencies.
12741         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
12742         * modules/linkat (Depends-on): Likewise. Remove also readlink,
12743         symlinkat.
12744
12745 2011-05-23  Jim Meyering  <meyering@redhat.com>
12746
12747         maint.mk: more tight_scope improvements
12748         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
12749         (_gl_TS_headers): Define only in if-0'd block.
12750         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
12751         sometimes we must *not* use it.  Adjust uses accordingly.
12752         (sc_tight_scope): Use much simpler grep-based test to determine
12753         whether we skip this rule.
12754
12755         maint.mk: generalize/improve the tight-scope rule
12756         * top/maint.mk: Emit a warning when the test is skipped.
12757         (_gl_TS_dir): Add $(srcdir)/ prefix.
12758         (_gl_TS_function_match): Simplify, rather than trying
12759         to enumerate common types.  Otherwise, it would fail to match an
12760         "extern unsigned char const *" declaration in idutils.
12761         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
12762         a way to support use of that type of macro.
12763         (_gl_TS_var_match): Simplify regexp.
12764         (_gl_TS_obj_files): New configurable variable.
12765         (_gl_TS_headers): Likewise.
12766
12767 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12768
12769         verify: fix bug when gnulib <assert.h> is also included
12770         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
12771         is defined, not if _GL_STATIC_ASSERT_H is not defined.
12772         Perhaps there's a better way, but this fixes the immediate problem.
12773         Problem reported by Bruno Haible in
12774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
12775
12776 2011-05-22  Bruno Haible  <bruno@clisp.org>
12777
12778         xgetcwd: Simplify autoconf macro.
12779         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
12780
12781 2011-05-22  Bruno Haible  <bruno@clisp.org>
12782
12783         New module 'mktime-internal'.
12784         * modules/mktime-internal: New file.
12785         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
12786         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
12787         mktime_internal as a C macro if libc has __mktime_internal.
12788         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
12789         conditions.
12790         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
12791
12792 2011-05-22  Bruno Haible  <bruno@clisp.org>
12793
12794         timegm: Correct mktime replacement statements.
12795         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
12796         defining mktime as a C macro. This completes a 2009-07-28 commit.
12797
12798 2011-05-22  Bruno Haible  <bruno@clisp.org>
12799
12800         timegm: Simplify autoconf macro.
12801         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
12802
12803 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
12804
12805         clock-time: change to LGPLv2+.
12806         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
12807         BSD-like but we have no mark for that; this is good enough for now.
12808
12809 2011-05-21  Bruno Haible  <bruno@clisp.org>
12810
12811         strerror_r: Fix comments.
12812         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
12813
12814 2011-05-21  Bruno Haible  <bruno@clisp.org>
12815
12816         relocatable-prog-wrapper: Fix possible link error.
12817         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
12818         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
12819         (gl_FUNC_SETENV): ... to here.
12820         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
12821         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
12822
12823 2011-05-21  Bruno Haible  <bruno@clisp.org>
12824
12825         relocatable-prog-wrapper: Assume strerror() exists.
12826         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
12827         m4/strerror.m4.
12828         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
12829         * lib/relocwrapper.c: Remove mention of strerror module.
12830         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
12831         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
12832         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
12833         C macro.
12834
12835 2011-05-21  Bruno Haible  <bruno@clisp.org>
12836
12837         select: Simplify replacement idiom.
12838         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
12839         Win32 platforms.
12840         * lib/sys_select.in.h (select): Simplify accordingly.
12841         * modules/select (Depends-on): Likewise.
12842
12843 2011-05-21  Bruno Haible  <bruno@clisp.org>
12844
12845         mkdir-p: Simplify autoconf macro.
12846         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
12847         gl_FUNC_LCHOWN.
12848
12849 2011-05-21  Eric Blake  <eblake@redhat.com>
12850
12851         strerror_r: avoid clobbering strerror on cygwin
12852         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
12853         fall back instead to sys_errlist.
12854         * modules/strerror (configure.ac): Add witness.
12855         * tests/test-strerror_r.c (main): Enhance test.
12856         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12857         * tests/test-perror2.c (main): Free memory before exit.
12858
12859 2011-05-21  Bruno Haible  <bruno@clisp.org>
12860
12861         mkdtemp: Use gnulib naming conventions.
12862         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
12863         * modules/mkdtemp (configure.ac): Update.
12864
12865 2011-05-20  Eric Blake  <eblake@redhat.com>
12866
12867         strerror_r: avoid corrupting errno on Solaris
12868         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
12869         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12870
12871         strerror_r: avoid compiler warning
12872         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
12873
12874         strerror_r: simplify AIX code
12875         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
12876
12877         test-perror: avoid spurious failure on FreeBSD
12878         * modules/perror-tests (Depends-on): Add strerror, now that
12879         strerror_r no longer pulls it in.
12880
12881 2011-05-20  Bruno Haible  <bruno@clisp.org>
12882
12883         strerror_r-posix: Remove unused dependencies.
12884         * modules/strerror_r-posix (Depends-on): Remove strerror.
12885         Reported by Eric Blake.
12886
12887 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12888
12889         intprops: remove assumption about A|B representation
12890         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
12891         is a valid integer if both A and B are.  Although this is true for
12892         all known practical hosts, the C standard doesn't guarantee it,
12893         and the code need not assume it.  Also, this change may work around
12894         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
12895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
12896
12897 2011-05-20  Eric Blake  <eblake@redhat.com>
12898
12899         perror: work around FreeBSD bug
12900         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
12901         is broken.  Move AC_LIBOBJ...
12902         * modules/perror (configure.ac): Here.
12903         * doc/posix-functions/perror.texi (perror): Document this.
12904         * tests/test-perror2.c (main): Enhance test.
12905
12906         test-perror: check for strerror interactions
12907         * tests/macros.h (STREQ): Add macro.
12908         * modules/perror-tests (Files): Add second test.
12909         * tests/test-perror2.c (main): New file.
12910         * doc/posix-functions/perror.texi (perror): Document glibc bug.
12911
12912         test-perror: rewrite to use init script
12913         * modules/perror-tests (Files): Add init.sh.
12914         * tests/test-perror.sh: Use temporary directory.
12915
12916 2011-05-20  Jim Meyering  <meyering@redhat.com>
12917
12918         maint: replace misused "a" with "an"
12919         * doc/intprops.texi: "a integer"
12920         * doc/regex.texi: "a explanation"
12921         * lib/alignof.h: "a object"
12922         * lib/argmatch.h: "a explanation"
12923         * lib/argp-help.c: "a option" and "a OPTION_DOC"
12924         * lib/stdint.in.h: "a integer"
12925         * lib/userspec.c: "a owner"
12926         * doc/gnulib.texi: Fix "a idea", and reword.
12927
12928 2011-05-19  Jim Meyering  <meyering@redhat.com>
12929
12930         maint: correct misuse of "a" and "an"
12931         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
12932         * lib/argp-help.c: "an docum...": s/an/a/
12933         * lib/argp-parse.c: "An vector": s/An/A/
12934         * lib/execute.c: "an native": s/an/a/
12935         * lib/spawn-pipe.c: Likewise.
12936         * lib/gc.h: "an Gc_rc": s/an/a/
12937         * lib/unigbrk.in.h: "an grapheme": s/an/a/
12938         * lib/fts.c: "an stat.st_dev": s/an/a/
12939
12940 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12941
12942         intprops-tests: work around HP-UX 11.23 cc bug with constants
12943         * tests/test-intprops.c (VERIFY): New macro.
12944         (main): Use it, instead of verify, to work around the compiler bug; see
12945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12946
12947         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
12948         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
12949         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
12950         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
12951         (_GL_REMAINDER_OVERFLOW): Use it.
12952
12953         intprops-tests: revert unsigned part of previous change
12954         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
12955         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
12956         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
12957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
12958
12959 2011-05-19  Bruno Haible  <bruno@clisp.org>
12960
12961         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
12962         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
12963         strerror_r() returned without filling the buffer.
12964         Reported by Eric Blake.
12965
12966 2011-05-19  Eric Blake  <eblake@redhat.com>
12967
12968         strerror_r: guarantee unchanged errno
12969         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
12970         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
12971         failure.
12972         * tests/test-strerror_r.c (main): Enhance test.
12973
12974 2011-05-19  Bruno Haible  <bruno@clisp.org>
12975
12976         strerror_r: Reorder #if blocks.
12977         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
12978         for consistency with the previous commit.
12979
12980 2011-05-19  Bruno Haible  <bruno@clisp.org>
12981
12982         perror: Avoid clobbering the strerror buffer when possible.
12983         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
12984         * lib/strerror.c: Include it.
12985         * modules/strerror (Files): Add lib/strerror-impl.h.
12986         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
12987         (my_strerror): New function, defined through lib/strerror-impl.h.
12988         (perror): Use it instead of strerror.
12989         * modules/perror (Files): Add lib/strerror-impl.h.
12990         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
12991
12992 2011-05-19  Eric Blake  <eblake@redhat.com>
12993
12994         strerror_r: fix on newer cygwin
12995         * lib/strerror_r.c (strerror_r): Cygwin now has
12996         __xpg_strerror_r, use it.
12997
12998 2011-05-19  Bruno Haible  <bruno@clisp.org>
12999
13000         strerror_r: Avoid clobbering the strerror buffer when possible.
13001         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
13002         (sys_nerr, sys_errlist): New declarations.
13003         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
13004         HP-UX, native Win32, IRIX, and 32-bit Solaris.
13005         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
13006
13007 2011-05-19  Bruno Haible  <bruno@clisp.org>
13008
13009         strerror_r: Fix test failure on mingw.
13010         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
13011         EXTEND_STRERROR_R.
13012         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
13013         macros from errno.in.h instead.
13014
13015 2011-05-19  Eric Blake  <eblake@redhat.com>
13016
13017         strerror: relax test for Solaris
13018         * tests/test-strerror.c (main): Permit Solaris behavior.
13019         * tests/test-strerror_r.c (main): Likewise.
13020
13021         strerror: enforce POSIX ruling on strerror(0)
13022         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
13023         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13024         * lib/strerror_r.c (rpl_strerror_r): Work around it.
13025         * doc/posix-functions/strerror.texi (strerror): Document it.
13026         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
13027         * tests/test-strerror.c (main): Strengthen test.
13028         * tests/test-strerror_r.c (main): Likewise.
13029
13030 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13031
13032         intprop-tests: port to older and more-pedantic compilers
13033         * modules/intprops-tests (Files): Add tests/macros.h.
13034         * tests/test-intprops.c: Include macros.h.
13035         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
13036         it's no longer documented to expand to an integer constant expression.
13037         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
13038         argument is floating point, as it's no longer documented to expand
13039         to an integer constant expression in that case.
13040         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
13041         compiler bugs reported by Bruno Haible.  See
13042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13043         (U0, U1): New constants, to work around the same bugs.  Also,
13044         in tests, use e.g., "(unsigned int) 39" rather than "39u".
13045
13046         intprops: work around C compiler bugs
13047         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
13048         bug in Sun C 5.11 2010/08/13 and other compilers; see
13049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13050
13051         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
13052         * doc/intprops.texi (Integer Type Determination): Fix
13053         documentation for TYPE_IS_INTEGER: it returns an constant
13054         expression, not an integer constant expression.  Fix doc for
13055         TYPE_SIGNED: it returns an integer constant expression only if its
13056         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
13057         hardly worth documented that way....)
13058
13059 2011-05-18  Bruno Haible  <bruno@clisp.org>
13060
13061         strerror_r: Avoid clobbering the strerror buffer when possible.
13062         * lib/strerror_r.c (strerror_r): Merge the three implementations.
13063         Handle gnulib defined errno values here. When strerror() returns NULL
13064         or an empty string, return EINVAL.
13065         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
13066         gnulib defined errno values here.
13067         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
13068
13069 2011-05-18  Eric Blake  <eblake@redhat.com>
13070
13071         fnmatch: avoid compiler warning
13072         * lib/fnmatch_loop.c (FCT): Use correct type.
13073         Reported by Matthias Bolte.
13074
13075 2011-05-13  Jim Meyering  <meyering@redhat.com>
13076
13077         maint.mk: three new prohibit_<HDR>_without_use rules
13078         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
13079         (sc_prohibit_stdio-safer_without_use): Likewise.
13080         (sc_prohibit_xfreopen_without_use): Likewise.
13081
13082 2011-05-17  Jim Meyering  <meyering@redhat.com>
13083
13084         announce-gen: fail if the NEWS delta is empty
13085         If there's nothing noteworthy in NEWS, then either you forgot
13086         or you shouldn't be releasing.
13087         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
13088
13089 2011-05-17  Pádraig Brady <P@draigBrady.com>
13090
13091         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
13092         reserved symbols starting with double underscore from the check.
13093
13094 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13095
13096         intprops: add doc
13097         * doc/intprops.texi: New file, documenting intprops.
13098         * doc/gnulib.texi (Particular Modules): Include it.
13099
13100         verify: add doc to gnulib manual and fix example
13101         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
13102         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
13103         (Compile-time Assertions): Fix example so it can't overflow.
13104
13105 2011-05-17  Jim Meyering  <meyering@redhat.com>
13106
13107         warnings.m4: don't usurp save_CPPFLAGS variable name
13108         * m4/warnings.m4: Prefix local temporary variable name with gl_.
13109
13110         doc: fix typo
13111         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
13112
13113 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13114             Bruno Haible  <bruno@clisp.org>
13115
13116         doc: Tweak recent change.
13117         * README (Portability guidelines): Tweak new text.
13118         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
13119         Interix 6.1.
13120
13121 2011-05-16  Eric Blake  <eblake@redhat.com>
13122
13123         inttypes: avoid autoconf warning
13124         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
13125         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13126
13127 2011-05-16  Sam Steingold <sds@gnu.org>
13128         and Eric Blake  <eblake@redhat.com>
13129
13130         vc-list-files: accept multiple directory operands
13131         * build-aux/vc-list-files: Iterate over all remaining operands.
13132
13133 2011-05-16  Bruno Haible  <bruno@clisp.org>
13134
13135         Fix confusion regarding deprecated modules.
13136         * modules/calloc (Status, Notice): Mark module as deprecated, not
13137         obsolete.
13138         * modules/fnmatch-posix (Status, Notice): Likewise.
13139         * modules/getdate (Status, Notice): Likewise.
13140         * modules/getopt (Status, Notice): Likewise.
13141         * modules/malloc (Status, Notice): Likewise.
13142         * modules/pipe (Status, Notice): Likewise.
13143         * modules/realloc (Status, Notice): Likewise.
13144         * modules/rename-dest-slash (Status, Notice): Likewise.
13145         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
13146         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
13147         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
13148         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
13149         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
13150
13151 2011-05-16  Bruno Haible  <bruno@clisp.org>
13152
13153         doc: List the target platforms.
13154         * doc/gnulib-intro.texi (Target Platforms): New section.
13155         * doc/gnulib.texi (Introduction): Update menu.
13156         * README (Portability guidelines): Refer to the new section. Update
13157         statement about oldest supported environment. Remove rationale why
13158         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
13159         unportable C89 function.
13160         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
13161         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
13162
13163 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13164
13165         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
13166
13167 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13168
13169         intprops-tests: new module
13170         * modules/intprops-tests, tests/test-intprops.c: New files.
13171
13172         intprops: add safe, portable integer overflow checking
13173         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
13174         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
13175         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
13176         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
13177         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
13178         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
13179         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
13180         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
13181         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13182         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
13183         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
13184
13185 2011-05-12  James Youngman  <jay@gnu.org>
13186
13187         Add a test for glibc's Bugzilla bug #12378.
13188         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
13189         doesn't allow the literal matching of a lone "[" (which is
13190         required by POSIX).
13191         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
13192
13193 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
13194
13195         Sync glibc change fixing Bugzilla bug #12378.
13196         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
13197         beginning and fall back to matching as normal character if the
13198         string ends before the matching ']' is found.  This is what POSIX
13199         requires.
13200
13201 2011-05-13  Eric Blake  <eblake@redhat.com>
13202
13203         getcwd-lgpl: relax test for FreeBSD
13204         * doc/posix-functions/getcwd.texi (getcwd): Document portability
13205         issue.
13206         * tests/test-getcwd-lgpl.c (main): Relax test.
13207         Reported by Matthias Bolte.
13208
13209 2011-05-11  Eric Blake  <eblake@redhat.com>
13210
13211         test-fflush: silence compiler warning
13212         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
13213
13214 2011-05-11  Bruno Haible  <bruno@clisp.org>
13215
13216         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
13217         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
13218         * modules/canonicalize (Depends-on): Add 'nocrash'.
13219         * modules/canonicalize-lgpl (Depends-on): Likewise.
13220         * doc/posix-functions/realpath.texi: Update platforms list.
13221         Reported by Ryan Schmidt <ryandesign@macports.org>.
13222
13223 2011-05-11  Bruno Haible  <bruno@clisp.org>
13224
13225         group-member: Declare function in <unistd.h>.
13226         * lib/unistd.in.h (group_member): New declaration.
13227         * lib/group-member.h: Remove file.
13228         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
13229         * tests/test-unistd-c++.cc: Check signature of group_member.
13230         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
13231         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
13232         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
13233         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
13234         HAVE_GROUP_MEMBER.
13235         * modules/group-member (Files): Remove lib/group-member.h.
13236         (Depends-on): Add unistd. Specify conditions.
13237         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13238         (Include): Change to <unistd.h>.
13239         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
13240         HAVE_GROUP_MEMBER.
13241         * NEWS: Mention the change.
13242         * lib/euidaccess.c: Don't include group-member.h.
13243
13244 2011-05-11  Bruno Haible  <bruno@clisp.org>
13245
13246         group-member: Document module.
13247         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
13248         module.
13249
13250 2011-05-11  Bruno Haible  <bruno@clisp.org>
13251
13252         fclose: Fix mistake earlier today.
13253         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
13254
13255 2011-05-11  Eric Blake  <eblake@redhat.com>
13256
13257         fclose: preserve fflush errors
13258         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
13259         Reported by Jim Meyering.
13260
13261         bootstrap: support a prereq of 'rpcgen -' on RHEL5
13262         * build-aux/bootstrap (check_versions): When no specific version
13263         is required, merely check that the app produces an exit status
13264         that indicates its existence.
13265
13266         maint.mk: drop redundant check
13267         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
13268         the same but better.
13269
13270 2011-05-11  Bruno Haible  <bruno@clisp.org>
13271
13272         fclose: Fix possible link error.
13273         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
13274         unregister_shadow_fd. Improve comments.
13275         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
13276         Eric Blake.
13277
13278 2011-05-11  Jim Meyering  <meyering@redhat.com>
13279
13280         maint.mk: improve "can not" detection and generalize rule name
13281         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
13282         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
13283         Use the same technique as in sc_prohibit_doubled_word, so that
13284         we recognize "can not" also when the words are separated by a newline.
13285         Suggested by Eric Blake.
13286         (perl_filename_lineno_text_): Define.  Factored out of...
13287         (prohibit_doubled_word_): ...here.  Use the new definition.
13288         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
13289         (prohibit_undesirable_word_seq_RE_): New overridable variable.
13290         (ignore_undesirable_word_sequence_RE_): New overridable variable.
13291
13292 2011-05-10  Eric Blake  <eblake@redhat.com>
13293
13294         fclose: avoid double close race when possible
13295         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
13296         all but WINDOWS_SOCKETS.
13297
13298 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
13299
13300         openat: correct new comment
13301         * lib/openat-proc.c (openat_proc_name): Correct the comment.
13302
13303 2011-05-10  Jim Meyering  <meyering@redhat.com>
13304
13305         openat: add comments
13306         * lib/openat-proc.c (openat_proc_name): Add comments,
13307         mostly from Eric Blake.
13308
13309 2011-05-09  Eric Blake  <eblake@redhat.com>
13310
13311         openat: reduce syscalls in first probe of /proc
13312         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
13313         be a directory.  Simplify the probe for .. bugs.
13314         * modules/openat (Depends-on): Drop same-inode.
13315         Reported by Bastien ROUCARIES.
13316
13317 2011-05-09  Jim Meyering  <meyering@redhat.com>
13318
13319         maint.mk: change semantics/name of tight_scope variables
13320         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
13321         Rename variables to align with semantics that make them more useful.
13322
13323         maint.mk: tweak new rule's name not to impinge
13324         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
13325         (sc_tight_scope): Use new rule name rather than $@-0.
13326
13327         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
13328         * top/maint.mk (sc_tight_scope): New rule.
13329         (sc_tight_scope-0): New rule, ifdef'd out.
13330         (_gl_TS_dir): Default.
13331         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
13332         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
13333
13334 2011-05-09  Simon Josefsson  <simon@josefsson.org>
13335
13336         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
13337         Haible <bruno@clisp.org>.
13338
13339 2011-05-08  Bruno Haible  <bruno@clisp.org>
13340
13341         Comments.
13342         * m4/isnanf.m4: Add comment.
13343         * m4/isnanl.m4: Likewise.
13344
13345 2011-05-08  Bruno Haible  <bruno@clisp.org>
13346
13347         glob: Remove obsolete macro.
13348         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
13349
13350 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13351
13352         intprops: Sun C 5.11 supports __typeof__
13353         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
13354         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
13355         which is new.
13356         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
13357
13358         intprops: switch to usual gnulib indenting and naming
13359         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
13360         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
13361
13362         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
13363
13364 2011-05-08  Jim Meyering  <meyering@redhat.com>
13365
13366         maint.mk: suppress "Entering/Leaving directory" diag in announcement
13367         * top/maint.mk (release-prep): Use make's --no-print-directory
13368         option when generating the announcement.  This eliminates the
13369         pesky "make[2]: Entering/Leaving directory" diagnostics in the
13370         generated announcement template.
13371
13372 2011-05-08  Bruno Haible  <bruno@clisp.org>
13373
13374         tzset: Fix gettimeofday wrapper on Solaris 2.6.
13375         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
13376         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
13377
13378 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13379
13380         ignore-value, verify: Omit include files from lib_SOURCES.
13381         * modules/ignore-value, modules/verify (Makefile.am):
13382         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
13383         that leads Automake to duplicate use of am__objects_... variables
13384         in Makefile.in.  See
13385         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
13386
13387 2011-05-07  Bruno Haible  <bruno@clisp.org>
13388
13389         fclose: Simplify autoconf macro.
13390         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
13391         defined.
13392
13393 2011-05-07  Bruno Haible  <bruno@clisp.org>
13394
13395         canonicalize-lgpl: Fix autoconf macro ordering bug.
13396         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
13397         gl_STDLIB_H_DEFAULTS.
13398
13399 2011-05-06  Eric Blake  <eblake@redhat.com>
13400
13401         maintainer-makefile: make sc_po_check easier to tune
13402         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
13403         to probe for strings, such as an alternate location for gnulib.
13404
13405         fclose: guarantee behavior on seekable stdin
13406         * modules/fclose (Depends-on): Add fflush.
13407         * doc/posix-functions/fclose.texi (fclose): Document this.
13408         * tests/test-fclose.c (main): Make test for this unconditional.
13409
13410 2011-05-06  Bruno Haible  <bruno@clisp.org>
13411
13412         fflush, fpurge: Relicense under LGPLv2+.
13413         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
13414         * modules/fpurge (License): Likewise.
13415         With permission from Eric Blake and Jim Meyering.
13416         Suggested by Eric Blake.
13417
13418 2011-05-06  Karl Berry  <karl@gnu.org>
13419
13420         * MODULES.html.sh (func_all_modules): remove exit.
13421
13422 2011-05-06  Jim Meyering  <meyering@redhat.com>
13423
13424         maint.mk: use info-gnu@ as the default only for a stable release
13425         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
13426         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
13427         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
13428         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
13429
13430 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13431
13432         assert-h: new module, which supports C1X-style static_assert
13433         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
13434         * lib/verify.h: Revamp so that this can be copied into assert.h,
13435         while retaining the ability to use it standalone as before.
13436         Rename private identifiers so as not to encroach on the
13437         standard C namespace, since this is now used by assert.h.
13438         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
13439         the old verify_true.
13440         (_GL_VERIFY_TRUE): New macro, with much of the contents of
13441         the old verify_true.  Use _GL_VERIFY_TYPE.
13442         (_GL_VERIFY): New macro, with much of the contents of the old verify.
13443         (static_assert): New macro, if _GL_STATIC_ASSERT_H
13444         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
13445         defined when this file is copied into the replacement assert.h.
13446         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
13447         and _Static_assert is not built in.
13448         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
13449         defined, and use the new macros mentioned above.
13450         * doc/posix-headers/assert.texi: Document this.
13451
13452 2011-05-05  Bruno Haible  <bruno@clisp.org>
13453
13454         fclose, fflush: Respect rules for use of AC_LIBOBJ.
13455         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
13456         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
13457         gl_REPLACE_FCLOSE here.
13458         * modules/fflush (Depends-on): Remove fclose.
13459         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
13460         combination with module 'fclose'.
13461
13462 2011-05-05  Bruno Haible  <bruno@clisp.org>
13463
13464         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
13465         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
13466         gl_FUNC_FFLUSH.
13467         (gl_FUNC_FFLUSH): Use it.
13468         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
13469         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
13470         gl_REPLACE_FSEEKO here.
13471
13472 2011-05-05  Bruno Haible  <bruno@clisp.org>
13473
13474         tzset: Relicense under LGPL.
13475         * modules/tzset (License): Change to LGPL.
13476         No agreement needed; it's a no-op.
13477
13478         strtoimax, strtoumax: Relicense under LGPL.
13479         * modules/strtoimax (License): Change to LGPL.
13480         * modules/strtoumax (License): Likewise.
13481         With permission from Jim Meyering, Paul Eggert:
13482         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
13483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
13484
13485         getgroups: Relicense under LGPL.
13486         * modules/getgroups (License): Change to LGPL.
13487         With permission from Jim Meyering, Paul Eggert, Eric Blake:
13488         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13491
13492         nanosleep: Relicense under LGPL.
13493         * modules/nanosleep (License): Change to LGPL.
13494         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
13495         Haible:
13496         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13498         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13500
13501         futimens: Relicense under LGPL.
13502         * modules/futimens (License): Change to LGPL.
13503         With permission from Eric Blake:
13504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13505
13506         fflush: Relicense under LGPL.
13507         * modules/fflush (License): Change to LGPL.
13508         With permission from Eric Blake, Bruno Haible, Jim Meyering:
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         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
13512
13513         tmpfile: Relicense under LGPL.
13514         * modules/tmpfile (License): Change to LGPL.
13515         With permission from Ben Pfaff:
13516         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13517
13518         isfinite: Relicense under LGPL.
13519         * modules/isfinite (License): Change to LGPL.
13520         With permission from Ben Pfaff, Bruno Haible:
13521         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
13523
13524         acosl..tanl: Relicense under LGPL.
13525         * modules/acosl (License): Change to LGPL.
13526         * modules/asinl (License): Likewise.
13527         * modules/atanl (License): Likewise.
13528         * modules/cosl (License): Likewise.
13529         * modules/expl (License): Likewise.
13530         * modules/logl (License): Likewise.
13531         * modules/sinl (License): Likewise.
13532         * modules/sqrtl (License): Likewise.
13533         * modules/tanl (License): Likewise.
13534         Source code originally from glibc and Paolo Bonzini. Agreements:
13535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
13536         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
13537
13538 2011-05-05  Bruno Haible  <bruno@clisp.org>
13539
13540         signal: Define sighandler_t.
13541         * lib/signal.in.h (sighandler_t): New type.
13542         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
13543         whether sighandler_t is defined.
13544         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
13545         * modules/signal (Depends-on): Add extensions.
13546         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
13547         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
13548         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
13549
13550 2011-05-05  Eric Blake  <eblake@redhat.com>
13551
13552         maint: remove useless REPLACE_*_H macros
13553         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
13554         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13555         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13556         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
13557         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13558         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13559         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
13560         * m4/btowc.m4: Update callers.
13561         * m4/dirfd.m4: Likewise.
13562         * m4/duplocale.m4: Likewise.
13563         * m4/fchdir.m4: Likewise.
13564         * m4/fdopendir.m4: Likewise.
13565         * m4/inet_ntop.m4: Likewise.
13566         * m4/inet_pton.m4: Likewise.
13567         * m4/ioctl.m4: Likewise.
13568         * m4/mbrlen.m4: Likewise.
13569         * m4/mbrtowc.m4: Likewise.
13570         * m4/mbsinit.m4: Likewise.
13571         * m4/mbsnrtowcs.m4: Likewise.
13572         * m4/mbsrtowcs.m4: Likewise.
13573         * m4/poll.m4: Likewise.
13574         * m4/setlocale.m4: Likewise.
13575         * m4/wcrtomb.m4: Likewise.
13576         * m4/wcsnrtombs.m4: Likewise.
13577         * m4/wcsrtombs.m4: Likewise.
13578         * m4/wctob.m4: Likewise.
13579         * m4/wcwidth.m4: Likewise.
13580         * modules/posix_spawn: Likewise.
13581         * modules/posix_spawn_file_actions_addclose: Likewise.
13582         * modules/posix_spawn_file_actions_adddup2: Likewise.
13583         * modules/posix_spawn_file_actions_addopen: Likewise.
13584         * modules/posix_spawn_file_actions_destroy: Likewise.
13585         * modules/posix_spawn_file_actions_init: Likewise.
13586         * modules/posix_spawnattr_destroy: Likewise.
13587         * modules/posix_spawnattr_getflags: Likewise.
13588         * modules/posix_spawnattr_getpgroup: Likewise.
13589         * modules/posix_spawnattr_getschedparam: Likewise.
13590         * modules/posix_spawnattr_getschedpolicy: Likewise.
13591         * modules/posix_spawnattr_getsigdefault: Likewise.
13592         * modules/posix_spawnattr_getsigmask: Likewise.
13593         * modules/posix_spawnattr_init: Likewise.
13594         * modules/posix_spawnattr_setflags: Likewise.
13595         * modules/posix_spawnattr_setpgroup: Likewise.
13596         * modules/posix_spawnattr_setschedparam: Likewise.
13597         * modules/posix_spawnattr_setschedpolicy: Likewise.
13598         * modules/posix_spawnattr_setsigdefault: Likewise.
13599         * modules/posix_spawnattr_setsigmask: Likewise.
13600         * modules/posix_spawnp: Likewise.
13601
13602 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
13603
13604         Add option to do-release-commit-and-tag to specify branch.
13605         * build-aux/do-release-commit-and-tag: Add --branch.
13606
13607 2011-05-03  Bruno Haible  <bruno@clisp.org>
13608
13609         Avoid unnecessary compilation units, through conditional dependencies.
13610         * modules/accept (Depends-on): Add conditions to the dependencies.
13611         * modules/acosl (Depends-on): Likewise.
13612         * modules/argz (Depends-on): Likewise.
13613         * modules/asinl (Depends-on): Likewise.
13614         * modules/atanl (Depends-on): Likewise.
13615         * modules/atoll (Depends-on): Likewise.
13616         * modules/bind (Depends-on): Likewise.
13617         * modules/btowc (Depends-on): Likewise.
13618         * modules/canonicalize-lgpl (Depends-on): Likewise.
13619         * modules/ceil (Depends-on): Likewise.
13620         * modules/ceilf (Depends-on): Likewise.
13621         * modules/ceill (Depends-on): Likewise.
13622         * modules/chdir-long (Depends-on): Likewise.
13623         * modules/chown (Depends-on): Likewise.
13624         * modules/close (Depends-on): Likewise.
13625         * modules/connect (Depends-on): Likewise.
13626         * modules/cosl (Depends-on): Likewise.
13627         * modules/dirfd (Depends-on): Likewise.
13628         * modules/dprintf (Depends-on): Likewise.
13629         * modules/dprintf-posix (Depends-on): Likewise.
13630         * modules/error (Depends-on): Likewise.
13631         * modules/euidaccess (Depends-on): Likewise.
13632         * modules/expl (Depends-on): Likewise.
13633         * modules/faccessat (Depends-on): Likewise.
13634         * modules/fchdir (Depends-on): Likewise.
13635         * modules/fclose (Depends-on): Likewise.
13636         * modules/fcntl (Depends-on): Likewise.
13637         * modules/fdopendir (Depends-on): Likewise.
13638         * modules/fflush (Depends-on): Likewise.
13639         * modules/floor (Depends-on): Likewise.
13640         * modules/floorf (Depends-on): Likewise.
13641         * modules/floorl (Depends-on): Likewise.
13642         * modules/fnmatch (Depends-on): Likewise.
13643         * modules/fopen (Depends-on): Likewise.
13644         * modules/fprintf-posix (Depends-on): Likewise.
13645         * modules/frexp (Depends-on): Likewise.
13646         * modules/frexp-nolibm (Depends-on): Likewise.
13647         * modules/frexpl (Depends-on): Likewise.
13648         * modules/frexpl-nolibm (Depends-on): Likewise.
13649         * modules/fseek (Depends-on): Likewise.
13650         * modules/fsusage (Depends-on): Likewise.
13651         * modules/ftell (Depends-on): Likewise.
13652         * modules/ftello (Depends-on): Likewise.
13653         * modules/futimens (Depends-on): Likewise.
13654         * modules/getcwd (Depends-on): Likewise.
13655         * modules/getcwd-lgpl (Depends-on): Likewise.
13656         * modules/getdelim (Depends-on): Likewise.
13657         * modules/getdomainname (Depends-on): Likewise.
13658         * modules/getgroups (Depends-on): Likewise.
13659         * modules/gethostname (Depends-on): Likewise.
13660         * modules/getline (Depends-on): Likewise.
13661         * modules/getlogin_r (Depends-on): Likewise.
13662         * modules/getopt-posix (Depends-on): Likewise.
13663         * modules/getpeername (Depends-on): Likewise.
13664         * modules/getsockname (Depends-on): Likewise.
13665         * modules/getsockopt (Depends-on): Likewise.
13666         * modules/getsubopt (Depends-on): Likewise.
13667         * modules/getusershell (Depends-on): Likewise.
13668         * modules/glob (Depends-on): Likewise.
13669         * modules/grantpt (Depends-on): Likewise.
13670         * modules/iconv_open (Depends-on): Likewise.
13671         * modules/iconv_open-utf (Depends-on): Likewise.
13672         * modules/inet_ntop (Depends-on): Likewise.
13673         * modules/inet_pton (Depends-on): Likewise.
13674         * modules/ioctl (Depends-on): Likewise.
13675         * modules/isapipe (Depends-on): Likewise.
13676         * modules/isfinite (Depends-on): Likewise.
13677         * modules/isinf (Depends-on): Likewise.
13678         * modules/lchown (Depends-on): Likewise.
13679         * modules/ldexpl (Depends-on): Likewise.
13680         * modules/link (Depends-on): Likewise.
13681         * modules/linkat (Depends-on): Likewise.
13682         * modules/listen (Depends-on): Likewise.
13683         * modules/logl (Depends-on): Likewise.
13684         * modules/lstat (Depends-on): Likewise.
13685         * modules/mbrlen (Depends-on): Likewise.
13686         * modules/mbrtowc (Depends-on): Likewise.
13687         * modules/mbsinit (Depends-on): Likewise.
13688         * modules/mbsnrtowcs (Depends-on): Likewise.
13689         * modules/mbsrtowcs (Depends-on): Likewise.
13690         * modules/mbtowc (Depends-on): Likewise.
13691         * modules/memcmp (Depends-on): Likewise.
13692         * modules/mkdir (Depends-on): Likewise.
13693         * modules/mkdtemp (Depends-on): Likewise.
13694         * modules/mkfifo (Depends-on): Likewise.
13695         * modules/mkfifoat (Depends-on): Likewise.
13696         * modules/mknod (Depends-on): Likewise.
13697         * modules/mkostemp (Depends-on): Likewise.
13698         * modules/mkostemps (Depends-on): Likewise.
13699         * modules/mkstemp (Depends-on): Likewise.
13700         * modules/mkstemps (Depends-on): Likewise.
13701         * modules/mktime (Depends-on): Likewise.
13702         * modules/nanosleep (Depends-on): Likewise.
13703         * modules/open (Depends-on): Likewise.
13704         * modules/openat (Depends-on): Likewise.
13705         * modules/perror (Depends-on): Likewise.
13706         * modules/poll (Depends-on): Likewise.
13707         * modules/popen (Depends-on): Likewise.
13708         * modules/posix_spawn (Depends-on): Likewise.
13709         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
13710         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
13711         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
13712         * modules/posix_spawnp (Depends-on): Likewise.
13713         * modules/pread (Depends-on): Likewise.
13714         * modules/printf-posix (Depends-on): Likewise.
13715         * modules/ptsname (Depends-on): Likewise.
13716         * modules/putenv (Depends-on): Likewise.
13717         * modules/pwrite (Depends-on): Likewise.
13718         * modules/readline (Depends-on): Likewise.
13719         * modules/readlink (Depends-on): Likewise.
13720         * modules/readlinkat (Depends-on): Likewise.
13721         * modules/recv (Depends-on): Likewise.
13722         * modules/recvfrom (Depends-on): Likewise.
13723         * modules/regex (Depends-on): Likewise.
13724         * modules/remove (Depends-on): Likewise.
13725         * modules/rename (Depends-on): Likewise.
13726         * modules/renameat (Depends-on): Likewise.
13727         * modules/rmdir (Depends-on): Likewise.
13728         * modules/round (Depends-on): Likewise.
13729         * modules/roundf (Depends-on): Likewise.
13730         * modules/roundl (Depends-on): Likewise.
13731         * modules/rpmatch (Depends-on): Likewise.
13732         * modules/select (Depends-on): Likewise.
13733         * modules/send (Depends-on): Likewise.
13734         * modules/sendto (Depends-on): Likewise.
13735         * modules/setenv (Depends-on): Likewise.
13736         * modules/setlocale (Depends-on): Likewise.
13737         * modules/setsockopt (Depends-on): Likewise.
13738         * modules/shutdown (Depends-on): Likewise.
13739         * modules/sigaction (Depends-on): Likewise.
13740         * modules/signbit (Depends-on): Likewise.
13741         * modules/sigprocmask (Depends-on): Likewise.
13742         * modules/sinl (Depends-on): Likewise.
13743         * modules/sleep (Depends-on): Likewise.
13744         * modules/snprintf (Depends-on): Likewise.
13745         * modules/snprintf-posix (Depends-on): Likewise.
13746         * modules/socket (Depends-on): Likewise.
13747         * modules/sprintf-posix (Depends-on): Likewise.
13748         * modules/sqrtl (Depends-on): Likewise.
13749         * modules/stat (Depends-on): Likewise.
13750         * modules/strchrnul (Depends-on): Likewise.
13751         * modules/strdup-posix (Depends-on): Likewise.
13752         * modules/strerror (Depends-on): Likewise.
13753         * modules/strerror_r-posix (Depends-on): Likewise.
13754         * modules/strndup (Depends-on): Likewise.
13755         * modules/strnlen (Depends-on): Likewise.
13756         * modules/strptime (Depends-on): Likewise.
13757         * modules/strsep (Depends-on): Likewise.
13758         * modules/strsignal (Depends-on): Likewise.
13759         * modules/strstr-simple (Depends-on): Likewise.
13760         * modules/strtod (Depends-on): Likewise.
13761         * modules/strtoimax (Depends-on): Likewise.
13762         * modules/strtok_r (Depends-on): Likewise.
13763         * modules/strtoumax (Depends-on): Likewise.
13764         * modules/symlink (Depends-on): Likewise.
13765         * modules/symlinkat (Depends-on): Likewise.
13766         * modules/tanl (Depends-on): Likewise.
13767         * modules/tcgetsid (Depends-on): Likewise.
13768         * modules/tmpfile (Depends-on): Likewise.
13769         * modules/trunc (Depends-on): Likewise.
13770         * modules/truncf (Depends-on): Likewise.
13771         * modules/truncl (Depends-on): Likewise.
13772         * modules/uname (Depends-on): Likewise.
13773         * modules/unlink (Depends-on): Likewise.
13774         * modules/unlockpt (Depends-on): Likewise.
13775         * modules/unsetenv (Depends-on): Likewise.
13776         * modules/usleep (Depends-on): Likewise.
13777         * modules/utimensat (Depends-on): Likewise.
13778         * modules/vasprintf (Depends-on): Likewise.
13779         * modules/vdprintf (Depends-on): Likewise.
13780         * modules/vdprintf-posix (Depends-on): Likewise.
13781         * modules/vfprintf-posix (Depends-on): Likewise.
13782         * modules/vprintf-posix (Depends-on): Likewise.
13783         * modules/vsnprintf (Depends-on): Likewise.
13784         * modules/vsnprintf-posix (Depends-on): Likewise.
13785         * modules/vsprintf-posix (Depends-on): Likewise.
13786         * modules/wcrtomb (Depends-on): Likewise.
13787         * modules/wcscasecmp (Depends-on): Likewise.
13788         * modules/wcscspn (Depends-on): Likewise.
13789         * modules/wcsdup (Depends-on): Likewise.
13790         * modules/wcsncasecmp (Depends-on): Likewise.
13791         * modules/wcsnrtombs (Depends-on): Likewise.
13792         * modules/wcspbrk (Depends-on): Likewise.
13793         * modules/wcsrtombs (Depends-on): Likewise.
13794         * modules/wcsspn (Depends-on): Likewise.
13795         * modules/wcsstr (Depends-on): Likewise.
13796         * modules/wcstok (Depends-on): Likewise.
13797         * modules/wcswidth (Depends-on): Likewise.
13798         * modules/wctob (Depends-on): Likewise.
13799         * modules/wctomb (Depends-on): Likewise.
13800         * modules/wctype (Depends-on): Likewise.
13801         * modules/wcwidth (Depends-on): Likewise.
13802         * modules/write (Depends-on): Likewise.
13803
13804 2011-05-03  Bruno Haible  <bruno@clisp.org>
13805
13806         Support for conditional dependencies.
13807         * doc/gnulib.texi (Module description): Document the syntax of
13808         conditional dependencies.
13809         * gnulib-tool: New option --conditional-dependencies.
13810         (func_usage): Document it.
13811         (cond_dependencies): New variable.
13812         (func_get_automake_snippet_conditional,
13813         func_get_automake_snippet_unconditional): New functions, extracted from
13814         func_get_automake_snippet.
13815         (func_get_automake_snippet): Use them.
13816         (sed_first_32_chars): New variable.
13817         (func_module_shellfunc_name): New function.
13818         (func_module_shellvar_name): New function.
13819         (func_module_conditional_name): New function.
13820         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
13821         func_cond_module_condition): New functions.
13822         (func_modules_transitive_closure): Add support for conditional
13823         dependencies.
13824         (func_emit_lib_Makefile_am): For a conditional module, enclose the
13825         conditional automake snippet in an automake conditional.
13826         (func_emit_autoconf_snippets): Emit shell functions that contain the
13827         code for conditional modules.
13828         (func_import, func_create_testdir): Update specification.
13829
13830 2011-05-03  Eric Blake  <eblake@redhat.com>
13831
13832         test-getaddrinfo: report error information
13833         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
13834
13835 2011-05-03  Jim Meyering  <meyering@redhat.com>
13836
13837         bootstrap: avoid build failure when $GZIP is set
13838         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
13839         program name.  If defined at all, it is supposed to list gzip options.
13840         Reported by Alan Curry in http://debbugs.gnu.org/8609
13841
13842 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
13843
13844         readme-release: new module with release instructions
13845         * modules/readme-release: New module.
13846         * top/README-release: New file, from coreutils, grep, diffutils.
13847         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13848
13849 2011-05-02  Eric Blake  <eblake@redhat.com>
13850
13851         fflush: also replace fclose when fixing fflush
13852         * modules/fflush (Depends-on): Add fclose.
13853         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
13854         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
13855         memstreams with no backing fd.
13856         * doc/posix-functions/fclose.texi (fclose): Document the use of
13857         fflush module to fix the bug.
13858         * tests/test-fclose.c (main): Relax test when fclose is used in
13859         isolation.
13860
13861         fclose: add some tests
13862         * modules/fclose-tests: New test module.
13863         * tests/test-fclose.c: New file.
13864         * doc/posix-functions/fclose.texi (fclose): Document the bug.
13865
13866         fclose: reduced dependencies
13867         * modules/fclose (Depends-on): Switch from fflush/fseeko to
13868         simpler lseek.
13869         * lib/fclose.c (rpl_fclose): Likewise.
13870         Reported by Simon Josefsson.
13871
13872         exit: drop remaining clients
13873         * modules/argmatch (Depends-on): Replace exit with stdlib.
13874         * modules/copy-file (Depends-on): Likewise.
13875         * modules/execute (Depends-on): Likewise.
13876         * modules/exitfail (Depends-on): Likewise.
13877         * modules/obstack (Depends-on): Likewise.
13878         * modules/pagealign_alloc (Depends-on): Likewise.
13879         * modules/pipe-filter-gi (Depends-on): Likewise.
13880         * modules/pipe-filter-ii (Depends-on): Likewise.
13881         * modules/savewd (Depends-on): Likewise.
13882         * modules/spawn-pipe (Depends-on): Likewise.
13883         * modules/wait-process (Depends-on): Likewise.
13884         * modules/xsetenv (Depends-on): Likewise.
13885         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
13886         * modules/git-merge-changelog (Depends-on): Likewise.
13887         * modules/long-options (Depends-on): Likewise.
13888         * modules/pt_chown (Depends-on): Likewise.
13889         * modules/sysexits (Depends-on): Likewise.
13890
13891         freading: relax license from LGPLv3+ to LGPLv2+
13892         * modules/freading (License): Relax LGPL version.
13893
13894 2011-05-02  Bruno Haible  <bruno@clisp.org>
13895
13896         fchdir: Remove unused dependencies.
13897         * modules/fchdir (Depends-on): Remove include_next.
13898
13899 2011-05-02  Bruno Haible  <bruno@clisp.org>
13900
13901         gnulib-tool: Refactor.
13902         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
13903         from func_emit_autoconf_snippets.
13904         (func_emit_autoconf_snippets): Use it.
13905
13906 2011-05-02  Simon Josefsson  <simon@josefsson.org>
13907
13908         * NEWS: Document removal of 'exit'.
13909         * modules/exit: Remove file.
13910
13911 2011-05-01  Bruno Haible  <bruno@clisp.org>
13912
13913         Update DEPENDENCIES.
13914         * DEPENDENCIES (gettext): Recommend the newest release.
13915         Reported by Simon Josefsson.
13916
13917 2011-05-01  Bruno Haible  <bruno@clisp.org>
13918
13919         gnulib-tool: Reduce code duplication.
13920         * gnulib-tool (func_emit_autoconf_snippets): New function.
13921         (func_import, func_create_testdir): Use it.
13922
13923 2011-04-30  Eric Blake  <eblake@redhat.com>
13924
13925         fclose: don't fail on non-seekable input stream
13926         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
13927         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
13928         since fflush is allowed to fail in that case.
13929
13930 2011-04-30  Bruno Haible  <bruno@clisp.org>
13931
13932         dup3: cleanup
13933         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
13934
13935 2011-04-30  Bruno Haible  <bruno@clisp.org>
13936
13937         netdb: Make it work in C++ mode.
13938         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
13939         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
13940         module.
13941         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
13942         gl_MODULE_INDICATOR_FOR_TESTS.
13943         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
13944         * modules/netdb-c++-tests: New file.
13945         * tests/test-netdb-c++.cc: New file.
13946
13947 2011-04-30  Bruno Haible  <bruno@clisp.org>
13948
13949         New modules 'vfscanf', 'vscanf'.
13950         * modules/vfscanf: New file.
13951         * modules/vscanf: New file.
13952         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
13953         here.
13954         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
13955         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
13956
13957 2011-04-30  Bruno Haible  <bruno@clisp.org>
13958
13959         passfd: Add comments.
13960         * lib/passfd.c: Add comments about platforms.
13961
13962 2011-04-30  Bruno Haible  <bruno@clisp.org>
13963
13964         sys_uio: Make <sys/uio.h> self-contained.
13965         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
13966         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
13967
13968 2011-04-30  Bruno Haible  <bruno@clisp.org>
13969
13970         sys_socket: Ensure 'struct iovec' definition.
13971         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
13972         <sys/socket.h>.
13973         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
13974
13975 2011-04-30  Bruno Haible  <bruno@clisp.org>
13976
13977         sys_uio: Protect definition of 'struct iovec'.
13978         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
13979         it as a C struct.
13980
13981 2011-04-30  Bruno Haible  <bruno@clisp.org>
13982
13983         manywarnings: fix indentation
13984         * m4/manywarnings.m4: Indent by 2 spaces consistently.
13985
13986 2011-04-30  Pádraig Brady <P@draigBrady.com>
13987
13988         manywarnings: add -Wno-missing-field-initializers if needed.
13989         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
13990         option if it's needed to allow initialization with { 0, }
13991
13992 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
13993
13994         announce-gen: cosmetic improvement
13995         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
13996
13997 2011-04-29  Jim Meyering  <meyering@redhat.com>
13998
13999         vc-list-files: indent with spaces, not TABs
14000         * build-aux/vc-list-files: Convert leading TABs to spaces,
14001         to match the style of most other files in gnulib.
14002
14003         announce-gen: indent with spaces, not TABs
14004         * build-aux/announce-gen: Convert all TABs to spaces, to match
14005         the style of most other files in gnulib.
14006
14007 2011-04-29  Eric Blake  <eblake@redhat.com>
14008
14009         quotearg: avoid uninitialized variable use
14010         * lib/quotearg.c (quoting_options_from_style): Initialize
14011         remaining fields, and ensure that custom styles are only used via
14012         quoting_options rather than quoting_style.
14013
14014 2011-04-29  Jim Meyering  <meyering@redhat.com>
14015
14016         maint.mk: remove unused VC-tag variable
14017         * top/maint.mk (VC-tag): Remove unused variable.
14018
14019 2011-04-29  Bruno Haible  <bruno@clisp.org>
14020
14021         netdb: fix gai_strerror replacements
14022         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
14023         * modules/netdb: Substitute it.
14024
14025 2011-04-29  Jim Meyering  <meyering@redhat.com>
14026
14027         test-getcwd.c: avoid new set-but-not-used warning
14028         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
14029         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
14030         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
14031         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
14032
14033         test-hash.c: avoid a new shadowing warning
14034         * tests/test-hash.c (main): Don't shadow "dup".
14035
14036 2011-04-28  Eric Blake  <eblake@redhat.com>
14037
14038         getaddrinfo: fix gai_strerror signature
14039         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
14040         and work around mingw with UNICODE defined.
14041         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
14042         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
14043         * modules/netdb (Makefile.am): Substitute it.
14044         * lib/netdb.in.h (gai_strerror): Declare replacement.
14045         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
14046         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
14047         the fix.
14048
14049         getsockopt: avoid compiler warning
14050         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
14051         Reported by Matthias Bolte.
14052
14053         tests: drop unused link dependency
14054         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
14055         * modules/dirent-safer-tests (Makefile.am): Likewise.
14056         * modules/fdopendir-tests (Makefile.am): Likewise.
14057         * modules/mkfifoat-tests (Makefile.am): Likewise.
14058         * modules/openat-safer-tests (Makefile.am): Likewise.
14059         * modules/openat-tests (Makefile.am): Likewise.
14060         * modules/readlinkat-tests (Makefile.am): Likewise.
14061         * modules/symlinkat-tests (Makefile.am): Likewise.
14062         * modules/linkat-tests (Makefile.am): Likewise.
14063         (Depends-on): Switch to filenamecat-lgpl.
14064         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
14065         LIBINTL.
14066         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
14067         * tests/test-linkat.c (main): Don't require xalloc.
14068
14069         hash, mgetgroups: drop xalloc dependency
14070         * lib/hash.c (includes): Adjust includes.
14071         * lib/mgetgroups.c (includes): Likewise.
14072         (xgetgroups): Move...
14073         * lib/xgetgroups.c: ...to new file.
14074         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
14075         * modules/xgetgroups: New file, split from...
14076         * modules/mgetgroups: ...here.
14077         (Depends-on): Add xalloc-oversized.
14078         * modules/hash (Depends-on): Likewise.
14079         * modules/hash-tests (Depends-on): Drop xalloc.
14080         (test_hash_LDADD): Drop unused library.
14081         * tests/test-hash.c (main): Break xalloc dependency.
14082         (includes): Drop unused include.
14083
14084         xalloc-oversized: new module
14085         * modules/xalloc-oversized: New module.
14086         * modules/xalloc (Depends-on): Add it.
14087         * lib/xalloc.h (xalloc_oversized): Move...
14088         * lib/xalloc-oversized.h: ...into new file.
14089
14090         utimecmp: drop dependency on xmalloc
14091         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
14092         due to memory pressure.
14093         * modules/utimecmp (Depends-on): Drop xalloc.
14094
14095 2011-04-27  Eric Blake  <eblake@redhat.com>
14096
14097         getcwd: fix mingw bugs
14098         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
14099         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
14100         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
14101
14102 2011-04-27  Bruno Haible  <bruno@clisp.org>
14103
14104         mkstemps: Ensure declaration on MacOS X 10.5.
14105         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
14106         * doc/glibc-functions/mkstemps.texi: Document header file problem on
14107         MacOS X.
14108
14109 2011-04-27  Bruno Haible  <bruno@clisp.org>
14110
14111         mkstemp: More documentation.
14112         * doc/posix-functions/mkstemp.texi: Document header file problem on
14113         MacOS X.
14114
14115 2011-04-27  Bruno Haible  <bruno@clisp.org>
14116
14117         mkstemp: Tweak configure message when cross-compiling.
14118         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
14119         result as a guess.
14120
14121 2011-04-27  Bruno Haible  <bruno@clisp.org>
14122
14123         clean-temp: Clarify what it does.
14124         * lib/clean-temp.h: Add more comments.
14125         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
14126         module.
14127         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
14128         * doc/glibc-functions/mkstemps.texi: Likewise.
14129         * doc/glibc-functions/mkostemps.texi: Likewise.
14130
14131 2011-04-27  Eric Blake  <eblake@redhat.com>
14132
14133         fchdir: avoid extra chdir and fix test
14134         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
14135         getcwd-lgpl.
14136         * lib/fchdir.c (get_name): Any absolute name will do; it does not
14137         have to be canonical.
14138         (canonicalize_file_name): Drop unused macro.
14139         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
14140
14141         filenamecat-lgpl: fix licence
14142         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
14143         when it was first created.
14144
14145         linkat, renameat: add missing dependency
14146         * modules/linkat (Depends-on): Require getcwd-lgpl.
14147         * modules/renameat (Depends-on): Likewise.
14148
14149         tests: reduce dependencies
14150         * tests/test-linkat.c (main): Use lighter-weight getcwd.
14151         * tests/test-renameat.c (main): Likewise.
14152         * modules/linkat-tests (Depends-on): Relax dependency.
14153         * modules/renameat-tests (Depends-on): Likewise.
14154         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
14155         dependency explicit.
14156
14157         save-cwd: reduce default dependency
14158         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
14159         * lib/save-cwd.c: Update comments.
14160         * NEWS: Document the semantic change.
14161
14162         getcwd: enhance tests
14163         * tests/test-getcwd-lgpl.c: New file, taken from...
14164         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
14165         repeat long path stress tests from m4 probe.
14166         * modules/getcwd-lgpl-tests: New module.
14167         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
14168         * m4/getcwd-abort-bug.m4: Update comment.
14169         * m4/getcwd-path-max.m4: Likewise.
14170
14171         getcwd-lgpl: new module
14172         * modules/getcwd-lgpl: New module.
14173         * lib/getcwd-lgpl.c: New file.
14174         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14175         * MODULES.html.sh (lacking POSIX:2008): Likewise.
14176         * modules/getcwd (configure.ac): Set C witness.
14177         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
14178
14179         getcwd: tweak comments
14180         * m4/getcwd-abort-bug.m4: Fix comments.
14181         * m4/getcwd-path-max.m4: Likewise.
14182         * m4/getcwd.m4: Likewise.
14183
14184 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14185         and Eric Blake  <eblake@redhat.com>
14186
14187         mkstemp: replace if system version uses wrong permissions
14188         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
14189         read/write mode bits set in file created by mkstemp.
14190         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
14191
14192 2011-04-27  Eric Blake  <eblake@redhat.com>
14193
14194         passfd: avoid compiler warning
14195         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
14196         Reported by Laine Stump.
14197
14198 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
14199
14200         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
14201         required by the NetBSD (and perhaps other 4.4BSD derived) join.
14202
14203 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14204         and Eric Blake  <eblake@redhat.com>
14205
14206         mkstemp: mention clean-temp module
14207         * lib/mkstemp.c: Add comment.
14208         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
14209
14210 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14211
14212         inttypes: also provide default values for 32-bit tests
14213         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
14214         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
14215
14216 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14217
14218         strtoumax: remove dependency on strtoimax
14219         This is like the strtoull change of yesterday.
14220         * modules/strtoumax (Files): Add lib/strtoimax.c.
14221         (Depends-on): Remove strtoimax and add verify.
14222
14223         inttypes-incomplete: new module
14224         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
14225         all but the PRI* and SCN* parts of gl_INTTYPES_H.
14226         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
14227         of gl_INTTYPES_H.
14228         (gl_INTTYPES_H): Rewrite in terms of these new macros.
14229         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
14230         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
14231         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
14232         * modules/strtoumax, modules/xstrtol (Depends-on):
14233         Depend on inttypes-incomplete, not inttypes.
14234         * modules/inttypes-incomplete: New module, containing the contents
14235         of the old modules/inttypes module, except that the Files: section
14236         omits m4/inttypes-pri.m4, and the configure.ac section invokes
14237         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
14238         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
14239         (Depends-on): Depend only on inttypes-incomplete.
14240         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
14241
14242         inttypes: omit now-redundant strtoimax and strtoumax work
14243         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
14244         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
14245
14246         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
14247         This supports apps that need pointers to strtoimax and strtoumax,
14248         and ports to HP-UX 11.00 64.bit, which has macros that expand to
14249         nonexistent functions.  See
14250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
14251         et seq.
14252         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
14253         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
14254         a macro.
14255         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14256
14257 2011-04-25  Simon Josefsson  <simon@josefsson.org>
14258
14259         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
14260
14261 2011-04-25  Bruno Haible  <bruno@clisp.org>
14262
14263         strtol, strtoul: Mark modules as obsolete.
14264         * modules/strtol (Status, Notice): New sections.
14265         * modules/strtoul (Status, Notice): New sections.
14266
14267 2011-04-25  Bruno Haible  <bruno@clisp.org>
14268
14269         strtod: Remove check for strtod, unless supporting old platforms.
14270         * modules/strtod-obsolete: New file.
14271         * m4/strtod-obsolete.m4: New file.
14272         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
14273         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
14274         * modules/strtod (Depends-on): Add strtod-obsolete.
14275         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
14276
14277 2011-04-25  Bruno Haible  <bruno@clisp.org>
14278
14279         strcase: Make module obsolete.
14280         * modules/strcase (Status, Notice): New sections.
14281
14282 2011-04-25  Bruno Haible  <bruno@clisp.org>
14283
14284         dup2: Remove check for dup2, unless supporting old obsolete platforms.
14285         * modules/dup2-obsolete: New file.
14286         * m4/dup2-obsolete.m4: New file.
14287         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
14288         gl_FUNC_DUP2_OBSOLETE is not also defined.
14289         * modules/dup2 (Depends-on): Add dup2-obsolete.
14290         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
14291
14292 2011-04-25  Bruno Haible  <bruno@clisp.org>
14293
14294         strnlen: Avoid memchr related link error on old obsolete platforms.
14295         * modules/memchr-obsolete: New file.
14296         * m4/memchr-obsolete.m4: New file.
14297         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
14298         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
14299         * modules/memchr (Depends-on): Add memchr-obsolete.
14300         * modules/strnlen (Depends-on): Likewise.
14301         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
14302
14303 2011-04-25  Jim Meyering  <meyering@redhat.com>
14304
14305         maint.mk: makefile_at_at_check extend and clean up
14306         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
14307         in addition to */Makefile.am.
14308         Exempt legitimate uses of @VAR@ notation, e.g.,
14309         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
14310         Remove obsolete coreutils-specific comment.
14311         Prompted by discussion here:
14312         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
14313
14314 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14315
14316         strtoul: remove dependency on strtol
14317         This is so that 'configure' need not check for strtol merely because
14318         the application needs strtoul.
14319         * modules/strtoul (Files): Add lib/strtol.c.
14320         (Depends-on): Remove strtol.
14321
14322         strtoull: remove dependency on strtoul
14323         This is like the strtoll change.
14324         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
14325         (Depends-on): Remove strtoul.
14326
14327         strtoll: remove dependency on strtol
14328         This is so that 'configure' need not check for strtol merely because
14329         the application needs strtoll.
14330         * modules/strtoll (Files): Add lib/strtol.c.
14331         (Depends-on): Remove strtol.
14332
14333 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14334
14335         inttypes: Move some configure check to module 'imaxdiv'.
14336         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
14337         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
14338         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
14339
14340 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14341
14342         inttypes: Move some configure check to module 'imaxabs'.
14343         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
14344         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
14345         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
14346
14347 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14348
14349         inttypes: Remove configure tests that are not needed since 2009-12-31.
14350         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
14351         gl_cv_header_working_inttypes_h.
14352
14353 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14354
14355         * modules/strnlen (Depends-on): Remove memchr.
14356         The strnlen implementation doesn't need the memchr module's fixes; see
14357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
14358
14359         strtol: remove dependency on wchar
14360         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
14361         * modules/strtol (Depends-on): Remove wchar.
14362
14363 2011-04-21  Eric Blake  <eblake@redhat.com>
14364
14365         passfd: fix test regression on Linux
14366         * modules/passfd-tests (configure.ac): Correct socketpair check.
14367
14368         passfd: speed up configure and drop unused code
14369         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
14370         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
14371         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
14372         Instead of probing at configure for unix_scm_rights_bsd44_way,
14373         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
14374         check to a struct member probe.
14375         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
14376         (sendfd, recvfd): Update preprocessor checks.
14377         * modules/passfd (Files): Reflect rename, and drop unused file.
14378         (Depends-on): Drop unused dependency.
14379
14380         passfd: allow compilation on mingw
14381         * modules/sys_socket (Depends-on): Add sys_uio.
14382         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
14383         iovec and a minimal struct msghdr.
14384         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
14385         * tests/test-sys_socket.c (main): Enhance test.
14386         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
14387         guaranteed to provide what we need.
14388         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
14389         * modules/passfd-tests (Depends-on): Add sys_wait.
14390         * tests/test-passfd.c (main): Skip test on mingw, for now.
14391         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
14392         partial 'struct msghdr' implementation.
14393
14394         sys_uio: new module
14395         * modules/sys_uio: New module.
14396         * modules/sys_uio-tests: Likewise.
14397         * lib/sys_uio.in.h: New file.
14398         * m4/sys_uio_h.m4: Likewise.
14399         * tests/test-sys_uio.c: Likewise.
14400         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
14401         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
14402
14403 2011-04-20  Jim Meyering  <meyering@redhat.com>
14404
14405         useless-if-before-free: avoid false-positive
14406         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
14407         disjunct so that it too requires a terminating ";".  Without that,
14408         this script would identify as useless one statement from gcc that
14409         was not:
14410           if (aligned_ptr)
14411             free (((void **) aligned_ptr) [-1]);
14412
14413 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
14414
14415         doc: update users.txt.
14416         * users.txt: Add barcode.
14417
14418 2011-04-19  Bruno Haible  <bruno@clisp.org>
14419
14420         ioctl: Remove link dependency on native Windows.
14421         * lib/fd-hook.h: Renamed from lib/close-hook.h.
14422         (gl_close_fn, gl_ioctl_fn): New types.
14423         (struct fd_hook): Renamed from struct close_hook. Change type of
14424         private_close_fn field. Add private_ioctl_fn field.
14425         (close_hook_fn): Add parameter for primary close method.
14426         (execute_close_hooks, execute_all_close_hooks): Likewise.
14427         (ioctl_hook_fn): New type.
14428         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
14429         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14430         argument.
14431         (unregister_fd_hook): Renamed from unregister_close_hook.
14432         * lib/fd-hook.c: Renamed from lib/close-hook.c.
14433         Don't include <unistd.h>.
14434         (close): Remove undef.
14435         (anchor): Update.
14436         (execute_close_hooks): Add argument for primary close method.
14437         (execute_all_close_hooks): Likewise.
14438         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
14439         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14440         argument. Allow each argument to be NULL.
14441         (unregister_fd_hook): Renamed from unregister_close_hook.
14442         * lib/close.c (rpl_close): Pass 'close' function pointer to
14443         execute_all_close_hooks.
14444         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
14445         (primary_ioctl): New function.
14446         (ioctl): Don't call ioctlsocket here. Instead, call
14447         execute_all_ioctl_hooks.
14448         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
14449         close method.
14450         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
14451         (fd_sockets_hook): Renamed from close_sockets_hook.
14452         (gl_sockets_startup, gl_sockets_cleanup): Update.
14453         * modules/fd-hook: Renamed from modules/close-hook. Update.
14454         * modules/close (Depends-on): Add fd-hook, remove close-hook.
14455         * modules/sockets (Depends-on): Likewise.
14456         * modules/ioctl (Depends-on): Add fd-hook.
14457         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
14458         GNULIB_SOCKET.
14459
14460 2011-04-19  Bruno Haible  <bruno@clisp.org>
14461
14462         Move the support of O_NONBLOCK in open() to the 'open' module.
14463         * modules/nonblocking (Depends-on): Remove 'open'.
14464         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
14465         gl_cv_have_open_O_NONBLOCK.
14466         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
14467         O_NONBLOCK support.
14468         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
14469
14470 2011-04-17  Bruno Haible  <bruno@clisp.org>
14471
14472         pipe2: Simplify code.
14473         * lib/pipe2.c (pipe2): Reduce code duplication.
14474
14475 2011-04-17  Bruno Haible  <bruno@clisp.org>
14476
14477         nonblocking: Add comment.
14478         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
14479
14480 2011-04-17  Bruno Haible  <bruno@clisp.org>
14481
14482         nonblocking: Add tests for sockets.
14483         * tests/test-nonblocking-socket.sh: New file.
14484         * tests/test-nonblocking-socket-main.c: New file.
14485         * tests/test-nonblocking-socket-child.c: New file.
14486         * tests/test-nonblocking-socket.h: New file.
14487         * tests/socket-server.h: New file.
14488         * tests/socket-client.h: New file.
14489         * modules/nonblocking-socket-tests: New file.
14490         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
14491
14492 2011-04-17  Bruno Haible  <bruno@clisp.org>
14493
14494         nonblocking: Add tests for pipes.
14495         * tests/test-nonblocking-pipe.sh: New file.
14496         * tests/test-nonblocking-pipe-main.c: New file.
14497         * tests/test-nonblocking-pipe-child.c: New file.
14498         * tests/test-nonblocking-pipe.h: New file.
14499         * tests/test-nonblocking-writer.h: New file.
14500         * tests/test-nonblocking-reader.h: New file.
14501         * tests/test-nonblocking-misc.h: New file.
14502         * modules/nonblocking-pipe-tests: New file.
14503         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
14504
14505 2011-04-16  Bruno Haible  <bruno@clisp.org>
14506
14507         gettext: Clarify the needed programmer actions.
14508         * modules/gettext (Notice): New field.
14509         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
14510
14511 2011-04-16  Bruno Haible  <bruno@clisp.org>
14512
14513         strchrnul: Tweak last commit.
14514         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
14515         bug.
14516         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
14517         as in _GL_FUNCDECL_SYS.
14518         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
14519         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
14520
14521 2011-04-15  Eric Blake  <eblake@redhat.com>
14522
14523         strchrnul: work around cygwin bug
14524         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
14525         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
14526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
14527         * modules/string (Makefile.am): Substitute it.
14528         * lib/string.in.h (strchrnul): Use it.
14529
14530 2011-04-15  Bruno Haible  <bruno@clisp.org>
14531
14532         Don't require lib/stdio-write.c when only module 'stdio' is used.
14533         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
14534         invocation.
14535         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
14536
14537 2011-04-14  Bruno Haible  <bruno@clisp.org>
14538
14539         Support non-blocking pipe I/O in read() on native Windows.
14540         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
14541         (read): New declaration.
14542         * lib/read.c: New file.
14543         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
14544         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
14545         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
14546         vscanf): New declarations.
14547         * lib/stdio-read.c: New file.
14548         * m4/read.m4: New file.
14549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
14550         REPLACE_READ.
14551         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
14552         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14553         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
14554         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
14555         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
14556         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14557         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14558         * modules/read: New file.
14559         * modules/nonblocking (Files): Add lib/stdio-read.c.
14560         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
14561         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
14562         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14563         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14564         * modules/pread (Depends-on): Add read.
14565         * modules/safe-read (Depends-on): Likewise.
14566         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
14567         gets, scanf, vfscanf, vscanf): Verify signatures.
14568         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
14569         problem with non-blocking pipes.
14570         * doc/posix-functions/fgetc.texi: Likewise.
14571         * doc/posix-functions/fgets.texi: Likewise.
14572         * doc/posix-functions/fread.texi: Likewise.
14573         * doc/posix-functions/fscanf.texi: Likewise.
14574         * doc/posix-functions/getc.texi: Likewise.
14575         * doc/posix-functions/getchar.texi: Likewise.
14576         * doc/posix-functions/gets.texi: Likewise.
14577         * doc/posix-functions/scanf.texi: Likewise.
14578         * doc/posix-functions/vfscanf.texi: Likewise.
14579         * doc/posix-functions/vscanf.texi: Likewise.
14580
14581 2011-04-14  Bruno Haible  <bruno@clisp.org>
14582
14583         Support non-blocking pipe I/O in write() on native Windows.
14584         * lib/write.c (rpl_write): Split a write request that failed merely
14585         because the byte count was larger than the pipe buffer's size.
14586         * doc/posix-functions/write.texi: Mention the problem with large byte
14587         counts.
14588
14589 2011-04-14  Bruno Haible  <bruno@clisp.org>
14590
14591         wchar: Ensure that wchar_t gets defined on uClibc.
14592         * lib/wchar.in.h: On uClibc, include <stddef.h>.
14593         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
14594
14595 2011-04-13  Bruno Haible  <bruno@clisp.org>
14596
14597         safe-write, full-read: Avoid unnecessary compilation units.
14598         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
14599         (Depends-on): Remove safe-read. Add ssize_t.
14600         * modules/full-read (Files): Add lib/full-write.c.
14601         (Depends-on): Add full-write.
14602
14603 2011-04-13  Bruno Haible  <bruno@clisp.org>
14604
14605         Support non-blocking pipe I/O and SIGPIPE in pwrite().
14606         * modules/pwrite (Depends-on): Add 'write'.
14607
14608 2011-04-13  Bruno Haible  <bruno@clisp.org>
14609
14610         Support non-blocking pipe I/O in write() on native Windows.
14611         * lib/unistd.in.h (write): Enable replacement also if
14612         GNULIB_UNISTD_H_NONBLOCKING is 1.
14613         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
14614         (rpl_write): When failing to write on a non-blocking pipe, change
14615         errno from ENOSPC to EAGAIN.
14616         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
14617         putchar, puts, vfprintf, vprintf): Enable replacement also if
14618         GNULIB_STDIO_H_NONBLOCKING is 1.
14619         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
14620         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
14621         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
14622         CALL_WITH_SIGPIPE_EMULATION.
14623         (CALL_WITH_SIGPIPE_EMULATION): Use them.
14624         * m4/nonblocking.m4: New file.
14625         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
14626         for non-blocking I/O support.
14627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14628         GNULIB_UNISTD_H_NONBLOCKING.
14629         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
14630         required for non-blocking I/O support.
14631         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
14632         * modules/nonblocking (Files): Add m4/nonblocking.m4,
14633         lib/stdio-write.c, m4/asm-underscore.m4.
14634         (Depends-on): Add stdio, unistd.
14635         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
14636         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
14637         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
14638         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
14639         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
14640         problem with non-blocking pipes.
14641         * doc/posix-functions/fputc.texi: Likewise.
14642         * doc/posix-functions/fputs.texi: Likewise.
14643         * doc/posix-functions/fwrite.texi: Likewise.
14644         * doc/posix-functions/printf.texi: Likewise.
14645         * doc/posix-functions/putc.texi: Likewise.
14646         * doc/posix-functions/putchar.texi: Likewise.
14647         * doc/posix-functions/puts.texi: Likewise.
14648         * doc/posix-functions/vfprintf.texi: Likewise.
14649         * doc/posix-functions/vprintf.texi: Likewise.
14650         * doc/posix-functions/write.texi: Likewise.
14651
14652 2011-04-10  Jim Meyering  <meyering@redhat.com>
14653
14654         maint.mk: prohibit doubled words
14655         Detect them also when they're separated by a newline.
14656         There are 3 ways to customize it:
14657           - disable the test on a per file basis, as usual with rules using
14658             $(VC_LIST_EXCEPT)
14659           - replace the default doubled-word-selecting regexp (affects all files)
14660           - ignore a particular file-vs-doubled-word match
14661         I nearly used that last one to ignore the "is is" match in
14662         coreutils' NEWS file, since the text was "ls -is is ..."
14663         To do that, I would have added this line to cfg.mk:
14664           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
14665         but it would have ignored any "is is" match in NEWS.
14666         Low probability, but still...
14667         Instead, I changed the text, slightly:
14668           -  ls -is is now consistent with ls -lis in ignoring values returned
14669           +  "ls -is" is now consistent with ls -lis in ignoring values returned
14670         * top/maint.mk (prohibit_double_word_RE_): Provide default.
14671         (prohibit_doubled_word_): Define.
14672         (sc_prohibit_doubled_word): New rule.
14673         (sc_prohibit_the_the): Remove.  Subsumed by the above.
14674
14675 2011-04-10  Jim Meyering  <meyering@redhat.com>
14676
14677         maint: fix doubled-word typo in comment
14678         * m4/gethostname.m4: s/is is/it is/
14679         * m4/getdomainname.m4: Likewise.
14680
14681 2011-04-10  Jim Meyering  <meyering@redhat.com>
14682
14683         maint: remove doubled word: s/it it/it/
14684         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
14685
14686 2011-04-10  Jim Meyering  <meyering@redhat.com>
14687
14688         maint.mk: remove useless semicolon and backslash
14689         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
14690         semicolon and backslash.
14691
14692 2011-04-10  Bruno Haible  <bruno@clisp.org>
14693
14694         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
14695         * modules/stdint-tests (Depends-on): Add wchar.
14696
14697 2011-04-10  Jim Meyering  <meyering@redhat.com>
14698
14699         maint: remove doubled words in comments, e.g., s/a a/a/
14700         * lib/strptime.c (day_of_the_week): s/the the/the/
14701         * tests/test-chown.h (test_chown): s/a a/a/
14702
14703         test-chown.h: correct a cast
14704         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
14705         when the destination is a stat.st_gid.
14706
14707 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
14708
14709         getaddrinfo: Fix test for sa_len member.
14710         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
14711         include <sys/types.h> before <sys/socket.h>.
14712
14713 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14714
14715         maint: change "can not" to "cannot"
14716         * doc/posix-functions/iconv.texi (iconv): This one crossed line
14717         boundaries.
14718
14719 2011-04-09  Jim Meyering  <meyering@redhat.com>
14720
14721         maint: change "a a" to "a"
14722         * tests/test-lchown.h (test_lchown): s/a a/a/
14723
14724         maint.mk: prohibit \<the the\>
14725         * top/maint.mk (sc_prohibit_the_the): New rule.
14726
14727         maint: fix "the the" in comment
14728         * lib/count-one-bits.h: s/the the/the/
14729
14730         maint: change "can not" to "cannot"
14731         But do not change the occurrences in maintain.texi or in
14732         build-aux/po/Makefile.in.in, which I presume comes from gettext.
14733         * doc/gnulib-tool.texi: s/can not/cannot/
14734         * doc/posix-functions/accept.texi (accept): Likewise.
14735         * doc/posix-functions/socket.texi (socket): Likewise.
14736         * lib/mbrtowc.c: Likewise.
14737
14738         maint.mk: prohibit use of "can not"
14739         * top/maint.mk (sc_prohibit_can_not): New rule.
14740         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
14741
14742 2011-04-09  Bruno Haible  <bruno@clisp.org>
14743
14744         careadlinkat: Guard against misuse of careadlinkatcwd.
14745         * lib/careadlinkat.c: Include <stdlib.h>.
14746         (careadlinkatcwd): Check that the fd argument is as expected.
14747
14748 2011-04-09  Bruno Haible  <bruno@clisp.org>
14749
14750         careadlinkat: Use common coding style.
14751         * lib/careadlinkat.c: Move gnulib includes after system includes.
14752
14753 2011-04-09  Bruno Haible  <bruno@clisp.org>
14754
14755         careadlinkat: Clarify specification.
14756         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
14757         (careadlinkatcwd): Add comment.
14758         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
14759
14760 2011-04-09  Bruno Haible  <bruno@clisp.org>
14761
14762         areadlinkat: Avoid link error on many platforms.
14763         * modules/areadlinkat (Depends-on): Add areadlink.
14764
14765 2011-04-09  Bruno Haible  <bruno@clisp.org>
14766
14767         allocator, careadlinkat: Fix double-inclusion guard.
14768         * lib/allocator.h: Fix double-inclusion guard.
14769         * lib/careadlinkat.h: Likewise.
14770
14771 2011-04-09  Bruno Haible  <bruno@clisp.org>
14772
14773         relocatable-prog-wrapper: Update after module 'areadlink' changed.
14774         * lib/relocwrapper.c: Update dependencies hierarchy.
14775         * build-aux/install-reloc: Update list of files to be compiled.
14776         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
14777         lib/allocator.[hc].
14778
14779 2011-04-08  Eric Blake  <eblake@redhat.com>
14780
14781         strftime: silence gnulib-tool warning
14782         * modules/strftime-tests (Depends-on): Drop automatic dependency.
14783
14784 2011-04-08  Bruno Haible  <bruno@clisp.org>
14785
14786         verify: Fix syntax error with GCC 4.6 in C++ mode.
14787         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
14788         (HAVE_STATIC_ASSERT): New macro.
14789         (verify_true, verify): Use 'static_assert' if it is supported and
14790         '_Static_assert' is not supported.
14791
14792 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
14793
14794         allocator: New module.
14795         * modules/allocator, lib/allocator.c: New files.
14796         * lib/allocator.h (stdlib_allocator): New decl.
14797         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
14798         Remove.  Do not include <stdlib.h>.
14799         (careadlinkat): Use stdlib_allocator instead of rolling our own.
14800         * modules/careadlinkat (Files): Remove lib/allocator.h.
14801         (Depends-on): Add allocator.
14802
14803         stdlib: let modules use system malloc, realloc
14804         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
14805         if !_GL_USE_STDLIB_ALLOC.
14806         (malloc, realloc): Limit this change to a smaller scope.
14807
14808         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
14809         (malloc, realloc): Don't #undef; no longer needed.
14810         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14811         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14812         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14813         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14814         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14815         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14816         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14817         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14818
14819         careadlinkat: rename members to avoid problem
14820         * lib/allocator.h (struct allocator): Rename members from
14821         malloc/realloc to allocate/reallocate, to avoid problems if malloc
14822         and realloc are #define'd.  Reported by Eric Blake in
14823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
14824         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
14825
14826 2011-04-08  Eric Blake  <eblake@redhat.com>
14827
14828         nonblocking: reduce dependency
14829         * tests/test-nonblocking.c: Only test sockets when in use.
14830         * modules/nonblocking-tests (Depends-on): Drop socket.
14831         (Makefile.am): Link even if sockets are not present.
14832         * modules/pipe2-tests (Makefile.am): Likewise.
14833         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
14834
14835         pipe2: fix O_NONBLOCK support on mingw
14836         * modules/pipe2 (Depends-on): Add nonblocking.
14837         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
14838         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
14839         * tests/test-nonblocking.c (main): Likewise.
14840         * modules/pipe2-tests (Makefile.am): Avoid link failure.
14841
14842         fcntl-h: fix O_ACCMODE on cygwin
14843         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
14844         * lib/fcntl.in.h (O_ACCMODE): Fix it.
14845
14846         pipe-filter: drop O_NONBLOCK workarounds
14847         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
14848         * modules/pipe-filter-ii (Depends-on): Likewise.
14849         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
14850
14851         nonblocking: provide O_NONBLOCK for mingw
14852         * modules/nonblocking (Depends-on): Add open.
14853         (configure.ac): Set new witness macro.
14854         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
14855         * modules/fcntl-h (Makefile.am): Substitute it.
14856         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
14857         nonblocking module is in use.
14858         * lib/nonblocking.c: Adjust portability test.
14859         * lib/open.c (open): Don't let native open see gnulib flag.
14860         * tests/test-fcntl-h.c (main): Enhance test.
14861         * tests/test-open.h (test_open): Likewise.
14862         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
14863
14864         careadlinkat: fix compilation error on mingw
14865         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
14866         within struct allocator.
14867
14868 2011-04-06  Eric Blake  <eblake@redhat.com>
14869
14870         binary-io: relicense under LGPLv2+
14871         * modules/binary-io (License): Relax to LGPLv2+.
14872         Requested for libvirt, and required by pipe2.
14873
14874 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
14875
14876         verify: use _Static_assert if available
14877         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
14878         (verify_true, verify): Use it if available.  This generates better
14879         diagnostics with GCC 4.6.0 and later.
14880
14881 2011-04-05  Bruno Haible  <bruno@clisp.org>
14882
14883         Remove leftover generated .h files after config.status changed.
14884
14885         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
14886         GL_GENERATE_ALLOCA_H.
14887         * modules/alloca-opt (Makefile.am): Remove alloca.h if
14888         GL_GENERATE_ALLOCA_H evaluates to false.
14889
14890         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
14891         GL_GENERATE_ARGZ_H.
14892         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
14893         evaluates to false.
14894
14895         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
14896         GL_GENERATE_BYTESWAP_H.
14897         * modules/byteswap (Makefile.am): Remove byteswap.h if
14898         GL_GENERATE_BYTESWAP_H evaluates to false.
14899
14900         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
14901         GL_GENERATE_ERRNO_H.
14902         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
14903         evaluates to false.
14904
14905         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
14906         GL_GENERATE_FLOAT_H.
14907         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
14908         evaluates to false.
14909
14910         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
14911         GL_GENERATE_FNMATCH_H.
14912         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
14913         GL_GENERATE_FNMATCH_H evaluates to false.
14914
14915         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
14916         GL_GENERATE_GLOB_H.
14917         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
14918         evaluates to false.
14919
14920         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
14921         automake conditional GL_GENERATE_ICONV_H.
14922         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
14923         evaluates to false.
14924
14925         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
14926         GL_GENERATE_NETINET_IN_H.
14927         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
14928         GL_GENERATE_NETINET_IN_H evaluates to false.
14929
14930         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
14931         conditional GL_GENERATE_PTHREAD_H.
14932         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
14933         * modules/pthread (Makefile.am): Remove pthread.h if
14934         GL_GENERATE_PTHREAD_H evaluates to false.
14935
14936         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
14937         GL_GENERATE_SCHED_H.
14938         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
14939         evaluates to false.
14940
14941         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
14942         conditional GL_GENERATE_SELINUX_CONTEXT_H.
14943         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
14944         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
14945
14946         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
14947         GL_GENERATE_STDARG_H.
14948         * modules/stdarg (Makefile.am): Remove stdarg.h if
14949         GL_GENERATE_STDARG_H evaluates to false.
14950
14951         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
14952         GL_GENERATE_STDBOOL_H.
14953         * modules/stdbool (Makefile.am): Remove stdbool.h if
14954         GL_GENERATE_STDBOOL_H evaluates to false.
14955
14956         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
14957         conditional GL_GENERATE_STDDEF_H.
14958         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
14959         * modules/stddef (Makefile.am): Remove stddef.h if
14960         GL_GENERATE_STDDEF_H evaluates to false.
14961
14962         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
14963         GL_GENERATE_STDINT_H.
14964         * modules/stdint (Makefile.am): Remove stdint.h if
14965         GL_GENERATE_STDINT_H evaluates to false.
14966
14967         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
14968         GL_GENERATE_SYSEXITS_H.
14969         * modules/sysexits (Makefile.am): Remove sysexits.h if
14970         GL_GENERATE_SYSEXITS_H evaluates to false.
14971
14972         Reported by Karl Berry and Ralf Wildenhues.
14973
14974 2011-04-05  Bruno Haible  <bruno@clisp.org>
14975
14976         Ensure to rebuild generated .h files when config.status has changed.
14977         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
14978         config.status.
14979         * modules/ctype (Makefile.am): Likewise.
14980         * modules/dirent (Makefile.am): Likewise.
14981         * modules/errno (Makefile.am): Likewise.
14982         * modules/fcntl-h (Makefile.am): Likewise.
14983         * modules/float (Makefile.am): Likewise.
14984         * modules/getopt-posix (Makefile.am): Likewise.
14985         * modules/glob (Makefile.am): Likewise.
14986         * modules/iconv-h (Makefile.am): Likewise.
14987         * modules/inttypes (Makefile.am): Likewise.
14988         * modules/langinfo (Makefile.am): Likewise.
14989         * modules/locale (Makefile.am): Likewise.
14990         * modules/math (Makefile.am): Likewise.
14991         * modules/netdb (Makefile.am): Likewise.
14992         * modules/netinet_in (Makefile.am): Likewise.
14993         * modules/poll-h (Makefile.am): Likewise.
14994         * modules/pthread (Makefile.am): Likewise.
14995         * modules/pty (Makefile.am): Likewise.
14996         * modules/sched (Makefile.am): Likewise.
14997         * modules/search (Makefile.am): Likewise.
14998         * modules/selinux-h (Makefile.am): Likewise.
14999         * modules/signal (Makefile.am): Likewise.
15000         * modules/spawn (Makefile.am): Likewise.
15001         * modules/stdarg (Makefile.am): Likewise.
15002         * modules/stdbool (Makefile.am): Likewise.
15003         * modules/stddef (Makefile.am): Likewise.
15004         * modules/stdint (Makefile.am): Likewise.
15005         * modules/stdio (Makefile.am): Likewise.
15006         * modules/stdlib (Makefile.am): Likewise.
15007         * modules/string (Makefile.am): Likewise.
15008         * modules/strings (Makefile.am): Likewise.
15009         * modules/sys_file (Makefile.am): Likewise.
15010         * modules/sys_ioctl (Makefile.am): Likewise.
15011         * modules/sys_select (Makefile.am): Likewise.
15012         * modules/sys_socket (Makefile.am): Likewise.
15013         * modules/sys_stat (Makefile.am): Likewise.
15014         * modules/sys_time (Makefile.am): Likewise.
15015         * modules/sys_times (Makefile.am): Likewise.
15016         * modules/sys_utsname (Makefile.am): Likewise.
15017         * modules/sys_wait (Makefile.am): Likewise.
15018         * modules/sysexits (Makefile.am): Likewise.
15019         * modules/termios (Makefile.am): Likewise.
15020         * modules/time (Makefile.am): Likewise.
15021         * modules/unistd (Makefile.am): Likewise.
15022         * modules/wchar (Makefile.am): Likewise.
15023         * modules/wctype-h (Makefile.am): Likewise.
15024         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
15025
15026 2011-04-05  Bruno Haible  <bruno@clisp.org>
15027
15028         pipe2: Relicense under LGPLv2+.
15029         * modules/pipe2 (License): Change to LGPLv2+.
15030         Requested by Eric Blake, for libvirt.
15031
15032 2011-04-05  Bruce Korb  <bkorb@gnu.org>
15033
15034         bootstrap: compute gnulib_extra_files after updating build_aux
15035         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
15036         change build_aux or also supply gnulib_extra_files.  Handle correctly.
15037
15038 2011-04-05  Eric Blake  <eblake@redhat.com>
15039
15040         bootstrap: preserve git whitelist item sorting
15041         * build-aux/bootstrap (sort_patterns): New function.
15042         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
15043
15044 2011-04-05  Simon Josefsson  <simon@josefsson.org>
15045
15046         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
15047         sc_space_tab check.
15048
15049 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15050
15051         areadlink, areadlinkat: rewrite in terms of careadlinkat
15052         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
15053         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
15054         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
15055         (malloc, realloc): Remove #undefs.
15056         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
15057         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
15058         readlink, ssize_t, stdint, unistd.
15059         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
15060         areadlink, stdint.
15061
15062         careadlinkat: new module
15063         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
15064         * modules/careadlinkat: New files, written by me with
15065         a review and feedback from Ben Pfaff in
15066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
15067
15068 2011-04-01  Bruno Haible  <bruno@clisp.org>
15069
15070         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
15071         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
15072         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
15073         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
15074         Reported by Bruce Korb <bruce.korb@gmail.com>.
15075
15076 2011-04-01  Bruno Haible  <bruno@clisp.org>
15077
15078         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
15079         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
15080         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
15081         * modules/wcpcpy (Depends-on): Add extensions.
15082         * modules/wcpncpy (Depends-on): Likewise.
15083         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
15084         systems.
15085         * doc/posix-functions/wcpncpy.texi: Likewise.
15086         * doc/posix-functions/wcwidth.texi: Likewise.
15087
15088 2011-03-31  Eric Blake  <eblake@redhat.com>
15089
15090         nonblocking: fix mingw test failures
15091         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
15092         non-blocking flag on regular file.
15093         (get_nonblocking_flag): Set errno on invalid fd.
15094         * tests/test-nonblocking.c (main): Avoid test failure on
15095         directories if fchdir is not active.
15096         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
15097
15098 2011-03-31  Bruno Haible  <bruno@clisp.org>
15099
15100         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
15101         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
15102         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
15103         Reported by Simon Josefsson <simon@josefsson.org>.
15104
15105 2011-03-31  Bruno Haible  <bruno@clisp.org>
15106         and Eric Blake  <eblake@redhat.com>
15107
15108         nonblocking: new module
15109         * modules/nonblocking: New module.
15110         * modules/nonblocking-tests: Likewise.
15111         * lib/nonblocking.h: New file.
15112         * lib/nonblocking.c: Likewise.
15113         * tests/test-nonblocking.c: New test.
15114         * lib/ioctl.c (ioctl) [mingw]: Update comment.
15115
15116 2011-03-30  Bruno Haible  <bruno@clisp.org>
15117
15118         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
15119         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
15120         instead of 'printf' format for GCC >= 4.4.
15121         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
15122         (fprintf, printf, vfprintf, vprintf): Declare with
15123         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
15124         the system's vfprintf() function.
15125         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
15126
15127 2011-03-30  Eric Blake  <eblake@redhat.com>
15128
15129         passfd: fix scoping bug
15130         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
15131         before sendmsg/recvmsg.
15132
15133         passfd: standardize coding conventions
15134         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
15135         can be learned at compile time.
15136         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
15137         ifdefs.
15138         (sendfd, recvfd): Follow gnulib code conventions.
15139
15140         passfd: fix incorrect sendmsg arguments
15141         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
15142         incorrect msg_controllen value.
15143         * modules/passfd-tests (Depends-on): Check for alarm.
15144         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
15145         Reported by Bastien ROUCARIES.
15146
15147 2011-03-30  Bruno Haible  <bruno@clisp.org>
15148
15149         c-strcasestr: Relicense under LGPLv2+.
15150         * modules/c-strcasestr (License): Change to LGPLv2+.
15151         Requested by Eric Blake, for libvirt.
15152
15153 2011-03-30  Simon Josefsson  <simon@josefsson.org>
15154
15155         * users.txt: Add libidn2.  Fix libtasn1 link.
15156
15157 2011-03-30  Jim Meyering  <meyering@redhat.com>
15158
15159         tests: readlink* ("",... fails with EINVAL on newer kernels
15160         readlink and readlinkat have typically failed with ENOENT for
15161         the invalid, empty file name,  "".  However, with the advent
15162         of linux-2.6.39, they fail with EINVAL.
15163         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
15164         when operating on the empty file name.
15165         * tests/test-readlink.h (test_readlink): Likewise.
15166
15167 2011-03-29  Bruno Haible  <bruno@clisp.org>
15168
15169         Relicense some modules under LGPLv2+, for libidn2.
15170         * modules/array-mergesort (License): Change to LGPLv2+.
15171         * modules/c-strcaseeq (License): Likewise.
15172         * modules/striconveh (License): Likewise.
15173         * modules/striconveha (License): Likewise.
15174         * modules/uniconv/base (License): Likewise.
15175         * modules/uniconv/u8-conv-from-enc (License): Likewise.
15176         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
15177         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
15178         * modules/unictype/base (License): Likewise.
15179         * modules/unictype/bidiclass-of (License): Likewise.
15180         * modules/unictype/category-M (License): Likewise.
15181         * modules/unictype/category-none (License): Likewise.
15182         * modules/unictype/category-of (License): Likewise.
15183         * modules/unictype/category-test (License): Likewise.
15184         * modules/unictype/category-test-withtable (License): Likewise.
15185         * modules/unictype/combining-class (License): Likewise.
15186         * modules/unictype/joiningtype-of (License): Likewise.
15187         * modules/unictype/scripts (License): Likewise.
15188         * modules/uninorm/base (License): Likewise.
15189         * modules/uninorm/canonical-decomposition (License): Likewise.
15190         * modules/uninorm/composition (License): Likewise.
15191         * modules/uninorm/decompose-internal (License): Likewise.
15192         * modules/uninorm/decomposition-table (License): Likewise.
15193         * modules/uninorm/nfc (License): Likewise.
15194         * modules/uninorm/nfd (License): Likewise.
15195         * modules/uninorm/u32-normalize (License): Likewise.
15196         * modules/unistr/base (License): Likewise.
15197         * modules/unistr/u32-cpy (License): Likewise.
15198         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
15199         * modules/unistr/u32-to-u8 (License): Likewise.
15200         * modules/unistr/u32-uctomb (License): Likewise.
15201         * modules/unistr/u8-check (License): Likewise.
15202         * modules/unistr/u8-mblen (License): Likewise.
15203         * modules/unistr/u8-mbtouc (License): Likewise.
15204         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
15205         * modules/unistr/u8-mbtoucr (License): Likewise.
15206         * modules/unistr/u8-prev (License): Likewise.
15207         * modules/unistr/u8-strlen (License): Likewise.
15208         * modules/unistr/u8-to-u32 (License): Likewise.
15209         * modules/unistr/u8-uctomb (License): Likewise.
15210         * modules/unitypes (License): Likewise.
15211         Requested by Simon Josefsson.
15212
15213 2011-03-29  Simon Josefsson  <simon@josefsson.org>
15214
15215         lib-symbol-visibility: Add a notice.
15216         * modules/lib-symbol-visibility (Notice): New field.
15217
15218 2011-03-29  Bruno Haible  <bruno@clisp.org>
15219
15220         getaddrinfo: Doc fix.
15221         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
15222         section "fixed in Gnulib".
15223
15224 2011-03-28  Simon Josefsson  <simon@josefsson.org>
15225
15226         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
15227         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
15228
15229 2011-03-26  Bruno Haible  <bruno@clisp.org>
15230
15231         unictype/property-byname: Reduce the number of load-time relocations.
15232         * lib/unictype/pr_byname.c: Include <stdlib.h>.
15233         (UC_PROPERTY_INDEX_*): New enumeration values.
15234         (uc_property_byname): Convert an index from the lookup table to an
15235         uc_property_t.
15236         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
15237         values.
15238
15239 2011-03-26  Bruno Haible  <bruno@clisp.org>
15240
15241         unictype/property-byname: Allow omitted word separators and aliases.
15242         * lib/unictype/pr_byname.gperf: Add property names without word
15243         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
15244         for 'space'.
15245
15246 2011-03-26  Bruno Haible  <bruno@clisp.org>
15247
15248         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
15249         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
15250         also hyphens to space.
15251         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
15252         without spaces.
15253         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
15254
15255 2011-03-26  Bruno Haible  <bruno@clisp.org>
15256
15257         unictype/joiningtype-byname: Recognize long names as well.
15258         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
15259         a long name.
15260         * lib/unictype/joiningtype_byname.c: Include <string.h>,
15261         unictype/joiningtype_byname.h.
15262         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
15263         * lib/unictype/joiningtype_byname.gperf: New file.
15264         * modules/unictype/joiningtype-byname (Files): Add
15265         lib/unictype/joiningtype_byname.gperf.
15266         (Depends-on): Add gperf.
15267         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
15268         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
15269         long names.
15270
15271         Tests for module 'unictype/joiningtype-longname'.
15272         * modules/unictype/joiningtype-longname-tests: New file.
15273         * tests/unictype/test-joiningtype_longname.c: New file.
15274
15275         New module 'unictype/joiningtype-longname'.
15276         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
15277         * lib/unictype/joiningtype_longname.c: New file.
15278         * modules/unictype/joiningtype-longname: New file.
15279         * modules/unictype/joiningtype-all (Depends-on): Add
15280         unictype/joiningtype-longname.
15281
15282 2011-03-26  Bruno Haible  <bruno@clisp.org>
15283
15284         unictype/bidiclass-byname: Recognize long names as well.
15285         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
15286         name.
15287         * lib/unictype/bidi_byname.c: Include <string.h>,
15288         unictype/bidi_byname.h.
15289         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
15290         * lib/unictype/bidi_byname.gperf: New file.
15291         * modules/unictype/bidiclass-byname (Files): Add
15292         lib/unictype/bidi_byname.gperf.
15293         (Depends-on): Add gperf.
15294         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
15295         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
15296         long names.
15297
15298         Tests for module 'unictype/bidiclass-longname'.
15299         * modules/unictype/bidiclass-longname-tests: New file.
15300         * tests/unictype/test-bidi_longname.c: New file.
15301
15302         New module 'unictype/bidiclass-longname'.
15303         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
15304         * lib/unictype/bidi_longname.c: New file.
15305         * modules/unictype/bidiclass-longname: New file.
15306         * modules/unictype/bidiclass-all (Depends-on): Add
15307         unictype/bidiclass-longname.
15308
15309 2011-03-26  Bruno Haible  <bruno@clisp.org>
15310
15311         unictype/bidi*: Rename modules.
15312         * modules/unictype/bidiclass-all: Renamed from
15313         modules/unictype/bidicategory-all.
15314         * modules/unictype/bidiclass-name: Renamed from
15315         modules/unictype/bidiclass-name.
15316         (Description): Update.
15317         * modules/unictype/bidiclass-name-tests: Renamed from
15318         modules/unictype/bidicategory-name-tests.
15319         * modules/unictype/bidiclass-byname: Renamed from
15320         modules/unictype/bidicategory-byname.
15321         (Description): Update.
15322         * modules/unictype/bidiclass-byname-tests: Renamed from
15323         modules/unictype/bidicategory-byname-tests.
15324         * modules/unictype/bidiclass-of: Renamed from
15325         modules/unictype/bidicategory-of.
15326         (Description): Update.
15327         * modules/unictype/bidiclass-of-tests: Renamed from
15328         modules/unictype/bidicategory-of-tests.
15329         * modules/unictype/bidiclass-test: Renamed from
15330         modules/unictype/bidicategory-test.
15331         (Description): Update.
15332         * modules/unictype/bidiclass-test-tests: Renamed from
15333         modules/unictype/bidicategory-test-tests.
15334         * modules/unictype/bidicategory-all: New file, a simple redirection.
15335         * modules/unictype/bidicategory-name: Likewise.
15336         * modules/unictype/bidicategory-byname: Likewise.
15337         * modules/unictype/bidicategory-of: Likewise.
15338         * modules/unictype/bidicategory-test: Likewise.
15339         * modules/unictype/property-bidi-* (Dependencies): Update.
15340         * lib/unictype/bidi_*.c: Update comment.
15341
15342 2011-03-26  Bruno Haible  <bruno@clisp.org>
15343
15344         unictype/bidi*: Rename functions, part 2.
15345         * modules/unictype/bidicategory-name (configure.ac): Update required
15346         libunistring version.
15347         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
15348
15349 2011-03-25  Bruno Haible  <bruno@clisp.org>
15350
15351         New module 'unictype/combining-class-all'.
15352         * modules/unictype/combining-class-all: New file.
15353
15354         Tests for module 'unictype/combining-class-byname'.
15355         * modules/unictype/combining-class-byname-tests: New file.
15356         * tests/unictype/test-combiningclass_byname.c: New file.
15357
15358         New module 'unictype/combining-class-byname'.
15359         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
15360         * lib/unictype/combiningclass_byname.c: New file.
15361         * lib/unictype/combiningclass_byname.gperf: New file.
15362         * modules/unictype/combining-class-byname: New file.
15363
15364         Tests for module 'unictype/combining-class-longname'.
15365         * modules/unictype/combining-class-longname-tests: New file.
15366         * tests/unictype/test-combiningclass_longname.c: New file.
15367
15368         New module 'unictype/combining-class-longname'.
15369         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
15370         * lib/unictype/combiningclass_longname.c: New file.
15371         * modules/unictype/combining-class-longname: New file.
15372
15373         Tests for module 'unictype/combining-class-name'.
15374         * modules/unictype/combining-class-name-tests: New file.
15375         * tests/unictype/test-combiningclass_name.c: New file.
15376
15377         New module 'unictype/combining-class-name'.
15378         * lib/unictype.in.h (uc_combining_class_name): New declaration.
15379         * lib/unictype/combiningclass_name.c: New file.
15380         * modules/unictype/combining-class-name: New file.
15381
15382 2011-03-25  Bruno Haible  <bruno@clisp.org>
15383
15384         unictype/combining-class: Rename source files.
15385         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
15386         of unictype/combining.h.
15387         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
15388         Update.
15389         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
15390         * modules/unictype/combining-class (Description): Fix.
15391         (Files, Makefile.am): Update.
15392         * tests/unictype/test-combiningclass.c: Renamed from
15393         tests/unictype/test-combining.c.
15394         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
15395
15396 2011-03-25  Bruno Haible  <bruno@clisp.org>
15397
15398         unictype: Update list of canonical combining classes.
15399         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
15400
15401 2011-03-25  Bruno Haible  <bruno@clisp.org>
15402
15403         unictype/category-byname: Recognize long names as well.
15404         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
15405         a long name.
15406         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
15407         unictype/categ_byname.h.
15408         (UC_CATEGORY_INDEX_*): New enumeration values.
15409         (uc_general_category_byname): Use uc_general_category_lookup and
15410         convert from index to value.
15411         * lib/unictype/categ_byname.gperf: New file.
15412         * modules/unictype/category-byname (Files): Add
15413         lib/unictype/categ_byname.gperf.
15414         (Depends-on): Add gperf.
15415         (Makefile.am): Add rule for generating unictype/categ_byname.h.
15416         * tests/unictype/test-categ_byname.c (main): Test the recognition of
15417         long names.
15418
15419         Tests for module 'unictype/category-longname'.
15420         * modules/unictype/category-longname-tests: New file.
15421         * tests/unictype/test-categ_longname.c: New file.
15422
15423         New module 'unictype/category-longname'.
15424         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
15425         * lib/unictype/categ_longname.c: New file.
15426         * modules/unictype/category-longname: New file.
15427         * modules/unictype/category-all (Depends-on): Add it.
15428
15429 2011-03-25  Bruno Haible  <bruno@clisp.org>
15430
15431         Tests for module 'unictype/category-LC'.
15432         * modules/unictype/category-LC-tests: New file.
15433         * tests/unictype/test-categ_LC.c: New file, automatically generated.
15434
15435         New module 'unictype/category-LC'.
15436         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
15437         (UC_CATEGORY_LC): New declaration.
15438         (UC_CASED_LETTER): New macro.
15439         * lib/gen-uni-tables.c (is_category_LC): New function.
15440         (output_categories): Also handle category LC.
15441         (UC_CATEGORY_MASK_LC): New enumeration value.
15442         (general_category_byname): Also handle category LC.
15443         * lib/unictype/categ_LC.c: New file.
15444         * lib/unictype/categ_LC.h: New file, automatically generated.
15445         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
15446         category LC.
15447         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
15448         * modules/unictype/category-LC: New file.
15449         * modules/unictype/category-byname (Depends-on): Add
15450         unictype/category-LC.
15451         * modules/unictype/category-all (Depends-on): Likewise.
15452
15453 2011-03-25  Eric Blake  <eblake@redhat.com>
15454
15455         xmalloc: revert yesterday's regression
15456         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
15457         realloc's underlying behavior (allowing allocation of zero-size
15458         objects, especially if malloc-gnu is also in use).
15459
15460 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
15461
15462         maint.mk: add missing version to VC-tag
15463         * top/maint.mk: git tag was missing actual tag name; add it.
15464
15465         valgrind: do leak checking, and exit with code 1 on error (not 0)
15466         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
15467         to VALGRIND.
15468
15469 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
15470
15471         posix-modules: say what it does.
15472         * posix-modules: Add a line to the --help output saying what it does.
15473
15474 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15475
15476         xmalloc: Do not leak if underlying realloc is C99 compatible.
15477         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
15478         This avoids a leak on C99-based systems.  See
15479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
15480
15481 2011-03-24  Eric Blake  <eblake@redhat.com>
15482
15483         realloc: document portability problem
15484         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
15485         passing 0 size to realloc.
15486
15487 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
15488
15489         doc: update users.txt
15490         * users.txt: Add cvsps, tmpwatch
15491
15492 2011-03-23  Matt Rice  <ratmice@gmail.com>
15493
15494         doc: update users.txt
15495         * users.txt: Add gdb.
15496
15497 2011-03-23  Jim Meyering  <meyering@redhat.com>
15498
15499         doc: update users.txt
15500         Looking through matches up to the following URL (there are still
15501         several more pages), I found several projects that use gnulib:
15502         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
15503         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
15504         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
15505
15506 2011-03-22  Bruno Haible  <bruno@clisp.org>
15507
15508         unictype/bidi*: Rename functions.
15509         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
15510         uc_bidi_class, uc_is_bidi_class): New declarations.
15511         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
15512         uc_bidi_category_byname.
15513         (uc_bidi_category_byname): New function.
15514         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
15515         u_bidi_category_name.
15516         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
15517         (uc_bidi_category_name): New function.
15518         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
15519         uc_bidi_category.
15520         (uc_bidi_category): New function.
15521         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
15522         uc_is_bidi_category. Invoke uc_bidi_class.
15523         (uc_is_bidi_category): New function.
15524         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
15525         instead of uc_bidi_category_byname.
15526         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
15527         instead of uc_bidi_category_name.
15528         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
15529         uc_bidi_category.
15530         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
15531         instead of uc_is_bidi_category.
15532
15533 2011-03-21  Bruno Haible  <bruno@clisp.org>
15534
15535         New module 'unictype/joininggroup-all'.
15536         * modules/unictype/joininggroup-all: New file.
15537
15538         Tests for module 'unictype/joininggroup-of'.
15539         * modules/unictype/joininggroup-of-tests: New file.
15540         * tests/unictype/test-joininggroup_of.c: New file.
15541         * tests/unictype/test-joininggroup_of.h: New file, automatically
15542         generated by gen-uni-tables.
15543
15544         New module 'unictype/joininggroup-of'.
15545         * modules/unictype/joininggroup-of: New file.
15546         * lib/unictype/joininggroup_of.c: New file.
15547         * lib/unictype/joininggroup_of.h: New file, automatically generated by
15548         gen-uni-tables.
15549
15550         Tests for module 'unictype/joininggroup-byname'.
15551         * modules/unictype/joininggroup-byname-tests: New file.
15552         * tests/unictype/test-joininggroup_byname.c: New file.
15553
15554         New module 'unictype/joininggroup-byname'.
15555         * modules/unictype/joininggroup-byname: New file.
15556         * lib/unictype/joininggroup_byname.c: New file.
15557         * lib/unictype/joininggroup_byname.gperf: New file.
15558
15559         Tests for module 'unictype/joininggroup-name'.
15560         * modules/unictype/joininggroup-name-tests: New file.
15561         * tests/unictype/test-joininggroup_name.c: New file.
15562
15563         New module 'unictype/joininggroup-name'.
15564         * modules/unictype/joininggroup-name: New file.
15565         * lib/unictype/joininggroup_name.c: New file.
15566         * lib/unictype/joininggroup_name.h: New file.
15567
15568         New module 'unictype/joiningtype-all'.
15569         * modules/unictype/joiningtype-all: New file.
15570
15571         Tests for module 'unictype/joiningtype-of'.
15572         * modules/unictype/joiningtype-of-tests: New file.
15573         * tests/unictype/test-joiningtype_of.c: New file.
15574         * tests/unictype/test-joiningtype_of.h: New file, automatically
15575         generated by gen-uni-tables.
15576
15577         New module 'unictype/joiningtype-of'.
15578         * modules/unictype/joiningtype-of: New file.
15579         * lib/unictype/joiningtype_of.c: New file.
15580         * lib/unictype/joiningtype_of.h: New file, automatically generated by
15581         gen-uni-tables.
15582
15583         Tests for module 'unictype/joiningtype-byname'.
15584         * modules/unictype/joiningtype-byname-tests: New file.
15585         * tests/unictype/test-joiningtype_byname.c: New file.
15586
15587         New module 'unictype/joiningtype-byname'.
15588         * modules/unictype/joiningtype-byname: New file.
15589         * lib/unictype/joiningtype_byname.c: New file.
15590
15591         Tests for module 'unictype/joiningtype-name'.
15592         * modules/unictype/joiningtype-name-tests: New file.
15593         * tests/unictype/test-joiningtype_name.c: New file.
15594
15595         New module 'unictype/joiningtype-name'.
15596         * modules/unictype/joiningtype-name: New file.
15597         * lib/unictype/joiningtype_name.c: New file.
15598
15599         unictype: Add support for Arabic shaping properties.
15600         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
15601         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
15602         declarations.
15603         (UC_JOINING_GROUP_*): New enumeration values.
15604         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
15605         declarations.
15606         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
15607         (unicode_joining_type): New variable.
15608         (UC_JOINING_GROUP_*): New enumeration values.
15609         (unicode_joining_group): New variable.
15610         (fill_arabicshaping, joining_type_as_c_identifier,
15611         output_joining_type_test, output_joining_type,
15612         joining_group_as_c_identifier, output_joining_group_test,
15613         output_joining_group): New functions.
15614         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
15615         fill_arabicshaping and output_joining_type_test, output_joining_type,
15616         output_joining_group_test, output_joining_group.
15617         Reported by Simon Josefsson.
15618
15619 2011-03-21  Jim Meyering  <meyering@redhat.com>
15620
15621         strftime: fix a bug in yesterday's change
15622         * lib/strftime.c (add): Accommodate width's initial value of -1.
15623         Otherwise, nstrftime would copy uninitialized data into
15624         the result buffer.
15625
15626 2011-03-21  Jim Meyering  <meyering@redhat.com>
15627
15628         tests: add strftime-tests module
15629         * tests/test-strftime.c: New file.
15630         * modules/strftime-tests: New module.
15631
15632 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15633
15634         strftime: don't assume a byte count fits in 'int'
15635         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
15636         found this problem by static analysis, using gcc -Wstrict-overflow
15637         (GCC 4.5.2, x86-64).  This reported an optimization that depended
15638         on an integer overflow having undefined behavior, but it turns out
15639         that the argument is a size, which might not fit in 'int' anyway,
15640
15641 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15642
15643         stdio: don't require ignore_value around fwrite
15644
15645         This patch works around libc bug 11959
15646         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
15647         Without this patch, applications must often write
15648         ignore_value (fwrite (...)) even though the ignore_value is
15649         not helpful here.  It's common to write many objects, using
15650         fwrite/printf/etc., and then use ferror to detect output error.
15651
15652         I considered making this patch optional, but decided against it,
15653         because libc is obviously being inconsistent here: there is no
15654         reason libc should insist that user code must inspect fwrite
15655         return's value without also insisting that it inspect printf's,
15656         putchar's, etc.  If user code wants to have a strict style where
15657         all these functions' values are checked (so that ferror need not
15658         be checked), we could add support for that style in a new gnulib
15659         module, but in the meantime it's better to be consistent and to
15660         support common usage.
15661
15662         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
15663         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
15664         that we are compiling in checking mode, and if not C++, and
15665         if not already wrapping fwrite for some other reason.
15666         (fwrite): #define to rpl_fwrite if the latter is defined.
15667
15668 2011-03-20  Bruno Haible  <bruno@clisp.org>
15669
15670         verror: Fix compilation error introduced on 2011-02-13.
15671         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
15672         instead of __attribute__.
15673         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15674
15675 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15676             Bruno Haible  <bruno@clisp.org>
15677
15678         socklen: do not depend on sys_socket
15679         While trying to modify Emacs to use gnulib's socklen module,
15680         I discovered a circular dependency: socklen depends on sys_socket
15681         and vice versa.  Emacs can use socklen, but it does not need
15682         sys_socket because it has its own substitute for sys/socket.h.
15683         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
15684         gl_TYPE_SOCKLEN_T.
15685         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
15686         gl_PREREQ_SYS_H_SOCKET.
15687         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
15688         gl_PREREQ_SYS_H_SOCKET.
15689         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
15690         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
15691         * modules/socklen (Depends-on): Do not depend on sys_socket.
15692         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
15693
15694 2011-03-20  Jim Meyering  <meyering@redhat.com>
15695
15696         maint.mk: sort file names *after* new transformation
15697         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
15698         prefix would have led to an unwarranted failure in GNU parted.
15699         Sort after that transformation.
15700
15701 2011-03-19  Jim Meyering  <meyering@redhat.com>
15702
15703         maint.mk: fix po-file syntax-check rule
15704         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
15705         Patch by Bruno Haible.
15706
15707 2011-03-19  Bruno Haible  <bruno@clisp.org>
15708
15709         socklen: Update comment.
15710         * m4/socklen.m4: Update comment about platforms.
15711
15712 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15713             Bruno Haible  <bruno@clisp.org>
15714
15715         inet_ntop, inet_pton: Simplify.
15716         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
15717         documented to provide socklen_t and we already depend on sys_socket.
15718         * modules/inet_pton (Depends-on): Likewise.
15719         * lib/arpa_inet.in.h: Adjust comment.
15720
15721 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15722             Bruno Haible  <bruno@clisp.org>
15723
15724         netdb: Simplify.
15725         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
15726         documented to provide socklen_t and we already depend on sys_socket.
15727         * lib/netdb.in.h: Adjust comment.
15728
15729 2011-03-19  Bruno Haible  <bruno@clisp.org>
15730
15731         sys_socket, netdb: Document problem with socklen_t.
15732         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
15733         platforms.
15734         * doc/posix-headers/netdb.texi: Likewise.
15735
15736 2011-03-18  Eric Blake  <eblake@redhat.com>
15737
15738         maint.mk: let po check work in VPATH build
15739         * top/maint.mk (po_file): Allow cfg.mk override.
15740         (sc_po_check): Allow VPATH use.
15741         Reported by Jiri Denemark.
15742
15743 2011-03-16  Jim Meyering  <meyering@redhat.com>
15744
15745         maint.mk: allow fine-grained syntax-check exclusion via Make variables
15746         Before, you would have had to create one .x-sc_ file per rule in order
15747         to exempt offending files.  Now, you may instead use a Make variable --
15748         usually defined in cfg.mk -- whose name identifies the affected rule.
15749         * top/maint.mk (_sc_excl): Define.
15750         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
15751         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
15752
15753 2011-03-13  Bruno Haible  <bruno@clisp.org>
15754
15755         ignore-value tests: Avoid warnings.
15756         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
15757         empty for gcc < 3.4.
15758
15759 2011-03-13  Bruno Haible  <bruno@clisp.org>
15760
15761         passfd: Fix link error on Solaris.
15762         * modules/passfd (Description): Correct.
15763         (Depends-on): Add socketlib.
15764         (Link): New section.
15765         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
15766
15767 2011-03-13  Bruno Haible  <bruno@clisp.org>
15768
15769         passfd: Fix link error on AIX 5.2.
15770         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
15771
15772 2011-03-13  Bruno Haible  <bruno@clisp.org>
15773
15774         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
15775         * lib/sys_socket.in.h: Include <stddef.h>.
15776         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
15777         CMSG_FIRSTHDR. Remove unused variable.
15778
15779 2011-03-13  Bruno Haible  <bruno@clisp.org>
15780
15781         passfd: Fix compilation error on OpenBSD.
15782         * lib/passfd.c: Include <sys/uio.h>.
15783
15784 2011-03-13  Bruno Haible  <bruno@clisp.org>
15785
15786         passfd test: Fix warnings.
15787         * tests/test-passfd.c: Include <sys/wait.h>.
15788         (main): Fix typo.
15789
15790 2011-03-13  Bruno Haible  <bruno@clisp.org>
15791
15792         passfd module, part 4, tweaks.
15793         * tests/test-passfd.c: Reorder includes.
15794         (main): Fix perror and printf calls.
15795
15796 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15797
15798         passfd module, part 4.
15799         * modules/passfd-tests: New file.
15800         * tests/test-passfd.c: New file.
15801
15802 2011-03-13  Jim Meyering  <meyering@redhat.com>
15803
15804         Makefile: rely on GNU make; derive syntax-check rule names
15805         Rather than requiring that each sc_ rule be listed as a dependent
15806         of "check", use features of GNU make to derive the list.
15807         * Makefile (syntax-check-rules): Define.
15808         (check): Depend on the new variable, not the hard-coded list.
15809
15810 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
15811             Bruno Haible  <bruno@clisp.org>
15812
15813         passfd module, part 3.
15814         * lib/passfd.h (recvfd): Add a flags argument.
15815         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
15816         (recvfd): Add a flags argument.
15817         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
15818         exists.
15819         * modules/passfd (Depends-on): Add cloexec.
15820         Suggested by Eric Blake.
15821
15822 2011-03-13  Bruno Haible  <bruno@clisp.org>
15823
15824         passfd module, part 2, tweaks.
15825         * modules/passfd (Files): Reorder.
15826         (Depends-on): Remove errno.
15827         (Include): Remove <sys/socket.h>, <sys/un.h>.
15828         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
15829         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
15830         specification header. Include <sys/socket.h> always. Don't include
15831         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
15832         (sendfd): Clarify that it sets errno when it fails.
15833         (recvfd): Fix specification.
15834
15835 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15836
15837         passfd module, part 2.
15838         * modules/passfd: New file.
15839         * lib/passfd.h: New file.
15840         * lib/passfd.c: New file.
15841
15842 2011-03-12  Bruno Haible  <bruno@clisp.org>
15843
15844         wcswidth, mbswidth: Avoid integer overflow.
15845         * lib/wcswidth.c: Include <limits.h>.
15846         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
15847         * lib/mbswidth.c: Include <limits.h>.
15848         (mbsnwidth): Avoid 'int' overflow.
15849         Reported by Jim Meyering.
15850
15851 2011-03-12  Bruno Haible  <bruno@clisp.org>
15852
15853         futimens, utimensat: Avoid endless recursion on Solaris 10.
15854         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
15855         Solaris.
15856         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
15857         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
15858
15859 2011-03-11  Jim Meyering  <meyering@redhat.com>
15860
15861         maint.mk: relax a regexp to accommodate other formatting styles
15862         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
15863         between "ngettext" and the following "(".
15864
15865 2011-03-11  Pádraig Brady <P@draigBrady.com>
15866
15867         maint.mk: suppress a false positive warning
15868         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
15869         diagnostics are marked with ngettext.
15870
15871 2011-03-10  Eric Blake  <eblake@redhat.com>
15872
15873         wchar: add explicit dependencies, for Tru64
15874         * modules/mbmemcasecoll (Depends-on): Add wchar.
15875         * modules/mbtowc (Depends-on): Likewise.
15876         * modules/vasnprintf (Depends-on): Likewise.
15877         * modules/unistdio/u-printf-args (Depends-on): Likewise.
15878         * modules/wctomb (Depends-on): Likewise.
15879         Reported by Peter O'Gorman.
15880
15881 2011-03-08  Bruno Haible  <bruno@clisp.org>
15882
15883         passfd module, part 1, tweaks.
15884         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
15885         Improve indentation. Improve AC_MSG_CHECKING messages.
15886         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
15887         gl_SOCKET_FAMILIES.
15888
15889 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15890
15891         passfd module, part 1.
15892         * m4/afunix.m4: New file.
15893         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
15894         sockets.
15895
15896 2011-03-08  Bruno Haible  <bruno@clisp.org>
15897
15898         regex-quote: New API.
15899         * lib/regex-quote.h: Include <stdbool.h>.
15900         (struct regex_quote_spec): New type.
15901         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15902         New declarations.
15903         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15904         'const struct regex_quote_spec *' argument.
15905         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
15906         (pcre_special): New constant.
15907         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15908         New functions.
15909         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15910         'const struct regex_quote_spec *' argument.
15911         * modules/regex-quote (Depends-on): Add stdbool.
15912         * tests/test-regex-quote.c (check): Update for new API. Add test for
15913         anchored results.
15914         * NEWS: Mention the API change.
15915         Reported by Reuben Thomas and Eric Blake.
15916
15917 2011-03-06  Bruno Haible  <bruno@clisp.org>
15918
15919         regex-quote: Fix creation of POSIX extended regular expressions.
15920         * lib/regex-quote.c (ere_special): Add grouping and alternation
15921         operators.
15922
15923 2011-03-05  Bruno Haible  <bruno@clisp.org>
15924
15925         doc: Improve doc regarding autopoint vs. gnulib.
15926         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
15927         disable autopoint while running autoreconf.
15928         Suggested by Ralf Wildenhues.
15929
15930 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15931
15932         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
15933         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
15934
15935 2011-03-03  Bruce Korb  <bkorb@gnu.org>
15936
15937         parse-duration: remove xalloc.h dependency
15938         * lib/parse-duration.c (parse_period): handle NULL return from
15939         strdup instead of calling xstrdup().
15940         * modules/parse-duration: remove "xalloc" dependency
15941
15942 2011-03-03  Matthew Booth  <mbooth@redhat.com>
15943
15944         bootstrap: honor m4_base when running aclocal
15945         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
15946
15947 2011-03-02  Jim Meyering  <meyering@redhat.com>
15948
15949         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
15950         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
15951         on request from Matt Booth.
15952
15953 2011-03-01  Eric Blake  <eblake@redhat.com>
15954
15955         test-link: work on Hurd
15956         * tests/test-link.h (test_link): Hurd rejects linking directories
15957         with EISDIR instead of the POSIX-mandated EPERM.
15958
15959 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
15960
15961         stdio: simplify by moving files to printf-posix, sigpipe
15962         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
15963         since this symbol is needed only if printf is replaced.
15964         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
15965         Require gl_ASM_SYMBOL_PREFIX.
15966         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
15967         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
15968         (Depends-on): Add 'raise'.
15969         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
15970         * modules/stdio (Files): Remove lib/stdio-write.c,
15971         m4/asm-underscore.m4.
15972         (Depends-on): Remove 'raise'.
15973
15974         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
15975         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
15976         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
15977         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
15978
15979 2011-02-28  Bruno Haible  <bruno@clisp.org>
15980
15981         localcharset: Assume ANSI C behaviour of free().
15982         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
15983         calling free().
15984         Suggested by Simon Josefsson <simon@josefsson.org>.
15985
15986 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
15987             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
15988             Bruno Haible  <bruno@clisp.org>  (tiny change)
15989
15990         On Cygwin, use /proc file system instead of win32 API.
15991         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
15992         Win32 file names.
15993         (DllMain): Simplify by removing Cygwin specific code.
15994         (find_shared_library_fullname): Use Linux specific implementation also
15995         for Cygwin.
15996         (get_shared_library_fullname): Update accordingly.
15997         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
15998         Win32 file names.
15999         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
16000         Cygwin specific code.
16001
16002 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
16003             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
16004
16005         Fix OpenMP flag detection for various Fortran compilers.
16006         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
16007         OpenMP-conditional compilation construct, to force compile
16008         failure with missing OpenMP flag.
16009         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
16010
16011 2011-02-25  Eric Blake  <eblake@redhat.com>
16012
16013         strstr: expand test coverage
16014         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
16015         compilation.
16016         * tests/test-memmem.c (main): Duplicate tests.
16017         * tests/test-strcasestr.c (main): Likewise.
16018         * tests/test-c-strcasestr.c (main): Likewise.
16019
16020 2011-02-25  Jim Meyering  <meyering@redhat.com>
16021
16022         maint.mk: detect missing-NL-at-EOF, too
16023         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
16024         it also detects when a file lacks a newline at EOF.
16025         (require_exactly_one_NL_at_EOF_): Renamed from
16026         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
16027         since people may well have .x-sc_... file names tied to the
16028         existing name.  Suggested by Eric Blake.
16029
16030 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16031
16032         dirname: move m4/dos.m4 functionality into lib/dosname.h
16033
16034         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
16035         extracts symbols from it, puts them into config.h; but it's much
16036         easier to use the symbols directly.  filename.h already does this,
16037         but it disagrees with dos.m4 in some respects.  This patch
16038         introduces a different include file dosname.h that packages up
16039         dos.m4, and then later we can work on merging filename.h and
16040         dosname.h.  Applications that need only the easy-to-configure
16041         symbols should consider including dosname.h rather than dirname.h.
16042         * NEWS: Mention incompatible changes.
16043         * m4/dos.m4: Remove.
16044         * lib/dosname.h, modules/dosname: New files.
16045         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
16046         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
16047         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
16048         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
16049         Include dosname.h, not dirname.h.
16050         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
16051         Include dosname.h, for definitions of symbols like ISSLASH
16052         that used to be in config.h.
16053         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
16054         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16055         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16056         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16057         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
16058         * modules/rmdir (Files): Likewise.
16059         * modules/stat (Files): Likewise.
16060         * modules/unlink (Files): Likewise.
16061         * modules/dirname-lgpl (Depends-on): Add dosname.
16062         * modules/lstat (Depends-on): Likewise.
16063         * modules/openat (Depends-on): Likewise.
16064         * modules/rmdir (Depends-on): Likewise.
16065         * modules/savewd (Depends-on): Likewise.
16066         * modules/stat (Depends-on): Likewise.
16067         * modules/unlink (Depends-on): Likewise.
16068         * modules/openat (Depends-on): Remove dirname-lgpl.
16069         * modules/savewd (Depends-on): Likewise.
16070         * tests/test-dirname.c: Do not use removed symbols like
16071         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
16072         the remaining symbols, e.g., ISSLASH ('\\').
16073
16074 2011-02-25  Eric Blake  <eblake@redhat.com>
16075
16076         strstr: revert patches that introduced bug and pessimization
16077         * lib/str-two-way.h: Add another reference.
16078         (two_way_short_needle, two_way_long_needle): Revert changes from
16079         2011-02-24; they pessimize search speed.
16080         (critical_factorization): Partially revert changes from
16081         2010-06-22; they violate the requirement that the left half of the
16082         needle be smaller than the period of the needle.
16083
16084 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16085
16086         filenamecat: remove unnecessary dependency on dirname-lgpl
16087         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
16088         is no direct dependency, just an indirect one via filenamecat-lgpl.
16089
16090         remove: remove unnecessary use of m4/dos.m4
16091         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
16092         * modules/remove (FILES): Remove m4/dos.m4.
16093
16094         * lib/openat-proc.c: Don't include dirname.h; not needed.
16095
16096         backupfile: remove unnecessary use of m4/dos.m4
16097         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
16098         of its symbols are used by the backupfile code.  backupfile.c does
16099         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
16100         for the rare case of programs that want all their backup file
16101         names to live within 8+3 limits, and dos.m4 doesn't address that.
16102         * modules/backupfile (Files): Remove m4/dos.m4.
16103
16104 2011-02-24  Jim Meyering  <meyering@redhat.com>
16105
16106         strstr: fix a bug whereby strstr would mistakenly return NULL
16107         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
16108         in period calculation.
16109         (two_way_long_needle): Likewise.
16110         The original problem was reported by Mike Stump in
16111         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
16112         Ralf Wildenhues provided the short needle and haystack.
16113         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
16114         Add a more involved test to trigger the bug in two_way_long_needle.
16115
16116 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16117
16118         gnulib-tool: remove use of bold display in help screen
16119         * gnulib-tool (func_usage): Do not use bold display anymore in the
16120         help screen.  That was just meant to be a temporary emphasis for a
16121         backward-incompatible change.
16122
16123 2011-02-23  Bruno Haible  <bruno@clisp.org>
16124
16125         Fix misindentation of preprocessor directives.
16126         * lib/argp-namefrob.h: Reindent preprocessor directives.
16127         * lib/getopt_int.h (struct _getopt_data): Likewise.
16128         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
16129         * lib/vasnprintf.c (decode_long_double): Likewise.
16130         * tests/test-argmatch.c: Insert blank lines, for clarity.
16131         * tests/test-exclude.c: Likewise.
16132
16133 2011-02-22  Bruno Haible  <bruno@clisp.org>
16134
16135         ioctl: Fix for MacOS X in 64-bit mode.
16136         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
16137         value.
16138         Suggested by Eric Blake.
16139         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
16140
16141 2011-02-22  Jim Meyering  <meyering@redhat.com>
16142
16143         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
16144         * Makefile (sc_cpp_indent_check): Don't limit the check to files
16145         in lib/.
16146
16147 2011-02-22  Eric Blake  <eblake@redhat.com>
16148
16149         maint: avoid any CDPATH issue
16150         * Makefile (sc_cpp_indent_check): Anchor cd argument.
16151
16152         maint: adjust cpp indentation for my modules, as well
16153         * Makefile (sc_cpp_indent_check): Add my name.
16154         * lib/fbufmode.c: Filter through cppi.
16155         * lib/fpurge.c: Likewise.
16156         * lib/freadable.c: Likewise.
16157         * lib/freading.c: Likewise.
16158         * lib/fwritable.c: Likewise.
16159         * lib/fwriting.c: Likewise.
16160         * lib/sigaction.c: Likewise.
16161
16162 2011-02-22  Jim Meyering  <meyering@redhat.com>
16163
16164         maint: adjust cpp indentation to reflect nesting depth
16165         I.e., in a block of code that begins with an unnested "#if",
16166         put one space between the "#" in column 1 and following token.
16167         For example,
16168         -#include <sys/vfs.h>
16169         +# include <sys/vfs.h>
16170         Do this only in .c files that are part of a module I maintain.
16171         * lib/linkat.c: Filter through cppi.
16172         * lib/nanosleep.c: Likewise.
16173         * lib/openat.c: Likewise.
16174         * lib/openat-die.c: Likewise.
16175         * lib/dup3.c: Likewise.
16176         * lib/fchownat.c: Likewise.
16177         * lib/flock.c: Likewise.
16178         * lib/fsync.c: Likewise.
16179         * lib/fts.c: Likewise.
16180         * lib/getpass.c: Likewise.
16181         * lib/gettimeofday.c: Likewise.
16182         * lib/userspec.c: Likewise.
16183         * Makefile (sc_cpp_indent_check): New rule, to check this.
16184
16185 2011-02-22  Bruno Haible  <bruno@clisp.org>
16186
16187         New module 'wctomb'.
16188         * lib/stdlib.in.h (wctomb): New declaration.
16189         * lib/wctomb.c: New file.
16190         * lib/wctomb-impl.h: New file.
16191         * m4/wctomb.m4: New file.
16192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
16193         REPLACE_WCTOMB.
16194         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
16195         REPLACE_WCTOMB.
16196         * modules/wctomb: New file.
16197         * tests/test-stdlib-c++.cc: Test signature of wctomb.
16198         * doc/posix-functions/wctomb.texi: Mention the new module.
16199         * modules/wctob (Depends-on): Add wctomb.
16200
16201 2011-02-22  Bruno Haible  <bruno@clisp.org>
16202
16203         New module 'mbtowc'.
16204         * lib/stdlib.in.h (mbtowc): New declaration.
16205         * lib/mbtowc.c: New file.
16206         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
16207         * m4/mbtowc.m4: New file.
16208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
16209         REPLACE_MBTOWC.
16210         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
16211         REPLACE_MBTOWC.
16212         * modules/mbtowc: New file.
16213         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
16214         * doc/posix-functions/mbtowc.texi: Mention the new module.
16215         * modules/btowc (Depends-on): Add mbtowc.
16216
16217 2011-02-22  Bruno Haible  <bruno@clisp.org>
16218
16219         wcrtomb: Add more tests for native Windows platforms.
16220         * tests/test-wcrtomb-w32-1.sh: New file.
16221         * tests/test-wcrtomb-w32-2.sh: New file.
16222         * tests/test-wcrtomb-w32-3.sh: New file.
16223         * tests/test-wcrtomb-w32-4.sh: New file.
16224         * tests/test-wcrtomb-w32-5.sh: New file.
16225         * tests/test-wcrtomb-w32.c: New file.
16226         * modules/wcrtomb-tests (Files): Add them.
16227         (Makefile.am): Arrange to run these tests.
16228         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
16229         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
16230
16231 2011-02-20  Bruno Haible  <bruno@clisp.org>
16232
16233         wcrtomb: Enhance test.
16234         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
16235
16236 2011-02-20  Bruno Haible  <bruno@clisp.org>
16237
16238         mbrtowc: Tiny optimization.
16239         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
16240
16241 2011-02-20  Jim Meyering  <meyering@redhat.com>
16242
16243         test-exclude.c: remove unmatched #endif
16244         * tests/test-exclude.c: Remove stray #endif, left over from
16245         the change of a week ago.
16246
16247 2011-02-19  Jim Meyering  <meyering@redhat.com>
16248
16249         git-version-gen: skip "-dirty" check when appropriate
16250         * build-aux/git-version-gen: Don't run any git commands when the
16251         version string comes from .tarball-version.  Prior to this, we
16252         would run git update-index --refresh even from a just-unpacked
16253         tarball directory, and that could affect a .git/ directory in a
16254         parent of the build directory.  Reported by Mike Frysinger.
16255
16256 2011-02-19  Bruno Haible  <bruno@clisp.org>
16257
16258         unictype/property-byname: Reduce the size of the 'data' segment.
16259         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
16260
16261 2011-02-19  Bruno Haible  <bruno@clisp.org>
16262
16263         unictype/scripts: Reduce the size of the 'data' segment.
16264         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
16265         '%pic'.
16266         * lib/unictype/scripts_byname.gperf: Regenerated.
16267
16268 2011-02-19  Bruno Haible  <bruno@clisp.org>
16269
16270         stdint: Update documentation.
16271         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
16272
16273 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16274
16275         stdint: omit redundant check for wchar.h
16276         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
16277         always tests whether wchar.h exists, so remove the now-redundant test.
16278
16279 2011-02-18  Bruno Haible  <bruno@clisp.org>
16280
16281         stdint: Cut dependency to module 'wchar'.
16282         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
16283         include the necessary prerequisites.
16284         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
16285         * modules/stdint (Depends-on): Remove wchar.
16286         (Makefile.am): Substitute HAVE_WCHAR_H.
16287         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
16288
16289 2011-02-18  Eric Blake  <eblake@redhat.com>
16290
16291         longlong: skip, rather than fail, on cross-compilation
16292         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
16293         when cross-compiling; regression from 2011-02-16.
16294
16295 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16296
16297         * NEWS: Mention 2011-02-08 change to stdlib.
16298
16299 2011-02-17  Bruno Haible  <bruno@clisp.org>
16300
16301         getloadavg: Add comments about platforms.
16302         * m4/getloadavg.m4: Add comment.
16303         * lib/getloadavg.c: Likewise.
16304
16305 2011-02-17  Bruno Haible  <bruno@clisp.org>
16306
16307         getloadavg: Fix link error on Solaris 2.6.
16308         * modules/getloadavg (Link): New section.
16309         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
16310         linking test-getloadavg.
16311         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
16312         getloadavg.
16313
16314 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16315
16316         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
16317         It was 'int', but this doesn't match the IRIX 6.5 manual.
16318         Suggested by Bruno Haible in
16319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
16320
16321 2011-02-17  Bruno Haible  <bruno@clisp.org>
16322
16323         havelib: Fix comments.
16324         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
16325         change.
16326
16327 2011-02-17  Bruno Haible  <bruno@clisp.org>
16328
16329         havelib: Update config.rpath.
16330         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
16331
16332 2011-02-17  Bruno Haible  <bruno@clisp.org>
16333
16334         getloadavg test: Add some plausibility checks.
16335         * tests/test-getloadavg.c (check_avg): Print a warning when the value
16336         is improbable.
16337
16338 2011-02-16  Eric Blake  <eblake@redhat.com>
16339
16340         maintainer-makefile: make syntax-check a no-op from tarballs
16341         * top/maint.mk (no-vc-detected): New rule.
16342         (local-checks-available): Use it to avoid hanging if someone tries
16343         'make syntax-check' from a tarball.  Also append to any non-syntax
16344         checks already defined in cfg.mk.
16345
16346 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
16347
16348         longlong: tune, particularly for common case of c99
16349
16350         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
16351         or running anything if c99, or if unsigned long long int does not
16352         work.  In either case, we know the answer without further tests.
16353         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
16354         it at most once, and use its results for both long long int and
16355         unsigned long long int.  This is more likely to be efficient in
16356         the common case where the program wants to check for both long
16357         long int and unsigned long long int.
16358         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
16359         since the answer is already known.
16360
16361 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
16362
16363         getloadavg: set errno
16364         * lib/getloadavg.c: Set errno when returning -1.  If no other
16365         error number looks appropriate, set it to ENOSYS if the getloadavg
16366         looks like it can't possibly ever work, ENOTSUP otherwise.
16367         Suggested by Bruno Haible in
16368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
16369
16370         getloadavg: trim unused parts and speed up 'configure'
16371         * NEWS: Document this.
16372         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
16373         always compiled if getloadavg is absent.
16374         Move test code to ...
16375         * tests/test-getloadavg.c: New file, containing previous
16376         contents of test from lib/getloadavg.c.  It also contains
16377         suggestions by Bruno Haible in
16378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
16379         * modules/getloadavg-tests: New file.
16380         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
16381         Do tests in the same order as they're needed for getloadavg.c.
16382         Omit setgid-related tests that generate symbols KMEM_GROUP,
16383         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
16384         Do only the tests that are needed to see whether the system has
16385         getloadavg, moving the other tests into ...
16386         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
16387         NLIST_NAME_UNION; nobody should be using it.  Do not define
16388         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
16389         relevant, as the user of this module shouldn't care how getloadavg
16390         is implemented.
16391
16392         getloadavg: omit unused var
16393         * lib/getloadavg.c (getloadavg): Omit unused local variable.
16394
16395 2011-02-15  Jim Meyering  <meyering@redhat.com>
16396
16397         doc: update users.txt
16398         * users.txt: Update iwhd's URL.
16399
16400 2011-02-13  Bruno Haible  <bruno@clisp.org>
16401
16402         Consistent macro naming for macros that use GCC __attribute__.
16403         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
16404         _ATTRIBUTE_NONNULL_.
16405         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
16406         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
16407         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
16408         ATTRIBUTE_DEPRECATED.
16409         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
16410         ATTRIBUTE_NORETURN.
16411         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16412         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16413         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16414         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16415         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
16416         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
16417         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
16418         ATTRIBUTE_SENTINEL.
16419         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
16420         ATTRIBUTE_RETURN_CHECK.
16421         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
16422         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
16423         ATTRIBUTE_NORETURN.
16424         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
16425         Reported by Paul Eggert.
16426
16427 2011-02-13  Bruno Haible  <bruno@clisp.org>
16428
16429         Don't interfere with a program's definition of __attribute__.
16430         * lib/argp.h (__attribute__): Remove definition.
16431         (_GL_ATTRIBUTE_FORMAT): New macro.
16432         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
16433         * lib/argp-fmtstream.h (__attribute__): Remove definition.
16434         (_GL_ATTRIBUTE_FORMAT): New macro.
16435         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
16436         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
16437         GCC 3 or newer.
16438         * lib/error.h (__attribute__): Remove definition.
16439         (_GL_ATTRIBUTE_FORMAT): New macro.
16440         (error, error_at_line): Use it.
16441         * lib/hash.h (__attribute__): Remove definition.
16442         (ATTRIBUTE_WUR): Update definition. Define always.
16443         * lib/openat.h (__attribute__): Remove definition.
16444         (ATTRIBUTE_NORETURN): Update definition. Define always.
16445         * lib/sigpipe-die.h (__attribute__): Remove definition.
16446         (ATTRIBUTE_NORETURN): Update definition. Define always.
16447         * lib/vasnprintf.h (__attribute__): Remove definition.
16448         (_GL_ATTRIBUTE_FORMAT): New macro.
16449         (asnprintf, vasnprintf): Use it.
16450         * lib/xalloc.h (__attribute__): Remove definition.
16451         (ATTRIBUTE_NORETURN): Update definition. Define always.
16452         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
16453         * lib/xmemdup0.h (__attribute__): Remove definition.
16454         (ATTRIBUTE_NORETURN): Update definition. Define always.
16455         * lib/xprintf.h (__attribute__): Remove definition.
16456         (_GL_ATTRIBUTE_FORMAT): New macro.
16457         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
16458         * lib/xstrtol.h (__attribute__): Remove definition.
16459         (ATTRIBUTE_NORETURN): Update definition. Define always.
16460         * lib/xvasprintf.h (__attribute__): Remove definition.
16461         (_GL_ATTRIBUTE_FORMAT): New macro.
16462         (xasprintf, xvasprintf): Use it.
16463         * tests/test-argmatch.c (__attribute__): Remove definition.
16464         (ATTRIBUTE_NORETURN): Update definition. Define always.
16465         * tests/test-exclude.c (__attribute__): Remove definition.
16466         (ATTRIBUTE_NORETURN): Update definition. Define always.
16467         Reported by Paul Eggert.
16468
16469 2011-02-13  Bruno Haible  <bruno@clisp.org>
16470
16471         mbrtowc: Add more tests for native Windows platforms.
16472         * tests/test-mbrtowc-w32-1.sh: New file.
16473         * tests/test-mbrtowc-w32-2.sh: New file.
16474         * tests/test-mbrtowc-w32-3.sh: New file.
16475         * tests/test-mbrtowc-w32-4.sh: New file.
16476         * tests/test-mbrtowc-w32-5.sh: New file.
16477         * tests/test-mbrtowc-w32.c: New file.
16478         * modules/mbrtowc-tests (Files): Add them.
16479         (Makefile.am): Arrange to run these tests.
16480         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
16481         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
16482
16483 2011-02-13  Bruno Haible  <bruno@clisp.org>
16484
16485         mbrtowc: Work around native Windows bug.
16486         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
16487         guess when no suitable locale for testing was found.
16488         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
16489
16490 2011-02-13  Bruno Haible  <bruno@clisp.org>
16491
16492         mbsinit: Work around mingw bug.
16493         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
16494         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
16495         Windows.
16496         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
16497
16498 2011-02-13  Bruno Haible  <bruno@clisp.org>
16499
16500         mbsinit: Don't crash for a NULL argument.
16501         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
16502         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
16503
16504 2011-02-13  Bruno Haible  <bruno@clisp.org>
16505
16506         Don't interfere with a program's definition of __attribute__.
16507         * lib/stdio.in.h (__attribute__): Remove definition.
16508         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
16509         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
16510         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
16511         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
16512         * lib/string.in.h (__attribute__): Remove definition.
16513         Reported by Paul Eggert.
16514
16515 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16516
16517         stdlib: don't get in the way of non-GCC __attribute__
16518         See thread starting at
16519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
16520         Revert previous stdlib change, installing the following instead:
16521         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
16522         to get in the way of a non-GCC compiler that supports __attribute__.
16523         (_GL_ATTRIBUTE_RETURN): New macro.
16524         (_Exit): Use it instead of __attribute__.
16525
16526 2011-02-12  Bruno Haible  <bruno@clisp.org>
16527
16528         quotearg test: Avoid test failure on mingw.
16529         * tests/test-quotearg.sh: Convert the locale identifier from native
16530         Windows syntax to Unix syntax.
16531
16532 2011-02-12  Bruno Haible  <bruno@clisp.org>
16533
16534         setlocale: Prefer gnulib's override over libintl's override.
16535         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
16536         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
16537         GNULIB_defined_setlocale is set.
16538
16539 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16540
16541         stdlib: support non-GCC __attribute__
16542
16543         Fix a serious and tricky problem encountered when attempting to
16544         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
16545         5.5, but it crashed due to memory corruption on Solaris 10 with
16546         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
16547         bits that are otherwise zero.  This tagging is optional inside
16548         Emacs but is preferred and is used when __attribute__ ((__aligned
16549         (8))) works, as it does with both recent-enough GCC and with Sun C
16550         5.11.  However, Sun C 5.11 is not GCC and does not #define
16551         __GNUC__ and __GNUC_MINOR__.
16552
16553         When I added the getloadavg module to Emacs, it brought in
16554         stdlib.in.h, which contained this fragment:
16555
16556            #ifndef __attribute__
16557            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
16558            #  define __attribute__(Spec)   /* empty */
16559            # endif
16560            #endif
16561
16562         When files that include <stdlib.h> were compiled with Sun C 5.11,
16563         the above code disabled __attribute__ ((__aligned (8))), which
16564         caused variables to not be properly aligned, which eventually led
16565         to the pointer corruption mentioned above.  (This was a bit hard
16566         to diagnose, unfortunately.)
16567
16568         Several "#define __attribute__(X) /* empty */" code snippets need
16569         to be eradicated from Gnulib to work with non-GCC compilers that
16570         support __attribute__.  The Autoconf way to do this is to test for
16571         each kind of attribute that we want support for, and selectively
16572         enable that in source code.
16573
16574         Fix this problem just for stdlib.h, by adding a test for the
16575         __noreturn__ attribute, and change stdlib.in.h to use that test
16576         when needed.  This technique can be easily generalized to the
16577         other *.in.h files and attributes, and a similar technique can be
16578         used for *.h and *.c files.  This patch is enough to solve the
16579         problem for Emacs + getloadavg, and I thought I'd publish it for
16580         feedback before undertaking further, similar fixes in other
16581         modules.
16582
16583         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
16584         because it's not needed for stdlib.h.  It merely substitutes the
16585         value directly into stdlib.h.  We may well need to #define it, or
16586         similar symbols, for other modules, but it's nice to also have an
16587         option to not #define it for applications like Emacs that do not
16588         need it.
16589
16590         * lib/stdlib.in.h (__attribute__): Do not #define.
16591         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
16592         be defined only if the _Exit module is also used.
16593         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
16594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
16595         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
16596         platforms.
16597         * modules/_Exit (Files): Add m4/attribute.m4.
16598         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
16599         * m4/attribute.m4: New file.
16600
16601 2011-02-12  Bruno Haible  <bruno@clisp.org>
16602
16603         wcsrtombs: Work around bug on native Windows.
16604         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
16605         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
16606         instead of len.
16607         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
16608
16609 2011-02-12  Bruno Haible  <bruno@clisp.org>
16610
16611         mbsrtowcs: Work around bug on native Windows.
16612         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
16613         against mingw bug.
16614         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
16615
16616 2011-02-12  Bruno Haible  <bruno@clisp.org>
16617
16618         Avoid setlocale bugs in tests.
16619         * modules/btowc (Dependencies): Add setlocale.
16620         * modules/c-strcase (Dependencies): Likewise.
16621         * modules/mbmemcasecmp (Dependencies): Likewise.
16622         * modules/mbmemcasecoll (Dependencies): Likewise.
16623         * modules/mbrtowc (Dependencies): Likewise.
16624         * modules/mbscasecmp (Dependencies): Likewise.
16625         * modules/mbscasestr (Dependencies): Likewise.
16626         * modules/mbschr (Dependencies): Likewise.
16627         * modules/mbscspn (Dependencies): Likewise.
16628         * modules/mbsinit (Dependencies): Likewise.
16629         * modules/mbsncasecmp (Dependencies): Likewise.
16630         * modules/mbsnrtowcs (Dependencies): Likewise.
16631         * modules/mbspbrk (Dependencies): Likewise.
16632         * modules/mbspcasecmp (Dependencies): Likewise.
16633         * modules/mbsrchr (Dependencies): Likewise.
16634         * modules/mbsrtowcs (Dependencies): Likewise.
16635         * modules/mbsspn (Dependencies): Likewise.
16636         * modules/mbsstr (Dependencies): Likewise.
16637         * modules/nl_langinfo (Dependencies): Likewise.
16638         * modules/quotearg (Dependencies): Likewise.
16639         * modules/unicase/locale-language (Dependencies): Likewise.
16640         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
16641         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
16642         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
16643         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
16644         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
16645         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
16646         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
16647         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
16648         * modules/vasnprintf-posix (Dependencies): Likewise.
16649         * modules/wcrtomb (Dependencies): Likewise.
16650         * modules/wcsnrtombs (Dependencies): Likewise.
16651         * modules/wcsrtombs (Dependencies): Likewise.
16652
16653 2011-02-12  Bruno Haible  <bruno@clisp.org>
16654
16655         setlocale: Workaround native Windows bug.
16656         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
16657         succeeds but sets LC_CTYPE to "C", report a failure.
16658         * tests/test-setlocale2.sh: New file.
16659         * tests/test-setlocale2.c: New file.
16660         * modules/setlocale-tests (Files): Add the new files.
16661         (Makefile.am): Enable test-setlocale2.sh test.
16662         * doc/posix-functions/setlocale.texi: Mention workaround.
16663
16664 2011-02-11  Bruno Haible  <bruno@clisp.org>
16665
16666         Tests for module 'setlocale'.
16667         * modules/setlocale-tests: New file.
16668         * tests/test-setlocale1.sh: New file.
16669         * tests/test-setlocale1.c: New file.
16670
16671         New module 'setlocale'.
16672         * lib/locale.in.h (setlocale): New declaration.
16673         * lib/setlocale.c: New file, based on
16674         gettext/gettext-runtime/intl/setlocale.c.
16675         * m4/setlocale.m4: New file.
16676         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
16677         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
16678         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
16679         REPLACE_SETLOCALE.
16680         * modules/setlocale: New file.
16681         * tests/test-locale-c++.cc: Test the declaration of setlocale.
16682         * doc/posix-functions/setlocale.texi: Mention the new module.
16683
16684 2011-02-11  Bruno Haible  <bruno@clisp.org>
16685
16686         Prepare for locale dependent tests on mingw.
16687         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
16688         because it has the wrong locale encoding.
16689         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
16690         French_France.1252 instead of "fr".
16691         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
16692         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
16693         because it has the wrong locale encoding.
16694         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
16695         native Windows, try Turkish_Turkey.65001.
16696         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
16697         Chinese_China.54936.
16698
16699         Prepare for locale dependent tests on mingw.
16700         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
16701         differently.
16702         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16703         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16704         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16705         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16706
16707 2011-02-11  Eric Blake  <eblake@redhat.com>
16708
16709         strptime: avoid compiler warnings
16710         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
16711         compiler warnings about dead code.
16712         Reported by Daniel P. Berrange.
16713
16714 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
16715
16716         doc: update users.txt
16717         * users.txt: Add rcs.
16718
16719 2011-02-10  John W. Eaton  <jwe@gnu.org>
16720
16721         doc: update users.txt
16722         * users.txt: Add octave.
16723
16724 2011-02-10  Jim Meyering  <meyering@redhat.com>
16725
16726         doc: update users.txt
16727         * users.txt: Add iwhd.
16728
16729 2011-02-09  Bruno Haible  <bruno@clisp.org>
16730
16731         gnulib-tool: Make copyright notice adjustment more robust.
16732         * gnulib-tool (func_import): In sed_transform_main_lib_file,
16733         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
16734         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
16735         License".
16736         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
16737
16738 2011-02-06  Bruno Haible  <bruno@clisp.org>
16739
16740         New module 'towctrans'.
16741         * modules/towctrans: New file.
16742         * lib/wctype.in.h (towctrans): New declaration.
16743         * lib/towctrans.c: New file.
16744         * lib/towctrans-impl.h: New file.
16745         * m4/towctrans.m4: New file.
16746         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
16747         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
16748         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
16749         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
16750         * doc/posix-functions/towctrans.texi: Mention the new module.
16751
16752 2011-02-06  Bruno Haible  <bruno@clisp.org>
16753
16754         New module 'wctrans'.
16755         * modules/wctrans: New file.
16756         * lib/wctype.in.h (wctrans): New declaration.
16757         * lib/wctrans.c: New file.
16758         * lib/wctrans-impl.h: New file.
16759         * m4/wctrans.m4: New file.
16760         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
16761         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
16762         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
16763         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
16764         * doc/posix-functions/wctrans.texi: Mention the new module.
16765
16766 2011-02-06  Bruno Haible  <bruno@clisp.org>
16767
16768         New module 'iswctype'.
16769         * modules/iswctype: New file.
16770         * lib/wctype.in.h (iswctype): New declaration.
16771         * lib/iswctype.c: New file.
16772         * lib/iswctype-impl.h: New file.
16773         * m4/iswctype.m4: New file.
16774         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
16775         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
16776         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
16777         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
16778         * doc/posix-functions/iswctype.texi: Mention the new module and the
16779         HP-UX 11.00 problem.
16780
16781 2011-02-06  Bruno Haible  <bruno@clisp.org>
16782
16783         New module 'wctype'.
16784         * modules/wctype: Change to represent the wctype() substitute.
16785         * lib/wctype.in.h (wctype): New declaration.
16786         * lib/wctype.c: New file.
16787         * lib/wctype-impl.h: New file.
16788         * m4/wctype.m4: New file.
16789         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
16790         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
16791         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
16792         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
16793         * doc/posix-functions/wctype.texi: Mention the new module and the
16794         HP-UX 11.00 problem.
16795
16796 2011-02-06  Bruno Haible  <bruno@clisp.org>
16797
16798         wctype-h: Ensure wctype_t and wctrans_t are defined.
16799         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
16800         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16801         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16802         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
16803         HAVE_WCTRANS_T.
16804         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
16805
16806 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16807
16808         flock: fix license typo
16809
16810         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
16811         omitted.
16812
16813 2011-02-08  Bruno Haible  <bruno@clisp.org>
16814
16815         Split large sed scripts, for HP-UX sed.
16816         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
16817         to avoid HP-UX limit of 99 commands, in the near future.
16818         * modules/stdlib (Makefile.am): Likewise.
16819         * modules/unistd (Makefile.am): Likewise.
16820         * modules/wchar (Makefile.am): Likewise.
16821         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16822         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
16823         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
16824
16825 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16826             Bruno Haible  <bruno@clisp.org>
16827
16828         stdlib: improve random_r modularization
16829         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
16830         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
16831         you also need the random_r module to get this material right.
16832         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
16833         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
16834         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
16835
16836 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16837
16838         stdlib: don't depend on stdint
16839         * lib/stdlib.in.h: Don't include <stdint.h> merely because
16840         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
16841         be independent of whether stdint.h is needed.
16842         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
16843         here, instead of ...
16844         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
16845         struct random_data should be using the random_r module, not just
16846         the stdlib module (which wouldn't make sense: what package needs
16847         just struct random_data without also needing random_r?).
16848         * modules/stdlib (Depends-on): Remove stdint.
16849
16850         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
16851         See the thread rooted at
16852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
16853         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
16854         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
16855         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
16856         __VMS)); previously it was always included (via fcntl--.h).
16857         (getloadavg): Do not use c_strtod.  Instead, approximate it by
16858         hand; this is good enough for load averages.  Also, do not use
16859         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
16860         flags directly if available and don't bother otherwise.  (Packages
16861         that need the extra reliability should use the modules that define
16862         these flags on older platforms that lack them.)
16863         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
16864         fcntl-safer.
16865
16866 2011-02-08  Jim Meyering  <meyering@redhat.com>
16867
16868         di-set.h, ino-map.h: add multiple-inclusion guard
16869         Technically, the guard is required only for ino-map.h, due to its
16870         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
16871         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
16872         * lib/ino-map.h: Likewise.
16873
16874 2011-02-06  Bruno Haible  <bruno@clisp.org>
16875
16876         iswblank: Ensure declaration on glibc systems.
16877         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
16878         * modules/iswblank (Dependencies): Add 'extensions'.
16879         * doc/posix-functions/iswblank.texi: Document the glibc problem.
16880
16881 2011-02-06  Bruno Haible  <bruno@clisp.org>
16882
16883         New module 'iswblank'.
16884         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
16885         * modules/iswblank: New file.
16886         * modules/wctype-h (Files): Remove lib/iswblank.c.
16887         (Makefile.am): Substitute GNULIB_ISWBLANK.
16888         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
16889         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
16890         (gl_WCTYPE_H_DEFAULTS): New macro.
16891         (gl_WCTYPE_H): Require it. Remove iswblank related code.
16892         * modules/iswblank-tests: New file.
16893         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
16894         * tests/test-wctype-h.c (main): Remove iswblank tests.
16895         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
16896         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
16897         of 'wctype-h'.
16898         * NEWS: Mention the change.
16899         * modules/mbchar (Depends-on): Add iswblank.
16900
16901 2011-02-08  Bruno Haible  <bruno@clisp.org>
16902
16903         di-set tests: Refactor.
16904         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
16905         unnecessary includes.
16906         (ASSERT): Remove macro.
16907         (main): Make C90 compliant by avoiding variable declaration after
16908         statement.
16909         * modules/di-set-tests (Files): Add tests/macros.h.
16910
16911 2011-02-08  Bruno Haible  <bruno@clisp.org>
16912
16913         ino-map tests: Refactor.
16914         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
16915         unnecessary includes.
16916         (ASSERT): Remove macro.
16917         (main): Make C90 compliant by avoiding variable declaration after
16918         statement.
16919         * modules/ino-map-tests (Files): Add tests/macros.h.
16920
16921 2011-02-08  Jim Meyering  <meyering@redhat.com>
16922
16923         di-set: add "const" to a cast
16924         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
16925         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
16926
16927 2011-02-06  Bruno Haible  <bruno@clisp.org>
16928
16929         Rename module 'wctype' to 'wctype-h'.
16930         * modules/wctype-h: Renamed from modules/wctype.
16931         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
16932         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
16933         (Files, Depends-on, Makefile.am): Update.
16934         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
16935         (Files, Makefile.am): Update.
16936         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
16937         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
16938         * doc/posix-headers/wctype.texi: Update.
16939         * doc/posix-functions/iswalnum.texi: Update.
16940         * doc/posix-functions/iswalpha.texi: Update.
16941         * doc/posix-functions/iswblank.texi: Update.
16942         * doc/posix-functions/iswcntrl.texi: Update.
16943         * doc/posix-functions/iswdigit.texi: Update.
16944         * doc/posix-functions/iswgraph.texi: Update.
16945         * doc/posix-functions/iswlower.texi: Update.
16946         * doc/posix-functions/iswprint.texi: Update.
16947         * doc/posix-functions/iswpunct.texi: Update.
16948         * doc/posix-functions/iswspace.texi: Update.
16949         * doc/posix-functions/iswupper.texi: Update.
16950         * doc/posix-functions/iswxdigit.texi: Update.
16951         * doc/posix-functions/towlower.texi: Update.
16952         * doc/posix-functions/towupper.texi: Update.
16953         * NEWS: Mention the change.
16954         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
16955         * modules/mbchar (Dependencies): Likewise.
16956         * modules/mbswidth (Dependencies): Likewise.
16957         * modules/quotearg (Dependencies): Likewise.
16958         * modules/regex (Dependencies): Likewise.
16959         * modules/wcscasecmp (Dependencies): Likewise.
16960         * modules/wcsncasecmp (Dependencies): Likewise.
16961         * modules/wcwidth (Dependencies): Likewise.
16962
16963 2011-02-06  Bruno Haible  <bruno@clisp.org>
16964
16965         New module 'wcswidth'.
16966         * modules/wcswidth: New file.
16967         * lib/wchar.in.h (wcswidth): New declaration.
16968         * lib/wcswidth.c: New file.
16969         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
16970         * m4/wcswidth.m4: New file.
16971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
16972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
16973         REPLACE_WCSWIDTH.
16974         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
16975         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
16976         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
16977         * doc/posix-functions/wcswidth.texi: Mention the new module.
16978
16979 2011-02-06  Bruno Haible  <bruno@clisp.org>
16980
16981         New module 'wcstok'.
16982         * modules/wcstok: New file.
16983         * lib/wchar.in.h (wcstok): New declaration.
16984         * lib/wcstok.c: New file.
16985         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
16986         * m4/wcstok.m4: New file.
16987         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
16988         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
16989         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
16990         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
16991         * doc/posix-functions/wcstok.texi: Mention the new module.
16992
16993 2011-02-06  Bruno Haible  <bruno@clisp.org>
16994
16995         New module 'wcsstr'.
16996         * modules/wcsstr: New file.
16997         * lib/wchar.in.h (wcsstr): New declaration.
16998         * lib/wcsstr.c: New file.
16999         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
17000         * m4/wcsstr.m4: New file.
17001         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
17002         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
17003         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
17004         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
17005         * doc/posix-functions/wcsstr.texi: Mention the new module.
17006
17007 2011-02-06  Bruno Haible  <bruno@clisp.org>
17008
17009         New module 'wcspbrk'.
17010         * modules/wcspbrk: New file.
17011         * lib/wchar.in.h (wcspbrk): New declaration.
17012         * lib/wcspbrk.c: New file.
17013         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
17014         * m4/wcspbrk.m4: New file.
17015         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
17016         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
17017         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
17018         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
17019         * doc/posix-functions/wcspbrk.texi: Mention the new module.
17020
17021 2011-02-06  Bruno Haible  <bruno@clisp.org>
17022
17023         New module 'wcsspn'.
17024         * modules/wcsspn: New file.
17025         * lib/wchar.in.h (wcsspn): New declaration.
17026         * lib/wcsspn.c: New file.
17027         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
17028         * m4/wcsspn.m4: New file.
17029         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
17030         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
17031         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
17032         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
17033         * doc/posix-functions/wcsspn.texi: Mention the new module.
17034
17035 2011-02-06  Bruno Haible  <bruno@clisp.org>
17036
17037         New module 'wcscspn'.
17038         * modules/wcscspn: New file.
17039         * lib/wchar.in.h (wcscspn): New declaration.
17040         * lib/wcscspn.c: New file.
17041         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
17042         * m4/wcscspn.m4: New file.
17043         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
17044         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
17045         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
17046         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
17047         * doc/posix-functions/wcscspn.texi: Mention the new module.
17048
17049 2011-02-06  Bruno Haible  <bruno@clisp.org>
17050
17051         New module 'wcsrchr'.
17052         * modules/wcsrchr: New file.
17053         * lib/wchar.in.h (wcsrchr): New declaration.
17054         * lib/wcsrchr.c: New file.
17055         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
17056         * m4/wcsrchr.m4: New file.
17057         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
17058         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
17059         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
17060         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
17061         * doc/posix-functions/wcsrchr.texi: Mention the new module.
17062
17063 2011-02-06  Bruno Haible  <bruno@clisp.org>
17064
17065         New module 'wcschr'.
17066         * modules/wcschr: New file.
17067         * lib/wchar.in.h (wcschr): New declaration.
17068         * lib/wcschr.c: New file.
17069         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
17070         * m4/wcschr.m4: New file.
17071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
17072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
17073         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
17074         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
17075         * doc/posix-functions/wcschr.texi: Mention the new module.
17076
17077 2011-02-06  Bruno Haible  <bruno@clisp.org>
17078
17079         New module 'wcsdup'.
17080         * modules/wcsdup: New file.
17081         * lib/wchar.in.h (wcsdup): New declaration.
17082         * lib/wcsdup.c: New file.
17083         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
17084         * m4/wcsdup.m4: New file.
17085         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
17086         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
17087         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
17088         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
17089         * doc/posix-functions/wcsdup.texi: Mention the new module.
17090
17091 2011-02-06  Bruno Haible  <bruno@clisp.org>
17092
17093         New module 'wcsxfrm'.
17094         * modules/wcsxfrm: New file.
17095         * lib/wchar.in.h (wcsxfrm): New declaration.
17096         * lib/wcsxfrm.c: New file.
17097         * lib/wcsxfrm-impl.h: New file.
17098         * m4/wcsxfrm.m4: New file.
17099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
17100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
17101         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
17102         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
17103         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
17104
17105 2011-02-06  Bruno Haible  <bruno@clisp.org>
17106
17107         New module 'wcscoll'.
17108         * modules/wcscoll: New file.
17109         * lib/wchar.in.h (wcscoll): New declaration.
17110         * lib/wcscoll.c: New file.
17111         * lib/wcscoll-impl.h: New file.
17112         * m4/wcscoll.m4: New file.
17113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
17114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
17115         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
17116         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
17117         * doc/posix-functions/wcscoll.texi: Mention the new module.
17118
17119 2011-02-06  Bruno Haible  <bruno@clisp.org>
17120
17121         New module 'wcsncasecmp'.
17122         * modules/wcsncasecmp: New file.
17123         * lib/wchar.in.h (wcsncasecmp): New declaration.
17124         * lib/wcsncasecmp.c: New file.
17125         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
17126         * m4/wcsncasecmp.m4: New file.
17127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
17128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
17129         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
17130         HAVE_WCSNCASECMP.
17131         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
17132         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
17133
17134 2011-02-06  Bruno Haible  <bruno@clisp.org>
17135
17136         New module 'wcscasecmp'.
17137         * modules/wcscasecmp: New file.
17138         * lib/wchar.in.h (wcscasecmp): New declaration.
17139         * lib/wcscasecmp.c: New file.
17140         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
17141         * m4/wcscasecmp.m4: New file.
17142         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
17143         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
17144         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
17145         HAVE_WCSCASECMP.
17146         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
17147         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
17148
17149 2011-02-05  Bruno Haible  <bruno@clisp.org>
17150
17151         New module 'wcsncmp'.
17152         * modules/wcsncmp: New file.
17153         * lib/wchar.in.h (wcsncmp): New declaration.
17154         * lib/wcsncmp.c: New file.
17155         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
17156         * m4/wcsncmp.m4: New file.
17157         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
17158         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
17159         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
17160         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
17161         * doc/posix-functions/wcsncmp.texi: Mention the new module.
17162
17163 2011-02-05  Bruno Haible  <bruno@clisp.org>
17164
17165         New module 'wcscmp'.
17166         * modules/wcscmp: New file.
17167         * lib/wchar.in.h (wcscmp): New declaration.
17168         * lib/wcscmp.c: New file.
17169         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
17170         * m4/wcscmp.m4: New file.
17171         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
17172         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
17173         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
17174         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
17175         * doc/posix-functions/wcscmp.texi: Mention the new module.
17176
17177 2011-02-05  Bruno Haible  <bruno@clisp.org>
17178
17179         New module 'wcsncat'.
17180         * modules/wcsncat: New file.
17181         * lib/wchar.in.h (wcsncat): New declaration.
17182         * lib/wcsncat.c: New file.
17183         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
17184         * m4/wcsncat.m4: New file.
17185         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
17186         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
17187         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
17188         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
17189         * doc/posix-functions/wcsncat.texi: Mention the new module.
17190
17191 2011-02-05  Bruno Haible  <bruno@clisp.org>
17192
17193         New module 'wcscat'.
17194         * modules/wcscat: New file.
17195         * lib/wchar.in.h (wcscat): New declaration.
17196         * lib/wcscat.c: New file.
17197         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
17198         * m4/wcscat.m4: New file.
17199         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
17200         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
17201         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
17202         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
17203         * doc/posix-functions/wcscat.texi: Mention the new module.
17204
17205 2011-02-05  Bruno Haible  <bruno@clisp.org>
17206
17207         New module 'wcpncpy'.
17208         * modules/wcpncpy: New file.
17209         * lib/wchar.in.h (wcpncpy): New declaration.
17210         * lib/wcpncpy.c: New file.
17211         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
17212         * m4/wcpncpy.m4: New file.
17213         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
17214         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
17215         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
17216         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
17217         * doc/posix-functions/wcpncpy.texi: Mention the new module.
17218
17219 2011-02-05  Bruno Haible  <bruno@clisp.org>
17220
17221         New module 'wcsncpy'.
17222         * modules/wcsncpy: New file.
17223         * lib/wchar.in.h (wcsncpy): New declaration.
17224         * lib/wcsncpy.c: New file.
17225         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
17226         * m4/wcsncpy.m4: New file.
17227         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
17228         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
17229         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
17230         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
17231         * doc/posix-functions/wcsncpy.texi: Mention the new module.
17232
17233 2011-02-05  Bruno Haible  <bruno@clisp.org>
17234
17235         New module 'wcpcpy'.
17236         * modules/wcpcpy: New file.
17237         * lib/wchar.in.h (wcpcpy): New declaration.
17238         * lib/wcpcpy.c: New file.
17239         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
17240         * m4/wcpcpy.m4: New file.
17241         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
17242         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
17243         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
17244         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
17245         * doc/posix-functions/wcpcpy.texi: Mention the new module.
17246
17247 2011-02-05  Bruno Haible  <bruno@clisp.org>
17248
17249         New module 'wcscpy'.
17250         * modules/wcscpy: New file.
17251         * lib/wchar.in.h (wcscpy): New declaration.
17252         * lib/wcscpy.c: New file.
17253         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
17254         * m4/wcscpy.m4: New file.
17255         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
17256         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
17257         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
17258         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
17259         * doc/posix-functions/wcscpy.texi: Mention the new module.
17260
17261 2011-02-05  Bruno Haible  <bruno@clisp.org>
17262
17263         New module 'wcsnlen'.
17264         * modules/wcsnlen: New file.
17265         * lib/wchar.in.h (wcsnlen): New declaration.
17266         * lib/wcsnlen.c: New file.
17267         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
17268         * m4/wcsnlen.m4: New file.
17269         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
17270         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
17271         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
17272         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
17273         * doc/posix-functions/wcsnlen.texi: Mention the new module.
17274
17275 2011-02-05  Bruno Haible  <bruno@clisp.org>
17276
17277         New module 'wcslen'.
17278         * modules/wcslen: New file.
17279         * lib/wchar.in.h (wcslen): New declaration.
17280         * lib/wcslen.c: New file.
17281         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
17282         * m4/wcslen.m4: New file.
17283         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
17284         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
17285         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
17286         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
17287         * doc/posix-functions/wcslen.texi: Mention the new module.
17288
17289 2011-02-05  Bruno Haible  <bruno@clisp.org>
17290
17291         New module 'wmemset'.
17292         * modules/wmemset: New file.
17293         * lib/wchar.in.h (wmemset): New declaration.
17294         * lib/wmemset.c: New file.
17295         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
17296         * m4/wmemset.m4: New file.
17297         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
17298         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
17299         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
17300         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
17301         * doc/posix-functions/wmemset.texi: Mention the new module.
17302
17303 2011-02-05  Bruno Haible  <bruno@clisp.org>
17304
17305         New module 'wmemmove'.
17306         * modules/wmemmove: New file.
17307         * lib/wchar.in.h (wmemmove): New declaration.
17308         * lib/wmemmove.c: New file.
17309         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
17310         * m4/wmemmove.m4: New file.
17311         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
17312         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
17313         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
17314         HAVE_WMEMMOVE.
17315         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
17316         * doc/posix-functions/wmemmove.texi: Mention the new module.
17317
17318 2011-02-05  Bruno Haible  <bruno@clisp.org>
17319
17320         New module 'wmemcpy'.
17321         * modules/wmemcpy: New file.
17322         * lib/wchar.in.h (wmemcpy): New declaration.
17323         * lib/wmemcpy.c: New file.
17324         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
17325         * m4/wmemcpy.m4: New file.
17326         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
17327         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
17328         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
17329         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
17330         * doc/posix-functions/wmemcpy.texi: Mention the new module.
17331
17332 2011-02-05  Bruno Haible  <bruno@clisp.org>
17333
17334         New module 'wmemcmp'.
17335         * modules/wmemcmp: New file.
17336         * lib/wchar.in.h (wmemcmp): New declaration.
17337         * lib/wmemcmp.c: New file.
17338         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
17339         * m4/wmemcmp.m4: New file.
17340         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
17341         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
17342         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
17343         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
17344         * doc/posix-functions/wmemcmp.texi: Mention the new module.
17345
17346 2011-02-07  Jim Meyering  <meyering@redhat.com>
17347
17348         di-set, ino-map: new modules, from coreutils
17349         * lib/di-set.c: New file.
17350         * lib/di-set.h: Likewise.
17351         * lib/ino-map.c: Likewise.
17352         * lib/ino-map.h: Likewise.
17353         * modules/di-set: Likewise.
17354         * modules/di-set-tests: Likewise.
17355         * modules/ino-map: Likewise.
17356         * modules/ino-map-tests: Likewise.
17357         * tests/test-di-set.c: Likewise.
17358         * tests/test-ino-map.c: Likewise.
17359
17360 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17361
17362         getloadavg: merge minor changes from Emacs
17363
17364         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
17365         (getloadavg): Use memset, not bzero.
17366
17367         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
17368         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17369         clash (bug#86).
17370
17371 2010-11-14  Bruno Haible  <bruno@clisp.org>
17372
17373         Allow multiple gnulib generated replacements to coexist.
17374         * lib/getopt.in.h (struct option): Avoid identical redefinition.
17375         * lib/inttypes.in.h (imaxdiv_t): Likewise.
17376         * lib/langinfo.in.h (nl_item): Likewise.
17377         * lib/math.in.h (_NaN, NAN): Likewise.
17378         * lib/netdb.in.h (struct addrinfo): Likewise.
17379         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
17380         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
17381         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
17382         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
17383         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
17384         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
17385         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
17386         pthread_mutexattr_init, pthread_mutexattr_settype,
17387         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
17388         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
17389         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
17390         pthread_spin_trylock, pthread_spin_unlock): Likewise.
17391         * lib/sched.in.h (struct sched_param): Likewise.
17392         * lib/se-selinux.in.h (security_class_t, security_context_t,
17393         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
17394         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
17395         lsetfilecon, fsetfilecon, security_check_context,
17396         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
17397         Likewise.
17398         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
17399         Likewise.
17400         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
17401         _gl_function_taking_int_returning_void_t, union sigval,
17402         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
17403         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
17404         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17405         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
17406         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
17407         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
17408         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
17409         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
17410         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
17411         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
17412         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
17413         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
17414         socklen_t, rpl_fd_isset): Likewise.
17415         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
17416         * lib/sys_time.in.h (struct timeval): Likewise.
17417         * lib/sys_times.in.h (struct tms): Likewise.
17418         * lib/sys_utsname.in.h (struct utsname):
17419         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
17420         * lib/unistd.in.h (getpagesize): Likewise.
17421         * lib/wchar.in.h (mbstate_t): Likewise.
17422         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17423         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
17424         towlower, towupper): Likewise.
17425         Reported by Sam Steingold <sds@gnu.org>.
17426
17427 2011-02-05  Eric Blake  <eblake@redhat.com>
17428
17429         unsetenv: work around Haiku issues
17430         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
17431         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
17432
17433 2010-12-30  Bruce Korb  <bkorb@gnu.org>
17434
17435         libposix: avoid calling error() within libposix
17436         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
17437         is defined.
17438
17439 2011-02-05  Eric Blake  <eblake@redhat.com>
17440
17441         strerror_r-posix: port to cygwin
17442         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
17443         implementation.
17444         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
17445         * tests/test-strerror_r.c (main): Fix test.
17446         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17447         issue.
17448
17449 2011-02-05  Bruno Haible  <bruno@clisp.org>
17450
17451         New module 'wmemchr'.
17452         * modules/wmemchr: New file.
17453         * lib/wchar.in.h (wmemchr): New declaration.
17454         * lib/wmemchr.c: New file.
17455         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
17456         * m4/wmemchr.m4: New file.
17457         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
17458         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
17459         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
17460         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
17461         * doc/posix-functions/wmemchr.texi: Mention the new module.
17462
17463 2011-02-04  Eric Blake  <eblake@redhat.com>
17464
17465         fdopendir: detect FreeBSD bug
17466         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
17467         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
17468
17469 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17470
17471         stdbool: do not define HAVE_STDBOOL_H
17472         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
17473         AC_HEADER_STDBOOL.  All uses changed.  Do not define
17474         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
17475         imported from the latest Autoconf git.  It was motivated by Emacs,
17476         which uses gnulib but does not need HAVE_STDBOOL_H.
17477
17478 2011-02-04  Bruno Haible  <bruno@clisp.org>
17479
17480         wcsnrtombs: Prepare for new module wwcsnrtombs.
17481         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
17482         * lib/wcsnrtombs.c: Include it.
17483         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
17484
17485         wcsrtombs: Prepare for new module wwcsrtombs.
17486         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
17487         * lib/wcsrtombs.c: Include it.
17488         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
17489
17490         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
17491         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
17492         * lib/mbsnrtowcs.c: Include it.
17493         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
17494
17495         mbsrtowcs: Prepare for new module mbsrtowwcs.
17496         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
17497         * lib/mbsrtowcs.c: Include it.
17498         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
17499
17500 2011-02-04  Bruno Haible  <bruno@clisp.org>
17501
17502         vasnprintf: Reduce use of malloc for small format strings.
17503         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
17504         (arguments): Add room for the first 7 arguments.
17505         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
17506         (char_directives, u8_directives, u16_directives, u32_directives): Add
17507         room for the first 7 directives.
17508         * lib/printf-parse.c: Include <string.h>.
17509         (PRINTF_PARSE): Change memory handling code so that it uses the first
17510         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
17511         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
17512         Reported by Pádraig Brady <P@draigbrady.com>.
17513
17514 2011-01-31  Eric Blake  <eblake@redhat.com>
17515
17516         dup2: work around Haiku bug
17517         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
17518         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
17519         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17520         * tests/test-dup2.c (main): Enhance test.
17521
17522 2011-01-31  Simon Josefsson  <simon@josefsson.org>
17523
17524         doc: off_t is not available in eglibc 2.11.2 stdio.h.
17525         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
17526         declared by eglibc 2.11.2.
17527         * lib/stdio.in.h: Likewise.
17528
17529 2011-01-31  Eric Blake  <eblake@redhat.com>
17530
17531         ignore-value: add missing test dependency
17532         * tests/test-ignore-value.c: Revert previous change; stdio.h
17533         provides off_t.
17534         * modules/ignore-value-tests (Depends-on): Add missing dependency.
17535
17536 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17537
17538         mktime: clarify long_int width checking
17539         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
17540         the top level, to make it clearer that the assumption about
17541         long_int width is being checked.  See
17542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
17543
17544 2011-01-30  Simon Josefsson  <simon@josefsson.org>
17545
17546         ignore-value: Fix self-test.
17547         * tests/test-ignore-value.c: Include sys/types.h for off_t.
17548
17549 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17550
17551         TYPE_MAXIMUM: avoid theoretically undefined behavior
17552         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
17553         negative number, which the C Standard says has undefined behavior.
17554         In practice this is not a problem, but might as well do it by the book.
17555         Reported by Rich Felker and Eric Blake; see
17556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
17557         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
17558         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17559         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17560         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
17561         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17562         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
17563
17564         mktime: #undef mktime before #defining it
17565         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
17566
17567         mktime: systematically normalize tm_isdst comparisons
17568         * lib/mktime.c (isdst_differ): New function.
17569         (__mktime_internal): Use it systematically for all isdst comparisons.
17570         This completes the fix for libc BZ #6723, and removes the need for
17571         normalizing tm_isdst.  See
17572         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
17573         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
17574
17575         mktime: fix some integer overflow issues and sidestep the rest
17576
17577         This was prompted by a bug report by Benjamin Lindner for MinGW
17578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
17579         His bug is due to signed integer overflow (0 - INT_MIN), and I
17580         I scanned through mktime.c looking for other integer overflow
17581         problems, fixing all the bugs I found.
17582
17583         Although the C Standard says the resulting code is still not safe
17584         in the presence of integer overflow, in practice it should be good
17585         enough for all real-world two's-complement implementations, except
17586         for debugging environments that deliberately trap on integer
17587         overflow (e.g., gcc -ftrapv).
17588
17589         * lib/mktime.c (WRAPV): New macro.
17590         (SHR): Also check that long_int and time_t shift right in the
17591         usual way, before using the fast-but-unportable method.
17592         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
17593         used.  The code already assumed two's complement, so there's
17594         no need to test for alternatives.  All uses removed.
17595         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
17596         the C standard.  Problem reported by Rich Felker in
17597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
17598         (twos_complement_arithmetic): Also check long_int and time_t.
17599         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
17600         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
17601         (__mktime_internal): Avoid integer overflow with unary subtraction
17602         in two instances where -1 - X is an adequate replacement for -X,
17603         since the calculations are approximate.
17604
17605 2011-01-29  Eric Blake  <eblake@redhat.com>
17606
17607         mktime: avoid infinite loop
17608         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
17609         type; behavior is still undefined but portable to all known targets.
17610         Reported by Rich Felker.
17611
17612 2011-01-29  Simon Josefsson  <simon@josefsson.org>
17613
17614         rename, unlink, same-inode: Relicense.
17615         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
17616         * modules/unlink (License): Likewise.
17617         * modules/same-inode (License): Likewise.
17618
17619 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17620
17621         mktime: avoid problems on NetBSD 5 / i386
17622         * lib/mktime.c (long_int): New type.  This works around a problem
17623         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
17624         but time_t is 64 bits, and where I expect the existing code is
17625         wrong in some cases.
17626         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
17627         (ydhms_diff): Bring back the compile-time check for wide-enough
17628         year and yday.
17629
17630         mktime: fix misspelling in comment
17631         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
17632         This merges all recent glibc changes of importance.
17633
17634 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17635
17636         move-if-change: cope with concurrent mv of identical file.
17637         * build-aux/move-if-change (CMPPROG): Accept environment
17638         variable as an override for `cmp'.
17639         (usage): Document CMPPROG.
17640         Adjust comparison to drop stdout.  Cope with failure of mv if
17641         the target file exists and is identical to the source, for
17642         parallel builds.
17643         Report from H.J. Lu against binutils in PR binutils/12283.
17644
17645 2011-01-28  Bruce Korb  <bkorb@gnu.org>
17646
17647         * users.txt: Mention sharutils.
17648
17649 2011-01-28  Simon Josefsson  <simon@josefsson.org>
17650
17651         * users.txt: Mention OATH Toolkit.
17652
17653 2011-01-27  Bruno Haible  <bruno@clisp.org>
17654
17655         Prepare for supporting FreeBSD 10.
17656         * build-aux/config.libpath: Remove handling of freebsd1*.
17657
17658 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
17659
17660         Prepare for supporting FreeBSD 10.
17661         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
17662         match FreeBSD 10.0.
17663
17664 2011-01-27  Bruno Haible  <bruno@clisp.org>
17665
17666         vma-iter, get-rusage-as: Add OpenBSD support.
17667         * modules/vma-iter (configure.ac): Test for mquery.
17668         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
17669         * lib/vma-iter.c: Include <sys/mman.h>.
17670         (vma_iterate): Add an implementation based on mquery().
17671         * lib/resource-ext.h (get_rusage_as): Update comments.
17672         * lib/get-rusage-as.c: Likewise.
17673         * lib/get-rusage-data.c: Likewise.
17674
17675 2011-01-26  Karl Berry  <karl@gnu.org>
17676
17677         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
17678         variables to make it easier to override the makeinfo program used.
17679
17680 2011-01-26  Eric Blake  <eblake@redhat.com>
17681
17682         fcntl: work around Haiku F_DUPFD bugs
17683         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
17684         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
17685         cloexec bit on duplication.
17686         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
17687
17688 2011-01-26  Bruno Haible  <bruno@clisp.org>
17689
17690         Enable memory leak tests on AIX.
17691         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
17692         * tests/test-fprintf-posix3.c (main): Likewise.
17693
17694 2011-01-26  Bruno Haible  <bruno@clisp.org>
17695
17696         Tests for module 'get-rusage-data'.
17697         * modules/get-rusage-data-tests: New file.
17698         * tests/test-get-rusage-data.c: New file.
17699
17700         New module 'get-rusage-data'.
17701         * lib/resource-ext.h (get_rusage_data): New declaration.
17702         * lib/get-rusage-data.c: New file.
17703         * modules/get-rusage-data: New file.
17704
17705 2011-01-25  Bruno Haible  <bruno@clisp.org>
17706
17707         get-rusage-as: Allow for easier testing.
17708         * lib/resource-ext.h (get_rusage_as): Add comment.
17709         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
17710         (main): New function for interactive testing.
17711
17712 2011-01-25  Bruno Haible  <bruno@clisp.org>
17713
17714         vma-iter: Treat Haiku like BeOS.
17715         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
17716         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
17717
17718 2011-01-25  Eric Blake  <eblake@redhat.com>
17719
17720         c-stack: fix regression on cygwin when libsigsegv is present
17721         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
17722
17723 2011-01-24  Bruno Haible  <bruno@clisp.org>
17724
17725         vma-iter: Avoid empty intervals.
17726         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
17727         on an empty interval.
17728
17729 2011-01-24  Jim Meyering  <meyering@redhat.com>
17730
17731         u64: remove unnecessary #include
17732         * lib/u64.h: Don't include <stddef.h>.  It was not used.
17733
17734 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17735
17736         Allow the user to avoid the HAVE_RAW_DECL_* macros.
17737         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
17738
17739 2011-01-23  Bruno Haible  <bruno@clisp.org>
17740
17741         New module 'vma-iter'.
17742         * lib/vma-iter.h: New file.
17743         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
17744         * modules/vma-iter: New file.
17745         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
17746         for get_rusage_as_via_iterator.
17747         (vma_iterate_callback): New function.
17748         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
17749         * modules/get-rusage-as (Depends-on): Add vma-iter.
17750
17751 2011-01-23  Bruno Haible  <bruno@clisp.org>
17752
17753         uninorm: Tweak includes.
17754         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
17755         Reported by Jim Meyering.
17756
17757 2011-01-23  Bruno Haible  <bruno@clisp.org>
17758
17759         get-rusage-as: Improve on NetBSD.
17760         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
17761         /proc, like on FreeBSD.
17762
17763 2011-01-23  Jim Meyering  <meyering@redhat.com>
17764
17765         xreadlink.h: remove unnecessary #include
17766         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
17767
17768         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
17769         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
17770
17771 2011-01-23  Bruno Haible  <bruno@clisp.org>
17772
17773         get-rusage-as: Fix bug.
17774         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
17775         original limit when aborting the first loop.
17776
17777 2011-01-23  Bruno Haible  <bruno@clisp.org>
17778
17779         wctype: Ensure valid C syntax.
17780         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
17781         unconditionally, instead of gl_NEXT_HEADERS conditionally.
17782
17783 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17784
17785         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
17786         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
17787         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
17788         as they are needed only for configure's test case.
17789         This removes two unnecessary symbols from config.h.
17790
17791         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
17792         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
17793         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
17794         AC_CHECK_HEADERS_ONCE on a header that we also invoke
17795         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
17796         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
17797         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
17798         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
17799         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17800         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17801         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17802         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17803         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17804         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17805         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
17806         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17807         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17808         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17809
17810 2011-01-21  Eric Blake  <eblake@redhat.com>
17811
17812         maintainer-makefile: work with older git for submodule check
17813         * top/maint.mk (public-submodule-commit): Rewrite to avoid
17814         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
17815         Reported by Matthias Bolte.
17816
17817         bootstrap: minor portability fixes
17818         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
17819         (usage): Omit leading capital and trailing . on help phrases, per
17820         GNU Coding Standards.
17821         (check_versions, top level): Prefix messages with script name.
17822
17823 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
17824
17825         bootstrap: support --no-git option
17826         * build-aux/bootstrap: Add --no-git option, to be used when
17827         --gnulib-srcdir points to the exact desired checkout.
17828
17829 2011-01-21  Eric Blake  <eblake@redhat.com>
17830
17831         strerror_r-posix: work with glibc 2.13
17832         * lib/strerror_r.c (strerror_r): Fix return type.
17833
17834 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17835             Bruno Haible  <bruno@clisp.org>
17836
17837         uN_strstr: New unit tests.
17838         * modules/unistr/u8-strstr-tests: New file.
17839         * modules/unistr/u16-strstr-tests: New file.
17840         * modules/unistr/u32-strstr-tests: New file.
17841         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
17842         * tests/unistr/test-u8-strstr.c: New file.
17843         * tests/unistr/test-u16-strstr.c: New file.
17844         * tests/unistr/test-u32-strstr.c: New file.
17845
17846 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17847             Bruno Haible  <bruno@clisp.org>
17848
17849         Make uN_strstr functions O(n) worst-case.
17850         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
17851         16-bit and 32-bit unit cases, use the unibyte algorithm from
17852         lib/mbsstr.c.
17853         * lib/unistr/u8-strstr.c: Include <string.h>.
17854         (UNIT_IS_UINT8_T): New macro.
17855         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
17856         (U_STRLEN, U_STRNLEN): New macros.
17857         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
17858         (U_STRLEN, U_STRNLEN): New macros.
17859         * modules/unistr/u8-strstr (Depends-on): Add strstr.
17860         (configure.ac): Update required libunistring version.
17861         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
17862         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
17863         malloca.
17864         (configure.ac): Update required libunistring version.
17865         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
17866         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
17867         malloca.
17868         (configure.ac): Update required libunistring version.
17869
17870 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17871             Bruno Haible  <bruno@clisp.org>
17872
17873         Prepare for faster uN_strstr functions.
17874         * lib/str-kmp.h: Support definable UNITs.
17875         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
17876         needle_len argument.
17877         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
17878         * lib/mbscasestr.c (mbscasestr): Likewise.
17879
17880 2011-01-21  Pádraig Brady <P@draigBrady.com>
17881
17882         malloca-tests: make faster by unsetting MALLOC_PERTURB_
17883         * tests/test-malloca.c (main): Unset the environment variable
17884         to greatly speed up the test.
17885         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
17886         * modules/malloca-tests: Depend on unsetenv.
17887
17888 2011-01-21  Pádraig Brady <P@draigBrady.com>
17889
17890         ignore-value: remove stdint dependency
17891         * lib/ignore-value.h: Remove <stdint.h>
17892         * modules/ignore-value: Remove stdint dependency.
17893
17894 2011-01-21  Jim Meyering  <meyering@redhat.com>
17895
17896         maint.mk: adjust variable name to be consistent with other gl_ vars
17897         * top/maint.mk (gl_public_submodule_commit): Rename the variable
17898         to be lower case.
17899
17900 2011-01-20  Jim Meyering  <meyering@redhat.com>
17901
17902         maint.mk: make "check" depend on public-submodule-commit by default
17903         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
17904
17905 2011-01-20  Bruno Haible  <bruno@clisp.org>
17906
17907         mbfile, mbiter: Complete change from 2008-12-21.
17908         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
17909         * m4/mbiter.m4 (gl_MBITER): Likewise.
17910
17911 2011-01-20  Jim Meyering  <meyering@redhat.com>
17912
17913         init.sh: insert space between each function name and "()"
17914         * tests/init.sh: Make it a little easier to see that a function's
17915         name is "warn_", and not "warn" when looking at the first part of
17916         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
17917
17918 2011-01-20  Jim Meyering  <meyering@redhat.com>
17919
17920         mountlist: clean up code formatting
17921         * lib/mountlist.c (read_file_system_list): Split a long line,
17922         correct bracing style, use NULL in place of "(struct statfs *)0",
17923         don't parenthesize return value, add spaces around "=" and after
17924         ";-in-for-stmt".
17925
17926 2011-01-14  Markus Duft <mduft@gentoo.org>
17927
17928         mountlist: add support for Interix
17929         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
17930         Apply statvfs to all entries of /dev/fs.
17931         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
17932         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
17933
17934 2011-01-20  Jim Meyering  <meyering@redhat.com>
17935
17936         maint.mk: improve the public-submodule-commit rule
17937         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
17938         to suppress printing of its commands... unless V=1.
17939         Add git submodule's --quiet option to suppress printing of e.g.,
17940         "Entering gnulib" output.
17941         "cd" into $(srcdir) before running git submodule.
17942
17943 2011-01-20  Bruno Haible  <bruno@clisp.org>
17944
17945         include_next: Fix bug introduced on 2011-01-18.
17946         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
17947         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
17948         ac_cv_header_... variable if the second argument is not 'check'.
17949         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
17950         gl_NEXT_HEADERS_INTERNAL.
17951
17952 2011-01-20  Bruno Haible  <bruno@clisp.org>
17953
17954         Allow the user to avoid the GNULIB_TEST_* macros.
17955         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
17956         Suggested by Paul Eggert.
17957
17958 2011-01-14  Jim Meyering  <meyering@redhat.com>
17959
17960         bootstrap: avoid failure when there is no .gitmodules file
17961         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
17962         has been assigned to, even when its value is the empty string.
17963         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
17964         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
17965         Reported by John W. Eaton <jwe@gnu.org>.
17966
17967 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17968
17969         assume <ctype.h>, ..., <time.h> exist
17970         For years gnulib has been assuming the existence of the headers
17971         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
17972         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
17973         them, since they don't appear to be needed.
17974         * README (Portability guidelines): Document this.
17975         * lib/flock.c: Assume <fcntl.h> exists.
17976         * lib/regex_internal.h: Assume <locale.h> exists.
17977         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
17978         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
17979         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
17980         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
17981         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
17982         * m4/regex.m4 (gl_REGEX): Likewise.
17983         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
17984         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
17985         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
17986         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
17987         * tests/test-argp.c: Likewise.
17988         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
17989
17990         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
17991         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
17992         AA_APPLE_UNIVERSAL_BUILD.  See
17993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
17994         * NEWS: Document this.
17995
17996 2011-01-19  Eric Blake  <eblake@redhat.com>
17997
17998         c-stack: assume stack overflow if SA_SIGINFO unsupported
17999         * lib/c-stack.c (SIGACTION_WORKS): Rename...
18000         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
18001         sigaction will work.
18002         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
18003         behavior match Linux.
18004         * tests/test-c-stack.c (main): Prefer NULL for pointers.
18005
18006         stdbool-tests: accomodate Haiku
18007         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
18008
18009         binary-io: fix O_TEXT on Haiku
18010         * modules/binary-io (Depends-on): Add fcntl-h.
18011         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
18012         than blindly undefining O_TEXT.
18013         Reported by Scott McCreary.
18014
18015 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18016
18017         include_next: do not check for standard headers like stddef.h
18018
18019         I found this problem when modifying Emacs to use gnulib.
18020         I noticed that it added HAVE_STDDEF_H to config.h, even though
18021         gnulib always assumes <stddef.h> exists as per README and this
18022         symbol is unnecessary.
18023         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
18024         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
18025         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
18026         faster for headers like stddef.h that are known to exist.
18027         (gl_CHECK_NEXT_HEADERS): Use it.
18028         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
18029         rather than gl_CHECK_NEXT_HEADERS.
18030         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
18031         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
18032
18033 2011-01-18  Eric Blake  <eblake@redhat.com>
18034
18035         ansi-c++-opt: skip C++ dependency style if C++ is unused
18036         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
18037         tests when we know C++ compilation is not desired.
18038         Reported by Scott McCreary.
18039
18040 2011-01-18  Bruno Haible  <bruno@clisp.org>
18041
18042         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
18043         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
18044         (main): Perform test also when getrlimit and setrlimit don't exist or
18045         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
18046         limiting the address space size using setrlimit, compare the address
18047         space size before and after the the test.
18048         * tests/test-dprintf-posix2.c: Likewise.
18049         * tests/test-fprintf-posix3.sh: Update skip messages.
18050         * tests/test-dprintf-posix2.sh: Likewise.
18051         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
18052         * modules/dprintf-posix-tests (Depends-on): Likewise.
18053         Reported by Bruce Korb <bkorb@gnu.org> and
18054         Gary V. Vaughan <gary@gnu.org>.
18055
18056 2011-01-18  Bruno Haible  <bruno@clisp.org>
18057
18058         get-rusage-as: Improvement for Cygwin.
18059         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
18060         areas that are merely reserved.
18061
18062 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18063
18064         strftime: remove dependencies on multibyte modules
18065
18066         strftime depended on mbrlen, mbsinit, and wchar, but these modules
18067         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
18068         only if __osf__ is defined, and I suspect OSF doesn't need these
18069         other modules.  If my guess is wrong, we'll need to come up with a
18070         variant of strftime that doesn't need the multibyte modules.
18071
18072         I discovered this problem when attempting modify Emacs to use the
18073         strftime module.  With the previous gnulib, this caused Emacs to
18074         need 31 new files, ranging from lib/config.charset to
18075         m4/wint_t.m4.  This was overkill and I expect would be offputting
18076         to the Emacs maintainers.  After this change, only 6 new files are
18077         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
18078         stdbool.m4, and tm_gmtoff.m4.
18079
18080         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
18081         Suggested by Bruno Haible in
18082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
18083         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
18084         and do not check for wchar.h.
18085         * modules/strftime (Files): Remove m4/mbstate_t.m4.
18086         (Depends-on): Remove mbrlen, mbsinit, wchar.
18087
18088 2011-01-18  Bruno Haible  <bruno@clisp.org>
18089
18090         Tests for module 'get-rusage-as'.
18091         * modules/get-rusage-as-tests: New file.
18092         * tests/test-get-rusage-as.c: New file.
18093
18094         New module 'get-rusage-as'.
18095         * modules/get-rusage-as: New file.
18096         * lib/resource-ext.h: New file.
18097         * lib/get-rusage-as.c: New file.
18098
18099 2011-01-17  Eric Blake  <eblake@redhat.com>
18100
18101         sigaction: relax license from LGPLv3+ to LGPLv2+
18102         * modules/sigaction (License): Relax to LGPLv2+.
18103
18104 2011-01-14  Bruno Haible  <bruno@clisp.org>
18105
18106         filemode: Make function declarations usable in C++ mode.
18107         * lib/filemode.h: Enclose function declarations in extern "C" block.
18108         Reported by John W. Eaton <jwe@gnu.org>.
18109
18110 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
18111
18112         save-cwd: no longer include "xgetcwd.h"
18113         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
18114         This avoids a compilation failure in projects that use save-cwd
18115         without also using the xgetcwd module.
18116
18117 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18118
18119         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
18120         This is so that a program like Emacs, which needs only dtoastr,
18121         does not have to bother with distributing and compiling ftoastr
18122         and ldtoastr.
18123         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
18124         * modules/dtoastr, modules/ldtoastr: New files.
18125         * modules/ftoastr: Now works just for 'float'.
18126         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
18127         (Makefile.am): Remove ftoastr.h (not needed and no effect),
18128         dtoastr.c, ldtoastr.c.
18129
18130 2011-01-11  Jim Meyering  <meyering@redhat.com>
18131
18132         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
18133         There is no need to work around the lack of the fchdir function,
18134         since gnulib can now provide a replacement when required.
18135         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
18136         * modules/save-cwd (Depends-on): Add fchdir.
18137
18138 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18139
18140         openat, save-cwd: avoid xmalloc
18141
18142         This removes a direct (but undocumented) dependency of openat on
18143         xalloc, along with an indirect dependency via save-cwd.  It also
18144         removes a dependency of save-cwd on xgetcwd, and thereby
18145         indirectly on xalloc.  This change causes the openat substitute
18146         to fall back on save_cwd when memory is tight, and for save_cwd to
18147         fail instead of dying when memory is tight, but that's good enough.
18148         Problem and initial idea for fix reported by Bastien Roucaries in
18149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
18150
18151         * lib/openat-proc.c: Include stdlib.h (for malloc), not
18152         xalloc.h (for xmalloc).
18153         (openat_proc_name): Use malloc, not xmalloc.
18154         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
18155         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
18156
18157         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
18158         This avoids heap allocation for file names whose lengths are in
18159         the range 512..1023, with the upper bound increasing to at most
18160         4031 depending on the platform's PATH_MAX.  (We do not want
18161         pathmax.h here as it might supply a non-constant PATH_MAX.)
18162         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
18163         Perhaps they should be moved to malloca.h?
18164         (OPENAT_BUFFER_SIZE): Use them.
18165
18166 2011-01-10  Bruno Haible  <bruno@clisp.org>
18167
18168         doc: Update users.txt.
18169         * users.txt: Add recutils.
18170
18171 2011-01-09  Karl Berry  <karl@gnu.org>
18172
18173         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
18174
18175         * doc/configmake.texi: New file.
18176         * doc/gnulib.texi: Include it.
18177         * modules/configmake: Move documentation from here.
18178
18179 2011-01-09  Bruno Haible  <bruno@clisp.org>
18180
18181         Update to Unicode 6.0.0.
18182         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
18183         (get_lbp): Update for Unicode 6.0.0.
18184         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
18185         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
18186         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
18187         U+11001, U+11038..U+11046. Remove U+06DE.
18188         (uc_width): Fix bounds of planes.
18189         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18190         lib/uniwidth/width.c.
18191         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
18192         trailing whitespace removed.
18193         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
18194         without comments, but with the original copyright notice.
18195         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
18196         * lib/unicase/ignorable.h: Likewise.
18197         * lib/unicase/tocasefold.h: Likewise.
18198         * lib/unicase/tolower.h: Likewise.
18199         * lib/unicase/totitle.h: Likewise.
18200         * lib/unicase/toupper.h: Likewise.
18201         * lib/unictype/bidi_of.h: Likewise.
18202         * lib/unictype/blocks.h: Likewise.
18203         * lib/unictype/categ_C.h: Likewise.
18204         * lib/unictype/categ_Cn.h: Likewise.
18205         * lib/unictype/categ_L.h: Likewise.
18206         * lib/unictype/categ_Ll.h: Likewise.
18207         * lib/unictype/categ_Lm.h: Likewise.
18208         * lib/unictype/categ_Lo.h: Likewise.
18209         * lib/unictype/categ_Lu.h: Likewise.
18210         * lib/unictype/categ_M.h: Likewise.
18211         * lib/unictype/categ_Mc.h: Likewise.
18212         * lib/unictype/categ_Me.h: Likewise.
18213         * lib/unictype/categ_Mn.h: Likewise.
18214         * lib/unictype/categ_N.h: Likewise.
18215         * lib/unictype/categ_Nd.h: Likewise.
18216         * lib/unictype/categ_No.h: Likewise.
18217         * lib/unictype/categ_P.h: Likewise.
18218         * lib/unictype/categ_Po.h: Likewise.
18219         * lib/unictype/categ_S.h: Likewise.
18220         * lib/unictype/categ_Sc.h: Likewise.
18221         * lib/unictype/categ_Sk.h: Likewise.
18222         * lib/unictype/categ_Sm.h: Likewise.
18223         * lib/unictype/categ_So.h: Likewise.
18224         * lib/unictype/categ_of.h: Likewise.
18225         * lib/unictype/combining.h: Likewise.
18226         * lib/unictype/ctype_alnum.h: Likewise.
18227         * lib/unictype/ctype_alpha.h: Likewise.
18228         * lib/unictype/ctype_graph.h: Likewise.
18229         * lib/unictype/ctype_lower.h: Likewise.
18230         * lib/unictype/ctype_print.h: Likewise.
18231         * lib/unictype/ctype_punct.h: Likewise.
18232         * lib/unictype/ctype_upper.h: Likewise.
18233         * lib/unictype/decdigit.h: Likewise.
18234         * lib/unictype/digit.h: Likewise.
18235         * lib/unictype/numeric.h: Likewise.
18236         * lib/unictype/pr_alphabetic.h: Likewise.
18237         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18238         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18239         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18240         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18241         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18242         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18243         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18244         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18245         * lib/unictype/pr_case_ignorable.h: Likewise.
18246         * lib/unictype/pr_cased.h: Likewise.
18247         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
18248         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
18249         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
18250         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
18251         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
18252         * lib/unictype/pr_combining.h: Likewise.
18253         * lib/unictype/pr_composite.h: Likewise.
18254         * lib/unictype/pr_currency_symbol.h: Likewise.
18255         * lib/unictype/pr_decimal_digit.h: Likewise.
18256         * lib/unictype/pr_deprecated.h: Likewise.
18257         * lib/unictype/pr_format_control.h: Likewise.
18258         * lib/unictype/pr_grapheme_base.h: Likewise.
18259         * lib/unictype/pr_grapheme_extend.h: Likewise.
18260         * lib/unictype/pr_grapheme_link.h: Likewise.
18261         * lib/unictype/pr_id_continue.h: Likewise.
18262         * lib/unictype/pr_id_start.h: Likewise.
18263         * lib/unictype/pr_ideographic.h: Likewise.
18264         * lib/unictype/pr_lowercase.h: Likewise.
18265         * lib/unictype/pr_math.h: Likewise.
18266         * lib/unictype/pr_numeric.h: Likewise.
18267         * lib/unictype/pr_other_alphabetic.h: Likewise.
18268         * lib/unictype/pr_other_id_continue.h: Likewise.
18269         * lib/unictype/pr_other_math.h: Likewise.
18270         * lib/unictype/pr_punctuation.h: Likewise.
18271         * lib/unictype/pr_sentence_terminal.h: Likewise.
18272         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18273         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18274         * lib/unictype/pr_unified_ideograph.h: Likewise.
18275         * lib/unictype/pr_uppercase.h: Likewise.
18276         * lib/unictype/pr_xid_continue.h: Likewise.
18277         * lib/unictype/pr_xid_start.h: Likewise.
18278         * lib/unictype/scripts.h: Likewise.
18279         * lib/unictype/scripts_byname.gperf: Likewise.
18280         * lib/unictype/sy_java_ident.h: Likewise.
18281         * lib/unigbrk/gbrkprop.h: Likewise.
18282         * lib/unilbrk/lbrkprop1.h: Likewise.
18283         * lib/unilbrk/lbrkprop2.h: Likewise.
18284         * lib/uninorm/decomposition-table2.h: Likewise.
18285         * lib/uniwbrk/wbrkprop.h: Likewise.
18286         * tests/unicase/test-cased.c: Likewise.
18287         * tests/unicase/test-ignorable.c: Likewise.
18288         * tests/unicase/test-uc_tolower.c: Likewise.
18289         * tests/unicase/test-uc_totitle.c: Likewise.
18290         * tests/unicase/test-uc_toupper.c: Likewise.
18291         * tests/unictype/test-categ_C.c: Likewise.
18292         * tests/unictype/test-categ_Cn.c: Likewise.
18293         * tests/unictype/test-categ_L.c: Likewise.
18294         * tests/unictype/test-categ_Ll.c: Likewise.
18295         * tests/unictype/test-categ_Lm.c: Likewise.
18296         * tests/unictype/test-categ_Lo.c: Likewise.
18297         * tests/unictype/test-categ_Lu.c: Likewise.
18298         * tests/unictype/test-categ_M.c: Likewise.
18299         * tests/unictype/test-categ_Mc.c: Likewise.
18300         * tests/unictype/test-categ_Me.c: Likewise.
18301         * tests/unictype/test-categ_Mn.c: Likewise.
18302         * tests/unictype/test-categ_N.c: Likewise.
18303         * tests/unictype/test-categ_Nd.c: Likewise.
18304         * tests/unictype/test-categ_No.c: Likewise.
18305         * tests/unictype/test-categ_P.c: Likewise.
18306         * tests/unictype/test-categ_Po.c: Likewise.
18307         * tests/unictype/test-categ_S.c: Likewise.
18308         * tests/unictype/test-categ_Sc.c: Likewise.
18309         * tests/unictype/test-categ_Sk.c: Likewise.
18310         * tests/unictype/test-categ_Sm.c: Likewise.
18311         * tests/unictype/test-categ_So.c: Likewise.
18312         * tests/unictype/test-ctype_alnum.c: Likewise.
18313         * tests/unictype/test-ctype_alpha.c: Likewise.
18314         * tests/unictype/test-ctype_graph.c: Likewise.
18315         * tests/unictype/test-ctype_lower.c: Likewise.
18316         * tests/unictype/test-ctype_print.c: Likewise.
18317         * tests/unictype/test-ctype_punct.c: Likewise.
18318         * tests/unictype/test-ctype_upper.c: Likewise.
18319         * tests/unictype/test-decdigit.h: Likewise.
18320         * tests/unictype/test-digit.h: Likewise.
18321         * tests/unictype/test-numeric.h: Likewise.
18322         * tests/unictype/test-pr_alphabetic.c: Likewise.
18323         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18324         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
18325         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
18326         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18327         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18328         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18329         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18330         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18331         * tests/unictype/test-pr_case_ignorable.c: Likewise.
18332         * tests/unictype/test-pr_cased.c: Likewise.
18333         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
18334         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
18335         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
18336         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
18337         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
18338         * tests/unictype/test-pr_combining.c: Likewise.
18339         * tests/unictype/test-pr_composite.c: Likewise.
18340         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18341         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18342         * tests/unictype/test-pr_deprecated.c: Likewise.
18343         * tests/unictype/test-pr_format_control.c: Likewise.
18344         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18345         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18346         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18347         * tests/unictype/test-pr_id_continue.c: Likewise.
18348         * tests/unictype/test-pr_id_start.c: Likewise.
18349         * tests/unictype/test-pr_ideographic.c: Likewise.
18350         * tests/unictype/test-pr_lowercase.c: Likewise.
18351         * tests/unictype/test-pr_math.c: Likewise.
18352         * tests/unictype/test-pr_numeric.c: Likewise.
18353         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18354         * tests/unictype/test-pr_other_id_continue.c: Likewise.
18355         * tests/unictype/test-pr_other_math.c: Likewise.
18356         * tests/unictype/test-pr_punctuation.c: Likewise.
18357         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18358         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18359         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18360         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18361         * tests/unictype/test-pr_uppercase.c: Likewise.
18362         * tests/unictype/test-pr_xid_continue.c: Likewise.
18363         * tests/unictype/test-pr_xid_start.c: Likewise.
18364         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18365         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18366         changes.
18367         * lib/unictype/categ_Cc.h: Likewise.
18368         * lib/unictype/categ_Cf.h: Likewise.
18369         * lib/unictype/categ_Co.h: Likewise.
18370         * lib/unictype/categ_Cs.h: Likewise.
18371         * lib/unictype/categ_Lt.h: Likewise.
18372         * lib/unictype/categ_Nl.h: Likewise.
18373         * lib/unictype/categ_Pc.h: Likewise.
18374         * lib/unictype/categ_Pd.h: Likewise.
18375         * lib/unictype/categ_Pe.h: Likewise.
18376         * lib/unictype/categ_Pf.h: Likewise.
18377         * lib/unictype/categ_Pi.h: Likewise.
18378         * lib/unictype/categ_Ps.h: Likewise.
18379         * lib/unictype/categ_Z.h: Likewise.
18380         * lib/unictype/categ_Zl.h: Likewise.
18381         * lib/unictype/categ_Zp.h: Likewise.
18382         * lib/unictype/categ_Zs.h: Likewise.
18383         * lib/unictype/ctype_blank.h: Likewise.
18384         * lib/unictype/ctype_cntrl.h: Likewise.
18385         * lib/unictype/ctype_digit.h: Likewise.
18386         * lib/unictype/ctype_space.h: Likewise.
18387         * lib/unictype/ctype_xdigit.h: Likewise.
18388         * lib/unictype/mirror.h: Likewise.
18389         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18390         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18391         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18392         * lib/unictype/pr_bidi_control.h: Likewise.
18393         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18394         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18395         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18396         * lib/unictype/pr_bidi_pdf.h: Likewise.
18397         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18398         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18399         * lib/unictype/pr_dash.h: Likewise.
18400         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18401         * lib/unictype/pr_diacritic.h: Likewise.
18402         * lib/unictype/pr_extender.h: Likewise.
18403         * lib/unictype/pr_hex_digit.h: Likewise.
18404         * lib/unictype/pr_hyphen.h: Likewise.
18405         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18406         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18407         * lib/unictype/pr_ignorable_control.h: Likewise.
18408         * lib/unictype/pr_iso_control.h: Likewise.
18409         * lib/unictype/pr_join_control.h: Likewise.
18410         * lib/unictype/pr_left_of_pair.h: Likewise.
18411         * lib/unictype/pr_line_separator.h: Likewise.
18412         * lib/unictype/pr_logical_order_exception.h: Likewise.
18413         * lib/unictype/pr_non_break.h: Likewise.
18414         * lib/unictype/pr_not_a_character.h: Likewise.
18415         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18416         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18417         * lib/unictype/pr_other_id_start.h: Likewise.
18418         * lib/unictype/pr_other_lowercase.h: Likewise.
18419         * lib/unictype/pr_other_uppercase.h: Likewise.
18420         * lib/unictype/pr_paired_punctuation.h: Likewise.
18421         * lib/unictype/pr_paragraph_separator.h: Likewise.
18422         * lib/unictype/pr_pattern_syntax.h: Likewise.
18423         * lib/unictype/pr_pattern_white_space.h: Likewise.
18424         * lib/unictype/pr_private_use.h: Likewise.
18425         * lib/unictype/pr_quotation_mark.h: Likewise.
18426         * lib/unictype/pr_radical.h: Likewise.
18427         * lib/unictype/pr_soft_dotted.h: Likewise.
18428         * lib/unictype/pr_space.h: Likewise.
18429         * lib/unictype/pr_titlecase.h: Likewise.
18430         * lib/unictype/pr_variation_selector.h: Likewise.
18431         * lib/unictype/pr_white_space.h: Likewise.
18432         * lib/unictype/pr_zero_width.h: Likewise.
18433         * lib/unictype/sy_c_ident.h: Likewise.
18434         * lib/unictype/sy_c_whitespace.h: Likewise.
18435         * lib/unictype/sy_java_whitespace.h: Likewise.
18436         * lib/uninorm/composition-table.gperf: Likewise.
18437         * lib/uninorm/decomposition-table1.h: Likewise.
18438         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
18439         LB8.
18440         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18441         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18442         * modules/unictype/*: Bump version number of expected libunistring
18443         version.
18444
18445 2011-01-09  Bruno Haible  <bruno@clisp.org>
18446
18447         Update to Unicode 5.2.0.
18448         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
18449         trailing whitespace removed.
18450
18451 2011-01-09  Bruno Haible  <bruno@clisp.org>
18452
18453         New Unicode character properties, from Unicode 5.2.0.
18454         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
18455         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
18456         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
18457         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
18458         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
18459         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
18460         uc_is_property_cased, uc_is_property_case_ignorable,
18461         uc_is_property_changes_when_lowercased,
18462         uc_is_property_changes_when_uppercased,
18463         uc_is_property_changes_when_titlecased,
18464         uc_is_property_changes_when_casefolded,
18465         uc_is_property_changes_when_casemapped): New declarations.
18466         * lib/unictype/pr_byname.gperf: Add the new properties.
18467         * modules/unictype/property-byname (Depends-on): Depend on the new
18468         properties modules.
18469         * modules/unictype/property-all (Depends-on): Likewise.
18470         * MODULES.html.sh (Unicode string functions): Add
18471         unictype/property-case-ignorable, unictype/property-cased,
18472         unictype/property-changes-when-casefolded,
18473         unictype/property-changes-when-casemapped,
18474         unictype/property-changes-when-lowercased,
18475         unictype/property-changes-when-titlecased,
18476         unictype/property-changes-when-uppercased.
18477
18478         New module 'unictype/property-changes-when-casemapped'.
18479         * modules/unictype/property-changes-when-casemapped: New file.
18480         * lib/unictype/pr_changes_when_casemapped.c: New file.
18481         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
18482         generated by gen-uni-tables.
18483         * modules/unictype/property-changes-when-casemapped-tests: New file.
18484         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
18485         automatically generated by gen-uni-tables.
18486
18487         New module 'unictype/property-changes-when-casefolded'.
18488         * modules/unictype/property-changes-when-casefolded: New file.
18489         * lib/unictype/pr_changes_when_casefolded.c: New file.
18490         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
18491         generated by gen-uni-tables.
18492         * modules/unictype/property-changes-when-casefolded-tests: New file.
18493         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
18494         automatically generated by gen-uni-tables.
18495
18496         New module 'unictype/property-changes-when-titlecased'.
18497         * modules/unictype/property-changes-when-titlecased: New file.
18498         * lib/unictype/pr_changes_when_titlecased.c: New file.
18499         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
18500         generated by gen-uni-tables.
18501         * modules/unictype/property-changes-when-titlecased-tests: New file.
18502         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
18503         automatically generated by gen-uni-tables.
18504
18505         New module 'unictype/property-changes-when-uppercased'.
18506         * modules/unictype/property-changes-when-uppercased: New file.
18507         * lib/unictype/pr_changes_when_uppercased.c: New file.
18508         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
18509         generated by gen-uni-tables.
18510         * modules/unictype/property-changes-when-uppercased-tests: New file.
18511         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
18512         automatically generated by gen-uni-tables.
18513
18514         New module 'unictype/property-changes-when-lowercased'.
18515         * modules/unictype/property-changes-when-lowercased: New file.
18516         * lib/unictype/pr_changes_when_lowercased.c: New file.
18517         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
18518         generated by gen-uni-tables.
18519         * modules/unictype/property-changes-when-lowercased-tests: New file.
18520         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
18521         automatically generated by gen-uni-tables.
18522
18523         New module 'unictype/property-case-ignorable'.
18524         * modules/unictype/property-case-ignorable: New file.
18525         * lib/unictype/pr_case_ignorable.c: New file.
18526         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
18527         by gen-uni-tables.
18528         * modules/unictype/property-case-ignorable-tests: New file.
18529         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
18530         generated by gen-uni-tables.
18531
18532         New module 'unictype/property-cased'.
18533         * modules/unictype/property-cased: New file.
18534         * lib/unictype/pr_cased.c: New file.
18535         * lib/unictype/pr_cased.h: New file, automatically generated by
18536         gen-uni-tables.
18537         * modules/unictype/property-cased-tests: New file.
18538         * tests/unictype/test-pr_cased.c: New file, automatically generated by
18539         gen-uni-tables.
18540
18541 2011-01-09  Bruno Haible  <bruno@clisp.org>
18542
18543         Update to Unicode 5.2.0.
18544         * lib/gen-uni-tables.c (output_predicate, output_category,
18545         output_combclass, output_bidi_category, output_decimal_digit_test,
18546         output_decimal_digit, output_digit_test, output_digit,
18547         output_numeric_test, output_numeric, output_mirror, output_scripts,
18548         output_scripts_byname, output_blocks, output_ident_category): Fix
18549         comment header.
18550         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
18551         get_wbp.
18552         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
18553         items.
18554         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
18555         Changes_When_Lowercased, Changes_When_Uppercased,
18556         Changes_When_Titlecased, Changes_When_Casefolded,
18557         Changes_When_Casemapped.
18558         (is_property_alphabetic, is_property_default_ignorable_code_point):
18559         Update for Unicode 5.2.0.
18560         (is_property_cased, is_property_case_ignorable,
18561         is_property_changes_when_lowercased,
18562         is_property_changes_when_uppercased,
18563         is_property_changes_when_titlecased,
18564         is_property_changes_when_casefolded,
18565         is_property_changes_when_casemapped): New functions.
18566         (output_properties): Output also the properties cased, case_ignorable,
18567         changes_when_lowercased, changes_when_uppercased,
18568         changes_when_titlecased, changes_when_casefolded,
18569         changes_when_casemapped.
18570         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
18571         Unicode TR#11 revision 17 -> 19.
18572         (LBP_CP): New enumeration value.
18573         (LBP_*): Adjust values accordingly.
18574         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18575         TR#14 revision 22 -> 24.
18576         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
18577         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
18578         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18579         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
18580         is_WBP_MIDLETTER.
18581         (output_composition_tables): Allow for 24 bits instead of 16 bits in
18582         the code1 and code2 of each composition rule.
18583         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
18584         * lib/unicase/ignorable.h: Likewise.
18585         * lib/unicase/tocasefold.h: Likewise.
18586         * lib/unicase/tolower.h: Likewise.
18587         * lib/unicase/totitle.h: Likewise.
18588         * lib/unicase/toupper.h: Likewise.
18589         * lib/unictype/bidi_of.h: Likewise.
18590         * lib/unictype/blocks.h: Likewise.
18591         * lib/unictype/categ_C.h: Likewise.
18592         * lib/unictype/categ_Cf.h: Likewise.
18593         * lib/unictype/categ_Cn.h: Likewise.
18594         * lib/unictype/categ_L.h: Likewise.
18595         * lib/unictype/categ_Ll.h: Likewise.
18596         * lib/unictype/categ_Lm.h: Likewise.
18597         * lib/unictype/categ_Lo.h: Likewise.
18598         * lib/unictype/categ_Lu.h: Likewise.
18599         * lib/unictype/categ_M.h: Likewise.
18600         * lib/unictype/categ_Mc.h: Likewise.
18601         * lib/unictype/categ_Mn.h: Likewise.
18602         * lib/unictype/categ_N.h: Likewise.
18603         * lib/unictype/categ_Nd.h: Likewise.
18604         * lib/unictype/categ_Nl.h: Likewise.
18605         * lib/unictype/categ_No.h: Likewise.
18606         * lib/unictype/categ_P.h: Likewise.
18607         * lib/unictype/categ_Pd.h: Likewise.
18608         * lib/unictype/categ_Po.h: Likewise.
18609         * lib/unictype/categ_S.h: Likewise.
18610         * lib/unictype/categ_Sc.h: Likewise.
18611         * lib/unictype/categ_So.h: Likewise.
18612         * lib/unictype/categ_of.h: Likewise.
18613         * lib/unictype/combining.h: Likewise.
18614         * lib/unictype/ctype_alnum.h: Likewise.
18615         * lib/unictype/ctype_alpha.h: Likewise.
18616         * lib/unictype/ctype_graph.h: Likewise.
18617         * lib/unictype/ctype_lower.h: Likewise.
18618         * lib/unictype/ctype_print.h: Likewise.
18619         * lib/unictype/ctype_punct.h: Likewise.
18620         * lib/unictype/ctype_upper.h: Likewise.
18621         * lib/unictype/decdigit.h: Likewise.
18622         * lib/unictype/digit.h: Likewise.
18623         * lib/unictype/numeric.h: Likewise.
18624         * lib/unictype/pr_alphabetic.h: Likewise.
18625         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18626         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18627         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18628         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18629         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18630         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18631         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18632         * lib/unictype/pr_combining.h: Likewise.
18633         * lib/unictype/pr_composite.h: Likewise.
18634         * lib/unictype/pr_currency_symbol.h: Likewise.
18635         * lib/unictype/pr_dash.h: Likewise.
18636         * lib/unictype/pr_decimal_digit.h: Likewise.
18637         * lib/unictype/pr_deprecated.h: Likewise.
18638         * lib/unictype/pr_diacritic.h: Likewise.
18639         * lib/unictype/pr_extender.h: Likewise.
18640         * lib/unictype/pr_grapheme_base.h: Likewise.
18641         * lib/unictype/pr_grapheme_extend.h: Likewise.
18642         * lib/unictype/pr_grapheme_link.h: Likewise.
18643         * lib/unictype/pr_id_continue.h: Likewise.
18644         * lib/unictype/pr_id_start.h: Likewise.
18645         * lib/unictype/pr_ideographic.h: Likewise.
18646         * lib/unictype/pr_ignorable_control.h: Likewise.
18647         * lib/unictype/pr_logical_order_exception.h: Likewise.
18648         * lib/unictype/pr_lowercase.h: Likewise.
18649         * lib/unictype/pr_numeric.h: Likewise.
18650         * lib/unictype/pr_other_alphabetic.h: Likewise.
18651         * lib/unictype/pr_punctuation.h: Likewise.
18652         * lib/unictype/pr_sentence_terminal.h: Likewise.
18653         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18654         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18655         * lib/unictype/pr_unified_ideograph.h: Likewise.
18656         * lib/unictype/pr_uppercase.h: Likewise.
18657         * lib/unictype/pr_xid_continue.h: Likewise.
18658         * lib/unictype/pr_xid_start.h: Likewise.
18659         * lib/unictype/pr_zero_width.h: Likewise.
18660         * lib/unictype/scripts.h: Likewise.
18661         * lib/unictype/scripts_byname.gperf: Likewise.
18662         * lib/unictype/sy_java_ident.h: Likewise.
18663         * lib/unigbrk/gbrkprop.h: Likewise.
18664         * lib/unilbrk/lbrkprop1.h: Likewise.
18665         * lib/unilbrk/lbrkprop2.h: Likewise.
18666         * lib/unilbrk/lbrktables.h: Likewise.
18667         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
18668         LBP_CP. Implement rule LB30.
18669         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
18670         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
18671         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
18672         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
18673         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
18674         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
18675         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
18676         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
18677         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
18678         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
18679         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
18680         bits instead of 16 bits in the code1 and code2 of each composition
18681         rule.
18682         (uc_composition): Update for Unicode 5.2.0.
18683         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
18684         * lib/uninorm/decomposition-table2.h: Likewise.
18685         * lib/uniwbrk/wbrkprop.h: Likewise.
18686         * tests/unicase/test-cased.c: Likewise.
18687         * tests/unicase/test-ignorable.c: Likewise.
18688         * tests/unicase/test-uc_tolower.c: Likewise.
18689         * tests/unicase/test-uc_totitle.c: Likewise.
18690         * tests/unicase/test-uc_toupper.c: Likewise.
18691         * tests/unictype/test-categ_C.c: Likewise.
18692         * tests/unictype/test-categ_Cf.c: Likewise.
18693         * tests/unictype/test-categ_Cn.c: Likewise.
18694         * tests/unictype/test-categ_L.c: Likewise.
18695         * tests/unictype/test-categ_Ll.c: Likewise.
18696         * tests/unictype/test-categ_Lm.c: Likewise.
18697         * tests/unictype/test-categ_Lo.c: Likewise.
18698         * tests/unictype/test-categ_Lu.c: Likewise.
18699         * tests/unictype/test-categ_M.c: Likewise.
18700         * tests/unictype/test-categ_Mc.c: Likewise.
18701         * tests/unictype/test-categ_Mn.c: Likewise.
18702         * tests/unictype/test-categ_N.c: Likewise.
18703         * tests/unictype/test-categ_Nd.c: Likewise.
18704         * tests/unictype/test-categ_Nl.c: Likewise.
18705         * tests/unictype/test-categ_No.c: Likewise.
18706         * tests/unictype/test-categ_P.c: Likewise.
18707         * tests/unictype/test-categ_Pd.c: Likewise.
18708         * tests/unictype/test-categ_Po.c: Likewise.
18709         * tests/unictype/test-categ_S.c: Likewise.
18710         * tests/unictype/test-categ_Sc.c: Likewise.
18711         * tests/unictype/test-categ_So.c: Likewise.
18712         * tests/unictype/test-ctype_alnum.c: Likewise.
18713         * tests/unictype/test-ctype_alpha.c: Likewise.
18714         * tests/unictype/test-ctype_graph.c: Likewise.
18715         * tests/unictype/test-ctype_lower.c: Likewise.
18716         * tests/unictype/test-ctype_print.c: Likewise.
18717         * tests/unictype/test-ctype_punct.c: Likewise.
18718         * tests/unictype/test-ctype_upper.c: Likewise.
18719         * tests/unictype/test-decdigit.h: Likewise.
18720         * tests/unictype/test-digit.h: Likewise.
18721         * tests/unictype/test-numeric.h: Likewise.
18722         * tests/unictype/test-pr_alphabetic.c: Likewise.
18723         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18724         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18725         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
18726         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18727         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18728         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18729         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18730         * tests/unictype/test-pr_combining.c: Likewise.
18731         * tests/unictype/test-pr_composite.c: Likewise.
18732         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18733         * tests/unictype/test-pr_dash.c: Likewise.
18734         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18735         * tests/unictype/test-pr_deprecated.c: Likewise.
18736         * tests/unictype/test-pr_diacritic.c: Likewise.
18737         * tests/unictype/test-pr_extender.c: Likewise.
18738         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18739         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18740         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18741         * tests/unictype/test-pr_id_continue.c: Likewise.
18742         * tests/unictype/test-pr_id_start.c: Likewise.
18743         * tests/unictype/test-pr_ideographic.c: Likewise.
18744         * tests/unictype/test-pr_ignorable_control.c: Likewise.
18745         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
18746         * tests/unictype/test-pr_lowercase.c: Likewise.
18747         * tests/unictype/test-pr_numeric.c: Likewise.
18748         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18749         * tests/unictype/test-pr_punctuation.c: Likewise.
18750         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18751         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18752         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18753         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18754         * tests/unictype/test-pr_uppercase.c: Likewise.
18755         * tests/unictype/test-pr_xid_continue.c: Likewise.
18756         * tests/unictype/test-pr_xid_start.c: Likewise.
18757         * tests/unictype/test-pr_zero_width.c: Likewise.
18758         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18759         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
18760         changed behaviour: line breaking is now disallowed between a letter
18761         or '=' and '('.
18762         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18763         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18764         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18765         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
18766         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18767         lib/uniwidth/width.c.
18768         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
18769         without comments, but with the original copyright notice.
18770         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18771         changes.
18772         * lib/unictype/categ_Cc.h: Likewise.
18773         * lib/unictype/categ_Co.h: Likewise.
18774         * lib/unictype/categ_Cs.h: Likewise.
18775         * lib/unictype/categ_Lt.h: Likewise.
18776         * lib/unictype/categ_Me.h: Likewise.
18777         * lib/unictype/categ_Pc.h: Likewise.
18778         * lib/unictype/categ_Pe.h: Likewise.
18779         * lib/unictype/categ_Pf.h: Likewise.
18780         * lib/unictype/categ_Pi.h: Likewise.
18781         * lib/unictype/categ_Ps.h: Likewise.
18782         * lib/unictype/categ_Sk.h: Likewise.
18783         * lib/unictype/categ_Sm.h: Likewise.
18784         * lib/unictype/categ_Z.h: Likewise.
18785         * lib/unictype/categ_Zl.h: Likewise.
18786         * lib/unictype/categ_Zp.h: Likewise.
18787         * lib/unictype/categ_Zs.h: Likewise.
18788         * lib/unictype/ctype_blank.h: Likewise.
18789         * lib/unictype/ctype_cntrl.h: Likewise.
18790         * lib/unictype/ctype_digit.h: Likewise.
18791         * lib/unictype/ctype_space.h: Likewise.
18792         * lib/unictype/ctype_xdigit.h: Likewise.
18793         * lib/unictype/mirror.h: Likewise.
18794         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18795         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18796         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18797         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18798         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18799         * lib/unictype/pr_bidi_control.h: Likewise.
18800         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18801         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18802         * lib/unictype/pr_bidi_pdf.h: Likewise.
18803         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18804         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18805         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18806         * lib/unictype/pr_format_control.h: Likewise.
18807         * lib/unictype/pr_hex_digit.h: Likewise.
18808         * lib/unictype/pr_hyphen.h: Likewise.
18809         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18810         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18811         * lib/unictype/pr_iso_control.h: Likewise.
18812         * lib/unictype/pr_join_control.h: Likewise.
18813         * lib/unictype/pr_left_of_pair.h: Likewise.
18814         * lib/unictype/pr_line_separator.h: Likewise.
18815         * lib/unictype/pr_math.h: Likewise.
18816         * lib/unictype/pr_non_break.h: Likewise.
18817         * lib/unictype/pr_not_a_character.h: Likewise.
18818         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18819         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18820         * lib/unictype/pr_other_id_continue.h: Likewise.
18821         * lib/unictype/pr_other_id_start.h: Likewise.
18822         * lib/unictype/pr_other_lowercase.h: Likewise.
18823         * lib/unictype/pr_other_math.h: Likewise.
18824         * lib/unictype/pr_other_uppercase.h: Likewise.
18825         * lib/unictype/pr_paired_punctuation.h: Likewise.
18826         * lib/unictype/pr_paragraph_separator.h: Likewise.
18827         * lib/unictype/pr_pattern_syntax.h: Likewise.
18828         * lib/unictype/pr_pattern_white_space.h: Likewise.
18829         * lib/unictype/pr_private_use.h: Likewise.
18830         * lib/unictype/pr_quotation_mark.h: Likewise.
18831         * lib/unictype/pr_radical.h: Likewise.
18832         * lib/unictype/pr_soft_dotted.h: Likewise.
18833         * lib/unictype/pr_space.h: Likewise.
18834         * lib/unictype/pr_titlecase.h: Likewise.
18835         * lib/unictype/pr_variation_selector.h: Likewise.
18836         * lib/unictype/pr_white_space.h: Likewise.
18837         * lib/unictype/sy_c_ident.h: Likewise.
18838         * lib/unictype/sy_c_whitespace.h: Likewise.
18839         * lib/unictype/sy_java_whitespace.h: Likewise.
18840         * modules/uni*/*: Bump version number of expected libunistring version.
18841         Reported by Simon Josefsson.
18842
18843 2011-01-09  Karl Heuer  <kwzh@gnu.org>
18844
18845         useless-if-before-free: fix typo in --help and make the internal,
18846         automatic version date update process work once again.
18847         --help output contained a NUL character instead of the
18848         backslash-zero that was intended.  Also, the "must lie within
18849         the first 8 lines" line is on line 9, and hence not getting
18850         automatically updated.
18851         * build-aux/useless-if-before-free: Fix the former by adding a
18852         backslash, and the latter by condensing the three lines of what-it-does
18853         to a single line, leaving one line of slack for the future.
18854
18855 2011-01-09  Bruno Haible  <bruno@clisp.org>
18856
18857         uniwidth/width: Fix width of U+1D173..U+1D17A.
18858         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
18859         symbolic_width, output_width_property_test): New functions.
18860         (main): Invoke output_nonspacing_property, output_width_property_test.
18861         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
18862         U+1D173..U+1D17A.
18863         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
18864         1.
18865         * modules/uniwidth/*: Bump version number of expected libunistring
18866         version.
18867         * modules/unilbrk/*: Likewise.
18868
18869 2011-01-08  Bruno Haible  <bruno@clisp.org>
18870
18871         uninorm tests: Preserve copyright of Unicode data file.
18872         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
18873         Mention modifications.
18874
18875 2011-01-08  Bruno Haible  <bruno@clisp.org>
18876
18877         gen-uni-tables: Prepare for Unicode 5.2.0.
18878         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
18879         (debug_output_lbp, output_lbp): Update.
18880
18881 2011-01-08  Bruno Haible  <bruno@clisp.org>
18882
18883         unilbrk: Clarify gen-uni-tables.c code.
18884         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
18885         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
18886         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
18887
18888 2011-01-07  Bruno Haible  <bruno@clisp.org>
18889
18890         strtod: Restore errno when successfully parsing Infinity or NaN.
18891         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
18892         restore the original errno.
18893
18894 2011-01-07  Bruno Haible  <bruno@clisp.org>
18895
18896         remove test: Avoid failure on HP-UX 11.
18897         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
18898
18899 2011-01-07  Bruno Haible  <bruno@clisp.org>
18900
18901         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
18902         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
18903         error code.
18904
18905 2011-01-07  Pádraig Brady <P@draigBrady.com>
18906
18907         ignore-value: fixup comments, and add Eric Blake
18908         as an author since he rewrote the macros.
18909         * lib/ignore-value.h (ignore_value):  State that
18910         we now support aggregates.  Also specify exactly
18911         when the GCC warn_unused_result feature was added.
18912
18913 2011-01-06  Eric Blake  <eblake@redhat.com>
18914
18915         ignore-value: support aggregate types
18916         * lib/ignore-value.h (ignore_value): Provide separate gcc
18917         definition.
18918         * modules/ignore-value-tests: New test module.
18919         * tests/test-ignore-value.c: New test.
18920
18921         maint.mk: improve sc_prohibit_strcmp regex
18922         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
18923         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
18924         definition of STRNEQ.
18925
18926         signal: work around Haiku issue with SIGBUS
18927         * lib/siglist.h: Add comment.
18928         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
18929         strsignal's favoring of SIGSEGV.
18930         * tests/test-signal.c (main): Avoid test failure.
18931         * doc/posix-headers/signal.texi (signal.h): Document the issue.
18932         Reported by Scott McCreary.
18933
18934         maint.mk: add pre-release check to ensure submodule commits are public
18935         * top/maint.mk (public-submodule-commit): New rule.
18936         (submodule-checks): New variable.
18937         (alpha beta stable): Depend on the variable.
18938
18939 2011-01-05  Pádraig Brady <P@draigBrady.com>
18940         and Jim Meyering  <meyering@redhat.com>
18941
18942         ignore-value: make ignore_value more generic; deprecate ignore_ptr
18943         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
18944         (ATTRIBUTE_DEPRECATED): Define.
18945         (_ignore_case): New function.
18946         (ignore_value): New macro, to replace the old function.
18947         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
18948         * modules/ignore-value (Depends-on): Add stdint.
18949
18950 2011-01-04  Eric Blake  <eblake@redhat.com>
18951
18952         doc: regenerate INSTALL
18953         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
18954         @firstparagraphindent support, now that autoconf dropped it.
18955         (INSTALL_PRELUDE): Reinstate old macro.
18956         * doc/install.texi: Resync from autoconf.
18957         * doc/INSTALL: Reflect recent autoconf update.
18958         * doc/INSTALL.ISO: Likewise.
18959         * doc/INSTALL.UTF-8: Likewise.
18960         Reported by Karl Berry.
18961
18962 2011-01-04  Bruce Korb  <address@hidden>
18963
18964         git-version-gen: avoid a sub-shell
18965         * build-aux/git-version-gen: Redirect stderr in `...` via
18966         "exec 2>...", rather than via an added sub-shell.
18967
18968 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
18969
18970         git-version-gen: use (...) rather than sh -c '...'
18971         * build-aux/git-version-gen: Rather than hard-coding a shell's name
18972         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
18973
18974 2011-01-03  Jim Meyering  <meyering@redhat.com>
18975
18976         git-version-gen: convert leading TABs to spaces
18977         * build-aux/git-version-gen: Expand leading TABs.
18978
18979         git-version-gen: handle failed "git rev-list"
18980         * build-aux/git-version-gen: Rather than leaking a "fatal" error
18981         from git and proceeding as if it had succeeded but printed no SHA1
18982         checksums, suppress the diagnostic and handle the failure.
18983         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
18984
18985         git-version-gen: include command name in one more diagnostic
18986         * build-aux/git-version-gen: When the required .tarball-version file
18987         was missing or unreadable, you might see the diagnostic from "cat",
18988         but no trace of the name of the invoking script.  Now, you still see
18989         the diagnostic from cat, but also get one from "git-version-gen: ".
18990         Inspired by a patch from Bruce Korb.
18991
18992         update-copyright: adjust test to match changed code
18993         * tests/test-update-copyright.sh: Change test's expected output
18994         to match new actual output.
18995
18996 2011-01-02  Bruno Haible  <bruno@clisp.org>
18997
18998         getlogin_r: Avoid test failure on HP-UX 11.
18999         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
19000         ERANGE when the second argument is zero.
19001         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
19002         portability problem.
19003
19004 2011-01-02  Bruce Korb  <bkorb@gnu.org>
19005
19006         * build-aux/update-copyright: doc Simon's changes
19007
19008 2011-01-02  Simon Josefsson  <simon@josefsson.org>
19009
19010         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
19011         environment variable.
19012
19013 2011-01-02  Bruno Haible  <bruno@clisp.org>
19014
19015         unigbrk: Avoid gcc warnings.
19016         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
19017         unused variable.
19018         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
19019         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
19020         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
19021         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
19022         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
19023         Change type of first argument to 'const char *'.
19024         (main): Remove unused variable.
19025         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
19026         type of first argument to 'const char *'.
19027         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
19028         Likewise.
19029         (main): Change type of variable 's'.
19030         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
19031         to 'int'.
19032
19033 2011-01-02  Bruno Haible  <bruno@clisp.org>
19034
19035         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
19036         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
19037         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
19038         bug.
19039         * lib/pwrite.c: Undo 2010-12-31 patch.
19040         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
19041
19042 2011-01-02  Bruno Haible  <bruno@clisp.org>
19043
19044         pread: Fix test whether it works.
19045         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
19046
19047 2011-01-02  Bruno Haible  <bruno@clisp.org>
19048
19049         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
19050         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
19051         ends in "6". Don't require a specific month name. Try also the locale
19052         names found on HP-UX 11 and Solaris 7.
19053
19054 2011-01-02  Bruno Haible  <bruno@clisp.org>
19055
19056         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
19057         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
19058         C linkage.
19059         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
19060
19061 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19062
19063         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
19064         for consistency, since the "cluster" term is not used elsewhere.
19065         * lib/unigbrk.in.h: Update name.
19066         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
19067         * lib/unigbrk/u16-grapheme-next.c: Update name.
19068         * lib/unigbrk/u16-grapheme-prev.c: Update name.
19069         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
19070         * lib/unigbrk/u32-grapheme-next.c: Update name.
19071         * lib/unigbrk/u32-grapheme-prev.c: Update name.
19072         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
19073         * lib/unigbrk/u8-grapheme-next.c: Update name.
19074         * lib/unigbrk/u8-grapheme-prev.c: Update name.
19075         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
19076         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
19077         Suggested by Bruno Haible.
19078
19079 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19080
19081         Remove module 'u8-grapheme-len' as too redundant with
19082         'u8-grapheme-next'.
19083         * modules/unigbrk/u8-grapheme-len: Delete file.
19084         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
19085         * lib/unigbrk.in.h: Remove prototype for deleted function.
19086         * lib/unigbrk/u8-grapheme-len.c: Delete file.
19087         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
19088
19089         Remove module 'u16-grapheme-len' as too redundant with
19090         'u16-grapheme-next'.
19091         * modules/unigbrk/u16-grapheme-len: Delete file.
19092         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
19093         * lib/unigbrk.in.h: Remove prototype for deleted function.
19094         * lib/unigbrk/u16-grapheme-len.c: Delete file.
19095         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
19096
19097         Remove module 'u32-grapheme-len' as too redundant with
19098         'u32-grapheme-next'.
19099         * modules/unigbrk/u32-grapheme-len: Delete file.
19100         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
19101         * lib/unigbrk.in.h: Remove prototype for deleted function.
19102         * lib/unigbrk/u32-grapheme-len.c: Delete file.
19103         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
19104
19105         Suggested by Bruno Haible.
19106
19107 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19108
19109         * unigbrk.in.h: Fix typo: "ben" => "been".
19110         Reported by Bruno Haible.
19111
19112 2011-01-01  Jim Meyering  <meyering@redhat.com>
19113
19114         maint: update almost all copyright ranges to include 2011
19115         Run the new "make update-copyright" rule.
19116
19117 2011-01-01  Jim Meyering  <meyering@redhat.com>
19118
19119         maint: update-copyright: exempt doc/INSTALL*
19120         * Makefile (update-copyright): Also exclude doc/INSTALL*,
19121         since they are generated.  Suggested by Bruno Haible.
19122
19123 2011-01-01  Jim Meyering  <meyering@redhat.com>
19124
19125         maint: refine the update-copyright rule
19126         * Makefile (update-copyright): Also exclude any file that includes
19127         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
19128         code that merely generates the comment.
19129
19130 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19131
19132         New module 'u8-grapheme-len'.
19133         * modules/unigbrk/u8-grapheme-len: New file.
19134         * modules/unigbrk/u8-grapheme-len-tests: New file.
19135         * lib/unigbrk.in.h: Add prototype for new function.
19136         * lib/unigbrk/u8-grapheme-len.c: New file.
19137         * tests/unigbrk/test-u8-grapheme-len.c: New file.
19138
19139         New module 'u16-grapheme-len'.
19140         * modules/unigbrk/u16-grapheme-len: New file.
19141         * modules/unigbrk/u16-grapheme-len-tests: New file.
19142         * lib/unigbrk.in.h: Add prototype for new function.
19143         * lib/unigbrk/u16-grapheme-len.c: New file.
19144         * tests/unigbrk/test-u16-grapheme-len.c: New file.
19145
19146         New module 'u32-grapheme-len'.
19147         * modules/unigbrk/u32-grapheme-len: New file.
19148         * modules/unigbrk/u32-grapheme-len-tests: New file.
19149         * lib/unigbrk.in.h: Add prototype for new function.
19150         * lib/unigbrk/u32-grapheme-len.c: New file.
19151         * tests/unigbrk/test-u32-grapheme-len.c: New file.
19152
19153         New module 'u8-grapheme-next'.
19154         * modules/unigbrk/u8-grapheme-next: New file.
19155         * modules/unigbrk/u8-grapheme-next-tests: New file.
19156         * lib/unigbrk.in.h: Add prototype for new function.
19157         * lib/unigbrk/u8-grapheme-next.c: New file.
19158         * tests/unigbrk/test-u8-grapheme-next.c: New file.
19159
19160         New module 'u16-grapheme-next'.
19161         * modules/unigbrk/u16-grapheme-next: New file.
19162         * modules/unigbrk/u16-grapheme-next-tests: New file.
19163         * lib/unigbrk.in.h: Add prototype for new function.
19164         * lib/unigbrk/u16-grapheme-next.c: New file.
19165         * tests/unigbrk/test-u16-grapheme-next.c: New file.
19166
19167         New module 'u32-grapheme-next'.
19168         * modules/unigbrk/u32-grapheme-next: New file.
19169         * modules/unigbrk/u32-grapheme-next-tests: New file.
19170         * lib/unigbrk.in.h: Add prototype for new function.
19171         * lib/unigbrk/u32-grapheme-next.c: New file.
19172         * tests/unigbrk/test-u32-grapheme-next.c: New file.
19173
19174         New module 'u8-grapheme-prev'.
19175         * modules/unigbrk/u8-grapheme-prev: New file.
19176         * modules/unigbrk/u8-grapheme-prev-tests: New file.
19177         * lib/unigbrk.in.h: Add prototype for new function.
19178         * lib/unigbrk/u8-grapheme-prev.c: New file.
19179         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
19180
19181         New module 'u16-grapheme-prev'.
19182         * modules/unigbrk/u16-grapheme-prev: New file.
19183         * modules/unigbrk/u16-grapheme-prev-tests: New file.
19184         * lib/unigbrk.in.h: Add prototype for new function.
19185         * lib/unigbrk/u16-grapheme-prev.c: New file.
19186         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
19187
19188         New module 'u32-grapheme-prev'.
19189         * modules/unigbrk/u32-grapheme-prev: New file.
19190         * modules/unigbrk/u32-grapheme-prev-tests: New file.
19191         * lib/unigbrk.in.h: Add prototype for new function.
19192         * lib/unigbrk/u32-grapheme-prev.c: New file.
19193         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
19194
19195         New module 'u8-grapheme-breaks'.
19196         * modules/unigbrk/u8-grapheme-breaks: New file.
19197         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
19198         * lib/unigbrk.in.h: Add prototype for new function.
19199         * lib/unigbrk/u8-grapheme-breaks.c: New file.
19200         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
19201
19202         New module 'u16-grapheme-breaks'.
19203         * modules/unigbrk/u16-grapheme-breaks: New file.
19204         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
19205         * lib/unigbrk.in.h: Add prototype for new function.
19206         * lib/unigbrk/u16-grapheme-breaks.c: New file.
19207         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
19208
19209         New module 'u32-grapheme-breaks'.
19210         * modules/unigbrk/u32-grapheme-breaks: New file.
19211         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
19212         * lib/unigbrk.in.h: Add prototype for new function.
19213         * lib/unigbrk/u32-grapheme-breaks.c: New file.
19214         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
19215
19216         New module 'ulc-grapheme-breaks'.
19217         * modules/unigbrk/ulc-grapheme-breaks: New file.
19218         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
19219         * m4/locale-ar.m4: New file.
19220         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
19221         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
19222         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
19223
19224 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19225
19226         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
19227         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
19228         modified how this file was generated before I initially submitted
19229         the module, but failed to regenerate it.  This meant that several
19230         of the level2 entries were wrong.
19231         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
19232         Remove the division-by-2 that is folded into the table now that
19233         gbrkprop.h has been regenerated properly.  Now -1 entries are
19234         handled correctly.
19235
19236         New module 'unigbrk/uc-gbrk-prop-tests'.
19237         * modules/unigbrk/uc-gbrk-prop-tests: New file.
19238         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
19239         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
19240         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
19241
19242 2011-01-01  Bruno Haible  <bruno@clisp.org>
19243
19244         Avoid use of hexadecimal escapes.
19245         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
19246         instead of hexadecimal escapes.
19247
19248 2011-01-01  Jim Meyering  <meyering@redhat.com>
19249
19250         maint: new rule to update copyright year ranges
19251         * Makefile (update-copyright): New rule.
19252
19253         maint: indent with TABs in Makefile
19254         * Makefile: Expand leading sequences of spaces to TABs
19255
19256         version-etc: update the copyright year it reports
19257         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
19258
19259 2010-12-31  Bruno Haible  <bruno@clisp.org>
19260
19261         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
19262         * lib/isfinite.c (zerof, zerod, zerol): New variables.
19263         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
19264         zero.
19265
19266 2010-12-31  Bruno Haible  <bruno@clisp.org>
19267
19268         pwrite: Work around HP-UX 11.11 bug.
19269         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
19270         works and set REPLACE_PWRITE if not.
19271         * lib/pwrite.c (pwrite): Add an implementation that uses the system
19272         function.
19273         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
19274
19275 2010-12-31  Bruno Haible  <bruno@clisp.org>
19276
19277         pread: Work around HP-UX 11 bugs.
19278         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
19279         and set REPLACE_PREAD if not.
19280         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
19281
19282 2010-12-31  Eric Blake  <eblake@redhat.com>
19283
19284         nl_langinfo: fix YESEXPR on Irix 6.5
19285         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
19286         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
19287         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
19288         it.
19289
19290 2010-12-31  Bruno Haible  <bruno@clisp.org>
19291
19292         iconv: Document HP-UX 11 bug.
19293         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
19294
19295 2010-12-31  Bruno Haible  <bruno@clisp.org>
19296
19297         ldexpl: Fix link error on HP-UX 11.
19298         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
19299         LDEXPL_LIBM, using $ISNANL_LIBM.
19300
19301 2010-12-31  Eric Blake  <eblake@redhat.com>
19302
19303         ftello: avoid compilation failure with SunStudio c89
19304         * lib/ftello.c (ftello): Use lseek, not llseek.
19305
19306         tests: avoid failing coreutils tests on cygwin
19307         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
19308         (create_exe_shims_): Return 0 when skipping.
19309
19310 2010-12-31  Bruno Haible  <bruno@clisp.org>
19311
19312         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
19313         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
19314
19315 2010-12-31  Bruno Haible  <bruno@clisp.org>
19316
19317         waitpid: Fix link error in C++ mode.
19318         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
19319
19320 2010-12-31  Bruno Haible  <bruno@clisp.org>
19321
19322         isnan: Use GCC built-ins when possible.
19323         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
19324         __builtin_isnan.
19325         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
19326         (isnan): Define using GCC built-ins for GCC >= 4.0.
19327
19328 2010-12-31  Bruno Haible  <bruno@clisp.org>
19329
19330         isnand: Fix mistake.
19331         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
19332         __builtin_isnand.
19333
19334 2010-12-31  Bruno Haible  <bruno@clisp.org>
19335
19336         open: Avoid C++ error on HP-UX 11.
19337         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
19338
19339 2010-12-31  Bruno Haible  <bruno@clisp.org>
19340
19341         time_r: Add missing declarations on HP-UX 11.
19342         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
19343         instead of HAVE_LOCALTIME_R.
19344         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
19345         HAVE_LOCALTIME_R always.
19346         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
19347         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
19348         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
19349         HAVE_LOCALTIME_R.
19350         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
19351         * doc/posix-functions/localtime_r.texi: Likewise.
19352
19353 2010-12-29  Eric Blake  <eblake@redhat.com>
19354
19355         mountlist: tweak previous commit
19356         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
19357         Reported by Paul Eggert.
19358
19359         mountlist: fix local drive detection on cygwin
19360         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
19361         that works for cygwin.
19362
19363 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19364
19365         ftoastr, snprintf: ftoastr + snprintf module
19366         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
19367         since the snprintf module now should be good enough here.
19368         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
19369         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
19370         and gl_MODULE_INDICATOR([snprintf]), but the former enables
19371         GNULIB_SNPRINTF only for the test directory, and the latter
19372         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
19373         seems to suffice by itself.
19374
19375 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19376
19377         alloca: one step towards thread-safety
19378         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
19379         need for a static variable.  All callers changed.  This does not
19380         make the alloca replacement thread-safe, but it's one step.
19381
19382         tests: minor indenting change
19383         * tests/init.sh: Sync from coreutils housekeeping patch
19384         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
19385         to keep lines within 80 columns.
19386
19387 2010-12-28  Jim Meyering  <meyering@redhat.com>
19388
19389         regex: don't infloop on persistent failing calloc
19390         * lib/regexec.c (build_trtable): Return failure indication upon
19391         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19392         In glibc, this was fixed for version 2.13:
19393         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
19394
19395 2010-12-28  Bruno Haible  <bruno@clisp.org>
19396             Paul Eggert <eggert@cs.ucla.edu>
19397
19398         linkat: Make implementation robust against system behaviour variations.
19399         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
19400         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
19401         way, and to -2 if it needs a generic runtime test.
19402         * lib/linkat.c (solaris_optimized_link_immediate,
19403         solaris_optimized_link_follow): New functions.
19404         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
19405         (check_same_link): Use it.
19406
19407 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
19408
19409         New module 'unigbrk/base'.
19410         * modules/unigbrk/base: New file.
19411         * lib/unigbrk.in.h: New file.
19412
19413         New module 'unigbrk/uc-gbrk-prop'.
19414         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
19415         * modules/unigbrk/uc-gbrk-prop: New file.
19416         * lib/unigbrk/gbrkprop.h: New file.
19417         * lib/unigbrk/uc-gbrk-prop.c: New file.
19418
19419         New module 'unigbrk/uc-is-grapheme-break'.
19420         * modules/unigbrk/uc-is-grapheme-break: New file.
19421         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
19422         * lib/unigbrk/uc-is-grapheme-break.c: New file.
19423         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
19424         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
19425         * tests/unigbrk/GraphemeBreakTest.txt: New file.
19426
19427         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
19428
19429 2010-12-27  Bruno Haible  <bruno@clisp.org>
19430
19431         linkat test: Avoid failure on Solaris 11 2010-11.
19432         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
19433
19434 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19435
19436         utimens: work around glibc rounding bug on more platforms
19437         * lib/utimens.c (fdutimens): Work around rounding bug even if
19438         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
19439         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
19440
19441 2010-12-27  Bruno Haible  <bruno@clisp.org>
19442
19443         select tests: Improve comments.
19444         * tests/test-select.c (do_select): Add comments.
19445
19446 2010-12-27  Bruno Haible  <bruno@clisp.org>
19447
19448         select tests: Safer way of handling timeout.
19449         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
19450         at every invocation.
19451
19452 2010-12-27  Bruno Haible  <bruno@clisp.org>
19453
19454         select tests: Use 'bool' where appropriate.
19455         * tests/test-select.c (connect_to_socket): Change argument type to
19456         'bool'.
19457
19458 2010-12-27  Bruno Haible  <bruno@clisp.org>
19459
19460         select tests: Use existing modules.
19461         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
19462         (configure.ac): Don't test for unistd.h.
19463         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
19464         declared in <unistd.h>.
19465
19466 2010-12-27  Bruno Haible  <bruno@clisp.org>
19467
19468         mbrtowc: Work around a Solaris 7 bug.
19469         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
19470         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
19471         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
19472         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
19473         MBRTOWC_NULL_ARG1_BUG.
19474         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
19475         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
19476         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
19477         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
19478
19479 2010-12-27  Jim Meyering  <meyering@redhat.com>
19480
19481         read-file.c: tweak syntax
19482         * lib/read-file.c (fread_file): Remove space after "*" in function
19483         definitions.
19484
19485 2010-12-27  Bruno Haible  <bruno@clisp.org>
19486
19487         times test: Avoid gcc warnings on OSF/1.
19488         * tests/test-times.c (main): Cast printf arguments from clock_t to
19489         'long int'.
19490
19491 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19492
19493         utimens: work around glibc rounding bug on older Linux kernels
19494         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
19495         on Linux with a glibc whose utimes might not work, then work
19496         around a longstanding glibc bug involving rounding rather than
19497         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
19498         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19499
19500 2010-12-26  Bruno Haible  <bruno@clisp.org>
19501
19502         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
19503         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
19504         _GL_CXXALIAS_SYS.
19505         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19506
19507 2010-12-26  Bruno Haible  <bruno@clisp.org>
19508
19509         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
19510         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
19511         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19512         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
19513         looking for the declaration.
19514         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19515         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
19516         problem.
19517         * doc/posix-functions/inet_pton.texi: Likewise.
19518
19519 2010-12-26  Bruno Haible  <bruno@clisp.org>
19520
19521         arpa_inet: Use the common idioms with C++ support.
19522         * lib/arpa_inet.in.h: Include c++defs.h.
19523         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
19524         support.
19525         * modules/arpa_inet (Depends-on): Add c++defs.
19526         (Makefile.am): Substitute the contents of c++defs.h.
19527         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
19528         * modules/arpa_inet-c++-tests: New file.
19529         * tests/test-arpa_inet-c++.cc: New file.
19530
19531 2010-12-25  Bruno Haible  <bruno@clisp.org>
19532
19533         Fix more C++ link errors on Solaris 8.
19534         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
19535         $(LIB_EACCESS).
19536         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
19537         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
19538         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
19539         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
19540         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
19541
19542 2010-12-25  Bruno Haible  <bruno@clisp.org>
19543
19544         printf-posix: Fix link error when a non-GCC compiler is used.
19545         * lib/stdio.in.h (printf): When not using GCC, override printf
19546         correctly.
19547         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19548
19549 2010-12-25  Bruno Haible  <bruno@clisp.org>
19550
19551         strerror_r-posix: Update doc.
19552         * doc/posix-functions/strerror_r.texi: Update doc about the return
19553         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
19554
19555 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19556
19557         utimens: simplify the logic of the previous change
19558         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
19559         This should not affect whether the test succeeds or fails.
19560
19561         utimens: configure better on hosts with NFS clock skew
19562         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
19563         uses the clock of the local host.  It might use the clock of the
19564         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
19565         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19566
19567 2010-12-25  Bruno Haible  <bruno@clisp.org>
19568
19569         ptsname test: Avoid failure on Solaris.
19570         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
19571         open a pseudo-terminal; don't use BSD-style ptys.
19572         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
19573
19574 2010-12-25  Bruno Haible  <bruno@clisp.org>
19575
19576         ptsname: Avoid ERANGE failure on some systems.
19577         * lib/ptsname.c (buffer): Increase size.
19578
19579 2010-12-25  Bruno Haible  <bruno@clisp.org>
19580
19581         rename, renameat: Avoid test failures at NFS mounted locations.
19582         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
19583         so that subsequent mkdir calls succeed.
19584
19585 2010-12-25  Bruno Haible  <bruno@clisp.org>
19586
19587         iswblank: Fix C++ link error on Solaris 8.
19588         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
19589         _GL_FUNCDECL_SYS.
19590
19591 2010-12-25  Bruno Haible  <bruno@clisp.org>
19592
19593         unistd: Fix C++ link error on Solaris 8.
19594         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
19595
19596 2010-12-25  Bruno Haible  <bruno@clisp.org>
19597
19598         readlink doc: Mention an old glibc bug.
19599         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
19600
19601 2010-12-25  Bruno Haible  <bruno@clisp.org>
19602
19603         fcntl-h: Fix for use of C++ on glibc systems.
19604         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19605         also on glibc systems in C++ mode.
19606         Reported by Gary V. Vaughan <gary@gnu.org>.
19607
19608 2010-12-25  Bruno Haible  <bruno@clisp.org>
19609
19610         roundl-ieee: Make it work on OSF/1 5.1 with cc.
19611         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
19612
19613 2010-12-25  Bruno Haible  <bruno@clisp.org>
19614
19615         truncl-ieee: Make it work on OSF/1 5.1 with cc.
19616         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
19617         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
19618         test whether truncl works according to ISO C 99 with IEC 60559.
19619         * m4/truncl-ieee.m4: New file.
19620         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
19621         m4/signbit.m4.
19622         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
19623
19624 2010-12-25  Bruno Haible  <bruno@clisp.org>
19625
19626         ceill-ieee: Make it work on OSF/1 5.1 with cc.
19627         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
19628         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
19629         test whether ceill works according to ISO C 99 with IEC 60559.
19630         * m4/ceill-ieee.m4: New file.
19631         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
19632         m4/signbit.m4.
19633         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
19634
19635 2010-12-25  Bruno Haible  <bruno@clisp.org>
19636
19637         Ensure all prerequisites of <wchar.h> are included.
19638         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
19639         before <wchar.h>.
19640         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19641         gl_MBRLEN_NUL_RETVAL): Likewise.
19642         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19643         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
19644         AC_FUNC_MBRTOWC): Likewise.
19645         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19646         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19647         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19648         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19649         Likewise.
19650         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19651         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
19652         (gl_WCHAR_H): Improve comments.
19653         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19654
19655 2010-12-25  Bruno Haible  <bruno@clisp.org>
19656
19657         strtok_r: Fix C syntax error in autoconf macro.
19658         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
19659         characters in test program.
19660
19661 2010-12-24  Bruno Haible  <bruno@clisp.org>
19662
19663         ceil, trunc, round: Fix gcc warnings.
19664         * lib/ceil.c (MIN): Undefine before redefining.
19665         * lib/trunc.c (MIN): Likewise.
19666         * lib/round.c (MIN): Likewise.
19667         Include <math.h> first.
19668
19669 2010-12-24  Bruno Haible  <bruno@clisp.org>
19670
19671         select tests: Avoid failures on OSF/1 5.1.
19672         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
19673         failure of closing the last socket; it may fail with ECONNRESET.
19674
19675 2010-12-24  Eric Blake  <eblake@redhat.com>
19676
19677         stdint: avoid HP-UX 10.20 preprocessor bug
19678         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
19679         than #if.
19680         * tests/test-floor2.c (main): Likewise.
19681         Reported by Peter O'Gorman.
19682
19683         pipe: make obsoletion transition easier
19684         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
19685         * modules/pipe (Files): Include revived file.
19686         (Include): Drop reference, to mirror getdate's behavior.
19687
19688 2010-12-24  Bruno Haible  <bruno@clisp.org>
19689
19690         sys_socket: Hide mismatch of declarations on NonStop Kernel.
19691         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
19692         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
19693         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19694
19695 2010-12-24  Bruno Haible  <bruno@clisp.org>
19696
19697         gethostname: Ensure declaration on NonStop Kernel.
19698         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
19699         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19700
19701 2010-12-24  Bruno Haible  <bruno@clisp.org>
19702
19703         sys_select: Ensure all necessary types on NonStop Kernel.
19704         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
19705         include <sys/time.h>.
19706         * doc/posix-headers/sys_select.texi: Mention that it's missing on
19707         NonStop Kernel.
19708         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19709
19710 2010-12-24  Bruno Haible  <bruno@clisp.org>
19711
19712         sys_select: Remove unneeded include.
19713         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
19714         have <sys/select.h>.
19715
19716 2010-12-24  Bruno Haible  <bruno@clisp.org>
19717
19718         gethostname: Provide a fallback for HOST_NAME_MAX.
19719         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
19720         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
19721         instead.
19722         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19723
19724 2010-12-24  Bruno Haible  <bruno@clisp.org>
19725
19726         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
19727         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
19728         (SA_RESTART): Likewise.
19729         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19730
19731 2010-12-24  Bruno Haible  <bruno@clisp.org>
19732
19733         signal: Define NSIG.
19734         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
19735         * tests/test-signal.c (nsig): New variable.
19736         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19737
19738 2010-12-24  Bruno Haible  <bruno@clisp.org>
19739
19740         rename, renameat: Avoid test failures on OSF/1 5.1.
19741         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
19742         alternative error codes.
19743         * tests/test-renameat.c (main): Likewise.
19744
19745 2010-12-24  Bruno Haible  <bruno@clisp.org>
19746
19747         *printf: Detect large precisions bug on Solaris 10/SPARC.
19748         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
19749         by Paul Eggert.
19750         * tests/test-snprintf-posix.h (test_function): Add this test code here
19751         too.
19752         * tests/test-sprintf-posix.h (test_function): Likewise.
19753         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19754         * tests/test-vasprintf-posix.c (test_function): Likewise.
19755         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
19756         around by gnulib.
19757         * doc/posix-functions/printf.texi: Likewise.
19758         * doc/posix-functions/snprintf.texi: Likewise.
19759         * doc/posix-functions/sprintf.texi: Likewise.
19760         * doc/posix-functions/vfprintf.texi: Likewise.
19761         * doc/posix-functions/vprintf.texi: Likewise.
19762         * doc/posix-functions/vsnprintf.texi: Likewise.
19763         * doc/posix-functions/vsprintf.texi: Likewise.
19764         * doc/posix-functions/dprintf.texi: Undo last commit.
19765         * doc/posix-functions/vdprintf.texi: Likewise.
19766
19767 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19768
19769         tests: port test-fdutimensat.c to Solaris 8
19770         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
19771         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
19772         On Solaris 8, it fails with errno == ENOSYS, because there is no
19773         futimens (so it can't use the fd), and there is no lutimens (so it
19774         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
19775
19776         vsnprintf: make more consistent with snprintf; doc fixes
19777
19778         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
19779         the byte count return problem was promoted from the snprintf-posix
19780         to the snprintf module.
19781         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
19782         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
19783         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
19784         * tests/test-snprintf.c (main): Check the byte count returned.
19785         * tests/test-vsnprintf.c (main): Likewise.
19786
19787 2010-12-23  Eric Blake  <eblake@redhat.com>
19788
19789         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
19790         * modules/sigpipe (License): Relax license.
19791
19792 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19793
19794         doc: document Solaris printf bug with large float precisions
19795         * doc/posix-functions/dprintf.texi (dprintf):
19796         * doc/posix-functions/fprintf.texi (fprintf):
19797         * doc/posix-functions/printf.texi (printf):
19798         * doc/posix-functions/snprintf.texi (snprintf):
19799         * doc/posix-functions/sprintf.texi (sprintf):
19800         * doc/posix-functions/vdprintf.texi (vdprintf):
19801         * doc/posix-functions/vfprintf.texi (vfprintf):
19802         * doc/posix-functions/vprintf.texi (vprintf):
19803         * doc/posix-functions/vsnprintf.texi (vsnprintf):
19804         * doc/posix-functions/vsprintf.texi (vsprintf):
19805         Mention that these functions mishandle large floating point
19806         precisions on Solaris 10.  The same bug is also present in Solaris
19807         8, and I assume earlier.  This causes "cd gnulib-tests; make
19808         check" to fail on Solaris 8 (and I assume, later) when building
19809         the latest coreutils, in test-vasprintf-posix's call to
19810         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
19811         the wide flavors (e.g., wprintf) so this patch just updates the
19812         documentation for the narrow ones.
19813
19814         test-posixtm.c: add two tests
19815         * tests/test-posixtm.c: Add two tests, to highlight the
19816         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
19817         around this bug; this is merely to document it.
19818
19819 2010-12-22  Bruno Haible  <bruno@clisp.org>
19820
19821         getlogin_r: Work around portability problem on OSF/1.
19822         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
19823         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
19824         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
19825         test for a truncated result.
19826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
19827         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
19828         * modules/getlogin_r (Depends-on): Add memchr.
19829         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
19830
19831 2010-12-22  Bruno Haible  <bruno@clisp.org>
19832
19833         ptsname: Avoid test failure on OSF/1 5.1.
19834         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
19835         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
19836         (same_slave): New function.
19837         (main): Use it to compare ptsname's result with the expected file name.
19838
19839 2010-12-22  Bruno Haible  <bruno@clisp.org>
19840
19841         Port extended stdio modules to HP NonStop Kernel.
19842         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
19843         macros.
19844         * lib/fbufmode.c: Update comments.
19845         * lib/fflush.c: Likewise.
19846         * lib/fpurge.c: Likewise.
19847         * lib/freadable.c: Likewise.
19848         * lib/freadahead.c: Likewise.
19849         * lib/freading.c: Likewise.
19850         * lib/freadptr.c: Likewise.
19851         * lib/freadseek.c: Likewise.
19852         * lib/fseeko.c: Likewise.
19853         * lib/fseterr.c: Likewise.
19854         * lib/fwritable.c: Likewise.
19855         * lib/fwriting.c: Likewise.
19856         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19857
19858 2010-12-22  Bruno Haible  <bruno@clisp.org>
19859
19860         ttyname_r: Work around bug on OSF/1 5.1.
19861         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
19862         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
19863         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
19864         present.
19865         * lib/ttyname_r.c (ttyname_r): Update comments.
19866
19867 2010-12-22  Bruno Haible  <bruno@clisp.org>
19868
19869         round: Implement result sign according to IEEE 754.
19870         * lib/round.c (MIN, MINUS_ZERO): New macros.
19871         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
19872         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
19873         * tests/test-round-ieee.c (main): Likewise.
19874         * tests/test-roundl-ieee.c (main): Likewise.
19875
19876         trunc: Implement result sign according to IEEE 754.
19877         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
19878         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
19879         * tests/test-trunc2.c: Include minus-zero.h.
19880         (MINUS_ZERO): New macro.
19881         (trunc_reference): Keep in sync with lib/trunc.c.
19882         * tests/test-truncf2.c: Include minus-zero.h.
19883         (MINUS_ZERO): New macro.
19884         (truncf_reference): Keep in sync with lib/trunc.c.
19885         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
19886         * tests/test-trunc-ieee.c (main): Likewise.
19887         * tests/test-truncl-ieee.c (main): Likewise.
19888
19889         ceil: Implement result sign according to IEEE 754.
19890         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
19891         (FUNC): Return -0.0 for -1 < x < 0.
19892         * tests/test-ceil2.c: Include minus-zero.h.
19893         (MINUS_ZERO): New macro.
19894         (ceil_reference): Keep in sync with lib/ceil.c.
19895         * tests/test-ceilf2.c: Include minus-zero.h.
19896         (MINUS_ZERO): New macro.
19897         (ceilf_reference): Keep in sync with lib/ceil.c.
19898         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
19899         * tests/test-ceil-ieee.c (main): Likewise.
19900         * tests/test-ceill-ieee.c (main): Likewise.
19901
19902         floor: Implement result sign according to IEEE 754.
19903         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
19904         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
19905         * tests/test-floorf2.c (floorf_reference): Likewise.
19906         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
19907         * tests/test-floor-ieee.c (main): Likewise.
19908         * tests/test-floorl-ieee.c (main): Likewise.
19909
19910 2010-12-22  Bruno Haible  <bruno@clisp.org>
19911
19912         getaddrinfo: Update doc.
19913         * doc/posix-functions/gai_strerror.texi: Return type is also different
19914         on AIX and HP-UX.
19915
19916 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19917
19918         getaddrinfo, inet_ntop: Update doc for Solaris.
19919         * doc/posix-functions/gai_strerror.texi: Return type is also an
19920         issue on Solaris 9 and earlier.
19921         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
19922         on Solaris 10 and earlier.
19923
19924 2010-12-21  Bruno Haible  <bruno@clisp.org>
19925
19926         New module 'roundl-ieee'.
19927         * modules/roundl-ieee: New file.
19928         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
19929         test whether roundl works according to ISO C 99 with IEC 60559.
19930         * m4/roundl-ieee.m4: New file.
19931         * modules/roundl-ieee-tests: New file.
19932         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
19933         * tests/test-roundl.c (main): Remove signbit tests.
19934         * modules/roundl-tests (Depends-on): Remove signbit.
19935         * doc/posix-functions/roundl.texi: Mention the new module.
19936
19937 2010-12-21  Bruno Haible  <bruno@clisp.org>
19938
19939         New module 'truncl-ieee'.
19940         * modules/truncl-ieee: New file.
19941         * modules/truncl-ieee-tests: New file.
19942         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
19943         * tests/test-truncl.c (main): Remove signbit tests.
19944         * modules/truncl-tests (Depends-on): Remove signbit.
19945         * doc/posix-functions/truncl.texi: Mention the new module.
19946
19947 2010-12-21  Bruno Haible  <bruno@clisp.org>
19948
19949         New module 'ceill-ieee'.
19950         * modules/ceill-ieee: New file.
19951         * modules/ceill-ieee-tests: New file.
19952         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
19953         * tests/test-ceill.c (main): Remove signbit tests.
19954         * modules/ceill-tests (Depends-on): Remove signbit.
19955         * doc/posix-functions/ceill.texi: Mention the new module.
19956
19957 2010-12-21  Bruno Haible  <bruno@clisp.org>
19958
19959         New module 'floorl-ieee'.
19960         * modules/floorl-ieee: New file.
19961         * modules/floorl-ieee-tests: New file.
19962         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
19963         * tests/test-floorl.c (main): Remove signbit tests.
19964         * modules/floorl-tests (Depends-on): Remove signbit.
19965         * doc/posix-functions/floorl.texi: Mention the new module.
19966
19967 2010-12-21  Bruno Haible  <bruno@clisp.org>
19968
19969         New module 'round-ieee'.
19970         * modules/round-ieee: New file.
19971         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
19972         whether round works according to ISO C 99 with IEC 60559.
19973         * m4/round-ieee.m4: New file.
19974         * modules/round-ieee-tests: New file.
19975         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
19976         * tests/test-round1.c (main): Remove signbit tests.
19977         * modules/round-tests (Depends-on): Remove 'signbit'.
19978         * doc/posix-functions/round.texi: Mention the new module.
19979
19980 2010-12-21  Bruno Haible  <bruno@clisp.org>
19981
19982         New module 'trunc-ieee'.
19983         * modules/trunc-ieee: New file.
19984         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
19985         whether trunc works according to ISO C 99 with IEC 60559.
19986         * m4/trunc-ieee.m4: New file.
19987         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
19988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
19989         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
19990         * modules/trunc-ieee-tests: New file.
19991         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
19992         * tests/test-trunc1.c (main): Remove signbit tests.
19993         * modules/trunc-tests (Depends-on): Remove 'signbit'.
19994         * doc/posix-functions/trunc.texi: Mention the new module.
19995
19996 2010-12-21  Bruno Haible  <bruno@clisp.org>
19997
19998         New module 'ceil-ieee'.
19999         * modules/ceil-ieee: New file.
20000         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
20001         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
20002         ISO C 99 with IEC 60559.
20003         * m4/ceil-ieee.m4: New file.
20004         * modules/ceil (Files): Add lib/ceil.c.
20005         (Depends-on): Add 'float'.
20006         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20007         * lib/math.in.h (ceil): New declaration.
20008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
20009         REPLACE_CEIL.
20010         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
20011         * modules/ceil-ieee-tests: New file.
20012         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
20013         * tests/test-math-c++.cc: Check the signature of 'ceil'.
20014         * doc/posix-functions/ceil.texi: Mention the new module.
20015
20016 2010-12-21  Bruno Haible  <bruno@clisp.org>
20017
20018         New module 'floor-ieee'.
20019         * modules/floor-ieee: New file.
20020         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
20021         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
20022         ISO C 99 with IEC 60559.
20023         * m4/floor-ieee.m4: New file.
20024         * modules/floor (Files): Add lib/floor.c.
20025         (Depends-on): Add 'float'.
20026         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20027         * lib/math.in.h (floor): New declaration.
20028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
20029         REPLACE_FLOOR.
20030         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
20031         * modules/floor-ieee-tests: New file.
20032         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
20033         * tests/test-math-c++.cc: Check the signature of 'floor'.
20034         * doc/posix-functions/floor.texi: Mention the new module.
20035
20036 2010-12-21  Bruno Haible  <bruno@clisp.org>
20037
20038         New module 'roundf-ieee'.
20039         * modules/roundf-ieee: New file.
20040         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
20041         test whether roundf works according to ISO C 99 with IEC 60559.
20042         * m4/roundf-ieee.m4: New file.
20043         * modules/roundf-ieee-tests: New file.
20044         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
20045         * tests/test-roundf1.c (main): Remove signbit tests.
20046         * modules/roundf-tests (Depends-on): Remove 'signbit'.
20047         * doc/posix-functions/roundf.texi: Mention the new module.
20048
20049 2010-12-21  Bruno Haible  <bruno@clisp.org>
20050
20051         New module 'truncf-ieee'.
20052         * modules/truncf-ieee: New file.
20053         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
20054         test whether truncf works according to ISO C 99 with IEC 60559.
20055         * m4/truncf-ieee.m4: New file.
20056         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
20057         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
20058         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
20059         * modules/truncf-ieee-tests: New file.
20060         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
20061         * tests/test-truncf1.c (main): Remove signbit tests.
20062         * modules/truncf-tests (Depends-on): Remove 'signbit'.
20063         * doc/posix-functions/truncf.texi: Mention the new module.
20064
20065 2010-12-21  Bruno Haible  <bruno@clisp.org>
20066
20067         New module 'ceilf-ieee'.
20068         * modules/ceilf-ieee: New file.
20069         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
20070         test whether ceilf works according to ISO C 99 with IEC 60559.
20071         * m4/ceilf-ieee.m4: New file.
20072         * modules/ceilf-ieee-tests: New file.
20073         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
20074         * tests/test-ceilf1.c (main): Remove signbit tests.
20075         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
20076         * doc/posix-functions/ceilf.texi: Mention the new module.
20077
20078 2010-12-21  Bruno Haible  <bruno@clisp.org>
20079
20080         New module 'floorf-ieee'.
20081         * modules/floorf-ieee: New file.
20082         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
20083         test whether floorf works according to ISO C 99 with IEC 60559.
20084         * m4/floorf-ieee.m4: New file.
20085         * modules/floorf-ieee-tests: New file.
20086         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
20087         * tests/test-floorf1.c (main): Remove signbit tests.
20088         * modules/floorf-tests (Depends-on): Remove 'signbit'.
20089         * doc/posix-functions/floorf.texi: Mention the new module.
20090
20091 2010-12-21  Bruno Haible  <bruno@clisp.org>
20092
20093         Support for minus zero in autoconf macros.
20094         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
20095         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
20096         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
20097         * tests/minus-zero.h: Update comments.
20098
20099 2010-12-21  Bruno Haible  <bruno@clisp.org>
20100
20101         Tests for module 'ceil'.
20102         * modules/ceil-tests: New file.
20103         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
20104         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
20105
20106 2010-12-21  Bruno Haible  <bruno@clisp.org>
20107
20108         Tests for module 'floor'.
20109         * modules/floor-tests: New file.
20110         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
20111         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
20112
20113 2010-12-21  Bruno Haible  <bruno@clisp.org>
20114
20115         math: Fix indentation.
20116         * lib/math.in.h (floorf): Fix indentation.
20117
20118 2010-12-21  Bruno Haible  <bruno@clisp.org>
20119
20120         Fix cross-compilation guesses on Solaris.
20121         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
20122         not match "solaris2.10".
20123         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20124         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
20125         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
20126
20127 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20128
20129         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
20130         This fixes a problem observed with the latest coreutils snapshot
20131         that caused a test to fail on Solaris 8.  src/csplit.c's call
20132         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
20133         earlier, instead of returning the number of bytes that would have
20134         been generated; this causes csplit to incorrectly report memory
20135         exhaustion.
20136         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
20137         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
20138         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
20139         comments to match.
20140         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
20141         Fix typo in matching older versions of Solaris: "solaris2.10"
20142         is matched by the shell pattern "solaris2.[0-9]*".  This matters
20143         only for guessing while cross-compiling.
20144         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
20145
20146 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20147
20148         ftoastr: fix comment again
20149         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20150         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
20151         Also, simplify example a bit by using flags = 0.
20152
20153 2010-12-20  Bruno Haible  <bruno@clisp.org>
20154
20155         round*, trunc*: Update documentation regarding glibc.
20156         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
20157         * doc/posix-functions/round.texi: Likewise.
20158         * doc/posix-functions/roundl.texi: Likewise.
20159         * doc/posix-functions/truncf.texi: Likewise.
20160         * doc/posix-functions/trunc.texi: Likewise.
20161         * doc/posix-functions/truncl.texi: Likewise.
20162
20163 2010-12-20  Bruno Haible  <bruno@clisp.org>
20164
20165         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
20166         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
20167         * doc/posix-functions/round.texi: Likewise.
20168         * doc/posix-functions/roundl.texi: Likewise.
20169
20170 2010-12-20  Bruno Haible  <bruno@clisp.org>
20171
20172         ttyname_r: Add missing declaration on HP-UX 11.
20173         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
20174         HAVE_TTYNAME_R.
20175         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
20176         declared. Set HAVE_TTYNAME_R always.
20177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20178         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
20179         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
20180         HAVE_TTYNAME_R.
20181         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
20182
20183 2010-12-20  Bruno Haible  <bruno@clisp.org>
20184
20185         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
20186         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
20187         * doc/posix-functions/getlogin_r.texi: Likewise.
20188         * tests/test-getlogin.c: Include <errno.h>.
20189         (main): Avoid test failure on HP-UX 11.11.
20190         * tests/test-getlogin_r.c (main): Likewise.
20191
20192 2010-12-20  Bruno Haible  <bruno@clisp.org>
20193
20194         getlogin_r: Add missing declaration on HP-UX 11.
20195         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
20196         declared also when it exists as a function.
20197         * doc/posix-functions/getlogin_r.texi: Document this workaround.
20198
20199 2010-12-20  Bruno Haible  <bruno@clisp.org>
20200
20201         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
20202         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
20203         through wcrtomb.
20204
20205 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20206
20207         ftoastr: fix comment
20208         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
20210
20211 2010-12-19  Bruno Haible  <bruno@clisp.org>
20212
20213         isnan: Ensure it is a macro.
20214         * lib/math.in.h (isnan): Define as a macro if not already a macro.
20215         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
20216         Solaris.
20217
20218 2010-12-19  Bruno Haible  <bruno@clisp.org>
20219
20220         ldexpl test: Fix link error on OSF/1 5.1.
20221         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
20222
20223 2010-12-19  Bruno Haible  <bruno@clisp.org>
20224
20225         wctype: Make it work in C++ mode on OSF/1 5.1.
20226         * lib/wctype.in.h (iswblank): Declare but not define here.
20227         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
20228         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
20229         * modules/wctype (Files): Add lib/iswblank.c.
20230
20231 2010-12-19  Bruno Haible  <bruno@clisp.org>
20232
20233         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
20234         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
20235         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
20236
20237 2010-12-19  Bruno Haible  <bruno@clisp.org>
20238
20239         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
20240         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
20241         _POSIX_PII_SOCKET.
20242         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
20243         * doc/posix-functions/recvfrom.texi: Likewise.
20244         * doc/posix-functions/send.texi: Likewise.
20245         * doc/posix-functions/sendto.texi: Likewise.
20246
20247 2010-12-19  Bruno Haible  <bruno@clisp.org>
20248
20249         tcgetsid: Add missing declaration on OSF/1 5.1.
20250         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
20251         HAVE_TCGETSID.
20252         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
20253         Don't set HAVE_TCGETSID.
20254         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
20255         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
20256         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
20257         HAVE_TCGETSID.
20258         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
20259
20260 2010-12-19  Bruno Haible  <bruno@clisp.org>
20261
20262         stdio: Fix problem with popen() declaration on OSF/1 5.1.
20263         * lib/stdio.in.h: During the include_next statement, let recursive
20264         includes of this file include only the system header file.
20265
20266 2010-12-19  Bruno Haible  <bruno@clisp.org>
20267
20268         iconv_open: Fix regression from 2010-12-04.
20269         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
20270         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
20271
20272 2010-12-19  Bruno Haible  <bruno@clisp.org>
20273
20274         stdbool test: Avoid a gcc warning.
20275         * tests/test-stdbool.c (main): Fail if e1 is false.
20276         Reported by Jim Meyering.
20277
20278 2010-12-19  Jim Meyering  <meyering@redhat.com>
20279
20280         setenv: restore to working order
20281         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
20282         mistakenly removed.
20283         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
20284         HAVE_SETENV.
20285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
20286         HAVE_SETENV.
20287
20288 2010-12-19  Bruno Haible  <bruno@clisp.org>
20289
20290         Document some different function declarations on OSF/1 5.1.
20291         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
20292         * doc/posix-functions/inet_ntop.texi: Likewise.
20293         * doc/posix-functions/gethostname.texi: Likewise.
20294         * lib/unistd.in.h (gethostname): Update comment.
20295
20296 2010-12-19  Bruno Haible  <bruno@clisp.org>
20297
20298         doc: Mention vasprintf-posix module.
20299         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
20300         the 'vasprintf-posix' module.
20301         * doc/glibc-functions/vasprintf.texi: Likewise.
20302
20303 2010-12-19  Bruno Haible  <bruno@clisp.org>
20304
20305         unsetenv: Add missing declaration on OSF/1 5.1.
20306         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
20307         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
20308         Don't set HAVE_UNSETENV. In the test program, set _BSD.
20309         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
20310         not HAVE_UNSETENV.
20311         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
20312         HAVE_UNSETENV.
20313         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
20314
20315 2010-12-19  Bruno Haible  <bruno@clisp.org>
20316
20317         setenv: Add missing declaration on OSF/1 5.1.
20318         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
20319         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
20320         declared. Don't set HAVE_SETENV.
20321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
20322         not HAVE_SETENV.
20323         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
20324         HAVE_SETENV.
20325         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
20326
20327 2010-12-19  Bruno Haible  <bruno@clisp.org>
20328
20329         nl_langinfo tests: Avoid gcc warning.
20330         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
20331
20332 2010-12-19  Bruno Haible  <bruno@clisp.org>
20333
20334         mknod: Avoid error in C++ mode on OSF/1 with GCC.
20335         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
20336         _GL_CXXALIAS_SYS.
20337
20338 2010-12-19  Bruno Haible  <bruno@clisp.org>
20339
20340         stdbool: Relax test.
20341         * tests/test-stdbool.c (e): Don't require that casts from a variable's
20342         address to 'bool' work in static initializer, for compilers other than
20343         GCC.
20344
20345 2010-12-19  Bruno Haible  <bruno@clisp.org>
20346
20347         ftello: Add missing declaration on OSF/1 5.1.
20348         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
20349         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
20350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
20351         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
20352         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
20353
20354 2010-12-19  Bruno Haible  <bruno@clisp.org>
20355
20356         fseeko: Add missing declaration on OSF/1 5.1.
20357         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
20358         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
20359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
20360         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
20361         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
20362
20363 2010-12-19  Bruno Haible  <bruno@clisp.org>
20364
20365         fchdir: Add missing declaration on OSF/1 5.1.
20366         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
20367         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
20368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
20369         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
20370         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
20371
20372 2010-12-19  Bruno Haible  <bruno@clisp.org>
20373
20374         relocatable-prog-wrapper: Separate from relocatable-prog.
20375         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
20376         uninstall-relocwrapper rule here.
20377         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
20378         Reported by Ian Beckwith <ianb@erislabs.net>.
20379
20380 2010-12-19  Bruno Haible  <bruno@clisp.org>
20381
20382         unistr/u8-mbsnlen: Add missing dependency.
20383         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
20384         Reported by Ian Beckwith <ianb@erislabs.net>.
20385
20386 2010-12-19  Bruno Haible  <bruno@clisp.org>
20387
20388         iconv: Make it possible again to use this module without 'iconv-h'.
20389         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
20390         if it is not defined.
20391         Reported by Ian Beckwith <ianb@erislabs.net>.
20392
20393 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20394
20395         acl: port to Solaris 8 when copying from tmpfs to ufs
20396         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
20397         error number.  Problem observed on Solaris 8 with latest
20398         coreutils, with "mv A B", where A is on a tmpfs file system and B
20399         is on a ufs file system.  This caused coreutils' mv/part-symlink
20400         test to fail.
20401
20402         tests: set fail=0 at start
20403         * tests/init.sh (setup_): Move fail=0 initialization here ...
20404         (mktempd_): ... from here, so that tests can rely on fail being
20405         set to 0 initially.  This fixes a problem in coreutils; see:
20406         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
20407
20408 2010-12-18  Bruno Haible  <bruno@clisp.org>
20409
20410         memmem-simple: Stylistic changes.
20411         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
20412         Fix preprocessor directive indentation.
20413
20414 2010-12-15  Pádraig Brady <P@draigBrady.com>
20415
20416         memmem, memmem-simple: reorganize and expand empty needle check
20417         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
20418         functional checks to memmem-simple so that one has a fully functional
20419         memmem by using just this module.
20420         Restrict the performance only check to the memmem module.
20421         Also expand the empty needle check to ensure the correct
20422         pointer is returned, not just a non NULL pointer.
20423         * doc/glibc-functions/memmem.texi: Rearrange the portability
20424         documentation to correlate with the rearranged checks.
20425         Clarify exactly how the memmem and memmem-simple modules
20426         relate to each other.
20427
20428 2010-12-15  Pádraig Brady <P@draigBrady.com>
20429             Bruno Haible  <bruno@clisp.org>
20430
20431         Improve cross-compilation guesses for uClibc.
20432         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
20433         that uClibc does not have the glibc bug.
20434         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20435         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
20436
20437 2010-12-14  Eric Blake  <eblake@redhat.com>
20438
20439         configmake: provide fallbacks for oldest supported autotools
20440         * m4/configmake.m4: New file.
20441         * modules/configmake (Files): Ship it.
20442         (configure.ac): Use it to guarantee fallbacks.
20443
20444 2010-12-13  Pádraig Brady <P@draigBrady.com>
20445
20446         read-file: Improve handling of large files
20447         * lib/read-file.c (fread_file): Minimize realloc()s
20448         for regular files, and better manage sizes around SIZE_MAX.
20449
20450 2010-12-13  Eric Blake  <eblake@redhat.com>
20451
20452         cloexec, fcntl: relax license
20453         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
20454         consent from all contributors.
20455         * modules/fcntl (License): Likewise.
20456
20457 2010-12-10  Bruno Haible  <bruno@clisp.org>
20458
20459         Tests for module 'pipe-posix'.
20460         * modules/pipe-posix-tests: New file.
20461         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
20462
20463 2010-12-10  Bruno Haible  <bruno@clisp.org>
20464
20465         pipe-posix: Make it work in C++ mode.
20466         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
20467         (pipe): Use common idiom, not a macro definition.
20468         * lib/pipe.c: New file.
20469         * m4/pipe.m4: New file.
20470         * modules/pipe-posix (Description): Enhance.
20471         (Files): Add lib/pipe.c, m4/pipe.m4.
20472         (configure.ac): Invoke gl_FUNC_PIPE.
20473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
20474         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
20475         * tests/test-unistd-c++.cc: Check the signature of pipe.
20476
20477 2010-12-10  Bruno Haible  <bruno@clisp.org>
20478
20479         Rename module 'pipe' to 'spawn-pipe'.
20480         * modules/spawn-pipe: New file, renamed from modules/pipe.
20481         (Files, configure.ac, Makefile.am): Update.
20482         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
20483         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
20484         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
20485         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
20486         "spawn-pipe.h" instead of "pipe.h".
20487         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
20488         to gl_SPAWN_PIPE.
20489         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
20490         (Files, Makefile.am): Update.
20491         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
20492         Update.
20493         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
20494         Include "spawn-pipe.h" instead of "pipe.h".
20495         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
20496         * lib/javacomp.c: Likewise.
20497         * lib/javaversion.c: Likewise.
20498         * lib/pipe-filter-gi.c: Likewise.
20499         * lib/pipe-filter-ii.c: Likewise.
20500         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
20501         * modules/javacomp (Depends-on): Likewise.
20502         * modules/javaversion (Depends-on): Likewise.
20503         * modules/pipe-filter-gi (Depends-on): Likewise.
20504         * modules/pipe-filter-ii (Depends-on): Likewise.
20505         * MODULES.html.sh (Executing programs): Update.
20506         * NEWS: Mention the change.
20507
20508 2010-12-10  Eric Blake  <eblake@redhat.com>
20509
20510         pipe-posix: new module
20511         * modules/pipe-posix: New file.
20512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
20513         (gl_UNISTD_H): Check for declaration.
20514         * modules/unistd (Makefile.am): Substitute it.
20515         * lib/unistd.in.h (pipe): Provide it for mingw.
20516         * doc/posix-functions/pipe.texi (pipe): Update documentation.
20517         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
20518
20519 2010-12-07  Bruno Haible  <bruno@clisp.org>
20520
20521         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
20522         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
20523         u8_strcmp_gnu.
20524         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
20525
20526 2010-12-06  Bruno Haible  <bruno@clisp.org>
20527
20528         Update internal documentation.
20529         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
20530
20531 2010-12-04  Bruno Haible  <bruno@clisp.org>
20532
20533         Put more information about failed tests into the test return codes.
20534         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
20535         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
20536         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20537         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20538         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20539         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20540         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20541         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20542         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
20543         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20544         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
20545         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20546         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
20547         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20548         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
20549         returns a bit mask.
20550         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
20551         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
20552         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
20553         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
20554         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20555         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20556         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20557         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20558         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20559         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20560         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20561         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20562         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20563         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20564         * m4/link.m4 (gl_FUNC_LINK): Likewise.
20565         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20566         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
20567         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
20568         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20569         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
20570         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20571         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20572         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
20573         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20574         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20575         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20576         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
20577         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20578         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20579         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
20580         gl_PRINTF_PRECISION): Likewise.
20581         * m4/regex.m4 (gl_REGEX): Likewise.
20582         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20583         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20584         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
20585         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20586         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20587         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20588         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20589         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
20590         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20591         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20592         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20593         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20594         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20595         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20596         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20597         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20598         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
20599         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20600         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20601         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
20602         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
20603         enumerated value.
20604         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
20605
20606 2010-12-04  Bruno Haible  <bruno@clisp.org>
20607
20608         Update for Solaris 11 2010-11.
20609         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
20610         Express, released in November 2010.
20611
20612 2010-12-04  Bruno Haible  <bruno@clisp.org>
20613
20614         nproc: Relax license.
20615         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
20616         and Paul Eggert.
20617         Requested by Ludovic Courtès <ludo@gnu.org>.
20618
20619 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
20620
20621         utimecmp: fine-grained src to nearby coarse-grained dest
20622
20623         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
20624         and the source is on a file system with higher-resolution time
20625         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
20626         not work, and the time stamps are close together, the algorithm to
20627         determine the exact resolution from the read-back mtime was buggy:
20628         it had a "!=" where it should have had an "==".  This bug has been
20629         in the code ever since it was introduced to gnulib.
20630         Problem reported by Dan Jacobson in
20631         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
20632
20633 2010-11-30  Bruno Haible  <bruno@clisp.org>
20634
20635         strerror_r-posix: Fix autoconf test.
20636         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
20637
20638 2010-11-28  Bruno Haible  <bruno@clisp.org>
20639             Paul Eggert  <eggert@cs.ucla.edu>
20640
20641         Tests for module 'getdomainname'.
20642         * modules/getdomainname-tests: New file.
20643         * tests/test-getdomainname.c: New file, based on
20644         tests/test-gethostname.c.
20645
20646 2010-11-28  Bruno Haible  <bruno@clisp.org>
20647             Paul Eggert  <eggert@cs.ucla.edu>
20648
20649         getdomainname: Use the system function when possible.
20650         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
20651         (getdomainname): Replace if needed. Provide the declaration if it is
20652         missing. Don't use _GL_CXXALIAS_SYS_CAST.
20653         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
20654         (getdomainname): When the system has getdomainname, call the system
20655         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
20656         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20657         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
20658         found in libnsl. Look for the declaration also in <netdb.h>. Replace
20659         the function if its second argument is of type 'int' or if it is found
20660         in libnsl.
20661         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
20662         <sys/systeminfo.h> and sysinfo().
20663         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
20664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20665         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
20666         HAVE_GETDOMAINNAME.
20667         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
20668         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
20669         * doc/glibc-functions/getdomainname.texi: Document the problems with
20670         the getdomainname declaration.
20671
20672 2010-11-28  Bruno Haible  <bruno@clisp.org>
20673
20674         sys_socket: Ensure ss_family field on AIX.
20675         * lib/sys_socket.in.h (ss_family): New macro definition.
20676         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
20677         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
20678         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20679         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20680         * modules/sys_socket (Makefile.am): Substitute
20681         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20682         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
20683
20684 2010-11-27  Bruno Haible  <bruno@clisp.org>
20685
20686         readline: Improve configure output.
20687         * m4/readline.m4 (gl_FUNC_READLINE): Make the
20688         "checking for readline..." result understandable.
20689
20690 2010-11-27  Bruno Haible  <bruno@clisp.org>
20691
20692         *printf-posix: Detect a bug on Solaris 10/x86.
20693         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
20694         for floating-point output.
20695         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
20696         directive.
20697         * tests/test-snprintf-posix.h (test_function): Likewise.
20698         * tests/test-sprintf-posix.h (test_function): Likewise.
20699         * tests/test-vasprintf-posix.c (test_function): Likewise.
20700         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
20701         * doc/posix-functions/printf.texi: Likewise.
20702         * doc/posix-functions/snprintf.texi: Likewise.
20703         * doc/posix-functions/sprintf.texi: Likewise.
20704         * doc/posix-functions/vfprintf.texi: Likewise.
20705         * doc/posix-functions/vprintf.texi: Likewise.
20706         * doc/posix-functions/vsnprintf.texi: Likewise.
20707         * doc/posix-functions/vsprintf.texi: Likewise.
20708         * doc/glibc-functions/obstack_printf.texi: Likewise.
20709         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20710
20711 2010-11-27  Bruno Haible  <bruno@clisp.org>
20712
20713         Fix link error when module libunistring-optional is in use.
20714         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
20715         * modules/striconveha-tests (Makefile.am): Likewise.
20716
20717 2010-11-27  Bruno Haible  <bruno@clisp.org>
20718
20719         regex: Mention link dependencies.
20720         * modules/regex (Link): New section.
20721         * modules/rpmatch (Link): Likewise.
20722         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
20723
20724 2010-11-27  Bruno Haible  <bruno@clisp.org>
20725
20726         ftoastr: Fix compilation error on Solaris.
20727         * lib/ftoastr.c: Include <config.h>.
20728
20729 2010-11-27  Bruno Haible  <bruno@clisp.org>
20730
20731         getloadavg: Update documentation.
20732         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
20733
20734 2010-11-27  Bruno Haible  <bruno@clisp.org>
20735
20736         sys_socket: Fix test whether the functions are declared.
20737         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
20738         not <sys/select.h>.
20739
20740 2010-11-27  Bruno Haible  <bruno@clisp.org>
20741
20742         getpass: Make sure to get system declaration on some platforms.
20743         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
20744         gl_USE_SYSTEM_EXTENSIONS.
20745         * modules/getpass (Depends-on): Add extensions.
20746
20747 2010-11-26  Bruno Haible  <bruno@clisp.org>
20748
20749         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
20750         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
20751         'iconv' module is present.
20752         (ICONV_CONST): New macro.
20753         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
20754         ICONV_CONST.
20755         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
20756         set ICONV_CONST.
20757         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
20758         here.
20759         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
20760         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
20761         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
20762         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
20763         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
20764         present.
20765
20766 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20767
20768         ftoastr: comment fix
20769         * lib/ftoastr.c: "little" -> "little or no" in comment
20770
20771 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20772
20773         stdint: port to GCC 4.3 + OSX + Octave
20774         On this platform, stdint.h is buggy and defines int64_t to long
20775         long int.  The replacement defined it to long int, causing
20776         problems with C++ style name mangling.  Instead, trust the system
20777         definition if INT64_MAX is defined, and likewise for the unsigned
20778         variant.   Problem reported by Jarno Rajahalme in
20779         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
20780         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
20781         and don't mess with int64_t and INT64_MAX in this case.
20782         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
20783
20784 2010-11-24  Bruno Haible  <bruno@clisp.org>
20785
20786         doc: Corrections regarding MacOS X 10.4 and 10.5.
20787         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
20788         MacOS X.
20789         Reported by Simon Josefsson.
20790
20791 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
20792
20793         Uninstall ".bin" files installed by relocwrapper.
20794         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
20795         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
20796         unless it is already there.
20797
20798 2010-11-21  Bruno Haible  <bruno@clisp.org>
20799
20800         Update for NetBSD 5.0.
20801         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20802         NetBSD; the test fails on NetBSD 5.0.
20803         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20804         about NetBSD.
20805
20806 2010-11-21  Bruno Haible  <bruno@clisp.org>
20807
20808         Update for HP-UX 11.23 and HP-UX 11.31.
20809         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
20810         HP-UX.
20811
20812 2010-11-21  Bruno Haible  <bruno@clisp.org>
20813
20814         Update for MacOS X 10.5.
20815         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20816         MacOS X; the test fails on MacOS X 10.5.8.
20817         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20818         about MacOS X.
20819
20820 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
20821
20822         bootstrap: add bootstrap_sync option.
20823         See discussion at
20824         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
20825         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
20826         * build-aux/bootstrap: Accept --bootstrap-sync to update
20827         bootstrap if it is not identical to the local gnulib's
20828         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
20829         enable this by default.  Accept --no-bootstrap-sync to disable
20830         it.
20831
20832 2010-11-20  Bruno Haible  <bruno@clisp.org>
20833
20834         Ensure that <features.h> is included before __GLIBC__ is tested.
20835         * lib/printf-parse.h: Include <features.h>.
20836         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
20837         Reported by Mike Frysinger <vapier@gentoo.org>.
20838
20839         Ensure that <features.h> is included before __GLIBC__ is tested.
20840         * lib/wchar.in.h: Include <features.h>.
20841         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
20842         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
20843         Reported by Mike Frysinger <vapier@gentoo.org>.
20844
20845         Ensure that <features.h> is included before __GLIBC__ is tested.
20846         * lib/arpa_inet.in.h: Include <features.h>.
20847         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
20848         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
20849         Reported by Mike Frysinger <vapier@gentoo.org>.
20850
20851         Ensure that <features.h> is included before __GLIBC__ is tested.
20852         * build-aux/link-warning.h: Include <features.h>.
20853         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
20854         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
20855         Reported by Mike Frysinger <vapier@gentoo.org>.
20856
20857         Ensure that <features.h> is included before __GLIBC__ is tested.
20858         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
20859         Reported by Mike Frysinger <vapier@gentoo.org>.
20860
20861 2010-11-20  Bruno Haible  <bruno@clisp.org>
20862
20863         memmem: Fix autoconf test.
20864         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
20865
20866 2010-11-20  Bruno Haible  <bruno@clisp.org>
20867
20868         Port to uClibc.
20869         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
20870         * lib/fcntl.in.h: Likewise.
20871         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
20872         * lib/mbrtowc.c (mbrtowc): Likewise.
20873         * lib/relocatable.c (find_shared_library_fullname): Likewise.
20874         * lib/strerror_r.c: Likewise.
20875         * lib/unistr/u8-strnlen.c: Likewise.
20876         * lib/vasnprintf.c (decimal_point_char): Likewise.
20877         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20878         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20879         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20880         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
20881         * tests/test-sigaction.c (handler, main): Likewise.
20882         * lib/freading.h: Treat uClibc like a non-glibc platform.
20883         * lib/freading.c: Likewise.
20884         * lib/gettext.h: Likewise.
20885         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
20886         Likewise.
20887         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
20888         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20889         * lib/propername.c (proper_name_utf8): Likewise.
20890         * lib/spawn.in.h: Likewise.
20891         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
20892         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
20893         mem_cd_iconveh_internal): Likewise.
20894         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
20895         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20896         strstr, strcasestr): Likewise.
20897         * lib/unicodeio.c (unicode_to_mb): Likewise.
20898         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
20899         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
20900         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
20901         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
20902         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
20903         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
20904         * lib/unistr/u8-stpncpy.c: Likewise.
20905         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20906         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
20907         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20908         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20909         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
20910         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
20911         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
20912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
20913         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
20914         Likewise.
20915         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20916         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20917         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20918         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20919         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20920         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20921         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20922         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20923         * tests/test-getopt.h (OPTIND_MIN): Likewise.
20924         * tests/test-striconveha.c (main): Likewise.
20925         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20926         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
20927         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
20928         * doc/posix-functions/getline.texi: Likewise.
20929         Reported by Mike Frysinger <vapier@gentoo.org>.
20930
20931 2010-11-20  Bruno Haible  <bruno@clisp.org>
20932
20933         nproc: Fix condition.
20934         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
20935         HAVE_PTHREAD_AFFINITY_NP.
20936
20937 2010-11-20  Bruno Haible  <bruno@clisp.org>
20938
20939         Fix a comment.
20940         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
20941
20942 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
20943
20944         ftoastr: don't assume snprintf
20945         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
20946         Implement a subset of snprintf here, by using sprintf safely.
20947         * modules/ftoastr (Depends-on): Remove snprintf.
20948
20949 2010-11-19  Jim Meyering  <meyering@redhat.com>
20950
20951         test-rename.h: fix compilation failure
20952         * tests/test-rename.h (test_rename): Add omitted "}".
20953
20954 2010-11-17  Jim Meyering  <meyering@redhat.com>
20955
20956         maint.mk: add a URL discussing the no-@acronym policy
20957         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
20958
20959 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
20960
20961         ftoastr: depend on snprintf, improve comments
20962         * lib/ftoastr.c: Also mention Loitsch's draft.
20963         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
20964         needed in the current implementation, but it might simplify
20965         speeding up the code later.
20966         * modules/ftoastr: Depend on snprintf; this improves portability.
20967         Suggested by Bruno Haible in the same email.
20968
20969         ftoastr: port to hosts lacking strtof and strtold
20970         Problem reported by Bruno Haible in
20971         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
20972         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
20973         environment and strtold (and presumably strtof) are not available.
20974         * modules/ftoastr (Files): Add m4/c-strtod.m4.
20975         (configure.ac): Require gl_C99_STRTOLD.
20976
20977 2010-11-18  Bruno Haible  <bruno@clisp.org>
20978
20979         c-strtold: Avoid link error on AIX 7.
20980         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
20981         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
20982         (gl_C_STRTOLD): Test whether strtold_l exists.
20983         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20984
20985 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20986
20987         intprops: new macro INT_BITS_STRLEN_BOUND
20988         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
20989         ftoastr.h.  This exposes an internal of intprops.h that was formerly
20990         not exposed.  Also, it uses a slightly tighter bound than before;
20991         though this makes no practical difference, we might as well be as
20992         tight as we easily can.
20993
20994         ftoastr: new module, for lossless conversion of floats to short strings
20995         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
20996         * modules/ftoastr: New files.
20997
20998 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
20999
21000         bootstrap: port to Solaris sed
21001         * build-aux/bootstrap (get_version): Port to Solaris sed.
21002         See Ralf Wildenhues's note in
21003         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
21004
21005 2010-11-14  Jim Meyering  <meyering@redhat.com>
21006
21007         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
21008         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
21009         and move definition closer to sole use.
21010
21011 2010-11-13  Jim Meyering  <meyering@redhat.com>
21012
21013         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
21014         Now we require at least autoconf-2.59, which means the work-around
21015         is no longer needed.
21016         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
21017         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21018         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
21019         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21020         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21021
21022 2010-11-13  Bruno Haible  <bruno@clisp.org>
21023
21024         rename, renameat: Avoid test failures at NFS mounted locations.
21025         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
21026         functions.
21027         (test_rename): Use assert_nonexistent.
21028         * tests/test-rename.c: Include <dirent.h>.
21029         * tests/test-renameat.c: Likewise.
21030         Reported by Gary V. Vaughan <gary@gnu.org>.
21031
21032         rename, renameat: Document Linux bug with NFS
21033         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
21034         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
21035         * doc/posix-functions/renameat.texi: Likewise.
21036         Suggested by Eric Blake.
21037
21038 2010-11-13  Bruno Haible  <bruno@clisp.org>
21039
21040         rename test: Add comments.
21041         * tests/test-rename.h (test_rename): Add structure and comments.
21042
21043 2010-11-13  Eric Blake  <eblake@redhat.com>
21044
21045         maintainer-makefile: cover a few more files
21046         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
21047         scripts generated within C files, for libvirt.
21048
21049 2010-11-13  Bruno Haible  <bruno@clisp.org>
21050
21051         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
21052         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
21053         character, return the number of bytes that belong together, not always
21054         1.
21055         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
21056         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
21057         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
21058         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
21059         number of bytes of an invalid character.
21060         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
21061         (main): Invoke it.
21062         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
21063         results.
21064         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
21065         malformed byte sequences.
21066         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
21067         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
21068         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
21069         Reported by Ben Pfaff and Paolo Bonzini.
21070
21071 2010-11-13  Bruno Haible  <bruno@clisp.org>
21072
21073         openat: Work around glibc bug with fchownat() and empty file names.
21074         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
21075         (gl_FUNC_FCHOWNAT): Invoke it.
21076         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
21077         * doc/posix-functions/fchownat.texi: Document the glibc bug.
21078         Reported by Gary V. Vaughan <gary@gnu.org>.
21079
21080 2010-11-13  Bruno Haible  <bruno@clisp.org>
21081
21082         openat: Ensure autoconf macro ordering.
21083         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
21084         gl_USE_SYSTEM_EXTENSIONS.
21085         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
21086
21087 2010-11-13  Bruno Haible  <bruno@clisp.org>
21088
21089         Update comments.
21090         * lib/unistr/u8-check.c: Update file name in comments.
21091         * lib/unistr/u8-mblen.c: Likewise.
21092         * lib/unistr/u8-prev.c: Likewise.
21093         * lib/unistr/u8-strmblen.c: Likewise.
21094         * lib/unistr/u8-strmbtouc.c: Likewise.
21095
21096 2010-11-13  Jim Meyering  <meyering@redhat.com>
21097
21098         tests: avoid test failure on Solaris 10 due to lack of PATH export
21099         * tests/test-update-copyright.sh: Don't forget to export PATH.
21100
21101         init.sh: ensure that IFS is defined, just in case...
21102         * tests/init.sh (setup_): Ensure that IFS is defined,
21103         so that saving and restoring it works as expected.  This
21104         appears to be useful at least for an old version of dash
21105         from a long time ago (RH 6).  See here for details:
21106         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
21107
21108         maint.mk: tighten "test a == b" check
21109         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
21110         test to files that contain something like #!/bin/sh.
21111         Without this, coreutils would get two false positives in
21112         the comments of C source files.
21113
21114 2010-11-12  Eric Blake  <eblake@redhat.com>
21115
21116         bootstrap: fix typo in previous attempt
21117         * build-aux/bootstrap (buildreq): Correct the grouping.
21118         Reported by Paul Eggert.
21119
21120         maintainer-makefile: prohibit test x == x
21121         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
21122         Based on a report by Matthias Bolte.
21123
21124         bootstrap: allow FreeBSD gzip
21125         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
21126         which has no '.' and goes to stderr.
21127         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
21128         Reported by Matthias Bolte.
21129
21130         maintainer-makefile: check for i18n setup
21131         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
21132         will likely work.
21133
21134 2010-11-12  Bruno Haible  <bruno@clisp.org>
21135
21136         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
21137         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
21138         * lib/nanosleep.c (nanosleep): Likewise.
21139
21140 2010-11-11  Bruno Haible  <bruno@clisp.org>
21141
21142         fcntl-h: Fix for use of C++ on glibc systems.
21143         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21144         also on glibc systems in C++ mode.
21145         Reported by Gary V. Vaughan <gary@gnu.org>.
21146
21147 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21148
21149         mknod: avoid false failure with dash
21150         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
21151
21152 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21153
21154         unlink: Fix "is it should" typo in diagnostic.
21155         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
21156         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
21157
21158 2010-11-11  Bruno Haible  <bruno@clisp.org>
21159
21160         Tests for module 'strerror_r-posix'.
21161         * modules/strerror_r-posix-tests: New file.
21162         * tests/test-strerror_r.c: New file.
21163         * tests/test-string-c++.cc: Check the signature of strerror_r.
21164
21165         New module 'strerror_r-posix'.
21166         * lib/string.in.h (strerror_r): New declaration.
21167         * lib/strerror_r.c: New file.
21168         * m4/strerror_r.m4: New file.
21169         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
21170         of strerror_r.
21171         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
21172         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21173         * modules/strerror_r-posix: New file.
21174         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
21175         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21176         * doc/posix-functions/strerror_r.texi: Mention the new module and the
21177         portability problems.
21178
21179 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
21180
21181         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
21182         line is also considered for output. Quoted function name in shell
21183         command, so temporary files for functions like MyClass::operator()
21184         are removed correctly without errors.
21185
21186 2010-11-09  Bruno Haible  <bruno@clisp.org>
21187
21188         * doc/posix-functions/strerror.texi: List more failing platforms.
21189
21190         * doc/posix-functions/strerror.texi: Add a comment.
21191
21192 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21193
21194         fdopendir: fix bug on MacOS X when low on file descriptors
21195
21196         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
21197         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
21198         All callers changed.
21199         (fdopendir): Invoke save_cwd at the top level, not after using
21200         multiple dup() calls to use up file descriptors.  Then retry
21201         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
21202         less than the maximum number of open file descriptors, because
21203         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
21204         on Mac OS X 10.6.4 for tar 1.24
21205         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
21206         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
21207         and for tar 1.25
21208         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
21209
21210 2010-11-07  Bruno Haible  <bruno@clisp.org>
21211
21212         vasnprintf: Support I flag on glibc systems.
21213         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
21214         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
21215         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
21216         snprintf function.
21217         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
21218         glibc systems.
21219         * tests/test-vasnprintf-posix3.c: New file.
21220         * modules/vasnprintf-posix-tests (Files): Add it.
21221         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
21222
21223 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21224
21225         [html] Fix copy/paste bug: Use unique name for compiler warnings.
21226         * MODULES.html.sh: For compiler warnings, use name
21227         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
21228
21229 2010-11-05  Eric Blake  <eblake@redhat.com>
21230
21231         ceil, floor: avoid spurious failure with icc
21232         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
21233         [denormals-as-zero] when optimizing without -mieee-fp option.
21234         * tests/test-floorf2.c (floorf_reference): Likewise.
21235         * tests/test-ceilf1.c (dummy): New function.
21236         (main): Use it to outsmart icc's optimization.
21237         * tests/test-floorf1.c (dummy, main): Likewise.
21238
21239         tests: require working signbit
21240         * modules/ceilf-tests (Depends-on): Add signbit.
21241         * modules/ceill-tests (Depends-on): Likewise.
21242         * modules/floorf-tests (Depends-on): Likewise.
21243         * modules/floorl-tests (Depends-on): Likewise.
21244         * modules/round-tests (Depends-on): Likewise.
21245         * modules/roundf-tests (Depends-on): Likewise.
21246         * modules/roundl-tests (Depends-on): Likewise.
21247         * modules/trunc-tests (Depends-on): Likewise.
21248         * modules/truncf-tests (Depends-on): Likewise.
21249         * modules/truncl-tests (Depends-on): Likewise.
21250
21251         strtod: work around icc bug
21252         * lib/strtod.c (minus_zero): Define to working value.
21253         (strtod): Use it to avoid icc bug.
21254
21255         copysign: enhance tests
21256         * modules/copysign-tests (Files): Add minus-zero.h.
21257         * tests/test-copysign.c (main): Also test zeros.
21258
21259 2010-11-04  Eric Blake  <eblake@redhat.com>
21260
21261         ceil, floor, round, trunc: enhance tests of -0
21262         * tests/test-ceilf1.c (main): Ensure correct sign of result.
21263         * tests/test-ceill.c (main): Likewise.
21264         * tests/test-floorf1.c (main): Likewise.
21265         * tests/test-floorl.c (main): Likewise.
21266         * tests/test-round1.c (main): Likewise.
21267         * tests/test-roundf1.c (main): Likewise.
21268         * tests/test-roundl.c (main): Likewise.
21269         * tests/test-trunc1.c (main): Likewise.
21270         * tests/test-truncf1.c (main): Likewise.
21271         * tests/test-truncl.c (main): Likewise.
21272
21273 2010-11-04  Eric Blake  <eblake@redhat.com>
21274
21275         frexp, tests: work around ICC bug with -zero
21276         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
21277         works with more compilers.
21278         * tests/minus-zero.h: New file.
21279         * modules/ceilf-tests (Files): Include it.
21280         * modules/ceill-tests (Files): Likewise.
21281         * modules/floorf-tests (Files): Likewise.
21282         * modules/floorl-tests (Files): Likewise.
21283         * modules/frexp-nolibm-tests (Files): Likewise.
21284         * modules/frexp-tests (Files): Likewise.
21285         * modules/frexpl-nolibm-tests (Files): Likewise.
21286         * modules/frexpl-tests (Files): Likewise.
21287         * modules/isnan-tests (Files): Likewise.
21288         * modules/isnand-nolibm-tests (Files): Likewise.
21289         * modules/isnand-tests (Files): Likewise.
21290         * modules/isnanf-nolibm-tests (Files): Likewise.
21291         * modules/isnanf-tests (Files): Likewise.
21292         * modules/isnanl-nolibm-tests (Files): Likewise.
21293         * modules/isnanl-tests (Files): Likewise.
21294         * modules/round-tests (Files): Likewise.
21295         * modules/roundf-tests (Files): Likewise.
21296         * modules/roundl-tests (Files): Likewise.
21297         * modules/ldexpl-tests (Files): Likewise.
21298         * modules/signbit-tests (Files): Likewise.
21299         * modules/snprintf-posix-tests (Files): Likewise.
21300         * modules/sprintf-posix-tests (Files): Likewise.
21301         * modules/strtod-tests (Files): Likewise.
21302         * modules/trunc-tests (Files): Likewise.
21303         * modules/truncf-tests (Files): Likewise.
21304         * modules/truncl-tests (Files): Likewise.
21305         * modules/vsnprintf-posix-tests (Files): Likewise.
21306         * modules/vsprintf-posix-tests (Files): Likewise.
21307         * modules/vasnprintf-posix-tests (Files): Likewise.
21308         * modules/vasprintf-posix-tests (Files): Likewise.
21309         * tests/test-ceilf1.c (main): Use it.
21310         * tests/test-ceill.c (main): Likewise.
21311         * tests/test-floorf1.c (main): Likewise.
21312         * tests/test-floorl.c (main): Likewise.
21313         * tests/test-frexp.c (main): Likewise.
21314         * tests/test-frexpl.c (main): Likewise.
21315         * tests/test-isnan.c (main): Likewise.
21316         * tests/test-isnand.h (main): Likewise.
21317         * tests/test-isnanf.h (main): Likewise.
21318         * tests/test-isnanl.h (main): Likewise.
21319         * tests/test-ldexpl.c (main): Likewise.
21320         * tests/test-round.c (main): Likewise.
21321         * tests/test-roundf.c (main): Likewise.
21322         * tests/test-roundl.c (main): Likewise.
21323         * tests/test-signbit.c (test_signbitf, test_signbitd)
21324         (test_signbitl): Likewise.
21325         * tests/test-snprintf-posix.h (test_function): Likewise.
21326         * tests/test-sprintf-posix.h (test_function): Likewise.
21327         * tests/test-strtod.c (main): Likewise.
21328         * tests/test-trunc1.c (main): Likewise.
21329         * tests/test-truncf1.c (main): Likewise.
21330         * tests/test-truncl.c (main): Likewise.
21331
21332         isnanl: work around icc bug
21333         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
21334
21335 2010-11-03  Eric Blake  <eblake@redhat.com>
21336
21337         tests: fix compiler warnings
21338         * tests/test-getopt.h (test_getopt): Fix condition.
21339         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21340         * tests/test-pipe2.c (main): Likewise.
21341         * tests/test-quotearg-simple.c (main): Avoid icc warning.
21342
21343         utimens: fix broken m4 test
21344         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
21345
21346 2010-10-28  Bruno Haible  <bruno@clisp.org>
21347
21348         posix_spawn*, getdtablesize: Relax license.
21349         * modules/posix_spawn (License): Change to LGPLv2+.
21350         * modules/posix_spawnp (License): Likewise.
21351         * modules/posix_spawn-internal (License): Likewise.
21352         * modules/posix_spawnattr_init (License): Likewise.
21353         * modules/posix_spawnattr_getflags (License): Likewise.
21354         * modules/posix_spawnattr_setflags (License): Likewise.
21355         * modules/posix_spawnattr_getpgroup (License): Likewise.
21356         * modules/posix_spawnattr_setpgroup (License): Likewise.
21357         * modules/posix_spawnattr_getschedparam (License): Likewise.
21358         * modules/posix_spawnattr_setschedparam (License): Likewise.
21359         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
21360         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
21361         * modules/posix_spawnattr_getsigdefault (License): Likewise.
21362         * modules/posix_spawnattr_setsigdefault (License): Likewise.
21363         * modules/posix_spawnattr_getsigmask (License): Likewise.
21364         * modules/posix_spawnattr_setsigmask (License): Likewise.
21365         * modules/posix_spawnattr_destroy (License): Likewise.
21366         * modules/posix_spawn_file_actions_init (License): Likewise.
21367         * modules/posix_spawn_file_actions_addclose (License): Likewise.
21368         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
21369         * modules/posix_spawn_file_actions_addopen (License): Likewise.
21370         * modules/posix_spawn_file_actions_destroy (License): Likewise.
21371         * modules/getdtablesize (License): Likewise.
21372         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
21373
21374 2010-10-26  Bruno Haible  <bruno@clisp.org>
21375
21376         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
21377         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
21378         Cygwin and mingw.
21379         Suggested by Eric Blake.
21380
21381 2010-10-26  Bruno Haible  <bruno@clisp.org>
21382
21383         stdio: Work around compilation error due to renameat() on Solaris 10.
21384         * lib/stdio.in.h: Include <unistd.h> on Solaris.
21385         * lib/renameat.c: Don't include <unistd.h> here.
21386         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
21387         Reported by Paul Eggert and Eric Blake.
21388
21389 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21390
21391         renameat: port to Solaris 10, which declares renameat in unistd.h
21392
21393         * lib/renameat.c: Include unistd.h before stdio.h, because
21394         Solaris 10 declares renameat in unistd.h.  Problem encountered
21395         when building GNU tar 1.24 on Solaris 10.
21396
21397 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21398
21399         fdopendir: fix C89 compilation
21400         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
21401         compilers.
21402
21403 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
21404
21405         inttostr: simplify by removing unnecessary redundancy
21406         * lib/anytostr.c: Don't include verify.h.
21407         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
21408         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
21409         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
21410         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
21411         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
21412         Likewise.
21413         * modules/inttostr (Depends-on): Remove 'verify'.
21414
21415 2010-10-23  Bruno Haible  <bruno@clisp.org>
21416
21417         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
21418         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
21419         Reported by Eric Blake.
21420
21421 2010-10-23  Bruno Haible  <bruno@clisp.org>
21422
21423         Tests: Fix LOCALE_JA on MirBSD 10.
21424         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
21425         to an UTF-8 locale.
21426         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
21427         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21428         Reported by Eric Blake.
21429
21430 2010-10-21  Bruno Haible  <bruno@clisp.org>
21431
21432         nl_langinfo test: Avoid test failure on NetBSD 5.
21433         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
21434         Reported by Eric Blake.
21435
21436 2010-10-21  Eric Blake  <eblake@redhat.com>
21437
21438         c-stack: work around libsigsegv 2.8 bug
21439         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
21440         overflow on at least PowerPC64.
21441
21442 2010-10-17  Bruno Haible  <bruno@clisp.org>
21443
21444         userspec: Drop redundant file.
21445         * modules/userspec (Files): Remove lib/inttostr.h.
21446
21447 2010-10-17  Bruno Haible  <bruno@clisp.org>
21448
21449         nl_langinfo tests: Silence some warnings.
21450         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
21451         Reported by Jim Meyering.
21452
21453 2010-10-17  Bruno Haible  <bruno@clisp.org>
21454
21455         Make use of GCC's attribute __alloc_size__.
21456         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
21457         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
21458         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
21459         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
21460         __alloc_size__.
21461         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21462         Suggested by Jim Meyering.
21463
21464 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
21465
21466         bootstrap: anchor .gitignore entries.
21467         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
21468         with...
21469         (insert_vc_ignore): ... this new function, which prepends `/' to
21470         all .gitignore entries before passing them to
21471         insert_sorted_if_absent.
21472
21473 2010-10-16  Bruno Haible  <bruno@clisp.org>
21474
21475         nextafter: Fix configure check.
21476         * modules/nextafter (configure.ac): Correct expected prototype.
21477
21478 2010-10-16  Bruno Haible  <bruno@clisp.org>
21479
21480         termios: Update documentation.
21481         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
21482
21483 2010-10-16  Bruno Haible  <bruno@clisp.org>
21484
21485         tests: Make them compile with TinyCC.
21486         * tests/test-strstr.c (main): Remove parentheses around array
21487         initializer.
21488
21489 2010-10-15  Eric Blake  <eblake@redhat.com>
21490
21491         ignore-value: make header idempotent
21492         * lib/ignore-value.h: Add double-inclusion guards.
21493         Reported by Stefan Berger.
21494
21495 2010-10-15  Jim Meyering  <meyering@redhat.com>
21496
21497         GNUmakefile: handle "stable" target, not "major"
21498         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
21499         lists in maint.mk and announce-gen.  Without this, "make stable"
21500         would fail to ensure that $(VERSION) is up to date.
21501
21502 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
21503
21504         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
21505         & co.
21506
21507 2010-10-14  Bruno Haible  <bruno@clisp.org>
21508
21509         vasnprintf: Don't set errno to 0.
21510         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
21511         block that sets it to 0.
21512         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21513
21514 2010-10-14  Bruno Haible  <bruno@clisp.org>
21515
21516         socketlib: Fix.
21517         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
21518         gl_PREREQ_SYS_H_WINSOCK2.
21519         Reported by Ian Beckwith <ianb@erislabs.net>.
21520
21521 2010-10-13  Jim Meyering  <meyering@redhat.com>
21522
21523         test-select-stdin.c: avoid warn_unused_result warnings
21524         * tests/test-select-stdin.c: Include "macros.h".
21525         ASSERT that read and fflush succeed.
21526
21527 2010-10-13  Jim Meyering  <meyering@redhat.com>
21528
21529         git-version-gen: do require git-VC'd files in cwd
21530         * build-aux/git-version-gen: Reject a git version string
21531         if there are no commits associated with the current directory.
21532         This avoids an unlikely false-positive (unrelated dir whose parent
21533         repository also contains a tag matching v*), as pointed out
21534         by Giuseppe Scrivano in
21535         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
21536
21537 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21538
21539         argv-iter: omit nonconforming declaration
21540         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
21541         enum arg_iter_err declaration, which doesn't conform to C99.
21542         Solaris 10 cc warns about this.
21543
21544 2010-10-13  Eric Blake  <eblake@redhat.com>
21545
21546         termios: fix compilation on mingw
21547         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
21548         (gl_TERMIOS_H): Adjust it on mingw.
21549         * modules/termios (Makefile.am): Substitute new key.
21550         * lib/termios.in.h (includes): Make include_next conditional.
21551         * doc/posix-headers/termios.texi (termios.h): Update
21552         documentation.
21553         Reported by Daniel P. Berrange.
21554
21555 2010-10-13  Jim Meyering  <meyering@redhat.com>
21556
21557         git-version-gen: don't require that .git/ be in the current dir
21558         * build-aux/git-version-gen: Adjust this script so that it works
21559         when run from any working directory beneath the top-level .git/-
21560         containing directory.  Inspired by a patch from Giuseppe Scrivano,
21561         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
21562
21563         test-select: avoid warn_unused_result warnings
21564         * tests/test-select.c: Include "macros.h".
21565         ASSERT that each call to read, write, and pipe succeeds.
21566         While not technically required, also check each "close".
21567         * modules/select-tests (Files): Add tests/macros.h.
21568
21569         test-symlinkat: remove declaration of unused local
21570         * tests/test-symlinkat.c (main): Remove unused local, "buf".
21571
21572         test-inttostr: avoid shadowing warnings
21573         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
21574         and use malloc rather than the stack for the same reason as
21575         mentioned in the comment justifying the other allocation.
21576
21577 2010-10-11  Bruno Haible  <bruno@clisp.org>
21578
21579         stdlib: Allow multiple gnulib generated replacements to coexist.
21580         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
21581         Reported by Sam Steingold <sds@gnu.org>.
21582
21583 2010-10-11  Jim Meyering  <meyering@redhat.com>
21584
21585         fix a documentation typo
21586         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
21587
21588 2010-10-11  Eric Blake  <eblake@redhat.com>
21589
21590         futimens: work around Solaris 11 bug
21591         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
21592         * tests/test-futimens.h (test_futimens): Enhance, rather than
21593         weaken test.
21594         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21595
21596 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21597
21598         Indentation.
21599         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
21600         higher-level operators more to the left.
21601
21602 2010-10-11  Jim Meyering  <meyering@redhat.com>
21603
21604         test-futimens: avoid unwarranted test failure on Solaris 5.11
21605         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
21606         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
21607         because it tries to dereference the NULL name argument.
21608
21609 2010-10-11  Bruno Haible  <bruno@clisp.org>
21610
21611         Indentation.
21612         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
21613         indentation.
21614
21615 2010-10-11  Jim Meyering  <meyering@redhat.com>
21616
21617         spawn.in.h: make indentation consistent with parentheses
21618         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
21619         Make indentation consistent with parentheses.
21620
21621 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
21622
21623         Fix mismatched parens in previous commit
21624         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
21625         parens.
21626
21627 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21628
21629         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
21630
21631         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
21632         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
21633         * lib/malloca.c: Include "verify.h".
21634         (verify1): Remove, replacing with a verify call.
21635         * lib/relocwrapper.c (verify1): Likewise.
21636         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
21637         Likewise.
21638         * modules/malloca (Depends-on): Add 'verify'.
21639         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
21640         * modules/vasnprintf (Depends-on): Add 'verify'.
21641         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21642         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21643         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21644         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21645         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21646         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21647         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21648
21649         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
21650
21651         Formerly the style was sometimes 2*X - 1, because the C standard
21652         was wrongly thought to disallow ?: in integral constant expressions.
21653         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
21654         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
21655         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21656         * lib/stdint.in.h (_verify_intmax_size): Likewise.
21657         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
21658         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
21659         verify that time_t cannot be floating.
21660
21661 2010-10-08  Eric Blake  <eblake@redhat.com>
21662
21663         time: enforce recent POSIX ruling that time_t is integral
21664         * lib/time.in.h (__time_t_must_be_integral): Detect any
21665         problematic systems, allowing the rest of gnulib to assume POSIX.
21666
21667 2010-10-08  Jim Meyering  <meyering@redhat.com>
21668
21669         fdopendir: fix a bug on systems lacking openat and /proc support
21670         OpenBSD 4.7 is one such system.  The most noticeable effect was
21671         failure of any application making nontrivial use of fts: rm, du,
21672         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
21673           ./rm: traversal failed: `a': Bad file descriptor
21674         Debugging that, you see that even though FD 6 was closed just
21675         prior to the opendir call in fd_clone_opendir, its resulting
21676         dir->dd_fd was 8, rather than the expected value of 6:
21677
21678         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
21679         93                close (fd);
21680         (gdb) n
21681         94                dir = fd_clone_opendir (dupfd);
21682         (gdb) n
21683         95                saved_errno = errno;
21684         (gdb) p dir->dd_fd
21685         $11 = 8
21686
21687         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
21688         The problem is that on OpenBSD, fd_clone_opendir has to resort
21689         to using the old-style save/restore CWD mechanism, due to its
21690         lack of openat/proc support, and *that* would steal the FD (6)
21691         that opendir was supposed to use.
21692
21693         The fix is to squirrel away the desired FD so that save_cwd uses a
21694         different one, and then free the dest FD right before calling opendir.
21695         That guarantees opendir will use the required file descriptor.
21696
21697         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
21698
21699 2010-10-08  Bruno Haible  <bruno@clisp.org>
21700
21701         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
21702         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
21703
21704 2010-10-08  Bruno Haible  <bruno@clisp.org>
21705
21706         nanosleep: Make replacement POSIX compliant.
21707         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
21708         is out of range.
21709         Reported by Jim Meyering.
21710
21711 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21712
21713         bootstrap: add hook for altering gnulib.mk, for Bison
21714         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
21715         the Bison bootstrapping process can rewrite file names and variables
21716         in this file before later parts of 'bootstrap' use the file.
21717         Bison wants to include lib/gnulib.mk from the top-level makefile,
21718         so it needs the file names in this file to be relative to the top
21719         level, not relative to lib; plus it needs variable names to be
21720         rewritten.
21721         (slurp): Use the new function.
21722
21723         bootstrap: reformat for readability
21724         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
21725
21726 2010-10-08  Eric Blake  <eblake@redhat.com>
21727
21728         docs: update cygwin progress
21729         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
21730         1.7.7.
21731         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
21732         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
21733         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
21734         * doc/posix-functions/carg.texi (carg): Likewise.
21735         * doc/posix-functions/cargf.texi (cargf): Likewise.
21736         * doc/posix-functions/casin.texi (casin): Likewise.
21737         * doc/posix-functions/casinf.texi (casinf): Likewise.
21738         * doc/posix-functions/casinh.texi (casinh): Likewise.
21739         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
21740         * doc/posix-functions/catan.texi (catan): Likewise.
21741         * doc/posix-functions/catanf.texi (catanf): Likewise.
21742         * doc/posix-functions/catanh.texi (catanh): Likewise.
21743         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
21744         * doc/posix-functions/ccos.texi (ccos): Likewise.
21745         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
21746         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
21747         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
21748         * doc/posix-functions/cexp.texi (cexp): Likewise.
21749         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
21750         * doc/posix-functions/cimag.texi (cimag): Likewise.
21751         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
21752         * doc/posix-functions/clog.texi (clog): Likewise.
21753         * doc/posix-functions/clogf.texi (clogf): Likewise.
21754         * doc/posix-functions/conj.texi (conj): Likewise.
21755         * doc/posix-functions/conjf.texi (conjf): Likewise.
21756         * doc/posix-functions/cpow.texi (cpow): Likewise.
21757         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
21758         * doc/posix-functions/cproj.texi (cproj): Likewise.
21759         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
21760         * doc/posix-functions/creal.texi (creal): Likewise.
21761         * doc/posix-functions/crealf.texi (crealf): Likewise.
21762         * doc/posix-functions/csin.texi (csin): Likewise.
21763         * doc/posix-functions/csinf.texi (csinf): Likewise.
21764         * doc/posix-functions/csinh.texi (csinh): Likewise.
21765         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
21766         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
21767         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
21768         * doc/posix-functions/ctan.texi (ctan): Likewise.
21769         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
21770         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
21771         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
21772         * doc/posix-headers/complex.texi (complex.h): Likewise.
21773
21774 2010-10-07  Jim Meyering  <meyering@redhat.com>
21775
21776         parse-datetime: avoid compilation failure on OpenBSD 4.7
21777         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
21778         This works around a compilation failure on OpenBSD 4.7:
21779         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
21780
21781 2010-10-07  Eric Blake  <eblake@redhat.com>
21782
21783         docs: update cygwin progress
21784         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
21785         1.7.6.
21786         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21787         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
21788         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
21789         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
21790         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
21791         Likewise.
21792         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
21793         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
21794         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
21795         Likewise.
21796         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
21797         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
21798         Likewise.
21799         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
21800         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
21801         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
21802         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
21803         Likewise.
21804         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
21805         Likewise.
21806         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
21807
21808         docs: update parse-datetime history
21809         * doc/parse-datetime.texi (Authors of parse_datetime): Better
21810         documentation of this function's history and alternatives.
21811
21812         cygwin: use more robust version check
21813         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
21814         exclude an eventual cygwin 1.9.1.
21815         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21816         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21817         (gl_FUNC_STRCASESTR): Likewise.
21818         Reported by Bruno Haible.
21819
21820 2010-10-06  Bruno Haible  <bruno@clisp.org>
21821
21822         string, sys_select: Avoid #including large headers unless necessary.
21823         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
21824         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
21825         OSF/1, BeOS, Haiku.
21826         Reported by Jim Meyering.
21827
21828 2010-10-05  Eric Blake  <eblake@redhat.com>
21829
21830         memmem, strstr, strcasestr: fix bug with long periodic needle
21831         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
21832         periodic needle having false positive.
21833         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
21834         and cygwin 1.7.7.
21835         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
21836         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21837         (gl_FUNC_STRCASESTR): Likewise.
21838         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21839         * tests/test-memmem.c (main): Expose the bug.
21840         * tests/test-strcasestr.c (main): Likewise.
21841         * tests/test-strstr.c (main): Likewise.
21842         * tests/test-c-strcasestr.c (main): Likewise.
21843         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
21844         * doc/posix-functions/strstr.texi (strstr): Likewise.
21845         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21846         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
21847
21848 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21849
21850         parse-datetime: do some more renaming
21851         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
21852         parse_datetime, not get_date.  Mention the renaming.
21853         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
21854         in comments.
21855         * m4/bison.m4: Likewise.
21856
21857 2010-10-05  Eric Blake  <eblake@redhat.com>
21858
21859         parse-datetime: better name than get_date
21860         * NEWS: Reword the deprecation notice.
21861         * modules/get_date: Rename to modules/parse-datetime.
21862         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
21863         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
21864         * lib/get_date.y: Rename to lib/parse-datetime.y.
21865         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
21866         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
21867         * doc/getdate.texi: Provide fallback wrapper.
21868         * lib/getdate.h: Move guts, and wrap...
21869         * lib/parse-datetime.h: ...new file.
21870         * lib/parse-datetime.y (get_date): Rename...
21871         (parse_datetime): ...to this.
21872         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
21873         (gl_PARSE_DATETIME): ...to this.
21874         * doc/posix-functions/getdate.texi (get_date): Provide fallback
21875         documentation.
21876         * modules/getdate (Files): Provide fallback docs and header.
21877         (Notice, Depends-on): Update references.
21878         * tests/test-parse-datetime.c: Likewise.
21879         * DEPENDENCIES: Likewise.
21880         * MODULES.html.sh (Date and time <time.h>): Likewise.
21881         * doc/parse-datetime.texi (Date input formats)
21882         (Authors of parse_datetime): Likewise.
21883         * modules/parse-datetime (Files, configure.ac, Makefile.am)
21884         (Include): Likewise.
21885         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
21886         * gnulib-tool: Likewise.
21887         * m4/bison.m4 (gl_BISON): Likewise.
21888         Suggested by Bruno Haible.
21889
21890 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21891
21892         more ports to Solaris tr, which needs [] around ranges
21893         * gnulib-tool: Solaris tr needs [] around ranges.
21894         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21895         * tests/test-pipe-filter-gi1.c (main): Likewise.
21896         * tests/test-pipe-filter-ii1.c (main): Likewise.
21897
21898 2010-10-05  Eric Blake  <eblake@redhat.com>
21899
21900         bootstrap: fix Solaris regression
21901         * build-aux/bootstrap (check_versions): Solaris tr still needs []
21902         around ranges.
21903         Reported by Pádraig Brady.
21904
21905         bootstrap: work with pkg-config
21906         * build-aux/bootstrap (check_versions): Also transliterate - in
21907         prerequisite name.
21908         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
21909         prerequisites that were already found, to avoid confusion.
21910         Reported by Justin Clift.
21911
21912         faccessat: remove unused wrappers
21913         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
21914         presence of these wrappers dragged in -lgen on Solaris.
21915         Reported by Clemens Brogi; fix suggested by Paul Eggert.
21916
21917 2010-10-05  Jim Meyering  <meyering@redhat.com>
21918
21919         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
21920         * Makefile (sc_pragma_columns): New syntax-check rule.
21921
21922 2010-10-04  Bruno Haible  <bruno@clisp.org>
21923
21924         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
21925         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
21926         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
21927         Reported by Bruce Korb and Eric Blake.
21928
21929 2010-10-04  Bruno Haible  <bruno@clisp.org>
21930
21931         threadlib: Make option --with-libpth-prefix work.
21932         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
21933         use $LIBPTH, not just -lpth.
21934
21935 2010-10-04  Bruno Haible  <bruno@clisp.org>
21936
21937         Avoid line length limitation from HP NonStop system header files.
21938         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
21939         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
21940         * lib/ctype.in.h: Likewise.
21941         * lib/dirent.in.h: Likewise.
21942         * lib/errno.in.h: Likewise.
21943         * lib/fcntl.in.h: Likewise.
21944         * lib/float.in.h: Likewise.
21945         * lib/getopt.in.h: Likewise.
21946         * lib/iconv.in.h: Likewise.
21947         * lib/inttypes.in.h: Likewise.
21948         * lib/langinfo.in.h: Likewise.
21949         * lib/locale.in.h: Likewise.
21950         * lib/math.in.h: Likewise.
21951         * lib/netdb.in.h: Likewise.
21952         * lib/netinet_in.in.h: Likewise.
21953         * lib/poll.in.h: Likewise.
21954         * lib/pthread.in.h: Likewise.
21955         * lib/pty.in.h: Likewise.
21956         * lib/sched.in.h: Likewise.
21957         * lib/se-selinux.in.h: Likewise.
21958         * lib/search.in.h: Likewise.
21959         * lib/signal.in.h: Likewise.
21960         * lib/spawn.in.h: Likewise.
21961         * lib/stdarg.in.h: Likewise.
21962         * lib/stddef.in.h: Likewise.
21963         * lib/stdint.in.h: Likewise.
21964         * lib/stdio.in.h: Likewise.
21965         * lib/stdlib.in.h: Likewise.
21966         * lib/string.in.h: Likewise.
21967         * lib/strings.in.h: Likewise.
21968         * lib/sys_file.in.h: Likewise.
21969         * lib/sys_ioctl.in.h: Likewise.
21970         * lib/sys_select.in.h: Likewise.
21971         * lib/sys_socket.in.h: Likewise.
21972         * lib/sys_stat.in.h: Likewise.
21973         * lib/sys_time.in.h: Likewise.
21974         * lib/sys_times.in.h: Likewise.
21975         * lib/sys_utsname.in.h: Likewise.
21976         * lib/sys_wait.in.h: Likewise.
21977         * lib/sysexits.in.h: Likewise.
21978         * lib/termios.in.h: Likewise.
21979         * lib/time.in.h: Likewise.
21980         * lib/unistd.in.h: Likewise.
21981         * lib/wchar.in.h: Likewise.
21982         * lib/wctype.in.h: Likewise.
21983         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
21984         * modules/ctype (Makefile.am): Likewise.
21985         * modules/dirent (Makefile.am): Likewise.
21986         * modules/errno (Makefile.am): Likewise.
21987         * modules/fcntl-h (Makefile.am): Likewise.
21988         * modules/float (Makefile.am): Likewise.
21989         * modules/getopt-posix (Makefile.am): Likewise.
21990         * modules/iconv-h (Makefile.am): Likewise.
21991         * modules/inttypes (Makefile.am): Likewise.
21992         * modules/langinfo (Makefile.am): Likewise.
21993         * modules/locale (Makefile.am): Likewise.
21994         * modules/math (Makefile.am): Likewise.
21995         * modules/netdb (Makefile.am): Likewise.
21996         * modules/netinet_in (Makefile.am): Likewise.
21997         * modules/poll-h (Makefile.am): Likewise.
21998         * modules/pthread (Makefile.am): Likewise.
21999         * modules/pty (Makefile.am): Likewise.
22000         * modules/sched (Makefile.am): Likewise.
22001         * modules/search (Makefile.am): Likewise.
22002         * modules/selinux-h (Makefile.am): Likewise.
22003         * modules/signal (Makefile.am): Likewise.
22004         * modules/spawn (Makefile.am): Likewise.
22005         * modules/stdarg (Makefile.am): Likewise.
22006         * modules/stddef (Makefile.am): Likewise.
22007         * modules/stdint (Makefile.am): Likewise.
22008         * modules/stdio (Makefile.am): Likewise.
22009         * modules/stdlib (Makefile.am): Likewise.
22010         * modules/string (Makefile.am): Likewise.
22011         * modules/strings (Makefile.am): Likewise.
22012         * modules/sys_file (Makefile.am): Likewise.
22013         * modules/sys_ioctl (Makefile.am): Likewise.
22014         * modules/sys_select (Makefile.am): Likewise.
22015         * modules/sys_socket (Makefile.am): Likewise.
22016         * modules/sys_stat (Makefile.am): Likewise.
22017         * modules/sys_time (Makefile.am): Likewise.
22018         * modules/sys_times (Makefile.am): Likewise.
22019         * modules/sys_utsname (Makefile.am): Likewise.
22020         * modules/sys_wait (Makefile.am): Likewise.
22021         * modules/sysexits (Makefile.am): Likewise.
22022         * modules/termios (Makefile.am): Likewise.
22023         * modules/time (Makefile.am): Likewise.
22024         * modules/unistd (Makefile.am): Likewise.
22025         * modules/wchar (Makefile.am): Likewise.
22026         * modules/wctype (Makefile.am): Likewise.
22027
22028 2010-10-04  Bruno Haible  <bruno@clisp.org>
22029
22030         read-file tests: Avoid a test failure on NonStop Kernel.
22031         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
22032         a regular file.
22033         Reported by Joachim Schmitz <schmitz@hp.com>.
22034
22035 2010-10-03  Bruno Haible  <bruno@clisp.org>
22036
22037         gnulib-tool: Fixes for --create-testdir with --libtool.
22038         * gnulib-tool (func_get_automake_snippet): Don't augment
22039         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
22040         an executable.
22041         (func_create_testdir): Handle module 'alloca' like func_import.
22042         Reported by Bruce Korb <bruce.korb@gmail.com>.
22043
22044 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
22045
22046         Avoid some lines longer than 80 characters.
22047         * lib/stdint.in.h: Break long comment lines.
22048         * lib/math.in.h: Likewise.
22049         (_GL_NUM_UINT_WORDS): New macro, for readability.
22050         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
22051         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
22052         * lib/stdlib.in.h: Likewise.
22053         * lib/spawn.in.h: Likewise.
22054         * lib/sys_socket.in.h: Update an URL.
22055         * lib/sys_stat.in.h: Break long line.
22056
22057 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
22058
22059         Improve pmccabe2html.
22060         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
22061         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
22062         when the sources change. Remove the line in the HTML about "Used
22063         ranges" (which implied that there might be other unused ranges),
22064         rename "Resume" to "Summary" (easier to understand for more users).
22065         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
22066         styles, and some unnecessary blank lines.
22067
22068 2010-10-03  Bruno Haible  <bruno@clisp.org>
22069             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
22070
22071         acl: Add support for ACLs on NonStop Kernel.
22072         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
22073         Check whether the function aclsort() exists.
22074         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
22075         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
22076         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22077         (acl_nontrivial [HAVE_ACLSORT]: New function.
22078         (file_has_acl): Implement for NonStop Kernel.
22079         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22080         (qset_acl): Implement for NonStop Kernel.
22081         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
22082         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22083         (main): Implement for NonStop Kernel.
22084         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
22085         Kernel. Handle this flavor.
22086         * tests/test-set-mode-acl.sh: Likewise.
22087         * tests/test-copy-acl.sh: Likewise.
22088         * tests/test-copy-file.sh: Likewise.
22089
22090 2010-10-03  Bruno Haible  <bruno@clisp.org>
22091
22092         Info about ACLs on NonStop Kernel.
22093         * doc/acl-resources.txt: Add info about NonStop Kernel.
22094         References by Joachim Schmitz <schmitz@hp.com>.
22095
22096 2010-10-02  Bruno Haible  <bruno@clisp.org>
22097
22098         Define missing EDQUOT on NonStop Kernel.
22099         * lib/errno.in.h (EDQUOT): Assign a value if missing.
22100         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
22101         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
22102         missing.
22103         * doc/posix-headers/errno.texi: Mention the NSK bug.
22104         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
22105         Reported by Joachim Schmitz <schmitz@hp.com>.
22106
22107 2010-10-02  Bruno Haible  <bruno@clisp.org>
22108
22109         Update doc for POSIX:2008.
22110         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
22111         Update URL of POSIX specification.
22112
22113 2010-10-02  Bruno Haible  <bruno@clisp.org>
22114
22115         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
22116         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
22117         from gnulib, not from Automake.
22118
22119 2010-10-02  Bruno Haible  <bruno@clisp.org>
22120
22121         New module 'system-posix'.
22122         * modules/system-posix: New file.
22123         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
22124         module is present.
22125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22126         GNULIB_SYSTEM_POSIX.
22127         * modules/stdlib (Depends-on): Remove sys_wait.
22128         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
22129         * doc/posix-functions/system.texi: Mention the new module.
22130         * doc/posix-headers/stdlib.texi: Likewise.
22131         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
22132         define test_sys_wait_macros to a no-op.
22133         Reported by Sam Steingold <sds@gnu.org>.
22134
22135 2010-09-30  Bruno Haible  <bruno@clisp.org>
22136
22137         More renaming from 'getdate' to 'get_date'.
22138         * doc/get_date.texi: Renamed from doc/getdate.texi.
22139         * modules/get_date (Files): Update.
22140         * MODULES.html.sh (Date and time <time.h>): Update.
22141         * DEPENDENCIES: Update.
22142         * gnulib-tool: Update comment.
22143         * m4/bison.m4 (gl_BISON): Likewise.
22144         * m4/get_date.m4 (gl_GET_DATE): Likewise.
22145
22146 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
22147
22148         bootstrap: support ACLOCAL_FLAGS during aclocal
22149         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
22150         can add additional -I dir for third-party .m4 files.
22151
22152 2010-09-30  Eric Blake  <eblake@redhat.com>
22153
22154         bootstrap: use glibtoolize on MacOS
22155         * build-aux/bootstrap (check_versions): Convert libtool into
22156         libtoolize.
22157         (tool search): Move libtool check earlier, and look for
22158         glibtoolize for MacOS.
22159         (gnulib_tool_options): Auto-add --libtool when appropriate.
22160         Reported by Justin Clift.
22161
22162         poll: fix typo that broke test on MacOS
22163         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
22164         Reported by Justin Clift.
22165
22166         getdate: rename to get_date
22167         Note: getdate.h is not renamed, to minimize client impact.
22168         * modules/getdate: Mark obsolete.  Move old contents...
22169         * modules/get_date: ...to new module name.
22170         * modules/getdate-tests: Move...
22171         * modules/get_date-tests: ...here.
22172         * m4/getdate.m4: Move...
22173         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
22174         * lib/getdate.y: Move...
22175         * lib/get_date.y: ...here.
22176         * tests/test-getdate.c: Move...
22177         * tests/test-get_date.c: ...here.
22178         * doc/posix-functions/getdate.texi (getdate): Update name.
22179         * NEWS: Mention the change.
22180
22181 2010-09-29  Bruno Haible  <bruno@clisp.org>
22182
22183         Separate the module 'waitpid' from the module 'sys_wait'.
22184         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
22185         present.
22186         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
22187         gl_MODULE_INDICATOR_FOR_TESTS.
22188         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
22189         * modules/sys_wait (Depends-on): Remove waitpid.
22190         (Makefile.am): Substitute GNULIB_WAITPID.
22191         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
22192         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
22193         signature only if the 'waitpid' module is present.
22194         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
22195         * NEWS: Mention the change.
22196         * modules/grantpt (Depends-on): Add waitpid.
22197         * modules/wait-process (Depends-on): Likewise.
22198
22199 2010-09-29  Bruno Haible  <bruno@clisp.org>
22200
22201         More tests for module 'sys_wait'.
22202         * modules/sys_wait-c++-tests: New file.
22203         * tests/test-sys_wait-c++.cc: New file.
22204         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
22205         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22206
22207 2010-09-29  Bruno Haible  <bruno@clisp.org>
22208
22209         New module 'waitpid'.
22210         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
22211         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
22212         Don't include <process.h>.
22213         (waitpid): Declare only, using modern idiom.
22214         * m4/waitpid.m4: New file.
22215         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
22216         * modules/waitpid: New file.
22217         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
22218         (Makefile.am): Update.
22219         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22220
22221 2010-09-28  Bruno Haible  <bruno@clisp.org>
22222
22223         poll: Assume ANSI C.
22224         * lib/poll.c (poll): Use an ANSI C declaration.
22225
22226 2010-09-28  Bruno Haible  <bruno@clisp.org>
22227
22228         poll-h: Create poll.h on all platforms.
22229         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
22230         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
22231         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
22232         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
22233         (gl_REPLACE_POLL_H): Don't set POLL_H.
22234         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
22235         * modules/poll-h (Depends-on): Add include_next.
22236         (Makefile.am): Create poll.h unconditionally. Substitute also
22237         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
22238
22239 2010-09-28  Bruno Haible  <bruno@clisp.org>
22240
22241         Tests for module 'poll-h'.
22242         * modules/poll-h-c++-tests: New file.
22243         * tests/test-poll-h-c++.cc: New file.
22244
22245         Tests for module 'poll-h'.
22246         * modules/poll-h-tests: New file.
22247         * tests/test-poll-h.c: New file.
22248
22249 2010-09-28  Bruno Haible  <bruno@clisp.org>
22250
22251         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
22252         * modules/poll-h (Depends-on): Add 'extensions'.
22253
22254 2010-09-28  Bruno Haible  <bruno@clisp.org>
22255
22256         New module 'poll-h'.
22257         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
22258         (poll): Use modern idiom.
22259         * modules/poll-h: New file.
22260         * modules/poll (Files): Remove lib/poll.in.h.
22261         (Depends-on): Add poll-h.
22262         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
22263         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
22264         * m4/poll_h.m4: New file.
22265         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
22266         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
22267         and invoke gl_REPLACE_POLL_H.
22268         * lib/poll.c: Use common idiom.
22269         * tests/test-poll.c: Likewise.
22270         * doc/posix-headers/poll.texi: Mention the poll-h module.
22271         Suggested by Eric Blake.
22272
22273 2010-09-26  Bruno Haible  <bruno@clisp.org>
22274
22275         sys_wait: Implement WSTOPSIG.
22276         * lib/sys_wait.in.h (WSTOPSIG): New macro.
22277         Reported by Simon Josefsson.
22278
22279 2010-09-26  Simon Josefsson  <simon@josefsson.org>
22280
22281         stdlib, sys_wait: Avoid compilation error on mingw.
22282         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
22283
22284 2010-09-26  Bruno Haible  <bruno@clisp.org>
22285
22286         stdlib tests: Avoid code duplication.
22287         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
22288         * modules/sys_wait-tests (Files): Likewise.
22289         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
22290         * tests/test-stdlib.c: Include test-sys_wait.h.
22291         (main): Invoke test_sys_wait_macros.
22292         * tests/test-sys_wait.c: Include test-sys_wait.h.
22293         (main): Invoke test_sys_wait_macros.
22294
22295 2010-09-25  Simon Josefsson  <simon@josefsson.org>
22296
22297         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
22298         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
22299         sure Windows sockets are working before calling getaddrinfo.
22300         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
22301         * doc/gnulib.texi (Windows sockets): Fix typo.
22302
22303 2010-09-25  Bruno Haible  <bruno@clisp.org>
22304
22305         Tests for module 'regex-quote'.
22306         * modules/regex-quote-tests: New file.
22307         * tests/test-regex-quote.c: New file.
22308
22309         New module 'regex-quote'.
22310         * lib/regex-quote.h: New file.
22311         * lib/regex-quote.c: New file.
22312         * modules/regex-quote: New file.
22313         Suggested by Reuben Thomas <rrt@sc3d.org>.
22314
22315 2010-09-24  Bruno Haible  <bruno@clisp.org>
22316
22317         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
22318         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
22319
22320 2010-09-23  Bruno Haible  <bruno@clisp.org>
22321
22322         setenv: Relax license.
22323         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
22324         Blake.
22325         Requested by Eric Blake.
22326
22327 2010-09-22  Bruno Haible  <bruno@clisp.org>
22328
22329         termios: Relax license.
22330         * modules/termios (License): Change to LGPLv2+.
22331         Requested by Eric Blake.
22332
22333 2010-09-22  Bruno Haible  <bruno@clisp.org>
22334
22335         threadlib: Allow the package to change the default to 'no'.
22336         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
22337         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
22338         Reported by Paul Eggert.
22339
22340 2010-09-22  Pádraig Brady  <P@draigbrady.com>
22341             Bruno Haible  <bruno@clisp.org>
22342
22343         Fix endless loop in mbmemcasecoll.
22344         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
22345         byte.
22346         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
22347
22348 2010-09-22  Bruno Haible  <bruno@clisp.org>
22349
22350         Tests for module 'memcoll'.
22351         * modules/memcoll-tests: New file.
22352         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
22353
22354         memcoll, xmemcoll: Clarify size vs. length.
22355         * modules/memcoll.c (memcoll0): Clarify specification.
22356         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
22357         passed to collate_error.
22358
22359 2010-09-22  Bruno Haible  <bruno@clisp.org>
22360
22361         Tests for module 'memcasecmp'.
22362         * modules/memcasecmp-tests: New file.
22363         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
22364
22365 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22366
22367         * lib/pthread.in.h: Add split double-inclusion guard, and include
22368         system <pthread.h> if there is one.  Use @@-style as in other
22369         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
22370         pthread.h doesn't.
22371         (pthread_mutexattr_destroy, pthread_mutexattr_init):
22372         (pthread_mutexattr_settype, pthread_mutex_trylock):
22373         New static inline functions, if there's no system <pthread.h>.
22374         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
22375         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
22376         Approximate with mutexes if the system lacks spinlocks, as in
22377         MacOS.
22378         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
22379         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
22380         @@-style.  Check for spinlocks separately.
22381         (gl_PTHREAD_DEFAULTS): New macro.
22382         * modules/pthread: Redo to use a more typical style for in.h files.
22383
22384 2010-09-21  Eric Blake  <eblake@redhat.com>
22385
22386         net_if: enhance tests
22387         * tests/test-net_if.c (main): Move signature checks earlier.
22388         Print failures to stderr.
22389         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
22390         Document the bug that we do not yet fix.
22391
22392 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22393
22394         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
22395         about gnulib, not GSS.
22396
22397 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22398
22399         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
22400         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
22401         for Emacs.
22402         * build-aux/pmccabe2html: Make Makefile.am example code more
22403         cut-and-paste friendly.
22404
22405 2010-09-21  Simon Josefsson  <simon@josefsson.org>
22406
22407         * tests/test-net_if.c: New file.
22408         * modules/net_if-tests: New file.
22409
22410 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22411
22412         pthread: add pthread_spin_destroy
22413         * lib/pthread.in.h (pthread_spin_destroy): New function.
22414
22415 2010-09-19  Bruno Haible  <bruno@clisp.org>
22416
22417         gnulib-tool: Fix --help output.
22418         * gnulib-tool (func_usage): Fix help message.
22419         Reported by Reuben Thomas <rrt@sc3d.org>.
22420
22421 2010-09-18  Jim Meyering  <meyering@redhat.com>
22422
22423         maint.mk: avoid unexpanded \n in two diagnostics
22424         * top/maint.mk (sc_prohibit_always_true_header_tests):
22425         Don't use a literal \n in a halt=... assignment.  It would not be
22426         expanded, and the two \n bytes would appear in the diagnostic output
22427         rather than the desired newline.  Use halt=$$(printf ... instead.
22428         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22429
22430 2010-09-18  Bruno Haible  <bruno@clisp.org>
22431
22432         netinet_in: Doc tweak.
22433         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
22434         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22435
22436 2010-09-18  Jim Meyering  <meyering@redhat.com>
22437
22438         init.sh: correct an outdated comment
22439         * tests/init.sh (create_exe_shims_):  s/function/alias/
22440
22441         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
22442         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
22443         a file named "*.exe" is removed between the glob expansion and the
22444         processing of that oddly named file.
22445
22446 2010-09-17  Eric Blake  <eblake@redhat.com>
22447
22448         mirbsd: add some more support
22449         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
22450         in BSD family.
22451         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
22452         devices as OpenBSD.
22453         * m4/host-os.m4 (mirbsd): Add MirBSD.
22454
22455         tests: fix unportable assumption on sys/wait.h
22456         * tests/test-sys_wait.c (main): Relax test.
22457         * tests/test-stdlib.c (main): Likewise.
22458
22459         init.sh: accomodate directory with no .exes
22460         * tests/init.sh: Accomodate directory containing only scripts.
22461
22462         tests: avoid compiler warning
22463         * tests/test-stdlib.c (main): Use the variable.
22464
22465         fdutimens, fdutimensat: update signature, again
22466         * lib/utimens.h (gl_futimens): Delete, and move signature...
22467         (fdutimens): ...here.
22468         (fdutimensat): Rearrange signature.
22469         (lutimensat): Rename variable for clarity.
22470         * lib/fdutimensat.c (fdutimensat): Update signature.
22471         * lib/utimens.c (fdutimens): Likewise.
22472         (gl_futimens): Delete.
22473         (utimens, lutimens): Update callers.
22474         * lib/futimens.c (futimens): Likewise.
22475         * tests/test-fdutimensat.c: Likewise.
22476         * tests/test-utimens.c: Likewise.
22477         * tests/test-futimens.h: Update comment.
22478         * NEWS: Mention this.
22479         Suggested by Paul Eggert.
22480
22481 2010-09-17  Bruno Haible  <bruno@clisp.org>
22482
22483         Take over the maintenance of some older macros from Autoconf.
22484         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
22485         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
22486         GNU Autoconf.
22487         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
22488         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
22489
22490 2010-09-17  Eric Blake  <eblake@redhat.com>
22491
22492         fdutimensat: drop atflag validation
22493         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
22494         with valid fd, to close a race scenario where futimens is
22495         unsupported and FILE was replaced by a symlink.
22496         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
22497         accordingly.
22498         Suggested by Paul Eggert.
22499
22500 2010-09-16  Bruno Haible  <bruno@clisp.org>
22501
22502         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
22503         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
22504
22505 2010-09-16  Bruno Haible  <bruno@clisp.org>
22506
22507         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
22508         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
22509         login_tty exists.
22510         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22511
22512 2010-09-16  Bruno Haible  <bruno@clisp.org>
22513
22514         login_tty: Make the replacement code work on BSD systems.
22515         * lib/login_tty.c: Include <sys/ioctl.h>.
22516         (login_tty): Use ioctl TIOCSCTTY when available.
22517         * modules/login_tty (Depends-on): Add sys_ioctl.
22518         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22519
22520 2010-09-16  Bruno Haible  <bruno@clisp.org>
22521
22522         login_tty: Stricter unit test.
22523         * modules/login_tty-tests (Depends-on): Add tcgetsid.
22524         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
22525         and tcgetsid() after login_tty.
22526         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22527
22528 2010-09-16  Bruno Haible  <bruno@clisp.org>
22529
22530         New module 'tcgetsid'.
22531         * lib/tcgetsid.c: New file.
22532         * m4/tcgetsid.m4: New file.
22533         * modules/tcgetsid: New file.
22534         * modules/termios (Depends-on): Add c++defs, warn-on-use.
22535         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
22536         GNULIB_TCGETSID, HAVE_TCGETSID.
22537         * lib/termios.in.h: Include <sys/types.h>.
22538         (tcgetsid): New declaration.
22539         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
22540         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
22541         * doc/posix-functions/tcgetsid.texi: Mention the new module.
22542         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
22543
22544 2010-09-16  Bruno Haible  <bruno@clisp.org>
22545
22546         Tests for module 'termios'.
22547         * modules/termios-c++-tests: New file.
22548         * modules/termios-tests: New file.
22549         * tests/test-termios-c++.cc: New file.
22550         * tests/test-termios.c: New file.
22551
22552         New module 'termios'.
22553         * modules/termios: New file.
22554         * lib/termios.in.h: New file.
22555         * m4/termios_h.m4: New file.
22556         * doc/posix-headers/termios.texi: Mention the new module.
22557
22558 2010-09-16  Eric Blake  <eblake@redhat.com>
22559
22560         fdutimensat: add an atflag parameter
22561         * lib/fdutimensat.c (fdutimensat): Add new parameter.
22562         * lib/utimens.h (fdutimensat): Update prototype.
22563         * tests/test-fdutimensat.c: Adjust test to match.
22564         * NEWS: Document the change.
22565         Suggested by Paul Eggert.
22566
22567 2010-09-16  Bruno Haible  <bruno@clisp.org>
22568
22569         Fix typos in comments.
22570         * lib/striconveh.h: Fix typo in comment.
22571         * lib/login_tty.c (login_tty): Likewise.
22572
22573 2010-09-15  Bruno Haible  <bruno@clisp.org>
22574
22575         stdlib: clarify MirBSD WEXITSTATUS bug
22576         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
22577         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22578
22579 2010-09-15  Eric Blake  <eblake@redhat.com>
22580
22581         stdlib: work around MirBSD WEXITSTATUS bug
22582         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
22583         * modules/stdlib (Depends-on): Add sys_wait.
22584         * tests/test-sys_wait.c (main): Enhance test.
22585         * tests/test-stdlib.c (main): Likewise.
22586         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
22587
22588         docs: mention MacOS issue with WEXITSTATUS(constant)
22589         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
22590         issue.
22591         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22592
22593         strnlen: add tests
22594         * modules/strnlen-tests: New file.
22595         * tests/test-strnlen.c: Likewise.
22596
22597 2010-09-14  Bruno Haible  <bruno@clisp.org>
22598
22599         unistr/base: Avoid link errors when module 'libunistring' is also used.
22600         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
22601         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
22602         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
22603         Declare also when HAVE_LIBUNISTRING is set.
22604         Reported by Pádraig Brady <P@draigbrady.com>.
22605
22606 2010-09-14  Eric Blake  <eblake@redhat.com>
22607
22608         test-rawmemchr: make more robust
22609         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
22610         (Depends-on, configure.ac): Add needed prerequisites to use it.
22611         * modules/memchr-tests (Files, Depends-on, configure.ac):
22612         Likewise, to avoid implicit reliance on memchr module prereqs.
22613         * tests/test-memchr.c (main): Ensure proper masking.
22614         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
22615         reads.
22616
22617         memchr: detect glibc Alpha bug
22618         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
22619         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
22620         Alpha.
22621         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
22622         * tests/test-memchr.c (main): Enhance test.
22623         Reported by Nelson H. F. Beebe.
22624
22625 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22626
22627         fts, getcwd, glob: audit for dirfd returning -1
22628         * lib/fts.c (opendir): Remove #define; no longer used.
22629         (opendirat): New arg PDIR_FD.  All callers changed.
22630         (fts_build, _opendir2): Use new opendirat to avoid the need for
22631         dirfd, or for checking whether dirfd returns a negative value.
22632         Don't use opendir; always use openat followed by fdopendir.
22633         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
22634         it.
22635         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
22636         returns -1 here.
22637         * modules/fts (Depends-on): Remove dirfd.
22638         * modules/getcwd (Depends-on): Likewise.
22639
22640 2010-09-13  Eric Blake  <eblake@redhat.com>
22641
22642         float: fix broken MirBSD header
22643         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
22644         * doc/posix-headers/float.texi (float.h): Document it.
22645
22646 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22647
22648         fts: use O_NOFOLLOW to avoid race condition when opening a directory
22649         * lib/fts.c (opendirat): New arg extra_flags.
22650         (__opendir2): Use it to avoid following symlinks when opening
22651         a directory, if symlinks are not supposed to be followed.  See
22652         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
22653
22654         fdopendir: preserve argument fd before returning
22655         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
22656         (fdopendir_with_dup, fd_clone_opendir): New static functions.
22657         (fdopendir): Use them, arranging for FD to be open to the same
22658         directory that it was when it started.  (It might be temporarily
22659         closed while fdopendir is running, so this not thread- or
22660         signal-safe.)  Be careful to do the right thing even when file
22661         descriptors are scarce and dup fails with errno == EMFILE.  See
22662         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
22663
22664 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
22665
22666         regex: Pass the system regex if its only problem is 32-bit regoff_t.
22667         * NEWS: Document change.
22668         * m4/regex.m4: Disable test for regoff_t size.
22669
22670 2010-09-13  Jim Meyering  <meyering@redhat.com>
22671
22672         fts: don't operate on an invalid file descriptor after failed dup
22673         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
22674         negative file descriptor.
22675
22676 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22677
22678         savedir: add streamsavedir, deprecate fdsavedir
22679         * NEWS: Mention deprecation of fdsavedir.
22680         * lib/savedir.c (streamsavedir): New extern function, whose name
22681         ends in "savedir" to be consistent with the others.  This differs
22682         from savedirstream in that it doesn't close its argument.  The
22683         next version of GNU tar will use this instead of fdsavedir, to
22684         avoid some race conditions and conserve file descriptors.
22685         (savedirstream): Reimplement as a wrapper around streamsavedir.
22686         (fdsavedir): Add a comment deprecating this function.  As far as
22687         I know, only GNU tar used it, and GNU tar doesn't need it any more.
22688         * lib/savedir.h (streamsavedir): New decl.
22689         (fdsavedir): Add a comment deprecating this.
22690
22691 2010-09-10  Bruno Haible  <bruno@clisp.org>
22692
22693         langinfo: Fix last commit.
22694         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
22695         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
22696         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22697
22698 2010-09-10  Bruno Haible  <bruno@clisp.org>
22699
22700         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
22701         * lib/progreloc.c (O_EXEC): Define fallback.
22702
22703 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
22704
22705         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
22706         * NEWS: Document recent changes to fcntl-h.
22707         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
22708         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
22709         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
22710         Similarly for O_SEARCH; this last was already true, but not documented.
22711         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
22712         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
22713         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
22714         Likewise.
22715         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
22716         is zero, not whether it is defined.
22717         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
22718         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
22719         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
22720
22721 2010-09-10  Bruno Haible  <bruno@clisp.org>
22722
22723         langinfo, nl_langinfo: Fix for IRIX 5.3.
22724         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
22725         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
22726         HAVE_LANGINFO_YESEXPR.
22727         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
22728         HAVE_LANGINFO_YESEXPR.
22729         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
22730         HAVE_LANGINFO_T_FMT_AMPM is 0.
22731         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
22732         HAVE_LANGINFO_YESEXPR is 0.
22733         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
22734         NOEXPR.
22735         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
22736         * doc/posix-functions/nl_langinfo.texi: Likewise.
22737         Reported by Eric Blake.
22738
22739 2010-09-10  Bruno Haible  <bruno@clisp.org>
22740
22741         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
22742         * doc/glibc-functions/login_tty.texi: Mention the include file problem
22743         on FreeBSD 8.0 and OpenBSD 4.6.
22744         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
22745         * m4/pty_h.m4 (gl_PTY_H): Likewise.
22746         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
22747         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
22748         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
22749         ac_includes_default.
22750         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22751
22752 2010-09-09  Eric Blake  <eblake@redhat.com>
22753
22754         strsignal: work around NetBSD bug
22755         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
22756         * lib/string.in.h (includes): Likewise.
22757         * doc/posix-functions/strsignal.texi (strsignal): Document the
22758         bug.
22759         Reported by Nelson H. F. Beebe.
22760
22761         gnulib-tool: work with NetBSD /bin/sh
22762         * gnulib-tool (func_cache_var, func_cache_lookup_module)
22763         (func_get_description, func_get_comment, func_get_status)
22764         (func_get_notice, func_get_applicability, func_get_filelist)
22765         (func_get_dependencies, func_get_autoconf_early_snippet)
22766         (func_get_autoconf_snippet, func_get_automake_snippet)
22767         (func_get_include_directive, func_get_link_directive)
22768         (func_get_license, func_get_maintainer, func_import): Avoid
22769         shell syntax errors from parsing syntax extensions.
22770
22771 2010-09-09  Bruno Haible  <bruno@clisp.org>
22772
22773         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22774         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
22775         a reliable way to determine whether the 'alias' command works.
22776
22777 2010-09-08  Jim Meyering  <meyering@redhat.com>
22778
22779         init.sh: penalize a set-x-impaired shell; don't disqualify it
22780         * tests/init.sh: Too many shells corrupt application stderr when
22781         you set -x, so we can't afford to disqualify them, since at least
22782         on Irix-6.5, that would disqualify all bourne shells.
22783         Instead, use a two-pass approach.
22784         On the first pass, try to find a shell that meets the stricter
22785         condition that set -x does not corrupt stderr.
22786         If no shell meets the stricter condition, retest each candidate
22787         shell, but without that extra condition.  Finally, when
22788         VERBOSE=yes is requested and set -x might cause trouble, simply
22789         issue a warning and refrain from enabling debug output.
22790
22791 2010-09-08  Eric Blake  <eblake@redhat.com>
22792
22793         unsetenv: fix OpenBSD bug
22794         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
22795         * doc/posix-functions/unsetenv.texi (unsetenv): Update
22796         documentation.
22797         Reported by Jim Meyering.
22798
22799         strtod: work around IRIX 6.5 bug
22800         * lib/strtod.c (strtod): Reparse number on shorter string if
22801         exponent parse was invalid.
22802         * tests/test-strtod.c (main): Add check for "0x1p 2".
22803         Reported by Tom G. Christensen.
22804
22805         getopt: optimize previous patch
22806         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
22807         empty variable.  Speed up awk script.
22808         Reported by Paolo Bonzini.
22809
22810 2010-09-08  Jim Meyering  <meyering@redhat.com>
22811
22812         test.sh: disqualify shells for which set -x corrupts stderr
22813         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
22814         and OpenBSD 4.7.  They make it so with "set -x", environment settings
22815         appear in stderr output.  For example, this command:
22816             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
22817         prints "P=1" on those two systems:
22818
22819 2010-09-08  Bruno Haible  <bruno@clisp.org>
22820
22821         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22822         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
22823         commands, because some shells ignore redirections when there is an
22824         error in the command lookup.
22825         Reported by Eric Blake.
22826
22827 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
22828
22829         * lib/regex.h: Fix a mention of `regex_compile' (should be
22830         `re_compile_pattern').
22831         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
22832         (re_set_registers): Correct name of parameter in comment.
22833
22834         * doc/regex.texi: Add documentation for missing syntax flags.
22835         Remove commented-out documentation of defunct syntax option
22836         RE_NO_EMPTY_ALTS.
22837         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
22838         Add documentation of re_set_registers.
22839         Document trick to re-use a pattern buffer by setting fastmap manually.
22840         Update documentation of struct re_pattern_buffer per public members.
22841         Uncomment documentation of equivalence class operators and
22842         collating symbol operators, since they are now implemented,
22843         Explain leftmost-longest matching in relation to alternatives.
22844         Tidy documentation of substring matching.
22845         Remove POSIX documentation, which is done better in
22846         glibc, and refer the reader there. Keep BSD API documentation, as
22847         that is not readily available elsewhere.
22848
22849 2010-09-07  Eric Blake  <eblake@redhat.com>
22850
22851         getopt: handle POSIXLY_CORRECT set but not exported
22852         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
22853         export state of POSIXLY_CORRECT, due to bash set -o posix.
22854         Reported by Dustin J. Mitchell.
22855
22856 2010-09-05  Bruno Haible  <bruno@clisp.org>
22857
22858         gnulib-tool: Highlight the changed options.
22859         * gnulib-tool (func_usage): Display the --import, --add-import,
22860         --remove-import explanations in bold font.
22861
22862 2010-09-06  Karl Berry  <karl@gnu.org>
22863
22864         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
22865
22866 2010-09-05  Bruno Haible  <bruno@clisp.org>
22867
22868         uniwidth/width: Update comment.
22869         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
22870         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
22871
22872 2010-09-05  Bruno Haible  <bruno@clisp.org>
22873
22874         isinf, isnan: Relax license.
22875         * modules/isinf (License): Change from GPL to LGPL, with consent from
22876         Ben Pfaff.
22877         * modules/isnan (License): Likewise.
22878         Requested by Ludovic Courtès.
22879
22880 2010-09-04  Bruno Haible  <bruno@clisp.org>
22881
22882         gnulib-tool: Help migration from --import to --add-import or --update.
22883         * gnulib-tool: Emit a verbose error message when --import is used
22884         without any module name.
22885
22886 2010-09-04  Bruno Haible  <bruno@clisp.org>
22887
22888         Update doc about gnulib-tool.
22889         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
22890         'gnulib-tool --update' in more detail.
22891         Reported by Eric Blake.
22892
22893 2010-09-04  Bruno Haible  <bruno@clisp.org>
22894
22895         gnulib-tool: Change --import. New options --add/remove-import.
22896         * gnulib-tool: New options --add-import, --remove-import.
22897         (func_usage): Document them.
22898         (have_associative): Define always.
22899         (func_import): In import mode, don't merge the specified settings with
22900         the cached settings. Implement remove-import mode.
22901         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
22902         Explain when to use them versus --import.
22903         (Simple update): Use --add-import instead of --import.
22904         * NEWS: Mention the change.
22905
22906 2010-09-04  Bruno Haible  <bruno@clisp.org>
22907
22908         * doc/gnulib-tool.texi (Initial import): Update paragraph about
22909         separate gnulib.mk.
22910
22911 2010-09-04  Bruno Haible  <bruno@clisp.org>
22912
22913         gnulib-tool: Don't talk about CVS any more.
22914         * gnulib-tool (func_usage, func_import): Write "version control"
22915         instead of CVS.
22916
22917 2010-09-04  Jim Meyering  <meyering@redhat.com>
22918
22919         maint.mk: avoid obscure sc_copyright_check failure in coreutils
22920         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
22921         false positives (whose names may be ill-chosen) when searching
22922         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
22923         would cause a false-positive.
22924
22925         avoid coreutils "make distcheck" failure
22926         Coreutils tests with an absolute build directory name that contains
22927         a space.  Not quoting this directory name caused a failure.
22928         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
22929         * tests/test-vc-list-files-cvs.sh: Likewise.
22930
22931 2010-09-04  Bruno Haible  <bruno@clisp.org>
22932
22933         gnulib-tool: Avoid error when run in a package without Makefile.am.
22934         * gnulib-tool: When collecting the m4dirs in a package that does not
22935         have a Makefile.am, eliminate those directories that contain no
22936         gnulib-cache.m4. Fix expression that counts these directories.
22937
22938 2010-09-04  Bruno Haible  <bruno@clisp.org>
22939
22940         update-copyright test: Improve output when perl is missing or too old.
22941         * tests/test-update-copyright.sh: Move test of Perl version down after
22942         the test whether Perl exists. Provide an explanation relating Perl's
22943         error message to Automake's SKIP: message.
22944
22945 2010-09-04  Bruno Haible  <bruno@clisp.org>
22946
22947         Don't augment PATH in TESTS_ENVIRONMENT.
22948         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
22949         set abs_aux_dir instead of augmenting PATH.
22950         * modules/vc-list-files-tests (Makefile.am): Likewise.
22951         * tests/test-update-copyright.sh: Augment PATH here.
22952         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
22953         path_prepend_.
22954         * tests/test-vc-list-files-git.sh: Likewise.
22955
22956 2010-09-04  Jim Meyering  <meyering@redhat.com>
22957
22958         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
22959         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
22960
22961 2010-09-04  Bruno Haible  <bruno@clisp.org>
22962
22963         strdup: Fix compilation error in C++ mode.
22964         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
22965         the macro.
22966
22967 2010-09-04  Bruno Haible  <bruno@clisp.org>
22968
22969         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
22970         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
22971         macro into a function.
22972         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22973
22974 2010-09-04  Bruno Haible  <bruno@clisp.org>
22975
22976         Set PATH_SEPARATOR the same way autoconf does.
22977         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
22978         the value of PATH_SEPARATOR the same way autoconf-generated configure
22979         scripts do.
22980         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
22981         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22982
22983 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22984
22985         Set PATH_SEPARATOR the same way autoconf does.
22986         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
22987         the same way autoconf-generated configure scripts do.
22988         * posix-modules: Likewise.
22989
22990 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22991
22992         hash: fix safe_hasher const typo
22993         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
22994         const; otherwise, there is a type error later.
22995
22996 2010-09-02  Jim Meyering  <meyering@redhat.com>
22997
22998         test-update-copyright.sh: require perl 5.8.0
22999         * tests/test-update-copyright.sh: Require 5.8.0,
23000         which Tom G. Christensen has confirmed is adequate,
23001         while 5.6.1 is not.
23002
23003 2010-09-02  Eric Blake  <eblake@redhat.com>
23004
23005         tests: init.sh improvements for re-exec'ing with zsh
23006         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
23007         -vx through shell re-exec.
23008         Reported by Tom G. Christensen.
23009
23010         wctype: fix typo in previous commit
23011         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
23012         Reported by Ludovic Courtès.
23013
23014 2010-09-02  Jim Meyering  <meyering@redhat.com>
23015
23016         test-update-copyright.sh: skip test if Perl is too old
23017         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
23018         Reported by Tom G. Christensen.
23019
23020 2010-09-02  Bruno Haible  <bruno@clisp.org>
23021
23022         wctype: Avoid compilation error on IRIX 6.5.30.
23023         * lib/wctype.in.h (iswblank): Declare with a replacement if
23024         REPLACE_ISWBLANK is set.
23025         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
23026         declared. Set REPLACE_ISWBLANK.
23027         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
23028         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
23029         * doc/posix-headers/wctype.texi: Likewise.
23030         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23031
23032 2010-09-01  Bruno Haible  <bruno@clisp.org>
23033
23034         New module 'socketlib'.
23035         * modules/socketlib: New file.
23036         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
23037         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
23038         * modules/sockets (Depends-on): Add socketlib.
23039         Suggested by Sam Steingold <sds@gnu.org>.
23040
23041 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23042
23043         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
23044
23045         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
23046         when one needs search access to a directory but not read access.
23047         On systems where it is available, it works in some cases where
23048         O_RDONLY does not, namely on directories that are searchable but
23049         not readable, and which need only to be searchable.  If O_SEARCH
23050         is not available, fall back to the traditional method of using
23051         O_RDONLY.
23052
23053         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
23054         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
23055         when opening a directory that needs only to be searchable.
23056         * lib/chdir-safer.c (chdir_no_follow): Likewise.
23057         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
23058         * lib/openat-proc.c (openat_proc_name): Likewise.
23059         * lib/openat.c (openat_needs_fchdir): Likewise.
23060         * lib/save-cwd.c (save_cwd): Likewise.
23061         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
23062
23063 2010-08-28  Bruno Haible  <bruno@clisp.org>
23064
23065         New module 'host-cpu-c-abi'.
23066         * modules/host-cpu-c-abi: New file.
23067         * m4/host-cpu-c-abi.m4: New file, based on part of
23068         clisp/src/m4/general.m4.
23069         Requested by Sam Steingold <sds@gnu.org>.
23070
23071 2010-08-31  Eric Blake  <eblake@redhat.com>
23072         and Jim Meyering  <meyering@redhat.com>
23073
23074         hash: factor, and guard against misbehaving hasher function
23075         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
23076         of table->hasher's return value.  Also protect against a hash value
23077         so large that adding it to table->bucket results in a NULL pointer.
23078         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
23079         Use it in place of open-coded check-and-abort.
23080
23081 2010-08-30  Bruno Haible  <bruno@clisp.org>
23082
23083         hash: silence spurious clang warning
23084         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
23085         Reported by Eric Blake.
23086
23087 2010-08-30  Eric Blake  <eblake@redhat.com>
23088
23089         strstr, memmem, strcasestr: avoid leaked shell message
23090         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
23091         FreeBSD.
23092         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23093         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23094
23095         tests: silence clang warning
23096         * tests/test-malloca.c (do_allocation): Avoid dead store.
23097
23098 2010-08-29  Bruno Haible  <bruno@clisp.org>
23099
23100         gettext: Fix recent mistake.
23101         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
23102
23103 2010-08-29  Bruno Haible  <bruno@clisp.org>
23104
23105         selinux-h: Offer a --without-selinux option.
23106         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
23107         --without-selinux was specified, skip all tests and define
23108         HAVE_SELINUX_SELINUX_H to 0.
23109         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
23110         set LIB_SELINUX to empty.
23111         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
23112         gl_LIBSELINUX. If --without-selinux was specified, replace
23113         selinux/context.h.
23114         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
23115
23116 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23117             Bruno Haible  <bruno@clisp.org>
23118
23119         Make the module 'realloc-gnu' work again on AIX and OSF/1.
23120         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
23121         of HAVE_REALLOC.
23122         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
23123         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
23124         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
23125         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23126
23127 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23128             Bruno Haible  <bruno@clisp.org>
23129
23130         Make the module 'calloc-gnu' work again on AIX and OSF/1.
23131         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
23132         HAVE_CALLOC.
23133         * lib/xmalloc.c: Update accordingly.
23134         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
23135         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
23136         * modules/calloc-gnu (configure.ac): Invoke 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 'malloc-gnu' work again on AIX and OSF/1.
23142         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
23143         HAVE_MALLOC.
23144         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
23145         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
23146         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23147
23148 2010-08-29  Bruno Haible  <bruno@clisp.org>
23149
23150         Update modules list.
23151         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23152         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
23153         (String handling <string.h>): Add astrxfrm.
23154         (File system functions): Add readlinkat.
23155
23156 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23157
23158         Tests for module 'realloc-gnu'.
23159         * modules/realloc-gnu-tests: New file.
23160         * tests/test-realloc-gnu.c: New file.
23161
23162         Tests for module 'calloc-gnu'.
23163         * modules/calloc-gnu-tests: New file.
23164         * tests/test-calloc-gnu.c: New file.
23165
23166         Tests for module 'malloc-gnu'.
23167         * modules/malloc-gnu-tests: New file.
23168         * tests/test-malloc-gnu.c: New file.
23169
23170 2010-08-28  Bruno Haible  <bruno@clisp.org>
23171
23172         Rename module 'realloc' -> 'realloc-gnu'.
23173         * modules/realloc-gnu: New file, copied from modules/realloc.
23174         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
23175         obsolete.
23176         * modules/mgetgroups (Depends-on): Update.
23177         * doc/posix-functions/realloc.texi: Update.
23178         * NEWS: Mention the change.
23179
23180         Rename module 'calloc' -> 'calloc-gnu'.
23181         * modules/calloc-gnu: New file, copied from modules/calloc.
23182         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
23183         obsolete.
23184         * doc/posix-functions/calloc.texi: Update.
23185         * NEWS: Mention the change.
23186
23187         Rename module 'malloc' -> 'malloc-gnu'.
23188         * modules/malloc-gnu: New file, copied from modules/malloc.
23189         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
23190         obsolete.
23191         * modules/argp (Depends-on): Update.
23192         * modules/regex (Depends-on): Update.
23193         * doc/posix-functions/malloc.texi: Update.
23194         * NEWS: Mention the change.
23195
23196 2010-08-28  Eric Blake  <eblake@redhat.com>
23197
23198         pread, pwrite: add missing dependency
23199         * modules/pread (Depends-on): Add extensions.
23200         * modules/pwrite (Depends-on): Likewise.
23201
23202 2010-08-28  Bruno Haible  <bruno@clisp.org>
23203
23204         unistr/u*-strchr: Fix tests dependencies.
23205         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
23206         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
23207         Reported by Ian Beckwith <ianb@erislabs.net>.
23208
23209 2010-08-28  Bruno Haible  <bruno@clisp.org>
23210
23211         read-file: Don't occupy too much unused memory.
23212         * lib/read-file.c (fread_file): Shrink the buffer at the end.
23213
23214 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
23215             Eric Blake  <eblake@redhat.com>
23216             Bruno Haible  <bruno@clisp.org>
23217
23218         read-file: Avoid memory reallocations with regular files.
23219         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
23220         (fread_file): With regular files, use the remaining length as the
23221         initial buffer size.  Check against overflow.
23222         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
23223         sys_stat.
23224
23225 2010-08-28  Bruno Haible  <bruno@clisp.org>
23226
23227         ftello: Relax license.
23228         * modules/ftello (License): Relax to LGPLv2+.
23229         Reported by Eric Blake.
23230
23231 2010-08-28  Bruno Haible  <bruno@clisp.org>
23232
23233         Avoid relocwrapper link errors due to gnulib replacement functions.
23234         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
23235         function.
23236         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23237
23238 2010-08-28  Bruno Haible  <bruno@clisp.org>
23239
23240         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
23241         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
23242         defined.
23243         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
23244         Suggested by Eric Blake.
23245
23246 2010-08-28  Bruno Haible  <bruno@clisp.org>
23247
23248         sys_socket, netdb: Ensure socklen_t gets defined.
23249         * modules/sys_socket (Depends-on): Add socklen.
23250         * modules/netdb (Depends-on): Likewise.
23251         * modules/getaddrinfo (Depends-on): Remove socklen.
23252         * modules/getsockopt (Depends-on): Likewise.
23253         * modules/setsockopt (Depends-on): Likewise.
23254         * tests/test-sys_socket.c: Check that socklen_t is defined.
23255         * tests/test-netdb.c: Likewise.
23256         * m4/socklen.m4: Update comments.
23257         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23258
23259 2010-08-27  Eric Blake  <eblake@redhat.com>
23260
23261         login_tty: add missing dependency
23262         * modules/login_tty (Depends-on): Add pty.
23263
23264 2010-08-26  Eric Blake  <eblake@redhat.com>
23265
23266         lib-symbol-versions: fix m4 quoting
23267         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
23268         format for AC_LINK_IFELSE.
23269
23270         glob: fix compile test
23271         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
23272
23273         btowc: fix missing file
23274         * modules/btowc (Files): Also ship locale-fr.m4.
23275
23276         lseek: fix link test
23277         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
23278         AC_LINK_IFELSE.
23279
23280         include_next: silence autoconf 2.68 warning
23281         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
23282         AC_COMPILE_IFELSE as special.
23283         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
23284         autoconf < 2.68.
23285
23286         acl: fix compilation test
23287         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
23288         AC_COMPILE_IFELSE.
23289
23290 2010-08-26  Bruno Haible  <bruno@clisp.org>
23291
23292         Modernize AC_TRY_RUN invocations.
23293         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
23294         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23295         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
23296         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
23297         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
23298         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23299         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23300         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23301         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23302         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23303         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23304         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23305         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23306         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23307         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23308         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23309         gl_MBRLEN_NUL_RETVAL): Likewise.
23310         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23311         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23312         Likewise.
23313         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23314         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23315         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23316         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23317         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23318         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23319         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
23320         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23321         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
23322         Likewise.
23323         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23324         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23325         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23326         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23327         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23328         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23329         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23330         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
23331         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23332         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23333
23334 2010-08-26  Bruno Haible  <bruno@clisp.org>
23335
23336         Modernize AC_TRY_LINK invocations.
23337         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
23338         AC_TRY_LINK.
23339         * m4/argp.m4 (gl_ARGP): Likewise.
23340         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
23341         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23342         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23343         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23344         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23345         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
23346         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
23347         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23348         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23349         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23350         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23351         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
23352         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
23353         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23354         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23355         * m4/hostent.m4 (gl_HOSTENT): Likewise.
23356         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23357         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
23358         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23359         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
23360         Likewise.
23361         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
23362         Likewise.
23363         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
23364         Likewise.
23365         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23366         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
23367         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
23368         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23369         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
23370         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23371         * m4/servent.m4 (gl_SERVENT): Likewise.
23372         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23373         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
23374         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
23375         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
23376         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23377         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23378         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23379         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23380         * modules/tsearch-tests (configure.ac): Likewise.
23381
23382 2010-08-26  Bruno Haible  <bruno@clisp.org>
23383
23384         Modernize AC_TRY_COMPILE invocations.
23385         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
23386         AC_TRY_COMPILE.
23387         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
23388         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
23389         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23390         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23391         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23392         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23393         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23394         * m4/lock.m4 (gl_LOCK): Likewise.
23395         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
23396         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23397         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
23398         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23399         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23400         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
23401         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23402         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
23403         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23404         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23405         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23406         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23407         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
23408         extraneous semicolon.
23409
23410 2010-08-26  Jim Meyering  <meyering@redhat.com>
23411
23412         stat-time: relax license LGPL
23413         * modules/stat-time (License): Change from GPL to LGPL,
23414         with consent from all contributors, for use in libguile.
23415         Requested by Ludovic Courtès.
23416
23417 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
23418
23419         poll: return immediately on POLLHUP.
23420         * lib/poll.c (poll): Always set timeout before wait_timeout is
23421         computed.
23422
23423 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23424
23425         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
23426         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
23427         rmdir ("dir/.//"), unlinkat.
23428
23429 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23430
23431         stdbool: avoid spurious failure with modern xlc
23432         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23433
23434 2010-08-24  Bruno Haible  <bruno@clisp.org>
23435
23436         getloadavg: simplify code
23437         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
23438         gl_have_func. Update comments.
23439
23440 2010-08-24  Eric Blake  <eblake@redhat.com>
23441
23442         getloadavg: don't define SVR4 on cygwin
23443         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
23444         only define SVR4 when -lkvm is required.
23445         Reported by Yaakov Selkowitz.
23446
23447 2010-08-24  Bruno Haible  <bruno@clisp.org>
23448
23449         priv-set: fix comment
23450         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
23451
23452 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23453
23454         priv-set: fix comments
23455         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
23456         to match code, as suggested by David Bartley in:
23457         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
23458
23459 2010-08-23  Eric Blake  <eblake@redhat.com>
23460
23461         stdbool: avoid rejecting clang
23462         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23463         * tests/test-stdbool.c: Enable more tests if using the system
23464         <stdbool.h> instead of the gnulib replacement.
23465         (main): Move xlc bug test to a runtime test for all compilers.
23466         Reported by Anders Kaseorg.
23467
23468         argz: fix shell quoting issue
23469         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
23470         Reported by Charles Wilson.
23471
23472 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
23473             Erik Faye-Lund <kusmabite@gmail.com>
23474
23475         poll, select: handle ERROR_BROKEN_PIPE.
23476         * lib/poll.c (win32_compute_revents): Return POLLHUP when
23477         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23478         * lib/select.c (win32_compute_revents): Do not mark a pipe
23479         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23480
23481 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
23482
23483         fts: allow compilation with C++
23484         * lib/fts_.h: Specify extern "C" linkage with C++.
23485
23486 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23487
23488         Fix gnulib-tool sed script de-commentation for AIX sed.
23489         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
23490         sed.
23491
23492 2010-08-17  Eric Blake  <eblake@redhat.com>
23493
23494         test-stddef: test for (some) offsetof bugs
23495         * tests/test-stddef.c: Enhance test to ensure correct type of
23496         offsetof.
23497         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
23498         that we are not fixing at this time.
23499
23500 2010-08-15  Bruno Haible  <bruno@clisp.org>
23501
23502         stpncpy: Allow stpncpy to be defined as a macro.
23503         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
23504         if it's already correctly declared.
23505         * lib/string.in.h (stpncpy): Undefine before redefining.
23506         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
23507
23508 2010-08-14  Bruno Haible  <bruno@clisp.org>
23509
23510         Rename module 'memxfrm' to 'amemxfrm'.
23511         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
23512         (amemxfrm): Renamed from memxfrm.
23513         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
23514         (amemxfrm): Renamed from memxfrm.
23515         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
23516         * NEWS: Mention the change.
23517         * MODULES.html.sh (String handling <string.h>): Update.
23518         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
23519         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
23520         * lib/unicase/u16-casexfrm.c: Likewise.
23521         * lib/unicase/u32-casexfrm.c: Likewise.
23522         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
23523         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
23524         * lib/uninorm/u16-normxfrm.c: Likewise.
23525         * lib/uninorm/u32-normxfrm.c: Likewise.
23526         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
23527         memxfrm.
23528         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
23529         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
23530         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
23531         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
23532         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
23533         Suggested by Paul Eggert.
23534
23535 2010-08-14  Bruno Haible  <bruno@clisp.org>
23536
23537         Tests for module 'astrxfrm'.
23538         * modules/astrxfrm-tests: New file.
23539         * tests/test-astrxfrm.c: New file.
23540
23541         New module 'astrxfrm'.
23542         * lib/astrxfrm.h: New file.
23543         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
23544         * modules/astrxfrm: New file.
23545
23546 2010-08-14  Reuben Thomas <rrt@sc3d.org>
23547
23548         regex: Tweak doc.
23549         * doc/regex.texi (Overview): Don't mention regex.c.
23550         (GNU Regular Expression Compiling): Likewise.
23551         (Match-end-of-line Operator): Mention 'not_eol'.
23552
23553 2010-08-14  Brian Gough  <bjg@gnu.org>
23554             Bruno Haible  <bruno@clisp.org>
23555
23556         git-merge-changelog: add doc relating to use with bzr and hg.
23557         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
23558
23559 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
23560
23561         pthread: fix pthread.h creation for srcdir != builddir
23562         * modules/pthread (Makefile.am): Fix the rule to work also in a
23563         non-srcdir build.
23564
23565 2010-08-13  Karl Berry  <karl@gnu.org>
23566
23567         * doc/regex.texi (Predefined Syntaxes): @smallexample.
23568         * doc/posix-*/*: force line break before @url of POSIX
23569         specifications.
23570         Suggested by Werner Lemberg.
23571
23572 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23573
23574         strtod: fix const diagnostic
23575         * lib/strtod.c (strtod): Don't assign const char * to char *,
23576         as this elicits a warning from GCC when warnings are enabled.
23577
23578 2010-08-10  Pádraig Brady <P@draigbrady.com>
23579         and Eric Blake  <eblake@redhat.com>
23580
23581         copy-acl: ignore ENOTSUP on HP-UX
23582         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
23583         so that it is available for HP-UX.
23584         * lib/copy-acl.c (qcopy_acl): Use it.
23585         Reported by Patrick M. Callahan.
23586
23587 2010-08-10  Eric Blake  <eblake@redhat.com>
23588
23589         open, chown: relax license
23590         * modules/open (License): Change to LGPLv2+, with consent by all
23591         authors, for use in augeas.
23592         * modules/chown (License): Likewise.
23593         * modules/lchown (Likewise): Likewise.
23594         Requested by Adam Stokes.
23595
23596 2010-08-09  Karl Berry  <karl@gnu.org>
23597
23598         * build-aux/ar-lib: new file, import from Automake.
23599         * config/srclist.txt: autocheck for updates.
23600
23601 2010-08-09  Eric Blake  <eblake@redhat.com>
23602
23603         readlinkat: adjust client modules
23604         * modules/areadlinkat (Depends-on): Use readlinkat, not
23605         symlinkat.
23606         * modules/areadlinkat-with-size (Depends-on): Likewise.
23607
23608         mknod: be more vocal about danger of running tests as root
23609         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
23610         root, since that is just asking for problems.
23611         Suggested by Bruno Haible, based on a report by Rainer Tammer.
23612
23613         readlinkat: split into its own module
23614         * modules/symlinkat: Split readlinkat...
23615         * modules/readlinkat: ...into separate module.
23616         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
23617         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
23618         * lib/symlinkat.c (readlinkat): Move...
23619         * lib/readlinkat.c: ...into new file.
23620         * modules/symlinkat-tests: Split readlinkat test...
23621         * modules/readlinkat-tests: ...into separate module.
23622         * tests/test-symlinkat.c: Split...
23623         * tests/test-readlinkat.c: ...into new file.
23624         * NEWS: Document the split.
23625         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23626         * lib/unistd.in.h (readlinkat): Likewise.
23627         Suggested by Bruno Haible.
23628
23629 2010-08-08  Bruno Haible  <bruno@clisp.org>
23630
23631         memxfrm: Speed up.
23632         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
23633         that usually only one call to strxfrm is necessary for each string
23634         part.
23635         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23636
23637 2010-08-07  Karl Berry  <karl@gnu.org>
23638
23639         * doc/posix-headers/limits.texi,
23640         * doc/posix-functions/malloc.texi,
23641         * doc/posix-functions/strsignal.texi: missing @item.
23642         * doc/ld-version-script.texi: spurious leading i.
23643         * doc/regex.texi (Interval Operators): no commas inside @var.
23644
23645 2010-08-01  Bruno Haible  <bruno@clisp.org>
23646
23647         Integrate the regex documentation.
23648         * doc/gnulib.texi: Define 'cn' index.
23649         (Regular expressions): New a chapter that includes regex.texi and
23650         regexprops-generic.texi.
23651         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
23652         syntax.
23653
23654         Whitespace cleanup.
23655         * doc/regex.texi: Remove trailing spaces.
23656
23657         Add regex documentation.
23658         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
23659         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
23660         Written by Kathy A. Hargreaves and Karl Berry.
23661
23662 2010-08-01  Bruno Haible  <bruno@clisp.org>
23663
23664         link: Update documentation.
23665         * doc/posix-functions/link.texi: Update regarding Solaris.
23666
23667 2010-07-31  Bruno Haible  <bruno@clisp.org>
23668
23669         Update modules list.
23670         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
23671         (String handling <string.h>): Add memcmp2, memxfrm.
23672         (Container data structures): Add xlist, xsublist, xoset.
23673         (Core language properties): Add alignof, unused-parameter.
23674         (Process control, Numeric conversion functions <stdlib.h>): Renamed
23675         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
23676         (Unibyte characters <ctype.h>): New section.
23677         (String handling <string.h>): New section.
23678         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
23679         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
23680         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
23681         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
23682         tan, tanh, tanl, y0, y1, yn.
23683         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
23684         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
23685         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
23686         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
23687         unlockpt, vdprintf, vdprintf-posix.
23688         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
23689         (File system functions): Add concat-filename, sys_file, sys_ioctl,
23690         xconcat-filename.
23691         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
23692         getdtablesize, pipe2, pipe2-safer.
23693         (Security): New section.
23694         (Networking functions): Add accept4.
23695         (Signal handling): Add sigpipe.
23696         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
23697         mbmemcasecoll.
23698         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
23699         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
23700         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
23701         pipe-filter-ii.
23702         (Misc): Add argp-version-etc, login_tty, parse-duration.
23703
23704 2010-07-31  Bruno Haible  <bruno@clisp.org>
23705
23706         Improve doc in MODULES.html.
23707         * modules/linkat (Description): Add the word "function".
23708         * modules/mkfifo (Description): Likewise.
23709         * modules/mknod (Description): Likewise.
23710         * modules/remove (Description): Likewise.
23711         * modules/renameat (Description): Likewise.
23712         * modules/stat (Description): Likewise.
23713         * modules/symlink (Description): Likewise.
23714         * modules/unlink (Description): Likewise.
23715
23716 2010-07-31  Bruno Haible  <bruno@clisp.org>
23717
23718         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
23719         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
23720         option --enable/disable-c++ instead of --enable/disable-cxx.
23721         * NEWS: Mention the change.
23722
23723 2010-07-31  Bruno Haible  <bruno@clisp.org>
23724
23725         readlink, areadlink: Relax test a bit.
23726         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
23727         alternative to ENOTDIR.
23728         * tests/test-areadlink.h (test_areadlink): Likewise.
23729         Reported by Rainer Tammer.
23730
23731 2010-07-31  Bruno Haible  <bruno@clisp.org>
23732
23733         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
23734         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
23735         character, perform the search using U_STRCHR.
23736         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
23737         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
23738         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
23739         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
23740         Suggested by Paolo Bonzini.
23741
23742 2010-07-31  Bruno Haible  <bruno@clisp.org>
23743
23744         unistr/u*-strstr: Fix dependencies.
23745         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
23746         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
23747         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
23748
23749 2010-07-31  Bruno Haible  <bruno@clisp.org>
23750
23751         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
23752         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
23753         the beginning of the loop.
23754         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
23755         cases in 'switch' statement.
23756
23757         unistr/u8-strchr: Fix several bugs.
23758         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
23759         the string. When not found, return NULL, not a pointer near the end.
23760
23761         More tests for unistr/u8-strchr.
23762         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
23763         that the function does not read past the first occurrence of the byte
23764         being searched.
23765         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
23766         * tests/unistr/test-u16-strchr.c (main): New function.
23767         * tests/unistr/test-u32-strchr.c (main): New function.
23768
23769 2010-07-31  Bruno Haible  <bruno@clisp.org>
23770
23771         posix-modules: Ignore backup files of documentation files.
23772         * posix-modules: grep only through files named *.texi.
23773
23774 2010-07-31  Bruno Haible  <bruno@clisp.org>
23775
23776         symlinkat: Fix documentation.
23777         * doc/posix-functions/readlinkat.texi: Fix module name.
23778
23779 2010-07-31  Bruno Haible  <bruno@clisp.org>
23780
23781         fchownat: Replace also when chown has the trailing slash bug.
23782         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
23783         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
23784         introduced on 2010-04-10.
23785         Reported by Rainer Tammer.
23786
23787 2010-07-31  Bruno Haible  <bruno@clisp.org>
23788
23789         linkat: Work around AIX 7.1 bug.
23790         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
23791         whether linkat handles trailing slash correctly. If not, replace linkat
23792         and define LINKAT_TRAILING_SLASH_BUG.
23793         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
23794         check whether (fd1,file1) points to a directory if file1 or file2 ends
23795         in a slash. Code taken from lib/link.c.
23796         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
23797         Reported by Rainer Tammer.
23798
23799 2010-07-31  Bruno Haible  <bruno@clisp.org>
23800
23801         Correctly determine whether pow is available in libc on AIX 7 with xlc.
23802         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
23803         This disables an xlc optimization that was causing wrong test results.
23804         Reported by Rainer Tammer.
23805
23806 2010-07-31  Bruno Haible  <bruno@clisp.org>
23807
23808         iconv: Work around AIX 6.1..7.1 bug.
23809         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
23810         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
23811         cross-compiling, guess no on all versions of AIX.
23812         Reported by Rainer Tammer.
23813
23814 2010-07-31  Bruno Haible  <bruno@clisp.org>
23815
23816         readlink: Relax test a bit.
23817         * tests/test-readlink.h (test_readlink): Allow different errno value
23818         when readlink is called with a file name that ends in / and refers to
23819         a file.
23820         Suggested by Eric Blake.
23821         Reported by Rainer Tammer.
23822
23823 2010-07-31  Bruno Haible  <bruno@clisp.org>
23824
23825         copysign: Does not require -lm on glibc systems.
23826         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
23827         gl_COMMON_DOUBLE_MATHFUNC.
23828         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
23829
23830 2010-07-31  Bruno Haible  <bruno@clisp.org>
23831
23832         duplocale: Work around AIX 7.1 bug.
23833         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
23834         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
23835         * lib/duplocale.c (rpl_duplocale): Update comment.
23836         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
23837         Reported by Rainer Tammer.
23838
23839 2010-07-30  Bruno Haible  <bruno@clisp.org>
23840
23841         dirfd: Avoid link error on AIX 7.1.
23842         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
23843         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
23844         exist, set REPLACE_DIRFD.
23845         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
23846         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
23847         * doc/posix-functions/dirfd.texi: Update.
23848         Reported by Rainer Tammer.
23849
23850 2010-07-30  Eric Blake  <eblake@redhat.com>
23851
23852         strtod: next round of AIX fixes
23853         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
23854         exponent.
23855         * tests/test-strtod.c (main): Enhance tests.
23856         * doc/posix-functions/strtod.texi (strtod): Document next bug.
23857         Reported by Rainer Tammer.
23858
23859         futimens: fix configure check
23860         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
23861         Reported by Bruno Haible.
23862
23863 2010-07-30  Bruno Haible  <bruno@clisp.org>
23864
23865         getline: Update regarding AIX.
23866         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
23867         Reported by Rainer Tammer.
23868
23869 2010-07-30  Bruno Haible  <bruno@clisp.org>
23870
23871         wcwidth: Drop replacement on AIX 7.
23872         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
23873         AIX 7.
23874         Reported by Rainer Tammer.
23875
23876 2010-07-30  Bruno Haible  <bruno@clisp.org>
23877
23878         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
23879         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
23880         a 'char *'.
23881         Reported by Rainer Tammer.
23882
23883 2010-07-30  Bruno Haible  <bruno@clisp.org>
23884
23885         unlink: Update regarding AIX.
23886         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
23887         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
23888         Reported by Rainer Tammer.
23889
23890 2010-07-30  Bruno Haible  <bruno@clisp.org>
23891
23892         symlink: Update regarding AIX.
23893         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
23894         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
23895         Reported by Rainer Tammer.
23896
23897 2010-07-30  Bruno Haible  <bruno@clisp.org>
23898
23899         strndup: Update regarding AIX.
23900         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
23901         AIX 7.
23902         Reported by Rainer Tammer.
23903
23904 2010-07-30  Bruno Haible  <bruno@clisp.org>
23905
23906         stat: Update regarding AIX.
23907         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
23908         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
23909         Reported by Rainer Tammer.
23910
23911 2010-07-30  Bruno Haible  <bruno@clisp.org>
23912
23913         truncl: Fix autoconf test.
23914         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
23915         whether truncl works.
23916         Reported by Rainer Tammer.
23917
23918 2010-07-30  Bruno Haible  <bruno@clisp.org>
23919
23920         round: Update regarding AIX.
23921         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
23922         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
23923         Reported by Rainer Tammer.
23924
23925 2010-07-30  Bruno Haible  <bruno@clisp.org>
23926
23927         rename: Update regarding AIX.
23928         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
23929         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
23930         Reported by Rainer Tammer.
23931
23932 2010-07-30  Bruno Haible  <bruno@clisp.org>
23933
23934         printf.m4: Update regarding AIX.
23935         * m4/printf.m4: Update comments regarding AIX.
23936         Reported by Rainer Tammer.
23937
23938 2010-07-30  Bruno Haible  <bruno@clisp.org>
23939
23940         iconv: Update regarding AIX.
23941         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
23942         AIX 7.
23943         Reported by Rainer Tammer.
23944
23945 2010-07-30  Bruno Haible  <bruno@clisp.org>
23946
23947         getopt: Update regarding AIX.
23948         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
23949         no on AIX.
23950         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
23951         Reported by Rainer Tammer.
23952
23953 2010-07-30  Bruno Haible  <bruno@clisp.org>
23954
23955         ldexpl; Update regarding AIX.
23956         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
23957         on AIX 7.
23958         Reported by Rainer Tammer.
23959
23960 2010-07-30  Bruno Haible  <bruno@clisp.org>
23961
23962         frexpl: Update regarding AIX.
23963         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
23964         on AIX 7.
23965         Reported by Rainer Tammer.
23966
23967 2010-07-30  Bruno Haible  <bruno@clisp.org>
23968
23969         open, fopen: Update regarding AIX.
23970         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
23971         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23972         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
23973         * doc/posix-functions/fopen.texi: Likewise.
23974         Reported by Rainer Tammer.
23975
23976 2010-07-30  Bruno Haible  <bruno@clisp.org>
23977
23978         chown: Update doc regarding AIX.
23979         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
23980         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
23981         Reported by Rainer Tammer.
23982
23983 2010-07-30  Eric Blake  <eblake@redhat.com>
23984
23985         strtod: fix bug in replacement function on AIX
23986         * lib/strtod.c (strtod): Special case broken "0x" parse in
23987         underlying strtod.
23988         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
23989         * doc/posix-functions/strtod.texi (strtod): Likewise.
23990         Reported by Rainer Tammer.
23991
23992 2010-07-30  Bruno Haible  <bruno@clisp.org>
23993
23994         mbrlen: Fix cross-compilation guess for AIX.
23995         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
23996         guess. Leftover from 2008-12-22.
23997
23998 2010-07-30  Bruno Haible  <bruno@clisp.org>
23999
24000         mbrtowc: Fix cross-compilation guess for AIX.
24001         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
24002         guess. Leftover from 2008-12-21.
24003
24004 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
24005
24006         init.sh: work around trap limitation of some shells
24007         * tests/init.sh (setup_): Move exit trap outside of shell function.
24008
24009 2010-07-29  Eric Blake  <eblake@redhat.com>
24010
24011         strtod: aid debugging
24012         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
24013         understanding why strtod is rejected.
24014
24015 2010-07-28  Bruno Haible  <bruno@clisp.org>
24016
24017         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
24018         * lib/unistr/u8-chr.c: Include <string.h>.
24019         * tests/unistr/test-u8-chr.c: Likewise.
24020         * tests/unistr/test-u16-chr.c: Likewise.
24021         * tests/unistr/test-u32-chr.c: Likewise.
24022         * tests/unistr/test-u8-strchr.c: Likewise.
24023         * tests/unistr/test-u16-strchr.c: Likewise.
24024         * tests/unistr/test-u32-strchr.c: Likewise.
24025         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
24026         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
24027         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
24028         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
24029
24030 2010-07-28  Bruno Haible  <bruno@clisp.org>
24031
24032         Use spaces for indentation, not tabs.
24033         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24034
24035 2010-07-27  Bruno Haible  <bruno@clisp.org>
24036
24037         mbspcasecmp: Fix function specification.
24038         * lib/string.in.h (mbspcasecmp): Fix specification comment.
24039         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
24040         Reported by Eric Blake <eblake@redhat.com>.
24041
24042 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
24043
24044         timespec: use cast and not conditional, as truncation isn't possible
24045         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
24046         instead of a conditional.  Comment about the situation in more detail.
24047         This undoes most of the 2009-10-29 patch.
24048
24049 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
24050
24051         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
24052         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
24053         * lib/unistr/u8-strchr.c: Likewise.
24054         * modules/unistr/u8-chr: Depend on memchr.
24055
24056         unistr/u*-strchr: add tests
24057         * modules/unistr/u8-strchr-tests: New file.
24058         * modules/unistr/u16-strchr-tests: New file.
24059         * modules/unistr/u32-strchr-tests: New file.
24060         * tests/unistr/test-strchr.h: New file.
24061         * tests/unistr/test-u8-strchr.c: New file.
24062         * tests/unistr/test-u16-strchr.c: New file.
24063         * tests/unistr/test-u32-strchr.c: New file.
24064
24065         unistr/u*-chr: test multibyte sequences more
24066         * tests/unistr/test-chr.h: Do complete testing of the characters in the
24067         test vector.
24068         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
24069         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
24070         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
24071
24072         unistr/u*-chr: test multibyte sequences
24073         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
24074
24075         unistr/u*-chr: prepare for multibyte tests
24076         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
24077         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
24078         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
24079         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
24080         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
24081         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
24082
24083 2010-07-18  Bruno Haible  <bruno@clisp.org>
24084
24085         unistr/u8-strchr: Optimize non-ASCII argument case.
24086         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
24087         because the first byte often matches anyway.
24088         Reported by Pádraig Brady <P@draigbrady.com>.
24089
24090 2010-07-15  Karl Berry  <karl@gnu.org>
24091
24092         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
24093
24094 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
24095
24096         getcwd: on Solaris, work better if ancestors are inaccessible
24097         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
24098         buffer and size, try again with a large buffer.  This works better
24099         on Solaris, since its getcwd succeeds even if the path to the root
24100         is inaccessible, and this is helpful in common cases such as .zfs
24101         hidden directories.  Problem reported by J Chapman Flack in
24102         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
24103         Use system getcwd if it's declared, not merely if it's partly
24104         working; use the partly-working test only to avoid needless effort
24105         if the system getcwd fails.
24106         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
24107         comment that was already obsolete and is now even more obsolete.
24108         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
24109         now might call strdup.
24110
24111 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
24112
24113         pthread: Add enough so that coreutils/src/sort.c compiles.
24114         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
24115         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
24116         gnulib. Include <sched.h> and <time.h>, as per POSIX.
24117         Include <sys/types.h>, in case it defines pthread_t.
24118         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
24119         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
24120         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
24121         (pthread_rwlockattr_t, pthread_spinlock_t):
24122         New typedefs, if HAVE_PTHREAD_T is not defined.
24123         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
24124         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
24125         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
24126         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
24127         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
24128         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
24129         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
24130         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
24131         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
24132         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
24133         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
24134         New macros.
24135         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
24136         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
24137         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
24138         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
24139         (pthread_spin_unlock): New dummy functions.
24140         (pthread_create): Return EAGAIN; don't set errno.
24141         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
24142         require AC_C_INLINE.
24143         * modules/pthread (Depends-on): Add sched, time.
24144         (pthread.h): Use AM_V_GEN.
24145
24146 2010-07-13  Bruno Haible  <bruno@clisp.org>
24147
24148         striconveh: Don't malloc memory if the result buffer is sufficient.
24149         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
24150         buffer if its size is sufficient.
24151         Reported by Ludovic Courtès <ludo@gnu.org>.
24152
24153 2010-07-13  Bruno Haible  <bruno@clisp.org>
24154
24155         strtod: Add safety check.
24156         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
24157
24158 2010-07-12  Bruno Haible  <bruno@clisp.org>
24159
24160         Unify tests that set gl_cv_func_ldexpl_no_libm.
24161         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
24162         gl_FUNC_LDEXPL.
24163         (gl_FUNC_LDEXPL): Invoke it.
24164         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24165
24166 2010-07-12  Bruno Haible  <bruno@clisp.org>
24167
24168         Unify tests that set gl_cv_func_ldexp_no_libm.
24169         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
24170         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
24171         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
24172         (configure.ac): Simply invoke gl_FUNC_LDEXP.
24173         * modules/strtod (Files): Add m4/ldexp.m4.
24174
24175 2010-07-12  Bruno Haible  <bruno@clisp.org>
24176
24177         Unify tests that set gl_cv_func_frexpl_no_libm.
24178         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
24179         gl_FUNC_FREXPL_NO_LIBM.
24180         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
24181         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24182
24183 2010-07-12  Bruno Haible  <bruno@clisp.org>
24184
24185         Unify tests that set gl_cv_func_frexp_no_libm.
24186         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
24187         gl_FUNC_FREXP_NO_LIBM.
24188         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
24189         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
24190
24191 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24192
24193         memcoll: clarify sizes versus lengths, document better, and tweak perf
24194         * lib/memcoll.c (strcoll_loop, memcoll0):
24195         Improve quality of descriptive comments.  Name variables
24196         consistently as to whether they are lengths (which do not include
24197         terminating null) versus sizes (which do).
24198         * lib/xmemcoll.c (xmemcoll0): Likewise.
24199         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
24200         returned when s1size == 0; this is easier to compile and saves
24201         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
24202
24203 2010-07-12  Bruno Haible  <bruno@clisp.org>
24204
24205         Tests for module '_Exit'.
24206         * modules/_Exit-tests: New file.
24207         * tests/test-_Exit.sh: New file.
24208         * tests/test-_Exit.c: New file.
24209
24210         New module '_Exit'.
24211         * lib/stdlib.in.h (__attribute__): New macro.
24212         (_Exit): New declaration.
24213         * lib/_Exit.c: New file.
24214         * m4/_Exit.m4: New file.
24215         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
24216         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
24217         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
24218         * modules/_Exit: New file.
24219         * tests/test-stdlib-c++.cc (_Exit): Check signature.
24220         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
24221
24222 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24223
24224         strtod: make it more-accurate typically, and don't require libm
24225         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
24226         Include limits.h.  Don't include string.h.
24227         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
24228         (locale_isspace): New function, so that no casts are needed to
24229         check whether *s is a space.
24230         (ldexp): Provide an unused dummy if not available.
24231         (scale_radix_exp, parse_number, underlying_strtod): New functions.
24232         (strtod): Use them.  This implementation prefers to use the
24233         underlying strtod if available, falling back on our own code
24234         only to fix known bugs.  This is more likely to produce an
24235         accurate result.  Also, it avoids the use of libm functions.
24236         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
24237         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
24238         was absent, but it caused a test failure with coreutils.
24239         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
24240         with libm.
24241         * modules/strtod (Makefile.am, Link): libm is no longer needed.
24242         * modules/strtod-tests (Makefile.am): Likewise.
24243
24244 2010-07-11  Pádraig Brady  <P@draigBrady.com>
24245             Bruno Haible  <bruno@clisp.org>
24246
24247         unistr/u8-strchr: Optimize ASCII argument case.
24248         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
24249
24250 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24251
24252         (x)memcoll: minor tweaks
24253         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
24254         is after the type that it qualifies.
24255         (memcoll0): Likewise.
24256         * lib/memcoll.h (memcoll0): Likewise.
24257         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
24258         * lib/xmemcoll.h (xmemcoll0): Likewise.
24259         * lib/memcoll.c (memcoll0): Correct the comment.  This function
24260         differs from memcoll in that the NUL byte is part of the argument.
24261         Omit the abort-checks, as performance is a real issue here.  Plus,
24262         the checks were wrong anyway (an off-by-one error).  Omit local
24263         variable 'diff', as it's a bit clearer that way.
24264         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
24265         no longer needed.
24266
24267 2010-07-08  Chen Guo <chenguo4@yahoo.com>
24268
24269         (x)memcoll: speedup when input is known to be NUL delimited
24270         * lib/memcoll.c: Include stdlib.
24271         (memcoll0): New function.
24272         (strcoll_loop): New function, refactored for use in both memcoll
24273         and memcoll0.
24274         * lib/memcoll.h (memcoll0): Add prototype.
24275         * lib/xmemcoll.c (xmemcoll0): New function.
24276         (collate_error): New function, refactored for use in both xmemcoll
24277         and xmemcoll0.
24278         * lib/xmemcoll.h (xmemcoll0): Add prototype.
24279         * m4/memcoll.m4: add inline invocation.
24280
24281 2010-07-06  Pádraig Brady  <P@draigBrady.com>
24282
24283         * build-aux/bootstrap: Remove any local translations
24284         from the translation project synchronization directory,
24285         so that local only translations are not distributed.
24286
24287 2010-07-04  Bruno Haible  <bruno@clisp.org>
24288
24289         fsusage: Clarify which code applies to which platforms.
24290         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
24291         platform.
24292         * lib/fsusage.c (get_fs_usage): Likewise.
24293
24294 2010-07-04  Bruno Haible  <bruno@clisp.org>
24295
24296         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
24297         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
24298         Reported by Martin Lambers <marlam@marlam.de>.
24299
24300 2010-07-04  Jim Meyering  <meyering@redhat.com>
24301
24302         hash: once again explicitly disallow insertion of NULL
24303         * lib/hash.c (hash_insert0): Reinstate just-removed test:
24304         inserting a NULL pointer cannot work with these functions.
24305         Add a comment with details.
24306         This reverts part of the 2010-07-01 commit, 5bef1a35
24307         "hash: extend module to deal with non-pointer keys".
24308
24309 2010-07-01  Bruno Haible  <bruno@clisp.org>
24310
24311         stdbool: Update doc.
24312         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
24313         Info from Christian Weisgerber <naddy@mips.inka.de>.
24314
24315 2010-07-01  Jim Meyering  <meyering@redhat.com>
24316
24317         hash: extend module to deal with non-pointer keys
24318         * lib/hash.c (hash_insert0): New interface, much like hash_insert
24319         but that allows insertion of non-pointer entries.
24320         Do not disallow an ENTRY value of NULL.
24321         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
24322         * lib/hash.h (hash_insert0): Declare.
24323
24324 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24325
24326         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
24327         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
24328         not present (i.e. with autoconf 2.59 and when using gettextize, not
24329         gnulib), require AC_GNU_SOURCE instead.
24330
24331 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
24332
24333         idpriv-drop: Fix tests.
24334         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
24335         not to the test-idpriv-droptemp program.
24336
24337 2010-06-29  Bruno Haible  <bruno@clisp.org>
24338
24339         string: Fix syntax error with g++ 2.96.
24340         * lib/string.in.h (__pure__): Remove definition.
24341         (_GL_ATTRIBUTE_PURE): New macro.
24342         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
24343         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
24344         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24345
24346 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
24347
24348         unitypes: Fix bug introduced on 2010-05-18.
24349         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
24350
24351 2010-06-22  Eric Blake  <eblake@redhat.com>
24352
24353         memmem: slight optimization
24354         * lib/str-two-way.h (critical_factorization): Update comments.
24355         Reduce work during factorization phase.
24356         Reported by Carlos Bueno <carlos@bueno.org>.
24357
24358 2010-06-21  Bruno Haible  <bruno@clisp.org>
24359
24360         Fix HAVE_CALLOC_POSIX misnomer.
24361         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
24362         !HAVE_CALLOC_POSIX.
24363         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
24364         HAVE_CALLOC_POSIX.
24365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
24366         instead of HAVE_CALLOC_POSIX.
24367         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
24368         HAVE_CALLOC_POSIX.
24369
24370         Use modern idiom for calloc() replacement.
24371         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
24372         AC_FUNC_CALLOC.
24373         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
24374         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
24375         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24376         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
24377         (gl_REPLACE_CALLOC): New macro.
24378
24379 2010-06-21  Bruno Haible  <bruno@clisp.org>
24380
24381         Fix HAVE_REALLOC_POSIX misnomer.
24382         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
24383         !HAVE_REALLOC_POSIX.
24384         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
24385         HAVE_REALLOC_POSIX.
24386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
24387         instead of HAVE_REALLOC_POSIX.
24388         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
24389         HAVE_REALLOC_POSIX.
24390
24391         Use modern idiom for realloc() replacement.
24392         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
24393         AC_FUNC_REALLOC.
24394         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
24395         Autoconf's AC_FUNC_REALLOC.
24396         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24397         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
24398         (gl_REPLACE_REALLOC): New macro.
24399         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24400
24401 2010-06-21  Bruno Haible  <bruno@clisp.org>
24402
24403         Fix HAVE_MALLOC_POSIX misnomer.
24404         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
24405         !HAVE_MALLOC_POSIX.
24406         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
24407         HAVE_MALLOC_POSIX.
24408         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
24409         instead of HAVE_MALLOC_POSIX.
24410         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
24411         HAVE_MALLOC_POSIX.
24412
24413         Use modern idiom for malloc() replacement.
24414         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
24415         AC_FUNC_MALLOC.
24416         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
24417         Autoconf's AC_FUNC_MALLOC.
24418         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24419         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
24420         (gl_REPLACE_MALLOC): New macro.
24421         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24422
24423 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
24424
24425         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
24426         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
24427         This macro takes 3 arguments, not 4.
24428
24429 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
24430
24431         ipv6: fix detection under mingw
24432         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
24433         in6_addr.
24434
24435 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
24436
24437         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
24438         that strtod() works when cross-compiling to a glibc version known
24439         to work.
24440
24441 2010-06-15  Bruno Haible  <bruno@clisp.org>
24442
24443         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
24444
24445 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
24446
24447         select: Correct timeout.
24448         * lib/select.c (rpl_select): Compute wait_timeout correctly.
24449
24450 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24451
24452         git-version-gen: init shell var to avoid env var influence
24453         * build-aux/git-version-gen (v): Init shell var to empty.
24454
24455 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24456
24457         priv-set: Don't assume that priv.h exists merely because getppriv does.
24458         See Jan Andersen's bug report about AIX 5L in
24459         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
24460         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
24461         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
24462         * lib/priv-set.h: Likewise.
24463         * tests/test-priv-set.c: Likewise.
24464
24465 2010-06-13  Bruno Haible  <bruno@clisp.org>
24466
24467         relocatable: Make it easier to test whether to install wrappers.
24468         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
24469         RELOCATABLE_VIA_WRAPPER.
24470
24471 2010-06-13  Bruno Haible  <bruno@clisp.org>
24472
24473         gnulib-tool: Display specified modules and dependencies differently.
24474         * gnulib-tool (func_show_module_list): New function.
24475         (func_import, func_create_testdir): Invoke it.
24476         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24477
24478 2010-06-13  Bruno Haible  <bruno@clisp.org>
24479
24480         gnulib-tool: Align code of func_import and func_create_testdir.
24481         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
24482         specified_modules.
24483
24484 2010-06-12  Jim Meyering  <meyering@redhat.com>
24485
24486         test-inttostr: avoid spurious failure on Solaris 9
24487         * tests/test-inttostr.c (main): Skip the test when snprintf fails
24488         to accept "%ju".  Reported by Bruno Haible.
24489
24490 2010-06-11  Jim Meyering  <meyering@redhat.com>
24491
24492         test-sys_socket: mark variables as used more readably
24493         * tests/test-sys_socket.c (main): Mark otherwise unused variables
24494         as "used" explicitly via (void) statement casts.  This is more
24495         readable than using them in an artificial return expression.
24496         Suggestion from Bruno Haible.
24497
24498 2010-06-11  Bruno Haible  <bruno@clisp.org>
24499
24500         Avoid some more warnings from "gcc -Wwrite-strings".
24501         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
24502         to 'const char *'.
24503         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
24504         * tests/test-c-strcasestr.c (main): Likewise.
24505         * tests/test-mbscasestr1.c (main): Likewise.
24506         * tests/test-mbscasestr2.c (main): Likewise.
24507         * tests/test-memmem.c (main): Likewise.
24508         * tests/test-strstr.c (main): Likewise.
24509         * tests/test-strcasestr.c (main): Likewise.
24510
24511 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24512
24513         init.sh: change framework_failure_ to fail with status 99, not 1
24514         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
24515         automake's parallel-tests rule that this is an unexpected failure,
24516         even if the test is listed in XFAIL_TESTS.
24517
24518 2010-06-11  Jim Meyering  <meyering@redhat.com>
24519
24520         test-inttostr: avoid warnings about 4-6KB literal strings
24521         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
24522         Include "macros.h", for its definition of ASSERT.
24523         (CK): s/assert/ASSERT/
24524         * modules/inttostr-tests (Files): Add macros.h.
24525
24526         init.sh: don't use $ME_ or skip_ before they are defined
24527         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
24528         their first uses.  Also hoist their companions: warn_, fail_,
24529         framework_failure_, $stderr_fileno.  Prompted by a patch from
24530         Stefano Lattarini.
24531
24532         test-sys_socket: avoid set-but-not-used warnings from gcc
24533         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
24534         avoid warning about set-but-not-used variables.
24535
24536         test-xvasprintf: avoid 'const' discard warnings
24537         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
24538         "const" when assigning from literal strings.
24539         (test_xasprintf): Add "void" in function argument list to placate
24540         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
24541
24542         tests: avoid compilation warnings in argmatch and exclude tests...
24543         in packages that define ARGMATCH_DIE_DECL, like coreutils.
24544         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
24545         Since it always exits, declare with the "noreturn" attribute.
24546         * tests/test-argmatch.c: Likewise.
24547
24548         tests: avoid 'const' discard warnings in mbsstr tests
24549         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
24550         * tests/test-mbsstr2.c (main): Likewise.
24551
24552         test-verify: avoid warning from gcc's -Wmissing-declarations
24553         * tests/test-verify.c (function): Declare to be static.
24554
24555         test-inttostr.c: include <string.h> for use of strcmp
24556         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
24557
24558         test-linkat: avoid failed assertion on "other" architectures
24559         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
24560         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
24561         sparc: https://bugs.launchpad.net/bugs/591968
24562
24563 2010-06-11  Jim Meyering  <meyering@redhat.com>
24564
24565         printf.m4: avoid autoconf's "Expanded Before Required" warning
24566         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
24567         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
24568         autoconf warning.
24569
24570 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
24571
24572         Replacement header templates are now named with ".in", not "_".
24573         * doc/gnulib-intro.texi: Correct.
24574
24575 2010-06-10  Jim Meyering  <meyering@redhat.com>
24576
24577         inttostr-tests: depend on snprintf, not snprintf-posix
24578         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
24579         snprintf-posix, to avoid this aclocal failure:
24580           missing file gnulib-tests/vasnprintf.c
24581           configure.ac:45: error: expected source file, required through \
24582           AC_LIBSOURCES, not found
24583
24584 2010-06-10  Jim Meyering  <meyering@redhat.com>
24585
24586         inttostr: add a new function, inttostr, and tests
24587         The namesake function was not available.  The existence of the
24588         template file, inttostr.c makes its addition nontrivial.
24589         * lib/anytostr.c: Rename from inttostr.c.
24590         (anytostr): Rename from inttostr.
24591         * lib/inttostr.c: New file.
24592         * modules/inttostr (Files): Add anytostr.c.
24593         (Makefile.am): Set lib_SOURCES instead of ...
24594         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
24595         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
24596         * lib/offtostr.c: Likewise.
24597         * lib/uinttostr.c: Likewise.
24598         * lib/umaxtostr.c: Likewise.
24599         * modules/inttostr-tests: New file.
24600         * tests/test-inttostr.c: New file.  Test these functions.
24601
24602 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
24603             Bruno Haible  <bruno@clisp.org>
24604
24605         Add "Extending Gnulib" chapter to manual.
24606         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
24607         chapter.
24608         (Extending Gnulib): New chapter.
24609         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
24610         chapter.
24611
24612 2010-06-09  Bruno Haible  <bruno@clisp.org>
24613
24614         Avoid relocwrapper link errors due to gnulib replacement functions.
24615         * lib/areadlink.c: Use the system's malloc, realloc functions.
24616         (areadlink): Set errno to ENOMEM explicitly.
24617         * modules/areadlink (Depends-on): Remove malloc-posix.
24618         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24619
24620 2010-06-09  Bruno Haible  <bruno@clisp.org>
24621
24622         Avoid relocwrapper link errors due to gnulib replacement functions.
24623         * lib/canonicalize-lgpl.c: Use the system's malloc function.
24624         * lib/malloca.c: Likewise.
24625         * lib/relocatable.c: Likewise.
24626         * lib/progreloc.c: Use the system's malloc, sprintf functions.
24627         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
24628         * lib/setenv.c: Use the system's malloc, realloc functions.
24629         * lib/strerror.c: Use the system's sprintf function.
24630         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24631
24632 2010-06-04  Bruno Haible  <bruno@clisp.org>
24633
24634         Prefer documented low-level autoconf macro names.
24635         * m4/lib-link.m4: Use m4_translit instead of translit.
24636         * m4/environ.m4: Likewise.
24637         * m4/mathfunc.m4: Likewise.
24638         * m4/onceonly.m4: Likewise.
24639         * m4/stdint.m4: Likewise.
24640         Suggested by Eric Blake.
24641
24642 2010-06-04  Martin Lambers  <marlam@marlam.de>
24643             Bruno Haible  <bruno@clisp.org>
24644
24645         havelib: Allow library names with '+' characters.
24646         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24647         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
24648
24649 2010-06-09  Bruno Haible  <bruno@clisp.org>
24650
24651         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
24652         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
24653         realloc failed.
24654
24655 2010-06-08  Peter Simons  <simons@cryp.to>
24656
24657         maint.mk: make the news-check rule more configurable
24658         * top/maint.mk (news-check-lines-spec): New variable.
24659         (news-check): Use "sed -n 1,10p" in place of "head".
24660
24661 2010-06-07  Jim Meyering  <meyering@redhat.com>
24662
24663         do-release-commit-and-tag: fix typo in --help
24664         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
24665
24666         regex: avoid new dead-code warning with gcc-4.6.0
24667         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
24668         if-block containing a while-loop.  It's been unused for at least
24669         5 years.
24670
24671 2010-06-05  Bruno Haible  <bruno@clisp.org>
24672
24673         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
24674         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
24675
24676 2010-06-04  Bruno Haible  <bruno@clisp.org>
24677
24678         Update to GNU gettext 0.18.1.
24679         * modules/gettext (configure.ac): Require gettext infrastructure from
24680         version 0.18.1.
24681
24682 2010-06-03  Bruno Haible  <bruno@clisp.org>
24683
24684         Don't use AC_LIBOBJ with file names in subdirectories.
24685         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
24686         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
24687         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
24688         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
24689         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
24690         gl_LIBUNISTRING_LIBSOURCE.
24691         (Makefile.am): Augment lib_SOURCES here, conditionally.
24692         * NEWS: Drop requirement for Automake option 'subdir-objects'.
24693
24694 2010-06-03  Bruno Haible  <bruno@clisp.org>
24695
24696         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
24697         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
24698         expansion does not end with a newline.
24699         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
24700         unnecessary newline.
24701
24702 2010-06-03  Bruno Haible  <bruno@clisp.org>
24703
24704         Reduce dependencies.
24705         * tests/test-quotearg.h: New file, extracted from
24706         tests/test-quotearg.c.
24707         * tests/test-quotearg-simple.c: New file, extracted from
24708         tests/test-quotearg.c.
24709         * tests/test-quotearg.c: Don't include <ctype.h>.
24710         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
24711         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
24712         use_quote_double_quotes, use_quotearg_colon): Moved to
24713         tests/test-quotearg.h.
24714         (results_g, flag_results, custom_quotes, custom_results): Moved
24715         to tests/test-quotearg-simple.c.
24716         (main): Moved the part that does not depend on gettext to
24717         tests/test-quotearg-simple.c. Return 77 if the test cannot be
24718         performed.
24719         * modules/quotearg-simple: New file.
24720         * modules/quotearg-simple-tests: New file.
24721         * modules/quotearg (Depends-on): Add quotearg-simple.
24722         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
24723         (Files): Add tests/test-quotearg.h.
24724         Reported by Paolo Bonzini.
24725
24726 2010-06-03  Bruno Haible  <bruno@clisp.org>
24727
24728         Reduce dependencies.
24729         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
24730
24731 2010-06-03  Bruno Haible  <bruno@clisp.org>
24732
24733         time: Undefine more broken macros.
24734         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
24735         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
24736         Reported by Eric Blake.
24737
24738 2010-06-03  Bruno Haible  <bruno@clisp.org>
24739
24740         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
24741         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
24742         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
24743         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
24744         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
24745         Reported by Ludovic Courtès <ludo@gnu.org>.
24746
24747 2010-06-02  Eric Blake  <eblake@redhat.com>
24748
24749         time: work with mingw + pthreads-win32 library
24750         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
24751         if timespec is defined only in pthread.h.
24752         * modules/time (Makefile.am): Substitute it.
24753         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
24754         <pthread.h>, when needed.
24755         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
24756         from the library.
24757
24758 2010-05-31  Bruno Haible  <bruno@clisp.org>
24759
24760         Avoid expanding two macros in the wrong order.
24761         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
24762         gl_LIBUNISTRING if it is defined.
24763         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
24764         autoconf >= 2.64.
24765         Reported by Ludovic Courtès <ludo@gnu.org>.
24766
24767 2010-05-27  Jim Meyering  <meyering@redhat.com>
24768
24769         maint.mk: also prohibit "#undef" of always-defined symbols
24770         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
24771         Allow more than one space before the symbol name.
24772         (sc_prohibit_always-defined_macros): Use grep's -E, now that
24773         the regexp uses alternation.
24774
24775 2010-05-26  Eric Blake  <eblake@redhat.com>
24776
24777         maint.mk: avoid echo -e
24778         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
24779         Convert all uses of echo -* to printf.
24780         Reported by Matthias Bolte.
24781
24782 2010-05-25  Bruno Haible  <bruno@clisp.org>
24783
24784         Update to GNU gettext 0.18, part 2.
24785         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
24786         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
24787
24788 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24789
24790         Add missing include in test-pwrite.c.
24791         * tests/test-pwrite.c: Include string.h, for strcmp.
24792
24793 2010-05-24  Bruno Haible  <bruno@clisp.org>
24794
24795         * NEWS: Mention requirement for Automake option 'subdir-objects'.
24796
24797 2010-05-24  Bruno Haible  <bruno@clisp.org>
24798
24799         Don't use conversion with transliteration in u{8,16,32}_strcoll.
24800         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
24801         iconveh_error argument.
24802         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
24803         U_STRCONV_TO_LOCALE.
24804         * lib/unistr/u16-strcoll.c: Likewise.
24805         * lib/unistr/u32-strcoll.c: Likewise.
24806         * modules/unistr/u8-strcoll (Depends-on): Add
24807         uniconv/u8-strconv-to-enc, localcharset. Remove
24808         uniconv/u8-strconv-to-locale.
24809         (configure.ac): Bump version number.
24810         * modules/unistr/u16-strcoll (Depends-on): Add
24811         uniconv/u16-strconv-to-enc, localcharset. Remove
24812         uniconv/u16-strconv-to-locale.
24813         (configure.ac): Bump version number.
24814         * modules/unistr/u32-strcoll (Depends-on): Add
24815         uniconv/u32-strconv-to-enc, localcharset. Remove
24816         uniconv/u32-strconv-to-locale.
24817         (configure.ac): Bump version number.
24818
24819 2010-05-24  Bruno Haible  <bruno@clisp.org>
24820
24821         Avoid a test failure on NetBSD 5.0.
24822         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
24823         an iconv() bug.
24824
24825 2010-05-24  Bruno Haible  <bruno@clisp.org>
24826
24827         Adjust #include directive style.
24828         * modules/regex (Includes): Recommend to write <regex.h>.
24829
24830 2010-05-24  Bruno Haible  <bruno@clisp.org>
24831
24832         regex: Don't require alloca.
24833         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
24834         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
24835         only inside if (0).
24836
24837 2010-05-23  Jim Meyering  <meyering@redhat.com>
24838
24839         test-renameat.c: include <sys/stat.h>
24840         * tests/test-renameat.c: Include <sys/stat.h>; required for
24841         definition of S_IS* macros.
24842
24843 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
24844
24845         Update maintainer documentation for 'relocatable-prog' module.
24846         * doc/relocatable-maint.texi: Update.
24847         Comments by Bruno Haible.
24848
24849 2010-05-23  Bruno Haible  <bruno@clisp.org>
24850
24851         git-merge-changelog: Enable --split-merged-entry by default.
24852         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
24853         (usage): Don't mention this option any more.
24854         Reported by Ralf Wildenhues.
24855
24856 2010-05-23  Jim Meyering  <meyering@redhat.com>
24857
24858         test-pwrite: do not leave behind a test file named "out"
24859         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
24860         The trivial-looking use of init.sh is really necessary.
24861         It ensures that the temporary file, "out", is created in
24862         a temporary directory, and removed upon termination.
24863         * tests/test-pwrite.sh: Re-add file.
24864         * modules/pwrite-tests: Reference it.
24865
24866 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24867
24868         Fix output redirection buglet in init.sh.
24869         * tests/init.sh: Fix redirection of stderr.
24870
24871 2010-05-20  Simon Josefsson  <simon@josefsson.org>
24872
24873         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
24874
24875 2010-05-17  Simon Josefsson  <simon@josefsson.org>
24876
24877         * modules/valgrind-tests: New file.
24878         * m4/valgrind-tests.m4: New file.
24879         * doc/valgrind-tests.texi: New file.
24880         * doc/gnulib.texi (Running self-tests under valgrind): New
24881         section.
24882
24883 2010-05-19  Bruno Haible  <bruno@clisp.org>
24884
24885         Clean up dead code in recent commit.
24886         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
24887         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
24888         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
24889         Suggested by Paolo Bonzini.
24890
24891 2010-05-19  Bruno Haible  <bruno@clisp.org>
24892
24893         Avoid valgrind error reports from libunistring.
24894         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
24895         * modules/libunistring (Files): Add it.
24896         * modules/libunistring-optional (Files): Likewise.
24897
24898 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
24899             Bruno Haible  <bruno@clisp.org>
24900
24901         New module 'libunistring-optional'.
24902         * modules/libunistring-optional: New file.
24903         * m4/libunistring-base.m4: New file.
24904         * m4/libunistring-optional.m4: New file.
24905         * lib/unicase.in.h: Renamed from lib/unicase.h.
24906         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
24907         * lib/unictype.in.h: Renamed from lib/unictype.h.
24908         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
24909         * lib/uniname.in.h: Renamed from lib/uniname.h.
24910         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
24911         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
24912         * lib/unistr.in.h: Renamed from lib/unistr.h.
24913         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
24914         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
24915         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
24916         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
24917         gl_LIBUNISTRING. If the library was found, determine the installed
24918         version and set LIBUNISTRING_VERSION.
24919         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
24920         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
24921         handle a configuration option --with-included-libunistring.
24922         * modules/libunistring (Files): Add m4/absolute-header.m4.
24923         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
24924         Add m4/libunistring-base.m4.
24925         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24926         (Makefile.am): Build unicase.h from unicase.in.h.
24927         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
24928         Add m4/libunistring-base.m4.
24929         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24930         (Makefile.am): Build uniconv.h from uniconv.in.h.
24931         * modules/unictype/base (Files): Use unictype.in.h instead of
24932         unictype.h. Add m4/libunistring-base.m4.
24933         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24934         (Makefile.am): Build unictype.h from unictype.in.h.
24935         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
24936         Add m4/libunistring-base.m4.
24937         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24938         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
24939         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
24940         Add m4/libunistring-base.m4.
24941         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24942         (Makefile.am): Build uniname.h from uniname.in.h.
24943         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
24944         Add m4/libunistring-base.m4.
24945         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24946         (Makefile.am): Build uninorm.h from uninorm.in.h.
24947         * modules/unistdio/base (Files): Use unistdio.in.h instead of
24948         unistdio.h. Add m4/libunistring-base.m4.
24949         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24950         (Makefile.am): Build unistdio.h from unistdio.in.h.
24951         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
24952         Add m4/libunistring-base.m4.
24953         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24954         (Makefile.am): Build unistr.h from unistr.in.h.
24955         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
24956         Add m4/libunistring-base.m4.
24957         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24958         (Makefile.am): Build unitypes.h from unitypes.in.h.
24959         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
24960         Add m4/libunistring-base.m4.
24961         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24962         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
24963         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
24964         uniwidth.h. Add m4/libunistring-base.m4.
24965         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24966         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
24967         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
24968         instead of augmenting lib_SOURCES.
24969         * modules/unicase/empty-suffix-context: Likewise.
24970         * modules/unicase/locale-language: Likewise.
24971         * modules/unicase/tolower: Likewise.
24972         * modules/unicase/totitle: Likewise.
24973         * modules/unicase/toupper: Likewise.
24974         * modules/unicase/u8-casecmp: Likewise.
24975         * modules/unicase/u8-casecoll: Likewise.
24976         * modules/unicase/u8-casefold: Likewise.
24977         * modules/unicase/u8-casexfrm: Likewise.
24978         * modules/unicase/u8-ct-casefold: Likewise.
24979         * modules/unicase/u8-ct-tolower: Likewise.
24980         * modules/unicase/u8-ct-totitle: Likewise.
24981         * modules/unicase/u8-ct-toupper: Likewise.
24982         * modules/unicase/u8-is-cased: Likewise.
24983         * modules/unicase/u8-is-casefolded: Likewise.
24984         * modules/unicase/u8-is-lowercase: Likewise.
24985         * modules/unicase/u8-is-titlecase: Likewise.
24986         * modules/unicase/u8-is-uppercase: Likewise.
24987         * modules/unicase/u8-prefix-context: Likewise.
24988         * modules/unicase/u8-suffix-context: Likewise.
24989         * modules/unicase/u8-tolower: Likewise.
24990         * modules/unicase/u8-totitle: Likewise.
24991         * modules/unicase/u8-toupper: Likewise.
24992         * modules/unicase/u16-casecmp: Likewise.
24993         * modules/unicase/u16-casecoll: Likewise.
24994         * modules/unicase/u16-casefold: Likewise.
24995         * modules/unicase/u16-casexfrm: Likewise.
24996         * modules/unicase/u16-ct-casefold: Likewise.
24997         * modules/unicase/u16-ct-tolower: Likewise.
24998         * modules/unicase/u16-ct-totitle: Likewise.
24999         * modules/unicase/u16-ct-toupper: Likewise.
25000         * modules/unicase/u16-is-cased: Likewise.
25001         * modules/unicase/u16-is-casefolded: Likewise.
25002         * modules/unicase/u16-is-lowercase: Likewise.
25003         * modules/unicase/u16-is-titlecase: Likewise.
25004         * modules/unicase/u16-is-uppercase: Likewise.
25005         * modules/unicase/u16-prefix-context: Likewise.
25006         * modules/unicase/u16-suffix-context: Likewise.
25007         * modules/unicase/u16-tolower: Likewise.
25008         * modules/unicase/u16-totitle: Likewise.
25009         * modules/unicase/u16-toupper: Likewise.
25010         * modules/unicase/u32-casecmp: Likewise.
25011         * modules/unicase/u32-casecoll: Likewise.
25012         * modules/unicase/u32-casefold: Likewise.
25013         * modules/unicase/u32-casexfrm: Likewise.
25014         * modules/unicase/u32-ct-casefold: Likewise.
25015         * modules/unicase/u32-ct-tolower: Likewise.
25016         * modules/unicase/u32-ct-totitle: Likewise.
25017         * modules/unicase/u32-ct-toupper: Likewise.
25018         * modules/unicase/u32-is-cased: Likewise.
25019         * modules/unicase/u32-is-casefolded: Likewise.
25020         * modules/unicase/u32-is-lowercase: Likewise.
25021         * modules/unicase/u32-is-titlecase: Likewise.
25022         * modules/unicase/u32-is-uppercase: Likewise.
25023         * modules/unicase/u32-prefix-context: Likewise.
25024         * modules/unicase/u32-suffix-context: Likewise.
25025         * modules/unicase/u32-tolower: Likewise.
25026         * modules/unicase/u32-totitle: Likewise.
25027         * modules/unicase/u32-toupper: Likewise.
25028         * modules/unicase/ulc-casecmp: Likewise.
25029         * modules/unicase/ulc-casecoll: Likewise.
25030         * modules/unicase/ulc-casexfrm: Likewise.
25031         * modules/uniconv/u8-conv-from-enc: Likewise.
25032         * modules/uniconv/u8-conv-to-enc: Likewise.
25033         * modules/uniconv/u8-strconv-from-enc: Likewise.
25034         * modules/uniconv/u8-strconv-from-locale: Likewise.
25035         * modules/uniconv/u8-strconv-to-enc: Likewise.
25036         * modules/uniconv/u8-strconv-to-locale: Likewise.
25037         * modules/uniconv/u16-conv-from-enc: Likewise.
25038         * modules/uniconv/u16-conv-to-enc: Likewise.
25039         * modules/uniconv/u16-strconv-from-enc: Likewise.
25040         * modules/uniconv/u16-strconv-from-locale: Likewise.
25041         * modules/uniconv/u16-strconv-to-enc: Likewise.
25042         * modules/uniconv/u16-strconv-to-locale: Likewise.
25043         * modules/uniconv/u32-conv-from-enc: Likewise.
25044         * modules/uniconv/u32-conv-to-enc: Likewise.
25045         * modules/uniconv/u32-strconv-from-enc: Likewise.
25046         * modules/uniconv/u32-strconv-from-locale: Likewise.
25047         * modules/uniconv/u32-strconv-to-enc: Likewise.
25048         * modules/uniconv/u32-strconv-to-locale: Likewise.
25049         * modules/unictype/bidicategory-byname: Likewise.
25050         * modules/unictype/bidicategory-name: Likewise.
25051         * modules/unictype/bidicategory-of: Likewise.
25052         * modules/unictype/bidicategory-test: Likewise.
25053         * modules/unictype/block-list: Likewise.
25054         * modules/unictype/block-test: Likewise.
25055         * modules/unictype/category-C: Likewise.
25056         * modules/unictype/category-Cc: Likewise.
25057         * modules/unictype/category-Cf: Likewise.
25058         * modules/unictype/category-Cn: Likewise.
25059         * modules/unictype/category-Co: Likewise.
25060         * modules/unictype/category-Cs: Likewise.
25061         * modules/unictype/category-L: Likewise.
25062         * modules/unictype/category-Ll: Likewise.
25063         * modules/unictype/category-Lm: Likewise.
25064         * modules/unictype/category-Lo: Likewise.
25065         * modules/unictype/category-Lt: Likewise.
25066         * modules/unictype/category-Lu: Likewise.
25067         * modules/unictype/category-M: Likewise.
25068         * modules/unictype/category-Mc: Likewise.
25069         * modules/unictype/category-Me: Likewise.
25070         * modules/unictype/category-Mn: Likewise.
25071         * modules/unictype/category-N: Likewise.
25072         * modules/unictype/category-Nd: Likewise.
25073         * modules/unictype/category-Nl: Likewise.
25074         * modules/unictype/category-No: Likewise.
25075         * modules/unictype/category-P: Likewise.
25076         * modules/unictype/category-Pc: Likewise.
25077         * modules/unictype/category-Pd: Likewise.
25078         * modules/unictype/category-Pe: Likewise.
25079         * modules/unictype/category-Pf: Likewise.
25080         * modules/unictype/category-Pi: Likewise.
25081         * modules/unictype/category-Po: Likewise.
25082         * modules/unictype/category-Ps: Likewise.
25083         * modules/unictype/category-S: Likewise.
25084         * modules/unictype/category-Sc: Likewise.
25085         * modules/unictype/category-Sk: Likewise.
25086         * modules/unictype/category-Sm: Likewise.
25087         * modules/unictype/category-So: Likewise.
25088         * modules/unictype/category-Z: Likewise.
25089         * modules/unictype/category-Zl: Likewise.
25090         * modules/unictype/category-Zp: Likewise.
25091         * modules/unictype/category-Zs: Likewise.
25092         * modules/unictype/category-and: Likewise.
25093         * modules/unictype/category-and-not: Likewise.
25094         * modules/unictype/category-byname: Likewise.
25095         * modules/unictype/category-name: Likewise.
25096         * modules/unictype/category-none: Likewise.
25097         * modules/unictype/category-of: Likewise.
25098         * modules/unictype/category-or: Likewise.
25099         * modules/unictype/category-test: Likewise.
25100         * modules/unictype/combining-class: Likewise.
25101         * modules/unictype/ctype-alnum: Likewise.
25102         * modules/unictype/ctype-alpha: Likewise.
25103         * modules/unictype/ctype-blank: Likewise.
25104         * modules/unictype/ctype-cntrl: Likewise.
25105         * modules/unictype/ctype-digit: Likewise.
25106         * modules/unictype/ctype-graph: Likewise.
25107         * modules/unictype/ctype-lower: Likewise.
25108         * modules/unictype/ctype-print: Likewise.
25109         * modules/unictype/ctype-punct: Likewise.
25110         * modules/unictype/ctype-space: Likewise.
25111         * modules/unictype/ctype-upper: Likewise.
25112         * modules/unictype/ctype-xdigit: Likewise.
25113         * modules/unictype/decimal-digit: Likewise.
25114         * modules/unictype/digit: Likewise.
25115         * modules/unictype/mirror: Likewise.
25116         * modules/unictype/numeric: Likewise.
25117         * modules/unictype/property-alphabetic: Likewise.
25118         * modules/unictype/property-ascii-hex-digit: Likewise.
25119         * modules/unictype/property-bidi-arabic-digit: Likewise.
25120         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
25121         * modules/unictype/property-bidi-block-separator: Likewise.
25122         * modules/unictype/property-bidi-boundary-neutral: Likewise.
25123         * modules/unictype/property-bidi-common-separator: Likewise.
25124         * modules/unictype/property-bidi-control: Likewise.
25125         * modules/unictype/property-bidi-embedding-or-override: Likewise.
25126         * modules/unictype/property-bidi-eur-num-separator: Likewise.
25127         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
25128         * modules/unictype/property-bidi-european-digit: Likewise.
25129         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
25130         * modules/unictype/property-bidi-left-to-right: Likewise.
25131         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
25132         * modules/unictype/property-bidi-other-neutral: Likewise.
25133         * modules/unictype/property-bidi-pdf: Likewise.
25134         * modules/unictype/property-bidi-segment-separator: Likewise.
25135         * modules/unictype/property-bidi-whitespace: Likewise.
25136         * modules/unictype/property-byname: Likewise.
25137         * modules/unictype/property-combining: Likewise.
25138         * modules/unictype/property-composite: Likewise.
25139         * modules/unictype/property-currency-symbol: Likewise.
25140         * modules/unictype/property-dash: Likewise.
25141         * modules/unictype/property-decimal-digit: Likewise.
25142         * modules/unictype/property-default-ignorable-code-point: Likewise.
25143         * modules/unictype/property-deprecated: Likewise.
25144         * modules/unictype/property-diacritic: Likewise.
25145         * modules/unictype/property-extender: Likewise.
25146         * modules/unictype/property-format-control: Likewise.
25147         * modules/unictype/property-grapheme-base: Likewise.
25148         * modules/unictype/property-grapheme-extend: Likewise.
25149         * modules/unictype/property-grapheme-link: Likewise.
25150         * modules/unictype/property-hex-digit: Likewise.
25151         * modules/unictype/property-hyphen: Likewise.
25152         * modules/unictype/property-id-continue: Likewise.
25153         * modules/unictype/property-id-start: Likewise.
25154         * modules/unictype/property-ideographic: Likewise.
25155         * modules/unictype/property-ids-binary-operator: Likewise.
25156         * modules/unictype/property-ids-trinary-operator: Likewise.
25157         * modules/unictype/property-ignorable-control: Likewise.
25158         * modules/unictype/property-iso-control: Likewise.
25159         * modules/unictype/property-join-control: Likewise.
25160         * modules/unictype/property-left-of-pair: Likewise.
25161         * modules/unictype/property-line-separator: Likewise.
25162         * modules/unictype/property-logical-order-exception: Likewise.
25163         * modules/unictype/property-lowercase: Likewise.
25164         * modules/unictype/property-math: Likewise.
25165         * modules/unictype/property-non-break: Likewise.
25166         * modules/unictype/property-not-a-character: Likewise.
25167         * modules/unictype/property-numeric: Likewise.
25168         * modules/unictype/property-other-alphabetic: Likewise.
25169         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
25170         * modules/unictype/property-other-grapheme-extend: Likewise.
25171         * modules/unictype/property-other-id-continue: Likewise.
25172         * modules/unictype/property-other-id-start: Likewise.
25173         * modules/unictype/property-other-lowercase: Likewise.
25174         * modules/unictype/property-other-math: Likewise.
25175         * modules/unictype/property-other-uppercase: Likewise.
25176         * modules/unictype/property-paired-punctuation: Likewise.
25177         * modules/unictype/property-paragraph-separator: Likewise.
25178         * modules/unictype/property-pattern-syntax: Likewise.
25179         * modules/unictype/property-pattern-white-space: Likewise.
25180         * modules/unictype/property-private-use: Likewise.
25181         * modules/unictype/property-punctuation: Likewise.
25182         * modules/unictype/property-quotation-mark: Likewise.
25183         * modules/unictype/property-radical: Likewise.
25184         * modules/unictype/property-sentence-terminal: Likewise.
25185         * modules/unictype/property-soft-dotted: Likewise.
25186         * modules/unictype/property-space: Likewise.
25187         * modules/unictype/property-terminal-punctuation: Likewise.
25188         * modules/unictype/property-test: Likewise.
25189         * modules/unictype/property-titlecase: Likewise.
25190         * modules/unictype/property-unassigned-code-value: Likewise.
25191         * modules/unictype/property-unified-ideograph: Likewise.
25192         * modules/unictype/property-uppercase: Likewise.
25193         * modules/unictype/property-variation-selector: Likewise.
25194         * modules/unictype/property-white-space: Likewise.
25195         * modules/unictype/property-xid-continue: Likewise.
25196         * modules/unictype/property-xid-start: Likewise.
25197         * modules/unictype/property-zero-width: Likewise.
25198         * modules/unictype/scripts: Likewise.
25199         * modules/unictype/syntax-c-ident: Likewise.
25200         * modules/unictype/syntax-c-whitespace: Likewise.
25201         * modules/unictype/syntax-java-ident: Likewise.
25202         * modules/unictype/syntax-java-whitespace: Likewise.
25203         * modules/unilbrk/u8-possible-linebreaks: Likewise.
25204         * modules/unilbrk/u8-width-linebreaks: Likewise.
25205         * modules/unilbrk/u16-possible-linebreaks: Likewise.
25206         * modules/unilbrk/u16-width-linebreaks: Likewise.
25207         * modules/unilbrk/u32-possible-linebreaks: Likewise.
25208         * modules/unilbrk/u32-width-linebreaks: Likewise.
25209         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
25210         * modules/unilbrk/ulc-width-linebreaks: Likewise.
25211         * modules/uniname/uniname: Likewise.
25212         * modules/uninorm/canonical-decomposition: Likewise.
25213         * modules/uninorm/composition: Likewise.
25214         * modules/uninorm/decomposing-form: Likewise.
25215         * modules/uninorm/decomposition: Likewise.
25216         * modules/uninorm/filter: Likewise.
25217         * modules/uninorm/nfc: Likewise.
25218         * modules/uninorm/nfd: Likewise.
25219         * modules/uninorm/nfkc: Likewise.
25220         * modules/uninorm/nfkd: Likewise.
25221         * modules/uninorm/u8-normalize: Likewise.
25222         * modules/uninorm/u8-normcmp: Likewise.
25223         * modules/uninorm/u8-normcoll: Likewise.
25224         * modules/uninorm/u8-normxfrm: Likewise.
25225         * modules/uninorm/u16-normalize: Likewise.
25226         * modules/uninorm/u16-normcmp: Likewise.
25227         * modules/uninorm/u16-normcoll: Likewise.
25228         * modules/uninorm/u16-normxfrm: Likewise.
25229         * modules/uninorm/u32-normalize: Likewise.
25230         * modules/uninorm/u32-normcmp: Likewise.
25231         * modules/uninorm/u32-normcoll: Likewise.
25232         * modules/uninorm/u32-normxfrm: Likewise.
25233         * modules/unistdio/u8-asnprintf: Likewise.
25234         * modules/unistdio/u8-asprintf: Likewise.
25235         * modules/unistdio/u8-snprintf: Likewise.
25236         * modules/unistdio/u8-sprintf: Likewise.
25237         * modules/unistdio/u8-u8-asnprintf: Likewise.
25238         * modules/unistdio/u8-u8-asprintf: Likewise.
25239         * modules/unistdio/u8-u8-snprintf: Likewise.
25240         * modules/unistdio/u8-u8-sprintf: Likewise.
25241         * modules/unistdio/u8-u8-vasnprintf: Likewise.
25242         * modules/unistdio/u8-u8-vasprintf: Likewise.
25243         * modules/unistdio/u8-u8-vsnprintf: Likewise.
25244         * modules/unistdio/u8-u8-vsprintf: Likewise.
25245         * modules/unistdio/u8-vasnprintf: Likewise.
25246         * modules/unistdio/u8-vasprintf: Likewise.
25247         * modules/unistdio/u8-vsnprintf: Likewise.
25248         * modules/unistdio/u8-vsprintf: Likewise.
25249         * modules/unistdio/u16-asnprintf: Likewise.
25250         * modules/unistdio/u16-asprintf: Likewise.
25251         * modules/unistdio/u16-snprintf: Likewise.
25252         * modules/unistdio/u16-sprintf: Likewise.
25253         * modules/unistdio/u16-u16-asnprintf: Likewise.
25254         * modules/unistdio/u16-u16-asprintf: Likewise.
25255         * modules/unistdio/u16-u16-snprintf: Likewise.
25256         * modules/unistdio/u16-u16-sprintf: Likewise.
25257         * modules/unistdio/u16-u16-vasnprintf: Likewise.
25258         * modules/unistdio/u16-u16-vasprintf: Likewise.
25259         * modules/unistdio/u16-u16-vsnprintf: Likewise.
25260         * modules/unistdio/u16-u16-vsprintf: Likewise.
25261         * modules/unistdio/u16-vasnprintf: Likewise.
25262         * modules/unistdio/u16-vasprintf: Likewise.
25263         * modules/unistdio/u16-vsnprintf: Likewise.
25264         * modules/unistdio/u16-vsprintf: Likewise.
25265         * modules/unistdio/u32-asnprintf: Likewise.
25266         * modules/unistdio/u32-asprintf: Likewise.
25267         * modules/unistdio/u32-snprintf: Likewise.
25268         * modules/unistdio/u32-sprintf: Likewise.
25269         * modules/unistdio/u32-u32-asnprintf: Likewise.
25270         * modules/unistdio/u32-u32-asprintf: Likewise.
25271         * modules/unistdio/u32-u32-snprintf: Likewise.
25272         * modules/unistdio/u32-u32-sprintf: Likewise.
25273         * modules/unistdio/u32-u32-vasnprintf: Likewise.
25274         * modules/unistdio/u32-u32-vasprintf: Likewise.
25275         * modules/unistdio/u32-u32-vsnprintf: Likewise.
25276         * modules/unistdio/u32-u32-vsprintf: Likewise.
25277         * modules/unistdio/u32-vasnprintf: Likewise.
25278         * modules/unistdio/u32-vasprintf: Likewise.
25279         * modules/unistdio/u32-vsnprintf: Likewise.
25280         * modules/unistdio/u32-vsprintf: Likewise.
25281         * modules/unistdio/ulc-asnprintf: Likewise.
25282         * modules/unistdio/ulc-asprintf: Likewise.
25283         * modules/unistdio/ulc-fprintf: Likewise.
25284         * modules/unistdio/ulc-snprintf: Likewise.
25285         * modules/unistdio/ulc-sprintf: Likewise.
25286         * modules/unistdio/ulc-vasnprintf: Likewise.
25287         * modules/unistdio/ulc-vasprintf: Likewise.
25288         * modules/unistdio/ulc-vfprintf: Likewise.
25289         * modules/unistdio/ulc-vsnprintf: Likewise.
25290         * modules/unistdio/ulc-vsprintf: Likewise.
25291         * modules/unistr/u8-check: Likewise.
25292         * modules/unistr/u8-chr: Likewise.
25293         * modules/unistr/u8-cmp: Likewise.
25294         * modules/unistr/u8-cmp2: Likewise.
25295         * modules/unistr/u8-cpy: Likewise.
25296         * modules/unistr/u8-cpy-alloc: Likewise.
25297         * modules/unistr/u8-endswith: Likewise.
25298         * modules/unistr/u8-mblen: Likewise.
25299         * modules/unistr/u8-mbsnlen: Likewise.
25300         * modules/unistr/u8-mbtouc: Likewise.
25301         * modules/unistr/u8-mbtouc-unsafe: Likewise.
25302         * modules/unistr/u8-mbtoucr: Likewise.
25303         * modules/unistr/u8-move: Likewise.
25304         * modules/unistr/u8-next: Likewise.
25305         * modules/unistr/u8-prev: Likewise.
25306         * modules/unistr/u8-set: Likewise.
25307         * modules/unistr/u8-startswith: Likewise.
25308         * modules/unistr/u8-stpcpy: Likewise.
25309         * modules/unistr/u8-stpncpy: Likewise.
25310         * modules/unistr/u8-strcat: Likewise.
25311         * modules/unistr/u8-strchr: Likewise.
25312         * modules/unistr/u8-strcmp: Likewise.
25313         * modules/unistr/u8-strcoll: Likewise.
25314         * modules/unistr/u8-strcpy: Likewise.
25315         * modules/unistr/u8-strcspn: Likewise.
25316         * modules/unistr/u8-strdup: Likewise.
25317         * modules/unistr/u8-strlen: Likewise.
25318         * modules/unistr/u8-strmblen: Likewise.
25319         * modules/unistr/u8-strmbtouc: Likewise.
25320         * modules/unistr/u8-strncat: Likewise.
25321         * modules/unistr/u8-strncmp: Likewise.
25322         * modules/unistr/u8-strncpy: Likewise.
25323         * modules/unistr/u8-strnlen: Likewise.
25324         * modules/unistr/u8-strpbrk: Likewise.
25325         * modules/unistr/u8-strrchr: Likewise.
25326         * modules/unistr/u8-strspn: Likewise.
25327         * modules/unistr/u8-strstr: Likewise.
25328         * modules/unistr/u8-strtok: Likewise.
25329         * modules/unistr/u8-to-u16: Likewise.
25330         * modules/unistr/u8-to-u32: Likewise.
25331         * modules/unistr/u8-uctomb: Likewise.
25332         * modules/unistr/u16-check: Likewise.
25333         * modules/unistr/u16-chr: Likewise.
25334         * modules/unistr/u16-cmp: Likewise.
25335         * modules/unistr/u16-cmp2: Likewise.
25336         * modules/unistr/u16-cpy: Likewise.
25337         * modules/unistr/u16-cpy-alloc: Likewise.
25338         * modules/unistr/u16-endswith: Likewise.
25339         * modules/unistr/u16-mblen: Likewise.
25340         * modules/unistr/u16-mbsnlen: Likewise.
25341         * modules/unistr/u16-mbtouc: Likewise.
25342         * modules/unistr/u16-mbtouc-unsafe: Likewise.
25343         * modules/unistr/u16-mbtoucr: Likewise.
25344         * modules/unistr/u16-move: Likewise.
25345         * modules/unistr/u16-next: Likewise.
25346         * modules/unistr/u16-prev: Likewise.
25347         * modules/unistr/u16-set: Likewise.
25348         * modules/unistr/u16-startswith: Likewise.
25349         * modules/unistr/u16-stpcpy: Likewise.
25350         * modules/unistr/u16-stpncpy: Likewise.
25351         * modules/unistr/u16-strcat: Likewise.
25352         * modules/unistr/u16-strchr: Likewise.
25353         * modules/unistr/u16-strcmp: Likewise.
25354         * modules/unistr/u16-strcoll: Likewise.
25355         * modules/unistr/u16-strcpy: Likewise.
25356         * modules/unistr/u16-strcspn: Likewise.
25357         * modules/unistr/u16-strdup: Likewise.
25358         * modules/unistr/u16-strlen: Likewise.
25359         * modules/unistr/u16-strmblen: Likewise.
25360         * modules/unistr/u16-strmbtouc: Likewise.
25361         * modules/unistr/u16-strncat: Likewise.
25362         * modules/unistr/u16-strncmp: Likewise.
25363         * modules/unistr/u16-strncpy: Likewise.
25364         * modules/unistr/u16-strnlen: Likewise.
25365         * modules/unistr/u16-strpbrk: Likewise.
25366         * modules/unistr/u16-strrchr: Likewise.
25367         * modules/unistr/u16-strspn: Likewise.
25368         * modules/unistr/u16-strstr: Likewise.
25369         * modules/unistr/u16-strtok: Likewise.
25370         * modules/unistr/u16-to-u32: Likewise.
25371         * modules/unistr/u16-to-u8: Likewise.
25372         * modules/unistr/u16-uctomb: Likewise.
25373         * modules/unistr/u32-check: Likewise.
25374         * modules/unistr/u32-chr: Likewise.
25375         * modules/unistr/u32-cmp: Likewise.
25376         * modules/unistr/u32-cmp2: Likewise.
25377         * modules/unistr/u32-cpy: Likewise.
25378         * modules/unistr/u32-cpy-alloc: Likewise.
25379         * modules/unistr/u32-endswith: Likewise.
25380         * modules/unistr/u32-mblen: Likewise.
25381         * modules/unistr/u32-mbsnlen: Likewise.
25382         * modules/unistr/u32-mbtouc: Likewise.
25383         * modules/unistr/u32-mbtouc-unsafe: Likewise.
25384         * modules/unistr/u32-mbtoucr: Likewise.
25385         * modules/unistr/u32-move: Likewise.
25386         * modules/unistr/u32-next: Likewise.
25387         * modules/unistr/u32-prev: Likewise.
25388         * modules/unistr/u32-set: Likewise.
25389         * modules/unistr/u32-startswith: Likewise.
25390         * modules/unistr/u32-stpcpy: Likewise.
25391         * modules/unistr/u32-stpncpy: Likewise.
25392         * modules/unistr/u32-strcat: Likewise.
25393         * modules/unistr/u32-strchr: Likewise.
25394         * modules/unistr/u32-strcmp: Likewise.
25395         * modules/unistr/u32-strcoll: Likewise.
25396         * modules/unistr/u32-strcpy: Likewise.
25397         * modules/unistr/u32-strcspn: Likewise.
25398         * modules/unistr/u32-strdup: Likewise.
25399         * modules/unistr/u32-strlen: Likewise.
25400         * modules/unistr/u32-strmblen: Likewise.
25401         * modules/unistr/u32-strmbtouc: Likewise.
25402         * modules/unistr/u32-strncat: Likewise.
25403         * modules/unistr/u32-strncmp: Likewise.
25404         * modules/unistr/u32-strncpy: Likewise.
25405         * modules/unistr/u32-strnlen: Likewise.
25406         * modules/unistr/u32-strpbrk: Likewise.
25407         * modules/unistr/u32-strrchr: Likewise.
25408         * modules/unistr/u32-strspn: Likewise.
25409         * modules/unistr/u32-strstr: Likewise.
25410         * modules/unistr/u32-strtok: Likewise.
25411         * modules/unistr/u32-to-u16: Likewise.
25412         * modules/unistr/u32-to-u8: Likewise.
25413         * modules/unistr/u32-uctomb: Likewise.
25414         * modules/uniwbrk/u8-wordbreaks: Likewise.
25415         * modules/uniwbrk/u16-wordbreaks: Likewise.
25416         * modules/uniwbrk/u32-wordbreaks: Likewise.
25417         * modules/uniwbrk/ulc-wordbreaks: Likewise.
25418         * modules/uniwbrk/wordbreak-property: Likewise.
25419         * modules/uniwidth/u8-strwidth: Likewise.
25420         * modules/uniwidth/u8-width: Likewise.
25421         * modules/uniwidth/u16-strwidth: Likewise.
25422         * modules/uniwidth/u16-width: Likewise.
25423         * modules/uniwidth/u32-strwidth: Likewise.
25424         * modules/uniwidth/u32-width: Likewise.
25425         * modules/uniwidth/width: Likewise.
25426         * modules/unicase/cased-tests (Makefile.am): Link all test programs
25427         with $(LIBUNISTRING).
25428         * modules/unicase/ignorable-tests: Likewise.
25429         * modules/unicase/locale-language-tests: Likewise.
25430         * modules/unicase/tolower-tests: Likewise.
25431         * modules/unicase/totitle-tests: Likewise.
25432         * modules/unicase/toupper-tests: Likewise.
25433         * modules/unicase/u8-casecmp-tests: Likewise.
25434         * modules/unicase/u8-casecoll-tests: Likewise.
25435         * modules/unicase/u8-casefold-tests: Likewise.
25436         * modules/unicase/u8-is-cased-tests: Likewise.
25437         * modules/unicase/u8-is-casefolded-tests: Likewise.
25438         * modules/unicase/u8-is-lowercase-tests: Likewise.
25439         * modules/unicase/u8-is-titlecase-tests: Likewise.
25440         * modules/unicase/u8-is-uppercase-tests: Likewise.
25441         * modules/unicase/u8-tolower-tests: Likewise.
25442         * modules/unicase/u8-totitle-tests: Likewise.
25443         * modules/unicase/u8-toupper-tests: Likewise.
25444         * modules/unicase/u16-casecmp-tests: Likewise.
25445         * modules/unicase/u16-casecoll-tests: Likewise.
25446         * modules/unicase/u16-casefold-tests: Likewise.
25447         * modules/unicase/u16-is-cased-tests: Likewise.
25448         * modules/unicase/u16-is-casefolded-tests: Likewise.
25449         * modules/unicase/u16-is-lowercase-tests: Likewise.
25450         * modules/unicase/u16-is-titlecase-tests: Likewise.
25451         * modules/unicase/u16-is-uppercase-tests: Likewise.
25452         * modules/unicase/u16-tolower-tests: Likewise.
25453         * modules/unicase/u16-totitle-tests: Likewise.
25454         * modules/unicase/u16-toupper-tests: Likewise.
25455         * modules/unicase/u32-casecmp-tests: Likewise.
25456         * modules/unicase/u32-casecoll-tests: Likewise.
25457         * modules/unicase/u32-casefold-tests: Likewise.
25458         * modules/unicase/u32-is-cased-tests: Likewise.
25459         * modules/unicase/u32-is-casefolded-tests: Likewise.
25460         * modules/unicase/u32-is-lowercase-tests: Likewise.
25461         * modules/unicase/u32-is-titlecase-tests: Likewise.
25462         * modules/unicase/u32-is-uppercase-tests: Likewise.
25463         * modules/unicase/u32-tolower-tests: Likewise.
25464         * modules/unicase/u32-totitle-tests: Likewise.
25465         * modules/unicase/u32-toupper-tests: Likewise.
25466         * modules/unicase/ulc-casecmp-tests: Likewise.
25467         * modules/unicase/ulc-casecoll-tests: Likewise.
25468         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
25469         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
25470         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
25471         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
25472         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
25473         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
25474         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
25475         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
25476         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
25477         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
25478         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
25479         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
25480         * modules/unictype/bidicategory-byname-tests: Likewise.
25481         * modules/unictype/bidicategory-name-tests: Likewise.
25482         * modules/unictype/bidicategory-of-tests: Likewise.
25483         * modules/unictype/bidicategory-test-tests: Likewise.
25484         * modules/unictype/block-list-tests: Likewise.
25485         * modules/unictype/block-of-tests: Likewise.
25486         * modules/unictype/block-test-tests: Likewise.
25487         * modules/unictype/category-C-tests: Likewise.
25488         * modules/unictype/category-Cc-tests: Likewise.
25489         * modules/unictype/category-Cf-tests: Likewise.
25490         * modules/unictype/category-Cn-tests: Likewise.
25491         * modules/unictype/category-Co-tests: Likewise.
25492         * modules/unictype/category-Cs-tests: Likewise.
25493         * modules/unictype/category-L-tests: Likewise.
25494         * modules/unictype/category-Ll-tests: Likewise.
25495         * modules/unictype/category-Lm-tests: Likewise.
25496         * modules/unictype/category-Lo-tests: Likewise.
25497         * modules/unictype/category-Lt-tests: Likewise.
25498         * modules/unictype/category-Lu-tests: Likewise.
25499         * modules/unictype/category-M-tests: Likewise.
25500         * modules/unictype/category-Mc-tests: Likewise.
25501         * modules/unictype/category-Me-tests: Likewise.
25502         * modules/unictype/category-Mn-tests: Likewise.
25503         * modules/unictype/category-N-tests: Likewise.
25504         * modules/unictype/category-Nd-tests: Likewise.
25505         * modules/unictype/category-Nl-tests: Likewise.
25506         * modules/unictype/category-No-tests: Likewise.
25507         * modules/unictype/category-P-tests: Likewise.
25508         * modules/unictype/category-Pc-tests: Likewise.
25509         * modules/unictype/category-Pd-tests: Likewise.
25510         * modules/unictype/category-Pe-tests: Likewise.
25511         * modules/unictype/category-Pf-tests: Likewise.
25512         * modules/unictype/category-Pi-tests: Likewise.
25513         * modules/unictype/category-Po-tests: Likewise.
25514         * modules/unictype/category-Ps-tests: Likewise.
25515         * modules/unictype/category-S-tests: Likewise.
25516         * modules/unictype/category-Sc-tests: Likewise.
25517         * modules/unictype/category-Sk-tests: Likewise.
25518         * modules/unictype/category-Sm-tests: Likewise.
25519         * modules/unictype/category-So-tests: Likewise.
25520         * modules/unictype/category-Z-tests: Likewise.
25521         * modules/unictype/category-Zl-tests: Likewise.
25522         * modules/unictype/category-Zp-tests: Likewise.
25523         * modules/unictype/category-Zs-tests: Likewise.
25524         * modules/unictype/category-and-not-tests: Likewise.
25525         * modules/unictype/category-and-tests: Likewise.
25526         * modules/unictype/category-byname-tests: Likewise.
25527         * modules/unictype/category-name-tests: Likewise.
25528         * modules/unictype/category-none-tests: Likewise.
25529         * modules/unictype/category-of-tests: Likewise.
25530         * modules/unictype/category-or-tests: Likewise.
25531         * modules/unictype/category-test-withtable-tests: Likewise.
25532         * modules/unictype/combining-class-tests: Likewise.
25533         * modules/unictype/ctype-alnum-tests: Likewise.
25534         * modules/unictype/ctype-alpha-tests: Likewise.
25535         * modules/unictype/ctype-blank-tests: Likewise.
25536         * modules/unictype/ctype-cntrl-tests: Likewise.
25537         * modules/unictype/ctype-digit-tests: Likewise.
25538         * modules/unictype/ctype-graph-tests: Likewise.
25539         * modules/unictype/ctype-lower-tests: Likewise.
25540         * modules/unictype/ctype-print-tests: Likewise.
25541         * modules/unictype/ctype-punct-tests: Likewise.
25542         * modules/unictype/ctype-space-tests: Likewise.
25543         * modules/unictype/ctype-upper-tests: Likewise.
25544         * modules/unictype/ctype-xdigit-tests: Likewise.
25545         * modules/unictype/decimal-digit-tests: Likewise.
25546         * modules/unictype/digit-tests: Likewise.
25547         * modules/unictype/mirror-tests: Likewise.
25548         * modules/unictype/numeric-tests: Likewise.
25549         * modules/unictype/property-alphabetic-tests: Likewise.
25550         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
25551         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
25552         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
25553         * modules/unictype/property-bidi-block-separator-tests: Likewise.
25554         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
25555         * modules/unictype/property-bidi-common-separator-tests: Likewise.
25556         * modules/unictype/property-bidi-control-tests: Likewise.
25557         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
25558         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
25559         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
25560         * modules/unictype/property-bidi-european-digit-tests: Likewise.
25561         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
25562         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
25563         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
25564         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
25565         * modules/unictype/property-bidi-pdf-tests: Likewise.
25566         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
25567         * modules/unictype/property-bidi-whitespace-tests: Likewise.
25568         * modules/unictype/property-byname-tests: Likewise.
25569         * modules/unictype/property-combining-tests: Likewise.
25570         * modules/unictype/property-composite-tests: Likewise.
25571         * modules/unictype/property-currency-symbol-tests: Likewise.
25572         * modules/unictype/property-dash-tests: Likewise.
25573         * modules/unictype/property-decimal-digit-tests: Likewise.
25574         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
25575         * modules/unictype/property-deprecated-tests: Likewise.
25576         * modules/unictype/property-diacritic-tests: Likewise.
25577         * modules/unictype/property-extender-tests: Likewise.
25578         * modules/unictype/property-format-control-tests: Likewise.
25579         * modules/unictype/property-grapheme-base-tests: Likewise.
25580         * modules/unictype/property-grapheme-extend-tests: Likewise.
25581         * modules/unictype/property-grapheme-link-tests: Likewise.
25582         * modules/unictype/property-hex-digit-tests: Likewise.
25583         * modules/unictype/property-hyphen-tests: Likewise.
25584         * modules/unictype/property-id-continue-tests: Likewise.
25585         * modules/unictype/property-id-start-tests: Likewise.
25586         * modules/unictype/property-ideographic-tests: Likewise.
25587         * modules/unictype/property-ids-binary-operator-tests: Likewise.
25588         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
25589         * modules/unictype/property-ignorable-control-tests: Likewise.
25590         * modules/unictype/property-iso-control-tests: Likewise.
25591         * modules/unictype/property-join-control-tests: Likewise.
25592         * modules/unictype/property-left-of-pair-tests: Likewise.
25593         * modules/unictype/property-line-separator-tests: Likewise.
25594         * modules/unictype/property-logical-order-exception-tests: Likewise.
25595         * modules/unictype/property-lowercase-tests: Likewise.
25596         * modules/unictype/property-math-tests: Likewise.
25597         * modules/unictype/property-non-break-tests: Likewise.
25598         * modules/unictype/property-not-a-character-tests: Likewise.
25599         * modules/unictype/property-numeric-tests: Likewise.
25600         * modules/unictype/property-other-alphabetic-tests: Likewise.
25601         * modules/unictype/property-other-default-ignorable-code-point-tests:
25602         Likewise.
25603         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
25604         * modules/unictype/property-other-id-continue-tests: Likewise.
25605         * modules/unictype/property-other-id-start-tests: Likewise.
25606         * modules/unictype/property-other-lowercase-tests: Likewise.
25607         * modules/unictype/property-other-math-tests: Likewise.
25608         * modules/unictype/property-other-uppercase-tests: Likewise.
25609         * modules/unictype/property-paired-punctuation-tests: Likewise.
25610         * modules/unictype/property-paragraph-separator-tests: Likewise.
25611         * modules/unictype/property-pattern-syntax-tests: Likewise.
25612         * modules/unictype/property-pattern-white-space-tests: Likewise.
25613         * modules/unictype/property-private-use-tests: Likewise.
25614         * modules/unictype/property-punctuation-tests: Likewise.
25615         * modules/unictype/property-quotation-mark-tests: Likewise.
25616         * modules/unictype/property-radical-tests: Likewise.
25617         * modules/unictype/property-sentence-terminal-tests: Likewise.
25618         * modules/unictype/property-soft-dotted-tests: Likewise.
25619         * modules/unictype/property-space-tests: Likewise.
25620         * modules/unictype/property-terminal-punctuation-tests: Likewise.
25621         * modules/unictype/property-test-tests: Likewise.
25622         * modules/unictype/property-titlecase-tests: Likewise.
25623         * modules/unictype/property-unassigned-code-value-tests: Likewise.
25624         * modules/unictype/property-unified-ideograph-tests: Likewise.
25625         * modules/unictype/property-uppercase-tests: Likewise.
25626         * modules/unictype/property-variation-selector-tests: Likewise.
25627         * modules/unictype/property-white-space-tests: Likewise.
25628         * modules/unictype/property-xid-continue-tests: Likewise.
25629         * modules/unictype/property-xid-start-tests: Likewise.
25630         * modules/unictype/property-zero-width-tests: Likewise.
25631         * modules/unictype/scripts-tests: Likewise.
25632         * modules/unictype/syntax-c-ident-tests: Likewise.
25633         * modules/unictype/syntax-c-whitespace-tests: Likewise.
25634         * modules/unictype/syntax-java-ident-tests: Likewise.
25635         * modules/unictype/syntax-java-whitespace-tests: Likewise.
25636         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
25637         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
25638         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
25639         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
25640         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
25641         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
25642         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
25643         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
25644         * modules/uniname/uniname-tests: Likewise.
25645         * modules/uninorm/canonical-decomposition-tests: Likewise.
25646         * modules/uninorm/compat-decomposition-tests: Likewise.
25647         * modules/uninorm/composition-tests: Likewise.
25648         * modules/uninorm/decomposing-form-tests: Likewise.
25649         * modules/uninorm/decomposition-tests: Likewise.
25650         * modules/uninorm/filter-tests: Likewise.
25651         * modules/uninorm/nfc-tests: Likewise.
25652         * modules/uninorm/nfd-tests: Likewise.
25653         * modules/uninorm/nfkc-tests: Likewise.
25654         * modules/uninorm/nfkd-tests: Likewise.
25655         * modules/uninorm/u8-normcmp-tests: Likewise.
25656         * modules/uninorm/u8-normcoll-tests: Likewise.
25657         * modules/uninorm/u16-normcmp-tests: Likewise.
25658         * modules/uninorm/u16-normcoll-tests: Likewise.
25659         * modules/uninorm/u32-normcmp-tests: Likewise.
25660         * modules/uninorm/u32-normcoll-tests: Likewise.
25661         * modules/unistdio/u8-asnprintf-tests: Likewise.
25662         * modules/unistdio/u8-vasnprintf-tests: Likewise.
25663         * modules/unistdio/u8-vasprintf-tests: Likewise.
25664         * modules/unistdio/u8-vsnprintf-tests: Likewise.
25665         * modules/unistdio/u8-vsprintf-tests: Likewise.
25666         * modules/unistdio/u16-asnprintf-tests: Likewise.
25667         * modules/unistdio/u16-vasnprintf-tests: Likewise.
25668         * modules/unistdio/u16-vasprintf-tests: Likewise.
25669         * modules/unistdio/u16-vsnprintf-tests: Likewise.
25670         * modules/unistdio/u16-vsprintf-tests: Likewise.
25671         * modules/unistdio/u32-asnprintf-tests: Likewise.
25672         * modules/unistdio/u32-vasnprintf-tests: Likewise.
25673         * modules/unistdio/u32-vasprintf-tests: Likewise.
25674         * modules/unistdio/u32-vsnprintf-tests: Likewise.
25675         * modules/unistdio/u32-vsprintf-tests: Likewise.
25676         * modules/unistdio/ulc-asnprintf-tests: Likewise.
25677         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
25678         * modules/unistdio/ulc-vasprintf-tests: Likewise.
25679         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
25680         * modules/unistdio/ulc-vsprintf-tests: Likewise.
25681         * modules/unistr/u8-check-tests: Likewise.
25682         * modules/unistr/u8-chr-tests: Likewise.
25683         * modules/unistr/u8-cmp-tests: Likewise.
25684         * modules/unistr/u8-cmp2-tests: Likewise.
25685         * modules/unistr/u8-cpy-alloc-tests: Likewise.
25686         * modules/unistr/u8-cpy-tests: Likewise.
25687         * modules/unistr/u8-mblen-tests: Likewise.
25688         * modules/unistr/u8-mbsnlen-tests: Likewise.
25689         * modules/unistr/u8-mbtouc-tests: Likewise.
25690         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
25691         * modules/unistr/u8-mbtoucr-tests: Likewise.
25692         * modules/unistr/u8-move-tests: Likewise.
25693         * modules/unistr/u8-next-tests: Likewise.
25694         * modules/unistr/u8-prev-tests: Likewise.
25695         * modules/unistr/u8-set-tests: Likewise.
25696         * modules/unistr/u8-stpcpy-tests: Likewise.
25697         * modules/unistr/u8-stpncpy-tests: Likewise.
25698         * modules/unistr/u8-strcat-tests: Likewise.
25699         * modules/unistr/u8-strcmp-tests: Likewise.
25700         * modules/unistr/u8-strcoll-tests: Likewise.
25701         * modules/unistr/u8-strcpy-tests: Likewise.
25702         * modules/unistr/u8-strdup-tests: Likewise.
25703         * modules/unistr/u8-strlen-tests: Likewise.
25704         * modules/unistr/u8-strmblen-tests: Likewise.
25705         * modules/unistr/u8-strmbtouc-tests: Likewise.
25706         * modules/unistr/u8-strncat-tests: Likewise.
25707         * modules/unistr/u8-strncmp-tests: Likewise.
25708         * modules/unistr/u8-strncpy-tests: Likewise.
25709         * modules/unistr/u8-strnlen-tests: Likewise.
25710         * modules/unistr/u8-to-u16-tests: Likewise.
25711         * modules/unistr/u8-to-u32-tests: Likewise.
25712         * modules/unistr/u8-uctomb-tests: Likewise.
25713         * modules/unistr/u16-check-tests: Likewise.
25714         * modules/unistr/u16-chr-tests: Likewise.
25715         * modules/unistr/u16-cmp-tests: Likewise.
25716         * modules/unistr/u16-cmp2-tests: Likewise.
25717         * modules/unistr/u16-cpy-alloc-tests: Likewise.
25718         * modules/unistr/u16-cpy-tests: Likewise.
25719         * modules/unistr/u16-mblen-tests: Likewise.
25720         * modules/unistr/u16-mbsnlen-tests: Likewise.
25721         * modules/unistr/u16-mbtouc-tests: Likewise.
25722         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
25723         * modules/unistr/u16-mbtoucr-tests: Likewise.
25724         * modules/unistr/u16-move-tests: Likewise.
25725         * modules/unistr/u16-next-tests: Likewise.
25726         * modules/unistr/u16-prev-tests: Likewise.
25727         * modules/unistr/u16-set-tests: Likewise.
25728         * modules/unistr/u16-stpcpy-tests: Likewise.
25729         * modules/unistr/u16-stpncpy-tests: Likewise.
25730         * modules/unistr/u16-strcat-tests: Likewise.
25731         * modules/unistr/u16-strcmp-tests: Likewise.
25732         * modules/unistr/u16-strcoll-tests: Likewise.
25733         * modules/unistr/u16-strcpy-tests: Likewise.
25734         * modules/unistr/u16-strdup-tests: Likewise.
25735         * modules/unistr/u16-strlen-tests: Likewise.
25736         * modules/unistr/u16-strmblen-tests: Likewise.
25737         * modules/unistr/u16-strmbtouc-tests: Likewise.
25738         * modules/unistr/u16-strncat-tests: Likewise.
25739         * modules/unistr/u16-strncmp-tests: Likewise.
25740         * modules/unistr/u16-strncpy-tests: Likewise.
25741         * modules/unistr/u16-strnlen-tests: Likewise.
25742         * modules/unistr/u16-to-u32-tests: Likewise.
25743         * modules/unistr/u16-to-u8-tests: Likewise.
25744         * modules/unistr/u16-uctomb-tests: Likewise.
25745         * modules/unistr/u32-check-tests: Likewise.
25746         * modules/unistr/u32-chr-tests: Likewise.
25747         * modules/unistr/u32-cmp-tests: Likewise.
25748         * modules/unistr/u32-cmp2-tests: Likewise.
25749         * modules/unistr/u32-cpy-alloc-tests: Likewise.
25750         * modules/unistr/u32-cpy-tests: Likewise.
25751         * modules/unistr/u32-mblen-tests: Likewise.
25752         * modules/unistr/u32-mbsnlen-tests: Likewise.
25753         * modules/unistr/u32-mbtouc-tests: Likewise.
25754         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
25755         * modules/unistr/u32-mbtoucr-tests: Likewise.
25756         * modules/unistr/u32-move-tests: Likewise.
25757         * modules/unistr/u32-next-tests: Likewise.
25758         * modules/unistr/u32-prev-tests: Likewise.
25759         * modules/unistr/u32-set-tests: Likewise.
25760         * modules/unistr/u32-stpcpy-tests: Likewise.
25761         * modules/unistr/u32-stpncpy-tests: Likewise.
25762         * modules/unistr/u32-strcat-tests: Likewise.
25763         * modules/unistr/u32-strcmp-tests: Likewise.
25764         * modules/unistr/u32-strcoll-tests: Likewise.
25765         * modules/unistr/u32-strcpy-tests: Likewise.
25766         * modules/unistr/u32-strdup-tests: Likewise.
25767         * modules/unistr/u32-strlen-tests: Likewise.
25768         * modules/unistr/u32-strmblen-tests: Likewise.
25769         * modules/unistr/u32-strmbtouc-tests: Likewise.
25770         * modules/unistr/u32-strncat-tests: Likewise.
25771         * modules/unistr/u32-strncmp-tests: Likewise.
25772         * modules/unistr/u32-strncpy-tests: Likewise.
25773         * modules/unistr/u32-strnlen-tests: Likewise.
25774         * modules/unistr/u32-to-u16-tests: Likewise.
25775         * modules/unistr/u32-to-u8-tests: Likewise.
25776         * modules/unistr/u32-uctomb-tests: Likewise.
25777         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
25778         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
25779         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
25780         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
25781         * modules/uniwidth/u8-strwidth-tests: Likewise.
25782         * modules/uniwidth/u8-width-tests: Likewise.
25783         * modules/uniwidth/u16-strwidth-tests: Likewise.
25784         * modules/uniwidth/u16-width-tests: Likewise.
25785         * modules/uniwidth/u32-strwidth-tests: Likewise.
25786         * modules/uniwidth/u32-width-tests: Likewise.
25787         * modules/uniwidth/width-tests: Likewise.
25788
25789 2010-05-18  Richard Jones  <rjones@redhat.com>
25790
25791         doc: users.txt: list hivex
25792         * users.txt: Add hivex.
25793
25794 2010-05-18  Richard Jones  <rjones@redhat.com>
25795
25796         doc: users.txt: list febootstrap
25797         * users.txt: Add febootstrap.
25798
25799 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
25800
25801         bootstrap: fix an error when gnulib is not used as a git submodule
25802         * build-aux/bootstrap (gnulib_path): If its length is zero then
25803         assign "gnulib" to it.
25804         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
25805
25806 2010-05-16  Bruno Haible  <bruno@clisp.org>
25807
25808         Avoid autoconf warnings about AM_ICONV.
25809         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
25810         2.64.
25811
25812 2010-05-16  Bruno Haible  <bruno@clisp.org>
25813
25814         absolute-header: Make the macro usable in more situations.
25815         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
25816         from gl_ABSOLUTE_HEADER.
25817         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
25818
25819 2010-05-16  James Youngman  <jay@gnu.org>
25820
25821         doc: update users.txt
25822         * users.txt: Add CSSC.
25823
25824 2010-05-16  Jim Meyering  <meyering@redhat.com>
25825
25826         init.sh: fix an error in the previous change; add more comments
25827         * tests/init.sh: Compare exit code in loop against 9, not 2.
25828         Patch by Bruno Haible.
25829         Make the two tests more similar by adding an empty "then" clause.
25830         Add comments.
25831
25832         init.sh: avoid unnecessary shell re-exec
25833         * tests/init.sh: Improve the re-exec-required check to first test the
25834         current shell.  If it passes the test, do not search for a shell that
25835         does pass, and do not re-exec.  This test is particularly contorted to
25836         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
25837         of $(...) evokes a syntax error and causes immediate shell exit with
25838         status 2.  Bruno Haible reported that the re-exec made it impossible
25839         to single-step through any init.sh-using script.
25840
25841 2010-05-16  Bruno Haible  <bruno@clisp.org>
25842
25843         Fix collision between gnulib's and libintl's printf replacements.
25844         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
25845         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
25846         (printf): When using GNU C, map the __printf__ function to rpl_printf
25847         via __asm__. When not using GNU C, define rpl_printf instead of
25848         __printf__.
25849         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
25850         commit.
25851         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
25852         commit.
25853         * m4/asm-underscore.m4: New file.
25854         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
25855         * modules/stdio (Files): Add m4/asm-underscore.m4.
25856         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
25857         Reported by Ben Pfaff.
25858
25859 2010-05-16  Bruno Haible  <bruno@clisp.org>
25860
25861         verify: Avoid skipping the test on openSUSE 11.0.
25862         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
25863
25864 2010-05-13  Bruno Haible  <bruno@clisp.org>
25865
25866         Avoid useless warnings from G++.
25867         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
25868         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
25869         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25870
25871 2010-05-11  Jim Meyering  <meyering@redhat.com>
25872
25873         maint.mk: tweak preceding change
25874         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
25875         regexps tighter by anchoring at EOL, and make the new group "shy"
25876         for slightly decreased overhead.
25877
25878 2010-05-11  Eric Blake  <eblake@redhat.com>
25879
25880         maint.mk: gnulib doesn't guarantee NSIG
25881         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
25882
25883 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25884
25885         test-pwrite.c: Remove unused variable declaration.
25886         * tests/test-pwrite.c (main): Remove read_buf declaration.
25887
25888         Remove useless test-pwrite.sh file.
25889         * tests/test-pwrite.sh: Delete file.
25890         * modules/pwrite-tests: Remove references.
25891         Reported by Bruno Haible.
25892
25893 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25894
25895         init.sh: fix a typo
25896         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
25897
25898 2010-05-10  Jim Meyering  <meyering@redhat.com>
25899
25900         maint.mk: avoid using a temporary file in the always-defined-macros check
25901         * top/maint.mk (.re-defmac): Remove rule.
25902         (gl_trap_): Remove definition.
25903         (sc_prohibit_always-defined_macros): Rewrite not to create and
25904         depend on a temporary file.  Instead, depend on GNU grep's ability
25905         to read a list of regular expressions from stdin when given "-f -".
25906
25907 2010-05-09  Bruno Haible  <bruno@clisp.org>
25908
25909         Update to GNU gettext 0.18, part 1.
25910         * m4/gettext.m4: Update to GNU gettext 0.18.
25911         * m4/intl.m4: Likewise.
25912         * m4/po.m4: Likewise.
25913         * modules/gettext (Files): Add m4/fcntl-o.m4.
25914         (configure.ac): Require gettext infrastructure from version 0.18.
25915
25916 2010-05-09  Jim Meyering  <meyering@redhat.com>
25917
25918         init.sh: enable MALLOC_PERTURB_
25919         * tests/init.sh: Enable glibc's malloc-perturbing option.
25920
25921         maint.mk: improve sc_cross_check_PATH_usage_in_tests
25922         With my recent change in init.sh from the two-line form:
25923             -#   : ${srcdir=.}
25924             -#   . "$srcdir/init.sh"; path_prepend_ .
25925             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
25926         I noticed that using the one-line form would cause this test
25927         to fail with a false-positive, or to stop working altogether,
25928         depending on whether help-version changed or all the tests did.
25929         * top/maint.mk (_hv_regex): Remove this definition.
25930         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
25931         (_hv_regex_strong): Use a stronger regex to check for conformance.
25932         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
25933         Give a separate diagnostic for lack of conforming use.
25934
25935         maint.mk: prohibit definition of symbols defined by gnulib
25936         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
25937         definition of symbols defined by gnulib.
25938
25939 2010-05-09  Bruno Haible  <bruno@clisp.org>
25940
25941         acl: Avoid test failure on Cygwin-hosted mingw.
25942         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
25943
25944 2010-05-09  Bruno Haible  <bruno@clisp.org>
25945
25946         error: Use system's fcntl function.
25947         * lib/error.c (fcntl): Undefine.
25948
25949 2010-05-09  Jim Meyering  <meyering@redhat.com>
25950
25951         verify: adjust formatting to be more consistent
25952         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
25953         argument-list '('s, and after one comma.
25954
25955 2010-05-09  Bruno Haible  <bruno@clisp.org>
25956
25957         error: More reliable output on mingw.
25958         * lib/error.c: Include <windows.h>.
25959         (is_open): New function.
25960         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
25961         defined.
25962
25963 2010-05-09  Bruno Haible  <bruno@clisp.org>
25964
25965         vasnprintf: Fix syntax errors in libintl build on mingw.
25966         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
25967         pad_ourselves and prec_ourselves after use.
25968
25969 2010-05-08  Bruno Haible  <bruno@clisp.org>
25970
25971         * lib/config.charset: Update comments for Cygwin 1.7.
25972         * lib/localcharset.c: Likewise.
25973
25974 2010-05-07  Jim Meyering  <meyering@redhat.com>
25975
25976         init.sh: improve comments
25977         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
25978         . "${srcdir=.}/init.sh"; path_prepend_ .
25979         Add a note about path_prepend_ and the alternative of using
25980         TESTS_ENVIRONMENT.
25981
25982 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25983
25984         exclude: Unescape hashed patterns in wildcard mode.
25985         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
25986         to the hash list.
25987         * tests/test-exclude8.sh: New test case.
25988         * modules/exclude-tests: Add new test.
25989
25990 2010-05-05  Eric Blake  <eblake@redhat.com>
25991
25992         verify: automate tests
25993         * modules/verify-tests: New module.
25994         * tests/test-verify.sh: New file.
25995         * tests/test-verify.c: Guard each negative test with a unique id.
25996         Also avoid warning about unused left hand of comma expressions.
25997
25998 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
25999
26000         Further improvements to verify.h, suggested by Eric Blake.
26001         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
26002         the GL_* versions, to avoid collision with OpenGL.
26003         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
26004         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
26005         than testing merely whether it's defined.
26006
26007         Modify verify.h to pacify gcc -Wredundant_decls.
26008         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
26009         These use the prefix "GL_" since they're likely to be useful elsewhere.
26010         We may need to break them out into a different .h file.
26011         (__COUNTER__): Define to 0 if the compiler doesn't support it.
26012         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
26013         of verify_function__.
26014
26015 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26016
26017         Tests for module pwrite.
26018         * modules/pwrite-tests: New file.
26019         * tests/test-pwrite.sh: New file.
26020         * tests/test-pwrite.c: New file.
26021
26022         New module pwrite.
26023         * lib/unistd.in.h (pwrite): New declaration.
26024         * lib/pwrite.c: New file, from glibc with modifications.
26025         * m4/pwrite.m4: New file.
26026         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
26027         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
26028         REPLACE_PWRITE.
26029         * modules/pwrite: New file.
26030         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
26031         REPLACE_PWRITE.
26032         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
26033         * doc/posix-functions/pwrite.texi: Mention the new module.
26034
26035 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26036
26037         pread: Update documentation.
26038         * doc/posix-functions/pread.texi: Mention the 'pread' module.
26039
26040 2010-05-04  Eric Blake  <eblake@redhat.com>
26041
26042         docs: update cygwin progress
26043         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
26044         this bug.
26045         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
26046         Added in cygwin 1.7.2.
26047         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
26048         Likewise.
26049         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
26050         Likewise.
26051         * doc/glibc-functions/dup3.texi (dup3): Likewise.
26052         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
26053         * doc/glibc-functions/accept4.texi (accept4): Likewise.
26054         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
26055         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
26056         Mention nproc module.
26057         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
26058         bug in cygwin 1.7.5 addition.
26059         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
26060         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
26061         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
26062         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
26063         1.7.5.
26064         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
26065         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
26066         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
26067         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
26068         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
26069         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
26070         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
26071         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
26072         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
26073         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
26074         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
26075         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
26076         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
26077         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
26078         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
26079         Likewise.
26080         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
26081         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
26082         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
26083         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
26084         Likewise.
26085         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
26086         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
26087         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
26088         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
26089         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
26090         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
26091         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
26092         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
26093         Likewise.
26094         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
26095         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
26096         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
26097         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
26098         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
26099         Likewise.
26100         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
26101         Likewise.
26102         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
26103         Likewise.
26104         * doc/glibc-functions/xdrrec_endofrecord.texi
26105         (xdrrec_endofrecord): Likewise.
26106         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
26107         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
26108         Likewise.
26109         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
26110         Likewise.
26111
26112 2010-05-04  Jim Meyering  <meyering@redhat.com>
26113
26114         gendocs.sh: make its "-s FILE" option more useful
26115         * build-aux/gendocs.sh: When honoring the -s FILE option, update
26116         $PACKAGE to reflect the probably-different basename of "FILE".
26117
26118 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26119
26120         bootstrap: don't ignore download_po_files failure
26121         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
26122         failure.
26123
26124 2010-05-03  Jim Meyering  <meyering@redhat.com>
26125
26126         maint.mk: allow to pass options to gendocs.sh
26127         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
26128         (gendocs_options_): New overridable variable.
26129
26130         gnu-web-doc-update: don't ignore configure or build failure
26131         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
26132
26133         announce-gen: backslash-escape '@'s in --help output
26134         * build-aux/announce-gen: Fix syntax errors.
26135
26136         maint.mk, announce-gen: allow project-specific announcement mail headers
26137         * top/maint.mk (translation_project_): Define default.
26138         (announcement_Cc_, announcement_mail_headers_): Likewise.
26139         (announcement): Invoke announce-gen with new --mail-headers option.
26140         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
26141
26142         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
26143         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
26144         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
26145         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
26146         line in the "err2" output file when running "make check" in verbose
26147         mode (i.e., with set -x enabled).
26148
26149 2010-05-03  Bruno Haible  <bruno@clisp.org>
26150
26151         wctob: Fix for weird platforms.
26152         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
26153         argument value.
26154
26155 2010-05-03  Jim Meyering  <meyering@redhat.com>
26156
26157         maint.mk: prohibit unwarranted use of <strings.h>
26158         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
26159         strings.h in a file that does not also use strcasecmp, strncasecmp,
26160         ffs or ffsll.
26161
26162         maint.mk: remove obsolete comments
26163         * top/maint.mk: Remove stale, commented-out rules.
26164
26165 2010-05-02  Bruno Haible  <bruno@clisp.org>
26166
26167         wcwidth: Declare also when it's aliased.
26168         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
26169         macro.
26170
26171 2010-05-02  Bruno Haible  <bruno@clisp.org>
26172
26173         Fix regression from 2010-04-25.
26174         * gnulib-tool (func_modules_transitive_closure): Check the status of
26175         all modules, not only of the tests that are of the form foo-tests where
26176         foo is a module.
26177
26178 2010-05-02  Bruno Haible  <bruno@clisp.org>
26179
26180         wctob: Work around nasty Cygwin 1.7.2 bug.
26181         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
26182         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
26183
26184 2010-05-01  Bruno Haible  <bruno@clisp.org>
26185
26186         fpurge: Sharper test.
26187         * tests/test-fpurge.c (main): Add one more ftell check.
26188         * modules/fpurge-tests (Depends-on): Add ftell.
26189         Suggested by Eric Blake.
26190
26191 2010-05-01  Bruno Haible  <bruno@clisp.org>
26192
26193         ftello: Another test.
26194         * tests/test-ftello3.c: New file.
26195         * modules/ftello-tests (Files): Add it.
26196         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26197         MOSTLYCLEANFILES.
26198
26199         ftell: Another test.
26200         * tests/test-ftell3.c: New file.
26201         * modules/ftell-tests (Files): Add it.
26202         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26203         MOSTLYCLEANFILES.
26204
26205 2010-05-01  Bruno Haible  <bruno@clisp.org>
26206
26207         ftell, ftello: Work around Solaris bug.
26208         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
26209         * lib/ftello.c: Include stdio-impl.h.
26210         (ftello): On Solaris, when _IOWRT is set, compute the result without
26211         looking at _IOREAD.
26212         * modules/ftello (Files): Add lib/stdio-impl.h.
26213         * doc/posix-functions/ftell.texi: Mention Solaris bug.
26214         * doc/posix-functions/ftello.texi: Likewise.
26215         Reported by Eric Blake.
26216
26217 2010-05-01  Bruno Haible  <bruno@clisp.org>
26218
26219         freading: Adapt to special meaning of _IOREAD flag on Solaris.
26220         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
26221         the _IOWRT flag is also set.
26222
26223 2010-05-01  Bruno Haible  <bruno@clisp.org>
26224
26225         Fix doc about a HP-UX stdio bug.
26226         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
26227         * doc/posix-functions/ftello.texi: Likewise.
26228
26229 2010-05-01  Bruno Haible  <bruno@clisp.org>
26230
26231         lseek test: Fix failure on Solaris.
26232         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
26233         output.
26234
26235 2010-04-30  Jim Meyering  <meyering@redhat.com>
26236
26237         bootstrap: don't ignore failure to generate po*/Makevars
26238         * build-aux/bootstrap (with_gettext): Don't ignore failure
26239         to create po/Makevars or runtime-po/Makevars.
26240
26241 2010-04-29  Eric Blake  <eblake@redhat.com>
26242
26243         headers: relax license to LGPLv2+
26244         * modules/fcntl-h (License): Relax license.
26245         * modules/getopt-posix (License): Likewise.
26246         * modules/locale (License): Likewise.
26247         * modules/math (License): Likewise.
26248         * modules/pty (License): Likewise.
26249         * modules/sched (License): Likewise.
26250         * modules/search (License): Likewise.
26251         * modules/spawn (License): Likewise.
26252         * modules/stdarg (License): Likewise.
26253         * modules/sysexits (License): Likewise.
26254
26255 2010-04-29  Jim Meyering  <meyering@redhat.com>
26256
26257         inttypes: relax license to LGPLv2+
26258         * modules/inttypes (License): Relax license.
26259
26260 2010-04-29  Simon Josefsson  <simon@josefsson.org>
26261
26262         * top/maint.mk (indent): Run twice to produce idempotent results.
26263
26264 2010-04-28  Bruno Haible  <bruno@clisp.org>
26265
26266         getdate: Generate getdate.c in the source directory.
26267         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
26268         MOSTLYCLEANFILES.
26269         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
26270
26271 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
26272
26273         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
26274         is not declared as a const *; avoid warnings in that case.
26275
26276 2010-04-28  Eric Blake  <eblake@redhat.com>
26277
26278         canonicalize-lgpl: avoid compiler warning
26279         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
26280         declaration' / 'extraneous semicolon' warning with some compilers.
26281         Reported by Andreas Gruenbacher.
26282
26283 2010-04-28  Jim Meyering  <meyering@redhat.com>
26284
26285         init.sh: ensure a more reliable exit status when exiting via trap
26286         * tests/init.sh (setup_): Don't rely on $? in signal handler.
26287         Inspired by patches from Dmitry V. Levin.
26288         Also trap on signal 3 (SIGQUIT).
26289
26290 2010-04-27  Bruno Haible  <bruno@clisp.org>
26291
26292         Update doc about utimes().
26293         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
26294         'utimens' module.
26295         Reported by Andreas Gruenbacher <agruen@suse.de>.
26296
26297 2010-04-27  Eric Blake  <eblake@redhat.com>
26298
26299         full-read, full-write: relax license
26300         * modules/full-read (License): Drop to LGPLv2+.
26301         * modules/full-write (License): Likewise.
26302         * modules/safe-read (License): Likewise.
26303         * modules/safe-write (License): Likewise.
26304
26305         pthread: mention library for linking
26306         * modules/pthread (Link): Mention $(LIB_PTHREAD).
26307
26308 2010-04-27  Jim Meyering  <meyering@redhat.com>
26309
26310         maint.mk: fix a bug introduced in last change
26311         * top/maint.mk (gl_assured_headers_): Now that all names are on
26312         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
26313         is not anchored to end of word, it should be adequate.
26314
26315         maint.mk: avoid side-effect in latest syntax-check
26316         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
26317         to run commands via $(shell...), and hence to incur cost only when
26318         the new rule is actually run.
26319
26320         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
26321         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
26322         and use that to create a regexp used to detect all #if HAVE_..._H uses.
26323         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
26324         (gl_assured_headers_, az_, AZ_): Define.
26325         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
26326
26327 2010-04-26  Jim Meyering  <jim@meyering.net>
26328             Bruno Haible  <bruno@clisp.org>
26329
26330         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
26331         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
26332         Prompted by an exchange with Gilles Espinasse.
26333
26334 2010-04-26  Jim Meyering  <meyering@redhat.com>
26335
26336         git-version-gen: aesthetic tweak
26337         * build-aux/git-version-gen: Use "$nl" rather than a literal,
26338         so that the command remains on a single line.
26339
26340 2010-04-26  Eric Blake  <eblake@redhat.com>
26341
26342         git-version-gen: allow use on EBCDIC hosts
26343         * build-aux/git-version-gen (dirty): Use literal rather than tying
26344         ourselves to ascii.
26345         Reported by Steve Goetze.
26346
26347 2010-04-25  Bruno Haible  <bruno@clisp.org>
26348
26349         netdb: Add support for GNULIB_POSIXCHECK.
26350         * lib/netdb.in.h: Include warn-on-use.h.
26351         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
26352         functions are used when GNULIB_POSIXCHECK is defined and the
26353         getaddrinfo module is not in use.
26354         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
26355         freeaddrinfo, gai_strerror, getnameinfo are declared.
26356         * modules/netdb (Depends-on): Add warn-on-use.
26357         (Makefile.am): Include warn-on-use.h in netdb.h.
26358
26359 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
26360
26361         build: avoid "make check" failure without .git/ directory
26362         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
26363         there is no .git/ directory.
26364
26365 2010-04-25  Bruno Haible  <bruno@clisp.org>
26366
26367         ptsname: Fix misuse of ttyname_r.
26368         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
26369         of errno.
26370
26371 2010-04-25  Bruno Haible  <bruno@clisp.org>
26372
26373         ttyname_r: Make it work on Solaris 10.
26374         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
26375         if the system function has the POSIX declaration. Test whether the
26376         function fails if the buffer is less than 128 bytes large.
26377         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
26378         system's ttyname_r function. Provide a reasonably large buffer.
26379         * modules/ttyname_r (Depends-on): Add extensions.
26380         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
26381
26382 2010-04-25  Bruno Haible  <bruno@clisp.org>
26383
26384         Use the 'extensions' module for some more functions on Solaris.
26385         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
26386         module.
26387         * doc/posix-functions/ctime_r.texi: Likewise.
26388         * doc/posix-functions/getgrgid_r.texi: Likewise.
26389         * doc/posix-functions/getgrnam_r.texi: Likewise.
26390         * doc/posix-functions/getpwnam_r.texi: Likewise.
26391         * doc/posix-functions/getpwuid_r.texi: Likewise.
26392         * doc/posix-functions/readdir_r.texi: Likewise.
26393         * doc/posix-functions/sigwait.texi: Likewise.
26394         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
26395         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
26396
26397 2010-04-25  Bruno Haible  <bruno@clisp.org>
26398
26399         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
26400         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
26401         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
26402         * lib/ttyname_r.c: Include <limits.h>.
26403         (ttyname_r): Define using the system's ttyname_r function, if it exists
26404         and not on Solaris.
26405         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
26406         set.
26407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
26408         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
26409         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
26410         Reported by Simon Josefsson.
26411
26412 2010-04-25  Bruno Haible  <bruno@clisp.org>
26413
26414         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
26415         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
26416         * doc/posix-functions/ctime_r.texi: Likewise.
26417         * doc/posix-functions/getgrgid_r.texi: Likewise.
26418         * doc/posix-functions/getgrnam_r.texi: Likewise.
26419         * doc/posix-functions/getlogin_r.texi: Likewise.
26420         * doc/posix-functions/getpwnam_r.texi: Likewise.
26421         * doc/posix-functions/getpwuid_r.texi: Likewise.
26422         * doc/posix-functions/readdir_r.texi: Likewise.
26423         * doc/posix-functions/sigwait.texi: Likewise.
26424         * doc/posix-functions/ttyname_r.texi: Likewise.
26425         Reported by Simon Josefsson.
26426
26427 2010-04-25  Bruno Haible  <bruno@clisp.org>
26428
26429         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
26430         * gnulib-tool (func_usage): Document that --with-*-tests options apply
26431         also to --create-testdir.
26432         (func_acceptable): Don't consider the status of *-tests modules here.
26433         (func_modules_transitive_closure): Consider it here, before including a
26434         test module.
26435         (func_import, func_create_testdir): Set inc_all_direct_tests,
26436         inc_all_indirect_tests.
26437         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
26438         --create-testdir and --create-megatestdir.
26439
26440 2010-04-25  Bruno Haible  <bruno@clisp.org>
26441
26442         gnulib-tool: Add --without-*-tests options.
26443         * gnulib-tool (func_usage): Document the --without-*-tests options.
26444         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
26445         excl_unportable_tests): New variables.
26446         Fail if they are specified with --import or --update.
26447         (func_acceptable): Respect the excl_*_tests variables.
26448         (func_import): Set the excl_*_tests variables to empty.
26449
26450 2010-04-25  Simon Josefsson  <simon@josefsson.org>
26451             Bruno Haible  <bruno@clisp.org>
26452
26453         Work around a MacOS X 10.4 bug with openpty.
26454         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
26455         * tests/test-openpty.c (main): Close the master side explicitly.
26456
26457 2010-04-25  Bruno Haible  <bruno@clisp.org>
26458
26459         strnlen: Fix a C++ test error on MacOS X and Solaris.
26460         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
26461         the function is not declared.
26462         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
26463         Simon Josefsson.
26464
26465 2010-04-24  Bruno Haible  <bruno@clisp.org>
26466
26467         Avoid a gcc warning.
26468         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
26469         of correct type for %08lx directive.
26470         Reported by Eric Blake.
26471
26472 2010-04-24  Bruno Haible  <bruno@clisp.org>
26473
26474         vasnprintf: Correct errno value in case of out-of-memory.
26475         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
26476         or sprintf. Use the errno value from SNPRINTF or sprintf.
26477         Reported by Ian Beckwith <ianb@erislabs.net>.
26478
26479 2010-04-24  Bruno Haible  <bruno@clisp.org>
26480
26481         ansi-c++-opt: Find correct compiler when cross-compiling.
26482         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
26483         AC_CHECK_PROGS.
26484         Reported by Simon Josefsson.
26485
26486 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
26487
26488         vc-list-files: Add support for subversion
26489         * build-aux/vc-list-files: Use "svn list" to generate the list of
26490         files controlled by subversion.
26491
26492 2010-04-23  Jim Meyering  <meyering@redhat.com>
26493
26494         vc-list-files tests: convert to use init.sh
26495         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
26496         path_prepend_.
26497         Use Exit, not exit.
26498         Use skip_ rather than open coding it.
26499         Remove trap set-up and compare definitions.
26500         * tests/test-vc-list-files-git.sh: Likewise.
26501         * modules/vc-list-files-tests (Files): Add tests/init.sh.
26502
26503 2010-04-22  Simon Josefsson  <simon@josefsson.org>
26504
26505         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
26506         backup files.
26507
26508 2010-04-21  Simon Josefsson  <simon@josefsson.org>
26509
26510         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
26511
26512 2010-04-20  Eric Blake  <eblake@redhat.com>
26513
26514         tests: be robust to ignored SIGPIPE
26515         * tests/test-select-in.sh: Consume all output.
26516         * tests/test-lseek.sh: Check correct exit status, while avoiding
26517         EPIPE.
26518
26519 2010-04-20  Simon Josefsson  <simon@josefsson.org>
26520             Bruno Haible  <bruno@clisp.org>
26521
26522         visibility: Don't use -fvisibility if it leads to a warning.
26523         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
26524         yes, don't pretend that visibility works if it leads to a warning.
26525         Reported by Mike Gran <spk121@yahoo.com>.
26526
26527 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
26528
26529         * build-aux/bootstrap: Use "git -h" for testing for supported options
26530         instead of "git --help".  The short-form option only shows a summary,
26531         and doesn't layout the full man page.  Grep for the full option name
26532         in the summary, too.
26533
26534 2010-04-19  Bruno Haible  <bruno@clisp.org>
26535
26536         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
26537         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
26538         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
26539         mention of RELOCATABLE_STRIP.
26540         Reported by Sylvain Beucler <beuc@beuc.net>.
26541
26542 2010-04-19  Bruno Haible  <bruno@clisp.org>
26543
26544         * lib/diffseq.h: Fix typo in comment.
26545         Reported by Eric Blake.
26546
26547 2010-04-19  Bruno Haible  <bruno@clisp.org>
26548
26549         ioctl: Move autoconf macro to a .m4 file.
26550         * m4/ioctl.m4: New file, extracted from modules/ioctl.
26551         * modules/ioctl (Files): Add it.
26552         (configure.ac): Simply invoke gl_FUNC_IOCTL.
26553         Reported by Ian Beckwith <ianb@erislabs.net>.
26554
26555 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
26556             Bruno Haible  <bruno@clisp.org>
26557
26558         diffseq: Accommodate use-case with abstract arrays.
26559         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
26560         is not defined.
26561         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
26562         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
26563
26564 2010-04-18  Bruno Haible  <bruno@clisp.org>
26565
26566         * doc/posix-headers/stdbool.texi: More precise wording.
26567
26568 2010-04-17  Jim Meyering  <meyering@redhat.com>
26569
26570         maint.mk: use gnu-style indentation in an embedded perl script
26571         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
26572         Rename variable: s/two/last_two_bytes/
26573
26574 2010-04-16  Eric Blake  <eblake@redhat.com>
26575
26576         test-stdbool: skip test that fails with Solaris CC
26577         * tests/test-stdbool.c (f): Skip test that causes compilation
26578         error under buggy C++ compiler.
26579         * lib/stdbool.in.h: Document the limitation.
26580         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
26581
26582         setenv: allow compilation with C++
26583         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
26584         register keyword.
26585
26586         stdint: allow test to pass with C++
26587         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
26588
26589         getopt: allow compilation with C++
26590         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
26591         struct.
26592         * lib/getopt.c (_getopt_internal_r): Use correct type.
26593         Reported by Dagobert Michelson, via Joel E. Denny.
26594
26595 2010-04-16  Bruno Haible  <bruno@clisp.org>
26596
26597         Override netdb.h always.
26598         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
26599         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
26600         Reported by Ludovic Courtès <ludo@gnu.org>.
26601
26602 2010-04-15  Bruno Haible  <bruno@clisp.org>
26603
26604         openpty: Fix mistake from 2010-03-21.
26605         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
26606         Reported by Simon Josefsson.
26607
26608 2010-04-15  Eric Blake  <eblake@redhat.com>
26609
26610         test-forkpty: fix expected signature
26611         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
26612         Reported by Simon Josefsson.
26613
26614 2010-04-15  Jim Meyering  <meyering@redhat.com>
26615
26616         maint.mk: texinfo_suffix_re_: correct the default regexp
26617         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
26618
26619         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
26620         make it configurable via texinfo_suffix_re_.
26621
26622 2010-04-14  Eric Blake  <eblake@redhat.com>
26623
26624         strtok_r: relax license to LGPLv2+
26625         * modules/strtok_r (License): Relax license.
26626         Reported by Matthias Bolte.
26627
26628 2010-04-14  Simon Josefsson  <simon@josefsson.org>
26629
26630         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
26631         version 1.4.4 by default instead of requiring the libgcrypt
26632         version used during build.  This makes it possible to use the
26633         application with older but still binary compatible libgcrypt
26634         versions.
26635
26636 2010-04-13  Eric Blake  <eblake@redhat.com>
26637
26638         getopt-gnu: match recent glibc fixes and posix ruling
26639         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
26640         '+' handling, when requesting extensions.
26641         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
26642         'W;' handling.
26643         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
26644         * doc/posix-functions/getopt.texi (getopt): Document this.
26645         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26646         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26647         Likewise.
26648
26649         getopt: merge bug fixes from glibc
26650         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
26651         diagnostics.  Honor '+:' correctly.  Reject ';'.
26652
26653         getopt-posix: detect MacOS bug
26654         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
26655         optind when missing a required argument.
26656         * doc/posix-functions/getopt.texi (getopt): Document the bug.
26657         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26658         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26659         Likewise.
26660
26661         getopt-posix: avoid spurious failure on Solaris
26662         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
26663         an indicator that setting optind=1 is sufficient for reset.
26664
26665         getopt-posix: avoid spurious failure on FreeBSD
26666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
26667         in POSIX mode, since the m4 test uses it.
26668
26669         gnulib-tool: silence warning on BSD sh
26670         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
26671
26672 2010-04-13  Jim Meyering  <meyering@redhat.com>
26673
26674         doc: users.txt: GNU patch now uses gnulib
26675         * users.txt: Add patch.
26676
26677 2010-04-12  Jim Meyering  <meyering@redhat.com>
26678
26679         maint.mk: generate more concise timing data for syntax-check rules
26680         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
26681         " done" from each line that reports a syntax-check test duration.
26682
26683 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
26684
26685         git-version-gen: use "git update-index..." rather than "git status"
26686         * build-aux/git-version-gen: Use git update-index --refresh, not
26687         "git status".  With some versions of git, "git status" would fail
26688         to update the index and result in an unwarranted "-dirty" suffix.
26689
26690 2010-04-11  Jim Meyering  <meyering@redhat.com>
26691
26692         openat: correct formatting (no semantic change)
26693         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
26694         Suggested by Bruno Haible.
26695
26696 2010-04-11  Bruno Haible  <bruno@clisp.org>
26697
26698         Stricter declaration checking in testdirs.
26699         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26700         If for_tests is true, augment AM_CPPFLAGS to define
26701         GNULIB_STRICT_CHECKING.
26702         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
26703         GNULIB_STRICT_CHECKING is defined, verify that the function is
26704         declared.
26705
26706 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
26707             Bruno Haible  <bruno@clisp.org>
26708
26709         libunistring: Improve configure output.
26710         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
26711         Don't say "consider installing GNU libunistring" when checking again
26712         with libiconv.
26713
26714 2010-04-11  Bruno Haible  <bruno@clisp.org>
26715
26716         libunistring: Correct value of $LTLIBUNISTRING.
26717         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
26718         correct the value of $LTLIBUNISTRING.
26719
26720 2010-04-11  Bruno Haible  <bruno@clisp.org>
26721
26722         havelib: Add static libraries to LIBS in the right order.
26723         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
26724         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
26725
26726 2010-04-11  Bruno Haible  <bruno@clisp.org>
26727
26728         libunistring: Detect libunistring also when it depends on libiconv.
26729         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
26730         the second AC_LIB_HAVE_LINKFLAGS invocation.
26731
26732 2010-04-11  James Youngman  <jay@gnu.org>
26733
26734         close-stream: declare local scalars to be "const"
26735         * lib/close-stream.c (close_stream): Make boolean variables const
26736         to document the fact that we set but do not change them.
26737
26738 2010-04-11  Bruno Haible  <bruno@clisp.org>
26739
26740         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
26741
26742 2010-04-11  Jim Meyering  <meyering@redhat.com>
26743
26744         maint.mk: don't include dist-check.mk
26745         * top/maint.mk: Remove bogus include directive.
26746
26747         maint.mk: improve empty-line-at-EOF check
26748         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
26749         solution, rather than tail+Perl-based one.  The latter would read
26750         a few kilobytes from the end of each file, and did not handle empty
26751         files properly.
26752
26753         maint.mk: print the elapsed time for each syntax-check rule
26754         * top/maint.mk (sc_m_rules_): Save start time in a file.
26755         (sc_z_rules_): New rules: remove temp file and print elapsed time.
26756         (local-check): Interpose the .z rules
26757
26758 2010-04-11  Jim Meyering  <meyering@redhat.com>
26759
26760         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
26761         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
26762         empty file with one that ends in an empty line.
26763
26764 2010-04-10  Bruno Haible  <bruno@clisp.org>
26765
26766         mkdir: Make it work on mingw64.
26767         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
26768         * lib/mkdir.c: Update comment.
26769         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
26770
26771 2010-04-10  Bruno Haible  <bruno@clisp.org>
26772
26773         Don't override improved macro from newer autoconf.
26774         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
26775         autoconf >= 2.62.
26776         Reported by Joel E. Denny <jdenny@clemson.edu>.
26777
26778 2010-04-10  Jim Meyering  <meyering@redhat.com>
26779
26780         maint.mk: new syntax-check rule: prohibit empty lines at end of file
26781         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
26782
26783         maint.mk: correct a diagnostic
26784         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
26785         in diagnostic; now use $prohibit.
26786
26787 2010-04-10  Bruno Haible  <address@hidden>
26788
26789         fchownat: Fix a C++ test error on Solaris 8.
26790         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
26791         the function does not exist.
26792
26793 2010-04-10  Bruno Haible  <bruno@clisp.org>
26794
26795         vasnprintf: Add more tests.
26796         * tests/test-vasnprintf-posix.c: Include <errno.h>.
26797         (test_function): Test converting an invalid wide string.
26798
26799         vasnprintf: Correct handling of unconvertible wide string arguments.
26800         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
26801         VASNPRINTF.
26802         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
26803         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
26804         smaller than the expected maximum need for the directive. Set errno to
26805         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
26806         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
26807         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
26808         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
26809         * modules/vasnprintf (Files): Add m4/printf.m4.
26810         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26811
26812 2010-04-10  Bruno Haible  <bruno@clisp.org>
26813
26814         vasnprintf: Fix crash in %ls directive.
26815         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
26816         string is passed as argument to %ls, with no precision and no width.
26817         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26818
26819 2010-04-10  Bruno Haible  <bruno@clisp.org>
26820
26821         vasnprintf: Fix multiple test failures on mingw.
26822         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
26823         _snprintf, or snwprintf, not _snwprintf.
26824
26825 2010-04-10  Bruno Haible  <bruno@clisp.org>
26826
26827         write: Fix a C++ test error on mingw.
26828         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
26829
26830 2010-04-10  Bruno Haible  <bruno@clisp.org>
26831
26832         vasnprintf test: Reduce code duplication.
26833         * tests/test-vasnprintf.c (test_function): New function, extracted from
26834         test_vasnprintf.
26835         (test_vasnprintf, test_asnprintf): Invoke it.
26836
26837 2010-04-10  Bruno Haible  <bruno@clisp.org>
26838
26839         strnlen: Fix warning in C++ mode on MacOS X.
26840         * lib/string.in.h (strnlen): Use the modern idiom.
26841         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
26842         defining strnlen as a macro already in <config.h>.
26843         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26844         REPLACE_STRNLEN.
26845         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
26846         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26847
26848 2010-04-08  James Youngman  <jay@gnu.org>
26849
26850         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
26851         the example.
26852
26853 2010-04-09  Jim Meyering  <meyering@redhat.com>
26854
26855         maint.mk: print better diagnostic when there is no $(_hv_file)
26856         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
26857         announce that when $(_hv_file) (aka help-version) does not exist.
26858
26859         init.sh: run tr in the "C" locale to avoid multibyte interpretation
26860         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
26861         not try to interpret its random input bytes.  Jarno Rajahalme reported
26862         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
26863         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
26864         (mktempd_): Likewise, just in case.
26865
26866         ftruncate: add two years to projected module removal date: 2012
26867         * m4/ftruncate.m4: Adjust comments.
26868
26869         ftruncate: mark module as obsolete; even MinGW provides it, now
26870         * modules/ftruncate (Status): Obsolete.
26871         (Notice): Say that.
26872         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
26873         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
26874
26875 2010-04-08  Bruno Haible  <bruno@clisp.org>
26876
26877         Fix side effects from tests-related modules.
26878         * modules/dprintf-posix (Comment): New section.
26879         * modules/fprintf-posix (Comment): Likewise.
26880         * modules/obstack-printf-posix (Comment): Likewise.
26881         * modules/printf-posix (Comment): Likewise.
26882         * modules/snprintf-posix (Comment): Likewise.
26883         * modules/sprintf-posix (Comment): Likewise.
26884         * modules/vasnprintf-posix (Comment): Likewise.
26885         * modules/vasprintf-posix (Comment): Likewise.
26886         * modules/vdprintf-posix (Comment): Likewise.
26887         * modules/vfprintf-posix (Comment): Likewise.
26888         * modules/vprintf-posix (Comment): Likewise.
26889         * modules/vsnprintf-posix (Comment): Likewise.
26890         * modules/vsprintf-posix (Comment): Likewise.
26891         * modules/xprintf-posix (Comment): Likewise.
26892         * modules/xvasprintf-posix (Comment): Likewise.
26893         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
26894         * modules/floorf-tests (Depends-on): Likewise.
26895         * modules/round-tests (Depends-on): Likewise.
26896         * modules/roundf-tests (Depends-on): Likewise.
26897         * modules/trunc-tests (Depends-on): Likewise.
26898         * modules/truncf-tests (Depends-on): Likewise.
26899         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
26900         'fprintf-posix' module is not present.
26901         * tests/test-floorf2.c (check): Likewise.
26902         * tests/test-trunc2.c (check): Likewise.
26903         * tests/test-truncf2.c (check): Likewise.
26904         * tests/test-round2.c (equal): Likewise.
26905         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26906
26907 2010-04-07  Karl Berry  <karl@gnu.org>
26908
26909         * config/srclist.txt,
26910         * config/srclistvars.sh,
26911         * config/srclist-update: doc fixes.
26912
26913 2010-04-07  Jim Meyering  <meyering@redhat.com>
26914
26915         maint.mk: add a PATH crosschecking syntax-check rule
26916         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
26917         Useful if you use a test like the one in help-version (coreutils,
26918         diffutils, grep, gzip) that ensures $(VERSION) matches what is
26919         printed by prog --version.
26920
26921 2010-04-06  Bruno Haible  <bruno@clisp.org>
26922
26923         Fix link error on mingw.
26924         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
26925         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
26926
26927 2010-04-06  Bruno Haible  <bruno@clisp.org>
26928
26929         Assume rmdir exists.
26930         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
26931
26932 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
26933
26934         doc: update users.txt
26935         * users.txt: Add gcal.
26936
26937 2010-04-06  Jim Meyering  <meyering@redhat.com>
26938
26939         init.sh: simply unset TMPDIR rather than risking env -i
26940         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
26941         although it probably works fine on all Unix-based systems, some
26942         systems (Cygwin?) cannot tolerate a totally cleared environment.
26943         Suggestion from Eric Blake.
26944
26945 2010-04-06  Jim Meyering  <meyering@redhat.com>
26946
26947         init.sh: portability fix: use env's POSIX-specified -i option not -u
26948         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
26949         than unportable env -u.  Solaris 5.11's env lacks support for -u.
26950
26951 2010-04-05  Bruno Haible  <bruno@clisp.org>
26952
26953         btowc: Work around Cygwin 1.7.2 bug.
26954         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
26955         does not map NUL to 0.
26956         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
26957
26958 2010-04-05  Bruno Haible  <bruno@clisp.org>
26959
26960         Make the multithread modules work on Cygwin 1.7.2.
26961         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
26962         imported symbols can be declared weak, so that it returns "no" on
26963         Cygwin 1.7.2.
26964
26965 2010-04-05  Bruno Haible  <bruno@clisp.org>
26966
26967         Use the module 'strncat'.
26968         * modules/unistr/u8-strncat (Depends-on): Add strncat.
26969
26970         Tests for module 'strncat'.
26971         * modules/strncat-tests: New file.
26972         * tests/test-strncat.c: New file.
26973
26974         New module 'strncat'.
26975         * lib/string.in.h (strncat): New declaration.
26976         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
26977         * m4/strncat.m4: New file, based on m4/memchr.m4.
26978         * modules/strncat: New file.
26979         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
26980         is declared.
26981         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
26982         REPLACE_STRNCAT.
26983         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
26984         REPLACE_STRNCAT.
26985         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
26986         module.
26987         * tests/test-string-c++.cc: Check signature of strncat.
26988
26989 2010-04-05  Jim Meyering  <meyering@redhat.com>
26990
26991         xstrtoumax-tests: convert to use init.sh
26992         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
26993         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26994         Use Exit, not exit.
26995         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26996
26997         xstrtoimax-tests: convert to use init.sh
26998         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
26999         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27000         Use Exit, not exit.
27001         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27002
27003 2010-04-05  Bruno Haible  <bruno@clisp.org>
27004
27005         sys_socket: Avoid #define replacements in C++ mode.
27006         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
27007         warning to the function if possible, rather than #defining the symbol
27008         to a dysfunctional alias.
27009
27010 2010-04-05  Bruno Haible  <bruno@clisp.org>
27011
27012         fseeko: Fix C++ test error on mingw.
27013         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
27014         gl_FUNC_FSEEKO.
27015         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
27016         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
27017         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
27018         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
27019
27020 2010-04-05  Bruno Haible  <bruno@clisp.org>
27021
27022         duplocale: Improve test output.
27023         * tests/test-duplocale.c (main): Print reason for skipped test.
27024
27025 2010-04-05  Bruno Haible  <bruno@clisp.org>
27026
27027         Assume rmdir exists.
27028         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
27029         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
27030
27031 2010-04-05  Bruno Haible  <bruno@clisp.org>
27032
27033         Fix link error on Solaris 8 with cc.
27034         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
27035
27036 2010-04-05  Bruno Haible  <bruno@clisp.org>
27037
27038         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27039         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
27040
27041 2010-04-05  Bruno Haible  <bruno@clisp.org>
27042
27043         vasprintf: Update documentation.
27044         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
27045
27046 2010-04-05  Bruno Haible  <bruno@clisp.org>
27047
27048         ptsname: Improve test.
27049         * tests/test-ptsname.c (main): Also try the various master names of BSD
27050         systems.
27051
27052 2010-04-05  Bruno Haible  <bruno@clisp.org>
27053
27054         memchr: Avoid a possible C++ test error.
27055         * lib/string.in.h (memchr): Provide declaration if function is missing.
27056         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
27057         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
27058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
27059         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
27060
27061 2010-04-05  Bruno Haible  <bruno@clisp.org>
27062
27063         strtok_r: Improve idiom.
27064         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
27065         AC_LIBOBJ is used.
27066
27067 2010-04-05  Bruno Haible  <bruno@clisp.org>
27068
27069         strdup: Improve idiom.
27070         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
27071         AC_LIBOBJ is used.
27072         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
27073         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
27074         when AC_LIBOBJ is used.
27075
27076 2010-04-05  Bruno Haible  <bruno@clisp.org>
27077
27078         mbsinit, mbrtowc, wcrtomb: Improve idioms.
27079         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
27080         don't set REPLACE_MBSINIT to 1.
27081         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
27082         don't set REPLACE_MBRTOWC to 1.
27083         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
27084         exist, don't set REPLACE_MBSRTOWCS to 1.
27085         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
27086         exist, don't set REPLACE_MBSNRTOWCS to 1.
27087         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
27088         don't set REPLACE_WCRTOMB to 1.
27089         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
27090         exist, don't set REPLACE_WCSRTOMBS to 1.
27091         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
27092         exist, don't set REPLACE_WCSNRTOMBS to 1.
27093
27094 2010-04-05  Bruno Haible  <bruno@clisp.org>
27095
27096         ldexpl: Improve idiom.
27097         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
27098         make sure to set HAVE_DECL_LDEXPL to 0.
27099
27100 2010-04-05  Jim Meyering  <meyering@redhat.com>
27101
27102         xstrtol-tests: convert to use init.sh
27103         * modules/xstrtol-tests (Files): Add tests/init.sh.
27104         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27105         Use Exit, not exit.
27106         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27107
27108         atexit-tests: convert to use init.sh
27109         * modules/atexit-tests (Files): Add tests/init.sh.
27110         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27111         Use Exit, not exit.
27112         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27113
27114         init.sh: fix typo
27115         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
27116
27117         init.sh: make it easier for a test script to write to the tty, ...
27118         when using automake's parallel-tests mode.
27119         * tests/init.sh (stderr_fileno_): Define overridable variable.
27120         (warn_): New function, to use it.
27121         (fail_, skip_, framework_failure_): Use warn_.
27122
27123 2010-04-04  Bruno Haible  <bruno@clisp.org>
27124
27125         btowc: Avoid warning.
27126         * lib/btowc.c: Include <stdlib.h>.
27127         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
27128
27129 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27130             Bruno Haible  <bruno@clisp.org>
27131
27132         wchar: Port to NetBSD 1.5.
27133         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
27134         * lib/wctype.in.h (WEOF): Likewise.
27135
27136 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27137             Bruno Haible  <bruno@clisp.org>
27138
27139         Port extended stdio to NetBSD 1.5.
27140         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
27141         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
27142         older.
27143
27144 2010-04-04  Bruno Haible  <bruno@clisp.org>
27145
27146         string: Remove unused substitution.
27147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27148         HAVE_DECL_STRERROR.
27149         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
27150
27151 2010-04-04  Bruno Haible  <bruno@clisp.org>
27152
27153         strtod: Avoid a possible C++ test error.
27154         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
27155         set REPLACE_STRTOD.
27156
27157 2010-04-04  Bruno Haible  <bruno@clisp.org>
27158
27159         strerror: Update documentation.
27160         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
27161
27162 2010-04-04  Bruno Haible  <bruno@clisp.org>
27163
27164         stdio: Fix some C++ test errors on Solaris 8 with GCC.
27165         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
27166         _GL_CXXALIAS_SYS_CAST.
27167
27168 2010-04-04  Bruno Haible  <bruno@clisp.org>
27169
27170         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27171         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
27172         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
27173         REPLACE_FREXPL to 1.
27174         * doc/posix-functions/frexpl.texi: Update documentation.
27175
27176 2010-04-04  Bruno Haible  <bruno@clisp.org>
27177
27178         math: Fix some C++ test errors on Solaris 8 and Cygwin.
27179         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
27180
27181 2010-04-04  Bruno Haible  <bruno@clisp.org>
27182
27183         Implement nanosleep for native Windows.
27184         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
27185
27186 2010-04-04  Bruno Haible  <bruno@clisp.org>
27187
27188         math: Fix some C++ test errors on Solaris 8.
27189         * lib/math.in.h (truncf, trunc): Use simpler idiom.
27190
27191 2010-04-04  Bruno Haible  <bruno@clisp.org>
27192
27193         math: Fix some C++ test errors on Cygwin.
27194         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
27195         truncl): Provide declaration if the system does not have it.
27196         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
27197         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
27198         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
27199         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
27200         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
27201         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
27202         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
27203         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
27204         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
27205         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
27206         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
27207         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
27208         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
27209         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
27210         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
27211         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
27212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
27213         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27214         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27215         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
27216         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27217         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27218
27219 2010-04-04  Bruno Haible  <bruno@clisp.org>
27220
27221         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
27222         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
27223         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
27224         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27225         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27226         * m4/isinf.m4 (gl_ISINF): Likewise.
27227         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27228
27229 2010-04-04  Bruno Haible  <bruno@clisp.org>
27230
27231         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
27232         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27233
27234 2010-04-04  Bruno Haible  <bruno@clisp.org>
27235
27236         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
27237         * modules/tmpfile (configure.ac): Update.
27238
27239         tmpfile: Fix C++ test error on mingw.
27240         * lib/stdio.in.h (tmpfile): New declaration.
27241         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
27242         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
27243         * modules/tmpfile (Depends-on): Add stdio.
27244         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27245         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
27246         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
27247         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
27248         REPLACE_TMPFILE.
27249         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
27250
27251 2010-04-04  Bruno Haible  <bruno@clisp.org>
27252
27253         ioctl: Fix C++ test error on mingw.
27254         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
27255         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
27256         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
27257
27258 2010-04-03  Bruno Haible  <bruno@clisp.org>
27259
27260         wcwidth: Fix C++ test error on mingw.
27261         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
27262         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
27263         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
27264
27265 2010-04-03  Bruno Haible  <bruno@clisp.org>
27266
27267         nanosleep: Fix C++ test error on mingw.
27268         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
27269         * lib/time.in.h (nanosleep): Use modern idiom.
27270         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
27271         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
27272         REPLACE_NANOSLEEP to 1.
27273         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
27274         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
27275
27276 2010-04-03  Bruno Haible  <bruno@clisp.org>
27277
27278         strptime: Fix C++ test error on mingw.
27279         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
27280         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
27281         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
27282         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
27283         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
27284         not REPLACE_STRPTIME.
27285         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
27286         REPLACE_STRPTIME.
27287
27288 2010-04-03  Bruno Haible  <bruno@clisp.org>
27289
27290         timegm: Fix C++ test error on mingw.
27291         * lib/time.in.h (timegm): Use modern idiom.
27292         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
27293         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
27294         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
27295         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
27296
27297 2010-04-03  Bruno Haible  <bruno@clisp.org>
27298
27299         timegm: Assume declaration if function exists.
27300         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
27301         if it exists. Don't clobber ac_cv_func_timegm.
27302
27303 2010-04-03  Bruno Haible  <bruno@clisp.org>
27304
27305         time_r: Fix C++ test error on mingw.
27306         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
27307         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
27308         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
27309         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
27310         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
27311
27312 2010-04-03  Bruno Haible  <bruno@clisp.org>
27313
27314         time_r: Minor updates.
27315         * modules/time_r (Description): Mention the provided functions.
27316         * lib/time_r.c: Don't include <string.h>.
27317         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
27318         * doc/posix-functions/localtime_r.texi: Likewise.
27319
27320 2010-04-03  Bruno Haible  <bruno@clisp.org>
27321
27322         time: Fix regression introduced on 2010-03-08.
27323         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
27324         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
27325
27326 2010-04-03  Jim Meyering  <meyering@redhat.com>
27327
27328         maint.mk: don't silently disable project-specific syntax-check rules
27329         * top/maint.mk (_prohibit_regexp): Define, to help people realize
27330         that they need to convert their project-specific syntax-check rules
27331         to use the new _sc_search_regexp.
27332
27333 2010-04-03  Bruno Haible  <bruno@clisp.org>
27334
27335         fchdir: Fix regression introduced on 2010-03-08.
27336         * lib/unistd.in.h (fchdir): Fix declaration.
27337         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
27338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
27339         REPLACE_FCHDIR.
27340         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
27341         REPLACE_FCHDIR.
27342
27343 2010-04-03  Bruno Haible  <bruno@clisp.org>
27344
27345         getpagesize: Fix C++ test error on mingw.
27346         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
27347         system does not declare the function.
27348         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
27349         declared.
27350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27351         HAVE_DECL_GETPAGESIZE.
27352         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
27353
27354 2010-04-03  Bruno Haible  <bruno@clisp.org>
27355
27356         stdio: Make C++ tests work on mingw.
27357         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
27358         does not declare the function.
27359
27360 2010-04-03  Bruno Haible  <bruno@clisp.org>
27361
27362         ftello: Fix C++ test error on mingw.
27363         * lib/stdio.in.h (ftello): Use modern idiom.
27364         * lib/ftello.c (ftello): Renamed from rpl_ftello.
27365         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
27366         is missing and that it needs to be replaced.
27367         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
27368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
27369         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
27370
27371 2010-04-03  Bruno Haible  <bruno@clisp.org>
27372
27373         fseeko: Fix C++ test error on mingw.
27374         * lib/stdio.in.h (fseeko): Use modern idiom.
27375         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
27376         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
27377         is missing and that it needs to be replaced.
27378         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
27379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
27380         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
27381
27382 2010-04-03  Bruno Haible  <bruno@clisp.org>
27383
27384         mkstemp: Fix C++ test error on mingw.
27385         * lib/stdlib.in.h (mkstemp): Use modern idiom.
27386         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
27387         function is missing and that it needs to be replaced.
27388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
27389         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
27390
27391 2010-04-03  Bruno Haible  <bruno@clisp.org>
27392
27393         stpncpy: Fix C++ test error on mingw.
27394         * lib/string.in.h (stpncpy): Use modern idiom.
27395         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
27396         function is missing and that it needs to be replaced.
27397         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27398         REPLACE_STPNCPY.
27399         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
27400
27401 2010-04-03  Bruno Haible  <bruno@clisp.org>
27402
27403         sys_stat: Fix C++ test error on mingw.
27404         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
27405         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
27406
27407 2010-04-03  Bruno Haible  <bruno@clisp.org>
27408
27409         pty: Update doc.
27410         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
27411
27412 2010-04-03  Bruno Haible  <bruno@clisp.org>
27413
27414         unistd: Fix C++ test error on mingw.
27415         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
27416
27417 2010-04-03  Bruno Haible  <bruno@clisp.org>
27418
27419         Update doc regarding mingw.
27420         * doc/glibc-functions/openpty.texi: Update regarding mingw.
27421         * doc/glibc-functions/login_tty.texi: Likewise.
27422         * doc/glibc-functions/forkpty.texi: Likewise.
27423
27424 2010-04-03  Bruno Haible  <bruno@clisp.org>
27425
27426         stdlib: Avoid compilation failure of c-strtold on mingw.
27427         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
27428
27429 2010-04-03  Bruno Haible  <bruno@clisp.org>
27430
27431         locale: Make C++ tests work on Cygwin and mingw.
27432         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
27433         cannot provide the function.
27434         Reported by Simon Josefsson.
27435
27436 2010-04-03  Bruno Haible  <bruno@clisp.org>
27437
27438         localename: Port to MacOS X 10.6.
27439         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
27440         memory layout of the locales in MacOS X 10.6 as well.
27441         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
27442
27443 2010-04-02  Bruno Haible  <bruno@clisp.org>
27444
27445         gnulib-tool: Ensure that long-running tests are executed last.
27446         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
27447         running tests after the one for the other tests.
27448
27449 2010-04-02  Bruno Haible  <bruno@clisp.org>
27450
27451         gnulib-tool: Ensure the tests in the main directory are executed first.
27452         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
27453         start with the current directory.
27454
27455 2010-04-02  Bruno Haible  <bruno@clisp.org>
27456
27457         Tests for module 'havelib', moved here from GNU gettext.
27458         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
27459         modifications.
27460         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
27461         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
27462         with modifications.
27463         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
27464         modifications.
27465         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
27466         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
27467         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
27468         with modifications.
27469         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
27470         with modifications.
27471         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
27472         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
27473         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
27474         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
27475         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
27476         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
27477         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
27478         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
27479         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
27480         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
27481         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
27482         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
27483         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
27484         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
27485         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
27486         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
27487         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
27488         with modifications.
27489         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
27490         with modifications.
27491         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
27492         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
27493         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
27494         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
27495         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
27496         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
27497         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
27498         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
27499         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
27500         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
27501         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
27502         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
27503         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
27504         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
27505         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
27506         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
27507         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
27508         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
27509         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
27510         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
27511         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
27512         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
27513         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
27514         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
27515         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
27516         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
27517         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
27518         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
27519         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
27520         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
27521         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
27522         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
27523         * tests/havelib/rpathx/rpathx.c: New file, from
27524         gettext/autoconf-lib-link.
27525         * tests/havelib/rpathx/Makefile.am: New file, from
27526         gettext/autoconf-lib-link.
27527         * tests/havelib/rpathx/configure.ac: New file, from
27528         gettext/autoconf-lib-link with modifications.
27529         * tests/havelib/rpathy/rpathy.c: New file, from
27530         gettext/autoconf-lib-link.
27531         * tests/havelib/rpathy/Makefile.am: New file, from
27532         gettext/autoconf-lib-link.
27533         * tests/havelib/rpathy/configure.ac: New file, from
27534         gettext/autoconf-lib-link with modifications.
27535         * tests/havelib/rpathz/rpathz.c: New file, from
27536         gettext/autoconf-lib-link.
27537         * tests/havelib/rpathz/Makefile.am: New file, from
27538         gettext/autoconf-lib-link.
27539         * tests/havelib/rpathz/configure.ac: New file, from
27540         gettext/autoconf-lib-link with modifications.
27541         * tests/havelib/rpathlx/usex.c: New file, from
27542         gettext/autoconf-lib-link.
27543         * tests/havelib/rpathlx/Makefile.am: New file, from
27544         gettext/autoconf-lib-link.
27545         * tests/havelib/rpathlx/configure.ac: New file, from
27546         gettext/autoconf-lib-link with modifications.
27547         * tests/havelib/rpathly/usey.c: New file, from
27548         gettext/autoconf-lib-link.
27549         * tests/havelib/rpathly/Makefile.am: New file, from
27550         gettext/autoconf-lib-link.
27551         * tests/havelib/rpathly/configure.ac: New file, from
27552         gettext/autoconf-lib-link with modifications.
27553         * tests/havelib/rpathlz/usez.c: New file, from
27554         gettext/autoconf-lib-link.
27555         * tests/havelib/rpathlz/Makefile.am: New file, from
27556         gettext/autoconf-lib-link.
27557         * tests/havelib/rpathlz/configure.ac: New file, from
27558         gettext/autoconf-lib-link with modifications.
27559         * tests/havelib/rpathlyx/usey.c: New file, from
27560         gettext/autoconf-lib-link.
27561         * tests/havelib/rpathlyx/Makefile.am: New file, from
27562         gettext/autoconf-lib-link.
27563         * tests/havelib/rpathlyx/configure.ac: New file, from
27564         gettext/autoconf-lib-link with modifications.
27565         * tests/havelib/rpathlzyx/usez.c: New file, from
27566         gettext/autoconf-lib-link.
27567         * tests/havelib/rpathlzyx/Makefile.am: New file, from
27568         gettext/autoconf-lib-link.
27569         * tests/havelib/rpathlzyx/configure.ac: New file, from
27570         gettext/autoconf-lib-link with modifications.
27571         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
27572         with modifications.
27573
27574 2010-04-02  Bruno Haible  <bruno@clisp.org>
27575
27576         gnulib-tool: Create distributed built sources also for the tests.
27577         * gnulib-tool (func_create_testdir): Also generate distributed built
27578         sources in the tests directory.
27579
27580 2010-04-02  Bruno Haible  <bruno@clisp.org>
27581
27582         gnulib-tool: Obey user's environment variables.
27583         * gnulib-tool (func_create_testdir): When creating built sources,
27584         respect the environment variables for autoconf, automake, etc. given by
27585         the user.
27586
27587 2010-04-02  Bruno Haible  <bruno@clisp.org>
27588
27589         gnulib-tool: Provide the value of --m4-base to modules.
27590         * gnulib-tool (func_import, func_create_testdir): Emit a definition
27591         of gl_m4_base.
27592
27593 2010-04-02  Eric Blake  <eblake@redhat.com>
27594
27595         maint.mk: fix some fallout
27596         * NEWS: Document the incompatible change, and its effect on cfg.mk.
27597         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
27598
27599 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27600
27601         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
27602         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
27603         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
27604         (sc_cast_of_x_alloc_return_value): Likewise.
27605         (sc_cast_of_alloca_return_value): Likewise.
27606         (sc_space_tab): Likewise.
27607         (sc_prohibit_atoi_atof): Likewise.
27608         (sc_prohibit_magic_number_exit): Likewise.
27609         (sc_error_exit_success): Likewise.
27610         (sc_file_system): Likewise.
27611         (sc_prohibit_have_config_h): Likewise.
27612         (sc_require_config_h): Likewise.
27613         (sc_prohibit_HAVE_MBRTOWC): Likewise.
27614         (sc_obsolete_symbols): Likewise.
27615         (sc_changelog): Likewise.
27616         (sc_program_name): Likewise.
27617         (sc_the_the): Likewise.
27618         (sc_trailing_blank): Likewise.
27619         (sc_two_space_separator_in_usage): Likewise.
27620         (sc_useless_cpp_parens): Likewise.
27621         (sc_GPL_version): Likewise.
27622         (sc_GFDL_version): Likewise.
27623         (sc_texinfo_acronym): Likewise.
27624         (sc_prohibit_cvs_keyword): Likewise.
27625         (sc_prohibit_stat_st_blocks): Likewise.
27626         (sc_prohibit_S_IS_definition): Likewise.
27627         (sc_redundant_const): Likewise.
27628         (sc_makefile_TAB_only_indentation): Likewise.
27629         (sc_m4_quote_check): Likewise.
27630         (sc_makefile_path_separator_check): Likewise.
27631         (sc_copyright_check): Likewise.
27632         (sc_Wundef_boolean): Likewise.
27633         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27634
27635         maint.mk: match 0 or more whitespace-before-function-call '('
27636         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
27637         that have zero or two-and-more spaces between the function name
27638         and the open parenthesis.
27639         (sc_error_message_warn_fatal): Likewise.
27640         (sc_error_message_uppercase): Likewise.
27641         (sc_error_message_period): Likewise.
27642
27643 2010-03-31  Eric Blake  <eblake@redhat.com>
27644
27645         maint.mk: check for [ as well as test
27646         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
27647         Based on a libvirt report by Matthias Bolte.
27648
27649         gnumakefile: don't squelch _version output
27650         * top/GNUmakefile (_version): Create one-shot dependency rather
27651         than using $(shell) when version must be regenerated.
27652         (_autoreconf): Run verbosely, by default.
27653
27654         sys_time: avoid compiler warnings
27655         * lib/sys_time.in.h (includes): Ensure gcc pragma is
27656         unconditional, fixing regression from 2010-03-29.
27657         Reported by Simon Josefsson.
27658
27659 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27660
27661         maint.mk: s/_header_without_use/_sc_header_without_use/
27662         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
27663         (sc_prohibit_assert_without_use): Use the new name.
27664         (sc_prohibit_close_stream_without_use): Likewise.
27665         (sc_prohibit_getopt_without_use): Likewise.
27666         (sc_prohibit_quotearg_without_use): Likewise.
27667         (sc_prohibit_quote_without_use): Likewise.
27668         (sc_prohibit_long_options_without_use): Likewise.
27669         (sc_prohibit_inttostr_without_use): Likewise.
27670         (sc_prohibit_ignore_value_without_use): Likewise.
27671         (sc_prohibit_error_without_use): Likewise.
27672         (sc_prohibit_xalloc_without_use): Likewise.
27673         (sc_prohibit_hash_without_use): Likewise.
27674         (sc_prohibit_hash_pjw_without_use): Likewise.
27675         (sc_prohibit_safe_read_without_use): Likewise.
27676         (sc_prohibit_argmatch_without_use): Likewise.
27677         (sc_prohibit_canonicalize_without_use): Likewise.
27678         (sc_prohibit_root_dev_ino_without_use): Likewise.
27679         (sc_prohibit_openat_without_use): Likewise.
27680         (sc_prohibit_c_ctype_without_use): Likewise.
27681         (sc_prohibit_signal_without_use): Likewise.
27682         (sc_prohibit_intprops_without_use): Likewise.
27683
27684 2010-03-30  Eric Blake  <eblake@redhat.com>
27685
27686         maint: improve module indicators
27687         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
27688         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
27689         columns, and avoid extra macro expansion.
27690
27691         fdopendir: work around FreeBSD bug
27692         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27693         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
27694         * modules/dirent (Makefile.am): Substitute it.
27695         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
27696         declaration.
27697         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
27698         fix.
27699         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27700
27701 2010-03-29  Bruno Haible  <bruno@clisp.org>
27702
27703         Emit #pragma system_header after the inclusion guard, not before.
27704         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
27705         guard that spans the entire file, not before. This enables an
27706         optimization in GCC's preprocessor.
27707         * lib/ctype.in.h: Likewise.
27708         * lib/dirent.in.h: Likewise.
27709         * lib/errno.in.h: Likewise.
27710         * lib/float.in.h: Likewise.
27711         * lib/getopt.in.h: Likewise.
27712         * lib/iconv.in.h: Likewise.
27713         * lib/langinfo.in.h: Likewise.
27714         * lib/locale.in.h: Likewise.
27715         * lib/math.in.h: Likewise.
27716         * lib/netdb.in.h: Likewise.
27717         * lib/netinet_in.in.h: Likewise.
27718         * lib/pty.in.h: Likewise.
27719         * lib/sched.in.h: Likewise.
27720         * lib/se-selinux.in.h: Likewise.
27721         * lib/search.in.h: Likewise.
27722         * lib/spawn.in.h: Likewise.
27723         * lib/stdarg.in.h: Likewise.
27724         * lib/stdint.in.h: Likewise.
27725         * lib/string.in.h: Likewise.
27726         * lib/strings.in.h: Likewise.
27727         * lib/sys_file.in.h: Likewise.
27728         * lib/sys_ioctl.in.h: Likewise.
27729         * lib/sys_time.in.h: Likewise.
27730         * lib/sys_times.in.h: Likewise.
27731         * lib/sys_utsname.in.h: Likewise.
27732         * lib/sys_wait.in.h: Likewise.
27733         * lib/sysexits.in.h: Likewise.
27734         * lib/wctype.in.h: Likewise.
27735
27736 2010-03-28  James Youngman  <jay@gnu.org>
27737
27738         save-cwd: don't leak a file descriptor when the caller execs.
27739         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
27740         saved file descriptor.
27741         * modules/save-cwd (Depends-on): Depend on cloexec.
27742
27743 2010-03-29  Bruno Haible  <bruno@clisp.org>
27744
27745         Remove vestiges of fts-lgpl module.
27746         * lib/fts_.h: Assume GNULIB_FTS is 1.
27747         * lib/fts.c: Likewise.
27748         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27749
27750 2010-03-28  Bruno Haible  <bruno@clisp.org>
27751
27752         Fix definition of tests witness macro.
27753         * gnulib-tool (func_import): Fix definition of witness macro.
27754
27755 2010-03-28  Bruno Haible  <bruno@clisp.org>
27756
27757         Fix ioctl's protoype on glibc systems.
27758         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
27759         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
27760         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
27761         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
27762         signature. If not, arrange to replace the ioctl function.
27763         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27764         REPLACE_IOCTL.
27765         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
27766         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
27767         Reported by Ludovic Courtès <ludo@gnu.org>.
27768
27769 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
27770
27771         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
27772         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
27773         made it so grep -r --include=GLOB* ... did not work.
27774
27775 2010-03-26  Jim Meyering  <meyering@redhat.com>
27776             Eric Blake  <eblake@redhat.com>
27777
27778         maint.mk: prohibit use of test's -o and -a operators
27779         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
27780
27781 2010-03-28  Bruno Haible  <bruno@clisp.org>
27782
27783         Remove unused GNULIB_XYZ macro definitions.
27784         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
27785         invocation.
27786
27787 2010-03-28  Bruno Haible  <bruno@clisp.org>
27788
27789         Mark privileged tests modules.
27790         * modules/idpriv-drop-tests (Status): New section.
27791         * modules/idpriv-droptemp-tests (Status): New section.
27792
27793 2010-03-28  Bruno Haible  <bruno@clisp.org>
27794
27795         Split C++ tests into separate tests modules.
27796         * modules/dirent-c++-tests: New file, extracted from
27797         modules/dirent-tests.
27798         * modules/dirent-tests: Depend on it.
27799         * modules/fcntl-h-c++-tests: New file, extracted from
27800         modules/fcntl-h-tests.
27801         * modules/fcntl-h-tests: Depend on it.
27802         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
27803         * modules/glob-tests: Depend on it.
27804         * modules/iconv-h-c++-tests: New file, extracted from
27805         modules/iconv-h-tests.
27806         * modules/iconv-h-tests: Depend on it.
27807         * modules/langinfo-c++-tests: New file, extracted from
27808         modules/langinfo-tests.
27809         * modules/langinfo-tests: Depend on it.
27810         * modules/locale-c++-tests: New file, extracted from
27811         modules/locale-tests.
27812         * modules/locale-tests: Depend on it.
27813         * modules/math-c++-tests: New file, extracted from modules/math-tests.
27814         * modules/math-tests: Depend on it.
27815         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
27816         * modules/pty-tests: Depend on it.
27817         * modules/search-c++-tests: New file, extracted from
27818         modules/search-tests.
27819         * modules/search-tests: Depend on it.
27820         * modules/signal-c++-tests: New file, extracted from
27821         modules/signal-tests.
27822         * modules/signal-tests: Depend on it.
27823         * modules/spawn-c++-tests: New file, extracted from
27824         modules/spawn-tests.
27825         * modules/spawn-tests: Depend on it.
27826         * modules/stdio-c++-tests: New file, extracted from
27827         modules/stdio-tests.
27828         * modules/stdio-tests: Depend on it.
27829         * modules/stdlib-c++-tests: New file, extracted from
27830         modules/stdlib-tests.
27831         * modules/stdlib-tests: Depend on it.
27832         * modules/string-c++-tests: New file, extracted from
27833         modules/string-tests.
27834         * modules/string-tests: Depend on it.
27835         * modules/sys_ioctl-c++-tests: New file, extracted from
27836         modules/sys_ioctl-tests.
27837         * modules/sys_ioctl-tests: Depend on it.
27838         * modules/sys_select-c++-tests: New file, extracted from
27839         modules/sys_select-tests.
27840         * modules/sys_select-tests: Depend on it.
27841         * modules/sys_socket-c++-tests: New file, extracted from
27842         modules/sys_socket-tests.
27843         * modules/sys_socket-tests: Depend on it.
27844         * modules/sys_stat-c++-tests: New file, extracted from
27845         modules/sys_stat-tests.
27846         * modules/sys_stat-tests: Depend on it.
27847         * modules/sys_time-c++-tests: New file, extracted from
27848         modules/sys_time-tests.
27849         * modules/sys_time-tests: Depend on it.
27850         * modules/time-c++-tests: New file, extracted from modules/time-tests.
27851         * modules/time-tests: Depend on it.
27852         * modules/unistd-c++-tests: New file, extracted from
27853         modules/unistd-tests.
27854         * modules/unistd-tests: Depend on it.
27855         * modules/wchar-c++-tests: New file, extracted from
27856         modules/wchar-tests.
27857         * modules/wchar-tests: Depend on it.
27858         * modules/wctype-c++-tests: New file, extracted from
27859         modules/wctype-tests.
27860         * modules/wctype-tests: Depend on it.
27861         Reported by Simon Josefsson.
27862
27863 2010-03-28  Bruno Haible  <bruno@clisp.org>
27864
27865         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
27866         * gnulib-tool (func_exists_module): New function, extracted from
27867         func_verify_module.
27868         (func_verify_module): Use it.
27869         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
27870         'foo' only if 'foo' exists.
27871         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
27872         module.
27873
27874 2010-03-28  Bruno Haible  <bruno@clisp.org>
27875
27876         gnulib-tool: Add support for special categories of tests.
27877         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
27878         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
27879         (func_usage): Document them.
27880         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
27881         inc_unportable_tests, inc_all_tests): New variables.
27882         (func_acceptable): Consider these variables.
27883         (func_modules_transitive_closure): Make it work when the 'Status' field
27884         consists of multiple words.
27885         (func_import): Store and restore the values of inc_cxx_tests,
27886         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
27887         inc_all_tests in gnulib-comp.m4.
27888         (func_create_testdir): Set inc_all_tests to true.
27889         * doc/gnulib.texi (Extra tests modules): New section.
27890         Suggested by Jim Meyering.
27891
27892 2010-03-28  Bruno Haible  <bruno@clisp.org>
27893
27894         ansi-c++-opt: Allow turning off the C++ build by default.
27895         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
27896         gl_CXX_CHOICE_DEFAULT_NO is defined.
27897         Requested by Eric Blake.
27898
27899 2010-03-28  Bruno Haible  <bruno@clisp.org>
27900
27901         unistd: Avoid #define replacements in C++ mode.
27902         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
27903         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
27904         setsockopt, shutdown, select): In C++, attach a warning to the function
27905         if possible, rather than #defining the symbol to a dysfunctional alias.
27906         Reported by John W. Eaton <jwe@gnu.org>.
27907
27908 2010-03-28  Bruno Haible  <bruno@clisp.org>
27909
27910         Fix link errors on mingw.
27911         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
27912         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
27913         $(LIBSOCKET).
27914         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
27915         $(LIBSOCKET).
27916
27917 2010-03-28  Bruno Haible  <bruno@clisp.org>
27918             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27919
27920         lib-ignore: Determine different options for different compilers.
27921         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
27922         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
27923         Add comments.
27924         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
27925         * NEWS: Mention the change.
27926
27927 2010-03-27  Bruno Haible  <bruno@clisp.org>
27928
27929         Remove unused GNULIB_XYZ macro definitions.
27930         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27931         * modules/fseek (configure.ac): Likewise.
27932         * modules/ioctl (configure.ac): Likewise.
27933         * modules/open (configure.ac): Likewise.
27934         * modules/stdlib-safer (configure.ac): Likewise.
27935
27936 2010-03-27  Bruno Haible  <bruno@clisp.org>
27937
27938         Add a remark about certain modules.
27939         * modules/malloc (Comment): New section.
27940         * modules/realloc (Comment): Likewise.
27941         * modules/sigpipe (Comment): Likewise.
27942
27943 2010-03-27  Bruno Haible  <bruno@clisp.org>
27944
27945         Resolve conflict between the two kinds of module indicators.
27946         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
27947         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
27948         * modules/canonicalize (configure.ac): Invoke
27949         gl_MODULE_INDICATOR_FOR_TESTS.
27950         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
27951         GNULIB_XYZ.
27952         * tests/test-dirent-c++.cc: Likewise.
27953         * tests/test-dirent-safer.c: Likewise.
27954         * tests/test-dup2.c: Likewise.
27955         * tests/test-fchdir.c: Likewise.
27956         * tests/test-fcntl-h-c++.cc: Likewise.
27957         * tests/test-getopt.c: Likewise.
27958         * tests/test-getopt.h: Likewise.
27959         * tests/test-langinfo-c++.cc: Likewise.
27960         * tests/test-locale-c++.cc: Likewise.
27961         * tests/test-math-c++.cc: Likewise.
27962         * tests/test-pty-c++.cc: Likewise.
27963         * tests/test-search-c++.cc: Likewise.
27964         * tests/test-signal-c++.cc: Likewise.
27965         * tests/test-spawn-c++.cc: Likewise.
27966         * tests/test-stdio-c++.cc: Likewise.
27967         * tests/test-stdlib-c++.cc: Likewise.
27968         * tests/test-string-c++.cc: Likewise.
27969         * tests/test-sys_ioctl-c++.cc: Likewise.
27970         * tests/test-sys_select-c++.cc: Likewise.
27971         * tests/test-sys_socket-c++.cc: Likewise.
27972         * tests/test-sys_stat-c++.cc: Likewise.
27973         * tests/test-sys_time-c++.cc: Likewise.
27974         * tests/test-time-c++.cc: Likewise.
27975         * tests/test-unistd-c++.cc: Likewise.
27976         * tests/test-wchar-c++.cc: Likewise.
27977         * tests/uninorm/test-u8-nfc.c: Likewise.
27978         * tests/uninorm/test-u8-nfd.c: Likewise.
27979         * tests/uninorm/test-u8-nfkc.c: Likewise.
27980         * tests/uninorm/test-u8-nfkd.c: Likewise.
27981         * tests/uninorm/test-u16-nfc.c: Likewise.
27982         * tests/uninorm/test-u16-nfd.c: Likewise.
27983         * tests/uninorm/test-u16-nfkc.c: Likewise.
27984         * tests/uninorm/test-u16-nfkd.c: Likewise.
27985         * tests/uninorm/test-u32-nfc.c: Likewise.
27986         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27987         * tests/uninorm/test-u32-nfd.c: Likewise.
27988         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27989         * tests/uninorm/test-u32-nfkc.c: Likewise.
27990         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27991         * tests/uninorm/test-u32-nfkd.c: Likewise.
27992         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27993         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27994
27995 2010-03-27  Bruno Haible  <bruno@clisp.org>
27996
27997         Distinguish two kinds of module indicators.
27998         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
27999         gl_MODULE_INDICATOR.
28000         (gl_MODULE_INDICATOR): New macro.
28001         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28002         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
28003         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28004         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28005         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28006         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28007         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28008         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28009         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28010         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28011         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28012         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28013         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28014         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28015         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28016         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28017         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28018         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28019         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28020         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28021         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28022         * modules/cloexec (configure.ac): Likewise.
28023         * modules/getopt-gnu (configure.ac): Likewise.
28024         * modules/uninorm/u8-normalize (configure.ac): Likewise.
28025         * modules/uninorm/u16-normalize (configure.ac): Likewise.
28026         * modules/uninorm/u32-normalize (configure.ac): Likewise.
28027         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
28028
28029 2010-03-27  Bruno Haible  <bruno@clisp.org>
28030
28031         New module description field 'Comment'.
28032         * gnulib-tool: New option --extract-comment.
28033         (func_usage): Document it.
28034         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
28035         (func_get_comment): New function.
28036         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
28037
28038 2010-03-27  Bruno Haible  <bruno@clisp.org>
28039
28040         Addendum to 2010-02-07 commit.
28041         * gnulib-tool (func_usage): Document --extract-applicability option.
28042
28043 2010-03-27  Bruno Haible  <bruno@clisp.org>
28044
28045         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
28046         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
28047         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
28048         rather than link errors.
28049
28050 2010-03-27  Bruno Haible  <bruno@clisp.org>
28051
28052         Avoid side effects from tests-related modules on the compilation of lib.
28053         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
28054         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
28055         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
28056         parameter. Emit into AM_CPPFLAGS a definition of the designated C
28057         macro.
28058         (func_import): Define a witness macro. Assign it a value that depends
28059         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
28060         tests-related modules.
28061         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
28062         Reported by Jim Meyering.
28063
28064 2010-03-27  Bruno Haible  <bruno@clisp.org>
28065
28066         Factorize common .m4 code.
28067         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
28068         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
28069         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
28070         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
28071         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28072         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
28073         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
28074         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28075         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28076         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28077         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
28078         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28079         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28080         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28081         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28082         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
28083         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28084         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28085         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28086         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
28087         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
28088         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28089         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28090         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28091         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28092         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28093         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
28094         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
28095         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
28096         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28097         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28098         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28099
28100 2010-03-27  Bruno Haible  <bruno@clisp.org>
28101
28102         Fix a compilation error on Cygwin with g++ >= 4.3.
28103         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
28104         if it is undefined or if we alias it to chmod.
28105         (lstat): Don't warn about the use of this function if it is undefined
28106         or if we alias it to stat.
28107         Reported by Simon Josefsson.
28108
28109 2010-03-27  Bruno Haible  <bruno@clisp.org>
28110
28111         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
28112         * modules/getlogin (configure.ac): Update.
28113
28114         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
28115         * modules/getlogin_r (configure.ac): Update.
28116
28117         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
28118         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
28119         * modules/inet_ntop (configure.ac): Update.
28120
28121         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
28122         * modules/inet_pton (configure.ac): Update.
28123
28124         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
28125         * modules/mbslen (configure.ac): Update.
28126
28127         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
28128         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
28129         * modules/forkpty (configure.ac): Update.
28130         * modules/openpty (configure.ac): Update.
28131
28132 2010-03-26  Simon Josefsson  <simon@josefsson.org>
28133
28134         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
28135         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
28136
28137 2010-03-25  Eric Blake  <eblake@redhat.com>
28138
28139         maint: use pragma consistently across replacement headers
28140         * lib/ctype.in.h (system_header): Hoist for consistent placement.
28141         * lib/dirent.in.h (system_header): Likewise.
28142         * lib/errno.in.h (system_header): Likewise.
28143         * lib/float.in.h (system_header): Likewise.
28144         * lib/getopt.in.h (system_header): Likewise.
28145         * lib/iconv.in.h (system_header): Likewise.
28146         * lib/inttypes.in.h (system_header): Likewise.
28147         * lib/langinfo.in.h (system_header): Likewise.
28148         * lib/locale.in.h (system_header): Likewise.
28149         * lib/math.in.h (system_header): Likewise.
28150         * lib/netdb.in.h (system_header): Likewise.
28151         * lib/netinet_in.in.h (system_header): Likewise.
28152         * lib/pty.in.h (system_header): Likewise.
28153         * lib/sched.in.h (system_header): Likewise.
28154         * lib/se-selinux.in.h (system_header): Likewise.
28155         * lib/search.in.h (system_header): Likewise.
28156         * lib/spawn.in.h (system_header): Likewise.
28157         * lib/stdarg.in.h (system_header): Likewise.
28158         * lib/stdint.in.h (system_header): Likewise.
28159         * lib/string.in.h (system_header): Likewise.
28160         * lib/strings.in.h (system_header): Likewise.
28161         * lib/sys_file.in.h (system_header): Likewise.
28162         * lib/sys_ioctl.in.h (system_header): Likewise.
28163         * lib/sys_socket.in.h (system_header): Likewise.
28164         * lib/sys_times.in.h (system_header): Likewise.
28165         * lib/sys_utsname.in.h (system_header): Likewise.
28166         * lib/sys_wait.in.h (system_header): Likewise.
28167         * lib/sysexits.in.h (system_header): Likewise.
28168         * lib/unistd.in.h (system_header): Likewise.
28169         * lib/wctype.in.h (system_header): Likewise.
28170
28171         arpa/inet: fix mingw compilation warning
28172         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
28173         Reported by Matthew Bolte.
28174
28175 2010-03-25  Bruno Haible  <bruno@clisp.org>
28176
28177         Avoid collision between gnulib wrapper and libintl wrapper.
28178         * lib/printf.c (printf): Don't define if a printf wrapper is already
28179         defined in intl/printf.c.
28180         Reported by Michel Boaventura <michel@michelboaventura.com>.
28181
28182 2010-03-25  Bruno Haible  <bruno@clisp.org>
28183
28184         Use ANSI C.
28185         * lib/readutmp.h (getutent): Provide ANSI C prototype.
28186
28187 2010-03-25  Bruno Haible  <bruno@clisp.org>
28188
28189         Minor formatting changes.
28190         * lib/acosl.c: Insert space before function argument list.
28191         * lib/argz.c: Likewise.
28192         * lib/asinl.c: Likewise.
28193         * lib/expl.c: Likewise.
28194         * lib/gen-uni-tables.c: Likewise.
28195         * lib/gettext.h: Likewise.
28196         * lib/glthread/lock.h: Likewise.
28197         * lib/tanl.c: Likewise.
28198         * lib/uniname/uniname.c: Likewise.
28199         * tests/test-idpriv-drop.c: Likewise.
28200         * tests/test-idpriv-droptemp.c: Likewise.
28201         * tests/test-lock.c: Likewise.
28202         * tests/test-tls.c: Likewise.
28203         * lib/argp-help.c: Insert space before function-like macro argument
28204         list.
28205         * lib/memcmp.c: Likewise.
28206         * tests/test-base64.c: Likewise.
28207         * lib/localename.c: Insert space before sizeof's argument list.
28208         * lib/safe-alloc.h: Likewise.
28209         * lib/file-set.h: Insert space before macro argument list.
28210         * tests/test-argp.c: Likewise.
28211         * lib/argp-namefrob.h: Insert space before function parameter list.
28212         * lib/getaddrinfo.c: Likewise.
28213         * lib/netdb.in.h: Likewise.
28214         * lib/parse-duration.h: Likewise.
28215         * lib/parse-duration.c: Likewise.
28216         * lib/poll.c: Likewise.
28217         * lib/select.c: Likewise.
28218         * lib/trim.h: Likewise.
28219         * tests/test-usleep.c: Likewise.
28220         * lib/ldexpl.c: Insert space before function parameter list and before
28221         function argument list.
28222         * lib/logl.c: Likewise.
28223         * lib/sqrtl.c: Likewise.
28224         * lib/trim.c: Likewise.
28225         * lib/cosl.c: Use GNU style indentation. Insert space before function
28226         argument list.
28227         * lib/sinl.c: Likewise.
28228         * lib/tsearch.c: Insert space after 'for'.
28229         Reported by Jim Meyering.
28230
28231 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
28232
28233         * maint.mk (sc_Wundef_boolean): Check for the presence of the
28234         config header before grepping, as it's not present before
28235         autoreconf/configure are run.  Reported by Simon Josefsson.
28236
28237 2010-03-23  Bruno Haible  <bruno@clisp.org>
28238
28239         pt_chown: Make it work with automake < 1.11.
28240         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
28241         Reported by Simon Josefsson.
28242
28243 2010-03-23  Bruno Haible  <bruno@clisp.org>
28244
28245         pt_chown: Don't depend on GPLed modules.
28246         * lib/pt_chown.c: Don't include idpriv.h.
28247         (main): Don't drop privileges.
28248         * modules/pt_chown (Depends-on): Remove idpriv-drop.
28249         Reported by Simon Josefsson.
28250
28251 2010-03-24  Simon Josefsson  <simon@josefsson.org>
28252
28253         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
28254         suggestions from karl@freefriends.org (Karl Berry).
28255
28256 2010-03-22  Eric Blake  <eblake@redhat.com>
28257
28258         gethostname: further tweaks
28259         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
28260         are overriding gethostname.
28261         Suggested by Bruno Haible.
28262
28263 2010-03-21  Bruno Haible  <bruno@clisp.org>
28264
28265         Fix comments.
28266         * lib/forkpty.c (rpl_forkpty): Fix comment.
28267         * lib/openpty.c (rpl_openpty): Likewise.
28268         Reported by Eric Blake.
28269
28270 2010-03-22  Eric Blake  <eblake@redhat.com>
28271
28272         gethostname: fix build on mingw
28273         * lib/unistd.in.h (includes): Work around fact that mingw
28274         <winsock2.h> re-includes <unistd.h>, by avoiding any
28275         redeclarations if we are being included by <winsock2.h>.
28276         Reported by Matthias Bolte.
28277
28278 2010-03-21  Bruno Haible  <bruno@clisp.org>
28279
28280         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28281         * lib/forkpty.c (forkpty): New replacement function, from glibc with
28282         modifications.
28283         * lib/pty.in.h (forkpty): Update declaration. Add comments.
28284         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
28285         provide the replacement.
28286         * modules/forkpty (Depends-on): Add openpty, login_tty.
28287         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
28288         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
28289         * doc/glibc-functions/forkpty.texi: More supported platforms.
28290         * config/srclist.txt: Add forkpty.c (commented).
28291
28292 2010-03-21  Bruno Haible  <bruno@clisp.org>
28293
28294         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
28295         (Makefile.am): Verify that PTY_LIB is defined.
28296
28297         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
28298
28299 2010-03-21  Bruno Haible  <bruno@clisp.org>
28300
28301         Tests for module 'login_tty'.
28302         * modules/login_tty-tests: New file.
28303         * tests/test-login_tty.c: New file.
28304
28305         New module 'login_tty'.
28306         * lib/login_tty.c: New file.
28307         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
28308         * modules/login_tty: New file.
28309         * doc/glibc-functions/login_tty.texi: Mention the new module.
28310
28311 2010-03-21  Bruno Haible  <bruno@clisp.org>
28312
28313         login_tty: Documentation.
28314         * doc/glibc-functions/login_tty.texi: New file.
28315         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
28316
28317 2010-03-21  Bruno Haible  <bruno@clisp.org>
28318
28319         pty: Consistent macro naming.
28320         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
28321         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
28322         * modules/pty (configure.ac): Update.
28323
28324 2010-03-21  Bruno Haible  <bruno@clisp.org>
28325
28326         Tests for openpty: Make stricter.
28327         * tests/test-openpty.c (main): Add test of canonical processing and
28328         erase.
28329         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
28330
28331         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28332         * lib/openpty.c (openpty): New replacement function.
28333         * lib/pty.in.h: Include <termios.h>.
28334         (openpty): Update declaration. Add comments.
28335         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
28336         is not declared, arrange to provide the replacement. Check for _getpty
28337         and posix_openpt.
28338         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
28339         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
28340         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
28341         * modules/pty-tests (test_pty_c___LDADD): New variable.
28342         * doc/glibc-functions/openpty.texi: More supported platforms.
28343
28344 2010-03-21  Bruno Haible  <bruno@clisp.org>
28345
28346         setenv: Tweaks.
28347         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
28348         the test program.
28349         * doc/posix-functions/setenv.texi: Update platforms list.
28350
28351 2010-03-21  Bruno Haible  <bruno@clisp.org>
28352
28353         New module 'unlockpt'.
28354         * lib/unlockpt.c: New file, from glibc with modifications.
28355         * m4/unlockpt.m4: New file.
28356         * modules/unlockpt: New file.
28357         * lib/stdlib.in.h (unlockpt): New declaration.
28358         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
28359         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
28360         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
28361         HAVE_UNLOCKPT.
28362         * doc/posix-functions/unlockpt.texi: Mention the new module.
28363         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
28364         * config/srclist.txt: Add unlockpt.c (commented).
28365
28366 2010-03-21  Jim Meyering  <meyering@redhat.com>
28367
28368         maint.mk: prohibit inclusion of "intprops.h" without use
28369         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
28370
28371 2010-03-21  Bruno Haible  <bruno@clisp.org>
28372
28373         New module 'grantpt'.
28374         * lib/grantpt.c: New file, from glibc with modifications.
28375         * m4/grantpt.m4: New file.
28376         * modules/grantpt: New file.
28377         * lib/stdlib.in.h (grantpt): New declaration.
28378         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
28379         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
28380         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
28381         HAVE_GRANTPT.
28382         * doc/posix-functions/grantpt.texi: Mention the new module.
28383         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
28384         * config/srclist.txt: Add grantpt.c (commented).
28385
28386 2010-03-21  Bruno Haible  <bruno@clisp.org>
28387
28388         New module 'pt_chown'.
28389         * lib/pt_chown.c: New file, from glibc with modifications.
28390         * lib/pty-private.h: New file, from glibc with modifications.
28391         * modules/pt_chown: New file.
28392         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
28393
28394 2010-03-21  Bruno Haible  <bruno@clisp.org>
28395
28396         Tests for module 'ptsname'.
28397         * modules/ptsname-tests: New file.
28398         * tests/test-ptsname.c: New file.
28399
28400         New module 'ptsname'.
28401         * lib/ptsname.c: New file, from glibc with modifications.
28402         * m4/ptsname.m4: New file.
28403         * modules/ptsname: New file.
28404         * lib/stdlib.in.h (ptsname): New declaration.
28405         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
28406         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
28407         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
28408         HAVE_PTSNAME.
28409         * doc/posix-functions/ptsname.texi: Mention the new module.
28410         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
28411         * config/srclist.txt: Add ptsname.c (commented).
28412
28413 2010-03-21  Bruno Haible  <bruno@clisp.org>
28414
28415         Tests for module 'ttyname_r'.
28416         * modules/ttyname_r-tests: New file.
28417         * tests/test-ttyname_r.c: New file.
28418
28419         New module 'ttyname_r'.
28420         * lib/ttyname_r.c: New file.
28421         * m4/ttyname_r.m4: New file.
28422         * modules/ttyname_r: New file.
28423         * lib/unistd.in.h (ttyname_r): New declaration.
28424         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
28425         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
28426         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
28427         HAVE_TTYNAME_R.
28428         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
28429         * doc/posix-functions/ttyname_r.texi: Mention the new module.
28430
28431 2010-03-20  Bruno Haible  <bruno@clisp.org>
28432
28433         signal: Undefine macro definitions in C++ mode.
28434         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
28435         sigfillset): Undefine macro definitions from the system header in C++
28436         mode.
28437         Reported by John W. Eaton <jwe@gnu.org>.
28438
28439 2010-03-20  Bruno Haible  <bruno@clisp.org>
28440
28441         Ensure no #include statements inside extern "C" { ... }.
28442         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
28443         contain #include statements.
28444         * lib/time.in.h: Likewise.
28445
28446 2010-03-20  Bruno Haible  <bruno@clisp.org>
28447
28448         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
28449         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
28450         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
28451         Reported by John W. Eaton <jwe@gnu.org>.
28452
28453 2010-03-20  Bruno Haible  <bruno@clisp.org>
28454
28455         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
28456         Reported by Jim Meyering.
28457
28458 2010-03-20  Bruno Haible  <bruno@clisp.org>
28459
28460         pipe: Set errno upon failure.
28461         * lib/pipe.h: Specify that when -1 is returned, errno is set.
28462         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
28463         errno value in error message.
28464
28465 2010-03-20  Bruno Haible  <bruno@clisp.org>
28466             Jim Meyering  <meyering@redhat.com>
28467
28468         lchown: Avoid "unused variable" warning.
28469         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
28470
28471 2010-03-20  Bruno Haible  <bruno@clisp.org>
28472
28473         Work around unlink() bug on MacOS X 10.5.6.
28474         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
28475         attempting to unlink a parent directory.
28476         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
28477         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
28478         activate for the replacement function.
28479         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
28480
28481 2010-03-20  Bruno Haible  <bruno@clisp.org>
28482
28483         Fix link errors on Solaris 8.
28484         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
28485         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
28486
28487 2010-03-19  Jim Meyering  <meyering@redhat.com>
28488
28489         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
28490         The _LIBC implementation of build_range_exp correctly honors the
28491         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
28492         However, the non-_LIBC implementation would ignore that syntax-bit
28493         flag and return REG_ERANGE unconditionally.
28494         This change makes it honor that flag.
28495         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
28496         Make two pointer parameters "const".
28497         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
28498         (parse_bracket_exp): Update caller.
28499
28500         regex.m4: correct the reversed range endpoint ([b-a]) test
28501         * m4/regex.m4: When requiring that [b-a] evoke failure,
28502         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
28503         test pass once again for x86-based systems.
28504
28505 2010-03-19  Bruno Haible  <bruno@clisp.org>
28506
28507         scandir: Fix link error on Solaris 8.
28508         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
28509         macros.
28510
28511 2010-03-19  Bruno Haible  <bruno@clisp.org>
28512
28513         getusershell: Fix documentation.
28514         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
28515         module.
28516         * doc/glibc-functions/setusershell.texi: Likewise.
28517
28518         getusershell: Provide declaration, missing on Solaris 9.
28519         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
28520         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
28521         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
28522         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
28523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28524         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
28525         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
28526         HAVE_GETUSERSHELL.
28527         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
28528
28529 2010-03-19  Bruno Haible  <bruno@clisp.org>
28530
28531         wctype: Provide iswblank function.
28532         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
28533         exists and is fine.
28534         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
28535         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
28536         * tests/test-wctype.c (main): Re-enable the iswblank tests.
28537         * doc/posix-functions/iswblank.texi: Update.
28538
28539 2010-03-19  Bruno Haible  <bruno@clisp.org>
28540
28541         Tests of module 'pty' in C++ mode.
28542         * modules/pty-tests: New file.
28543         * tests/test-pty-c++.cc: New file.
28544         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28545
28546 2010-03-19  Eric Blake  <eblake@redhat.com>
28547
28548         logb: fix documentation
28549         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
28550         1.5 declaration bug.
28551
28552         forkpty, openpty: prefer glibc's const-safe prototype
28553         * lib/forkpty.c (rpl_forkpty): New file.
28554         * lib/openpty.c (rpl_openpty): Likewise.
28555         * modules/forkpty (Files): Distribute it.
28556         * modules/openpty (Files): Likewise.
28557         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
28558         check...
28559         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
28560         replacement for for non-const BSD signature.
28561         * modules/pty (Makefile.am): Substitute witnesses.
28562         * lib/pty.in.h (forkpty, openpty): Declare replacements.
28563         * tests/test-forkpty.c: Update signature check.
28564         * tests/test-openpty.c: Likewise.
28565         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
28566         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28567
28568         forkpty, openpty: split functions into new modules
28569         * modules/pty (Makefile.am): Substitute new witnesses.
28570         (Libraries): Move library detection...
28571         * modules/forkpty: ...into new module.
28572         * modules/openpty: Another new module.
28573         * modules/pty-tests: Rename and split...
28574         * modules/forkpty-tests: ...to this...
28575         * modules/openpty-tests: ...and this.
28576         * tests/test-pty.c: Rename and split...
28577         * tests/test-forkpty.c: ...to this...
28578         * tests/test-openpty.c: ...and this.
28579         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
28580         (gl_PTY): Split library searching...
28581         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
28582         (gl_FORKPTY, gl_OPENPTY): New macros.
28583         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
28584         * NEWS: Mention the split.
28585         * MODULES.html.sh (Misc): Document the modules.
28586         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
28587         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28588
28589         pty: improve replacement header
28590         * lib/pty.in.h: New file.
28591         * modules/pty (Files): Ship it.
28592         (Makefile.am): Always build replacement.
28593         * m4/pty.m4: Rename...
28594         * m4/pty_h.m4: ...to this.
28595         (gl_PTY): Modernize setting of witness macros; update check of
28596         forkpty to take proper advantage of cache.
28597         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
28598
28599         getopt: avoid compiler warning
28600         * lib/getopt.c (attribute_hidden): Remove unused macro.
28601
28602 2010-03-18  Bruno Haible  <bruno@clisp.org>
28603
28604         Fix link errors on Solaris 8.
28605         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
28606         * modules/search-tests (test_search_c___LDADD): Likewise.
28607         * modules/signal-tests (test_signal_c___LDADD): Likewise.
28608         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
28609         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
28610         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
28611         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
28612         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
28613         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
28614
28615 2010-03-18  Bruno Haible  <bruno@clisp.org>
28616
28617         Fix bug introduced on 2010-03-14.
28618         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
28619         (gl_SPAWN_H): Require it.
28620         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
28621         Reported by Simon Josefsson.
28622
28623 2010-03-18  Bruno Haible  <bruno@clisp.org>
28624
28625         Fix typo introduced on 2009-12-31.
28626         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
28627         posix_spawn_file_actions_adddup2.
28628
28629 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
28630         and Eric Blake  <eblake@redhat.com>
28631
28632         test-vc-list-files-git: make more robust
28633         * tests/test-vc-list-files-git.sh: Unset problematic environment
28634         variables.  Chain commands together.
28635
28636 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
28637
28638         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
28639         `AC_CHECK_DECL' invocation.
28640
28641 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
28642
28643         * lib/inttostr.c (inttostr): Make sure the invocation of verify
28644         appears before executable statements. Suggested by Petr Sumbera
28645         <Petr.Sumbera@Sun.COM>.
28646
28647 2010-03-14  Bruno Haible  <bruno@clisp.org>
28648
28649         * tests/test-flock.c (test_exclusive): Comment out a test that causes
28650         portability problems. Instead use a simpler test.
28651         (main): Check that invalid arguments are rejected only on Linux.
28652
28653 2010-03-14  Bruno Haible  <bruno@clisp.org>
28654
28655         Fix bug introduced on 2009-12-31.
28656         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28657         gl_PREREQ_SYS_H_WINSOCK2 always.
28658         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
28659         SYS_SOCKET_H variable.
28660         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
28661         Update comments.
28662         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
28663         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28664         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28665         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28666         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
28667
28668 2010-03-14  Bruno Haible  <bruno@clisp.org>
28669
28670         Fix values returned by sinl, cosl.
28671         * lib/trigl.h: Add specification comments.
28672         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
28673         that combines the values from the precomputed table with the values of
28674         the Chebyshev polynomials.
28675
28676 2010-03-14  Bruno Haible  <bruno@clisp.org>
28677
28678         Fix compilation error when modules 'posix_spawn[p]' are not used.
28679         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
28680         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
28681
28682 2010-03-14  Bruno Haible  <bruno@clisp.org>
28683
28684         Fix compilation error on mingw when module 'time_r' is not used.
28685         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
28686         is 1.
28687         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
28688         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28689         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
28690         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
28691
28692 2010-03-14  Bruno Haible  <bruno@clisp.org>
28693
28694         Fix compilation error with Sun C.
28695         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
28696         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
28697         instead of GCC specific ULONG_LONG_MAX.
28698         * lib/xstrtoll.c: Likewise.
28699         * lib/xstrtoull.c: Likewise.
28700
28701 2010-03-13  Bruno Haible  <bruno@clisp.org>
28702
28703         Allow the user to disable C++ code and tests.
28704         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
28705         (gl_PROG_ANSI_CXX): Require it.
28706
28707 2010-03-13  Bruno Haible  <bruno@clisp.org>
28708
28709         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
28710         cases.
28711
28712 2010-03-13  Bruno Haible  <bruno@clisp.org>
28713
28714         Test that gnulib does not break the standard C++ headers.
28715         * tests/test-locale-c++2.cc: New file.
28716         * modules/locale-tests (Files): Add it.
28717         (Makefile.am): Compile it for test-locale-c++.
28718         * tests/test-math-c++2.cc: New file.
28719         * modules/math-tests (Files): Add it.
28720         (Makefile.am): Compile it for test-math-c++.
28721         * tests/test-signal-c++2.cc: New file.
28722         * modules/signal-tests (Files): Add it.
28723         (Makefile.am): Compile it for test-signal-c++.
28724         * tests/test-stdio-c++2.cc: New file.
28725         * modules/stdio-tests (Files): Add it.
28726         (Makefile.am): Compile it for test-stdio-c++.
28727         * tests/test-stdlib-c++2.cc: New file.
28728         * modules/stdlib-tests (Files): Add it.
28729         (Makefile.am): Compile it for test-stdlib-c++.
28730         * tests/test-string-c++2.cc: New file.
28731         * modules/string-tests (Files): Add it.
28732         (Makefile.am): Compile it for test-string-c++.
28733         * tests/test-time-c++2.cc: New file.
28734         * modules/time-tests (Files): Add it.
28735         (Makefile.am): Compile it for test-time-c++.
28736         Reported by John W. Eaton <jwe@gnu.org>.
28737
28738 2010-03-13  Bruno Haible  <bruno@clisp.org>
28739
28740         * gnulib-tool (func_usage): Clarify which options are available for
28741         --create-testdir and --create-megatestdir.
28742
28743 2010-03-13  Bruno Haible  <bruno@clisp.org>
28744
28745         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
28746         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
28747         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
28748         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28749         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
28750         when appropriate.
28751         Reported by Jim Meyering.
28752
28753 2010-03-12  Simon Josefsson  <simon@josefsson.org>
28754
28755         * gnulib-tool (func_import): Explain origin of code.
28756
28757 2010-03-12  Bruno Haible  <bruno@clisp.org>
28758
28759         Fix problem with automake's definition of CXXLINK.
28760         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
28761         Reported by Simon Josefsson and Ludovic Courtès.
28762
28763 2010-03-12  Bruno Haible  <bruno@clisp.org>
28764
28765         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
28766         stable releases.
28767
28768 2010-03-11  Bruno Haible  <bruno@clisp.org>
28769
28770         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
28771         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
28772         whether the system provides one variant or multiple variants of the
28773         function.
28774         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
28775         C++ compilers.
28776         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
28777         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
28778         Reported by Jim Meyering.
28779
28780 2010-03-09  Simon Josefsson  <simon@josefsson.org>
28781
28782         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
28783
28784 2010-03-08  Bruno Haible  <bruno@clisp.org>
28785
28786         gnulib-tool: Add support for --libtool in --create-testdir.
28787         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
28788         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
28789
28790 2010-03-08  Eric Blake  <eblake@redhat.com>
28791
28792         gnulib-tool.texi: mention possibility of git submodule
28793         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
28794         submodules.
28795         * doc/.gitignore: Ignore another generated file.
28796
28797 2010-03-08  Karl Berry  <karl@gnu.org>
28798
28799         * doc/gnulib-tool.texi (VCS Issues): Mention third option
28800         of committing gnulib files while skipping others.
28801
28802 2010-03-07  Bruno Haible  <bruno@clisp.org>
28803
28804         Tests of module 'wctype' in C++ mode.
28805         * tests/test-wctype-c++.cc: New file.
28806         * modules/wctype-tests (Files): Add it and tests/signature.h.
28807         (Depends-on): Add ansi-c++-opt.
28808         (Makefile.am): Arrange to compile and run test-wctype-c++.
28809
28810         Tests of module 'wchar' in C++ mode.
28811         * tests/test-wchar-c++.cc: New file.
28812         * modules/wchar-tests (Files): Add it and tests/signature.h.
28813         (Depends-on): Add ansi-c++-opt.
28814         (Makefile.am): Arrange to compile and run test-wchar-c++.
28815         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
28816         gl_MODULE_INDICATOR.
28817
28818         Tests of module 'unistd' in C++ mode.
28819         * tests/test-unistd-c++.cc: New file.
28820         * modules/unistd-tests (Files): Add it and tests/signature.h.
28821         (Depends-on): Add ansi-c++-opt.
28822         (Makefile.am): Arrange to compile and run test-unistd-c++.
28823         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
28824         gl_MODULE_INDICATOR.
28825
28826         Tests of module 'time' in C++ mode.
28827         * tests/test-time-c++.cc: New file.
28828         * modules/time-tests (Files): Add it and tests/signature.h.
28829         (Depends-on): Add ansi-c++-opt.
28830         (Makefile.am): Arrange to compile and run test-time-c++.
28831         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28832
28833         Tests of module 'sys_time' in C++ mode.
28834         * tests/test-sys_time-c++.cc: New file.
28835         * modules/sys_time-tests (Files): Add it and tests/signature.h.
28836         (Depends-on): Add ansi-c++-opt.
28837         (Makefile.am): Arrange to compile and run test-sys_time-c++.
28838         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
28839         gl_MODULE_INDICATOR.
28840
28841         Tests of module 'sys_stat' in C++ mode.
28842         * tests/test-sys_stat-c++.cc: New file.
28843         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
28844         (Depends-on): Add ansi-c++-opt.
28845         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
28846         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
28847         gl_MODULE_INDICATOR.
28848
28849         Tests of module 'sys_socket' in C++ mode.
28850         * tests/test-sys_socket-c++.cc: New file.
28851         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
28852         (Depends-on): Add ansi-c++-opt.
28853         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
28854         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
28855         gl_MODULE_INDICATOR.
28856
28857         Tests of module 'sys_select' in C++ mode.
28858         * tests/test-sys_select-c++.cc: New file.
28859         * modules/sys_select-tests (Files): Add it and tests/signature.h.
28860         (Depends-on): Add ansi-c++-opt.
28861         (Makefile.am): Arrange to compile and run test-sys_select-c++.
28862         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
28863         gl_MODULE_INDICATOR.
28864
28865         Tests of module 'sys_ioctl' in C++ mode.
28866         * tests/test-sys_ioctl-c++.cc: New file.
28867         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
28868         (Depends-on): Add ansi-c++-opt.
28869         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
28870         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
28871         gl_MODULE_INDICATOR.
28872
28873         Tests of module 'string' in C++ mode.
28874         * tests/test-string-c++.cc: New file.
28875         * modules/string-tests (Files): Add it and tests/signature.h.
28876         (Depends-on): Add ansi-c++-opt.
28877         (Makefile.am): Arrange to compile and run test-string-c++.
28878         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
28879         gl_MODULE_INDICATOR.
28880
28881         Tests of module 'stdlib' in C++ mode.
28882         * tests/test-stdlib-c++.cc: New file.
28883         * modules/stdlib-tests (Files): Add it and tests/signature.h.
28884         (Depends-on): Add ansi-c++-opt.
28885         (Makefile.am): Arrange to compile and run test-stdlib-c++.
28886         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
28887         gl_MODULE_INDICATOR.
28888
28889         Tests of module 'stdio' in C++ mode.
28890         * tests/test-stdio-c++.cc: New file.
28891         * modules/stdio-tests (Files): Add it and tests/signature.h.
28892         (Depends-on): Add ansi-c++-opt.
28893         (Makefile.am): Arrange to compile and run test-stdio-c++.
28894         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
28895         gl_MODULE_INDICATOR.
28896
28897         Tests of module 'spawn' in C++ mode.
28898         * tests/test-spawn-c++.cc: New file.
28899         * modules/spawn-tests (Files): Add it and tests/signature.h.
28900         (Depends-on): Add ansi-c++-opt.
28901         (Makefile.am): Arrange to compile and run test-spawn-c++.
28902         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
28903         gl_MODULE_INDICATOR.
28904
28905         Tests of module 'signal' in C++ mode.
28906         * tests/test-signal-c++.cc: New file.
28907         * modules/signal-tests (Files): Add it and tests/signature.h.
28908         (Depends-on): Add ansi-c++-opt.
28909         (Makefile.am): Arrange to compile and run test-signal-c++.
28910         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
28911         gl_MODULE_INDICATOR.
28912
28913         Tests of module 'search' in C++ mode.
28914         * tests/test-search-c++.cc: New file.
28915         * modules/search-tests (Files): Add it and tests/signature.h.
28916         (Depends-on): Add ansi-c++-opt.
28917         (Makefile.am): Arrange to compile and run test-search-c++.
28918         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
28919         gl_MODULE_INDICATOR.
28920
28921         Tests of module 'math' in C++ mode.
28922         * tests/test-math-c++.cc: New file.
28923         * modules/math-tests (Files): Add it and tests/signature.h.
28924         (Depends-on): Add ansi-c++-opt.
28925         (Makefile.am): Arrange to compile and run test-math-c++.
28926         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28927
28928         Tests of module 'locale' in C++ mode.
28929         * tests/test-locale-c++.cc: New file.
28930         * modules/locale-tests (Files): Add it and tests/signature.h.
28931         (Depends-on): Add ansi-c++-opt.
28932         (Makefile.am): Arrange to compile and run test-locale-c++.
28933         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
28934         gl_MODULE_INDICATOR.
28935
28936         Tests of module 'langinfo' in C++ mode.
28937         * tests/test-langinfo-c++.cc: New file.
28938         * modules/langinfo-tests (Files): Add it and tests/signature.h.
28939         (Depends-on): Add ansi-c++-opt.
28940         (Makefile.am): Arrange to compile and run test-langinfo-c++.
28941         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
28942         gl_MODULE_INDICATOR.
28943
28944         Tests of module 'iconv-h' in C++ mode.
28945         * tests/test-iconv-h-c++.cc: New file.
28946         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
28947         (Depends-on): Add ansi-c++-opt.
28948         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
28949
28950         Tests of module 'glob' in C++ mode.
28951         * tests/test-glob-c++.cc: New file.
28952         * modules/glob-tests (Files): Add it.
28953         (Depends-on): Add ansi-c++-opt.
28954         (Makefile.am): Arrange to compile and run test-glob-c++.
28955
28956         Tests of module 'fcntl-h' in C++ mode.
28957         * tests/test-fcntl-h-c++.cc: New file.
28958         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
28959         (Depends-on): Add ansi-c++-opt.
28960         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
28961         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
28962         gl_MODULE_INDICATOR.
28963
28964         Tests of module 'dirent' in C++ mode.
28965         * tests/test-dirent-c++.cc: New file.
28966         * modules/dirent-tests (Files): Add it and tests/signature.h.
28967         (Depends-on): Add ansi-c++-opt.
28968         (Makefile.am): Arrange to compile and run test-dirent-c++.
28969         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28970         gl_MODULE_INDICATOR.
28971
28972         New module 'ansi-c++-opt'.
28973         * modules/ansi-c++-opt: New file.
28974         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
28975
28976         Document C++ namespace mode.
28977         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
28978
28979         wctype: Avoid #define replacements in C++ mode.
28980         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
28981         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
28982         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
28983         In C++, define a namespaced alias symbol.
28984         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
28985         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
28986         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
28987         rule.
28988
28989         wchar: Avoid #define replacements in C++ mode.
28990         * lib/wchar.in.h: Include c++defs.h.
28991         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
28992         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
28993         symbol.
28994         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
28995         * modules/wchar (Depends-on): Add c++defs.
28996         (Makefile.am): Update wchar.h rule.
28997
28998         unistd: Avoid #define replacements in C++ mode.
28999         * lib/unistd.in.h: Include c++defs.h.
29000         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
29001         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
29002         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
29003         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
29004         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
29005         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
29006         symbol.
29007         (environ): Update.
29008         * modules/unistd (Depends-on): Add c++defs.
29009         (Makefile.am): Update unistd.h rule.
29010
29011         time: Avoid #define replacements in C++ mode.
29012         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
29013         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
29014         define a namespaced alias symbol.
29015         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
29016         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
29017         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
29018         * modules/time (Depends-on): Add c++defs, warn-on-use.
29019         (Makefile.am): Update time.h rule.
29020         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29021         * modules/nanosleep (configure.ac): Likewise.
29022         * modules/strptime (configure.ac): Likewise.
29023         * modules/timegm (configure.ac): Likewise.
29024
29025         sys_time: Avoid #define replacements in C++ mode.
29026         * lib/sys_time.in.h: Include c++defs.h.
29027         (gettimeofday): In C++, define a namespaced alias symbol.
29028         * modules/sys_time (Depends-on): Add c++defs.
29029         (Makefile.am): Update sys/time.h rule.
29030
29031         sys_stat: Avoid #define replacements in C++ mode.
29032         * lib/sys_stat.in.h: Include c++defs.h.
29033         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
29034         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
29035         namespaced alias symbol.
29036         In C++, define a namespaced alias symbol.
29037         * modules/sys_stat (Depends-on): Add c++defs.
29038         (Makefile.am): Update sys/stat.h rule.
29039
29040         sys_socket: Avoid #define replacements in C++ mode.
29041         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
29042         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
29043         definitions also when the system has a <sys/socket.h>.
29044         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29045         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
29046         In C++, define a namespaced alias symbol.
29047         * modules/sys_socket (Depends-on): Add c++defs.
29048         (Makefile.am): Update sys/socket.h rule.
29049
29050         sys_select: Avoid #define replacements in C++ mode.
29051         * lib/sys_select.in.h: Include c++defs.h. Enable the function
29052         definitions also when the system has a <sys/select.h>.
29053         (select): In C++, define a namespaced alias symbol.
29054         * modules/sys_select (Depends-on): Add c++defs.
29055         (Makefile.am): Update sys/select.h rule.
29056
29057         sys_ioctl: Avoid #define replacements in C++ mode.
29058         * lib/sys_ioctl.in.h: Include c++defs.h.
29059         (ioctl): In C++, define a namespaced alias symbol.
29060         * modules/sys_ioctl (Depends-on): Add c++defs.
29061         (Makefile.am): Update sys/ioctl.h rule.
29062
29063         string: Avoid #define replacements in C++ mode.
29064         * lib/string.in.h: Include c++defs.h.
29065         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
29066         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29067         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29068         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
29069         strsignal, strverscmp): In C++, define a namespaced alias symbol.
29070         * modules/string (Depends-on): Add c++defs.
29071         (Makefile.am): Update string.h rule.
29072
29073         stdlib: Avoid #define replacements in C++ mode.
29074         * lib/stdlib.in.h: Include c++defs.h.
29075         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
29076         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
29077         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
29078         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
29079         symbol.
29080         * modules/stdlib (Depends-on): Add c++defs.
29081         (Makefile.am): Update stdlib.h rule.
29082
29083         stdio: Avoid #define replacements in C++ mode.
29084         * lib/stdio.in.h: Include c++defs.h.
29085         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
29086         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
29087         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
29088         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
29089         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
29090         namespaced alias symbol.
29091         * modules/stdio (Depends-on): Add c++defs.
29092         (Makefile.am): Update stdio.h rule.
29093
29094         spawn: Avoid #define replacements in C++ mode.
29095         * lib/spawn.in.h: Include c++defs.h.
29096         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29097         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29098         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29099         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29100         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29101         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29102         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29103         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29104         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29105         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29106         In C++, define a namespaced alias symbol.
29107         * modules/spawn (Depends-on): Add c++defs.
29108         (Makefile.am): Update spawn.h rule.
29109
29110         signal: Avoid #define replacements in C++ mode.
29111         * lib/signal.in.h: Include c++defs.h.
29112         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29113         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
29114         namespaced alias symbol.
29115         * modules/signal (Depends-on): Add c++defs.
29116         (Makefile.am): Update signal.h rule.
29117
29118         search: Avoid #define replacements in C++ mode.
29119         * lib/search.in.h: Include c++defs.h.
29120         (_gl_search_compar_fn, _gl_search_action_fn): New types.
29121         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
29122         symbol.
29123         * modules/search (Depends-on): Add c++defs.
29124         (Makefile.am): Update search.h rule.
29125
29126         math: Avoid #define replacements in C++ mode.
29127         * lib/math.in.h: Include c++defs.h.
29128         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
29129         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
29130         trunc, truncl): In C++, define a namespaced alias symbol.
29131         * modules/math (Depends-on): Add c++defs.
29132         (Makefile.am): Update math.h rule.
29133
29134         locale: Avoid #define replacements in C++ mode.
29135         * lib/locale.in.h: Include c++defs.h.
29136         (duplocale): In C++, define a namespaced alias symbol.
29137         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
29138         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
29139         * modules/locale (Depends-on): Add c++defs.
29140         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
29141
29142         langinfo: Avoid #define replacements in C++ mode.
29143         * lib/langinfo.in.h: Include c++defs.h.
29144         (nl_langinfo): In C++, define a namespaced alias symbol.
29145         * modules/langinfo (Depends-on): Add c++defs.
29146         (Makefile.am): Update langinfo.h rule.
29147
29148         iconv-h: Avoid #define replacements in C++ mode.
29149         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
29150         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
29151         symbol.
29152         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29153         whenever iconv is present.
29154         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
29155         (Makefile.am): Update iconv.h rule.
29156
29157         glob: Avoid #define replacements in C++ mode.
29158         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
29159         (_gl_glob_errfunc_fn): New type.
29160         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
29161         symbol.
29162         * modules/glob (Depends-on): Add c++defs, warn-on-use.
29163         (Makefile.am): Update glob.h rule.
29164
29165         fcntl-h: Avoid #define replacements in C++ mode.
29166         * lib/fcntl.in.h: Include c++defs.h.
29167         (fcntl, open, openat): In C++, define a namespaced alias symbol.
29168         * modules/fcntl-h (Depends-on): Add c++defs.
29169         (Makefile.am): Update fcntl.h rule.
29170
29171         dirent: Avoid #define replacements in C++ mode.
29172         * lib/dirent.in.h: Include c++defs.h.
29173         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
29174         namespaced alias symbol.
29175         (dirfd): Update declaration.
29176         * modules/dirent (Depends-on): Add c++defs.
29177         (Makefile.am): Update dirent.h rule.
29178
29179         ctype: Make it usable in C++ code.
29180         * lib/ctype.in.h: Include c++defs.h.
29181         (isblank): Declare as extern "C".
29182         * modules/ctype (Depends-on): Add c++defs.
29183         (Makefile.am): Update ctype.h rule.
29184
29185         New module 'c++defs'.
29186         * modules/c++defs: New file.
29187         * build-aux/c++defs.h: New file.
29188         Reported by John W. Eaton <jwe@gnu.org>.
29189
29190 2010-03-07  Bruno Haible  <bruno@clisp.org>
29191
29192         logb: Provide missing declaration for Cygwin.
29193         * lib/math.in.h (logb): New declaration.
29194         * m4/logb.m4: New file.
29195         * modules/logb (Files): Add m4/logb.m4.
29196         (Depends-on): Add math.
29197         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
29198         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
29199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
29200         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
29201         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
29202
29203 2010-03-07  Bruno Haible  <bruno@clisp.org>
29204
29205         Fix test-cond link error.
29206         * tests/test-cond.c: Include <stdio.h>.
29207
29208 2010-03-07  Bruno Haible  <bruno@clisp.org>
29209
29210         Fix test-dirent-safer link error.
29211         * modules/dirent-safer-tests (Makefile.am): Define
29212         test_dirent_safer_LDADD.
29213
29214 2010-03-07  Bruno Haible  <bruno@clisp.org>
29215
29216         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
29217         among default module list.
29218
29219 2010-03-07  Bruno Haible  <bruno@clisp.org>
29220
29221         Fix link error on platforms with GNU libiconv.
29222         * modules/unistr/u8-strcoll-tests (Makefile): Define
29223         test_u8_strcoll_LDADD.
29224         * modules/unistr/u16-strcoll-tests (Makefile): Define
29225         test_u16_strcoll_LDADD.
29226         * modules/unistr/u32-strcoll-tests (Makefile): Define
29227         test_u32_strcoll_LDADD.
29228
29229 2010-03-07  Bruno Haible  <bruno@clisp.org>
29230
29231         Use POSIX declarations for socket functions.
29232         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
29233         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
29234         rpl_sendto): Change declaration to match POSIX.
29235         * lib/connect.c (rpl_connect): Likewise.
29236         * lib/accept.c (rpl_accept): Likewise.
29237         * lib/bind.c (rpl_bind): Likewise.
29238         * lib/getpeername.c (rpl_getpeername): Likewise.
29239         * lib/getsockname.c (rpl_getsockname): Likewise.
29240         * lib/recv.c (rpl_recv): Likewise.
29241         * lib/send.c (rpl_send): Likewise.
29242         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29243         * lib/sendto.c (rpl_sendto): Likewise.
29244
29245 2010-03-06  Bruno Haible  <bruno@clisp.org>
29246
29247         Clarify access, euidaccess, faccessat.
29248         * doc/posix-functions/faccessat.texi: Mention security problem under
29249         "Other problems", not "Portability problems".
29250         * doc/posix-functions/access.texi: Likewise. Mention a related security
29251         problem.
29252         * doc/glibc-functions/euidaccess.texi: Mention security problems.
29253         * lib/euidaccess.c: Add comments about platforms.
29254         * lib/unistd.in.h (access, euidaccess): Add warnings.
29255
29256 2010-03-07  Bruno Haible  <bruno@clisp.org>
29257
29258         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
29259         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
29260         (POSIX_SPAWN_SETSCHEDULER): Likewise.
29261         (POSIX_SPAWN_USEVFORK): Define in a way that works when
29262         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29263         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
29264         declare when POSIX_SPAWN_SETSCHEDULER is zero.
29265         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
29266         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
29267         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
29268         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
29269         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
29270         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
29271         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
29272         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
29273         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
29274         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
29275         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
29276         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
29277         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
29278         Likewise.
29279         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
29280         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
29281         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
29282         Likewise.
29283         * tests/test-spawn.c (main): Make it work when
29284         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29285
29286 2010-03-07  Bruno Haible  <bruno@clisp.org>
29287
29288         Fix incorrect Makefile.am generation in German locale.
29289         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29290         Execute sed command with character range in C locale.
29291
29292 2010-03-06  Bruno Haible  <bruno@clisp.org>
29293
29294         Tests for module 'iconv-h'.
29295         * modules/iconv-h-tests: New file.
29296         * tests/test-iconv-h.c: New file.
29297
29298         New module 'iconv-h'.
29299         * modules/iconv-h: New file.
29300         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
29301         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
29302         (configure.ac): Remove gl_ICONV_H.
29303         (Makefile.am): Remove rule for iconv.h.
29304
29305 2010-03-06  Bruno Haible  <bruno@clisp.org>
29306
29307         More consistent naming of *.m4 files.
29308         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
29309         * modules/wctype (Files): Update.
29310
29311         More consistent naming of *.m4 files.
29312         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
29313         * modules/wchar (Files): Update.
29314
29315 2010-03-06  Jim Meyering  <meyering@redhat.com>
29316
29317         euidaccess: relax license to LGPLv2+
29318         * modules/euidaccess (License): Relax to LGPLv2+.
29319
29320 2010-03-06  Bruno Haible  <bruno@clisp.org>
29321
29322         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
29323         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
29324         (Makefile.am): Augment lib_SOURCES instead.
29325
29326 2010-03-04  Jim Meyering  <meyering@redhat.com>
29327
29328         utime: remove obsolete module
29329         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
29330         unnecessary for years, and has been marked as obsolete for 10 months.
29331         * modules/utime: Remove file.
29332         * lib/utime.c: Remove file.
29333         * m4/utime.m4: Remove file.
29334         * m4/utimes-null.m4: Remove file.
29335         * doc/posix-functions/utime.texi (utime): Remove reference to
29336         the module.  Move the sole "fixed by gnulib" item into the
29337         "problems not fixed by Gnulib" list.
29338         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
29339
29340 2010-03-05  Simon Josefsson  <simon@josefsson.org>
29341
29342         * modules/exit (License): Relax license to LGPLv2+.
29343         (Status): Mark as obsolete.
29344         * NEWS: Mention deprecated 'exit' module.
29345         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
29346         of now obsolete 'exit'.
29347
29348 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29349
29350         fts-lgpl: remove unused module
29351         * modules/fts-lgpl: Remove.
29352         * MODULES.html.sh (func_all_modules): Adjust.
29353         * check-module (find_included_lib_files): Adjust.
29354         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
29355
29356 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29357
29358         copy-acl: enhance Solaris ACL error handling
29359         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
29360         * lib/set-mode-acl.c (qset_acl): Likewise.
29361
29362 2010-03-02  Bruno Haible  <bruno@clisp.org>
29363
29364         spawn: Don't override the system defined values on FreeBSD 8.
29365         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
29366         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
29367         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
29368         if HAVE_POSIX_SPAWN is 1.
29369         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
29370
29371 2010-03-01  Bruno Haible  <bruno@clisp.org>
29372
29373         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
29374         regarding Automake.
29375
29376 2010-02-25  Bruno Haible  <bruno@clisp.org>
29377
29378         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
29379         * gnulib-tool: Define 'echo' as a function only before the ksh alias
29380         setting, not afterwards.
29381         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29382
29383 2010-02-24  Eric Blake  <eblake@redhat.com>
29384
29385         bootstrap, git-version-gen: use timestamp
29386         * build-aux/git-version-gen (scriptversion): Force UTC.
29387         * build-aux/bootstrap (scriptversion): New variable.
29388
29389         bootstrap: allow older git
29390         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
29391         older than 1.6.4.  Requested by the libvirt project.
29392
29393 2010-02-23  Eric Blake  <eblake@redhat.com>
29394
29395         warn-on-use: work with old autoconf
29396         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
29397         AS_VAR semantics of autoconf 2.60.
29398         Reported by Bruno Haible.
29399
29400         bootstrap: improve some comments
29401         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
29402         clarification comments.
29403
29404         gettimeofday: provide correct function
29405         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
29406         when replacement is declared, otherwise provide gettimeofday.
29407         Reported by Michael Goffioul.
29408
29409 2010-02-23  Jim Meyering  <meyering@redhat.com>
29410
29411         lib-ignore: relax license to "unlimited", not LGPLv2+
29412         * modules/lib-ignore (License): Relax to "unlimited".
29413
29414 2010-02-23  Jim Meyering  <meyering@redhat.com>
29415
29416         lib-ignore: relax license to LGPLv2+
29417         * modules/lib-ignore (License): Relax to LGPLv2+.
29418
29419 2010-02-22  Eric Blake  <eblake@redhat.com>
29420
29421         lseek: avoid bash 3.2 broken pipe bug
29422         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
29423         warning from bash 3.2.
29424         Reported by Ben Pfaff, with analysis from Bruno Haible.
29425
29426         bootstrap: support non-FSF copyright holder
29427         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
29428         bootstrap.conf override of COPYRIGHT_HOLDER.
29429         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
29430
29431         bootstrap: interoperate with gettext 0.14.1
29432         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
29433
29434         bootstrap: allow for alternate submodule location
29435         * build-aux/bootstrap (gnulib_path): New variable; use instead of
29436         hardcoding submodule location.
29437         (gnulib_mk): Allow direct use of Makefile.am.
29438
29439         bootstrap: use GNULIB_SRCDIR to reduce disk usage
29440         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
29441         rather than reconfiguring where the submodule points.
29442
29443         gettimeofday: restore support for platforms that lack function
29444         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
29445         replacement if function is missing.
29446         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
29447         * modules/sys_time (Makefile.am): Substitute it.
29448         * lib/sys_time.in.h (gettimeofday): Check it.
29449         Reported by Michael Goffioul.
29450
29451 2010-02-21  Bruno Haible  <bruno@clisp.org>
29452
29453         * lib/stdio.in.h (obstack_printf): Fix typo.
29454
29455 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
29456
29457         vc-list-files: use bzr ls's -R option
29458         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
29459         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
29460
29461 2010-02-21  Jim Meyering  <meyering@redhat.com>
29462
29463         init.sh: fix EXEEXT shims to work also for names like test-prog
29464         * tests/init.sh: Re-exec a better shell, when needed.
29465         If the current shell lacks support for posix $(...), an init.sh-using
29466         test will now try to find a shell that supports that.  If EXEEXT is
29467         nonempty, we also require support for hyphen-in-alias-name and shell
29468         substitutions like ${var#glob}.  Failure to find such a shell results
29469         in a skipped test.
29470
29471 2010-02-21  Bruno Haible  <bruno@clisp.org>
29472
29473         Really work around around "broken pipe" error message from bash 3.2.
29474         * gnulib-tool (func_reset_sigpipe): Remove function.
29475         (echo): In bash 3.2, define to a function that uses printf.
29476         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
29477
29478 2010-02-20  Bruno Haible  <bruno@clisp.org>
29479
29480         Restore support for automake 1.9.6 with autoconf 2.61.
29481         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
29482         Reported by James Youngman <jay@gnu.org>.
29483
29484 2010-02-20  Bruno Haible  <bruno@clisp.org>
29485
29486         Improve *printf warning condition.
29487         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
29488         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
29489         and the function is overridden due to SIGPIPE emulation.
29490
29491 2010-02-20  Bruno Haible  <bruno@clisp.org>
29492
29493         * lib/stdio.in.h: Tweak comments.
29494
29495 2010-02-19  Bruno Haible  <bruno@clisp.org>
29496
29497         Make it easier to find modules. New gnulib-tool option '--find'.
29498         * gnulib-tool: New option --find.
29499         (func_usage): Document it.
29500         (func_sanitize_modulelist): New function, extracted from
29501         func_all_modules.
29502         (func_all_modules): Invoke it.
29503         * doc/gnulib-tool.texi (Which modules?): New node.
29504
29505 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
29506
29507         * lib/sys_select.in.h: Provide select replacement even if
29508         sys/select.h exists on a system, for Interix.
29509
29510 2010-02-18  Jim Meyering  <meyering@redhat.com>
29511
29512         init.sh: don't use $(...) just yet
29513         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
29514         to accommodate e.g., Solaris' /bin/sh.
29515
29516 2010-02-17  Bruno Haible  <bruno@clisp.org>
29517
29518         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
29519         Reported by Ludovic Courtès <ludo@gnu.org>.
29520
29521 2010-02-16  Simon Josefsson  <simon@josefsson.org>
29522
29523         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
29524         linking with -lintl.
29525
29526 2010-02-17  Simon Josefsson  <simon@josefsson.org>
29527
29528         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
29529         if not provided by the system's netdb.h.  Reported by
29530         ludo@gnu.org (Ludovic Courtès).
29531
29532 2010-02-15  Jim Meyering  <meyering@redhat.com>
29533
29534         init.sh: improve portability and efficiency
29535         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
29536         "dummy" in a for loop.
29537         Use '!', not '^' to select the complement of a character set used
29538         in a "case" statement.
29539         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
29540         Suggestions from Eric Blake.
29541
29542         init.sh: automatically accommodate programs with the .exe suffix
29543         Automatically arrange for an invocation of "prog" to execute the
29544         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
29545         may use the simpler "prog", yet still work when built on a system
29546         that requires specifying the added suffix.
29547         Do this by constructing a function named "prog" that invokes
29548         "prog.exe" for each .exe file in selected directories.
29549         * tests/init.sh (find_exe_basenames_): New function.
29550         (create_exe_shim_functions_): New function.
29551         (path_prepend_): Use it.
29552
29553         maint.mk: mark syntax-check sc_*.m rules as .PHONY
29554         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
29555         "make -t syntax-check" doesn't create a ton of sc_*.m files.
29556
29557 2010-02-14  Jim Meyering  <meyering@redhat.com>
29558
29559         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
29560         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
29561         (sc_prohibit_hash_pjw_without_use): New rule.
29562
29563         maint.mk: allow the default upload destination dir to be overridden
29564         * top/maint.mk (upload_dest_dir_): Define with a default that
29565         preserves the status quo.
29566         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
29567         Reported by Peter Simons.
29568
29569         maint.mk: prohibit inclusion of "hash.h" without_use
29570         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
29571
29572 2010-02-10  Jim Meyering  <meyering@redhat.com>
29573
29574         maint.mk: prohibit inclusion of "ignore-value.h" without_use
29575         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
29576
29577 2010-02-09  Eric Blake  <ebb9@byu.net>
29578         and Bruno Haible  <bruno@clisp.org>
29579
29580         obstack-printf-posix: ensure declaration
29581         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
29582         extracted from gl_FUNC_OBSTACK_PRINTF.
29583         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
29584         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29585         Likewise.
29586         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
29587         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
29588         0.
29589
29590 2010-02-08  Bruno Haible  <bruno@clisp.org>
29591
29592         gnulib-tool: Fix typo in 2010-02-07 commit.
29593         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
29594         Reported by Eric Blake.
29595
29596 2010-02-07  Bruno Haible  <bruno@clisp.org>
29597
29598         gnulib-tool: Fix up caching patches.
29599         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
29600         option --no-cache. Use associative arrays when supported by the shell.
29601         (sed_comments): New variable.
29602         (modcache): Renamed from do_cache.
29603         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
29604         abbreviate unnecessarily.
29605         (have_associative): New variable.
29606         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
29607         way also for ksh and zsh.
29608         (func_init_sed_convert_to_cache_statements): New function, extracted
29609         from func_cache_lookup_module. Add support for associative arrays.
29610         Don't set the c_MODULE_cached variable here. Ignore all lines before
29611         the first field header. Remove only the final newline, not all trailing
29612         newlines. Support empty fields correctly. Limit the use of 'eval' to
29613         assignments.
29614         (func_get_description, func_get_status, func_get_notice,
29615         func_get_applicability, func_get_filelist, func_get_dependencies,
29616         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
29617         func_get_automake_snippet, func_get_include_directive,
29618         func_get_link_directive, func_get_license, func_get_maintainer):
29619         Update documentation. List the unoptimized code first. Add support for
29620         associative arrays. Limit the use of 'eval' to assignments.
29621         (func_get_applicability): Undo stylistic pessimisations.
29622         (func_get_automake_snippet, func_get_include_directive): Reduce code
29623         duplication.
29624         (func_modules_transitive_closure, func_modules_add_dummy,
29625         func_modules_notice, func_modules_to_filelist, func_add_file,
29626         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
29627         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
29628         func_create_testdir, func_create_megatestdir): Update documentation.
29629
29630 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29631
29632         * gnulib-tool (func_cache_lookup_module): Store the module name
29633         belonging to the cache variable; error out if two different
29634         module names map to the same cache variable name.
29635
29636 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29637
29638         gnulib-tool: Make caching optional.
29639         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
29640         Update matching short versions of --no-changelog.
29641         (func_usage): Update.
29642         (sed_extract_cache_prog): Renamed from ...
29643         (sed_extract_prog): ... this; revert to old extraction script.
29644         (func_get_description, func_get_status)
29645         (func_get_notice, func_get_applicability, func_get_filelist)
29646         (func_get_dependencies, func_get_autoconf_early_snippet)
29647         (func_get_autoconf_snippet, func_get_automake_snippet)
29648         (func_get_include_directive, func_get_link_directive)
29649         (func_get_license, func_get_maintainer): If $do_cache is false,
29650         use old, non-caching extraction scripts.
29651         Suggestion by Bruno Haible.
29652
29653 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29654
29655         gnulib-tool: cache module metainformation.
29656         * gnulib-tool (sed_extract_prog): Match newline before each
29657         header, and rewrite header to a shell variable suffix.
29658         (func_cache_var, func_cache_lookup_module): New functions,
29659         to turn a module name into a cache variable prefix, and to
29660         look up and cache module metainformation.
29661         (func_get_description, func_get_status)
29662         (func_get_notice, func_get_applicability, func_get_filelist)
29663         (func_get_dependencies, func_get_autoconf_early_snippet)
29664         (func_get_autoconf_snippet, func_get_automake_snippet)
29665         (func_get_include_directive, func_get_link_directive)
29666         (func_get_license, func_get_maintainer): Use
29667         func_cache_lookup_module.
29668
29669 2010-02-07  Bruno Haible  <bruno@clisp.org>
29670
29671         fnctl: Fix missing dependency.
29672         * modules/fcntl (Depends-on): Add getdtablesize.
29673         Reported by John W. Eaton <jwe@gnu.org>.
29674
29675 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29676
29677         Argp: fix recognition of short alias options.
29678
29679         * lib/argp-parse.c (convert_options): Fix improper use of
29680         `|' between character values.
29681         * tests/test-argp.c (group1_option): New alias option
29682         --read (-r).
29683         (group1_parser): Special handling for 'r'.
29684         (test15): New test case.
29685         (test_fun): Add test15.
29686         * tests/test-argp-2.sh: Update expected --help and --usage
29687         outputs.
29688
29689 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29690
29691         * tests/test-argp.c: Fix indentation.
29692
29693 2010-02-04  Eric Blake  <ebb9@byu.net>
29694
29695         gettimeofday: expose type of second argument
29696         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
29697         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
29698         * tests/test-gettimeofday.c: Use it to silence warning.
29699         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
29700         the issue.
29701
29702 2010-02-03  Jim Meyering  <meyering@redhat.com>
29703
29704         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
29705         * lib/regcomp.c (TYPE_SIGNED): Define.
29706         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
29707
29708         regcomp.c: avoid a new -Wshadow warning
29709         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
29710
29711 2010-02-01  Jim Meyering  <meyering@redhat.com>
29712
29713         removing useless parentheses in cpp #define directives
29714         For motivation, see commit c0221df4, "define STREQ(a,b)
29715         consistently, removing useless parentheses"
29716         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
29717         * lib/mountlist.c (MNT_IGNORE): Likewise.
29718         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
29719
29720 2010-02-01  Eric Blake  <ebb9@byu.net>
29721
29722         sys_time: use link-warning
29723         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
29724         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
29725         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
29726         * modules/sys_time (Depends-on): Add warn-on-use.
29727         (Makefile.am): Always build replacement.
29728         (configure.ac): Update substitutions.
29729         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
29730         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
29731         bother with SYS_TIME_H.
29732         * modules/gettimeofday (configure.ac): Declare indicator.
29733         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
29734         in use.
29735
29736         closein-tests: silence compiler warning
29737         * tests/test-closein.c (main): Ignore fread result.
29738         * modules/closein-tests (Depends-on): Add ignore-value.
29739
29740         tests: silence warning about system return
29741         * tests/test-areadlink-with-size.c (main): Ignore system result.
29742         * tests/test-areadlink.c (main): Likewise.
29743         * tests/test-areadlinkat-with-size.c (main): Likewise.
29744         * tests/test-areadlinkat.c (main): Likewise.
29745         * tests/test-canonicalize-lgpl.c (main): Likewise.
29746         * tests/test-canonicalize.c (main): Likewise.
29747         * tests/test-chown.c (main): Likewise.
29748         * tests/test-fchownat.c (main): Likewise.
29749         * tests/test-fdutimensat.c (main): Likewise.
29750         * tests/test-fstatat.c (main): Likewise.
29751         * tests/test-futimens.c (main): Likewise.
29752         * tests/test-lchown.c (main): Likewise.
29753         * tests/test-link.c (main): Likewise.
29754         * tests/test-linkat.c (main): Likewise.
29755         * tests/test-lstat.c (main): Likewise.
29756         * tests/test-mkdir.c (main): Likewise.
29757         * tests/test-mkdirat.c (main): Likewise.
29758         * tests/test-mkfifo.c (main): Likewise.
29759         * tests/test-mkfifoat.c (main): Likewise.
29760         * tests/test-mknod.c (main): Likewise.
29761         * tests/test-readlink.c (main): Likewise.
29762         * tests/test-remove.c (main): Likewise.
29763         * tests/test-rename.c (main): Likewise.
29764         * tests/test-renameat.c (main): Likewise.
29765         * tests/test-rmdir.c (main): Likewise.
29766         * tests/test-symlink.c (main): Likewise.
29767         * tests/test-symlinkat.c (main): Likewise.
29768         * tests/test-unlink.c (main): Likewise.
29769         * tests/test-unlinkat.c (main): Likewise.
29770         * tests/test-utimens.c (main): Likewise.
29771         * tests/test-utimensat.c (main): Likewise.
29772         * modules/areadlink-tests (Depends-on): Add ignore-value.
29773         * modules/areadlink-with-size-tests (Depends-on): Likewise.
29774         * modules/areadlinkat-tests (Depends-on): Likewise.
29775         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
29776         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29777         * modules/canonicalize-tests (Depends-on): Likewise.
29778         * modules/chown-tests (Depends-on): Likewise.
29779         * modules/fdutimensat-tests (Depends-on): Likewise.
29780         * modules/futimens-tests (Depends-on): Likewise.
29781         * modules/lchown-tests (Depends-on): Likewise.
29782         * modules/link-tests (Depends-on): Likewise.
29783         * modules/linkat-tests (Depends-on): Likewise.
29784         * modules/lstat-tests (Depends-on): Likewise.
29785         * modules/mkdir-tests (Depends-on): Likewise.
29786         * modules/mkfifo-tests (Depends-on): Likewise.
29787         * modules/mkfifoat-tests (Depends-on): Likewise.
29788         * modules/mknod-tests (Depends-on): Likewise.
29789         * modules/openat-tests (Depends-on): Likewise.
29790         * modules/readlink-tests (Depends-on): Likewise.
29791         * modules/remove-tests (Depends-on): Likewise.
29792         * modules/rename-tests (Depends-on): Likewise.
29793         * modules/renameat-tests (Depends-on): Likewise.
29794         * modules/rmdir-tests (Depends-on): Likewise.
29795         * modules/symlink-tests (Depends-on): Likewise.
29796         * modules/symlinkat-tests (Depends-on): Likewise.
29797         * modules/unlink-tests (Depends-on): Likewise.
29798         * modules/utimens-tests (Depends-on): Likewise.
29799         * modules/utimensat-tests (Depends-on): Likewise.
29800
29801 2010-01-31  Bruno Haible  <bruno@clisp.org>
29802
29803         Perform the same test for many <math.h> functions.
29804         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
29805         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
29806         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
29807         of gl_MATHFUNC.
29808         * modules/acos (configure.ac): Likewise.
29809         * modules/asin (configure.ac): Likewise.
29810         * modules/atan (configure.ac): Likewise.
29811         * modules/atan2 (configure.ac): Likewise.
29812         * modules/cbrt (configure.ac): Likewise.
29813         * modules/copysign (configure.ac): Likewise.
29814         * modules/cos (configure.ac): Likewise.
29815         * modules/cosh (configure.ac): Likewise.
29816         * modules/erf (configure.ac): Likewise.
29817         * modules/erfc (configure.ac): Likewise.
29818         * modules/exp (configure.ac): Likewise.
29819         * modules/fmod (configure.ac): Likewise.
29820         * modules/hypot (configure.ac): Likewise.
29821         * modules/j0 (configure.ac): Likewise.
29822         * modules/j1 (configure.ac): Likewise.
29823         * modules/jn (configure.ac): Likewise.
29824         * modules/lgamma (configure.ac): Likewise.
29825         * modules/log (configure.ac): Likewise.
29826         * modules/log10 (configure.ac): Likewise.
29827         * modules/log1p (configure.ac): Likewise.
29828         * modules/pow (configure.ac): Likewise.
29829         * modules/remainder (configure.ac): Likewise.
29830         * modules/sin (configure.ac): Likewise.
29831         * modules/sinh (configure.ac): Likewise.
29832         * modules/tan (configure.ac): Likewise.
29833         * modules/tanh (configure.ac): Likewise.
29834         * modules/y0 (configure.ac): Likewise.
29835         * modules/y1 (configure.ac): Likewise.
29836         * modules/yn (configure.ac): Likewise.
29837         Suggested by Paolo Bonzini.
29838
29839 2010-01-31  Bruno Haible  <bruno@clisp.org>
29840
29841         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
29842
29843 2010-01-31  Bruno Haible  <bruno@clisp.org>
29844
29845         Work around getdelim() bug on FreeBSD 8.0.
29846         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
29847         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
29848         not work.
29849         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
29850         is 1.
29851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
29852         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
29853         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
29854         a non-zero size.
29855         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
29856
29857 2010-01-31  Bruno Haible  <bruno@clisp.org>
29858
29859         Work around getline() bug on FreeBSD 8.0.
29860         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
29861         and a non-zero size.
29862         * tests/test-getline.c (main): Likewise.
29863         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
29864         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
29865
29866 2010-01-28  Eric Blake  <ebb9@byu.net>
29867
29868         regex: fix build failure
29869         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
29870         platforms.
29871
29872 2010-01-28  Jim Meyering  <meyering@redhat.com>
29873
29874         regex: do not ignore memory allocation failure
29875         * lib/regex_internal.c (create_cd_newstate): Detect
29876         re_node_set_init_copy failure.   Extracted from glibc commit
29877         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29878
29879         regex: sync more white-space changes from libc
29880         * lib/regex_internal.c: White-space only changes.
29881         * lib/regexec.c: Likewise.
29882
29883         regex: add many uses of __attribute_warn_unused_result__
29884         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
29885         * lib/regexec.c: Likewise.
29886         Extracted from a messy glibc commit.
29887
29888         regcomp.c: spelling and merge-artifact from glibc
29889         * lib/regcomp.c: Merge remainder of glibc's
29890         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29891
29892         regcomp.c: sync white-space changes from glibc
29893         * lib/regcomp.c: Merge to accommodate white space
29894         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29895
29896         regcomp.c: do not ignore internal return values
29897         * lib/regcomp.c: Do not ignore internal return values.
29898         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
29899         but without its white-space changes and spelling fixes.
29900
29901         regex_internal.h: define __attribute_warn_unused_result__
29902         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
29903
29904         maint: add a syntax-check rule to check for vulnerable Makefile.in
29905         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
29906
29907 2010-01-27  Jim Meyering  <meyering@redhat.com>
29908
29909         ncftpput-ftp: clean up spaces
29910         * build-aux/ncftpput-ftp: Make Copyright line consistent.
29911         Remove trailing blanks.
29912
29913 2010-01-27  Simon Josefsson  <simon@josefsson.org>
29914
29915         * build-aux/git-version-gen: Fix copyright statement.
29916         * build-aux/gnupload: Likewise.
29917         * tests/test-arcfour.c: Likewise.
29918         * tests/test-arctwo.c: Likewise.
29919         * tests/test-count-one-bits.c: Likewise.
29920         * tests/test-crc.c: Likewise.
29921         * tests/test-des.c: Likewise.
29922         * tests/test-gc-arcfour.c: Likewise.
29923         * tests/test-gc-arctwo.c: Likewise.
29924         * tests/test-gc-des.c: Likewise.
29925         * tests/test-gc-hmac-md5.c: Likewise.
29926         * tests/test-gc-hmac-sha1.c: Likewise.
29927         * tests/test-gc-md2.c: Likewise.
29928         * tests/test-gc-md4.c: Likewise.
29929         * tests/test-gc-md5.c: Likewise.
29930         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29931         * tests/test-gc-rijndael.c: Likewise.
29932         * tests/test-gc-sha1.c: Likewise.
29933         * tests/test-gc.c: Likewise.
29934         * tests/test-gethostname.c: Likewise.
29935         * tests/test-gettimeofday.c: Likewise.
29936         * tests/test-hash.c: Likewise.
29937         * tests/test-hmac-md5.c: Likewise.
29938         * tests/test-hmac-sha1.c: Likewise.
29939         * tests/test-md2.c: Likewise.
29940         * tests/test-md4.c: Likewise.
29941         * tests/test-md5.c: Likewise.
29942         * tests/test-memchr.c: Likewise.
29943         * tests/test-memchr2.c: Likewise.
29944         * tests/test-memcmp.c: Likewise.
29945         * tests/test-memmem.c: Likewise.
29946         * tests/test-memrchr.c: Likewise.
29947         * tests/test-rawmemchr.c: Likewise.
29948         * tests/test-read-file.c: Likewise.
29949         * tests/test-rijndael.c: Likewise.
29950         * tests/test-sockets.c: Likewise.
29951         * tests/test-strchrnul.c: Likewise.
29952         * tests/test-strstr.c: Likewise.
29953         * tests/test-strtod.c: Likewise.
29954         * build-aux/ncftpput-ftp: Likewise.
29955
29956 2010-01-26  Eric Blake  <ebb9@byu.net>
29957
29958         ignore-value: update recommended header name
29959         * modules/ignore-value (Include): Only use <> for headers that
29960         exist in glibc.
29961
29962 2010-01-26  Jim Meyering  <meyering@redhat.com>
29963
29964         test-userspec.c: avoid compiler warnings
29965         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
29966         and "initialization discards qualifiers..." warnings.
29967         Put the first "uid" in its own scope, and make char* members "const".
29968
29969 2010-01-25  Bruno Haible  <bruno@clisp.org>
29970
29971         gnulib-tool: Make warning diagnostics consistent.
29972         * gnulib-tool (func_warning): New function.
29973         Use it everywhere where gnulib-tool produces output to stderr and it is
29974         not a fatal error.
29975
29976 2010-01-25  Bruno Haible  <bruno@clisp.org>
29977
29978         Fix test dependencies.
29979         * modules/xstrtol-tests (Depends-on): Add inttypes.
29980         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
29981
29982 2010-01-25 Pádraig Brady <P@draigBrady.com>
29983
29984         syntax-check: detect incorrect boolean macro values in config.h
29985         * modules/maintainer-makefile (configure.ac): Parameterize the location
29986         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
29987         The logic is from Eric Blake and the location indicated by Jim Meyering.
29988         Note the more natural CONFIG_HEADER name is prohibited by automake
29989         for backwards compatibility reasons.
29990         * top/maint.mk (sc_Wundef_boolean): New rule.
29991
29992 2010-01-25  Jim Meyering  <meyering@redhat.com>
29993
29994         bootstrap: detect MacOS 10.6's shasum, too
29995         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
29996         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
29997
29998 2010-01-23  Jim Meyering  <meyering@redhat.com>
29999
30000         xstrtoll: new module
30001         * modules/xstrtoll: New file.
30002         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
30003         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
30004         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
30005         ./configure fails if you use this module and lack "long long".
30006         * modules/xstrtoll-tests: New module.
30007         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
30008         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
30009         new init.sh-based test framework.
30010
30011 2010-01-24  Bruno Haible  <bruno@clisp.org>
30012
30013         Tests for module 'yn'.
30014         * modules/yn-tests: New file.
30015         * tests/test-yn.c: New file.
30016
30017         Tests for module 'y1'.
30018         * modules/y1-tests: New file.
30019         * tests/test-y1.c: New file.
30020
30021         Tests for module 'y0'.
30022         * modules/y0-tests: New file.
30023         * tests/test-y0.c: New file.
30024
30025         Tests for module 'tanh'.
30026         * modules/tanh-tests: New file.
30027         * tests/test-tanh.c: New file.
30028
30029         Tests for module 'tan'.
30030         * modules/tan-tests: New file.
30031         * tests/test-tan.c: New file.
30032
30033         Tests for module 'sqrt'.
30034         * modules/sqrt-tests: New file.
30035         * tests/test-sqrt.c: New file.
30036
30037         Tests for module 'sinh'.
30038         * modules/sinh-tests: New file.
30039         * tests/test-sinh.c: New file.
30040
30041         Tests for module 'sin'.
30042         * modules/sin-tests: New file.
30043         * tests/test-sin.c: New file.
30044
30045         Tests for module 'rint'.
30046         * modules/rint-tests: New file.
30047         * tests/test-rint.c: New file.
30048
30049         Tests for module 'remainder'.
30050         * modules/remainder-tests: New file.
30051         * tests/test-remainder.c: New file.
30052
30053         Tests for module 'pow'.
30054         * modules/pow-tests: New file.
30055         * tests/test-pow.c: New file.
30056
30057         Tests for module 'nextafter'.
30058         * modules/nextafter-tests: New file.
30059         * tests/test-nextafter.c: New file.
30060
30061         Tests for module 'modf'.
30062         * modules/modf-tests: New file.
30063         * tests/test-modf.c: New file.
30064
30065         Tests for module 'logb'.
30066         * modules/logb-tests: New file.
30067         * tests/test-logb.c: New file.
30068
30069         Tests for module 'log1p'.
30070         * modules/log1p-tests: New file.
30071         * tests/test-log1p.c: New file.
30072
30073         Tests for module 'log10'.
30074         * modules/log10-tests: New file.
30075         * tests/test-log10.c: New file.
30076
30077         Tests for module 'log'.
30078         * modules/log-tests: New file.
30079         * tests/test-log.c: New file.
30080
30081         Tests for module 'lgamma'.
30082         * modules/lgamma-tests: New file.
30083         * tests/test-lgamma.c: New file.
30084
30085         Tests for module 'ldexp'.
30086         * modules/ldexp-tests: New file.
30087         * tests/test-ldexp.c: New file.
30088
30089         Tests for module 'jn'.
30090         * modules/jn-tests: New file.
30091         * tests/test-jn.c: New file.
30092
30093         Tests for module 'j1'.
30094         * modules/j1-tests: New file.
30095         * tests/test-j1.c: New file.
30096
30097         Tests for module 'j0'.
30098         * modules/j0-tests: New file.
30099         * tests/test-j0.c: New file.
30100
30101         Tests for module 'hypot'.
30102         * modules/hypot-tests: New file.
30103         * tests/test-hypot.c: New file.
30104
30105         Tests for module 'fmod'.
30106         * modules/fmod-tests: New file.
30107         * tests/test-fmod.c: New file.
30108
30109         Tests for module 'fabs'.
30110         * modules/fabs-tests: New file.
30111         * tests/test-fabs.c: New file.
30112
30113         Tests for module 'exp'.
30114         * modules/exp-tests: New file.
30115         * tests/test-exp.c: New file.
30116
30117         Tests for module 'erfc'.
30118         * modules/erfc-tests: New file.
30119         * tests/test-erfc.c: New file.
30120
30121         Tests for module 'erf'.
30122         * modules/erf-tests: New file.
30123         * tests/test-erf.c: New file.
30124
30125         Tests for module 'cosh'.
30126         * modules/cosh-tests: New file.
30127         * tests/test-cosh.c: New file.
30128
30129         Tests for module 'cos'.
30130         * modules/cos-tests: New file.
30131         * tests/test-cos.c: New file.
30132
30133         Tests for module 'copysign'.
30134         * modules/copysign-tests: New file.
30135         * tests/test-copysign.c: New file.
30136
30137         Tests for module 'cbrt'.
30138         * modules/cbrt-tests: New file.
30139         * tests/test-cbrt.c: New file.
30140
30141         Tests for module 'atan2'.
30142         * modules/atan2-tests: New file.
30143         * tests/test-atan2.c: New file.
30144
30145         Tests for module 'atan'.
30146         * modules/atan-tests: New file.
30147         * tests/test-atan.c: New file.
30148
30149         Tests for module 'asin'.
30150         * modules/asin-tests: New file.
30151         * tests/test-asin.c: New file.
30152
30153         Tests for module 'acos'.
30154         * modules/acos-tests: New file.
30155         * tests/test-acos.c: New file.
30156
30157 2010-01-24  Bruno Haible  <bruno@clisp.org>
30158
30159         Fix tests for common <math.h> functions.
30160         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
30161         code snippet that references the function pointer, rather than merely
30162         calling the function. Substitute the FUNC_LIBM variable.
30163         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
30164         * modules/acos (configure.ac): Likewise.
30165         * modules/asin (configure.ac): Likewise.
30166         * modules/atan (configure.ac): Likewise.
30167         * modules/atan2 (configure.ac): Likewise.
30168         * modules/cbrt (configure.ac): Likewise.
30169         * modules/copysign (configure.ac): Likewise.
30170         * modules/cos (configure.ac): Likewise.
30171         * modules/cosh (configure.ac): Likewise.
30172         * modules/erf (configure.ac): Likewise.
30173         * modules/erfc (configure.ac): Likewise.
30174         * modules/exp (configure.ac): Likewise.
30175         * modules/fabs (configure.ac): Likewise.
30176         * modules/fmod (configure.ac): Likewise.
30177         * modules/hypot (configure.ac): Likewise.
30178         * modules/j0 (configure.ac): Likewise.
30179         * modules/j1 (configure.ac): Likewise.
30180         * modules/jn (configure.ac): Likewise.
30181         * modules/ldexp (configure.ac): Likewise.
30182         * modules/lgamma (configure.ac): Likewise.
30183         * modules/log (configure.ac): Likewise.
30184         * modules/log10 (configure.ac): Likewise.
30185         * modules/log1p (configure.ac): Likewise.
30186         * modules/logb (configure.ac): Likewise.
30187         * modules/modf (configure.ac): Likewise.
30188         * modules/nextafter (configure.ac): Likewise.
30189         * modules/pow (configure.ac): Likewise.
30190         * modules/remainder (configure.ac): Likewise.
30191         * modules/rint (configure.ac): Likewise.
30192         * modules/sin (configure.ac): Likewise.
30193         * modules/sinh (configure.ac): Likewise.
30194         * modules/tan (configure.ac): Likewise.
30195         * modules/tanh (configure.ac): Likewise.
30196         * modules/y0 (configure.ac): Likewise.
30197         * modules/y1 (configure.ac): Likewise.
30198         * modules/yn (configure.ac): Likewise.
30199
30200 2010-01-24  Bruno Haible  <bruno@clisp.org>
30201
30202         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
30203         * tests/test-acosl.c (x): New variable.
30204         (main): Store argument in x and fetch it from x.
30205         * tests/test-asinl.c (x): New variable.
30206         (main): Store argument in x and fetch it from x.
30207         * tests/test-atanl.c (x): New variable.
30208         (main): Store argument in x and fetch it from x.
30209         * tests/test-cosl.c (x): New variable.
30210         (main): Store argument in x and fetch it from x.
30211         * tests/test-expl.c (x): New variable.
30212         (main): Store argument in x and fetch it from x.
30213         * tests/test-logl.c (x): New variable.
30214         (main): Store argument in x and fetch it from x.
30215         * tests/test-sinl.c (x): New variable.
30216         (main): Store argument in x and fetch it from x.
30217         * tests/test-sqrtl.c (x): New variable.
30218         (main): Store argument in x and fetch it from x.
30219         * tests/test-tanl.c (x): New variable.
30220         (main): Store argument in x and fetch it from x.
30221
30222 2010-01-24  Bruno Haible  <bruno@clisp.org>
30223
30224         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
30225         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
30226         assignments to the initial TESTS_ENVIRONMENT.
30227         * doc/gnulib.texi (Unit test modules): Document it.
30228         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
30229         TESTS_ENVIRONMENT.
30230         * modules/btowc-tests (Makefile.am): Likewise.
30231         * modules/c-stack-tests (Makefile.am): Likewise.
30232         * modules/c-strcase-tests (Makefile.am): Likewise.
30233         * modules/copy-file-tests (Makefile.am): Likewise.
30234         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
30235         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
30236         * modules/mbrtowc-tests (Makefile.am): Likewise.
30237         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30238         * modules/mbscasestr-tests (Makefile.am): Likewise.
30239         * modules/mbschr-tests (Makefile.am): Likewise.
30240         * modules/mbscspn-tests (Makefile.am): Likewise.
30241         * modules/mbsinit-tests (Makefile.am): Likewise.
30242         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30243         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
30244         * modules/mbspbrk-tests (Makefile.am): Likewise.
30245         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30246         * modules/mbsrchr-tests (Makefile.am): Likewise.
30247         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
30248         * modules/mbsspn-tests (Makefile.am): Likewise.
30249         * modules/mbsstr-tests (Makefile.am): Likewise.
30250         * modules/nl_langinfo-tests (Makefile.am): Likewise.
30251         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
30252         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30253         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30254         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30255         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30256         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
30257         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30258         * modules/wcrtomb-tests (Makefile.am): Likewise.
30259         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
30260         * modules/wcsrtombs-tests (Makefile.am): Likewise.
30261         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
30262         assignments from TESTS_ENVIRONMENT.
30263         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
30264         augmentation.
30265         * modules/argp-version-etc-tests (Makefile.am): Likewise.
30266         * modules/atexit-tests (Makefile.am): Likewise.
30267         * modules/binary-io-tests (Makefile.am): Likewise.
30268         * modules/closein-tests (Makefile.am): Likewise.
30269         * modules/dprintf-posix-tests (Makefile.am): Likewise.
30270         * modules/exclude-tests (Makefile.am): Likewise.
30271         * modules/fflush-tests (Makefile.am): Likewise.
30272         * modules/fpending-tests (Makefile.am): Likewise.
30273         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30274         * modules/freadahead-tests (Makefile.am): Likewise.
30275         * modules/freadptr-tests (Makefile.am): Likewise.
30276         * modules/freadseek-tests (Makefile.am): Likewise.
30277         * modules/fseek-tests (Makefile.am): Likewise.
30278         * modules/fseeko-tests (Makefile.am): Likewise.
30279         * modules/ftell-tests (Makefile.am): Likewise.
30280         * modules/ftello-tests (Makefile.am): Likewise.
30281         * modules/idpriv-drop-tests (Makefile.am): Likewise.
30282         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
30283         * modules/lseek-tests (Makefile.am): Likewise.
30284         * modules/parse-duration-tests (Makefile.am): Likewise.
30285         * modules/perror-tests (Makefile.am): Likewise.
30286         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
30287         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
30288         * modules/pipe-tests (Makefile.am): Likewise.
30289         * modules/pread-tests (Makefile.am): Likewise.
30290         * modules/printf-posix-tests (Makefile.am): Likewise.
30291         * modules/select-tests (Makefile.am): Likewise.
30292         * modules/sigpipe-tests (Makefile.am): Likewise.
30293         * modules/tsearch-tests (Makefile.am): Likewise.
30294         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
30295         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
30296         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30297         * modules/uniwidth/width-tests (Makefile.am): Likewise.
30298         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
30299         * modules/version-etc-tests (Makefile.am): Likewise.
30300         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30301         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30302         * modules/xalloc-die-tests (Makefile.am): Likewise.
30303         * modules/xprintf-posix-tests (Makefile.am): Likewise.
30304         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30305         * modules/xstrtol-tests (Makefile.am): Likewise.
30306         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30307         * modules/yesno-tests (Makefile.am): Likewise.
30308         Suggested by Jim Meyering.
30309
30310 2010-01-24  Bruno Haible  <bruno@clisp.org>
30311
30312         More documentation.
30313         * doc/gnulib.texi (Writing modules): New chapter.
30314         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
30315         the new chapter.
30316
30317 2010-01-24  Jim Meyering  <meyering@redhat.com>
30318
30319         maint.mk: do not prepend "./" after filtering
30320         * top/maint.mk (_prepend_srcdir_prefix): New variable
30321         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
30322         "./" when $(srcdir) is ".".
30323
30324         define STREQ(a,b) consistently, removing useless parentheses
30325         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
30326         since the only risk is that "a" or "b" contains an unparenthesized
30327         comma, but if either did that, STREQ would have 3 or more arguments.
30328         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
30329         * lib/fts.c (STREQ): Remove unnecessary parentheses.
30330         * lib/hash-triple.c (STREQ): Likewise.
30331         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
30332         * lib/getugroups.c (STREQ): Likewise.
30333
30334 2010-01-23  Jim Meyering  <meyering@redhat.com>
30335
30336         maint.mk: fix syntax-check in a non-srcdir build directory
30337         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
30338         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
30339
30340 2010-01-22  Jim Meyering  <meyering@redhat.com>
30341
30342         userspec: add unit tests
30343         * tests/test-userspec.c: New file.
30344         * modules/userspec-tests: Likewise.
30345
30346 2010-01-21  Jim Meyering  <meyering@redhat.com>
30347
30348         maint.mk: handle source file names containing "." robustly
30349         * top/maint.mk (_dot_escaped_srcdir): Define.
30350         (VC_LIST): Use it in LHS of sed substitution.
30351
30352 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
30353
30354         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
30355         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
30356         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
30357         from a non-srcdir build.
30358
30359 2010-01-20  Eric Blake  <ebb9@byu.net>
30360
30361         warn-on-use: use instead of link-warning
30362         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
30363         * modules/unistd (Depends-on, Makefile.am): Likewise.
30364         * modules/arpa_inet (Depends-on): Replace link-warning with
30365         warn-on-use.
30366         (Makefile.am): Update rules accordingly.
30367         * modules/ctype (Depends-on, Makefile.am): Likewise.
30368         * modules/dirent (Depends-on, Makefile.am): Likewise.
30369         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
30370         * modules/inttypes (Depends-on, Makefile.am): Likewise.
30371         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30372         * modules/locale (Depends-on, Makefile.am): Likewise.
30373         * modules/math (Depends-on, Makefile.am): Likewise.
30374         * modules/search (Depends-on, Makefile.am): Likewise.
30375         * modules/signal (Depends-on, Makefile.am): Likewise.
30376         * modules/spawn (Depends-on, Makefile.am): Likewise.
30377         * modules/stdlib (Depends-on, Makefile.am): Likewise.
30378         * modules/string (Depends-on, Makefile.am): Likewise.
30379         * modules/strings (Depends-on, Makefile.am): Likewise.
30380         * modules/sys_file (Depends-on, Makefile.am): Likewise.
30381         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
30382         * modules/sys_select (Depends-on, Makefile.am): Likewise.
30383         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
30384         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
30385         * modules/sys_times (Depends-on, Makefile.am): Likewise.
30386         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30387         * modules/wchar (Depends-on, Makefile.am): Likewise.
30388         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
30389         should be poisoned.
30390         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
30391         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
30392         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
30393         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30394         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30395         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30396         * m4/math_h.m4 (gl_MATH_H): Likewise.
30397         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30398         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30399         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30400         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30401         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30402         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30403         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30404         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
30405         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
30406         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30407         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30408         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30409         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30410         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30411         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30412         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30413         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
30414         GL_LINK_WARNING.
30415         * lib/ctype.in.h: Likewise.
30416         * lib/dirent.in.h: Likewise.
30417         * lib/fcntl.in.h: Likewise.
30418         * lib/inttypes.in.h: Likewise.
30419         * lib/langinfo.in.h: Likewise.
30420         * lib/locale.in.h: Likewise.
30421         * lib/math.in.h: Likewise.
30422         * lib/search.in.h: Likewise.
30423         * lib/signal.in.h: Likewise.
30424         * lib/spawn.in.h: Likewise.
30425         * lib/stdio.in.h: Likewise.
30426         * lib/stdlib.in.h: Likewise.
30427         * lib/string.in.h: Likewise.
30428         * lib/strings.in.h: Likewise.
30429         * lib/sys_file.in.h: Likewise.
30430         * lib/sys_ioctl.in.h: Likewise.
30431         * lib/sys_select.in.h: Likewise.
30432         * lib/sys_socket.in.h: Likewise.
30433         * lib/sys_stat.in.h: Likewise.
30434         * lib/sys_times.in.h: Likewise.
30435         * lib/sys_utsname.in.h: Likewise.
30436         * lib/unistd.in.h: Likewise.
30437         * lib/wchar.in.h: Likewise.
30438
30439 2010-01-20  Bruno Haible  <bruno@clisp.org>
30440
30441         Avoid duplicate -lm.
30442         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
30443         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
30444         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
30445         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
30446         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
30447         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
30448         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
30449         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
30450         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
30451         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
30452         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
30453         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30454         Reported by Paolo Bonzini.
30455
30456 2010-01-19  Bruno Haible  <bruno@clisp.org>
30457
30458         langinfo, nl_langinfo: Relicense under LGPLv2+.
30459         * modules/langinfo (License): Change to LGPLv2+.
30460         * modules/nl_langinfo (License): Likewise.
30461         Patch by David Lutterkort <lutter@redhat.com>.
30462
30463 2010-01-19  Bruno Haible  <bruno@clisp.org>
30464
30465         Avoid compilation error with cc on OSF/1 5.1.
30466         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
30467         statement, not before.
30468         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30469
30470 2010-01-18  Bruno Haible  <bruno@clisp.org>
30471
30472         Avoid a link error due to the __printf__ symbol.
30473         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
30474         and 2.6.x.
30475         (__format__, __printf__): Remove definitions.
30476         * lib/argp-fmtstream.h: Likewise.
30477         * lib/argp.h: Likewise.
30478         * lib/error.h: Likewise.
30479         * lib/vasnprintf.h: Likewise.
30480         * lib/xprintf.h: Likewise.
30481         * lib/xvasprintf.h: Likewise.
30482         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30483
30484 2010-01-18  Bruno Haible  <bruno@clisp.org>
30485
30486         Tests for module 'tanl'.
30487         * modules/tanl-tests: New file.
30488         * tests/test-tanl.c: New file.
30489
30490         Tests for module 'sqrtl'.
30491         * modules/sqrtl-tests: New file.
30492         * tests/test-sqrtl.c: New file.
30493
30494         Tests for module 'sinl'.
30495         * modules/sinl-tests: New file.
30496         * tests/test-sinl.c: New file.
30497
30498         Tests for module 'logl'.
30499         * modules/logl-tests: New file.
30500         * tests/test-logl.c: New file.
30501
30502         Tests for module 'expl'.
30503         * modules/expl-tests: New file.
30504         * tests/test-expl.c: New file.
30505
30506         Tests for module 'cosl'.
30507         * modules/cosl-tests: New file.
30508         * tests/test-cosl.c: New file.
30509
30510         Tests for module 'atanl'.
30511         * modules/atanl-tests: New file.
30512         * tests/test-atanl.c: New file.
30513
30514         Tests for module 'asinl'.
30515         * modules/asinl-tests: New file.
30516         * tests/test-asinl.c: New file.
30517
30518         Tests for module 'acosl'.
30519         * modules/acosl-tests: New file.
30520         * tests/test-acosl.c: New file.
30521
30522         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30523         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
30524         tanl): Use the standard gnulib idiom.
30525         * lib/cosl.c: Don't include trigl.c and sincosl.c.
30526         * lib/sinl.c: Likewise.
30527         * lib/tanl.c: Don't include trigl.c.
30528         (kernel_tanl): Make static.
30529         * lib/sincosl.c: Include trigl.h first.
30530         * lib/trigl.c: Likewise.
30531         * m4/acosl.m4: New file.
30532         * m4/asinl.m4: New file.
30533         * m4/atanl.m4: New file.
30534         * m4/cosl.m4: New file.
30535         * m4/expl.m4: New file.
30536         * m4/logl.m4: New file.
30537         * m4/sinl.m4: New file.
30538         * m4/sqrtl.m4: New file.
30539         * m4/tanl.m4: New file.
30540         * m4/mathl.m4: Remove file.
30541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
30542         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30543         Don't initialize GNULIB_MATHL.
30544         * modules/acosl: New file.
30545         * modules/asinl: New file.
30546         * modules/atanl: New file.
30547         * modules/cosl: New file.
30548         * modules/expl: New file.
30549         * modules/logl: New file.
30550         * modules/sinl: New file.
30551         * modules/sqrtl: New file.
30552         * modules/tanl: New file.
30553         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
30554         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
30555         substitute GNULIB_MATHL.
30556         * modules/mathl: Rewritten.
30557         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
30558         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
30559         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
30560         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
30561         * doc/posix-functions/expl.texi: Mention the 'expl' module.
30562         * doc/posix-functions/logl.texi: Mention the 'logl' module.
30563         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
30564         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
30565         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
30566
30567 2010-01-18  Bruno Haible  <bruno@clisp.org>
30568
30569         sqrt: Make gl_FUNC_SQRT requirable.
30570         * m4/sqrt.m4: New file.
30571         * modules/sqrt (Files): Add it.
30572         (configure.ac): Invoke gl_FUNC_SQRT.
30573
30574 2010-01-18  Bruno Haible  <bruno@clisp.org>
30575
30576         New modules for common <math.h> functions.
30577         * m4/mathfunc.m4: New file.
30578         * modules/acos: New file.
30579         * modules/asin: New file.
30580         * modules/atan: New file.
30581         * modules/atan2: New file.
30582         * modules/cbrt: New file.
30583         * modules/copysign: New file.
30584         * modules/cos: New file.
30585         * modules/cosh: New file.
30586         * modules/erf: New file.
30587         * modules/erfc: New file.
30588         * modules/exp: New file.
30589         * modules/fabs: New file.
30590         * modules/fmod: New file.
30591         * modules/hypot: New file.
30592         * modules/j0: New file.
30593         * modules/j1: New file.
30594         * modules/jn: New file.
30595         * modules/ldexp: New file.
30596         * modules/lgamma: New file.
30597         * modules/log: New file.
30598         * modules/log10: New file.
30599         * modules/log1p: New file.
30600         * modules/logb: New file.
30601         * modules/modf: New file.
30602         * modules/nextafter: New file.
30603         * modules/pow: New file.
30604         * modules/remainder: New file.
30605         * modules/rint: New file.
30606         * modules/sin: New file.
30607         * modules/sinh: New file.
30608         * modules/sqrt: New file.
30609         * modules/tan: New file.
30610         * modules/tanh: New file.
30611         * modules/y0: New file.
30612         * modules/y1: New file.
30613         * modules/yn: New file.
30614         * doc/posix-functions/acos.texi: Mention the 'acos' module.
30615         * doc/posix-functions/asin.texi: Mention the 'asin' module.
30616         * doc/posix-functions/atan.texi: Mention the 'atan' module.
30617         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
30618         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
30619         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
30620         * doc/posix-functions/cos.texi: Mention the 'cos' module.
30621         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
30622         * doc/posix-functions/erf.texi: Mention the 'erf' module.
30623         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
30624         * doc/posix-functions/exp.texi: Mention the 'exp' module.
30625         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
30626         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
30627         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
30628         * doc/posix-functions/j0.texi: Mention the 'j0' module.
30629         * doc/posix-functions/j1.texi: Mention the 'j1' module.
30630         * doc/posix-functions/jn.texi: Mention the 'jn' module.
30631         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
30632         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
30633         * doc/posix-functions/log.texi: Mention the 'log' module.
30634         * doc/posix-functions/log10.texi: Mention the 'log10' module.
30635         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
30636         * doc/posix-functions/logb.texi: Mention the 'logb' module.
30637         * doc/posix-functions/modf.texi: Mention the 'modf' module.
30638         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
30639         * doc/posix-functions/pow.texi: Mention the 'pow' module.
30640         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
30641         * doc/posix-functions/rint.texi: Mention the 'rint' module.
30642         * doc/posix-functions/sin.texi: Mention the 'sin' module.
30643         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
30644         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
30645         * doc/posix-functions/tan.texi: Mention the 'tan' module.
30646         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
30647         * doc/posix-functions/y0.texi: Mention the 'y0' module.
30648         * doc/posix-functions/y1.texi: Mention the 'y1' module.
30649         * doc/posix-functions/yn.texi: Mention the 'yn' module.
30650
30651 2010-01-18  Jim Meyering  <meyering@redhat.com>
30652
30653         ignore-value: relax license to LGPLv2+
30654         * modules/ignore-value (License): Relax to LGPLv2+.
30655
30656         getdate: don't leak when TZ contains two or more '"'s
30657         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
30658         double quote in TZ after the first one.
30659
30660         readtokens: do not leak internal token_lengths buffer
30661         * lib/readtokens.c (readtokens): Free the local, lengths,
30662         when the supplied "token_lengths" parameter is NULL.
30663
30664 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30665
30666         Fix a couple of missing LIBTHREAD link failures on AIX.
30667         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
30668         $(LIBTHREAD).
30669         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
30670
30671         Link test-poll against INET_PTON_LIB.
30672         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
30673         for inet_pton on Solaris 10.
30674
30675 2010-01-17  Bruno Haible  <bruno@clisp.org>
30676
30677         unistdio/*-sprintf: Fix typo in module description.
30678         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
30679         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
30680         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
30681         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
30682         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
30683         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
30684         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
30685         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30686
30687 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30688
30689         gnulib-tool: fix filelist for AIX, HP-UX ksh.
30690         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
30691         variables in shell case patterns, for AIX and HP-UX ksh.
30692
30693         Split large sed scripts, for HP-UX sed.
30694         * modules/stdio: Split sed scripts around 50 sed commands,
30695         to avoid HP-UX limit of 99 commands, in the near future.
30696         * modules/string: Likewise.
30697         * modules/unistd: Likewise.
30698
30699         gnulib-tool: avoid writing in the current directory.
30700         * gnulib-tool (func_emit_lib_Makefile_am)
30701         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
30702         not in the current directory, so concurrent gnulib-tool
30703         instances do not interfere.
30704
30705 2010-01-16  Jim Meyering  <meyering@redhat.com>
30706
30707         doc: update users.txt
30708         * users.txt: Add grep.
30709         (diffutils, gzip): Update URLs.
30710
30711 2010-01-12  Bruno Haible  <bruno@clisp.org>
30712
30713         posix_spawn: Avoid test failure on Cygwin.
30714         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
30715         characters.
30716         Reported by Simon Josefsson.
30717
30718 2010-01-12  Bruno Haible  <bruno@clisp.org>
30719
30720         * tests/test-cond.c (main): When skipping the test, show the reason.
30721
30722 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30723
30724         * lib/striconv.c (str_cd_iconv): Avoid if before free.
30725
30726 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30727
30728         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
30729         VC_LIST_ALWAYS_EXCLUDE_REGEX.
30730
30731 2010-01-12  Eric Blake  <ebb9@byu.net>
30732
30733         build: guarantee AS_VAR_IF
30734         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
30735         (gl_AS_VAR_IF): Move...
30736         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
30737         Reported by Simon Josefsson.
30738
30739 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30740
30741         * lib/stdio.in.h: Fix typo.
30742
30743 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30744
30745         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
30746         libgpg-error.
30747
30748 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30749
30750         * tests/test-xalloc-die.sh: Use $EXEEXT.
30751
30752 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30753             Bruno Haible  <bruno@clisp.org>
30754
30755         getlogin, getlogin_r: Avoid test failure.
30756         * tests/test-getlogin.c: Include <stdio.h>.
30757         (main): Skip the test when the function fails because stdin is not a
30758         tty.
30759         * tests/test-getlogin_r.c: Include <stdio.h>.
30760         (main): Skip the test when the function fails because stdin is not a
30761         tty.
30762
30763 2010-01-11  Eric Blake  <ebb9@byu.net>
30764
30765         tests: avoid more large file warnings
30766         * tests/test-fflush.c: Avoid warning about ftell use.
30767         * tests/test-fseek.c: Avoid warning about fseek use.
30768
30769 2010-01-10  Bruno Haible  <bruno@clisp.org>
30770
30771         nproc: Work better on Linux when /proc and /sys are not mounted.
30772         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
30773         as lower bound when, on glibc/Linux systems,
30774         sysconf (_SC_NPROCESSORS_CONF) returns 1.
30775         Suggested by Pádraig Brady <P@draigbrady.com>.
30776         Reported by Dmitry V. Levin <ldv@altlinux.org>.
30777
30778         nproc: Refactor.
30779         * lib/nproc.c (num_processors_via_affinity_mask): New function,
30780         extracted from num_processors.
30781         (num_processors): Call it.
30782
30783 2010-01-11  Jim Meyering  <meyering@redhat.com>
30784
30785         utimecmp: avoid new warning from upcoming gcc-4.5.0
30786         * lib/utimecmp.c (BILLION): Define using #define rather than an
30787         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
30788
30789 2010-01-11  Eric Blake  <ebb9@byu.net>
30790
30791         math: add portability warnings for classification macros
30792         * modules/math (Depends-on): Add warn-on-use.
30793         (Makefile.am): Provide new substitutions.
30794         * m4/math_h.m4 (gl_MATH_H): Require inline.
30795         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
30796         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
30797         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
30798         implement warnings.
30799
30800         unistd: warn on use of environ without module
30801         * modules/unistd (Depends-on): Add warn-on-use.
30802         (Makefile.am): Provide new substitutions.
30803         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
30804         * lib/unistd.in.h (environ): Wrap with a warning helper function.
30805
30806         stdio: warn on suspicious uses
30807         * modules/stdio (Depends-on): Add warn-on-use.
30808         (Makefile.am): Provide new substitutions.
30809         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
30810         fseeko.
30811         * lib/stdio.in.h (gets): Always warn on use.
30812         (fseek, ftell): Adjust when warnings are issued, and honor
30813         _GL_NO_LARGE_FILES as a way to silence the warning.
30814         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
30815         any warning about large file offsets.
30816         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
30817         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
30818         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
30819         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
30820         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
30821         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
30822         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
30823         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
30824
30825         warn-on-use: new module
30826         * modules/warn-on-use: New file.
30827         * build-aux/warn-on-use.h: Likewise.
30828         * m4/warn-on-use.m4: Likewise.
30829         * MODULES.html.sh (Support for building): Mention it.
30830
30831 2010-01-10  Bruno Haible  <bruno@clisp.org>
30832
30833         Tests for module 'unistr/u32-strdup'.
30834         * modules/unistr/u32-strdup-tests: New file.
30835         * tests/unistr/test-u32-strdup.c: New file.
30836
30837         Tests for module 'unistr/u16-strdup'.
30838         * modules/unistr/u16-strdup-tests: New file.
30839         * tests/unistr/test-u16-strdup.c: New file.
30840
30841         Tests for module 'unistr/u8-strdup'.
30842         * modules/unistr/u8-strdup-tests: New file.
30843         * tests/unistr/test-u8-strdup.c: New file.
30844         * tests/unistr/test-strdup.h: New file.
30845
30846         Tests for module 'unistr/u32-strncmp'.
30847         * modules/unistr/u32-strncmp-tests: New file.
30848         * tests/unistr/test-u32-strncmp.c: New file.
30849
30850         Tests for module 'unistr/u16-strncmp'.
30851         * modules/unistr/u16-strncmp-tests: New file.
30852         * tests/unistr/test-u16-strncmp.c: New file.
30853
30854         Tests for module 'unistr/u8-strncmp'.
30855         * modules/unistr/u8-strncmp-tests: New file.
30856         * tests/unistr/test-u8-strncmp.c: New file.
30857         * tests/unistr/test-strncmp.h: New file.
30858
30859         Tests for module 'unistr/u32-strcoll'.
30860         * modules/unistr/u32-strcoll-tests: New file.
30861         * tests/unistr/test-u32-strcoll.c: New file.
30862
30863         Tests for module 'unistr/u16-strcoll'.
30864         * modules/unistr/u16-strcoll-tests: New file.
30865         * tests/unistr/test-u16-strcoll.c: New file.
30866
30867         Tests for module 'unistr/u8-strcoll'.
30868         * modules/unistr/u8-strcoll-tests: New file.
30869         * tests/unistr/test-u8-strcoll.c: New file.
30870
30871         Tests for module 'unistr/u32-strcmp'.
30872         * modules/unistr/u32-strcmp-tests: New file.
30873         * tests/unistr/test-u32-strcmp.c: New file.
30874         * tests/unistr/test-u32-strcmp.h: New file.
30875
30876         Tests for module 'unistr/u16-strcmp'.
30877         * modules/unistr/u16-strcmp-tests: New file.
30878         * tests/unistr/test-u16-strcmp.c: New file.
30879         * tests/unistr/test-u16-strcmp.h: New file.
30880
30881         Tests for module 'unistr/u8-strcmp'.
30882         * modules/unistr/u8-strcmp-tests: New file.
30883         * tests/unistr/test-u8-strcmp.c: New file.
30884         * tests/unistr/test-u8-strcmp.h: New file.
30885         * tests/unistr/test-strcmp.h: New file.
30886
30887         Tests for module 'unistr/u32-strncat'.
30888         * modules/unistr/u32-strncat-tests: New file.
30889         * tests/unistr/test-u32-strncat.c: New file.
30890
30891         Tests for module 'unistr/u16-strncat'.
30892         * modules/unistr/u16-strncat-tests: New file.
30893         * tests/unistr/test-u16-strncat.c: New file.
30894
30895         Tests for module 'unistr/u8-strncat'.
30896         * modules/unistr/u8-strncat-tests: New file.
30897         * tests/unistr/test-u8-strncat.c: New file.
30898         * tests/unistr/test-strncat.h: New file.
30899
30900         Tests for module 'unistr/u32-strcat'.
30901         * modules/unistr/u32-strcat-tests: New file.
30902         * tests/unistr/test-u32-strcat.c: New file.
30903
30904         Tests for module 'unistr/u16-strcat'.
30905         * modules/unistr/u16-strcat-tests: New file.
30906         * tests/unistr/test-u16-strcat.c: New file.
30907
30908         Tests for module 'unistr/u8-strcat'.
30909         * modules/unistr/u8-strcat-tests: New file.
30910         * tests/unistr/test-u8-strcat.c: New file.
30911         * tests/unistr/test-strcat.h: New file.
30912
30913         Tests for module 'unistr/u32-stpncpy'.
30914         * modules/unistr/u32-stpncpy-tests: New file.
30915         * tests/unistr/test-u32-stpncpy.c: New file.
30916
30917         Tests for module 'unistr/u16-stpncpy'.
30918         * modules/unistr/u16-stpncpy-tests: New file.
30919         * tests/unistr/test-u16-stpncpy.c: New file.
30920
30921         Tests for module 'unistr/u8-stpncpy'.
30922         * modules/unistr/u8-stpncpy-tests: New file.
30923         * tests/unistr/test-u8-stpncpy.c: New file.
30924         * tests/unistr/test-stpncpy.h: New file.
30925
30926         Tests for module 'unistr/u32-strncpy'.
30927         * modules/unistr/u32-strncpy-tests: New file.
30928         * tests/unistr/test-u32-strncpy.c: New file.
30929
30930         Tests for module 'unistr/u16-strncpy'.
30931         * modules/unistr/u16-strncpy-tests: New file.
30932         * tests/unistr/test-u16-strncpy.c: New file.
30933
30934         Tests for module 'unistr/u8-strncpy'.
30935         * modules/unistr/u8-strncpy-tests: New file.
30936         * tests/unistr/test-u8-strncpy.c: New file.
30937         * tests/unistr/test-strncpy.h: New file.
30938
30939         Tests for module 'unistr/u32-stpcpy'.
30940         * modules/unistr/u32-stpcpy-tests: New file.
30941         * tests/unistr/test-u32-stpcpy.c: New file.
30942
30943         Tests for module 'unistr/u16-stpcpy'.
30944         * modules/unistr/u16-stpcpy-tests: New file.
30945         * tests/unistr/test-u16-stpcpy.c: New file.
30946
30947         Tests for module 'unistr/u8-stpcpy'.
30948         * modules/unistr/u8-stpcpy-tests: New file.
30949         * tests/unistr/test-u8-stpcpy.c: New file.
30950         * tests/unistr/test-stpcpy.h: New file.
30951
30952         Tests for module 'unistr/u32-strcpy'.
30953         * modules/unistr/u32-strcpy-tests: New file.
30954         * tests/unistr/test-u32-strcpy.c: New file.
30955
30956         Tests for module 'unistr/u16-strcpy'.
30957         * modules/unistr/u16-strcpy-tests: New file.
30958         * tests/unistr/test-u16-strcpy.c: New file.
30959
30960         Tests for module 'unistr/u8-strcpy'.
30961         * modules/unistr/u8-strcpy-tests: New file.
30962         * tests/unistr/test-u8-strcpy.c: New file.
30963         * tests/unistr/test-strcpy.h: New file.
30964
30965         Tests for module 'unistr/u32-strnlen'.
30966         * modules/unistr/u32-strnlen-tests: New file.
30967         * tests/unistr/test-u32-strnlen.c: New file.
30968
30969         Tests for module 'unistr/u16-strnlen'.
30970         * modules/unistr/u16-strnlen-tests: New file.
30971         * tests/unistr/test-u16-strnlen.c: New file.
30972
30973         Tests for module 'unistr/u8-strnlen'.
30974         * modules/unistr/u8-strnlen-tests: New file.
30975         * tests/unistr/test-u8-strnlen.c: New file.
30976         * tests/unistr/test-strnlen.h: New file.
30977
30978         Tests for module 'unistr/u32-strlen'.
30979         * modules/unistr/u32-strlen-tests: New file.
30980         * tests/unistr/test-u32-strlen.c: New file.
30981
30982         Tests for module 'unistr/u16-strlen'.
30983         * modules/unistr/u16-strlen-tests: New file.
30984         * tests/unistr/test-u16-strlen.c: New file.
30985
30986         Tests for module 'unistr/u8-strlen'.
30987         * modules/unistr/u8-strlen-tests: New file.
30988         * tests/unistr/test-u8-strlen.c: New file.
30989
30990         Tests for module 'unistr/u32-prev'.
30991         * modules/unistr/u32-prev-tests: New file.
30992         * tests/unistr/test-u32-prev.c: New file.
30993
30994         Tests for module 'unistr/u16-prev'.
30995         * modules/unistr/u16-prev-tests: New file.
30996         * tests/unistr/test-u16-prev.c: New file.
30997
30998         Tests for module 'unistr/u8-prev'.
30999         * modules/unistr/u8-prev-tests: New file.
31000         * tests/unistr/test-u8-prev.c: New file.
31001
31002         Tests for module 'unistr/u32-next'.
31003         * modules/unistr/u32-next-tests: New file.
31004         * tests/unistr/test-u32-next.c: New file.
31005
31006         Tests for module 'unistr/u16-next'.
31007         * modules/unistr/u16-next-tests: New file.
31008         * tests/unistr/test-u16-next.c: New file.
31009
31010         Tests for module 'unistr/u8-next'.
31011         * modules/unistr/u8-next-tests: New file.
31012         * tests/unistr/test-u8-next.c: New file.
31013
31014         Tests for module 'unistr/u32-strmbtouc'.
31015         * modules/unistr/u32-strmbtouc-tests: New file.
31016         * tests/unistr/test-u32-strmbtouc.c: New file.
31017
31018         Tests for module 'unistr/u16-strmbtouc'.
31019         * modules/unistr/u16-strmbtouc-tests: New file.
31020         * tests/unistr/test-u16-strmbtouc.c: New file.
31021
31022         Tests for module 'unistr/u8-strmbtouc'.
31023         * modules/unistr/u8-strmbtouc-tests: New file.
31024         * tests/unistr/test-u8-strmbtouc.c: New file.
31025
31026         Tests for module 'unistr/u32-strmblen'.
31027         * modules/unistr/u32-strmblen-tests: New file.
31028         * tests/unistr/test-u32-strmblen.c: New file.
31029
31030         Tests for module 'unistr/u16-strmblen'.
31031         * modules/unistr/u16-strmblen-tests: New file.
31032         * tests/unistr/test-u16-strmblen.c: New file.
31033
31034         Tests for module 'unistr/u8-strmblen'.
31035         * modules/unistr/u8-strmblen-tests: New file.
31036         * tests/unistr/test-u8-strmblen.c: New file.
31037
31038         Tests for module 'unistr/u32-cpy-alloc'.
31039         * modules/unistr/u32-cpy-alloc-tests: New file.
31040         * tests/unistr/test-u32-cpy-alloc.c: New file.
31041
31042         Tests for module 'unistr/u16-cpy-alloc'.
31043         * modules/unistr/u16-cpy-alloc-tests: New file.
31044         * tests/unistr/test-u16-cpy-alloc.c: New file.
31045
31046         Tests for module 'unistr/u8-cpy-alloc'.
31047         * modules/unistr/u8-cpy-alloc-tests: New file.
31048         * tests/unistr/test-u8-cpy-alloc.c: New file.
31049         * tests/unistr/test-cpy-alloc.h: New file.
31050
31051         Tests for module 'unistr/u32-mbsnlen'.
31052         * modules/unistr/u32-mbsnlen-tests: New file.
31053         * tests/unistr/test-u32-mbsnlen.c: New file.
31054
31055         Tests for module 'unistr/u16-mbsnlen'.
31056         * modules/unistr/u16-mbsnlen-tests: New file.
31057         * tests/unistr/test-u16-mbsnlen.c: New file.
31058
31059         Tests for module 'unistr/u8-mbsnlen'.
31060         * modules/unistr/u8-mbsnlen-tests: New file.
31061         * tests/unistr/test-u8-mbsnlen.c: New file.
31062
31063         Tests for module 'unistr/u32-chr'.
31064         * modules/unistr/u32-chr-tests: New file.
31065         * tests/unistr/test-u32-chr.c: New file.
31066
31067         Tests for module 'unistr/u16-chr'.
31068         * modules/unistr/u16-chr-tests: New file.
31069         * tests/unistr/test-u16-chr.c: New file.
31070
31071         Tests for module 'unistr/u8-chr'.
31072         * modules/unistr/u8-chr-tests: New file.
31073         * tests/unistr/test-u8-chr.c: New file.
31074         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
31075
31076         Tests for module 'unistr/u32-cmp2'.
31077         * modules/unistr/u32-cmp2-tests: New file.
31078         * tests/unistr/test-u32-cmp2.c: New file.
31079
31080         Tests for module 'unistr/u16-cmp2'.
31081         * modules/unistr/u16-cmp2-tests: New file.
31082         * tests/unistr/test-u16-cmp2.c: New file.
31083
31084         Tests for module 'unistr/u8-cmp2'.
31085         * modules/unistr/u8-cmp2-tests: New file.
31086         * tests/unistr/test-u8-cmp2.c: New file.
31087         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
31088
31089         Tests for module 'unistr/u32-cmp'.
31090         * modules/unistr/u32-cmp-tests: New file.
31091         * tests/unistr/test-u32-cmp.c: New file.
31092
31093         Tests for module 'unistr/u16-cmp'.
31094         * modules/unistr/u16-cmp-tests: New file.
31095         * tests/unistr/test-u16-cmp.c: New file.
31096
31097         Tests for module 'unistr/u8-cmp'.
31098         * modules/unistr/u8-cmp-tests: New file.
31099         * tests/unistr/test-u8-cmp.c: New file.
31100         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
31101
31102         Tests for module 'unistr/u32-set'.
31103         * modules/unistr/u32-set-tests: New file.
31104         * tests/unistr/test-u32-set.c: New file.
31105
31106         Tests for module 'unistr/u16-set'.
31107         * modules/unistr/u16-set-tests: New file.
31108         * tests/unistr/test-u16-set.c: New file.
31109
31110         Tests for module 'unistr/u8-set'.
31111         * modules/unistr/u8-set-tests: New file.
31112         * tests/unistr/test-u8-set.c: New file.
31113         * tests/unistr/test-set.h: New file.
31114
31115         Tests for module 'unistr/u32-move'.
31116         * modules/unistr/u32-move-tests: New file.
31117         * tests/unistr/test-u32-move.c: New file.
31118
31119         Tests for module 'unistr/u16-move'.
31120         * modules/unistr/u16-move-tests: New file.
31121         * tests/unistr/test-u16-move.c: New file.
31122
31123         Tests for module 'unistr/u8-move'.
31124         * modules/unistr/u8-move-tests: New file.
31125         * tests/unistr/test-u8-move.c: New file.
31126         * tests/unistr/test-move.h: New file.
31127
31128         Tests for module 'unistr/u32-cpy'.
31129         * modules/unistr/u32-cpy-tests: New file.
31130         * tests/unistr/test-u32-cpy.c: New file.
31131
31132         Tests for module 'unistr/u16-cpy'.
31133         * modules/unistr/u16-cpy-tests: New file.
31134         * tests/unistr/test-u16-cpy.c: New file.
31135
31136         Tests for module 'unistr/u8-cpy'.
31137         * modules/unistr/u8-cpy-tests: New file.
31138         * tests/unistr/test-u8-cpy.c: New file.
31139         * tests/unistr/test-cpy.h: New file.
31140
31141 2010-01-09  Bruno Haible  <bruno@clisp.org>
31142
31143         Tests for module 'unistr/u32-uctomb'.
31144         * modules/unistr/u32-uctomb-tests: New file.
31145         * tests/unistr/test-u32-uctomb.c: New file.
31146
31147         Tests for module 'unistr/u16-uctomb'.
31148         * modules/unistr/u16-uctomb-tests: New file.
31149         * tests/unistr/test-u16-uctomb.c: New file.
31150
31151         Tests for module 'unistr/u8-uctomb'.
31152         * modules/unistr/u8-uctomb-tests: New file.
31153         * tests/unistr/test-u8-uctomb.c: New file.
31154
31155         Tests for module 'unistr/u32-mbtoucr'.
31156         * modules/unistr/u32-mbtoucr-tests: New file.
31157         * tests/unistr/test-u32-mbtoucr.c: New file.
31158
31159         Tests for module 'unistr/u16-mbtoucr'.
31160         * modules/unistr/u16-mbtoucr-tests: New file.
31161         * tests/unistr/test-u16-mbtoucr.c: New file.
31162
31163         Tests for module 'unistr/u8-mbtoucr'.
31164         * modules/unistr/u8-mbtoucr-tests: New file.
31165         * tests/unistr/test-u8-mbtoucr.c: New file.
31166
31167         Tests for module 'unistr/u32-mbtouc'.
31168         * modules/unistr/u32-mbtouc-tests: New file.
31169         * tests/unistr/test-u32-mbtouc.c: New file.
31170
31171         Tests for module 'unistr/u16-mbtouc'.
31172         * modules/unistr/u16-mbtouc-tests: New file.
31173         * tests/unistr/test-u16-mbtouc.c: New file.
31174
31175         Tests for module 'unistr/u8-mbtouc'.
31176         * modules/unistr/u8-mbtouc-tests: New file.
31177         * tests/unistr/test-u8-mbtouc.c: New file.
31178
31179         Tests for module 'unistr/u32-mbtouc-unsafe'.
31180         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
31181         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
31182         * tests/unistr/test-u32-mbtouc.h: New file.
31183
31184         Tests for module 'unistr/u16-mbtouc-unsafe'.
31185         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
31186         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
31187         * tests/unistr/test-u16-mbtouc.h: New file.
31188
31189         Tests for module 'unistr/u8-mbtouc-unsafe'.
31190         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
31191         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
31192         * tests/unistr/test-u8-mbtouc.h: New file.
31193
31194         Tests for module 'unistr/u32-mblen'.
31195         * modules/unistr/u32-mblen-tests: New file.
31196         * tests/unistr/test-u32-mblen.c: New file.
31197
31198         Tests for module 'unistr/u16-mblen'.
31199         * modules/unistr/u16-mblen-tests: New file.
31200         * tests/unistr/test-u16-mblen.c: New file.
31201
31202         Tests for module 'unistr/u8-mblen'.
31203         * modules/unistr/u8-mblen-tests: New file.
31204         * tests/unistr/test-u8-mblen.c: New file.
31205
31206         Tests for module 'unistr/u32-to-u16'.
31207         * modules/unistr/u32-to-u16-tests: New file.
31208         * tests/unistr/test-u32-to-u16.c: New file.
31209
31210         Tests for module 'unistr/u32-to-u8'.
31211         * modules/unistr/u32-to-u8-tests: New file.
31212         * tests/unistr/test-u32-to-u8.c: New file.
31213
31214         Tests for module 'unistr/u16-to-u32'.
31215         * modules/unistr/u16-to-u32-tests: New file.
31216         * tests/unistr/test-u16-to-u32.c: New file.
31217
31218         Tests for module 'unistr/u16-to-u8'.
31219         * modules/unistr/u16-to-u8-tests: New file.
31220         * tests/unistr/test-u16-to-u8.c: New file.
31221
31222         Tests for module 'unistr/u8-to-u32'.
31223         * modules/unistr/u8-to-u32-tests: New file.
31224         * tests/unistr/test-u8-to-u32.c: New file.
31225
31226         Tests for module 'unistr/u8-to-u16'.
31227         * modules/unistr/u8-to-u16-tests: New file.
31228         * tests/unistr/test-u8-to-u16.c: New file.
31229
31230         Tests for module 'unistr/u32-check'.
31231         * modules/unistr/u32-check-tests: New file.
31232         * tests/unistr/test-u32-check.c: New file.
31233
31234         Tests for module 'unistr/u16-check'.
31235         * modules/unistr/u16-check-tests: New file.
31236         * tests/unistr/test-u16-check.c: New file.
31237
31238         Tests for module 'unistr/u8-check'.
31239         * modules/unistr/u8-check-tests: New file.
31240         * tests/unistr/test-u8-check.c: New file.
31241
31242         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
31243         (category_equals): New function.
31244         (main): Add more tests.
31245         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
31246
31247         * tests/unictype/test-bidi_byname.c (main): Add more tests.
31248
31249 2010-01-10  Bruno Haible  <bruno@clisp.org>
31250
31251         unistr/u*-strcoll: Try harder to distinguish different strings.
31252         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
31253         compare s1 and s2 to see if they are different.
31254
31255 2010-01-10  Bruno Haible  <bruno@clisp.org>
31256
31257         unistr/u*-stpncpy: Fix the return value.
31258         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
31259         description of the return value consistent with stpncpy in glibc.
31260         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
31261         written non-NUL unit.
31262
31263 2010-01-10  Bruno Haible  <bruno@clisp.org>
31264
31265         unistr/u*-next: Add missing dependencies.
31266         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
31267         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
31268         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
31269
31270 2010-01-10  Bruno Haible  <bruno@clisp.org>
31271
31272         unistr/u8-mbsnlen: Fix return value for incomplete character.
31273         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
31274         u8_mblen.
31275         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
31276         Remove unistr/u8-mblen.
31277         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
31278         u16_mblen.
31279         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
31280         Remove unistr/u16-mblen.
31281
31282 2010-01-10  Bruno Haible  <bruno@clisp.org>
31283
31284         wchar: Fix compilation error when <wchar.h> is used from coreutils.
31285         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
31286         Reported by Brian Gough <bjg@gnu.org> and
31287         Chris Clayton <chris2553@googlemail.com> via
31288         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
31289
31290 2010-01-09  Bruno Haible  <bruno@clisp.org>
31291
31292         unistr/u16-to-u32: Reject invalid input.
31293         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
31294         u16_mbtouc.
31295         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
31296         Remove unistr/u16-mbtouc.
31297
31298         unistr/u16-to-u8: Reject invalid input.
31299         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
31300         u16_mbtouc.
31301         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
31302         Remove unistr/u16-mbtouc.
31303
31304         unistr/u8-to-u32: Reject invalid input.
31305         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
31306         u8_mbtouc.
31307         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
31308         Remove unistr/u8-mbtouc.
31309
31310         unistr/u8-to-u16: Reject invalid input.
31311         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
31312         u8_mbtouc.
31313         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
31314         Remove unistr/u8-mbtouc.
31315
31316 2010-01-09  Bruno Haible  <bruno@clisp.org>
31317
31318         Tests for module 'getlogin'.
31319         * modules/getlogin-tests: New file.
31320         * tests/test-getlogin.c: New file.
31321
31322         New module 'getlogin'.
31323         * lib/unistd.in.h (getlogin): New declaration.
31324         * lib/getlogin.c: New file.
31325         * m4/getlogin.m4: New file.
31326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
31327         HAVE_GETLOGIN.
31328         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
31329         HAVE_GETLOGIN.
31330         * modules/getlogin: New file.
31331         * doc/posix-functions/getlogin.texi: Mention the new module.
31332         Reported by John W. Eaton <jwe@gnu.org>.
31333
31334 2010-01-09  Bruno Haible  <bruno@clisp.org>
31335
31336         getlogin_r: Support for native Windows.
31337         * lib/getlogin_r.c: Include <windows.h>
31338         (getlogin_r): Implement for native Windows.
31339         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
31340         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
31341         via John W. Eaton <jwe@gnu.org>.
31342
31343 2010-01-09  Bruno Haible  <bruno@clisp.org>
31344
31345         getlogin_r: Small fixes.
31346         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
31347         succeeds.
31348         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
31349         before testing whether getlogin_r is declared. No need to set
31350         HAVE_DECL_GETLOGIN_R to 1.
31351         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
31352
31353 2010-01-09  Bruno Haible  <bruno@clisp.org>
31354
31355         * lib/unistd.in.h (getlogin_r): Add comment.
31356
31357 2010-01-09  Bruno Haible  <bruno@clisp.org>
31358
31359         Tests for module 'getlogin_r'.
31360         * modules/getlogin_r-tests: New file.
31361         * tests/test-getlogin_r.c: New file.
31362
31363 2010-01-09  Jim Meyering  <meyering@redhat.com>
31364
31365         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
31366         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
31367         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
31368
31369 2010-01-08  Simon Josefsson  <simon@josefsson.org>
31370
31371         * lib/dup2.c (rpl_dup2): Improve comment.
31372
31373 2010-01-08  Eric Blake  <ebb9@byu.net>
31374
31375         maint.mk: allow packages to add makefile @@ exceptions
31376         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
31377         (sc_makefile_check): Rename...
31378         (sc_makefile_at_at_check): ...to this, and use hook.
31379
31380         dup2: work around mingw bug
31381         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
31382         Reported by Simon Josefsson.
31383
31384 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
31385
31386         glob: Fix C++ compilation.
31387         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
31388         C++.
31389
31390 2010-01-07  Bruno Haible  <bruno@clisp.org>
31391
31392         Fix indentation of wctype.in.h, broken since 2007-01-06.
31393         * lib/wctype.in.h: Fix indentation of preprocessor directives.
31394
31395 2010-01-07  Bruno Haible  <bruno@clisp.org>
31396
31397         mbslen: Avoid collision with system function.
31398         * lib/string.in.h [MirBSD]: Include <wchar.h>.
31399         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
31400         * m4/mbslen.m4: New file.
31401         * modules/mbslen (Files): Add it.
31402         (configure.ac): Invoke gl_MBSLEN.
31403         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
31404         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
31405         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
31406         via Ian Beckwith <ianb@erislabs.net>.
31407
31408 2010-01-07  Bruno Haible  <bruno@clisp.org>
31409
31410         dirent: Document the last fix.
31411         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
31412
31413 2010-01-07  Bruno Haible  <bruno@clisp.org>
31414
31415         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
31416         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
31417         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
31418         va_list are defined.
31419         * doc/posix-headers/stdio.texi: Document the bug of missing types.
31420         Reported by Eric Blake.
31421
31422 2010-01-07  Bruno Haible  <bruno@clisp.org>
31423
31424         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
31425         * modules/xlist (Depends-on): Add 'list',
31426         * modules/xoset (Depends-on): Add 'oset'.
31427         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31428
31429 2010-01-07  Bruno Haible  <bruno@clisp.org>
31430
31431         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
31432         * doc/posix-functions/strncasecmp.texi: Likewise.
31433
31434 2010-01-07  Bruno Haible  <bruno@clisp.org>
31435
31436         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
31437
31438 2010-01-07  John W. Eaton  <jwe@octave.org>
31439
31440         wctype: allow C++ use
31441         * lib/wctype.in.h: Add extern "C" block for C++.
31442
31443 2010-01-06  Eric Blake  <ebb9@byu.net>
31444
31445         maint.mk: detect incorrect GFDL usage
31446         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
31447
31448 2010-01-06  Jim Meyering  <meyering@redhat.com>
31449         and Eric Blake  <ebb9@byu.net>
31450
31451         maint.mk: ignore multi-line copyright in NEWS
31452         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
31453
31454 2010-01-06  Eric Blake  <ebb9@byu.net>
31455
31456         select: add missing dependency
31457         * modules/select-tests (Depends-on): Move sockets dependency...
31458         * modules/select (Depends-on): ...here.
31459         Reported by Ian Beckwith.
31460
31461         doc: regenerate INSTALL
31462         * doc/INSTALL: Reflect recent autoconf update.
31463         * doc/INSTALL.ISO: Likewise.
31464         * doc/INSTALL.UTF-8: Likewise.
31465
31466         pread: fix compilation on glibc
31467         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
31468         Reported by Ralf Wildenhues.
31469
31470         dirent: fix test failure
31471         * lib/dirent.in.h (includes): Guarantee ino_t.
31472         Reported by Ralf Wildenhues.
31473
31474 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
31475
31476         linkat, renameat: avoid bad free
31477         * lib/at-func2.c (at_func2): Fix typo.
31478         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
31479
31480 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31481
31482         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
31483         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
31484         to avoid failure of symlink test later.
31485
31486 2010-01-06  Eric Blake  <ebb9@byu.net>
31487
31488         stdio, unistd: guarantee ssize_t
31489         * lib/unistd.in.h (includes): Ensure that types required by POSIX
31490         2008 are exposed when needed.
31491         * lib/stdio.in.h (includes): Likewise.
31492         Reported by Ralf Wildenhues.
31493
31494 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
31495
31496         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
31497         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
31498         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
31499
31500 2010-01-06  Jim Meyering  <meyering@redhat.com>
31501
31502         readtokens: this module *does* require xalloc.h
31503         It uses only functions that were omitted by the old syntax-check rule.
31504         * lib/readtokens.c: Include "xalloc.h" once again.
31505         * modules/readtokens (Depends-on): Add xalloc.
31506         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
31507
31508 2010-01-05  Eric Blake  <ebb9@byu.net>
31509
31510         maint: support 'make announcement' from a VPATH build
31511         * top/maint.mk (announcement): Look for correct NEWS file.
31512
31513 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
31514
31515         utimens (fdutimens): ignore a negative FD, per contract
31516         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
31517         when we have a valid file descriptor.  Otherwise, using a brand
31518         new glibc (with just-patched futimens that now fails with EBADF)
31519         would cause this function to fail with ENOSYS.
31520         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
31521         See also http://bugzilla.redhat.com/552320.
31522
31523 2010-01-05  Eric Blake  <ebb9@byu.net>
31524
31525         strcase: document what it provides
31526         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
31527         gnulib module.
31528         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
31529         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
31530
31531 2010-01-05  Jim Meyering  <meyering@redhat.com>
31532
31533         maint: remove useless inclusions of "xalloc.h"
31534         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
31535         * lib/readtokens.c: Likewise.
31536         * lib/same.c: Likewise.
31537         * modules/getloadavg (Depends-on): Remove xalloc.
31538         * modules/readtokens: Likewise.
31539         * modules/same: Likewise.
31540
31541         maint.mk: include 4 more function names in alloca.h-checking regexp
31542         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
31543         regexp.  Before, we would give a false-positive (saying alloca.h
31544         is included unnecessarily) when the only uses involved omitted symbols.
31545
31546         xalloc.h: use consistent formatting
31547         * lib/xalloc.h: Move declarations to start in the first column.
31548
31549 2010-01-05  Eric Blake  <ebb9@byu.net>
31550
31551         mkdir: avoid xalloc
31552         * lib/mkdir.c (includes): Drop unused header.
31553         Reported by John W. Eaton.
31554
31555 2010-01-04  Jim Meyering  <meyering@redhat.com>
31556
31557         nl_langinfo: avoid configure-time syntax error
31558         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
31559         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
31560         the empty string.  Don't let that provoke a shell syntax error.
31561
31562         regcomp, regexec, fnmatch: avoid array bounds read error
31563         * lib/regcomp.c (build_equiv_class): From glibc:
31564         Use only the low 24 bits of a findidx return value as an index
31565         into the weights array.  Patch by Ulrich Drepper:
31566         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
31567         * lib/regexec.c (check_node_accept_bytes): Likewise.
31568         * lib/fnmatch_loop.c (FCT): Likewise.
31569
31570         regcomp: skip collseq lookup when there are no rules
31571         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
31572         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
31573
31574         regcomp: recognize ill-formed { } expressions
31575         * lib/regcomp.c (parse_dup_op): From glibc:
31576         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
31577
31578         regcomp: fix typo in comment
31579         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
31580         s/satisfy/satisfies/.
31581
31582         regcomp: sync from glibc: remove dead store
31583         * lib/regcomp.c (duplicate_node_closure): Remove useless
31584         search_duplicated_node call and dead store.
31585
31586         regcomp: sync from glibc; always use nl_langinfo
31587         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
31588         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
31589         * modules/regex (Depends-on): Add nl_langinfo.
31590
31591 2010-01-04  Eric Blake  <ebb9@byu.net>
31592
31593         fdopendir: fix configure test
31594         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
31595
31596 2010-01-01  Bruno Haible  <bruno@clisp.org>
31597
31598         wchar: Remove unused configure check.
31599         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
31600
31601 2010-01-01  Eric Blake  <ebb9@byu.net>
31602
31603         headers: make check of system header explicit
31604         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
31605         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
31606         ourselves.
31607         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31608         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31609         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31610         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
31611         internals.
31612         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
31613         missing.
31614         Suggested by Bruno Haible.
31615
31616 2010-01-01  Jim Meyering  <meyering@redhat.com>
31617
31618         ChangeLog: tweak to eliminate unnecessary copyright line
31619         * ChangeLog: Remove a copyright line that was mistakenly updated
31620         by today's update-copyright run.  Reported by Eric Blake.
31621
31622         test-update-copyright: don't let envvar setting cause test failure
31623         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31624
31625 2010-01-01  Bruno Haible  <bruno@clisp.org>
31626
31627         localename: Avoid gcc warning.
31628         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
31629         function if it is not used.
31630
31631 2010-01-01  Jim Meyering  <meyering@redhat.com>
31632
31633         update nearly all FSF copyright year lists to include 2010
31634         Use the same procedure as for 2009, outlined in
31635         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
31636
31637         version-etc: set COPYRIGHT_YEAR to 2010
31638         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
31639
31640 2009-12-31  Eric Blake  <ebb9@byu.net>
31641
31642         doc: correct availability of cygwin 1.5.x getopt
31643         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
31644         variables.
31645         * doc/posix-functions/opterr.texi (opterr): Likewise.
31646         * doc/posix-functions/optind.texi (optind): Likewise.
31647         * doc/posix-functions/optopt.texi (optopt): Likewise.
31648         * doc/posix-functions/tzname.texi (tzname): Likewise.
31649
31650         openat: update maintainer
31651         * modules/openat (Maintainer): Add myself.
31652
31653         utimens: avoid shadowing warning
31654         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
31655         buffers into one, to avoid shadowing, as well as avoiding a
31656         redundant stat.
31657         Reported by Jim Meyering.
31658
31659         test-dup2: avoid compiler warning
31660         * tests/test-dup2.c (is_inheritable): Only define if used.
31661
31662 2010-01-01  Bruno Haible  <bruno@clisp.org>
31663
31664         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
31665         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
31666         defined, use wctomb instead of wcrtomb.
31667
31668 2010-01-01  Bruno Haible  <bruno@clisp.org>
31669
31670         iconv: Reject native Solaris iconv.
31671         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
31672         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
31673
31674 2009-12-31  Bruno Haible  <bruno@clisp.org>
31675
31676         * tests/test-signal.c (main): Remove test of 'SIG'.
31677
31678 2009-12-31  Bruno Haible  <bruno@clisp.org>
31679
31680         spawn: Fix incomplete fix.
31681         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31682         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31683         warnings for GNULIB_POSIXCHECK again.
31684         Reported by Eric Blake.
31685
31686 2009-12-31  Bruno Haible  <bruno@clisp.org>
31687
31688         Avoid namespace pollution on glibc systems.
31689         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
31690         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
31691         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
31692         glibc systems.
31693
31694 2009-12-31  Bruno Haible  <bruno@clisp.org>
31695
31696         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
31697         (gl_REPLACE_WCHAR_H): Turn into a no-op.
31698         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
31699         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
31700         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
31701         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
31702         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
31703
31704 2009-12-31  Bruno Haible  <bruno@clisp.org>
31705
31706         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31707         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
31708         afterwards.
31709
31710 2009-12-31  Bruno Haible  <bruno@clisp.org>
31711
31712         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
31713         SYS_UTSNAME_H.
31714
31715 2009-12-31  Bruno Haible  <bruno@clisp.org>
31716
31717         spawn: Fix misapplied patch.
31718         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31719         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31720         warnings for GNULIB_POSIXCHECK.
31721
31722 2009-12-31  Bruno Haible  <bruno@clisp.org>
31723
31724         times: Update after sys_times changed.
31725         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
31726         * modules/times (Files): Add it.
31727         (configure.ac): Invoke gl_FUNC_TIMES.
31728
31729 2009-12-31  Bruno Haible  <bruno@clisp.org>
31730
31731         Use AC_C_INLINE where necessary.
31732         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
31733         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31734         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31735         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31736         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31737         * m4/mbiter.m4 (gl_MBITER): Likewise.
31738         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31739         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31740         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
31741         * modules/u64 (configure.ac): Likewise.
31742
31743 2009-12-31  Bruno Haible  <bruno@clisp.org>
31744
31745         Use AC_C_INLINE instead of module 'inline' where possible.
31746         * modules/inline (Description): Clarify purpose.
31747         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
31748         * modules/count-one-bits (Depends-on): Remove inline.
31749         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
31750         * modules/openat (Depends-on): Remove inline.
31751         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
31752         instead of depending on module 'inline'.
31753         * modules/filevercmp (Depends-on, configure.ac): Likewise.
31754         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
31755         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
31756         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
31757         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
31758         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
31759         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
31760         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
31761         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
31762         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
31763         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
31764         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
31765         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
31766         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
31767         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
31768         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
31769         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
31770         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
31771         Likewise.
31772         * modules/unictype/property-ascii-hex-digit (Depends-on,
31773         configure.ac): Likewise.
31774         * modules/unictype/property-bidi-arabic-digit (Depends-on,
31775         configure.ac): Likewise.
31776         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
31777         configure.ac): Likewise.
31778         * modules/unictype/property-bidi-block-separator (Depends-on,
31779         configure.ac): Likewise.
31780         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
31781         configure.ac): Likewise.
31782         * modules/unictype/property-bidi-common-separator (Depends-on,
31783         configure.ac): Likewise.
31784         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
31785         Likewise.
31786         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
31787         configure.ac): Likewise.
31788         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
31789         configure.ac): Likewise.
31790         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
31791         configure.ac): Likewise.
31792         * modules/unictype/property-bidi-european-digit (Depends-on,
31793         configure.ac): Likewise.
31794         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
31795         configure.ac): Likewise.
31796         * modules/unictype/property-bidi-left-to-right (Depends-on,
31797         configure.ac): Likewise.
31798         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
31799         configure.ac): Likewise.
31800         * modules/unictype/property-bidi-other-neutral (Depends-on,
31801         configure.ac): Likewise.
31802         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
31803         Likewise.
31804         * modules/unictype/property-bidi-segment-separator (Depends-on,
31805         configure.ac): Likewise.
31806         * modules/unictype/property-bidi-whitespace (Depends-on,
31807         configure.ac): Likewise.
31808         * modules/unictype/property-combining (Depends-on, configure.ac):
31809         Likewise.
31810         * modules/unictype/property-composite (Depends-on, configure.ac):
31811         Likewise.
31812         * modules/unictype/property-currency-symbol (Depends-on,
31813         configure.ac): Likewise.
31814         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
31815         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
31816         Likewise.
31817         * modules/unictype/property-default-ignorable-code-point (Depends-on,
31818         configure.ac): Likewise.
31819         * modules/unictype/property-deprecated (Depends-on, configure.ac):
31820         Likewise.
31821         * modules/unictype/property-diacritic (Depends-on, configure.ac):
31822         Likewise.
31823         * modules/unictype/property-extender (Depends-on, configure.ac):
31824         Likewise.
31825         * modules/unictype/property-format-control (Depends-on, configure.ac):
31826         Likewise.
31827         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
31828         Likewise.
31829         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
31830         Likewise.
31831         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
31832         Likewise.
31833         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
31834         Likewise.
31835         * modules/unictype/property-hyphen (Depends-on, configure.ac):
31836         Likewise.
31837         * modules/unictype/property-id-continue (Depends-on, configure.ac):
31838         Likewise.
31839         * modules/unictype/property-id-start (Depends-on, configure.ac):
31840         Likewise.
31841         * modules/unictype/property-ideographic (Depends-on, configure.ac):
31842         Likewise.
31843         * modules/unictype/property-ids-binary-operator (Depends-on,
31844         configure.ac): Likewise.
31845         * modules/unictype/property-ids-trinary-operator (Depends-on,
31846         configure.ac): Likewise.
31847         * modules/unictype/property-ignorable-control (Depends-on,
31848         configure.ac): Likewise.
31849         * modules/unictype/property-iso-control (Depends-on, configure.ac):
31850         Likewise.
31851         * modules/unictype/property-join-control (Depends-on, configure.ac):
31852         Likewise.
31853         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
31854         Likewise.
31855         * modules/unictype/property-line-separator (Depends-on, configure.ac):
31856         Likewise.
31857         * modules/unictype/property-logical-order-exception (Depends-on,
31858         configure.ac): Likewise.
31859         * modules/unictype/property-lowercase (Depends-on, configure.ac):
31860         Likewise.
31861         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
31862         * modules/unictype/property-non-break (Depends-on, configure.ac):
31863         Likewise.
31864         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
31865         Likewise.
31866         * modules/unictype/property-numeric (Depends-on, configure.ac):
31867         Likewise.
31868         * modules/unictype/property-other-alphabetic (Depends-on,
31869         configure.ac): Likewise.
31870         * modules/unictype/property-other-default-ignorable-code-point
31871         (Depends-on, configure.ac): Likewise.
31872         * modules/unictype/property-other-grapheme-extend (Depends-on,
31873         configure.ac): Likewise.
31874         * modules/unictype/property-other-id-continue (Depends-on,
31875         configure.ac): Likewise.
31876         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
31877         Likewise.
31878         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
31879         Likewise.
31880         * modules/unictype/property-other-math (Depends-on, configure.ac):
31881         Likewise.
31882         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
31883         Likewise.
31884         * modules/unictype/property-paired-punctuation (Depends-on,
31885         configure.ac): Likewise.
31886         * modules/unictype/property-paragraph-separator (Depends-on,
31887         configure.ac): Likewise.
31888         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
31889         Likewise.
31890         * modules/unictype/property-pattern-white-space (Depends-on,
31891         configure.ac): Likewise.
31892         * modules/unictype/property-private-use (Depends-on, configure.ac):
31893         Likewise.
31894         * modules/unictype/property-punctuation (Depends-on, configure.ac):
31895         Likewise.
31896         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
31897         Likewise.
31898         * modules/unictype/property-radical (Depends-on, configure.ac):
31899         Likewise.
31900         * modules/unictype/property-sentence-terminal (Depends-on,
31901         configure.ac): Likewise.
31902         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
31903         Likewise.
31904         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
31905         * modules/unictype/property-terminal-punctuation (Depends-on,
31906         configure.ac): Likewise.
31907         * modules/unictype/property-titlecase (Depends-on, configure.ac):
31908         Likewise.
31909         * modules/unictype/property-unassigned-code-value (Depends-on,
31910         configure.ac): Likewise.
31911         * modules/unictype/property-unified-ideograph (Depends-on,
31912         configure.ac): Likewise.
31913         * modules/unictype/property-uppercase (Depends-on, configure.ac):
31914         Likewise.
31915         * modules/unictype/property-variation-selector (Depends-on,
31916         configure.ac): Likewise.
31917         * modules/unictype/property-white-space (Depends-on, configure.ac):
31918         Likewise.
31919         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
31920         Likewise.
31921         * modules/unictype/property-xid-start (Depends-on, configure.ac):
31922         Likewise.
31923         * modules/unictype/property-zero-width (Depends-on, configure.ac):
31924         Likewise.
31925         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
31926         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
31927         Likewise.
31928
31929 2009-12-31  Bruno Haible  <bruno@clisp.org>
31930
31931         Remove unnecessary AC_C_INLINE invocation.
31932         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
31933         since 2009-08-21.
31934
31935 2009-12-31  Jim Meyering  <meyering@redhat.com>
31936
31937         maint.mk: don't require explicit gpg_key_ID in cfg.mk
31938         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
31939         With this change, we can all remove the gpg_key_ID = ... definition
31940         from our respective cfg.mk files.
31941
31942         maint.mk: create announcement template in ~/, not in /tmp
31943         * top/maint.mk (emit_upload_commands): Adjust.
31944         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
31945         Remove temporary file, .ci-msg.
31946
31947 2009-12-31  Eric Blake  <ebb9@byu.net>
31948
31949         link-warning: always build headers with link warnings
31950         * modules/arpa_inet (Makefile.am): Always build replacement
31951         header.
31952         * modules/ctype (Makefile.am): Likewise.
31953         * modules/dirent (Makefile.am): Likewise.
31954         * modules/inttypes (Makefile.am): Likewise.
31955         * modules/langinfo (Makefile.am): Likewise.
31956         * modules/locale (Makefile.am): Likewise.
31957         * modules/spawn (Makefile.am): Likewise.
31958         * modules/sys_file (Makefile.am): Likewise.
31959         * modules/sys_ioctl (Makefile.am): Likewise.
31960         * modules/sys_select (Makefile.am): Likewise.
31961         * modules/sys_socket (Makefile.am): Likewise.
31962         * modules/sys_times (Makefile.am): Likewise.
31963         * modules/sys_utsname (Makefile.am): Likewise.
31964         * modules/sys_wait (Makefile.am): Likewise.
31965         * modules/wchar (Makefile.am): Likewise.
31966         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
31967         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
31968         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
31969         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
31970         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
31971         Likewise.
31972         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31973         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31974         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
31975         Likewise.
31976         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
31977         Likewise.
31978         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
31979         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
31980         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
31981         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31982         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31983         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31984         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31985         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
31986         (gl_WCHAR_H_DEFAULTS): Likewise.
31987
31988 2009-12-31  Eric Blake  <ebb9@byu.net>
31989
31990         signal, spawn: use link warnings
31991         * lib/signal.in.h (sigset_t): Make unconditional.
31992         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
31993         (sigpending, sigprocmask, sigaction): Add link warnings.
31994         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
31995         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
31996         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
31997         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
31998         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
31999         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
32000         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
32001         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
32002         (posix_spawn_file_actions_destroy)
32003         (posix_spawn_file_actions_addopen)
32004         (posix_spawn_file_actions_addclose)
32005         (posix_spawn_file_actions_adddup2): Likewise.
32006         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
32007         * tests/test-signal.c (main): Enhance test.
32008
32009         spawn: improve wrapper support
32010         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
32011         (gl_SPAWN_H_DEFAULTS): New defaults.
32012         * modules/spawn (Makefile.am): Substitute them.
32013         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
32014         Only declare if missing or broken.
32015
32016         sys_times, sys_utsname: use include_next
32017         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
32018         header.
32019         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
32020         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32021         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32022         * modules/sys_times (Depends-on): Add include_next.
32023         (Makefile.am): Substitute additional values.
32024         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32025         * lib/sys_times.in.h (includes): Include native header, if
32026         available.
32027         * lib/sys_utsname.in.h (includes): Likewise.
32028         * tests/test-sys_times.c (main): Enhance test.
32029
32030         fdutimensat: revert prior patch
32031         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
32032         utimens.h.
32033         Reported by Bruno Haible.
32034
32035 2009-12-30  Eric Blake  <ebb9@byu.net>
32036
32037         sys_wait: drop link-warning dependency
32038         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
32039         link-warning efforts.
32040         * lib/sys_wait.in.h: Likewise.
32041
32042         fdutimensat: remove bogus dependency
32043         * modules/fdutimensat (Depends-on): Drop inline.
32044
32045         unistd: fix typo
32046         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
32047
32048 2009-12-30  Bruno Haible  <bruno@clisp.org>
32049
32050         Fix compilation error with Solaris cc.
32051         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
32052         * lib/unicase/u16-is-invariant.c: Likewise.
32053         * lib/unicase/u32-is-invariant.c: Likewise.
32054         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32055
32056 2009-12-30  Bruno Haible  <bruno@clisp.org>
32057
32058         Fix test crash.
32059         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
32060         locales.
32061         Reported by Simon Josefsson <simon@josefsson.org>.
32062
32063 2009-12-30  Bruno Haible  <bruno@clisp.org>
32064
32065         Fix compilation error on most platforms.
32066         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
32067         Reported by Simon Josefsson <simon@josefsson.org>
32068         and Nelson H. F. Beebe <beebe@math.utah.edu>.
32069
32070 2009-12-30  Eric Blake  <ebb9@byu.net>
32071
32072         futimens, utimensat: work around ntfs-3g bug
32073         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
32074         a ctime bug is present, and expand workaround to cover ntfs-3g.
32075         * lib/utimens.c (fdutimens, lutimens): Likewise.
32076         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
32077         (validate_timespec): Adjust return value.
32078         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
32079         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32080         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
32081
32082 2009-12-29  Eric Blake  <ebb9@byu.net>
32083
32084         link-warning: make usage consistent
32085         * modules/ctype (Depends-on): Add link-warning.
32086         (Makefile.am): Update rules accordingly.
32087         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32088         * modules/locale (Depends-on, Makefile.am): Likewise.
32089         * modules/sys_file (Makefile.am): Likewise.
32090         * modules/getopt-posix (Makefile.am): Delete unused link warning
32091         efforts.
32092         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
32093         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
32094         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
32095         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
32096
32097         stdio: remove unused variables
32098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
32099         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
32100         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32101
32102         tests: test more substitute headers
32103         * modules/ctype-tests: New file.
32104         * modules/dirent-tests: Likewise.
32105         * modules/spawn-tests: Likewise.
32106         * modules/sys_file-tests: Likewise.
32107         * modules/sys_ioctl-tests: Likewise.
32108         * modules/sys_wait-tests: Likewise.
32109         * tests/test-ctype.c: Likewise.
32110         * tests/test-dirent.c: Likewise.
32111         * tests/test-spawn.c: Likewise.
32112         * tests/test-sys_file.c: Likewise.
32113         * tests/test-sys_ioctl.c: Likewise.
32114         * tests/test-sys_wait.c: Likewise.
32115         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
32116         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
32117         whether or not flock is in use.
32118
32119         tests: remove License section from module
32120         * modules/arpa_inet-tests: Remove unneeded section.
32121         * modules/byteswap-tests: Likewise.
32122         * modules/ceilf-tests: Likewise.
32123         * modules/ceill-tests: Likewise.
32124         * modules/crypto/des-tests: Likewise.
32125         * modules/crypto/gc-arcfour-tests: Likewise.
32126         * modules/crypto/gc-arctwo-tests: Likewise.
32127         * modules/crypto/gc-des-tests: Likewise.
32128         * modules/crypto/gc-hmac-md5-tests: Likewise.
32129         * modules/crypto/gc-hmac-sha1-tests: Likewise.
32130         * modules/crypto/gc-md2-tests: Likewise.
32131         * modules/crypto/gc-md4-tests: Likewise.
32132         * modules/crypto/gc-md5-tests: Likewise.
32133         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
32134         * modules/crypto/gc-rijndael-tests: Likewise.
32135         * modules/crypto/gc-sha1-tests: Likewise.
32136         * modules/crypto/gc-tests: Likewise.
32137         * modules/crypto/md2-tests: Likewise.
32138         * modules/crypto/md4-tests: Likewise.
32139         * modules/fcntl-h-tests: Likewise.
32140         * modules/floorf-tests: Likewise.
32141         * modules/floorl-tests: Likewise.
32142         * modules/frexp-nolibm-tests: Likewise.
32143         * modules/frexp-tests: Likewise.
32144         * modules/frexpl-nolibm-tests: Likewise.
32145         * modules/frexpl-tests: Likewise.
32146         * modules/getaddrinfo-tests: Likewise.
32147         * modules/inttypes-tests: Likewise.
32148         * modules/isfinite-tests: Likewise.
32149         * modules/isinf-tests: Likewise.
32150         * modules/ldexpl-tests: Likewise.
32151         * modules/locale-tests: Likewise.
32152         * modules/math-tests: Likewise.
32153         * modules/netdb-tests: Likewise.
32154         * modules/netinet_in-tests: Likewise.
32155         * modules/printf-frexp-tests: Likewise.
32156         * modules/printf-frexpl-tests: Likewise.
32157         * modules/priv-set-tests: Likewise.
32158         * modules/random_r-tests: Likewise.
32159         * modules/round-tests: Likewise.
32160         * modules/roundf-tests: Likewise.
32161         * modules/roundl-tests: Likewise.
32162         * modules/search-tests: Likewise.
32163         * modules/select-tests: Likewise.
32164         * modules/signal-tests: Likewise.
32165         * modules/stdbool-tests: Likewise.
32166         * modules/stddef-tests: Likewise.
32167         * modules/stdint-tests: Likewise.
32168         * modules/stdio-tests: Likewise.
32169         * modules/stdlib-tests: Likewise.
32170         * modules/string-tests: Likewise.
32171         * modules/strings-tests: Likewise.
32172         * modules/sys_select-tests: Likewise.
32173         * modules/sys_socket-tests: Likewise.
32174         * modules/sys_stat-tests: Likewise.
32175         * modules/sys_time-tests: Likewise.
32176         * modules/sys_utsname-tests: Likewise.
32177         * modules/sysexits-tests: Likewise.
32178         * modules/time-tests: Likewise.
32179         * modules/trunc-tests: Likewise.
32180         * modules/truncf-tests: Likewise.
32181         * modules/truncl-tests: Likewise.
32182         * modules/tsearch-tests: Likewise.
32183         * modules/unistd-tests: Likewise.
32184         * modules/wchar-tests: Likewise.
32185         * modules/wctype-tests: Likewise.
32186
32187         tests: fix license on several tests
32188         * tests/test-des.c: Update to GPLv3+.
32189         * tests/test-flock.c: Likewise.
32190         * tests/test-fsync.c: Likewise.
32191         * tests/test-futimens.h: Likewise.
32192         * tests/test-gc-arcfour.c: Likewise.
32193         * tests/test-gc-arctwo.c: Likewise.
32194         * tests/test-gc-des.c: Likewise.
32195         * tests/test-gc-hmac-md5.c: Likewise.
32196         * tests/test-gc-hmac-sha1.c: Likewise.
32197         * tests/test-gc-md2.c: Likewise.
32198         * tests/test-gc-md4.c: Likewise.
32199         * tests/test-gc-md5.c: Likewise.
32200         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32201         * tests/test-gc-rijndael.c: Likewise.
32202         * tests/test-gc-sha1.c: Likewise.
32203         * tests/test-gc.c: Likewise.
32204         * tests/test-getcwd.c: Likewise.
32205         * tests/test-link.c: Likewise.
32206         * tests/test-link.h: Likewise.
32207         * tests/test-lutimens.h: Likewise.
32208         * tests/test-md2.c: Likewise.
32209         * tests/test-md4.c: Likewise.
32210         * tests/test-mkdir.h: Likewise.
32211         * tests/test-rename.c: Likewise.
32212         * tests/test-rename.h: Likewise.
32213         * tests/test-safe-alloc.c: Likewise.
32214         * tests/test-utimens-common.h: Likewise.
32215         * tests/test-utimens.h: Likewise.
32216
32217         maint: sync license texts
32218         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
32219         * doc/gpl-3.0.texi: Revert copyright year update.
32220         * doc/lgpl-3.0.texi: Likewise.
32221
32222 2009-12-29  Jim Meyering  <meyering@redhat.com>
32223
32224         update nearly all FSF copyright year lists to include 2009
32225         The files named by the following are exempted:
32226             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
32227               test -f "$dst" && { echo "$dst"; continue; }
32228               test -d "$dst" || continue
32229               echo "$dst"/$(basename "$src")
32230             done > exempt
32231             git ls-files tests/unictype >> exempt
32232         In the remaining files, convert to all-interval notation if
32233         - there is already at least one year interval like 2000-2003
32234         - the file is maintained by me
32235         - the file is in lib/uni*/, where that style already prevails
32236         Otherwise, use update-copyright's default.
32237
32238 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32239         and Eric Blake  <ebb9@byu.net>
32240
32241         tests: don't require debug system() to pass
32242         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
32243         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32244         * tests/test-unlink.h (test_unlink_func): Likewise.
32245         * tests/test-fstatat.c (main): ...into callers.
32246         * tests/test-lstat.c (main): Likewise.
32247         * tests/test-rmdir.c (main): Likewise.
32248         * tests/test-unlink.c (main): Likewise.
32249         * tests/test-unlinkat.c (main): Likewise.
32250         * tests/test-areadlink-with-size.c (main): Don't require a
32251         debug-only system call to pass, aiding cross-testing to mingw.
32252         * tests/test-areadlink.c (main): Likewise.
32253         * tests/test-areadlinkat-with-size.c (main): Likewise.
32254         * tests/test-areadlinkat.c (main): Likewise.
32255         * tests/test-canonicalize-lgpl.c (main): Likewise.
32256         * tests/test-canonicalize.c (main): Likewise.
32257         * tests/test-chown.c (main): Likewise.
32258         * tests/test-fchownat.c (main): Likewise.
32259         * tests/test-lchown.c (main): Likewise.
32260         * tests/test-fdutimensat.c (main): Likewise.
32261         * tests/test-futimens.c (main): Likewise.
32262         * tests/test-link.c (main): Likewise.
32263         * tests/test-linkat.c (main): Likewise.
32264         * tests/test-mkdir.c (main): Likewise.
32265         * tests/test-mkdirat.c (main): Likewise.
32266         * tests/test-mkfifo.c (main): Likewise.
32267         * tests/test-mkfifoat.c (main): Likewise.
32268         * tests/test-mknod.c (main): Likewise.
32269         * tests/test-readlink.c (main): Likewise.
32270         * tests/test-remove.c (main): Likewise.
32271         * tests/test-rename.c (main): Likewise.
32272         * tests/test-renameat.c (main): Likewise.
32273         * tests/test-symlink.c (main): Likewise.
32274         * tests/test-symlinkat.c (main): Likewise.
32275         * tests/test-utimens.c (main): Likewise.
32276         * tests/test-utimensat.c (main): Likewise.
32277
32278 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32279
32280         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
32281         on $(UNUSED_PARAMETER_H) to avoid build failure.
32282
32283 2009-12-28  Jim Meyering  <meyering@redhat.com>
32284
32285         update-copyright: you may specify a max. line length other than 72
32286         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32287
32288         maint: use consistent FSF copyright line syntax
32289         * lib/posixtm.c: Add missing comma in FSF copyright line.
32290         * lib/posixtm.h: Likewise.
32291         * lib/getugroups.c: Add missing ", Inc.".
32292
32293         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
32294         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
32295         FSF copyright line.  Remove trailing blanks.
32296
32297 2009-12-28  Eric Blake  <ebb9@byu.net>
32298
32299         test-dup2: reduce dependencies
32300         * modules/cloexec (Configure.ac): Set witness.
32301         * modules/dup2-tests (Depends-on): Drop cloexec.
32302         * tests/test-dup2.c (main): Skip portion of test if cloexec module
32303         not present.
32304         Suggested by Bruno Haible.
32305
32306 2009-12-26  Bruno Haible  <bruno@clisp.org>
32307
32308         Remove an unneeded dependency.
32309         * modules/fseterr (Depends-on): Remove dup2.
32310
32311 2009-12-26  Eric Blake  <ebb9@byu.net>
32312
32313         tests: use macros.h in more places
32314         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
32315         (ASSERT_STREAM): Provide default of stderr.
32316         * tests/test-dirent-safer.c: Include macros.h, using alternate
32317         stream for assertions.
32318         * tests/test-dup-safer.c: Likewise.
32319         * tests/test-freopen-safer.c: Likewise.
32320         * tests/test-getopt.c: Likewise.
32321         * tests/test-openat-safer.c: Likewise.
32322         * tests/test-pipe.c: Likewise.
32323         * tests/test-popen-safer.c: Likewise.
32324         * modules/dirent-safer-tests (Files): Include macros.h.
32325         * modules/unistd-safer-tests (Files): Likewise.
32326         * modules/freopen-safer-tests (Files): Likewise.
32327         * modules/getopt-posix-tests (Files): Likewise.
32328         * modules/openat-safer-tests (Files): Likewise.
32329         * modules/pipe-tests (Files): Likewise.
32330
32331 2009-12-26  Bruno Haible  <bruno@clisp.org>
32332
32333         javacomp: Portability fix.
32334         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
32335         that it also works on Solaris.
32336
32337 2009-12-26  Bruno Haible  <bruno@clisp.org>
32338
32339         localename: Fix storage allocation of gl_locale_name_thread's result.
32340         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
32341         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
32342         all platforms that have 'uselocale'.
32343         (gl_locale_name_thread_unsafe): New function, extracted from
32344         gl_locale_name_thread.
32345         (gl_locale_name_thread): Call struniq on all platforms that have
32346         'uselocale'.
32347         * tests/test-localename.c (test_locale_name_thread): Check that the
32348         resulting strings are permanently allocated.
32349         * modules/localename-tests (Depends-on): Add strdup.
32350
32351 2009-12-26  Bruno Haible  <bruno@clisp.org>
32352
32353         * tests/test-localename.c (categories): Fill in the strings.
32354
32355 2009-12-26  Jim Meyering  <meyering@redhat.com>
32356
32357         isdir: complete the removal of m4/isdir.m4
32358         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
32359
32360         isdir: clean up, since at least grep still uses it
32361         * lib/isdir.c: Include "isdir.h".
32362         (S_ISDIR): Remove now-unneeded definition.
32363         * modules/isdir (Files): Add lib/isdir.h.
32364         * lib/isdir.h: New file, with declaration.
32365         * m4/isdir.m4: Remove file -- unneeded.
32366
32367 2009-12-25  Bruno Haible  <bruno@clisp.org>
32368
32369         selinux-h: Make generated .h files standalone.
32370         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
32371         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
32372         * lib/se-selinux.in.h: Likewise.
32373         * modules/selinux-h (Depends-on): Add unused-parameter.
32374         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
32375         selinux/selinux.h and selinux/context.h.
32376         Suggested by Eric Blake.
32377
32378 2009-12-25  Bruno Haible  <bruno@clisp.org>
32379
32380         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
32381         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
32382         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
32383         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
32384         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
32385
32386 2009-12-24  Bruno Haible  <bruno@clisp.org>
32387
32388         openat: Fix warning.
32389         * lib/openat-proc.c: Include <unistd.h>.
32390
32391 2009-12-24  Bruno Haible  <bruno@clisp.org>
32392
32393         New module 'unused-parameter'.
32394         * build-aux/unused-parameter.h: New file, extracted from earlier
32395         gnulib-common.m4.
32396         * modules/unused-parameter: New file.
32397         * lib/unistr.h: Include unused-parameter.h.
32398         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
32399         _GL_UNUSED.
32400         * modules/unistr/base (Depends-on): Add unused-parameter.
32401
32402 2009-12-24  Bruno Haible  <bruno@clisp.org>
32403
32404         Add missing dependencies to 'extensions' module.
32405         * m4/extensions.m4: Add comment.
32406         * modules/accept4 (Depends-on): Add extensions.
32407         * modules/dup3 (Depends-on): Likewise.
32408         * modules/fcntl (Depends-on): Likewise.
32409         * modules/futimens (Depends-on): Likewise.
32410         * modules/mknod (Depends-on): Likewise.
32411         * modules/pipe2 (Depends-on): Likewise.
32412         * modules/stat-time (Depends-on): Likewise.
32413         * modules/strcasestr-simple (Depends-on): Likewise.
32414         * modules/strsignal (Depends-on): Likewise.
32415         * modules/utimensat (Depends-on): Likewise.
32416         * modules/localcharset (Depends-on): Likewise. Needed because of
32417         gl_FCNTL_O_FLAGS.
32418         * modules/wcrtomb (Depends-on): Likewise. Needed because of
32419         AC_TYPE_MBSTATE_T.
32420         * modules/wcsnrtombs (Depends-on): Likewise.
32421         * modules/wcsrtombs (Depends-on): Likewise.
32422
32423 2009-12-24  Bruno Haible  <bruno@clisp.org>
32424
32425         binary-io: Avoid gcc warning due to SET_BINARY.
32426         * lib/binary-io.h (SET_BINARY): Cast the result to void.
32427         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
32428
32429 2009-12-24  Bruno Haible  <bruno@clisp.org>
32430
32431         Avoid future namespace pollution on glibc systems.
32432         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
32433         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
32434         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
32435         glibc systems.
32436
32437 2009-12-24  Bruno Haible  <bruno@clisp.org>
32438
32439         Refactor common macros used in tests.
32440         * tests/macros.h: New file.
32441         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
32442         and/or <stdlib.h>, if appropriate.
32443         (ASSERT, SIZEOF): Remove macros.
32444         * tests/test-areadlink-with-size.c: Likewise.
32445         * tests/test-areadlinkat.c: Likewise.
32446         * tests/test-areadlinkat-with-size.c: Likewise.
32447         * tests/test-argmatch.c: Likewise.
32448         * tests/test-argv-iter.c: Likewise.
32449         * tests/test-array-mergesort.c: Likewise.
32450         * tests/test-array_list.c: Likewise.
32451         * tests/test-array_oset.c: Likewise.
32452         * tests/test-avltree_list.c: Likewise.
32453         * tests/test-avltree_oset.c: Likewise.
32454         * tests/test-avltreehash_list.c: Likewise.
32455         * tests/test-base64.c: Likewise.
32456         * tests/test-binary-io.c: Likewise.
32457         * tests/test-bitrotate.c: Likewise.
32458         * tests/test-btowc.c: Likewise.
32459         * tests/test-byteswap.c: Likewise.
32460         * tests/test-c-ctype.c: Likewise.
32461         * tests/test-c-stack.c: Likewise.
32462         * tests/test-c-strcasecmp.c: Likewise.
32463         * tests/test-c-strcasestr.c: Likewise.
32464         * tests/test-c-strncasecmp.c: Likewise.
32465         * tests/test-c-strstr.c: Likewise.
32466         * tests/test-canonicalize-lgpl.c: Likewise.
32467         * tests/test-canonicalize.c: Likewise.
32468         * tests/test-carray_list.c: Likewise.
32469         * tests/test-ceilf1.c: Likewise.
32470         * tests/test-ceilf2.c: Likewise.
32471         * tests/test-ceill.c: Likewise.
32472         * tests/test-chown.c: Likewise.
32473         * tests/test-cloexec.c: Likewise.
32474         * tests/test-copy-acl.c: Likewise.
32475         * tests/test-copy-file.c: Likewise.
32476         * tests/test-count-one-bits.c: Likewise.
32477         * tests/test-dprintf-posix.c: Likewise.
32478         * tests/test-dup2.c: Likewise.
32479         * tests/test-dup3.c: Likewise.
32480         * tests/test-duplocale.c: Likewise.
32481         * tests/test-fbufmode.c: Likewise.
32482         * tests/test-fchdir.c: Likewise.
32483         * tests/test-fchownat.c: Likewise.
32484         * tests/test-fcntl-safer.c: Likewise.
32485         * tests/test-fcntl.c: Likewise.
32486         * tests/test-fdopendir.c: Likewise.
32487         * tests/test-fdutimensat.c: Likewise.
32488         * tests/test-fflush2.c: Likewise.
32489         * tests/test-file-has-acl.c: Likewise.
32490         * tests/test-filevercmp.c: Likewise.
32491         * tests/test-flock.c: Likewise.
32492         * tests/test-floorf1.c: Likewise.
32493         * tests/test-floorf2.c: Likewise.
32494         * tests/test-floorl.c: Likewise.
32495         * tests/test-fnmatch.c: Likewise.
32496         * tests/test-fopen.h: Likewise.
32497         * tests/test-fpending.c: Likewise.
32498         * tests/test-fprintf-posix.c: Likewise.
32499         * tests/test-fpurge.c: Likewise.
32500         * tests/test-freadable.c: Likewise.
32501         * tests/test-freadahead.c: Likewise.
32502         * tests/test-freading.c: Likewise.
32503         * tests/test-freadptr.c: Likewise.
32504         * tests/test-freadptr2.c: Likewise.
32505         * tests/test-freadseek.c: Likewise.
32506         * tests/test-freopen.c: Likewise.
32507         * tests/test-frexp.c: Likewise.
32508         * tests/test-frexpl.c: Likewise.
32509         * tests/test-fseek.c: Likewise.
32510         * tests/test-fseeko.c: Likewise.
32511         * tests/test-fstatat.c: Likewise.
32512         * tests/test-fstrcmp.c: Likewise.
32513         * tests/test-fsync.c: Likewise.
32514         * tests/test-ftell.c: Likewise.
32515         * tests/test-ftello.c: Likewise.
32516         * tests/test-func.c: Likewise.
32517         * tests/test-futimens.c: Likewise.
32518         * tests/test-fwritable.c: Likewise.
32519         * tests/test-fwriting.c: Likewise.
32520         * tests/test-getcwd.c: Likewise.
32521         * tests/test-getdate.c: Likewise.
32522         * tests/test-getdelim.c: Likewise.
32523         * tests/test-getdtablesize.c: Likewise.
32524         * tests/test-getgroups.c: Likewise.
32525         * tests/test-getline.c: Likewise.
32526         * tests/test-getndelim2.c: Likewise.
32527         * tests/test-glob.c: Likewise.
32528         * tests/test-hash.c: Likewise.
32529         * tests/test-i-ring.c: Likewise.
32530         * tests/test-iconv-utf.c: Likewise.
32531         * tests/test-iconv.c: Likewise.
32532         * tests/test-idpriv-drop.c: Likewise.
32533         * tests/test-idpriv-droptemp.c: Likewise.
32534         * tests/test-inet_ntop.c: Likewise.
32535         * tests/test-inet_pton.c: Likewise.
32536         * tests/test-isblank.c: Likewise.
32537         * tests/test-isfinite.c: Likewise.
32538         * tests/test-isinf.c: Likewise.
32539         * tests/test-isnan.c: Likewise.
32540         * tests/test-isnand.h: Likewise.
32541         * tests/test-isnanf.h: Likewise.
32542         * tests/test-isnanl.h: Likewise.
32543         * tests/test-lchown.c: Likewise.
32544         * tests/test-ldexpl.c: Likewise.
32545         * tests/test-link.c: Likewise.
32546         * tests/test-linkat.c: Likewise.
32547         * tests/test-linked_list.c: Likewise.
32548         * tests/test-linkedhash_list.c: Likewise.
32549         * tests/test-localename.c: Likewise.
32550         * tests/test-lseek.c: Likewise.
32551         * tests/test-lstat.c: Likewise.
32552         * tests/test-mbmemcasecmp.c: Likewise.
32553         * tests/test-mbmemcasecoll.c: Likewise.
32554         * tests/test-mbrtowc.c: Likewise.
32555         * tests/test-mbscasecmp.c: Likewise.
32556         * tests/test-mbscasestr1.c: Likewise.
32557         * tests/test-mbscasestr2.c: Likewise.
32558         * tests/test-mbscasestr3.c: Likewise.
32559         * tests/test-mbscasestr4.c: Likewise.
32560         * tests/test-mbschr.c: Likewise.
32561         * tests/test-mbscspn.c: Likewise.
32562         * tests/test-mbsinit.c: Likewise.
32563         * tests/test-mbsncasecmp.c: Likewise.
32564         * tests/test-mbsnrtowcs.c: Likewise.
32565         * tests/test-mbspbrk.c: Likewise.
32566         * tests/test-mbspcasecmp.c: Likewise.
32567         * tests/test-mbsrchr.c: Likewise.
32568         * tests/test-mbsrtowcs.c: Likewise.
32569         * tests/test-mbsspn.c: Likewise.
32570         * tests/test-mbsstr1.c: Likewise.
32571         * tests/test-mbsstr2.c: Likewise.
32572         * tests/test-mbsstr3.c: Likewise.
32573         * tests/test-memchr.c: Likewise.
32574         * tests/test-memchr2.c: Likewise.
32575         * tests/test-memcmp.c: Likewise.
32576         * tests/test-memmem.c: Likewise.
32577         * tests/test-memrchr.c: Likewise.
32578         * tests/test-mkdir.c: Likewise.
32579         * tests/test-mkdirat.c: Likewise.
32580         * tests/test-mkfifo.c: Likewise.
32581         * tests/test-mkfifoat.c: Likewise.
32582         * tests/test-mknod.c: Likewise.
32583         * tests/test-nanosleep.c: Likewise.
32584         * tests/test-nl_langinfo.c: Likewise.
32585         * tests/test-obstack-printf.c: Likewise.
32586         * tests/test-open.c: Likewise.
32587         * tests/test-openat.c: Likewise.
32588         * tests/test-pipe-filter-gi1.c: Likewise.
32589         * tests/test-pipe-filter-gi2-main.c: Likewise.
32590         * tests/test-pipe-filter-ii1.c: Likewise.
32591         * tests/test-pipe-filter-ii2-main.c: Likewise.
32592         * tests/test-pipe2.c: Likewise.
32593         * tests/test-popen.h: Likewise.
32594         * tests/test-posixtm.c: Likewise.
32595         * tests/test-pread.c: Likewise.
32596         * tests/test-printf-frexp.c: Likewise.
32597         * tests/test-printf-frexpl.c: Likewise.
32598         * tests/test-printf-posix.c: Likewise.
32599         * tests/test-priv-set.c: Likewise.
32600         * tests/test-quotearg.c: Likewise.
32601         * tests/test-random_r.c: Likewise.
32602         * tests/test-rawmemchr.c: Likewise.
32603         * tests/test-rbtree_list.c: Likewise.
32604         * tests/test-rbtree_oset.c: Likewise.
32605         * tests/test-rbtreehash_list.c: Likewise.
32606         * tests/test-readlink.c: Likewise.
32607         * tests/test-remove.c: Likewise.
32608         * tests/test-rename.c: Likewise.
32609         * tests/test-renameat.c: Likewise.
32610         * tests/test-rmdir.c: Likewise.
32611         * tests/test-round1.c: Likewise.
32612         * tests/test-roundf1.c: Likewise.
32613         * tests/test-roundl.c: Likewise.
32614         * tests/test-safe-alloc.c: Likewise.
32615         * tests/test-sameacls.c: Likewise.
32616         * tests/test-set-mode-acl.c: Likewise.
32617         * tests/test-setenv.c: Likewise.
32618         * tests/test-sigaction.c: Likewise.
32619         * tests/test-signbit.c: Likewise.
32620         * tests/test-sleep.c: Likewise.
32621         * tests/test-snprintf-posix.c: Likewise.
32622         * tests/test-snprintf.c: Likewise.
32623         * tests/test-sprintf-posix.c: Likewise.
32624         * tests/test-stat-time.c: Likewise.
32625         * tests/test-stat.c: Likewise.
32626         * tests/test-strcasestr.c: Likewise.
32627         * tests/test-strchrnul.c: Likewise.
32628         * tests/test-strerror.c: Likewise.
32629         * tests/test-striconv.c: Likewise.
32630         * tests/test-striconveh.c: Likewise.
32631         * tests/test-striconveha.c: Likewise.
32632         * tests/test-strsignal.c: Likewise.
32633         * tests/test-strstr.c: Likewise.
32634         * tests/test-strtod.c: Likewise.
32635         * tests/test-strverscmp.c: Likewise.
32636         * tests/test-symlink.c: Likewise.
32637         * tests/test-symlinkat.c: Likewise.
32638         * tests/test-trunc1.c: Likewise.
32639         * tests/test-trunc2.c: Likewise.
32640         * tests/test-truncf1.c: Likewise.
32641         * tests/test-truncf2.c: Likewise.
32642         * tests/test-truncl.c: Likewise.
32643         * tests/test-uname.c: Likewise.
32644         * tests/test-unlink.c: Likewise.
32645         * tests/test-unlinkat.c: Likewise.
32646         * tests/test-unsetenv.c: Likewise.
32647         * tests/test-usleep.c: Likewise.
32648         * tests/test-utimens.c: Likewise.
32649         * tests/test-utimensat.c: Likewise.
32650         * tests/test-vasnprintf-posix.c: Likewise.
32651         * tests/test-vasnprintf-posix2.c: Likewise.
32652         * tests/test-vasnprintf.c: Likewise.
32653         * tests/test-vasprintf-posix.c: Likewise.
32654         * tests/test-vasprintf.c: Likewise.
32655         * tests/test-vdprintf-posix.c: Likewise.
32656         * tests/test-vfprintf-posix.c: Likewise.
32657         * tests/test-vprintf-posix.c: Likewise.
32658         * tests/test-vsnprintf-posix.c: Likewise.
32659         * tests/test-vsnprintf.c: Likewise.
32660         * tests/test-vsprintf-posix.c: Likewise.
32661         * tests/test-wcrtomb.c: Likewise.
32662         * tests/test-wcsnrtombs.c: Likewise.
32663         * tests/test-wcsrtombs.c: Likewise.
32664         * tests/test-wctype.c: Likewise.
32665         * tests/test-wcwidth.c: Likewise.
32666         * tests/test-xfprintf-posix.c: Likewise.
32667         * tests/test-xmemdup0.c: Likewise.
32668         * tests/test-xprintf-posix.c: Likewise.
32669         * tests/test-xvasprintf.c: Likewise.
32670         * tests/unicase/test-locale-language.c: Likewise.
32671         * tests/unicase/test-mapping-part1.h: Likewise.
32672         * tests/unicase/test-predicate-part1.h: Likewise.
32673         * tests/unicase/test-u8-casecmp.c: Likewise.
32674         * tests/unicase/test-u8-casecoll.c: Likewise.
32675         * tests/unicase/test-u8-casefold.c: Likewise.
32676         * tests/unicase/test-u8-is-cased.c: Likewise.
32677         * tests/unicase/test-u8-is-casefolded.c: Likewise.
32678         * tests/unicase/test-u8-is-lowercase.c: Likewise.
32679         * tests/unicase/test-u8-is-titlecase.c: Likewise.
32680         * tests/unicase/test-u8-is-uppercase.c: Likewise.
32681         * tests/unicase/test-u8-tolower.c: Likewise.
32682         * tests/unicase/test-u8-totitle.c: Likewise.
32683         * tests/unicase/test-u8-toupper.c: Likewise.
32684         * tests/unicase/test-u16-casecmp.c: Likewise.
32685         * tests/unicase/test-u16-casecoll.c: Likewise.
32686         * tests/unicase/test-u16-casefold.c: Likewise.
32687         * tests/unicase/test-u16-is-cased.c: Likewise.
32688         * tests/unicase/test-u16-is-casefolded.c: Likewise.
32689         * tests/unicase/test-u16-is-lowercase.c: Likewise.
32690         * tests/unicase/test-u16-is-titlecase.c: Likewise.
32691         * tests/unicase/test-u16-is-uppercase.c: Likewise.
32692         * tests/unicase/test-u16-tolower.c: Likewise.
32693         * tests/unicase/test-u16-totitle.c: Likewise.
32694         * tests/unicase/test-u16-toupper.c: Likewise.
32695         * tests/unicase/test-u32-casecmp.c: Likewise.
32696         * tests/unicase/test-u32-casecoll.c: Likewise.
32697         * tests/unicase/test-u32-casefold.c: Likewise.
32698         * tests/unicase/test-u32-is-cased.c: Likewise.
32699         * tests/unicase/test-u32-is-casefolded.c: Likewise.
32700         * tests/unicase/test-u32-is-lowercase.c: Likewise.
32701         * tests/unicase/test-u32-is-titlecase.c: Likewise.
32702         * tests/unicase/test-u32-is-uppercase.c: Likewise.
32703         * tests/unicase/test-u32-tolower.c: Likewise.
32704         * tests/unicase/test-u32-totitle.c: Likewise.
32705         * tests/unicase/test-u32-toupper.c: Likewise.
32706         * tests/unicase/test-ulc-casecmp.c: Likewise.
32707         * tests/unicase/test-ulc-casecoll.c: Likewise.
32708         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32709         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
32710         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32711         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32712         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
32713         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
32714         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32715         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32716         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32717         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
32718         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32719         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32720         * tests/unictype/test-bidi_byname.c: Likewise.
32721         * tests/unictype/test-bidi_name.c: Likewise.
32722         * tests/unictype/test-bidi_of.c: Likewise.
32723         * tests/unictype/test-bidi_test.c: Likewise.
32724         * tests/unictype/test-block_list.c: Likewise.
32725         * tests/unictype/test-block_of.c: Likewise.
32726         * tests/unictype/test-block_test.c: Likewise.
32727         * tests/unictype/test-categ_and.c: Likewise.
32728         * tests/unictype/test-categ_and_not.c: Likewise.
32729         * tests/unictype/test-categ_byname.c: Likewise.
32730         * tests/unictype/test-categ_name.c: Likewise.
32731         * tests/unictype/test-categ_none.c: Likewise.
32732         * tests/unictype/test-categ_of.c: Likewise.
32733         * tests/unictype/test-categ_or.c: Likewise.
32734         * tests/unictype/test-categ_test_withtable.c: Likewise.
32735         * tests/unictype/test-combining.c: Likewise.
32736         * tests/unictype/test-decdigit.c: Likewise.
32737         * tests/unictype/test-digit.c: Likewise.
32738         * tests/unictype/test-mirror.c: Likewise.
32739         * tests/unictype/test-numeric.c: Likewise.
32740         * tests/unictype/test-pr_byname.c: Likewise.
32741         * tests/unictype/test-pr_test.c: Likewise.
32742         * tests/unictype/test-predicate-part1.h: Likewise.
32743         * tests/unictype/test-scripts.c: Likewise.
32744         * tests/unictype/test-sy_c_ident.c: Likewise.
32745         * tests/unictype/test-sy_java_ident.c: Likewise.
32746         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
32747         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
32748         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
32749         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
32750         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
32751         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
32752         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
32753         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
32754         * tests/uninorm/test-canonical-decomposition.c: Likewise.
32755         * tests/uninorm/test-compat-decomposition.c: Likewise.
32756         * tests/uninorm/test-composition.c: Likewise.
32757         * tests/uninorm/test-decomposing-form.c: Likewise.
32758         * tests/uninorm/test-decomposition.c: Likewise.
32759         * tests/uninorm/test-u8-nfc.c: Likewise.
32760         * tests/uninorm/test-u8-nfd.c: Likewise.
32761         * tests/uninorm/test-u8-nfkc.c: Likewise.
32762         * tests/uninorm/test-u8-nfkd.c: Likewise.
32763         * tests/uninorm/test-u8-normcmp.c: Likewise.
32764         * tests/uninorm/test-u8-normcoll.c: Likewise.
32765         * tests/uninorm/test-u16-nfc.c: Likewise.
32766         * tests/uninorm/test-u16-nfd.c: Likewise.
32767         * tests/uninorm/test-u16-nfkc.c: Likewise.
32768         * tests/uninorm/test-u16-nfkd.c: Likewise.
32769         * tests/uninorm/test-u16-normcmp.c: Likewise.
32770         * tests/uninorm/test-u16-normcoll.c: Likewise.
32771         * tests/uninorm/test-u32-nfc.c: Likewise.
32772         * tests/uninorm/test-u32-nfd.c: Likewise.
32773         * tests/uninorm/test-u32-nfkc.c: Likewise.
32774         * tests/uninorm/test-u32-nfkd.c: Likewise.
32775         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32776         * tests/uninorm/test-u32-normcmp.c: Likewise.
32777         * tests/uninorm/test-u32-normcoll.c: Likewise.
32778         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
32779         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32780         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32781         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32782         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32783         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32784         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32785         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32786         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32787         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32788         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32789         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32790         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32791         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32792         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32793         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32794         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32795         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32796         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32797         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32798         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32799         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32800         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32801         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32802         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32803         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32804         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32805         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32806         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32807         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
32808         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
32809         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
32810         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
32811         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32812         * tests/uniwidth/test-u8-width.c: Likewise.
32813         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32814         * tests/uniwidth/test-u16-width.c: Likewise.
32815         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32816         * tests/uniwidth/test-u32-width.c: Likewise.
32817         * tests/uniwidth/test-uc_width.c: Likewise.
32818         * tests/uniwidth/test-uc_width2.c: Likewise.
32819         * modules/acl-tests (Files): Add tests/macros.h.
32820         * modules/areadlink-tests (Files): Likewise.
32821         * modules/areadlink-with-size-tests (Files): Likewise.
32822         * modules/areadlinkat-tests (Files): Likewise.
32823         * modules/areadlinkat-with-size-tests (Files): Likewise.
32824         * modules/argmatch-tests (Files): Likewise.
32825         * modules/argv-iter-tests (Files): Likewise.
32826         * modules/array-list-tests (Files): Likewise.
32827         * modules/array-mergesort-tests (Files): Likewise.
32828         * modules/array-oset-tests (Files): Likewise.
32829         * modules/avltree-list-tests (Files): Likewise.
32830         * modules/avltree-oset-tests (Files): Likewise.
32831         * modules/avltreehash-list-tests (Files): Likewise.
32832         * modules/base64-tests (Files): Likewise.
32833         * modules/binary-io-tests (Files): Likewise.
32834         * modules/bitrotate-tests (Files): Likewise.
32835         * modules/btowc-tests (Files): Likewise.
32836         * modules/byteswap-tests (Files): Likewise.
32837         * modules/c-ctype-tests (Files): Likewise.
32838         * modules/c-stack-tests (Files): Likewise.
32839         * modules/c-strcase-tests (Files): Likewise.
32840         * modules/c-strcasestr-tests (Files): Likewise.
32841         * modules/c-strstr-tests (Files): Likewise.
32842         * modules/canonicalize-lgpl-tests (Files): Likewise.
32843         * modules/canonicalize-tests (Files): Likewise.
32844         * modules/carray-list-tests (Files): Likewise.
32845         * modules/ceilf-tests (Files): Likewise.
32846         * modules/ceill-tests (Files): Likewise.
32847         * modules/chown-tests (Files): Likewise.
32848         * modules/cloexec-tests (Files): Likewise.
32849         * modules/copy-file-tests (Files): Likewise.
32850         * modules/count-one-bits-tests (Files): Likewise.
32851         * modules/dprintf-posix-tests (Files): Likewise.
32852         * modules/dup2-tests (Files): Likewise.
32853         * modules/dup3-tests (Files): Likewise.
32854         * modules/duplocale-tests (Files): Likewise.
32855         * modules/fbufmode-tests (Files): Likewise.
32856         * modules/fchdir-tests (Files): Likewise.
32857         * modules/fcntl-safer-tests (Files): Likewise.
32858         * modules/fcntl-tests (Files): Likewise.
32859         * modules/fdopendir-tests (Files): Likewise.
32860         * modules/fdutimensat-tests (Files): Likewise.
32861         * modules/fflush-tests (Files): Likewise.
32862         * modules/filevercmp-tests (Files): Likewise.
32863         * modules/flock-tests (Files): Likewise.
32864         * modules/floorf-tests (Files): Likewise.
32865         * modules/floorl-tests (Files): Likewise.
32866         * modules/fnmatch-tests (Files): Likewise.
32867         * modules/fopen-safer-tests (Files): Likewise.
32868         * modules/fopen-tests (Files): Likewise.
32869         * modules/fpending-tests (Files): Likewise.
32870         * modules/fprintf-posix-tests (Files): Likewise.
32871         * modules/fpurge-tests (Files): Likewise.
32872         * modules/freadable-tests (Files): Likewise.
32873         * modules/freadahead-tests (Files): Likewise.
32874         * modules/freading-tests (Files): Likewise.
32875         * modules/freadptr-tests (Files): Likewise.
32876         * modules/freadseek-tests (Files): Likewise.
32877         * modules/freopen-tests (Files): Likewise.
32878         * modules/frexp-nolibm-tests (Files): Likewise.
32879         * modules/frexp-tests (Files): Likewise.
32880         * modules/frexpl-nolibm-tests (Files): Likewise.
32881         * modules/frexpl-tests (Files): Likewise.
32882         * modules/fseek-tests (Files): Likewise.
32883         * modules/fseeko-tests (Files): Likewise.
32884         * modules/fstrcmp-tests (Files): Likewise.
32885         * modules/fsync-tests (Files): Likewise.
32886         * modules/ftell-tests (Files): Likewise.
32887         * modules/ftello-tests (Files): Likewise.
32888         * modules/func-tests (Files): Likewise.
32889         * modules/futimens-tests (Files): Likewise.
32890         * modules/fwritable-tests (Files): Likewise.
32891         * modules/fwriting-tests (Files): Likewise.
32892         * modules/getcwd-tests (Files): Likewise.
32893         * modules/getdate-tests (Files): Likewise.
32894         * modules/getdelim-tests (Files): Likewise.
32895         * modules/getdtablesize-tests (Files): Likewise.
32896         * modules/getgroups-tests (Files): Likewise.
32897         * modules/getline-tests (Files): Likewise.
32898         * modules/getndelim2-tests (Files): Likewise.
32899         * modules/glob-tests (Files): Likewise.
32900         * modules/hash-tests (Files): Likewise.
32901         * modules/i-ring-tests (Files): Likewise.
32902         * modules/iconv-tests (Files): Likewise.
32903         * modules/iconv_open-utf-tests (Files): Likewise.
32904         * modules/idpriv-drop-tests (Files): Likewise.
32905         * modules/idpriv-droptemp-tests (Files): Likewise.
32906         * modules/inet_ntop-tests (Files): Likewise.
32907         * modules/inet_pton-tests (Files): Likewise.
32908         * modules/isblank-tests (Files): Likewise.
32909         * modules/isfinite-tests (Files): Likewise.
32910         * modules/isinf-tests (Files): Likewise.
32911         * modules/isnan-tests (Files): Likewise.
32912         * modules/isnand-nolibm-tests (Files): Likewise.
32913         * modules/isnand-tests (Files): Likewise.
32914         * modules/isnanf-nolibm-tests (Files): Likewise.
32915         * modules/isnanf-tests (Files): Likewise.
32916         * modules/isnanl-nolibm-tests (Files): Likewise.
32917         * modules/isnanl-tests (Files): Likewise.
32918         * modules/lchown-tests (Files): Likewise.
32919         * modules/ldexpl-tests (Files): Likewise.
32920         * modules/link-tests (Files): Likewise.
32921         * modules/linkat-tests (Files): Likewise.
32922         * modules/linked-list-tests (Files): Likewise.
32923         * modules/linkedhash-list-tests (Files): Likewise.
32924         * modules/localename-tests (Files): Likewise.
32925         * modules/lseek-tests (Files): Likewise.
32926         * modules/lstat-tests (Files): Likewise.
32927         * modules/mbmemcasecmp-tests (Files): Likewise.
32928         * modules/mbmemcasecoll-tests (Files): Likewise.
32929         * modules/mbrtowc-tests (Files): Likewise.
32930         * modules/mbscasecmp-tests (Files): Likewise.
32931         * modules/mbscasestr-tests (Files): Likewise.
32932         * modules/mbschr-tests (Files): Likewise.
32933         * modules/mbscspn-tests (Files): Likewise.
32934         * modules/mbsinit-tests (Files): Likewise.
32935         * modules/mbsncasecmp-tests (Files): Likewise.
32936         * modules/mbsnrtowcs-tests (Files): Likewise.
32937         * modules/mbspbrk-tests (Files): Likewise.
32938         * modules/mbspcasecmp-tests (Files): Likewise.
32939         * modules/mbsrchr-tests (Files): Likewise.
32940         * modules/mbsrtowcs-tests (Files): Likewise.
32941         * modules/mbsspn-tests (Files): Likewise.
32942         * modules/mbsstr-tests (Files): Likewise.
32943         * modules/memchr-tests (Files): Likewise.
32944         * modules/memchr2-tests (Files): Likewise.
32945         * modules/memcmp-tests (Files): Likewise.
32946         * modules/memmem-tests (Files): Likewise.
32947         * modules/memrchr-tests (Files): Likewise.
32948         * modules/mkdir-tests (Files): Likewise.
32949         * modules/mkfifo-tests (Files): Likewise.
32950         * modules/mkfifoat-tests (Files): Likewise.
32951         * modules/mknod-tests (Files): Likewise.
32952         * modules/nanosleep-tests (Files): Likewise.
32953         * modules/nl_langinfo-tests (Files): Likewise.
32954         * modules/obstack-printf-tests (Files): Likewise.
32955         * modules/open-tests (Files): Likewise.
32956         * modules/openat-tests (Files): Likewise.
32957         * modules/pipe-filter-gi-tests (Files): Likewise.
32958         * modules/pipe-filter-ii-tests (Files): Likewise.
32959         * modules/pipe2-tests (Files): Likewise.
32960         * modules/popen-safer-tests (Files): Likewise.
32961         * modules/popen-tests (Files): Likewise.
32962         * modules/posixtm-tests (Files): Likewise.
32963         * modules/pread-tests (Files): Likewise.
32964         * modules/printf-frexp-tests (Files): Likewise.
32965         * modules/printf-frexpl-tests (Files): Likewise.
32966         * modules/printf-posix-tests (Files): Likewise.
32967         * modules/priv-set-tests (Files): Likewise.
32968         * modules/quotearg-tests (Files): Likewise.
32969         * modules/random_r-tests (Files): Likewise.
32970         * modules/rawmemchr-tests (Files): Likewise.
32971         * modules/rbtree-list-tests (Files): Likewise.
32972         * modules/rbtree-oset-tests (Files): Likewise.
32973         * modules/rbtreehash-list-tests (Files): Likewise.
32974         * modules/readlink-tests (Files): Likewise.
32975         * modules/remove-tests (Files): Likewise.
32976         * modules/rename-tests (Files): Likewise.
32977         * modules/renameat-tests (Files): Likewise.
32978         * modules/rmdir-tests (Files): Likewise.
32979         * modules/round-tests (Files): Likewise.
32980         * modules/roundf-tests (Files): Likewise.
32981         * modules/roundl-tests (Files): Likewise.
32982         * modules/safe-alloc-tests (Files): Likewise.
32983         * modules/setenv-tests (Files): Likewise.
32984         * modules/sigaction-tests (Files): Likewise.
32985         * modules/signbit-tests (Files): Likewise.
32986         * modules/sleep-tests (Files): Likewise.
32987         * modules/snprintf-posix-tests (Files): Likewise.
32988         * modules/snprintf-tests (Files): Likewise.
32989         * modules/sprintf-posix-tests (Files): Likewise.
32990         * modules/stat-tests (Files): Likewise.
32991         * modules/stat-time-tests (Files): Likewise.
32992         * modules/strcasestr-tests (Files): Likewise.
32993         * modules/strchrnul-tests (Files): Likewise.
32994         * modules/strerror-tests (Files): Likewise.
32995         * modules/striconv-tests (Files): Likewise.
32996         * modules/striconveh-tests (Files): Likewise.
32997         * modules/striconveha-tests (Files): Likewise.
32998         * modules/strsignal-tests (Files): Likewise.
32999         * modules/strstr-tests (Files): Likewise.
33000         * modules/strtod-tests (Files): Likewise.
33001         * modules/strverscmp-tests (Files): Likewise.
33002         * modules/symlink-tests (Files): Likewise.
33003         * modules/symlinkat-tests (Files): Likewise.
33004         * modules/trunc-tests (Files): Likewise.
33005         * modules/truncf-tests (Files): Likewise.
33006         * modules/truncl-tests (Files): Likewise.
33007         * modules/uname-tests (Files): Likewise.
33008         * modules/unicase/cased-tests (Files): Likewise.
33009         * modules/unicase/ignorable-tests (Files): Likewise.
33010         * modules/unicase/locale-language-tests (Files): Likewise.
33011         * modules/unicase/tolower-tests (Files): Likewise.
33012         * modules/unicase/totitle-tests (Files): Likewise.
33013         * modules/unicase/toupper-tests (Files): Likewise.
33014         * modules/unicase/u8-casecmp-tests (Files): Likewise.
33015         * modules/unicase/u8-casecoll-tests (Files): Likewise.
33016         * modules/unicase/u8-casefold-tests (Files): Likewise.
33017         * modules/unicase/u8-is-cased-tests (Files): Likewise.
33018         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
33019         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
33020         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
33021         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
33022         * modules/unicase/u8-tolower-tests (Files): Likewise.
33023         * modules/unicase/u8-totitle-tests (Files): Likewise.
33024         * modules/unicase/u8-toupper-tests (Files): Likewise.
33025         * modules/unicase/u16-casecmp-tests (Files): Likewise.
33026         * modules/unicase/u16-casecoll-tests (Files): Likewise.
33027         * modules/unicase/u16-casefold-tests (Files): Likewise.
33028         * modules/unicase/u16-is-cased-tests (Files): Likewise.
33029         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
33030         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
33031         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
33032         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
33033         * modules/unicase/u16-tolower-tests (Files): Likewise.
33034         * modules/unicase/u16-totitle-tests (Files): Likewise.
33035         * modules/unicase/u16-toupper-tests (Files): Likewise.
33036         * modules/unicase/u32-casecmp-tests (Files): Likewise.
33037         * modules/unicase/u32-casecoll-tests (Files): Likewise.
33038         * modules/unicase/u32-casefold-tests (Files): Likewise.
33039         * modules/unicase/u32-is-cased-tests (Files): Likewise.
33040         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
33041         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
33042         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
33043         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
33044         * modules/unicase/u32-tolower-tests (Files): Likewise.
33045         * modules/unicase/u32-totitle-tests (Files): Likewise.
33046         * modules/unicase/u32-toupper-tests (Files): Likewise.
33047         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
33048         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
33049         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
33050         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
33051         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
33052         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
33053         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
33054         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
33055         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
33056         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
33057         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
33058         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
33059         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
33060         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
33061         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
33062         * modules/unictype/bidicategory-name-tests (Files): Likewise.
33063         * modules/unictype/bidicategory-of-tests (Files): Likewise.
33064         * modules/unictype/bidicategory-test-tests (Files): Likewise.
33065         * modules/unictype/block-list-tests (Files): Likewise.
33066         * modules/unictype/block-of-tests (Files): Likewise.
33067         * modules/unictype/block-test-tests (Files): Likewise.
33068         * modules/unictype/category-C-tests (Files): Likewise.
33069         * modules/unictype/category-Cc-tests (Files): Likewise.
33070         * modules/unictype/category-Cf-tests (Files): Likewise.
33071         * modules/unictype/category-Cn-tests (Files): Likewise.
33072         * modules/unictype/category-Co-tests (Files): Likewise.
33073         * modules/unictype/category-Cs-tests (Files): Likewise.
33074         * modules/unictype/category-L-tests (Files): Likewise.
33075         * modules/unictype/category-Ll-tests (Files): Likewise.
33076         * modules/unictype/category-Lm-tests (Files): Likewise.
33077         * modules/unictype/category-Lo-tests (Files): Likewise.
33078         * modules/unictype/category-Lt-tests (Files): Likewise.
33079         * modules/unictype/category-Lu-tests (Files): Likewise.
33080         * modules/unictype/category-M-tests (Files): Likewise.
33081         * modules/unictype/category-Mc-tests (Files): Likewise.
33082         * modules/unictype/category-Me-tests (Files): Likewise.
33083         * modules/unictype/category-Mn-tests (Files): Likewise.
33084         * modules/unictype/category-N-tests (Files): Likewise.
33085         * modules/unictype/category-Nd-tests (Files): Likewise.
33086         * modules/unictype/category-Nl-tests (Files): Likewise.
33087         * modules/unictype/category-No-tests (Files): Likewise.
33088         * modules/unictype/category-P-tests (Files): Likewise.
33089         * modules/unictype/category-Pc-tests (Files): Likewise.
33090         * modules/unictype/category-Pd-tests (Files): Likewise.
33091         * modules/unictype/category-Pe-tests (Files): Likewise.
33092         * modules/unictype/category-Pf-tests (Files): Likewise.
33093         * modules/unictype/category-Pi-tests (Files): Likewise.
33094         * modules/unictype/category-Po-tests (Files): Likewise.
33095         * modules/unictype/category-Ps-tests (Files): Likewise.
33096         * modules/unictype/category-S-tests (Files): Likewise.
33097         * modules/unictype/category-Sc-tests (Files): Likewise.
33098         * modules/unictype/category-Sk-tests (Files): Likewise.
33099         * modules/unictype/category-Sm-tests (Files): Likewise.
33100         * modules/unictype/category-So-tests (Files): Likewise.
33101         * modules/unictype/category-Z-tests (Files): Likewise.
33102         * modules/unictype/category-Zl-tests (Files): Likewise.
33103         * modules/unictype/category-Zp-tests (Files): Likewise.
33104         * modules/unictype/category-Zs-tests (Files): Likewise.
33105         * modules/unictype/category-and-not-tests (Files): Likewise.
33106         * modules/unictype/category-and-tests (Files): Likewise.
33107         * modules/unictype/category-byname-tests (Files): Likewise.
33108         * modules/unictype/category-name-tests (Files): Likewise.
33109         * modules/unictype/category-none-tests (Files): Likewise.
33110         * modules/unictype/category-of-tests (Files): Likewise.
33111         * modules/unictype/category-or-tests (Files): Likewise.
33112         * modules/unictype/category-test-withtable-tests (Files): Likewise.
33113         * modules/unictype/combining-class-tests (Files): Likewise.
33114         * modules/unictype/ctype-alnum-tests (Files): Likewise.
33115         * modules/unictype/ctype-alpha-tests (Files): Likewise.
33116         * modules/unictype/ctype-blank-tests (Files): Likewise.
33117         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
33118         * modules/unictype/ctype-digit-tests (Files): Likewise.
33119         * modules/unictype/ctype-graph-tests (Files): Likewise.
33120         * modules/unictype/ctype-lower-tests (Files): Likewise.
33121         * modules/unictype/ctype-print-tests (Files): Likewise.
33122         * modules/unictype/ctype-punct-tests (Files): Likewise.
33123         * modules/unictype/ctype-space-tests (Files): Likewise.
33124         * modules/unictype/ctype-upper-tests (Files): Likewise.
33125         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
33126         * modules/unictype/decimal-digit-tests (Files): Likewise.
33127         * modules/unictype/digit-tests (Files): Likewise.
33128         * modules/unictype/mirror-tests (Files): Likewise.
33129         * modules/unictype/numeric-tests (Files): Likewise.
33130         * modules/unictype/property-alphabetic-tests (Files): Likewise.
33131         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
33132         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
33133         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
33134         Likewise.
33135         * modules/unictype/property-bidi-block-separator-tests (Files):
33136         Likewise.
33137         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
33138         Likewise.
33139         * modules/unictype/property-bidi-common-separator-tests (Files):
33140         Likewise.
33141         * modules/unictype/property-bidi-control-tests (Files): Likewise.
33142         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
33143         Likewise.
33144         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
33145         Likewise.
33146         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
33147         Likewise.
33148         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
33149         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
33150         Likewise.
33151         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
33152         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
33153         Likewise.
33154         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
33155         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
33156         * modules/unictype/property-bidi-segment-separator-tests (Files):
33157         Likewise.
33158         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
33159         * modules/unictype/property-byname-tests (Files): Likewise.
33160         * modules/unictype/property-combining-tests (Files): Likewise.
33161         * modules/unictype/property-composite-tests (Files): Likewise.
33162         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
33163         * modules/unictype/property-dash-tests (Files): Likewise.
33164         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
33165         * modules/unictype/property-default-ignorable-code-point-tests (Files):
33166         Likewise.
33167         * modules/unictype/property-deprecated-tests (Files): Likewise.
33168         * modules/unictype/property-diacritic-tests (Files): Likewise.
33169         * modules/unictype/property-extender-tests (Files): Likewise.
33170         * modules/unictype/property-format-control-tests (Files): Likewise.
33171         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
33172         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
33173         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
33174         * modules/unictype/property-hex-digit-tests (Files): Likewise.
33175         * modules/unictype/property-hyphen-tests (Files): Likewise.
33176         * modules/unictype/property-id-continue-tests (Files): Likewise.
33177         * modules/unictype/property-id-start-tests (Files): Likewise.
33178         * modules/unictype/property-ideographic-tests (Files): Likewise.
33179         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
33180         * modules/unictype/property-ids-trinary-operator-tests (Files):
33181         Likewise.
33182         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
33183         * modules/unictype/property-iso-control-tests (Files): Likewise.
33184         * modules/unictype/property-join-control-tests (Files): Likewise.
33185         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
33186         * modules/unictype/property-line-separator-tests (Files): Likewise.
33187         * modules/unictype/property-logical-order-exception-tests (Files):
33188         Likewise.
33189         * modules/unictype/property-lowercase-tests (Files): Likewise.
33190         * modules/unictype/property-math-tests (Files): Likewise.
33191         * modules/unictype/property-non-break-tests (Files): Likewise.
33192         * modules/unictype/property-not-a-character-tests (Files): Likewise.
33193         * modules/unictype/property-numeric-tests (Files): Likewise.
33194         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
33195         * modules/unictype/property-other-default-ignorable-code-point-tests
33196         (Files): Likewise.
33197         * modules/unictype/property-other-grapheme-extend-tests (Files):
33198         Likewise.
33199         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
33200         * modules/unictype/property-other-id-start-tests (Files): Likewise.
33201         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
33202         * modules/unictype/property-other-math-tests (Files): Likewise.
33203         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
33204         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
33205         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
33206         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
33207         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
33208         * modules/unictype/property-private-use-tests (Files): Likewise.
33209         * modules/unictype/property-punctuation-tests (Files): Likewise.
33210         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
33211         * modules/unictype/property-radical-tests (Files): Likewise.
33212         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
33213         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
33214         * modules/unictype/property-space-tests (Files): Likewise.
33215         * modules/unictype/property-terminal-punctuation-tests (Files):
33216         Likewise.
33217         * modules/unictype/property-test-tests (Files): Likewise.
33218         * modules/unictype/property-titlecase-tests (Files): Likewise.
33219         * modules/unictype/property-unassigned-code-value-tests (Files):
33220         Likewise.
33221         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
33222         * modules/unictype/property-uppercase-tests (Files): Likewise.
33223         * modules/unictype/property-variation-selector-tests (Files): Likewise.
33224         * modules/unictype/property-white-space-tests (Files): Likewise.
33225         * modules/unictype/property-xid-continue-tests (Files): Likewise.
33226         * modules/unictype/property-xid-start-tests (Files): Likewise.
33227         * modules/unictype/property-zero-width-tests (Files): Likewise.
33228         * modules/unictype/scripts-tests (Files): Likewise.
33229         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
33230         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
33231         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
33232         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
33233         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
33234         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
33235         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
33236         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
33237         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
33238         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
33239         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
33240         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
33241         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
33242         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
33243         * modules/uninorm/composition-tests (Files): Likewise.
33244         * modules/uninorm/decomposing-form-tests (Files): Likewise.
33245         * modules/uninorm/decomposition-tests (Files): Likewise.
33246         * modules/uninorm/filter-tests (Files): Likewise.
33247         * modules/uninorm/nfc-tests (Files): Likewise.
33248         * modules/uninorm/nfd-tests (Files): Likewise.
33249         * modules/uninorm/nfkc-tests (Files): Likewise.
33250         * modules/uninorm/nfkd-tests (Files): Likewise.
33251         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
33252         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
33253         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
33254         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
33255         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
33256         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
33257         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
33258         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33259         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
33260         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
33261         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
33262         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
33263         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33264         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
33265         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
33266         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
33267         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
33268         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33269         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
33270         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
33271         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
33272         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
33273         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33274         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
33275         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
33276         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
33277         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
33278         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
33279         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
33280         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
33281         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
33282         * modules/uniwidth/u8-width-tests (Files): Likewise.
33283         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
33284         * modules/uniwidth/u16-width-tests (Files): Likewise.
33285         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
33286         * modules/uniwidth/u32-width-tests (Files): Likewise.
33287         * modules/uniwidth/width-tests (Files): Likewise.
33288         * modules/unlink-tests (Files): Likewise.
33289         * modules/unsetenv-tests (Files): Likewise.
33290         * modules/usleep-tests (Files): Likewise.
33291         * modules/utimens-tests (Files): Likewise.
33292         * modules/utimensat-tests (Files): Likewise.
33293         * modules/vasnprintf-posix-tests (Files): Likewise.
33294         * modules/vasnprintf-tests (Files): Likewise.
33295         * modules/vasprintf-posix-tests (Files): Likewise.
33296         * modules/vasprintf-tests (Files): Likewise.
33297         * modules/vdprintf-posix-tests (Files): Likewise.
33298         * modules/vfprintf-posix-tests (Files): Likewise.
33299         * modules/vprintf-posix-tests (Files): Likewise.
33300         * modules/vsnprintf-posix-tests (Files): Likewise.
33301         * modules/vsnprintf-tests (Files): Likewise.
33302         * modules/vsprintf-posix-tests (Files): Likewise.
33303         * modules/wcrtomb-tests (Files): Likewise.
33304         * modules/wcsnrtombs-tests (Files): Likewise.
33305         * modules/wcsrtombs-tests (Files): Likewise.
33306         * modules/wctype-tests (Files): Likewise.
33307         * modules/wcwidth-tests (Files): Likewise.
33308         * modules/xmemdup0-tests (Files): Likewise.
33309         * modules/xprintf-posix-tests (Files): Likewise.
33310         * modules/xvasprintf-tests (Files): Likewise.
33311
33312 2009-12-24  Eric Blake  <ebb9@byu.net>
33313
33314         test-nanosleep: fix typo
33315         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
33316         patch.
33317         Reported by Bruno Haible.
33318
33319 2009-12-24  Bruno Haible  <bruno@clisp.org>
33320
33321         Reduce namespace pollution on glibc systems.
33322         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
33323         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
33324         systems.
33325         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
33326         <getopt.h> on glibc systems.
33327         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
33328         systems.
33329         * lib/fcntl.c: Include <unistd.h> here instead.
33330
33331 2009-12-24  Bruno Haible  <bruno@clisp.org>
33332
33333         * lib/stdlib.in.h (includes): Fix typo in today's commit.
33334
33335 2009-12-24  Eric Blake  <ebb9@byu.net>
33336
33337         tests: add signature checks
33338         * tests/signature.h (SIGNATURE_CHECK): New file.
33339         * modules/atexit-tests (Files): Use it.
33340         * modules/btowc-tests (Files): Likewise.
33341         * modules/canonicalize-lgpl-tests (Files): Likewise.
33342         * modules/ceilf-tests (Files): Likewise.
33343         * modules/ceill-tests (Files): Likewise.
33344         * modules/chown-tests (Files): Likewise.
33345         * modules/dprintf-posix-tests (Files): Likewise.
33346         * modules/dup2-tests (Files): Likewise.
33347         * modules/dup3-tests (Files): Likewise.
33348         * modules/duplocale-tests (Files): Likewise.
33349         * modules/fchdir-tests (Files): Likewise.
33350         * modules/fcntl-tests (Files): Likewise.
33351         * modules/fdopendir-tests (Files): Likewise.
33352         * modules/fflush-tests (Files): Likewise.
33353         * modules/flock-tests (Files): Likewise.
33354         * modules/floorf-tests (Files): Likewise.
33355         * modules/floorl-tests (Files): Likewise.
33356         * modules/fnmatch-tests (Files): Likewise.
33357         * modules/fopen-tests (Files): Likewise.
33358         * modules/fprintf-posix-tests (Files): Likewise.
33359         * modules/freopen-tests (Files): Likewise.
33360         * modules/frexp-nolibm-tests (Files): Likewise.
33361         * modules/frexp-tests (Files): Likewise.
33362         * modules/frexpl-nolibm-tests (Files): Likewise.
33363         * modules/frexpl-tests (Files): Likewise.
33364         * modules/fseek-tests (Files): Likewise.
33365         * modules/fseeko-tests (Files): Likewise.
33366         * modules/fsync-tests (Files): Likewise.
33367         * modules/ftell-tests (Files): Likewise.
33368         * modules/ftello-tests (Files): Likewise.
33369         * modules/futimens-tests (Files): Likewise.
33370         * modules/getaddrinfo-tests (Files): Likewise.
33371         * modules/getcwd-tests (Files): Likewise.
33372         * modules/getdelim-tests (Files): Likewise.
33373         * modules/getdtablesize-tests (Files): Likewise.
33374         * modules/getgroups-tests (Files): Likewise.
33375         * modules/gethostname-tests (Files): Likewise.
33376         * modules/getline-tests (Files): Likewise.
33377         * modules/getopt-posix-tests (Files): Likewise.
33378         * modules/gettimeofday-tests (Files): Likewise.
33379         * modules/glob-tests (Files): Likewise.
33380         * modules/iconv-tests (Files): Likewise.
33381         * modules/inet_ntop-tests (Files): Likewise.
33382         * modules/inet_pton-tests (Files): Likewise.
33383         * modules/isblank-tests (Files): Likewise.
33384         * modules/lchown-tests (Files): Likewise.
33385         * modules/ldexpl-tests (Files): Likewise.
33386         * modules/link-tests (Files): Likewise.
33387         * modules/linkat-tests (Files): Likewise.
33388         * modules/lseek-tests (Files): Likewise.
33389         * modules/lstat-tests (Files): Likewise.
33390         * modules/mbrtowc-tests (Files): Likewise.
33391         * modules/mbsinit-tests (Files): Likewise.
33392         * modules/mbsnrtowcs-tests (Files): Likewise.
33393         * modules/mbsrtowcs-tests (Files): Likewise.
33394         * modules/memchr-tests (Files): Likewise.
33395         * modules/memcmp-tests (Files): Likewise.
33396         * modules/memmem-tests (Files): Likewise.
33397         * modules/memrchr-tests (Files): Likewise.
33398         * modules/mkdir-tests (Files): Likewise.
33399         * modules/mkfifo-tests (Files): Likewise.
33400         * modules/mkfifoat-tests (Files): Likewise.
33401         * modules/mknod-tests (Files): Likewise.
33402         * modules/nanosleep-tests (Files): Likewise.
33403         * modules/nl_langinfo-tests (Files): Likewise.
33404         * modules/obstack-printf-tests (Files): Likewise.
33405         * modules/open-tests (Files): Likewise.
33406         * modules/openat-tests (Files): Likewise.
33407         * modules/perror-tests (Files): Likewise.
33408         * modules/pipe2-tests (Files): Likewise.
33409         * modules/poll-tests (Files): Likewise.
33410         * modules/popen-tests (Files): Likewise.
33411         * modules/posix_spawn-tests (Files): Likewise.
33412         * modules/posix_spawnp-tests (Files): Likewise.
33413         * modules/pread-tests (Files): Likewise.
33414         * modules/printf-posix-tests (Files): Likewise.
33415         * modules/pty-tests (Files): Likewise.
33416         * modules/random_r-tests (Files): Likewise.
33417         * modules/rawmemchr-tests (Files): Likewise.
33418         * modules/readlink-tests (Files): Likewise.
33419         * modules/remove-tests (Files): Likewise.
33420         * modules/rename-tests (Files): Likewise.
33421         * modules/renameat-tests (Files): Likewise.
33422         * modules/rmdir-tests (Files): Likewise.
33423         * modules/round-tests (Files): Likewise.
33424         * modules/roundf-tests (Files): Likewise.
33425         * modules/roundl-tests (Files): Likewise.
33426         * modules/select-tests (Files): Likewise.
33427         * modules/setenv-tests (Files): Likewise.
33428         * modules/sigaction-tests (Files): Likewise.
33429         * modules/sleep-tests (Files): Likewise.
33430         * modules/snprintf-posix-tests (Files): Likewise.
33431         * modules/snprintf-tests (Files): Likewise.
33432         * modules/sprintf-posix-tests (Files): Likewise.
33433         * modules/stat-tests (Files): Likewise.
33434         * modules/strcasestr-tests (Files): Likewise.
33435         * modules/strchrnul-tests (Files): Likewise.
33436         * modules/strerror-tests (Files): Likewise.
33437         * modules/strsignal-tests (Files): Likewise.
33438         * modules/strstr-tests (Files): Likewise.
33439         * modules/strtod-tests (Files): Likewise.
33440         * modules/strverscmp-tests (Files): Likewise.
33441         * modules/symlink-tests (Files): Likewise.
33442         * modules/symlinkat-tests (Files): Likewise.
33443         * modules/times-tests (Files): Likewise.
33444         * modules/trunc-tests (Files): Likewise.
33445         * modules/truncf-tests (Files): Likewise.
33446         * modules/truncl-tests (Files): Likewise.
33447         * modules/tsearch-tests (Files): Likewise.
33448         * modules/uname-tests (Files): Likewise.
33449         * modules/unlink-tests (Files): Likewise.
33450         * modules/unsetenv-tests (Files): Likewise.
33451         * modules/usleep-tests (Files): Likewise.
33452         * modules/utimensat-tests (Files): Likewise.
33453         * modules/vasprintf-tests (Files): Likewise.
33454         * modules/vdprintf-posix-tests (Files): Likewise.
33455         * modules/vfprintf-posix-tests (Files): Likewise.
33456         * modules/vprintf-posix-tests (Files): Likewise.
33457         * modules/vsnprintf-posix-tests (Files): Likewise.
33458         * modules/vsnprintf-tests (Files): Likewise.
33459         * modules/vsprintf-posix-tests (Files): Likewise.
33460         * modules/wcrtomb-tests (Files): Likewise.
33461         * modules/wcsnrtombs-tests (Files): Likewise.
33462         * modules/wcsrtombs-tests (Files): Likewise.
33463         * modules/wcwidth-tests (Files): Likewise.
33464         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
33465         * tests/test-isinf.c (isinf): Likewise.
33466         * tests/test-isnan.c (isnan): Likewise.
33467         * tests/test-signbit.c (signbit): Likewise.
33468         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
33469         declaration, either as macro or with correct signature.
33470         (select): Ensure function under test is declared with correct
33471         signature in correct header.
33472         * tests/test-atexit.c (atexit): Likewise.
33473         * tests/test-btowc.c (btowc): Likewise.
33474         * tests/test-canonicalize-lgpl.c (realpath)
33475         (canonicalize_file_name): Likewise.
33476         * tests/test-ceilf1.c (ceilf): Likewise.
33477         * tests/test-ceill.c (ceill): Likewise.
33478         * tests/test-chown.c (chown): Likewise.
33479         * tests/test-dprintf-posix.c (dprintf): Likewise.
33480         * tests/test-dup2.c (dup2): Likewise.
33481         * tests/test-dup3.c (dup3): Likewise.
33482         * tests/test-duplocale.c (duplocale): Likewise.
33483         * tests/test-fchdir.c (fchdir): Likewise.
33484         * tests/test-fchownat.c (fchownat): Likewise.
33485         * tests/test-fcntl.c (fcntl): Likewise.
33486         * tests/test-fdopendir.c (fdopendir): Likewise.
33487         * tests/test-fflush.c (fflush): Likewise.
33488         * tests/test-flock.c (flock): Likewise.
33489         * tests/test-floorf1.c (floorf): Likewise.
33490         * tests/test-floorl.c (floorl): Likewise.
33491         * tests/test-fnmatch.c (fnmatch): Likewise.
33492         * tests/test-fopen.c (fopen): Likewise.
33493         * tests/test-fprintf-posix.c (fprintf): Likewise.
33494         * tests/test-freopen.c (freopen): Likewise.
33495         * tests/test-frexp.c (frexp): Likewise.
33496         * tests/test-frexpl.c (frexpl): Likewise.
33497         * tests/test-fseek.c (fseek): Likewise.
33498         * tests/test-fseeko.c (fseeko): Likewise.
33499         * tests/test-fstatat.c (fstatat): Likewise.
33500         * tests/test-fsync.c (fsync): Likewise.
33501         * tests/test-ftell.c (ftell): Likewise.
33502         * tests/test-ftello.c (ftello): Likewise.
33503         * tests/test-futimens.c (futimens): Likewise.
33504         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
33505         (gai_strerror): Likewise.
33506         * tests/test-getcwd.c (getcwd): Likewise.
33507         * tests/test-getdelim.c (getdelim): Likewise.
33508         * tests/test-getdtablesize.c (getdtablesize): Likewise.
33509         * tests/test-getgroups.c (getgroups): Likewise.
33510         * tests/test-gethostname.c (gethostname): Likewise.
33511         * tests/test-getline.c (getline): Likewise.
33512         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
33513         Likewise.
33514         * tests/test-gettimeofday.c (gettimeofday): Likewise.
33515         * tests/test-glob.c (glob, globfree): Likewise.
33516         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
33517         * tests/test-inet_ntop.c (inet_ntop): Likewise.
33518         * tests/test-inet_pton.c (inet_pton): Likewise.
33519         * tests/test-isblank.c (isblank): Likewise.
33520         * tests/test-lchown.c (lchown): Likewise.
33521         * tests/test-ldexpl.c (ldexpl): Likewise.
33522         * tests/test-link.c (link): Likewise.
33523         * tests/test-linkat.c (linkat): Likewise.
33524         * tests/test-lseek.c (lseek): Likewise.
33525         * tests/test-lstat.c (lstat): Likewise.
33526         * tests/test-mbrtowc.c (mbrtowc): Likewise.
33527         * tests/test-mbsinit.c (mbsinit): Likewise.
33528         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
33529         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
33530         * tests/test-memchr.c (memchr): Likewise.
33531         * tests/test-memcmp.c (memcmp): Likewise.
33532         * tests/test-memmem.c (memmem): Likewise.
33533         * tests/test-memrchr.c (memrchr): Likewise.
33534         * tests/test-mkdir.c (mkdir): Likewise.
33535         * tests/test-mkdirat.c (mkdirat): Likewise.
33536         * tests/test-mkfifo.c (mkfifo): Likewise.
33537         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
33538         * tests/test-mknod.c (mknod): Likewise.
33539         * tests/test-nanosleep.c (nanosleep): Likewise.
33540         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
33541         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
33542         Likewise.
33543         * tests/test-open.c (open): Likewise.
33544         * tests/test-openat.c (openat): Likewise.
33545         * tests/test-perror.c (perror): Likewise.
33546         * tests/test-pipe2.c (pipe2): Likewise.
33547         * tests/test-poll.c (poll): Likewise.
33548         * tests/test-popen.c (popen, pclose): Likewise.
33549         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
33550         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
33551         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
33552         (posix_spawn_file_actions_destroy)
33553         (posix_spawn_file_actions_addclose)
33554         (posix_spawn_file_actions_addopen)
33555         (posix_spawn_file_actions_adddup2): Likewise.
33556         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
33557         * tests/test-pread.c (pread): Likewise.
33558         * tests/test-printf-posix.c (printf): Likewise.
33559         * tests/test-pty.c (openpty, forkpty): Likewise.
33560         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
33561         (random_r): Likewise.
33562         * tests/test-rawmemchr.c (rawmemchr): Likewise.
33563         * tests/test-readlink.c (readlink): Likewise.
33564         * tests/test-remove.c (remove): Likewise.
33565         * tests/test-rename.c (rename): Likewise.
33566         * tests/test-renameat.c (renameat): Likewise.
33567         * tests/test-rmdir.c (rmdir): Likewise.
33568         * tests/test-round1.c (round): Likewise.
33569         * tests/test-roundf1.c (roundf): Likewise.
33570         * tests/test-roundl.c (roundl): Likewise.
33571         * tests/test-setenv.c (setenv): Likewise.
33572         * tests/test-sigaction.c (sigaction): Likewise.
33573         * tests/test-sleep.c (sleep): Likewise.
33574         * tests/test-snprintf.c (snprintf): Likewise.
33575         * tests/test-sprintf-posix.c (sprintf): Likewise.
33576         * tests/test-stat.c (stat): Likewise.
33577         * tests/test-stpncpy.c (stpncpy): Likewise.
33578         * tests/test-strcasestr.c (strcasestr): Likewise.
33579         * tests/test-strchrnul.c (strchrnul): Likewise.
33580         * tests/test-strerror.c (strerror): Likewise.
33581         * tests/test-strsignal.c (strsignal): Likewise.
33582         * tests/test-strstr.c (strstr): Likewise.
33583         * tests/test-strtod.c (strtod): Likewise.
33584         * tests/test-strverscmp.c (strverscmp): Likewise.
33585         * tests/test-symlink.c (symlink): Likewise.
33586         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
33587         * tests/test-times.c (times): Likewise.
33588         * tests/test-trunc1.c (trunc): Likewise.
33589         * tests/test-truncf1.c (truncf): Likewise.
33590         * tests/test-truncl.c (truncl): Likewise.
33591         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
33592         Likewise.
33593         * tests/test-uname.c (uname): Likewise.
33594         * tests/test-unlink.c (unlink): Likewise.
33595         * tests/test-unlinkat.c (unlinkat): Likewise.
33596         * tests/test-unsetenv.c (unsetenv): Likewise.
33597         * tests/test-usleep.c (usleep): Likewise.
33598         * tests/test-utimensat.c (utimensat): Likewise.
33599         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
33600         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
33601         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
33602         * tests/test-vprintf-posix.c (vprintf): Likewise.
33603         * tests/test-vsnprintf.c (vsnprintf): Likewise.
33604         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
33605         * tests/test-wcrtomb.c (wcrtomb): Likewise.
33606         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
33607         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
33608         * tests/test-wcwidth.c (wcwidth): Likewise.
33609
33610         build: pull in conditional headers during GNULIB_POSIXCHECK
33611         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
33612         definitions from any conditionally-included headers.
33613         * lib/stdlib.in.h (includes): Likewise.
33614         * lib/unistd.in.h (includes): Likewise.
33615
33616 2009-12-24  Bruno Haible  <bruno@clisp.org>
33617
33618         * tests/test-argv-iter.c: Include header file being tested immediately
33619         after config.h.
33620         * tests/test-base64.c: Likewise.
33621         * tests/test-flock.c: Likewise.
33622         * tests/test-fsync.c: Likewise.
33623         * tests/test-getdate.c: Likewise.
33624         * tests/test-getndelim2.c: Likewise.
33625         * tests/test-isfinite.c: Likewise.
33626         * tests/test-isinf.c: Likewise.
33627         * tests/test-strerror.c: Likewise.
33628         * tests/test-strsignal.c: Likewise.
33629
33630 2009-12-23  Eric Blake  <ebb9@byu.net>
33631
33632         unistd: work around cygwin bug
33633         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
33634         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
33635         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33636
33637 2009-12-23  Bruno Haible  <bruno@clisp.org>
33638
33639         localename: More tests.
33640         * tests/test-localename.c (SIZEOF): New macro.
33641         (categories): New variable.
33642         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
33643         test_locale_name_default): Add test w.r.t. thread locale.
33644         (test_locale_name_thread): New function.
33645         (main): Invoke it.
33646
33647         localename: Make aware of thread locale.
33648         * lib/localename.h (gl_locale_name_thread): New declaration.
33649         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
33650         behaviour with respect to thread locale.
33651         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
33652         <langinfo.h>, glthread/lock.h.
33653         (SIZE_BITS): New macro.
33654         (string_hash): New function.
33655         (struct hash_node): New type.
33656         (HASH_TABLE_SIZE): New macro.
33657         (struniq_hash_table, struniq_lock): New variables.
33658         (struniq): New function.
33659         (gl_locale_name_thread): New function.
33660         (gl_locale_name): Invoke it.
33661         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
33662         * modules/localename (Depends-on): Add lock.
33663         Reported by Mike Gran <spk121@yahoo.com>.
33664
33665 2009-12-23  Eric Blake  <ebb9@byu.net>
33666
33667         va-args: new module
33668         * modules/va-args: New file.
33669         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
33670         * MODULES.html.sh (Core language properties): Mention it.
33671
33672         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
33673         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
33674         named alias for __attribute__((__unused__)).
33675         * lib/chown.c: Update client.
33676         * lib/fchmodat.c: Likewise.
33677         * lib/fts.c: Likewise.
33678         * lib/getdate.y: Likewise.
33679         * lib/getgroups.c: Likewise.
33680         * lib/getopt.c: Likewise.
33681         * lib/getugroups.c: Likewise.
33682         * lib/mkdir.c: Likewise.
33683         * lib/mkfifo.c: Likewise.
33684         * lib/mkfifoat.c: Likewise.
33685         * lib/mknod.c: Likewise.
33686         * lib/mknodat.c: Likewise.
33687         * lib/readlink.c: Likewise.
33688         * lib/se-context.in.h: Likewise.
33689         * lib/se-selinux.in.h: Likewise.
33690         * lib/sockets.c: Likewise.
33691         * lib/symlink.c: Likewise.
33692         * lib/symlinkat.c: Likewise.
33693         * lib/unicodeio.c: Likewise.
33694         * lib/unistr.h: Likewise.
33695         * tests/test-areadlink.c: Likewise.
33696         * tests/test-areadlinkat.c: Likewise.
33697         * tests/test-filenamecat.c: Likewise.
33698         * tests/test-fseeko.c: Likewise.
33699         * tests/test-ftello.c: Likewise.
33700         * tests/test-getdate.c: Likewise.
33701         * tests/test-getgroups.c: Likewise.
33702         * tests/test-gethostname.c: Likewise.
33703         * tests/test-quotearg.c: Likewise.
33704         * tests/test-version-etc.c: Likewise.
33705         * tests/test-xalloc-die.c: Likewise.
33706         * tests/test-xfprintf-posix.c: Likewise.
33707         * tests/test-xprintf-posix.c: Likewise.
33708         * tests/test-xvasprintf.c: Likewise.
33709
33710         tests: avoid compiler warnings
33711         * tests/test-fcntl.c (main): Delete unused parameters.
33712         * tests/test-freopen-safer.c (main): Likewise.
33713         * tests/test-xalloc-die.c (main): Mark unused parameters.
33714         * tests/test-fseeko.c (main): Likewise.
33715         * tests/test-ftello.c (main): Likewise.
33716         * tests/test-nanosleep.c (main): Avoid declaration warning.
33717         * tests/test-sleep.c (main): Likewise.
33718         * tests/test-unsetenv.c (main): Silence warning about string
33719         literal.
33720         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
33721
33722 2009-12-23  Bruno Haible  <bruno@clisp.org>
33723
33724         * tests/test-localename.c (test_locale_name): New function, extracted
33725         from main. Also test mixed situations.
33726         (test_locale_name_posix, test_locale_name_environ,
33727         test_locale_name_default): New functions.
33728         (main): Invoke them all.
33729         * modules/localename-tests (configure.ac): Test for newlocale.
33730
33731 2009-12-23  Bruno Haible  <bruno@clisp.org>
33732
33733         unistd: Ensure getcwd gets declared before being overridden.
33734         * lib/unistd.in.h: Conditionally include <io.h>.
33735
33736 2009-12-22  Bruno Haible  <bruno@clisp.org>
33737
33738         wchar: Diagnose broken combination of glibc and gcc versions and flags.
33739         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
33740         (gl_WCHAR_H): Invoke it.
33741         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
33742         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
33743         Reported by Karl Berry <karl@freefriends.org>.
33744
33745 2009-12-22  Eric Blake  <ebb9@byu.net>
33746
33747         math, unistd: avoid redundant includes
33748         * lib/math.in.h (isnan): No need to re-include <math.h>.
33749         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
33750
33751         getsubopt: work around cygwin bug
33752         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
33753         avoid conflicting with system getsubopt.
33754         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
33755         bug.
33756
33757         getopt: synchronize from glibc
33758         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
33759         parameter order.  Adjust all callers.
33760         (_getopt_internal_r, main): Adjust quoting in error messages.
33761         Drop considerations for outdated POSIX 1003.2 error message.
33762         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
33763         callers.
33764         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
33765
33766         test-getopt: test stderr behavior
33767         * modules/getopt-posix-tests (Depends-on): Add dup2.
33768         * tests/test-getopt.c (ASSERT): Avoid stderr.
33769         (main): Move stderr to a temporary file.
33770         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
33771         Instead, add parameter to inform caller if output occurred.
33772         (test_getopt): Adjust all existing tests to expect silence, and
33773         add new tests of leading ":".
33774         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33775         glibc shortcomings with leading "-:" or "+:" in optstring.
33776         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33777         Likewise.
33778         * doc/posix-functions/getopt.texi (getopt): Likewise.
33779
33780         test-getopt: enhance test
33781         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
33782         supports optind=0.
33783         * tests/test-getopt.c (OPTIND_MIN): Move...
33784         * tests/test-getopt.h (OPTIND_MIN): ...here.
33785         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
33786         Require that optind=0 works, since modern BSD supports it in
33787         addition to optreset, and since coreutils expects it.
33788         (test_getopt_long_only): New test.
33789         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33790         glibc shortcomings with 'W;', and enforcement of optind=0.
33791         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33792         Likewise.
33793
33794 2009-12-21  Bruno Haible  <bruno@clisp.org>
33795
33796         localename: Improvements for MacOS X and Cygwin.
33797         * lib/localename.h (gl_locale_name_environ): New declaration.
33798         * lib/localename.c (gl_locale_name_environ): New function, extracted from
33799         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
33800         (gl_locale_name_posix): Invoke it.
33801         (gl_locale_name_default): Add comments. Use Windows native API also on
33802         Cygwin.
33803
33804 2009-12-21  Bruno Haible  <bruno@clisp.org>
33805
33806         Update list of Win32 locale ids.
33807         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
33808         (LANG_SAMI): Renamed from LANG_SAAMI.
33809         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
33810         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
33811         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
33812         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
33813         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
33814         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
33815         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
33816         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
33817         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
33818         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
33819         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
33820         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
33821         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
33822         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
33823         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
33824         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
33825         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
33826         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
33827         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
33828         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
33829         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
33830         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
33831         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
33832         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
33833         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
33834         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
33835         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
33836         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
33837         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
33838         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
33839         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
33840         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
33841         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
33842         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
33843         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
33844         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
33845         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
33846         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
33847         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
33848         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
33849         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
33850         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
33851         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
33852         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
33853         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
33854         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
33855         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
33856         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
33857         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
33858         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
33859         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
33860         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
33861         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
33862         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
33863         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
33864         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
33865         Add more languages and countries for Sami, Sorbian. Add more countries
33866         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
33867         for Pashto. Change country for Syriac, Tswana.
33868
33869 2009-12-21  Eric Blake  <ebb9@byu.net>
33870
33871         test-utimens: avoid spurious failure
33872         * tests/test-chown.h (nap): Factor...
33873         * tests/nap.h: ...into new file.
33874         * tests/test-lchown.h (nap): Avoid duplication.
33875         * tests/test-utimens-common.h (nap): Use shared implementation,
33876         necessary on file systems with 1-second resolution.
33877         * modules/chown-tests (Files): Include new file.
33878         * modules/fdutimensat-tests (Files): Likewise.
33879         * modules/futimens-tests (Files): Likewise.
33880         * modules/lchown-tests (Files): Likewise.
33881         * modules/openat-tests (Files): Likewise.
33882         * modules/utimens-tests (Files): Likewise.
33883         * modules/utimensat-tests (Files): Likewise.
33884
33885 2009-12-19  Eric Blake  <ebb9@byu.net>
33886
33887         futimens, utimensat: work around Linux bug
33888         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
33889         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33890         * lib/utimensat.c (rpl_utimensat): Work around it.
33891         * lib/futimens.c (rpl_futimens): Adjust comment.
33892
33893         utimens: work around Linux ctime bug
33894         * lib/utimens.c (detect_ctime_bug): New helper function.
33895         (update_timespec): Differentiate between workaround needed for
33896         this bug vs. what is needed for systems that lack utimensat.
33897         (fdutimens, lutimens): Work around bug.
33898
33899         utimens: check for ctime update
33900         * tests/test-utimens-common.h (check_ctime): Define.
33901         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
33902         * tests/test-futimens.h (test_futimens): Likewise.
33903         * tests/test-lutimens.h (test_lutimens): Likewise.
33904         * doc/posix-functions/futimens.texi (futimens): Document the bug.
33905         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33906
33907 2009-12-19  Bruno Haible  <bruno@clisp.org>
33908
33909         dprintf-posix: Check against memory leak fixed on 2009-12-15.
33910         * tests/test-dprintf-posix2.sh: New file.
33911         * tests/test-dprintf-posix2.c: New file.
33912         * modules/dprintf-posix-tests (Files): Add them.
33913         (configure.ac): Check for getrlimit and setrlimit.
33914         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33915
33916 2009-12-19  Bruno Haible  <bruno@clisp.org>
33917
33918         fprintf-posix: Check against memory leak fixed on 2009-12-15.
33919         * tests/test-fprintf-posix3.sh: New file.
33920         * tests/test-fprintf-posix3.c: New file.
33921         * modules/fprintf-posix-tests (Files): Add them.
33922         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33923
33924 2009-12-19  Eric Blake  <ebb9@byu.net>
33925
33926         dirfd: fix prototype
33927         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
33928         * lib/dirfd.c (dirfd): Likewise.
33929
33930         canonicalize: reduce memory usage
33931         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
33932         allocation to size.
33933         Reported by Solar Designer <solar@openwall.com>.
33934
33935 2009-12-19  Bruno Haible  <bruno@clisp.org>
33936
33937         New module attribute 'Applicability'.
33938         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
33939         * gnulib-tool: New option --extract-applicability.
33940         (func_usage): Document it.
33941         (sed_extract_prog): Recognize it.
33942         (func_get_applicability): New function.
33943         (func_import): Generalize handling of 'link-warning' module.
33944         * modules/link-warning (Applicability): New section.
33945         * modules/arg-nonnull (Applicability): New section.
33946         Repoted by Simon Josefsson <simon@josefsson.org>.
33947
33948 2009-12-19  Bruno Haible  <bruno@clisp.org>
33949
33950         fflush: tweak
33951         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
33952         * lib/fseeko.c (rpl_fseeko): Likewise.
33953
33954 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
33955
33956         * lib/gl_list.h: Fix typo in comment.
33957
33958 2009-12-16  Eric Blake  <ebb9@byu.net>
33959
33960         fcntl: use to simplify other modules
33961         * modules/cloexec (Depends-on): Add fcntl.
33962         * modules/fchdir (Depends-on): Likewise.
33963         * modules/fd-safer-flag (Depends-on): Likewise.
33964         * modules/unistd-safer (Depends-on): Likewise.
33965         * modules/dup3 (configure.ac): Set module indicator.
33966         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
33967         missing.
33968         * lib/fchdir.c (_gl_register_dup): Fix comment.
33969         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
33970         * lib/dup-safer.c (dup_safer): Likewise.
33971         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
33972         * lib/dup3.c (dup3): Likewise.
33973         * tests/test-fchdir.c (main): Enhance test.
33974         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
33975
33976         fcntl: port portions of fcntl to mingw
33977         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
33978         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
33979         replacement for mingw.
33980         * modules/fcntl (Description): Update.
33981         (Depends-on): Add dup2.
33982         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
33983         * modules/fcntl-h (Makefile.am): Substitute it.
33984         * lib/fcntl.in.h (fcntl): Update declaration.
33985         (F_DUPFD, F_GETFD): New macros, when needed.
33986         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33987         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
33988         * tests/test-fcntl.c (check_flags, main): Enhance test for items
33989         we now guarantee.
33990
33991         fcntl: work around cygwin bug in F_DUPFD
33992         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
33993         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
33994         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
33995         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
33996         * doc/posix-functions/fcntl.texi (fcntl): Document it.
33997
33998         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
33999         * modules/fcntl (Files): List new files.
34000         (configure.ac): Run a test.
34001         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
34002         * lib/fcntl.c (rpl_fcntl): Likewise.
34003         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
34004         (gl_FCNTL_H): Always replace fcntl.h.
34005         * modules/fcntl-h (Makefile.am): Substitute witnesses.
34006         * lib/fcntl.in.h (fcntl): Declare replacement.
34007         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
34008         needed, plus a witness.
34009         * doc/posix-functions/fcntl.texi (fcntl): Document this.
34010         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34011         * tests/test-fcntl.c: New file.
34012         * modules/fcntl-tests: Likewise.
34013
34014         binary-io: avoid potential compilation warning
34015         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
34016         directives.
34017
34018         fflush: avoid compilation error on NetBSD
34019         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
34020         between off_t and fpos_t, since the latter is sometimes a struct.
34021         * lib/fseeko.c (rpl_fseeko): Likewise.
34022         Reported by Alexander Nasonov <alnsn@yandex.ru>.
34023
34024 2009-12-15  Eric Blake  <ebb9@byu.net>
34025
34026         fcntl-h, stdio, sys_ioctl: fix declarations
34027         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
34028         function must not take arguments.
34029         * lib/sys_ioctl.in.h (ioctl): Likewise.
34030         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
34031         (open): Add a link warning.
34032
34033 2009-12-15  Jim Meyering  <meyering@redhat.com>
34034
34035         areadlink, areadlink-with-size: relax license to LGPLv2+
34036         * modules/areadlink (License): Relax to LGPLv2+.
34037         * modules/areadlink-with-size (License): Likewise.
34038
34039 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
34040             Bruno Haible  <bruno@clisp.org>
34041
34042         *printf: Fix memory leak.
34043         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
34044         * lib/vfprintf.c (vfprintf): Likewise.
34045         * lib/dprintf.c (dprintf): Likewise.
34046         * lib/vdprintf.c (vdprintf): Likewise.
34047
34048 2009-12-14  Eric Blake  <ebb9@byu.net>
34049
34050         accept4: adjust module dependencies
34051         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
34052
34053         utimens: one more try at avoiding compiler warning
34054         * lib/utimens.c (lutimens): Lower scope of result.
34055
34056 2009-12-13  Bruno Haible  <bruno@clisp.org>
34057
34058         Move the malloc checking from module 'list' to new module 'xlist'.
34059         * modules/xlist: New file.
34060         * lib/gl_xlist.h: New file.
34061         * lib/gl_xlist.c: New file.
34062         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
34063         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
34064         gl_list_add_last, gl_list_add_before, gl_list_add_after,
34065         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
34066         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
34067         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
34068         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
34069         gl_sortedlist_nx_add): New declarations.
34070         (struct gl_list_implementation): Rename and change methods accordingly.
34071         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
34072         (gl_list_nx_create): Renamed from gl_list_create.
34073         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34074         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34075         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34076         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34077         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34078         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34079         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34080         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34081         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
34082         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_array_list.c: Don't include xalloc.h.
34093         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
34094         NULL upon out-of-memory.
34095         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
34096         out-of-memory.
34097         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
34098         Change return type to 'int'.
34099         (gl_array_nx_set_at): Renamed from gl_array_set_at.
34100         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34101         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
34102         upon out-of-memory.
34103         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
34104         upon out-of-memory.
34105         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
34106         upon out-of-memory.
34107         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
34108         upon out-of-memory.
34109         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
34110         out-of-memory.
34111         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
34112         Update.
34113         (gl_array_list_implementation): Update.
34114         * lib/gl_carray_list.c: Don't include xalloc.h.
34115         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
34116         Return NULL upon out-of-memory.
34117         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
34118         out-of-memory.
34119         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
34120         Change return type to 'int'.
34121         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
34122         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34123         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
34124         upon out-of-memory.
34125         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
34126         upon out-of-memory.
34127         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
34128         out-of-memory.
34129         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
34130         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
34131         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
34132         Update.
34133         (gl_carray_list_implementation): Update.
34134         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
34135         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
34136         gl_linked_create_empty. Return NULL upon out-of-memory.
34137         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
34138         out-of-memory.
34139         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
34140         Change return type to 'int'. Return -1 upon out-of-memory.
34141         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
34142         out-of-memory.
34143         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
34144         upon out-of-memory.
34145         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
34146         upon out-of-memory.
34147         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
34148         NULL upon out-of-memory.
34149         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
34150         upon out-of-memory.
34151         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
34152         out-of-memory.
34153         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
34154         Update.
34155         * lib/gl_linked_list.c: Don't include xalloc.h.
34156         (gl_linked_list_implementation): Update.
34157         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
34158         (add_to_bucket): Change return type to 'int'.
34159         (gl_linkedhash_list_implementation): Update.
34160         * lib/gl_anytree_list1.h (free_subtree): New function.
34161         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
34162         gl_tree_create_empty. Return NULL upon out-of-memory.
34163         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
34164         Change return type to 'int'. Return -1 upon out-of-memory.
34165         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
34166         out-of-memory.
34167         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
34168         (gl_tree_remove_node): New function, moved here from
34169         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
34170         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
34171         Update.
34172         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
34173         malloc, not xmalloc. Return NULL upon out-of-memory.
34174         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34175         out-of-memory.
34176         (gl_tree_remove_node_from_tree): New function, extracted from
34177         gl_tree_remove_node.
34178         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34179         upon out-of-memory.
34180         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34181         out-of-memory.
34182         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34183         upon out-of-memory.
34184         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34185         upon out-of-memory.
34186         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34187         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
34188         not xmalloc. Return NULL upon out-of-memory.
34189         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34190         out-of-memory.
34191         (gl_tree_remove_node_from_tree): New function, extracted from
34192         gl_tree_remove_node.
34193         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34194         upon out-of-memory.
34195         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34196         out-of-memory.
34197         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34198         upon out-of-memory.
34199         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34200         upon out-of-memory.
34201         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34202         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
34203         gl_anytree_list1.h before gl_anyavltree_list2.h.
34204         (gl_avltree_list_implementation): Update.
34205         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
34206         gl_anytree_list1.h before gl_anyavltree_list2.h.
34207         (gl_rbtree_list_implementation): Update.
34208         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
34209         Change return type to 'int'. Return -1 upon out-of-memory. Use
34210         __builtin_expect.
34211         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
34212         (gl_avltreehash_list_implementation): Update.
34213         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
34214         (gl_rbtreehash_list_implementation): Update.
34215         * modules/array-list (Depends-on): Remove xalloc.
34216         * modules/carray-list (Depends-on): Likewise.
34217         * modules/linked-list (Depends-on): Likewise.
34218         * modules/linkedhash-list (Depends-on): Likewise.
34219         * modules/avltree-list (Depends-on): Likewise.
34220         * modules/rbtree-list (Depends-on): Likewise.
34221         * modules/avltreehash-list (Depends-on): Likewise.
34222         * modules/rbtreehash-list (Depends-on): Likewise.
34223
34224         * modules/xsublist: New file.
34225         * lib/gl_xsublist.h: New file.
34226         * lib/gl_xsublist.c: New file.
34227         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
34228         (gl_sublist_nx_create): New declaration.
34229         * lib/gl_sublist.c: Don't include xalloc.h.
34230         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
34231         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
34232         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
34233         Change return type to 'int'. Return -1 upon out-of-memory.
34234         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
34235         upon out-of-memory.
34236         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
34237         NULL upon out-of-memory.
34238         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
34239         upon out-of-memory.
34240         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
34241         NULL upon out-of-memory.
34242         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
34243         NULL upon out-of-memory.
34244         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
34245         upon out-of-memory.
34246         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
34247         (gl_sublist_list_implementation): Update.
34248         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
34249         upon out-of-memory.
34250         * modules/sublist (Depends-on): Remove xalloc.
34251
34252         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
34253         * tests/test-carray_list.c: Likewise.
34254         * tests/test-linked_list.c: Likewise.
34255         * tests/test-linkedhash_list.c: Likewise.
34256         * tests/test-avltree_list.c: Likewise.
34257         * tests/test-rbtree_list.c: Likewise.
34258         * tests/test-avltreehash_list.c: Likewise.
34259         * tests/test-rbtreehash_list.c: Likewise.
34260         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
34261         * modules/carray-list-tests (Makefile.am): Likewise.
34262         * modules/linked-list-tests (Makefile.am): Likewise.
34263         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34264         * modules/avltree-list-tests (Makefile.am): Likewise.
34265         * modules/rbtree-list-tests (Makefile.am): Likewise.
34266         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34267         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34268
34269         * NEWS: Mention the changes.
34270
34271         * lib/clean-temp.c: Include gl_xlist.h.
34272         * modules/clean-temp (Depends-on): Add xlist.
34273
34274         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
34275         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
34276
34277         * tests/test-array_oset.c: Include gl_xlist.h.
34278         * modules/array-oset-tests (Depends-on): Add xlist.
34279
34280         Reported by José E. Marchesi <jemarch@gnu.org>.
34281
34282 2009-12-13  Bruno Haible  <bruno@clisp.org>
34283
34284         Move the malloc checking from module 'oset' to new module 'xoset'.
34285         * modules/xoset: New file.
34286         * lib/gl_xoset.h: New file.
34287         * lib/gl_xoset.c: New file.
34288         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
34289         declarations.
34290         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
34291         (struct gl_oset_implementation): Rename and change methods accordingly.
34292         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
34293         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34294         'int'. Mark as __warn_unused_result__.
34295         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
34296         gl_oset_create_empty.
34297         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34298         'int'.
34299         * lib/gl_array_oset.c: Don't include xalloc.h.
34300         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
34301         malloc, not xmalloc.
34302         (grow): Change return type to 'int'. Don't call xalloc_die.
34303         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
34304         to 'int'.
34305         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
34306         'int'.
34307         (gl_array_oset_implementation): Update.
34308         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
34309         gl_tree_create_empty.
34310         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
34311         'int'.
34312         * lib/gl_avltree_oset.c: Don't include xalloc.h.
34313         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34314         xmalloc.
34315         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34316         not xmalloc.
34317         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34318         xmalloc.
34319         (gl_avltree_oset_implementation): Update.
34320         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
34321         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34322         xmalloc.
34323         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34324         not xmalloc.
34325         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34326         xmalloc.
34327         (gl_rbtree_oset_implementation): Update.
34328         * modules/array-oset (Depends-on): Remove xalloc.
34329         * modules/avltree-oset (Depends-on): Likewise.
34330         * modules/rbtree-oset (Depends-on): Likewise.
34331         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
34332         * tests/test-avltree_oset.c: Likewise.
34333         * tests/test-rbtree_oset.c: Likewise.
34334         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
34335         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
34336         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34337         * NEWS: Mention the change.
34338
34339 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
34340
34341         maint.mk: allow a project to override release-prep commands
34342         * top/maint.mk (alpha, beta, stable): Move release-preparatory
34343         commands into a new rule.
34344         (release-prep): New rule.
34345         (release-prep-hook): New overridable variable.
34346
34347 2009-12-13  Bruno Haible  <bruno@clisp.org>
34348
34349         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
34350
34351 2009-12-13  Jim Meyering  <meyering@redhat.com>
34352
34353         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
34354         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
34355
34356 2009-12-12  Bruno Haible  <bruno@clisp.org>
34357
34358         duplocale: Tweak.
34359         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
34360
34361 2009-12-12  Karl Berry  <karl@gnu.org>
34362
34363         * config/srclist.txt (strtoll.c): tab changes, no more sync.
34364
34365 2009-12-12  Bruno Haible  <bruno@clisp.org>
34366
34367         * m4/po.m4: Undo incorrect untabification.
34368
34369 2009-12-12  Bruno Haible  <bruno@clisp.org>
34370
34371         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
34372         * modules/c-strtod (Depends-on): Add locale.
34373         * modules/c-strtold (Depends-on): Likewise.
34374
34375 2009-12-12  Bruno Haible  <bruno@clisp.org>
34376
34377         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
34378
34379 2009-12-11  Eric Blake  <ebb9@byu.net>
34380
34381         setenv: relax requirement in light of POSIX ruling
34382         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
34383         not NULL.
34384         * tests/test-setenv.c (main): Relax test.
34385         * tests/test-unsetenv.c (main): Likewise.
34386         * doc/posix-functions/setenv.texi (setenv): Document this.
34387         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34388
34389 2009-12-11  Bruno Haible  <bruno@clisp.org>
34390
34391         New module 'fd-safer-flag'.
34392         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
34393         * lib/dup-safer.c (dup_safer_flag): Remove function.
34394         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
34395         * lib/fd-safer.c (fd_safer_flag): Remove function.
34396         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
34397         * modules/cloexec (configure.ac): Drop indicator macro.
34398         * modules/fd-safer-flag: New file.
34399         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
34400         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
34401         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
34402
34403 2009-12-11  Bruno Haible  <bruno@clisp.org>
34404
34405         Tests for module 'nl_langinfo'.
34406         * modules/nl_langinfo-tests: New file.
34407         * tests/test-nl_langinfo.sh: New file.
34408         * tests/test-nl_langinfo.c: New file.
34409
34410         New module 'nl_langinfo'.
34411         * lib/nl_langinfo.c: New file.
34412         * m4/nl_langinfo.m4: New file.
34413         * modules/nl_langinfo: New file.
34414         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
34415
34416 2009-12-11  Bruno Haible  <bruno@clisp.org>
34417
34418         Tests for module 'langinfo'.
34419         * modules/langinfo-tests: New file.
34420         * tests/test-langinfo.c: New file.
34421
34422         New module 'langinfo'.
34423         * lib/langinfo.in.h: New file.
34424         * m4/langinfo_h.m4: New file.
34425         * modules/langinfo: New file.
34426         * doc/posix-headers/langinfo.texi: Mention the new module.
34427
34428 2009-12-11  Bruno Haible  <bruno@clisp.org>
34429
34430         * lib/config.charset: Untabify.
34431
34432 2009-12-11  Bruno Haible  <bruno@clisp.org>
34433
34434         * modules/unistd-safer (configure.ac): Drop indicator macro.
34435
34436 2009-12-11  Bruno Haible  <bruno@clisp.org>
34437
34438         Move pipe2-safer code to its own file.
34439         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
34440         * lib/pipe-safer.c (pipe2_safer): Remove function.
34441         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
34442         (Makefile.am): Add it to lib_SOURCES.
34443
34444 2009-12-10  Bruno Haible  <bruno@clisp.org>
34445
34446         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
34447
34448 2009-12-10  Bruno Haible  <bruno@clisp.org>
34449
34450         Declare which arguments expect non-NULL values, for GCC and clang.
34451         * build-aux/arg-nonnull.h: New file.
34452         * modules/arg-nonnull: New file.
34453         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
34454         (inet_ntop, inet_pton): Use it.
34455         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
34456         (closedir, dirfd, opendir, scandir, alphasort): Use it.
34457         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
34458         (open, openat): Use it.
34459         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
34460         (fnmatch): Use it.
34461         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
34462         (getopt, getopt_long, getopt_long_only): Use it.
34463         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
34464         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
34465         Use it.
34466         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
34467         (iconv_open): Use it.
34468         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
34469         (strtoimax, strtoumax): Use it.
34470         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
34471         (duplocale): Use it.
34472         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
34473         (frexp, frexpl): Use it.
34474         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
34475         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
34476         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
34477         (tsearch, tfind, tdelete, twalk): Use it.
34478         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
34479         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34480         sigpending): Use it.
34481         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
34482         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34483         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34484         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34485         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34486         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34487         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34488         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34489         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34490         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34491         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34492         Use it.
34493         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
34494         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
34495         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
34496         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
34497         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
34498         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
34499         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
34500         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
34501         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
34502         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
34503         strtoull, unsetenv): Use it.
34504         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
34505         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34506         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34507         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
34508         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
34509         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
34510         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
34511         (strcasecmp, strncasecmp): Use it.
34512         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
34513         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
34514         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
34515         rpl_setsockopt): Use it.
34516         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
34517         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
34518         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
34519         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
34520         (gettimeofday): Use it.
34521         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
34522         (times): Use it.
34523         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
34524         (uname): Use it.
34525         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
34526         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
34527         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
34528         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
34529         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
34530         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
34531         unlinkat, write): Use it.
34532         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
34533         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
34534         * lib/argv-iter.h: Include arg-nonnull.h.
34535         (_ATTRIBUTE_NONNULL_): Remove macro.
34536         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
34537         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
34538         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
34539         optimization.
34540         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
34541         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
34542         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
34543         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
34544         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
34545         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
34546         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
34547         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
34548         * modules/arpa_inet (Depends-on): Add arg-nonnull.
34549         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
34550         * modules/dirent (Depends-on): Add arg-nonnull.
34551         (Makefile.am): Insert arg-nonnull.h into dirent.h.
34552         * modules/fcntl-h (Depends-on): Add arg-nonnull.
34553         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
34554         * modules/fnmatch (Depends-on): Add arg-nonnull.
34555         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
34556         * modules/getopt-posix (Depends-on): Add arg-nonnull.
34557         (Makefile.am): Insert arg-nonnull.h into getopt.h.
34558         * modules/glob (Depends-on): Add arg-nonnull.
34559         (Makefile.am): Insert arg-nonnull.h into glob.h.
34560         * modules/iconv_open (Depends-on): Add arg-nonnull.
34561         (Makefile.am): Insert arg-nonnull.h into iconv.h.
34562         * modules/inttypes (Depends-on): Add arg-nonnull.
34563         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
34564         * modules/locale (Depends-on): Add arg-nonnull.
34565         (Makefile.am): Insert arg-nonnull.h into locale.h.
34566         * modules/math (Depends-on): Add arg-nonnull.
34567         (Makefile.am): Insert arg-nonnull.h into math.h.
34568         * modules/netdb (Depends-on): Add arg-nonnull.
34569         (Makefile.am): Insert arg-nonnull.h into netdb.h.
34570         * modules/search (Depends-on): Add arg-nonnull.
34571         (Makefile.am): Insert arg-nonnull.h into search.h.
34572         * modules/signal (Depends-on): Add arg-nonnull.
34573         (Makefile.am): Insert arg-nonnull.h into signal.h.
34574         * modules/spawn (Depends-on): Add arg-nonnull.
34575         (Makefile.am): Insert arg-nonnull.h into spawn.h.
34576         * modules/stdio (Depends-on): Add arg-nonnull.
34577         (Makefile.am): Insert arg-nonnull.h into stdio.h.
34578         * modules/stdlib (Depends-on): Add arg-nonnull.
34579         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
34580         * modules/string (Depends-on): Add arg-nonnull.
34581         (Makefile.am): Insert arg-nonnull.h into string.h.
34582         * modules/strings (Depends-on): Add arg-nonnull.
34583         (Makefile.am): Insert arg-nonnull.h into strings.h.
34584         * modules/sys_socket (Depends-on): Add arg-nonnull.
34585         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
34586         * modules/sys_stat (Depends-on): Add arg-nonnull.
34587         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
34588         * modules/sys_time (Depends-on): Add arg-nonnull.
34589         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
34590         * modules/sys_times (Depends-on): Add arg-nonnull.
34591         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
34592         * modules/sys_utsname (Depends-on): Add arg-nonnull.
34593         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
34594         * modules/time (Depends-on): Add arg-nonnull.
34595         (Makefile.am): Insert arg-nonnull.h into time.h.
34596         * modules/unistd (Depends-on): Add arg-nonnull.
34597         (Makefile.am): Insert arg-nonnull.h into unistd.h.
34598         * modules/wchar (Depends-on): Add arg-nonnull.
34599         (Makefile.am): Insert arg-nonnull.h into wchar.h.
34600         * modules/argv-iter (Depends-on): Add arg-nonnull.
34601         * tests/test-canonicalize.c (null_ptr): New function.
34602         (main): Use it.
34603         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
34604         (main): Use it.
34605         * tests/test-memmem.c (null_ptr): New function.
34606         (main): Use it.
34607         Reported by Jim Meyering.
34608
34609 2009-12-10  Bruno Haible  <bruno@clisp.org>
34610
34611         Use spaces for indentation, not tabs.
34612         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
34613         * m4/*.m4: Untabify.
34614         * build-aux/*.h: Untabify.
34615         * tests/**/*.[hc]: Untabify.
34616         * README: New section "Indent with spaces, not TABs", based on
34617         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
34618         * NEWS: Mention the change.
34619
34620 2009-12-10  Bruno Haible  <bruno@clisp.org>
34621
34622         pty test: Fix link error.
34623         * modules/pty-tests (Makefile.am): Add the default LDADD value to
34624         test_pty_LDADD.
34625
34626 2009-12-07  Simon Josefsson  <simon@josefsson.org>
34627
34628         * modules/pty: New file.
34629         * modules/pty-tests: New file.
34630         * m4/pty.m4: New file.
34631         * tests/test-pty.c: New file.
34632         * doc/glibc-headers/pty.texi: Modified.
34633         * doc/glibc-functions/forkpty.texi: Modified.
34634         * doc/glibc-functions/openpty.texi: Modified.
34635
34636 2009-12-10  Bruno Haible  <bruno@clisp.org>
34637
34638         Avoid syntax error in C++ mode.
34639         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
34640
34641 2009-12-10  Bruno Haible  <bruno@clisp.org>
34642
34643         Use sed with option -e.
34644         * gnulib-tool (func_version, func_emit_copyright_notice,
34645         func_emit_initmacro_end, func_import, func_create_testdir): Pass
34646         option -e to sed.
34647         * modules/link-warning (Makefile.am): Likewise.
34648
34649 2009-12-10  Jim Meyering  <meyering@redhat.com>
34650
34651         mgetgroups: do not write bytes beyond end of malloc'd buffer
34652         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
34653         username, we call getgroups with a one-element-shorter buffer,
34654         but still told it the length was original, max_n_groups.
34655
34656 2009-12-09  Eric Blake  <ebb9@byu.net>
34657
34658         cloexec: relax license
34659         * modules/cloexec (Maintainer): Add myself.
34660         (License): Use LGPL, not GPL.
34661
34662         link-warning: optimize generation
34663         * modules/link-warning (Makefile.am): Reduce process usage.
34664
34665 2009-12-09  Bruno Haible  <bruno@clisp.org>
34666
34667         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
34668         workaround was added on 2009-11-17.
34669
34670 2009-12-09  Jim Meyering  <meyering@redhat.com>
34671             Bruno Haible  <bruno@clisp.org>
34672
34673         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
34674         * modules/link-warning (Makefile.am): Make the comment-removing sed
34675         command more robust in the face of bootstrap-prepended comment lines.
34676
34677 2009-12-09  Bruno Haible  <bruno@clisp.org>
34678
34679         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
34680         most one group.
34681
34682 2009-12-09  Simon Josefsson <simon@josefsson.org>
34683             Bruno Haible  <bruno@clisp.org>
34684
34685         * build-aux/link-warning.h: Add copyright notice.
34686         * modules/link-warning (Makefile.am): Generate link-warning.h from
34687         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
34688         * NEWS: Mention change in link-warning module.
34689         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
34690         * modules/dirent (Makefile.am): Add dependency to dirent.h.
34691         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
34692         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
34693         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
34694         * modules/math (Makefile.am): Add dependency to math.h.
34695         * modules/search (Makefile.am): Add dependency to search.h.
34696         * modules/signal (Makefile.am): Add dependency to signal.h.
34697         * modules/spawn (Makefile.am): Add dependency to spawn.h.
34698         * modules/stdio (Makefile.am): Add dependency to stdio.h.
34699         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
34700         * modules/string (Makefile.am): Add dependency to string.h.
34701         * modules/strings (Makefile.am): Add dependency to strings.h.
34702         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
34703         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
34704         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
34705         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
34706         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
34707         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
34708         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
34709         * modules/unistd (Makefile.am): Add dependency to unistd.h.
34710         * modules/wchar (Makefile.am): Add dependency to wchar.h.
34711
34712 2009-12-09  Bruno Haible  <bruno@clisp.org>
34713
34714         fchdir: Optimize away rpl_fstat when possible.
34715         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
34716         REPLACE_OPEN_DIRECTORY.
34717         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
34718
34719 2009-12-09  Bruno Haible  <bruno@clisp.org>
34720
34721         * lib/fchdir.c: Update comment.
34722
34723 2009-12-09  Bruno Haible  <bruno@clisp.org>
34724
34725         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
34726
34727 2009-12-08  Eric Blake  <ebb9@byu.net>
34728
34729         fchdir: avoid memory leak on re-registration.
34730         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
34731
34732 2009-12-08  Jim Meyering  <meyering@redhat.com>
34733
34734         init.sh: avoid Solaris 10 /bin/sh portability problem
34735         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
34736         sourced script:
34737           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
34738           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
34739           bar
34740         tests/init.sh relied on that, accepting a --set-path=DIR argument,
34741         and two tests used that idiom.
34742         * tests/init.sh: Update suggested usage comments.
34743         (path_prepend_): New function, to be used in place
34744         of the --src-path=DIR option.
34745         (setup_): Move PATH-prepending code into path_prepend_.
34746         * tests/test-pread.sh: Adapt to new usage.
34747         * tests/test-xalloc-die.sh: Likewise.
34748
34749 2009-12-08  Simon Josefsson  <simon@josefsson.org>
34750
34751         * doc/gnulib.texi (Glibc pty.h): Add.
34752         * doc/glibc-functions/forkpty.texi: Add.
34753         * doc/glibc-functions/openpty.texi: Add.
34754         Suggested by Bruno Haible.
34755
34756 2009-12-08  Eric Blake  <ebb9@byu.net>
34757
34758         fchdir: fix logic bugs
34759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
34760         * tests/test-fchdir.c (main): Enhance test.
34761         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
34762         is in use.
34763
34764         dup2: fix logic bugs
34765         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
34766         REPLACE_DUP2 to decide when rpl_dup2 is needed.
34767         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
34768         exists.
34769         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
34770
34771 2009-12-07  Eric Blake  <ebb9@byu.net>
34772
34773         unlink: fix m4 detection
34774         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
34775
34776         unistd-safer: add unit test
34777         * modules/unistd-safer-tests: New file.
34778         * tests/test-dup-safer.c: Likewise.
34779         * tests/test-cloexec.c (setmode): Avoid compiler warning.
34780         * tests/test-dup2.c (setmode): Likewise.
34781         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
34782
34783         cloexec: preserve text vs. binary across dup_cloexec
34784         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
34785         mode.
34786         * modules/dup2-tests (Depends-on): Add binary-io.
34787         * modules/cloexec-tests (Depends-on): Likewise.
34788         * tests/test-dup2.c (setmode, is_mode): New helpers.
34789         (main): Add tests that translation mode is preserved.
34790         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
34791         Reported by Bruno Haible.
34792
34793         mgetgroups: reduce duplicate listings
34794         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
34795         resulting array.
34796         * tests/test-chown.h (test_chown): Simplify client.
34797         * tests/test-lchown.h (test_lchown): Likewise.
34798
34799 2009-12-06  Bruno Haible  <bruno@clisp.org>
34800
34801         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
34802         value.
34803
34804 2009-12-06  Bruno Haible  <bruno@clisp.org>
34805
34806         * lib/progname.c: Include stdio.h, stdlib.h.
34807         (set_program_name): Reject a NULL argument.
34808
34809 2009-12-05  Eric Blake  <ebb9@byu.net>
34810
34811         pipe2-safer: new module
34812         * modules/pipe2-safer: New file.
34813         * lib/unistd-safer.h (pipe2_safer): New prototype.
34814         * lib/unistd--.h (pipe2): New wrapper.
34815         * lib/pipe-safer.c (pipe2_safer): New function.
34816         * modules/pipe (Depends-on): Add pipe2-safer.
34817         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
34818
34819         stdlib-safer: preserve cloexec flag for mkostemp[s]
34820         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
34821         fd_safer_flag.
34822
34823         unistd-safer: allow preservation of cloexec status via flag
34824         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
34825         prototypes.
34826         * lib/dup-safer.c (dup_safer_flag): New function.
34827         * lib/fd-safer.c (fd_safer_flag): Likewise.
34828         * modules/cloexec (configure.ac): Set witness.
34829
34830         test-dup2: enhance test
34831         * modules/dup2-tests (Depends-on): Add cloexec.
34832         * tests/test-dup2.c (main): Enhance test.
34833
34834         cloexec: add dup_cloexec
34835         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
34836         header and comments.
34837         * lib/cloexec.c (set_cloexec_flag): Add comments.
34838         (dup_cloexec): New function, with mingw implementation borrowed
34839         from...
34840         * lib/w32spawn.h (dup_noinherit): ...here.
34841         * modules/execute (Depends-on): Add cloexec.
34842         * modules/pipe (Depends-on): Likewise.
34843         * modules/cloexec (Depends-on): Add dup2.
34844         * modules/cloexec-tests (Files): New file.
34845         * tests/test-cloexec.c: Likewise.
34846
34847         test-xalloc-die: fix test for mingw
34848         * modules/xalloc-die-tests (Files): Add tests/init.sh.
34849         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
34850         directory and .exe suffix off argv[0] output.
34851
34852         test-fseeko: fix test for mingw
34853         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
34854         than undefining fseek, so test will pass on mingw.
34855
34856 2009-12-05  Bruno Haible  <bruno@clisp.org>
34857
34858         * lib/progname.h (set_program_name): Clarify specification.
34859         * lib/progname.c (set_program_name): Likewise.
34860         Reported by Jim Meyering.
34861
34862 2009-12-05  Jim Meyering  <meyering@redhat.com>
34863
34864         maint.mk: backslash-escape parens in default regexp
34865         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
34866         backslash-escape the literal parentheses.
34867
34868         maint.mk: news-date-check: use grep -E
34869         * top/maint.mk (today): Define a Make variable, not a...
34870         (news-date-check): ...shell variable.
34871         (news-date-regexp): Use the Make variable.
34872         Use grep's -E option.  Change the failing diagnostic to mention
34873         the variable, $(news-date-regexp).
34874
34875 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
34876
34877         maintainer-makefile: allow customization of NEWS entry format
34878         * top/maint.mk (news-date-regexp): New overridable variable.
34879         (news-date-check): Use it.
34880
34881 2009-12-04  Eric Blake  <ebb9@byu.net>
34882
34883         mgetgroups: add xgetgroups, and avoid ENOSYS failures
34884         * lib/mgetgroups.h (xgetgroups): New prototype.
34885         * lib/mgetgroups.c (xgetgroups): New wrapper.
34886         (mgetgroups): Handle ENOSYS.
34887         * modules/mgetgroups (Depends-on): Add realloc.
34888         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
34889
34890         mgetgroups: avoid argument promotion issues with -1
34891         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
34892         for invalid gid_t.
34893         * tests/test-chown.h (getegid, test_chown): Likewise.
34894         * tests/test-lchown.h (getegid, test_lchown): Likewise.
34895
34896 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
34897
34898         exclude: Fix header file problems.
34899         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
34900
34901 2009-12-01  Jim Meyering  <meyering@redhat.com>
34902
34903         fts: fts_open: do not let an empty string cause immediate failure
34904         This is required in support of GNU rm, for which the command
34905         "rm A '' B" must process and remove both A and B, in spite of
34906         the empty string argument.
34907         * lib/fts.c (fts_open): Do not let the presence of an empty string
34908         cause fts_open to fail immediately.  Most fts-using tools must be
34909         able to process all arguments, in order, and can be expected to
34910         diagnose such arguments themselves.
34911
34912 2009-11-30  Eric Blake  <ebb9@byu.net>
34913
34914         utimens: fix compilation error
34915         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
34916         Declare variable at right scope.
34917
34918 2009-11-29  Jim Meyering  <meyering@redhat.com>
34919
34920         bootstrap: handle perl-5.11's changed --version output
34921         * build-aux/bootstrap (get_version): Handle perl separately,
34922         since perl-5.11's --version output is different.
34923
34924 2009-11-28  Jim Meyering  <meyering@redhat.com>
34925
34926         userspec: depend on the inttostr module, too
34927         * modules/userspec (Depends-on): Add inttostr.
34928
34929         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
34930         * lib/userspec.c (parse_with_separator): Do not accept a user ID
34931         number of MAXUID when it evaluates to (uid_t) -1.
34932         Likewise for group ID.  Reported by Matt McCutchen in
34933         <http://savannah.gnu.org/bugs/?28113>
34934
34935         userspec: reformat to use spaces, not TABs
34936         * lib/userspec.c: Expand TABs to spaces.
34937         Add Emacs' "indent-tabs-mode: nil" hint.
34938
34939 2009-11-27  Eric Blake  <ebb9@byu.net>
34940
34941         getopt-gnu: flush out another BSD bug
34942         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
34943         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
34944         flush out BSD bug.
34945         * tests/test-getopt.h (test_getopt): End lists with NULL.
34946         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34947         (test_getopt_long_posix): Enhance test.
34948         * modules/getopt-posix-tests (Depends-on): Add stdbool.
34949         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
34950         getopt-gnu.
34951         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34952         Likewise.
34953
34954 2009-11-27  Simon Josefsson  <simon@josefsson.org>
34955
34956         * modules/idpriv-droptemp-tests (Notice): Fix text.
34957
34958 2009-11-27  Jim Meyering  <meyering@redhat.com>
34959
34960         test-xalloc-die: avoid spurious failure due to libtool argv difference
34961         In a libtool-enabled project, this test would fail due to a difference
34962         in the emitted program name, e.g.,
34963         -test-xalloc-die: memory exhausted
34964         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
34965         Use program to avoid that.
34966         * modules/xalloc-die-tests (Depends-on): Add progname.
34967         * tests/test-xalloc-die.c: Include progname.h".
34968         (program_name): Remove decl.
34969         (main): Call set_program_name.
34970         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
34971
34972 2009-11-26  Richard Jones  <rjones@redhat.com>
34973
34974         w32sock: leave win32 error in place.
34975         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
34976
34977 2009-11-26  Eric Blake  <ebb9@byu.net>
34978
34979         init.sh: suggest to use skip_ and fail_ functions in comments
34980         * tests/init.sh: Add a sentence.
34981
34982 2009-11-25  Bruno Haible  <bruno@clisp.org>
34983
34984         init.sh: add documentation in comments
34985         * tests/init.sh: Add some developer and user documentation.
34986
34987 2009-11-26  Jim Meyering  <meyering@redhat.com>
34988
34989         init.sh: accommodate even those who specify bogus srcdir manually
34990         * tests/init.sh: Normally, srcdir is guaranteed by automake and
34991         configure-time tests to be sanitized, so that there is no need to
34992         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
34993         (with no double quotes) suffices.  However, since tests may be
34994         invoked manually, and since you may explicitly set srcdir to the
34995         name of a directory containing spaces, do quote its uses here.
34996         * tests/test-pread.sh: Likewise.
34997         Suggested by Bruno Haible.
34998
34999         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
35000         * tests/test-pread.sh: Write no data into the pipe, because
35001         test-pread actually reads none.  This avoids a diagnostic,
35002         "bash: echo: write error: Broken pipe", that arises in the unusual
35003         event something is ignoring SIGPIPE, and might be interpreted
35004         as some sort of failure.  Reported by Bruno Haible.
35005
35006 2009-11-25  Jim Meyering  <meyering@redhat.com>
35007
35008         test-pread: cover failure with ESPIPE and EINVAL
35009         * tests/test-pread.c (main): Test for failure, too.
35010         * tests/test-pread.sh: Invoke with stdin on a pipe.
35011         Suggested by Eric Blake.
35012
35013         pread: improvement and fix
35014         * modules/pread (Depends-on): Depend on lseek, for portability to
35015         e.g., mingw.  Suggested by Eric Blake.
35016         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
35017
35018         unistd.in.h: correct declaration of pread
35019         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
35020         Reported by Richard W.M. Jones.
35021
35022         test-pread.sh: distribute the test script
35023         * modules/pread-tests (Files): Include test-pread.sh.
35024
35025         test-pread.sh: clean up
35026         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
35027         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
35028         That is unnecessary, since it's always ".".
35029         Suggestion from Eric Blake.
35030
35031         test-pread.sh: make executable
35032         * tests/test-pread.sh: Set executable bit.
35033         Reported by Eric Blake.
35034
35035         correct typo in test-pread.sh
35036         * tests/test-pread.sh: Add #! line.
35037
35038         test pread
35039         * tests/test-pread.c: New file.
35040         * tests/test-pread.sh: Likewise.
35041         * modules/pread-tests: Likewise.
35042
35043         pread: new module
35044         * modules/pread: New file.
35045         * lib/unistd.in.h (pread): Define/declare.
35046         * lib/pread.c (pread): New file.
35047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
35048         * modules/unistd (Makefile.am): Substitute witnesses.
35049         * doc/posix-functions/pread.texi (pread): Update.
35050         * MODULES.html.sh: Add pread.
35051
35052 2009-11-25  Jim Meyering  <meyering@redhat.com>
35053
35054         tests/init.sh: new file to be used via most *.sh tests
35055         * tests/init.sh: New file.
35056
35057 2009-11-25  Eric Blake  <ebb9@byu.net>
35058
35059         utimens: work around older Linux failure with symlinks
35060         * lib/utimens.c (lutimensat_works_really): New variable.
35061         (fdutimens, lutimens): Use it to manage kernels that support
35062         nanosecond times on files, but not on symlinks.
35063         Reported by OndÅ™ej Vašík.
35064
35065         utimes: fix configure grammar
35066         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
35067
35068 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
35069
35070         regex: Fix fastmap for multibyte character ranges.
35071         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
35072         characters when a multibyte character range is included.
35073
35074 2009-11-22  Andy Wingo  <wingo@pobox.com>
35075
35076         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
35077         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
35078
35079 2009-11-24  Bruno Haible  <bruno@clisp.org>
35080
35081         doc: Most *_l functions exist in MacOS X 10.5.
35082         * doc/posix-functions/duplocale.texi: Update platforms list.
35083         * doc/posix-functions/freelocale.texi: Likewise.
35084         * doc/posix-functions/newlocale.texi: Likewise.
35085         * doc/posix-functions/uselocale.texi: Likewise.
35086         * doc/posix-functions/isalnum_l.texi: Likewise.
35087         * doc/posix-functions/isalpha_l.texi: Likewise.
35088         * doc/posix-functions/isblank_l.texi: Likewise.
35089         * doc/posix-functions/iscntrl_l.texi: Likewise.
35090         * doc/posix-functions/isdigit_l.texi: Likewise.
35091         * doc/posix-functions/isgraph_l.texi: Likewise.
35092         * doc/posix-functions/islower_l.texi: Likewise.
35093         * doc/posix-functions/isprint_l.texi: Likewise.
35094         * doc/posix-functions/ispunct_l.texi: Likewise.
35095         * doc/posix-functions/isspace_l.texi: Likewise.
35096         * doc/posix-functions/isupper_l.texi: Likewise.
35097         * doc/posix-functions/iswalnum_l.texi: Likewise.
35098         * doc/posix-functions/iswalpha_l.texi: Likewise.
35099         * doc/posix-functions/iswblank_l.texi: Likewise.
35100         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35101         * doc/posix-functions/iswctype_l.texi: Likewise.
35102         * doc/posix-functions/iswdigit_l.texi: Likewise.
35103         * doc/posix-functions/iswgraph_l.texi: Likewise.
35104         * doc/posix-functions/iswlower_l.texi: Likewise.
35105         * doc/posix-functions/iswprint_l.texi: Likewise.
35106         * doc/posix-functions/iswpunct_l.texi: Likewise.
35107         * doc/posix-functions/iswspace_l.texi: Likewise.
35108         * doc/posix-functions/iswupper_l.texi: Likewise.
35109         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35110         * doc/posix-functions/isxdigit_l.texi: Likewise.
35111         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
35112         * doc/posix-functions/strcasecmp_l.texi: Likewise.
35113         * doc/posix-functions/strcoll_l.texi: Likewise.
35114         * doc/posix-functions/strfmon_l.texi: Likewise.
35115         * doc/posix-functions/strftime_l.texi: Likewise.
35116         * doc/posix-functions/strncasecmp_l.texi: Likewise.
35117         * doc/posix-functions/strxfrm_l.texi: Likewise.
35118         * doc/posix-functions/tolower_l.texi: Likewise.
35119         * doc/posix-functions/toupper_l.texi: Likewise.
35120         * doc/posix-functions/towctrans_l.texi: Likewise.
35121         * doc/posix-functions/towlower_l.texi: Likewise.
35122         * doc/posix-functions/towupper_l.texi: Likewise.
35123         * doc/posix-functions/wcscoll_l.texi: Likewise.
35124         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35125         * doc/posix-functions/wctrans_l.texi: Likewise.
35126         * doc/posix-functions/wctype_l.texi: Likewise.
35127         * doc/glibc-functions/strptime_l.texi: Likewise.
35128         * doc/glibc-functions/strtod_l.texi: Likewise.
35129         * doc/glibc-functions/strtof_l.texi: Likewise.
35130         * doc/glibc-functions/strtol_l.texi: Likewise.
35131         * doc/glibc-functions/strtold_l.texi: Likewise.
35132         * doc/glibc-functions/strtoll_l.texi: Likewise.
35133         * doc/glibc-functions/strtoul_l.texi: Likewise.
35134         * doc/glibc-functions/strtoull_l.texi: Likewise.
35135         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35136         * doc/glibc-functions/wcstod_l.texi: Likewise.
35137         * doc/glibc-functions/wcstof_l.texi: Likewise.
35138         * doc/glibc-functions/wcstol_l.texi: Likewise.
35139         * doc/glibc-functions/wcstold_l.texi: Likewise.
35140         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35141         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35142         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35143
35144 2009-11-24  Bruno Haible  <bruno@clisp.org>
35145
35146         duplocale: Fix logic bug.
35147         * lib/duplocale.c: Don't include <langinfo.h>.
35148         (_NL_LOCALE_NAME): Remove macro.
35149         (rpl_duplocale): Use setlocale instead of nl_langinfo.
35150         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
35151
35152 2009-11-23  Jim Meyering  <meyering@redhat.com>
35153
35154         test-update-copyright: don't hard-code /usr/bin/perl
35155         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
35156         perl to print the current year.  Gilles Espinasse reported that
35157         the replaced use of perl was hard-coded as /usr/bin/perl.
35158
35159 2009-11-23  Bruno Haible  <bruno@clisp.org>
35160
35161         duplocale: Add support for glibc 2.3.x.
35162         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
35163
35164 2009-11-22  Bruno Haible  <bruno@clisp.org>
35165
35166         vasnprintf: Tiny optimization.
35167         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
35168         MacOS X.
35169
35170 2009-11-22  Bruno Haible  <bruno@clisp.org>
35171
35172         Tests for module 'duplocale'.
35173         * modules/duplocale-tests: New file.
35174         * tests/test-duplocale.c: New file.
35175
35176         New module 'duplocale'.
35177         * m4/duplocale.m4: New file.
35178         * lib/locale.in.h (duplocale): New declaration.
35179         * lib/duplocale.c: New file.
35180         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
35181         gl_LOCALE_H_DEFAULTS): New macros.
35182         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
35183         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
35184         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
35185         REPLACE_DUPLOCALE.
35186         * modules/duplocale: New file.
35187         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
35188
35189 2009-11-22  Bruno Haible  <bruno@clisp.org>
35190
35191         * modules/locale-tests (configure.ac): Test for newlocale function.
35192         * tests/test-locale.c: When the system has extended locale functions,
35193         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
35194
35195         locale: Make locale_t available when possible.
35196         * lib/locale.in.h: Include <xlocale.h> when it exists.
35197         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
35198         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
35199         * modules/locale (Depends-on): Add extensions.
35200         (Makefile.am): Also substitute HAVE_XLOCALE_H.
35201         * doc/posix-headers/locale.texi: Document the problem with locale_t.
35202
35203 2009-11-22  Bruno Haible  <bruno@clisp.org>
35204
35205         Add comments.
35206         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
35207         invocation.
35208         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
35209         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35210         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35211
35212 2009-11-22  Bruno Haible  <bruno@clisp.org>
35213
35214         error: account for the possibility of freopen (stdout).
35215         * lib/error.c: Include <unistd.h>.
35216         (flush_stdout): New function, extracted from error and error_at_line.
35217         Determine stdout's fd dynamically.
35218         (error, error_at_line): Invoke flush_stdout.
35219         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
35220         * modules/error (Depends-on): Add unistd.
35221
35222 2009-11-22  Bruno Haible  <bruno@clisp.org>
35223
35224         diffseq: Add comment.
35225         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
35226
35227 2009-11-22  Jim Meyering  <meyering@redhat.com>
35228
35229         c-stack: avoid defining an unused static function
35230         * lib/c-stack.c (find_stack_direction): Do not define this function
35231         when it will not be used.
35232
35233         diffseq: avoid spurious gcc warnings
35234         * lib/diffseq.h (IF_LINT2): Define.
35235         (compareseq): Use it to initialize two members of "part".
35236         This avoids two used-uninitialized warnings.
35237
35238 2009-11-21  Jim Meyering  <meyering@redhat.com>
35239
35240         c-stack: avoid "ignoring return value of `write'" warning
35241         * lib/c-stack.c: Include "ignore-value.h".
35242         (die): Explicitly ignore each write return value.
35243         * modules/c-stack (Depends-on): Add ignore-value.
35244
35245 2009-11-21  Bruno Haible  <bruno@clisp.org>
35246
35247         diffseq: reduce scope of variable 'best'.
35248         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
35249         variable, earlier used for two different purposes.
35250
35251 2009-11-21  Jim Meyering  <meyering@redhat.com>
35252
35253         diffseq: remove useless assignment to "best"
35254         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
35255         assignment.  At that point "best" is already guaranteed to be zero.
35256
35257 2009-11-20  Eric Blake  <ebb9@byu.net>
35258
35259         build: mention ftp redirector in release announcements
35260         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
35261         values that used to come from cfg.mk; mention FTP redirect URL.
35262         * build-aux/announce-gen: Mention the mirror list.
35263         Suggested by Karl Berry.
35264
35265         nanosleep: improve port to mingw
35266         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
35267         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
35268         LIB_NANOSLEEP, but only when needed.
35269         * modules/select (Link): Document LIBSOCKET.
35270         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
35271         enough.
35272
35273         nanosleep: work around cygwin bug
35274         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
35275         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
35276         bug.
35277         (getnow): Delete, not needed.
35278         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
35279         LIB_CLOCK_GETTIME.
35280         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
35281         clock-time, gettime.
35282         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
35283         bug.
35284         * modules/nanosleep-tests: New test.
35285         * tests/test-nanosleep.c: New file.
35286
35287         sleep: work around cygwin bug
35288         * lib/sleep.c (rpl_sleep): Work around the bug.
35289         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
35290         (gl_PREREQ_SLEEP): Delete unused macro.
35291         * modules/sleep (Depends-on): Add verify.
35292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35293         * modules/unistd (Makefile.am): Substitute witness.
35294         * lib/unistd.in.h (sleep): Update prototype.
35295         * doc/posix-functions/sleep.texi (sleep): Document the bug.
35296         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
35297         * modules/sleep-tests (Depends-on): Check for alarm.
35298
35299 2009-11-20  Jim Meyering  <meyering@redhat.com>
35300
35301         maint.mk: improve sc_prohibit_magic_number_exit
35302         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
35303         so it does not match uses like System.exit(1).
35304         Add comments showing how to correct all offenders.
35305
35306 2009-11-19  Eric Blake  <ebb9@byu.net>
35307
35308         xalloc-die-tests: add missing library
35309         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
35310
35311         test-xvasprintf: silence compiler warnings
35312         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
35313         empty string from gcc.
35314
35315 2009-11-19  Jim Meyering  <meyering@redhat.com>
35316
35317         xfreopen: new module, from coreutils
35318         * modules/xfreopen: New module.
35319         * lib/xfreopen.c: New file.
35320         * lib/xfreopen.h: New file.
35321         * MODULES.html.sh (File stream based Input/Output"): Add it.
35322
35323 2009-11-19  Eric Blake  <ebb9@byu.net>
35324
35325         manywarnings: depend on warnings
35326         * modules/manywarnings (Depends-on): Add warnings.
35327
35328         build: avoid compiler warnings
35329         * lib/select.c (rpl_select): Delete unused variable.
35330         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
35331
35332 2009-11-18  Eric Blake  <ebb9@byu.net>
35333
35334         tests: avoid false negative with --with-packager
35335         * tests/test-version-etc.sh: Discard packager information.
35336         * tests/test-argp-version-etc-1.sh: Likewise.
35337         Reported by Mike Frysinger.
35338
35339         utimens: fix regression on Solaris
35340         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
35341         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
35342         can only change fd timestamps via futimesat.  Instead, use an
35343         additional witness macro to avoid BSD bug.
35344         Reported by Jim Meyering.
35345
35346 2009-11-17  Eric Blake  <ebb9@byu.net>
35347
35348         usleep: use it to simplify tests
35349         * modules/stat-time-tests (Depends-on): Add usleep.
35350         (configure.ac): Drop usleep check.
35351         * modules/chown-tests (Depends-on, configure.ac): Likewise.
35352         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
35353         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
35354         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
35355         * modules/openat-tests (Depends-on, configure.ac): Likewise.
35356         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
35357         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
35358         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
35359         Likewise.
35360         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
35361         * tests/test-lchown.h (nap): Likewise.
35362         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
35363         * tests/test-stat-time.c (nap): Likewise.
35364         * tests/test-utimens-common.h (nap): Update comments.
35365
35366         usleep: new module
35367         * modules/usleep: New file.
35368         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
35369         * lib/usleep.c (usleep): Likewise.
35370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35371         * modules/unistd (Makefile.am): Substitute witnesses.
35372         * lib/unistd.in.h (usleep): Add declaration.
35373         * doc/pastposix-functions/usleep.texi (usleep): Document this.
35374         * MODULES.html.sh (Date and time): Likewise.
35375         * modules/usleep-tests (Depends-on): New test.
35376         * tests/test-usleep.c: New file.
35377
35378         chown: work around OpenBSD bug
35379         * lib/chown.c (rpl_chown): Work around the bug.
35380         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
35381         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
35382         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
35383         * modules/chown (Depends-on): Add stdbool.
35384         * modules/lchown (Depends-on): Likewise.
35385         * doc/posix-functions/chown.texi (chown): Document the bug.
35386         * doc/posix-functions/lchown.texi (lchown): Likewise.
35387         * tests/test-lchown.h (test_chown): Relax test.
35388
35389         mkstemp: avoid conflict with C++ keyword template
35390         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
35391         * lib/mkostemp.c (mkostemp): Likewise.
35392         * lib/mkostemps.c (mkostemps): Likewise.
35393         * lib/mkstemp.c (mkstemp): Likewise.
35394         * lib/mkstemps.c (mkstemps): Likewise.
35395
35396         xalloc-die-tests: optimize
35397         * tests/test-xalloc-die.sh: Reduce number of processes.
35398
35399 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35400
35401         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
35402         patch from ludo@gnu.org (Ludovic Courtès).
35403
35404 2009-11-17  Jim Meyering  <meyering@redhat.com>
35405
35406         version-etc: use proper license string
35407         * modules/version-etc (License): Use LGPL, not LGPLv3+.
35408         * modules/version-etc-fsf: Likewise.
35409
35410 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35411
35412         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
35413         printed to stdout.  Deal with EOL differences.
35414
35415 2009-11-17  Eric Blake  <ebb9@byu.net>
35416
35417         unsetenv: work around Solaris bug
35418         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
35419         * lib/unsetenv.c (rpl_unsetenv): Work around it.
35420         Reported by Jim Meyering.
35421
35422         vasnprintf: avoid compiler warnings
35423         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
35424         variables.
35425         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
35426
35427 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35428
35429         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
35430         settings since xalloc-die is no longer the self test,
35431         xalloc-die.sh is.
35432
35433 2009-11-17  Jim Meyering  <meyering@redhat.com>
35434
35435         test-xalloc-die.sh: make the code agree with the commit log
35436         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
35437         at the end, just in case you happen to have a test-xalloc-die
35438         program in some other PATH directory.
35439
35440         test-xalloc-die.sh: fix a portability bug
35441         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
35442         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
35443         Otherwise, argv[0] (as often seen in diagnostics) would be too
35444         system-dependent, sometimes with, and sometimes without the leading "./".
35445
35446         version-etc-fsf: relax license to LGPLv3+
35447         * modules/version-etc-fsf (License): Relax license.
35448
35449 2009-11-16  Eric Blake  <ebb9@byu.net>
35450
35451         xalloc-die-tests: avoid printing null pointer
35452         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
35453         shell script.
35454         * tests/test-xalloc-die.c (program_name): Declare.
35455         * tests/test-xalloc-die.sh (tmpfiles): New file.
35456
35457         setenv, unsetenv: work around various bugs
35458         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
35459         (setenv) [HAVE_SETENV]: Work around bugs.
35460         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
35461         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
35462         for bugs.
35463         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
35464         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
35465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
35466         * modules/stdlib (Makefile.am): Update substitutions.
35467         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
35468         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
35469         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35470         * modules/setenv-tests: New test.
35471         * modules/unsetenv-tests: Likewise.
35472         * tests/test-setenv.c: New file.
35473         * tests/test-unsetenv.c: Likewise.
35474
35475 2009-11-16  Jim Meyering  <meyering@redhat.com>
35476
35477         version-etc: relax license to LGPLv3+
35478         * modules/version-etc (License): Relax license.
35479
35480         better AC_REQUIRE expanded-before-required-warning avoidance
35481         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
35482         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
35483         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
35484         which is no longer needed.
35485
35486 2009-11-16  Eric Blake  <ebb9@byu.net>
35487
35488         test-freading: clean up temporary file
35489         * tests/test-freading.c (main): Remove file on success, and use
35490         ASSERT more liberally.
35491         Reported by Jim Meyering.
35492
35493 2009-11-16  Jim Meyering  <meyering@redhat.com>
35494
35495         avoid new AC_REQUIRE expanded-before-required warnings
35496         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
35497         merely using it.
35498         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
35499         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
35500
35501 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35502
35503         * tests/test-xalloc-die.c: New file.
35504         * modules/xalloc-die-tests: New file.
35505         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
35506         XFAIL_TESTS so it can be appended by modules.
35507
35508 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35509
35510         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
35511         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
35512
35513 2009-11-14  Eric Blake  <ebb9@byu.net>
35514
35515         fnmatch: avoid compiler warning
35516         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
35517         to silence compiler warning about mismatch signedness in ?:.
35518         Reported by Robert Millan.
35519
35520         intprops: add double-inclusion guard
35521         * lib/intprops.h: Allow idempotent includes.
35522         Suggested by Bruce Korb.
35523
35524         openat: detect Solaris fchownat bug
35525         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
35526         penalizing glibc chownat when only lchownat is broken.
35527         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
35528         trailing slash bugs.
35529         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
35530         * modules/openat-tests (Files): Include more files.
35531         (Depends-on): Add mgetgroups, sleep, stat-time.
35532         (configure.ac): Add additional checks.
35533         (Makefile.am): Build new test.
35534         * tests/test-fchownat.c: New file.
35535
35536         lchown: detect Solaris and FreeBSD bug
35537         * lib/lchown.c (rpl_lchown): Work around bug.
35538         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
35539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35540         * modules/unistd (Makefile.am): Populate it.
35541         * lib/unistd.in.h (lchown): Update declaration.
35542         * doc/posix-functions/lchown.texi (lchown): Document the bug.
35543         * modules/lchown-tests: New file.
35544         * tests/test-lchown.h (test_lchown): Likewise.
35545         * tests/test-lchown.c (main): Likewise.
35546
35547         chown: detect Solaris and FreeBSD bug
35548         * lib/chown.c (rpl_chown): Work around bug.
35549         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
35550         (gl_PREREQ_CHOWN): Delete.
35551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35552         * modules/unistd (Makefile.am): Populate it.
35553         * lib/unistd.in.h (chown): Update declaration.
35554         * lib/lchown.c (chown): Update client.
35555         * modules/lchown (Depends-on): Add lstat.
35556         * doc/posix-functions/chown.texi (chown): Document the bug.
35557         * doc/posix-functions/getgroups.texi (getgroups): Document
35558         getgroups pitfall.
35559         * modules/chown-tests: New file.
35560         * tests/test-chown.h (test_chown): Likewise.
35561         * tests/test-chown.c (main): Likewise.
35562
35563 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
35564
35565         gnulib-tool: correctly detect absence of m4 directories
35566         * gnulib-tool: Avoid extra newline on data passed to wc -l.
35567
35568 2009-11-14  Jim Meyering  <meyering@redhat.com>
35569
35570         maint.mk: Prohibit inclusion of "xalloc.h" without use.
35571         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35572
35573 2009-11-14  John W. Eaton  <jwe@gnu.org>
35574
35575         strftime.h: wrap funtion declaration in extern "C" block
35576         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
35577
35578 2009-11-13  Eric Blake  <ebb9@byu.net>
35579
35580         getgroups: avoid compiler warning
35581         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
35582
35583         getgroups: work around FreeBSD bug
35584         * lib/getgroups.c (rpl_getgroups): Work around the bug.
35585         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
35586         * doc/posix-functions/getgroups.texi (getgroups): Document it.
35587         * tests/test-getgroups.c (main): Fix buffer overrun.
35588
35589         getgroups: avoid compilation failure
35590         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
35591         * modules/getgroups (Depends-on): Add stdint.
35592
35593 2009-11-13  Jim Meyering  <meyering@redhat.com>
35594
35595         test-getgroups: avoid compilation failure
35596         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
35597
35598 2009-11-13  Eric Blake  <ebb9@byu.net>
35599
35600         mgetgroups: new module, taken from coreutils
35601         * modules/mgetgroups: New file.
35602         * lib/mgetgroups.h: Likewise.
35603         * lib/mgetgroups.c (mgetgroups): Likewise.
35604         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
35605         * MODULES.html.sh (Users and groups): Mention it.
35606
35607         getgroups: don't expose GETGROUPS_T to user
35608         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
35609         an element at a time if GETGROUPS_T is wrong size.
35610         * lib/getugroups.h (getugroups): Change signature.
35611         * lib/unistd.in.h (getgroups): Likewise.
35612         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
35613         signature needs fixing.
35614         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
35615         AC_TYPE_GETGROUPS.
35616         * modules/group-member (Depends-on): Add getgroups.
35617         * lib/group-member.c (group_info, get_group_info): Use gid_t.
35618         (group_member): Rely on getgroups replacement.
35619         * lib/getugroups.c (getugroups): Use gid_t.
35620         * tests/test-getgroups.c (main): Likewise.
35621         * NEWS: Mention the signature change.
35622         * doc/posix-functions/getgroups.texi (getgroups): Mention the
35623         problem with signature.
35624         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
35625         GETGROUPS_T is still useful for setgroups.
35626
35627         getgroups, getugroups: provide stubs for mingw
35628         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
35629         * lib/getugroups.c (getugroups): Likewise.
35630         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
35631         function.  Modernize replacement scheme.
35632         (gl_PREREQ_GETGROUPS): Delete.
35633         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
35634         * modules/getgroups (configure.ac): Declare witness.
35635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35636         * modules/unistd (Depends-on): Substitute witness.
35637         * lib/unistd.in.h (getgroups): Declare replacement.
35638
35639         getgroups: avoid calling exit
35640         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
35641         drop xalloc.
35642         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
35643         dependencies.
35644         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
35645         exiting, in the rare case of malloc failure.
35646
35647         getgroups: fix logic error
35648         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
35649         has more than 20 groups.
35650         * modules/getgroups-tests: New test.
35651         * tests/test-getgroups.c: New file.
35652
35653 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35654
35655         * tests/test-base64.c: Improve.
35656
35657 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35658
35659         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
35660         Blake <ebb9@byu.net>.
35661
35662 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35663
35664         * tests/test-xvasprintf.c: Add %s%s related checks.
35665
35666 2009-11-12  Eric Blake  <ebb9@byu.net>
35667
35668         version-etc: match standards.texi style
35669         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
35670         and use <> only for URLs.
35671
35672 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
35673
35674         fts: do not fail on a submount during traversal
35675         * lib/fts.c (fts_build): Read the stat info again after opening
35676         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
35677         Original report at http://bugzilla.redhat.com/501848.
35678
35679 2009-11-12  Jim Meyering  <meyering@redhat.com>
35680
35681         bootstrap: sync from coreutils
35682         * build-aux/bootstrap (bootstrap_epilogue): New function.
35683         Use git_modules_config in one more place.  This make bootstrap's
35684         --gnulib-srcdir option more useful for testing.
35685
35686         bootstrap: generalize autoheader check
35687         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
35688         AC_CONFIG_HEADERS.
35689
35690 2009-11-11  Eric Blake  <ebb9@byu.net>
35691
35692         mkfifoat: use new modules for Solaris and BSD bugs
35693         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
35694         * lib/mkfifoat.c (mknodat): Split...
35695         * lib/mknodat.c (mknodat): ...into new file.
35696         * modules/mkfifoat (Files): Ship new file.
35697         (Depends-on): Add mkfifo, mknod.
35698         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
35699         (Depends-on): Add symlink.
35700         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
35701         redundant with test_mkfifo.h.
35702         (do_mkfifoat, do_mknodat): New helpers.
35703
35704         mknod: new module
35705         * modules/mknod: New file.
35706         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
35707         * lib/mknod.c (mknod): Likewise.
35708         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35709         defaults.
35710         * modules/sys_stat (Makefile.am): Substitute them.
35711         * lib/sys_stat.in.h (mknod): Declare replacement.
35712         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35713         Document it.
35714         * doc/posix-functions/mknod.texi (mknod): Likewise.
35715         * modules/mknod-tests: New test.
35716         * tests/test-mknod.c: Likewise.
35717
35718         mkfifo: new module
35719         * modules/mkfifo: New file.
35720         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
35721         * lib/mkfifo.c (mkfifo): Likewise.
35722         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35723         defaults.
35724         * modules/sys_stat (Makefile.am): Substitute them.
35725         * lib/sys_stat.in.h (mkfifo): Declare replacement.
35726         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35727         Document it.
35728         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
35729         * modules/mkfifo-tests: New test.
35730         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
35731         from test-mkfifoat.c.
35732         * tests/test-mkfifo.c: New file.
35733
35734         readlink: detect FreeBSD bug
35735         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
35736         slash on symlink.
35737         * doc/posix-functions/readlink.texi (readlink): Document the bug.
35738         * tests/test-readlink.h (test_readlink): Enhance test.
35739
35740         symlink: detect FreeBSD bug
35741         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
35742         slash on symlink.
35743         * doc/posix-functions/symlink.texi (symlink): Document the bug.
35744         * tests/test-symlink.h (test_symlink): Enhance test.
35745
35746 2009-11-10  Eric Blake  <ebb9@byu.net>
35747
35748         link: detect FreeBSD bug
35749         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
35750         symlink.
35751         * doc/posix-functions/link.texi (link): Document the bug.
35752         * tests/test-link.h (test_link): Enhance test.
35753         * tests/test-linkat.c (main): Update caller.
35754
35755         unlink, remove: detect FreeBSD bug
35756         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
35757         slash on symlink.
35758         * doc/posix-functions/unlink.texi (unlink): Document the bug.
35759         * doc/posix-functions/remove.texi (remove): Likewise.
35760         * tests/test-unlink.h (test_unlink): Enhance test.
35761         * tests/test-remove.c (main): Likewise.
35762
35763 2009-11-09  Eric Blake  <ebb9@byu.net>
35764
35765         rename: detect FreeBSD bug
35766         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
35767         slash on symlink.
35768         * modules/renameat-tests (Depends-on): Add filenamecat.
35769         * tests/test-rename.h (test_rename): Allow one more errno.
35770         * tests/test-renameat.c (main): Likewise.
35771         * doc/posix-functions/rename.texi (rename): Document the bug.
35772
35773         open: detect FreeBSD bug
35774         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
35775         symlink.
35776         * doc/posix-functions/open.texi (open): Document the bug.
35777         * doc/posix-functions/utimes.texi (utimes): Likewise.
35778         * tests/test-open.h (test_open): Add parameters, and test symlink
35779         handling.
35780         * tests/test-open.c (main): Adjust caller.
35781         * tests/test-fcntl-safer.c (main): Likewise.
35782         * modules/open-tests (Depends-on): Add stdbool, symlink.
35783         * modules/fcntl-safer-tests (Depends-on): Likewise.
35784         * tests/test-openat.c (main): Add test-open tests.
35785
35786         stat: detect FreeBSD bug
35787         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
35788         symlink.
35789         * doc/posix-functions/stat.texi (stat): Document the bug.
35790         * tests/test-stat.h (test_stat_func): Add argument.
35791         * tests/test-stat.c (main): Adjust caller.
35792         * tests/test-fstatat.c (main): Likewise.
35793         * modules/stat-tests (Depends-on): Add stdbool, symlink.
35794         Reported by Jim Meyering.
35795
35796 2009-11-09  James Youngman  <jay@gnu.org>
35797
35798         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
35799         * lib/strftime.c: Correct placement of #include "ignore-value.h".
35800
35801 2009-11-08  Jim Meyering  <meyering@redhat.com>
35802
35803         utimens: remove invalid futimesat call
35804         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
35805         It used the file descriptor of the target file as the DIR_FD
35806         parameter and NULL as the file name.  That caused failure with
35807         errno == EFAULT on FreeBSD-8.0-rc2
35808
35809 2009-11-07  Eric Blake  <ebb9@byu.net>
35810
35811         fflush, freadseek: use fseeko, not fseek
35812         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35813         (clear_ungetc_buffer): Avoid potential problems on large files.
35814         * lib/freadseek.c (freadseek): Likewise.
35815         * modules/freadseek (Depends-on): Add fseeko.
35816         * modules/fseek (configure.ac): Set a witness.
35817         * tests/test-fflush.c (main): Use fseeko.
35818         * tests/test-fpurge.c (fseek): Disable link warning.
35819         * tests/test-freadable.c (fseek): Likewise.
35820         * tests/test-freading.c (fseek): Likewise.
35821         * tests/test-fseeko.c (fseek): Likewise.
35822         * tests/test-ftell.c (fseek): Likewise.
35823         * tests/test-ftello.c (fseek): Likewise.
35824         * tests/test-fwritable.c (fseek): Likewise.
35825         * tests/test-fwriting.c (fseek): Likewise.
35826
35827 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35828
35829         * modules/memchr (Depends-on): Drop getpagesize dependency.
35830
35831 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35832
35833         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
35834         Reported by Ludovic Courtès.
35835         * build-aux/pmccabe2html: Improve example usage.
35836         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
35837
35838 2009-11-06  Jim Meyering  <meyering@redhat.com>
35839
35840         do-release-commit-and-tag: New module.
35841         Automate the release-commit and tag process.
35842         * build-aux/do-release-commit-and-tag: New script, from coreutils.
35843         * modules/do-release-commit-and-tag: New file.
35844         * MODULES.html.sh (Support for maintaining and releasing): Add it.
35845
35846 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35847
35848         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
35849         because test-select.c uses inet_pton.
35850
35851 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35852
35853         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
35854         GETADDRINFO_LIB.  Bump serial number.
35855         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
35856         Suggested by Eric Blake <ebb9@byu.net>.
35857
35858 2009-11-05  Eric Blake  <ebb9@byu.net>
35859
35860         strtod: detect darwin bug
35861         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
35862         Reported by Leo Davis.
35863
35864         freopen-safer: new module
35865         * modules/freopen-safer: New module.
35866         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
35867         * lib/freopen-safer.c (freopen_safer): New file.
35868         * lib/stdio-safer.h (freopen_safer): New declaration.
35869         * lib/stdio--.h (freopen): New override.
35870         * MODULES.html.sh (File stream based Input/Output): Mention it.
35871         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
35872         freopen-safer module.
35873         * doc/posix-functions/stderr.texi (stderr): Likewise.
35874         * doc/posix-functions/stdin.texi (stdin): Likewise.
35875         * doc/posix-functions/stdout.texi (stdout): Likewise.
35876         * modules/freopen-safer-tests: New test.
35877         * tests/test-reopen-safer.c: New file.
35878
35879 2009-11-05  Jim Meyering  <meyering@redhat.com>
35880
35881         maint.mk: Prohibit inclusion of "close-stream.h" without use.
35882         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35883
35884 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35885
35886         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
35887
35888 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35889
35890         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
35891
35892 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35893
35894         Fix link error.
35895         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35896         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35897
35898 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35899
35900         * tests/test-func.c: Also test value of __func__.
35901
35902 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35903
35904         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
35905         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
35906
35907 2009-11-05  Bruno Haible  <bruno@clisp.org>
35908
35909         Fix link error.
35910         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35911         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35912         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
35913
35914 2009-11-05  Bruno Haible  <bruno@clisp.org>
35915
35916         Tests for module 'inet_pton'.
35917         * modules/inet_pton-tests: New file.
35918         * tests/test-inet_pton.c: New file.
35919
35920 2009-11-05  Bruno Haible  <bruno@clisp.org>
35921
35922         Tests for module 'inet_ntop'.
35923         * modules/inet_ntop-tests: New file.
35924         * tests/test-inet_ntop.c: New file.
35925
35926 2009-11-04  Eric Blake  <ebb9@byu.net>
35927
35928         stdlib-safer: wrap all mkstemp variants
35929         * modules/mkostemp (configure.ac): Set witness.
35930         * modules/mkostemps (configure.ac): Likewise.
35931         * modules/mkstemps (configure.ac): Likewise.
35932         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
35933         (mkstemps_safer): Wrap more functions.
35934         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
35935         wrapping.
35936         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
35937         (mkstemps_safer): Implement the wrappers.
35938
35939         mkstemps, mkostemps: new modules
35940         * modules/mkostemps: New module.
35941         * modules/mkstemps: Likewise.
35942         * lib/mkostemps.c (mkostemps): New file.
35943         * lib/mkstemps.c (mkstemps): Likewise.
35944         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
35945         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
35946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
35947         * modules/stdlib (Makefile.am): Substitute them.
35948         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
35949         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
35950         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
35951         * doc/gnulib.texi (Glibc stdlib.h): Include them.
35952         * MODULES.html.sh (File system functions): Mention them.
35953
35954         tempname: resync from glibc
35955         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
35956         same values for __GT_FILE as glibc.  Abort even when assertions
35957         are disabled.
35958         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
35959         match its value otherwise.  Allow idempotent inclusion.
35960         * lib/mkdtemp.c (mkdtemp): Adjust caller.
35961         * lib/mkostemp.c (mkostemp): Likewise.
35962         * lib/mkstemp.c (mkstemp): Likewise.
35963         * lib/tmpfile.c (tmpfile): Likewise.
35964         * NEWS: Document this.
35965
35966         utimens: fix use of futimens on older Linux
35967         * lib/utimens.c (fdutimens): Use updated, rather than original,
35968         timespec to avoid bug in older Linux kernel.
35969         Reported by Simon Josefsson.
35970
35971 2009-11-04  Bruno Haible  <bruno@clisp.org>
35972
35973         Make num_processors more flexible and consistent.
35974         * lib/nproc.h (enum nproc_query): New type.
35975         (num_processors): Add a 'query' argument.
35976         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
35977         (num_processors): Add a 'query' argument. Test the value of the
35978         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
35979         mingw, count the number of CPUs available for the current process.
35980         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
35981         Check for sched_getaffinity and sched_getaffinity_np.
35982         * modules/nproc (Depends-on): Add c-ctype, extensions.
35983         * NEWS: Mention the change.
35984
35985 2009-11-03  Bruno Haible  <bruno@clisp.org>
35986
35987         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
35988
35989 2009-11-03  Jim Meyering  <meyering@redhat.com>
35990
35991         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
35992         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
35993         if it is defined.
35994
35995 2009-11-02  Eric Blake  <ebb9@byu.net>
35996
35997         mktime, timegm: share common declaration
35998         * lib/mktime-internal.h: New file.
35999         * lib/mktime.c: Use it rather than open-coding a declaration.
36000         * lib/timegm.c: Likewise.
36001         * modules/mktime (Files): Ship it.
36002         * modules/timegm (Files): Likewise.
36003         Suggested by Bruno Haible.
36004
36005         test-update-copyright: update test to match script changes
36006         * tests/test-update-copyright.sh: Avoid hard-coding perl
36007         location.  Don't update *.bak created by earlier runs.
36008
36009 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
36010             Simon Josefsson  <simon@josefsson.org>
36011             Bruno Haible  <bruno@clisp.org>
36012
36013         Fix link error on Solaris 8.
36014         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
36015         also in libnsl. Define also INET_PTON_LIB.
36016         * modules/inet_pton (Link): New section.
36017
36018 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36019             Bruno Haible  <bruno@clisp.org>
36020
36021         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
36022         * modules/inet_ntop (Link): New section.
36023         Reported by Boyan Kasarov <bkasarov@gmail.com>.
36024
36025 2009-11-02  Eric Blake  <ebb9@byu.net>
36026
36027         maint: avoid compiler warnings in m4 macros
36028         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
36029         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
36030
36031 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36032
36033         * m4/pmccabe2html.m4: Remove file.
36034         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
36035         function.  Change maintainer.
36036         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
36037         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
36038         Courtès).
36039
36040 2009-10-31  Eric Blake  <ebb9@byu.net>
36041
36042         fseeko: fix m4 regression
36043         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
36044         regression from 2009-10-27.
36045         Reported by Ralf Wildenhues.
36046
36047 2009-10-31  Jim Meyering  <meyering@redhat.com>
36048
36049         inttostr: aesthetics and improved (compile-time) safety
36050         Define inttype_is_signed rather than inttype_is_unsigned,
36051         since the sole use is via "#if inttype_is_signed".
36052         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
36053         inttype_is_unsigned.
36054         * lib/offtostr.c (inttype_is_signed): Likewise.
36055         * lib/uinttostr.c (inttype_is_signed): Likewise.
36056         * lib/umaxtostr.c (inttype_is_signed): Likewise.
36057         * lib/inttostr.c (inttostr): Use verify to cross-check the
36058         inttype_is_signed value and the signedness of the actual type.
36059         * modules/inttostr (Depends-on): Add verify.
36060
36061 2009-10-30  Eric Blake  <ebb9@byu.net>
36062
36063         build: avoid compiler warnings
36064         * lib/fchmodat.c (lchmod): Mark unused variables.
36065         * lib/getopt.c (_getopt_initialize): Likewise.
36066         * lib/mktime.c (__mktime_internal): Provide prototype.
36067         * lib/inttostr.c (inttostr): Avoid compiler warning even with
36068         older gcc that do not understand #pragma GCC diagnostic.
36069         * lib/uinttostr.c (inttype_is_unsigned): Define.
36070         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
36071
36072 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
36073
36074         stat: fix compilation on AIX
36075         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
36076         only see struct stat64.
36077
36078 2009-10-30  Eric Blake  <ebb9@byu.net>
36079
36080         exclude: make more robust
36081         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
36082         rather than masking a coding bug.
36083         Suggested by Bruno Haible.
36084
36085 2009-10-30  Jim Meyering  <meyering@redhat.com>
36086
36087         perl scripts: remove #!/usr/bin/perl in favor of more portable...
36088         Rather than putting #!/usr/bin/perl on the first line,
36089         start with a variant of what's recommended by "man perlrun" that
36090         invokes the first "perl" program from your shell's search path.
36091         * build-aux/gitlog-to-changelog: Replace #!... as above.
36092         Add a "Local Variables" perl mode setting.
36093         Prompted by a patch from Ludovic Courtès.
36094         Improved by Eric Blake.
36095         * build-aux/useless-if-before-free: Likewise.
36096         * build-aux/announce-gen: Likewise.
36097         * build-aux/update-copyright: Likewise.
36098
36099 2009-10-29  Eric Blake  <ebb9@byu.net>
36100
36101         filenamecat-lgpl: adjust clients
36102         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
36103         filenamecat.
36104         * modules/renameat (Depends-on): Likewise.
36105
36106         filenamecat: split into filenamecat-lgpl
36107         * modules/filenamecat-lgpl: New module.
36108         * modules/filenamecat (Files): Move library-safe files into
36109         filenamecat-lgpl.
36110         (Depends-on): Add filenamecat-lgpl.
36111         (configure.ac): Declare witness.
36112         * lib/filenamecat.h (file_name_concat): Only declare when using
36113         GPL module.
36114         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
36115         Move...
36116         * lib/filenamecat-lgpl.c: ...into new file.
36117         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
36118         (gl_FILE_NAME_CONCAT): Use it.
36119         * MODULES.html.sh (File system functions): Mention new module.
36120
36121         argp: avoid memory leak
36122         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
36123         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
36124         base_name, since the latter malloc()s and can call exit().
36125         Leak introduced 2006-07-03.
36126
36127         dirname-lgpl: adjust clients that don't need full dirname
36128         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
36129         * modules/filenamecat (Depends-on): Likewise.
36130         * modules/linkat (Depends-on): Likewise.
36131         * modules/mkancesdirs (Depends-on): Likewise.
36132         * modules/mkdir (Depends-on): Likewise.
36133         * modules/openat (Depends-on): Likewise.
36134         * modules/savewd (Depends-on): Likewise.
36135         * modules/rename (Depends-on): Likewise.
36136         (License): Relax license.
36137         * modules/mkdir-tests (Depends-on): Drop progname.
36138         (Makefile.am): Delete unneeded LDADD.
36139         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
36140
36141         dirname: split into dirname-lgpl
36142         * modules/dirname-lgpl: New module.
36143         * modules/dirname (Files): Move library-safe files into
36144         dirname-lgpl.
36145         (Depends-on): Add dirname-lgpl.
36146         (configure.ac): Declare witness.
36147         * modules/double-slash-root (License): Relax license.
36148         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
36149         module.
36150         * lib/dirname.c (dir_len, mdir_name): Move...
36151         * lib/dirname-lgpl.c: ...into new file.
36152         * lib/basename.c (last_component, base_len): Move...
36153         * lib/basename-lgpl.c: ...into new file.
36154         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
36155         (gl_DIRNAME): Use it.
36156         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
36157         Mention new module.
36158         * modules/dirname-tests (Depends-on): Add progname.
36159         * tests/test-dirname.c (program_name): Delete.
36160
36161         mkdir: make safe for libraries
36162         * modules/mkdir (Depends-on): Drop xalloc.
36163         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
36164         exit.
36165
36166         tests: avoid some compiler warnings
36167         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
36168         literals.
36169         * tests/test-memchr.c (main): Avoid type mismatch.
36170         * tests/test-arpa_inet.c (main): Avoid unused parameters.
36171         * tests/test-base64.c (main): Likewise.
36172         * tests/test-getdelim.c (main): Likewise.
36173         * tests/test-gethostname.c (main): Likewise.
36174         * tests/test-getline.c (main): Likewise.
36175         * tests/test-netinet_in.c (main): Likewise.
36176         * tests/test-select.c (open_server_socket, main): Likewise.
36177         * tests/test-select-stdin.c (main): Likewise.
36178         * tests/test-sockets.c (main): Likewise.
36179         * tests/test-strsignal.c (main): Likewise.
36180         * tests/test-sys_select.c (main): Likewise.
36181         * tests/test-sys_socket.c (main): Likewise.
36182         * tests/test-u64.c (main): Likewise.
36183         * tests/test-xfprintf-posix.c (main): Likewise.
36184         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
36185
36186         sockets: avoid compiler warning
36187         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
36188
36189         maint: detect usage(1) and other suspicious exits
36190         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
36191
36192 2009-10-29  Jim Meyering  <meyering@redhat.com>
36193
36194         timespec: long-to-int truncation could make timespec_cmp malfunction
36195         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
36196         a multiple of 2^32 nanoseconds as no difference.
36197
36198 2009-10-28  Jim Meyering  <meyering@redhat.com>
36199
36200         fprintftime: wrap macro code argument in "do {...} while(0)"
36201         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
36202         cpy macro must be a statement that can be followed by a semicolon.
36203         Now that the else clause contains a comment and is hence longer
36204         than one line, I require curly braces.  That in turn requires
36205         that we wrap this code block in the standard do...while(0).
36206
36207         fprintftime: remove stray semicolon from previous change
36208         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
36209
36210         fprintftime: avoid a warning about ignored fwrite return value
36211         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
36212         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
36213         that is unsafe.
36214         * modules/fprintftime (Depends-on): Add ignore-value.
36215
36216         exclude: avoid an unwarranted warning
36217         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
36218
36219 2009-10-27  Eric Blake  <ebb9@byu.net>
36220
36221         fseek: avoid compilation failure when fflush is replaced
36222         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
36223         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
36224         module is in use.
36225         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
36226         module is not in use; since REPLACE_FSEEK worked otherwise.
36227         (GNULIB_FTELLO): Likewise for ftell.
36228         Reported by Ian Beckwith and others.
36229
36230 2009-10-27  Bruno Haible  <bruno@clisp.org>
36231
36232         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
36233         Reported by Jim Meyering.
36234
36235 2009-10-27  Jim Meyering  <jim@meyering.net>
36236             Bruno Haible  <bruno@clisp.org>
36237
36238         Avoid warning despite dropping the return value of fwrite.
36239         * lib/unicodeio.c: Include ignore-value.h.
36240         (fwrite_success_callback): Explicitly ignore fwrite's return value.
36241         * modules/unicodeio (Depends-on): Add ignore-value.
36242
36243 2009-10-26  Eric Blake  <ebb9@byu.net>
36244
36245         areadlinkat: fix fallback path
36246         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
36247         pointer and zero.
36248
36249 2009-10-22  Pádraig Brady  <P@draigBrady.com>
36250
36251         Use a better IO block size for modern systems
36252         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
36253         * lib/md2.c: Likewise.
36254         * lib/md4.c: Likewise.
36255         * lib/md5.c: Likewise.
36256         * lib/sha1.c: Likewise.
36257         * lib/sha256.c: Likewise.
36258         * lib/sha512.c: Likewise.
36259
36260 2009-10-22  Eric Blake  <ebb9@byu.net>
36261
36262         tests: avoid several compiler warnings
36263         * tests/test-getcwd.c (main): Avoid buffer underflow.
36264         * tests/test-getdate.c (main): String literals are not safe with
36265         putenv, so use setenv.  Declare unused argument.
36266         * modules/getdate-tests (Depends-on): Add setenv.
36267         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
36268         problems with string literals in char *.
36269         * tests/test-hash.c (main): Avoid shadowing declaration.
36270         (insert_new): Treat string literals as char const *.
36271         * tests/test-getopt.h (test_getopt): Likewise.
36272         (getopt_loop): Alter types to minimize casting elsewhere.
36273         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
36274         (test_getopt_long_posix): Likewise.
36275         (do_getopt_long): Add wrapper to minimize casting.
36276         * tests/test-atexit.c (clear_temp_file): Use void.
36277         * tests/test-areadlink-with-size.c (main): Declare unused
36278         arguments.
36279         * tests/test-areadlink.c (main): Likewise.
36280         * tests/test-areadlinkat-with-size.c (main): Likewise.
36281         * tests/test-areadlinkat.c (main): Likewise.
36282         * tests/test-canonicalize-lgpl.c (main): Likewise.
36283         * tests/test-canonicalize.c (main): Likewise.
36284         * tests/test-dirent-safer.c (main): Likewise.
36285         * tests/test-dirname.c (main): Likewise.
36286         * tests/test-dup2.c (main): Likewise.
36287         * tests/test-fchdir.c (main): Likewise.
36288         * tests/test-fcntl-h.c (main): Likewise.
36289         * tests/test-fcntl-safer.c (main): Likewise.
36290         * tests/test-fdopendir.c (main): Likewise.
36291         * tests/test-fdutimensat.c (main): Likewise.
36292         * tests/test-fflush.c (main): Likewise.
36293         * tests/test-filenamecat.c (main): Likewise.
36294         * tests/test-filevercmp.c (main): Likewise.
36295         * tests/test-fopen-safer.c (main): Likewise.
36296         * tests/test-fopen.c (main): Likewise.
36297         * tests/test-fpending.c (main): Likewise.
36298         * tests/test-fpurge.c (main): Likewise.
36299         * tests/test-freading.c (main): Likewise.
36300         * tests/test-fstatat.c (main): Likewise.
36301         * tests/test-fsync.c (main): Likewise.
36302         * tests/test-futimens.c (main): Likewise.
36303         * tests/test-getndelim2.c (main): Likewise.
36304         * tests/test-gettimeofday.c (main): Likewise.
36305         * tests/test-getopt.c (main): Likewise.
36306         * tests/test-i-ring.c (main): Likewise.
36307         * tests/test-inttypes.c (main): Likewise.
36308         * tests/test-link.c (main): Likewise.
36309         * tests/test-lstat.c (main): Likewise.
36310         * tests/test-math.c (main): Likewise.
36311         * tests/test-md5.c (main): Likewise.
36312         * tests/test-memchr2.c (main): Likewise.
36313         * tests/test-memrchr.c (main): Likewise.
36314         * tests/test-mkdir.c (main): Likewise.
36315         * tests/test-mkdirat.c (main): Likewise.
36316         * tests/test-mkfifoat.c (main): Likewise.
36317         * tests/test-open.c (main): Likewise.
36318         * tests/test-openat-safer.c (main): Likewise.
36319         * tests/test-openat.c (main): Likewise.
36320         * tests/test-quotearg.c (main): Likewise.
36321         * tests/test-rawmemchr.c (main): Likewise.
36322         * tests/test-readlink.c (main): Likewise.
36323         * tests/test-remove.c (main): Likewise.
36324         * tests/test-rename.c (main): Likewise.
36325         * tests/test-renameat.c (main): Likewise.
36326         * tests/test-rmdir.c (main): Likewise.
36327         * tests/test-sha1.c (main): Likewise.
36328         * tests/test-signal.c (main): Likewise.
36329         * tests/test-sigaction.c (main): Likewise.
36330         * tests/test-stat.c (main): Likewise.
36331         * tests/test-stat-time.c (main): Likewise.
36332         * tests/test-stddef.c (main): Likewise.
36333         * tests/test-stdint.c (main): Likewise.
36334         * tests/test-stdio.c (main): Likewise.
36335         * tests/test-stdlib.c (main): Likewise.
36336         * tests/test-strchrnul.c (main): Likewise.
36337         * tests/test-strerror.c (main): Likewise.
36338         * tests/test-string.c (main): Likewise.
36339         * tests/test-strtod.c (main): Likewise.
36340         * tests/test-strverscmp.c (main): Likewise.
36341         * tests/test-symlink.c (main): Likewise.
36342         * tests/test-symlinkat.c (main): Likewise.
36343         * tests/test-sys_stat.c (main): Likewise.
36344         * tests/test-sys_time.c (main): Likewise.
36345         * tests/test-time.c (main): Likewise.
36346         * tests/test-unistd.c (main): Likewise.
36347         * tests/test-unlink.c (main): Likewise.
36348         * tests/test-unlinkat.c (main): Likewise.
36349         * tests/test-utimens.c (main): Likewise.
36350         * tests/test-utimensat.c (main): Likewise.
36351         * tests/test-version-etc.c (main): Likewise.
36352         * tests/test-wchar.c (main): Likewise.
36353         * tests/test-wctype.c (main): Likewise.
36354         * tests/test-xprintf-posix.c (main): Likewise.
36355         * tests/test-posixtm.c (main): Likewise.
36356         (STREQ): Delete unused macro.
36357         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
36358         shadowed variables.
36359         * tests/test-memchr.c (main): Likewise.
36360
36361 2009-10-21  Eric Blake  <ebb9@byu.net>
36362
36363         areadlinkat: avoid failure on older glibc
36364         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
36365         rather than mis-comparing 0 against FUNC_RESULT of char*.
36366
36367 2009-10-21  Bruno Haible  <bruno@clisp.org>
36368
36369         * modules/stpncpy (License): Relicense under LGPLv2+.
36370         Reported by David Lutterkort <lutter@redhat.com>.
36371
36372 2009-10-20  Eric Blake  <ebb9@byu.net>
36373
36374         utimensat: work around Solaris 9 bug
36375         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
36376         has trailing slash bugs.
36377         * tests/test-lutimens.h (test_lutimens): Enhance test.
36378         * tests/test-utimens.h (test_utimens): Likewise.
36379         * doc/posix-functions/utime.texi (utime): Enhance documentation.
36380         * doc/posix-functions/utimes.texi (utimes): Likewise.
36381         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36382         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
36383         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
36384         * doc/posix-functions/futimens.texi (futimens): Likewise.
36385
36386         fdutimensat: new module
36387         * modules/fdutimensat: New file.
36388         * lib/fdutimensat.c (fdutimensat): Likewise.
36389         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
36390         * MODULES.html.sh (File system functions): Mention module.
36391         * modules/fdutimensat-tests: New test.
36392         * tests/test-fdutimensat.c: Likewise.
36393
36394         doc: regenerate INSTALL
36395         * doc/INSTALL: Reflect recent autoconf update.
36396         * doc/INSTALL.ISO: Likewise.
36397         * doc/INSTALL.UTF-8: Likewise.
36398
36399 2009-10-20  Pádraig Brady  <P@draigBrady.com>
36400
36401         acl: warn if ACL support is not detected
36402         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
36403
36404 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
36405
36406         * lib/nproc.h: Add extern "C" block for C++.
36407
36408 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
36409             Bruno Haible  <bruno@clisp.org>
36410
36411         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
36412         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
36413         * doc/posix-functions/isalpha.texi: Likewise.
36414         * doc/posix-functions/isblank.texi: Likewise.
36415         * doc/posix-functions/iscntrl.texi: Likewise.
36416         * doc/posix-functions/isdigit.texi: Likewise.
36417         * doc/posix-functions/isgraph.texi: Likewise.
36418         * doc/posix-functions/islower.texi: Likewise.
36419         * doc/posix-functions/isprint.texi: Likewise.
36420         * doc/posix-functions/ispunct.texi: Likewise.
36421         * doc/posix-functions/isspace.texi: Likewise.
36422         * doc/posix-functions/isupper.texi: Likewise.
36423         * doc/posix-functions/isxdigit.texi: Likewise.
36424
36425 2009-10-18  Bruno Haible  <bruno@clisp.org>
36426
36427         Tests for module 'isblank'.
36428         * modules/isblank-tests: New file.
36429         * tests/test-isblank.c: New file.
36430
36431         New module 'isblank'.
36432         * lib/isblank.c: New file.
36433         * m4/isblank.m4: New file.
36434         * modules/isblank: New file.
36435         * doc/posix-functions/isblank.texi: Mention the new module.
36436
36437 2009-10-18  Bruno Haible  <bruno@clisp.org>
36438
36439         New module 'ctype'.
36440         * lib/ctype.in.h: New file.
36441         * m4/ctype.m4: New file.
36442         * modules/ctype: New file.
36443         * doc/posix-headers/ctype.texi: Mention the new module.
36444
36445 2009-10-18  Jim Meyering  <meyering@redhat.com>
36446
36447         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
36448         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
36449         right after its initialization, rather than farther down.
36450         Keeping these in close proximity makes it easier to ensure
36451         that each such variable is initialized.  E.g.,
36452
36453             LIB_CLOCK_GETTIME=
36454             AC_SUBST([LIB_CLOCK_GETTIME])
36455
36456         This change also increments these serial numbers.
36457         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
36458         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36459         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36460
36461 2009-10-18  Bruno Haible  <bruno@clisp.org>
36462
36463         Don't let environment variables perturb build.
36464         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
36465         (gl_PREREQ_GETHRXTIME): ... not here.
36466
36467 2009-10-18  Bruno Haible  <bruno@clisp.org>
36468
36469         Avoid symlink attack in localcharset module.
36470         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
36471         (O_NOFOLLOW): Define fallback.
36472         (get_charset_aliases): Don't open the file if it is a symbolic link.
36473         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
36474         gl_FCNTL_H.
36475         (gl_FCNTL_H): Require it.
36476         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
36477         * modules/localcharset (Files): Add m4/fcntl_h.m4.
36478         Reported by Fergal Glynn <fglynn@veracode.com>.
36479
36480 2009-10-18  Bruno Haible  <bruno@clisp.org>
36481
36482         Implement nproc for mingw.
36483         * lib/nproc.c: Include <windows.h>
36484         (num_processors): On native Windows platforms, try GetSystemInfo.
36485
36486 2009-10-18  Bruno Haible  <bruno@clisp.org>
36487
36488         Implement nproc for IRIX.
36489         * lib/nproc.c: Include <sys/sysmp.h>.
36490         (num_processors): On IRIX systems, try sysmp.
36491         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
36492
36493 2009-10-18  Bruno Haible  <bruno@clisp.org>
36494
36495         Implement nproc for HP-UX.
36496         * lib/nproc.c: Include <sys/pstat.h>
36497         (num_processors): On HP-UX systems, try pstat_getdynamic.
36498         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
36499         pstat_getdynamic.
36500
36501 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
36502             Bruno Haible  <bruno@clisp.org>
36503
36504         Implement nproc for NetBSD, OpenBSD.
36505         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
36506         (ARRAY_SIZE): New macro.
36507         (num_processors): On BSD systems, try sysctl of HW_NCPU.
36508         * m4/nproc.m4: New file.
36509         * modules/nproc (Files): Add m4/nproc.m4.
36510         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
36511         (Makefile.am): Instead, augment lib_SOURCES.
36512
36513 2009-10-18  Bruno Haible  <bruno@clisp.org>
36514
36515         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
36516         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
36517         sys/param.h.
36518
36519 2009-10-16  Eric Blake  <ebb9@byu.net>
36520
36521         utimensat: new module
36522         * modules/utimensat: New file.
36523         * lib/utimensat.c (utimensat): Likewise.
36524         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36525         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
36526         so we can work around Linux bugs.
36527         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36528         * modules/sys_stat (Makefile.am): Substitute them.
36529         * lib/sys_stat.in.h (utimensat): Declare it.
36530         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36531         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36532         * modules/utimensat-tests: New test.
36533         * tests/test-utimensat.c: Likewise.
36534
36535         utimens: let lutimens work on non-symlinks
36536         * lib/utimens.c (lutimens): Fall back to utimens rather than
36537         failing with ENOSYS, when file is not a symlink.
36538         (utimens): Reduce redirection.
36539         * tests/test-lutimens.h (test_lutimens): Update test to cover
36540         non-symlinks.
36541         * tests/test-utimens.h (test_utimens): Update test to cover
36542         symlinks.
36543         * tests/test-utimens.c (main): Update caller.
36544
36545         utimens: cache whether utimensat syscall works
36546         * lib/utimens.c (utimensat_works_really): New cache variable.
36547         (fdutimens, lutimens): Use it to avoid failing syscall.
36548
36549         test-stat-time, test-utimens: improve portability
36550         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
36551         ext4 on alpha, and for cygwin.
36552         * tests/test-utimens-common.h: New file.
36553         (nap): Factor delays into single function.
36554         * tests/test-lutimens.h (test_lutimens): Use new header.
36555         * tests/test-futimens.h (test_futimens): Likewise.
36556         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
36557         timestamps to occur from same machine, as was done previously for
36558         test_utimens.
36559         * modules/utimens-tests (Files): Ship new file.
36560         * modules/futimens-tests (Files): Likewise.
36561         Reported in part by Jim Meyering.
36562
36563         sys_stat: sort replacement declarations
36564         * lib/sys_stat.in.h: Sort declarations.
36565         * lib/futimens.c (futimens): Fix typo.
36566
36567 2009-10-15  Jim Meyering  <meyering@redhat.com>
36568
36569         don't let environment settings perturb build
36570         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
36571         could cause a configure-time and/or build-time malfunction.
36572         Typically, a configure-time function-in-library test is performed
36573         via code like this:
36574
36575           LIB_VAR=
36576           AC_SUBST([LIB_VAR])
36577           prefix_saved_LIBS=$LIBS
36578             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
36579                        [test "$ac_cv_search_FUNC" = "none required" ||
36580                         LIB_VAR=$ac_cv_search_FUNC])
36581           LIBS=$prefix_saved_LIBS
36582
36583         However, in each of the files affected by this change, the LIB_VAR=
36584         initialization was omitted.  Thus, when set in the environment, its
36585         value would propagate into generated Makefiles when FUNC is not found
36586         in LIB_NAME.
36587         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
36588         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36589         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36590
36591 2009-10-14  Eric Blake  <ebb9@byu.net>
36592
36593         fchdir: avoid infinite recursion in mingw
36594         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
36595         recursing.
36596
36597         test-stat-time: port to mingw
36598         * tests/test-stat-time.c (force_unlink): Return a value.
36599         (test_ctime) [W32]: Fix compilation error.
36600         (nap): Don't call usleep with too large an argument.  Use
36601         force_unlink.
36602         * doc/pastposix-functions/usleep.texi (usleep): Document the
36603         portability issue.
36604
36605 2009-10-13  Jim Meyering  <meyering@redhat.com>
36606
36607         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
36608         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
36609         * modules/pipe-filter-ii: Likewise.
36610         * modules/sys_socket-tests: Likewise.
36611         * modules/tsearch-tests: Likewise.
36612         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
36613         (check): Depend on it.
36614
36615 2009-10-12  Eric Blake  <ebb9@byu.net>
36616
36617         utimens-tests: port to NFS file systems
36618         * tests/test-utimens.h (test_utimens): Refactor utimecmp
36619         comparisons to avoid spurious failures from timestamp drift
36620         between NFS machines.
36621
36622 2009-10-12  Eric Blake  <ebb9@byu.net>
36623
36624         stat-time-tests: minor cleanups
36625         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
36626         * tests/test-stat-time.c (nap): Separate assignment from call.
36627         Suggested by Paolo Bonzini and Bruno Haible.
36628
36629         sys_stat: guarantee struct timespec
36630         * lib/sys_stat.in.h (includes): Always include <time.h>
36631         * modules/sys_stat (Depends-on): Add time.
36632         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
36633         mode_t permission values.
36634         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
36635         get at subsecond timestamps.
36636
36637 2009-10-10  Eric Blake  <ebb9@byu.net>
36638
36639         futimens: new module
36640         * modules/futimens: New file.
36641         * lib/futimens.c (futimens): Likewise.
36642         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
36643         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
36644         we can work around Linux bugs.
36645         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36646         * modules/sys_stat (Makefile.am): Substitute them.
36647         * lib/sys_stat.in.h (futimens): Declare it.
36648         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36649         * doc/posix-functions/futimens.texi (futimens): Likewise.
36650         * modules/futimens-tests: New test.
36651         * tests/test-futimens.c: Likewise.
36652
36653         utimens: introduce fdutimens
36654         * lib/utimens.h (fdutimens): New prototype.
36655         * lib/utimens.c (gl_futimens): Move guts...
36656         (fdutimens): ...to new interface.
36657         * tests/test-utimens.c (do_fdutimens): Use it.
36658
36659         utimens: add UTIME_NOW and UTIME_OMIT support
36660         * lib/utimens.c (validate_timespec, update_timespec): New helper
36661         functions.
36662         (gl_futimens, lutimens): Use them.
36663         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
36664         stdbool, sys_stat.
36665         (Link): Mention resulting library dependency.
36666         * modules/utimecmp (Link): Likewise.
36667         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
36668         (Makefile.am): Pick up library dependency.
36669         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
36670         definition.
36671         * tests/test-sys_stat.c: Test the definitions.
36672         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
36673         * NEWS: Document library dependency.
36674
36675         utimecmp: support symlink timestamps
36676         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
36677         hashing when possible.  Use pathconf when available.
36678         (SYSCALL_RESOLUTION): Recognize tighter resolution.
36679         * modules/utimecmp (Depends-on): Add lstat.
36680
36681         utimens: add lutimens interface
36682         * lib/utimens.c (lutimens): New function.
36683         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
36684         * lib/utimens.h (lutimens): Declare new interface.
36685         * tests/test-utimens.c (main): Enhance test.
36686         * tests/test-lutimens.h (test_lutimens): New file.
36687         * modules/utimens-tests (Files): Distribute it.
36688         (Depends-on): Add symlink.
36689         (configure.ac): Check for usleep.
36690
36691         utimens: validate futimens usage
36692         * lib/utimens.c (gl_futimens): Require valid fd up front, using
36693         fewer syscalls on failure later on.  Avoid compiler warning on
36694         mingw.
36695         * modules/utimens (Depends-on): Add dup2.
36696
36697         utimens: add test
36698         * modules/utimens-tests: New test.
36699         * tests/test-utimens.h: New file.
36700         * tests/test-futimens.h: Likewise.
36701         * tests/test-utimens.c: Likewise.
36702
36703         doc: mention timestamp portability issues
36704         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
36705         instead.
36706         * doc/posix-functions/utime.texi (utime): Likewise.
36707         * doc/posix-functions/utimes.texi (utimes): Likewise.
36708         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
36709         instead.
36710         * doc/posix-functions/futimens.texi (futimens): Mention utimens
36711         module.
36712         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36713         Mention weakness with symlink timestamps.
36714         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
36715         to utimensat/futimens instead.
36716         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
36717
36718         test-dup2: enhance test
36719         * tests/test-dup2.c (main): Also check AT_FDCWD.
36720
36721         test-stat-time: avoid more spurious failures
36722         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
36723         xfs; and avoid race if the two timestamps cross quantization edge.
36724
36725         relocatable: prefer 'file system' over 'filesystem'
36726         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
36727         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
36728         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
36729         * doc/relocatable.texi (Enabling Relocatability): Likewise.
36730         * lib/relocatable.c (compute_curr_prefix): Likewise.
36731
36732 2009-10-10  Jim Meyering  <meyering@redhat.com>
36733
36734         stat-time-tests: check for the usleep function
36735         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
36736
36737 2009-10-10  Bruno Haible  <bruno@clisp.org>
36738
36739         * modules/xnanosleep: Put the Link section after the Include section.
36740
36741 2009-10-09  Eric Blake  <ebb9@byu.net>
36742
36743         dup2: work around FreeBSD 6.1 bug
36744         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
36745         * doc/posix-functions/dup2.texi (dup2): Document it.
36746         Reported by Nelson H. F. Beebe and Jim Meyering.
36747
36748         test-stat-time: port to buggy NFS clients
36749         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
36750         (test_ctime): Also skip test if mtime and ctime are skewed.
36751
36752         maint: prefer 'file system' over 'filesystem'
36753         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36754         * doc/posix-functions/lstat.texi (lstat): Likewise.
36755         * lib/file-has-acl.c (file_has_acl): Likewise.
36756         * lib/fwriteerror.c [TEST]: Likewise.
36757         * tests/test-areadlink.h (test_areadlink): Likewise.
36758         * tests/test-areadlinkat-with-size.c (main): Likewise.
36759         * tests/test-areadlinkat.c (main): Likewise.
36760         * tests/test-canonicalize-lgpl.c (main): Likewise.
36761         * tests/test-canonicalize.c (main): Likewise.
36762         * tests/test-fstatat.c (main): Likewise.
36763         * tests/test-linkat.c (main): Likewise.
36764         * tests/test-lstat.h (test_lstat_func): Likewise.
36765         * tests/test-mkdir.h (test_mkdir): Likewise.
36766         * tests/test-readlink.h (test_readlink): Likewise.
36767         * tests/test-remove.c (main): Likewise.
36768         * tests/test-rename.h (test_rename): Likewise.
36769         * tests/test-renameat.c (main): Likewise.
36770         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36771         * tests/test-symlink.h (test_symlink): Likewise.
36772         * tests/test-symlinkat.c (main): Likewise.
36773         * tests/test-unlink.h (test_unlink_func): Likewise.
36774         * tests/test-unlinkat.c (main): Likewise.
36775
36776         maint: make realtime library usage explicit
36777         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
36778         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
36779         * modules/settime (Link): Likewise.
36780         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
36781
36782         test-stat-time: speed up execution
36783         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
36784         warning on mingw.
36785         (nap): New helper function.
36786         (prepare_test): Use it to reduce sleep time.
36787         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
36788         execution.
36789         * modules/stat-time-tests (configure.ac): Check for usleep.
36790
36791 2009-10-09  Jim Meyering  <meyering@redhat.com>
36792
36793         selinux-h: always use getfilecon wrappers
36794         * lib/getfilecon.c: New file.
36795         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
36796         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
36797         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
36798         (fgetfilecon): Provide a stub.
36799         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
36800         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
36801         file unconditionally.
36802         When <selinux/selinux.h> is found, arrange to use wrappers.
36803         * modules/selinux-h (Files): Add getfilecon.c.
36804         (Makefile.am): Substitute include-next-related bits
36805         into the now-always-generated selinux/selinux.h file.
36806         * doc/glibc-functions/lgetfilecon.texi: New file.
36807         * doc/glibc-functions/fgetfilecon.texi: New file.
36808         * doc/glibc-functions/getfilecon.texi: New file.
36809         * doc/glibc-functions/getfilecon-desc.texi: New file.
36810         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
36811         which to pull in the new files.
36812         * MODULES.html.sh (Misc): Add selinux-h.
36813
36814 2009-10-08  Jim Meyering  <meyering@redhat.com>
36815
36816         unistd: fix comment typo
36817         * lib/unistd.in.h (euidaccess): Fix a comment typo.
36818
36819 2009-10-08  Eric Blake  <ebb9@byu.net>
36820
36821         areadlink: use SIZE_MAX consistently
36822         * modules/areadlink (Depends-on): Add stdint.
36823         * modules/areadlink-with-size (Depends-on): Likewise.
36824         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
36825         gives NULL; drop sys/types, since unistd gives size_t; and add
36826         stdint for SIZE_MAX.
36827         (SIZE_MAX): Rely on headers.
36828         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
36829         and add stdint.
36830         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
36831         (SIZE_MAX): Likewise.
36832         (INITIAL_BUF_SIZE): Turn into enum.
36833         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
36834
36835 2009-10-08  Jim Meyering  <meyering@redhat.com>
36836
36837         areadlinkat: avoid compilation failure
36838         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
36839         Fix typo in comment.
36840
36841 2009-10-07  Eric Blake  <ebb9@byu.net>
36842
36843         areadlinkat-with-size: new module
36844         * modules/areadlinkat-with-size: New module.
36845         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
36846         * lib/areadlink.h (areadlinkat): Declare it.
36847         * MODULES.html.sh (File system functions): Mention it.
36848         * modules/areadlinkat-with-size-tests: New test.
36849         * tests/test-areadlinkat-with-size.c: New file.
36850
36851         xreadlinkat: new module
36852         * modules/xreadlinkat: New module.
36853         * lib/xreadlinkat.c (xreadlinkat): New file.
36854         * lib/xreadlink.h (xreadlinkat): Declare it.
36855         * MODULES.html.sh (File system functions): Mention it.
36856
36857         areadlinkat: new module
36858         * lib/at-func.c (FUNC_FAIL): New define.
36859         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
36860         * modules/areadlinkat: New module.
36861         * lib/linkat.c (areadlinkat): Move...
36862         * lib/areadlinkat.c (areadlinkat): ...to new file.
36863         * lib/areadlink.h (areadlinkat): Declare it.
36864         * modules/linkat (Depends-on): Add areadlinkat.
36865         * MODULES.html.sh (File system functions): Mention it.
36866         * modules/areadlinkat-tests: New test.
36867         * tests/test-areadlinkat.c: New file.
36868
36869         areadlink, areadlink-with-size: add tests
36870         * modules/areadlink-tests: New test.
36871         * modules/areadlink-with-size-tests: Likewise.
36872         * tests/test-areadlink.h: New file.
36873         * tests/test-areadlink.c: Likewise.
36874         * tests/test-areadlink-with-size.c: Likewise.
36875
36876         maint: minor cleanups
36877         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
36878         _UNUSED_PARAMETER_ instead.
36879         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
36880         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
36881         * modules/linkat-tests (Files): Distribute test-link.h.
36882
36883         openat, utimens: whitespace cleanup
36884         * lib/openat.c: Prefer space throughout, rather than mix of 8
36885         spaces vs. tabs.
36886         * lib/at-func.c: Likewise.
36887         * lib/utimens.c: Likewise.
36888
36889         openat: avoid using wrong fd
36890         * lib/openat.c (openat_permissive): Reject user's fd if saving the
36891         working directory chooses same fd.
36892         * lib/at-func.c (AT_FUNC_NAME): Likewise.
36893
36894         mkdir, mkdirat: fix cygwin 1.5.x bug
36895         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
36896         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
36897         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
36898         bug.
36899         (gl_PREREQ_MKDIR): Delete unused macro.
36900         * modules/mkdir (Files): Track file rename.
36901         (configure.ac): Update macro name.
36902         * modules/openat (Depends-on): Add mkdir.
36903         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
36904
36905         mkdir, mkdirat: add tests
36906         * modules/mkdir-tests: New test.
36907         * tests/test-mkdir.h: New file.
36908         * tests/test-mkdir.c: Likewise.
36909         * tests/test-mkdirat.c: Likewise.
36910         * modules/openat-tests (Files): Add new files.
36911         (Makefile.am): Run new test.
36912
36913 2009-10-06  Eric Blake  <ebb9@byu.net>
36914
36915         doc: tweak *at function documentation
36916         * doc/posix-functions/faccessat.texi (faccessat): Mention
36917         known issue with replacement.
36918         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
36919         * doc/posix-functions/linkat.texi (linkat): Likewise.
36920         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36921         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36922         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36923         * doc/posix-functions/renameat.texi (renameat): Likewise.
36924         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36925
36926         openat: fix GNU/Hurd bug in unlinkat
36927         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
36928         broken.
36929         * doc/posix-functions/unlink.texi (unlink): Document this.
36930         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
36931
36932         fdopendir: fix GNU/Hurd bug
36933         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
36934         allowing non-directory fds.
36935         * lib/fdopendir.c (rpl_fdopendir): Work around it.
36936         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36937         * modules/dirent (Makefile.am): Substitute it.
36938         * lib/dirent.in.h (fdopendir): Declare replacement.
36939         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
36940         * tests/test-fdopendir.c (main): Test something other than
36941         /dev/null, since on Hurd that behaves like a directory.
36942
36943         test-symlink: port to GNU/Hurd
36944         * tests/test-symlink.h (test_symlink): Relax expected errno.
36945
36946         doc: tweak more cygwin information
36947         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
36948         now compatible with glibc.
36949         * doc/posix-functions/getopt.texi (getopt): Likewise.
36950
36951         getopt-gnu: add another test
36952         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
36953         guarantee behavior relied on by m4.
36954         * tests/test-getopt.c (main): Use it.
36955         * modules/getopt-posix-tests (Depends-on): Add setenv.
36956         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
36957
36958         getopt: fix compilation on darwin
36959         * lib/getopt.in.h (includes): Leave breadcrumbs during system
36960         include.
36961         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
36962         Reported by Ludovic Courtès.
36963
36964 2009-10-06  Bruno Haible  <bruno@clisp.org>
36965
36966         * modules/size_max (Description): Discourage its use.
36967         Reported by Simon Josefsson.
36968
36969 2009-10-06  Jim Meyering  <meyering@redhat.com>
36970
36971         linkat: avoid compilation failure
36972         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
36973
36974 2009-10-05  Eric Blake  <ebb9@byu.net>
36975
36976         linkat: support Linux 2.6.17
36977         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
36978         linkat on Linux, but allow cache variable override.
36979         * lib/linkat.c (rpl_linkat): Define override.
36980         * modules/linkat (Depends-on): Add symlinkat.
36981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
36982         * modules/unistd (Makefile.am): Substitute it.
36983         * lib/unistd.in.h (linkat): Declare replacement.
36984         Reported by Pádraig Brady.
36985
36986         quotearg: port test to systems with C.UTF-8 locale
36987         * tests/test-quotearg.c (struct result_strings): Add another
36988         member, differentiating between C.ASCII and C.UTF-8 handling.
36989         (compare_strings): Add parameter.
36990         (main): Adjust all callers.
36991
36992         getopt: avoid clash with FreeBSD _getopt_internal
36993         * lib/getopt.in.h (_getopt_internal): Override the name.
36994         * lib/getopt_int.h (includes): Pick up any overrides.
36995         Reported by Reuben Thomas.
36996
36997         hash: allow C89 compilation
36998         * lib/hash.c (check_tuning): Move declaration before statement.
36999         Reported by Reuben Thomas.
37000
37001 2009-10-05  Karl Berry  <karl@gnu.org>
37002
37003         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
37004
37005 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
37006             Bruno Haible  <bruno@clisp.org>
37007
37008         * lib/uname.c (uname): Use a table-driven algorithm to compute
37009         Windows NT versions.
37010
37011 2009-10-04  Bruno Haible  <bruno@clisp.org>
37012
37013         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
37014         program_invocation_short_name.
37015         * modules/progname (configure.ac): Test for presence of
37016         program_invocation_short_name.
37017         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37018
37019 2009-10-04  Bruno Haible  <bruno@clisp.org>
37020
37021         * lib/progname.c (set_program_name): Fix comment.
37022         Reported by Jim Meyering.
37023
37024 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37025             Bruno Haible  <bruno@clisp.org>
37026
37027         * lib/uname.c: Include <string.h>.
37028         (uname): Do only one call to GetVersionEx in the common case.
37029
37030 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37031             Bruno Haible  <bruno@clisp.org>
37032
37033         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
37034         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
37035         (uname): Add support for Windows CE and various non-x86 CPU types.
37036
37037 2009-10-03  Bruno Haible  <bruno@clisp.org>
37038
37039         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
37040         invocation to tests/configure.ac.
37041         Reported by Ian Beckwith <ianb@erislabs.net>.
37042
37043 2009-10-02  Eric Blake  <ebb9@byu.net>
37044
37045         fchdir: avoid compiler warning
37046         * lib/fchdir.c (canonicalize_file_name)
37047         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
37048
37049         test-open: support mingw errno values
37050         * tests/test-open.h (test_open): Relax test.
37051         * tests/test-fopen.h (test_fopen): Likewise.
37052         * tests/test-openat-safer.c (main): Likewise.
37053
37054         open: fix opening directory on mingw
37055         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
37056
37057         test-open: on GNU/Hurd, /dev/null is a directory
37058         * tests/test-fopen.h (main): Rename...
37059         (test_fopen): ...to this.  Use a guaranteed non-directory when
37060         confirming open behavior on trailing slash.
37061         * tests/test-openat-safer.c (main): Likewise.
37062         * tests/test-open.h (main): Likewise....
37063         (test_open): ...to this.
37064         * tests/test-fopen.c (main): Adjust caller.
37065         * tests/test-fopen-safer.c (main): Likewise.
37066         * tests/test-open.c (main): Likewise.
37067         * tests/test-fcntl-safer.c (main): Likewise.
37068         Reported by Samuel Thibault.
37069
37070         rename, fchdir: don't ignore chdir failure
37071         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
37072         * lib/rename.c (rpl_rename) [W32]: Likewise.
37073         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
37074         an empty destination directory if source cannot be renamed,
37075         although there is still possibility for failure.
37076         * doc/posix-functions/rename.texi (rename): Document the race.
37077         Reported by Jim Meyering.
37078
37079         maint: cleanup whitespace in recent commits
37080         * lib/rename.c (rpl_rename): Remove tabs.
37081         * tests/test-link.h (test_link): Likewise.
37082         * lib/fchdir.c (get_name): Likewise.
37083         Reported by Jim Meyering.
37084
37085 2009-10-02  Ben Pfaff  <blp@gnu.org>
37086
37087         relocatable-prog-wrapper: Add missing dependency on
37088         double-slash-root.
37089         * modules/relocatable-prog-wrapper: Add dependency.
37090         Reported by Ian Beckwith <ianb@erislabs.net>.
37091
37092 2009-10-02  Eric Blake  <ebb9@byu.net>
37093
37094         renameat: fix Solaris bugs
37095         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
37096         needed fixing.
37097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
37098         * modules/stdio (Makefile.am): Substitute it.
37099         * lib/stdio.in.h (renameat): Declare replacement.
37100         * lib/renameat.c (rpl_renameat): Implement fix.
37101
37102         renameat: new module
37103         * modules/renameat: New file.
37104         * lib/renameat.c (renameat): Likewise.
37105         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
37106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37107         * modules/stdio (Makefile.am): Substitute them.
37108         * lib/stdio.in.h (renameat): Declare it.
37109         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37110         * doc/posix-functions/renameat.texi (renameat): Likewise.
37111         * modules/renameat-tests: New test.
37112         * tests/test-renameat.c: Likewise.
37113
37114         rename: fix mingw bugs
37115         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
37116         directory overwrite bugs.
37117
37118         rename: fix another cygwin 1.5 bug
37119         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
37120         checks.
37121         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
37122         unnecessary cygwin workarounds.  Also work around bug with moving
37123         full directory onto an empty one.
37124         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
37125
37126         rename-dest-slash: merge into rename module
37127         * modules/rename-dest-slash (Status): Mark obsolete.
37128         (Depends-on): Add rename.
37129         (Files): Let rename do it all.
37130         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
37131         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
37132         * m4/rename-dest-slash.m4: ...so this file can be deleted.
37133         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
37134         * lib/rename.c (rpl_rename): Update comments.
37135
37136         rename: fix cygwin 1.5.x bugs
37137         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
37138         * lib/rename.c (rpl_rename): Work around them.
37139         * modules/rename (Depends-on): Add same-inode.
37140
37141         rename: fix Solaris 10 bug
37142         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37143         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
37144         was the only bug.
37145
37146         rename: fix Solaris 9 bug
37147         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
37148         on non-directory.  Avoid calling exit.
37149         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
37150         strdup.
37151         * modules/rename-tests (Depends-on): Drop lstat.
37152         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37153         (gl_PREREQ_RENAME): Delete unused macro.
37154
37155         rename-dest-slash: fix NetBSD bug
37156         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
37157         links.
37158         * modules/rename-dest-slash (Depends-on): Add same-inode.
37159
37160         rename-tests: new test, exposes several platform bugs
37161         * modules/rename-tests: New file.
37162         * tests/test-rename.h: Likewise.
37163         * tests/test-rename.c: Likewise.
37164         * doc/posix-functions/rename.texi (rename): Improve documentation,
37165         including bugs that will eventually be fixed in gnulib.
37166
37167 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
37168
37169         * lib/uname.c: Include <stdlib.h>
37170         (uname): Assume version info is available.
37171
37172 2009-10-02  Jim Meyering  <meyering@redhat.com>
37173
37174         gnu-web-doc-update: correct --help output
37175         * build-aux/gnu-web-doc-update: Make --help output relevant.
37176
37177         gnu-web-doc-update: add standard options
37178         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
37179
37180         gnu-web-doc-update: New module.
37181         Use this script to automatically update the on-line web documentation
37182         for your GNU project at http://www.gnu.org/software/$pkg/manual/
37183         * modules/gnu-web-doc-update: New file, from coreutils.
37184         * build-aux/gnu-web-doc-update: New script.
37185
37186 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
37187
37188         link: LoadLibrary is not needed.
37189         * lib/link.c: Use GetModuleHandle.
37190
37191 2009-10-01  Eric Blake  <ebb9@byu.net>
37192
37193         getopt: bump serial number
37194         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
37195         change.
37196
37197         tests: tighten link, rmdir, and remove tests
37198         * tests/test-link.h (includes): No need to use <config.h> here.
37199         Clean up if directory hard link was created, otherwise test for
37200         trailing '.'.
37201         * tests/test-linkat.c (main): Simplify.
37202         * tests/test-remove.c (main): Enhance test for trailing '.'.
37203         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37204
37205 2009-10-01  Jim Meyering  <meyering@redhat.com>
37206
37207         maint.mk: requiring "make major" was annoying, for a "minor" release.
37208         What is intended is "stable", to contrast with alpha and beta,
37209         so require "make stable", not "make major".
37210         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
37211         (get_tool_versions): Likewise.
37212         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
37213
37214 2009-09-30  Ben Pfaff  <blp@gnu.org>
37215
37216         Fix broken build of replacement for Windows tmpfile().
37217         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
37218         flags argument added along with the 'mkostemp' module.
37219
37220 2009-09-28  Bruno Haible  <bruno@clisp.org>
37221
37222         Avoid identifier clash with POSIX function 'remove' defined as a macro.
37223         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
37224         to 'remove_elt'.
37225         (gl_list_remove): Update.
37226         * lib/gl_list.c (gl_list_remove): Update.
37227         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
37228         to 'remove_elt'.
37229         (gl_oset_remove): Update.
37230         * lib/gl_list.c (gl_oset_remove): Update.
37231         Reported by Eric Blake.
37232
37233 2009-09-28  Eric Blake  <ebb9@byu.net>
37234
37235         doc: mention yet more cygwin 1.7 status
37236         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
37237         cygwin.
37238         * doc/glibc-functions/execvpe.texi (execvpe): New file.
37239         * doc/gnulib.texi (Glibc unistd.h): Mention it.
37240
37241         argp: fix test failure
37242         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
37243         that are not upper-case.  Pass correct range to tolower.
37244
37245 2009-09-27  Jim Meyering  <meyering@redhat.com>
37246
37247         test-yesno: work around sparc-dash here-document infelicity
37248         Without this change, the literal \177 byte in a here document
37249         would make dash 0.5.5.1-3 access uninitialized memory.
37250         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
37251         Instead, use a marker, "@", and filter through tr to create the desired
37252         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
37253
37254 2009-09-27  Bruno Haible  <bruno@clisp.org>
37255
37256         Disable untested support for new flavours of ACLs on AIX.
37257         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
37258         progress.
37259         * lib/set-mode-acl.c (qset_acl): Likewise.
37260
37261 2008-12-07  Bruno Haible  <bruno@clisp.org>
37262
37263         Add support for new flavours of ACLs on AIX. (Untested.)
37264         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
37265         (file_has_acl): Add support for newer AIX.
37266         * lib/set-mode-acl.c (qset_acl): Likewise.
37267         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
37268         Rainer Tammer <tammer@tammer.net>.
37269
37270 2009-09-26  Eric Blake  <ebb9@byu.net>
37271
37272         argp: fix compilation of getopt
37273         * lib/getopt.in.h (includes): Use different guard than glibc.
37274         Reported by Sergey Poznyakoff.
37275
37276         doc: mention more cygwin 1.7 status
37277         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
37278         bug.
37279         * doc/posix-functions/execl.texi (execl): Likewise.
37280         * doc/posix-functions/execle.texi (execle): Likewise.
37281         * doc/posix-functions/execlp.texi (execlp): Likewise.
37282         * doc/posix-functions/execv.texi (execv): Likewise.
37283         * doc/posix-functions/execve.texi (execve): Likewise.
37284         * doc/posix-functions/execvp.texi (execvp): Likewise.
37285         * doc/glibc-functions/canonicalize_file_name.texi
37286         (canonicalize_file_name): Cygwin 1.7 now provides this.
37287         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
37288         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
37289         on AT_SYMLINK_NOFOLLOW.
37290
37291 2009-09-24  Eric Blake  <ebb9@byu.net>
37292
37293         test-linkat: make test more robust
37294         * tests/test-linkat.c (main): Avoid collision with EEXIST.
37295
37296         getopt: fix inclusion guards for cygwin
37297         * modules/getopt-posix (Depends-on): Add include-next.
37298         (Makefile.am): Substitute more items in replacement header.
37299         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
37300         <getopt.h>.
37301         * lib/getopt.in.h (includes): Use split inclusion guard, and
37302         prefer <getopt.h> over include <unistd.h> when one is present.
37303         (option): Also override name of 'struct option'.
37304
37305         same-inode: revert prior change; it is not yet ready
37306         * NEWS: Undo mention of this change.
37307         * lib/same-inode.h (same-inode.h): Undo tri-state change.
37308         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37309         * lib/cycle-check.c (cycle_check): Likewise.
37310         * lib/same.c (same_name): Likewise.
37311         * lib/at-func2.c (at_func2): Likewise.
37312
37313 2009-09-23  Eric Blake  <ebb9@byu.net>
37314
37315         linkat: new module
37316         * modules/linkat: New file.
37317         * lib/at-func2.c (at_func2): Likewise.
37318         * lib/linkat.c (linkat): Likewise.
37319         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
37320         * lib/openat-priv.h (at_func2): Add declaration.
37321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37322         * modules/unistd (Makefile.am): Substitute them.
37323         * lib/unistd.in.h (linkat): Declare it.
37324         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37325         * doc/posix-functions/linkat.texi (linkat): Likewise.
37326         * doc/posix-functions/link.texi (link): Tweak wording.
37327         * tests/test-link.c (main): Move guts...
37328         * tests/test-link.h (test_link): ...into new file.
37329         * modules/linkat-tests: New test.
37330         * tests/test-linkat.c: Likewise.
37331         * modules/link-tests (Files): Ship new file.
37332         (Depends-on): Add stdbool.
37333
37334         dirname: add library-safe mdir_name
37335         * lib/dirname.h (mdir_name): New prototype.
37336         * lib/dirname.c (dir_name): Move guts...
37337         (mdir_name): ...to new function that avoids xalloc_die.
37338
37339         fchdir: another mingw fix
37340         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
37341         * lib/fchdir.c (get_name): New helper method; skips canonicalize
37342         on mingw (where it has not yet been ported), and make it optional
37343         elsewhere.
37344         (_gl_register_fd): Use it.
37345
37346         same-inode: make SAME_INODE tri-state, to port to mingw
37347         * NEWS: Mention this change.
37348         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
37349         st_ino always being 0.
37350         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37351         * lib/cycle-check.c (cycle_check): Likewise.
37352         * lib/same.c (same_name): Likewise.
37353
37354         lstat: avoid mingw compilation error
37355         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
37356         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
37357         lstat ourselves.
37358         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
37359         was adequate.
37360         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
37361         the checks for lstat.
37362         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
37363
37364         link: fix test failure on Solaris 9
37365         * lib/link.c (rpl_link): Don't assume link will catch bogus
37366         trailing slash on source.
37367
37368         test-symlinkat: enhance test
37369         * tests/test-readlink.c (main): Move guts...
37370         * tests/test-readlink.h (test_readlink): ...into new file.
37371         * tests/test-symlink.c (main): Move guts...
37372         * tests/test-symlink.h (test_symlink): ...into new file.
37373         * tests/test-symlinkat.c (main): Use new files for further
37374         coverage.
37375         (do_symlink, do_readlink): New helper functions.
37376         * modules/symlink-tests (Files): Ship new file.
37377         (Depends-on): Add stdbool.
37378         * modules/readlink-tests (Files): Ship new file.
37379         (Depends-on): Add stdbool.
37380         * modules/symlinkat-tests (Files): Use new files.
37381
37382 2009-09-23  Eric Blake  <ebb9@byu.net>
37383
37384         readlink: document portability issue with symlink length
37385         * doc/posix-functions/lstat.texi (lstat): Mention that some file
37386         systems have bogus st_size on symlinks, and mention the
37387         areadlink-with-size module.
37388         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37389         * doc/posix-functions/readlink.texi (readlink): Mention the
37390         areadlink module, and ERANGE failure.
37391         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37392         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
37393
37394         readlink: fix Solaris 9 bug with trailing slash
37395         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
37396         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
37397         * doc/posix-functions/readlink.texi (readlink): Document this.
37398         * modules/readlink-tests: New test.
37399         * tests/test-readlink.c: Likewise.
37400
37401         readlink: fix cygwin 1.5.x bug with return type
37402         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
37403         * lib/unistd.in.h (readlink): Use ssize_t.
37404         * lib/readlink.c (readlink): Likewise.
37405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37406         * modules/unistd (Makefile.am): Substitute it.
37407         * lib/unistd.in.h (readlink): Declare replacement.
37408         * doc/posix-functions/readlink.texi (readlink): Document this.
37409
37410         symlink: use throughout gnulib
37411         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
37412         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
37413         symlink is not used.
37414         * modules/symlinkat (Depends-on): Add symlink.
37415         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37416         * modules/canonicalize-tests (Depends-on): Likewise.
37417         * modules/lstat-tests (Depends-on): Likewise.
37418         * modules/openat-tests (Depends-on): Likewise.
37419         * modules/remove-tests (Depends-on): Likewise.
37420         * modules/rmdir-tests (Depends-on): Likewise.
37421         * modules/unlink-tests (Depends-on): Likewise.
37422         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
37423         * tests/test-canonicalize.c (symlink): Likewise.
37424         * tests/test-fstatat.c (symlink): Likewise.
37425         * tests/test-lstat.c (symlink): Likewise.
37426         * tests/test-remove.c (symlink): Likewise.
37427         * tests/test-rmdir.c (symlink): Likewise.
37428         * tests/test-unlink.c (symlink): Likewise.
37429         * tests/test-unlinkat.c (symlink): Likewise.
37430
37431         symlink: new module, for Solaris 9 bug
37432         * modules/symlink: New file.
37433         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
37434         * lib/symlink.c: Likewise.
37435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37436         * modules/unistd (Makefile.am): Substitute them.
37437         * lib/unistd.in.h (symlink): Declare replacement.
37438         * MODULES.html.sh (File system functions): Mention it.
37439         * doc/posix-functions/symlink.texi (symlink): Likewise.
37440         * modules/symlink-tests: New test.
37441         * tests/test-symlink.c: Likewise.
37442
37443 2009-09-23  Bruno Haible  <bruno@clisp.org>
37444
37445         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
37446         when needed.
37447         Test case: gnulib-tool --import --with-tests atexit inttypes.
37448         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
37449
37450 2009-09-23  Bruno Haible  <bruno@clisp.org>
37451
37452         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
37453         subcommand, not in a subshell.
37454
37455 2009-09-22  Eric Blake  <ebb9@byu.net>
37456
37457         unistd: sort replacement declarations
37458         * lib/unistd.in.h: Sort declarations.
37459
37460         open, openat: minor optimization
37461         * lib/open.c (open): If open succeeded, len is non-zero.
37462         * lib/openat.c (rpl_openat): Likewise.
37463
37464         link-follow: ensure correct result
37465         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
37466         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
37467         distinguish between possible failures.
37468
37469 2009-09-21  Eric Blake  <ebb9@byu.net>
37470
37471         fts: avoid compiler warning
37472         * lib/fts.c (dirent_inode_sort_may_be_useful)
37473         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
37474
37475 2009-09-19  Bruno Haible  <bruno@clisp.org>
37476
37477         * lib/progreloc.c (canonicalize_file_name): New declaration.
37478
37479 2009-09-19  Eric Blake  <ebb9@byu.net>
37480
37481         link: fix quoting
37482         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
37483
37484         openat: fix openat bugs on Solaris 9
37485         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
37486         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
37487         * modules/openat (Depends-on): Add open.
37488         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
37489         * modules/fcntl-h (Makefile.am): Substitute it.
37490         * lib/fcntl.in.h (openat): Declare replacement.
37491         * doc/posix-functions/openat.texi (openat): Document this.
37492
37493         openat: move fstatat and unlinkat into correct files
37494         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
37495         compiled.
37496         * lib/openat.c (fstatat, unlinkat): Move...
37497         * lib/fstatat.c (fstatat): ...into correct files.
37498         * lib/unlinkat.c (unlinkat): Likewise.
37499
37500         openat: fix unlinkat bugs on Solaris 9
37501         * lib/unlinkat.c (unlinkat): New file.
37502         * modules/openat (Depends-on): Add unlink.
37503         (Files): Distribute it.
37504         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
37505         trailing slash behavior is broken.
37506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37507         * modules/unistd (Makefile.am): Substitute it.
37508         * lib/unistd.in.h (unlinkat): Declare replacement.
37509         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
37510
37511         openat: fix fstatat bugs on Solaris 9
37512         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
37513         stat.
37514         * doc/posix-functions/fstatat.texi (fstatat): Document this.
37515
37516         test-unlinkat: enhance test, to expose Solaris 9 bug
37517         * tests/test-unlink.c (main): Factor guts...
37518         * tests/test-unlink.h (test_rmdir_func): ...into new file.
37519         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
37520         * tests/test-rmdir.c (main): Adjust caller.
37521         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
37522         (unlinker): New helper function.
37523         (rmdirat): Enhance check.
37524         * modules/rmdir-tests (Depends-on): Add stdbool.
37525         * modules/unlink-tests (Depends-on): Likewise.
37526         (Files): Add test-unlink.h.
37527         * modules/openat-tests (Files): Likewise.
37528         (Depends-on): Add unlinkdir.
37529
37530         test-fstatat: new test, to expose Solaris 9 bugs
37531         * tests/test-stat.c (main): Factor guts...
37532         * tests/test-stat.h (test_stat_func): ...into new file.
37533         * tests/test-lstat.c (main): Factor guts...
37534         * tests/test-lstat.h (test_lstat_func): ...into new file.
37535         * tests/test-fstatat.c: New file.
37536         * modules/stat-tests (Files): Add test-stat.h.
37537         * modules/lstat-tests (Files): Add test-lstat.h.
37538         (Depends-on): Add stdbool.
37539         * modules/openat-tests (Depends-on): Add pathmax.
37540         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
37541         (Makefile.am): Run new test.
37542
37543         remove: new module, for mingw and Solaris 9 bugs
37544         * modules/remove: New file.
37545         * lib/remove.c: Likewise.
37546         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
37547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37548         * modules/stdio (Makefile.am): Use them.
37549         * lib/stdio.in.h (remove): Declare replacement.
37550         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37551         * doc/posix-functions/remove.texi (remove): Likewise.
37552         * modules/remove-tests: New test.
37553         * tests/test-remove.c: Likewise.
37554
37555         unlink: new module, for Solaris 9 bug
37556         * modules/unlink: New file.
37557         * lib/unlink.c: Likewise.
37558         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
37559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37560         * modules/unistd (Makefile.am): Use them.
37561         * lib/unistd.in.h (stat): Declare replacement.
37562         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37563         * doc/posix-functions/unlink.texi (unlink): Likewise.
37564         * modules/unlink-tests: New test.
37565         * tests/test-unlink.c: Likewise.
37566
37567         lstat: fix Solaris 9 bug
37568         * lib/lstat.c (lstat): Also check for trailing slash on
37569         non-symlink, non-directories.  Use stat module to simplify logic.
37570         * doc/posix-functions/lstat.texi (lstat): Document it.
37571         * modules/lstat-tests (Depends-on): Add errno, same-inode.
37572         (configure.ac): Check for symlink.
37573         * tests/test-lstat.c (main): Add more tests.
37574
37575         stat: add as dependency to other modules
37576         * modules/chown (Depends-on): Add stat.
37577         * modules/euidaccess (Depends-on): Likewise.
37578         * modules/fchdir (Depends-on): Likewise.
37579         * modules/isdir (Depends-on): Likewise.
37580         * modules/link (Depends-on): Likewise.
37581         * modules/lstat (Depends-on): Likewise.
37582         * modules/mkdir-p (Depends-on): Likewise.
37583         * modules/modechange (Depends-on): Likewise.
37584         * modules/open (Depends-on): Likewise.
37585         * modules/readlink (Depends-on): Likewise.
37586         * modules/same (Depends-on): Likewise.
37587
37588         stat: fix Solaris 9 bug
37589         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
37590         slash.
37591         * lib/stat.c (rpl_stat): Work around it.
37592         * doc/posix-functions/stat.texi (stat): Update documentation.
37593
37594         stat: new module, for mingw bug
37595         * modules/stat: New file.
37596         * lib/stat.c: Likewise.
37597         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37598         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37599         * modules/sys_stat (Makefile.am): Use them.
37600         * lib/sys_stat.in.h (stat): Declare replacement.
37601         * lib/openat.c (fstatat): Deal with lstat and stat being function
37602         macros.
37603         * modules/openat (Depends-on): Add inline.
37604         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37605         * doc/posix-functions/stat.texi (stat): Likewise.
37606         * modules/stat-tests: New test.
37607         * tests/test-stat.c: Likewise.
37608
37609 2009-09-19  Jim Meyering  <meyering@redhat.com>
37610
37611         syntax-check: detect unnecessary inclusion of canonicalize.h
37612         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
37613
37614 2009-09-19  Eric Blake  <ebb9@byu.net>
37615
37616         canonicalize-lgpl: adjust clients to use correct header
37617         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37618         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
37619         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
37620         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
37621         * lib/progreloc.c (includes): Likewise.
37622
37623 2009-09-19  Jim Meyering  <meyering@redhat.com>
37624
37625         test-posixtm.c: correct a comment
37626         * tests/test-posixtm.c: Correct first-line comment.
37627         Spotted by Eric Blake.
37628
37629 2009-09-16  Jim Meyering  <meyering@redhat.com>
37630
37631         posixtm-tests: make T const-correct; add a test case
37632         * tests/test-posixtm.c (T): Declare const.
37633         Add a test for -(2^31+1).
37634         Remove useless can-succeed-only-in-2002 test.
37635
37636         posixtm-tests: adjust the sole failing test
37637         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
37638         expected output matches what mktime now produces.  Cross-checked via
37639         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
37640
37641         posixtm: move #ifdef'd tests into a new module
37642         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
37643         * tests/test-posixtm.c: ... this new file.
37644         * modules/posixtm-tests: New module.
37645
37646 2009-09-19  Eric Blake  <ebb9@byu.net>
37647
37648         openat: simplify use of at-func.c
37649         * lib/at-func.c (includes): Include prerequisites here, to
37650         simplify requirements on client files.
37651         * lib/openat-priv.h: Add double-inclusion guard.
37652         * lib/faccessat.c (includes): Simplify.
37653         * lib/fchmodat.c (includes): Likewise.
37654         * lib/fchownat.c (includes): Likewise.
37655         * lib/mkdirat.c (includes): Likewise.
37656         * lib/mkfifoat.c (includes): Likewise.
37657         * lib/symlinkat.c (includes): Likewise.
37658
37659         openat: allow return of fd 0
37660         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
37661         * modules/save-cwd (Depends-on): Replace fcntl-safer with
37662         unistd-safer.
37663         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
37664         <fcntl.h>; this module does not leak fds.
37665         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
37666         must be allowed to return 0, leaving openat_safer to add the
37667         safety.
37668         (openat_permissive): Avoid writing to just-opened fd 2 if
37669         restoring the current directory fails.
37670         * lib/openat-die.c (openat_restore_fail): Add comment.
37671         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
37672         (save_cwd): Guarantee safe fd, but without use of open_safer.
37673         * tests/test-openat.c: New test.
37674         * modules/openat-tests (Files, Makefile.am): Distribute and build
37675         new file.
37676
37677         relocatable-prog-wrapper: fix build
37678         * modules/relocatable-prog-wrapper (Files): Update name of
37679         canonicalize m4 file, broken on 2009-09-17.
37680         Reported by emad hajjar <aleppos@hotmail.com>.
37681
37682 2009-09-19  Bruno Haible  <bruno@clisp.org>
37683
37684         * lib/safe-alloc.h: Use the standard header with GPL copyright.
37685         * lib/safe-alloc.c: Likewise.
37686         Reported by Ian Beckwith <ianb@erislabs.net>.
37687
37688 2009-09-18  Bruno Haible  <bruno@clisp.org>
37689
37690         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
37691         Reported by <erobles@sensacd.com.mx>.
37692
37693 2009-09-17  Eric Blake  <ebb9@byu.net>
37694
37695         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
37696         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
37697         slashes when checking if last component is missing.
37698         * tests/test-canonicalize.c (main): Test this.
37699
37700         canonicalize, canonicalize-lgpl: honor // if distinct from /
37701         * modules/canonicalize (Files): Add double-slash-root.m4.
37702         * modules/canonicalize-lgpl (Files): Likewise.
37703         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37704         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
37705         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
37706         fallback definition.
37707         (canonicalize_filename_mode): Use it to protect //.
37708         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
37709         (__realpath): Likewise.
37710         * tests/test-canonicalize.c (main): Test this.
37711         * tests/test-canonicalize-lgpl.c (main): Likewise.
37712         * modules/canonicalize-tests (Depends-on): Add same-inode.
37713         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37714
37715         canonicalize-lgpl: fix glibc bug with trailing slash
37716         * m4/canonicalize-lgpl.m4: Move contents...
37717         * m4/canonicalize.m4: ...here.
37718         (gl_CANONICALIZE_LGPL): Factor realpath check...
37719         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
37720         glibc 2.3.5 bug, fixed 2005-04-27.
37721         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
37722         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
37723         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
37724         * modules/canonicalize-lgpl (Files): Manage file rename.
37725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37726         * modules/stdlib (Makefile.am): Substitute witness.
37727         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
37728         is needed.
37729         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
37730         replacement is required.
37731         * lib/canonicalize.c (canonicalize_file_name): Likewise.
37732         * doc/glibc-functions/canonicalize_file_name.texi
37733         (canonicalize_file_name): Document this.
37734         * doc/posix-functions/realpath.texi (realpath): Likewise.
37735
37736         canonicalize-lgpl: reject non-directory with trailing slash
37737         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
37738         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
37739         catches failures in glibc 2.3.5.
37740         * tests/test-canonicalize.c (main): Likewise.
37741
37742         canonicalize-lgpl: use native realpath if it works
37743         * lib/canonicalize-lgpl.c (realpath): Guard with
37744         FUNC_REALPATH_WORKS.
37745         * lib/stdlib.in.h (realpath): Make declaration optional based on
37746         HAVE_REALPATH.
37747         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
37748         native realpath works.
37749         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37750         * modules/stdlib (Makefile.am): Substitute witness.
37751
37752         canonicalize, canonicalize-lgpl: use <stdlib.h>
37753         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
37754         (Include): Mention <stdlib.h>.
37755         (configure.ac): Mention functions we provide.
37756         * modules/canonicalize (configure.ac): Likewise.
37757         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
37758         realpath if canonicalize_file_name is missing.
37759         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
37760         * modules/stdlib (Makefile.am): Substitute witnesses.
37761         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
37762         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
37763         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
37764         * NEWS: Document this.
37765         * doc/glibc-functions/canonicalize_file_name.texi
37766         (canonicalize_file_name): Likewise.
37767         * doc/posix-functions/realpath.texi (realpath): Likewise.
37768         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
37769
37770         test-canonicalize: consolidate into single C program
37771         * tests/test-canonicalize.sh: Delete; move setup into...
37772         * tests/test-canonicalize.c (main): ...the program, making it
37773         easier to run in debugger.  Add some tests.
37774         * modules/canonicalize-tests (Files): Remove unused file.
37775         (Depends-on): Add progname.
37776         (configure.ac, Makefile.am): Simplify.
37777
37778         test-canonicalize-lgpl: consolidate into single C program
37779         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
37780         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
37781         easier to run in debugger.  Add some tests.
37782         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
37783         (configure.ac, Makefile.am): Simplify.
37784
37785         canonicalize: avoid resolvepath
37786         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
37787         unnecessary checks.
37788         * lib/canonicalize.c (includes): Simplify.
37789         (canonicalize_file_name): Drop resolvepath implementation.
37790         * modules/canonicalize (Depends-on): Drop filenamecat.
37791
37792         canonicalize: don't lose errno
37793         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
37794         over calls to free.
37795
37796         canonicalize: simplify errno handling
37797         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
37798         assignment.
37799
37800         canonicalize, canonicalize-lgpl: update module dependencies
37801         * modules/canonicalize (Depends-on): Add extensions, lstat,
37802         pathmax, stdlib.
37803         (Files): Drop pathmax.h.
37804         (configure.ac): Adjust macro name.
37805         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
37806         lstat, stdlib, sys_stat.
37807         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
37808         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
37809         extensions.
37810         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
37811         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
37812         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
37813         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
37814         declaration, if available.
37815         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
37816         we can rely on the readlink module.
37817         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
37818         (includes): Use <unistd.h> unconditionally.
37819
37820 2009-09-17  Eric Blake  <ebb9@byu.net>
37821
37822         maint: make Include sections of modules consistent
37823         * modules/alloca: Use only header name; no need to list #include.
37824         * modules/alloca-opt: Likewise.
37825         * modules/arpa_inet: Likewise.
37826         * modules/canon-host: Likewise.
37827         * modules/configmake: Likewise.
37828         * modules/dirent: Likewise.
37829         * modules/eealloc: Likewise.
37830         * modules/environ: Likewise.
37831         * modules/fchdir: Likewise.
37832         * modules/fcntl: Likewise.
37833         * modules/fcntl-h: Likewise.
37834         * modules/gethrxtime: Likewise.
37835         * modules/gettime: Likewise.
37836         * modules/ignore-value: Likewise.
37837         * modules/inet_ntop: Likewise.
37838         * modules/inet_pton: Likewise.
37839         * modules/inttypes: Likewise.
37840         * modules/isnand-nolibm: Likewise.
37841         * modules/isnanf-nolibm: Likewise.
37842         * modules/mbchar: Likewise.
37843         * modules/mbfile: Likewise.
37844         * modules/mbiter: Likewise.
37845         * modules/mbuiter: Likewise.
37846         * modules/netdb: Likewise.
37847         * modules/netinet_in: Likewise.
37848         * modules/nproc: Likewise.
37849         * modules/pagealign_alloc: Likewise.
37850         * modules/poll: Likewise.
37851         * modules/printf-frexp: Likewise.
37852         * modules/pthread: Likewise.
37853         * modules/putenv: Likewise.
37854         * modules/random_r: Likewise.
37855         * modules/relocatable-prog: Likewise.
37856         * modules/search: Likewise.
37857         * modules/select: Likewise.
37858         * modules/selinux-h: Likewise.
37859         * modules/settime: Likewise.
37860         * modules/signal: Likewise.
37861         * modules/size_max: Likewise.
37862         * modules/socklen: Likewise.
37863         * modules/ssize_t: Likewise.
37864         * modules/stdarg: Likewise.
37865         * modules/stdbool: Likewise.
37866         * modules/stddef: Likewise.
37867         * modules/stdint: Likewise.
37868         * modules/stdio: Likewise.
37869         * modules/stdlib: Likewise.
37870         * modules/string: Likewise.
37871         * modules/strings: Likewise.
37872         * modules/sys_file: Likewise.
37873         * modules/sys_ioctl: Likewise.
37874         * modules/sys_select: Likewise.
37875         * modules/sys_socket: Likewise.
37876         * modules/sys_stat: Likewise.
37877         * modules/sys_time: Likewise.
37878         * modules/sys_times: Likewise.
37879         * modules/sys_utsname: Likewise.
37880         * modules/sys_wait: Likewise.
37881         * modules/sysexits: Likewise.
37882         * modules/time: Likewise.
37883         * modules/times: Likewise.
37884         * modules/tmpfile: Likewise.
37885         * modules/trim: Likewise.
37886         * modules/unistd: Likewise.
37887         * modules/wchar: Likewise.
37888         * modules/wctype: Likewise.
37889
37890 2009-09-17  Bruno Haible  <bruno@clisp.org>
37891
37892         Make getdate.y compile on QNX and NetBSD 5 / i386.
37893         * m4/getdate.m4 (gl_GETDATE): Conditionally define
37894         TIME_T_FITS_IN_LONG_INT.
37895         * lib/getdate.y (long_time_t): New type.
37896         (relative_time): Change type of 'seconds' field to long_time_t.
37897         (get_date): Update types of local variables. Check against overflow
37898         during conversion from long_time_t to time_t.
37899         Reported by Matt Kraai <kraai@ftbfs.org>
37900         and Hasso Tepper <hasso@netbsd.org>.
37901
37902 2009-09-17  Bruno Haible  <bruno@clisp.org>
37903
37904         * modules/COPYING: Update copyright years.
37905         * modules/README: Likeiwse.
37906         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
37907         Reported by Ian Beckwith <ianb@erislabs.net>.
37908
37909 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37910
37911         * users.txt: Update references for gnuit package.
37912
37913 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37914
37915         * m4/getdelim.m4: Fix typo in copyright line.
37916
37917 2009-09-17  Bruno Haible  <bruno@clisp.org>
37918
37919         * lib/atoll.c: Use the standard header with GPL copyright.
37920         * lib/argz.in.h: Likewise.
37921         * lib/glob.c: Likewise.
37922         * lib/glob-libc.h: Likewise.
37923         * lib/random_r.c: Likewise.
37924         * lib/siglist.h: Likewise.
37925         * lib/strsignal.c: Likewise.
37926         Reported by Ian Beckwith <ianb@erislabs.net>.
37927
37928 2009-09-17  Eric Blake  <ebb9@byu.net>
37929
37930         rmdir: ensure correct dependency order
37931         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
37932
37933 2009-09-17  Bruno Haible  <bruno@clisp.org>
37934
37935         Disable assertion that fails on NetBSD 5 / i386.
37936         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
37937         Reported by Sam Steingold <sds@gnu.org>
37938         and Hasso Tepper <hasso@netbsd.org>.
37939
37940 2009-09-16  Eric Blake  <ebb9@byu.net>
37941
37942         unlinkdir: port to mingw
37943         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
37944         on which no one can unlink a directory.
37945
37946         stdlib: sort witness names
37947         * modules/stdlib (Makefile.am): Sort replacements.
37948         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37949         * lib/stdlib.in.h: Likewise.
37950
37951         parse-duration-tests: avoid link failure
37952         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
37953         LIBINTL.
37954         Reported by Tom G. Christensen.
37955
37956         openat-tests: ensure unlinkat behaves like rmdir
37957         * tests/test-rmdir.c (main): Factor guts...
37958         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
37959         * modules/rmdir-tests (Files): Ship new file.
37960         * modules/openat-tests: New test.
37961         * tests/test-unlinkat.c: Likewise.
37962
37963         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
37964         * modules/rmdir-errno (Status, Notice): Now obsolete.
37965
37966         rmdir: work around cygwin 1.5.x and mingw bugs
37967         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
37968         * lib/rmdir.c (rmdir): Work around it.
37969         * modules/rmdir (Status, Notice): No longer obsolete.
37970         (Files): Add dos.m4.
37971         (Depends-on): Add unistd.
37972         (configure.ac): Set witnesses.
37973         (License): Relax to LGPLv2+.
37974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
37975         * modules/unistd (Makefile.am): Substitute witnesses.
37976         * lib/unistd.in.h (rmdir): Declare replacement.
37977         * doc/posix-functions/rmdir.texi (rmdir): Document this.
37978         * modules/rmdir-tests: New tests.
37979         * tests/test-rmdir.c: Likewise.
37980
37981 2009-09-15  Eric Blake  <ebb9@byu.net>
37982
37983         fchdir: improve use of replacement functions
37984         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
37985         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
37986         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
37987         REPLACE_CLOSEDIR.
37988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
37989         * modules/sys_stat (Makefile.am): Substitute correct witness.
37990         * modules/dirent (Makefile.am): Likewise.
37991         * modules/unistd (Makefile.am): Likewise.
37992         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
37993         * lib/unistd.in.h (dup): Likewise.
37994         * lib/sys_stat.in.h (fstat): Likewise.
37995
37996         maint: ignore gnulib-tool temp files
37997         * .gitignore: Ignore files created during gnulib-tool --test.
37998
37999 2009-09-13  Jim Meyering  <meyering@redhat.com>
38000
38001         posixtm: don't reject a time that specify "60" as the number of seconds
38002         * lib/posixtm.c (posixtime): The code to reject invalid dates
38003         would also reject a time specified with the .60 suffix.
38004         But POSIX allows that, in order to accommodate leap seconds.
38005         So don't reject it.
38006         (main): Adjust tests accordingly.
38007         * modules/posixtm (Depends-on): Add stpcpy.
38008
38009 2009-09-11  Jim Meyering  <meyering@redhat.com>
38010
38011         announce-gen: include [$release_type] in emitted Subject:
38012         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
38013         e.g., [stable] in the emitted Subject: line.
38014
38015 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38016
38017         Remove obsolete macros from several modules.
38018         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
38019         obsolete Autoconf macros with their modern counterparts.
38020         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
38021         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
38022         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
38023         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
38024         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
38025         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38026         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38027         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38028         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
38029         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
38030         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38031         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38032         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
38033         * m4/sockets.m4 (gl_SOCKETS): Likewise.
38034         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
38035         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
38036         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38037         * m4/time_r.m4 (gl_TIME_R): Likewise.
38038         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
38039         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
38040         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38041
38042         Fix copyright header in build-aux scripts.
38043         * build-aux/git-version-gen: Fix copyright header to match GPLv3
38044         recommendation.
38045         * build-aux/ncftpput-ftp: Likewise.
38046         * build-aux/update-copyright: Likewise.
38047
38048 2009-09-09  Eric Blake  <ebb9@byu.net>
38049
38050         test-link: allow Linux choice of errno
38051         * tests/test-link.c (main): Relax test for alternate error.
38052
38053         strndup: fix improper m4 caching
38054         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
38055         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
38056         (gl_PREREQ_STRNDUP): Delete.
38057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
38058         * modules/string (Makefile.am): Substitute it.
38059         * lib/string.in.h (strndup): Modernize prototype.
38060
38061         getcwd: port to mingw
38062         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
38063         different from the POSIX assumptions made throughout the getcwd
38064         module; fortunately, the mingw getcwd does not need replacement.
38065         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
38066         * modules/getcwd-tests: New test.
38067         * tests/test-getcwd.c: Likewise.
38068
38069         link: fix platform bugs
38070         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
38071         * lib/link.c (link): Work around them.  Fix related mingw bug.
38072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
38073         * modules/unistd (Makefile.am): Substitute it.
38074         * lib/unistd.in.h (link): Declare replacement.
38075         * doc/posix-functions/link.texi (link): Document this.
38076         * modules/link (Depends-on): Add strdup-posix, sys_stat.
38077
38078         test-link: consolidate into single C program, test more cases
38079         * tests/test-link.sh: Delete.
38080         * tests/test-link.c: Test more error conditions.  Exposes bugs on
38081         at least Cygwin and Solaris.
38082         * modules/link-tests (Files): Remove unused file.
38083         (Depends-on): Add errno, sys_stat.
38084         (Makefile.am): Simplify.
38085
38086 2009-09-08  Bruno Haible  <bruno@clisp.org>
38087
38088         Work around towlower, towupper bug on mingw.
38089         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
38090         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
38091         * doc/posix-functions/towlower.texi: Mention the mingw bug.
38092         * doc/posix-functions/towupper.texi: Likewise.
38093         Reported by Eric Blake.
38094
38095 2009-09-08  Jim Meyering  <meyering@redhat.com>
38096
38097         build: don't try to run autoheader if we don't use it
38098         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
38099         is not used in configure.ac.
38100
38101 2009-09-08  Eric Blake  <ebb9@byu.net>
38102
38103         euidaccess: fix compilation error
38104         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
38105
38106         rawmemchr: relax license
38107         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
38108         okay.
38109         Reported by Jim Meyering.
38110
38111         mkfifoat: new module
38112         * modules/mkfifoat: New file.
38113         * lib/mkfifoat.c: Likewise.
38114         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
38115         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38116         * modules/sys_stat (Makefile.am): Use them.
38117         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
38118         * MODULES.html.sh (File system functions): Mention module.
38119         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38120         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38121         * modules/mkfifoat-tests: New test.
38122         * tests/test-mkfifoat.c: Likewise.
38123
38124         strchrnul: relax license
38125         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
38126         okay.
38127         Reported by Jim Meyering.
38128
38129 2009-09-08  Eric Blake  <ebb9@byu.net>
38130
38131         fstatat: fix compilation on Solaris
38132         * lib/fstatat.c (includes): Add fcntl.h.
38133         Reported by Pádraig Brady.
38134
38135 2009-09-07  Eric Blake  <ebb9@byu.net>
38136
38137         rename: modernize replacement
38138         * modules/rename (Depends-on): Add stdio.
38139         (configure.ac): Declare witness.
38140         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
38141         stdio take care of replacement.
38142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38143         * modules/stdio (Makefile.am): Substitute them.
38144         * lib/stdio.in.h (rename): Declare replacement.
38145         * lib/rename.c (includes): Allow cross-compilation to non-windows
38146         machines.
38147         * doc/posix-functions/rename.texi (rename): Improve
38148         documentation.
38149
38150         stdio: sort witness names
38151         * modules/stdio (Makefile.am): Sort replacements.
38152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38153         * lib/stdio.in.h: Likewise.
38154
38155         getcwd: minor cleanups
38156         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
38157         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
38158
38159         openat: provide more convenience names
38160         * modules/faccessat (configure.ac): Add C witness.
38161         * lib/unistd.in.h (readlinkat): Fix typo.
38162         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
38163         convenience wrappers.
38164         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
38165         wrappers in syntax checks.
38166
38167 2009-09-06  Eric Blake  <ebb9@byu.net>
38168
38169         doc: fix comments in recent patches
38170         * lib/faccessat.c: Mention correct function.
38171         * lib/fchmodat.c: Likewise.
38172         * lib/fchownat.c: Likewise.
38173         * lib/symlinkat.c: Likewise.
38174         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
38175         constants.
38176
38177         faccessat, symlinkat: continue cleanup of previous patch
38178         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
38179         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38180         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
38181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
38182         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
38183         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
38184         set.
38185
38186 2009-09-06  Bruno Haible  <bruno@clisp.org>
38187
38188         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
38189         (fstatat): Declare if GNULIB_FSTATAT is set.
38190         (mkdirat): Declare if GNULIB_MKDIRAT is set.
38191         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
38192         (unlinkat): Declare if GNULIB_UNLINKAT is set.
38193         * modules/fcntl-h (Files): Remove m4/openat.m4.
38194         * modules/sys_stat (Files): Remove m4/openat.m4.
38195         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
38196         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
38197         * modules/unistd (Files): Remove m4/openat.m4.
38198         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
38199         GNULIB_OPENAT.
38200         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
38201         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
38202         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
38203         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
38204         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
38205         gl_OPENAT_DEFAULTS.
38206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
38207         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
38208         Don't require gl_OPENAT_DEFAULTS.
38209         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
38210         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
38211         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
38212         (gl_OPENAT_DEFAULTS): Remove macro.
38213
38214 2009-09-06  Bruno Haible  <bruno@clisp.org>
38215
38216         * modules/openat (configure.ac): Remove unneeded witness.
38217
38218 2009-09-06  Bruno Haible  <bruno@clisp.org>
38219
38220         Set errno to ENOSYS when a function is entirely unsupported.
38221         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
38222         EOPNOTSUPP.
38223         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38224         * modules/chown (Depends-on): Remove errno.
38225
38226 2009-09-06  Bruno Haible  <bruno@clisp.org>
38227
38228         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
38229
38230 2009-09-06  Bruno Haible  <bruno@clisp.org>
38231
38232         * lib/sys_stat.in.h: Fix preprocessor command indentation.
38233
38234 2009-09-06  Ben Pfaff  <blp@gnu.org>
38235             Bruno Haible  <bruno@clisp.org>
38236
38237         Work around a glibc bug in strtok_r.
38238         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
38239         Undefine if UNDEFINE_STRTOK_R is set.
38240         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
38241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38242         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
38243         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
38244         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
38245         UNDEFINE_STRTOK_R.
38246         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
38247
38248 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
38249
38250         exclude: minor fix
38251         * lib/exclude.c: Include wctype.h
38252
38253 2009-09-06  Akim Demaille  <demaille@gostai.com>
38254
38255         bootstrap: improve error message
38256         * build-aux/bootstrap (find_tool): Upon failure, report the list
38257         of candidates.
38258         Honor the initial value of the envvar.
38259
38260 2009-09-05  Eric Blake  <ebb9@byu.net>
38261
38262         symlinkat: new module
38263         * modules/symlinkat: New file.
38264         * lib/symlinkat.c: Likewise.
38265         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
38266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38267         * modules/unistd (Makefile.am): Use them.
38268         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
38269         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
38270         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
38271         * MODULES.html.sh (File system functions): Mention module.
38272         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38273         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38274         * modules/symlinkat-tests: New test.
38275         * tests/test-symlinkat.c: Likewise.
38276
38277         test-openat-safer: add more checks
38278         * tests/test-openat-safer.c (main): Check more code paths.
38279
38280 2009-09-05  Jim Meyering  <meyering@redhat.com>
38281
38282         syntax-check: detect unnecessary inclusion of openat.h
38283         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
38284
38285 2009-09-05  Bruno Haible  <bruno@clisp.org>
38286
38287         Support towlower, towupper.
38288         * doc/posix-functions/towlower.texi: Mention module wctype.
38289         * doc/posix-functions/towupper.texi: Likewise.
38290         * lib/wctype.in.h (towlower, towupper): New functions.
38291         * tests/test-wctype.c: Include stdio.h, stdlib.h.
38292         (ASSERT): New macro.
38293         (e): New variable.
38294         (main): Test also towlower, towupper. Test WEOF argument.
38295         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38296
38297 2009-09-05  Bruno Haible  <bruno@clisp.org>
38298
38299         Fix conversion behaviour when the input is invalid.
38300         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
38301         mark occurring in first pass of indirect conversion.
38302         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
38303         input.
38304         Found by clang's static analyzer.
38305
38306 2009-09-05  Bruno Haible  <bruno@clisp.org>
38307
38308         * tests/test-striconveh.c (main): Test indirect conversion on platforms
38309         where direct conversion is possible.
38310
38311 2009-09-04  Eric Blake  <ebb9@byu.net>
38312
38313         openat: fail with ENOENT on empty name
38314         * lib/openat-proc.c (openat_proc_name): Special-case the empty
38315         buffer.
38316
38317         link-follow: fix logic bug in prior patch
38318         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
38319         reversed sense of yes and no in prior patch.  Avoid confusing
38320         compilation failure with desired semantics.
38321
38322         link-follow: accomodate mingw and cross-compilation
38323         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
38324         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
38325         cross-compilation results to -1, to make linkat easier to
38326         implement when cross-compiling.  Trivially support mingw.
38327         * modules/link-follow (configure.ac): Call new name.
38328         * NEWS: Mention this.
38329
38330 2009-09-03  Eric Blake  <ebb9@byu.net>
38331
38332         faccessat: compile replacement
38333         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
38334         needed.
38335
38336         fts: fix compilation error
38337         * lib/fts.c (includes): Re-add "openat.h", for
38338         openat_needs_fchdir.
38339
38340         faccessat: new module
38341         * modules/faccessat: New file.
38342         * lib/faccessat.c: Likewise.
38343         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38345         * modules/unistd (Makefile.am): Use it.
38346         * lib/unistd.in.h (faccessat): Declare it.
38347         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
38348         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
38349         * MODULES.html.sh (File system functions): Mention it.
38350         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
38351         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38352
38353         euidaccess: prefer POSIX over non-standard implementation
38354         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
38355         * lib/euidaccess.c (euidaccess): Use it if available.
38356
38357         openat: make template easier to use
38358         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
38359         AT_FUNC_F2 to be undefined.
38360         (VALIDATE_FLAG): New macro; use it to reject bad flags.
38361         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
38362         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
38363         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
38364         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
38365         Likewise.
38366         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
38367         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
38368         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
38369         Likewise.
38370
38371         openat: declare in POSIX headers
38372         * NEWS: Mention this.
38373         * modules/openat (configure.ac): Declare witnesses.
38374         (Depends-on): Add fcntl-h, sys_stat, unistd.
38375         (Include): Mention correct headers.
38376         * modules/fcntl-h (Depends-on): Add link-warning.
38377         (Files): Add openat.m4.
38378         (Makefile.am): Substitute witnesses.
38379         * modules/sys_stat (Files, Makefile.am): Likewise.
38380         * modules/unistd (Files, Makefile.am): Likewise.
38381         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
38382         (gl_OPENAT_DEFAULTS): New macro.
38383         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
38384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
38385         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
38386         (SYS_STAT_H): Remove unused variable.
38387         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
38388         * lib/fcntl--.h (includes): Remove unneeded header.
38389         * lib/openat-safer.c (includes): Likewise.
38390         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
38391         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
38392         appropriate headers.
38393         (__OPENAT_PREFIX): Delete.
38394         * lib/fcntl.in.h (openat): Provide declaration.
38395         (AT_FDCWD): Fix Solaris bug.
38396         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
38397         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
38398         * lib/fchmodat.c (includes):  Adjust to find declaration.
38399         * lib/fchownat.c (includes): Likewise.
38400         * lib/mkdirat.c (includes): Likewise.
38401         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
38402         still visible.
38403
38404 2009-09-02  Eric Blake  <ebb9@byu.net>
38405
38406         errno: use consistently
38407         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
38408         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
38409         * lib/canonicalize.c (ELOOP): Likewise.
38410         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
38411         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
38412         * lib/lchown.c (EOPNOTSUPP): Likewise.
38413         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
38414         * lib/savewd.c (ESTALE): Likewise.
38415         * lib/settime.c (ENOSYS): Likewise.
38416         * lib/utimens.c (ENOSYS): Likewise.
38417         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
38418         * lib/chdir-safer.c (ELOOP): Likewise.
38419         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
38420         * modules/c-stack (Depends-on): Add errno.
38421         * modules/canonicalize (Depends-on): Likewise.
38422         * modules/chdir-safer (Depends-on): Likewise.
38423         * modules/fdopendir (Depends-on): Likewise.
38424         * modules/inet_ntop (Depends-on): Likewise.
38425         * modules/inet_pton (Depends-on): Likewise.
38426         * modules/lchown (Depends-on): Likewise.
38427         * modules/openat (Depends-on): Likewise.
38428         * modules/savewd (Depends-on): Likewise.
38429         * modules/settime (Depends-on): Likewise.
38430         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
38431
38432         fts: avoid leaking fds
38433         * modules/fts (Depends-on): Add cloexec.
38434         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
38435         flag.
38436
38437         fts: make directory fds more robust
38438         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
38439         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
38440
38441         backupfile, chdir-long, fts, savedir: make safer
38442         * lib/backupfile.c (includes): Use "dirent--.h", since
38443         numbered_backup can write to stderr during readdir.
38444         * lib/savedir.c (includes): Likewise.
38445         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
38446         emulation can write to stderr on failure.
38447         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
38448         * lib/getcwd.c: Document why opendir_safer is unused.
38449         * lib/glob.c: Likewise.
38450         * lib/scandir.c: Likewise.
38451         * lib/openat-proc.c: Likewise, for open_safer.
38452         * modules/backupfile (Depends-on): Add dirent-safer.
38453         * modules/savedir (Depends-on): Likewise.
38454         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
38455         * modules/chdir-long (Depends-on): Add openat-safer.
38456
38457         openat-safer: new module
38458         * modules/openat-safer: New file.
38459         * lib/openat-safer.c: Likewise.
38460         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
38461         * lib/fcntl-safer.h (openat_safer): Declare.
38462         * lib/fcntl--.h (openat): Override.
38463         * MODULES.html.sh (File descriptor based I/O): Mention it.
38464         * lib/openat.h: Add double-inclusion guards.
38465         * lib/openat.c (includes): Only include "fcntl-safer.h", not
38466         "fcntl--.h", so we can implement openat.
38467         * modules/openat-safer-tests: New test.
38468         * tests/test-openat-safer.c: New file.
38469
38470         dirent-safer: new module
38471         * modules/dirent-safer: New file.
38472         * lib/dirent--.h: Likewise.
38473         * lib/dirent-safer.h: Likewise.
38474         * lib/opendir-safer.c: Likewise.
38475         * m4/dirent-safer.m4: Likewise.
38476         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
38477         * modules/dirent-safer-tests: New test.
38478         * tests/test-dirent-safer.c: New file.
38479         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
38480
38481         fdopendir: optimize on mingw
38482         * lib/unistd.in.h (_gl_directory_name): New prototype.
38483         * lib/fchdir.c (_gl_directory_name): Implement it.
38484         (fchdir): Use it to simplify implementation.
38485         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
38486         fchdir, when available, to avoid calling [f]chdir().
38487
38488         fdopendir: split into its own module
38489         * lib/openat.c (fdopendir): Move...
38490         * lib/fdopendir.c: ...into new file.
38491         * modules/fdopendir: New module.
38492         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
38493         * modules/openat (Depends-on): Add fdopendir.
38494         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
38495         fdopendir here.
38496         * modules/savedir (Depends-on): Only need fdopendir, not full
38497         openat.
38498         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
38499         * lib/openat.h (fdopendir): Drop prototype.
38500         * lib/dirent.in.h (fdopendir): Provide prototype.
38501         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
38502         * modules/dirent (Makefile.am): Substitute them.
38503         * MODULES.html.sh (File system functions): Mention it.
38504         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
38505         * modules/fdopendir-tests: New file.
38506         * tests/test-fdopendir.c: Likewise.
38507
38508         fchdir: use more consistent macro convention
38509         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
38510         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
38511         REPLACE_FCHDIR, rather than relying on config.h macros.
38512         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
38513         inside a single make-time REPLACE_FCHDIR block, rather than using
38514         the config.h FCHDIR_REPLACEMENT.
38515         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
38516         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
38517         Manage fstat replacement.
38518         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
38519         REPLACE_FCHDIR.
38520         * modules/sys_stat (Files): Add m4/unistd_h.m4.
38521         (Makefile.am): Substitute REPLACE_FCHDIR.
38522         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
38523         FCHDIR_REPLACEMENT.
38524         * lib/dup-safer.c (dup_safer): Likewise.
38525         * lib/dup2.c (rpl_dup2): Likewise.
38526         * lib/dup3.c (rpl_dup3): Likewise.
38527         * lib/open.c (rpl_open): Likewise.
38528
38529         fchdir: simplify error handling, and support dup3
38530         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
38531         stdbool, malloc-posix, realloc-posix.
38532         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
38533         (ensure_dirs_slot): Return false on allocation failure.
38534         (rpl_dup2): Delete.
38535         (_gl_register_dup): New function.
38536         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
38537         (_gl_register_fd): Close fd on allocation failure.
38538         * lib/fcntl.in.h (_gl_register_fd): Update signature.
38539         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
38540         prototype.
38541         (rpl_dup2_fchdir): Delete prototype.
38542         * lib/open.c (open): Update caller.
38543         * lib/dup2.c (dup2): Track fchdir metadata.
38544         * lib/dup3.c (dup3): Likewise.
38545         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
38546         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
38547
38548 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38549
38550         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
38551         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
38552         don't pass arguments to AC_OUTPUT.
38553
38554 2009-09-02  Bruno Haible  <bruno@clisp.org>
38555
38556         * modules/mkdtemp (License): Relicense under LGPLv2+.
38557         Reported by Paolo Bonzini.
38558
38559 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38560
38561         Replace uses of obsolete autoconf macros in Jim's modules.
38562         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
38563         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
38564         can evoke a warning from autoconf when run with -Wobsolete
38565         enabled.  They were declared obsolete for good reasons (see
38566         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
38567         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
38568         should not continue using the deprecated macros.
38569         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
38570         obsolete Autoconf macros with modern counterparts.
38571         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38572         * m4/dos.m4 (gl_AC_DOS): Likewise.
38573         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
38574         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
38575         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
38576         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
38577         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
38578         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
38579         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
38580         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
38581         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38582         Likewise.
38583         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
38584         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
38585         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
38586         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
38587         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38588         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
38589
38590 2009-09-01  Eric Blake  <ebb9@byu.net>
38591
38592         fchdir: fix off-by-one bug in previous patch
38593         * lib/fchdir.c (rpl_fstat): Use correct bounds.
38594         (_gl_unregister_fd): Delete useless if.
38595
38596 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
38597
38598         maint.mk: sort the list of syntax-check rules
38599         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
38600         easier to get a sense of progress when the rules are run sequentially
38601         and take a long time.
38602
38603 2009-09-01  Simon Josefsson  <simon@josefsson.org>
38604
38605         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
38606         * modules/netinet_in: Likewise.
38607         * modules/sys_file: Likewise.
38608         * modules/sys_ioctl: Likewise.
38609         * modules/sys_select: Likewise.
38610         * modules/sys_socket: Likewise.
38611         * modules/sys_stat: Likewise.
38612         * modules/sys_time: Likewise.
38613         * modules/sys_times: Likewise.
38614         * modules/sys_utsname: Likewise.
38615         * modules/sys_wait: Likewise.
38616
38617 2009-09-01  Jim Meyering  <meyering@redhat.com>
38618
38619         fts: help ensure that return values are not ignored
38620         * lib/fts_.h (__GNUC_PREREQ): Define.
38621         (__attribute_warn_unused_result__): Define.
38622         (fts_children, fts_close, fts_open, fts_read): Declare with
38623         __attribute_warn_unused_result__.
38624
38625         fts: fts_close now fails also when closing a dir file descriptor fails
38626         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
38627         and propagate to caller, along with errno.
38628
38629         announce-gen: correct formatting in --help output
38630         * build-aux/announce-gen (usage): Move the one-line description in
38631         --help output "up", to where it belongs, just after Usage:.
38632
38633 2009-08-31  Eric Blake  <ebb9@byu.net>
38634
38635         fchdir: port to mingw
38636         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
38637         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
38638         opened, then use a substitute.
38639         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
38640         replacement.
38641         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
38642         (_gl_register_fd): No need to check stat if open already filters
38643         all directories.
38644         (fchdir): Fix error condition to match POSIX.
38645         * modules/fchdir (Depends-on): Add sys_stat.
38646         * doc/posix-functions/open.texi (open): Document the limitation.
38647         * modules/fchdir-tests: New file.
38648         * tests/test-fchdir.c: Likewise.
38649
38650         canonicalize: allow cross-testing from cygwin to mingw
38651         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
38652         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
38653         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
38654         Likewise.
38655         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
38656         target does not support symlinks.
38657         * tests/test-canonicalize-lgpl.sh: Likewise.
38658
38659         chown: avoid compilation warning on mingw
38660         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
38661         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
38662         mingw.
38663         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38664         * modules/chown (Depends-on): Add errno.
38665
38666 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38667
38668         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
38669         command.
38670
38671 2009-08-31  Jim Meyering  <meyering@redhat.com>
38672
38673         canonicalize: remove useless initialization
38674         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
38675         initialization of local, "end".
38676
38677 2009-08-30  Bruno Haible  <bruno@clisp.org>
38678
38679         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
38680         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
38681         ENOSYS.
38682
38683 2009-08-30  Bruno Haible  <bruno@clisp.org>
38684
38685         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
38686         /usr/xpg4/bin/tr when it exists.
38687         * tests/test-pipe-filter-gi1.sh: Likewise.
38688
38689 2009-08-30  Bruno Haible  <bruno@clisp.org>
38690
38691         Work around deficient /usr/bin/id program on Solaris.
38692         * tests/test-file-has-acl.sh (ID): New variable.
38693         * tests/test-set-mode-acl.sh (ID): Likewise.
38694         * tests/test-copy-acl.sh (ID): Likewise.
38695         * tests/test-copy-file.sh (ID): Likewise.
38696
38697 2009-08-30  Bruno Haible  <bruno@clisp.org>
38698
38699         New module 'xstriconveh'.
38700         * lib/xstriconveh.h: New file.
38701         * lib/xstriconveh.c: New file.
38702         * modules/xstriconveh: New file.
38703
38704 2009-08-30  Bruno Haible  <bruno@clisp.org>
38705
38706         Make it easier to use mem_cd_iconveh.
38707         * lib/striconveh.h (iconveh_t): New type.
38708         (iconveh_open, iconveh_close): New declarations.
38709         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38710         with a single 'const iconveh_t *' argument.
38711         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
38712         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38713         with a single 'const iconveh_t *' argument.
38714         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
38715         * tests/test-striconveh.c (main): Update.
38716         * NEWS: Mention the change.
38717
38718 2009-08-30  Bruno Haible  <bruno@clisp.org>
38719
38720         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
38721         problem.
38722
38723 2009-08-30  Bruno Haible  <bruno@clisp.org>
38724
38725         Work around iconv_open problem on Solaris.
38726         * lib/iconv_open-solaris.gperf: New file.
38727         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
38728         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
38729         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
38730         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
38731         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
38732         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
38733
38734 2009-08-29  Jim Meyering  <meyering@redhat.com>
38735
38736         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
38737         * top/maint.mk (cvs-check): Remove target; it was just an alias
38738         to the better-named vc-diff-check.
38739         (maintainer-distcheck): Remove rule.  It was used only from
38740         the (alpha/beta/major) target, and all of its commands but one
38741         were coreutils-specific.
38742         (vc-dist): Remove rule.
38743         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
38744         Run vc-diff-check, not vc-dist.
38745         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
38746
38747 2009-08-27  Bruno Haible  <bruno@clisp.org>
38748
38749         * tests/test-bitrotate.c (main): Remove test that uses a shift count
38750         of 0.
38751
38752 2009-08-27  Bruno Haible  <bruno@clisp.org>
38753
38754         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
38755         compilers.
38756         * doc/func.texi: Document the SunPRO C bug.
38757
38758 2009-08-27  Bruno Haible  <bruno@clisp.org>
38759
38760         Fix link error on Solaris.
38761         * tests/test-parse-duration.c (xstrdup): Remove function.
38762
38763 2009-08-26  Pádraig Brady  <P@draigbrady.com>
38764
38765         ignore-value: handle pointer types, too
38766         * lib/ignore-value.h (__attribute__): Remove definition.
38767         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
38768         of a more concise and more-often effective "(void) i" statement.
38769         (ignore_ptr): New function to suppress warnings from functions that
38770         return pointers, and to make it explicit that one function doesn't
38771         handle all cases.
38772
38773 2009-08-25  Bruno Haible  <bruno@clisp.org>
38774
38775         dup2: work around a Linux bug.
38776         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
38777         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
38778         * doc/posix-functions/dup2.texi: Mention the Linux bug.
38779         Reported by Simon Josefsson.
38780
38781 2009-08-25  Jim Meyering  <meyering@redhat.com>
38782
38783         libguestfs uses gnulib
38784         * users.txt: Add libguestfs.
38785
38786 2009-08-24  Eric Blake  <ebb9@byu.net>
38787
38788         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
38789         * lib/pipe2.c (includes): Add binary-io.h.
38790         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
38791
38792 2009-08-24  Bruno Haible  <bruno@clisp.org>
38793
38794         Tolerate declared but missing accept4 syscall.
38795         * lib/accept4.c (accept4): Invoke original accept4 function first, if
38796         available.
38797         * lib/sys_socket.in.h (accept4): If the function is already present,
38798         override it.
38799         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
38800         * modules/accept4 (Makefile.am): Compile accept4.c always.
38801         Reported by Paolo Bonzini and Eric Blake.
38802
38803 2009-08-23  Bruno Haible  <bruno@clisp.org>
38804
38805         New module 'accept4'.
38806         * lib/sys_socket.in.h (accept4): New declaration.
38807         * lib/accept4.c: New file.
38808         * m4/accept4.m4: New file.
38809         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38810         GNULIB_ACCEPT4, HAVE_ACCEPT4.
38811         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
38812         HAVE_ACCEPT4.
38813         * modules/accept4: New file.
38814         * doc/glibc-functions/accept4.texi: Mention the new module.
38815
38816 2009-08-24  Jim Meyering  <meyering@redhat.com>
38817
38818         progname: also set global program_invocation_name, when possible
38819         Before this change, a libtool-enabled program that calls glibc's
38820         error function would report the program name as
38821         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
38822         * modules/progname (configure.ac): Check for a declaration of
38823         program_invocation_name.
38824         * lib/progname.c:  Include <errno.h>.
38825         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
38826         Set program_invocation_name.
38827
38828 2009-08-23  Bruno Haible  <bruno@clisp.org>
38829
38830         * lib/dup3.c: Include <string.h>.
38831
38832 2009-08-23  Bruno Haible  <bruno@clisp.org>
38833
38834         * lib/dup3.c (dup3): Test only once whether the system actually exists.
38835         * lib/pipe2.c (pipe2): Likewise.
38836         Suggested by Eric Blake.
38837
38838 2009-08-23  Bruno Haible  <bruno@clisp.org>
38839
38840         Tolerate declared but missing dup3 syscall.
38841         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
38842         * lib/unistd.in.h (dup3): If the function is already present,
38843         override it.
38844         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
38845         * modules/dup3 (Makefile.am): Compile dup3.c always.
38846         Reported by Paolo Bonzini.
38847
38848 2009-08-23  Bruno Haible  <bruno@clisp.org>
38849
38850         Tolerate declared but missing pipe2 syscall.
38851         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
38852         available.
38853         * lib/unistd.in.h (pipe2): If the function is already present,
38854         override it.
38855         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
38856         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
38857         Reported by Paolo Bonzini.
38858
38859 2009-08-23  Bruno Haible  <bruno@clisp.org>
38860
38861         * lib/pipe2.c (pipe2): Move #ifs inside function.
38862
38863 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38864
38865         quotearg: document limitations of quote_these_too
38866         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
38867         those limitations are created.
38868         * lib/quotearg.h (set_char_quoting): Document that digits and
38869         letters that are special after backslash are not permitted.
38870         (quotearg_char): Cross-reference set_char_quoting documentation.
38871
38872 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
38873
38874         quotearg: implement custom_quoting_style
38875         * lib/quotearg.c: (struct quoting_options): Add left_quote and
38876         right_quote fields.
38877         (set_custom_quoting): New public function.
38878         (quotearg_buffer_restyled): Add left_quote and right_quote
38879         arguments, handle them very much like locale quoting, and update
38880         all uses.
38881         (quotearg_n_custom): New public function.
38882         (quotearg_n_custom_mem): New public function.
38883         (quotearg_custom): New public function.
38884         (quotearg_custom_mem): New public function.
38885         * lib/quotearg.h: Prototype and document new public functions.
38886         (enum quoting_style): For escape_quoting_style and
38887         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
38888         ignored even though they're otherwise like c_quoting_style.
38889         Add custom_quoting_style member and document with comparison to
38890         clocale_quoting_style.
38891         * tests/test-quotearg.c (custom_quotes): New array.
38892         (custom_results): New array.
38893         (main): Extend to test custom quoting.
38894
38895 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38896
38897         quotearg: fix right quote escaping when it's in quote_these_too
38898         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
38899         quote, be sure to prepend only one backslash.
38900         * tests/test-quotearg.c (use_quote_double_quotes): New function.
38901         (main): Test it.
38902
38903 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38904
38905         quotearg-tests: test escaping of embedded locale quotes
38906         * tests/test-quotearg.c (struct result_strings): Add member for
38907         new input.
38908         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
38909         (inputs): Add new input.
38910         (results_g): Add expected results.
38911         (flag_results): Likewise.
38912         (locale_results): Likewise.
38913         (compare_strings): Check those.
38914
38915 2009-08-23  Bruno Haible  <bruno@clisp.org>
38916
38917         Tests for module 'dup3'.
38918         * modules/dup3-tests: New file.
38919         * tests/test-dup3.c: New file.
38920
38921         New module 'dup3'.
38922         * lib/unistd.in.h (dup3): New declaration.
38923         * lib/dup3.c: New file.
38924         * m4/dup3.m4: New file.
38925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
38926         HAVE_DUP3.
38927         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
38928         * modules/dup3: New file.
38929         * doc/glibc-functions/dup3.texi: Mention the new module.
38930
38931 2009-08-23  Bruno Haible  <bruno@clisp.org>
38932
38933         Tweak the dup2 test.
38934         * tests/test-dup2.c (main): Create the test file empty. Verify that an
38935         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
38936         the test file is still empty. Fix argument order of lseek.
38937
38938 2009-08-23  Bruno Haible  <bruno@clisp.org>
38939
38940         Avoid test link errors when the modules getopt-gnu, gettext are used.
38941         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
38942         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38943
38944 2009-08-23  Bruno Haible  <bruno@clisp.org>
38945
38946         Fix getdtablesize() on mingw.
38947         * lib/getdtablesize.c (getdtablesize): Implement differently.
38948         * lib/unistd.in.h (getdtablesize): Improve comment.
38949
38950 2009-08-23  Bruno Haible  <bruno@clisp.org>
38951
38952         New module 'mkostemp'.
38953         Based on Ulrich Drepper's 2007-08-10 change in glibc.
38954         * lib/stdlib.in.h (mksotemp): New declaration.
38955         * lib/mkostemp.c: New file, from glibc with modifications.
38956         * lib/tempname.h (GT_FILE): Remove outdated comment.
38957         (gen_tempname): Add flags argument.
38958         * lib/tempname.c (__GT_BIGFILE): Remove macro.
38959         (__GT_FILE): Map to 1.
38960         (small_open, large_open): Remove macros.
38961         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
38962         * lib/mkstemp.c (mkstemp): Update.
38963         * lib/mkdtemp.c (mkdtemp): Likewise.
38964         * m4/mkostemp.m4: New file.
38965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
38966         HAVE_MKOSTEMP.
38967         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
38968         HAVE_MKOSTEMP.
38969         * modules/mkostemp: New file, based on modules/mkstemp.
38970         * doc/glibc-functions/mkostemp.texi: Mention the new module.
38971         * NEWS: Mention the change.
38972
38973 2009-08-23  Bruno Haible  <bruno@clisp.org>
38974
38975         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
38976         Reported by Eric Blake.
38977
38978 2009-08-23  Bruno Haible  <bruno@clisp.org>
38979
38980         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
38981         Reported by Eric Blake.
38982
38983 2009-08-23  Bruno Haible  <bruno@clisp.org>
38984
38985         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
38986         * modules/pipe2 (Depends-on): Likewise.
38987
38988 2009-08-23  Eric Blake  <ebb9@byu.net>
38989
38990         fcntl-h: add O_TTY_INIT support
38991         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
38992         * tests/test-fcntl-h.c (o): Test it.
38993         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38994
38995         fcntl-h: rename from fcntl, in preparation for fcntl(2)
38996         * modules/fcntl: Move <fcntl.h> header replacement...
38997         * modules/fcntl-h: ...to new name, so as not to collide with
38998         like-named function.
38999         * tests/test-fcntl.c: Rename...
39000         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
39001         * modules/fcntl-tests: Rename...
39002         * modules/fcntl-h-tests: ...to this.  Update test file name.
39003         * modules/chdir-long (Depends-on): Update clients.
39004         * modules/chdir-safer (Depends-on): Likewise.
39005         * modules/fcntl-safer (Depends-on): Likewise.
39006         * modules/fts (Depends-on): Likewise.
39007         * modules/mkancesdirs (Depends-on): Likewise.
39008         * modules/mkdir-p (Depends-on): Likewise.
39009         * modules/open (Depends-on): Likewise.
39010         * modules/savewd (Depends-on): Likewise.
39011         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
39012         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39013
39014 2009-08-22  Bruno Haible  <bruno@clisp.org>
39015
39016         * modules/binary-io (License): Relicense under LGPL.
39017         * modules/pipe2 (License): Likewise.
39018
39019 2009-08-22  Bruno Haible  <bruno@clisp.org>
39020
39021         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
39022         return value.
39023         * lib/pipe-filter-gi.c (filter_init): Likewise.
39024         Reported by Eric Blake.
39025
39026 2009-08-22  Bruno Haible  <bruno@clisp.org>
39027
39028         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
39029         * modules/pipe (Depends-on): Add pipe2.
39030
39031 2009-08-22  Bruno Haible  <bruno@clisp.org>
39032
39033         Tests for module 'pipe2'.
39034         * modules/pipe2-tests: New file.
39035         * tests/test-pipe2.c: New file.
39036
39037         New module 'pipe2'.
39038         * lib/unistd.in.h (pipe2): New declaration.
39039         * lib/pipe2.c: New file.
39040         * m4/pipe2.m4: New file.
39041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
39042         HAVE_PIPE2.
39043         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
39044         * modules/pipe2: New file.
39045         * doc/glibc-functions/pipe2.texi: Mention the new module.
39046
39047 2009-08-22  Bruno Haible  <bruno@clisp.org>
39048
39049         Reference some new glibc functions.
39050         * doc/glibc-functions/accept4.texi: New file.
39051         * doc/glibc-functions/dup3.texi: New file.
39052         * doc/glibc-functions/mkostemp.texi: New file.
39053         * doc/glibc-functions/pipe2.texi: New file.
39054         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
39055         (Glibc sys/socket.h): Refer to accept4.
39056         (Glibc unistd.h): Refer to dup3, pipe2.
39057         Reported by Eric Blake.
39058
39059 2009-08-22  Jim Meyering  <meyering@redhat.com>
39060             Bruno Haible  <bruno@clisp.org>
39061
39062         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
39063         This makes it so packages using automake-1.11's silent-rules option
39064         can print e.g., a single "GEN    configmake.h" line, rather than
39065         the 30+ statements that perform the job.  If you want to see the
39066         actual commands, you can still run "make V=1".
39067         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
39068         so that make output is abbreviated when those variables are defined
39069         appropriately.
39070         * modules/argz: Likewise.
39071         * modules/arpa_inet: Likewise.
39072         * modules/byteswap: Likewise.
39073         * modules/configmake: Likewise.
39074         * modules/dirent: Likewise.
39075         * modules/errno: Likewise.
39076         * modules/fcntl: Likewise.
39077         * modules/float: Likewise.
39078         * modules/fnmatch: Likewise.
39079         * modules/getopt-posix: Likewise.
39080         * modules/glob: Likewise.
39081         * modules/iconv_open: Likewise.
39082         * modules/inttypes: Likewise.
39083         * modules/localcharset: Likewise.
39084         * modules/locale: Likewise.
39085         * modules/math: Likewise.
39086         * modules/netdb: Likewise.
39087         * modules/netinet_in: Likewise.
39088         * modules/poll: Likewise.
39089         * modules/posix_spawnp-tests: Likewise.
39090         * modules/sched: Likewise.
39091         * modules/search: Likewise.
39092         * modules/selinux-h: Likewise.
39093         * modules/signal: Likewise.
39094         * modules/spawn: Likewise.
39095         * modules/stdarg: Likewise.
39096         * modules/stdbool: Likewise.
39097         * modules/stddef: Likewise.
39098         * modules/stdint: Likewise.
39099         * modules/stdio: Likewise.
39100         * modules/stdlib: Likewise.
39101         * modules/string: Likewise.
39102         * modules/strings: Likewise.
39103         * modules/sys_file: Likewise.
39104         * modules/sys_ioctl: Likewise.
39105         * modules/sys_select: Likewise.
39106         * modules/sys_socket: Likewise.
39107         * modules/sys_stat: Likewise.
39108         * modules/sys_time: Likewise.
39109         * modules/sys_times: Likewise.
39110         * modules/sys_utsname: Likewise.
39111         * modules/sys_wait: Likewise.
39112         * modules/sysexits: Likewise.
39113         * modules/time: Likewise.
39114         * modules/unistd: Likewise.
39115         * modules/wchar: Likewise.
39116         * modules/wctype: Likewise.
39117
39118 2009-08-22  Jim Meyering  <meyering@redhat.com>
39119
39120         announce-gen: detect write failure
39121         * build-aux/announce-gen: Add Coda at end.
39122         Remove equivalent-but-more-verbose block at top.
39123
39124 2009-08-19  Akim Demaille  <demaille@gostai.com>
39125
39126         bootstrap: --help to stdout.
39127         * bootstrap (usage): Don't send --help to stderr.
39128         Use a here doc instead of a long string.
39129
39130 2009-08-21  Eric Blake  <ebb9@byu.net>
39131
39132         test-popen-safer: split from test-popen
39133         * tests/test-popen.c (main): Move...
39134         * tests/test-popen.h: ...into new file.
39135         * tests/test-popen-safer2.c: New file.
39136         * modules/popen-tests (Files): Add test-popen.h.
39137         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
39138         Suggested by Bruno Haible.
39139
39140         test-fcntl-safer: split from test-open
39141         * tests/test-open.c (main): Move...
39142         * tests/test-open.h: ...into new file.
39143         * tests/test-fcntl-safer.c: New file.
39144         * modules/open-tests (Files): Add test-open.h.
39145         * modules/fcntl-safer-tests: New file.
39146         Suggested by Bruno Haible.
39147
39148         test-fopen-safer: split from test-fopen
39149         * tests/test-fopen.c (main): Move...
39150         * tests/test-fopen.h: ...into new file.
39151         * tests/test-fopen-safer.c: New file.
39152         * modules/fopen-tests (Files): Add test-fopen.h.
39153         * modules/fopen-safer-tests: New file.
39154         Suggested by Bruno Haible.
39155
39156 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39157
39158         popen-safer: test O_CLOEXEC at run-time.
39159         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
39160
39161 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39162
39163         fcntl: move more flags to the header
39164         * lib/cloexec.c: Do not define FD_CLOEXEC here.
39165         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
39166         * lib/fcntl.in.h: Do both things here.
39167
39168 2009-08-21  Jim Meyering  <meyering@redhat.com>
39169
39170         consistently remove $@-t before redirecting to it
39171         * modules/argz: Remove $@-t and $@ before redirecting to the former.
39172         * modules/alloca-opt: Likewise.
39173         * modules/byteswap: Likewise.
39174         * modules/fnmatch: Likewise.
39175         * modules/getopt-posix: Likewise.
39176         * modules/glob: Likewise.
39177         * modules/poll: Likewise.
39178         * modules/posix_spawnp-tests: Likewise.
39179         * modules/sys_socket: Likewise.
39180         * modules/sysexits: Likewise.
39181
39182 2009-08-21  Eric Blake  <ebb9@byu.net>
39183
39184         popen: simplify access to original popen
39185         * lib/popen.c (rpl_popen): No need to worry about popen being a
39186         macro.
39187         Reported by Bruno Haible.
39188
39189 2009-08-20  Eric Blake  <ebb9@byu.net>
39190
39191         build: avoid some compiler warnings
39192         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
39193         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
39194         type.
39195         (new_exclude_segment, excluded_file_pattern_p)
39196         (excluded_file_name_p): Reduce scope.
39197         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
39198         old-style declaration.
39199
39200 2009-08-20  Simon Josefsson  <simon@josefsson.org>
39201
39202         * tests/test-exclude1.sh: Handle Windows EOL.
39203         * tests/test-exclude2.sh: Likewise.
39204         * tests/test-exclude3.sh: Likewise.
39205         * tests/test-exclude4.sh: Likewise.
39206         * tests/test-exclude5.sh: Likewise.
39207         * tests/test-exclude6.sh: Likewise.
39208         * tests/test-exclude7.sh: Likewise.
39209
39210 2009-08-19  Akim Demaille  <demaille@gostai.com>
39211
39212         bootstrap: find sha1sum when named gsha1sum.
39213         * bootstrap (find_tool): New.
39214         ($SHA1SUM): New.
39215         Use it.
39216
39217 2009-08-20  Jim Meyering  <meyering@redhat.com>
39218
39219         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
39220         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
39221         expression that converts "." in a file name to "\." in the resulting
39222         regexp.  Start with a dummy statement, so that prior shell variable
39223         definitions are expanded portably.  Reported by Simon Josefsson.
39224
39225 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
39226
39227         Fix polling for writeability of a screen buffer.
39228         * lib/poll.c: Distinguish input and screen buffers for the
39229         Win32 implementation.
39230         * lib/select.c: Likewise.
39231
39232 2009-08-19  Eric Blake  <ebb9@byu.net>
39233
39234         popen-safer: prevent popen from clobbering std descriptors
39235         * modules/popen-safer: New file.
39236         * lib/popen-safer.c: Likewise.
39237         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
39238         * lib/stdio--.h (popen): Provide override.
39239         * lib/stdio-safer.h (popen_safer): Provide declaration.
39240         * tests/test-popen.c (includes): Partially test this.
39241         * modules/popen-safer-tests: New file, for more tests.
39242         * tests/test-popen-safer.c: Likewise.
39243         * MODULES.html.sh (file stream based Input/Output): Mention it.
39244
39245         tests: test some of the *-safer modules
39246         * modules/fopen-safer (Depends-on): Add fopen.
39247         * modules/fcntl-safer (Depends-on): Add fcntl.
39248         * modules/stdlib-safer (Depends-on): Add stdlib.
39249         (configure.ac): Set indicator.
39250         * modules/unistd-safer (configure.ac): Likewise.
39251         * modules/tmpfile-safer (configure.ac): Likewise.
39252         (Depends-on): Add tmpfile.
39253         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
39254         active.
39255         * tests/test-fopen.c (includes): Test safer versions when they are
39256         in use.
39257         * tests/test-open.c (includes): Likewise.
39258
39259         popen: fix cygwin 1.5 bug when stdin closed
39260         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
39261         * modules/popen: New file.
39262         * modules/popen-tests: Likewise.
39263         * tests/test-popen.c: Likewise.
39264         * m4/popen.m4: Likewise.
39265         * lib/popen.c: Likewise.
39266         * lib/stdio.in.h (popen): New declaration.
39267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
39268         * modules/stdio (Makefile.am): Likewise.
39269         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
39270
39271 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
39272
39273         maint.mk: give full control over update-copyright exclusions
39274         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
39275         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
39276         (update-copyright): Don't force inclusion of top-level
39277         ChangeLog.  Don't force exclusion of all COPYING files, but make
39278         them the default exclusion instead.
39279
39280 2009-08-16  Bruno Haible  <bruno@clisp.org>
39281
39282         Fix test failures on Solaris 10.
39283         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
39284         tests when Solaris iconv() is used.
39285         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39286         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39287         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39288         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39289         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39290
39291 2009-08-16  Bruno Haible  <bruno@clisp.org>
39292
39293         Fix test failures on Solaris 10.
39294         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
39295         'tr' program and pass it as first argument.
39296         * tests/test-pipe-filter-gi1.sh: Likewise.
39297         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
39298         program as first argument.
39299         * tests/test-pipe-filter-gi1.c (main): Likewise.
39300
39301 2009-08-16  Eric Blake  <ebb9@byu.net>
39302
39303         fpurge: fix previous commits
39304         * modules/fpurge (Makefile.am): Make replacement conditional,
39305         partially reverting 2007-04-29 change; missed in previous
39306         attempt.
39307         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
39308         is missing.
39309
39310 2009-08-16  Bruno Haible  <bruno@clisp.org>
39311
39312         Clarify fpurge's effect on the file position.
39313         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
39314         * tests/test-fpurge.c (main): Make a second pass for checking the file
39315         position.
39316
39317 2009-08-16  Bruno Haible  <bruno@clisp.org>
39318
39319         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
39320         declaration of fpurge is missing.
39321         * tests/test-fpurge.c (main): Check that the file has not more contents
39322         than expected. Close the file before removing it.
39323
39324 2009-08-15  Eric Blake  <ebb9@byu.net>
39325
39326         fpurge: don't wrap working cygwin implementation
39327         * lib/fpurge.c (fpurge): Fix comment typo.
39328         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
39329         1.7 to avoid replacement.
39330         * tests/test-fpurge.c (main): Enhance test.
39331
39332 2009-08-15  Eric Blake  <ebb9@byu.net>
39333         and Jim Meyering  <meyering@redhat.com>
39334
39335         test-update-copyright: skip if perl is insufficient
39336         * tests/test-update-copyright.sh: Failure to run maintainer tool
39337         should not cause testsuite failure on cygwin 1.5.
39338
39339 2009-08-14  Eric Blake  <ebb9@byu.net>
39340
39341         doc: mention more functions added in cygwin 1.7.0
39342         * doc/posix-headers/limits.texi (limits.h): Update for recent
39343         cygwin additions.
39344         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
39345         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
39346         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
39347         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
39348         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
39349
39350 2009-08-14  Eric Blake  <ebb9@byu.net>
39351
39352         maint.mk: simplify update-copyright rule
39353         * top/maint.mk (update-copyright-local): Delete, and document how
39354         to do it in cfg.mk instead.
39355         (update-copyright-exclude-regexp): Delete, and document how to do
39356         it in .x-update-copyright instead.
39357         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
39358         exclude ChangeLog.
39359
39360 2009-08-14  Bruno Haible  <bruno@clisp.org>
39361
39362         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
39363
39364 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39365
39366         maint.mk: support update-copyright-env
39367         * top/maint.mk (update-copyright-env): Define place-holder.
39368         (update-copyright): Expand $(update-copyright-env) before
39369         invoking update-copyright.
39370
39371 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39372
39373         update-copyright: implement forced reformatting
39374         * build-aux/update-copyright: Implement and document
39375         UPDATE_COPYRIGHT_FORCE.
39376         * tests/test-update-copyright.sh: Test it.
39377
39378 2009-08-14  Eric Blake  <ebb9@byu.net>
39379         and Bruno Haible  <bruno@clisp.org>
39380
39381         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
39382         * tests/test-locale.c: Revert previous patch related to NULL.
39383         * tests/test-stdio.c: Likewise.
39384         * tests/test-stdlib.c: Likewise.
39385         * tests/test-string.c: Likewise.
39386         * tests/test-unistd.c: Likewise.
39387         * modules/time-tests (Depends-on): Add verify.
39388         * modules/wchar-tests (Depends-on): Likewise.
39389         * tests/test-time.c: Test for NULL compliance.
39390         * tests/test-wchar.c: Likewise.
39391         * modules/locale (Depends-on): Add stddef.
39392         * modules/stdio (Depends-on): Likewise.
39393         * modules/stdlib (Depends-on): Likewise.
39394         * modules/string (Depends-on): Likewise.
39395         * modules/time (Depends-on): Likewise.
39396         * modules/unistd (Depends-on): Likewise.
39397         * modules/wchar (Depends-on): Likewise.
39398         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
39399         * lib/stdlib.in.h (includes): Likewise.
39400         * lib/string.in.h (includes): Likewise.
39401         * lib/time.in.h (includes): Likewise.
39402         * lib/unistd.in.h (includes): Likewise.
39403         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
39404         replaced.
39405         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39406         * m4/stddef_h.m4: New file.
39407         * modules/stddef: Likewise.
39408         * lib/stddef.in.h: Likewise.
39409         * modules/stddef-tests: Likewise.
39410         * tests/test-stddef.c: Likewise.
39411         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
39412         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
39413         * doc/posix-headers/locale.texi (locale.h): Likewise.
39414         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
39415         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39416         * doc/posix-headers/string.texi (string.h): Likewise.
39417         * doc/posix-headers/time.texi (time.h): Likewise.
39418         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
39419         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
39420
39421 2009-08-14  Eric Blake  <ebb9@byu.net>
39422
39423         doc: improve git diff of texinfo files
39424         * .gitattributes: Add rule for *.texi files, with hint on how to
39425         use it.
39426         Copied from m4, and based on a report by Bruno Haible.
39427
39428 2009-08-14  Bruno Haible  <bruno@clisp.org>
39429
39430         Disable multithread support by default on Cygwin 1.5.x for real.
39431         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
39432
39433 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39434
39435         update-copyright: much ado about intervals
39436         * build-aux/update-copyright: Implement and document
39437         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
39438         of copyright year intervals.
39439         Also, document UPDATE_COPYRIGHT_YEAR.
39440         * tests/test-update-copyright.sh: Test it.
39441
39442         update-copyright: convert 2-digit to 4-digit years
39443         * build-aux/update-copyright: Implement and document.
39444         * tests/test-update-copyright.sh: Update.
39445
39446 2009-08-14  Jim Meyering  <meyering@redhat.com>
39447
39448         test-exclude: avoid coreutils "make check" failure
39449         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
39450         just as in test-argmatch.c.
39451
39452 2009-08-13  Eric Blake  <ebb9@byu.net>
39453
39454         test-dup2: fix bad assumption
39455         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
39456         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
39457
39458         test-version-etc: fix CRLF portability issue
39459         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
39460         recognize \r.
39461         * tests/test-argp-version-etc-1.sh: Likewise.
39462
39463         getopt: update client modules
39464         * modules/argp (Depends-on): Use getopt-gnu.
39465         * modules/git-merge-changelog (Depends-on): Likewise.
39466         * modules/long-options (Depends-on): Likewise.
39467         * modules/xstrtol (Depends-on): Likewise.
39468
39469 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39470
39471         * tests/test-version-etc.sh: Don't fail on different
39472         project/version.  Don't fail on CRLF differences.  Rewrite to use
39473         multiple -e instead of multiple sed forks, suggested by Eric Blake
39474         <ebb9@byu.net>.
39475         * tests/test-argp-version-etc-1.sh: Likewise.
39476
39477 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39478
39479         * tests/test-version-etc.sh: Don't fail on different
39480         project/version.
39481
39482 2009-08-12  Bruno Haible  <bruno@clisp.org>
39483
39484         Tests for modules 'getopt-posix', 'getopt-gnu'.
39485         * modules/getopt-posix-tests: New file.
39486         * tests/test-getopt.c: New file.
39487         * tests/test-getopt.h: New file.
39488         * tests/test-getopt_long.h: New file.
39489
39490         New modules 'getopt-posix', 'getopt-gnu'.
39491         * modules/getopt-gnu: New file, renamed from modules/getopt.
39492         * modules/getopt-posix: New file.
39493         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
39494         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
39495         (gl_GETOPT): Remove macro.
39496         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
39497         Disable the test against BSD systems that declare optreset. Test
39498         against mingw bug. Test against lack of support of optional arguments
39499         on many platforms.
39500         * doc/glibc-headers/getopt.texi: Update module name and list of
39501         relevant platforms.
39502         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
39503         'getopt-gnu' and more portability problems.
39504         * NEWS: Mention the changes.
39505
39506 2009-08-12  Bruno Haible  <bruno@clisp.org>
39507
39508         Ensure that optarg etc. get declared by <unistd.h>.
39509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
39510         AC_USE_SYSTEM_EXTENSIONS.
39511         * modules/getopt (Depends-on): Add 'extensions'.
39512
39513 2009-08-12  Bruno Haible  <bruno@clisp.org>
39514
39515         Avoid test link errors.
39516         * modules/pipe-filter-ii-tests (Makefile.am): Define
39517         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
39518         * modules/pipe-filter-gi-tests (Makefile.am): Define
39519         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
39520         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39521
39522 2009-08-12  Bruno Haible  <bruno@clisp.org>
39523
39524         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
39525         gl_GETOPT_SUBSTITUTE before.
39526         (gl_GETOPT): Use it.
39527         * m4/argp.m4 (gl_ARGP): Update.
39528         Reported by Sergey Poznyakoff.
39529
39530         * m4/getopt.m4: Reorder macros.
39531         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
39532         (gl_GETOPT_SUBSTITUTE): Remove macro.
39533
39534 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39535
39536         Minor improvement in gitlog-to-changelog
39537
39538         * build-aux/gitlog-to-changelog: New option `--format' makes
39539         output format string configurable.
39540
39541 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39542
39543         Optimize exclude: use hash tables for non-wildcard patterns.
39544
39545         * lib/exclude.c: Include hash.h and mbuiter.h
39546         (struct exclude_pattern, exclude_segment): New data types.
39547         (struct exclude): Rewrite.
39548         (fnmatch_pattern_has_wildcards): New function.
39549         (new_exclude_segment, free_exclude_segment): New functions.
39550         (excluded_file_pattern_p, excluded_file_name_p): New functions.
39551         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
39552         * lib/exclude.h (is_fnmatch_pattern): New prototype.
39553         * modules/exclude: Depend on hash and mbuiter.
39554
39555         * modules/exclude-tests: New file.
39556         * tests/test-exclude.c: New file.
39557         * tests/test-exclude1.sh: New file.
39558         * tests/test-exclude2.sh: New file.
39559         * tests/test-exclude3.sh: New file.
39560         * tests/test-exclude4.sh: New file.
39561         * tests/test-exclude5.sh: New file.
39562         * tests/test-exclude6.sh: New file.
39563         * tests/test-exclude7.sh: New file.
39564
39565 2009-08-12  Bruno Haible  <bruno@clisp.org>
39566
39567         Ensure that getopt() gets declared by <unistd.h>.
39568         * lib/unistd.in.h: Conditionally include getopt.h.
39569         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
39570         Set GNULIB_UNISTD_H_GETOPT.
39571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39572         GNULIB_UNISTD_H_GETOPT.
39573         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
39574
39575 2009-08-12  Bruno Haible  <bruno@clisp.org>
39576
39577         Clarify logic.
39578         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
39579         gl_replace_getopt instead of GETOPT_H.
39580
39581 2009-08-12  Bruno Haible  <bruno@clisp.org>
39582
39583         * m4/getopt.m4: Add comments.
39584
39585 2009-08-12  Bruno Haible  <bruno@clisp.org>
39586
39587         Disable multithread support by default on Cygwin 1.5.x.
39588         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
39589         set gl_use_threads=no if not specified otherwise.
39590
39591 2009-08-11  Bruno Haible  <bruno@clisp.org>
39592
39593         Avoid compilation error on NetBSD 5.0.
39594         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
39595         * tests/test-stdio.c: Likewise.
39596         * tests/test-stdlib.c: Likewise.
39597         * tests/test-string.c: Likewise.
39598         * tests/test-unistd.c: Likewise.
39599         Reported by Greg Troxel <gdt@ir.bbn.com>
39600         at <https://savannah.gnu.org/support/?106973>.
39601
39602 2009-08-11  Bruno Haible  <bruno@clisp.org>
39603
39604         * modules/dup2-tests (Depends-on): Remove close.
39605
39606         Undo 2009-07-19 commit.
39607         * modules/acl-tests (Depends-on): Remove close.
39608         * modules/binary-io-tests (Depends-on): Likewise.
39609         * modules/closein-tests (Depends-on): Likewise.
39610         * modules/flock-tests (Depends-on): Likewise.
39611         * modules/fsync-tests (Depends-on): Likewise.
39612         * modules/lseek-tests (Depends-on): Likewise.
39613         * modules/pipe-tests (Depends-on): Likewise.
39614         * modules/posix_spawn-tests (Depends-on): Likewise.
39615         * modules/posix_spawnp-tests (Depends-on): Likewise.
39616         * modules/stat-time-tests (Depends-on): Likewise.
39617         * modules/yesno-tests (Depends-on): Likewise.
39618
39619 2009-08-10  Bruno Haible  <bruno@clisp.org>
39620
39621         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
39622
39623 2009-08-10  Bruno Haible  <bruno@clisp.org>
39624
39625         Fix a gcc warning.
39626         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
39627
39628 2009-08-10  Bruno Haible  <bruno@clisp.org>
39629
39630         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
39631         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
39632         not only the first time.
39633         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
39634         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
39635         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
39636         is 1, not only the the first time.
39637
39638 2009-08-10  Bruno Haible  <bruno@clisp.org>
39639
39640         Make it possible to use module 'gethostname' without module 'close'.
39641         * lib/unistd.in.h (close): Evoke a link error only if
39642         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39644         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39645         * modules/unistd (Makefile.am): Substitute
39646         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39647         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
39648         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39649         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
39650         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39651         * modules/sys_ioctl (Makefile.am): Substitute
39652         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39653         * modules/socket (configure.ac): On native Windows, set
39654         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
39655         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39656         Reported by Sam Steingold <sds@gnu.org>.
39657
39658 2009-08-10  Bruno Haible  <bruno@clisp.org>
39659
39660         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
39661         * modules/ioctl (configure.ac): Likewise.
39662
39663 2009-08-10  Bruno Haible  <bruno@clisp.org>
39664
39665         Avoid collision between gnulib wrapper and libintl wrapper.
39666         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
39667         already defined in intl/printf.c.
39668         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
39669         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
39670
39671 2009-08-09  Bruno Haible  <bruno@clisp.org>
39672
39673         Make <sys/select.h> really self-contained, also on Solaris 10.
39674         * lib/sys_select.in.h: Include <string.h>.
39675         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
39676         Solaris 10 problem.
39677         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
39678         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
39679         Reported by Jim Meyering.
39680
39681 2009-08-09  Bruno Haible  <bruno@clisp.org>
39682
39683         Avoid warnings from 'aclocal' that are due to a use of macro name
39684         AM_XGETTEXT_OPTION that is not defined in automake.
39685         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
39686         automake.
39687         * modules/error (configure.ac): Likewise.
39688         * modules/propername (configure.ac): Likewise.
39689         * modules/vasprintf (configure.ac): Likewise.
39690         * modules/verror (configure.ac): Likewise.
39691         * modules/xprintf (configure.ac): Likewise.
39692         * modules/xvasprintf (configure.ac): Likewise.
39693
39694 2009-08-08  Bruno Haible  <bruno@clisp.org>
39695
39696         Avoid compilation error in C++ mode.
39697         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
39698         Reported by Sam Steingold <sds@gnu.org>.
39699
39700 2009-08-08  Bruno Haible  <bruno@clisp.org>
39701
39702         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
39703         for the various Unix platforms.
39704         * doc/posix-headers/limits.texi: Update platforms list regarding
39705         HOST_NAME_MAX.
39706         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39707
39708 2009-08-07  Jim Meyering  <meyering@redhat.com>
39709
39710         selinux-at: fix typo in a comment
39711         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
39712         Spotted by Paolo Bonzini.
39713
39714         selinux-at: remove redundant m4 code, add documentation
39715         * modules/selinux-at (configure.ac): Remove redundant code.
39716         LIB_SELINUX is already set via the dependent module, selinux-h.
39717         (Include): Add quotes around selinux-at.h.
39718         * lib/selinux-at.h: Add documentation.
39719         Reported by Bruno Haible in
39720         http://marc.info/?l=gnulib-bug&m=124958988300749
39721
39722 2009-08-07  Bruno Haible  <bruno@clisp.org>
39723
39724         Avoid link error on MacOS X 10.3 and 10.4.
39725         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
39726         on non-ELF systems.
39727         * lib/argp-pv.c (argp_program_version): Likewise.
39728         Reported by Simon Josefsson.
39729
39730 2009-08-07  Simon Josefsson  <simon@josefsson.org>
39731
39732         * tests/test-version-etc.sh: Use $EXEEXT.
39733
39734 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
39735
39736         update-copyright: update documentation to point to maint.mk
39737         * build-aux/update-copyright: Here.
39738
39739 2009-08-06  Jim Meyering  <meyering@redhat.com>
39740
39741         maint.mk: support update-copyright-local
39742         * top/maint.mk (update-copyright-local): Define place-holder.
39743         (update-copyright): Depend on $(update-copyright-local).
39744
39745 2009-08-06  Jim Meyering  <meyering@redhat.com>
39746
39747         selinux-at: new module
39748         Initially written for coreutils, this module will soon be
39749         used by findutils, too.
39750         * MODULES.html.sh [Misc]: Add selinux-at.
39751         * lib/selinux-at.h: New file, from coreutils.
39752         * lib/selinux-at.c: Likewise.
39753         * modules/selinux-at: Likewise.
39754         (License): Change from LGPL to GPL, since it depends
39755         on the GPL'd openat module.
39756
39757         doc: update README
39758         * README: Remove references to cogito.
39759         Remove cvs-repo-updating instructions from 2007.
39760         Don't imply that CVS is better if you have limited disk space.
39761
39762 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39763
39764         update-copyright: support C-style comments
39765         * build-aux/update-copyright: Implement and document.
39766         * tests/test-update-copyright.sh: Test.
39767
39768 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39769
39770         update-copyright: support omitted "(C)"
39771         * build-aux/update-copyright: Implement and document.  Also,
39772         allow variable whitespace before "(C)".
39773         * tests/test-update-copyright.sh: Test.
39774
39775 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39776
39777         update-copyright: don't trip on non-FSF copyright statements
39778         * build-aux/update-copyright: Fix so that the first correctly
39779         formatted FSF copyright statement is recognized no matter what
39780         appears before it.  Update documentation.
39781         * tests/test-update-copyright.sh: Test that.
39782
39783 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39784
39785         update-copyright: clean up code a little
39786         * build-aux/update-copyright: Append "_re" to the name of any
39787         variable holding a regular expression.
39788         Replace "old" and "new" with "stmt" in variable names.
39789         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
39790         handled correctly.
39791         Format code more consistently.
39792
39793 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39794
39795         update-copyright-tests: improve portability
39796         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
39797         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
39798
39799 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39800
39801         update-copyright: support @copyright{} and &copy;
39802         * build-aux/update-copyright: Implement and document.
39803         * tests/test-update-copyright.sh: Test.
39804
39805 2009-08-04  Jim Meyering  <meyering@redhat.com>
39806
39807         update-copyright-tests: correctly test EOL=\r\n handling
39808         * tests/test-update-copyright.sh: Put \r at the end of some lines
39809         for the dos-eol tests.  Based on a patch by Joel E. Denny.
39810
39811         maint.mk: make update-copyright exclusion list more configurable
39812         * top/maint.mk (update-copyright): Default to excluding COPYING,
39813         but allow an override, in case someone does want to update that file.
39814
39815         maint.mk: don't update copyright date in COPYING
39816         * top/maint.mk (update-copyright): Exclude COPYING.
39817
39818         maint.mk: add a copyright-updating rule
39819         * top/maint.mk (update-copyright): New rule.
39820         Derived from coreutils/Makefile.am.
39821
39822         update-copyright: rename some variables
39823         * build-aux/update-copyright: Rename a few variables for clarity.
39824         Tweak syntax.  List Joel E. Denny as coauthor.
39825
39826 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39827
39828         update-copyright: fix bug for 2-digit last year and add tests
39829         * build-aux/update-copyright: Fix bug.
39830         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
39831         specified.
39832         * modules/update-copyright-tests: New
39833         * tests/test-update-copyright.sh: New.
39834
39835 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39836
39837         update-copyright: handle leading tabs in line prefix
39838         * build-aux/update-copyright: Count leading tabs as 8 spaces
39839         when computing margin.  This helps with the formatting of
39840         ChangeLogs, for example.
39841         Fix documentation a little.
39842
39843 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39844
39845         update-copyright: support EOL=\r\n
39846         * build-aux/update-copyright: Implement that.
39847
39848 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39849
39850         update-copyright: automatically format copyright statements
39851         * build-aux/update-copyright: Implement that.
39852         Also, be a little more predictable and safer by always failing
39853         when the full copyright format is not perfectly recognized as an
39854         unbroken whole.  Discussed at
39855         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
39856         Rewrite documentation.
39857
39858 2009-08-03  Bruno Haible  <bruno@clisp.org>
39859
39860         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
39861
39862 2009-08-02  Bruno Haible  <bruno@clisp.org>
39863
39864         Tests for module 'uname'.
39865         * modules/uname-tests: New file.
39866         * tests/test-uname.c: New file.
39867
39868         New module 'uname'.
39869         * lib/uname.c: New file.
39870         * m4/uname.m4: New file.
39871         * modules/uname: New file.
39872         * doc/posix-functions/uname.texi: Mention the new module.
39873
39874 2009-08-02  Bruno Haible  <bruno@clisp.org>
39875
39876         Tests for module 'sys_utsname'.
39877         * modules/sys_utsname-tests: New file.
39878         * tests/test-sys_utsname.c: New file.
39879
39880         New module 'sys_utsname'.
39881         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
39882         * m4/sys_utsname_h.m4: New file.
39883         * modules/sys_utsname: New file.
39884         * doc/posix-headers/sys_utsname.texi: Mention the new module.
39885
39886 2009-08-02  Bruno Haible  <bruno@clisp.org>
39887
39888         Implicitly initialize the sockets library.
39889         * lib/gethostname.c: Include sockets.h.
39890         (rpl_gethostname): Invoke gl_sockets_startup.
39891         * lib/socket.c: Include sockets.h.
39892         (rpl_socket): Invoke gl_sockets_startup.
39893         * modules/gethostname (Depends-on): Add sockets.
39894         * modules/socket (Depends-on): Likewise.
39895         * tests/test-poll.c: Don't include sockets.h.
39896         (main): Don't invoke gl_sockets_startup.
39897         * tests/test-select.c: Don't include sockets.h.
39898         (main): Don't invoke gl_sockets_startup.
39899
39900 2009-08-02  Bruno Haible  <bruno@clisp.org>
39901
39902         Allow multiple calls to gl_sockets_startup.
39903         * lib/sockets.c (initialized_sockets_version): New variable.
39904         (gl_sockets_startup): Do nothing if already called for this or a higher
39905         version.
39906         (gl_sockets_cleanup): Reset initialized_sockets_version.
39907
39908 2009-08-03  Simon Josefsson  <simon@josefsson.org>
39909
39910         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
39911         different project/version.
39912
39913 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
39914             Bruno Haible  <bruno@clisp.org>
39915
39916         Tests for module 'pipe-filter-gi'.
39917         * modules/pipe-filter-gi-tests: New file.
39918         * tests/test-pipe-filter-gi1.sh: New file.
39919         * tests/test-pipe-filter-gi1.c: New file.
39920         * tests/test-pipe-filter-gi2.sh: New file.
39921         * tests/test-pipe-filter-gi2-main.c: New file.
39922         * tests/test-pipe-filter-gi2-child.c: New file.
39923
39924         New module 'pipe-filter-gi'.
39925         * lib/pipe-filter-gi.c: New file.
39926         * modules/pipe-filter-gi: New file.
39927
39928 2009-08-02  Bruno Haible  <bruno@clisp.org>
39929             Paolo Bonzini  <bonzini@gnu.org>
39930
39931         Tests for module 'pipe-filter-ii'.
39932         * modules/pipe-filter-ii-tests: New file.
39933         * tests/test-pipe-filter-ii1.sh: New file.
39934         * tests/test-pipe-filter-ii1.c: New file.
39935         * tests/test-pipe-filter-ii2.sh: New file.
39936         * tests/test-pipe-filter-ii2-main.c: New file.
39937         * tests/test-pipe-filter-ii2-child.c: New file.
39938
39939         New module 'pipe-filter-ii'.
39940         * lib/pipe-filter.h: New file.
39941         * lib/pipe-filter-ii.c: New file.
39942         * lib/pipe-filter-aux.h: New file.
39943         * modules/pipe-filter-ii: New file.
39944
39945 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39946
39947         * lib/gc-libgcrypt.c: Change copyright to FSF.
39948         * lib/gc-gnulib.c: Likewise.
39949
39950 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
39951
39952         * lib/gethostname.c: Include limits.h.
39953
39954 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39955             Bruno Haible  <bruno@clisp.org>
39956
39957         Ensure HOST_NAME_MAX as part of the gethostname module.
39958         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
39959         define also HOST_NAME_MAX.
39960         * tests/test-gethostname.c: Include <limits.h>.
39961         (main): Check also HOST_NAME_MAX.
39962         * doc/posix-headers/limits.texi: Document the mingw problem.
39963
39964 2009-08-02  Bruno Haible  <bruno@clisp.org>
39965
39966         * lib/gethostname.c (gethostname): Fix handling of large len argument.
39967         Add comments.
39968
39969 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39970
39971         * lib/gethostname.c: Add Windows wrapper.
39972         * m4/gethostname.m4: Look for gethostname in -lws2_32.
39973         * modules/gethostname: Depend on sys_socket & errno, for also
39974         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
39975         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
39976
39977 2009-07-31  Jim Meyering  <meyering@redhat.com>
39978
39979         getloadavg: fix symbol name in comment
39980         * lib/getloadavg.c: Correct a typo I introduced when adding
39981         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
39982         Matt Kraai spotted the problem.
39983
39984 2009-07-29  Matt Kraai  <mkraai@beckman.com>
39985
39986         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
39987         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
39988         code also if ! defined N_NAME_POINTER.
39989         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
39990         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
39991         but the n_name member is a 12-byte array.
39992
39993 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
39994
39995         update-copyright: generalize comment handling
39996         * build-aux/update-copyright: Handle copyright statements
39997         within more comment styles.
39998         Document usage.
39999         Report any file with an external copyright holder or parse failure.
40000
40001 2009-07-29  Jim Meyering  <meyering@redhat.com>
40002
40003         mktime: correct setting of REPLACE_MKTIME
40004         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
40005
40006         update-copyright: new module
40007         * modules/update-copyright: New file.
40008         * build-aux/update-copyright: New file.
40009         * MODULES.html.sh (maint+release support): Add update-copyright.
40010
40011 2009-07-27  Bruno Haible  <bruno@clisp.org>
40012
40013         Fix compilation error when <ctime> is used and mktime is replaced.
40014         * lib/time.in.h (mktime): New declaration.
40015         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
40016         REPLACE_MKTIME instead of defining mktime in config.h.
40017         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
40018         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
40019         Reported by Ross McFarland <rwmcfa1@neces.com>.
40020
40021 2009-07-27  Bruno Haible  <bruno@clisp.org>
40022
40023         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
40024         Reported by Matt Kraai <mkraai@beckman.com>.
40025
40026 2009-07-25  Jim Meyering  <meyering@redhat.com>
40027
40028         maint.mk: avoid warnings about missing files
40029         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
40030         diagnostic when .prev-version does not exist.
40031         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
40032         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
40033         nonexistent cfg.mk.
40034         Suggestions from Simon Josefsson.
40035
40036 2009-07-25  Bruno Haible  <bruno@clisp.org>
40037
40038         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
40039         defined as macros. Needed on QNX 6.4.1.
40040         Reported by Matt Kraai <mkraai@beckman.com>.
40041
40042 2009-07-23  Jim Meyering  <meyering@redhat.com>
40043
40044         maint.mk: invoke "make dist" with a working value of XZ_OPT
40045         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
40046
40047 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
40048
40049         Make fseeko.c compile on QNX.
40050         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
40051
40052 2009-07-22  Peter Simons  <simons@cryp.to>
40053
40054         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
40055         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
40056         * lib/md4.h: Likewise.
40057         * lib/md5.h: Likewise.
40058         * lib/sha1.h: Likewise.
40059         * lib/sha256.h: Likewise.
40060         * lib/sha512.h: Likewise.
40061
40062         tests-sha1: don't assign literal string to 'char *' variable
40063         * tests/test-sha1.c (main): Declare locals with "const" to match
40064         attributes of the right hand side.
40065
40066 2009-07-21  Eric Blake  <ebb9@byu.net>
40067
40068         dup2: fix more mingw problems
40069         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
40070         fd to itself.
40071         * doc/posix-functions/dup2.texi (dup2): Document the bug.
40072         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
40073         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
40074         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
40075         care of mingw bugs.
40076
40077 2009-07-21  Jim Meyering  <meyering@redhat.com>
40078
40079         vc-list-files: avoid failure when /bin/sh is dash
40080         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
40081         On some Debian based systems, /bin/sh is a symlink to dash, and running
40082         this command would omit the "/" following each 'tests' prefix:
40083           dash -x build-aux/vc-list-files -C . tests
40084         That is because bash and dash work differently:
40085           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
40086           bash ok
40087           dash odd
40088
40089 2009-07-21  Eric Blake  <ebb9@byu.net>
40090
40091         dup2-tests: test previous patch
40092         * modules/dup2-tests: New file.
40093         * tests/test-dup2.c: Likewise.
40094         * tests/test-open.c (main): Avoid unspecified behavior.
40095         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
40096         test.
40097
40098         dup2: work around mingw and cygwin 1.5 bug
40099         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
40100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40101         * modules/unistd (Makefile.am): Substitute it.
40102         * lib/unistd.in.h (dup2): Declare the replacement.
40103         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
40104         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
40105         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
40106         * modules/execute (Depends-on): Add dup2.
40107         * modules/fseterr (Depends-on): Likewise.
40108         * modules/pipe (Depends-on): Likewise.
40109         * modules/posix_spawn-internal (Depends-on): Likewise.
40110
40111 2009-07-21  Bruno Haible  <bruno@clisp.org>
40112
40113         * modules/.gitattributes: New file.
40114
40115 2009-07-20  Bruno Haible  <bruno@clisp.org>
40116
40117         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
40118         (main): Use it.
40119
40120 2009-07-20  Eric Blake  <ebb9@byu.net>
40121
40122         test-pipe: make a bit more robust.
40123         * tests/test-pipe.c (myerr): Allow error messages regardless of
40124         what we do to stderr.
40125         (test_pipe): Rearrange to avoid deadlock.
40126         (child_main): Try a larger read, to ensure we avoided deadlock.
40127         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
40128         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
40129         if misused.
40130
40131 2009-07-19  Jim Meyering  <meyering@redhat.com>
40132
40133         fts: avoid false-positive cycle-detection
40134         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
40135         for each new command line argument.
40136
40137 2009-07-19  Bruno Haible  <bruno@clisp.org>
40138
40139         Fix build error on mingw with the modules sys_select and unistd.
40140         * modules/acl-tests (Depends-on): Add close.
40141         * modules/binary-io-tests (Depends-on): Likewise.
40142         * modules/closein-tests (Depends-on): Likewise.
40143         * modules/flock-tests (Depends-on): Likewise.
40144         * modules/fsync-tests (Depends-on): Likewise.
40145         * modules/lseek-tests (Depends-on): Likewise.
40146         * modules/pipe-tests (Depends-on): Likewise.
40147         * modules/posix_spawn-tests (Depends-on): Likewise.
40148         * modules/posix_spawnp-tests (Depends-on): Likewise.
40149         * modules/stat-time-tests (Depends-on): Likewise.
40150         * modules/yesno-tests (Depends-on): Likewise.
40151
40152 2009-07-19  Bruno Haible  <bruno@clisp.org>
40153
40154         Unify conditionals.
40155         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
40156         macros, not at the compiler macros.
40157         * lib/pipe.c: Likewise.
40158         * lib/execute.c: Likewise.
40159         * lib/spawni.c: Likewise.
40160
40161 2009-07-19  Bruno Haible  <bruno@clisp.org>
40162
40163         Fix handling of closed stdin/stdout/stderr on mingw.
40164         * lib/w32spawn.h: Include unistd.h.
40165         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
40166         file descriptor with O_NOINHERIT flag.
40167         (fd_safer_noinherit): New function, based on fd-safer.c.
40168         (dup_safer_noinherit): New function, based on dup-safer.c.
40169         (undup_safer_noinherit): New function.
40170         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
40171         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
40172         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
40173         instead of fd_safer.
40174         * tests/test-pipe.c: Include <windows.h>.
40175         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
40176         result.
40177
40178         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
40179         from main.
40180         (test_pipe): Pass an extra argument for disambiguation.
40181         (main): Invoke parent_main or child_main.
40182
40183         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
40184         consistently.
40185
40186 2009-07-18  Eric Blake  <ebb9@byu.net>
40187
40188         test-pipe: fix mingw build
40189         * tests/test-pipe.c (main): Avoid fcntl on mingw.
40190
40191 2009-07-18  Bruno Haible  <bruno@clisp.org>
40192
40193         * modules/pipe-tests (Makefile.am): Fix typo.
40194
40195 2009-07-18  Eric Blake  <ebb9@byu.net>
40196
40197         error: fix mingw build
40198         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
40199         Reported by Bruno Haible.
40200
40201         error: avoid undefined use of stdout
40202         * lib/error.c (error, error_at_line): Check that fd 1 is open
40203         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
40204         is handling faults and the close_stdout module wants to report the
40205         detection of closed stdout as an error.
40206
40207 2009-07-17  Eric Blake  <ebb9@byu.net>
40208
40209         pipe: be robust in face of closed fds
40210         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
40211         should cause child to misbehave.
40212         * modules/pipe-tests: New module.
40213         * tests/test-pipe.c: New file.
40214         * tests/test-pipe.sh: New file.
40215         Reported by Akim Demaille.
40216
40217 2009-07-14  Bruno Haible  <bruno@clisp.org>
40218
40219         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
40220         Reported by anonymous kc.
40221
40222 2009-07-07  Jim Meyering  <meyering@redhat.com>
40223
40224         maint.mk: don't look for translatable strings in *.m4 or *.mk
40225         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
40226         when searching for translatable strings.
40227
40228 2009-07-05  Jim Meyering  <meyering@redhat.com>
40229
40230         remove superfluous parentheses in STREQ definition
40231         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
40232         * lib/getugroups.c (STREQ): Likewise.
40233         * lib/fnmatch.c (STREQ): Likewise.
40234         Spotted by Bruno Haible.
40235
40236 2009-07-04  Jim Meyering  <meyering@redhat.com>
40237
40238         argv-iter: new module
40239         * MODULES.html.sh: Add argv-iter.
40240         * lib/argv-iter.c, lib/argv-iter.h: New files.
40241         * modules/argv-iter: New file.
40242         * modules/argv-iter-tests: New file.
40243         * tests/test-argv-iter.c: Test it.
40244
40245 2009-07-04  Bruno Haible  <bruno@clisp.org>
40246
40247         Fix assertion.
40248         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
40249         contains more exact copies of a given entry than file2, leave the extra
40250         copies unpaired rather than aborting.
40251         Reported by Eric Blake.
40252
40253 2009-07-02  Bruno Haible  <bruno@clisp.org>
40254
40255         Speedup git-merge-changelog for git cherry-pick.
40256         * lib/git-merge-changelog.c (struct entries_mapping): New type.
40257         (entries_mapping_get): New function, extracted from compute_mapping.
40258         (entries_mapping_reverse_get): New function.
40259         (compute_mapping): Add a 'full' argument. Return the result in a
40260         'struct entries_mapping'.
40261         (main): Update. Access the mappings through entries_mapping_get.
40262         Reported by Eric Blake.
40263
40264 2009-07-02  Bruno Haible  <bruno@clisp.org>
40265
40266         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
40267         best_i.
40268
40269 2009-07-02  Bruno Haible  <bruno@clisp.org>
40270
40271         Speed up approximate search for matching ChangeLog entries.
40272         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
40273         argument. Call fstrcmp_bounded instead of fstrcmp.
40274         (compute_mapping, try_split_merged_entry, main): Update callers.
40275
40276 2009-07-02  Bruno Haible  <bruno@clisp.org>
40277
40278         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
40279
40280 2009-06-30  Bruno Haible  <bruno@clisp.org>
40281
40282         Reduce the number of uc_is_cased calls.
40283         * lib/unicase.h (casing_suffix_context_t): Add
40284         'first_char_except_ignorable' field.
40285         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
40286         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
40287         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
40288         Update initializer.
40289         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
40290         case-ignorable characters.
40291         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
40292         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
40293         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
40294         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
40295         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
40296
40297 2009-06-30  Bruno Haible  <bruno@clisp.org>
40298
40299         Tests for module 'unicase/ignorable'.
40300         * modules/unicase/ignorable-tests: New file.
40301         * tests/unicase/test-ignorable.c: New file, generated by
40302         gen-uni-tables.
40303
40304         Tests for module 'unicase/cased'.
40305         * modules/unicase/cased-tests: New file.
40306         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
40307         * tests/unicase/test-predicate-part1.h: New file, derived from
40308         tests/unictype/test-predicate-part1.h.
40309         * tests/unicase/test-predicate-part2.h: New file, same as
40310         tests/unictype/test-predicate-part2.h.
40311
40312         Fix evaluation of "Before C" condition of FINAL_SIGMA.
40313         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
40314         (output_casing_properties): New function.
40315         (main): Call it.
40316         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
40317         * lib/unicase/cased.c: Include unictype/bitmap.h.
40318         (uc_is_cased): Define through a bitmap lookup.
40319         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
40320         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
40321         (uc_is_case_ignorable): Define through a bitmap lookup.
40322         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
40323         lib/unictype/bitmap.h.
40324         (Depends-on): Add inline. Clean up.
40325         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
40326         lib/unictype/bitmap.h.
40327         (Depends-on): Add inline. Clean up.
40328         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
40329         recognition.
40330         * tests/unicase/test-u16-tolower.c (main): Likewise.
40331         * tests/unicase/test-u32-tolower.c (main): Likewise.
40332
40333 2009-06-30  Bruno Haible  <bruno@clisp.org>
40334
40335         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
40336         * lib/unicase/u16-casemap.c: Likewise.
40337         * lib/unicase/u32-casemap.c: Likewise.
40338
40339 2009-06-29  Bruno Haible  <bruno@clisp.org>
40340
40341         Define u32_casefold as a wrapper around u32_ct_casefold.
40342         * lib/unicase/u32-casefold.c: Update.
40343         * modules/unicase/u32-casefold (Depends-on): Add
40344         unicase/u32-ct-casefold, unicase/empty-prefix-context,
40345         unicase/empty-suffix-context. Clean up.
40346
40347         Define u16_casefold as a wrapper around u16_ct_casefold.
40348         * lib/unicase/u16-casefold.c: Update.
40349         * modules/unicase/u16-casefold (Depends-on): Add
40350         unicase/u16-ct-casefold, unicase/empty-prefix-context,
40351         unicase/empty-suffix-context. Clean up.
40352
40353         Define u8_casefold as a wrapper around u8_ct_casefold.
40354         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
40355         * lib/unicase/u8-casefold.c: Update.
40356         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
40357         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40358
40359         Define u32_totitle as a wrapper around u32_ct_totitle.
40360         * lib/unicase/u32-totitle.c: Update.
40361         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
40362         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40363
40364         Define u16_totitle as a wrapper around u16_ct_totitle.
40365         * lib/unicase/u16-totitle.c: Update.
40366         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
40367         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40368
40369         Define u8_totitle as a wrapper around u8_ct_totitle.
40370         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
40371         functions.
40372         (FUNC): Delegate to U_CT_TOTITLE.
40373         * lib/unicase/u8-totitle.c: Update.
40374         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
40375         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40376
40377         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
40378         invocation.
40379         * modules/unicase/u32-tolower (Depends-on): Add
40380         unicase/empty-prefix-context, unicase/empty-suffix-context.
40381
40382         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
40383         invocation.
40384         * modules/unicase/u16-tolower (Depends-on): Add
40385         unicase/empty-prefix-context, unicase/empty-suffix-context.
40386
40387         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
40388         * modules/unicase/u8-tolower (Depends-on): Add
40389         unicase/empty-prefix-context, unicase/empty-suffix-context.
40390
40391         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
40392         invocation.
40393         * modules/unicase/u32-toupper (Depends-on): Add
40394         unicase/empty-prefix-context, unicase/empty-suffix-context.
40395
40396         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
40397         invocation.
40398         * modules/unicase/u16-toupper (Depends-on): Add
40399         unicase/empty-prefix-context, unicase/empty-suffix-context.
40400
40401         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
40402         * modules/unicase/u8-toupper (Depends-on): Add
40403         unicase/empty-prefix-context, unicase/empty-suffix-context.
40404
40405         New module 'unicase/u32-ct-casefold'.
40406         * lib/unicase/u32-ct-casefold.c: New file.
40407         * modules/unicase/u32-ct-casefold: New file.
40408
40409         New module 'unicase/u16-ct-casefold'.
40410         * lib/unicase/u16-ct-casefold.c: New file.
40411         * modules/unicase/u16-ct-casefold: New file.
40412
40413         New module 'unicase/u8-ct-casefold'.
40414         * lib/unicase/u8-ct-casefold.c: New file.
40415         * lib/unicase/u-ct-casefold.h: New file, derived from
40416         lib/unicase/u-casefold.h.
40417         * modules/unicase/u8-ct-casefold: New file.
40418
40419         New module 'unicase/u32-ct-totitle'.
40420         * lib/unicase/u32-ct-totitle.c: New file.
40421         * modules/unicase/u32-ct-totitle: New file.
40422
40423         New module 'unicase/u16-ct-totitle'.
40424         * lib/unicase/u16-ct-totitle.c: New file.
40425         * modules/unicase/u16-ct-totitle: New file.
40426
40427         New module 'unicase/u8-ct-totitle'.
40428         * lib/unicase/u8-ct-totitle.c: New file.
40429         * lib/unicase/u-ct-totitle.h: New file, derived from
40430         lib/unicase/u-totitle.h.
40431         * modules/unicase/u8-ct-totitle: New file.
40432
40433         New module 'unicase/u32-ct-tolower'.
40434         * lib/unicase/u32-ct-tolower.c: New file.
40435         * modules/unicase/u32-ct-tolower: New file.
40436
40437         New module 'unicase/u16-ct-tolower'.
40438         * lib/unicase/u16-ct-tolower.c: New file.
40439         * modules/unicase/u16-ct-tolower: New file.
40440
40441         New module 'unicase/u8-ct-tolower'.
40442         * lib/unicase/u8-ct-tolower.c: New file.
40443         * modules/unicase/u8-ct-tolower: New file.
40444
40445         New module 'unicase/u32-ct-toupper'.
40446         * lib/unicase/u32-ct-toupper.c: New file.
40447         * modules/unicase/u32-ct-toupper: New file.
40448
40449         New module 'unicase/u16-ct-toupper'.
40450         * lib/unicase/u16-ct-toupper.c: New file.
40451         * modules/unicase/u16-ct-toupper: New file.
40452
40453         New module 'unicase/u8-ct-toupper'.
40454         * lib/unicase/u8-ct-toupper.c: New file.
40455         * modules/unicase/u8-ct-toupper: New file.
40456
40457         Add context arguments to u*_casemap functions.
40458         * lib/unicase/unicasemap.h: Include unicase.h.
40459         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
40460         suffix_context arguments.
40461         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
40462         functions.
40463         (FUNC): Add prefix_context and suffix_context arguments. Use
40464         uc_is_cased and uc_is_case_ignorable.
40465         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
40466         * lib/unicase/u16-casemap.c: Likewise.
40467         * lib/unicase/u32-casemap.c: Likewise.
40468         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
40469         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40470         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
40471         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40472         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
40473         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40474
40475         New module 'unicase/u32-suffix-context'.
40476         * lib/unicase/u32-suffix-context.c: New file.
40477         * modules/unicase/u32-suffix-context: New file.
40478
40479         New module 'unicase/u16-suffix-context'.
40480         * lib/unicase/u16-suffix-context.c: New file.
40481         * modules/unicase/u16-suffix-context: New file.
40482
40483         New module 'unicase/u8-suffix-context'.
40484         * lib/unicase/u8-suffix-context.c: New file.
40485         * lib/unicase/u-suffix-context.h: New file.
40486         * modules/unicase/u8-suffix-context: New file.
40487
40488         New module 'unicase/empty-suffix-context'.
40489         * lib/unicase/empty-suffix-context.c: New file.
40490         * modules/unicase/empty-suffix-context: New file.
40491
40492         New module 'unicase/u32-prefix-context'.
40493         * lib/unicase/u32-prefix-context.c: New file.
40494         * modules/unicase/u32-prefix-context: New file.
40495
40496         New module 'unicase/u16-prefix-context'.
40497         * lib/unicase/u16-prefix-context.c: New file.
40498         * modules/unicase/u16-prefix-context: New file.
40499
40500         New module 'unicase/u8-prefix-context'.
40501         * lib/unicase/u8-prefix-context.c: New file.
40502         * lib/unicase/u-prefix-context.h: New file.
40503         * lib/unicase/context.h: New file.
40504         * modules/unicase/u8-prefix-context: New file.
40505
40506         New module 'unicase/empty-prefix-context'.
40507         * lib/unicase/empty-prefix-context.c: New file.
40508         * modules/unicase/empty-prefix-context: New file.
40509
40510         New module 'unicase/ignorable'.
40511         * lib/unicase/ignorable.c: New file.
40512         * modules/unicase/ignorable: New file.
40513
40514         New module 'unicase/cased'.
40515         * lib/unicase/caseprop.h: New file.
40516         * lib/unicase/cased.c: New file.
40517         * modules/unicase/cased: New file.
40518
40519         New functions for case mapping of substrings.
40520         * lib/unicase.h (casing_prefix_context_t): New type.
40521         (unicase_empty_prefix_context): New variable.
40522         (u8_casing_prefix_context, u16_casing_prefix_context,
40523         u32_casing_prefix_context, u8_casing_prefixes_context,
40524         u16_casing_prefixes_context, u32_casing_prefixes_context): New
40525         declarations.
40526         (casing_suffix_context_t): New type.
40527         (unicase_empty_suffix_context): New variable.
40528         (u8_casing_suffix_context, u16_casing_suffix_context,
40529         u32_casing_suffix_context, u8_casing_suffixes_context,
40530         u16_casing_suffixes_context, u32_casing_suffixes_context,
40531         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
40532         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
40533         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
40534         declarations.
40535
40536 2009-06-28  Jim Meyering  <meyering@redhat.com>
40537
40538         boostrap: indent only with spaces
40539         * build-aux/bootstrap: Indent only with spaces, never TABs.
40540
40541         bootstrap: split long lines
40542         * build-aux/bootstrap: Keep line length < 80.
40543
40544         bootstrap: sync from coreutils
40545         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
40546         just as autoreconf does.  Verify a list of prerequisite
40547         package-name,version-number pairs if defined in bootstrap.conf.
40548         Refer to README-prereq, if prerequisites are not satisfied.
40549
40550 2009-06-27  Eric Blake  <ebb9@byu.net>
40551
40552         tests: add test for bogus NULL definition
40553         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
40554         * tests/test-stdlib.c: Likewise.
40555         * tests/test-string.c: Likewise.
40556         * tests/test-locale.c: Likewise.
40557         * tests/test-unistd.c: Likewise.
40558         * modules/stdio-tests (Depends-on): Add verify.
40559         * modules/stdlib-tests (Depends-on): Likewise.
40560         * modules/string-tests (Depends-on): Likewise.
40561         * modules/locale-tests (Depends-on): Likewise.
40562         * modules/unistd-tests (Depends-on): Likewise.
40563
40564 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
40565
40566         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
40567         self-explaining comment.
40568         * m4/selinux-selinux-h: Update serial.
40569         (gl_LIBSELINUX): New macro, adding a warning for missing development
40570         packages to code extracted from...
40571         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
40572         Add warning for missing development packages here, too.
40573
40574 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
40575
40576         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
40577
40578 2009-06-25  Eric Blake  <ebb9@byu.net>
40579
40580         version-etc: fix regression
40581         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
40582         gcc.
40583         (version_etc): Use it, to catch bugs with trailing NULL.
40584         * lib/version-etc.c (version_etc_arn): Delete unused argument.
40585         (version_etc_va): Fix logic bug.
40586         * modules/version-etc-tests: Add test.
40587         * tests/test-version-etc.c: New file.
40588         * tests/test-version-etc.sh: Likewise.
40589
40590 2009-06-25  Sam Steingold  <sds@gnu.org>
40591
40592         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
40593         mbtowc declaration.
40594
40595 2009-06-25  Eric Blake  <ebb9@byu.net>
40596
40597         fpurge: migrate into <stdio.h>
40598         * lib/fpurge.h: Delete...
40599         * lib/stdio.in.h (fpurge): ...and declare here, instead.
40600         * lib/fpurge.c (fpurge): Change declaring header.
40601         * modules/fpurge (Files): Drop deleted file.
40602         (Depends-on): Add stdio.
40603         (configure.ac): Set witness.
40604         * modules/stdio (Makefile.am): Support fpurge macros.
40605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40606         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
40607         * lib/fflush.c: Update client.
40608         * tests/test-fpurge.c: Likewise.
40609         * NEWS: Mention the change.
40610
40611 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40612
40613         * lib/argp-version-etc.c (program_authors): Add const
40614         qualifier.
40615         * lib/version-etc.c: Fix typos in the comments.
40616         * modules/argp-version-etc: Depends on version-etc.
40617
40618 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40619
40620         argp-version-etc: new module.
40621
40622         * lib/argp-version-etc.c: New file.
40623         * lib/argp-version-etc.h: New file.
40624         * modules/argp-version-etc: New file.
40625         * modules/argp-version-etc-tests: New file.
40626         * tests/test-argp-version-etc.c: New test.
40627         * tests/test-argp-version-etc-1.sh: New test.
40628
40629 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40630
40631         Provide additional interfaces and documentation for version-etc
40632         module.
40633
40634         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
40635         interfaces.
40636         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
40637         prototypes.
40638
40639 2009-06-24  Bruno Haible  <bruno@clisp.org>
40640
40641         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
40642         HAVE_LIB${NAME} macro.
40643         Reported by Sam Steingold <sds@gnu.org>.
40644
40645 2009-06-23  Simon Josefsson  <simon@josefsson.org>
40646
40647         * modules/hash-tests (test_hash_LDADD): Link to libintl when
40648         needed.
40649
40650 2009-06-21  Bruno Haible  <bruno@clisp.org>
40651
40652         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
40653         work.
40654         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
40655         together with LIB${NAME}, LTLIB${NAME}.
40656         Reported by Sam Steingold <sds@gnu.org>.
40657
40658 2009-06-20  Jim Meyering  <meyering@redhat.com>
40659
40660         tests: make sc_require_test_exit_idiom more generic
40661         * top/maint.mk (Exit_witness_file): New overridable variable.
40662         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
40663         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
40664
40665 2009-06-19  Jim Meyering  <meyering@redhat.com>
40666
40667         hash: reverse order of src/dst parameters in an internal interface
40668         * lib/hash.c (transfer_entries): Reverse order of parameters to
40669         put DST before SRC.  Adjust callers.
40670
40671         tests: test-hash: avoid wholesale duplication
40672         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
40673         Instead, use a loop and add a single conditional.
40674
40675         tests: test-hash: allow seed selection via a command line argument
40676         * tests/test-hash.c (get_seed): New function.
40677         (main): Use it.
40678
40679 2009-06-19  Eric Blake  <ebb9@byu.net>
40680
40681         hash: avoid memory leak on allocation failure
40682         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
40683         failure.  Factor repeated algorithm...
40684         (transfer_entries): ...into new helper routine.
40685         (hash_delete): React to hash_rehash return value.
40686
40687         hash: reduce memory pressure in hash_rehash no-op case
40688         * lib/hash.c (next_prime): Avoid overflow.
40689         (hash_initialize): Factor bucket size computation...
40690         (compute_bucket_size): ...into new helper function.
40691         (hash_rehash): Use new function and open coding to reduce memory
40692         pressure, and avoid a memory leak in USE_OBSTACK code.
40693         Reported by Jim Meyering.
40694
40695 2009-06-18  Eric Blake  <ebb9@byu.net>
40696
40697         hash: make rotation more obvious
40698         * modules/hash (Depends-on): Add bitrotate and stdint.
40699         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
40700         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
40701         (SIZE_MAX): Rely on headers for definition.
40702         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
40703         (raw_hasher): Use rotr_sz.
40704         Suggested by Jim Meyering.
40705
40706         hash: fix memory leak in last patch
40707         * lib/hash.c (hash_rehash): Avoid memory leak.
40708
40709         hash: avoid no-op rehashing
40710         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
40711
40712         hash: provide default callback functions
40713         * lib/hash.c (raw_hasher, raw_comparator): New functions.
40714         (hash_initialize): Use them as defaults.
40715         * tests/test-hash.c (main): Test this.
40716
40717         hash: minor optimization
40718         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
40719         when possible.
40720         (hash_initialize): Document this promise.
40721         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
40722         * tests/test-hash.c (hash_compare_strings): Test this.
40723
40724 2009-06-18  Bruno Haible  <bruno@clisp.org>
40725
40726         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
40727         going to be replaced anyway.
40728
40729 2009-06-18  Bruno Haible  <bruno@clisp.org>
40730
40731         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
40732         in one place.
40733         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
40734         be replaced anyway.
40735
40736 2009-06-18  Eric Blake  <ebb9@byu.net>
40737
40738         hash: check for resize before insertion
40739         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
40740         threshold before insertion, so that a pathological hash_rehash
40741         that fills every bucket can still trigger another rehash.
40742
40743 2009-06-18  Jim Meyering  <meyering@redhat.com>
40744
40745         hash-tests: add a loop around the small tests
40746         * tests/test-hash.c (main): Repeat small tests with selected
40747         small initial table sizes.
40748
40749 2009-06-17  Eric Blake  <ebb9@byu.net>
40750
40751         hash: minor cleanups
40752         * lib/hash.h (hash_entry): Make opaque, by moving...
40753         * lib/hash.c (hash_entry): ...here.
40754         (hash_insert): Clarify restrictions on what can be inserted.
40755         (hash_get_next): Clarify when it is safe to remove an element
40756         during traversal.
40757         (check_tuning): Skip verification when tuning is known safe.
40758         (hash_initialize): Clarify restrictions on tuning.
40759
40760 2009-06-17  Jim Meyering  <jim@meyering.net>
40761         and Eric Blake  <ebb9@byu.net>
40762
40763         hash-tests: new module
40764         * modules/hash-tests: New file.
40765         * tests/test-hash.c: New file.
40766
40767 2009-06-17  Eric Blake  <ebb9@byu.net>
40768
40769         strstr-simple: document new module
40770         * MODULES.html.sh: Document new module.
40771
40772         strstr, strcasestr: replace on platforms with broken memchr
40773         * modules/strstr: Split into...
40774         * modules/strstr-simple: ...new module that does not care about
40775         performance, but does care about glibc bug.
40776         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
40777         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
40778         if platform memchr is broken, per Debian bug 521737.
40779         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
40780         memchr.
40781         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
40782         * doc/posix-functions/strstr.texi (strstr): Document the fix.
40783         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40784         * modules/mountlist (Depends-on): Add strstr-simple.
40785         * modules/gen-uni-tables (Depends-on): Likewise.
40786         * modules/argz (Depends-on): Add strstr.
40787
40788 2009-06-17  Bruno Haible  <bruno@clisp.org>
40789
40790         * modules/posix_spawn-internal (Depends-on): Add errno.
40791
40792 2009-06-17  Bruno Haible  <bruno@clisp.org>
40793
40794         Define missing ESTALE on Interix 3.5.
40795         * lib/errno.in.h (ESTALE): Assign a value if missing.
40796         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
40797         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
40798         missing.
40799         * doc/posix-headers/errno.texi: Mention the Interix bug.
40800         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
40801
40802 2009-06-15  Eric Blake  <ebb9@byu.net>
40803
40804         memchr, memchr2: add valgrind exception
40805         * lib/memchr.valgrind: New file.
40806         * lib/memchr2.valgrind: New file.
40807         * modules/memchr (Files): Distribute valgrind file.
40808         * modules/memchr2 (Files): Likewise.
40809
40810         docs: memchr is no longer obsolete
40811         * MODULES.html.sh: Move memchr from obsolete to string.h section.
40812         * lib/string.in.h (memchr): Simplify logic.
40813
40814 2009-06-14  Jim Meyering  <meyering@redhat.com>
40815
40816         link-follow: fix the "checking..." message to not mention trailing slash
40817         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
40818         never considered trailing slashes.
40819
40820 2009-06-14  Bruno Haible  <bruno@clisp.org>
40821
40822         * m4/memchr.m4: Mention also the bug on IA-64.
40823         * doc/posix-functions/memchr.texi: Likewise.
40824
40825 2009-06-12  Eric Blake  <ebb9@byu.net>
40826
40827         memchr: detect broken x86_64 and alpha implementations
40828         * modules/memchr-tests (Depends-on): Move mmap detection...
40829         * modules/memchr (Depends-on): ...here.
40830         (configure.ac): Set indicator.
40831         * lib/string.in.h (memchr): Declare replacement.
40832         * modules/string (Makefile.am): Trigger replacement.
40833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40834         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
40835         bugs.
40836         * doc/posix-functions/memchr.texi (memchr): Document the bug.
40837         * modules/getpagesize (License): Relax license.
40838
40839 2009-06-11  Bruno Haible  <bruno@clisp.org>
40840
40841         * lib/idpriv.h: Add more references.
40842
40843 2009-06-08  Bruno Haible  <bruno@clisp.org>
40844
40845         Tests for module 'idpriv-droptemp'.
40846         * modules/idpriv-droptemp-tests: New file.
40847         * tests/test-idpriv-droptemp.sh: New file.
40848         * tests/test-idpriv-droptemp.su.sh: New file.
40849         * tests/test-idpriv-droptemp.c: New file.
40850
40851         New module 'idpriv-droptemp'.
40852         * lib/idpriv-droptemp.c: New file.
40853         * modules/idpriv-droptemp: New file.
40854
40855 2009-06-08  Bruno Haible  <bruno@clisp.org>
40856
40857         Tests for module 'idpriv-drop'.
40858         * modules/idpriv-drop-tests: New file.
40859         * tests/test-idpriv-drop.sh: New file.
40860         * tests/test-idpriv-drop.su.sh: New file.
40861         * tests/test-idpriv-drop.c: New file.
40862
40863         New module 'idpriv-drop'.
40864         * lib/idpriv.h: New file.
40865         * lib-idpriv-drop.c: New file.
40866         * m4/idpriv.m4: New file.
40867         * modules/idpriv-drop: New file.
40868
40869 2009-06-08  Bruno Haible  <bruno@clisp.org>
40870
40871         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
40872         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40873         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40874         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40875         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40876         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40877         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40878
40879 2009-06-08  Eric Blake  <ebb9@byu.net>
40880
40881         test-strstr: use memory fence, when possible
40882         * tests/test-strstr.c (main): Use memory fence, in order to be
40883         more likely to trigger Debian bug 521737.
40884         * modules/strstr-tests (Files): Pull in additional files.
40885
40886         memchr: no longer obsolete, for wider field testing
40887         * modules/memchr (Status, Notice): Delete, this module is no
40888         longer obsolete.
40889         * modules/vasnprintf (Depends-on): Add memchr.
40890
40891 2009-06-07  Jim Meyering  <meyering@redhat.com>
40892
40893         hash: declare some functions with the warn_unused_result attribute
40894         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
40895
40896 2009-06-07  Bruno Haible  <bruno@clisp.org>
40897
40898         * tests/test-alignof.c: Don't test int64_t if it does not exist.
40899         Reported by Eric Blake.
40900
40901 2009-06-06  Eric Blake  <ebb9@byu.net>
40902
40903         test-alignof: fix typo with long double
40904         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
40905         compiler error.
40906
40907 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
40908
40909         Escape non-texinfo { and }s.
40910         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
40911         markup error.
40912
40913 2009-06-04  Jim Meyering  <meyering@redhat.com>
40914
40915         gitlog-to-changelog: don't infloop on an empty commit log
40916         * build-aux/gitlog-to-changelog: Warn about an empty log message.
40917         Reported by Boris Petersen <transacid@centerim.org>.
40918
40919 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
40920
40921         version-etc: extend for packagers
40922         Add three new configure options, intended for packagers:
40923           --with-packager="packager name"
40924           --with-packager-version="packager-specific version"
40925           --with-packager-bug-reports="packager bug reporting"
40926         An example with coreutils:
40927           $ ./configure \
40928             --with-packager=Gentoo \
40929             --with-packager-bug-report=http://bugs.gentoo.org/ \
40930             --with-packager-version="patchset 1.6"
40931           $ ./src/ls --version | head -n2
40932           ls (GNU coreutils) 7.1-dirty
40933           Packaged by Gentoo (patchset 1.6)
40934         Note that the bug reporting info via --help doesn't show up because
40935         coreutils uses its own custom emit_bug_reporting_address() implementation
40936         in src/system.h.  If it didn't, it'd look like:
40937           $ ./src/ls --help | tail -n4
40938           Report bugs to <bug-coreutils@gnu.org>.
40939           Report Gentoo bugs to <http://bugs.gentoo.org/>.
40940           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
40941           General help using GNU software: <http://www.gnu.org/gethelp/>.
40942         * lib/version-etc.c: Print new information, if provided.
40943         * m4/version-etc.m4: New file.
40944         * modules/version-etc (Files): Add m4/version-etc.m4.
40945         (configure.ac): Add gl_VERSION_ETC.
40946
40947 2009-05-31  Bruno Haible  <bruno@clisp.org>
40948
40949         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
40950         and 'int64_t'.
40951         * modules/alignof-tests (Dependencies): Add stdint.
40952         Reported by Eric Blake.
40953
40954 2009-05-31  Bruno Haible  <bruno@clisp.org>
40955
40956         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
40957         restriction due to compiler bugs.
40958         Reported by Eric Blake.
40959
40960 2009-05-31  Simon Josefsson  <simon@josefsson.org>
40961             Bruno Haible  <bruno@clisp.org>
40962
40963         Fix test-alignof failure.
40964         * lib/alignof.h (alignof_slot): New macro.
40965         (alignof_type): New macro, with the same semantics as the previous
40966         'alignof'.
40967         (alignof): Alias to alignof_slot.
40968         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
40969         check that the results are usable as constant expressions.
40970
40971 2009-05-31  Bruno Haible  <bruno@clisp.org>
40972
40973         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
40974         * tests/test-memchr.c (main): Check that memchr does not read past the
40975         first occurrence of the byte.
40976         * tests/test-strstr.c (main): Update comment.
40977         Suggested by Eric Blake.
40978
40979 2009-05-30  Bruno Haible  <bruno@clisp.org>
40980
40981         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
40982         detail how to use dumpbin.
40983         Reported by David Byron <dbyron@dbyron.com>.
40984
40985 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40986
40987         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
40988
40989 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40990
40991         * m4/manywarnings.m4: Add GCC 4.4 warnings.
40992
40993 2009-05-28  Bruno Haible  <bruno@clisp.org>
40994
40995         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
40996         build-aux/ files.
40997
40998 2009-05-28  Simon Josefsson  <simon@josefsson.org>
40999
41000         * gnulib-tool (func_import): Transform license on build-aux/ files too.
41001
41002 2009-05-27  Simon Josefsson  <simon@josefsson.org>
41003
41004         * gnulib-tool (sed_transform_main_lib_file)
41005         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
41006         regexps.
41007
41008 2009-05-26  Simon Josefsson  <simon@josefsson.org>
41009
41010         * tests/test-strstr.c: Add another self-test.
41011         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
41012         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
41013
41014 2009-05-23  Bruno Haible  <bruno@clisp.org>
41015
41016         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
41017         change.
41018
41019 2009-05-21  Bruno Haible  <bruno@clisp.org>
41020
41021         Simplify use of mode_t varargs.
41022         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
41023         uses 'mode_t' or 'int'.
41024         * lib/openat.c (openat): Likewise.
41025         * lib/open-safer.c (open_safer): Likewise.
41026         * m4/mode_t.m4: New file.
41027         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
41028         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
41029         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
41030         * modules/open (Files): Add m4/mode_t.m4.
41031         * modules/openat (Files): Likewise.
41032         * modules/fcntl-safer (Files): Likewise.
41033         Suggested by Eric Blake.
41034
41035 2009-05-21  Pádraig Brady  <P@draigbrady.com>
41036
41037         * doc/glibc-functions/fallocate.texi: New file.
41038         * doc/gnulib.texi: Include it.
41039
41040 2009-05-21  Eric Blake  <ebb9@byu.net>
41041             Bruno Haible  <bruno@clisp.org>
41042
41043         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
41044         invocations.
41045         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41046
41047 2009-05-21  Eric Blake  <ebb9@byu.net>
41048             Bruno Haible  <bruno@clisp.org>
41049
41050         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
41051         include_next. Fix of 2008-11-20 commit.
41052         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
41053         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
41054         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
41055         NEXT_MATH_H.
41056         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
41057         instead of NEXT_MATH_H.
41058
41059 2009-05-21  Bruno Haible  <bruno@clisp.org>
41060
41061         Avoid redefinition warnings for SIZE_MAX.
41062         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
41063         Reported by Simon Josefsson.
41064
41065 2009-05-21  Bruno Haible  <bruno@clisp.org>
41066
41067         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
41068         AC_CACHE_VAL.
41069
41070 2009-05-20  Bruno Haible  <bruno@clisp.org>
41071
41072         Make zeroptr.h work on mingw.
41073         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
41074         mprotect.
41075         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
41076         * modules/memchr2-tests (configure.ac): Likewise.
41077         * modules/memcmp-tests (configure.ac): Likewise.
41078         * modules/memmem-tests (configure.ac): Likewise.
41079         * modules/memrchr-tests (configure.ac): Likewise.
41080         Reported by Simon Josefsson.
41081
41082 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41083
41084         * tests/test-glob.c: Include string.h for strcmp prototype.
41085
41086 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41087
41088         * modules/getdelim (Depends-on): Add explicit stdint, although it
41089         was implicitly already pulled in via realloc-posix.
41090         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
41091
41092 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41093
41094         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
41095         G. Christensen" <tgc@jupiterrise.com>.
41096         * m4/sys_socket_h.m4: Check for sa_family_t.
41097         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
41098         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
41099         * tests/test-sys_socket.c: Check that sa_family_t works.
41100
41101 2009-05-18  Eric Blake  <ebb9@byu.net>
41102
41103         maint.mk: allow gnulib_dir in VPATH build
41104         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
41105
41106 2009-05-15  Jim Meyering  <meyering@redhat.com>
41107
41108         maint.mk: Give gnulib_dir a default definition.
41109         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
41110         Thus, most packages no longer need to specify this variable in cfg.mk
41111
41112 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
41113
41114         rename.m4: fix typos that would make non-mingw cross-configure fail
41115         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
41116
41117 2009-05-13  Eric Blake  <ebb9@byu.net>
41118
41119         mmap-anon: avoid out-of-order autoconf expansion
41120         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
41121         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
41122         * modules/memchr-tests (Depends-on): Add extensions.
41123         * modules/memchr2-tests (Depends-on): Add extensions.
41124         * modules/memcmp-tests (Depends-on): Add extensions.
41125         * modules/memmem-tests (Depends-on): Add extensions.
41126         * modules/memrchr-tests (Depends-on): Add extensions.
41127
41128 2009-05-13  Bruno Haible  <bruno@clisp.org>
41129
41130         Make some tests ISO C 99 compliant.
41131         * tests/zerosize-ptr.h: New file.
41132         * tests/test-memchr.c: Include zerosize-ptr.h.
41133         (main): Use a zero-size object pointer instead of NULL.
41134         * tests/test-memchr2.c: Include zerosize-ptr.h.
41135         (main): Use a zero-size object pointer instead of NULL.
41136         * tests/test-memcmp.c: Include zerosize-ptr.h.
41137         (main): Use a zero-size object pointer instead of NULL.
41138         * tests/test-memmem.c: Include zerosize-ptr.h.
41139         (main): Use a zero-size object pointer instead of NULL.
41140         * tests/test-memrchr.c: Include zerosize-ptr.h.
41141         (main): Use a zero-size object pointer instead of NULL.
41142         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
41143         m4/mmap-anon.m4.
41144         (Depends-on): Add getpagesize.
41145         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41146         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
41147         m4/mmap-anon.m4.
41148         (Depends-on): Add getpagesize.
41149         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41150         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
41151         m4/mmap-anon.m4.
41152         (Depends-on): Add getpagesize.
41153         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41154         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
41155         m4/mmap-anon.m4.
41156         (Depends-on): Add getpagesize.
41157         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41158         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
41159         m4/mmap-anon.m4.
41160         (Depends-on): Add getpagesize.
41161         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41162
41163 2009-05-12  Bruno Haible  <bruno@clisp.org>
41164
41165         Tests for module 'alignof'.
41166         * modules/alignof-tests: New file.
41167         * tests/test-alignof.c: New file.
41168
41169 2009-05-12  Bruno Haible  <bruno@clisp.org>
41170
41171         Fix alignof macro.
41172         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
41173         vendor compilers that are always correct.
41174
41175 2009-05-12  Bruno Haible  <bruno@clisp.org>
41176
41177         Make the MAP_ANONYMOUS detection work on HP-UX 11.
41178         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
41179         not whether its fully works.
41180
41181 2009-05-12  Bruno Haible  <bruno@clisp.org>
41182
41183         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
41184
41185 2009-05-12  Jim Meyering  <meyering@redhat.com>
41186
41187         * top/maint.mk: Adjust backslash alignment.
41188
41189 2009-05-11  Simon Josefsson  <simon@josefsson.org>
41190
41191         * top/maint.mk: Make $(srcdir)/build-aux configurable.
41192
41193 2009-05-11  Eric Blake  <ebb9@byu.net>
41194
41195         argp: avoid undefined behavior
41196         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
41197         macros.
41198
41199 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41200
41201         * tests/test-vc-list-files-git.sh: Do git config of user.email and
41202         user.name to prevent git commit from complaining.
41203
41204 2009-05-10  Bruno Haible  <bruno@clisp.org>
41205
41206         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
41207         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
41208         it rewrites every file name only once.
41209         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
41210
41211 2009-05-08  Bruno Haible  <bruno@clisp.org>
41212
41213         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
41214         instead of 'max'.
41215
41216 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41217
41218         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
41219         sockaddr_storage test.
41220
41221 2009-05-07  Simon Josefsson  <simon@josefsson.org>
41222
41223         * modules/sys_socket (Makefile.am): Substitute
41224         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
41225         * m4/sys_socket_h.m4: Check for sockaddr_storage.
41226         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
41227         * tests/test-sys_socket.c: Check sockaddr_storage.
41228
41229 2009-05-08  Bruno Haible  <bruno@clisp.org>
41230
41231         New module 'alignof'.
41232         * lib/alignof.h: New file.
41233         * modules/alignof: New file.
41234
41235 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41236             Bruno Haible  <bruno@clisp.org>
41237
41238         Fix test-file-has-acl on FreeBSD.
41239         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
41240         mask is implicitly added.
41241         * tests/test-file-has-acl.c: Include <signal.h>.
41242         (main): Terminate the test after 5 seconds.
41243         * modules/acl-tests (configure.ac): Check for alarm function.
41244
41245 2009-05-04  Bruno Haible  <bruno@clisp.org>
41246
41247         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
41248         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
41249         * modules/errno (configure.ac): Drop AC_REQUIRE.
41250         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
41251         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
41252
41253 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41254
41255         * modules/glob-tests: New module.
41256         * tests/test-glob.c: Add.
41257
41258 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41259
41260         * modules/fnmatch-tests: New module.
41261         * tests/test-fnmatch.c: Add.
41262
41263 2009-05-04  Eric Blake  <ebb9@byu.net>
41264
41265         maint: make the new no-submodule-changes rule VPATH-safe
41266         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
41267
41268 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41269             Bruno Haible  <bruno@clisp.org>
41270
41271         acl: Fix infinite loop on FreeBSD.
41272         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
41273         of return value from acl_get_entry.
41274         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
41275         Likewise.
41276
41277 2009-05-03  Bruno Haible  <bruno@clisp.org>
41278
41279         * lib/acl-internal.h (acl_entries): Clarify return value.
41280         * lib/acl_entries.c (acl_entries): Likewise.
41281
41282 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41283
41284         Bug fix in acl module.
41285         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
41286
41287 2009-05-03  Bruno Haible  <bruno@clisp.org>
41288
41289         Create gperf-generated file in the source dir, not in the build dir.
41290         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
41291         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
41292         * modules/unicase/locale-language (unicase/locale-languages.h):
41293         Likewise.
41294         * modules/unicase/special-casing (unicase/special-casing-table.h):
41295         Likewise.
41296         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
41297         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
41298         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
41299         Reported by Ralf Wildenhues.
41300
41301 2009-05-03  Bruno Haible  <bruno@clisp.org>
41302
41303         * modules/fnmatch (Description, configure.ac): Taken from
41304         fnmatch-posix.
41305         * modules/fnmatch-posix: Turn into a symbolic reference to the
41306         'fnmatch' module, and deprecate.
41307         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
41308
41309 2009-05-03  Bruno Haible  <bruno@clisp.org>
41310
41311         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
41312         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
41313         Reported by Ralf Wildenhues.
41314
41315 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41316
41317         * m4/fnmatch.m4: Fix fnmatch re-define.
41318
41319 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41320
41321         priv-set: new module and tests; adapt write-any-file
41322         * lib/priv-set.c: New file.
41323         * lib/priv-set.h: New file.
41324         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
41325         * lib/write-any-file.c: Simplify by using priv-set module.
41326         * m4/priv-set.m4: New file.
41327         * modules/priv-set: New file.
41328         * modules/unlinkdir: Add dependency on priv-set module.
41329         * modules/write-any-file: Likewise.
41330
41331         Tests for module 'priv-set'.
41332         * modules/priv-set-tests: New file.
41333         * tests/test-priv-set.c: New file.
41334
41335 2009-05-03  Jim Meyering  <meyering@redhat.com>
41336             Bruno Haible  <bruno@clisp.org>
41337
41338         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
41339         use the converted UTF-8 variant of the name instead.
41340
41341 2009-05-03  Jim Meyering  <meyering@redhat.com>
41342
41343         tests: tighten some getdate tests
41344         * tests/test-getdate.c (main): Tighten tests: require equality,
41345         not just greater than.  Set TZ envvar to UTC0.
41346
41347 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
41348
41349         getdate: correctly interpret "next monday" when run on a Monday
41350         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
41351         that e.g., "next tues" (when run on a tuesday) results in a date
41352         that is one week in the future, and not today's date.
41353         I.e., add a week when the wday is the same as the current one.
41354         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
41355         and earlier by Martin Bernreuther and Jan Minář.
41356         * tests/test-getdate.c (main): Check that "next DAY" is always in
41357         the future and that "last DAY" is always in the past.
41358
41359 2009-05-02  Jim Meyering  <meyering@redhat.com>
41360
41361         build: ensure that a release build fails when a submodule is unclean
41362         * top/maint.mk (no-submodule-changes): New rule.
41363         (alpha beta major): Depend on it.
41364
41365 2009-05-02  Bruno Haible  <bruno@clisp.org>
41366
41367         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
41368         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
41369         shell variable gl_fnmatch_required to detect which variant is
41370         requested.
41371         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
41372         gl_FUNC_FNMATCH_POSIX.
41373         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
41374         exclude fnmatch-posix.
41375
41376 2009-05-02  Bruno Haible  <bruno@clisp.org>
41377
41378         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
41379         * modules/mbsrtowcs (License): Change to LGPLv2+.
41380         * modules/strnlen1 (License): Likewise.
41381         Reported by Simon Josefsson.
41382
41383 2009-05-02  Bruno Haible  <bruno@clisp.org>
41384
41385         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
41386         "cross".
41387         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
41388         gnulib-tool was called with option --source-base=lib.
41389
41390 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41391
41392         Use automake *-local hooks without commands, for extensibility.
41393         * modules/localcharset (Makefile.am): Rename install-exec-local
41394         rule to install-exec-localcharset, and make it a prerequisite of
41395         install-exec-local.  Likewise, rename the uninstall-local rule to
41396         uninstall-localcharset, and make it a prerequisite of the former.
41397
41398 2009-05-01  Bruno Haible  <bruno@clisp.org>
41399
41400         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
41401         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41402         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
41403         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
41404         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
41405         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41406         m4/locale-zh.m4, m4/codeset.m4.
41407
41408         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41409         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
41410         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41411         m4/locale-zh.m4.
41412
41413         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
41414         REPLACE_WCRTOMB if mbstate_t must be replaced.
41415         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
41416         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
41417
41418 2009-05-01  Bruno Haible  <bruno@clisp.org>
41419
41420         Avoid compiler warnings when redefining macros defined by <libintl.h>.
41421         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
41422         dngettext, dcngettext, textdomain, bindtextdomain,
41423         bind_textdomain_codeset): Undefine before redefining.
41424
41425 2009-04-30  Bruno Haible  <bruno@clisp.org>
41426
41427         Fix bug introduced on 2009-04-25.
41428         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
41429         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
41430         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
41431         is defined.
41432         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
41433         is defined.
41434         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
41435         is defined.
41436         Reported by Elbert_Pol <elbert.pol@gmail.com>.
41437
41438 2009-04-28  Bruno Haible  <bruno@clisp.org>
41439
41440         Comment tweaks.
41441         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
41442         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
41443         * lib/unicase.h (u*_casexfrm): Likewise.
41444         Reported by Paolo Bonzini.
41445
41446 2009-04-28  Bruno Haible  <bruno@clisp.org>
41447
41448         Fix a compilation error.
41449         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
41450         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41451         Reported by Jim Meyering.
41452
41453 2009-04-27  Bruno Haible  <bruno@clisp.org>
41454
41455         New module 'libunistring'.
41456         * modules/libunistring: New file.
41457         * m4/libunistring.m4: New file.
41458         * MODULES.html.sh (Unicode string functions): Add it.
41459
41460 2009-04-27  Eric Blake  <ebb9@byu.net>
41461
41462         maint.mk: allow package-specific header to provide <config.h>
41463         * top/maint.mk (sc_require_config_h): New variable.
41464         (sc_require_config_h, sc_require_config_h_first): Use it.
41465
41466 2009-04-27  Simon Josefsson  <simon@josefsson.org>
41467
41468         * top/maint.mk (sc_avoid_if_before_free): Except
41469         useless-if-before-free script.
41470
41471 2009-04-27  Eric Blake  <ebb9@byu.net>
41472
41473         maintainer-makefile: depend on all required helper scripts
41474         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
41475         useless-if-before-free.
41476         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
41477         version, rather than assuming gnulib checkout is available.
41478         Reported by Simen Josefsson.
41479
41480 2009-04-26  Bruno Haible  <bruno@clisp.org>
41481
41482         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
41483         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
41484         "../" or "..".
41485
41486 2009-04-26  Bruno Haible  <bruno@clisp.org>
41487
41488         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
41489         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
41490         AC_LIB_HAVE_LINKFLAGS.
41491
41492 2009-04-26  Bruno Haible  <bruno@clisp.org>
41493
41494         Simplify calling convention of u*_conv_from_encoding.
41495         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
41496         u32_conv_from_encoding): Expect a resultbuf argument and return the
41497         result directly as a pointer.
41498         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
41499         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
41500         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
41501         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
41502         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
41503         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41504         Update.
41505         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
41506         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
41507         * lib/vasnprintf.c (VASNPRINTF): Update.
41508         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
41509         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
41510         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
41511         * NEWS: Mention the change.
41512
41513 2009-04-26  Bruno Haible  <bruno@clisp.org>
41514
41515         Simplify calling convention of u*_conv_to_encoding.
41516         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41517         u32_conv_to_encoding): Expect a resultbuf argument and return the
41518         result directly as a pointer.
41519         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41520         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
41521         freeing scaled_offsets if mem_iconveha failed.
41522         * lib/unicase/u-casexfrm.h (FUNC): Update.
41523         * lib/uninorm/u-normxfrm.h (FUNC): Update.
41524         * lib/vasnprintf.c (VASNPRINTF): Update.
41525         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
41526         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
41527         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
41528         * NEWS: Mention the change.
41529
41530 2009-04-26  Bruno Haible  <bruno@clisp.org>
41531
41532         Avoid test failures on AIX and OSF/1.
41533         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
41534         malloc(0).
41535         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41536         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41537         Likewise.
41538         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
41539         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
41540         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
41541         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
41542         * doc/posix-functions/malloc.texi: Document the portability problem
41543         related to malloc(0).
41544
41545 2009-04-26  Bruno Haible  <bruno@clisp.org>
41546
41547         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
41548         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
41549         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
41550
41551 2009-04-25  Bruno Haible  <bruno@clisp.org>
41552
41553         Avoid link error when creating a namespace clean library.
41554         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
41555         as macro with arguments if already defined as an alias.
41556         * lib/signbitf.c (gl_signbitf): Don't undefine.
41557         * lib/signbitd.c (gl_signbitd): Don't undefine.
41558         * lib/signbitl.c (gl_signbitl): Don't undefine.
41559
41560 2009-04-25  Jim Meyering  <meyering@redhat.com>
41561
41562         vc-list-files: fix another quoting bug
41563         * build-aux/vc-list-files: Avoid sed backslash expansion
41564         of pathological directory names.
41565
41566 2009-04-25  Eric Blake  <ebb9@byu.net>
41567
41568         vc-list-files: fix shell quoting error
41569         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
41570         timestamp.
41571
41572 2009-04-25  Jim Meyering  <meyering@redhat.com>
41573
41574         vc-list-files: restore lost functionality with subdir argument
41575         * build-aux/vc-list-files: When given a non-"." sub-directory
41576         argument, substitute the $dir/ prefix back onto each resulting name.
41577         Otherwise, coreutils' root_tests check would fail.
41578
41579 2009-04-24  Eric Blake  <ebb9@byu.net>
41580
41581         vc-list-files: ignore git symlinks
41582         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
41583         than ls-files, to ignore git symlinks.
41584
41585         maint.mk: import improvements from m4
41586         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
41587         (move_if_change): Delete unused macro.
41588         (news-date-check, vc-diff-check): Support VPATH builds.
41589         (announcement): Likewise.  Split --bootstrap-tools list...
41590         (boostrap-tools): ...into separate list, which can be overridden
41591         in cfg.mk.
41592         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
41593         requiring dependency on useless-if-before-free module.
41594         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
41595         Support VPATH builds.
41596
41597 2009-04-24  Jim Meyering  <meyering@redhat.com>
41598
41599         maint.mk: remove coreutils-specific rules and variables
41600         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
41601         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
41602         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
41603
41604         maint.mk: remove obsolete rule
41605         * top/maint.mk (rel-check): Remove rule.
41606         (WGET, WGETFLAGS): Remove now-unused variables.
41607
41608 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41609
41610         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
41611         consistency.
41612
41613         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
41614         '$(PATH_SEPARATOR)' instead of ':'.
41615
41616 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41617
41618         * lib/getopt1.c (main): Use 'const' for static array.
41619
41620 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41621
41622         * top/maint.mk: Sync with coreutils.
41623         * NEWS: Explain incompatibilities.
41624
41625 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41626             Bruno Haible  <bruno@clisp.org>
41627
41628         Fix cross-compilation results.
41629         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
41630         statement, as third argument of AC_TRY_RUN.
41631         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41632         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
41633         Likewise.
41634         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41635         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41636         Likewise.
41637         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41638         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
41639         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
41640
41641 2009-04-20  Bruno Haible  <bruno@clisp.org>
41642
41643         Avoid test failure on mingw.
41644         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
41645
41646 2009-04-20  Bruno Haible  <bruno@clisp.org>
41647
41648         Avoid compilation error on mingw.
41649         * modules/localename-tests (Depends-on): Add locale.
41650
41651 2009-04-19  Bruno Haible  <bruno@clisp.org>
41652
41653         Support for building a shared library on Windows platforms.
41654         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
41655         (main): Test the presence of UNINORM_NFC here.
41656         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
41657         (main): Test the presence of UNINORM_NFD here.
41658         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
41659         (main): Test the presence of UNINORM_NFKC here.
41660         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
41661         (main): Test the presence of UNINORM_NFKD here.
41662
41663 2009-04-19  Bruno Haible  <bruno@clisp.org>
41664
41665         Avoid a compiler warning.
41666         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
41667         Change type of variable 'sequence'.
41668
41669 2009-04-19  Bruno Haible  <bruno@clisp.org>
41670
41671         * modules/configmake (Makefile.am): When the contents of configmake.h
41672         does not change, arrange to preserve its modification time.
41673
41674 2009-04-17  Simon Josefsson  <simon@josefsson.org>
41675
41676         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
41677         gettext domain.
41678
41679 2009-04-16  Jim Meyering  <meyering@redhat.com>
41680
41681         useless-if-before-free: improve conversion code
41682         * build-aux/useless-if-before-free: Adjust code-in-comment to match
41683         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
41684
41685 2009-04-14  Bruno Haible  <bruno@clisp.org>
41686
41687         * modules/fcntl (Depends-on): Add extensions.
41688         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
41689
41690 2009-04-12  Ben Pfaff  <blp@gnu.org>
41691
41692         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
41693         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
41694
41695 2009-03-20  Ben Pfaff  <blp@gnu.org>
41696
41697         Make rename replace existing destinations on Windows.
41698         * m4/rename.m4: Add test for Mingw.
41699         * lib/rename.c: Add rename replacement that uses MoveFileEx with
41700         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
41701         * doc/posix-functions/rename.texi: Document.
41702
41703 2009-04-10  Bruno Haible  <bruno@clisp.org>
41704
41705         New include file "iconveh.h".
41706         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
41707         * lib/striconveh.h: Include it.
41708         (enum iconv_ilseq_handler): Remove definition.
41709         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
41710         striconveh.h.
41711         * lib/striconveha.c: Include striconveh.h.
41712         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
41713         * modules/striconveh (Files): Add lib/iconveh.h.
41714         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
41715         lib/striconveh.h.
41716
41717 2009-04-10  Bruno Haible  <bruno@clisp.org>
41718
41719         * lib/uniconv.h: Update comment.
41720
41721 2009-04-10  Bruno Haible  <bruno@clisp.org>
41722
41723         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
41724         always.
41725         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41726         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41727         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41728         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
41729         "unistring-notinline.h", so that the function gets defined always.
41730         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41731         * lib/unistr/u8-uctomb.c: Likewise.
41732         * lib/unistr/u16-mbtouc.c: Likewise.
41733         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41734         * lib/unistr/u16-uctomb.c: Likewise.
41735         * lib/unistr/u32-mbtouc.c: Likewise.
41736         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41737         * lib/unistr/u32-uctomb.c: Likewise.
41738
41739 2009-04-10  Bruno Haible  <bruno@clisp.org>
41740
41741         Mark 'utime' obsolete.
41742         * modules/utime (Status, Notice): New sections.
41743         Suggested by Jim Meyering.
41744
41745         Fix cross-compile guess for utime test.
41746         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
41747         autoconf.
41748         * doc/posix-functions/utime.texi: Give more precisions.
41749         Reported by Jan <ipif@ymail.com>.
41750
41751 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
41752
41753         filevercmp: correct today's change
41754         * lib/filevercmp.c: Also handle coreutils' test inputs.
41755         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
41756
41757         Fix regression in 'filevercmp' module. Thanks Sven Joachim
41758         for reporting it.
41759         * lib/filevercmp.c: Special handle for "", "." and "..".
41760         * tests/test-filevercmp.c: Enlarge the set suite.
41761
41762 2009-04-07  Jim Meyering  <meyering@redhat.com>
41763
41764         useless-if-before-free: show how to remove braced useless free, too
41765         * build-aux/useless-if-before-free: still only in a comment, though.
41766
41767 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
41768
41769         maint.mk: import changes to syntax-check macros from coreutils
41770         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
41771         Use them in the relevant macros.
41772
41773 2009-04-06  Bruno Haible  <bruno@clisp.org>
41774
41775         Fix unportable use of bit-fields.
41776         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
41777         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
41778         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
41779
41780 2009-04-06  Bruno Haible  <bruno@clisp.org>
41781
41782         Avoid test failures on AIX and OSF/1.
41783         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
41784         that malloc(0) = NULL.
41785         * tests/unicase/test-u8-tolower.c (check): Likewise.
41786         * tests/unicase/test-u8-totitle.c (check): Likewise.
41787         * tests/unicase/test-u8-toupper.c (check): Likewise.
41788         * tests/unicase/test-u16-casefold.c (check): Likewise.
41789         * tests/unicase/test-u16-tolower.c (check): Likewise.
41790         * tests/unicase/test-u16-totitle.c (check): Likewise.
41791         * tests/unicase/test-u16-toupper.c (check): Likewise.
41792         * tests/unicase/test-u32-casefold.c (check): Likewise.
41793         * tests/unicase/test-u32-tolower.c (check): Likewise.
41794         * tests/unicase/test-u32-totitle.c (check): Likewise.
41795         * tests/unicase/test-u32-toupper.c (check): Likewise.
41796         * tests/uninorm/test-u8-nfc.c (check): Likewise.
41797         * tests/uninorm/test-u8-nfd.c (check): Likewise.
41798         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
41799         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
41800         * tests/uninorm/test-u16-nfc.c (check): Likewise.
41801         * tests/uninorm/test-u16-nfd.c (check): Likewise.
41802         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
41803         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
41804         * tests/uninorm/test-u32-nfc.c (check): Likewise.
41805         * tests/uninorm/test-u32-nfd.c (check): Likewise.
41806         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
41807         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
41808
41809 2009-04-05  Bruno Haible  <bruno@clisp.org>
41810
41811         Work around an autoconf limitation.
41812         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
41813         comment line if it would be longer than 3 KB.
41814
41815 2009-04-05  Bruno Haible  <bruno@clisp.org>
41816
41817         Avoid test failure with libiconv-1.13.
41818         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
41819         of the expected test results.
41820
41821 2009-04-05  Bruno Haible  <bruno@clisp.org>
41822
41823         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
41824         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
41825         that it should be installed.
41826
41827 2009-04-05  Bruno Haible  <bruno@clisp.org>
41828
41829         * gnulib-tool: New option --copy-file.
41830         (func_usage): Document it.
41831         (func_dest_tmpfilename): Moved out of func_import.
41832         (func_add_file, func_update_file): New functions, extracted from
41833         func_import.
41834         (func_import): Update.
41835
41836 2009-04-05  Karl Berry  <karl@gnu.org>
41837
41838         * README: prominently mention gnulib-tool.
41839         Rearrange sections so getting the code is near the top.
41840
41841 2009-04-05  Bruno Haible  <bruno@clisp.org>
41842
41843         * lib/unicase.h: Mention u*_cmp2.
41844         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41845         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
41846         * lib/unicase/ulc-casecmp.c: Likewise.
41847         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
41848         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
41849         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
41850         unistr/u8-cmp.
41851         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
41852         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
41853         unistr/u16-cmp.
41854         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
41855         unistr/u32-cmp.
41856
41857         * lib/uninorm.h: Mention u*_cmp2.
41858         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41859         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
41860         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
41861         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
41862         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
41863         unistr/u8-cmp.
41864         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
41865         unistr/u16-cmp.
41866         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
41867         unistr/u32-cmp.
41868
41869         New module 'unistr/u32-cmp2'.
41870         * lib/unistr/u32-cmp2.c: New file.
41871         * modules/unistr/u32-cmp2: New file.
41872
41873         New module 'unistr/u16-cmp2'.
41874         * lib/unistr/u16-cmp2.c: New file.
41875         * modules/unistr/u16-cmp2: New file.
41876
41877         New module 'unistr/u8-cmp2'.
41878         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
41879         * lib/unistr/u8-cmp2.c: New file.
41880         * lib/unistr/u-cmp2.h: New file.
41881         * modules/unistr/u8-cmp2: New file.
41882
41883 2009-04-05  Bruno Haible  <bruno@clisp.org>
41884
41885         * lib/unictype.h (uc_property_is_valid): New macro.
41886         * tests/unictype/test-pr_byname.c (main): Use it.
41887
41888         * lib/unistr.h: Doc fixes.
41889         * lib/uniconv.h: Doc fixes.
41890         * lib/unictype.h: Doc fixes.
41891
41892 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
41893
41894         Port coreutils 7.2 to Solaris 8.
41895
41896         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
41897         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
41898         for Solaris 8.  This is a bit of a hack, as it means it's the
41899         caller's responsibility to add -lnsl if needed, but most likely it
41900         won't be needed since only getaddrinfo uses this and getaddrinfo
41901         isn't needed on Solaris 8.
41902
41903         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
41904         problem to Solaris 8 encountered with coreutils 7.2, which
41905         resulted in a message "fnmatch.c:292: warning: passing argument 4
41906         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
41907         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
41908
41909 2009-04-03  Simon Josefsson  <simon@josefsson.org>
41910
41911         * m4/ld-version-script.m4: Add FIXME comment.
41912
41913 2009-04-02  Simon Josefsson  <simon@josefsson.org>
41914
41915         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
41916         SOVERSION variable.
41917
41918 2009-04-02  Bruno Haible  <bruno@clisp.org>
41919
41920         * Makefile (info, html, dvi, pdf): Combine the rules.
41921         Suggested by Jim Meyering.
41922
41923 2009-04-01  Bruno Haible  <bruno@clisp.org>
41924
41925         * Makefile (info, html, dvi, pdf): New targets.
41926         Reported by Reuben Thomas <rrt@sc3d.org>.
41927
41928 2009-04-01  Bruno Haible  <bruno@clisp.org>
41929
41930         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
41931         can be put into PATH.
41932         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
41933
41934 2009-04-01  Bruno Haible  <bruno@clisp.org>
41935
41936         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
41937
41938 2009-04-01  Bruno Haible  <bruno@clisp.org>
41939
41940         Rename module 'visibility'.
41941         * modules/lib-symbol-visibility: Renamed from modules/visibility.
41942         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
41943         * doc/gnulib.texi: Update.
41944         * MODULES.html.sh (Misc): Update.
41945         * NEWS: Mention the change.
41946
41947 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41948
41949         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
41950         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
41951         Eric Blake <ebb9@byu.net> for review.
41952         * MODULES.html.sh: Add lib-msvc-compat.
41953         * doc/gnulib.texi: Link to new section.
41954         * m4/ld-output-def.m4: New file.
41955         * doc/ld-output-def.texi: New file.
41956
41957 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41958
41959         Rename ld-version-script to lib-symbol-versions.  Suggested by
41960         Bruno Haible <bruno@clisp.org>.
41961         * modules/ld-version-script: Renamed to lib-symbol-versions.
41962         * doc/ld-version-script.texi: Fix module name.
41963         * MODULES.html.sh: Add lib-symbol-versions.
41964
41965 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41966
41967         * modules/u64-tests: New file.
41968         * tests/test-u64.c: New file.
41969
41970 2009-03-04  Simon Josefsson  <simon@josefsson.org>
41971
41972         * MODULES.html.sh: Mention u64.
41973         * modules/u64: New module.
41974         * modules/crypto/sha512: Depend on u64 module instead of providing
41975         u64.h.
41976
41977 2009-03-27  Eric Blake  <ebb9@byu.net>
41978
41979         test-strerror: make debugging EAI_SYSTEM easier
41980         * modules/getaddrinfo-tests (Depends-on): Add strerror.
41981         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
41982         failure was EAI_SYSTEM.
41983
41984 2009-03-25  Bruno Haible  <bruno@clisp.org>
41985
41986         Fix a problem with --enable-relocatable on Solaris 7.
41987         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
41988         since 2008-02-24.
41989
41990 2009-03-25  Eric Blake  <ebb9@byu.net>
41991
41992         test-sockets: avoid gcc warning
41993         * tests/test-sockets.c (main): Silence compiler warning.
41994
41995 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
41996
41997         New modules nproc, pthread, contributed by Glen Lenker.
41998
41999         * MODULES.html.sh: Add pthread, nproc.
42000         * lib/nproc.c: New file.
42001         * lib/nproc.h: New file.
42002         * lib/pthread.in.h: New file.
42003         * m4/pthread.m4: New file.
42004         * modules/nproc: New file.
42005         * modules/pthread: New file.
42006
42007 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42008
42009         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
42010         New variable.
42011
42012 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
42013
42014         filevercmp: handle simple~ and numbered.~3~ backup suffixes
42015         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
42016         * tests/test-filevercmp.c: Add tests for backup suffixes.
42017
42018 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42019
42020         * modules/stdlib (Depends-on): Add stdint, needed when defining
42021         struct random_data on, for example, HP-UX 10.20.  Reported by
42022         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42023
42024 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42025
42026         * lib/readline.c (readline): Call fflush on stdout after printing
42027         prompt.
42028
42029 2009-03-20  Bruno Haible  <bruno@clisp.org>
42030
42031         Remove dependency from 'close' module to -lws2_32 on native Windows.
42032         * lib/close-hook.h: New file.
42033         * lib/close-hook.c: New file.
42034         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
42035         w32sock.h.
42036         (_gl_close_fd_maybe_socket): Remove function.
42037         (rpl_close): Invoke execute_all_close_hooks instead of
42038         _gl_close_fd_maybe_socket.
42039         * lib/sockets.c: Include close-hook.h, w32sock.h.
42040         (close_fd_maybe_socket): New function, essentially from lib/close.c.
42041         (close_sockets_hook): New variable.
42042         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
42043         (gl_sockets_cleanup): Unregister it.
42044         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
42045         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
42046         * modules/close-hook: New file.
42047         * modules/close (Files): Remove lib/w32sock.h.
42048         (Depends-on): Add close-hook.
42049         (Link): Remove section.
42050         * modules/sockets (Files): Add lib/w32sock.h.
42051         (Depends-on): Add close-hook.
42052         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
42053         invocation.
42054         * NEWS: Mention that LIB_CLOSE is gone.
42055
42056 2009-03-23  Eric Blake  <ebb9@byu.net>
42057
42058         signal-tests: test previous patch
42059         * tests/test-signal.c: New file.
42060         * modules/signal-tests: Likewise.
42061
42062         signal.h: always support 'volatile sig_atomic_t'
42063         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
42064         (gl_SIGNAL_H_DEFAULTS): Add a default.
42065         * modules/signal (Makefile.am): Substitute if needed.
42066         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
42067         users can blindly add volatile.
42068         * doc/posix-headers/signal.texi (signal.h): Document it.
42069         Reported by Matthew Woehlke.
42070
42071 2009-03-23  Jim Meyering  <meyering@redhat.com>
42072
42073         pathmax: PATH_MAX: use pathconf only when available
42074         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
42075         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
42076         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
42077         This avoids a link failure in a PSP cross-compilation environment
42078         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
42079
42080         * lib/vasnprintf.c (divide): Fix typo in comment.
42081
42082 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42083
42084         * gnulib-tool (func_filter_filelist): Fix comment.
42085
42086 2009-03-20  Bruno Haible  <bruno@clisp.org>
42087
42088         Make sockets.h self-contained.
42089         * lib/sockets.c: Include sockets.h first.
42090         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
42091
42092 2009-03-19  Eric Blake  <ebb9@byu.net>
42093
42094         doc: mention more functions added in cygwin 1.7.0
42095         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
42096         addition.
42097         * doc/posix-functions/log2f.texi: Likewise.
42098
42099 2009-03-19  Jim Meyering  <meyering@redhat.com>
42100
42101         fsusage: avoid syntax error due to statement-before-declaration
42102         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
42103         after all declarations.  Reported by Matthew Woehlke in
42104         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
42105
42106 2009-03-18  Eric Blake  <ebb9@byu.net>
42107
42108         build-aux/compile: sync from automake
42109         * build-aux/compile: New file, from automake.
42110         * config/srclist.txt: Mention build-aux/compile.
42111
42112 2009-03-17  Bruno Haible  <bruno@clisp.org>
42113
42114         * lib/git-merge-changelog.c: Fix typo in comment.
42115         Reported by Reuben Thomas <rrt@sc3d.org>.
42116
42117 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
42118
42119         * m4/regex.m4: update and improve help for
42120         --without-included-regex.
42121
42122 2009-03-17  Simon Josefsson  <simon@josefsson.org>
42123
42124         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
42125         failure on missing include files.
42126
42127 2009-03-17  Eric Blake  <ebb9@byu.net>
42128
42129         doc: mention more functions added in cygwin 1.7.0
42130         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
42131         addition.
42132         * doc/posix-functions/fwscanf.texi: Likewise.
42133         * doc/posix-functions/swprintf.texi: Likewise.
42134         * doc/posix-functions/swscanf.texi: Likewise.
42135         * doc/posix-functions/vfwprintf.texi: Likewise.
42136         * doc/posix-functions/vfwscanf.texi: Likewise.
42137         * doc/posix-functions/vswprintf.texi: Likewise.
42138         * doc/posix-functions/vswscanf.texi: Likewise.
42139         * doc/posix-functions/vwprintf.texi: Likewise.
42140         * doc/posix-functions/vwscanf.texi: Likewise.
42141         * doc/posix-functions/wcscasecmp.texi: Likewise.
42142         * doc/posix-functions/wcsdup.texi: Likewise.
42143         * doc/posix-functions/wcsftime.texi: Likewise.
42144         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42145         * doc/posix-functions/wprintf.texi: Likewise.
42146         * doc/posix-functions/wscanf.texi: Likewise.
42147         * doc/glibc-functions/gethostbyname2.texi: Likewise.
42148
42149 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42150
42151         maint.mk: really add $(AM_MAKEFLAGS)
42152         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
42153         was inadvertently omitted in the last commit.
42154         Spotted by Bruno Haible.
42155
42156         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
42157         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
42158         $(AM_MAKEFLAGS)' rather than plain `make'.
42159
42160         gnulib-tool: execute $MAKE not make
42161         * gnulib-tool: Default $MAKE to 'make'.
42162         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
42163         than make.  Initialize $MAKE in the do-autobuild script.
42164
42165         gnulib-tool: use $MAKE not make in generated files
42166         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
42167         make, in generated files.  Initialize $MAKE in the do-autobuild
42168         script.
42169
42170         * top/GNUmakefile (_have-git-version-gen): Fix typo.
42171
42172         GNUmakefile: disable parallelism only for multiple, recursive targets
42173         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
42174         additions in the Makefile.
42175         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
42176         by Automake.
42177         (.NOTPARALLEL): Only disable parallel builds if multiple targets
42178         are listed on the command line and at least one of them is
42179         listed in $(ALL_RECURSIVE_TARGETS).
42180
42181 2009-03-14  Bruno Haible  <bruno@clisp.org>
42182
42183         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
42184         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
42185         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
42186         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
42187         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
42188         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
42189         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
42190         unistr/u8-uctomb.
42191         * modules/unistr/u8-strchr (Depends-on): Likewise.
42192         * modules/unistr/u8-strrchr (Depends-on): Likewise.
42193         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
42194         unistr/u16-uctomb.
42195         * modules/unistr/u16-strchr (Depends-on): Likewise.
42196         * modules/unistr/u16-strrchr (Depends-on): Likewise.
42197
42198 2009-03-12  Bruno Haible  <bruno@clisp.org>
42199
42200         Work around select() bug on Interix 3.5.
42201         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
42202         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
42203         * m4/select.m4: New file.
42204         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
42205         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
42206         * modules/select (Files): Add m4/select.m4.
42207         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
42208         * modules/nanosleep (Depends-on): Add select.
42209         * modules/poll (Depends-on): Likewise.
42210         * doc/posix-functions/select.texi: Mention the Interix bug.
42211         Reported by Markus Duft <mduft@gentoo.org>.
42212
42213         * lib/select.c: Renamed from lib/winsock-select.c.
42214         * modules/select (Files): Add lib/select.c, remove
42215         lib/winsock-select.c.
42216         (configure.ac): Update.
42217
42218 2009-03-12  Jim Meyering  <meyering@redhat.com>
42219
42220         avoid gcc warnings about unused macro definitions
42221         * lib/readtokens.c (STREQ): Remove unused definition.
42222         * lib/xmalloc.c (SIZE_MAX): Likewise.
42223         * lib/openat-die.c (N_): Likewise.
42224         * lib/mountlist.c (SIZE_MAX): Remove definition.
42225         Instead, include <stdint.h>.
42226         * lib/readutmp.c: Likewise.
42227         * modules/readutmp (Depends-on): Add stdint.
42228         * modules/mountlist (Depends-on): Add stdint.
42229         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
42230
42231 2009-03-10  Bruno Haible  <bruno@clisp.org>
42232
42233         Tests for module 'mbmemcasecoll'.
42234         * modules/mbmemcasecoll-tests: New file.
42235         * tests/test-mbmemcasecoll1.sh: New file.
42236         * tests/test-mbmemcasecoll2.sh: New file.
42237         * tests/test-mbmemcasecoll3.sh: New file.
42238         * tests/test-mbmemcasecoll.c: New file.
42239
42240         New module 'mbmemcasecoll'.
42241         * lib/mbmemcasecoll.h: New file.
42242         * lib/mbmemcasecoll.c: New file.
42243         * modules/mbmemcasecoll: New file.
42244
42245         * tests/test-mbmemcasecmp.h: New file, extracted from
42246         tests/test-mbmemcasecmp.c.
42247         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
42248         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
42249         (main): Update.
42250         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
42251
42252 2009-03-09  Bruno Haible  <bruno@clisp.org>
42253
42254         Tests for module 'mbmemcasecmp'.
42255         * modules/mbmemcasecmp-tests: New file.
42256         * tests/test-mbmemcasecmp1.sh: New file.
42257         * tests/test-mbmemcasecmp2.sh: New file.
42258         * tests/test-mbmemcasecmp3.sh: New file.
42259         * tests/test-mbmemcasecmp.c: New file.
42260
42261         New module 'mbmemcasecmp'.
42262         * lib/mbmemcasecmp.h: New file.
42263         * lib/mbmemcasecmp.c: New file.
42264         * modules/mbmemcasecmp: New file.
42265
42266 2009-03-09  Bruno Haible  <bruno@clisp.org>
42267
42268         Tests for module 'unicase/ulc-casecoll'.
42269         * modules/unicase/ulc-casecoll-tests: New file.
42270         * tests/unicase/test-ulc-casecoll1.sh: New file.
42271         * tests/unicase/test-ulc-casecoll2.sh: New file.
42272         * tests/unicase/test-ulc-casecoll.c: New file.
42273
42274         New module 'unicase/ulc-casecoll'.
42275         * lib/unicase.h (ulc_casecoll): New declaration.
42276         * lib/unicase/ulc-casecoll.c: New file.
42277         * modules/unicase/ulc-casecoll: New file.
42278
42279         New module 'unicase/ulc-casexfrm'.
42280         * lib/unicase.h (ulc_casexfrm): New declaration.
42281         * lib/unicase/ulc-casexfrm.c: New file.
42282         * modules/unicase/ulc-casexfrm: New file.
42283
42284 2009-03-09  Bruno Haible  <bruno@clisp.org>
42285
42286         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
42287         invocations.
42288
42289         * m4/mbscasecmp.m4: Remove file.
42290         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
42291         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
42292
42293         * m4/mbscasestr.m4: Remove file.
42294         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
42295         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
42296
42297         * m4/mbschr.m4: Remove file.
42298         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
42299         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
42300
42301         * m4/mbscspn.m4: Remove file.
42302         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
42303         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
42304
42305         * m4/mbslen.m4: Remove file.
42306         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
42307         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
42308
42309         * m4/mbsncasecmp.m4: Remove file.
42310         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
42311         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
42312
42313         * m4/mbsnlen.m4: Remove file.
42314         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
42315         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
42316
42317         * m4/mbspbrk.m4: Remove file.
42318         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
42319         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
42320
42321         * m4/mbspcasecmp.m4: Remove file.
42322         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
42323         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
42324
42325         * m4/mbsrchr.m4: Remove file.
42326         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
42327         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
42328
42329         * m4/mbssep.m4: Remove file.
42330         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
42331         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
42332
42333         * m4/mbsspn.m4: Remove file.
42334         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
42335         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
42336
42337         * m4/mbsstr.m4: Remove file.
42338         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
42339         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
42340
42341         * m4/mbstok_r.m4: Remove file.
42342         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
42343         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
42344
42345         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
42346
42347         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
42348         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
42349
42350         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
42351
42352 2009-03-08  Bruno Haible  <bruno@clisp.org>
42353
42354         Tests for module 'unicase/ulc-casecmp'.
42355         * modules/unicase/ulc-casecmp-tests: New file.
42356         * tests/unicase/test-ulc-casecmp1.sh: New file.
42357         * tests/unicase/test-ulc-casecmp2.sh: New file.
42358         * tests/unicase/test-ulc-casecmp.c: New file.
42359
42360         New module 'unicase/ulc-casecmp'.
42361         * lib/unicase.h (ulc_casecmp): New declaration.
42362         * lib/unicase/ulc-casecmp.c: New file.
42363         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
42364         'const SRC_UNIT *'.
42365         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
42366         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
42367         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
42368         * modules/unicase/ulc-casecmp: New file.
42369
42370         Tests for module 'unicase/u32-is-cased'.
42371         * modules/unicase/u32-is-cased-tests: New file.
42372         * tests/unicase/test-u32-is-cased.c: New file.
42373
42374         Tests for module 'unicase/u16-is-cased'.
42375         * modules/unicase/u16-is-cased-tests: New file.
42376         * tests/unicase/test-u16-is-cased.c: New file.
42377
42378         Tests for module 'unicase/u8-is-cased'.
42379         * modules/unicase/u8-is-cased-tests: New file.
42380         * tests/unicase/test-u8-is-cased.c: New file.
42381         * tests/unicase/test-is-cased.h: New file.
42382
42383         New module 'unicase/u32-is-cased'.
42384         * lib/unicase/u32-is-cased.c: New file.
42385         * modules/unicase/u32-is-cased: New file.
42386
42387         New module 'unicase/u16-is-cased'.
42388         * lib/unicase/u16-is-cased.c: New file.
42389         * modules/unicase/u16-is-cased: New file.
42390
42391         New module 'unicase/u8-is-cased'.
42392         * lib/unicase/u8-is-cased.c: New file.
42393         * lib/unicase/u-is-cased.h: New file.
42394         * modules/unicase/u8-is-cased: New file.
42395
42396         Tests for module 'unicase/u32-is-casefolded'.
42397         * modules/unicase/u32-is-casefolded-tests: New file.
42398         * tests/unicase/test-u32-is-casefolded.c: New file.
42399
42400         Tests for module 'unicase/u16-is-casefolded'.
42401         * modules/unicase/u16-is-casefolded-tests: New file.
42402         * tests/unicase/test-u16-is-casefolded.c: New file.
42403
42404         Tests for module 'unicase/u8-is-casefolded'.
42405         * modules/unicase/u8-is-casefolded-tests: New file.
42406         * tests/unicase/test-u8-is-casefolded.c: New file.
42407         * tests/unicase/test-is-casefolded.h: New file.
42408
42409         New module 'unicase/u32-is-casefolded'.
42410         * lib/unicase/u32-is-casefolded.c: New file.
42411         * modules/unicase/u32-is-casefolded: New file.
42412
42413         New module 'unicase/u16-is-casefolded'.
42414         * lib/unicase/u16-is-casefolded.c: New file.
42415         * modules/unicase/u16-is-casefolded: New file.
42416
42417         New module 'unicase/u8-is-casefolded'.
42418         * lib/unicase/u8-is-casefolded.c: New file.
42419         * modules/unicase/u8-is-casefolded: New file.
42420
42421         Tests for module 'unicase/u32-is-titlecase'.
42422         * modules/unicase/u32-is-titlecase-tests: New file.
42423         * tests/unicase/test-u32-is-titlecase.c: New file.
42424
42425         Tests for module 'unicase/u16-is-titlecase'.
42426         * modules/unicase/u16-is-titlecase-tests: New file.
42427         * tests/unicase/test-u16-is-titlecase.c: New file.
42428
42429         Tests for module 'unicase/u8-is-titlecase'.
42430         * modules/unicase/u8-is-titlecase-tests: New file.
42431         * tests/unicase/test-u8-is-titlecase.c: New file.
42432         * tests/unicase/test-is-titlecase.h: New file.
42433
42434         New module 'unicase/u32-is-titlecase'.
42435         * lib/unicase/u32-is-titlecase.c: New file.
42436         * modules/unicase/u32-is-titlecase: New file.
42437
42438         New module 'unicase/u16-is-titlecase'.
42439         * lib/unicase/u16-is-titlecase.c: New file.
42440         * modules/unicase/u16-is-titlecase: New file.
42441
42442         New module 'unicase/u8-is-titlecase'.
42443         * lib/unicase/u8-is-titlecase.c: New file.
42444         * modules/unicase/u8-is-titlecase: New file.
42445
42446         Tests for module 'unicase/u32-is-lowercase'.
42447         * modules/unicase/u32-is-lowercase-tests: New file.
42448         * tests/unicase/test-u32-is-lowercase.c: New file.
42449
42450         Tests for module 'unicase/u16-is-lowercase'.
42451         * modules/unicase/u16-is-lowercase-tests: New file.
42452         * tests/unicase/test-u16-is-lowercase.c: New file.
42453
42454         Tests for module 'unicase/u8-is-lowercase'.
42455         * modules/unicase/u8-is-lowercase-tests: New file.
42456         * tests/unicase/test-u8-is-lowercase.c: New file.
42457         * tests/unicase/test-is-lowercase.h: New file.
42458
42459         New module 'unicase/u32-is-lowercase'.
42460         * lib/unicase/u32-is-lowercase.c: New file.
42461         * modules/unicase/u32-is-lowercase: New file.
42462
42463         New module 'unicase/u16-is-lowercase'.
42464         * lib/unicase/u16-is-lowercase.c: New file.
42465         * modules/unicase/u16-is-lowercase: New file.
42466
42467         New module 'unicase/u8-is-lowercase'.
42468         * lib/unicase/u8-is-lowercase.c: New file.
42469         * modules/unicase/u8-is-lowercase: New file.
42470
42471         Tests for module 'unicase/u32-is-uppercase'.
42472         * modules/unicase/u32-is-uppercase-tests: New file.
42473         * tests/unicase/test-u32-is-uppercase.c: New file.
42474
42475         Tests for module 'unicase/u16-is-uppercase'.
42476         * modules/unicase/u16-is-uppercase-tests: New file.
42477         * tests/unicase/test-u16-is-uppercase.c: New file.
42478
42479         Tests for module 'unicase/u8-is-uppercase'.
42480         * modules/unicase/u8-is-uppercase-tests: New file.
42481         * tests/unicase/test-u8-is-uppercase.c: New file.
42482         * tests/unicase/test-is-uppercase.h: New file.
42483
42484         New module 'unicase/u32-is-uppercase'.
42485         * lib/unicase/u32-is-uppercase.c: New file.
42486         * modules/unicase/u32-is-uppercase: New file.
42487
42488         New module 'unicase/u16-is-uppercase'.
42489         * lib/unicase/u16-is-uppercase.c: New file.
42490         * modules/unicase/u16-is-uppercase: New file.
42491
42492         New module 'unicase/u8-is-uppercase'.
42493         * lib/unicase/u8-is-uppercase.c: New file.
42494         * modules/unicase/u8-is-uppercase: New file.
42495
42496         New module 'unicase/u32-is-invariant'.
42497         * lib/unicase/u32-is-invariant.c: New file.
42498         * modules/unicase/u32-is-invariant: New file.
42499
42500         New module 'unicase/u16-is-invariant'.
42501         * lib/unicase/u16-is-invariant.c: New file.
42502         * modules/unicase/u16-is-invariant: New file.
42503
42504         New module 'unicase/u8-is-invariant'.
42505         * lib/unicase/u8-is-invariant.c: New file.
42506         * lib/unicase/invariant.h: New file.
42507         * lib/unicase/u-is-invariant.h: New file.
42508         * modules/unicase/u8-is-invariant: New file.
42509
42510         Tests for module 'unicase/u32-casecoll'.
42511         * modules/unicase/u32-casecoll-tests: New file.
42512         * tests/unicase/test-u32-casecoll.c: New file.
42513
42514         Tests for module 'unicase/u16-casecoll'.
42515         * modules/unicase/u16-casecoll-tests: New file.
42516         * tests/unicase/test-u16-casecoll.c: New file.
42517
42518         Tests for module 'unicase/u8-casecoll'.
42519         * modules/unicase/u8-casecoll-tests: New file.
42520         * tests/unicase/test-u8-casecoll.c: New file.
42521
42522         New module 'unicase/u32-casecoll'.
42523         * lib/unicase/u32-casecoll.c: New file.
42524         * modules/unicase/u32-casecoll: New file.
42525
42526         New module 'unicase/u16-casecoll'.
42527         * lib/unicase/u16-casecoll.c: New file.
42528         * modules/unicase/u16-casecoll: New file.
42529
42530         New module 'unicase/u8-casecoll'.
42531         * lib/unicase/u8-casecoll.c: New file.
42532         * lib/unicase/u-casecoll.h: New file.
42533         * modules/unicase/u8-casecoll: New file.
42534
42535         New module 'unicase/u32-casexfrm'.
42536         * lib/unicase/u32-casexfrm.c: New file.
42537         * modules/unicase/u32-casexfrm: New file.
42538
42539         New module 'unicase/u16-casexfrm'.
42540         * lib/unicase/u16-casexfrm.c: New file.
42541         * modules/unicase/u16-casexfrm: New file.
42542
42543         New module 'unicase/u8-casexfrm'.
42544         * lib/unicase/u8-casexfrm.c: New file.
42545         * lib/unicase/u-casexfrm.h: New file.
42546         * modules/unicase/u8-casexfrm: New file.
42547
42548         Tests for module 'unicase/u32-casecmp'.
42549         * modules/unicase/u32-casecmp-tests: New file.
42550         * tests/unicase/test-u32-casecmp.c: New file.
42551
42552         Tests for module 'unicase/u16-casecmp'.
42553         * modules/unicase/u16-casecmp-tests: New file.
42554         * tests/unicase/test-u16-casecmp.c: New file.
42555
42556         Tests for module 'unicase/u8-casecmp'.
42557         * modules/unicase/u8-casecmp-tests: New file.
42558         * tests/unicase/test-u8-casecmp.c: New file.
42559         * tests/unicase/test-casecmp.h: New file.
42560
42561         New module 'unicase/u32-casecmp'.
42562         * lib/unicase/u32-casecmp.c: New file.
42563         * modules/unicase/u32-casecmp: New file.
42564
42565         New module 'unicase/u16-casecmp'.
42566         * lib/unicase/u16-casecmp.c: New file.
42567         * modules/unicase/u16-casecmp: New file.
42568
42569         New module 'unicase/u8-casecmp'.
42570         * lib/unicase/u8-casecmp.c: New file.
42571         * lib/unicase/u-casecmp.h: New file.
42572         * modules/unicase/u8-casecmp: New file.
42573
42574         Tests for module 'unicase/u32-casefold'.
42575         * modules/unicase/u32-casefold-tests: New file.
42576         * tests/unicase/test-u32-casefold.c: New file.
42577
42578         Tests for module 'unicase/u16-casefold'.
42579         * modules/unicase/u16-casefold-tests: New file.
42580         * tests/unicase/test-u16-casefold.c: New file.
42581
42582         Tests for module 'unicase/u8-casefold'.
42583         * modules/unicase/u8-casefold-tests: New file.
42584         * tests/unicase/test-u8-casefold.c: New file.
42585
42586         New module 'unicase/u32-casefold'.
42587         * lib/unicase/u32-casefold.c: New file.
42588         * modules/unicase/u32-casefold: New file.
42589
42590         New module 'unicase/u16-casefold'.
42591         * lib/unicase/u16-casefold.c: New file.
42592         * modules/unicase/u16-casefold: New file.
42593
42594         New module 'unicase/u8-casefold'.
42595         * lib/unicase/u8-casefold.c: New file.
42596         * lib/unicase/u-casefold.h: New file.
42597         * modules/unicase/u8-casefold: New file.
42598
42599         New module 'unicase/tocasefold'.
42600         * lib/unicase/casefold.h: New file.
42601         * lib/unicase/tocasefold.c: New file.
42602         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
42603         * modules/unicase/tocasefold: New file.
42604
42605         Tests for module 'unicase/u32-totitle'.
42606         * modules/unicase/u32-totitle-tests: New file.
42607         * tests/unicase/test-u32-totitle.c: New file.
42608
42609         Tests for module 'unicase/u16-totitle'.
42610         * modules/unicase/u16-totitle-tests: New file.
42611         * tests/unicase/test-u16-totitle.c: New file.
42612
42613         Tests for module 'unicase/u8-totitle'.
42614         * modules/unicase/u8-totitle-tests: New file.
42615         * tests/unicase/test-u8-totitle.c: New file.
42616
42617         New module 'unicase/u32-totitle'.
42618         * lib/unicase/u32-totitle.c: New file.
42619         * modules/unicase/u32-totitle: New file.
42620
42621         New module 'unicase/u16-totitle'.
42622         * lib/unicase/u16-totitle.c: New file.
42623         * modules/unicase/u16-totitle: New file.
42624
42625         New module 'unicase/u8-totitle'.
42626         * lib/unicase/u8-totitle.c: New file.
42627         * lib/unicase/u-totitle.h: New file.
42628         * modules/unicase/u8-totitle: New file.
42629
42630         Tests for module 'unicase/u32-tolower'.
42631         * modules/unicase/u32-tolower-tests: New file.
42632         * tests/unicase/test-u32-tolower.c: New file.
42633
42634         Tests for module 'unicase/u16-tolower'.
42635         * modules/unicase/u16-tolower-tests: New file.
42636         * tests/unicase/test-u16-tolower.c: New file.
42637
42638         Tests for module 'unicase/u8-tolower'.
42639         * modules/unicase/u8-tolower-tests: New file.
42640         * tests/unicase/test-u8-tolower.c: New file.
42641
42642         New module 'unicase/u32-tolower'.
42643         * lib/unicase/u32-tolower.c: New file.
42644         * modules/unicase/u32-tolower: New file.
42645
42646         New module 'unicase/u16-tolower'.
42647         * lib/unicase/u16-tolower.c: New file.
42648         * modules/unicase/u16-tolower: New file.
42649
42650         New module 'unicase/u8-tolower'.
42651         * lib/unicase/u8-tolower.c: New file.
42652         * modules/unicase/u8-tolower: New file.
42653
42654         Tests for module 'unicase/u32-toupper'.
42655         * modules/unicase/u32-toupper-tests: New file.
42656         * tests/unicase/test-u32-toupper.c: New file.
42657
42658         Tests for module 'unicase/u16-toupper'.
42659         * modules/unicase/u16-toupper-tests: New file.
42660         * tests/unicase/test-u16-toupper.c: New file.
42661
42662         Tests for module 'unicase/u8-toupper'.
42663         * modules/unicase/u8-toupper-tests: New file.
42664         * tests/unicase/test-u8-toupper.c: New file.
42665
42666         New module 'unicase/u32-toupper'.
42667         * lib/unicase/u32-toupper.c: New file.
42668         * modules/unicase/u32-toupper: New file.
42669
42670         New module 'unicase/u16-toupper'.
42671         * lib/unicase/u16-toupper.c: New file.
42672         * modules/unicase/u16-toupper: New file.
42673
42674         New module 'unicase/u8-toupper'.
42675         * lib/unicase/u8-toupper.c: New file.
42676         * modules/unicase/u8-toupper: New file.
42677
42678         New module 'unicase/u32-casemap'.
42679         * lib/unicase/u32-casemap.c: New file.
42680         * modules/unicase/u32-casemap: New file.
42681
42682         New module 'unicase/u16-casemap'.
42683         * lib/unicase/u16-casemap.c: New file.
42684         * modules/unicase/u16-casemap: New file.
42685
42686         New module 'unicase/u8-casemap'.
42687         * lib/unicase/unicasemap.h: New file.
42688         * lib/unicase/u8-casemap.c: New file.
42689         * lib/unicase/u-casemap.h: New file.
42690         * modules/unicase/u8-casemap: New file.
42691
42692         New module 'unicase/special-casing'.
42693         * lib/unicase/special-casing.h: New file.
42694         * lib/unicase/special-casing.c: New file.
42695         * lib/unicase/special-casing-table.gperf: New file, generated by
42696         gen-uni-tables.c.
42697         * modules/unicase/special-casing: New file.
42698
42699         Tests for module 'unicase/locale-language'.
42700         * modules/unicase/locale-language-tests: New file.
42701         * tests/unicase/test-locale-language.sh: New file.
42702         * tests/unicase/test-locale-language.c: New file.
42703
42704         New module 'unicase/locale-language'.
42705         * lib/unicase/locale-language.c: New file.
42706         * lib/unicase/locale-languages.gperf: New file.
42707         * modules/unicase/locale-language: New file.
42708
42709         Generate more tables for case conversion and case folding.
42710         * lib/gen-uni-tables.c (SCC_*): New enum items.
42711         (struct special_casing_rule): New type.
42712         (casing_rules, num_casing_rules, allocated_casing_rules): New
42713         variables.
42714         (add_casing_rule, fill_casing_rules): New functions.
42715         (struct casefold_rule): New type.
42716         (casefolding_rules, num_casefolding_rules,
42717         allocated_casefolding_rules): New variables.
42718         (fill_casefolding_rules): New function.
42719         (unicode_casefold): New variable.
42720         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
42721         sort_casing_rules, output_casing_rules): New functions.
42722         (main): Accept to more arguments: SpecialCasing.txt and
42723         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
42724         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
42725         Output mapping for casefolding.
42726
42727         * lib/unicase.h: Include stdbool.h, uninorm.h.
42728         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
42729         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
42730         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
42731         arguments.
42732         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
42733         resultp arguments.
42734         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
42735         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
42736         resultp arguments.
42737         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
42738         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
42739         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
42740         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
42741         declarations.
42742         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
42743
42744 2009-03-08  Bruno Haible  <bruno@clisp.org>
42745
42746         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42747         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
42748         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
42749         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42750
42751 2009-03-07  Bruno Haible  <bruno@clisp.org>
42752
42753         Adjust u*_normcmp, u*_normcoll API.
42754         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42755         u16_normcoll, u32_normcoll): Change failure conventions.
42756         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
42757         errno and return -1.
42758         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42759
42760 2009-03-07  Bruno Haible  <bruno@clisp.org>
42761
42762         Tests for module 'uninorm/u32-normcoll'.
42763         * modules/uninorm/u32-normcoll-tests: New file.
42764         * tests/uninorm/test-u32-normcoll.c: New file.
42765
42766         Tests for module 'uninorm/u16-normcoll'.
42767         * modules/uninorm/u16-normcoll-tests: New file.
42768         * tests/uninorm/test-u16-normcoll.c: New file.
42769
42770         Tests for module 'uninorm/u8-normcoll'.
42771         * modules/uninorm/u8-normcoll-tests: New file.
42772         * tests/uninorm/test-u8-normcoll.c: New file.
42773
42774 2009-03-07  Bruno Haible  <bruno@clisp.org>
42775
42776         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
42777         tests/uninorm/test-u32-normcmp.c.
42778         * tests/uninorm/test-u32-normcmp.c: Include it.
42779         (test_nonascii): New function, extracted from main. Add some more
42780         tests.
42781         (main): Invoke test_ascii and test_nonascii.
42782         * modules/uninorm/u32-normcmp-tests (Files): Add
42783         tests/uninorm/test-u32-normcmp.h.
42784         (Depends-on): Remove uninorm/u32-normcmp.
42785
42786         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
42787         tests/uninorm/test-u16-normcmp.c.
42788         * tests/uninorm/test-u16-normcmp.c: Include it.
42789         (test_nonascii): New function, extracted from main. Add some more
42790         tests.
42791         (main): Invoke test_ascii and test_nonascii.
42792         * modules/uninorm/u16-normcmp-tests (Files): Add
42793         tests/uninorm/test-u16-normcmp.h.
42794         (Depends-on): Remove uninorm/u16-normcmp.
42795
42796         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
42797         tests/uninorm/test-u8-normcmp.c.
42798         * tests/uninorm/test-u8-normcmp.c: Include it.
42799         (test_nonascii): New function, extracted from main. Add some more
42800         tests.
42801         (main): Invoke test_ascii and test_nonascii.
42802         * modules/uninorm/u8-normcmp-tests (Files): Add
42803         tests/uninorm/test-u8-normcmp.h.
42804         (Depends-on): Remove uninorm/u8-normcmp.
42805
42806 2009-03-07  Bruno Haible  <bruno@clisp.org>
42807
42808         New module 'uninorm/u32-normcoll'.
42809         * lib/uninorm/u32-normcoll.c: New file.
42810         * modules/uninorm/u32-normcoll: New file.
42811
42812         New module 'uninorm/u16-normcoll'.
42813         * lib/uninorm/u16-normcoll.c: New file.
42814         * modules/uninorm/u16-normcoll: New file.
42815
42816         New module 'uninorm/u8-normcoll'.
42817         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
42818         declarations.
42819         * lib/uninorm/u8-normcoll.c: New file.
42820         * lib/uninorm/u-normcoll.h: New file.
42821         * modules/uninorm/u8-normcoll: New file.
42822
42823         New module 'uninorm/u32-normxfrm'.
42824         * lib/uninorm/u32-normxfrm.c: New file.
42825         * modules/uninorm/u32-normxfrm: New file.
42826
42827         New module 'uninorm/u16-normxfrm'.
42828         * lib/uninorm/u16-normxfrm.c: New file.
42829         * modules/uninorm/u16-normxfrm: New file.
42830
42831         New module 'uninorm/u8-normxfrm'.
42832         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
42833         declarations.
42834         * lib/uninorm/u8-normxfrm.c: New file.
42835         * lib/uninorm/u-normxfrm.h: New file.
42836         * modules/uninorm/u8-normxfrm: New file.
42837
42838 2009-03-07  Bruno Haible  <bruno@clisp.org>
42839
42840         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
42841         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
42842         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
42843
42844 2009-03-07  Bruno Haible  <bruno@clisp.org>
42845
42846         New module 'memxfrm'.
42847         * lib/memxfrm.h: New file.
42848         * lib/memxfrm.c: New file.
42849         * modules/memxfrm: New file.
42850
42851 2009-03-07  Bruno Haible  <bruno@clisp.org>
42852
42853         New module 'memcmp2'.
42854         * lib/memcmp2.h: New file.
42855         * lib/memcmp2.c: New file.
42856         * modules/memcmp2: New file.
42857
42858 2009-03-07  Bruno Haible  <bruno@clisp.org>
42859
42860         Tests for module 'uninorm/decomposing-form'.
42861         * modules/uninorm/decomposing-form-tests: New file.
42862         * tests/uninorm/test-decomposing-form.c: New file.
42863
42864         New module 'uninorm/decomposing-form'.
42865         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
42866         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
42867         Add 'decomposing_variant' field.
42868         * lib/uninorm/decomposing-form.c: New file.
42869         * lib/uninorm/nfc.c (uninorm_nfc): Update.
42870         * lib/uninorm/nfd.c (uninorm_nfd): Update.
42871         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
42872         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
42873         * modules/uninorm/decomposing-form: New file.
42874         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
42875         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
42876
42877 2009-03-07  Bruno Haible  <bruno@clisp.org>
42878
42879         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
42880         strings.
42881
42882 2009-03-06  Bruno Haible  <bruno@clisp.org>
42883
42884         Tests for module 'uninorm/u32-normcmp'.
42885         * tests/uninorm/test-u32-normcmp.c: New file.
42886         * modules/uninorm/u32-normcmp-tests: New file.
42887
42888         Tests for module 'uninorm/u16-normcmp'.
42889         * tests/uninorm/test-u16-normcmp.c: New file.
42890         * modules/uninorm/u16-normcmp-tests: New file.
42891
42892         Tests for module 'uninorm/u8-normcmp'.
42893         * tests/uninorm/test-u8-normcmp.c: New file.
42894         * modules/uninorm/u8-normcmp-tests: New file.
42895
42896         New module 'uninorm/u32-normcmp'.
42897         * lib/uninorm/u32-normcmp.c: New file.
42898         * modules/uninorm/u32-normcmp: New file.
42899
42900         New module 'uninorm/u16-normcmp'.
42901         * lib/uninorm/u16-normcmp.c: New file.
42902         * modules/uninorm/u16-normcmp: New file.
42903
42904         New module 'uninorm/u8-normcmp'.
42905         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
42906         declarations.
42907         * lib/uninorm/u8-normcmp.c: New file.
42908         * lib/uninorm/u-normcmp.h: New file.
42909         * modules/uninorm/u8-normcmp: New file.
42910
42911 2009-03-06  Bruno Haible  <bruno@clisp.org>
42912
42913         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
42914         Reported by Eric Blake.
42915
42916 2009-03-06  Eric Blake  <ebb9@byu.net>
42917             Bruno Haible  <bruno@clisp.org>
42918
42919         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
42920         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
42921         condition.
42922         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42923         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
42924         condition.
42925         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42926
42927 2009-03-06  Eric Blake  <ebb9@byu.net>
42928
42929         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
42930         to avoid compiler warnings.
42931         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
42932
42933 2009-03-05  Bruno Haible  <bruno@clisp.org>
42934
42935         * tests/test-ftell.c (main): Disable test beyond end of file on
42936         FreeMiNT.
42937         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42938
42939 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
42940
42941         * lib/filevercmp.c: Move hidden files up in ordering.
42942         * tests/test-filevercmp.c: Add tests for hidden files.
42943
42944 2009-03-04  Bruno Haible  <bruno@clisp.org>
42945
42946         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
42947         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
42948         AM_CFLAGS.
42949         Reported by Simon Josefsson.
42950
42951 2009-03-03  Bruno Haible  <bruno@clisp.org>
42952
42953         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
42954         Reported by Simon Josefsson.
42955
42956         * doc/ld-version-script.texi: Update node reference.
42957
42958 2009-03-03  Bruno Haible  <bruno@clisp.org>
42959
42960         * modules/visibility (License): Change to 'unlimited'.
42961         Suggested by Simon Josefsson.
42962
42963 2009-03-03  Jim Meyering  <meyering@redhat.com>
42964
42965         unlinkdir: cannot_unlink_dir may modify process state
42966         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
42967         it's neither thread-safe nor appropriate for use in a library.
42968
42969 2009-03-03  Eric Blake  <ebb9@byu.net>
42970
42971         test-closein: silence test under Darwin
42972         * tests/test-closein.sh: Ignore stderr from cat, since we don't
42973         care if it dies from EPIPE or EBADF.
42974
42975 2009-03-03  Bruno Haible  <bruno@clisp.org>
42976
42977         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
42978         earlier.
42979         * doc/visibility.texi: Fix @node and @section.
42980
42981 2009-03-03  Simon Josefsson  <simon@josefsson.org>
42982
42983         * doc/gnulib.texi: Link to sections for ld version script and
42984         visibility.
42985         * doc/visibility.texi: Add @node and @section.
42986         * modules/ld-version-script: New module.
42987         * m4/ld-version-script.m4: New file.
42988         * doc/ld-version-script.texi: New file.
42989
42990 2009-03-02  David Lutterkort  <lutter@redhat.com>
42991
42992         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
42993         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42994
42995 2009-03-02  Bruno Haible  <bruno@clisp.org>
42996
42997         * doc/visibility.texi: Mention libtool's -export-symbols option.
42998
42999 2009-03-02  Jim Meyering  <meyering@redhat.com>
43000
43001         announce-gen: new option: --no-print-checksums
43002         * build-aux/announce-gen (usage): Describe it.
43003         (print_checksums): Print a newline here, not in the [*] footnote.
43004         (main): Honor it.
43005
43006 2009-03-01  Bruno Haible  <bruno@clisp.org>
43007
43008         Use socklen_t in the native Windows replacements prototypes.
43009         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
43010         instead of 'int'.
43011         * lib/getsockopt.c (rpl_getsockopt): Likewise.
43012         * lib/setsockopt.c (rpl_setsockopt): Likewise.
43013         * modules/getsockopt (Depends-on): Add socklen.
43014         * modules/setsockopt (Depends-on): Add socklen.
43015
43016 2009-03-01  Bruno Haible  <bruno@clisp.org>
43017
43018         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
43019         least 4.2.
43020
43021 2009-03-01  Eric Blake  <ebb9@byu.net>
43022             Bruno Haible  <bruno@clisp.org>
43023
43024         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
43025         error messages.
43026         * lib/wait-process.c (wait_subprocess): Omit error message about
43027         deadly signal sent to the child of termsigp != NULL.
43028
43029 2009-03-01  Eric Blake  <ebb9@byu.net>
43030
43031         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
43032
43033 2009-03-01  Bruno Haible  <bruno@clisp.org>
43034
43035         Avoid a gcc warning.
43036         * tests/test-sched.c (b): Make global.
43037         Reported by Eric Blake.
43038
43039 2009-01-19  Martin Lambers  <marlam@marlam.de>
43040
43041         Provide POSIX semantics for socket timeout options on W32.
43042         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
43043         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
43044         * modules/setsockopt: Depend on sys_time module for struct timeval.
43045         * modules/getsockopt: Depend on sys_time module for struct timeval.
43046
43047 2009-03-01  Simon Josefsson  <simon@josefsson.org>
43048
43049         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
43050         __USE_GNU, for consistency with netdb.in.h.
43051         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43052
43053 2009-03-01  Bruno Haible  <bruno@clisp.org>
43054
43055         More support for FreeMiNT.
43056         * lib/fseeko.c (rpl_fseeko): Complete last commit.
43057         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43058
43059 2009-03-01  Bruno Haible  <bruno@clisp.org>
43060
43061         More support for FreeMiNT.
43062         * lib/fpurge.c (fpurge): Correct last commit.
43063         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43064
43065 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43066
43067         Fix unportable awk script in vc-list-files.
43068         * build-aux/vc-list-files: In the replacement awk script, use
43069         substr with a second argument of 1, not zero.
43070         Report by Simon Josefsson.
43071
43072 2009-02-28  Bruno Haible  <bruno@clisp.org>
43073
43074         More support for FreeMiNT.
43075         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
43076         to FreeMiNT today.
43077         * lib/fwriting.c (fwriting): Likewise.
43078         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
43079
43080 2009-02-28  Bruno Haible  <bruno@clisp.org>
43081
43082         * tests/test-freadseek.c (main): Disable test beyond end of file on
43083         FreeMiNT.
43084         * tests/test-ftello.c (main): Likewise.
43085         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43086
43087 2009-02-28  Bruno Haible  <bruno@clisp.org>
43088
43089         Add tentative support for FreeMiNT.
43090         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
43091         * lib/fpurge.c (fpurge): Likewise.
43092         * lib/freadable.c (freadable): Likewise.
43093         * lib/freading.c (freading): Likewise.
43094         * lib/freadptr.c (freadptr): Likewise.
43095         * lib/freadseek.c (freadptrinc): Likewise.
43096         * lib/fseeko.c (rpl_fseeko): Likewise.
43097         * lib/fseterr.c (fseterr): Likewise.
43098         * lib/fwritable.c (fwritable): Likewise.
43099         * lib/fwriting.c (fwriting): Likewise.
43100         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
43101         Hourihane.
43102         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43103
43104 2009-02-28  Bruno Haible  <bruno@clisp.org>
43105
43106         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
43107         SIGCHLD.
43108         Reported by Jim Meyering.
43109
43110 2009-02-28  Bruno Haible  <bruno@clisp.org>
43111
43112         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
43113         Mention the results of these tests on various platforms.
43114         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
43115         order.
43116         * doc/posix-functions/printf.texi: Likewise.
43117         * doc/posix-functions/snprintf.texi: Likewise.
43118         * doc/posix-functions/sprintf.texi: Likewise.
43119         * doc/posix-functions/vfprintf.texi: Likewise.
43120         * doc/posix-functions/vprintf.texi: Likewise.
43121         * doc/posix-functions/vsnprintf.texi: Likewise.
43122         * doc/posix-functions/vsprintf.texi: Likewise.
43123         * doc/glibc-functions/obstack_printf.texi: Likewise.
43124         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43125
43126 2009-02-28  Bruno Haible  <bruno@clisp.org>
43127
43128         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
43129         Reported by Loïc Minier <lool@dooz.org>.
43130
43131 2009-02-27  Bruno Haible  <bruno@clisp.org>
43132
43133         * gnulib-tool (func_import): Make the sed expression used to create the
43134         sed script for updating the .gitignore file POSIX compliant.
43135         Reported by Eric Blake.
43136
43137 2009-02-27  Bruno Haible  <bruno@clisp.org>
43138
43139         * gnulib-tool (sed): Don't alias as "sed --posix".
43140         Reported by Eric Blake.
43141
43142 2009-02-27  Bruno Haible  <bruno@clisp.org>
43143
43144         Avoid test link errors.
43145         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
43146         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
43147         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
43148         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
43149         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43150
43151 2009-02-27  Bruno Haible  <bruno@clisp.org>
43152
43153         Avoid spurious "(cached)" in configure output.
43154         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
43155         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
43156         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43157         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43158         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43159         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
43160         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43161         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
43162         Reported by Eric Blake.
43163
43164 2009-02-27  Eric Blake  <ebb9@byu.net>
43165
43166         printf: fix regression in previous patch
43167         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
43168
43169 2009-02-27  Bruno Haible  <bruno@clisp.org>
43170
43171         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
43172         value.
43173         * lib/stdint.in.h: Likewise.
43174         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
43175
43176 2009-02-27  Eric Blake  <ebb9@byu.net>
43177
43178         doc: mention more functions added in cygwin 1.7.0
43179         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
43180         addition.
43181         * doc/posix-functions/open_wmemstream.texi: Likewise.
43182         * doc/posix-functions/wcsnlen.texi: Likewise.
43183         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43184         * doc/posix-functions/wcstod.texi: Likewise.
43185         * doc/posix-functions/wcstof.texi: Likewise.
43186         * doc/posix-functions/wcstoimax.texi: Likewise.
43187         * doc/posix-functions/wcstok.texi: Likewise.
43188         * doc/posix-functions/wcstoumax.texi: Likewise.
43189
43190         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
43191         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
43192         * doc/posix-functions/fprintf.texi: Update.
43193         * doc/posix-functions/printf.texi: Update.
43194         * doc/posix-functions/snprintf.texi: Update.
43195         * doc/posix-functions/sprintf.texi: Update.
43196         * doc/posix-functions/vfprintf.texi: Update.
43197         * doc/posix-functions/vprintf.texi: Update.
43198         * doc/posix-functions/vsnprintf.texi: Update.
43199         * doc/posix-functions/vsprintf.texi: Update.
43200         * doc/glibc-functions/obstack_printf.texi: Update.
43201         * doc/glibc-functions/obstack_vprintf.texi: Update.
43202
43203 2009-02-26  Eric Blake  <ebb9@byu.net>
43204
43205         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
43206         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
43207         compilation bug by using runtime conversion.
43208         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
43209         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
43210         * modules/ceill-tests (Files): Use nan.h.
43211         * modules/floorl-tests (Files): Likewise.
43212         * modules/frexpl-tests (Files): Likewise.
43213         * modules/isnanl-tests (Files): Likewise.
43214         * modules/ldexpl-tests (Files): Likewise.
43215         * modules/roundl-tests (Files): Likewise.
43216         * modules/truncl-tests (Files): Likewise.
43217         * tests/test-ceill.c (main): Use a working NaN.
43218         * tests/test-floorl.c (main): Likewise.
43219         * tests/test-frexpl.c (main): Likewise.
43220         * tests/test-isnan.c (test_long_double): Likewise.
43221         * tests/test-isnanl.h (main): Likewise.
43222         * tests/test-ldexpl.h (main): Likewise.
43223         * tests/test-roundl.h (main): Likewise.
43224         * tests/test-truncl.h (main): Likewise.
43225         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
43226
43227 2009-02-26  Eric Blake  <ebb9@byu.net>
43228             Bruno Haible  <bruno@clisp.org>
43229
43230         Work around a *printf bug with %ls on Solaris.
43231         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
43232         precision is specified, sprintf stops converting the wide string
43233         argument when the number of bytes that have been produced by this
43234         conversion equals or exceeds the precision.
43235         * doc/posix-functions/fprintf.texi: Update.
43236         * doc/posix-functions/printf.texi: Update.
43237         * doc/posix-functions/snprintf.texi: Update.
43238         * doc/posix-functions/sprintf.texi: Update.
43239         * doc/posix-functions/vfprintf.texi: Update.
43240         * doc/posix-functions/vprintf.texi: Update.
43241         * doc/posix-functions/vsnprintf.texi: Update.
43242         * doc/posix-functions/vsprintf.texi: Update.
43243         * doc/glibc-functions/obstack_printf.texi: Update.
43244         * doc/glibc-functions/obstack_vprintf.texi: Update.
43245
43246 2009-02-26  Eric Blake  <ebb9@byu.net>
43247
43248         stdlib: favor compiler check of random.h
43249         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
43250         to avoid an ObjC random.h installed by Swarm.
43251
43252 2009-02-26  Bruno Haible  <bruno@clisp.org>
43253
43254         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
43255         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
43256         Reported by Gary V. Vaughan <gary@gnu.org>.
43257
43258 2009-02-26  Bruno Haible  <bruno@clisp.org>
43259
43260         Fix *printf behaviour regarding the %ls directive.
43261         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
43262         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
43263         NEED_PRINTF_DIRECTIVE_LS.
43264         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
43265         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43266         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43267         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
43268         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
43269         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
43270         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43271         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43272         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43273         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43274         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43275         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
43276         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43277         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43278         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43279         * doc/posix-functions/fprintf.texi: Update.
43280         * doc/posix-functions/printf.texi: Update.
43281         * doc/posix-functions/snprintf.texi: Update.
43282         * doc/posix-functions/sprintf.texi: Update.
43283         * doc/posix-functions/vfprintf.texi: Update.
43284         * doc/posix-functions/vprintf.texi: Update.
43285         * doc/posix-functions/vsnprintf.texi: Update.
43286         * doc/posix-functions/vsprintf.texi: Update.
43287         * doc/glibc-functions/obstack_printf.texi: Update.
43288         * doc/glibc-functions/obstack_vprintf.texi: Update.
43289         Reported by Eric Blake.
43290
43291 2009-02-25  Bruno Haible  <bruno@clisp.org>
43292
43293         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
43294         with known value.
43295         Reported by Gary V. Vaughan <gary@gnu.org>.
43296
43297 2009-02-25  Bruno Haible  <bruno@clisp.org>
43298
43299         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
43300         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
43301         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
43302         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
43303         Reported by Gary V. Vaughan <gary@gnu.org>.
43304
43305 2009-02-25  Bruno Haible  <bruno@clisp.org>
43306
43307         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
43308         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
43309         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
43310         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
43311         Reported by Gary V. Vaughan <gary@gnu.org>.
43312
43313 2009-02-25  Eric Blake  <ebb9@byu.net>
43314
43315         tests: skip fseek/ftell tests if ungetc is broken
43316         * m4/ungetc.m4: New file.
43317         * modules/fseek-tests: Split test, so ungetc dependency is
43318         separate from rest of test.
43319         * modules/fseeko-tests: Likewise.
43320         * modules/ftell-tests: Likewise.
43321         * modules/ftello-tests: Likewise.
43322         * tests/test-fseek.c (main): Isolate ungetc dependency.
43323         * tests/test-fseeko.c (main): Likewise.
43324         * tests/test-ftell.c (main): Likewise.
43325         * tests/test-ftello.c (main): Likewise.
43326         * tests/test-fseek2.sh: New file.
43327         * tests/test-fseeko2.sh: Likewise.
43328         * tests/test-ftell2.sh: Likewise.
43329         * tests/test-ftello2.sh: Likewise.
43330
43331 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
43332
43333         test-getaddrinfo: fix usage of skip return code 77
43334         * tests/test-gettaddrinfo.c: Return skip code 77 only
43335         for first occurance of skip (4x77 is not 77)
43336
43337 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
43338
43339         strtod: avoid C99 decl-after-statement
43340         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
43341
43342 2009-02-24  Eric Blake  <ebb9@byu.net>
43343
43344         strtod: detect HP-UX 11.31 bug
43345         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
43346         Reported by Gary V. Vaughan.
43347
43348 2009-02-23  Bruno Haible  <bruno@clisp.org>
43349
43350         Fix invalid read past end of memory block.
43351         * lib/vasnprintf.c (DCHAR_SET): Define.
43352         (local_wcslen): Define only when needed.
43353         (local_strnlen, local_wcsnlen): New functions.
43354         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
43355         directives that involve a conversion ourselves.
43356         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
43357         wcsnlen, mbrtowc, wcrtomb.
43358         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
43359         * tests/test-vasprintf-posix.c (test_function): Likewise.
43360         * tests/test-snprintf-posix.h (test_function): Likewise.
43361         * tests/test-sprintf-posix.h (test_function): Likewise.
43362         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43363
43364 2009-02-22  Bruno Haible  <bruno@clisp.org>
43365
43366         Implement new clarified decomposition of Hangul syllables.
43367         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
43368         of type LTV, return only a pairwise decomposition.
43369         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
43370         Likewise.
43371         * tests/uninorm/test-decomposition.c (main): Updated expected result.
43372         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
43373         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
43374
43375 2009-02-22  Bruno Haible  <bruno@clisp.org>
43376
43377         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
43378         zero-length results and shrink excess allocated memory.
43379         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
43380         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
43381         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
43382         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
43383         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
43384         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
43385         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
43386         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
43387         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
43388         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
43389         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
43390         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
43391
43392 2009-02-21  Bruno Haible  <bruno@clisp.org>
43393
43394         * doc/gnulib.texi: Include safe-alloc.texi earlier.
43395         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
43396         spaces after a period. Put a space between a macro name and its
43397         argument list. Trivial rewordings.
43398         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
43399         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
43400         (main): Return 0 explicitly.
43401
43402 2009-02-21  Bruno Haible  <bruno@clisp.org>
43403
43404         Tests for module 'uninorm/filter'.
43405         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
43406         * modules/uninorm/filter-tests: New file.
43407
43408         New module 'uninorm/filter'.
43409         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
43410         uninorm_filter_flush, uninorm_filter_free): New declarations.
43411         * lib/uninorm/uninorm-filter.c: New file.
43412         * modules/uninorm/filter: New file.
43413
43414 2009-02-21  Bruno Haible  <bruno@clisp.org>
43415
43416         Tests for module 'uninorm/nfkc'.
43417         * tests/uninorm/test-nfkc.c: New file.
43418         * tests/uninorm/test-u8-nfkc.c: New file.
43419         * tests/uninorm/test-u16-nfkc.c: New file.
43420         * tests/uninorm/test-u32-nfkc.c: New file.
43421         * tests/uninorm/test-u32-nfkc-big.sh: New file.
43422         * tests/uninorm/test-u32-nfkc-big.c: New file.
43423         * modules/uninorm/nfkc-tests: New file.
43424
43425         New module 'uninorm/nfkc'.
43426         * lib/uninorm/nfkc.c: New file.
43427         * modules/uninorm/nfkc: New file.
43428
43429         Tests for module 'uninorm/nfkd'.
43430         * tests/uninorm/test-nfkd.c: New file.
43431         * tests/uninorm/test-u8-nfkd.c: New file.
43432         * tests/uninorm/test-u16-nfkd.c: New file.
43433         * tests/uninorm/test-u32-nfkd.c: New file.
43434         * tests/uninorm/test-u32-nfkd-big.sh: New file.
43435         * tests/uninorm/test-u32-nfkd-big.c: New file.
43436         * modules/uninorm/nfkd-tests: New file.
43437
43438         New module 'uninorm/nfkd'.
43439         * lib/uninorm/nfkd.c: New file.
43440         * modules/uninorm/nfkd: New file.
43441
43442         Tests for module 'uninorm/nfc'.
43443         * tests/uninorm/test-nfc.c: New file.
43444         * tests/uninorm/test-u8-nfc.c: New file.
43445         * tests/uninorm/test-u16-nfc.c: New file.
43446         * tests/uninorm/test-u32-nfc.c: New file.
43447         * tests/uninorm/test-u32-nfc-big.sh: New file.
43448         * tests/uninorm/test-u32-nfc-big.c: New file.
43449         * modules/uninorm/nfc-tests: New file.
43450
43451         New module 'uninorm/nfc'.
43452         * lib/uninorm/nfc.c: New file.
43453         * modules/uninorm/nfc: New file.
43454
43455         Tests for module 'uninorm/nfd'.
43456         * tests/uninorm/test-nfd.c: New file.
43457         * tests/uninorm/test-u8-nfd.c: New file.
43458         * tests/uninorm/test-u16-nfd.c: New file.
43459         * tests/uninorm/test-u32-nfd.c: New file.
43460         * tests/uninorm/test-u32-nfd-big.sh: New file.
43461         * tests/uninorm/test-u32-nfd-big.c: New file.
43462         * tests/uninorm/test-u32-normalize-big.h: New file.
43463         * tests/uninorm/test-u32-normalize-big.c: New file.
43464         * tests/uninorm/NormalizationTest.txt: New file, created from
43465         Unicode 5.1.0 NormalizationTest.txt.
43466         * modules/uninorm/nfd-tests: New file.
43467
43468         New module 'uninorm/nfd'.
43469         * lib/uninorm/nfd.c: New file.
43470         * modules/uninorm/nfd: New file.
43471
43472         New module 'uninorm/u32-normalize'.
43473         * lib/uninorm/u32-normalize.c: New file.
43474         * modules/uninorm/u32-normalize: New file.
43475
43476         New module 'uninorm/u16-normalize'.
43477         * lib/uninorm/u16-normalize.c: New file.
43478         * modules/uninorm/u16-normalize: New file.
43479
43480         New module 'uninorm/u8-normalize'.
43481         * lib/uninorm/u8-normalize.c: New file.
43482         * lib/uninorm/normalize-internal.h: New file.
43483         * lib/uninorm/u-normalize-internal.h: New file.
43484         * modules/uninorm/u8-normalize: New file.
43485
43486         New module 'uninorm/decompose-internal'.
43487         * lib/uninorm/decompose-internal.c: New file.
43488         * modules/uninorm/decompose-internal: New file.
43489
43490         Tests for module 'uninorm/composition'.
43491         * tests/uninorm/test-composition.c: New file.
43492         * modules/uninorm/composition-tests: New file.
43493
43494         New module 'uninorm/composition'.
43495         * lib/uninorm/composition.c: New file.
43496         * lib/uninorm/composition-table.gperf: New file, generated by
43497         gen-uni-tables.
43498         * modules/uninorm/composition: New file.
43499
43500         Tests for module 'uninorm/compat-decomposition'.
43501         * tests/uninorm/test-compat-decomposition.c: New file.
43502         * modules/uninorm/compat-decomposition-tests: New file.
43503
43504         New module 'uninorm/compat-decomposition'.
43505         * lib/uninorm/decompose-internal.h: New file.
43506         * lib/uninorm/compat-decomposition.c: New file.
43507         * modules/uninorm/compat-decomposition: New file.
43508
43509         Tests for module 'uninorm/canonical-decomposition'.
43510         * tests/uninorm/test-canonical-decomposition.c: New file.
43511         * modules/uninorm/canonical-decomposition-tests: New file.
43512
43513         New module 'uninorm/canonical-decomposition'.
43514         * lib/uninorm/canonical-decomposition.c: New file.
43515         * modules/uninorm/canonical-decomposition: New file.
43516
43517         Tests for module 'uninorm/decomposition'.
43518         * tests/uninorm/test-decomposition.c: New file.
43519         * modules/uninorm/decomposition-tests: New file.
43520
43521         New module 'uninorm/decomposition'.
43522         * lib/uninorm/decomposition.c: New file.
43523         * modules/uninorm/decomposition: New file.
43524
43525         New module 'uninorm/decomposition-table'.
43526         * lib/uninorm/decomposition-table.h: New file.
43527         * lib/uninorm/decomposition-table.c: New file.
43528         * lib/uninorm/decomposition-table1.h: New file, generated by
43529         gen-uni-tables.
43530         * lib/uninorm/decomposition-table2.h: New file, generated by
43531         gen-uni-tables.
43532         * modules/uninorm/decomposition-table: New file.
43533
43534         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
43535         (UC_DECOMP_*): New enumeration items.
43536         (get_decomposition): New function.
43537         (struct decomp_table): New type.
43538         (output_decomposition, output_decomposition_tables): New functions.
43539         (unicode_composition_exclusions): New variable.
43540         (fill_composition_exclusions, debug_output_composition_tables): New
43541         functions.
43542         (main): Accept one more argument. Invoke fill_composition_exclusions.
43543         Output decomposition and composition tables.
43544
43545         New module 'uninorm/base'.
43546         * lib/uninorm.h: New file.
43547         * lib/unictype.h: Update comment.
43548         * modules/uninorm/base: New file.
43549
43550 2009-02-21  David Lutterkort  <lutter@redhat.com>
43551
43552         Tests for module 'safe-alloc'.
43553         * tests/test-safe-alloc.c: New file.
43554         * modules/safe-alloc-tests: New file.
43555
43556         New module 'safe-alloc'.
43557         * lib/safe-alloc.h: New file.
43558         * lib/safe-alloc.c: New file.
43559         * m4/safe-alloc.m4: New file.
43560         * modules/safe-alloc: New file.
43561         * doc/safe-alloc.texi: New file.
43562         * doc/gnulib.texi: Include it.
43563         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
43564         safe-alloc.
43565
43566 2009-02-18  Bruno Haible  <bruno@clisp.org>
43567
43568         Fix link error on non-glibc systems.
43569         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
43570         variable.
43571         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43572
43573 2009-02-18  Jim Meyering  <meyering@redhat.com>
43574
43575         fts: avoid used-uninitialized error due to recent change
43576         * lib/fts.c (fts_read): Guard uses of the new member,
43577         parent->fts_n_dirs_remaining, since it's not relevant for
43578         the parent of a directory specified on the command-line.
43579
43580 2009-02-17  James Youngman  <jay@gnu.org>
43581             Bruno Haible  <bruno@clisp.org>
43582
43583         * m4/include_next.m4: Reformulate comment.
43584
43585 2009-02-16  Jim Meyering  <meyering@redhat.com>
43586
43587         fts: add #if guards so that the fts_lgpl module still builds
43588         * lib/fts.c: Guard just-added hash-table-using parts with
43589         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
43590         Reported by Simon Josefsson.
43591
43592 2009-02-15  Bruno Haible  <bruno@clisp.org>
43593
43594         * modules/array-mergesort-tests: New file.
43595         * tests/test-array-mergesort.c: New file.
43596
43597         New module 'array-mergesort'.
43598         * modules/array-mergesort: New file.
43599         * lib/array-mergesort.h: New file.
43600
43601 2009-02-15  Bruno Haible  <bruno@clisp.org>
43602
43603         Fix 2009-02-07 commit.
43604         * lib/gen-uni-tables.c (output_predicate, output_category,
43605         output_combclass, output_bidi_category, output_decimal_digit,
43606         output_digit, output_numeric, output_mirror, output_scripts,
43607         output_ident_category, output_simple_mapping): Fix format directives.
43608         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
43609
43610 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
43611
43612         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
43613         fixes are available from IBM.
43614
43615 2009-02-13  Jim Meyering  <meyering@redhat.com>
43616
43617         fts: arrange not to stat non-directories in more cases
43618         This makes GNU find (when it doesn't need to stat each file)
43619         *much* more efficient at traversing reiserfs file systems.
43620         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
43621         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
43622         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
43623         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
43624         (leaf_optimization_applies): New function.
43625         (LCO_hash, LCO_compare): New helper functions.
43626         (link_count_optimize_ok): New function.
43627         (fts_stat): Initialize new member (if dir).
43628         (fts_read): Decrement parent's fts_n_dirs_remaining count if
43629         we've just stat'ed a directory.  Skip the stat call when possible.
43630         ---
43631         Note this AFS-related exchange:
43632         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
43633         and note find's pioctl call in find/fstype.c.
43634         But that is necessary only if you want to enable the
43635         optimization for AFS, and for now, I don't.
43636
43637         fts: move a function definition "up" (no semantic change)
43638         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
43639         "up" to precede upcoming use of a related function.
43640
43641 2009-02-11  Jim Meyering  <meyering@redhat.com>
43642
43643         fts: correct internal computation of nlinks (optimization-related)
43644         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
43645         whether the current entry is a directory, so don't test it.
43646
43647 2009-02-10  Bruno Haible  <bruno@clisp.org>
43648
43649         Tests for module 'uniwbrk/ulc-wordbreaks'.
43650         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
43651         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
43652         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
43653
43654         Tests for module 'uniwbrk/u32-wordbreaks'.
43655         * modules/uniwbrk/u32-wordbreaks-tests: New file.
43656         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
43657
43658         Tests for module 'uniwbrk/u16-wordbreaks'.
43659         * modules/uniwbrk/u16-wordbreaks-tests: New file.
43660         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
43661
43662         Tests for module 'uniwbrk/u8-wordbreaks'.
43663         * modules/uniwbrk/u8-wordbreaks-tests: New file.
43664         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
43665
43666 2009-02-10  Bruno Haible  <bruno@clisp.org>
43667
43668         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
43669         property.
43670         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
43671         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
43672         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
43673
43674 2009-02-10  Simon Josefsson  <simon@josefsson.org>
43675
43676         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
43677         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
43678
43679 2009-02-10  Bruno Haible  <bruno@clisp.org>
43680
43681         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
43682         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
43683         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
43684         * lib/unilbrk/u8-possible-linebreaks.c: Update.
43685         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
43686         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
43687
43688 2009-02-09  Simon Josefsson  <simon@josefsson.org>
43689
43690         * lib/sockets.h (gl_fd_to_handle): New function.
43691
43692         * tests/test-sockets.c: Call gl_fd_to_handle.
43693
43694 2009-02-09  Bruno Haible  <bruno@clisp.org>
43695
43696         * doc/havelib.texi: Document the conventions on bi-arch systems.
43697
43698 2009-02-08  Bruno Haible  <bruno@clisp.org>
43699
43700         Document the AC_LIB_LINKFLAGS macro.
43701         * doc/havelib.texi: New file, mostly written on 2005-05-24.
43702         * doc/gnulib.texi: Include it.
43703
43704 2009-02-08  Bruno Haible  <bruno@clisp.org>
43705
43706         Fix wrong order of sections, compared to TOC.
43707         * doc/gnulib.texi: Include relocatable-maint.texi after the
43708         "Regular expressions" node, not before.
43709
43710 2009-02-08  Bruno Haible  <bruno@clisp.org>
43711
43712         Tests for module 'unicase/totitle'.
43713         * modules/unicase/totitle-tests: New file.
43714
43715         Tests for module 'unicase/tolower'.
43716         * modules/unicase/tolower-tests: New file.
43717
43718         Tests for module 'unicase/toupper'.
43719         * modules/unicase/toupper-tests: New file.
43720         * tests/unicase/test-mapping-part1.h: New file.
43721         * tests/unicase/test-mapping-part2.h: New file.
43722
43723         New module 'unicase/totitle'.
43724         * modules/unicase/totitle: New file.
43725         * lib/unicase/totitle.c: New file.
43726
43727         New module 'unicase/tolower'.
43728         * modules/unicase/tolower: New file.
43729         * lib/unicase/tolower.c: New file.
43730
43731         New module 'unicase/toupper'.
43732         * modules/unicase/toupper: New file.
43733         * lib/unicase/toupper.c: New file.
43734         * lib/unicase/simple-mapping.h: New file.
43735
43736         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
43737         (mapping_table): New structure.
43738         (output_simple_mapping): New function.
43739         (main): Invoke output_simple_mapping_test and output_simple_mapping.
43740         * modules/gen-uni-tables (Description): Update.
43741         * lib/unicase/toupper.h: New file, automatically generated by
43742         gen-uni-tables.
43743         * lib/unicase/tolower.h: New file, automatically generated by
43744         gen-uni-tables.
43745         * lib/unicase/totitle.h: New file, automatically generated by
43746         gen-uni-tables.
43747         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
43748         gen-uni-tables.
43749         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
43750         gen-uni-tables.
43751         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
43752         gen-uni-tables.
43753
43754         New module 'unicase/base'.
43755         * modules/unicase/base: New file.
43756         * lib/unicase.h: New file.
43757
43758 2009-02-08  Bruno Haible  <bruno@clisp.org>
43759
43760         New module 'uniwbrk/ulc-wordbreaks'.
43761         * modules/uniwbrk/ulc-wordbreaks: New file.
43762         * lib/uniwbrk/ulc-wordbreaks.c: New file.
43763
43764         New module 'uniwbrk/u32-wordbreaks'.
43765         * modules/uniwbrk/u32-wordbreaks: New file.
43766         * lib/uniwbrk/u32-wordbreaks.c: New file.
43767
43768         New module 'uniwbrk/u16-wordbreaks'.
43769         * modules/uniwbrk/u16-wordbreaks: New file.
43770         * lib/uniwbrk/u16-wordbreaks.c: New file.
43771
43772         New module 'uniwbrk/u8-wordbreaks'.
43773         * modules/uniwbrk/u8-wordbreaks: New file.
43774         * lib/uniwbrk/u8-wordbreaks.c: New file.
43775         * lib/uniwbrk/u-wordbreaks.h: New file.
43776
43777         New module 'uniwbrk/table'.
43778         * modules/uniwbrk/table: New file.
43779         * lib/uniwbrk/wbrktable.h: New file.
43780         * lib/uniwbrk/wbrktable.c: New file.
43781
43782         New module 'uniwbrk/wordbreak-property'.
43783         * modules/uniwbrk/wordbreak-property: New file.
43784         * lib/uniwbrk/wordbreak-property.c: New file.
43785
43786         * lib/gen-uni-tables.c (WBP_*): New enum items.
43787         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
43788         (unicode_org_wbp): New variable.
43789         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
43790         New functions.
43791         (wbp_table): New structure.
43792         (output_wbp, output_wbrk_tables): New functions.
43793         (main): Accept additional argument. Invoke fill_org_wbp,
43794         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
43795         output_wbrk_tables.
43796         * modules/gen-uni-tables (Description): Update.
43797         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
43798         gen-uni-tables.
43799
43800         New module 'uniwbrk/base'.
43801         * modules/uniwbrk/base: New file.
43802         * lib/uniwbrk.h: New file.
43803
43804 2009-02-08  Bruno Haible  <bruno@clisp.org>
43805
43806         Update to Unicode 5.1.0.
43807         * lib/gen-uni-tables.c (is_property_alphabetic): Include
43808         U+2185..U+2188.
43809         (is_property_default_ignorable_code_point): Don't include characters
43810         of category Cc or Cs and not-a-characters.
43811         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
43812         U+0D79, U+109E, U+109F, U+A60C.
43813         * lib/unictype/bidi_of.h: Regenerated.
43814         * lib/unictype/blocks.h: Regenerated.
43815         * lib/unictype/categ_C.h: Regenerated.
43816         * lib/unictype/categ_Cf.h: Regenerated.
43817         * lib/unictype/categ_Cn.h: Regenerated.
43818         * lib/unictype/categ_L.h: Regenerated.
43819         * lib/unictype/categ_Ll.h: Regenerated.
43820         * lib/unictype/categ_Lm.h: Regenerated.
43821         * lib/unictype/categ_Lo.h: Regenerated.
43822         * lib/unictype/categ_Lu.h: Regenerated.
43823         * lib/unictype/categ_M.h: Regenerated.
43824         * lib/unictype/categ_Mc.h: Regenerated.
43825         * lib/unictype/categ_Me.h: Regenerated.
43826         * lib/unictype/categ_Mn.h: Regenerated.
43827         * lib/unictype/categ_N.h: Regenerated.
43828         * lib/unictype/categ_Nd.h: Regenerated.
43829         * lib/unictype/categ_Nl.h: Regenerated.
43830         * lib/unictype/categ_No.h: Regenerated.
43831         * lib/unictype/categ_P.h: Regenerated.
43832         * lib/unictype/categ_Pd.h: Regenerated.
43833         * lib/unictype/categ_Pe.h: Regenerated.
43834         * lib/unictype/categ_Pf.h: Regenerated.
43835         * lib/unictype/categ_Pi.h: Regenerated.
43836         * lib/unictype/categ_Po.h: Regenerated.
43837         * lib/unictype/categ_Ps.h: Regenerated.
43838         * lib/unictype/categ_S.h: Regenerated.
43839         * lib/unictype/categ_Sk.h: Regenerated.
43840         * lib/unictype/categ_Sm.h: Regenerated.
43841         * lib/unictype/categ_So.h: Regenerated.
43842         * lib/unictype/categ_of.h: Regenerated.
43843         * lib/unictype/combining.h: Regenerated.
43844         * lib/unictype/ctype_alnum.h: Regenerated.
43845         * lib/unictype/ctype_alpha.h: Regenerated.
43846         * lib/unictype/ctype_graph.h: Regenerated.
43847         * lib/unictype/ctype_lower.h: Regenerated.
43848         * lib/unictype/ctype_print.h: Regenerated.
43849         * lib/unictype/ctype_punct.h: Regenerated.
43850         * lib/unictype/ctype_upper.h: Regenerated.
43851         * lib/unictype/decdigit.h: Regenerated.
43852         * lib/unictype/digit.h: Regenerated.
43853         * lib/unictype/mirror.h: Regenerated.
43854         * lib/unictype/numeric.h: Regenerated.
43855         * lib/unictype/pr_alphabetic.h: Regenerated.
43856         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
43857         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
43858         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
43859         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
43860         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
43861         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
43862         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
43863         * lib/unictype/pr_combining.h: Regenerated.
43864         * lib/unictype/pr_dash.h: Regenerated.
43865         * lib/unictype/pr_decimal_digit.h: Regenerated.
43866         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
43867         * lib/unictype/pr_deprecated.h: Regenerated.
43868         * lib/unictype/pr_diacritic.h: Regenerated.
43869         * lib/unictype/pr_extender.h: Regenerated.
43870         * lib/unictype/pr_format_control.h: Regenerated.
43871         * lib/unictype/pr_grapheme_base.h: Regenerated.
43872         * lib/unictype/pr_grapheme_extend.h: Regenerated.
43873         * lib/unictype/pr_grapheme_link.h: Regenerated.
43874         * lib/unictype/pr_id_continue.h: Regenerated.
43875         * lib/unictype/pr_id_start.h: Regenerated.
43876         * lib/unictype/pr_ideographic.h: Regenerated.
43877         * lib/unictype/pr_ignorable_control.h: Regenerated.
43878         * lib/unictype/pr_lowercase.h: Regenerated.
43879         * lib/unictype/pr_math.h: Regenerated.
43880         * lib/unictype/pr_numeric.h: Regenerated.
43881         * lib/unictype/pr_other_alphabetic.h: Regenerated.
43882         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
43883         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
43884         * lib/unictype/pr_other_id_continue.h: Regenerated.
43885         * lib/unictype/pr_other_lowercase.h: Regenerated.
43886         * lib/unictype/pr_other_math.h: Regenerated.
43887         * lib/unictype/pr_punctuation.h: Regenerated.
43888         * lib/unictype/pr_sentence_terminal.h: Regenerated.
43889         * lib/unictype/pr_soft_dotted.h: Regenerated.
43890         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
43891         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
43892         * lib/unictype/pr_unified_ideograph.h: Regenerated.
43893         * lib/unictype/pr_uppercase.h: Regenerated.
43894         * lib/unictype/pr_xid_continue.h: Regenerated.
43895         * lib/unictype/pr_xid_start.h: Regenerated.
43896         * lib/unictype/pr_zero_width.h: Regenerated.
43897         * lib/unictype/scripts.h: Regenerated.
43898         * lib/unictype/scripts_byname.gperf: Regenerated.
43899         * lib/unictype/sy_java_ident.h: Regenerated.
43900         * lib/unilbrk/lbrkprop1.h: Regenerated.
43901         * lib/unilbrk/lbrkprop2.h: Regenerated.
43902         * tests/unictype/test-categ_C.c: Regenerated.
43903         * tests/unictype/test-categ_Cf.c: Regenerated.
43904         * tests/unictype/test-categ_Cn.c: Regenerated.
43905         * tests/unictype/test-categ_L.c: Regenerated.
43906         * tests/unictype/test-categ_Ll.c: Regenerated.
43907         * tests/unictype/test-categ_Lm.c: Regenerated.
43908         * tests/unictype/test-categ_Lo.c: Regenerated.
43909         * tests/unictype/test-categ_Lu.c: Regenerated.
43910         * tests/unictype/test-categ_M.c: Regenerated.
43911         * tests/unictype/test-categ_Mc.c: Regenerated.
43912         * tests/unictype/test-categ_Me.c: Regenerated.
43913         * tests/unictype/test-categ_Mn.c: Regenerated.
43914         * tests/unictype/test-categ_N.c: Regenerated.
43915         * tests/unictype/test-categ_Nd.c: Regenerated.
43916         * tests/unictype/test-categ_Nl.c: Regenerated.
43917         * tests/unictype/test-categ_No.c: Regenerated.
43918         * tests/unictype/test-categ_P.c: Regenerated.
43919         * tests/unictype/test-categ_Pd.c: Regenerated.
43920         * tests/unictype/test-categ_Pe.c: Regenerated.
43921         * tests/unictype/test-categ_Pf.c: Regenerated.
43922         * tests/unictype/test-categ_Pi.c: Regenerated.
43923         * tests/unictype/test-categ_Po.c: Regenerated.
43924         * tests/unictype/test-categ_Ps.c: Regenerated.
43925         * tests/unictype/test-categ_S.c: Regenerated.
43926         * tests/unictype/test-categ_Sk.c: Regenerated.
43927         * tests/unictype/test-categ_Sm.c: Regenerated.
43928         * tests/unictype/test-categ_So.c: Regenerated.
43929         * tests/unictype/test-ctype_alnum.c: Regenerated.
43930         * tests/unictype/test-ctype_alpha.c: Regenerated.
43931         * tests/unictype/test-ctype_graph.c: Regenerated.
43932         * tests/unictype/test-ctype_lower.c: Regenerated.
43933         * tests/unictype/test-ctype_print.c: Regenerated.
43934         * tests/unictype/test-ctype_punct.c: Regenerated.
43935         * tests/unictype/test-ctype_upper.c: Regenerated.
43936         * tests/unictype/test-decdigit.h: Regenerated.
43937         * tests/unictype/test-digit.h: Regenerated.
43938         * tests/unictype/test-numeric.h: Regenerated.
43939         * tests/unictype/test-pr_alphabetic.c: Regenerated.
43940         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
43941         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
43942         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
43943         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
43944         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
43945         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
43946         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
43947         * tests/unictype/test-pr_combining.c: Regenerated.
43948         * tests/unictype/test-pr_dash.c: Regenerated.
43949         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
43950         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
43951         * tests/unictype/test-pr_deprecated.c: Regenerated.
43952         * tests/unictype/test-pr_diacritic.c: Regenerated.
43953         * tests/unictype/test-pr_extender.c: Regenerated.
43954         * tests/unictype/test-pr_format_control.c: Regenerated.
43955         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
43956         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
43957         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
43958         * tests/unictype/test-pr_id_continue.c: Regenerated.
43959         * tests/unictype/test-pr_id_start.c: Regenerated.
43960         * tests/unictype/test-pr_ideographic.c: Regenerated.
43961         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
43962         * tests/unictype/test-pr_lowercase.c: Regenerated.
43963         * tests/unictype/test-pr_math.c: Regenerated.
43964         * tests/unictype/test-pr_numeric.c: Regenerated.
43965         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
43966         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
43967         Regenerated.
43968         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
43969         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
43970         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
43971         * tests/unictype/test-pr_other_math.c: Regenerated.
43972         * tests/unictype/test-pr_punctuation.c: Regenerated.
43973         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
43974         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
43975         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
43976         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
43977         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
43978         * tests/unictype/test-pr_uppercase.c: Regenerated.
43979         * tests/unictype/test-pr_xid_continue.c: Regenerated.
43980         * tests/unictype/test-pr_xid_start.c: Regenerated.
43981         * tests/unictype/test-pr_zero_width.c: Regenerated.
43982
43983         Update to Unicode 5.1.0.
43984         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
43985         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
43986         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
43987         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
43988         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
43989         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
43990         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
43991         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
43992         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
43993         (nonspacing_table_ind): Update.
43994         * tests/uniwidth/test-uc_width2.sh: Update expected result.
43995
43996         Update to Unicode 5.1.0.
43997         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
43998         code transform.
43999         * lib/uniname/uniname.c (unicode_character_name,
44000         unicode_name_character): Add the range 0x1Fxxx to the code transform.
44001         * lib/uniname/uninames.h: Regenerated.
44002         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
44003
44004 2009-02-07  Bruno Haible  <bruno@clisp.org>
44005
44006         Merge gen-ctype and gen-lbrk into a single program.
44007         * lib/gen-uni-tables.c: New file, incorporating
44008         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
44009         Add directory prefixes to the names of the generated files.
44010         * lib/unictype/gen-ctype.c: Remove file.
44011         * lib/unilbrk/gen-lbrk.c: Remove file.
44012         * modules/gen-uni-tables: New file.
44013         * modules/unictype/gen-ctype: Remove file.
44014         * modules/unilbrk/gen-lbrk: Remove file.
44015
44016 2009-02-07  Bruno Haible  <bruno@clisp.org>
44017
44018         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
44019
44020         New module 'unistr/u32-strcoll'.
44021         * modules/unistr/u32-strcoll: New file.
44022         * lib/unistr/u32-strcoll.c: New file.
44023
44024         New module 'unistr/u16-strcoll'.
44025         * modules/unistr/u16-strcoll: New file.
44026         * lib/unistr/u16-strcoll.c: New file.
44027
44028         New module 'unistr/u8-strcoll'.
44029         * modules/unistr/u8-strcoll: New file.
44030         * lib/unistr/u8-strcoll.c: New file.
44031         * lib/unistr/u-strcoll.h: New file.
44032
44033 2009-02-07  Bruno Haible  <bruno@clisp.org>
44034
44035         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
44036         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44037         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44038         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
44039         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
44040         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
44041
44042 2009-02-07  Bruno Haible  <bruno@clisp.org>
44043
44044         Make 64-bit clean.
44045         * lib/unictype/gen-ctype.c (output_predicate, output_category,
44046         output_combclass, output_bidi_category, output_decimal_digit,
44047         output_digit, output_numeric, output_mirror, output_scripts,
44048         output_ident_category): Use proper width specifier in format strings.
44049
44050 2009-02-07  Bruno Haible  <bruno@clisp.org>
44051
44052         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
44053         failure behaviour.
44054
44055 2009-02-07  Jim Meyering  <meyering@redhat.com>
44056
44057         regex: avoid compilation failure with upcoming gcc-4.4
44058         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
44059         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
44060         "... error: integer overflow in preprocessor expression".
44061
44062 2009-02-05  Ben Pfaff  <blp@gnu.org>
44063
44064         Fix link errors on Windows when close module is used.
44065         * modules/close: Add $(LIB_CLOSE) to Link section.
44066         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
44067         $(LIB_CLOSE) on Windows.
44068
44069 2009-02-05  Jim Meyering  <meyering@redhat.com>
44070
44071         still avoid unused-parameter warnings, but do it cleanly
44072         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
44073         (get_fs_usage): Cast to void instead.
44074         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
44075         (dev_from_mount_options, read_file_system_list): Cast to void.
44076         Prompted by Bruno Haible.
44077
44078 2009-02-04  Jim Meyering  <meyering@redhat.com>
44079
44080         fsusage.c: correct copyright year
44081         * lib/fsusage.c: Reflect year in which the change is pushed into
44082
44083         avoid misc. warnings
44084         * lib/fsusage.c (UNUSED_PARAM): Define.
44085         (get_fs_usage): Mark parameter "disk" as unused.
44086         * lib/getugroups.c (getgrent): Use "void" in prototype.
44087         * lib/mountlist.c: Mark unused parameters.
44088         (read_file_system_list): Declare a local with "const".
44089         * lib/nanosleep.c (getnow): Declare static.
44090         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
44091
44092         dirfd: set errno upon failure
44093         * lib/dirfd.c: Include <errno.h>.
44094         Set errno to ENOTSUP when returning -1.
44095         * modules/dirfd (Depends-on): Add errno.
44096         Suggested by John Kodis <kodis@comcast.net>.
44097
44098 2009-02-01  Bruno Haible  <bruno@clisp.org>
44099
44100         Don't assume sizeof (long) >= sizeof (void *).
44101         * lib/memcmp.c: Include stdint.h.
44102         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
44103         srcp2 to 'const byte *'.
44104         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
44105         types to uintptr_t.
44106         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
44107         * modules/memcmp (Depends-on): Add stdint.
44108         Reported by Ozkan Sezer <sezeroz@gmail.com>.
44109
44110 2009-01-30  Eric Blake  <ebb9@byu.net>
44111
44112         fix more require-before-expand issues
44113         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
44114         expand, AC_PROG_AWK.
44115         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
44116
44117 2009-01-28  Eric Blake  <ebb9@byu.net>
44118
44119         version-etc: use consistent URL formatting
44120         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
44121         Improve formatting.  Use fputs for string without %.
44122
44123 2009-01-28  Jim Meyering  <meyering@redhat.com>
44124
44125         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
44126         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
44127         "underquoted definition of NAME" from autoconf-2.59.
44128
44129 2009-01-28  Bruno Haible  <bruno@clisp.org>
44130
44131         * doc/gnulib.texi: Add "Obsolete modules" to index.
44132
44133 2009-01-28  Jim Meyering  <meyering@redhat.com>
44134
44135         useless-if-before-free: recognize more variants
44136         * build-aux/useless-if-before-free: Also recognize e.g.,
44137         if (NULL != p) free (p);
44138
44139 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
44140
44141         test-getaddrinfo: skip (don't fail) this test when there's no network
44142         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
44143         on the presumption that it means you lack network access.
44144
44145 2009-01-26  Jim Meyering  <meyering@redhat.com>
44146
44147         fflush: avoid warnings on modern systems
44148         * lib/fflush.c (rpl_fflush): Move declarations of locals,
44149         pos and result, into scopes where they're used.
44150
44151 2009-01-26  Eric Blake  <ebb9@byu.net>
44152
44153         Silence warning reintroduced by recent extensions patch.
44154         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
44155         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
44156         autoconf.
44157
44158         Backport improved autoconf semantics of AC_DEFUN_ONCE.
44159         * m4/00gnulib.m4: New file.
44160         * gnulib-tool (func_get_filelist): Always use it.
44161         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
44162         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
44163
44164 2009-01-25  Bruno Haible  <bruno@clisp.org>
44165
44166         Make test-quotearg work on MacOS X and AIX.
44167         * tests/test-quotearg.sh: New file.
44168         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
44169         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
44170         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
44171         include <libintl.h>.
44172         (fake_locale): Remove variable.
44173         (gettext, dgettext, dcgettext): Remove functions.
44174         (main): Instead of setting a fake locale, set a real locale. Call
44175         textdomain and bindtextdomain.
44176         * modules/quotearg-tests (Files): Add the new files.
44177         (Depends-on): Add gettext, setenv, unsetenv.
44178         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44179         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
44180         Augment TESTS_ENVIRONMENT.
44181
44182 2009-01-25  Bruno Haible  <bruno@clisp.org>
44183
44184         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
44185         fr_FR.ISO8859-1 locale on MacOS X.
44186         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
44187         ja_JP.eucJP locale on MacOS X.
44188         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
44189         zh_CN.GB18030 locale on MacOS X.
44190
44191 2009-01-25  Bruno Haible  <bruno@clisp.org>
44192
44193         Avoid link errors on MacOS X 10.3.
44194         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
44195         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44196
44197 2009-01-25  Bruno Haible  <bruno@clisp.org>
44198
44199         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44200         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
44201         * modules/pipe (Files): Remove m4/posix_spawn.m4.
44202         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44203         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
44204         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44205         posix_spawnattr_init, posix_spawnattr_setsigmask,
44206         posix_spawnattr_setflags, posix_spawnattr_destroy.
44207
44208         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44209         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
44210         * modules/execute (Files): Remove m4/posix_spawn.m4.
44211         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44212         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44213         posix_spawnattr_init, posix_spawnattr_setsigmask,
44214         posix_spawnattr_setflags, posix_spawnattr_destroy.
44215
44216 2009-01-25  Bruno Haible  <bruno@clisp.org>
44217
44218         * lib/glthread/threadlib.c: Include <stdlib.h>.
44219
44220 2009-01-25  Bruno Haible  <bruno@clisp.org>
44221
44222         * lib/glthread/threadlib.c (dummy): New declaration.
44223
44224 2009-01-25  Bruno Haible  <bruno@clisp.org>
44225
44226         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
44227         multibyte characters also for the GB18030 encoding. Don't crash when
44228         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
44229
44230 2009-01-25  Bruno Haible  <bruno@clisp.org>
44231
44232         Avoid redefining 'struct random_data' on OSF/1 5.1.
44233         * lib/stdlib.in.h: Include <random.h> if it exists.
44234         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
44235         HAVE_RANDOM_H. Include <random.h> when testing whether
44236         'struct random_data' exists.
44237         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
44238
44239 2009-01-25  Bruno Haible  <bruno@clisp.org>
44240
44241         Don't install charset.alias on MacOS X >= 10.3.
44242         * lib/localcharset.c (DARWIN7): New macro.
44243         (get_charset_aliases): Hardcode the result for Darwin7.
44244         * modules/localcharset (install-exec-local): Don't install
44245         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
44246
44247 2009-01-25  Bruno Haible  <bruno@clisp.org>
44248
44249         Don't install charset.alias on mingw and Cygwin.
44250         * modules/localcharset (install-exec-local): Don't install
44251         charset.alias on mingw and Cygwin, if the file does not yet exist.
44252         The result for these platforms is hardcoded in localcharset.c.
44253
44254 2009-01-25  Bruno Haible  <bruno@clisp.org>
44255
44256         Make it possible again to use AC_GNU_SOURCE together with gnulib.
44257         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
44258         before requiring AC_USE_SYSTEM_EXTENSIONS.
44259
44260 2009-01-25  Jim Meyering  <meyering@redhat.com>
44261
44262         c-strtod: avoid warnings
44263         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
44264         "assignment discards qualifiers from pointer target type" warnings.
44265
44266 2009-01-24  Bruno Haible  <bruno@clisp.org>
44267
44268         Add support for non-UTF-8 locales on MacOS X.
44269         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
44270         canonical encodings. For Darwin 7 and newer, don't map traditional
44271         encodings to UTF-8.
44272         Reported by Vincent Lefevre <vincent@vinc17.org>
44273         at <http://savannah.gnu.org/bugs/?25235>.
44274
44275 2009-01-24  Bruno Haible  <bruno@clisp.org>
44276
44277         * doc/gnulib.texi (Obsolete modules): New section.
44278         Reported by Mike Frysinger <vapier@gentoo.org>.
44279
44280 2009-01-24  Bruno Haible  <bruno@clisp.org>
44281
44282         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
44283         (%.dvi): New rule.
44284
44285 2009-01-24  Bruno Haible  <bruno@clisp.org>
44286
44287         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
44288         Reported by Eric Blake.
44289
44290 2009-01-24  Bruno Haible  <bruno@clisp.org>
44291
44292         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
44293         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
44294         Reported by Gary V. Vaughan <gary@gnu.org>.
44295
44296 2009-01-24  Bruno Haible  <bruno@clisp.org>
44297
44298         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
44299
44300 2009-01-23  Bruno Haible  <bruno@clisp.org>
44301
44302         Make c-strtod, c-strtold usable in libraries.
44303         * lib/c-strtod.c: Include string.h instead of xalloc.h.
44304         (C_STRTOD): Call strdup instead of xstrdup.
44305         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
44306         * modules/c-strtold (Depends-on): Likewise.
44307         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
44308         * NEWS: Mention the change.
44309         Reported by Michael Gold <mgold@ncf.ca>.
44310
44311 2009-01-23  Jim Meyering  <meyering@redhat.com>
44312
44313         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
44314         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
44315         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
44316
44317 2009-01-23  Simon Josefsson  <simon@josefsson.org>
44318
44319         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
44320         GNU CoreUtils.
44321         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
44322         * modules/version-etc (Description): Update.
44323
44324 2009-01-22  Bruno Haible  <bruno@clisp.org>
44325
44326         Cache the C locale object.
44327         * lib/c-strtod.c (c_locale_cache): New variable.
44328         (c_locale): New function.
44329         (C_STRTOD): Use it, and don't call freelocale.
44330         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
44331         Suggested by Paolo Bonzini.
44332
44333 2009-01-21  Bruno Haible  <bruno@clisp.org>
44334
44335         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
44336         conditions other than overflow.
44337
44338 2009-01-21  Bruno Haible  <bruno@clisp.org>
44339
44340         * lib/c-strtod.c: Include errno.h.
44341         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
44342         value from STRTOD_L and STRTOD.
44343
44344 2009-01-21  Bruno Haible  <bruno@clisp.org>
44345         and Jim Meyering  <meyering@redhat.com>
44346
44347         nanosleep: skip configure test (fail it) for apple universal builds
44348         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
44349         universal builds, assume that nanosleep does not work.
44350         * modules/nanosleep (Depends-on): Add multiarch.
44351
44352         mktime: skip configure test (fail it) for apple universal builds
44353         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
44354         universal builds, assume that mktime does not work.
44355         * modules/mktime (Depends-on): Add multiarch.
44356
44357 2009-01-21  Eric Blake  <ebb9@byu.net>
44358
44359         multiarch: avoid expand-before-require warning
44360         * modules/multiarch (configure.ac): Require, rather than expand,
44361         gl_MULTIARCH.
44362         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
44363         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
44364         enforce that all clients require it.  Partial reversion of
44365         2008-12-29 patch.
44366
44367         error: avoid expand-before-require warning
44368         * modules/errno (configure.ac): Require, rather than expand,
44369         gl_HEADER_ERRNO_H.
44370         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
44371         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
44372         enforce that all clients require it.
44373
44374         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
44375         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
44376         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
44377         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
44378
44379 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
44380
44381         Revert:
44382         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44383
44384         regex: do not depend on obsolete modules.
44385         * modules/regex: Remove memcmp and memmove.
44386
44387 2009-01-20  Bruno Haible  <bruno@clisp.org>
44388
44389         Make the 'link' module link on Windows NT 4.
44390         * lib/link.c (_WIN32_WINNT): Don't define.
44391         (CreateHardLinkFuncType): New type.
44392         (CreateHardLinkFunc, initialized): New variables.
44393         (initialize): New function.
44394         (link): Invoke CreateHardLink indirectly through the function pointer.
44395
44396 2009-01-20  Bruno Haible  <bruno@clisp.org>
44397
44398         Fix compilation failure on mingw.
44399         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
44400
44401 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
44402
44403         * doc/c-strtod.texi: Mention a couple of restrictions.
44404
44405 2009-01-20  Jim Meyering  <meyering@redhat.com>
44406
44407         gettimeofday: move more declarations out of functions
44408         * lib/gettimeofday.c: Move extern declarations of tzset and
44409         gmtime out of containing functions.  Prompted by Bruno Haible.
44410
44411 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44412
44413         regex: do not depend on obsolete modules.
44414         * modules/regex: Remove memcmp and memmove.
44415
44416 2009-01-19  Bruno Haible  <bruno@clisp.org>
44417
44418         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44419         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
44420         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44421         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
44422         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
44423
44424 2009-01-19  Bruno Haible  <bruno@clisp.org>
44425
44426         * tests/test-link.c: Include <errno.h>.
44427         (main): Exit with code 77 when a hard link cannot be created due to
44428         the file system.
44429         * tests/test-link.sh: Skip test when a hard link cannot be created due
44430         to the file system.
44431         Suggested by Eric Blake.
44432
44433 2009-01-19  Martin Lambers  <marlam@marlam.de>
44434
44435         * modules/link-tests: New file.
44436         * tests/test-link.sh: New file.
44437         * tests/test-link.c: New file.
44438
44439 2009-01-19  Eric Blake  <ebb9@byu.net>
44440
44441         doc: mention another function added in cygwin 1.7.0
44442         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
44443         Another new function in cygwin 1.7.
44444
44445 2009-01-19  Bruno Haible  <bruno@clisp.org>
44446
44447         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44448         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
44449         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
44450         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44451         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44452         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
44453         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44454         * m4/md4.m4 (gl_MD4): Likewise.
44455         * m4/md5.m4 (gl_MD5): Likewise.
44456         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
44457         * m4/sha1.m4 (gl_SHA1): Likewise.
44458         * m4/sha256.m4 (gl_SHA256): Likewise.
44459         * m4/sha512.m4 (gl_SHA512): Likewise.
44460
44461 2009-01-19  Bruno Haible  <bruno@clisp.org>
44462
44463         * modules/uniname/uniname-tests (Depends-on): Add progname.
44464         * tests/uniname/test-uninames.c: Include progname.h.
44465         (main): Call set_program_name.
44466
44467         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
44468         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
44469         (main): Call set_program_name.
44470
44471         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
44472         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
44473         (main): Call set_program_name.
44474
44475         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
44476         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
44477         (main): Call set_program_name.
44478
44479         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
44480         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
44481         (main): Call set_program_name.
44482
44483         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
44484         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
44485         (main): Call set_program_name.
44486
44487         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
44488         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
44489         (main): Call set_program_name.
44490
44491         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
44492         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
44493         (main): Call set_program_name.
44494
44495         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
44496         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
44497         (main): Call set_program_name.
44498
44499 2009-01-19  Eric Blake  <ebb9@byu.net>
44500
44501         test-unistd: test previous patch
44502         * tests/test-unistd.c: Test *_FILENO macros.
44503
44504         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
44505         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44506         Guarantee a definition.
44507         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
44508         * modules/unistd-safer (Depends-on): Add dependency on unistd.
44509         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
44510         * lib/dup-safer.c (STDERR_FILENO): Likewise.
44511         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44512         Likewise.
44513         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
44514         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
44515         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44516         Likewise.
44517         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
44518         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
44519         (STDERR_FILENO): Likewise.
44520         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
44521         (STDERR_FILENO): Likewise.
44522         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
44523         (STDERR_FILENO): Likewise.
44524         Reported by Elbert Pol.
44525
44526 2009-01-19  Eric Blake  <ebb9@byu.net>
44527
44528         doc: mention more functions added in cygwin 1.7.0
44529         * doc/posix-functions/abort.texi (abort): Update wording related
44530         to cygwin.
44531         * doc/posix-functions/daylight.texi (daylight): Likewise.
44532         * doc/posix-functions/optarg.texi (optarg): Likewise.
44533         * doc/posix-functions/optarg.texi (opterr): Likewise.
44534         * doc/posix-functions/optarg.texi (optind): Likewise.
44535         * doc/posix-functions/optarg.texi (optopt): Likewise.
44536         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
44537         worked in 1.5.x, and was withdrawn in 1.7.
44538         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
44539         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
44540         cygwin versions.
44541         * doc/posix-functions/perror.texi (perror): Likewise.
44542         * doc/posix-functions/printf.texi (printf): Likewise.
44543         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
44544         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
44545         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44546         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44547         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
44548         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
44549         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44550         Likewise.
44551         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44552         Likewise.
44553         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
44554         this function.
44555         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
44556         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
44557         Likewise.
44558         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
44559         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
44560         * doc/posix-functions/confstr.texi (confstr): Likewise.
44561         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
44562         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
44563         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
44564         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
44565         * doc/posix-functions/fputws.texi (fputws): Likewise.
44566         * doc/posix-functions/fwide.texi (fwide): Likewise.
44567         * doc/posix-functions/getwc.texi (getwc): Likewise.
44568         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
44569         * doc/posix-functions/putwc.texi (putwc): Likewise.
44570         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
44571         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
44572         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
44573         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
44574         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
44575         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
44576         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
44577         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
44578         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
44579         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
44580         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
44581
44582 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44583
44584         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
44585         * lib/ioctl.c: Include <sys/ioctl.h>.
44586
44587 2009-01-19  Simon Josefsson  <simon@josefsson.org>
44588
44589         * modules/getdate-tests (Depends-on): Add progname.
44590         * tests/test-getdate.c: Use progname module, to avoid link errors
44591         on non-glibc systems.
44592
44593 2009-01-18  Simon Josefsson  <simon@josefsson.org>
44594
44595         * modules/filenamecat-tests (Depends-on): Add progname.
44596         * modules/fstrcmp-tests (Depends-on): Likewise.
44597
44598         * tests/test-filenamecat.c: Use progname module, to avoid link
44599         errors on non-glibc systems.
44600         * tests/test-fstrcmp.c: Likewise.
44601
44602 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44603
44604         gettimeofday: avoid warning: nested extern declaration of 'localtime'
44605         * lib/gettimeofday.c: Move extern declaration out of function.
44606
44607 2009-01-18  Bruno Haible  <bruno@clisp.org>
44608
44609         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
44610         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
44611         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
44612
44613 2009-01-18  Bruno Haible  <bruno@clisp.org>
44614
44615         * lib/strftime.c (MEMPCPY): Remove unused macro.
44616         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
44617
44618 2009-01-18  Martin Lambers  <marlam@marlam.de>
44619
44620         New module 'link'.
44621         * lib/unistd.in.h (link): New declaration.
44622         * lib/link.c: New file.
44623         * m4/link.m4: New file.
44624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
44625         HAVE_LINK.
44626         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
44627         * modules/link: New file.
44628         * doc/posix-functions/link.texi: Mention the new module.
44629
44630 2009-01-18  Bruno Haible  <bruno@clisp.org>
44631
44632         * tests/test-avltree_list.c (main): Call set_program_name.
44633         * tests/test-avltree_oset.c (main): Likewise.
44634         * tests/test-obstack-printf.c: Include progname.h.
44635         (main): Call set_program_name.
44636         * tests/test-quotearg.c: Include progname.h.
44637         (main): Call set_program_name.
44638         * tests/test-xmemdup0.c: Include progname.h.
44639         (main): Call set_program_name.
44640
44641 2009-01-18  Bruno Haible  <bruno@clisp.org>
44642
44643         New module 'alphasort'.
44644         * lib/dirent.in.h (alphasort): New declaration.
44645         * lib/alphasort.c: New file, from glibc with modifications.
44646         * m4/alphasort.m4: New file.
44647         * modules/alphasort: New file.
44648         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
44649         HAVE_ALPHASORT.
44650         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
44651         HAVE_ALPHASORT.
44652         * doc/posix-functions/alphasort.texi: Mention the new module and the
44653         portability problems.
44654
44655 2009-01-18  Bruno Haible  <bruno@clisp.org>
44656
44657         New module 'scandir'.
44658         * lib/dirent.in.h (scandir): New declaration.
44659         * lib/scandir.c: New file, from glibc with modifications.
44660         * m4/scandir.m4: New file.
44661         * modules/scandir: New file.
44662         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
44663         HAVE_SCANDIR.
44664         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
44665         HAVE_SCANDIR.
44666         * doc/posix-functions/scandir.texi: Mention the new module and the
44667         portability problems.
44668
44669 2009-01-17  Bruno Haible  <bruno@clisp.org>
44670
44671         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
44672         Update documentation.
44673         (func_remove_suffix): Escape all dots in the suffix. Update
44674         documentation.
44675         (func_filter_filelist): Update documentation.
44676         Reported by Ralf Wildenhues.
44677
44678 2009-01-17  Bruno Haible  <bruno@clisp.org>
44679
44680         * modules/dprintf-posix-tests: New file.
44681         * tests/test-dprintf-posix.sh: New file.
44682         * tests/test-dprintf-posix.c: New file.
44683
44684         New modules 'dprintf', 'dprintf-posix'.
44685         * lib/stdio.in.h (dprintf): New declaration.
44686         * lib/dprintf.c: New file.
44687         * m4/dprintf.m4: New file.
44688         * m4/dprintf-posix.m4: New file.
44689         * modules/dprintf: New file.
44690         * modules/dprintf-posix: New file.
44691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
44692         HAVE_DPRINTF, REPLACE_DPRINTF.
44693         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
44694         HAVE_DPRINTF, REPLACE_DPRINTF.
44695         * doc/posix-functions/dprintf.texi: Mention the new modules.
44696
44697 2009-01-17  Bruno Haible  <bruno@clisp.org>
44698
44699         * modules/vdprintf-posix-tests: New file.
44700         * tests/test-vdprintf-posix.sh: New file.
44701         * tests/test-vdprintf-posix.c: New file.
44702
44703         New modules 'vdprintf', 'vdprintf-posix'.
44704         * lib/stdio.in.h (vdprintf): New declaration.
44705         * lib/vdprintf.c: New file.
44706         * m4/vdprintf.m4: New file.
44707         * m4/vdprintf-posix.m4: New file.
44708         * modules/vdprintf: New file.
44709         * modules/vdprintf-posix: New file.
44710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
44711         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44712         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
44713         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44714         * doc/posix-functions/vdprintf.texi: Mention the new modules.
44715
44716 2009-01-17  Bruno Haible  <bruno@clisp.org>
44717
44718         Fix replacement of fopen on mingw.
44719         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
44720         mingw.
44721
44722 2009-01-17  Bruno Haible  <bruno@clisp.org>
44723
44724         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
44725         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
44726
44727 2009-01-17  Bruno Haible  <bruno@clisp.org>
44728
44729         Avoid test-fflush2.sh failure on mingw.
44730         * tests/test-fflush2.c: Include binary-io.h.
44731         (main): Put standard input into binary mode.
44732         * modules/fflush-tests (Depends-on): Add binary-io.
44733
44734 2009-01-17  Bruno Haible  <bruno@clisp.org>
44735
44736         * lib/wchar.in.h: In another particular situation, include only the
44737         system's <wchar.h> file.
44738         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
44739         Reported by Albert Chin-A-Young <china@thewrittenword.com>
44740         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
44741
44742 2009-01-17  Bruno Haible  <bruno@clisp.org>
44743
44744         Support for stripping executables in --enable-relocatable.
44745         * build-aux/install-reloc: Expect one more argument, or an environment
44746         variable RELOC_STRIP_PROG. If set, strip the destination program and
44747         its wrapper.
44748         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
44749         RELOC_STRIP_PROG.
44750         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
44751         to set RELOCATABLE_STRIP.
44752         * NEWS: Mention the new Makefile requirement.
44753
44754 2009-01-17  Bruno Haible  <bruno@clisp.org>
44755
44756         * build-aux/install-reloc: Remove debugging information left over by
44757         C compiler on MacOS X.
44758
44759 2009-01-17  Bruno Haible  <bruno@clisp.org>
44760
44761         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
44762         * lib/progreloc.c (find_executable): Fix type of pointer passed to
44763         _NSGetExecutablePath.
44764
44765 2009-01-16  Jim Meyering  <meyering@redhat.com>
44766
44767         strerror: avoid warnings about discarding "const"
44768         * lib/strerror.c (rpl_strerror): Instead of returning a const
44769         string from each and every "case", use a variable, and add a single
44770         cast after the switch.
44771
44772 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
44773
44774         * lib/arpa_inet.in.h: Add extern "C" block for C++.
44775
44776 2009-01-16  Bruno Haible  <bruno@clisp.org>
44777
44778         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
44779         array initializer syntax that also works in C++ mode.
44780         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44781
44782 2009-01-16  Jim Meyering  <meyering@redhat.com>
44783
44784         poll: suppress a warning
44785         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
44786         to ignore "...unsigned expression < 0 is always false" warnings.
44787
44788 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
44789
44790         poll: remove declarations of unused variables
44791         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
44792         sockbuf and optlen.
44793
44794 2009-01-15  Bruno Haible  <bruno@clisp.org>
44795
44796         Make fflush-after-ungetc POSIX compliant on BSD systems.
44797         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
44798         (clear_ungetc_buffer): Implement also for other systems.
44799         (rpl_fflush): On glibc systems, invoke
44800         clear_ungetc_buffer_preserving_position. Otherwise, invoke
44801         clear_ungetc_buffer after fetching the stream's position, not before.
44802
44803 2009-01-15  Bruno Haible  <bruno@clisp.org>
44804
44805         Make fflush-after-ungetc POSIX compliant on glibc systems.
44806         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
44807         after ungetc.
44808         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
44809         (rpl_fflush): On glibc systems, simply call the system's fflush
44810         function after clearing the ungetc buffer.
44811         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
44812         Instead, lseek only to the end of file, then use the system's fseeko
44813         for the rest. On glibc systems, reset the EOF indicator bit.
44814
44815 2009-01-15  Jim Meyering  <meyering@redhat.com>
44816
44817         openmp.m4: revert quote-adding change, for portability to older autoconf
44818         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
44819         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
44820         Simon Josefsson noticed the problem when using autoconf-2.61.
44821
44822 2009-01-15  Bruno Haible  <bruno@clisp.org>
44823
44824         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
44825         * tests/test-fflush2.c (ASSERT): Always fail.
44826         (main): Add two tests for fflush() after ungetc(), taking into account
44827         the Austin Group's clarification.
44828         Suggested by Eric Blake.
44829
44830 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
44831
44832         mktime.m4: remove K&R-style function prototypes
44833         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
44834         for the Sun C++ compiler.
44835
44836 2009-01-14  Bruno Haible  <bruno@clisp.org>
44837
44838         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
44839         while including <wchar.h>.
44840         * lib/wchar.in.h: In two particular situations on HP-UX, include only
44841         the system's <wchar.h> file.
44842         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44843
44844 2009-01-14  Bruno Haible  <bruno@clisp.org>
44845
44846         * m4/csharp.m4: Don't mention gettext on the serial number line.
44847         * m4/csharpexec.m4: Likewise.
44848         * m4/eaccess.m4: Likewise.
44849         * m4/javaexec.m4: Likewise.
44850         * m4/sig_atomic_t.m4: Likewise.
44851         * m4/tmpdir.m4: Likewise.
44852         * m4/intldir.m4: Bump gettext version.
44853         * m4/lib-ld.m4: Likewise.
44854
44855 2009-01-14  Bruno Haible  <bruno@clisp.org>
44856
44857         * lib/progname.c (set_program_name): Add more comments.
44858         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44859
44860 2009-01-14  Simon Josefsson  <simon@josefsson.org>
44861
44862         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
44863         were sys/stat.h does not define it.
44864
44865 2009-01-14  Jim Meyering  <meyering@redhat.com>
44866
44867         many *.m4 files: improve m4 quoting
44868         99% of this change was performed by running the following commands:
44869         git ls-files | grep '\.m4$' | xargs perl -pi \
44870           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
44871           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44872           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44873           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
44874         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
44875         The remainder were to add Copyright dates, increment serial numbers,
44876         undo some changes in comments, exclude m4/intl.m4, and add quotes
44877         around the "1" in ",1" where the unusual spacing prohibited the
44878         above regexps from doing the job.  For more details, see
44879         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
44880         * m4/acl.m4: Modified.
44881         * m4/afs.m4: Likewise.
44882         * m4/alloca.m4: Likewise.
44883         * m4/argp.m4: Likewise.
44884         * m4/argz.m4: Likewise.
44885         * m4/atexit.m4: Likewise.
44886         * m4/bison-i18n.m4: Likewise.
44887         * m4/bison.m4: Likewise.
44888         * m4/byteswap.m4: Likewise.
44889         * m4/c-stack.m4: Likewise.
44890         * m4/c-strtod.m4: Likewise.
44891         * m4/calloc.m4: Likewise.
44892         * m4/canonicalize-lgpl.m4: Likewise.
44893         * m4/chown.m4: Likewise.
44894         * m4/clock_time.m4: Likewise.
44895         * m4/codeset.m4: Likewise.
44896         * m4/copy-file.m4: Likewise.
44897         * m4/csharp.m4: Likewise.
44898         * m4/csharpcomp.m4: Likewise.
44899         * m4/csharpexec.m4: Likewise.
44900         * m4/d-ino.m4: Likewise.
44901         * m4/d-type.m4: Likewise.
44902         * m4/dirfd.m4: Likewise.
44903         * m4/double-slash-root.m4: Likewise.
44904         * m4/eaccess.m4: Likewise.
44905         * m4/eealloc.m4: Likewise.
44906         * m4/environ.m4: Likewise.
44907         * m4/errno_h.m4: Likewise.
44908         * m4/euidaccess.m4: Likewise.
44909         * m4/execute.m4: Likewise.
44910         * m4/fatal-signal.m4: Likewise.
44911         * m4/fchdir.m4: Likewise.
44912         * m4/fcntl_h.m4: Likewise.
44913         * m4/fileblocks.m4: Likewise.
44914         * m4/filenamecat.m4: Likewise.
44915         * m4/findprog.m4: Likewise.
44916         * m4/flexmember.m4: Likewise.
44917         * m4/fnmatch.m4: Likewise.
44918         * m4/fopen.m4: Likewise.
44919         * m4/fpending.m4: Likewise.
44920         * m4/fprintf-posix.m4: Likewise.
44921         * m4/free.m4: Likewise.
44922         * m4/frexp.m4: Likewise.
44923         * m4/frexpl.m4: Likewise.
44924         * m4/fsusage.m4: Likewise.
44925         * m4/ftruncate.m4: Likewise.
44926         * m4/gc-camellia.m4: Likewise.
44927         * m4/gc-random.m4: Likewise.
44928         * m4/gc.m4: Likewise.
44929         * m4/getaddrinfo.m4: Likewise.
44930         * m4/getcwd-abort-bug.m4: Likewise.
44931         * m4/getcwd-path-max.m4: Likewise.
44932         * m4/getdate.m4: Likewise.
44933         * m4/getdomainname.m4: Likewise.
44934         * m4/getgroups.m4: Likewise.
44935         * m4/gethostname.m4: Likewise.
44936         * m4/gethrxtime.m4: Likewise.
44937         * m4/getline.m4: Likewise.
44938         * m4/getloadavg.m4: Likewise.
44939         * m4/getndelim2.m4: Likewise.
44940         * m4/getpass.m4: Likewise.
44941         * m4/gettext.m4: Likewise.
44942         * m4/gettime.m4: Likewise.
44943         * m4/gettimeofday.m4: Likewise.
44944         * m4/gnulib-common.m4: Likewise.
44945         * m4/group-member.m4: Likewise.
44946         * m4/host-os.m4: Likewise.
44947         * m4/iconv.m4: Likewise.
44948         * m4/iconv_open.m4: Likewise.
44949         * m4/inet_ntop.m4: Likewise.
44950         * m4/inet_pton.m4: Likewise.
44951         * m4/inline.m4: Likewise.
44952         * m4/intldir.m4: Likewise.
44953         * m4/intlmacosx.m4: Likewise.
44954         * m4/intmax.m4: Likewise.
44955         * m4/intmax_t.m4: Likewise.
44956         * m4/inttypes.m4: Likewise.
44957         * m4/inttypes_h.m4: Likewise.
44958         * m4/inttypes-pri.m4: Likewise.
44959         * m4/isapipe.m4: Likewise.
44960         * m4/isnand.m4: Likewise.
44961         * m4/isnanf.m4: Likewise.
44962         * m4/isnanl.m4: Likewise.
44963         * m4/javacomp.m4: Likewise.
44964         * m4/javaexec.m4: Likewise.
44965         * m4/jm-winsz1.m4: Likewise.
44966         * m4/jm-winsz2.m4: Likewise.
44967         * m4/lchown.m4: Likewise.
44968         * m4/lcmessage.m4: Likewise.
44969         * m4/ldexpl.m4: Likewise.
44970         * m4/lib-ld.m4: Likewise.
44971         * m4/lib-link.m4: Likewise.
44972         * m4/libsigsegv.m4: Likewise.
44973         * m4/link-follow.m4: Likewise.
44974         * m4/localcharset.m4: Likewise.
44975         * m4/locale-fr.m4: Likewise.
44976         * m4/locale-ja.m4: Likewise.
44977         * m4/locale-tr.m4: Likewise.
44978         * m4/locale-zh.m4: Likewise.
44979         * m4/lock.m4: Likewise.
44980         * m4/longlong.m4: Likewise.
44981         * m4/ls-mntd-fs.m4: Likewise.
44982         * m4/lstat.m4: Likewise.
44983         * m4/malloc.m4: Likewise.
44984         * m4/mathl.m4: Likewise.
44985         * m4/mbrtowc.m4: Likewise.
44986         * m4/mbstate_t.m4: Likewise.
44987         * m4/mbswidth.m4: Likewise.
44988         * m4/memchr.m4: Likewise.
44989         * m4/memcmp.m4: Likewise.
44990         * m4/memcpy.m4: Likewise.
44991         * m4/memmem.m4: Likewise.
44992         * m4/memmove.m4: Likewise.
44993         * m4/mempcpy.m4: Likewise.
44994         * m4/memrchr.m4: Likewise.
44995         * m4/memset.m4: Likewise.
44996         * m4/minmax.m4: Likewise.
44997         * m4/mkdir-slash.m4: Likewise.
44998         * m4/mkdtemp.m4: Likewise.
44999         * m4/mktime.m4: Likewise.
45000         * m4/mmap-anon.m4: Likewise.
45001         * m4/mountlist.m4: Likewise.
45002         * m4/nanosleep.m4: Likewise.
45003         * m4/nls.m4: Likewise.
45004         * m4/nocrash.m4: Likewise.
45005         * m4/open.m4: Likewise.
45006         * m4/openat.m4: Likewise.
45007         * m4/openmp.m4: Likewise.
45008         * m4/pathmax.m4: Likewise.
45009         * m4/perl.m4: Likewise.
45010         * m4/physmem.m4: Likewise.
45011         * m4/pipe.m4: Likewise.
45012         * m4/po.m4: Likewise.
45013         * m4/poll.m4: Likewise.
45014         * m4/posixtm.m4: Likewise.
45015         * m4/posixver.m4: Likewise.
45016         * m4/printf-frexp.m4: Likewise.
45017         * m4/printf-frexpl.m4: Likewise.
45018         * m4/printf-posix.m4: Likewise.
45019         * m4/printf-posix-rpl.m4: Likewise.
45020         * m4/printf.m4: Likewise.
45021         * m4/progtest.m4: Likewise.
45022         * m4/putenv.m4: Likewise.
45023         * m4/readline.m4: Likewise.
45024         * m4/readlink.m4: Likewise.
45025         * m4/readutmp.m4: Likewise.
45026         * m4/realloc.m4: Likewise.
45027         * m4/regex.m4: Likewise.
45028         * m4/relocatable.m4: Likewise.
45029         * m4/relocatable-lib.m4: Likewise.
45030         * m4/rename-dest-slash.m4: Likewise.
45031         * m4/rename.m4: Likewise.
45032         * m4/rmdir-errno.m4: Likewise.
45033         * m4/rmdir.m4: Likewise.
45034         * m4/roundf.m4: Likewise.
45035         * m4/roundl.m4: Likewise.
45036         * m4/rpmatch.m4: Likewise.
45037         * m4/save-cwd.m4: Likewise.
45038         * m4/selinux-selinux-h.m4: Likewise.
45039         * m4/setenv.m4: Likewise.
45040         * m4/settime.m4: Likewise.
45041         * m4/sig2str.m4: Likewise.
45042         * m4/sig_atomic_t.m4: Likewise.
45043         * m4/signalblocking.m4: Likewise.
45044         * m4/signbit.m4: Likewise.
45045         * m4/sigpipe.m4: Likewise.
45046         * m4/sockets.m4: Likewise.
45047         * m4/sockpfaf.m4: Likewise.
45048         * m4/st_dm_mode.m4: Likewise.
45049         * m4/stat-time.m4: Likewise.
45050         * m4/stdbool.m4: Likewise.
45051         * m4/stdint.m4: Likewise.
45052         * m4/stdint_h.m4: Likewise.
45053         * m4/stpcpy.m4: Likewise.
45054         * m4/stpncpy.m4: Likewise.
45055         * m4/strcase.m4: Likewise.
45056         * m4/strchrnul.m4: Likewise.
45057         * m4/strcspn.m4: Likewise.
45058         * m4/strdup.m4: Likewise.
45059         * m4/strftime.m4: Likewise.
45060         * m4/strndup.m4: Likewise.
45061         * m4/strnlen.m4: Likewise.
45062         * m4/strpbrk.m4: Likewise.
45063         * m4/strptime.m4: Likewise.
45064         * m4/strsep.m4: Likewise.
45065         * m4/strtod.m4: Likewise.
45066         * m4/strtoimax.m4: Likewise.
45067         * m4/strtok_r.m4: Likewise.
45068         * m4/strtol.m4: Likewise.
45069         * m4/strtoll.m4: Likewise.
45070         * m4/strtoul.m4: Likewise.
45071         * m4/strtoull.m4: Likewise.
45072         * m4/strtoumax.m4: Likewise.
45073         * m4/strverscmp.m4: Likewise.
45074         * m4/threadlib.m4: Likewise.
45075         * m4/timegm.m4: Likewise.
45076         * m4/tm_gmtoff.m4: Likewise.
45077         * m4/tmpdir.m4: Likewise.
45078         * m4/tmpfile.m4: Likewise.
45079         * m4/tzset.m4: Likewise.
45080         * m4/uintmax_t.m4: Likewise.
45081         * m4/unlinkdir.m4: Likewise.
45082         * m4/unlocked-io.m4: Likewise.
45083         * m4/uptime.m4: Likewise.
45084         * m4/userspec.m4: Likewise.
45085         * m4/utimbuf.m4: Likewise.
45086         * m4/utime.m4: Likewise.
45087         * m4/utimes-null.m4: Likewise.
45088         * m4/utimes.m4: Likewise.
45089         * m4/vararrays.m4: Likewise.
45090         * m4/vasnprintf.m4: Likewise.
45091         * m4/vfprintf-posix.m4: Likewise.
45092         * m4/vprintf-posix.m4: Likewise.
45093         * m4/wait-process.m4: Likewise.
45094         * m4/wchar_t.m4: Likewise.
45095         * m4/wint_t.m4: Likewise.
45096         * m4/write-any-file.m4: Likewise.
45097         * m4/yield.m4: Likewise.
45098
45099 2009-01-13  Bruno Haible  <bruno@clisp.org>
45100
45101         Avoid test-copy-file.sh failures when ACL support insufficient.
45102         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
45103         TESTS_ENVIRONMENT.
45104         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
45105         Reported by Jim Meyering.
45106
45107 2009-01-13  Bruno Haible  <bruno@clisp.org>
45108
45109         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
45110         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
45111         * modules/unistdio/u8-printf-parse (Files): Likewise.
45112         * modules/unistdio/u32-printf-parse (Files): Likewise.
45113         * modules/unistdio/ulc-printf-parse (Files): Likewise.
45114
45115 2009-01-13  Simon Josefsson  <simon@josefsson.org>
45116
45117         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
45118         and m4/inttypes_h.m4 too.
45119
45120 2009-01-12  Eric Blake  <ebb9@byu.net>
45121
45122         tests: IRIX 6.2 cc can't compile -0.0 into .data
45123         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
45124         rather than at compile-time.
45125         * tests/test-floorl.c (minus_zero): Likewise.
45126         * tests/test-frexpl.c (minus_zero): Likewise.
45127         * tests/test-isnan.c (minus_zerol): Likewise.
45128         * tests/test-isnanl.h (minus_zero): Likewise.
45129         * tests/test-ldexpl.c (minus_zero): Likewise.
45130         * tests/test-roundl.c (minus_zero): Likewise.
45131         * tests/test-signbit.c (minus_zerol): Likewise.
45132         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45133         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45134         * tests/test-truncl.c (minus_zero): Likewise.
45135         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45136         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45137         Reported by Tom G. Christensen and Nelson H. F. Beebe.
45138
45139 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45140
45141         regex: fix glibc bug 9697
45142         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
45143         handling.
45144
45145 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45146
45147         regex: fix glibc bug 697
45148         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
45149         being NULL also if there are no backreferences.
45150
45151 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45152
45153         regex: merge glibc changes
45154         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
45155         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
45156         re_string_skip_chars, re_string_reconstruct): Likewise.
45157         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
45158
45159 2009-01-07  Jim Meyering  <meyering@redhat.com>
45160
45161         poll: filter through cppi
45162         * lib/poll.c: Indent cpp directives to reflect nesting.
45163
45164 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
45165
45166         poll: don't return uninitialized
45167         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
45168
45169 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
45170
45171         avoid compile failure on AIX 6.1
45172         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
45173         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
45174
45175 2009-01-04  Jim Meyering  <meyering@redhat.com>
45176
45177         remove duplicate inclusion of <stdio.h>
45178         * tests/test-fprintf-posix.c: Likewise.
45179         * tests/test-printf-posix.c: Likewise.
45180         * tests/test-snprintf-posix.c: Likewise.
45181         * tests/test-sprintf-posix.c: Likewise.
45182         * tests/test-vasprintf-posix.c: Likewise.
45183         * tests/test-vfprintf-posix.c: Likewise.
45184         * tests/test-vprintf-posix.c: Likewise.
45185         * tests/test-vsnprintf-posix.c: Likewise.
45186         * tests/test-vsprintf-posix.c: Likewise.
45187
45188 2009-01-03  Jim Meyering  <meyering@redhat.com>
45189
45190         gnulib-tool: fix sed-based filtering
45191         * gnulib-tool (func_filter_filelist): Remove extra backslash
45192         in sed_fff_filter definition.
45193
45194 2009-01-02  Jim Meyering  <meyering@redhat.com>
45195
45196         strftime: avoid compilation failure on Solaris 2.6
45197         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
45198         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
45199         Don't #define mbrlen or mbsinit, since now they're guaranteed to
45200         be available.  Reported by Tom G. Christensen.  Details in
45201         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
45202
45203 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45204             Bruno Haible  <bruno@clisp.org>
45205
45206         Speed up gnulib-tool by doing more string processing through shell
45207         built-ins.
45208         * gnulib-tool (fast_func_append): New variable.
45209         (func_remove_prefix, func_remove_suffix): New functions.
45210         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
45211         (func_filter_filelist): New function.
45212         (func_get_dependencies): Use func_remove_suffix instead of sed.
45213         (func_get_automake_snippet): Use func_filter_filelist instead of a
45214         subshell and sed invocation.
45215
45216 2009-01-01  Bruno Haible  <bruno@clisp.org>
45217
45218         Fix a security bug.
45219         * gnulib-tool (func_import, import, update): Don't allow the characters
45220         '"', '$', '`', '\' in macro arguments that become part of commands that
45221         are evaluated.
45222
45223 2009-01-01  Bruno Haible  <bruno@clisp.org>
45224
45225         * gnulib-tool (func_reset_sigpipe): Add more comments.
45226
45227 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45228
45229         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
45230         func_emit_tests_Makefile_am, func_import): Abort loops early if we
45231         already know the answer.
45232
45233 2009-01-01  Jim Meyering  <meyering@redhat.com>
45234
45235         * lib/version-etc.c (version_etc_va): Update copyright year.
45236
45237 2008-12-30  Bruno Haible  <bruno@clisp.org>
45238
45239         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
45240         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
45241         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
45242
45243 2008-12-29  Eric Blake  <ebb9@byu.net>
45244
45245         multiarch: avoid autoconf AC_REQUIRE bug
45246         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
45247         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
45248         2.63 and older.
45249         Reported by Bruno Haible, and analyzed in
45250         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
45251
45252 2008-12-29  Bruno Haible  <bruno@clisp.org>
45253
45254         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
45255         files in subdirectories correctly.
45256         Reported by Ralf Wildenhues.
45257
45258 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45259
45260         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
45261         rather than 'join FILE -', for Solaris join.
45262
45263 2008-12-29  Bruno Haible  <bruno@clisp.org>
45264
45265         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
45266         quoting.
45267         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45268         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
45269         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
45270         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
45271         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45272         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
45273         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
45274         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
45275         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45276         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
45277         * m4/nls.m4 (AM_NLS): Likewise.
45278         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
45279         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
45280         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
45281         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
45282         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
45283         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45284         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
45285         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
45286         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
45287         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45288         * m4/xsize.m4 (gl_XSIZE): Likewise.
45289         Suggested by Jim Meyering.
45290
45291 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45292
45293         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
45294         * lib/parse-duration.c: use a switch instead of cascading if's.
45295
45296 2008-12-29  Eric Blake  <ebb9@byu.net>
45297
45298         wchar.h: supply WEOF on Irix 5.3
45299         * lib/wchar.in.h (wint_t): Also supply WEOF.
45300         * lib/wctype.in.h (wint_t): Likewise.
45301         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
45302         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
45303         Reported by Tom G. Christensen.
45304
45305 2008-12-26  Bruno Haible  <bruno@clisp.org>
45306
45307         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
45308         i486, i586, i686.
45309
45310 2008-12-26  Bruno Haible  <bruno@clisp.org>
45311
45312         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
45313
45314 2008-12-26  Bruno Haible  <bruno@clisp.org>
45315
45316         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
45317         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
45318         not __STDC_CONSTANT_MACROS.
45319         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45320
45321 2008-12-25  Bruno Haible  <bruno@clisp.org>
45322
45323         Add support for universal builds to vasnprintf.
45324         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
45325         universal builds, guess no.
45326         * modules/vasnprintf-posix (Depends-on): Add multiarch.
45327         * modules/vasprintf-posix (Depends-on): Likewise.
45328         * modules/fprintf-posix (Depends-on): Likewise.
45329         * modules/vfprintf-posix (Depends-on): Likewise.
45330         * modules/snprintf-posix (Depends-on): Likewise.
45331         * modules/vsnprintf-posix (Depends-on): Likewise.
45332         * modules/sprintf-posix (Depends-on): Likewise.
45333         * modules/vsprintf-posix (Depends-on): Likewise.
45334         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45335         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45336         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45337         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45338         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45339         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45340         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45341
45342         Add support for universal builds to <inttypes.h>.
45343         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
45344         _SCNu64_PREFIX): In Apple
45345         universal builds, define directly, using _LP64.
45346         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
45347         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
45348         * modules/inttypes (Depends-on): Add multiarch.
45349         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45350
45351         Add support for universal builds to <stdint.h>.
45352         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
45353         universal builds, define directly, using _LP64.
45354         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
45355         Apple universal builds, don't test for the size and suffix of ptrdiff_t
45356         and size_t.
45357         * modules/stdint (Depends-on): Add multiarch.
45358         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45359
45360         New module 'multiarch'.
45361         * modules/multiarch: New file.
45362         * m4/multiarch.m4: New file.
45363
45364 2008-12-25  Bruno Haible  <bruno@clisp.org>
45365
45366         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
45367
45368 2008-12-25  Bruno Haible  <bruno@clisp.org>
45369
45370         * modules/btowc (License): Relicense under LGPLv2+.
45371         * modules/mbsinit (License): Likewise.
45372         * modules/mbrtowc (License): Likewise.
45373         * modules/wcrtomb (License): Likewise.
45374         * modules/streq (License): Likewise.
45375         Reported by David Lutterkort <lutter@redhat.com>.
45376
45377 2008-12-23  Bruno Haible  <bruno@clisp.org>
45378
45379         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
45380
45381 2008-12-23  Bruno Haible  <bruno@clisp.org>
45382
45383         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
45384         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
45385         GETADDRINFO_LIB, not in LIBS.
45386         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
45387         * modules/canon-host (Link): Likewise.
45388         * NEWS: Mention the change.
45389         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
45390         GETADDRINFO_LIB.
45391
45392 2008-12-22  Bruno Haible  <bruno@clisp.org>
45393
45394         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
45395         * doc/posix-functions/iswalpha_l.texi: Likewise.
45396         * doc/posix-functions/iswblank_l.texi: Likewise.
45397         * doc/posix-functions/iswcntrl_l.texi: Likewise.
45398         * doc/posix-functions/iswctype_l.texi: Likewise.
45399         * doc/posix-functions/iswdigit_l.texi: Likewise.
45400         * doc/posix-functions/iswgraph_l.texi: Likewise.
45401         * doc/posix-functions/iswlower_l.texi: Likewise.
45402         * doc/posix-functions/iswprint_l.texi: Likewise.
45403         * doc/posix-functions/iswpunct_l.texi: Likewise.
45404         * doc/posix-functions/iswspace_l.texi: Likewise.
45405         * doc/posix-functions/iswupper_l.texi: Likewise.
45406         * doc/posix-functions/iswxdigit_l.texi: Likewise.
45407         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
45408         * doc/posix-functions/open_wmemstream.texi: Likewise.
45409         * doc/posix-functions/swscanf.texi: Likewise.
45410         * doc/posix-functions/towctrans_l.texi: Likewise.
45411         * doc/posix-functions/towlower.texi: Likewise.
45412         * doc/posix-functions/towlower_l.texi: Likewise.
45413         * doc/posix-functions/towupper.texi: Likewise.
45414         * doc/posix-functions/towupper_l.texi: Likewise.
45415         * doc/posix-functions/vfwprintf.texi: Likewise.
45416         * doc/posix-functions/vfwscanf.texi: Likewise.
45417         * doc/posix-functions/vswscanf.texi: Likewise.
45418         * doc/posix-functions/vwprintf.texi: Likewise.
45419         * doc/posix-functions/vwscanf.texi: Likewise.
45420         * doc/posix-functions/wcpcpy.texi: Likewise.
45421         * doc/posix-functions/wcpncpy.texi: Likewise.
45422         * doc/posix-functions/wcscasecmp.texi: Likewise.
45423         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
45424         * doc/posix-functions/wcscoll_l.texi: Likewise.
45425         * doc/posix-functions/wcsdup.texi: Likewise.
45426         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45427         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
45428         * doc/posix-functions/wcsnlen.texi: Likewise.
45429         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45430         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
45431         * doc/posix-functions/wctrans_l.texi: Likewise.
45432         * doc/posix-functions/wctype_l.texi: Likewise.
45433         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
45434         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
45435         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
45436         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
45437         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
45438         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
45439         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
45440         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
45441         * doc/glibc-functions/wcschrnul.texi: Likewise.
45442         * doc/glibc-functions/wcsftime_l.texi: Likewise.
45443         * doc/glibc-functions/wcstod_l.texi: Likewise.
45444         * doc/glibc-functions/wcstof_l.texi: Likewise.
45445         * doc/glibc-functions/wcstol_l.texi: Likewise.
45446         * doc/glibc-functions/wcstold_l.texi: Likewise.
45447         * doc/glibc-functions/wcstoll_l.texi: Likewise.
45448         * doc/glibc-functions/wcstoq.texi: Likewise.
45449         * doc/glibc-functions/wcstoul_l.texi: Likewise.
45450         * doc/glibc-functions/wcstoull_l.texi: Likewise.
45451         * doc/glibc-functions/wcstouq.texi: Likewise.
45452         * doc/glibc-functions/wmempcpy.texi: Likewise.
45453
45454 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
45455             Eric Blake  <ebb9@byu.net>
45456             Paolo Bonzini  <bonzini@gnu.org>
45457             Bruno Haible  <bruno@clisp.org>
45458
45459         Make c-stack work on Haiku.
45460         * lib/c-stack.c (SA_ONSTACK): Define fallback.
45461         (c_stack_action): Use SA_ONSTACK flag.
45462
45463 2008-12-22  Bruno Haible  <bruno@clisp.org>
45464
45465         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
45466
45467 2008-12-22  Bruno Haible  <bruno@clisp.org>
45468
45469         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
45470         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
45471         being overridden.
45472         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
45473         New macros.
45474         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
45475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
45476         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
45477         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
45478
45479 2008-12-22  Bruno Haible  <bruno@clisp.org>
45480
45481         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
45482         from test code.
45483
45484 2008-12-22  Eric Blake  <ebb9@byu.net>
45485
45486         Avoid gcc warnings on cygwin.
45487         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
45488         Avoid unused variable.
45489         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
45490         Likewise.
45491
45492 2008-12-22  Bruno Haible  <bruno@clisp.org>
45493
45494         Remove HAVE_MBRTOWC conditionals.
45495         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
45496         (mbscasecmp): Assume mbrtowc function.
45497         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
45498         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
45499         * lib/mbschr.c: Include mbuiter.h unconditionally.
45500         (mbschr): Assume mbrtowc function.
45501         * lib/mbscspn.c: Include mbuiter.h unconditionally.
45502         (mbscspn): Assume mbrtowc function.
45503         * lib/mbslen.c: Include mbuiter.h unconditionally.
45504         (mbslen): Assume mbrtowc function.
45505         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
45506         (mbsncasecmp): Assume mbrtowc function.
45507         * lib/mbsnlen.c: Include mbiter.h unconditionally.
45508         (mbsnlen): Assume mbrtowc function.
45509         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
45510         (mbspbrk): Assume mbrtowc function.
45511         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
45512         (mbspcasecmp): Assume mbrtowc function.
45513         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
45514         (mbsrchr): Assume mbrtowc function.
45515         * lib/mbssep.c: Include mbuiter.h unconditionally.
45516         (mbssep): Assume mbrtowc function.
45517         * lib/mbsspn.c: Include mbuiter.h unconditionally.
45518         (mbsspn): Assume mbrtowc function.
45519         * lib/mbsstr.c: Include mbuiter.h unconditionally.
45520         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
45521         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
45522         (mbstok_r): Assume mbrtowc function.
45523         * lib/propername.c: Include mbuiter.h unconditionally.
45524         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
45525         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
45526         (trim2): Assume mbrtowc function.
45527         * lib/mbswidth.c (mbsinit): Remove fallback definition.
45528         (mbsnwidth): Assume mbrtowc function.
45529         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
45530         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
45531         fallback definitions.
45532         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
45533
45534 2008-12-22  Bruno Haible  <bruno@clisp.org>
45535
45536         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
45537
45538 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
45539
45540         * modules/regex: Request emulations for the mb*/wc* functions we need.
45541         * m4/regex.m4: Don't look for those functions here.
45542         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
45543
45544 2008-12-22  Bruno Haible  <bruno@clisp.org>
45545
45546         * modules/fnmatch (Depends-on): Remove duplicated dependency.
45547
45548 2008-12-21  Bruno Haible  <bruno@clisp.org>
45549
45550         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
45551         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
45552         (Include): Remove conditionalization.
45553         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
45554         (Include): Remove conditionalization.
45555         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
45556         (Include): Remove conditionalization.
45557         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
45558         * m4/mbfile.m4 (gl_MBFILE): Likewise.
45559         * NEWS: Mention the change.
45560         Reported by Alan Hourihane <alanh@fairlite.co.uk>
45561         via Sergey Poznyakoff <gray@gnu.org.ua>.
45562
45563 2008-12-21  Bruno Haible  <bruno@clisp.org>
45564
45565         * MODULES.html.sh (Extended multibyte and wide character utilities
45566         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
45567         wcrtomb, wcsrtombs.
45568         (Support for systems lacking POSIX:2008): Add accept, bind, close,
45569         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
45570         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
45571         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
45572
45573 2008-12-21  Bruno Haible  <bruno@clisp.org>
45574
45575         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
45576
45577 2008-12-21  Bruno Haible  <bruno@clisp.org>
45578
45579         * modules/wcsnrtombs-tests: New file.
45580         * tests/test-wcsnrtombs1.sh: New file.
45581         * tests/test-wcsnrtombs2.sh: New file.
45582         * tests/test-wcsnrtombs3.sh: New file.
45583         * tests/test-wcsnrtombs4.sh: New file.
45584         * tests/test-wcsnrtombs.c: New file.
45585
45586         New module 'wcsnrtombs'.
45587         * lib/wchar.in.h (wcsnrtombs): New declaration.
45588         * lib/wcsnrtombs.c: New file.
45589         * lib/wcsrtombs-state.c: New file.
45590         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
45591         (internal_state): Remove variable.
45592         * m4/wcsnrtombs.m4: New file.
45593         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
45594         compilation units.
45595         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
45596         HAVE_WCSNRTOMBS.
45597         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
45598         HAVE_WCSNRTOMBS.
45599         * modules/wcsnrtombs: New file.
45600         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
45601         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
45602
45603 2008-12-21  Bruno Haible  <bruno@clisp.org>
45604
45605         * modules/wcsrtombs-tests: New file.
45606         * tests/test-wcsrtombs1.sh: New file.
45607         * tests/test-wcsrtombs2.sh: New file.
45608         * tests/test-wcsrtombs3.sh: New file.
45609         * tests/test-wcsrtombs4.sh: New file.
45610         * tests/test-wcsrtombs.c: New file.
45611
45612         New module 'wcsrtombs'.
45613         * lib/wchar.in.h (wcsrtombs): New declaration.
45614         * lib/wcsrtombs.c: New file.
45615         * m4/wcsrtombs.m4: New file.
45616         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
45617         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
45619         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45620         * modules/wcsrtombs: New file.
45621         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
45622         bugs.
45623
45624 2008-12-21  Bruno Haible  <bruno@clisp.org>
45625
45626         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
45627         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
45628         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
45629         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
45630         if not correct.
45631         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
45632         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
45633         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45634         m4/locale-zh.m4, m4/codeset.m4.
45635         * doc/posix-functions/wcrtomb.texi: Document the bug.
45636
45637 2008-12-21  Bruno Haible  <bruno@clisp.org>
45638
45639         Work around a btowc() bug on IRIX 6.5.
45640         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
45641         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
45642         REPLACE_WTOBC if not.
45643         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
45644         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
45645         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
45646
45647 2008-12-21  Bruno Haible  <bruno@clisp.org>
45648
45649         * modules/wcrtomb-tests: New file.
45650         * tests/test-wcrtomb.sh: New file.
45651         * tests/test-wcrtomb.c: New file.
45652
45653         New module 'wcrtomb'.
45654         * lib/wchar.in.h (wcrtomb): New declaration.
45655         * lib/wcrtomb.c: New file.
45656         * m4/wcrtomb.m4: New file.
45657         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
45658         HAVE_WCRTOMB.
45659         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
45660         HAVE_WCRTOMB.
45661         * modules/wcrtomb: New file.
45662         * doc/posix-functions/wcrtomb.texi: Mention the new module.
45663
45664 2008-12-21  Bruno Haible  <bruno@clisp.org>
45665
45666         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
45667         * modules/mbsrtowcs (Files): Likewise.
45668         * modules/wctob (Files): Likewise.
45669         * modules/c-strcase-tests (Files): Likewise.
45670         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
45671         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
45672         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
45673         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
45674         * modules/vasnprintf-posix-tests (Files): Likewise.
45675
45676 2008-12-21  William Pursell  <bill.pursell@gmail.com>
45677
45678         gitlog-to-changelog: pass all command-line arguments to git-log
45679         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
45680         it is sometimes convenient to filter the commits in various ways.
45681         gitlog-to-changelog only allows --since to specify a start date,
45682         but git-log itself supports many other filtering mechanisms.
45683         At the moment, I want to filter by branch name.  Rather than
45684         adding a --branch option to gitlog-to-changelog, it seems more
45685         flexible to simply pass all options directly to git-log and let
45686         git do the work.  Notice that this effectively makes --since a
45687         redundant option for gitlog-to-changelog, but removing it would
45688         require current usage to change since calls would then require
45689         an additional '--'.
45690
45691 2008-12-21  Bruno Haible  <bruno@clisp.org>
45692
45693         * modules/mbsnrtowcs-tests: New file.
45694         * tests/test-mbsnrtowcs1.sh: New file.
45695         * tests/test-mbsnrtowcs2.sh: New file.
45696         * tests/test-mbsnrtowcs3.sh: New file.
45697         * tests/test-mbsnrtowcs4.sh: New file.
45698         * tests/test-mbsnrtowcs.c: New file.
45699
45700         New module 'mbsnrtowcs'.
45701         * lib/wchar.in.h (mbsnrtowcs): New declaration.
45702         * lib/mbsnrtowcs.c: New file.
45703         * lib/mbsrtowcs-state.c: New file.
45704         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
45705         (internal_state): Remove variable.
45706         * m4/mbsnrtowcs.m4: New file.
45707         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
45708         compilation units.
45709         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
45710         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45711         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
45712         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45713         * modules/mbsnrtowcs: New file.
45714         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
45715         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
45716         portability problem.
45717
45718 2008-12-21  Bruno Haible  <bruno@clisp.org>
45719
45720         Work around mbsrtowcs bug.
45721         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
45722         (gl_FUNC_MBSRTOWCS): Invoke it.
45723         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45724         m4/locale-zh.m4.
45725         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
45726
45727 2008-12-21  Bruno Haible  <bruno@clisp.org>
45728
45729         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
45730
45731 2008-12-21  Bruno Haible  <bruno@clisp.org>
45732
45733         Update doc for AIX.
45734         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
45735         16-bit wchar_t type.
45736         * doc/posix-functions/btowc.texi: Likewise.
45737         * doc/posix-functions/fgetwc.texi: Likewise.
45738         * doc/posix-functions/fgetws.texi: Likewise.
45739         * doc/posix-functions/fputwc.texi: Likewise.
45740         * doc/posix-functions/fputws.texi: Likewise.
45741         * doc/posix-functions/fwide.texi: Likewise.
45742         * doc/posix-functions/fwprintf.texi: Likewise.
45743         * doc/posix-functions/fwscanf.texi: Likewise.
45744         * doc/posix-functions/getwchar.texi: Likewise.
45745         * doc/posix-functions/getwc.texi: Likewise.
45746         * doc/posix-functions/iswalnum.texi: Likewise.
45747         * doc/posix-functions/iswalpha.texi: Likewise.
45748         * doc/posix-functions/iswblank.texi: Likewise.
45749         * doc/posix-functions/iswcntrl.texi: Likewise.
45750         * doc/posix-functions/iswctype.texi: Likewise.
45751         * doc/posix-functions/iswdigit.texi: Likewise.
45752         * doc/posix-functions/iswgraph.texi: Likewise.
45753         * doc/posix-functions/iswlower.texi: Likewise.
45754         * doc/posix-functions/iswprint.texi: Likewise.
45755         * doc/posix-functions/iswpunct.texi: Likewise.
45756         * doc/posix-functions/iswspace.texi: Likewise.
45757         * doc/posix-functions/iswupper.texi: Likewise.
45758         * doc/posix-functions/iswxdigit.texi: Likewise.
45759         * doc/posix-functions/mbrtowc.texi: Likewise.
45760         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45761         * doc/posix-functions/mbstowcs.texi: Likewise.
45762         * doc/posix-functions/mbtowc.texi: Likewise.
45763         * doc/posix-functions/putwchar.texi: Likewise.
45764         * doc/posix-functions/putwc.texi: Likewise.
45765         * doc/posix-functions/swprintf.texi: Likewise.
45766         * doc/posix-functions/tolower.texi: Likewise.
45767         * doc/posix-functions/toupper.texi: Likewise.
45768         * doc/posix-functions/towctrans.texi: Likewise.
45769         * doc/posix-functions/ungetwc.texi: Likewise.
45770         * doc/posix-functions/vswprintf.texi: Likewise.
45771         * doc/posix-functions/wcrtomb.texi: Likewise.
45772         * doc/posix-functions/wcscat.texi: Likewise.
45773         * doc/posix-functions/wcschr.texi: Likewise.
45774         * doc/posix-functions/wcscmp.texi: Likewise.
45775         * doc/posix-functions/wcscoll.texi: Likewise.
45776         * doc/posix-functions/wcscpy.texi: Likewise.
45777         * doc/posix-functions/wcscspn.texi: Likewise.
45778         * doc/posix-functions/wcsftime.texi: Likewise.
45779         * doc/posix-functions/wcslen.texi: Likewise.
45780         * doc/posix-functions/wcsncat.texi: Likewise.
45781         * doc/posix-functions/wcsncmp.texi: Likewise.
45782         * doc/posix-functions/wcsncpy.texi: Likewise.
45783         * doc/posix-functions/wcspbrk.texi: Likewise.
45784         * doc/posix-functions/wcsrchr.texi: Likewise.
45785         * doc/posix-functions/wcsrtombs.texi: Likewise.
45786         * doc/posix-functions/wcsspn.texi: Likewise.
45787         * doc/posix-functions/wcsstr.texi: Likewise.
45788         * doc/posix-functions/wcstod.texi: Likewise.
45789         * doc/posix-functions/wcstof.texi: Likewise.
45790         * doc/posix-functions/wcstoimax.texi: Likewise.
45791         * doc/posix-functions/wcstok.texi: Likewise.
45792         * doc/posix-functions/wcstold.texi: Likewise.
45793         * doc/posix-functions/wcstoll.texi: Likewise.
45794         * doc/posix-functions/wcstol.texi: Likewise.
45795         * doc/posix-functions/wcstombs.texi: Likewise.
45796         * doc/posix-functions/wcstoull.texi: Likewise.
45797         * doc/posix-functions/wcstoul.texi: Likewise.
45798         * doc/posix-functions/wcstoumax.texi: Likewise.
45799         * doc/posix-functions/wcswidth.texi: Likewise.
45800         * doc/posix-functions/wcsxfrm.texi: Likewise.
45801         * doc/posix-functions/wctob.texi: Likewise.
45802         * doc/posix-functions/wctomb.texi: Likewise.
45803         * doc/posix-functions/wctrans.texi: Likewise.
45804         * doc/posix-functions/wctype.texi: Likewise.
45805         * doc/posix-functions/wcwidth.texi: Likewise.
45806         * doc/posix-functions/wmemchr.texi: Likewise.
45807         * doc/posix-functions/wmemcmp.texi: Likewise.
45808         * doc/posix-functions/wmemcpy.texi: Likewise.
45809         * doc/posix-functions/wmemmove.texi: Likewise.
45810         * doc/posix-functions/wmemset.texi: Likewise.
45811         * doc/posix-functions/wprintf.texi: Likewise.
45812         * doc/posix-functions/wscanf.texi: Likewise.
45813
45814 2008-12-21  Bruno Haible  <bruno@clisp.org>
45815
45816         Update doc for HP-UX 11.11.
45817         * doc/posix-functions/btowc.texi: Clarify that the function is missing
45818         in HP-UX version 11.00, not in all versions of HP-UX 11.
45819         * doc/posix-functions/fwide.texi: Likewise.
45820         * doc/posix-functions/fwprintf.texi: Likewise.
45821         * doc/posix-functions/fwscanf.texi: Likewise.
45822         * doc/posix-functions/inet_ntop.texi: Likewise.
45823         * doc/posix-functions/inet_pton.texi: Likewise.
45824         * doc/posix-functions/mbrlen.texi: Likewise.
45825         * doc/posix-functions/mbrtowc.texi: Likewise.
45826         * doc/posix-functions/mbsinit.texi: Likewise.
45827         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45828         * doc/posix-functions/swprintf.texi: Likewise.
45829         * doc/posix-functions/swscanf.texi: Likewise.
45830         * doc/posix-functions/towctrans.texi: Likewise.
45831         * doc/posix-functions/vfwprintf.texi: Likewise.
45832         * doc/posix-functions/vswprintf.texi: Likewise.
45833         * doc/posix-functions/vwprintf.texi: Likewise.
45834         * doc/posix-functions/wcrtomb.texi: Likewise.
45835         * doc/posix-functions/wcsrtombs.texi: Likewise.
45836         * doc/posix-functions/wcsstr.texi: Likewise.
45837         * doc/posix-functions/wctob.texi: Likewise.
45838         * doc/posix-functions/wctrans.texi: Likewise.
45839         * doc/posix-functions/wmemchr.texi: Likewise.
45840         * doc/posix-functions/wmemcmp.texi: Likewise.
45841         * doc/posix-functions/wmemcpy.texi: Likewise.
45842         * doc/posix-functions/wmemmove.texi: Likewise.
45843         * doc/posix-functions/wmemset.texi: Likewise.
45844         * doc/posix-functions/wprintf.texi: Likewise.
45845         * doc/posix-functions/wscanf.texi: Likewise.
45846
45847 2008-12-21  Bruno Haible  <bruno@clisp.org>
45848
45849         Work around a portability problem.
45850         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
45851         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
45852
45853 2008-12-20  Bruno Haible  <bruno@clisp.org>
45854
45855         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
45856         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
45857         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
45858         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
45859         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
45860
45861         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
45862         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
45863         set.
45864         (GNULIB_defined_mbstate_t): New macro.
45865         (mbsinit): Redefine if REPLACE_MBSINIT is set.
45866         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
45867         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
45868         reuses the system's mbrtowc function but works around the bugs.
45869         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
45870         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
45871         macros.
45872         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
45873         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
45874         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
45875         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
45876         REPLACE_MBSINIT if mbsinit needs to be overridden.
45877         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
45878         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45879         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
45880         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45881         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45882         m4/locale-zh.m4.
45883         (Depends): Add mbsinit.
45884         * modules/mbsinit (Depends): Add mbrtowc.
45885         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
45886
45887 2008-12-20  Bruno Haible  <bruno@clisp.org>
45888
45889         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
45890         so that there are no conversion errors on AIX.
45891         * tests/test-mbsrtowcs.c (main): LIkewise.
45892
45893 2008-12-20  Bruno Haible  <bruno@clisp.org>
45894
45895         Work around wctob bug on Solaris <= 9.
45896         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
45897         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
45898         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
45899         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
45900         * modules/wctob (Files): Add m4/locale-fr.m4.
45901         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
45902
45903 2008-12-20  Bruno Haible  <bruno@clisp.org>
45904
45905         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
45906         /dev/null.
45907         * tests/test-select-in.sh: Likewise.
45908         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45909
45910 2008-12-20  Bruno Haible  <bruno@clisp.org>
45911
45912         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
45913         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
45914         Cygwin 1.5.x.
45915
45916 2008-12-20  Bruno Haible  <bruno@clisp.org>
45917
45918         Ensure mbstate_t is defined on HP-UX 11.11.
45919         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
45920         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
45921         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
45922         AC_USE_SYSTEM_EXTENSIONS.
45923         * modules/fnmatch (Depends-on): Add extensions.
45924         * modules/mbrlen (Depends-on): Likewise.
45925         * modules/mbrtowc (Depends-on): Likewise.
45926         * modules/mbsinit (Depends-on): Likewise.
45927         * modules/mbsrtowcs (Depends-on): Likewise.
45928         * modules/mbswidth (Depends-on): Likewise.
45929         * modules/quotearg (Depends-on): Likewise.
45930         * modules/strftime (Depends-on): Likewise.
45931
45932 2008-12-20  Bruno Haible  <bruno@clisp.org>
45933
45934         Ensure wctob is declared on IRIX 6.5.
45935         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
45936         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
45937         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
45938         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
45939         of HAVE_WCTOB.
45940         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
45941         HAVE_WCTOB.
45942         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
45943
45944 2008-12-19  Bruno Haible  <bruno@clisp.org>
45945
45946         * modules/mbsrtowcs-tests: New file.
45947         * tests/test-mbsrtowcs1.sh: New file.
45948         * tests/test-mbsrtowcs2.sh: New file.
45949         * tests/test-mbsrtowcs3.sh: New file.
45950         * tests/test-mbsrtowcs4.sh: New file.
45951         * tests/test-mbsrtowcs.c: New file.
45952
45953         New module 'mbsrtowcs'.
45954         * lib/wchar.in.h (mbsrtowcs): New declaration.
45955         * lib/mbsrtowcs.c: New file.
45956         * m4/mbsrtowcs.m4: New file.
45957         * modules/mbsrtowcs: New file.
45958         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
45959         HAVE_MBSRTOWCS.
45960         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
45961         HAVE_MBSRTOWCS.
45962         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
45963
45964 2008-12-19  Bruno Haible  <bruno@clisp.org>
45965
45966         New module 'mbrlen'.
45967         * lib/wchar.in.h (mbrlen): New declaration.
45968         * lib/mbrlen.c: New file.
45969         * m4/mbrlen.m4: New file.
45970         * modules/mbrlen: New file.
45971         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
45972         HAVE_MBRLEN.
45973         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
45974         HAVE_MBRLEN.
45975         * doc/posix-functions/mbrlen.texi: Document the new module.
45976
45977 2008-12-19  Bruno Haible  <bruno@clisp.org>
45978
45979         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
45980         * modules/mbrtowc (Depends-on): Add verify.
45981         Suggested by Paul Eggert.
45982
45983 2008-12-18  Bruno Haible  <bruno@clisp.org>
45984
45985         * modules/mbsinit-tests: New file.
45986         * tests/test-mbsinit.sh: New file.
45987         * tests/test-mbsinit.c: New file.
45988
45989 2008-12-18  Bruno Haible  <bruno@clisp.org>
45990
45991         * modules/mbrtowc-tests: New file.
45992         * tests/test-mbrtowc1.sh: New file.
45993         * tests/test-mbrtowc2.sh: New file.
45994         * tests/test-mbrtowc3.sh: New file.
45995         * tests/test-mbrtowc4.sh: New file.
45996         * tests/test-mbrtowc.c: New file.
45997
45998         New module 'mbrtowc'.
45999         * lib/wchar.in.h (mbstate_t): Override when the system does not have
46000         mbsinit and mbrtowc.
46001         (mbrtowc): New declaration.
46002         * lib/mbrtowc.c: New file.
46003         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
46004         * modules/mbrtowc: New file.
46005         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
46006         HAVE_MBRTOWC.
46007         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
46008         HAVE_MBRTOWC.
46009         * doc/posix-functions/mbrtowc.texi: Document the new module.
46010
46011 2008-12-18  Bruno Haible  <bruno@clisp.org>
46012
46013         New module 'wctob'.
46014         * lib/wchar.in.h (wctob): New declaration.
46015         * lib/wctob.c: New file.
46016         * m4/wctob.m4: New file.
46017         * modules/wctob: New file.
46018         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
46019         HAVE_WCTOB.
46020         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
46021         * doc/posix-functions/wctob.texi: Document the new module.
46022
46023 2008-12-18  Bruno Haible  <bruno@clisp.org>
46024
46025         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
46026         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
46027
46028 2008-12-18  Simon Josefsson  <simon@josefsson.org>
46029
46030         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
46031         G. Christensen" <tgc@jupiterrise.com>.
46032
46033         * lib/flock.c: Need to include errno.h.  Reported by "Tom
46034         G. Christensen" <tgc@jupiterrise.com>.
46035
46036         * lib/flock.c: Need to include string.h.  Reported by "Tom
46037         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
46038         <ebb9@byu.net>.
46039
46040 2008-12-18  Bruno Haible  <bruno@clisp.org>
46041
46042         * m4/locale-ja.m4: New file, from GNU gettext.
46043
46044 2008-12-17  Bruno Haible  <bruno@clisp.org>
46045
46046         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
46047         Suggested by Eric Blake.
46048
46049 2008-12-17  Bruno Haible  <bruno@clisp.org>
46050
46051         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
46052
46053 2008-12-17  Bruno Haible  <bruno@clisp.org>
46054
46055         * lib/mbsinit.c: Include verify.h. Verify an assumption.
46056         * modules/mbsinit (Depends-on): Add verify.
46057         Suggested by Paul Eggert.
46058
46059 2008-12-17  Bruno Haible  <bruno@clisp.org>
46060
46061         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
46062         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
46063         gl_FUNC_MBRTOWC.
46064         * m4/mbiter.m4 (gl_MBITER): LIkewise.
46065         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
46066         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
46067         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
46068         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
46069         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
46070         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
46071         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
46072         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
46073         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
46074         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
46075         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
46076         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
46077         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
46078         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
46079         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46080         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
46081         * modules/trim (configure.ac): Likewise.
46082
46083 2008-12-17  Bruno Haible  <bruno@clisp.org>
46084
46085         * modules/btowc-tests: New file.
46086         * tests/test-btowc1.sh: New file.
46087         * tests/test-btowc2.sh: New file.
46088         * tests/test-btowc.c: New file.
46089
46090         New module 'btowc'.
46091         * lib/wchar.in.h (btowc): New declaration.
46092         * lib/btowc.c: New file.
46093         * m4/btowc.m4: New file.
46094         * modules/btowc: New file.
46095         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
46096         HAVE_BTOWC.
46097         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
46098         * doc/posix-functions/btowc.texi: Document the new module.
46099
46100 2008-12-17  Bruno Haible  <bruno@clisp.org>
46101
46102         New module 'mbsinit'.
46103         * lib/wchar.in.h (mbsinit): New declaration.
46104         * lib/mbsinit.c: New file.
46105         * m4/mbsinit.m4: New file.
46106         * modules/mbsinit: New file.
46107         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
46108         HAVE_MBSINIT.
46109         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
46110         HAVE_MBSINIT.
46111         * doc/posix-functions/mbsinit.texi: Document the new module.
46112
46113 2008-12-16  Bruno Haible  <bruno@clisp.org>
46114
46115         * lib/unistd.in.h: Add comment.
46116         * tests/test-environ.c: Don't include <stdlib.h>.
46117
46118 2008-12-16  Bruno Haible  <bruno@clisp.org>
46119
46120         * lib/parse-duration.h (parse_duration): Document return value
46121         convention.
46122         * lib/parse-duration.c: Include specification header first. Add
46123         comments.
46124         (_): Remove macro.
46125         (parse_year_month_day, parse_hour_minute_second): Move side effects
46126         outside of strchr call.
46127         (parse_non_iso8601): Move side effects outside of isspace call.
46128         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
46129         call.
46130
46131 2008-12-16  Bruno Haible  <bruno@clisp.org>
46132
46133         * tests/test-parse-duration.sh: Produce no output when the test
46134         succeeds.
46135
46136 2008-12-16  Bruno Haible  <bruno@clisp.org>
46137
46138         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
46139         expressions.
46140
46141 2008-12-15  Bruno Haible  <bruno@clisp.org>
46142
46143         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
46144         * doc/glibc-functions/flistxattr.texi: Likewise.
46145         * doc/glibc-functions/fopencookie.texi: Likewise.
46146         * doc/glibc-functions/fremovexattr.texi: Likewise.
46147         * doc/glibc-functions/fsetxattr.texi: Likewise.
46148         * doc/glibc-functions/getxattr.texi: Likewise.
46149         * doc/glibc-functions/lgetxattr.texi: Likewise.
46150         * doc/glibc-functions/listxattr.texi: Likewise.
46151         * doc/glibc-functions/llistxattr.texi: Likewise.
46152         * doc/glibc-functions/lremovexattr.texi: Likewise.
46153         * doc/glibc-functions/lsetxattr.texi: Likewise.
46154         * doc/glibc-functions/removexattr.texi: Likewise.
46155         * doc/glibc-functions/setxattr.texi: Likewise.
46156         * doc/posix-functions/open_memstream.texi: Likewise.
46157
46158 2008-12-15  Eric Blake  <ebb9@byu.net>
46159
46160         Update doc for cygwin 1.7.
46161         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
46162         functions.
46163         * doc/posix-functions/fchmodat.texi: Likewise.
46164         * doc/posix-functions/fchownat.texi: Likewise.
46165         * doc/posix-functions/fdopendir.texi: Likewise.
46166         * doc/posix-functions/fmemopen.texi: Likewise.
46167         * doc/posix-functions/freeaddrinfo.texi: Likewise.
46168         * doc/posix-functions/fstatat.texi: Likewise.
46169         * doc/posix-functions/futimens.texi: Likewise.
46170         * doc/posix-functions/gai_strerror.texi: Likewise.
46171         * doc/posix-functions/getaddrinfo.texi: Likewise.
46172         * doc/posix-functions/getnameinfo.texi: Likewise.
46173         * doc/posix-functions/if_freenameindex.texi: Likewise.
46174         * doc/posix-functions/if_indextoname.texi: Likewise.
46175         * doc/posix-functions/if_nameindex.texi: Likewise.
46176         * doc/posix-functions/if_nametoindex.texi: Likewise.
46177         * doc/posix-functions/insque.texi: Likewise.
46178         * doc/posix-functions/linkat.texi: Likewise.
46179         * doc/posix-functions/llrint.texi: Likewise.
46180         * doc/posix-functions/llrintf.texi: Likewise.
46181         * doc/posix-functions/llrintl.texi: Likewise.
46182         * doc/posix-functions/lockf.texi: Likewise.
46183         * doc/posix-functions/lrintl.texi: Likewise.
46184         * doc/posix-functions/mkdirat.texi: Likewise.
46185         * doc/posix-functions/mkfifoat.texi: Likewise.
46186         * doc/posix-functions/mknodat.texi: Likewise.
46187         * doc/posix-functions/mq_close.texi: Likewise.
46188         * doc/posix-functions/mq_getattr.texi: Likewise.
46189         * doc/posix-functions/mq_notify.texi: Likewise.
46190         * doc/posix-functions/mq_open.texi: Likewise.
46191         * doc/posix-functions/mq_receive.texi: Likewise.
46192         * doc/posix-functions/mq_send.texi: Likewise.
46193         * doc/posix-functions/mq_setattr.texi: Likewise.
46194         * doc/posix-functions/mq_timedreceive.texi: Likewise.
46195         * doc/posix-functions/mq_timedsend.texi: Likewise.
46196         * doc/posix-functions/mq_unlink.texi: Likewise.
46197         * doc/posix-functions/open_memstream.texi: Likewise.
46198         * doc/posix-functions/openat.texi: Likewise.
46199         * doc/posix-functions/posix_fadvise.texi: Likewise.
46200         * doc/posix-functions/posix_fallocate.texi: Likewise.
46201         * doc/posix-functions/posix_madvise.texi: Likewise.
46202         * doc/posix-functions/posix_memalign.texi: Likewise.
46203         * doc/posix-functions/posix_openpt.texi: Likewise.
46204         * doc/posix-functions/readlinkat.texi: Likewise.
46205         * doc/posix-functions/remque.texi: Likewise.
46206         * doc/posix-functions/renameat.texi: Likewise.
46207         * doc/posix-functions/rintl.texi: Likewise.
46208         * doc/posix-functions/sem_unlink.texi: Likewise.
46209         * doc/posix-functions/shm_open.texi: Likewise.
46210         * doc/posix-functions/shm_unlink.texi: Likewise.
46211         * doc/posix-functions/signgam.texi: Likewise.
46212         * doc/posix-functions/sigset.texi: Likewise.
46213         * doc/posix-functions/stpcpy.texi: Likewise.
46214         * doc/posix-functions/stpncpy.texi: Likewise.
46215         * doc/posix-functions/strerror.texi: Likewise.
46216         * doc/posix-functions/strtod.texi: Likewise.
46217         * doc/posix-functions/symlinkat.texi: Likewise.
46218         * doc/posix-functions/unlinkat.texi: Likewise.
46219         * doc/posix-functions/utimensat.texi: Likewise.
46220         * doc/glibc-functions/bindresvport.texi: Likewise.
46221         * doc/glibc-functions/dn_expand.texi: Likewise.
46222         * doc/glibc-functions/exp10.texi: Likewise.
46223         * doc/glibc-functions/exp10f.texi: Likewise.
46224         * doc/glibc-functions/fgetxattr.texi: Likewise.
46225         * doc/glibc-functions/flistxattr.texi: Likewise.
46226         * doc/glibc-functions/fopencookie.texi: Likewise.
46227         * doc/glibc-functions/freeifaddrs.texi: Likewise.
46228         * doc/glibc-functions/fremovexattr.texi: Likewise.
46229         * doc/glibc-functions/fsetxattr.texi: Likewise.
46230         * doc/glibc-functions/getifaddrs.texi: Likewise.
46231         * doc/glibc-functions/getxattr.texi: Likewise.
46232         * doc/glibc-functions/lgetxattr.texi: Likewise.
46233         * doc/glibc-functions/listxattr.texi: Likewise.
46234         * doc/glibc-functions/llistxattr.texi: Likewise.
46235         * doc/glibc-functions/lremovexattr.texi: Likewise.
46236         * doc/glibc-functions/lsetxattr.texi: Likewise.
46237         * doc/glibc-functions/pow10.texi: Likewise.
46238         * doc/glibc-functions/pow10f.texi: Likewise.
46239         * doc/glibc-functions/rcmd_af.texi: Likewise.
46240         * doc/glibc-functions/removexattr.texi: Likewise.
46241         * doc/glibc-functions/res_init.texi: Likewise.
46242         * doc/glibc-functions/res_mkquery.texi: Likewise.
46243         * doc/glibc-functions/res_query.texi: Likewise.
46244         * doc/glibc-functions/res_querydomain.texi: Likewise.
46245         * doc/glibc-functions/res_send.texi: Likewise.
46246         * doc/glibc-functions/rresvport_af.texi: Likewise.
46247         * doc/glibc-functions/setxattr.texi: Likewise.
46248         * doc/glibc-functions/strcasestr.texi: Likewise.
46249
46250 2008-12-15  Bruno Haible  <bruno@clisp.org>
46251
46252         Fix compilation error on OSF/1 4.0.
46253         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
46254         <sys/time.h>, simply delegate to the system header.
46255         Reported by Daniel Richard G. <oss@teragram.com>.
46256
46257 2008-12-15  Bruno Haible  <bruno@clisp.org>
46258
46259         * doc/posix-functions/openat.texi: Mention the 'openat' module.
46260         * doc/posix-functions/fchmodat.texi: Likewise.
46261         * doc/posix-functions/fchownat.texi: Likewise.
46262         * doc/posix-functions/fdopendir.texi: Likewise.
46263         * doc/posix-functions/fstatat.texi: Likewise.
46264         * doc/posix-functions/mkdirat.texi: Likewise.
46265         * doc/posix-functions/unlinkat.texi: Likewise.
46266
46267 2008-12-14  Bruno Haible  <bruno@clisp.org>
46268
46269         Update doc for POSIX:2008.
46270         * doc/posix-functions/faccessat.texi: New file.
46271         * doc/posix-functions/fchmodat.texi: New file.
46272         * doc/posix-functions/fchownat.texi: New file.
46273         * doc/posix-functions/fdopendir.texi: New file.
46274         * doc/posix-functions/fstatat.texi: New file.
46275         * doc/posix-functions/futimens.texi: New file.
46276         * doc/posix-functions/linkat.texi: New file.
46277         * doc/posix-functions/mkdirat.texi: New file.
46278         * doc/posix-functions/mkfifoat.texi: New file.
46279         * doc/posix-functions/mknodat.texi: New file.
46280         * doc/posix-functions/open_wmemstream.texi: New file.
46281         * doc/posix-functions/openat.texi: New file.
46282         * doc/posix-functions/psiginfo.texi: New file.
46283         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
46284         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
46285         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
46286         * doc/posix-functions/readlinkat.texi: New file.
46287         * doc/posix-functions/renameat.texi: New file.
46288         * doc/posix-functions/strerror_l.texi: New file.
46289         * doc/posix-functions/symlinkat.texi: New file.
46290         * doc/posix-functions/unlinkat.texi: New file.
46291         * doc/posix-functions/utimensat.texi: New file.
46292         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46293
46294 2008-12-14  Bruno Haible  <bruno@clisp.org>
46295
46296         Update doc for POSIX:2008.
46297         * doc/posix-functions/alphasort.texi: Renamed from
46298         doc/glibc-functions/alphasort.texi.
46299         * doc/posix-functions/dirfd.texi: Renamed from
46300         doc/glibc-functions/dirfd.texi.
46301         * doc/posix-functions/dprintf.texi: Renamed from
46302         doc/glibc-functions/dprintf.texi.
46303         * doc/posix-functions/duplocale.texi: Renamed from
46304         doc/glibc-functions/duplocale.texi.
46305         * doc/posix-functions/fexecve.texi: Renamed from
46306         doc/glibc-functions/fexecve.texi.
46307         * doc/posix-functions/fmemopen.texi: Renamed from
46308         doc/glibc-functions/fmemopen.texi.
46309         * doc/posix-functions/freelocale.texi: Renamed from
46310         doc/glibc-functions/freelocale.texi.
46311         * doc/posix-functions/getdate_err.texi: Renamed from
46312         doc/glibc-functions/getdate_err.texi.
46313         * doc/posix-functions/isalnum_l.texi: Renamed from
46314         doc/glibc-functions/isalnum_l.texi.
46315         * doc/posix-functions/isalpha_l.texi: Renamed from
46316         doc/glibc-functions/isalpha_l.texi.
46317         * doc/posix-functions/isblank_l.texi: Renamed from
46318         doc/glibc-functions/isblank_l.texi.
46319         * doc/posix-functions/iscntrl_l.texi: Renamed from
46320         doc/glibc-functions/iscntrl_l.texi.
46321         * doc/posix-functions/isdigit_l.texi: Renamed from
46322         doc/glibc-functions/isdigit_l.texi.
46323         * doc/posix-functions/isgraph_l.texi: Renamed from
46324         doc/glibc-functions/isgraph_l.texi.
46325         * doc/posix-functions/islower_l.texi: Renamed from
46326         doc/glibc-functions/islower_l.texi.
46327         * doc/posix-functions/isprint_l.texi: Renamed from
46328         doc/glibc-functions/isprint_l.texi.
46329         * doc/posix-functions/ispunct_l.texi: Renamed from
46330         doc/glibc-functions/ispunct_l.texi.
46331         * doc/posix-functions/isspace_l.texi: Renamed from
46332         doc/glibc-functions/isspace_l.texi.
46333         * doc/posix-functions/isupper_l.texi: Renamed from
46334         doc/glibc-functions/isupper_l.texi.
46335         * doc/posix-functions/iswalnum_l.texi: Renamed from
46336         doc/glibc-functions/iswalnum_l.texi.
46337         * doc/posix-functions/iswalpha_l.texi: Renamed from
46338         doc/glibc-functions/iswalpha_l.texi.
46339         * doc/posix-functions/iswblank_l.texi: Renamed from
46340         doc/glibc-functions/iswblank_l.texi.
46341         * doc/posix-functions/iswcntrl_l.texi: Renamed from
46342         doc/glibc-functions/iswcntrl_l.texi.
46343         * doc/posix-functions/iswctype_l.texi: Renamed from
46344         doc/glibc-functions/iswctype_l.texi.
46345         * doc/posix-functions/iswdigit_l.texi: Renamed from
46346         doc/glibc-functions/iswdigit_l.texi.
46347         * doc/posix-functions/iswgraph_l.texi: Renamed from
46348         doc/glibc-functions/iswgraph_l.texi.
46349         * doc/posix-functions/iswlower_l.texi: Renamed from
46350         doc/glibc-functions/iswlower_l.texi.
46351         * doc/posix-functions/iswprint_l.texi: Renamed from
46352         doc/glibc-functions/iswprint_l.texi.
46353         * doc/posix-functions/iswpunct_l.texi: Renamed from
46354         doc/glibc-functions/iswpunct_l.texi.
46355         * doc/posix-functions/iswspace_l.texi: Renamed from
46356         doc/glibc-functions/iswspace_l.texi.
46357         * doc/posix-functions/iswupper_l.texi: Renamed from
46358         doc/glibc-functions/iswupper_l.texi.
46359         * doc/posix-functions/iswxdigit_l.texi: Renamed from
46360         doc/glibc-functions/iswxdigit_l.texi.
46361         * doc/posix-functions/isxdigit_l.texi: Renamed from
46362         doc/glibc-functions/isxdigit_l.texi.
46363         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
46364         doc/glibc-functions/mbsnrtowcs.texi.
46365         * doc/posix-functions/mkdtemp.texi: Renamed from
46366         doc/glibc-functions/mkdtemp.texi.
46367         * doc/posix-functions/newlocale.texi: Renamed from
46368         doc/glibc-functions/newlocale.texi.
46369         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
46370         doc/glibc-functions/nl_langinfo_l.texi.
46371         * doc/posix-functions/open_memstream.texi: Renamed from
46372         doc/glibc-functions/open_memstream.texi.
46373         * doc/posix-functions/opterr.texi: Renamed from
46374         doc/glibc-functions/opterr.texi.
46375         * doc/posix-functions/optind.texi: Renamed from
46376         doc/glibc-functions/optind.texi.
46377         * doc/posix-functions/optopt.texi: Renamed from
46378         doc/glibc-functions/optopt.texi.
46379         * doc/posix-functions/psignal.texi: Renamed from
46380         doc/glibc-functions/psignal.texi.
46381         * doc/posix-functions/scandir.texi: Renamed from
46382         doc/glibc-functions/scandir.texi.
46383         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
46384         doc/glibc-functions/sched_get_priority_min.texi.
46385         * doc/posix-functions/signgam.texi: Renamed from
46386         doc/glibc-functions/signgam.texi.
46387         * doc/posix-functions/stpcpy.texi: Renamed from
46388         doc/glibc-functions/stpcpy.texi.
46389         * doc/posix-functions/stpncpy.texi: Renamed from
46390         doc/glibc-functions/stpncpy.texi.
46391         * doc/posix-functions/strcasecmp_l.texi: Renamed from
46392         doc/glibc-functions/strcasecmp_l.texi.
46393         * doc/posix-functions/strcoll_l.texi: Renamed from
46394         doc/glibc-functions/strcoll_l.texi.
46395         * doc/posix-functions/strfmon_l.texi: Renamed from
46396         doc/glibc-functions/strfmon_l.texi.
46397         * doc/posix-functions/strftime_l.texi: Renamed from
46398         doc/glibc-functions/strftime_l.texi.
46399         * doc/posix-functions/strncasecmp_l.texi: Renamed from
46400         doc/glibc-functions/strncasecmp_l.texi.
46401         * doc/posix-functions/strndup.texi: Renamed from
46402         doc/glibc-functions/strndup.texi.
46403         * doc/posix-functions/strnlen.texi: Renamed from
46404         doc/glibc-functions/strnlen.texi.
46405         * doc/posix-functions/strsignal.texi: Renamed from
46406         doc/glibc-functions/strsignal.texi.
46407         * doc/posix-functions/strxfrm_l.texi: Renamed from
46408         doc/glibc-functions/strxfrm_l.texi.
46409         * doc/posix-functions/timer_gettime.texi: Renamed from
46410         doc/glibc-functions/timer_gettime.texi.
46411         * doc/posix-functions/tolower_l.texi: Renamed from
46412         doc/glibc-functions/tolower_l.texi.
46413         * doc/posix-functions/toupper_l.texi: Renamed from
46414         doc/glibc-functions/toupper_l.texi.
46415         * doc/posix-functions/towctrans_l.texi: Renamed from
46416         doc/glibc-functions/towctrans_l.texi.
46417         * doc/posix-functions/towlower_l.texi: Renamed from
46418         doc/glibc-functions/towlower_l.texi.
46419         * doc/posix-functions/towupper_l.texi: Renamed from
46420         doc/glibc-functions/towupper_l.texi.
46421         * doc/posix-functions/uselocale.texi: Renamed from
46422         doc/glibc-functions/uselocale.texi.
46423         * doc/posix-functions/vdprintf.texi: Renamed from
46424         doc/glibc-functions/vdprintf.texi.
46425         * doc/posix-functions/wcpcpy.texi:
46426         Renamed from doc/glibc-functions/wcpcpy.texi.
46427         * doc/posix-functions/wcpncpy.texi: Renamed from
46428         doc/glibc-functions/wcpncpy.texi.
46429         * doc/posix-functions/wcscasecmp.texi: Renamed from
46430         doc/glibc-functions/wcscasecmp.texi.
46431         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
46432         doc/glibc-functions/wcscasecmp_l.texi.
46433         * doc/posix-functions/wcscoll_l.texi: Renamed from
46434         doc/glibc-functions/wcscoll_l.texi.
46435         * doc/posix-functions/wcsdup.texi: Renamed from
46436         doc/glibc-functions/wcsdup.texi.
46437         * doc/posix-functions/wcsncasecmp.texi: Renamed from
46438         doc/glibc-functions/wcsncasecmp.texi.
46439         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
46440         doc/glibc-functions/wcsncasecmp_l.texi.
46441         * doc/posix-functions/wcsnlen.texi: Renamed from
46442         doc/glibc-functions/wcsnlen.texi.
46443         * doc/posix-functions/wcsnrtombs.texi: Renamed from
46444         doc/glibc-functions/wcsnrtombs.texi.
46445         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
46446         doc/glibc-functions/wcsxfrm_l.texi.
46447         * doc/posix-functions/wctrans_l.texi: Renamed from
46448         doc/glibc-functions/wctrans_l.texi.
46449         * doc/posix-functions/wctype_l.texi: Renamed from
46450         doc/glibc-functions/wctype_l.texi.
46451         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46452         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
46453         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
46454         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
46455         these subsections.
46456         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
46457         Remove sections.
46458
46459 2008-12-14  Bruno Haible  <bruno@clisp.org>
46460
46461         Update doc for POSIX:2008.
46462         * doc/posix-functions/*.texi: Update URL of POSIX specification.
46463
46464 2008-12-14  Bruno Haible  <bruno@clisp.org>
46465
46466         Update doc for POSIX:2008.
46467         * doc/pastposix-functions/bcmp.texi: Renamed from
46468         doc/posix-functions/bcmp.texi.
46469         * doc/pastposix-functions/bcopy.texi: Renamed from
46470         doc/posix-functions/bcopy.texi.
46471         * doc/pastposix-functions/bsd_signal.texi: Renamed from
46472         doc/posix-functions/bsd_signal.texi.
46473         * doc/pastposix-functions/bzero.texi: Renamed from
46474         doc/posix-functions/bzero.texi.
46475         * doc/pastposix-functions/ecvt.texi: Renamed from
46476         doc/posix-functions/ecvt.texi.
46477         * doc/pastposix-functions/fcvt.texi: Renamed from
46478         doc/posix-functions/fcvt.texi.
46479         * doc/pastposix-functions/ftime.texi: Renamed from
46480         doc/posix-functions/ftime.texi.
46481         * doc/pastposix-functions/gcvt.texi: Renamed from
46482         doc/posix-functions/gcvt.texi.
46483         * doc/pastposix-functions/getcontext.texi: Renamed from
46484         doc/posix-functions/getcontext.texi.
46485         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
46486         doc/posix-functions/gethostbyaddr.texi.
46487         * doc/pastposix-functions/gethostbyname.texi: Renamed from
46488         doc/posix-functions/gethostbyname.texi.
46489         * doc/pastposix-functions/getwd.texi: Renamed from
46490         doc/posix-functions/getwd.texi.
46491         * doc/pastposix-functions/h_errno.texi: Renamed from
46492         doc/posix-functions/h_errno.texi.
46493         * doc/pastposix-functions/index.texi: Renamed from
46494         doc/posix-functions/index.texi.
46495         * doc/pastposix-functions/makecontext.texi: Renamed from
46496         doc/posix-functions/makecontext.texi.
46497         * doc/pastposix-functions/mktemp.texi: Renamed from
46498         doc/posix-functions/mktemp.texi.
46499         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
46500         doc/posix-functions/pthread_attr_getstackaddr.texi.
46501         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
46502         doc/posix-functions/pthread_attr_setstackaddr.texi.
46503         * doc/pastposix-functions/rindex.texi: Renamed from
46504         doc/posix-functions/rindex.texi.
46505         * doc/pastposix-functions/scalb.texi: Renamed from
46506         doc/posix-functions/scalb.texi.
46507         * doc/pastposix-functions/setcontext.texi: Renamed from
46508         doc/posix-functions/setcontext.texi.
46509         * doc/pastposix-functions/swapcontext.texi: Renamed from
46510         doc/posix-functions/swapcontext.texi.
46511         * doc/pastposix-functions/ualarm.texi: Renamed from
46512         doc/posix-functions/ualarm.texi.
46513         * doc/pastposix-functions/usleep.texi: Renamed from
46514         doc/posix-functions/usleep.texi.
46515         * doc/pastposix-functions/vfork.texi: Renamed from
46516         doc/posix-functions/vfork.texi.
46517         * doc/pastposix-functions/wcswcs.texi: Renamed from
46518         doc/posix-functions/wcswcs.texi.
46519         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
46520         (Function Substitutes): Update.
46521
46522 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46523
46524         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
46525         m4/strerror.m4.
46526
46527 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46528             Bruno Haible  <bruno@clisp.org>
46529
46530         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
46531
46532 2008-12-13  Bruno Haible  <bruno@clisp.org>
46533
46534         * modules/strtoull (Depends-on): Remove unistd.
46535
46536 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46537
46538         * modules/strtoull (Depends-on): Add stdlib.
46539
46540 2008-12-11  Simon Josefsson  <simon@josefsson.org>
46541
46542         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
46543
46544 2008-12-10  Jim Meyering  <meyering@redhat.com>
46545
46546         gl_ASSERT: don't say assertions are disabled when they're not
46547         * m4/assert.m4 (gl_ASSERT): Do not make configure report
46548         "checking whether to enable assertions... no", when they are in
46549         fact enabled.  This is solely a bug in the output of configure.
46550         In spite of saying "no", NDEBUG was not defined in that case.
46551         Also, as noted by Eric Blake, leave assertions enabled upon
46552         --enable-assert=INVALID.
46553
46554 2008-12-10  Bruno Haible  <bruno@clisp.org>
46555
46556         Change MODULES.html to refer to POSIX:2008 where possible.
46557         * MODULES.html.sh (POSIX2008_URL): New variable.
46558         (posix_headers): Remove sys/timeb, ucontext.
46559         (posix2001_headers): New variable.
46560         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
46561         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
46562         index, makecontext, mktemp, pthread_attr_getstackaddr,
46563         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
46564         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
46565         (posix2001_functions): New variable.
46566         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
46567         otherwise.
46568
46569 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46570
46571         add missing include to parse-duration.c
46572         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
46573         * modules/parse-duration (Depends-on): Add xalloc.
46574
46575         fix sed script reading maint.mk
46576         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
46577         (syntax-check-rules): Use it.
46578
46579 2008-12-09  Bruno Haible  <bruno@clisp.org>
46580
46581         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
46582         MacOS X 10.4/PowerPC.
46583         Reported by Simon Josefsson.
46584
46585 2008-12-08  Jim Meyering  <meyering@redhat.com>
46586
46587         work around mingw's lack of some S_IF definitions
46588         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
46589         Reported by Simon Josefsson.
46590
46591 2008-12-08  Bruno Haible  <bruno@clisp.org>
46592
46593         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
46594         applied to variables. Needed on MacOS X 10.4/PowerPC.
46595         Reported by Simon Josefsson.
46596
46597 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
46598         and Eric Blake  <ebb9@byu.net>
46599
46600         assert: honor --enable-assert
46601         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
46602         order to honor --enable-assert, rather than treating it as a
46603         synonym for --disable-assert.
46604
46605 2008-12-08  Jim Meyering  <meyering@redhat.com>
46606
46607         * lib/posixtm.c: Remove now-useless declaration of mktime.
46608
46609         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
46610
46611 2008-12-07  Bruno Haible  <bruno@clisp.org>
46612
46613         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
46614         test_once): Mark functions as static.
46615         * tests/test-tls.c (test_tls): Likewise.
46616
46617 2008-12-07  Bruno Haible  <bruno@clisp.org>
46618
46619         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
46620         iconv_register_autodetect.
46621
46622 2008-12-07  Jim Meyering  <meyering@redhat.com>
46623
46624         posixtm.c: avoid a warning
46625         * lib/posixtm.c (posixtime): Don't initialize tm0.
46626         It's no longer needed to placate gcc4's -Wuninitialized,
46627         and the attempt to placate would elicit a new warning.
46628
46629         unicodeio.c: mark unused parameters
46630         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46631         (fallback_failure_callback): Likewise.
46632
46633 2008-12-07  Bruno Haible  <bruno@clisp.org>
46634
46635         * gnulib-tool (func_create_testdir): When building the tests
46636         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
46637         Reported by Simon Josefsson.
46638
46639 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46640
46641         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
46642
46643 2008-12-06  Bruno Haible  <bruno@clisp.org>
46644
46645         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
46646         Suggested by Eric Blake.
46647
46648 2008-12-06  Bruno Haible  <bruno@clisp.org>
46649
46650         Fix a c-stack test failure on MacOS X.
46651         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
46652         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
46653         handler for SIGBUS as well.
46654         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
46655         install a signal handler for SIGBUS as well.
46656         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
46657
46658 2008-12-06  Bruno Haible  <bruno@clisp.org>
46659
46660         Advocacy documentation.
46661         * doc/gnulib-intro.texi (Benefits): New section.
46662         * doc/gnulib.texi: Update.
46663
46664 2008-12-06  Bruno Haible  <bruno@clisp.org>
46665
46666         Document the 'manywarnings' module.
46667         * doc/manywarnings.texi: New file.
46668         * doc/gnulib.texi: Include it.
46669
46670 2008-12-05  Eric Blake  <ebb9@byu.net>
46671
46672         tests: silence some gcc warnings
46673         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
46674         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
46675         type mismatches.
46676
46677 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46678             Bruno Haible  <bruno@clisp.org>
46679
46680         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
46681
46682 2008-11-29  Jim Meyering  <meyering@redhat.com>
46683
46684         unicodeio.c: mark unused parameters
46685         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46686         (fallback_failure_callback): Likewise.
46687
46688         fts: fix a thinko
46689         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
46690         (set_stat_type): Return S_IF*-valued "type" directly.
46691         Prompted by James Youngman's spotting a related bug.
46692         Confirmed by further testing through find.
46693
46694         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
46695         * lib/fts.c (D_TYPE): Define.
46696         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
46697         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
46698         (s_ifmt_shift_bits): New function.
46699         (set_stat_type): New function.
46700         (fts_build): When not calling fts_stat, call set_stat_type
46701         to propagate dirent.d_type info to fts_read caller.
46702         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
46703         fts_statp->st_mode type information may be valid.
46704
46705 2008-11-28  Simon Josefsson  <simon@josefsson.org>
46706
46707         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
46708         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
46709         <sds@gnu.org>.
46710
46711 2008-11-20  Bruno Haible  <bruno@clisp.org>
46712
46713         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
46714         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
46715         INCLUDE_NEXT.
46716         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
46717         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
46718         * modules/math (Makefile.am): Substitute
46719         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
46720         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46721
46722 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
46723             Bruno Haible  <bruno@clisp.org>
46724
46725         * lib/stdint.in.h: Define all type macros so that their expansion is
46726         a single typedef'ed token. Fixes a compilation failure in Boost which
46727         does "using ::int8_t;".
46728
46729 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46730
46731         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
46732         gl_MANYWARN_ALL_GCC.
46733         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
46734         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
46735         * modules/manywarnings: New file.
46736         * MODULES.html.sh: Mention manywarnings module.
46737
46738 2008-11-18  Bruno Haible  <bruno@clisp.org>
46739
46740         * doc/gnulib-tool.texi (Unit tests): New section.
46741
46742 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46743
46744         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
46745         paths like 'lib/po/foo.po'.
46746
46747 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46748
46749         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
46750         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
46751
46752 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46753
46754         * m4/warnings.m4: Use CPPFLAGS to really check whether the
46755         parameter works.
46756
46757 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46758
46759         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
46760
46761 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46762
46763         * modules/parse-duration-tests: New file.
46764         * tests/test-parse-duration.sh: New file.
46765         * tests/test-parse-duration.c: New file.
46766
46767         New module 'parse-duration'.
46768         * lib/parse-duration.h: New file.
46769         * lib/parse-duration.c: New file.
46770         * modules/parse-duration: New file.
46771
46772 2008-11-17  Bruno Haible  <bruno@clisp.org>
46773
46774         * tests/test-select-out.sh: Comment out the first pipe test.
46775         Reported by Simon Josefsson.
46776
46777 2008-11-17  Bruno Haible  <bruno@clisp.org>
46778
46779         * modules/getaddrinfo (Depends-on): Add servent, hostent.
46780         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
46781         gl_HOSTENT.
46782
46783 2008-11-17  Bruno Haible  <bruno@clisp.org>
46784
46785         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
46786         -lnetwork and -lnet. Needed for Haiku and BeOS.
46787
46788 2008-11-16  Bruno Haible  <bruno@clisp.org>
46789
46790         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
46791
46792 2008-11-16  Bruno Haible  <bruno@clisp.org>
46793
46794         Avoid test failure on Haiku.
46795         * tests/test-fsync.c: Include <errno.h>.
46796         (main): Don't require that fsync (0) fails.
46797
46798 2008-11-15  Bruno Haible  <bruno@clisp.org>
46799
46800         New module 'hostent'.
46801         * modules/hostent: New file.
46802         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
46803
46804 2008-11-15  Bruno Haible  <bruno@clisp.org>
46805
46806         New module 'servent'.
46807         * modules/servent: New file.
46808         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
46809
46810 2008-11-15  Bruno Haible  <bruno@clisp.org>
46811
46812         Avoid generating same test program with two different rules.
46813         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
46814         test-frexp to test-frexp-nolibm.
46815         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
46816         test-frexpl to test-frexpl-nolibm.
46817
46818 2008-11-15  Bruno Haible  <bruno@clisp.org>
46819
46820         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
46821         $(FREXPL_LIBM).
46822
46823 2008-11-15  Bruno Haible  <bruno@clisp.org>
46824
46825         * lib/netdb.in.h: Activate the definitions also when the system's
46826         <netdb.h> has 'struct addrinfo'.
46827         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
46828         EAI_OVERFLOW or AI_NUMERICSERV.
46829         * doc/posix-headers/netdb.texi: Document the problem.
46830
46831 2008-11-15  Bruno Haible  <bruno@clisp.org>
46832
46833         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
46834
46835         Make the 'sched' module work on platforms where <sched.h> exists but
46836         is incomplete (such as Haiku).
46837         * lib/sched.in.h; Include the system's <sched.h> if it exists.
46838         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
46839         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
46840         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
46841         HAVE_STRUCT_SCHED_PARAM.
46842         * modules/sched (Depends-on): Add include_next.
46843         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
46844         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
46845         * doc/posix-headers/sched.texi: Document the issue.
46846
46847 2008-11-13  Jim Meyering  <meyering@redhat.com>
46848
46849         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
46850         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
46851         test would fail due to the difference in the Report bugs to ...
46852         line.  The expected address is empty, "<>", while the actual
46853         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
46854
46855 2008-11-12  Bruno Haible  <bruno@clisp.org>
46856
46857         lstat: don't compile lstat.c on systems lacking lstat
46858         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
46859         which don't have lstat; this is handled by lib/sys_stat.in.h already.
46860         Reported by Daniel P. Berrange via Jim Meyering.
46861
46862 2008-11-12  Jim Meyering  <meyering@redhat.com>
46863
46864         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
46865
46866 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46867
46868         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
46869         instead.
46870
46871 2008-11-12  Bruno Haible  <bruno@clisp.org>
46872
46873         * lib/unicodeio.c: Include unistr.h.
46874         (utf8_wctomb): Remove function.
46875         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
46876
46877 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46878
46879         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
46880         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
46881         <bruno@clisp.org>.
46882         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
46883
46884 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46885
46886         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
46887         * doc/gnulib.texi: Add section for warnings.
46888
46889 2008-11-11  Bruno Haible  <bruno@clisp.org>
46890
46891         * lib/sockets.h: Add a comment.
46892
46893 2008-11-11  Karl Berry  <karl@gnu.org>
46894
46895         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
46896
46897 2008-11-11  Eric Blake  <ebb9@byu.net>
46898
46899         fdl.texi: avoid git symlinks
46900         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
46901
46902 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46903
46904         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
46905
46906 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46907
46908         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
46909         (gl_WARN_ADD): Substitute $2 if literal.
46910
46911 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46912
46913         * m4/warning.m4: Remove.
46914
46915 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46916
46917         * m4/warnings.m4: Almost complete rewrite. :-)
46918
46919 2008-11-10  Simon Josefsson  <simon@josefsson.org>
46920
46921         * modules/warnings: New module.
46922         * m4/warnings.m4: New file.
46923         * MODULES.html.sh: Mention warnings module.
46924         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
46925         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46926
46927 2008-11-10  Eric Blake  <ebb9@byu.net>
46928
46929         fdl.texi: make a symlink to the latest version
46930         * doc/standards.texi: Revert today's earlier change.
46931         * doc/fdl-1.2.texi: Rename from old fdl.texi...
46932         * doc/fdl.texi: ...and replace this with a symlink to the newer
46933         fdl-1.3.texi.
46934
46935 2008-11-10  Bruno Haible  <bruno@clisp.org>
46936
46937         * tests/test-select-fd.c (main): Accept the result file name as fourth
46938         argument.
46939         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
46940         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
46941
46942 2008-11-10  Bruno Haible  <bruno@clisp.org>
46943
46944         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
46945         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
46946         as autoconf-substituted macros.
46947         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
46948         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
46949         gl_NETDB_H_DEFAULTS. Set these variables.
46950         * modules/netdb (Makefile.am): Substitute these variables.
46951
46952 2008-11-10  Eric Blake  <ebb9@byu.net>
46953
46954         standards.texi: include correct file for FDL 1.3
46955         * doc/standards.texi (GNU Free Documentation License): Change
46956         include file to pull in FDL 1.3, not 1.2.
46957
46958         fdl.texi: revert accidental change to license
46959         * doc/fdl.texi: This is FDL 1.2, not 1.3.
46960
46961 2008-11-10  Bruno Haible  <bruno@clisp.org>
46962
46963         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
46964         cross-compiling guesses also when the native compile gives no result.
46965
46966 2008-11-10  Bruno Haible  <bruno@clisp.org>
46967
46968         * lib/spawni.c (__spawni): Force variable into the stack.
46969
46970 2008-11-10  Bruno Haible  <bruno@clisp.org>
46971
46972         Add support for Haiku.
46973         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
46974         glibc and BeOS, but also on Haiku.
46975         * lib/fpurge.c (fpurge): Likewise.
46976         * lib/freadable.c (freadable): Likewise.
46977         * lib/freadahead.c (freadahead): Likewise.
46978         * lib/freading.c (freading): Likewise.
46979         * lib/freadptr.c (freadptr): Likewise.
46980         * lib/freadseek.c (freadptrinc): Likewise.
46981         * lib/fseeko.c (rpl_fseeko): Likewise.
46982         * lib/fseterr.c (fseterr): Likewise.
46983         * lib/fwritable.c (fwritable): Likewise.
46984         * lib/fwriting.c (fwriting): Likewise.
46985         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
46986
46987 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46988
46989         * lib/config.charset: Treat Haiku like BeOS.
46990
46991 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46992
46993         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
46994         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
46995
46996 2008-11-08  Bruno Haible  <bruno@clisp.org>
46997
46998         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
46999         AC_CACHE_CHECK.
47000
47001 2008-11-08  Bruno Haible  <bruno@clisp.org>
47002
47003         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
47004
47005 2008-11-08  Bruno Haible  <bruno@clisp.org>
47006
47007         * tests/test-select-fd.c: New file.
47008         * tests/test-select-in.sh: New file.
47009         * tests/test-select-out.sh: New file.
47010         * tests/test-select-stdin.c: New file.
47011         * modules/select-tests (Files): Add the new files.
47012         (Depends-on): Add gettimeofday.
47013         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
47014         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
47015         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
47016
47017 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
47018             Bruno Haible  <bruno@clisp.org>
47019
47020         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
47021
47022 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
47023
47024         * build-aux/pmccabe2html: Added support for C++ source files.
47025
47026 2008-11-05  Ben Pfaff  <blp@gnu.org>
47027
47028         Fix lib/close.c build on Windows.
47029         * modules/close (Files): Add lib/w32sock.h.
47030
47031 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
47032
47033         Accept Bison's NEWS format.
47034         * build-aux/announce-gen (print_news_deltas): Tweak
47035         $re_prefix.
47036
47037 2008-11-04  Bruno Haible  <bruno@clisp.org>
47038
47039         * modules/random_r (Maintainer): Add glibc.
47040
47041 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47042
47043         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
47044         by karl@freefriends.org (Karl Berry).
47045         * doc/alloca.texi: Likewise.
47046         * doc/c-ctype.texi: Likewise.
47047         * doc/c-strcase.texi: Likewise.
47048         * doc/c-strcaseeq.texi: Likewise.
47049         * doc/c-strcasestr.texi: Likewise.
47050         * doc/c-strstr.texi: Likewise.
47051         * doc/c-strtod.texi: Likewise.
47052         * doc/c-strtold.texi: Likewise.
47053         * doc/ctime.texi: Likewise.
47054         * doc/error.texi: Likewise.
47055         * doc/fdl.texi: Likewise.
47056         * doc/gcd.texi: Likewise.
47057         * doc/getdate.texi: Likewise.
47058         * doc/gnulib-intro.texi: Likewise.
47059         * doc/gnulib-tool.texi: Likewise.
47060         * doc/gnulib.texi: Likewise.
47061         * doc/inet_ntoa.texi: Likewise.
47062         * doc/maintain.texi: Likewise.
47063         * doc/make-stds.texi: Likewise.
47064         * doc/quote.texi: Likewise.
47065         * doc/regexprops-generic.texi: Likewise.
47066         * doc/standards.texi: Likewise.
47067         * doc/verify.texi: Likewise.
47068         * doc/visibility.texi: Likewise.
47069         * doc/gnulib.texi (GNU Free Documentation License): Include
47070         fdl-1.3.texi instead of fdl.texi.
47071
47072 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47073
47074         * doc/fdl-1.3.texi: New file, from
47075         <http://www.gnu.org/licenses/fdl-1.3.texi>.
47076         * modules/fdl-1.3: Add.
47077         * MODULES.html.sh: Add fdl-1.3.
47078
47079 2008-11-03  Bruno Haible  <bruno@clisp.org>
47080
47081         Make determination of absolute name of header file work with AIX xlc.
47082         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
47083         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
47084         preprocessing.
47085         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47086         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47087
47088 2008-11-03  Simon Josefsson  <simon@josefsson.org>
47089
47090         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
47091         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
47092         <ludo@gnu.org>.
47093
47094 2008-11-02  Bruno Haible  <bruno@clisp.org>
47095
47096         Mark 'strpbrk' obsolete.
47097         * modules/strpbrk (Status, Notice): New sections.
47098         * modules/strtok_r (Depends-on): Add strpbrk.
47099
47100 2008-11-02  Bruno Haible  <bruno@clisp.org>
47101
47102         Mark 'strdup' obsolete.
47103         * modules/strdup (Status, Notice): New sections.
47104         * modules/findprog (Depends-on): Add strdup.
47105         * modules/getaddrinfo (Depends-on): Likewise.
47106         * modules/localename (Depends-on): Likewise.
47107         * modules/relocatable-lib (Depends-on): Likewise.
47108         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
47109         * modules/relocatable-prog (Depends-on): Likewise.
47110         * modules/trim (Depends-on): Likewise.
47111         * modules/unictype/gen-ctype (Depends-on): Likewise.
47112         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47113
47114 2008-11-02  Bruno Haible  <bruno@clisp.org>
47115
47116         Mark 'strcspn' obsolete.
47117         * modules/strcspn (Status, Notice): New sections.
47118
47119 2008-11-02  Bruno Haible  <bruno@clisp.org>
47120
47121         Mark 'rmdir' obsolete.
47122         * modules/rmdir (Status, Notice): New sections.
47123         * modules/clean-temp (Depends-on): Add rmdir.
47124         * modules/openat (Depends-on): Likewise.
47125
47126 2008-11-02  Bruno Haible  <bruno@clisp.org>
47127
47128         Mark 'raise' obsolete.
47129         * modules/raise (Status, Notice): New sections.
47130         (Include): Specify <signal.h>.
47131         * modules/stdio (Depends-on): Add raise.
47132         * modules/write (Depends-on): Likewise.
47133
47134 2008-11-02  Bruno Haible  <bruno@clisp.org>
47135
47136         Mark 'memset' obsolete.
47137         * modules/memset (Status, Notice): New sections.
47138
47139 2008-11-02  Bruno Haible  <bruno@clisp.org>
47140
47141         Mark 'memmove' obsolete.
47142         * modules/memmove (Status, Notice): New sections.
47143         * modules/argp (Depends-on): Add memmove.
47144         * modules/argz (Depends-on): Likewise.
47145         * modules/canonicalize (Depends-on): Likewise.
47146         * modules/canonicalize-lgpl (Depends-on): Likewise.
47147         * modules/fts (Depends-on): Likewise.
47148         * modules/getcwd (Depends-on): Likewise.
47149         * modules/human (Depends-on): Likewise.
47150         * modules/regex (Depends-on): Likewise.
47151         * modules/striconveh (Depends-on): Likewise.
47152         * modules/trim (Depends-on): Likewise.
47153         * modules/unistr/u8-move (Depends-on): Likewise.
47154         * modules/unistr/u16-move (Depends-on): Likewise.
47155         * modules/unistr/u32-move (Depends-on): Likewise.
47156
47157 2008-11-02  Bruno Haible  <bruno@clisp.org>
47158
47159         Mark 'memcpy' obsolete.
47160         * modules/memcpy (Status, Notice): New sections.
47161
47162 2008-11-02  Bruno Haible  <bruno@clisp.org>
47163
47164         Mark 'memcmp' obsolete.
47165         * modules/memcmp (Status, Notice): New sections.
47166         * modules/argmatch (Depends-on): Add memchr.
47167         * modules/backupfile (Depends-on): Likewise.
47168         * modules/c-strcasestr (Depends-on): Likewise.
47169         * modules/crypto/des (Depends-on): Likewise.
47170         * modules/csharpcomp (Depends-on): Likewise.
47171         * modules/fnmatch (Depends-on): Likewise.
47172         * modules/git-merge-changelog (Depends-on): Likewise.
47173         * modules/isnand (Depends-on): Likewise.
47174         * modules/isnand-nolibm (Depends-on): Likewise.
47175         * modules/isnanf (Depends-on): Likewise.
47176         * modules/isnanf-nolibm (Depends-on): Likewise.
47177         * modules/isnanl (Depends-on): Likewise.
47178         * modules/isnanl-nolibm (Depends-on): Likewise.
47179         * modules/mbchar (Depends-on): Likewise.
47180         * modules/memcoll (Depends-on): Likewise.
47181         * modules/quotearg (Depends-on): Likewise.
47182         * modules/regex (Depends-on): Likewise.
47183         * modules/relocatable-prog (Depends-on): Likewise.
47184         * modules/same (Depends-on): Likewise.
47185         * modules/signbit (Depends-on): Likewise.
47186         * modules/strcasestr-simple (Depends-on): Likewise.
47187         * modules/unictype/gen-ctype (Depends-on): Likewise.
47188         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47189         * modules/uniname/uniname (Depends-on): Likewise.
47190         * modules/unistr/u8-cmp (Depends-on): Likewise.
47191
47192 2008-11-02  Bruno Haible  <bruno@clisp.org>
47193
47194         Mark 'memchr' obsolete.
47195         * modules/memchr (Status, Notice): New sections.
47196         * modules/argp (Depends-on): Add memchr.
47197         * modules/base64 (Depends-on): Likewise.
47198         * modules/c-strcasestr (Depends-on): Likewise.
47199         * modules/chdir-long (Depends-on): Likewise.
47200         * modules/fnmatch (Depends-on): Likewise.
47201         * modules/getsubopt (Depends-on): Likewise.
47202         * modules/git-merge-changelog (Depends-on): Likewise.
47203         * modules/glob (Depends-on): Likewise.
47204         * modules/strcasestr-simple (Depends-on): Likewise.
47205         * modules/strnlen (Depends-on): Likewise.
47206
47207 2008-11-02  Bruno Haible  <bruno@clisp.org>
47208
47209         Mark 'atexit' obsolete.
47210         * modules/atexit (Status, Notice): New sections.
47211         * modules/chdir-long (Depends-on): Add atexit.
47212         * modules/wait-process (Depends-on): Likewise.
47213
47214 2008-11-02  Bruno Haible  <bruno@clisp.org>
47215
47216         * gnulib-tool: New option --with-obsolete.
47217         (func_usage): Document it.
47218         (func_modules_transitive_closure): Drop obsolete dependencies if
47219         incobsolete is not true.
47220         (func_import): Read and save the incobsolete variable to the cache.
47221
47222 2008-11-02  Bruno Haible  <bruno@clisp.org>
47223
47224         * modules/TEMPLATE-EXTENDED: New field 'Status'.
47225         * gnulib-tool: New option --extract-status.
47226         (func_usage): Document it.
47227         (sed_extract_prog): Recognize it.
47228         (func_get_status): New function.
47229
47230 2008-10-30  Simon Josefsson  <simon@josefsson.org>
47231
47232         * modules/sockets (License): Change from LGPL to LGPLv2+.
47233
47234 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47235
47236         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
47237
47238 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47239
47240         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47241         Mention times and sys_times.
47242         * modules/sys_times, modules/sys_times-tests: New modules.
47243         * modules/times, modules/times-tests: Likewise
47244         * m4/sys_times_h.m4: New file.
47245         * lib/sys_times.in.h: Likewise
47246         * lib/times.c: Likewise.
47247         * tests/test-sys_times.c: Likewise.
47248         * tests/test-times.c: Likewise.
47249         * doc/posix-headers/sys_times.texi: Update.
47250         * doc/posix-functions/times.texi: Update.
47251
47252 2008-10-28  Jim Meyering  <meyering@redhat.com>
47253
47254         * modules/tempname (Depends-on): Add lstat.
47255
47256         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
47257
47258 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47259
47260         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
47261         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
47262         using idiom used elsewhere in gnulib.
47263
47264 2008-10-27  Jim Meyering  <meyering@redhat.com>
47265
47266         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
47267
47268 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47269
47270         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
47271         TESTS_ENVIRONMENT, for shell scripts that needs to call built
47272         programs.
47273         * tests/test-argp-2.sh: Use $EXEEXT when needed.
47274
47275 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47276
47277         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
47278
47279 2008-10-27  Bruno Haible  <bruno@clisp.org>
47280
47281         * tests/test-lstat.c: Include <stdio.h>.
47282
47283 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47284
47285         * modules/lstat-tests: New module.
47286         * tests/test-lstat.c: New file.
47287
47288 2008-10-26  Jim Meyering  <meyering@redhat.com>
47289
47290         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
47291
47292 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47293             Bruno Haible  <bruno@clisp.org>
47294
47295         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
47296         * modules/configmake (Include): Add a note that the include must come
47297         after all system headers.
47298         * lib/javaversion.c: Include configmake.h after all other includes.
47299
47300 2008-10-26  Bruno Haible  <bruno@clisp.org>
47301
47302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
47303         HAVE_STRUCT_RANDOM_DATA to 1.
47304         (gl_STDLIB_H): Simplify.
47305
47306 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47307
47308         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
47309         substitute HAVE_STRUCT_RANDOM_DATA.
47310         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
47311         random_data.
47312         * modules/stdlib (Makefile.am): Substitute
47313         HAVE_STRUCT_RANDOM_DATA.
47314
47315 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47316
47317         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
47318         * doc/gnulib-intro.texi (Copyright): Likewise.
47319
47320 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47321
47322         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
47323         findings.
47324
47325 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
47326             Bruno Haible  <bruno@clisp.org>
47327
47328         * lib/unistd.in.h: Include <winsock2.h>.
47329         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
47330         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
47331         Provide dummy declarations.
47332         (gethostname): Override.
47333         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
47334         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
47335         gl_PREREQ_SYS_H_WINSOCK2.
47336         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
47337         * doc/posix-functions/gethostname.texi: More details.
47338
47339 2008-10-25  Bruno Haible  <bruno@clisp.org>
47340
47341         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47342         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
47343         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
47344
47345         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
47346         here ...
47347         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
47348         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
47349         gl_UNISTD_H_DEFAULTS.
47350
47351 2008-10-25  Eric Blake  <ebb9@byu.net>
47352
47353         signbit: avoid spurious compiler failure
47354         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
47355         declarations inside function.
47356
47357 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47358             Bruno Haible  <bruno@clisp.org>
47359
47360         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
47361         * modules/random_r (Depends-on): Add stdint.
47362
47363 2008-10-24  Bruno Haible  <bruno@clisp.org>
47364
47365         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
47366         Eggert.
47367         * modules/strerror (License): Likewise.
47368
47369 2008-10-24  Jim Meyering  <meyering@redhat.com>
47370
47371         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
47372         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
47373
47374 2008-10-24  Eric Blake  <ebb9@byu.net>
47375
47376         getgroups: fix compilation when getgroups is available
47377         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
47378         but with <config.h> override of getgroups disabled.
47379
47380 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47381
47382         * doc/gnulib.texi (Header files): Add note about C++ problems.
47383         Explained by Bruno Haible <bruno@clisp.org>.
47384
47385 2008-10-23  Bruno Haible  <bruno@clisp.org>
47386
47387         Define a dummy SA_NODEFER macro on Interix.
47388         * lib/signal.in.h (SA_NODEFER): Define fallback.
47389         Reported by Aleksey Cheusov <cheusov@tut.by> via
47390         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
47391
47392 2008-10-23  Bruno Haible  <bruno@clisp.org>
47393
47394         * modules/freadahead (License): Change to LGPLv2+.
47395         Suggested by Simon Josefsson.
47396
47397 2008-10-23  Jim Meyering  <meyering@redhat.com>
47398
47399         random_r: new module
47400         * modules/random_r: New file.
47401         * m4/random_r.m4: New file.
47402         * lib/random_r.c: New file, from glibc.
47403         * modules/random_r-tests: New file.
47404         * tests/test-random_r.c: New file.
47405         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
47406          Declare.
47407         (RAND_MAX): Define.
47408         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
47409         * modules/stdlib: Substitute them, too.
47410         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
47411         * doc/glibc-functions/initstate_r.texi: Mention the new module.
47412         * doc/glibc-functions/random_r.texi: Likewise.
47413         * doc/glibc-functions/setstate_r.texi: Likewise.
47414         * doc/glibc-functions/srandom_r.texi: Likewise.
47415         * config/srclist.txt: Mention it.
47416
47417 2008-10-23  David Lutterkort  <lutter@redhat.com>
47418
47419         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
47420         link requirement
47421
47422 2008-10-23  Jim Meyering  <meyering@redhat.com>
47423
47424         selinux-h: mark parameters of stub functions as intentionally unused
47425         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
47426         * lib/se-context.in.h: Likewise.
47427
47428 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47429
47430         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
47431
47432 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47433
47434         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
47435
47436 2008-10-22  Eric Blake  <ebb9@byu.net>
47437
47438         glthread/thread: avoid compiler warning
47439         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
47440         Add unreachable abort to silence compiler.
47441
47442 2008-10-22  Eric Blake  <ebb9@byu.net>
47443
47444         netdb: also supply struct addrinfo for cygwin 1.5.x
47445         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
47446         older cygwin.
47447         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
47448         cygwin.
47449         * doc/posix-headers/netdb.texi (netdb.h): Document this.
47450
47451 2008-10-22  Bruno Haible  <bruno@clisp.org>
47452
47453         * users.txt: Update entry about pspp.
47454
47455 2008-10-21  Bruno Haible  <bruno@clisp.org>
47456
47457         Simplification.
47458         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
47459         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
47460
47461         Simplification.
47462         * lib/ioctl.c (ioctl): Don't undefine.
47463         * lib/socket.c (socket): Don't undefine.
47464
47465         Remove unused module indicator macros.
47466         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
47467         GNULIB_$1 as a C macro.
47468
47469         * doc/posix-functions/close.texi: Undo last change.
47470         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
47471         Windows platforms.
47472
47473 2008-10-21  Bruno Haible  <bruno@clisp.org>
47474
47475         Add gethostname() declaration to <unistd.h>.
47476         * lib/unistd.in.h (gethostname): New declaration.
47477         * lib/gethostname.c: Include <unistd.h>.
47478         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
47479         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
47480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
47481         and HAVE_GETHOSTNAME.
47482         * modules/gethostname (Depends-on): Add unistd.
47483         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47484         (Include): Specify <unistd.h>.
47485         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
47486         HAVE_GETHOSTNAME.
47487         * tests/test-gethostname.c: Include <unistd.h> first.
47488
47489 2008-10-21  Bruno Haible  <bruno@clisp.org>
47490
47491         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
47492         * modules/select-tests (Depends-on): Likewise.
47493         Reported by Simon Josefsson.
47494
47495 2008-10-21  Simon Josefsson  <simon@josefsson.org>
47496
47497         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
47498         * lib/accept.c: New file, based on winsock.c.
47499         * lib/bind.c: New file, based on winsock.c.
47500         * lib/connect.c: New file, based on winsock.c.
47501         * lib/getpeername.c: New file, based on winsock.c.
47502         * lib/getsockname.c: New file, based on winsock.c.
47503         * lib/getsockopt.c: New file, based on winsock.c.
47504         * lib/ioctl.c: New file, based on winsock.c.
47505         * lib/listen.c: New file, based on winsock.c.
47506         * lib/recv.c: New file, based on winsock.c.
47507         * lib/recvfrom.c: New file, based on winsock.c.
47508         * lib/send.c: New file, based on winsock.c.
47509         * lib/sendto.c: New file, based on winsock.c.
47510         * lib/setsockopt.c: New file, based on winsock.c.
47511         * lib/shutdown.c: New file, based on winsock.c.
47512         * lib/socket.c: New file, based on winsock.c.
47513         * lib/w32sock.h: New file, based on winsock.c.
47514         * lib/winsock.c: Remove file.
47515         * modules/accept: Likewise.
47516         * modules/bind: Likewise.
47517         * modules/connect: Likewise.
47518         * modules/getpeername: Likewise.
47519         * modules/getsockname: Likewise.
47520         * modules/getsockopt: Likewise.
47521         * modules/ioctl: Likewise.
47522         * modules/listen: Likewise.
47523         * modules/recv: Likewise.
47524         * modules/recvfrom: Likewise.
47525         * modules/send: Likewise.
47526         * modules/sendto: Likewise.
47527         * modules/setsockopt: Likewise.
47528         * modules/shutdown: Likewise.
47529         * modules/socket: Use socket.c instead of winsock.c.
47530         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
47531         * doc/posix-functions/accept.texi: Doc fix.
47532         * doc/posix-functions/bind.texi: Doc fix.
47533         * doc/posix-functions/close.texi: Doc fix.
47534         * doc/posix-functions/connect.texi: Doc fix.
47535         * doc/posix-functions/getpeername.texi: Doc fix.
47536         * doc/posix-functions/getsockname.texi: Doc fix.
47537         * doc/posix-functions/getsockopt.texi: Doc fix.
47538         * doc/posix-functions/ioctl.texi: Doc fix.
47539         * doc/posix-functions/listen.texi: Doc fix.
47540         * doc/posix-functions/recv.texi: Doc fix.
47541         * doc/posix-functions/recvfrom.texi: Doc fix.
47542         * doc/posix-functions/send.texi: Doc fix.
47543         * doc/posix-functions/sendto.texi: Doc fix.
47544         * doc/posix-functions/setsockopt.texi: Doc fix.
47545         * doc/posix-functions/shutdown.texi: Doc fix.
47546         * doc/posix-functions/socket.texi: Doc fix.
47547
47548 2008-10-20  Bruno Haible  <bruno@clisp.org>
47549
47550         Take into account the role of SIGABRT_COMPAT on Windows 2008.
47551         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
47552         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
47553         as an alias for SIGABRT.
47554         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
47555         (sigaction): Map it to SIGABRT.
47556         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
47557
47558 2008-10-20  Bruno Haible  <bruno@clisp.org>
47559
47560         * lib/fts.c: Don't include lstat.h.
47561         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
47562
47563         Move the lstat() declaration to <sys/stat.h>.
47564         * lib/lstat.h: Remove file.
47565         * lib/sys_stat.in.h: Add special invocation convention.
47566         (lstat): New declaration.
47567         * lib/lstat.c (orig_lstat): New function.
47568         (rpl_lstat): Use orig_lstat instead of lstat.
47569         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
47570         AC_C_INLINE. Set REPLACE_LSTAT.
47571         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
47572         and REPLACE_LSTAT.
47573         * modules/lstat (Files): Remove lib/lstat.h.
47574         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47575         (Include): Specify <sys/stat.h> instead of lstat.h.
47576         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
47577         REPLACE_LSTAT.
47578         * NEWS: Mention the change.
47579
47580 2008-10-20  Bruno Haible  <bruno@clisp.org>
47581
47582         * modules/posix_spawn-tests: New file.
47583         * tests/test-posix_spawn3.c: New file.
47584
47585 2008-10-20  Bruno Haible  <bruno@clisp.org>
47586
47587         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
47588         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47589         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
47590         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47591         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
47592
47593 2008-10-20  Bruno Haible  <bruno@clisp.org>
47594
47595         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
47596         of posix_spawn on AIX 5.3.
47597
47598 2008-10-20  Bruno Haible  <bruno@clisp.org>
47599
47600         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
47601
47602 2008-10-20  Bruno Haible  <bruno@clisp.org>
47603
47604         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
47605         of AC_LANG_PROGRAM.
47606
47607 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47608
47609         * lib/netdb.in.h: Don't define GNU specific constants until they
47610         are supported or needed.  Reported by Bruno Haible
47611         <bruno@clisp.org>.
47612
47613 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47614
47615         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
47616
47617 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47618
47619         * lib/getaddrinfo.h: Remove file.
47620         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
47621         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
47622         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
47623         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
47624         * modules/netdb: Substitute GNULIB_GETADDRINFO.
47625         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
47626         * tests/test-getaddrinfo.c: Likewise.
47627         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
47628         * NEWS: Mention change.
47629
47630 2008-10-19  Bruno Haible  <bruno@clisp.org>
47631
47632         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
47633
47634 2008-10-19  Bruno Haible  <bruno@clisp.org>
47635
47636         * lib/wait-process.c: Include simply <sys/wait.h>.
47637         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
47638         WIFSTOPPED): Remove fallback definitions.
47639         * modules/wait-process (Depends-on): Add sys_wait.
47640
47641         New module 'sys_wait'.
47642         * modules/sys_wait: New file.
47643         * lib/sys_wait.in.h: New file, partially copied from
47644         lib/wait-process.c.
47645         * m4/sys_wait_h.m4: New file.
47646         * doc/posix-headers/sys_wait.texi: Mention the new module.
47647
47648 2008-10-19  Bruno Haible  <bruno@clisp.org>
47649
47650         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
47651
47652 2008-10-19  Bruno Haible  <bruno@clisp.org>
47653
47654         Assume that waitpid() fills an 'int' status, not a 'union wait'.
47655         * lib/wait-process.c (WAIT_T): Remove type.
47656         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
47657         (wait_subprocess): Update.
47658
47659 2008-10-19  Bruno Haible  <bruno@clisp.org>
47660
47661         New module 'atoll'.
47662         * modules/atoll: New file.
47663         * lib/stdlib.in.h (atoll): New declaration.
47664         * lib/atoll.c: New file, from glibc with modifications.
47665         * m4/atoll.m4: New file.
47666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
47667         HAVE_ATOLL.
47668         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
47669         * doc/posix-functions/atoll.texi: Mention the new module.
47670
47671 2008-10-19  Bruno Haible  <bruno@clisp.org>
47672
47673         Add strtoull() declaration to <stdlib.h>.
47674         * lib/stdlib.in.h (strtoull): New declaration.
47675         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47676         Set HAVE_STRTOULL.
47677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
47678         HAVE_STRTOULL.
47679         * modules/strtoull (Depends-on): Add stdlib.
47680         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47681         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
47682         HAVE_STRTOULL.
47683
47684 2008-10-19  Bruno Haible  <bruno@clisp.org>
47685
47686         Add strtoll() declaration to <stdlib.h>.
47687         * lib/stdlib.in.h (strtoll): New declaration.
47688         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47689         Set HAVE_STRTOLL.
47690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
47691         HAVE_STRTOLL.
47692         * modules/strtoll (Depends-on): Add stdlib.
47693         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47694         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
47695
47696 2008-10-19  Bruno Haible  <bruno@clisp.org>
47697
47698         * modules/bcopy (Depends-on): Add strings.
47699         (Include): Specify <strings.h>.
47700
47701 2008-10-19  Bruno Haible  <bruno@clisp.org>
47702
47703         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
47704
47705 2008-10-19  Bruno Haible  <bruno@clisp.org>
47706
47707         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
47708         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
47709         mingw.
47710
47711 2008-10-19  Bruno Haible  <bruno@clisp.org>
47712
47713         * lib/atanl.c: Don't include isnanl.h.
47714         * lib/cosl.c: Likewise.
47715         * lib/ldexpl.c: Likewise.
47716         * lib/logl.c: Likewise.
47717         * lib/sinl.c: Likewise.
47718         * lib/sqrtl.c: Likewise.
47719         * lib/tanl.c: Likewise.
47720
47721         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
47722         * lib/isnanf.h: Remove file.
47723         * lib/isnand.h: Remove file.
47724         * lib/isnanl.h: Remove file.
47725         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
47726         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
47727         macros.
47728         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
47729         HAVE_ISNANF, don't define it as a C macro.
47730         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
47731         HAVE_ISNAND, don't define it as a C macro.
47732         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
47733         HAVE_ISNANL, don't define it as a C macro.
47734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
47735         HAVE_ISNAN[FDL].
47736         * modules/isnanf (Files): Remove lib/isnanf.h.
47737         (Depends-on): Add math.
47738         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47739         (Include): Specify <math.h> instead of isnanf.h.
47740         * modules/isnand (Files): Remove lib/isnand.h.
47741         (Depends-on): Add math.
47742         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47743         (Include): Specify <math.h> instead of isnand.h.
47744         * modules/isnanl (Files): Remove lib/isnanl.h.
47745         (Depends-on): Add math.
47746         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47747         (Include): Specify <math.h> instead of isnanl.h.
47748         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
47749         HAVE_ISNAN[FDL].
47750         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
47751         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
47752         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
47753         * NEWS: Mention the change.
47754
47755 2008-10-18  Bruno Haible  <bruno@clisp.org>
47756
47757         Add getusershell(), setusershell(), endusershell() declarations to
47758         <unistd.h>.
47759         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
47760         declarations.
47761         * lib/getusershell.c: Include unistd.h.
47762         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
47763         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47764         HAVE_GETUSERSHELL.
47765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
47766         and HAVE_GETUSERSHELL.
47767         * modules/getusershell (Depends-on): Add unistd, extensions.
47768         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47769         (Include): Specify <unistd.h>.
47770         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
47771         HAVE_GETUSERSHELL.
47772
47773 2008-10-18  Bruno Haible  <bruno@clisp.org>
47774
47775         Add a getloadavg() declaration to <stdlib.h>.
47776         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
47777         getloadavg declaration.
47778         (getloadavg): New declaration.
47779         * lib/getloadavg.c: Include <stdlib.h> first.
47780         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
47781         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
47782         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
47783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
47784         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47785         * modules/getloadavg (Depends-on): Add stdlib, extensions.
47786         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47787         (Include): Specify <stdlib.h>.
47788         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
47789         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47790
47791 2008-10-18  Bruno Haible  <bruno@clisp.org>
47792
47793         * lib/dirchownmod.c: Don't include lchmod.h.
47794
47795         Move the lchmod() declaration to <sys/stat.h>.
47796         * lib/lchmod.h: Remove file.
47797         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
47798         (lchmod): New declaration, moved here from lib/lchown.h.
47799         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
47800         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
47801         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
47802         and HAVE_LCHMOD.
47803         * modules/lchmod (Files): Remove lib/lchmod.h.
47804         (Depends-on): Add sys_stat, extensions.
47805         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47806         (Include): Specify <sys/stat.h> instead of lchmod.h.
47807         * modules/sys_stat (Depends-on): Add link-warning.
47808         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
47809         definition of GL_LINK_WARNING.
47810         * NEWS: Mention the change.
47811
47812 2008-10-18  Bruno Haible  <bruno@clisp.org>
47813
47814         * lib/fchdir.c: Don't include dirfd.h.
47815         * lib/fts.c: Likewise.
47816         * lib/getcwd.c: Likewise.
47817         * lib/glob.c: Likewise.
47818
47819         Move the dirfd() declaration to <dirent.h>.
47820         * lib/dirfd.h: Remove file.
47821         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
47822         (dirfd): New declaration.
47823         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
47824         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
47825         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
47826         HAVE_DECL_DIRFD.
47827         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
47828         HAVE_DECL_DIRFD.
47829         * modules/dirfd (Files): Remove lib/dirfd.h.
47830         (Depends-on): Add dirent, extensions.
47831         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
47832         (Include): Specify <dirent.h> instead of dirfd.h.
47833         * modules/dirent (Depends-on): Add link-warning.
47834         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
47835         definition of GL_LINK_WARNING.
47836         * NEWS: Mention the change.
47837
47838 2008-10-18  Bruno Haible  <bruno@clisp.org>
47839
47840         Move the euidaccess() declaration to <unistd.h>.
47841         * lib/euidaccess.h: Remove file.
47842         * lib/unistd.in.h (euidaccess): New declaration.
47843         * lib/euidaccess.c: Don't include euidaccess.h.
47844         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
47845         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
47846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
47847         and HAVE_EUIDACCESS.
47848         * modules/euidaccess (Files): Remove lib/euidaccess.h.
47849         (Depends-on): Add unistd.
47850         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47851         (Include): Specify <unistd.h> instead of euidaccess.h.
47852         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
47853         HAVE_EUIDACCESS.
47854         * NEWS: Mention the change.
47855
47856 2008-10-18  Bruno Haible  <bruno@clisp.org>
47857
47858         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
47859
47860         Move the getdomainname() declaration to <unistd.h>.
47861         * lib/getdomainname.h: Remove file.
47862         * lib/unistd.in.h (getdomainname): New declaration.
47863         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
47864         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47865         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47866         HAVE_GETDOMAINNAME.
47867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47868         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
47869         * modules/getdomainname (Files): Remove lib/getdomainname.h.
47870         (Depends-on): Add unistd, extensions.
47871         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47872         (Includes): Specify <unistd.h> instead of getdomainname.h.
47873         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
47874         HAVE_GETDOMAINNAME.
47875         * NEWS: Mention the change.
47876
47877 2008-10-18  Bruno Haible  <bruno@clisp.org>
47878
47879         * modules/dirent: New file.
47880         * m4/dirent_h.m4: New file.
47881         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
47882         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
47883         * modules/fchdir (Files): Remove lib/dirent.in.h.
47884         (Depends-on): Add dirent.
47885         (Makefile.am): Move rules to modules/dirent.
47886         * doc/posix-headers/dirent.texi: Mention the new module.
47887
47888 2008-10-18  Bruno Haible  <bruno@clisp.org>
47889
47890         Avoid -Wunused-parameter warnings in public gnulib header files.
47891         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
47892         macro.
47893         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
47894
47895 2008-10-18  Bruno Haible  <bruno@clisp.org>
47896
47897         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
47898         * doc/glibc-functions/error.texi: Mention the module 'error'.
47899         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
47900         * doc/glibc-functions/getdomainname.texi: Mention the module
47901         'getdomainname'.
47902         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
47903         * doc/glibc-functions/getpagesize.texi: Mention the module
47904         'getpagesize'.
47905         * doc/glibc-functions/getusershell.texi: Mention the module
47906         'getusershell'.
47907         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
47908         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
47909         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
47910         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
47911         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
47912         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
47913         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
47914         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
47915         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
47916         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
47917         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
47918         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
47919         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
47920         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
47921
47922 2008-10-17  Bruno Haible  <bruno@clisp.org>
47923
47924         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
47925         HP-UX and IRIX, use -0.0L.
47926         * tests/test-ceill.c (minus_zero): Likewise.
47927         * tests/test-floorl.c (minus_zero): Likewise.
47928         * tests/test-frexpl.c (minus_zero): Likewise.
47929         * tests/test-isnan.c (minus_zerol): Likewise.
47930         * tests/test-isnanl.h (minus_zero): Likewise.
47931         * tests/test-ldexpl.c (minus_zero): Likewise.
47932         * tests/test-roundl.c (minus_zero): Likewise.
47933         * tests/test-signbit.c (minus_zerol): Likewise.
47934         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47935         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47936         * tests/test-truncl.c (minus_zero): Likewise.
47937         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47938         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47939         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
47940         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47941
47942 2008-10-17  Bruno Haible  <bruno@clisp.org>
47943
47944         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
47945         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
47946         that it gets activated only for gcc >= 3.0.
47947         * lib/dirent.in.h: Likewise.
47948         * lib/errno.in.h: Likewise.
47949         * lib/fcntl.in.h: Likewise.
47950         * lib/float.in.h: Likewise.
47951         * lib/iconv.in.h: Likewise.
47952         * lib/inttypes.in.h: Likewise.
47953         * lib/locale.in.h: Likewise.
47954         * lib/math.in.h: Likewise.
47955         * lib/netdb.in.h: Likewise.
47956         * lib/netinet_in.in.h: Likewise.
47957         * lib/search.in.h: Likewise.
47958         * lib/signal.in.h: Likewise.
47959         * lib/spawn.in.h: Likewise.
47960         * lib/stdarg.in.h: Likewise.
47961         * lib/stdint.in.h: Likewise.
47962         * lib/stdio.in.h: Likewise.
47963         * lib/stdlib.in.h: Likewise.
47964         * lib/string.in.h: Likewise.
47965         * lib/strings.in.h: Likewise.
47966         * lib/sys_file.in.h: Likewise.
47967         * lib/sys_ioctl.in.h: Likewise.
47968         * lib/sys_select.in.h: Likewise.
47969         * lib/sys_socket.in.h: Likewise.
47970         * lib/sys_stat.in.h: Likewise.
47971         * lib/sys_time.in.h: Likewise.
47972         * lib/sysexits.in.h: Likewise.
47973         * lib/time.in.h: Likewise.
47974         * lib/unistd.in.h: Likewise.
47975         * lib/wchar.in.h: Likewise.
47976         * lib/wctype.in.h: Likewise.
47977         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47978
47979 2008-10-17  Jim Meyering  <meyering@redhat.com>
47980
47981         ignore-value: don't depend on inline module
47982         * modules/ignore-value (Depends-on): Remove 'inline'.
47983         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
47984         Suggestion from Bruno Haible.
47985
47986 2008-10-17  Bruno Haible  <bruno@clisp.org>
47987
47988         New implementation of condition variables for Win32.
47989         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
47990         (gl_linked_waitqueue_t): New type.
47991         (gl_cond_t): Use it.
47992         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
47993         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
47994         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
47995         (glthread_cond_init_func, glthread_cond_wait_func,
47996         glthread_cond_timedwait_func, glthread_cond_signal_func,
47997         glthread_cond_broadcast_func, glthread_cond_destroy_func):
47998         Reimplemented on the basis of gl_linked_waitqueue_t.
47999         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
48000         gl_waitqueue_t.
48001         (gl_rwlock_t): Update.
48002         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
48003
48004 2008-10-17  Simon Josefsson  <simon@josefsson.org>
48005
48006         * modules/recvfrom (Depends-on): Add dependency on getpeername.
48007         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48008
48009 2008-10-17  Jim Meyering  <meyering@redhat.com>
48010
48011         ignore-value: new module
48012         * modules/ignore-value: New file.
48013         * lib/ignore-value.h: New file.
48014         * MODULES.html.sh (Compiler warning management): New section,
48015         just for this module.  More to come.
48016
48017 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48018
48019         open-safer.c: avoid 'signed and unsigned in conditional...' warning
48020         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
48021         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
48022
48023 2008-10-16  Jim Meyering  <meyering@redhat.com>
48024
48025         openat-die.c: avoid 'no previous prototype' warning
48026         * lib/openat-die.c: Include "openat.h".
48027         Reported by Reuben Thomas <rrt@sc3d.org>.
48028
48029 2008-10-16  Simon Josefsson  <simon@josefsson.org>
48030
48031         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
48032         * lib/netdb.in.h: Fix typo.
48033         Reported by Bruno Haible  <bruno@clisp.org>
48034
48035         * lib/netdb.in.h: Include sys/socket.h for platforms without
48036         netdb.h, to get structures like hostent on MinGW.
48037         * modules/netdb (Depends-on): Add sys_socket.
48038
48039 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48040
48041         * modules/netdb, modules/netdb-tests: New file.
48042         * m4/netdb_h.m4: New file.
48043         * lib/netdb.in.h: Add, currently just an empty file pending
48044         definitions.
48045         * tests/test-netdb.c: New file.
48046         * doc/posix-headers/netdb.texi: Mention that we replace it if
48047         needed.
48048         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48049         netdb.
48050
48051 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48052
48053         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
48054         with code.
48055
48056 2008-10-13  Bruno Haible  <bruno@clisp.org>
48057
48058         * lib/glthread/cond.c (glthread_cond_wait_func,
48059         glthread_cond_timedwait_func): Add a comment.
48060
48061 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48062
48063         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
48064         * tests/test-select.c: Likewise,
48065
48066 2008-10-13  Bruno Haible  <bruno@clisp.org>
48067
48068         * lib/glthread/cond.c (glthread_cond_wait_func,
48069         glthread_cond_timedwait_func): Fix variable name.
48070         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48071
48072 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
48073
48074         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
48075         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
48076         struct sockaddr.sa_len.
48077         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
48078
48079 2008-10-13  Simon Josefsson  <simon@josefsson.org>
48080
48081         * build-aux/pmccabe2html: Add css and css_url parameters.
48082
48083 2008-10-12  Bruno Haible  <bruno@clisp.org>
48084
48085         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
48086         calling aclx_get.
48087         Reported by Rainer Tammer <tammer@tammer.net>.
48088
48089 2008-10-12  Bruno Haible  <bruno@clisp.org>
48090
48091         Use msvcrt aware primitives for creation/termination of Win32 threads.
48092         * lib/glthread/thread.c: Include <process.h>.
48093         (glthread_create_func): Use _beginthreadex instead of CreateThread.
48094         (wrapper_func): Update signature.
48095         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
48096
48097 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48098             Bruno Haible  <bruno@clisp.org>
48099
48100         Provide a Win32 implementation of the 'cond' module.
48101         * lib/glthread/cond.h [USE_WIN32]: New implementation.
48102         * lib/glthread/cond.c (glthread_cond_init_func,
48103         glthread_cond_wait_func, glthread_cond_timedwait_func,
48104         glthread_cond_signal_func, glthread_cond_broadcast_func,
48105         glthread_cond_destroy_func) [USE_WIN32]: New functions.
48106         * modules/cond (Dependencies): Add gettimeofday.
48107
48108 2008-10-11  Bruno Haible  <bruno@clisp.org>
48109
48110         Make sleep work on older versions of mingw.
48111         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
48112         only whether it exists.
48113         * doc/posix-functions/sleep.texi: Mention the problem with older
48114         versions of mingw.
48115
48116 2008-10-11  Bruno Haible  <bruno@clisp.org>
48117
48118         New module 'shutdown'.
48119         * modules/shutdown: New file.
48120         * lib/sys_socket.in.h (shutdown): New declaration.
48121         * lib/winsock.c (shutdown): New function.
48122         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
48123         GNULIB_SHUTDOWN.
48124         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
48125         * doc/posix-functions/shutdown.texi: Document the new module.
48126
48127 2008-10-11  Jim Meyering  <meyering@redhat.com>
48128
48129         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
48130
48131 2008-10-11  Bruno Haible  <bruno@clisp.org>
48132
48133         New module 'fclose'.
48134         * modules/fclose: New file.
48135         * lib/stdio.in.h (fclose): New declaration.
48136         * lib/fclose.c: New file.
48137         * m4/fclose.m4: New file.
48138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
48139         REPLACE_FCLOSE.
48140         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
48141         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
48142         REPLACE_FCLOSE.
48143         * modules/close (Depends-on): fclose.
48144         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
48145
48146 2008-10-11  Bruno Haible  <bruno@clisp.org>
48147
48148         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
48149         set errno and don't call _close.
48150
48151 2008-10-10  Bruno Haible  <bruno@clisp.org>
48152
48153         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
48154         ACL, not afterwards. Fixes test failure on Cygwin.
48155
48156 2008-10-09  Ben Pfaff  <blp@gnu.org>
48157
48158         * build-aux/announce-gen: Fix gnulib version related part of usage
48159         message.  Die with a useful error message if no tarballs are
48160         found.
48161
48162 2008-10-10  Jim Meyering  <meyering@redhat.com>
48163
48164         bootstrap: use git's --depth=N option only if it's supported
48165         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
48166         recognize the --depth option.  Reported by Pádraig Brady.
48167
48168 2008-10-09  Bruno Haible  <bruno@clisp.org>
48169
48170         New module 'ioctl'.
48171         * modules/ioctl: New file.
48172         * lib/sys_socket.in.h (ioctl): Remove declaration.
48173         * lib/winsock.c: Include <sys/ioctl.h>.
48174         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
48175         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48176         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
48177         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
48178         * doc/posix-functions/ioctl.texi: Mention the new module.
48179
48180 2008-10-09  Bruno Haible  <bruno@clisp.org>
48181
48182         New module 'sys_ioctl'.
48183         * lib/sys_ioctl.in.h: New file.
48184         * m4/sys_ioctl_h.m4: New file.
48185         * modules/sys_ioctl: New file.
48186         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
48187
48188 2008-10-09  Bruno Haible  <bruno@clisp.org>
48189
48190         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
48191         * lib/winsock.c: Include <stdarg.h>.
48192         (rpl_ioctl): Change to second argument 'int' and then varargs.
48193
48194 2008-10-09  Bruno Haible  <bruno@clisp.org>
48195
48196         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
48197         when the sys_socket module is present and the system has <winsock2.h>.
48198
48199 2008-10-09  Bruno Haible  <bruno@clisp.org>
48200
48201         * doc/posix-functions/close.texi: Mention module 'close' instead of
48202         module 'sys_socket'.
48203
48204 2008-10-09  Bruno Haible  <bruno@clisp.org>
48205
48206         * doc/glibc-headers/sys_ioctl.texi: New file.
48207         * doc/gnulib.texi: Include it.
48208
48209 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48210             Bruno Haible  <bruno@clisp.org>
48211
48212         Combine the two replacements of 'close'.
48213         * lib/sys_socket.in.h (close): Define to a reminder to include
48214         <unistd.h>.
48215         (_gl_close_fd_maybe_socket): New declaration.
48216         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
48217         * lib/winsock.c (close): Remove undefinition.
48218         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
48219         needed for the gnulib module 'close'.
48220         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
48221         define to an error symbol or to a warning, if suitable.
48222         * lib/close.c: Include <sys/socket.h>.
48223         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
48224         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
48225         UNISTD_H_HAVE_WINSOCK2_H.
48226         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
48227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48228         UNISTD_H_HAVE_WINSOCK2_H.
48229         * modules/sys_socket (Files): Add m4/unistd_h.m4.
48230         (configure.ac): Set a module indicator.
48231         (Makefile.am): Substitute GNULIB_CLOSE.
48232         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
48233         * modules/poll-tests (Depends-on): Add close.
48234         * modules/select-tests (Depends-on): Likewise.
48235
48236 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48237             Bruno Haible  <bruno@clisp.org>
48238
48239         New module 'close'.
48240         * modules/close: New file.
48241         * lib/unistd.in.h (close): Move declaration out of the
48242         FCHDIR_REPLACEMENT scope.
48243         (_gl_unregister_fd): New declaration.
48244         * lib/close.c: New file.
48245         * lib/fchdir.c (rpl_close): Remove function.
48246         * m4/close.m4: New file.
48247         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48248         close.
48249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
48250         REPLACE_CLOSE.
48251         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
48252         REPLACE_CLOSE.
48253         * modules/fchdir (Depends-on): Add close.
48254
48255 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48256             Bruno Haible  <bruno@clisp.org>
48257
48258         * lib/fcntl.in.h (open): Simplify conditionals.
48259         (_gl_register_fd): New declaration.
48260         * lib/fchdir.c (rpl_open): Remove function.
48261         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
48262         also.
48263         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
48264         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48265         open.
48266
48267 2008-10-09  Jim Meyering  <meyering@redhat.com>
48268
48269         GNUmakefile: use the more name-space-friendly "_version"
48270         * top/GNUmakefile (_dummy): Update.
48271         (_version): Rename from "version".
48272
48273 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48274             Bruno Haible  <bruno@clisp.org>
48275
48276         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
48277         rpl_close.
48278         (_gl_register_fd): New function, extracted from rpl_open.
48279         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
48280         (rpl_open, rpl_opendir): Use _gl_register_fd.
48281
48282 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48283
48284         Fix organization of 'open' replacement.
48285         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
48286         (gl_FUNC_OPEN): Use it.
48287         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
48288
48289 2008-10-08  Bruno Haible  <bruno@clisp.org>
48290
48291         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
48292
48293 2008-10-08  Simon Josefsson  <simon@josefsson.org>
48294
48295         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
48296         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
48297         listen).
48298
48299 2008-10-08  Eric Blake  <ebb9@byu.net>
48300
48301         GNUmakefile: add 'make version' target
48302         * top/GNUmakefile (_curr-ver): Split version update rules...
48303         (version): ...into a target.
48304
48305 2008-10-07  Bruno Haible  <bruno@clisp.org>
48306
48307         Use a more portable replacement expression for -0.0L.
48308         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
48309         instead of -0.0L. Fix m4 quotation.
48310
48311         * tests/test-signbit.c: Include <float.h>.
48312         (minus_zero): New variable.
48313         (test_signbitl): Use minus_zero instead of -zero.
48314         * modules/signbit-tests (Depends-on): Add float.
48315
48316         * tests/test-ceill.c: Include <float.h>.
48317         (zero): Remove variable.
48318         (minus_zero): New variable.
48319         (main): Use minus_zero instead of -zero.
48320         * modules/ceill-tests (Depends-on): Add float.
48321
48322         * tests/test-floorl.c: Include <float.h>.
48323         (zero): Remove variable.
48324         (minus_zero): New variable.
48325         (main): Use minus_zero instead of -zero.
48326         * modules/floorl-tests (Depends-on): Add float.
48327
48328         * tests/test-roundl.c: Include <float.h>.
48329         (zero): Remove variable.
48330         (minus_zero): New variable.
48331         (main): Use minus_zero instead of -zero.
48332         * modules/roundl-tests (Depends-on): Add float.
48333
48334         * tests/test-truncl.c: Include <float.h>.
48335         (zero): Remove variable.
48336         (minus_zero): New variable.
48337         (main): Use minus_zero instead of -zero.
48338         * modules/truncl-tests (Depends-on): Add float.
48339
48340         * tests/test-frexpl.c (zero): Remove variable.
48341         (minus_zero): New variable.
48342         (main): Use minus_zero instead of -zero.
48343         * modules/frexpl-tests (Depends-on): Add float.
48344
48345         * tests/test-isnan.c (zerol): Remove variable.
48346         (minus_zerol): New variable.
48347         (test_long_double): Use minus_zerol instead of -zerol.
48348         * modules/isnan-tests (Depends-on): Add float.
48349
48350         * tests/test-isnanl.h (zero): Remove variable.
48351         (minus_zero): New variable.
48352         (main): Use minus_zero instead of -zero.
48353         * modules/isnanl-nolibm-tests (Depends-on): Add float.
48354         * modules/isnanl-tests (Depends-on): Add float.
48355
48356         * tests/test-ldexpl.c (zero): Remove variable.
48357         (minus_zero): New variable.
48358         (main): Use minus_zero instead of -zero.
48359         * modules/ldexpl-tests (Depends-on): Add float.
48360
48361         * tests/test-snprintf-posix.h (zerol): Remove variable.
48362         (minus_zerol): New variable.
48363         (test_function): Use minus_zerol instead of -zerol.
48364         * modules/snprintf-posix-tests (Depends-on): Add float.
48365         * modules/vsnprintf-posix-tests (Depends-on): Add float.
48366
48367         * tests/test-sprintf-posix.h (zerol): Remove variable.
48368         (minus_zerol): New variable.
48369         (test_function): Use minus_zerol instead of -zerol.
48370         * modules/sprintf-posix-tests (Depends-on): Add float.
48371         * modules/vsprintf-posix-tests (Depends-on): Add float.
48372
48373         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
48374         (minus_zerol): New variable.
48375         (test_function): Use minus_zerol instead of -zerol.
48376         * modules/vasnprintf-posix-tests (Depends-on): Add float.
48377
48378         * tests/test-vasprintf-posix.c (zerol): Remove variable.
48379         (minus_zerol): New variable.
48380         (test_function): Use minus_zerol instead of -zerol.
48381         * modules/vasprintf-posix-tests (Depends-on): Add float.
48382
48383 2008-10-07  Simon Josefsson  <simon@josefsson.org>
48384
48385         * MODULES.html.sh (Support for building documentation): Mention
48386         pmccabe2html.  Sort entries.
48387
48388         Add pmccabe2html module, from gnupdf.
48389         * build-aux/pmccabe.css: New file.
48390         * build-aux/pmccabe2html: New file.
48391         * m4/pmccabe2html.m4: New file.
48392         * modules/pmccabe2html: New file.
48393
48394 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
48395
48396         flock: new module
48397         * MODULES.html.sh: Add to list of modules.
48398         * lib/flock.c: flock implementation for Windows and Unix systems
48399         which have fcntl.
48400         * doc/glibc-functions/flock.texi: Update documentation.
48401         * lib/sys_file.in.h: <sys/file.h> header file.
48402         * m4/flock.m4: M4 macros.
48403         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
48404         * modules/flock: flock module.
48405         * modules/flock-tests: flock tests module.
48406         * modules/sys_file: sys/file.h module.
48407         * tests/test-flock.c: test suite for flock.
48408
48409 2008-10-06  Jim Meyering  <meyering@redhat.com>
48410
48411         bootstrap: check for LT_INIT more portably still ;-)
48412         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
48413         Spotted by Bruno Haible.
48414
48415 2008-10-06  Eric Blake  <ebb9@byu.net>
48416
48417         test-signbit: avoid tripping Irix cc bug on -0.0L
48418         * tests/test-signbit.c (minus_zerol): Delete, and replace with
48419         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
48420         entire testsuite consistent and avoids an Irix 6.2 bug.
48421
48422 2008-10-05  Bruno Haible  <bruno@clisp.org>
48423             Jim Meyering  <jim@meyering.net>
48424
48425         Add an option for ignoring EPIPE during close_stdout.
48426         * lib/closeout.h: Include <stdbool.h>.
48427         (close_stdout_set_ignore_EPIPE): New declaration.
48428         * lib/closeout.c: Include <stdbool.h>.
48429         (ignore_EPIPE): New variable.
48430         (close_stdout_set_ignore_EPIPE): New function.
48431         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
48432         * lib/close-stream.c (close_stream): Mention the possible EPIPE
48433         failure.
48434         * modules/closeout (Depends-on): Add stdbool.
48435
48436 2008-10-05  Bruno Haible  <bruno@clisp.org>
48437
48438         * modules/accept: New file.
48439         * modules/bind: New file.
48440         * modules/connect: New file.
48441         * modules/getpeername: New file.
48442         * modules/getsockname: New file.
48443         * modules/getsockopt: New file.
48444         * modules/listen: New file.
48445         * modules/recv: New file.
48446         * modules/recvfrom: New file.
48447         * modules/send: New file.
48448         * modules/sendto: New file.
48449         * modules/setsockopt: New file.
48450         * modules/socket: New file.
48451         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
48452         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48453         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
48454         the particular module is requested. Add a link warning when the
48455         particular module is not requested.
48456         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
48457         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
48458         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
48459         the particular module is requested.
48460         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
48461         gl_SYS_SOCKET_H_DEFAULTS): New macros.
48462         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
48463         * modules/sys_socket (Depends-on): Add link-warning.
48464         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
48465         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
48466         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
48467         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
48468         GL_LINK_WARNING.
48469         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
48470         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
48471         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
48472         * doc/posix-functions/getpeername.texi: Mention the new module
48473         'getpeername'.
48474         * doc/posix-functions/getsockname.texi: Mention the new module
48475         'getsockname'.
48476         * doc/posix-functions/getsockopt.texi: Mention the new module
48477         'getsockopt'.
48478         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
48479         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
48480         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
48481         * doc/posix-functions/send.texi: Mention the new module 'send'.
48482         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
48483         * doc/posix-functions/setsockopt.texi: Mention the new module
48484         'setsockopt'.
48485         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
48486         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
48487         listen, connect, accept.
48488         * modules/select-tests (Depends-on): Likewise.
48489
48490 2008-10-05  Bruno Haible  <bruno@clisp.org>
48491
48492         * lib/winsock.c (strerror): Remove unused #undef.
48493         (rpl_close): Remove unused local variable.
48494
48495         * modules/sys_socket (Depends-on); Add errno.
48496
48497 2008-10-05  Bruno Haible  <bruno@clisp.org>
48498
48499         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
48500         (select): Add a link warning when the 'select' module is not used.
48501         * modules/sys_select (Depends-on): Add link-warning.
48502         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
48503         Suggested by Paolo Bonzini.
48504
48505 2008-10-05  Jim Meyering  <meyering@redhat.com>
48506
48507         bootstrap: check for LT_INIT more portably
48508         * build-aux/bootstrap: Avoid using grep -E, since it's not
48509         portable enough.  Suggestion from Bruno Haible.
48510
48511 2008-10-05  Bruno Haible  <bruno@clisp.org>
48512
48513         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
48514         as being fixed by gnulib.
48515
48516 2008-10-05  Bruno Haible  <bruno@clisp.org>
48517
48518         * modules/select-tests: New file, mostly copied from
48519         modules/sys_select-tests.
48520         * tests/test-select.c: New file, mostly copied from
48521         tests/test-sys_select.c.
48522         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
48523         * modules/sys_select-tests (Depends-on): Remove all dependencies.
48524         (Makefile.am): Remove test_sys_select_LDADD.
48525
48526         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
48527         to an undefined symbol, for an error message.
48528         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
48529         (gl_SYS_SELECT_H_DEFAULTS): New macro.
48530         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
48531         winsock-select.c here.
48532         * modules/sys_select (Files): Remove lib/winsock-select.c.
48533         (Depends-on): Remove alloca.
48534         (Makefile.am): Substitute GNULIB_SELECT.
48535         * modules/select: New file.
48536         * doc/posix-functions/select.texi: Update.
48537
48538 2008-10-05  Bruno Haible  <bruno@clisp.org>
48539
48540         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
48541         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
48542         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
48543         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
48544         getdtablesize.
48545         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
48546         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
48547
48548 2008-10-05  Bruno Haible  <bruno@clisp.org>
48549
48550         * modules/getdtablesize-tests: New file.
48551         * tests/test-getdtablesize.c: New file.
48552
48553         New module 'getdtablesize'.
48554         * lib/unistd.in.h (getdtablesize): New declaration.
48555         * lib/getdtablesize.c: New file.
48556         * m4/getdtablesize.m4: New file.
48557         * modules/getdtablesize: New file.
48558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48559         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
48560         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
48561         HAVE_GETDTABLESIZE.
48562         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
48563
48564 2008-10-05  Bruno Haible  <bruno@clisp.org>
48565
48566         * modules/sched (Makefile.am): Fix typo.
48567         Reported by Simon Josefsson.
48568
48569 2008-10-05  Jim Meyering  <meyering@redhat.com>
48570
48571         bootstrap: check for LT_INIT, too
48572         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
48573         are deprecated.  Suggestion from Ralf Wildenhues.
48574
48575 2008-10-05  Bruno Haible  <bruno@clisp.org>
48576
48577         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
48578         overriding them by ours.
48579         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
48580
48581 2008-10-05  Jim Meyering  <meyering@redhat.com>
48582
48583         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
48584         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
48585         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
48586
48587 2008-10-04  Bruno Haible  <bruno@clisp.org>
48588
48589         * modules/dup2 (License): Change to LGPLv2+.
48590         * modules/sleep (License): Likewise.
48591         * modules/perror (License): Likewise.
48592         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
48593         Blake.
48594         * modules/signal (License): Likewise.
48595         * modules/sigprocmask (License): Likewise.
48596         * modules/raise (License): Change to LGPLv2+, with approval by Jim
48597         Meyering.
48598
48599 2008-10-04  Bruno Haible  <bruno@clisp.org>
48600
48601         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
48602         Reported by Rainer Tammer <tammer@tammer.net>.
48603
48604 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
48605             Bruno Haible  <bruno@clisp.org>
48606
48607         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
48608         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
48609         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
48610
48611 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
48612
48613         filevercmp: new module
48614         * lib/filevercmp.h: New function filevercmp comparing version strings.
48615         * lib/filevercmp.c: Implementation of filevercmp function.
48616         * modules/filevercmp: Module metadata.
48617         * tests/test-filevercmp.c: Unit test for new module.
48618         * modules/filevercmp-tests: Unit test metadata.
48619         * MODULES.html.sh: Add filevercmp module.
48620
48621 2008-10-03  Bruno Haible  <bruno@clisp.org>
48622
48623         * lib/c-ctype.h: Add comment.
48624         Reported by Jim Meyering.
48625
48626 2008-10-02  Bruno Haible  <bruno@clisp.org>
48627
48628         * modules/posix_spawn-internal (Depends-on): Add 'open'.
48629
48630 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48631
48632         * build-aux/bootstrap: Allow renaming bootstrap, and change the
48633         name of bootstrap.conf accordingly.
48634
48635 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48636
48637         * build-aux/bootstrap: Install git-merge-changelog configuration
48638         items into .gitconfig if needed.
48639
48640 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48641
48642         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
48643         git repository, and initialize/update it accordingly.
48644
48645 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
48646
48647         * modules/fsync-tests: New file.
48648         * tests/test-fsync.c: New file.
48649
48650         New module 'fsync'.
48651         * lib/fsync.c: New file.
48652         * m4/fsync.m4: New file.
48653         * modules/fsync: New file.
48654         * lib/unistd.in.h (fsync): New declaration.
48655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
48656         GNULIB_FSYNC and HAVE_FSYNC.
48657         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
48658         * MODULES.html.sh (posix_functions): Add fsync.
48659         * doc/posix-functions/fsync.texi: Mention the new module.
48660
48661 2008-10-02  Jim Meyering  <meyering@redhat.com>
48662
48663         fts.c: sync with similar code from coreutils' remove.c
48664         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
48665         Guard also with "#if defined __linux__", since for now at least,
48666         this code is Linux-kernel-specific.
48667
48668 2008-10-02  Jim Meyering  <meyering@redhat.com>
48669
48670         fts: bug fixes
48671         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
48672         Include <sys/vfs.h>, not <sys/statfs.h>.
48673
48674         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
48675         Include <sys/vfs.h>, not <sys/statfs.h>.
48676
48677 2008-10-01  Bruno Haible  <bruno@clisp.org>
48678
48679         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
48680         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
48681         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
48682         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
48683         * doc/posix-functions/posix_spawnp.texi: Likewise.
48684         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
48685         whether posix_spawn actually works.
48686         * m4/pipe.m4 (gl_PIPE): Likewise.
48687         * modules/execute (Files): Add m4/posix_spawn.m4.
48688         * modules/pipe (Files): Add m4/posix_spawn.m4.
48689         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
48690
48691 2008-10-01  Jim Meyering  <meyering@redhat.com>
48692
48693         remove trailing spaces
48694         * NEWS: Likewise.
48695         * lib/poll.c (poll): Likewise.
48696         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
48697         * lib/winsock.c (rpl_close): Likewise.
48698         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
48699         * modules/yield: Likewise.
48700         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
48701         * tests/test-sys_select.c (connect_to_socket): Likewise.
48702
48703         fts.c: adjust a new interface to be more generally useful
48704         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
48705         (fts_build): Adjust caller.
48706
48707 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48708
48709         * modules/cond-tests: New file.
48710         * tests/test-cond.c: New file.
48711
48712 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48713             Bruno Haible  <bruno@clisp.org>
48714
48715         * modules/cond (Dependencies): Add errno, time.
48716         * lib/glthread/cond.h: Include <time.h>.
48717         (gl_cond_define, gl_cond_define_initialized): Use the same definition
48718         across platforms.
48719
48720 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48721             Bruno Haible  <bruno@clisp.org>
48722
48723         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
48724
48725 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48726             Bruno Haible  <bruno@clisp.org>
48727
48728         * modules/tls-tests (Depends-on): Add thread, yield.
48729         (configure.ac): Remove all checks.
48730         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
48731         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48732         gl_thread_self): Remove definitions. Include glthread/thread.h and
48733         glthread/yield.h instead.
48734         (test_tls): Pass an additional NULL argument to gl_thread_join.
48735
48736 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48737             Bruno Haible  <bruno@clisp.org>
48738
48739         * modules/lock-tests (Depends-on): Add thread, yield.
48740         (configure.ac): Remove all checks.
48741         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
48742         * tests/test-lock.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_lock, test_rwlock, test_recursive_lock, test_once): Pass an
48746         additional NULL argument to gl_thread_join.
48747
48748 2008-09-30  Bruno Haible  <bruno@clisp.org>
48749
48750         Fix the Win32 implementation of the 'thread' module.
48751         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
48752         pointer type.
48753         (gl_thread_self): Invoke gl_thread_self_func.
48754         (gl_thread_self_func): New declaration.
48755         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
48756         (do_init_self_key, init_self_key): New functions.
48757         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
48758         Remove some fields.
48759         (running_threads, running_lock): Remove variables.
48760         (get_current_thread_handle): New function.
48761         (gl_thread_self_func, wrapper_func, glthread_create_func,
48762         glthread_join_func, gl_thread_exit_func): Largely rewritten and
48763         simplified.
48764
48765 2008-09-30  Bruno Haible  <bruno@clisp.org>
48766
48767         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
48768         files.
48769
48770 2008-09-30  Jim Meyering  <meyering@redhat.com>
48771
48772         fts.m4: correct the test for statfs.f_type
48773         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
48774         when checking for statfs.f_type.
48775
48776 2008-09-15  Simon Josefsson  <simon@josefsson.org>
48777
48778         tests: avoid some compiler warnings
48779         * tests/test-memchr.c (main): Pass NULL indirectly.
48780         * tests/test-getdate.c (main): Remove unused variable 'ret'.
48781
48782 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
48783
48784         getdate.y: disallow countable dayshifts like "4 yesterday ago"
48785         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
48786         exactly specified dayshifts.
48787         (dayshift): New rule.
48788         (rel): Add dayshift.
48789         (relative_time_table) [tomorrow, yesterday, today, now]:
48790         Use tDAY_SHIFT in place of tDAY_UNIT.
48791         * tests/test-getdate.c: Add tests for now-disallowed countable
48792         dayshifts, e.g., "4 yesterday ago".
48793
48794 2008-09-29  Bruno Haible  <bruno@clisp.org>
48795
48796         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
48797         * tests/test-posix_spawn1.in.sh: Renamed from
48798         tests/test-posix_spawn.in.sh.
48799         * tests/test-posix_spawn2.c: New file.
48800         * tests/test-posix_spawn2.in.sh: New file.
48801         * modules/posix_spawnp-tests (Files): Update.
48802         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
48803
48804 2008-09-29  Bruno Haible  <bruno@clisp.org>
48805
48806         Propagate effects of putenv/setenv/unsetenv to child processes.
48807         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
48808         * lib/pipe.c (create_pipe): Likewise.
48809
48810 2008-09-29  Bruno Haible  <bruno@clisp.org>
48811
48812         Enable use of shell scripts as executables in mingw.
48813         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
48814         run the program as a shell script.
48815         * lib/pipe.c (create_pipe): Likewise.
48816         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
48817         resulting array.
48818
48819 2008-09-29  Eric Blake  <ebb9@byu.net>
48820
48821         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
48822
48823 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
48824
48825         * doc/posix-functions/accept.texi: Update mingw problems.
48826         * doc/posix-functions/bind.texi: Update mingw problems.
48827         * doc/posix-functions/close.texi: Update mingw problems.
48828         * doc/posix-functions/connect.texi: Update mingw problems.
48829         * doc/posix-functions/getpeername.texi: Update mingw problems.
48830         * doc/posix-functions/getsockname.texi: Update mingw problems.
48831         * doc/posix-functions/getsockopt.texi: Update mingw problems.
48832         * doc/posix-functions/ioctl.texi: Update mingw problems.
48833         * doc/posix-functions/listen.texi: Update mingw problems.
48834         * doc/posix-functions/recv.texi: Update mingw problems.
48835         * doc/posix-functions/recvfrom.texi: Update mingw problems.
48836         * doc/posix-functions/select.texi: Update mingw problems.
48837         * doc/posix-functions/send.texi: Update mingw problems.
48838         * doc/posix-functions/sendto.texi: Update mingw problems.
48839         * doc/posix-functions/setsockopt.texi: Update mingw problems.
48840         * doc/posix-functions/socket.texi: Update mingw problems.
48841
48842 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
48843             Bruno Haible  <bruno@clisp.org>
48844
48845         * lib/sys_select.in.h: Include sys/time.h.
48846         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
48847         * modules/sys_select: Depend on sys_time.
48848         * tests/test-sys_select.c: Test that sys/select.h defines struct
48849         timeval fully.
48850
48851 2008-09-29  Bruno Haible  <bruno@clisp.org>
48852
48853         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
48854         * lib/sys_select.in.h: Likewise.
48855
48856 2008-09-29  Bruno Haible  <bruno@clisp.org>
48857
48858         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
48859
48860 2008-09-29  Bruno Haible  <bruno@clisp.org>
48861
48862         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
48863         Set LIBSOCKET instead of augmenting LIBS.
48864         * modules/sockets (Link): New section.
48865         * modules/sockets-tests (test_sockets_LDADD): New variable.
48866         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
48867         * modules/poll-tests (test_poll_LDADD): New variable.
48868         * NEWS: Document the change.
48869
48870 2008-09-29  Bruno Haible  <bruno@clisp.org>
48871
48872         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
48873         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
48874         ARPA_INET_H directly.
48875         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48876
48877 2008-09-28  Bruno Haible  <bruno@clisp.org>
48878
48879         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
48880         from gl_HEADER_SYS_SOCKET.
48881         (gl_HEADER_SYS_SOCKET): Invoke it.
48882         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48883
48884 2008-09-28  Bruno Haible  <bruno@clisp.org>
48885
48886         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
48887         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
48888         Needed on OSF/1 4.0.
48889
48890 2008-09-28  Bruno Haible  <bruno@clisp.org>
48891
48892         Override open more carefully.
48893         * lib/open.c (orig_open): New function.
48894         (rpl_open): Use orig_open instead of open.
48895         * lib/fcntl.in.h: Add special invocation convention.
48896         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
48897         (gl_FUNC_OPEN): Invoke it.
48898
48899         Override freopen more carefully.
48900         * lib/freopen.c (orig_freopen): New function.
48901         (rpl_freopen): Use orig_freopen instead of freopen.
48902         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
48903         (gl_FUNC_FREOPEN): Invoke it.
48904
48905         Override fopen more carefully.
48906         * lib/fopen.c (orig_fopen): New function.
48907         (rpl_fopen): Use orig_fopen instead of fopen.
48908         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
48909         (gl_FUNC_FOPEN): Invoke it.
48910         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
48911
48912 2008-09-28  Bruno Haible  <bruno@clisp.org>
48913
48914         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
48915         SIGPIPE.
48916
48917 2008-09-28  Bruno Haible  <bruno@clisp.org>
48918
48919         * tests/test-sigaction.c (handler, main): Disable the check whether
48920         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
48921         glibc systems with LinuxThreads.
48922
48923 2008-09-28  Bruno Haible  <bruno@clisp.org>
48924
48925         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
48926
48927         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
48928         with AIX xlc.
48929         * lib/fcntl.in.h (open): Likewise.
48930         Reported by Rainer Tammer <tammer@tammer.net>.
48931
48932 2008-09-28  Bruno Haible  <bruno@clisp.org>
48933
48934         * modules/posix_spawnp-tests: New file.
48935         * tests/test-posix_spawn.c: New file.
48936         * tests/test-posix_spawn.in.sh: New file.
48937
48938         New module 'posix_spawnp'.
48939         * modules/posix_spawnp: New file.
48940         * lib/spawnp.c: New file, from GNU libc with modifications.
48941         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
48942
48943         New module 'posix_spawn'.
48944         * modules/posix_spawn: New file.
48945         * lib/spawn.c: New file, from GNU libc with modifications.
48946         * doc/posix-functions/posix_spawn.texi: Mention the new module.
48947
48948         New module 'posix_spawnattr_destroy'.
48949         * modules/posix_spawnattr_destroy: New file.
48950         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
48951         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
48952         module.
48953
48954         New module 'posix_spawnattr_setsigmask'.
48955         * modules/posix_spawnattr_setsigmask: New file.
48956         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
48957         modifications.
48958         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
48959         new module.
48960
48961         New module 'posix_spawnattr_getsigmask'.
48962         * modules/posix_spawnattr_getsigmask: New file.
48963         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
48964         modifications.
48965         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
48966         new module.
48967
48968         New module 'posix_spawnattr_setsigdefault'.
48969         * modules/posix_spawnattr_setsigdefault: New file.
48970         * lib/spawnattr_setdefault.c: New file, from GNU libc with
48971         modifications.
48972         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
48973         new module.
48974
48975         New module 'posix_spawnattr_getsigdefault'.
48976         * modules/posix_spawnattr_getsigdefault: New file.
48977         * lib/spawnattr_getdefault.c: New file, from GNU libc with
48978         modifications.
48979         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
48980         new module.
48981
48982         New module 'posix_spawnattr_setschedpolicy'.
48983         * modules/posix_spawnattr_setschedpolicy: New file.
48984         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
48985         modifications.
48986         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
48987         new module.
48988
48989         New module 'posix_spawnattr_getschedpolicy'.
48990         * modules/posix_spawnattr_getschedpolicy: New file.
48991         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
48992         modifications.
48993         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
48994         new module.
48995
48996         New module 'posix_spawnattr_setschedparam'.
48997         * modules/posix_spawnattr_setschedparam: New file.
48998         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
48999         modifications.
49000         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
49001         new module.
49002
49003         New module 'posix_spawnattr_getschedparam'.
49004         * modules/posix_spawnattr_getschedparam: New file.
49005         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
49006         modifications.
49007         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
49008         new module.
49009
49010         New module 'posix_spawnattr_setpgroup'.
49011         * modules/posix_spawnattr_setpgroup: New file.
49012         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
49013         modifications.
49014         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
49015         module.
49016
49017         New module 'posix_spawnattr_getpgroup'.
49018         * modules/posix_spawnattr_getpgroup: New file.
49019         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
49020         modifications.
49021         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
49022         module.
49023
49024         New module 'posix_spawnattr_setflags'.
49025         * modules/posix_spawnattr_setflags: New file.
49026         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
49027         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
49028         module.
49029
49030         New module 'posix_spawnattr_getflags'.
49031         * modules/posix_spawnattr_getflags: New file.
49032         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
49033         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
49034         module.
49035
49036         New module 'posix_spawnattr_init'.
49037         * modules/posix_spawnattr_init: New file.
49038         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
49039         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
49040         module.
49041
49042         New module 'posix_spawn_file_actions_destroy'.
49043         * modules/posix_spawn_file_actions_destroy: New file.
49044         * lib/spawn_faction_destroy.c: New file, from GNU libc with
49045         modifications.
49046         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
49047         the new module.
49048
49049         New module 'posix_spawn_file_actions_addopen'.
49050         * modules/posix_spawn_file_actions_addopen: New file.
49051         * lib/spawn_faction_addopen.c: New file, from GNU libc with
49052         modifications.
49053         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
49054         the new module.
49055
49056         New module 'posix_spawn_file_actions_adddup2'.
49057         * modules/posix_spawn_file_actions_adddup2: New file.
49058         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
49059         modifications.
49060         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
49061         the new module.
49062
49063         New module 'posix_spawn_file_actions_addclose'.
49064         * modules/posix_spawn_file_actions_addclose: New file.
49065         * lib/spawn_faction_addclose.c: New file, from GNU libc with
49066         modifications.
49067         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
49068         the new module.
49069
49070         New module 'posix_spawn_file_actions_init'.
49071         * modules/posix_spawn_file_actions_init: New file.
49072         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
49073         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
49074         new module.
49075
49076         New module 'posix_spawn-internal'.
49077         * modules/posix_spawn-internal: New file.
49078         * lib/spawn_int.h: New file, from GNU libc with modifications.
49079         * lib/spawni.c: New file, from GNU libc with modifications.
49080         * m4/posix_spawn.m4: New file.
49081
49082         New module 'spawn'.
49083         * modules/spawn: New file.
49084         * lib/spawn.in.h: New file, from GNU libc with modifications.
49085         * m4/spawn_h.m4: New file.
49086         * doc/posix-headers/spawn.texi: Mention the new module.
49087
49088 2008-09-28  Bruno Haible  <bruno@clisp.org>
49089
49090         * modules/sched-tests: New file.
49091         * tests/test-sched.c: New file.
49092
49093         New module 'sched'.
49094         * modules/sched: New file.
49095         * lib/sched.in.h: New file.
49096         * m4/sched_h.m4: New file.
49097         * doc/posix-headers/sched.texi: Mention the new module.
49098
49099 2008-09-27  Eric Blake  <ebb9@byu.net>
49100
49101         Fix previous patch, and tweak references to $0.
49102         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
49103         (func_version, func_gnulib_dir): Don't call this program
49104         gnulib-tool.
49105         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
49106         with using $0 in function.
49107         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
49108         (func_fatal_error): Reuse the name the user invoked us with.
49109
49110 2008-09-27  Bruno Haible  <bruno@clisp.org>
49111
49112         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
49113         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
49114         (gl_ICONV_H): Not here.
49115         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
49116         instead of assigning ICONV_H directly.
49117
49118         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
49119         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
49120         WCHAR_H directly.
49121
49122 2008-09-27  Bruno Haible  <bruno@clisp.org>
49123
49124         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
49125         * modules/arpa_inet (Depends-on): Add link-warning.
49126         (Makefile.am): Insert the definition of GL_LINK-WARNING.
49127         * modules/unistd (Makefile.am): Likewise.
49128
49129 2008-09-26  Bruno Haible  <bruno@clisp.org>
49130
49131         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
49132         variables.
49133         (func_version): Essentially copied from gnulib-tool.
49134         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
49135         func_readlink): Copied from gnulib-tool.
49136
49137 2008-09-26  Bruno Haible  <bruno@clisp.org>
49138
49139         * gnulib-tool (func_version): Change directory to $gnulib_dir before
49140         invoking git-version-gen.
49141
49142 2008-09-26  Bruno Haible  <bruno@clisp.org>
49143
49144         * posix-modules: Update to directory names changed on 2008-01-19.
49145         Remove commas in output before splitting into words. No more need to
49146         avoid 'ftruncate' since 2007-02-19.
49147
49148 2008-09-26  Bruno Haible  <bruno@clisp.org>
49149
49150         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
49151
49152 2008-09-26  Bruno Haible  <bruno@clisp.org>
49153
49154         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
49155         * modules/fwriteerror (Depends-on): Add errno.
49156
49157 2008-09-26  Bruno Haible  <bruno@clisp.org>
49158
49159         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
49160         * tests/test-vc-list-files-cvs.sh: Likewise.
49161
49162 2008-09-26  Bruno Haible  <bruno@clisp.org>
49163
49164         * doc/posix-headers/sys_resource.texi: Reorder items.
49165
49166 2008-09-26  Jim Meyering  <meyering@redhat.com>
49167
49168         fts: tweak inode comparison function
49169         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
49170         inode numbers, as documented.
49171
49172         fts: sort dirent entries on inode number before traversing
49173         This avoids a quadratic, seek-related performance penalty when
49174         operating on a directory containing many entries (measurable at 10k;
49175         3.5 hours at 2 million entries with a cold cache) on certain types
49176         of file systems, including ext3 and ext4, but not tmpfs.
49177         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
49178         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
49179         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
49180         (fs_handles_readdir_ordered_dirents_efficiently): New function.
49181         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
49182         (fts_build): Set the stat.st_ino member from D_INO.
49183         If it is likely to be useful, sort dirent entries on inode number.
49184
49185         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
49186         and the struct statfs.f_type member.
49187         * modules/fts (Depends-on): Add d-ino.
49188
49189 2008-09-26  Bruno Haible  <bruno@clisp.org>
49190
49191         * modules/sigpipe-die (Depends-on): Add sigpipe.
49192
49193         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
49194         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
49195         and GNULIB_STDIO_H_SIGPIPE are set.
49196         * lib/stdio-write.c: New file.
49197         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
49198         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49199         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49200         REPLACE_STDIO_WRITE_FUNCS.
49201         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
49202         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49203         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49204         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49205         * modules/stdio (Files): Add lib/stdio-write.c.
49206         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
49207         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49208         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49209         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49210         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
49211         REPLACE_FPRINTF_POSIX.
49212         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
49213         REPLACE_PRINTF_POSIX.
49214         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
49215         REPLACE_VFPRINTF_POSIX.
49216         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
49217         REPLACE_VPRINTF_POSIX.
49218         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
49219         SIGPIPE issue.
49220         * doc/posix-functions/fputc.texi: Likewise.
49221         * doc/posix-functions/fputs.texi: Likewise.
49222         * doc/posix-functions/fwrite.texi: Likewise.
49223         * doc/posix-functions/printf.texi: Likewise.
49224         * doc/posix-functions/putc.texi: Likewise.
49225         * doc/posix-functions/putchar.texi: Likewise.
49226         * doc/posix-functions/puts.texi: Likewise.
49227         * doc/posix-functions/vfprintf.texi: Likewise.
49228         * doc/posix-functions/vprintf.texi: Likewise.
49229
49230         * modules/safe-write (Depends-on): Add write.
49231
49232         * modules/sigpipe-tests: New file.
49233         * tests/test-sigpipe.c: New file.
49234         * tests/test-sigpipe.sh: New file.
49235
49236         * modules/write: New file.
49237         * lib/unistd.in.h: Include <sys/types.h>.
49238         (write): New declaration.
49239         * lib/write.c: New file.
49240         * m4/write.m4: New file.
49241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49242         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
49243         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
49244         GNULIB_WRITE, REPLACE_WRITE.
49245         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
49246         and the SIGPIPE issue.
49247
49248         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
49249         (raise): New declaration.
49250         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
49251         (ext_signal): New function.
49252         (rpl_raise): New function.
49253         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49254         GNULIB_SIGNAL_H_SIGPIPE.
49255         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
49256         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
49257
49258         * modules/sigpipe: New file.
49259         * m4/sigpipe.m4: New file.
49260
49261 2008-09-25  Derek Price  <derek@ximbiot.com>
49262             Bruno Haible  <bruno@clisp.org>
49263
49264         * gnulib-tool (func_import): Report all license incompatibilities, not
49265         just the first one.
49266
49267 2008-09-25  Bruno Haible  <bruno@clisp.org>
49268
49269         * gnulib-tool (func_import): When computing the edits, consider not
49270         only the Makefile.ams that exist but also those that will be generated.
49271
49272 2008-09-25  Simon Josefsson  <simon@josefsson.org>
49273
49274         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
49275         fixes gnulib-tool --test warning about duplicate dependency.
49276
49277 2008-09-25  Bruno Haible  <bruno@clisp.org>
49278
49279         * gnulib-tool: Don't ask the user to perform edits in the generated
49280         Makefile.ams.
49281         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
49282         apply to the Makefile.am being generated.
49283         (func_emit_tests_Makefile_am): Execute edits that apply to the
49284         Makefile.am being generated.
49285         (func_import): Setup list of Makefile.am edits before emitting the
49286         Makefile.ams, not at the end.
49287         (func_create_testdir): Update.
49288         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49289
49290 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49291
49292         * gnulib-tool (func_import): Store the --tests-base option in the
49293         comment in gnulib-cache.m4.
49294
49295 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
49296
49297         * NEWS: Document increased portability that sys_select now provides.
49298
49299         * lib/sys_select.in.h: Install select wrapper.
49300         * lib/sys_socket.in.h: Use more descriptive name when there is no
49301         select wrapper.
49302         * lib/winsock-select.c: New.
49303         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
49304         Require gl_HEADER_SYS_SOCKET.
49305         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
49306         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
49307         * tests/test-sys_select.c: Add functional tests.
49308
49309 2008-09-24  Eric Blake  <ebb9@byu.net>
49310
49311         open, fopen: close fd leak in last patch
49312         * lib/open.c (rpl_open): Close fd before returning error.
49313         * lib/fopen.c (rpl_fopen): Close fd before returning error.
49314         * doc/posix-functions/open.texi (open): Document that Irix also
49315         has the bug.
49316         * doc/posix-functions/fopen.texi (fopen): Likewise.
49317         Reported by Paolo Bonzini.
49318
49319 2008-09-24  Bruno Haible  <bruno@clisp.org>
49320
49321         Ensure that a filename ending in a slash cannot be used to access a
49322         non-directory.
49323         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
49324         to check whether it's really a directory.
49325         * lib/fopen.c: Include fcntl.h, unistd.h.
49326         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
49327         and fdopen().
49328         * modules/fopen (Depends-on): Add unistd.
49329         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
49330         * tests/test-fopen.c (main): Likewise.
49331         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
49332         * doc/posix-functions/fopen.texi: Likewise.
49333         Reported by Eric Blake.
49334
49335 2008-09-23  Eric Blake  <ebb9@byu.net>
49336
49337         c-stack: avoid compiler optimizations when provoking overflow
49338         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
49339         recursion harder to optimize, to ensure a stack overflow occurs.
49340         * tests/test-c-stack.c (recurse): Likewise.
49341         Borrowed from libsigsegv.
49342
49343         c-stack: work around Irix sigaltstack bug
49344         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
49345         whether sigaltstack uses wrong end of stack_t (copied in part from
49346         libsigsegv).
49347         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
49348         Irix bug, without requiring an over-allocation.
49349         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
49350         bug.
49351
49352         fopen: document mingw bug on directories
49353         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
49354         not allowing a stream visiting a directory, even though reading
49355         from such a stream is not portable.
49356
49357 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49358
49359         * lib/poll.c: Rewrite.
49360         * modules/poll: Depend on alloca.
49361
49362 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49363
49364         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
49365         instead define prototypes for a full set of wrappers.  Ensure
49366         that Cygwin does not use the compatibility code, which is only
49367         for MinGW.
49368         * lib/winsock.c: New.
49369         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
49370         * modules/sys_socket: Add lib/winsock.c.
49371
49372         * modules/poll-tests: Add errno and perror.
49373         * tests/test-poll.c: Use ioctl, not ioctlsocket.
49374
49375 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49376
49377         * tests/test-poll.c: Downgrade minimum needed Winsock version.
49378
49379 2008-09-23  Bruno Haible  <bruno@clisp.org>
49380
49381         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
49382         * doc/glibc-functions/*: Likewise.
49383
49384 2008-09-23  Simon Josefsson  <simon@josefsson.org>
49385
49386         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
49387         success.
49388
49389 2008-09-22  Eric Blake  <ebb9@byu.net>
49390             Bruno Haible  <bruno@clisp.org>
49391
49392         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
49393         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
49394         supply %A but mishandle pseudo-NaN.
49395         Reported by Simon Josefsson.
49396
49397 2008-09-21  Bruno Haible  <bruno@clisp.org>
49398
49399         * tests/test-lock.c (main): Tweak skip message.
49400         * tests/test-tls.c (main): Likewise.
49401
49402 2008-09-21  Bruno Haible  <bruno@clisp.org>
49403
49404         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
49405         whether 'struct sigaction' has sa_sigaction here...
49406         (gl_PREREQ_SIG_HANDLER_H): ... not here.
49407         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
49408
49409 2008-09-21  Bruno Haible  <bruno@clisp.org>
49410
49411         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
49412         section.
49413         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
49414         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
49415         the new section.
49416         (Support for obsolete systems lacking POSIX:2001): New section.
49417         (String handling <string.h>): Move strdup to the new section.
49418         Suggested by Simon Josefsson and Paolo Bonzini.
49419
49420 2008-09-21  Bruno Haible  <bruno@clisp.org>
49421
49422         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
49423         exponents in %e and %g results on 'long double'. Needed for mingw's
49424         improved *printf functions.
49425         * tests/test-vasprintf-posix.c (test_function): Likewise.
49426         * tests/test-snprintf-posix.h (test_function): Likewise.
49427         * tests/test-sprintf-posix.h (test_function): Likewise.
49428         Reported by Eric Blake.
49429
49430 2008-09-21  Bruno Haible  <bruno@clisp.org>
49431
49432         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
49433         * tests/test-sprintf-posix.h (test_function): Likewise.
49434
49435 2008-09-21  Bruno Haible  <bruno@clisp.org>
49436
49437         * modules/getpass (Depends-on): Add strdup-posix.
49438
49439         New module 'strdup-posix'.
49440         * modules/strdup-posix: New file.
49441         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
49442         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
49443         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49444         REPLACE_STRDUP.
49445         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
49446         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
49447         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49448         strdup-posix.
49449
49450         * modules/strdup (Depends-on): Remove malloc-posix.
49451
49452 2008-09-20  Bruno Haible  <bruno@clisp.org>
49453
49454         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
49455         Wildenhues.
49456
49457 2008-09-20  Bruno Haible  <bruno@clisp.org>
49458
49459         Ensure that wint_t gets defined on IRIX 5.3.
49460         * lib/wchar.in.h (wint_t): Define if not defined by the system.
49461         * lib/wctype.in.h (wint_t): Likewise.
49462         (__wctype_wint_t): Remove type.
49463         (isw*): Use wint_t instead of __wctype_wint_t.
49464         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
49465         * modules/wchar (Files): Add m4/wint_t.m4.
49466         (Makefile.am): Substitute HAVE_WINT_T.
49467         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
49468         * tests/test-wctype.c: Check that wint_t is defined.
49469         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
49470         * doc/posix-headers/wctype.texi: Likewise.
49471         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49472
49473 2008-09-18  Bruno Haible  <bruno@clisp.org>
49474
49475         * gnulib-tool (func_exit): Update comment.
49476
49477 2008-09-18  Simon Josefsson  <simon@josefsson.org>
49478
49479         * modules/getaddrinfo (Depends-on): Remove strdup, this module
49480         assumes strdup exists and does not depend on strdup to return
49481         ENOMEM on out of memory conditions.
49482
49483 2008-09-18  Bruno Haible  <bruno@clisp.org>
49484
49485         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
49486         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
49487         digits for the exponent.
49488
49489 2008-09-18  Jim Meyering  <meyering@redhat.com>
49490             Bruno Haible  <bruno@clisp.org>
49491
49492         * lib/vasnprintf.c (decimal_point_char): Define also if
49493         NEED_PRINTF_INFINITE_LONG_DOUBLE.
49494
49495 2008-09-16  Bruno Haible  <bruno@clisp.org>
49496         and Eric Blake  <ebb9@byu.net>
49497
49498         vasnprintf: support Irix 5.3
49499         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
49500         that mishandle long double infinity.
49501         Reported by Tom G. Christensen.
49502
49503 2008-09-16  Bruno Haible  <bruno@clisp.org>
49504
49505         * doc/glibc-functions/scandir.texi: Mention the function is missing on
49506         Solaris 9.
49507         * doc/glibc-functions/alphasort.texi: Likewise.
49508         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
49509
49510 2008-09-16  Jim Meyering  <meyering@redhat.com>
49511
49512         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
49513         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
49514         a umask modification leak out of a subshell.  Otherwise, the
49515         opensolaris /bin/sh would be accepted and thus cause unwarranted
49516         failures in the coreutils test suite.
49517
49518 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
49519
49520         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
49521         to succeed.
49522
49523 2008-09-16  Jim Meyering  <meyering@redhat.com>
49524
49525         avoid spurious test failure when library is built without ACL support
49526         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
49527         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
49528         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
49529         * tests/test-copy-acl.sh: Likewise.
49530
49531 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49532
49533         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
49534         based on character occurrence counts.
49535
49536 2008-09-15  Eric Blake  <ebb9@byu.net>
49537
49538         tests: avoid some compiler warnings
49539         * tests/test-memchr.c (main): Pass NULL indirectly.
49540         * tests/test-closein.c (main): Avoid unused variable.
49541
49542 2008-09-15  Bruno Haible  <bruno@clisp.org>
49543
49544         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
49545         are missing on OpenBSD 4.0 individually.
49546         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49547
49548 2008-09-15  Bruno Haible  <bruno@clisp.org>
49549
49550         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
49551         * doc/posix-functions/strerror.texi: Mention also Cygwin.
49552         * doc/posix-functions/perror.texi: Likewise.
49553         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
49554         is missing.
49555         Reported by Eric Blake.
49556
49557         * lib/errno.in.h: Use replacement values >= 2000.
49558         Reported by Eric Blake.
49559
49560 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49561
49562         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
49563         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
49564         limit.
49565         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
49566         compareseq was aborted.
49567
49568 2008-09-14  Bruno Haible  <bruno@clisp.org>
49569
49570         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
49571         yvec_edit_count.
49572         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
49573         (fstrcmp_bounded): Simplify result computation accordingly.
49574
49575 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49576
49577         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
49578         (fstrcmp): Define in terms of fstrcmp_bounded.
49579         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
49580         lower_bound argument.
49581         Return quickly if the result is certainly < lower_bound.
49582         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
49583
49584 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49585
49586         * lib/diffseq.h (EARLY_ABORT): New macro.
49587         (compareseq): Change return type to bool. Return true when EARLY_ABORT
49588         evaluates to true.
49589
49590 2008-09-14  Bruno Haible  <bruno@clisp.org>
49591
49592         * modules/perror-tests: New file.
49593         * tests/test-perror.sh: New file.
49594         * tests/test-perror.c: New file.
49595
49596         New module 'perror'.
49597         * lib/stdio.in.h (perror): New declaration.
49598         * lib/perror.c: New file.
49599         * m4/perror.m4: New file.
49600         * modules/perror: New file.
49601         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
49602         * doc/posix-functions/perror.texi: Mention the perror module.
49603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
49604         REPLACE_PERROR.
49605         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
49606         REPLACE_PERROR.
49607
49608 2008-09-14  Bruno Haible  <bruno@clisp.org>
49609
49610         * modules/stdio (Makefile.am): Reorder to match the order in
49611         lib/stdio.in.h.
49612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49613
49614 2008-09-13  Bruno Haible  <bruno@clisp.org>
49615
49616         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
49617
49618 2008-09-13  Bruno Haible  <bruno@clisp.org>
49619
49620         Extend strerror to cover the added errno values.
49621         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
49622         (rpl_strerror): Provide error messages for the added errno values and
49623         for the WSA* values.
49624         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
49625         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
49626         strerror.
49627         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
49628         * modules/strerror (Depends-on): Add errno.
49629         * doc/posix-functions/strerror.texi: Document the change.
49630         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
49631         and EOVERFLOW.
49632
49633 2008-09-13  Bruno Haible  <bruno@clisp.org>
49634
49635         * modules/EOVERFLOW: Remove file.
49636         * m4/eoverflow.m4: Remove file.
49637         * modules/EOVERFLOW-tests: Remove file.
49638         * tests/test-EOVERFLOW.c: Remove file.
49639         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
49640         * modules/ftell (Depends-on): Likewise.
49641         * modules/getdelim (Depends-on): Likewise.
49642         * modules/getugroups (Depends-on): Likewise.
49643         * modules/poll (Depends-on): Likewise.
49644         * modules/snprintf (Depends-on): Likewise.
49645         * modules/sprintf-posix (Depends-on): Likewise.
49646         * modules/vasnprintf (Depends-on): Likewise.
49647         * modules/vasprintf (Depends-on): Likewise.
49648         * modules/vfprintf-posix (Depends-on): Likewise.
49649         * modules/vsnprintf (Depends-on): Likewise.
49650         * modules/vsprintf-posix (Depends-on): Likewise.
49651         * modules/xvasprintf (Depends-on): Likewise.
49652         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49653         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
49654         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
49655         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
49656         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49657         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
49658         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
49659         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
49660         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49661         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
49662         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
49663         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
49664         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49665         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
49666         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
49667         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
49668         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49669         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
49670         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
49671         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
49672         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49673         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
49674         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
49675         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
49676         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
49677         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49678         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
49679         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
49680         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
49681         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
49682         * MODULES.html.sh: Remove EOVERFLOW.
49683         * NEWS: Mention the change.
49684
49685 2008-09-13  Bruno Haible  <bruno@clisp.org>
49686
49687         * modules/errno-tests: New file.
49688         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
49689
49690         * lib/errno.in.h: New file.
49691         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
49692         * modules/errno: New file.
49693         * doc/posix-headers/errno.texi: Update documentation.
49694         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
49695
49696 2008-09-13  Bruno Haible  <bruno@clisp.org>
49697
49698         * tests/test-poll.c: Use #if for native Windows, rather than testing
49699         __MSVCRT__.
49700
49701 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49702             Bruno Haible  <bruno@clisp.org>
49703
49704         * lib/glob.c: Don't include <pwd.h> on native Windows.
49705         (WINDOWS32): New macro.
49706         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
49707
49708 2008-09-13  Bruno Haible  <bruno@clisp.org>
49709
49710         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
49711         (ETIMEDOUT): Remove macro.
49712         (glthread_cond_timedwait_multithreaded): New declaration.
49713         (glthread_cond_timedwait): Use it.
49714         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
49715         (glthread_cond_timedwait_multithreaded): New function.
49716
49717 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49718
49719         * modules/poll-tests: Do not check for io.h.
49720         * tests/test-poll.c: Check for __MSVCRT__ instead.
49721
49722 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49723
49724         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
49725         * modules/poll-tests: Add inet_pton, stdbool, sockets.
49726         * tests/test-poll.c: Use them.  Use _pipe on Windows.
49727
49728 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49729
49730         * modules/poll-tests: New.
49731         * tests/test-poll.c: New.
49732
49733 2008-09-12  Eric Blake  <ebb9@byu.net>
49734
49735         frexp: test for NetBSD failure on -0.0
49736         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
49737         not all, bugs from NetBSD 3.0 have been fixed.
49738         * doc/posix-functions/frexp.texi (frexp): Document bug.
49739         Reported by Thomas Klausner.
49740
49741         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
49742         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
49743         literal -0.0.
49744         Reported by Jonathan C. Patschke <jp@centtech.com>.
49745
49746 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49747
49748         * lib/glthread/cond.h: Use dummy implementation also if
49749         USE_WIN32_THREADS.
49750
49751 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49752
49753         * modules/fnmatch-posix (License): Change to LGPLv2+.
49754         * modules/fnmatch-gnu (License): Likewise.
49755
49756 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49757
49758         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
49759
49760 2008-09-11  Jim Meyering  <meyering@redhat.com>
49761
49762         * users.txt: Add gtk-vnc.
49763
49764 2008-09-08  Simon Josefsson  <simon@josefsson.org>
49765
49766         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
49767         rotate amounts.
49768
49769         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
49770         required for 16-bit and 8-bit rotates.
49771         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
49772         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
49773         UINT8_MAX instead of hard-coded constants.
49774         Suggested by Paul Eggert.
49775
49776 2008-09-07  Bruno Haible  <bruno@clisp.org>
49777
49778         * tests/test-striconveh.c (main): Check behaviour when converting from
49779         UTF-7.
49780
49781         Make striconveh work better with stateful encodings.
49782         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
49783         that iconv does not increment the inptr when returning -1/EINVAL.
49784
49785 2008-09-07  Bruno Haible  <bruno@clisp.org>
49786
49787         * build-aux/config.rpath: Update according to libtool-2.2.6.
49788         * build-aux/config.libpath: Likewise.
49789
49790 2008-09-06  Bruno Haible  <bruno@clisp.org>
49791
49792         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
49793         * lib/freadptr.c (freadptr): Likewise.
49794         * lib/freadseek.c (freadptrinc): Likewise.
49795         Reported by Simon Josefsson.
49796
49797 2008-09-06  Bruno Haible  <bruno@clisp.org>
49798
49799         * modules/freadptr (License): Change to LGPLv2+.
49800         * modules/freadseek (License): Likewise.
49801         Suggested by Eric Blake.
49802
49803         * modules/memchr2 (License): Change to LGPLv2+.
49804         Approved by Eric Blake.
49805
49806 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49807             Bruno Haible  <bruno@clisp.org>
49808
49809         Make gnulib-tool work with native 'sed' on AIX.
49810         * gnulib-tool (sed_noop): New variable.
49811         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
49812         func_add_or_update, func_create_testdir): Use it to initialize sed
49813         script variables.
49814         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49815
49816 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
49817             Bruno Haible  <bruno@clisp.org>
49818
49819         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
49820         also works after #include directives.
49821
49822 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
49823
49824         getdate.y: reject an out-of-range timezone value
49825         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
49826         the range [-24...+24].  When specified with only one or two digits,
49827         * tests/test-getdate.c: Tests for the fix.
49828         * doc/getdate.texi: Document this change.
49829
49830 2008-09-03  Bruno Haible  <bruno@clisp.org>
49831
49832         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
49833
49834 2008-09-02  Simon Josefsson  <simon@josefsson.org>
49835
49836         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
49837         <bruce.korb@gmail.com> with ideas from Ben Pfaff
49838         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
49839         Blake <ebb9@byu.net>.
49840
49841         * tests/test-bitrotate.c: Add more test vectors.
49842
49843 2008-09-02  Eric Blake  <ebb9@byu.net>
49844
49845         vasnprintf-posix: handle large precision via %.*d
49846         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
49847         when handling it ourselves.
49848         * tests/test-vasnprintf-posix.c (test_function): Add test.
49849         * tests/test-snprintf-posix.h (test_function): Likewise.
49850         * tests/test-sprintf-posix.h (test_function): Likewise.
49851         * tests/test-vasprintf-posix.c (test_function): Likewise.
49852         Reported by Alain Guibert.
49853
49854 2008-09-01  Eric Blake  <ebb9@byu.net>
49855
49856         c-stack: make configure-time check more robust
49857         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
49858         successful sigaction call.
49859         Reported by Tom G. Christensen.
49860
49861 2008-09-01  Bruno Haible  <bruno@clisp.org>
49862
49863         New module 'findprog-lgpl'.
49864         * modules/findprog-lgpl: New file.
49865         * lib/findprog-lgpl.c: New file.
49866         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
49867         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
49868         to decide whether to use strdup or xstrdup, concatenated_filename or
49869         xconcatenated_filename.
49870
49871 2008-09-01  Bruno Haible  <bruno@clisp.org>
49872
49873         Split module 'concat-filename' into 'concat-filename' (LGPL) and
49874         'xconcat-filename' (GPL).
49875         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
49876         (License): Change to LGPLv2+.
49877         * modules/xconcat-filename: New file.
49878         * lib/concat-filename.h (concatenated_filename): Change specification.
49879         (xconcatenated_filename): New declaration.
49880         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
49881         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
49882         memory situations.
49883         * lib/xconcat-filename.c: New file.
49884         * NEWS: Mention the change.
49885         * lib/findprog.c: Include concat-filename.h, not filename.h.
49886         (find_in_path): Use xconcatenated_filename instead of
49887         concatenated_filename.
49888         * lib/javacomp.c: Include concat-filename.h, not filename.h.
49889         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49890         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49891         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49892         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
49893         instead of concatenated_filename.
49894         * lib/javaexec.c: Include concat-filename.h, not filename.h.
49895         (execute_java_class): Use xconcatenated_filename instead of
49896         concatenated_filename.
49897         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
49898         * modules/javacomp (Depends-on): Likewise.
49899         * modules/javaexec (Depends-on): Likewise.
49900
49901 2008-09-01  Bruno Haible  <bruno@clisp.org>
49902
49903         Split module 'filename' into 'filename' and 'concat-filename'.
49904         * modules/filename: Keep only lib/filename.h.
49905         (License): Change to LGPLv2+.
49906         * modules/concat-filename: New file, extracted from modules/filename.
49907         * lib/filename.h (concatenated_filename): Remove declaration.
49908         * lib/concat-filename.h: New file, extracted from lib/filename.h.
49909         * lib/concat-filename.c: Include concat-filename.h.
49910         * NEWS: Mention the change.
49911
49912 2008-09-01  Simon Josefsson  <simon@josefsson.org>
49913
49914         * lib/bitrotate.h (rotl8, rotr8): Add.
49915
49916         * modules/bitrotate (configure.ac): Need
49917         AC_REQUIRE([AC_C_INLINE]).
49918         (Description): Mention stdint.h.  Reported by Bruno Haible
49919         <bruno@clisp.org>.
49920
49921         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
49922         Paolo Bonzini <bonzini@gnu.org>.
49923
49924 2008-08-31  Bruno Haible  <bruno@clisp.org>
49925
49926         Assume Solaris specific bi-arch conventions on Solaris systems.
49927         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
49928         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
49929         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
49930         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
49931         like acl_libdirstem.
49932         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
49933         acl_libdirstem.
49934         * NEWS: Mention the change.
49935         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
49936
49937 2008-08-31  Jim Meyering  <meyering@redhat.com>
49938
49939         * lib/strftime.h: Add comments describing the two added arguments.
49940
49941         remove duplicate #include directives
49942         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
49943         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
49944
49945 2008-08-31  Bruno Haible  <bruno@clisp.org>
49946
49947         New module 'sigpipe-die'.
49948         * modules/sigpipe-die: New file.
49949         * lib/sigpipe-die.h: New file.
49950         * lib/sigpipe-die.c: New file.
49951         * MODULES.html.sh (Signal handling): Add sigpipe-die.
49952
49953 2008-08-31  Bruno Haible  <bruno@clisp.org>
49954
49955         Don't override previously installed signal handlers.
49956         * lib/fatal-signal.c (saved_sigactions): New variable.
49957         (uninstall_handlers): Reset the signal to the saved handler, not
49958         to SIG_DFL (except when ignored).
49959         (install_handlers): Save the previous handlers.
49960
49961 2008-08-30  Bruno Haible  <bruno@clisp.org>
49962
49963         * gnulib-tool (func_reset_sigpipe): New function.
49964         (func_get_automake_snippet, func_modules_transitive_closure,
49965         func_import): Invoke it before a join command that reads from stdin,
49966         to avoid "echo: write error: Broken pipe" error messages on stderr.
49967         Reported by Sam Steingold <sds@gnu.org>.
49968
49969 2008-08-30  Bruno Haible  <bruno@clisp.org>
49970
49971         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
49972         Code copied from m4/open.m4.
49973         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
49974         access and the filename ends in a slash. Code copied from lib/open.c.
49975         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
49976         * tests/test-fopen.c (main): Check against bug with trailing slash.
49977
49978 2008-08-29  Bruno Haible  <bruno@clisp.org>
49979
49980         Avoid some "gcc -pedantic" warnings.
49981         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
49982         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
49983         * lib/dirent.in.h: Likewise.
49984         * lib/fcntl.in.h: Likewise.
49985         * lib/float.in.h: Likewise.
49986         * lib/iconv.in.h: Likewise.
49987         * lib/inttypes.in.h: Likewise.
49988         * lib/locale.in.h: Likewise.
49989         * lib/math.in.h: Likewise.
49990         * lib/netinet_in.in.h: Likewise.
49991         * lib/search.in.h: Likewise.
49992         * lib/signal.in.h: Likewise.
49993         * lib/stdarg.in.h: Likewise.
49994         * lib/stdint.in.h: Likewise.
49995         * lib/stdio.in.h: Likewise.
49996         * lib/stdlib.in.h: Likewise.
49997         * lib/string.in.h: Likewise.
49998         * lib/strings.in.h: Likewise.
49999         * lib/sys_select.in.h: Likewise.
50000         * lib/sys_socket.in.h: Likewise.
50001         * lib/sys_stat.in.h: Likewise.
50002         * lib/sys_time.in.h: Likewise.
50003         * lib/sysexits.in.h: Likewise.
50004         * lib/time.in.h: Likewise.
50005         * lib/unistd.in.h: Likewise.
50006         * lib/wchar.in.h: Likewise.
50007         * lib/wctype.in.h: Likewise.
50008         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
50009         * modules/fchdir (Makefile.am): Likewise.
50010         * modules/fcntl (Makefile.am): Likewise.
50011         * modules/float (Makefile.am): Likewise.
50012         * modules/iconv_open (Makefile.am): Likewise.
50013         * modules/inttypes (Makefile.am): Likewise.
50014         * modules/locale (Makefile.am): Likewise.
50015         * modules/math (Makefile.am): Likewise.
50016         * modules/netinet_in (Makefile.am): Likewise.
50017         * modules/search (Makefile.am): Likewise.
50018         * modules/signal (Makefile.am): Likewise.
50019         * modules/stdarg (Makefile.am): Likewise.
50020         * modules/stdint (Makefile.am): Likewise.
50021         * modules/stdio (Makefile.am): Likewise.
50022         * modules/stdlib (Makefile.am): Likewise.
50023         * modules/string (Makefile.am): Likewise.
50024         * modules/strings (Makefile.am): Likewise.
50025         * modules/sys_select (Makefile.am): Likewise.
50026         * modules/sys_socket (Makefile.am): Likewise.
50027         * modules/sys_stat (Makefile.am): Likewise.
50028         * modules/sys_time (Makefile.am): Likewise.
50029         * modules/sysexits (Makefile.am): Likewise.
50030         * modules/time (Makefile.am): Likewise.
50031         * modules/unistd (Makefile.am): Likewise.
50032         * modules/wchar (Makefile.am): Likewise.
50033         * modules/wctype (Makefile.am): Likewise.
50034         Reported by Reuben Thomas <rrt@sc3d.org>.
50035
50036 2008-08-29  Bruno Haible  <bruno@clisp.org>
50037
50038         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
50039         any more.
50040
50041 2008-08-29  Simon Josefsson  <simon@josefsson.org>
50042
50043         * MODULES.html.sh (Misc): Add bitrotate.
50044
50045         * modules/bitrotate: New file.
50046
50047         * lib/bitrotate.h: New file.
50048
50049         * modules/bitrotate-tests: New file.
50050
50051         * tests/test-bitrotate.c: New file.
50052
50053         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
50054         on the bitrotate module.
50055
50056         * lib/arctwo.c: Use new bitrotate module.
50057
50058 2008-08-29  Jim Meyering  <meyering@redhat.com>
50059
50060         bootstrap: merge changes from coreutils
50061         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
50062         of copied files.  Remove a kludge, now that this is fixed.
50063         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
50064         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
50065         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
50066
50067 2008-08-29  Bruno Haible  <bruno@clisp.org>
50068
50069         * MODULES.html.sh: Remove --cvs-urls option.
50070
50071 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
50072
50073         maint.mk: adjust to file name change
50074         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
50075
50076 2008-08-28  Jim Meyering  <meyering@redhat.com>
50077
50078         * modules/getndelim2 (License): Relicense to LGPLv2+.
50079         Approved by Richard Stallman for the version of 1995, and by
50080         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
50081
50082 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
50083
50084         * lib/getdelim.c (flockfile, funlockfile): Make all of them
50085         dummy if one is not available.  Do not touch them if
50086         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
50087         (getc_maybe_unlocked): New.
50088         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
50089
50090 2008-08-26  Eric Blake  <ebb9@byu.net>
50091
50092         doc/INSTALL: resync from autoconf
50093         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
50094         (INSTALL_PRELUDE): Delete; this is done more efficiently by
50095         moving...
50096         * install.texi [!autoconf]: ...here.  Resync from autoconf.
50097         * INSTALL: Regenerate.
50098         * INSTALL.ISO: New file.
50099         * INSTALL.UTF-8: Likewise.
50100
50101 2008-08-26  Jim Meyering  <meyering@redhat.com>
50102
50103         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
50104         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
50105         these definitions conditional, so that they may be overridden, too.
50106
50107 2008-08-26  Bruno Haible  <bruno@clisp.org>
50108
50109         Generate INSTALL file variants with prettier quotes.
50110         * doc/Makefile (INSTALL_PRELUDE): New macro.
50111         (INSTALL): Use it.
50112         (INSTALL.ISO, INSTALL.UTF-8): New rules.
50113
50114 2008-08-26  Bruno Haible  <bruno@clisp.org>
50115
50116         Run makeinfo in an English locale.
50117         * doc/Makefile (MAKEINFO): New variable.
50118
50119 2008-08-26  Bruno Haible  <bruno@clisp.org>
50120
50121         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
50122         Suggested by Eric Blake.
50123
50124 2008-08-25  Bruno Haible  <bruno@clisp.org>
50125
50126         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
50127
50128 2008-08-25  Eric Blake  <ebb9@byu.net>
50129
50130         c-stack: test that stack overflow can be caught
50131         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
50132         that platform allows handling stack overflow; at least OS/2 EMX
50133         has sigaltstack, but crashes before transferring control to
50134         handler on stack overflow.
50135         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
50136         check for HAVE_STACK_OVERFLOW_HANDLING.
50137         Reported by Elbert Pol.
50138
50139 2008-08-25  Bruno Haible  <bruno@clisp.org>
50140
50141         * doc/posix-functions/strftime.texi: Fix description of strftime
50142         module.
50143
50144 2008-08-24  Bruno Haible  <bruno@clisp.org>
50145
50146         * tests/uniwidth/test-uc_width2.c: New file.
50147         * tests/uniwidth/test-uc_width2.sh: New file.
50148         * modules/uniwidth/width-tests (Files): Add the new files.
50149         (TESTS): Add uniwidth/test-uc_width2.sh.
50150         (TESTS_ENVIRONMENT): New variable.
50151         (check_PROGRAMS): Add test-uc_width2.
50152         (test_uc_width2_SOURCES): New variable.
50153
50154         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
50155         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
50156         not 0x00AB.
50157         Reported by Alexander V. Lukyanov <lav@netis.ru>.
50158
50159 2008-08-22  Eric Blake  <ebb9@byu.net>
50160
50161         test-lock, test-tls: mention why a test is skipped
50162         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
50163         skipped.
50164         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
50165
50166         count-one-bits: relax license
50167         * modules/count-one-bits (License): Relicense to LGPLv2+.
50168         Suggested by Ludovic Courtès, approved by Ben Pfaff.
50169
50170 2008-08-22  Andreas Schwab  <schwab@suse.de>
50171
50172         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
50173         Remove spurious space in assignment.
50174
50175 2008-08-21  Simon Josefsson  <simon@josefsson.org>
50176
50177         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
50178         Paul Eggert <eggert@CS.UCLA.EDU>.
50179
50180 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
50181
50182         * modules/gettext: Add m4/threadlib.m4.
50183
50184 2008-08-19  Eric Blake  <ebb9@byu.net>
50185
50186         test-c-stack: fix compilation failure on FreeBSD 5.0
50187         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
50188         headers before <sys/resource.h>.
50189         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
50190         the bug.
50191         Reported by Nelson H. F. Beebe.
50192
50193         strverscmp: migrate from "strverscmp.h" to <string.h>
50194         * modules/string (Makefile.am): Add new hooks.
50195         * modules/strverscmp (Files): Remove strverscmp.h.
50196         (Depends-on): Add string.
50197         (configure.ac): Add indicator.
50198         (Include): Mention new header.
50199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
50200         defaults.
50201         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
50202         results.
50203         * lib/strverscmp.h: Delete.
50204         * lib/string.in.h (strverscmp): Provide declaration, when needed.
50205         * tests/test-strverscmp.c (includes): Adjust client.
50206         * lib/check-version.c (includes): Likewise.
50207         * NEWS: Document the change.
50208
50209         strverscmp: add unit test
50210         * modules/strverscmp-tests: New file.
50211         * tests/test-strverscmp.c: Likewise.
50212
50213 2008-08-19  Simon Josefsson  <simon@josefsson.org>
50214
50215         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
50216         regarding Windows crypto stuff, from Mono.
50217
50218 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
50219
50220         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
50221         if present, for intel RND.  Return error on failures.
50222
50223 2008-08-18  Ben Pfaff  <blp@gnu.org>
50224
50225         gitlog-to-changelog: give better diagnostic for failed pipe-open
50226         * build-aux/gitlog-to-changelog: Improve error message: suggest
50227         that the version of Git may be too old.
50228
50229 2008-08-18  Simon Josefsson  <simon@josefsson.org>
50230
50231         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
50232         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
50233
50234 2008-08-18  Bruno Haible  <bruno@clisp.org>
50235
50236         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
50237         pthread_in_use().
50238
50239 2008-08-18  Bruno Haible  <bruno@clisp.org>
50240
50241         * lib/glthread/threadlib.c: Include <pthread.h>.
50242
50243 2008-08-18  Bruno Haible  <bruno@clisp.org>
50244
50245         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
50246         glthread_recursive_lock_* macros.
50247         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
50248         Fix syntax error.
50249
50250 2008-08-18  Bruno Haible  <bruno@clisp.org>
50251
50252         * lib/glthread/thread.c: Avoid forcing a context switch right after
50253         thread creation.
50254
50255 2008-08-17  Bruno Haible  <bruno@clisp.org>
50256
50257         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
50258         * lib/glthread/thread.h: Provide Win32 specific implementation.
50259         * modules/thread (Files): Add lib/glthread/thread.c.
50260         (Depends-on): Add lock.
50261         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
50262
50263 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50264
50265         New module 'yield'.
50266         * modules/yield: New file.
50267         * lib/glthread/yield.h: New file.
50268         * m4/yield.m4: New file.
50269         * MODULES.html.sh (Multithreading): Add yield.
50270
50271 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50272
50273         New module 'thread'.
50274         * modules/thread: New file.
50275         * lib/glthread/thread.h: New file.
50276         * m4/thread.m4: New file.
50277         * MODULES.html.sh (Multithreading): Add thread.
50278
50279 2008-08-17  Bruno Haible  <bruno@clisp.org>
50280
50281         * lib/glthread/lock.h: Include <stdlib.h> always.
50282         * lib/glthread/tls.h: Likewise.
50283         * lib/glthread/cond.h: Likewise.
50284
50285 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50286
50287         New module 'cond'.
50288         * modules/cond: New file.
50289         * lib/glthread/cond.h: New file.
50290         * lib/glthread/cond.c: New file.
50291         * m4/cond.m4: New file.
50292         * MODULES.html.sh (Multithreading): Add cond.
50293
50294 2008-08-16  Eric Blake  <ebb9@byu.net>
50295
50296         c-stack: fix regression on Irix 5.3 from 2008-06-21
50297         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
50298         sa_sigaction...
50299         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
50300         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
50301         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
50302         * modules/signal (Makefile.am): Use the value.
50303         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
50304         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
50305         * doc/posix-headers/signal.texi (signal.h): Document this
50306         portability issue.
50307         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
50308         Reported by Tom G. Christensen.
50309
50310 2008-08-17  Bruno Haible  <bruno@clisp.org>
50311
50312         New module 'threadlib'.
50313         * modules/threadlib: New file.
50314         * lib/glthread/threadlib.c: New file, extracted from
50315         lib/glthread/lock.c.
50316         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
50317         functions.
50318         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
50319         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
50320         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
50321         macros.
50322         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
50323         (gl_DISABLE_THREADS): Remove macro.
50324         * modules/lock (Files): Remove build-aux/config.rpath.
50325         (Depends-on): Remove havelib. Add threadlib.
50326         (configure.ac-early): Remove section.
50327         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
50328         * modules/tls (Depends-on): Remove lock. Add threadlib.
50329         (Link): New section, copied from threadlib.
50330         * MODULES.html.sh (Multithreading): Add threadlib.
50331
50332 2008-08-14  Bruno Haible  <bruno@clisp.org>
50333
50334         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
50335         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
50336         glthread_rwlock_unlock, glthread_rwlock_destroy,
50337         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
50338         glthread_recursive_lock_destroy): Define as macros always.
50339         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
50340         glthread_lock_lock.
50341         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
50342         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
50343         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
50344         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
50345         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
50346         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
50347         (glthread_recursive_lock_lock_func): Renamed from
50348         glthread_recursive_lock_lock.
50349         (glthread_recursive_lock_unlock_func): Renamed from
50350         glthread_recursive_lock_unlock.
50351         (glthread_recursive_lock_destroy_func): Renamed from
50352         glthread_recursive_lock_destroy.
50353
50354 2008-08-14  Bruno Haible  <bruno@clisp.org>
50355
50356         * lib/glthread/lock.h: Renamed from lib/lock.h.
50357         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
50358         * lib/glthread/tls.h: Renamed from lib/tls.h.
50359         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
50360         * lib/fstrcmp.c: Update includes.
50361         * lib/strsignal.c: Update includes.
50362         * modules/lock (Files, Makefile.am): Update.
50363         (Include): Change to "glthread/lock.h".
50364         * modules/tls (Files, Makefile.am): Update.
50365         (Include): Change to "glthread/tls.h".
50366         * tests/test-lock.c: Update includes.
50367         * tests/test-tls.c: Update includes.
50368         * NEWS: Mention the renamed header files.
50369
50370 2008-08-11  Jim Meyering  <meyering@redhat.com>
50371
50372         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
50373
50374 2008-08-11  Eric Blake  <ebb9@byu.net>
50375
50376         test-c-stack: avoid C99-ism
50377         * tests/test-c-stack.c (main): Fix whitespace, move declaration
50378         before statement.
50379         Reported by Alain Guibert.
50380
50381 2008-08-10  Jim Meyering  <meyering@redhat.com>
50382
50383         ensure that return value of uinttostr et al are not ignored
50384         * lib/inttostr.h (__GNUC_PREREQ): Define.
50385         (__attribute_warn_unused_result__): Define.
50386         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
50387
50388 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
50389
50390         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
50391         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
50392
50393 2008-08-07  Jim Meyering  <meyering@redhat.com>
50394
50395         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
50396
50397         * modules/mkstemp (License): Relicense under LGPLv2+.
50398         * modules/tempname (License): Likewise.
50399
50400 2008-08-06  Bruno Haible  <bruno@clisp.org>
50401
50402         * lib/poll.c (poll): Further micro-optimization.
50403
50404 2008-08-06  Jim Meyering  <meyering@redhat.com>
50405
50406         inet_pton.c: use locale-independent tolower
50407         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
50408         (inet_pton6): Use c_tolower rather than tolower.
50409         * modules/inet_pton (Depends-on): Add c-ctype.
50410
50411 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
50412
50413         * lib/poll.c (poll): Avoid division when timeout is 0, cache
50414         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
50415
50416 2008-08-06  Jim Meyering  <meyering@redhat.com>
50417
50418         * modules/inet_pton (License): Relicense under LGPLv2+.
50419
50420 2008-08-03  Bruno Haible  <bruno@clisp.org>
50421
50422         Additional non-aborting API for lock and tls.
50423         * lib/lock.h: Include <errno.h>.
50424         (glthread_lock_init): New macro/function.
50425         (gl_lock_init): Define as wrapper around glthread_lock_init.
50426         (glthread_lock_lock): New macro/function.
50427         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
50428         (glthread_lock_unlock): New macro/function.
50429         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
50430         (glthread_lock_destroy): New macro/function.
50431         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
50432         (glthread_rwlock_init): New macro/function.
50433         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
50434         (glthread_rwlock_rdlock): New macro/function.
50435         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
50436         (glthread_rwlock_wrlock): New macro/function.
50437         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
50438         (glthread_rwlock_unlock): New macro/function.
50439         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
50440         (glthread_rwlock_destroy): New macro/function.
50441         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
50442         (glthread_recursive_lock_init): New macro/function.
50443         (gl_recursive_lock_init): Define as wrapper around
50444         glthread_recursive_lock_init.
50445         (glthread_recursive_lock_lock): New macro/function.
50446         (gl_recursive_lock_lock): Define as wrapper around
50447         glthread_recursive_lock_lock.
50448         (glthread_recursive_lock_unlock): New macro/function.
50449         (gl_recursive_lock_unlock): Define as wrapper around
50450         glthread_recursive_lock_unlock.
50451         (glthread_recursive_lock_destroy): New macro/function.
50452         (gl_recursive_lock_destroy): Define as wrapper around
50453         glthread_recursive_lock_destroy.
50454         (glthread_once): New macro/function.
50455         (gl_once): Define as wrapper around glthread_once.
50456         Update function declarations.
50457         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
50458         glthread_rwlock_init. Return error code.
50459         (glthread_rwlock_rdlock_multithreaded): Renamed from
50460         glthread_rwlock_rdlock. Return error code.
50461         (glthread_rwlock_wrlock_multithreaded): Renamed from
50462         glthread_rwlock_wrlock. Return error code.
50463         (glthread_rwlock_unlock_multithreaded): Renamed from
50464         glthread_rwlock_unlock. Return error code.
50465         (glthread_rwlock_destroy_multithreaded): Renamed from
50466         glthread_rwlock_destroy. Return error code.
50467         (glthread_recursive_lock_init_multithreaded): Renamed from
50468         glthread_recursive_lock_init. Return error code.
50469         (glthread_recursive_lock_lock_multithreaded): Renamed from
50470         glthread_recursive_lock_lock. Return error code.
50471         (glthread_recursive_lock_unlock_multithreaded): Renamed from
50472         glthread_recursive_lock_unlock. Return error code.
50473         (glthread_recursive_lock_destroy_multithreaded): Renamed from
50474         glthread_recursive_lock_destroy. Return error code.
50475         (glthread_once_call): Make static.
50476         (glthread_once_multithreaded): Renamed from glthread_once.
50477         * lib/tls.h: Include <errno.h>.
50478         (glthread_tls_key_init): New macro/function.
50479         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
50480         (glthread_tls_set): New macro/function.
50481         (gl_tls_set): Define as wrapper around glthread_tls_set.
50482         (glthread_tls_key_destroy): New macro/function.
50483         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
50484         Update function declarations.
50485         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
50486         glthread_tls_get.
50487         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50488
50489 2008-08-04  Eric Blake  <ebb9@byu.net>
50490
50491         gnumakefile: use space, not TAB, outside of targets
50492         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
50493
50494 2008-08-02  Jim Meyering  <meyering@redhat.com>
50495
50496         getdate.y: avoid locale-dependent date parsing failure
50497         In Turkish locales, getdate would fail to recognize keywords
50498         containing a lowercase "i".  The solution is not to rely on
50499         locale-sensitive case-conversion.
50500         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
50501         (lookup_word): Use c_toupper in place of toupper.
50502         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
50503         Reported by Vefa Bicakci <bicave@superonline.com> in
50504         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
50505         * modules/getdate (Depends-on): Add c-ctype.
50506
50507 2008-08-02  Bruno Haible  <bruno@clisp.org>
50508
50509         * gnulib-tool (func_import): When updating or creating a .gitignore
50510         file, prepend each added line with a slash, and ignore leading slashes
50511         from the existing lines.
50512         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50513
50514 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50515
50516         Portability fix for GNU make 3.79.1.
50517         * top/GNUmakefile: Avoid 'else COND', which older GNU make
50518         versions do not understand.
50519
50520 2008-08-01  Bruno Haible  <bruno@clisp.org>
50521
50522         Work around bug of HP-UX 10.20 cc with -0.0 literal.
50523         * tests/test-isnanf.h (zero): New variable.
50524         (main): Avoid literal -0.0f.
50525         * tests/test-isnand.h (zero): New variable.
50526         (main): Avoid literal -0.0.
50527         * tests/test-isnanl.h (zero): New variable.
50528         (main): Avoid literal -0.0L.
50529         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
50530         (test_float, test_double, test_long_double): Avoid literals -0.0f,
50531         -0.0, -0.0L.
50532         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
50533         (test_signbitd): Avoid literal -0.0.
50534         (test_signbitl): Avoid literal -0.0L.
50535         * tests/test-ceilf1.c (zero): New variable.
50536         (main): Avoid literal -0.0f.
50537         * tests/test-ceill.c (zero): New variable.
50538         (main): Avoid literal -0.0L.
50539         * tests/test-floorf1.c (zero): New variable.
50540         (main): Avoid literal -0.0f.
50541         * tests/test-floorl.c (zero): New variable.
50542         (main): Avoid literal -0.0L.
50543         * tests/test-roundf1.c (zero): New variable.
50544         (main): Avoid literal -0.0f.
50545         * tests/test-round1.c (zero): New variable.
50546         (main): Avoid literal -0.0.
50547         * tests/test-roundl.c (zero): New variable.
50548         (main): Avoid literal -0.0L.
50549         * tests/test-truncf1.c (zero): New variable.
50550         (main): Avoid literal -0.0f.
50551         * tests/test-trunc1.c (zero): New variable.
50552         (main): Avoid literal -0.0.
50553         * tests/test-truncl.c (zero): New variable.
50554         (main): Avoid literal -0.0L.
50555         * tests/test-frexp.c (zero): New variable.
50556         (main): Avoid literal -0.0.
50557         * tests/test-frexpl.c (zero): New variable.
50558         (main): Avoid literal -0.0L.
50559         * tests/test-ldexpl.c (zero): New variable.
50560         (main): Avoid literal -0.0L.
50561         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50562         (zerod, zerol): New variables.
50563         (test_function): Avoid literals -0.0, -0.0L.
50564         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50565         (zerod, zerol): New variables.
50566         (test_function): Avoid literals -0.0, -0.0L.
50567         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50568         (zerod, zerol): New variables.
50569         (test_function): Avoid literals -0.0, -0.0L.
50570         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50571         (zerod, zerol): New variables.
50572         (test_function): Avoid literals -0.0, -0.0L.
50573         * tests/test-strtod.c (zero): New variable.
50574         (main): Avoid literal -0.0.
50575         Reported by Jonathan C. Patschke <jp@centtech.com>.
50576
50577 2008-07-31  Jim Meyering  <meyering@redhat.com>
50578
50579         sha256.h: correct definition of SHA224_DIGEST_SIZE
50580         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
50581         Reported by Paulie Pena IV <paulie4@gmail.com>.
50582         Define as 224 / 8, rather than as a literal.
50583         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
50584         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
50585         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
50586
50587 2008-07-31  Bruno Haible  <bruno@clisp.org>
50588
50589         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
50590         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
50591         Reported by Jonathan Patschke <jp@centtech.com>.
50592
50593 2008-07-31  Bruno Haible  <bruno@clisp.org>
50594
50595         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
50596         Reported by Paolo Bonzini <bonzini@gnu.org>.
50597
50598 2008-07-30  Eric Blake  <ebb9@byu.net>
50599
50600         test-strtod: allow compilation without -lm
50601         * tests/test-strtod.c (main): Avoid link dependence on fabs.
50602         Reported by Dennis Clarke <blastwave@gmail.com>.
50603
50604 2008-07-28  Jim Meyering  <meyering@redhat.com>
50605
50606         bootstrap: work also when there are no .po files in po/
50607         * build-aux/bootstrap (update_po_files): Complete the change
50608         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
50609
50610 2008-07-27  Jim Meyering  <meyering@redhat.com>
50611
50612         * users.txt: Add zile.
50613
50614 2008-07-26  Ben Pfaff  <blp@gnu.org>
50615
50616         Add missing dependencies on new m4/exponent[fdl].m4 files.
50617         * modules/isnanf-nolibm: Add m4/exponentf.m4.
50618         * modules/isnand-nolibm: Add m4/exponentd.m4.
50619         * modules/isnanl-nolibm: Add m4/exponentl.m4.
50620         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
50621         m4/isnan[fdl].m4, because the macros actually used moved.
50622         Reported by Jim Meyering.
50623
50624 2008-07-14  Ben Pfaff  <blp@gnu.org>
50625
50626         Add isinf module.
50627         * lib/isinf.c: New file.
50628         * lib/math.in.h: Define isinf macro if we have decided to replace
50629         it.
50630         * m4/isinf.m4: New file.
50631         * m4/math_h.m4: Initialize and substitute variables for isinf
50632         module.
50633         * modules/isinf: New file.
50634         * modules/isinf-tests: New file.
50635         * modules/math: Add substitutions for new module.
50636         * tests/test-isinf.c: New file.
50637         * doc/posix-functions/isinf.texi: Mention new module.
50638         * MODULES.html.sh: Mention new module.
50639
50640 2008-07-14  Ben Pfaff  <blp@gnu.org>
50641
50642         Factor out some macros for use by additional modules.
50643         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
50644         exponentf.m4.
50645         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
50646         exponentd.m4.
50647         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
50648         file exponentl.m4.
50649         * m4/exponentf.m4: New file.
50650         * m4/exponentd.m4: New file.
50651         * m4/exponentl.m4: New file.
50652         * modules/isnanf: Use new file m4/exponentf.m4.
50653         * modules/isnand: Use new file m4/exponentd.m4.
50654         * modules/isnanl: Use new file m4/exponentl.m4.
50655
50656 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
50657
50658         mktime.c: normalize tp->tm_isdst value to -1/0/1.
50659         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
50660         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
50661         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
50662
50663         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
50664         readlink on platforms without PATH_MAX.
50665
50666 2008-07-21  Eric Blake  <ebb9@byu.net>
50667
50668         Warn, not fail, on stale version.
50669         * top/GNUmakefile (_curr-ver): Tone down previous patch.
50670
50671         Don't allow installation with stale devel version number.
50672         * top/GNUmakefile (_is-install-target): New macro.
50673         (_curr-ver): Forbid installation with stale version number.
50674
50675 2008-07-20  Bruno Haible  <bruno@clisp.org>
50676
50677         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
50678         TESTS_ENVIRONMENT.
50679         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
50680
50681 2008-07-20  Bruno Haible  <bruno@clisp.org>
50682
50683         * lib/c-stack.h (c_stack_action): Add documentation.
50684         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
50685
50686 2008-07-20  Bruno Haible  <bruno@clisp.org>
50687
50688         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
50689         * modules/readlink (License): Likewise.
50690
50691 2008-07-17  Eric Blake  <ebb9@byu.net>
50692
50693         * modules/c-stack (Link): Fix typo.
50694
50695         Make c-stack use libsigsegv, when available.
50696         * modules/c-stack (Depends-on): Add libsigsegv.
50697         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
50698         needed.
50699         * lib/c-stack.c (SIGSTKSZ): Define fallback.
50700         (segv_handler, overflow_handler, c_stack_action)
50701         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
50702         implementation when libsigsegv is available, but only when using
50703         the library is necessary.
50704         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
50705         comment, explaining why XSI check fails on Linux.
50706         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
50707         * tests/test-c-stack2.sh: Tweak skip message.
50708         * NEWS: Document new link-time requirements.
50709
50710 2008-07-16  Eric Blake  <ebb9@byu.net>
50711
50712         c-stack: Expose false positives when not using libsigsegv.
50713         * modules/c-stack-tests (Files): Expand test.
50714         * tests/test-c-stack.c (main): Add means to conditionally trigger
50715         non-overflow SIGSEGV.
50716         * tests/test-c-stack2.sh: New file.
50717
50718 2008-07-14  Bruno Haible  <bruno@clisp.org>
50719
50720         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
50721         Reported by Eric Blake.
50722
50723 2008-07-14  Sam Steingold  <sds@gnu.org>
50724             Bruno Haible  <bruno@clisp.org>
50725
50726         New module libsigsegv.
50727         * modules/libsigsegv: New file.
50728         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
50729         modifications.
50730         * MODULES.html.sh (Signal handling): New section.
50731
50732 2008-07-14  Bruno Haible  <bruno@clisp.org>
50733
50734         * modules/unictype/ctype-* (Description): Add the word "function".
50735         Improves the resulting doc in MODULES.html.
50736
50737 2008-07-12  Ben Pfaff  <blp@gnu.org>
50738
50739         Add longlong module.
50740         * modules/longlong: New file.
50741
50742 2008-07-12  Bruno Haible  <bruno@clisp.org>
50743
50744         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
50745         to empty.
50746
50747 2008-07-10  Ben Pfaff  <blp@gnu.org>
50748
50749         Add isnan module.
50750         * doc/posix-functions/isnan.texi: Mention new module.
50751         * lib/math.in.h: Define isnan macro if we have decided to replace
50752         it.
50753         * m4/isnan.m4: New file.
50754         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
50755         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
50756         also.
50757         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
50758         redundancy.
50759         * m4/math_h.m4: Initialize and substitute variables for isnan
50760         module.
50761         * modules/isnan: New file.
50762         * modules/isnan-tests: New file.
50763         * modules/math: Add substitutions for new module.
50764         * tests/test-isnan.c: New file.
50765         * MODULES.html.sh: Mention new module.
50766
50767 2008-07-10  Ben Pfaff  <blp@gnu.org>
50768
50769         Add isnanf module.
50770         * lib/isnanf.m4: New file.
50771         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
50772         (gl_HAVE_ISNANF_IN_LIBM): New macro.
50773         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
50774         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
50775         * modules/isnanf: New file.
50776         * modules/isnanf-tests: New file.
50777         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
50778         files.
50779         * tests/test-isnanf-nolibm.c: factored most of its contents into
50780         new file tests/test-isnanf.h.
50781         * tests/test-isnanf.h: New file.
50782         * tests/test-isnanf.c: New file.
50783         * MODULES.html.sh: Mention new module.
50784         * doc/glibc-functions/isnanf.texi: Mention new module.
50785
50786 2008-07-10  Ben Pfaff  <blp@gnu.org>
50787
50788         Add isnand module.
50789         * lib/isnand.h: New file.
50790         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
50791         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
50792         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
50793         functionality also.
50794         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
50795         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
50796         (gl_HAVE_ISNAND_IN_LIBM): New macro.
50797         * modules/isnand: New file.
50798         * modules/isnand-tests: New file.
50799         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
50800         files.
50801         * tests/test-isnand-nolibm.c: factored most of its contents into
50802         new file tests/test-isnand.h.
50803         * tests/test-isnand.h: New file.
50804         * tests/test-isnand.c: New file.
50805         * MODULES.html.sh: Mention new module.
50806
50807 2008-07-10  Ben Pfaff  <blp@gnu.org>
50808
50809         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
50810         * lib/isnand.h: Rename lib/isnand-nolibm.h.
50811         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
50812         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
50813         * modules/isnanf-nolibm: Update references to renamed files.
50814         * modules/isnand-nolibm: Likewise.
50815         * modules/isnanf-nolibm-tests: Likewise.
50816         * modules/isnand-nolibm-tests: Likewise.
50817         * lib/frexp.c: Likewise.
50818         * lib/isfinite.c: Likewise.
50819         * lib/signbitd.c: Likewise.
50820         * lib/signbitf.c: Likewise.
50821         * lib/vasnprintf.c: Likewise.
50822         * tests/test-ceilf1.c: Likewise.
50823         * tests/test-ceilf2.c: Likewise.
50824         * tests/test-floorf1.c: Likewise.
50825         * tests/test-floorf2.c: Likewise.
50826         * tests/test-frexp.c: Likewise.
50827         * tests/test-round1.c: Likewise.
50828         * tests/test-round2.c: Likewise.
50829         * tests/test-roundf1.c: Likewise.
50830         * tests/test-strtod.c: Likewise.
50831         * tests/test-trunc1.c: Likewise.
50832         * tests/test-trunc2.c: Likewise.
50833         * tests/test-truncf1.c: Likewise.
50834         * tests/test-truncf2.c: Likewise.
50835         * NEWS: Mention the renamed header files.
50836
50837 2008-07-11  Jim Meyering  <meyering@redhat.com>
50838
50839         vc-list-files: make the last-resort awk code more portable
50840         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
50841         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
50842         does not support it.
50843
50844 2008-07-10  Eric Blake  <ebb9@byu.net>
50845
50846         Work with tar's bootstrap.
50847         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
50848         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
50849         an m4 comment.
50850
50851 2008-07-09  Jim Meyering  <meyering@redhat.com>
50852
50853         posix-shell.m4: fix typo that made this test malfunction
50854         * m4/posix-shell.m4: Remove capitalization in variable name.
50855
50856 2008-07-08  Bruno Haible  <bruno@clisp.org>
50857
50858         * m4/onceonly.m4: Update comments.
50859         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50860
50861 2008-07-04  Jim Meyering  <meyering@redhat.com>
50862
50863         * users.txt: Add vc-dwim.
50864         (bison, coreutils): Use the gitweb URL.
50865
50866 2008-07-03  Jim Meyering  <meyering@redhat.com>
50867
50868         * users.txt: Add libffcall.  From Sam Steingold.
50869
50870 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
50871
50872         getdate.y: do not ignore TZ with relative day, month or year offset
50873         * lib/getdate.y (get_date): Move the tz-handling block to follow the
50874         relative-date-handling, since otherwise, the latter would clobber the
50875         sole output (an updated Start value) of the tz-handling block.
50876         * tests/test-getdate.c: Tests for the fix
50877
50878 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50879
50880         Recognize 'foo_LIBRARIES += libgnu.a'.
50881         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
50882         makefile snippet has already specified an installation location,
50883         also using '+='.
50884
50885 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
50886
50887         getdate.y: factor out common actions
50888         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
50889         Use them in place of open-coded actions.
50890
50891 2008-07-01  Simon Josefsson  <simon@josefsson.org>
50892
50893         Add self-test for getdate module.
50894         * modules/getdate-tests: New file.
50895         * tests/test-getdate.c: New file.
50896
50897 2008-06-29  Bruno Haible  <bruno@clisp.org>
50898
50899         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
50900         .gitignore.
50901         Reported by Sylvain Beucler <beuc@beuc.net>.
50902
50903 2008-06-29  Bruno Haible  <bruno@clisp.org>
50904
50905         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
50906         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
50907
50908 2008-06-29  Bruno Haible  <bruno@clisp.org>
50909
50910         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
50911         EXTRA_DIST.
50912         Reported by Sylvain Beucler <beuc@beuc.net>.
50913
50914 2008-06-26  Jim Meyering  <meyering@redhat.com>
50915
50916         make several modules depend on the "open" module
50917         This provides slightly increased consistency when opening-for-write
50918         the name of a non-directory spelled with a trailing slash.
50919         * modules/chdir-safer: Likewise.
50920         * modules/chown: Likewise.
50921         * modules/clean-temp: Likewise.
50922         * modules/copy-file: Likewise.
50923         * modules/fchdir: Likewise.
50924         * modules/fcntl-safer: Likewise.
50925         * modules/pipe: Likewise.
50926         * modules/utime: Likewise.
50927         Prompted by Eric Blake and Bruno Haible.
50928
50929 2008-06-24  Andreas Schwab  <schwab@suse.de>
50930
50931         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
50932         literals can be used as initializers for global variables.
50933
50934 2008-06-23  Eric Blake  <ebb9@byu.net>
50935
50936         Make gnulib-cache.m4 easier to diff.
50937         * gnulib-tool (func_import): Allow newlines when reading cached
50938         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
50939
50940 2008-06-23  Bruno Haible  <bruno@clisp.org>
50941
50942         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
50943         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
50944         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
50945         m4/signalblocking.m4.
50946         (gl_PREREQ_SIGACTION): Don't invoke it.
50947         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
50948         gl_PREREQ_SIG_HANDLER_H.
50949         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50950         Don't check for sigaction here.
50951
50952 2008-06-23  Bruno Haible  <bruno@clisp.org>
50953
50954         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
50955         (install_handlers): Don't set the SA_RESETHAND flag.
50956
50957 2008-06-23  Bruno Haible  <bruno@clisp.org>
50958
50959         * m4/sigaction.m4: Comment fixes.
50960         * lib/signal.in.h: Likewise.
50961
50962 2008-06-23  Eric Blake  <ebb9@byu.net>
50963
50964         Fix typo.
50965         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
50966
50967         Avoid SA_ namespace.
50968         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
50969         Reported by Ralf Wildenhues.
50970
50971         Avoid test failure due to SA_RESTORER.
50972         * tests/test-sigaction.c (SA_MASK): New macro.
50973         (main): Avoid failing due to extension flags being set.
50974         Reported by Jim Meyering.
50975
50976         Revert use of sig-handler.h in sigprocmask.c.
50977         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
50978         it requires the existence of struct sigaction.
50979         * lib/sigprocmask.c (handler_t): Restore typedef.
50980         (rpl_signal, old_handlers): Use local type.
50981
50982 2008-06-22  Bruno Haible  <bruno@clisp.org>
50983
50984         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
50985         conditionally.
50986         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50987
50988 2008-06-22  Bruno Haible  <bruno@clisp.org>
50989
50990         * doc/posix-functions/siginterrupt.texi: Move note.
50991
50992         * lib/signal.in.h (SA_RESTART): New macro.
50993         * lib/sigaction.c: Update comment.
50994
50995         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
50996
50997         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
50998         (gl_PREREQ_SIGPROCMASK): Invoke it.
50999         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
51000
51001         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
51002
51003         * lib/sigprocmask.c: Update a comment.
51004
51005 2008-06-21  Eric Blake  <ebb9@byu.net>
51006
51007         Use sigaction module rather than signal().
51008         * modules/c-stack (Depends-on): Add sigaction.
51009         * modules/fatal-signal (Depends-on): Likewise.
51010         * modules/nanosleep (Depends-on): Likewise.
51011         * modules/sigprocmask (Files): Add sig-handler.h.
51012         * modules/sigaction (Files): Likewise.
51013         * lib/sig-handler.h (get_handler): New file, suggested by Paul
51014         Eggert.
51015         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
51016         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
51017         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
51018         (init_fatal_signals): Likewise.
51019         * lib/nanosleep.c (rpl_nanosleep): Likewise.
51020         (siginterrupt): Delete fallback.
51021         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
51022         instead.
51023         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
51024         siginterrupt.
51025
51026         New module sigaction, for mingw.
51027         * modules/sigaction: New module...
51028         * modules/sigaction-tests: ...and its test.
51029         * m4/sigaction.m4: New file.
51030         * lib/sigaction.c: Likewise.
51031         * tests/test-sigaction.c: Likewise.
51032         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
51033         * modules/signal (Makefile.am): Likewise.
51034         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
51035         needed.
51036         * doc/posix-headers/signal.texi (signal.h): Mention provided
51037         types.
51038         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
51039         that sigaction is preferable.
51040         * doc/posix-functions/sigaction.texi (sigaction): Mention new
51041         module.
51042         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51043         sigaction.
51044
51045         Improve robustness of sigprocmask by overriding signal.
51046         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
51047         is in use.
51048         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
51049         (SIGKILL, SIGSTOP): Provide fallbacks.
51050         (rpl_signal): Implement.
51051         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
51052         signal can be called inside handlers.
51053
51054         Fix nanosleep module on mingw.
51055         * modules/nanosleep (Depends-on): Add sys_select.
51056         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
51057
51058         Fix licensing of sigprocmask.
51059         * modules/raise (License): Relicense as LGPL.
51060
51061 2008-06-21  Bruno Haible  <bruno@clisp.org>
51062
51063         * lib/propername.c (proper_name_utf8): Don't use the transliterated
51064         result if it contains question marks.
51065         Reported by Michael Geng <linux@michaelgeng.de>.
51066
51067 2008-06-19  Bruno Haible  <bruno@clisp.org>
51068
51069         Fix CVS-ism.
51070         * doc/gnulib.texi: Include updated-stamp.texi.
51071         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
51072         (updated-stamp.texi): New rule.
51073         (gnulib.info): Depend on it.
51074         * doc/.gitignore: Add updated-stamp.texi.
51075         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
51076
51077 2008-06-19  Bruno Haible  <bruno@clisp.org>
51078
51079         * doc/Makefile (gnulib.info): Update and simplify dependencies.
51080         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51081
51082 2008-06-19  Eric Blake  <ebb9@byu.net>
51083
51084         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
51085         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
51086         Reported by Stepan Kasal.
51087
51088 2008-06-18  Bruno Haible  <bruno@clisp.org>
51089
51090         * lib/fatal-signal.c (init_fatal_signals): Add comment.
51091         Reported by Eric Blake.
51092
51093 2008-06-18  Eric Blake  <ebb9@byu.net>
51094
51095         Work around cygwin 1.5.25 strsignal bug.
51096         * tests/test-strsignal.c: Allow for const char *.
51097         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
51098
51099 2008-06-18  Simon Josefsson  <simon@josefsson.org>
51100
51101         * users.txt: Update URL to article and add author/date
51102         information.
51103
51104 2008-06-17  Bruno Haible  <bruno@clisp.org>
51105
51106         New macro gl_DISABLE_THREADS.
51107         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
51108         if the user did not pass --enable-threads or --disable-threads option.
51109         (gl_DISABLE_THREADS): New macro.
51110         Reported by Eric Blake <ebb9@byu.net>.
51111
51112 2008-06-17  Bruno Haible  <bruno@clisp.org>
51113
51114         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
51115         when the macro ignores it.
51116         Based on a patch by Eric Blake <ebb9@byu.net>.
51117
51118 2008-06-17  Bruno Haible  <bruno@clisp.org>
51119
51120         * modules/tls (License): Change to LGPLv2+.
51121         Reported by Eric Blake.
51122
51123 2008-06-17  Eric Blake  <ebb9@byu.net>
51124
51125         Simplify c-stack prerequisites.
51126         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
51127         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
51128         no longer requires <ucontext.h> to exist.  Optimize setrlimit
51129         check.
51130         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
51131         <sys/resource.h>.
51132
51133         Move c-stack test into testsuite.
51134         * modules/c-stack-tests: New file.
51135         * lib/c-stack.c [DEBUG]: Move test program...
51136         * tests/test-c-stack.c: ...into this new file.  Skip rather than
51137         fail test if sigaltstack is lacking.
51138         * tests/test-c-stack.sh: New driver file.
51139
51140 2008-06-16  Eric Blake  <ebb9@byu.net>
51141
51142         Use raise module consistently.
51143         * modules/fatal-signal (Depends-on): Add raise.
51144         * modules/sigprocmask (Depends-on): Likewise.
51145         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
51146         * lib/sigprocmask.c (sigprocmask): Likewise.
51147         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51148         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
51149
51150         Fix compliance bug in sigpending.
51151         * lib/sigprocmask.c (sigpending): Return pending array via
51152         parameter, not return value.
51153
51154 2008-06-14  Eric Blake  <ebb9@byu.net>
51155
51156         Improve obstack-printf test code.
51157         * tests/test-obstack-printf.c (test_function): Fix comment, and
51158         simplify usage of obstack_* in macros.  Add a test for coverage.
51159         Reported by Bruno Haible.
51160
51161 2008-06-14  Bruno Haible  <bruno@clisp.org>
51162
51163         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
51164         array size as a constant, not as a const variable.
51165         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
51166         AC_USE_SYSTEM_EXTENSIONS.
51167         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51168         Test whether the obstack_printf function actually exists.
51169         * modules/obstack-printf (Depends-on): Add extensions.
51170         (Include): Remove obstack.h.
51171         * modules/obstack-printf-posix (Depends-on): Add extensions.
51172         (Include): Remove obstack.h.
51173
51174 2008-06-13  Eric Blake  <ebb9@byu.net>
51175
51176         Add obstack-printf and obstack-printf-posix modules.
51177         * modules/obstack-printf: New file.
51178         * modules/obstack-printf-posix: Likewise.
51179         * MODULES.html.sh (Misc): Mention them.
51180         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51181         Likewise.
51182         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51183         Likewise.
51184         * modules/stdio (Makefile.am): Accomodate new modules.
51185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51186         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
51187         Declare.
51188         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
51189         functions.
51190         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
51191         (gl_REPLACE_OBSTACK_PRINTF): New macros
51192         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
51193         * tests/test-obstack-printf.c: New file.
51194         * modules/obstack-printf-tests: Likewise.
51195         * modules/obstack-printf-posix-tests: Likewise.
51196
51197 2008-06-11  Bruno Haible  <bruno@clisp.org>
51198
51199         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
51200         * lib/open.c: Include errno.h.
51201         (open): Fail when attempting to write to a file that has a trailing
51202         slash.
51203         * tests/test-open.c (main): Test against trailing slash bug.
51204         * doc/posix-functions/open.texi: Mention the trailing slash bug.
51205
51206 2008-06-10  Bruno Haible  <bruno@clisp.org>
51207
51208         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
51209         for $? to work inside the trap command, with various /bin/sh-s.
51210         * tests/test-vc-list-files-cvs.sh: Likewise.
51211
51212 2008-06-10  Bruno Haible  <bruno@clisp.org>
51213
51214         * lib/acl-internal.h: Don't include gettext.h here.
51215         * lib/set-mode-acl.c: Include gettext.h here.
51216         * lib/copy-acl.c: Likewise.
51217
51218 2008-06-10  Bruno Haible  <bruno@clisp.org>
51219
51220         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
51221         * lib/wait-process.c (wait_subprocess): Likewise.
51222         * lib/execute.h (execute): Add termsigp argument.
51223         * lib/execute.c (execute): Likewise.
51224         * lib/csharpcomp.c (compile_csharp_using_pnet,
51225         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
51226         * lib/csharpexec.c (execute_csharp_using_pnet,
51227         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
51228         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
51229         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
51230         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
51231         is_jikes_present): Update.
51232         * lib/javaexec.c (execute_java_class): Update.
51233         * lib/javaversion.c (execute_and_read_line): Update.
51234         * NEWS: Document the changes.
51235         Reported by Eric Blake.
51236
51237 2008-06-10  Eric Blake  <ebb9@byu.net>
51238
51239         Add missing include.
51240         * tests/test-strstr.c (includes): Add <signal.h>.
51241         * tests/test-strcasestr.c (includes): Likewise.
51242         * tests/test-memmem.c (includes): Likewise.
51243
51244 2008-06-10  Bruno Haible  <bruno@clisp.org>
51245
51246         * lib/wait-process.c (wait_subprocess): Add an assertion.
51247
51248 2008-06-10  Bruno Haible  <bruno@clisp.org>
51249
51250         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
51251
51252 2008-06-10  Bruno Haible  <bruno@clisp.org>
51253
51254         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
51255         using alarm().
51256         * tests/test-strcasestr.c (main): Likewise.
51257         * tests/test-strstr.c (main): Likewise.
51258
51259 2008-06-09  Bruno Haible  <bruno@clisp.org>
51260
51261         Work around the Solaris 10 ACE ACLs ABI change.
51262         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
51263         declare if ACL_NO_TRIVIAL is present.
51264         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
51265         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
51266         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
51267         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
51268         define if ACL_NO_TRIVIAL is present.
51269         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
51270         and use the current ABI.
51271         (file_has_acl): Use same #if condition as elsewhere.
51272         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
51273         in use, and use the current ABI.
51274         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
51275         Reported by Jim Meyering.
51276
51277 2008-06-09  Eric Blake  <ebb9@byu.net>
51278
51279         Work around environments that (stupidly) ignore SIGALRM.
51280         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
51281         before using alarm().
51282         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51283         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51284         Reported by Ian Beckwith <ianb@erislabs.net>.
51285
51286         Produce autobuild blurb earlier in log.
51287         * modules/autobuild (configure.ac-early): Move AB_INIT here.
51288
51289 2008-06-09  Jim Meyering  <meyering@redhat.com>
51290         and OndÅ™ej Vašík  <ovasik@redhat.com>
51291
51292         utimens.c: correct kernel bug work-around
51293         OndÅ™ej Vašík found that the invalid return value of 280 indicates
51294         failure, not success, and the kernel bug we're trying to work
51295         around affects not just the utimensat call, but also the fallback
51296         futimens call.
51297         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
51298         not success.
51299         [HAVE_FUTIMENS]: Use the same work-around, here.
51300
51301 2008-06-09  Jim Meyering  <meyering@redhat.com>
51302
51303         add more guards around definition of ACE_-related code
51304         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
51305         ALLOW and ACE_OWNER are also defined.
51306
51307 2008-06-08  Bruno Haible  <bruno@clisp.org>
51308
51309         * lib/acl-internal.h: Add me as co-author.
51310         * lib/file-has-acl.c: Likewise.
51311         * lib/set-mode-acl.c: Likewise.
51312         * lib/copy-acl.c: Likewise.
51313
51314 2008-06-08  Bruno Haible  <bruno@clisp.org>
51315
51316         Add support for AIX ACLs.
51317         * lib/acl-internal.h (acl_nontrivial): New declaration.
51318         * lib/file-has-acl.c (acl_nontrivial): New function.
51319         (file_has_acl): Add implementation using AIX 4 ACL API.
51320         * lib/set-mode-acl.c (qset_acl): Likewise.
51321         * lib/copy-acl.c (qcopy_acl): Likewise.
51322
51323 2008-06-08  Bruno Haible  <bruno@clisp.org>
51324
51325         Add support for HP-UX ACLs.
51326         * lib/acl-internal.h (acl_nontrivial): New declaration.
51327         * lib/file-has-acl.c (acl_nontrivial): New function.
51328         (file_has_acl): Add implementation using HP-UX 11 ACL API.
51329         * lib/set-mode-acl.c (qset_acl): Likewise.
51330         * lib/copy-acl.c (qcopy_acl): Likewise.
51331
51332 2008-06-08  Bruno Haible  <bruno@clisp.org>
51333
51334         Add support for Cygwin ACLs.
51335         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
51336         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
51337         the chmod_or_fchmod call.
51338         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
51339
51340 2008-06-08  Bruno Haible  <bruno@clisp.org>
51341
51342         Fix bug with setuid modes in Solaris 10+ code.
51343         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
51344         succeeded, when the mode contains some special bits.
51345
51346 2008-06-08  Bruno Haible  <bruno@clisp.org>
51347
51348         Add support for Solaris 7..10 ACLs.
51349         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
51350         declarations.
51351         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
51352         functions.
51353         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
51354         * lib/set-mode-acl.c (qset_acl): Likewise.
51355         * lib/copy-acl.c (qcopy_acl): Likewise.
51356
51357 2008-06-08  Bruno Haible  <bruno@clisp.org>
51358
51359         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
51360         declaration.
51361         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
51362         (acl_access_nontrivial): Remove MacOS X case.
51363         (file_has_acl): Use acl_extended_nontrivial.
51364         * lib/copy-acl.c (qcopy_acl): Likewise.
51365
51366 2008-06-08  Bruno Haible  <bruno@clisp.org>
51367
51368         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
51369
51370 2008-06-08  Jim Meyering  <meyering@redhat.com>
51371
51372         * modules/acl (Maintainer): Add Bruno Haible.
51373
51374 2008-06-07  Bruno Haible  <bruno@clisp.org>
51375
51376         Improve support for Tru64 ACLs.
51377         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
51378         ACL on OSF/1.
51379
51380 2008-06-07  Bruno Haible  <bruno@clisp.org>
51381
51382         Add support for MacOS X ACLs.
51383         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
51384         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
51385         * lib/set-mode-acl.c (qset_acl): Likewise.
51386         * lib/copy-acl.c (qcopy_acl): Likewise.
51387
51388 2008-06-07  Bruno Haible  <bruno@clisp.org>
51389
51390         Fix memory leak introduced on 2008-05-22.
51391         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
51392         use.
51393
51394 2008-06-07  Bruno Haible  <bruno@clisp.org>
51395
51396         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
51397         to construct an empty ACL.
51398
51399 2008-06-07  Bruno Haible  <bruno@clisp.org>
51400
51401         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
51402         precisely.
51403         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
51404
51405 2008-06-07  Bruno Haible  <bruno@clisp.org>
51406
51407         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
51408         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
51409
51410 2008-06-07  Bruno Haible  <bruno@clisp.org>
51411
51412         * doc/posix-functions/_setjmp.texi: Explain the use of this function
51413         regardless of POSIX.
51414         * doc/posix-functions/_longjmp.texi: Likewise.
51415         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
51416         SystemV platform in this case.
51417
51418 2008-06-06  Eric Blake  <ebb9@byu.net>
51419
51420         Document abort() bugs.
51421         * doc/posix-functions/abort.texi (abort): Mention anomalies.
51422
51423         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
51424         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
51425         sigsetjmp.
51426         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
51427         siglongjmp, but only as a macro.
51428         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
51429         is obsolete.
51430         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
51431
51432         Tweak documentation to cover cygwin argz bugs.
51433         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
51434         argz bug fix; no code change needed since no cygwin releases
51435         occurred between the last fix and the bug being tested.
51436         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
51437         module and recently fixed cygwin bugs.
51438         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
51439         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
51440         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
51441         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
51442         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
51443         Likewise.
51444         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
51445         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
51446         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
51447         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
51448         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
51449         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
51450         Likewise.
51451
51452         Avoid gcc warning on cygwin.
51453         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
51454         !ACL_NO_TRIVIAL]: Avoid unused variable.
51455
51456 2008-06-05  Eric Blake  <ebb9@byu.net>
51457
51458         Be tolerant of UNKNOWN version in gnulib-tool test dir.
51459         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
51460         git-version-gen fails to come up with a version.
51461         Reported by Simon Josefsson.
51462
51463 2008-06-05  Jim Meyering  <meyering@redhat.com>
51464             Paul Eggert  <eggert@cs.ucla.edu>
51465
51466         utimens.c: work around a probable Linux kernel bug
51467         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
51468         appears to be a kernel bug that causes utimensat to return 280
51469         instead of 0, indicating success.
51470
51471 2008-06-04  Bruno Haible  <bruno@clisp.org>
51472
51473         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
51474         2008-06-01 commit.
51475
51476 2008-06-04  Bruno Haible  <bruno@clisp.org>
51477
51478         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
51479         * lib/file-has-acl.c (acl_access_nontrivial): New function.
51480         (file_has_acl): Use it. Save errno afterwards.
51481         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
51482
51483 2008-06-03  Bruno Haible  <bruno@clisp.org>
51484
51485         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
51486         draft code. Simplify #ifs.
51487         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
51488         Put Solaris code after POSIX-draft code. Fix comments regarding
51489         Solaris 10, HP-UX. Mention Cygwin.
51490         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
51491
51492 2008-06-03  Eric Blake  <ebb9@byu.net>
51493
51494         Provide fallback for older kernels.
51495         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
51496         Provide runtime fallback if kernel lacks support.
51497         Reported by Mike Frysinger.
51498
51499 2008-06-02  Bruno Haible  <bruno@clisp.org>
51500
51501         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
51502         it exists.
51503
51504 2008-06-02  Bruno Haible  <bruno@clisp.org>
51505
51506         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
51507         * lib/copy-acl.c (qcopy_acl): Update comment.
51508
51509 2008-06-02  Bruno Haible  <bruno@clisp.org>
51510
51511         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
51512         like ACL APIs.
51513
51514 2008-06-02  Bruno Haible  <bruno@clisp.org>
51515
51516         * tests/test-file-has-acl.sh: Use different code for Cygwin.
51517         * tests/test-set-mode-acl.sh: Likewise.
51518         * tests/test-copy-acl.sh: Likewise.
51519         * tests/test-copy-file.sh: Likewise.
51520
51521 2008-06-02  Bruno Haible  <bruno@clisp.org>
51522
51523         * tests/test-file-has-acl.sh: Remove unused code.
51524
51525 2008-06-01  Bruno Haible  <bruno@clisp.org>
51526
51527         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
51528         (copy_acl): Just a wrapper around qcopy_acl that emits the error
51529         messages.
51530         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
51531
51532 2008-06-01  Bruno Haible  <bruno@clisp.org>
51533
51534         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
51535         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
51536         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
51537         APIs.
51538         * modules/acl-tests (configure.ac): Remove tests now contained in
51539         m4/acl.m4.
51540
51541 2008-06-02  Jim Meyering  <meyering@redhat.com>
51542
51543         announce-gen: use a better key-server host name
51544         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
51545         it may be more consistently reliable.  Suggested by Werner Koch
51546         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
51547
51548 2008-06-01  Bruno Haible  <bruno@clisp.org>
51549
51550         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
51551         Reported by Voroskoi Andras <voroskoi@gmail.com>.
51552
51553 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
51554
51555         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
51556
51557 2008-06-01  Bruno Haible  <bruno@clisp.org>
51558
51559         New ACL tests.
51560         * tests/test-file-has-acl.sh: New file.
51561         * tests/test-file-has-acl.c: New file.
51562         * tests/test-set-mode-acl.sh: New file.
51563         * tests/test-set-mode-acl.c: New file.
51564         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
51565         * tests/test-copy-acl.c: New file.
51566         * modules/acl-tests: New file, based on modules/copy-file-tests.
51567         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
51568         (Depends-on): Add acl-tests.
51569         (configure.ac): Remove checks.
51570         (Makefile.am): Don't create test-sameacls program here any more.
51571
51572 2008-06-01  Bruno Haible  <bruno@clisp.org>
51573
51574         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
51575         * tests/test-sameacls.c: Include progname.h.
51576         (main): Invoke set_program_name. Portability fixes for MacOS X,
51577         Solaris, HP-UX.
51578
51579 2008-06-01  Bruno Haible  <bruno@clisp.org>
51580
51581         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
51582         function.
51583         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
51584
51585 2008-06-01  Bruno Haible  <bruno@clisp.org>
51586
51587         * modules/rpmatch (Depends-on): Add strdup.
51588
51589 2008-06-01  Bruno Haible  <bruno@clisp.org>
51590
51591         * lib/pipe.c: Include unistd-safer.h.
51592         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
51593         * modules/pipe (Depends-on): Add unistd-safer.
51594
51595 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51596
51597         * modules/autobuild (configure.ac): Call AB_INIT.
51598
51599 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51600
51601         * tests/test-getaddrinfo.c: Don't print debug messages by default.
51602         Suggested by Bruno Haible <bruno@clisp.org>.
51603
51604 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51605
51606         * tests/test-base64.c: Cast size_t to unsigned long when invoking
51607         printf.  Use %lu instead of %d.  Reported by Bruno Haible
51608         <bruno@clisp.org>.
51609
51610 2008-05-29  Eric Blake  <ebb9@byu.net>
51611
51612         Prefer new POSIX 200x interfaces over futimesat.
51613         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
51614         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
51615         when available.
51616         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
51617
51618 2008-05-28  Bruno Haible  <bruno@clisp.org>
51619
51620         * modules/stpcpy (License): Change to LGPLv2+.
51621         Requested by David Lutterkort <dlutter@redhat.com>.
51622
51623 2008-05-27  Bruno Haible  <bruno@clisp.org>
51624
51625         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
51626         current mingw.
51627         Reported by Jose E. Marchesi <jemarch@gnu.org>.
51628
51629 2008-05-27  Bruno Haible  <bruno@clisp.org>
51630
51631         * modules/iconv_open (Link): New section, from module 'iconv'.
51632         * modules/striconv (Link): Likewise.
51633         * modules/striconveh (Link): Likewise.
51634         * modules/xstriconv (Link): Likewise.
51635         * modules/unicodeio (Link): Likewise.
51636         * modules/propername (Link): Likewise.
51637         Reported by Jim Meyering.
51638
51639 2008-05-26  Jim Meyering  <meyering@redhat.com>
51640
51641         sha256: do not artificially restrict buffer length to be < 2^32
51642         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
51643         uint32_t to size_t.
51644         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
51645         to match.
51646
51647         avoid unaligned access errors, e.g., on sparc
51648         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
51649         direct access through a possibly-unaligned uint64* pointer.
51650         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
51651         direct access through a possibly-unaligned uint32* pointer.
51652         Prompted by this patch from Tom "spot" Callaway:
51653         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
51654
51655         sha512.c: fix typo in comment
51656         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
51657
51658 2008-05-25  Bruno Haible  <bruno@clisp.org>
51659
51660         * lib/set-mode-acl.c: Renamed from lib/acl.c.
51661         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
51662         (Makefile.am): Update lib_SOURCES.
51663
51664 2008-05-25  Bruno Haible  <bruno@clisp.org>
51665
51666         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
51667
51668 2008-05-25  Jim Meyering  <meyering@redhat.com>
51669
51670         useless-if-before-free: freed expr may have white-space differences
51671         * build-aux/useless-if-before-free: Recognize cases in which the
51672         freed expression differs from the tested one in embedded white
51673         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
51674         $1 was used, so we can't make any regexp shy.  Improved tests now
51675         detect this.
51676
51677         useless-if-before-free: accept white space in the expression.
51678         * build-aux/useless-if-before-free: For now, any white space
51679         in the expression must be identical in the free argument.
51680
51681         useless-if-before-free: efficiency tweak
51682         * build-aux/useless-if-before-free: Make the expression-matching
51683         regexp "shy".
51684         Make the *outer* regexp shy, not the expr-matching one.
51685
51686         update code-in-comment to accept cast of free arg
51687         * build-aux/useless-if-before-free: Update regexp.
51688
51689 2008-05-25  Bruno Haible  <bruno@clisp.org>
51690
51691         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
51692         * modules/copy-file-tests (Files, Makefile.am): Update.
51693         * tests/test-copy-file.c (func_test_copy): Update.
51694
51695 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
51696
51697         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
51698
51699 2008-05-23  Bruno Haible  <bruno@clisp.org>
51700
51701         Improve support for ACLs on OSF/1.
51702         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
51703         Remove fallback for unknown flavors of ACLs.
51704
51705 2008-05-22  Bruno Haible  <bruno@clisp.org>
51706
51707         Add support for ACLs on OSF/1.
51708         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
51709         replacements.
51710         (acl_free_text): New macro fallback.
51711         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
51712         acl_free.
51713         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
51714         acl_free_text function. Require AC_C_INLINE.
51715
51716 2008-05-22  Bruno Haible  <bruno@clisp.org>
51717
51718         Make copy_acl work on MacOS X 10.5.
51719         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
51720         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
51721         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
51722         If MODE_INSIDE_ACL, don't assume that every system has the same text
51723         representation for ACLs as FreeBSD.
51724         * lib/copy-acl.c (copy_acl): Add support for platforms with
51725         !MODE_INSIDE_ACL.
51726         * lib/file-has-acl.c (file_has_acl): Likewise.
51727         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
51728         FreeBSD, MacOS X, or IRIX, respectively.
51729
51730 2008-05-22  Bruno Haible  <bruno@clisp.org>
51731
51732         * lib/acl.h: Don't include <sys/acl.h>.
51733         (GETACLCNT): Move fallback to lib/acl-internal.h.
51734         * lib/acl-internal.h: Include <sys/acl.h> here.
51735         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
51736
51737 2008-05-22  Bruno Haible  <bruno@clisp.org>
51738
51739         Split off copy_acl function to separate file.
51740         * lib/copy-acl.c: New file, extracted from lib/acl.c.
51741         * lib/acl.c (copy_acl): Moved function to separate file.
51742         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
51743         * modules/acl (Files): Add lib/copy-acl.c.
51744         (Makefiles.am): Augment lib_SOURCES.
51745
51746 2008-05-22  Bruno Haible  <bruno@clisp.org>
51747
51748         * modules/copy-file-tests: New file.
51749         * tests/test-copy-file.sh: New file.
51750         * tests/test-copy-file.c: New file.
51751         * tests/test-copy-file-sameacls.c: New file.
51752
51753 2008-05-22  Eric Blake  <ebb9@byu.net>
51754
51755         Avoid gcc warning.
51756         * tests/test-memcmp.c (main): Pass NULL indirectly.
51757
51758 2008-05-21  Bruno Haible  <bruno@clisp.org>
51759
51760         Add reference doc about ACLs.
51761         * doc/acl-resources.txt: New file.
51762         * doc/acl-cygwin.txt: New file.
51763
51764 2008-05-21  Bruno Haible  <bruno@clisp.org>
51765
51766         Avoid one more warning from gcc.
51767         * lib/vasnprintf.c (IF_LINT): Update comments.
51768         (VASNPRINTF): Use it also for the 'prefix' array initializer.
51769
51770 2008-05-21  Jim Meyering  <meyering@redhat.com>
51771
51772         avoid a warning from gcc
51773         * lib/vasnprintf.c (IF_LINT): Define.
51774         (scale10_round_decimal_long_double):
51775         Use it to avoid a "may be used uninitialized" warning.
51776         (scale10_round_decimal_double): Likewise.
51777
51778 2008-05-21  Simon Josefsson  <simon@josefsson.org>
51779
51780         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
51781         declared.
51782
51783 2008-05-20  Bruno Haible  <bruno@clisp.org>
51784
51785         * tests/test-memcmp.c (main): Test also the sign of the result. Test
51786         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
51787
51788 2008-05-20  Simon Josefsson  <simon@josefsson.org>
51789
51790         * modules/memcmp-tests: New file.
51791         * tests/test-memcmp.c: New file.
51792
51793 2008-05-19  Bruno Haible  <bruno@clisp.org>
51794
51795         * modules/propername (Notice, configure.ac): Put quoted "..." into
51796         --keyword option.
51797         * lib/propername.h: Update comments accordingly.
51798         Reported by Eric Blake.
51799
51800 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
51801
51802         * modules/getpass-gnu (Depends-on): Add fseeko.
51803
51804 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51805
51806         * modules/base64-tests: New file.
51807
51808 2008-05-19  Bo Borgerson <gigabo@gmail.com>
51809
51810         * lib/base64.c (base64_decode_ctx): If a decode context structure
51811         was passed in use it to ignore newlines.  If a context structure
51812         was _not_ passed in, continue to treat newlines as garbage (this
51813         is the historical behavior).  Formerly base64_decode.
51814         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51815         takes a decode context structure.
51816         * lib/base64.h (base64_decode): Macro for four-argument calls.
51817         (base64_decode_alloc): Likewise.
51818         * lib/base64.c (base64_decode_ctx): If a decode context structure
51819         was passed in use it to ignore newlines.  If a context structure
51820         was _not_ passed in, continue to treat newlines as garbage (this
51821         is the historical behavior).  Formerly base64_decode.
51822         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51823         takes a decode context structure.
51824         * lib/base64.h (base64_decode): Macro for four-argument calls.
51825         (base64_decode_alloc): Likewise.
51826
51827 2008-05-19  Jim Meyering  <meyering@redhat.com>
51828
51829         avoid a warning from gcc
51830         * lib/trim.c (IF_LINT): Define.
51831         (trim2): Use it to avoid a "may be used uninitialized" warning.
51832
51833         Fix doc typo.
51834         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
51835
51836 2008-05-19  Bruno Haible  <bruno@clisp.org>
51837
51838         * doc/glibc-functions/getpass.texi: Document limits of other
51839         implementations.
51840
51841 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51842             Bruno Haible <bruno@clisp.org>
51843
51844         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
51845
51846 2008-05-18  Bruno Haible  <bruno@clisp.org>
51847
51848         * modules/propername: New file, from GNU gettext.
51849         * lib/propername.h: New file, from GNU gettext.
51850         * lib/propername.c: New file, from GNU gettext.
51851         * MODULES.html.sh (Internationalization functions): Add propername.
51852
51853 2008-05-16  Jim Meyering  <meyering@redhat.com>
51854             Bruno Haible  <bruno@clisp.org>
51855
51856         Avoid some warnings from "gcc -Wshadow".
51857         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
51858
51859 2008-05-15  Eric Blake  <ebb9@byu.net>
51860
51861         Extend previous patch to cygwin 1.7.0.
51862         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
51863         fast implementation in cygwin >= 1.7.0.
51864         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51865         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51866
51867 2008-05-15  Bruno Haible  <bruno@clisp.org>
51868
51869         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
51870         implementation in glibc >= 2.9.
51871         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51873
51874 2008-05-15  Bruno Haible  <bruno@clisp.org>
51875
51876         * MODULES.html.sh (Internationalization functions): Remove linebreak.
51877         (Unicode string functions): Add unilbrk/*.
51878         Reported by Karl Berry.
51879
51880 2008-05-15  Eric Blake  <ebb9@byu.net>
51881
51882         Fix violation of <stdbool.h> replacement in regex.
51883         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
51884         * lib/regexec.c (re_search_internal): Likewise.
51885         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
51886
51887 2008-05-15  Jim Meyering  <meyering@redhat.com>
51888
51889         avoid distracting test output when git or cvs is not found
51890         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
51891         * tests/test-vc-list-files-git.sh: Likewise.
51892
51893 2008-05-15  Eric Blake  <ebb9@byu.net>
51894
51895         Glibc finally accepted the memmem speedup code, bugzilla #5514.
51896         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
51897         glibc version.
51898         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
51899         * doc/posix-functions/strstr.texi (strstr): Likewise.
51900         * lib/str-two-way.h (MAX): Sychronize with glibc.
51901
51902 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
51903
51904         * lib/regcomp.c (optimize_utf8): Add a note on why we test
51905         opr.ctx_type.
51906         (calc_first): Initialize constraint field.
51907         (duplicate_node_closure): Use it instead of special casing ANCHORS.
51908         Fix grammar.
51909         (duplicate_node): Merge constraint field for all node types.
51910         (calc_eclosure_iter): Look at constraint field for all node types.
51911         * lib/regex_internal.c (create_cd_newstate): Don't look at
51912         opr.ctx_type.
51913
51914 2008-05-14  Bruno Haible  <bruno@clisp.org>
51915
51916         Help GCC to do better code generation.
51917         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
51918         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
51919         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
51920         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
51921         Declare with attribute 'malloc' if supported.
51922
51923 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
51924
51925         use "echo STR|wc -c" rather than unportable "expr length STR"
51926         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
51927         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
51928
51929 2008-05-14  Jim Meyering  <meyering@redhat.com>
51930
51931         use dd ibs=$n count=1 ... rather than less-portable head -c$n
51932         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
51933         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
51934         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
51935         via Collin Lasse.
51936
51937 2008-05-14  Eric Blake  <ebb9@byu.net>
51938
51939         Avoid quadratic growth in gl_LIBSOURCES.
51940         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
51941         Suggested by Bruno Haible.
51942
51943         Test xmemdup0.
51944         * modules/xmemdup0-tests: New file.
51945         * tests/test-xmemdup0.c: Likewise.
51946
51947 2008-05-13  Eric Blake  <ebb9@byu.net>
51948
51949         Split xmemdup0 into its own module.
51950         * modules/xmemdup0: New file.
51951         * lib/xmemdup0.h: Likewise.
51952         * lib/xmemdup0.c: Likewise.
51953         * MODULES.html.sh (Memory management functions): Add xmemdup0.
51954         * lib/xalloc.h (xmemdup0): Remove.
51955         * lib/xmalloc.c (xmemdup0): Likewise.
51956
51957 2008-05-13  Eric Blake  <ebb9@byu.net>
51958             Bruno Haible  <bruno@clisp.org>
51959
51960         Reduce number of forks required during autoconf.
51961         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
51962         and gl_LIBSOURCES_DIR.
51963         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
51964         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
51965         m4_syscmd per file.
51966         <m4_foreach_w>: Move...
51967         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
51968
51969 2008-05-13  Eric Blake  <ebb9@byu.net>
51970
51971         * gnulib-tool: Fix various comment typos.
51972
51973 2008-05-12  Bruno Haible  <bruno@clisp.org>
51974
51975         Tailor the linebreaking algorithm.
51976         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
51977
51978 2008-05-12  Bruno Haible  <bruno@clisp.org>
51979
51980         Update to Unicode 5.0.0.
51981         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51982         LBP_JV, LBP_JT. Redistribute values.
51983         (unilbrk_table): Change size.
51984         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
51985         Unicode TR#14 rev. 22.
51986         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51987         LBP_JV, LBP_JT. Redistribute values.
51988         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
51989         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
51990         Update.
51991         * lib/unilbrk/lbrkprop1.h: Regenerated.
51992         * lib/unilbrk/lbrkprop2.h: Regenerated.
51993         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
51994         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
51995         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
51996         Likewise.
51997         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
51998         Likewise.
51999         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
52000         result.
52001         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
52002         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
52003         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
52004         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
52005         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
52006         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
52007
52008 2008-05-11  Bruno Haible  <bruno@clisp.org>
52009
52010         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
52011
52012 2008-05-11  Bruno Haible  <bruno@clisp.org>
52013
52014         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
52015         * modules/unilbrk/gen-lbrk: New file.
52016
52017 2008-05-11  Bruno Haible  <bruno@clisp.org>
52018
52019         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
52020         * m4/sha512.m4 (gl_SHA512): Likewise.
52021
52022 2008-05-11  Jim Meyering  <meyering@redhat.com>
52023
52024         New modules: crypto/sha256, crypto/sha512 (from coreutils)
52025         * modules/crypto/sha256: New file.
52026         * modules/crypto/sha512: Likewise.
52027         * lib/sha256.c: Likewise.
52028         * lib/sha256.h: Likewise.
52029         * lib/sha512.c: Likewise.
52030         * lib/sha512.h: Likewise.
52031         * lib/u64.h: Likewise.
52032         * m4/sha256.m4: Likewise.
52033         * m4/sha512.m4: Likewise.
52034         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
52035
52036 2008-05-10  Bruno Haible  <bruno@clisp.org>
52037
52038         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
52039         (Input/Output <stdio.h>): Add xprintf.
52040         (Signal handling <signal.h>): Add strsignal.
52041         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
52042         (Core language properties): Add func.
52043         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
52044         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
52045         strings.
52046         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
52047         (Input/output): New section.
52048         (File system functions): Add openat-die, stat-macros.
52049         (Networking functions): Add sockets.
52050         (Unicode string functions): Add unictype/*.
52051         (Support for building libraries and executables): Add gperf.
52052         (Support for building documentation): Add agpl-3.0.
52053         (Misc): Add nocrash.
52054
52055 2008-05-10  Bruno Haible  <bruno@clisp.org>
52056
52057         * modules/unictype/gen-ctype: New file.
52058
52059 2008-05-10  Jim Meyering  <meyering@redhat.com>
52060
52061         Make chdir-safer.c more efficient on a system with no symlinks.
52062         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
52063         also if ELOOP is zero.  Suggested by Bruno Haible.
52064
52065         Make chdir-safer.c slightly safer.
52066         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
52067         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
52068
52069         Avoid compile failure on systems without ELOOP (like mingw).
52070         * lib/chdir-safer.c (ELOOP): Define if not already defined.
52071         Reported by Bruno Haible.
52072
52073 2008-05-10  Bruno Haible  <bruno@clisp.org>
52074
52075         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
52076         (is_utf8_encoding): Use a case-insensitive comparison.
52077         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
52078         streq.
52079
52080 2008-05-10  Bruno Haible  <bruno@clisp.org>
52081
52082         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
52083         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
52084         * lib/unilbrk/ulc-common.h (iconv_string_length,
52085         iconv_string_keeping_offsets): Remove declarations.
52086         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
52087         Don't include <iconv.h>, streq.h, xsize.h.
52088         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
52089         conversion.
52090         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
52091         <iconv.h>, streq.h, xsize.h.
52092         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
52093         conversion.
52094         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
52095         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
52096         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
52097         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
52098
52099 2008-05-10  Bruno Haible  <bruno@clisp.org>
52100
52101         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
52102         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
52103
52104         * modules/unilbrk/u32-width-linebreaks-tests: New file.
52105         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
52106
52107         * modules/unilbrk/u16-width-linebreaks-tests: New file.
52108         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
52109
52110         * modules/unilbrk/u8-width-linebreaks-tests: New file.
52111         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
52112
52113         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
52114         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
52115
52116         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
52117         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
52118
52119         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
52120         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
52121
52122         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
52123         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
52124
52125 2008-05-10  Bruno Haible  <bruno@clisp.org>
52126
52127         Split up 'linebreak' module.
52128         * lib/unilbrk.h: New file, based on lib/linebreak.h.
52129         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
52130         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
52131         modifications.
52132         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
52133         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
52134         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
52135         lib/linebreak.c.
52136         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
52137         lib/linebreak.c.
52138         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
52139         lib/linebreak.c.
52140         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
52141         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
52142         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
52143         lib/linebreak.c.
52144         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
52145         lib/linebreak.c.
52146         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
52147         lib/linebreak.c.
52148         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
52149         lib/linebreak.c.
52150         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
52151         lib/linebreak.c.
52152         * modules/unilbrk/base: New file.
52153         * modules/unilbrk/tables: New file.
52154         * modules/unilbrk/u8-possible-linebreaks: New file.
52155         * modules/unilbrk/u16-possible-linebreaks: New file.
52156         * modules/unilbrk/u32-possible-linebreaks: New file.
52157         * modules/unilbrk/ulc-common: New file.
52158         * modules/unilbrk/ulc-possible-linebreaks: New file.
52159         * modules/unilbrk/u8-width-linebreaks: New file.
52160         * modules/unilbrk/u16-width-linebreaks: New file.
52161         * modules/unilbrk/u32-width-linebreaks: New file.
52162         * modules/unilbrk/ulc-width-linebreaks: New file.
52163         * lib/linebreak.h: Remove file.
52164         * lib/linebreak.c: Remove file.
52165         * m4/linebreak.m4: Remove file.
52166         * modules/linebreak: Remove file.
52167         * NEWS: Mention the changes.
52168
52169 2008-05-09  Eric Blake  <ebb9@byu.net>
52170
52171         Add xmemdup0.
52172         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
52173         implementation.
52174         * lib/xmalloc.c (xmemdup0): New C implementation.
52175
52176 2008-05-08  Bruno Haible  <bruno@clisp.org>
52177
52178         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
52179
52180 2008-05-07  Eric Blake  <ebb9@byu.net>
52181
52182         Support cross-compilation of <wctype.h>.
52183         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
52184         AC_CACHE_CHECK.
52185
52186 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
52187
52188         * build-aux/vc-list-files: Add support for bzr.
52189
52190 2008-05-03  Jim Meyering  <meyering@redhat.com>
52191
52192         avoid failed assertion with tight malloc
52193         * tests/test-getndelim2.c: Correct an off-by-one assertion.
52194
52195 2008-05-03  Simon Josefsson  <simon@josefsson.org>
52196
52197         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
52198         are needed from arpa/inet.h.
52199         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
52200         Reported by Bruno Haible.
52201
52202 2008-05-02  Jim Meyering  <meyering@redhat.com>
52203
52204         avoid compilation error on FreeBSD 6
52205         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
52206
52207 2008-05-01  Jim Meyering  <meyering@redhat.com>
52208
52209         useless-if-before-free: correct --help's exit status description
52210         * build-aux/useless-if-before-free (usage): Like grep, exit 0
52211         for one or more matches, etc.  Reported by Bruno Haible.
52212
52213         vc-list-files: make the stand-alone gnulib test work
52214         * modules/vc-list-files-tests (configure.ac):
52215         Define and AC_SUBST abs_aux_dir.
52216         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
52217         $(abs_top_srcdir) to each script and having each of them
52218         duplicate the work of setting PATH, set PATH here, using
52219         the new variable, abs_aux_dir instead.
52220         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
52221         * tests/test-vc-list-files-git.sh: Likewise.
52222         Reported by Bruno Haible.
52223
52224 2008-05-01  Bruno Haible  <bruno@clisp.org>
52225
52226         * lib/getndelim2.c (getndelim2): Fix newsize computation during
52227         reallocation. Rename 'done' to 'found_delimiter'.
52228
52229 2008-05-01  Jim Meyering  <meyering@redhat.com>
52230
52231         vc-list-files: accommodate /bin/sh like the one from Solaris 10
52232         * build-aux/vc-list-files: Use `...`, not $(...).
52233
52234 2008-04-30  Jim Meyering  <meyering@redhat.com>
52235
52236         add tests for vc-list-files
52237         * modules/vc-list-files-tests: New module.
52238         * tests/test-vc-list-files-cvs.sh: New file.
52239         * tests/test-vc-list-files-git.sh: New file.
52240
52241         avoid a warning from gcc
52242         * lib/getndelim2.c (IF_LINT): Define.
52243         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
52244
52245         vc-list-files: work properly with build-aux/cvsu, too
52246         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
52247         to all cvs-based clauses.
52248
52249         vc-list-files: work properly in the CVS+awk case, too
52250         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
52251
52252         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
52253         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
52254         take more than one file argument, so .  Add quotes, just in case $dir
52255         ever contains a shell meta-character.  Prompted by Soren Hansen in
52256         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
52257
52258 2008-04-29  Eric Blake  <ebb9@byu.net>
52259
52260         Optimize getndelim2 to use block operations when possible.
52261         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
52262         freadseek, and memchr2.
52263         * lib/getndelim2.c (getndelim2): Use them for block reads.
52264
52265 2008-04-29  Bruno Haible  <bruno@clisp.org>
52266
52267         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
52268         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52269         * modules/inet_ntop (Depends-on): Add extensions.
52270         * modules/inet_pton (Depends-on): Likewise.
52271         Reported by Simon Josefsson.
52272
52273 2008-04-29  Jim Meyering  <meyering@redhat.com>
52274
52275         When the is more than one match in a block, match all of them.
52276         * build-aux/useless-if-before-free: Iterate through each block
52277         until there are no more matches.
52278
52279         Fix broken useless-if-before-free script.
52280         * build-aux/useless-if-before-free: Fix typo: missing "?" after
52281         the expression to match cast of argument to free-like function.
52282
52283 2008-04-29  Eric Blake  <ebb9@byu.net>
52284
52285         Use new header.
52286         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
52287
52288 2008-04-29  Jim Meyering  <meyering@redhat.com>
52289
52290         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
52291         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
52292         by gnulib to exist and to declare e.g., inet_ntop.
52293         Don't include "inet_ntop.h", now removed.
52294
52295         * m4/arpa_inet_h.m4: Remove trailing blanks.
52296
52297 2008-04-29  Eric Blake  <ebb9@byu.net>
52298
52299         Silence valgrind on safe reads beyond potential array bounds.
52300         * lib/rawmemchr.valgrind: New file.
52301         * lib/strchrnul.valgrind: Likewise.
52302         * modules/rawmemchr (Files): Distribute new file.
52303         * modules/strchrnul (Files): Likewise.
52304         Suggested by Bruno Haible.
52305
52306 2008-04-29  Bruno Haible  <bruno@clisp.org>
52307
52308         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
52309         (inet_ntop, inet_pton): Change portability warning's wording.
52310         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
52311         Invoke gl_CHECK_NEXT_HEADERS.
52312         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
52313         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
52314         set ARPA_INET_H.
52315         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52316         * modules/arpa_inet (Description): No longer only for systems that
52317         lack it.
52318         (Depends-on): Add include_next.
52319         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
52320         HAVE_ARPA_INET_H.
52321
52322 2008-04-29  Jim Meyering  <meyering@redhat.com>
52323
52324         * modules/mkdir (License): Re-license as LGPLv2+.
52325
52326 2008-04-29  Bruno Haible  <bruno@clisp.org>
52327
52328         * modules/rawmemchr (Maintainer): Set to Eric.
52329         * modules/strchrnul (Maintainer): Likewise.
52330
52331 2008-04-29  Simon Josefsson  <simon@josefsson.org>
52332
52333         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
52334         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
52335
52336         * modules/arpa_inet (arpa/inet.h): Use them.
52337
52338 2008-04-28  Eric Blake  <ebb9@byu.net>
52339
52340         Test getndelim2.
52341         * modules/getndelim2-tests: New file.
52342         * tests/test-getndelim2.c: Likewise.
52343         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
52344         stream.
52345         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
52346
52347         * MODULES.html.sh: Document new module.
52348
52349 2008-04-20  Bruno Haible  <bruno@clisp.org>
52350
52351         * lib/c-stack.c (die): Use raise.
52352         * modules/c-stack (Depends-on): Add raise.
52353
52354 2008-04-28  Bruno Haible  <bruno@clisp.org>
52355
52356         Expect rpmatch to be declared.
52357         * lib/yesno.c (rpmatch): Remove declaration.
52358
52359         Declare rpmatch.
52360         * lib/stdlib.in.h (rpmatch): New declaration.
52361         * lib/rpmatch.c: Include <stdlib.h> first.
52362         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
52363         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
52364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
52365         HAVE_RPMATCH.
52366         * modules/rpmatch (Depends-on): Add stdlib, extensions.
52367         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52368         (Include): Set to <stdlib.h>.
52369         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
52370         HAVE_RPMATCH.
52371         * NEWS: Document the change.
52372
52373 2008-04-28  Bruno Haible  <bruno@clisp.org>
52374
52375         Change rpmatch to use nl_langinfo when appropriate.
52376         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
52377         (N_): New macro.
52378         (localized_pattern): New function/macro.
52379         (try): Remove match, nomatch arguments. Copy the pattern into safe
52380         memory before caching it.
52381         (rpmatch): Use localized_pattern. Add translator comments.
52382         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
52383         Suggested by Eric Blake.
52384         * modules/rpmatch (Depends-on): Add stdbool.
52385
52386 2008-04-28  Eric Blake  <ebb9@byu.net>
52387
52388         Add rawmemchr module, matching glibc.
52389         * modules/string (Makefile.am): New indicator.
52390         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
52391         * lib/string.in.h (rawmemchr): Declare when appropriate.
52392         * modules/rawmemchr: New file.
52393         * m4/rawmemchr.m4: Likewise.
52394         * lib/rawmemchr.c: Likewise.
52395         * modules/rawmemchr-tests: Likewise.
52396         * tests/test-rawmemchr.c: Likewise.
52397         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
52398         module.
52399         * modules/strchrnul (Depends-on): Add rawmemchr.
52400         * lib/strchrnul.c (strchrnul): Optimize a corner case.
52401
52402         Whitespace cleanup.
52403         * tests/test-strchrnul.c: Reindent.
52404         * lib/strchrnul.c: Likewise.
52405
52406         Optimize and test strchrnul.
52407         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
52408         * modules/strchrnul-tests: New file.
52409         * tests/test-strchrnul.c: Likewise.
52410
52411         Remove intprops dependency.
52412         * modules/memchr (Depends-on): Remove intprops.
52413         * modules/memrchr (Depends-on): Likewise.
52414         * modules/memchr2 (Depends-on): Likewise.
52415         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
52416         * lib/memrchr.c (__memrchr): Likewise.
52417         * lib/memrchr2.c (memchr2): Likewise.
52418         Reported by Simon Josefsson.
52419
52420 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52421
52422         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
52423         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52424
52425 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52426
52427         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
52428
52429         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
52430
52431         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
52432
52433         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
52434         declarations.
52435         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
52436
52437         * m4/inet_pton.m4: Don't check for header files.
52438
52439         * m4/inet_ntop.m4: Don't check for header files.
52440
52441 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52442
52443         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
52444         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
52445         trigger for cygwin).
52446         Reported by Bruno Haible  <bruno@clisp.org>.
52447
52448 2008-04-28  Bruno Haible  <bruno@clisp.org>
52449
52450         * doc/posix-functions/strdup.texi: Mention mingw problem.
52451
52452 2008-04-27  Bruno Haible  <bruno@clisp.org>
52453
52454         * modules/stat-time-tests (Depends-on): Add sleep.
52455         * tests/test-stat-time.c (force_unlink): New function.
52456         (cleanup): Use it.
52457         (test_mtime): Remove the ctime related tests.
52458         (test_ctime): New function, containing the ctime related tests.
52459         (main): Call test_ctime, except on native Windows platforms.
52460
52461 2008-04-27  Bruno Haible  <bruno@clisp.org>
52462
52463         * lib/rpmatch.c (rpmatch): Add some comments.
52464         Reported by James Youngman <jay@gnu.org>.
52465
52466 2008-04-27  Bruno Haible  <bruno@clisp.org>
52467
52468         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
52469         quiet NaNs.
52470
52471 2008-04-27  Bruno Haible  <bruno@clisp.org>
52472
52473         Make test-yesno.sh work on mingw.
52474         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
52475         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
52476         (main): Set stdin to binary mode.
52477         * modules/yesno-tests (Depends-on): Add binary-io.
52478
52479 2008-04-27  Bruno Haible  <bruno@clisp.org>
52480
52481         Fix 'isfinite' on x86, x86_64, ia64 platforms.
52482         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
52483         argument that lie outside the IEEE 854 domain.
52484         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
52485         (gl_ISFINITE): Use it.
52486         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
52487
52488 2008-04-27  Bruno Haible  <bruno@clisp.org>
52489
52490         Allow local renaming in config.h.
52491         * lib/memrchr.c (memrchr): Don't undefine outside libc.
52492
52493 2008-04-27  Bruno Haible  <bruno@clisp.org>
52494
52495         * lib/memchr.c (__memchr): Change type of 'i'.
52496         * lib/memchr2.c (memchr2): Likewise.
52497
52498 2008-04-26  Eric Blake  <ebb9@byu.net>
52499         and Bruno Haible  <bruno@clisp.org>
52500
52501         Optimize and test memrchr.
52502         * modules/memrchr (Depends-on): Add intprops.
52503         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
52504         * modules/memrchr-tests: New file.
52505         * tests/test-memrchr.c: New file.
52506
52507 2008-04-26  Bruno Haible  <bruno@clisp.org>
52508
52509         Add tentative support for DragonFly BSD.
52510         * lib/stdio-impl.h: Add macros for DragonFly BSD.
52511         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
52512         fp.
52513         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52514         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
52515         * lib/fpurge.c (fpurge): Likewise.
52516         * lib/freadable.c (freaadable): Likewise.
52517         * lib/freadahead.c (freadahead): Likewise.
52518         * lib/freading.c (freading): Likewise.
52519         * lib/freadptr.c (freadptr): Likewise.
52520         * lib/freadseek.c (freadptrinc): Likewise.
52521         * lib/fseeko.c (fseeko): Likewise.
52522         * lib/fseterr.c (fseterr): Likewise.
52523         * lib/fwritable.c (fwritable): Likewise.
52524         * lib/fwriting.c (fwriting): Likewise.
52525
52526 2008-04-26  Bruno Haible  <bruno@clisp.org>
52527
52528         * lib/stdio-impl.h: New file.
52529         * lib/fbufmode.c: Include stdio-impl.h.
52530         (fbufmode): Use fp_, remove redundant #defines.
52531         * lib/fflush.c: Include stdio-impl.h.
52532         (clear_ungetc_buffer): Remove redundant #defines.
52533         * lib/fpurge.c: Include stdio-impl.h.
52534         (fpurge): Remove redundant #defines.
52535         * lib/freadable.c: Include stdio-impl.h.
52536         (freadable): Remove redundant #defines.
52537         * lib/freadahead.c: Include stdio-impl.h.
52538         (freadahead): Remove redundant #defines.
52539         * lib/freading.c: Include stdio-impl.h.
52540         (freading): Remove redundant #defines.
52541         * lib/freadptr.c: Include stdio-impl.h.
52542         (freadptr): Remove redundant #defines.
52543         * lib/freadseek.c: Include stdio-impl.h.
52544         (freadptrinc): Remove redundant #defines.
52545         * lib/fseeko.c: Include stdio-impl.h.
52546         (rpl_fseeko): Remove redundant #defines.
52547         * lib/fseterr.c: Include stdio-impl.h.
52548         (fseterr): Remove redundant #defines.
52549         * lib/fwritable.c: Include stdio-impl.h.
52550         (fwritable: Remove redundant #defines.
52551         * lib/fwriting.c: Include stdio-impl.h.
52552         (fwriting): Remove redundant #defines.
52553         * modules/fbufmode (Files): Add lib/stdio-impl.h.
52554         * modules/fflush (Files): Likewise.
52555         * modules/fpurge (Files): Likewise.
52556         * modules/freadable (Files): Likewise.
52557         * modules/freadahead (Files): Likewise.
52558         * modules/freading (Files): Likewise.
52559         * modules/freadptr (Files): Likewise.
52560         * modules/freadseek (Files): Likewise.
52561         * modules/fseeko (Files): Likewise.
52562         * modules/fseterr (Files): Likewise.
52563         * modules/fwritable (Files): Likewise.
52564         * modules/fwriting (Files): Likewise.
52565
52566 2008-04-26  Bruno Haible  <bruno@clisp.org>
52567
52568         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52569         restore_seek_optimization, update_fpos_cache): New functions, extracted
52570         from rpl_fflush.
52571         (rpl_fflush): Use them.
52572         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
52573         (gl_REPLACE_FFLUSH): Use it.
52574
52575 2008-04-26  Bruno Haible  <bruno@clisp.org>
52576
52577         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
52578         on Solaris.
52579         * tests/test-xstrtoimax.sh: Likewise.
52580         * tests/test-xstrtoumax.sh: Likewise.
52581         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52582
52583 2008-04-26  Bruno Haible  <bruno@clisp.org>
52584
52585         * modules/memchr-tests: New file.
52586         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
52587
52588 2008-04-26  Eric Blake  <ebb9@byu.net>
52589             Bruno Haible  <bruno@clisp.org>
52590
52591         * lib/memchr.c: Include intprops.h.
52592         (__memchr): Optimize parallel detection of matching bytes. Rename local
52593         variables. Add explanatory comments.
52594
52595 2008-04-26  Bruno Haible  <bruno@clisp.org>
52596
52597         Fix module 'memchr', broken since 2000-10-28.
52598         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
52599
52600 2008-04-26  Bruno Haible  <bruno@clisp.org>
52601
52602         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
52603         comments.
52604
52605 2008-04-25  Eric Blake  <ebb9@byu.net>
52606
52607         Use native fstatat on cygwin 1.7.0.
52608         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
52609         first.
52610
52611 2008-04-23  Eric Blake  <ebb9@byu.net>
52612
52613         Improve memchr2 performance.
52614         * lib/memchr2.c (memchr2): Further optimize parallel detection of
52615         NUL bytes.
52616         * modules/memchr2 (Depends-on): Use intprops.h.
52617
52618 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52619
52620         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
52621         an inline function instead of a CPP macro.  Patch by Ben Pfaff
52622         <blp@cs.stanford.edu>.
52623
52624 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52625
52626         * lib/arpa_inet.in.h: New file.
52627
52628         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
52629         (Makefile.am): Sed in substitute header file.
52630
52631         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
52632         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
52633
52634         * modules/inet_ntop (configure.ac): Use
52635         gl_ARPA_INET_MODULE_INDICATOR.
52636
52637         * modules/inet_pton (configure.ac): Use
52638         gl_ARPA_INET_MODULE_INDICATOR.
52639
52640 2008-04-22  Jim Meyering  <meyering@redhat.com>
52641
52642         * modules/verify (License): Re-license as LGPLv2+.
52643
52644 2008-04-22  Simon Josefsson  <simon@josefsson.org>
52645
52646         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
52647         parameter to void* as per POSIX standard (MinGW uses char*).
52648
52649 2008-04-21  Bruno Haible  <bruno@clisp.org>
52650
52651         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52652         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52653         Define to replacements if REPLACE_ISWCNTRL is 1.
52654         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
52655         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
52656         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
52657         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
52658         what it fixes.
52659         * doc/posix-functions/iswalpha.texi: Likewise.
52660         * doc/posix-functions/iswblank.texi: Likewise.
52661         * doc/posix-functions/iswcntrl.texi: Likewise.
52662         * doc/posix-functions/iswdigit.texi: Likewise.
52663         * doc/posix-functions/iswgraph.texi: Likewise.
52664         * doc/posix-functions/iswlower.texi: Likewise.
52665         * doc/posix-functions/iswprint.texi: Likewise.
52666         * doc/posix-functions/iswpunct.texi: Likewise.
52667         * doc/posix-functions/iswspace.texi: Likewise.
52668         * doc/posix-functions/iswupper.texi: Likewise.
52669         * doc/posix-functions/iswxdigit.texi: Likewise.
52670         Reported by Alain Guibert.
52671
52672 2008-04-21  Bruno Haible  <bruno@clisp.org>
52673
52674         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
52675         Patch by Alain Guibert.
52676
52677 2008-04-21  Bruno Haible  <bruno@clisp.org>
52678
52679         Fix test failures on mingw.
52680         * tests/test-xstrtol.c (print_no_progname): New function.
52681         (main): Install it in error_print_progname hook.
52682         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
52683         * tests/test-xstrtoimax.sh: Likewise.
52684         * tests/test-xstrtoumax.sh: Likewise.
52685
52686 2008-04-21  Bruno Haible  <bruno@clisp.org>
52687
52688         Fix test failure on mingw.
52689         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
52690
52691 2008-04-21  Bruno Haible  <bruno@clisp.org>
52692
52693         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
52694         Actually assign a value.
52695
52696 2008-04-20  Bruno Haible  <bruno@clisp.org>
52697
52698         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
52699         take 2.
52700         * lib/canonicalize.c (canonicalize_file_name): Elide if the
52701         'canonicalize-lgpl' module is also used.
52702         * lib/canonicalize-lgpl.c: Undo last change.
52703         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
52704
52705 2008-04-20  Bruno Haible  <bruno@clisp.org>
52706
52707         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
52708         config.h. Provide _mkdir based fallback for mingw.
52709         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
52710         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
52711         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
52712         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
52713         rather than defining mkdir in config.h.
52714         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
52715         (gl_SYS_STAT_H_DEFAULTS): New macro.
52716         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
52717         HAVE_IO_H any more.
52718         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
52719         HAVE_DECL_MKDIR and HAVE_IO_H.
52720
52721 2008-04-20  Bruno Haible  <bruno@clisp.org>
52722
52723         * lib/isapipe.c: Port to native Windows platforms.
52724
52725 2008-04-20  Bruno Haible  <bruno@clisp.org>
52726
52727         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
52728
52729 2008-04-21  Eric Blake  <ebb9@byu.net>
52730
52731         Work around preprocessors that don't handle UINTMAX_MAX.
52732         * lib/memchr2.c (memchr2): Avoid embedded #if.
52733         Reported by Alain Guibert, fix suggested by Bruno Haible.
52734
52735 2008-04-21  Simon Josefsson  <simon@josefsson.org>
52736
52737         * doc/posix-functions/strftime.texi (strftime): Explain better
52738         Windows incompatibility.  Suggested by Micah Cowan
52739         <micah@cowan.name>.
52740
52741 2008-04-20  Bruno Haible  <bruno@clisp.org>
52742
52743         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
52744         unistr/u8-mblen.
52745
52746 2008-04-20  Bruno Haible  <bruno@clisp.org>
52747
52748         Fix test failure on platforms with non-GNU iconv.
52749         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
52750         (U_TO_U8): Use it, rather than u16_to_u8.
52751         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
52752         units at the end of the input string.
52753         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
52754
52755 2008-04-20  Bruno Haible  <bruno@clisp.org>
52756
52757         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
52758         when the resulting length is 0.
52759         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
52760
52761 2008-04-20  Bruno Haible  <bruno@clisp.org>
52762
52763         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
52764         works.
52765         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
52766
52767 2008-04-20  Bruno Haible  <bruno@clisp.org>
52768
52769         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
52770         * modules/tsearch-tests (configure.ac): Test for initstate function.
52771
52772 2008-04-20  Bruno Haible  <bruno@clisp.org>
52773
52774         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
52775         for nlink_t if missing.
52776         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
52777
52778 2008-04-19  Bruno Haible  <bruno@clisp.org>
52779
52780         Work around snprintf bug on Linux libc5.
52781         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
52782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52783         gl_SNPRINTF_SIZE1.
52784         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52785         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
52786         that test failed.
52787         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
52788         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
52789         * modules/snprintf (Files): Add m4/printf.m4.
52790         * modules/vsnprintf (Files): Likewise.
52791         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
52792         * doc/posix-functions/vsnprintf.texi: Likewise.
52793
52794 2008-04-19  Bruno Haible  <bruno@clisp.org>
52795
52796         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
52797         from 0.0058 to less than 10^-7.
52798
52799 2008-04-19  Bruno Haible  <bruno@clisp.org>
52800
52801         Fix rounding when a precision is given.
52802         * lib/vasnprintf.c (is_borderline): New function.
52803         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
52804         9...9x.
52805         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
52806         %e, %g.
52807         * tests/test-vasprintf-posix.c (test_function): Likewise.
52808         * tests/test-snprintf-posix.h (test_function): Likewise.
52809         * tests/test-sprintf-posix.h (test_function): Likewise.
52810         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
52811         * tests/test-printf-posix.h (test_function): Likewise.
52812         * tests/test-printf-posix.output: Update.
52813         Reported by John Darrington <john@darrington.wattle.id.au> via
52814         Ben Pfaff <blp@cs.stanford.edu>.
52815
52816 2008-04-18  Simon Josefsson  <simon@josefsson.org>
52817
52818         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
52819         Suggested by Bruno Haible <bruno@clisp.org>.
52820
52821 2008-04-17  Bruno Haible  <bruno@clisp.org>
52822
52823         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
52824         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
52825         implementation.
52826         Patch by Bruce Merry <bmerry@gmail.com>.
52827
52828 2008-04-17  Simon Josefsson  <simon@josefsson.org>
52829
52830         * doc/posix-functions/strftime.texi (strftime): Mention that %e
52831         doesn't work under Windows.
52832
52833 2008-04-16  Bruno Haible  <bruno@clisp.org>
52834
52835         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
52836         New macros.
52837         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
52838         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
52839         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
52840         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
52841         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
52842         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
52843         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
52844         macros.
52845         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
52846         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
52847         Northern Sotho, Uighur.
52848
52849 2008-04-16  Bruno Haible  <bruno@clisp.org>
52850
52851         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
52852         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
52853         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
52854         Reported by Daniel Bergström <daniel@octocode.com>.
52855
52856 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
52857             Bruno Haible  <bruno@clisp.org>
52858
52859         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
52860         function.
52861         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
52862         New functions, mostly extracted from gl_locale_name_default.
52863         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
52864
52865 2008-04-16  Eric Blake  <ebb9@byu.net>
52866
52867         Adjust strtod detection to catch glibc 2.7 bug.
52868         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
52869         Reported by John Gatewood Ham.
52870
52871 2008-04-16  Bruno Haible  <bruno@clisp.org>
52872
52873         Add tentative support for Linux libc5.
52874         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
52875         * lib/fpurge.c (fpurge): Likewise.
52876         * lib/freadable.c (freadable): Likewise.
52877         * lib/freadahead.c (freadahead): Likewise.
52878         * lib/freading.c (freading): Likewise.
52879         * lib/freadptr.c (freadptr): Likewise.
52880         * lib/freadseek.c (freadptrinc): Likewise.
52881         * lib/fseeko.c (rpl_fseeko): Likewise.
52882         * lib/fseterr.c (fseterr): Likewise.
52883         * lib/fwritable.c (fwritable): Likewise.
52884         * lib/fwriting.c (fwriting): Likewise.
52885         Reported by Alain Guibert <alguibert+bts@free.fr>.
52886
52887 2008-04-15  Bruno Haible  <bruno@clisp.org>
52888
52889         * modules/mathl (configure.ac): Define module indicator.
52890
52891 2008-04-15  Bruno Haible  <bruno@clisp.org>
52892
52893         * lib/logl.c (logl): Remove unused variables.
52894
52895 2008-04-15  Bruno Haible  <bruno@clisp.org>
52896
52897         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
52898         fails.
52899
52900 2008-04-15  Bruno Haible  <bruno@clisp.org>
52901
52902         * lib/trim.c (trim2): Fix argument of isspace() macro.
52903
52904 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
52905
52906         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
52907         to 0.
52908         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
52909
52910 2008-04-14  Bruno Haible  <bruno@clisp.org>
52911
52912         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
52913         AC_LANG_PROGRAM argument.
52914         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
52915         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
52916         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
52917         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52918         * m4/math_h.m4 (gl_MATH_H): Likewise.
52919         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
52920         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52921         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52922         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
52923         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52924         * m4/regex.m4 (gl_REGEX): Likewise.
52925         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
52926         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
52927         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52928         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
52929         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52930         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52931         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52932         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52933
52934 2008-04-14  Jim Meyering  <meyering@redhat.com>
52935
52936         test-strtod: fix typos: s/abs/fabs/
52937         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
52938
52939 2008-04-13  Bruno Haible  <bruno@clisp.org>
52940
52941         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
52942         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
52943         module is also used and while not building the reloc-wrapper.
52944
52945 2008-04-13  Bruno Haible  <bruno@clisp.org>
52946
52947         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
52948
52949 2008-04-13  Bruno Haible  <bruno@clisp.org>
52950
52951         Fix AIX compilation failure introduced on 2008-04-02.
52952         * tests/test-frexp.c (exp): Undefine before redefining.
52953         * tests/test-frexpl.c (exp): Likewise.
52954
52955 2008-04-13  Bruno Haible  <bruno@clisp.org>
52956
52957         Work around a HP-UX stdio bug.
52958         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
52959         * tests/test-ftello.c (main): Likewise.
52960         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
52961         * doc/posix-functions/ftello.texi: Likewise.
52962
52963 2008-04-13  Bruno Haible  <bruno@clisp.org>
52964
52965         Make test-signbit pass on HP-UX/hppa.
52966         * tests/test-signbit.c (minus_zerol): New variable.
52967         (test_signbitl): Use it.
52968
52969 2008-04-13  Bruno Haible  <bruno@clisp.org>
52970
52971         Make truncl work on OSF/1 4.0.
52972         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
52973         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52974         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
52976         HAVE_DECL_TRUNCL.
52977         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
52978         HAVE_DECL_TRUNCL.
52979         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
52980
52981 2008-04-13  Bruno Haible  <bruno@clisp.org>
52982
52983         * lib/unictype.h: Remove trailing comma from enumeration definitions.
52984
52985 2008-04-13  Bruno Haible  <bruno@clisp.org>
52986
52987         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
52988         expression, so as to avoid HP-UX 11 cc compiler bug.
52989
52990 2008-04-13  Bruno Haible  <bruno@clisp.org>
52991
52992         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
52993
52994 2008-04-13  Bruno Haible  <bruno@clisp.org>
52995
52996         * lib/git-merge-changelog.c: Remove empty declaration outside of
52997         functions.
52998
52999 2008-04-13  Bruno Haible  <bruno@clisp.org>
53000
53001         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
53002
53003 2008-04-13  Bruno Haible  <bruno@clisp.org>
53004
53005         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
53006         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
53007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
53008         also if it exists but lacks definitions of the SHUT_* macros.
53009         * modules/sys_socket (Description): Update.
53010         Reported by Elbert Pol <e.pol@chello.nl>.
53011
53012 2008-04-13  Bruno Haible  <bruno@clisp.org>
53013
53014         * lib/localcharset.c (OS2): Don't redefine if already defined.
53015         Reported by Elbert Pol <e.pol@chello.nl>.
53016
53017 2008-04-13  Bruno Haible  <bruno@clisp.org>
53018
53019         * lib/binary-io.h [__EMX__]: Include <io.h>.
53020         Reported by Elbert Pol <e.pol@chello.nl>.
53021
53022 2008-04-12  Bruno Haible  <bruno@clisp.org>
53023
53024         * lib/fpucw.h: Enable the definitions also for x86_64.
53025         Needed for NetBSD/x86_64.
53026         Reported by Thomas Klausner <tk@giga.or.at>.
53027
53028 2008-04-12  Bruno Haible  <bruno@clisp.org>
53029
53030         * tests/test-strtod.c: Include isnand.h.
53031         (main): Use isnand instead of isnan.
53032         Reported by Jim Meyering.
53033
53034 2008-04-12  Bruno Haible  <bruno@clisp.org>
53035
53036         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
53037         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53038
53039 2008-04-12  Jim Meyering  <meyering@redhat.com>
53040
53041         * m4/math_h.m4 (gl_MATH_H): Fix typos.
53042
53043 2008-04-12  Bruno Haible  <bruno@clisp.org>
53044
53045         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
53046         Reported by Elbert Pol <e.pol@chello.nl>.
53047
53048 2008-04-12  Eric Blake  <ebb9@byu.net>
53049
53050         Work around Solaris 10 math.h bug.
53051         * m4/math_h.m4 (gl_MATH_H): Check for bug.
53052         (gl_MATH_H_DEFAULTS): Set up default.
53053         * modules/math (Makefile.am): Replace new indicators.
53054         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
53055         * tests/test-math.c (main): Test this.
53056         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
53057         * doc/posix-headers/math.texi (math.h): Mention bug.
53058         Reported by Nelson H. F. Beebe and Jim Meyering.
53059
53060 2008-04-11  Bruno Haible  <bruno@clisp.org>
53061
53062         Adapt to future versions of Apple GCC.
53063         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
53064         Reported by Peter O'Gorman <peter@pogma.com>.
53065
53066 2008-04-11  Bruno Haible  <bruno@clisp.org>
53067
53068         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
53069
53070 2008-04-11  Bruno Haible  <bruno@clisp.org>
53071
53072         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
53073
53074         * modules/getaddrinfo-tests (Makefile.am): Define
53075         test_getaddrinfo_LDADD.
53076
53077 2008-04-11  Bruno Haible  <bruno@clisp.org>
53078
53079         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
53080         (init): Fix syntax error.
53081         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
53082         is declared.
53083
53084 2008-04-11  Bruno Haible  <bruno@clisp.org>
53085
53086         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
53087         * modules/glob (Depends-on): Add stdbool.
53088
53089 2008-04-11  Bruno Haible  <bruno@clisp.org>
53090
53091         * lib/trim.c: Include <string.h>.
53092
53093 2008-04-11  Eric Blake  <ebb9@byu.net>
53094
53095         Avoid compile failure on OS/2.
53096         * lib/regex_internal.h (internal_function): Disable optimization
53097         on OS/2 (__EMX__), where it caused compiler error.
53098         Reported by Elbert Pol.
53099
53100 2008-04-11  Bruno Haible  <bruno@clisp.org>
53101
53102         Flush the standard error stream before aborting. Needed on mingw.
53103         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
53104         * tests/test-array_list.c (ASSERT): Likewise.
53105         * tests/test-array_oset.c (ASSERT): Likewise.
53106         * tests/test-avltree_list.c (ASSERT): Likewise.
53107         * tests/test-avltree_oset.c (ASSERT): Likewise.
53108         * tests/test-avltreehash_list.c (ASSERT): Likewise.
53109         * tests/test-binary-io.c (ASSERT): Likewise.
53110         * tests/test-byteswap.c (ASSERT): Likewise.
53111         * tests/test-c-ctype.c (ASSERT): Likewise.
53112         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
53113         * tests/test-c-strcasestr.c (ASSERT): Likewise.
53114         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
53115         * tests/test-c-strstr.c (ASSERT): Likewise.
53116         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
53117         * tests/test-canonicalize.c (ASSERT): Likewise.
53118         * tests/test-carray_list.c (ASSERT): Likewise.
53119         * tests/test-ceilf1.c (ASSERT): Likewise.
53120         * tests/test-ceilf2.c (ASSERT): Likewise.
53121         * tests/test-ceill.c (ASSERT): Likewise.
53122         * tests/test-count-one-bits.c (ASSERT): Likewise.
53123         * tests/test-fbufmode.c (ASSERT): Likewise.
53124         * tests/test-fflush2.c (ASSERT): Likewise.
53125         * tests/test-floorf1.c (ASSERT): Likewise.
53126         * tests/test-floorf2.c (ASSERT): Likewise.
53127         * tests/test-floorl.c (ASSERT): Likewise.
53128         * tests/test-fopen.c (ASSERT): Likewise.
53129         * tests/test-fpending.c (ASSERT): Likewise.
53130         * tests/test-fprintf-posix.c (ASSERT): Likewise.
53131         * tests/test-fpurge.c (ASSERT): Likewise.
53132         * tests/test-freadable.c (ASSERT): Likewise.
53133         * tests/test-freadahead.c (ASSERT): Likewise.
53134         * tests/test-freading.c (ASSERT): Likewise.
53135         * tests/test-freadptr.c (ASSERT): Likewise.
53136         * tests/test-freadptr2.c (ASSERT): Likewise.
53137         * tests/test-freadseek.c (ASSERT): Likewise.
53138         * tests/test-freopen.c (ASSERT): Likewise.
53139         * tests/test-frexp.c (ASSERT): Likewise.
53140         * tests/test-frexpl.c (ASSERT): Likewise.
53141         * tests/test-fseek.c (ASSERT): Likewise.
53142         * tests/test-fseeko.c (ASSERT): Likewise.
53143         * tests/test-fstrcmp.c (ASSERT): Likewise.
53144         * tests/test-ftell.c (ASSERT): Likewise.
53145         * tests/test-ftello.c (ASSERT): Likewise.
53146         * tests/test-func.c (ASSERT): Likewise.
53147         * tests/test-fwritable.c (ASSERT): Likewise.
53148         * tests/test-fwriting.c (ASSERT): Likewise.
53149         * tests/test-getdelim.c (ASSERT): Likewise.
53150         * tests/test-getline.c (ASSERT): Likewise.
53151         * tests/test-i-ring.c (ASSERT): Likewise.
53152         * tests/test-iconv-utf.c (ASSERT): Likewise.
53153         * tests/test-iconv.c (ASSERT): Likewise.
53154         * tests/test-isfinite.c (ASSERT): Likewise.
53155         * tests/test-isnand.c (ASSERT): Likewise.
53156         * tests/test-isnanf.c (ASSERT): Likewise.
53157         * tests/test-isnanl.h (ASSERT): Likewise.
53158         * tests/test-ldexpl.c (ASSERT): Likewise.
53159         * tests/test-linked_list.c (ASSERT): Likewise.
53160         * tests/test-linkedhash_list.c (ASSERT): Likewise.
53161         * tests/test-localename.c (ASSERT): Likewise.
53162         * tests/test-lseek.c (ASSERT): Likewise.
53163         * tests/test-mbscasecmp.c (ASSERT): Likewise.
53164         * tests/test-mbscasestr1.c (ASSERT): Likewise.
53165         * tests/test-mbscasestr2.c (ASSERT): Likewise.
53166         * tests/test-mbscasestr3.c (ASSERT): Likewise.
53167         * tests/test-mbscasestr4.c (ASSERT): Likewise.
53168         * tests/test-mbschr.c (ASSERT): Likewise.
53169         * tests/test-mbscspn.c (ASSERT): Likewise.
53170         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
53171         * tests/test-mbspbrk.c (ASSERT): Likewise.
53172         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
53173         * tests/test-mbsrchr.c (ASSERT): Likewise.
53174         * tests/test-mbsspn.c (ASSERT): Likewise.
53175         * tests/test-mbsstr1.c (ASSERT): Likewise.
53176         * tests/test-mbsstr2.c (ASSERT): Likewise.
53177         * tests/test-mbsstr3.c (ASSERT): Likewise.
53178         * tests/test-memchr2.c (ASSERT): Likewise.
53179         * tests/test-memmem.c (ASSERT): Likewise.
53180         * tests/test-open.c (ASSERT): Likewise.
53181         * tests/test-printf-frexp.c (ASSERT): Likewise.
53182         * tests/test-printf-frexpl.c (ASSERT): Likewise.
53183         * tests/test-printf-posix.c (ASSERT): Likewise.
53184         * tests/test-quotearg.c (ASSERT): Likewise.
53185         * tests/test-rbtree_list.c (ASSERT): Likewise.
53186         * tests/test-rbtree_oset.c (ASSERT): Likewise.
53187         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
53188         * tests/test-round1.c (ASSERT): Likewise.
53189         * tests/test-roundf1.c (ASSERT): Likewise.
53190         * tests/test-roundl.c (ASSERT): Likewise.
53191         * tests/test-signbit.c (ASSERT): Likewise.
53192         * tests/test-sleep.c (ASSERT): Likewise.
53193         * tests/test-snprintf-posix.c (ASSERT): Likewise.
53194         * tests/test-snprintf.c (ASSERT): Likewise.
53195         * tests/test-sprintf-posix.c (ASSERT): Likewise.
53196         * tests/test-stat-time.c (ASSERT): Likewise.
53197         * tests/test-strcasestr.c (ASSERT): Likewise.
53198         * tests/test-strerror.c (ASSERT): Likewise.
53199         * tests/test-striconv.c (ASSERT): Likewise.
53200         * tests/test-striconveh.c (ASSERT): Likewise.
53201         * tests/test-striconveha.c (ASSERT): Likewise.
53202         * tests/test-strsignal.c (ASSERT): Likewise.
53203         * tests/test-strstr.c (ASSERT): Likewise.
53204         * tests/test-strtod.c (ASSERT): Likewise.
53205         * tests/test-trunc1.c (ASSERT): Likewise.
53206         * tests/test-trunc2.c (ASSERT): Likewise.
53207         * tests/test-truncf1.c (ASSERT): Likewise.
53208         * tests/test-truncf2.c (ASSERT): Likewise.
53209         * tests/test-truncl.c (ASSERT): Likewise.
53210         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
53211         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
53212         * tests/test-vasnprintf.c (ASSERT): Likewise.
53213         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
53214         * tests/test-vasprintf.c (ASSERT): Likewise.
53215         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
53216         * tests/test-vprintf-posix.c (ASSERT): Likewise.
53217         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
53218         * tests/test-vsnprintf.c (ASSERT): Likewise.
53219         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
53220         * tests/test-wcwidth.c (ASSERT): Likewise.
53221         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
53222         * tests/test-xprintf-posix.c (ASSERT): Likewise.
53223         * tests/test-xvasprintf.c (ASSERT): Likewise.
53224         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
53225         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
53226         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
53227         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
53228         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
53229         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
53230         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
53231         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
53232         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
53233         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
53234         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
53235         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
53236         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
53237         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
53238         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
53239         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
53240         * tests/unictype/test-block_list.c (ASSERT): Likewise.
53241         * tests/unictype/test-block_of.c (ASSERT): Likewise.
53242         * tests/unictype/test-block_test.c (ASSERT): Likewise.
53243         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
53244         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
53245         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
53246         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
53247         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
53248         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
53249         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
53250         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
53251         * tests/unictype/test-combining.c (ASSERT): Likewise.
53252         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
53253         * tests/unictype/test-digit.c (ASSERT): Likewise.
53254         * tests/unictype/test-mirror.c (ASSERT): Likewise.
53255         * tests/unictype/test-numeric.c (ASSERT): Likewise.
53256         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
53257         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
53258         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
53259         * tests/unictype/test-scripts.c (ASSERT): Likewise.
53260         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
53261         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
53262         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
53263         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
53264         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
53265         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
53266         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
53267         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
53268         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
53269         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
53270         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
53271         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
53272         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
53273         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
53274         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
53275         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
53276         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
53277         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
53278         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
53279         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
53280         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
53281         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
53282         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
53283         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
53284         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
53285         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
53286         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
53287         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
53288         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
53289         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
53290         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
53291         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
53292         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
53293         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
53294         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
53295         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
53296         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
53297         Reported by Eric Blake.
53298
53299 2008-04-11  Bruno Haible  <bruno@clisp.org>
53300
53301         * lib/wchar.in.h: Tweak comment.
53302
53303 2008-04-11  Bruno Haible  <bruno@clisp.org>
53304
53305         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
53306         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
53307         gl_COMMON.
53308         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
53309
53310 2008-04-11  Bruno Haible  <bruno@clisp.org>
53311
53312         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
53313
53314 2008-04-11  Simon Josefsson  <simon@josefsson.org>
53315
53316         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
53317         of attempting to use non-existing /dev/*random.  Based on patch
53318         from Adam Strzelecki <ono@java.pl> in
53319         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
53320
53321 2008-04-08  Bruno Haible  <bruno@clisp.org>
53322
53323         Add tentative support for emx+gcc.
53324         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
53325         * lib/fpurge.c (fpurge): Likewise.
53326         * lib/freadable.c (freadable): Likewise.
53327         * lib/freadahead.c (freadahead): Likewise.
53328         * lib/freading.c (freading): Likewise.
53329         * lib/freadptr.c (freadptr): Likewise.
53330         * lib/freadseek.c (freadptrinc): Likewise.
53331         * lib/fseeko.c (rpl_fseeko): Likewise.
53332         * lib/fseterr.c (fseterr): Likewise.
53333         * lib/fwritable.c (fwritable): Likewise.
53334         * lib/fwriting.c (fwriting): Likewise.
53335         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
53336
53337 2008-04-09  Eric Blake  <ebb9@byu.net>
53338
53339         Avoid some autoconf warnings.
53340         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
53341         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
53342         * m4/afs.m4 (gl_AFS): Likewise.
53343         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
53344         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
53345         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53346         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
53347         (gl_INTEGER_TYPE_SUFFIX): Likewise.
53348         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
53349         (AC_CHECK_DECLS_ONCE): Likewise.
53350         Rename file...
53351         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
53352         gnulib-tool requires autoconf 2.59 or better.
53353         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
53354
53355 2008-04-08  Eric Blake  <ebb9@byu.net>
53356
53357         Use 'git describe --match' if present (added in git 1.5.5).
53358         * build-aux/git-version-gen: Limit result to tags that match 'v*'
53359         if possible.
53360
53361 2008-04-08  Bruno Haible  <bruno@clisp.org>
53362
53363         Add tentative support for OpenServer.
53364         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
53365         _ptr, _cnt.
53366         * lib/fpurge.c (fpurge): Likewise.
53367         * lib/freadable.c (freadable): Likewise.
53368         * lib/freadahead.c (freadahead): Likewise.
53369         * lib/freading.c (freading): Likewise.
53370         * lib/freadptr.c (freadptr): Likewise.
53371         * lib/freadseek.c (freadptrinc): Likewise.
53372         * lib/fseeko.c (rpl_fseeko): Likewise.
53373         * lib/fseterr.c (fseterr): Likewise.
53374         * lib/fwritable.c (fwritable): Likewise.
53375         * lib/fwriting.c (fwriting): Likewise.
53376         Reported by Roger Cornelius <rac@tenzing.org> and
53377         Brian K. White <brian@aljex.com>.
53378
53379 2008-04-06  Jim Meyering  <meyering@redhat.com>
53380
53381         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
53382
53383 2008-04-06  Bruno Haible  <bruno@clisp.org>
53384
53385         Avoid possible error with non-ASCII bytes in UTF-8 locales.
53386         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
53387         * tests/test-printf-posix.sh: Likewise.
53388         * tests/test-vfprintf-posix.sh: Likewise.
53389         * tests/test-vprintf-posix.sh: Likewise.
53390         * tests/test-xprintf-posix.sh: Likewise.
53391
53392 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53393
53394         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
53395         hide error from 'ls', needed on OS/2.
53396         Report by Elbert Pol <elbert.pol@gmail.com>.
53397
53398 2008-04-04  Eric Blake  <ebb9@byu.net>
53399
53400         Make test-fseeko.c failures meaningful.
53401         * tests/test-fseeko.c: Print line number on failure.
53402         * tests/test-fseek.c: Likewise.
53403         Reported by Nelson H. F. Beebe.
53404
53405         Improve strtod bug detection check.
53406         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
53407         required for Solaris 10.
53408         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
53409
53410 2008-04-04  Bruno Haible  <bruno@clisp.org>
53411
53412         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
53413         by m4/setenv.m4.
53414
53415 2008-04-03  Eric Blake  <ebb9@byu.net>
53416
53417         Ensure sane .version contents.
53418         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
53419         version string.
53420         * build-aux/git-version-gen: Improve documentation.
53421
53422         Make GNU make output nicer.
53423         * top/GNUmakefile [!_have-Makefile]: Add dependency on
53424         MAKECMDGOALS to enforce message for all command line targets.  Set
53425         srcdir for use in maint.mk.
53426
53427         Another maintainer tweak.
53428         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
53429         a target that regenerates version.
53430
53431 2008-04-03  Jim Meyering  <meyering@redhat.com>
53432
53433         vc-list-files: don't cause coreutils "make po-check" failure
53434         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
53435
53436 2008-04-03  Eric Blake  <ebb9@byu.net>
53437
53438         Allow VPATH usage of vc-list-files.
53439         * build-aux/vc-list-files (scriptversion): Add timestamp.
53440         (options): Add --help, --version, -C.
53441         (CVS): Support installed cvsu.
53442
53443 2008-04-02  Bruno Haible  <bruno@clisp.org>
53444
53445         Avoid some "statement with no effect" warnings from gcc.
53446         * tests/test-wctype.c (main): Explicitly ignore unused values.
53447         Reported by Jim Meyering.
53448
53449 2008-04-02  Jim Meyering  <meyering@redhat.com>
53450
53451         Avoid some warnings from "gcc -Wshadow".
53452         * tests/test-frexp.c (exp): Define to a different identifier.
53453         * tests/test-frexpl.c (exp): Likewise.
53454
53455 2008-04-03  Jim Meyering  <meyering@redhat.com>
53456
53457         bootstrap: remove dangling *.[ch] symlinks from lib
53458         * build-aux/bootstrap [dangling symlink removal]: Move find's
53459         -depth option to precede all others, to avoid a warning.
53460         Remove *.[ch] files too, and from "$source_base" (usually lib/).
53461
53462 2008-04-02  Bruno Haible  <bruno@clisp.org>
53463
53464         Avoid some warnings from "gcc -Wshadow".
53465         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
53466         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
53467         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
53468         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
53469         Reported by Jim Meyering.
53470
53471 2008-04-01  Bruno Haible  <bruno@clisp.org>
53472
53473         Fix test to work on IRIX 6.5 with cc.
53474         * tests/test-math.c (numeric_equal): New function.
53475         (main): Use it.
53476
53477 2008-04-01  Bruno Haible  <bruno@clisp.org>
53478
53479         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
53480
53481 2008-04-01  Bruno Haible  <bruno@clisp.org>
53482
53483         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
53484         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53485         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
53486         (Depends-on): Remove math.
53487
53488         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
53489         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53490         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
53491         (Depends-on): Remove math.
53492
53493         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
53494         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53495         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
53496         (Depends-on): Remove math.
53497         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
53498         (Depends-on): Remove math.
53499
53500         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
53501         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53502         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
53503         (Depends-on): Remove math.
53504         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
53505         (Depends-on): Remove math.
53506
53507         * tests/test-round1.c: Include nan.h.
53508         (main): Use NaNd instead of NAN.
53509         * modules/round-tests (Files): Add tests/nan.h.
53510
53511         * tests/test-trunc1.c: Include nan.h.
53512         (main): Use NaNd instead of NAN.
53513         * modules/trunc-tests (Files): Add tests/nan.h.
53514
53515         * tests/test-roundf1.c: Include nan.h.
53516         (main): Use NaNf instead of NAN.
53517         * modules/roundf-tests (Files): Add tests/nan.h.
53518
53519         * tests/test-truncf1.c: Include nan.h.
53520         (main): Use NaNf instead of NAN.
53521         * modules/truncf-tests (Files): Add tests/nan.h.
53522
53523         * tests/test-ceilf1.c: Include nan.h.
53524         (main): Use NaNf instead of NAN.
53525         * modules/ceilf-tests (Files): Add tests/nan.h.
53526
53527         * tests/test-floorf1.c: Include nan.h.
53528         (main): Use NaNf instead of NAN.
53529         * modules/floorf-tests (Files): Add tests/nan.h.
53530
53531         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
53532         (main): Use NaNf instead of NAN.
53533         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
53534
53535         * tests/test-isnand.c: Include nan.h instead of <math.h>.
53536         (main): Use NaNd instead of NAN.
53537         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
53538
53539         * tests/test-frexp.c: Include nan.h.
53540         (main): Use NaNd instead of NAN.
53541         * modules/frexp-tests (Files): Add tests/nan.h.
53542
53543         * lib/isnan.c: Don't include <math.h>.
53544         (FUNC): Don't use NAN macro.
53545         * modules/isnand-nolibm (Depends-on): Remove math.
53546         * modules/isnanf-nolibm (Depends-on): Remove math.
53547         * modules/isnanl (Depends-on): Remove math.
53548         * modules/isnanl-nolibm (Depends-on): Remove math.
53549
53550         * tests/nan.h: New file.
53551
53552 2008-04-01  Eric Blake  <ebb9@byu.net>
53553
53554         Fix typos.
53555         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
53556         values to be the right type.
53557
53558         For now, cater to gnulib strtod inaccuracies.
53559         * tests/test-strtod.c (main): Allow 1-ulp error on expected
53560         fractional results.  While not as nice from a QoI perspective, it
53561         is a quicker patch than correctly implementing decimal to binary
53562         rounding.
53563
53564 2008-03-31  Eric Blake  <ebb9@byu.net>
53565
53566         Guarantee a definition of NAN.
53567         * lib/math.in.h (NAN): Define if missing.
53568         * tests/test-math.c (main): Test it.
53569         * doc/posix-headers/math.texi (math.h): Document this.
53570         * lib/isnan.c (rpl_isnand): Use it.
53571         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
53572         * tests/test-floorf1.c (NaN): Likewise.
53573         * tests/test-frexp.c (NaN): Likewise.
53574         * tests/test-isnand.c (NaN): Likewise.
53575         * tests/test-isnanf.c (NaN): Likewise.
53576         * tests/test-round1.c (NaN): Likewise.
53577         * tests/test-roundf1.c (NaN): Likewise.
53578         * tests/test-snprintf-posix.h (NaN): Likewise.
53579         * tests/test-sprintf-posix.h (NaN): Likewise.
53580         * tests/test-trunc1.c (NaN): Likewise.
53581         * tests/test-truncf1.c (NaN): Likewise.
53582         * tests/test-vasnprintf-posix.c (NaN): Likewise.
53583         * tests/test-vasprintf-posix.c (NaN): Likewise.
53584         * modules/isnand-nolibm (Depends-on): Add math.
53585         * modules/isnanf-nolibm (Depends-on): Likewise.
53586         * modules/isnanl (Depends-on): Likewise.
53587         * modules/isnanl-nolibm (Depends-on): Likewise.
53588         * modules/snprintf-posix-tests (Depends-on): Likewise.
53589         * modules/sprintf-posix-tests (Depends-on): Likewise.
53590         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
53591         * modules/vsprintf-posix-tests (Depends-on): Likewise.
53592         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
53593         * modules/vasprintf-posix-tests (Depends-on): Likewise.
53594
53595 2008-03-31  Bruno Haible  <bruno@clisp.org>
53596
53597         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
53598         * doc/posix-functions/strtod.texi: Likewise.
53599
53600 2008-03-31  Bruno Haible  <bruno@clisp.org>
53601
53602         * tests/test-strtod.c (main): Don't use C99 syntax.
53603
53604 2008-03-31  Bruno Haible  <bruno@clisp.org>
53605
53606         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
53607         Reported by Eric Blake.
53608
53609 2008-03-31  Jim Meyering  <meyering@redhat.com>
53610
53611         Don't compare actual signbit return values.
53612         * tests/test-strtod.c (main): Rather, compare only their
53613         zero/non-zero nature.
53614
53615 2008-03-31  Eric Blake  <ebb9@byu.net>
53616
53617         More strtod documentation.
53618         * doc/posix-functions/strtod.texi (strtod): Interpret more test
53619         failures as distinct bugs.
53620
53621 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53622
53623         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
53624         Problem reported by Erik Benada in
53625         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
53626
53627 2008-03-30  Bruno Haible  <bruno@clisp.org>
53628
53629         * tests/test-strtod.c: Add comments about which assertion fails on which
53630         platform.
53631         * doc/posix-functions/strtod.texi: Add info about many more platforms.
53632
53633 2008-03-30  Eric Blake  <ebb9@byu.net>
53634
53635         Test signbit behavior on zeros.
53636         * tests/test-signbit.c (test_signbitf): Add tests for zero.
53637         (test_signbitd, test_signbitl): Likewise.
53638
53639         More strtod touchups.
53640         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
53641         sign of negative underflow, for now.  Use .5, not .1.
53642         * doc/posix-functions/strtod.texi (strtod): Mention these
53643         limitations.
53644         Reported by Jim Meyering.
53645
53646 2008-03-30  Bruno Haible  <bruno@clisp.org>
53647
53648         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
53649         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
53650
53651 2008-03-30  Bruno Haible  <bruno@clisp.org>
53652
53653         Avoid failure when attempting to return empty iconv results on some
53654         platforms.
53655         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
53656         allocation, don't report ENOMEM when the resulting string is empty.
53657
53658 2008-03-30  Bruno Haible  <bruno@clisp.org>
53659
53660         Fix buffer overrun.
53661         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
53662         Don't consider the width for tmp_length. Check count against tmp_length
53663         before doing the padding. Ensure enough allocation during padding.
53664
53665 2008-03-30  Eric Blake  <ebb9@byu.net>
53666
53667         strtod touchups.
53668         * lib/strtod.c (strtod): Avoid compiler warnings.
53669         Reported by Jim Meyering.
53670
53671 2008-03-30  Bruno Haible  <bruno@clisp.org>
53672
53673         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
53674         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
53675         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
53676         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
53677         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
53678         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
53679         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
53680         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
53681
53682         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
53683         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
53684         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
53685         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
53686         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
53687         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
53688         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
53689         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
53690
53691         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
53692         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
53693         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
53694         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
53695         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
53696         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
53697         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
53698         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
53699
53700         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
53701         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
53702
53703         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
53704         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
53705
53706         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
53707         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
53708
53709         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
53710         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
53711         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
53712
53713         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
53714         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
53715         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
53716
53717         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
53718         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
53719         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
53720
53721         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
53722         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
53723         * modules/vasprintf (Depends-on): Add EOVERFLOW.
53724
53725         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
53726         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
53727         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
53728         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
53729         (Depends-on): Add EOVERFLOW.
53730         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
53731         (Depends-on): Add EOVERFLOW.
53732         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53733         (Depends-on): Add EOVERFLOW.
53734         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53735         (Depends-on): Add EOVERFLOW.
53736         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53737         (Depends-on): Add EOVERFLOW.
53738         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53739         (Depends-on): Add EOVERFLOW.
53740         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53741         (Depends-on): Add EOVERFLOW.
53742         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53743         (Depends-on): Add EOVERFLOW.
53744
53745         * lib/sprintf.c (EOVERFLOW): Remove fallback.
53746         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
53747         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
53748
53749         * lib/snprintf.c (EOVERFLOW): Remove fallback.
53750         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
53751         * modules/snprintf (Depends-on): Add EOVERFLOW.
53752
53753         * lib/poll.c (EOVERFLOW): Remove fallback.
53754         * modules/poll (Depends-on): Add EOVERFLOW.
53755
53756         * lib/getugroups.c (EOVERFLOW): Remove fallback.
53757         * modules/getugroups (Depends-on): Add EOVERFLOW.
53758
53759         * lib/getdelim.c (EOVERFLOW): Remove fallback.
53760         * modules/getdelim (Depends-on): Add EOVERFLOW.
53761
53762         * lib/ftell.c (EOVERFLOW): Remove fallback.
53763         * modules/ftell (Depends-on): Add EOVERFLOW.
53764
53765         * lib/fprintf.c (EOVERFLOW): Remove fallback.
53766         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
53767         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
53768
53769         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
53770
53771         * modules/EOVERFLOW-tests: New file.
53772         * tests/test-EOVERFLOW.c: New file.
53773
53774         * modules/EOVERFLOW: New file.
53775         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
53776
53777 2008-03-30  Bruno Haible  <bruno@clisp.org>
53778
53779         Fix bug introduced on 2007-06-10.
53780         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
53781         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
53782
53783 2008-03-30  Bruno Haible  <bruno@clisp.org>
53784
53785         Improve freadseek's efficiency after ungetc.
53786         * lib/freadseek.c: Include freadahead.h.
53787         (freadptrinc): New function, extracted from freadseek.
53788         (freadseek): Use it in a loop. Use freadahead to determine the number
53789         of loop iterations.
53790         * modules/freadseek (Depends-on): Add freadahead.
53791         (configure.ac): Require AC_C_INLINE.
53792
53793 2008-03-30  Bruno Haible  <bruno@clisp.org>
53794
53795         * lib/freadseek.c (freadseek): Don't ignore the return value of
53796         freadptr.
53797
53798 2008-03-29  Eric Blake  <ebb9@byu.net>
53799
53800         Add hex float support.
53801         * modules/strtod (Depends-on): Add c-ctype.
53802         (Link): Mention POW_LIB.
53803         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
53804         whitespace between 'e' and exponent.
53805         * tests/test-strtod.c (main): Enable hex float tests.
53806         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
53807         now provides.
53808
53809         Document various strtod bugs, with some fixes.
53810         * doc/posix-functions/strtod.texi (strtod): Document bugs with
53811         "-0x", "inf", "nan", and hex constants.
53812         * doc/posix-functions/atof.texi (atof): Likewise.
53813         * modules/stdlib (Makefile.am): Support strtod.
53814         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
53815         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
53816         detect additional strtod bugs.
53817         * lib/stdlib.in.h (rpl_strtod): Add declarations.
53818         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
53819         bool where appropriate.  Parse 'inf' and 'nan'.
53820         * tests/test-strtod.c: New file.
53821         * modules/strtod (Depends-on): Add stdbool, stdlib.
53822         (configure.ac): Turn on module indicator.
53823         * modules/strtod-tests: New module.
53824
53825 2008-03-29  Eric Blake  <ebb9@byu.net>
53826
53827         Fix ftell on mingw.
53828         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
53829         * modules/ftell-tests (Depends-on): Add binary-io.
53830         * modules/ftello-tests (Depends-on): Likewise.
53831         * tests/test-ftell.c (main): Enhance test to cover behavior after
53832         ungetc.  Enforce binary mode.
53833         * tests/test-ftello.c (main): Likewise.
53834
53835         Pass test-freadseek on cygwin.
53836         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
53837         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
53838         ungetc buffer.
53839
53840         * tests/test-fflush2.c (main): Fix typo.
53841
53842 2008-03-29  Bruno Haible  <bruno@clisp.org>
53843
53844         * tests/test-fflush2.c (main): Temporarily disable the contents of
53845         this test.
53846         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
53847         Reported by Eric Blake.
53848
53849 2008-03-28  Simon Josefsson  <simon@josefsson.org>
53850
53851         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
53852         (GC_SHA224_DIGEST_SIZE): Add.
53853
53854         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
53855         (gc_hash_digest_length): Likewise.
53856         (gc_hash_buffer): Likewise.
53857
53858 2008-03-25  Bruno Haible  <bruno@clisp.org>
53859
53860         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
53861         detail which gettext release to use.
53862         Reported by Simon Josefsson.
53863
53864 2008-03-26  Jim Meyering  <meyering@redhat.com>
53865
53866         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
53867         * modules/gnumakefile (clean-GNUmakefile): Also, use
53868         test ... && ... || : syntax rather than if-then ... fi.
53869
53870         gnumakefile: Don't double-quote-expand $(VPATH) value.
53871         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
53872
53873 2008-03-24  Eric Blake  <ebb9@byu.net>
53874
53875         Alter GNUmakefile to install into top directory.
53876         * modules/maintainer-makefile: Split, and add dependency...
53877         * modules/gnumakefile: to this new module.
53878         * build-aux/GNUmakefile: Move...
53879         * top/GNUmakefile: ...here.
53880         * build-aux/maint.mk: Move...
53881         * top/maint.mk: ...here.
53882         * MODULES.html.sh (Support for maintaining...): Document new
53883         module.
53884
53885 2008-03-23  Bruno Haible  <bruno@clisp.org>
53886
53887         * gnulib-tool: New options --vc-files, --no-vc-files.
53888         (func_usage): Document them.
53889         (vc_files): New variable.
53890         (func_import): Consider vc_files.
53891         (func_create_testdir): Set vc_files to empty.
53892         Suggested by Jim Meyering and Karl Berry.
53893
53894 2008-03-23  Bruno Haible  <bruno@clisp.org>
53895
53896         Fix regex compilation error on HP-UX 11.
53897         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
53898         * modules/regex (Files): Add m4/mbstate_t.m4.
53899         Reported by Ton Voon <ton.voon@altinity.com>.
53900
53901 2008-03-23  Bruno Haible  <bruno@clisp.org>
53902
53903         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
53904
53905 2008-03-23  Eric Blake  <ebb9@byu.net>
53906             Bruno Haible  <bruno@clisp.org>
53907
53908         Install files from top/ in the destination directory.
53909         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53910         augmentation also for the files from top/.
53911         (func_import, func_create_testdir): Rewrite file names:
53912         top/filename -> filename.
53913
53914 2008-03-23  Bruno Haible  <bruno@clisp.org>
53915
53916         Tweak "gnulib --version" output.
53917         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
53918
53919 2008-03-23  Bruno Haible  <bruno@clisp.org>
53920
53921         Tweak "gnulib --version" output.
53922         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
53923         rather than contents of ChangeLog, when possible.
53924
53925 2008-03-21  Eric Blake  <ebb9@byu.net>
53926
53927         More --version tweaks.
53928         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
53929         date of last ChangeLog entry.
53930
53931 2008-03-21  Jim Meyering  <meyering@redhat.com>
53932
53933         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
53934
53935 2008-03-20  Eric Blake  <ebb9@byu.net>
53936
53937         VPATH fix.
53938         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
53939
53940 2008-03-20  Simon Josefsson  <simon@josefsson.org>
53941
53942         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
53943         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
53944
53945 2008-03-20  Eric Blake  <ebb9@byu.net>
53946
53947         Sync GNUmakefile with coreutils.
53948         * build-aux/GNUmakefile (have-Makefile): Rename...
53949         (_have-Makefile): ...to this, for namespace consideration.
53950         (GNUmakefile.cfg): Include, if present.
53951         (_autoreconf): Define a default.
53952         (_is-dist-target): New rule for rebuilds to pick up intra-release
53953         version.
53954         (maint-cfg.mk): Rename...
53955         (cfg.mk): ...to this.
53956
53957 2008-03-18  Jim Meyering  <meyering@redhat.com>
53958
53959         New script and module: mktempd
53960         * MODULES.html.sh (maint+release support): Add mktempd.
53961         * build-aux/mktempd: New file.
53962         * modules/mktempd: New file.
53963
53964 2008-03-15  Jim Meyering  <meyering@redhat.com>
53965
53966         Undo last change.
53967         * lib/sha1.c, lib/md5.c: 63 != ~63.
53968         Reported by Andreas Schwab.
53969
53970         sha1.c, md5.c: Hoist a redundant expression.
53971         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
53972         "ctx->buflen" only once, before calling *_process_block.
53973         * lib/md5.c (md5_process_bytes): Likewise.
53974
53975 2008-03-14  Eric Blake  <ebb9@byu.net>
53976
53977         Bump copyright year in files generated by gnulib-tool.
53978         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
53979         gnulib-tool, rather than hard-coding it.
53980
53981         Fix 'gnulib-tool --version' output to work with git.
53982         * gnulib-tool (func_gnulib_dir): New function, extracted from...
53983         (startup): ...here.
53984         (func_version): Use it to invoke git-version-gen, rather than
53985         relying on CVS keyword expansion.  Modernize wording.
53986         (cvsdatestamp, last_checkin_date, version): Kill unused
53987         variables.
53988
53989 2008-03-12  Jim Meyering  <meyering@redhat.com>
53990
53991         Recognize optional cast of the argument to free.
53992         * build-aux/useless-if-before-free: Update regexps.
53993
53994         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
53995
53996 2008-03-11  Bruno Haible  <bruno@clisp.org>
53997
53998         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
53999         by a single package.
54000         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
54001         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
54002         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
54003         Reported by Sam Steingold <sds@gnu.org>.
54004
54005 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54006
54007         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
54008         repositories.
54009
54010 2008-03-11  Bruno Haible  <bruno@clisp.org>
54011
54012         Avoid conflicts between local macro definitions.
54013         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54014         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
54015
54016 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
54017             Bruno Haible  <bruno@clisp.org>
54018
54019         Make va_copy work with some version of xlc on AIX 5.1.
54020         * lib/stdarg.in.h: New file.
54021         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
54022         On AIX, use a <stdarg.h> file substitute.
54023         * modules/stdarg (Files): Add lib/stdarg.in.h.
54024         (Depends-on): Add include_next.
54025         (Makefile.am): Build a stdarg.h substitute if requested.
54026         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
54027
54028 2008-03-10  Bruno Haible  <bruno@clisp.org>
54029
54030         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
54031         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54032         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54033
54034 2008-03-10  Bruno Haible  <bruno@clisp.org>
54035
54036         * modules/stdlib (Depends-on): Add include_next, remove
54037         absolute-header.
54038
54039 2008-03-09  Bruno Haible  <bruno@clisp.org>
54040
54041         * lib/freadahead.h (freadahead): Document more precisely.
54042         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
54043         the sum of both buffer sizes.
54044         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
54045         * NEWS: Document the change.
54046
54047 2008-03-09  Bruno Haible  <bruno@clisp.org>
54048
54049         Extend freadptr to return also the buffer size.
54050         * lib/freadptr.h (freadptr): Add sizep argument.
54051         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
54052         (freadptr): Add sizep argument. Determine buffer size like freadahead
54053         does.
54054         * tests/test-freadptr.c: Don't include freadahead.h.
54055         (main): Adapt for new calling convention of freadptr.
54056         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
54057         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
54058         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
54059         tests/test-freadptr2.sh.
54060         (Depends): Remove freadahead.
54061         (TESTS): Add test-freadptr2.sh.
54062         (check_PROGRAMS): Add test-freadptr2.
54063
54064 2008-03-09  Bruno Haible  <bruno@clisp.org>
54065
54066         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
54067         Report and solution by Simon Josefsson.
54068
54069 2008-03-06  Bruno Haible  <bruno@clisp.org>
54070
54071         Make fflush after ungetc work on BSD platforms.
54072         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
54073         * tests/test-fflush2.c: New file.
54074         * tests/test-fflush2.sh: New file.
54075         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
54076         tests/test-fflush2.c.
54077         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
54078         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
54079
54080 2008-03-06  Eric Blake  <ebb9@byu.net>
54081
54082         Likewise for ftello.
54083         * modules/ftello (Dependencies): Add extensions.
54084         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
54085
54086 2008-03-06  Bruno Haible  <bruno@clisp.org>
54087
54088         * modules/fseeko (Dependencies): Add extensions.
54089         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
54090         Needed on glibc systems.
54091
54092 2008-03-06  Bruno Haible  <bruno@clisp.org>
54093
54094         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
54095         email address.
54096         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54097
54098 2008-03-06  Bruno Haible  <bruno@clisp.org>
54099
54100         * users.txt: Add libgnupdf.
54101
54102 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54103
54104         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
54105         (Header File Substitutes, Function Substitutes,
54106         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
54107         (Build robot for gnulib): Fix typo.
54108
54109 2008-03-06  Bruno Haible  <bruno@clisp.org>
54110
54111         * doc/gnulib-tool.texi (VCS Issues): Small updates.
54112         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54113
54114 2008-03-06  Bruno Haible  <bruno@clisp.org>
54115
54116         * doc/func.texi: New file, extracted from doc/gnulib.texi.
54117         * doc/gnulib.texi: Include it.
54118
54119 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54120
54121         * modules/func (License): Change license to unlimited; there was
54122         no LGPL parts in the module anyway.
54123
54124 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54125
54126         * modules/__func__: Renamed to modules/func.
54127         * modules/__func__-tests: Renamed to modules/func-tests.
54128         * tests/test-__func__.c: Renamed to tests/test-func.c.
54129         * m4/__func__.m4: Renamed to m4/func.m4.
54130         * doc/gnulib.texi (__func__): Section renamed to func.
54131         Suggested by Eric Blake <ebb9@byu.net>.
54132
54133 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54134
54135         * doc/gnulib.texi (__func__): Use C99 terminology when talking
54136         about __func__.  Make example self-contained.  Suggested by Eric
54137         Blake <ebb9@byu.net>.
54138
54139         * tests/test-__func__.c (main): Avoid extraneous () around __func.
54140         Suggested by Eric Blake <ebb9@byu.net>.
54141
54142 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54143
54144         * modules/__func__: New file.
54145         * modules/__func__-tests: New file.
54146         * tests/test-__func__.c: New file.
54147         * m4/__func__.m4: New file.
54148         * doc/gnulib.texi (__func__): Document __func__ module.
54149
54150 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54151
54152         * modules/byteswap (License): Re-license as LGPLv2+.
54153
54154 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54155
54156         * doc/Makefile: Add pdf target.
54157
54158 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54159
54160         * modules/inline (License): Use 'unlimited', since there are only
54161         *.m4 files in this module.
54162
54163 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54164             Bruno Haible  <bruno@clisp.org>
54165
54166         Add support for HP C 7.1 on OpenVMS 8.3.
54167         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
54168
54169 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54170
54171         Update VMS specifics.
54172         * lib/getopt.c [VMS]: Remove include of unixlib.h.
54173
54174 2008-03-02  Jim Meyering  <meyering@redhat.com>
54175
54176         Remove the last dependency on the "free" module.
54177         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
54178         Reported by Bob Proulx.
54179
54180         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
54181
54182         Remove useless "if" tests before free.  Deprecate "free" module.
54183         * doc/posix-functions/free.texi: Mention that this
54184         module is no longer useful.
54185         * modules/free (Notice): Say this module is obsolete.
54186         * modules/readutmp (Depends-on): Remove free.
54187         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
54188         * lib/putenv.c (putenv): Likewise.
54189         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
54190         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
54191         * tests/test-c-strcasestr.c (main): Likewise.
54192         * tests/test-c-strstr.c (main): Likewise.
54193         * tests/test-mbscasestr1.c (main): Likewise.
54194         * tests/test-mbscasestr2.c (main): Likewise.
54195         * tests/test-mbsstr1.c (main): Likewise.
54196         * tests/test-mbsstr2.c (main): Likewise.
54197         * tests/test-memmem.c (main): Likewise.
54198         * tests/test-strcasestr.c (main): Likewise.
54199         * tests/test-striconv.c (main): Likewise.
54200         * tests/test-striconveh.c (main): Likewise.
54201         * tests/test-striconveha.c (main): Likewise.
54202         * tests/test-strstr.c (main): Likewise.
54203
54204         * build-aux/git-version-gen: Adjust a comment and the Usage string.
54205
54206         bootstrap: sync from coreutils again
54207         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
54208
54209 2008-03-01  Jim Meyering  <meyering@redhat.com>
54210
54211         bootstrap: sync from coreutils
54212         * build-aux/bootstrap (update_po_files): Copy a .po file into place
54213         also when the target doesn't exist.
54214
54215 2008-03-01  Eric Blake  <ebb9@byu.net>
54216
54217         Fix bugs in last patch.
54218         * lib/memchr2.c (memchr2): Fix typo.
54219         * tests/test-memchr2.c: Test previous bug, and don't use GNU
54220         extension.
54221         Reported by Bruce Korb.
54222
54223         New module 'memchr2'.
54224         * modules/memchr2: New file.
54225         * modules/memchr2-tests: Likewise.
54226         * lib/memchr2.h: Likewise.
54227         * lib/memchr2.c: Likewise, based on memchr.c.
54228         * tests/test-memchr2.c: New test.
54229         * MODULES.html.sh (String handling): Add memchr2.
54230
54231 2008-02-29  Bruno Haible  <bruno@clisp.org>
54232
54233         * modules/freadseek-tests: New file.
54234         * tests/test-freadseek.sh: New file.
54235         * tests/test-freadseek.c: New file.
54236
54237         New module 'freadseek'.
54238         * modules/freadseek: New file.
54239         * lib/freadseek.h: New file.
54240         * lib/freadseek.c: New file.
54241         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
54242
54243 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54244
54245         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
54246         wydawca.
54247
54248         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
54249         program_invocation_name and program_invocation_short_name are
54250         present.
54251
54252 2008-02-28  Bruno Haible  <bruno@clisp.org>
54253
54254         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
54255         * tests/test-freadptr.sh: Also test non-seekable stdin.
54256
54257 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
54258
54259         * build-aux/bootstrap (source_base, m4_base)
54260         (doc_base, tests_base): New variables.
54261         (gnulib_tool_options): Do not hardcode base directories, use
54262         the above variables instead.
54263
54264 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
54265
54266         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
54267
54268 2008-02-28  Bruno Haible  <bruno@clisp.org>
54269
54270         * modules/freadptr-tests: New file.
54271         * tests/test-freadptr.sh: New file.
54272         * tests/test-freadptr.c: New file.
54273
54274         New module 'freadptr'.
54275         * modules/freadptr: New file.
54276         * lib/freadptr.h: New file.
54277         * lib/freadptr.c: New file.
54278         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
54279
54280 2008-02-26  Karl Berry  <karl@freefriends.org>
54281
54282         Sync from Libtool:
54283         * libltdl/argz.c (argz_add, argz_count): New functions.
54284         * libltdl/argz.in.h: Declare them.
54285         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
54286
54287 2008-02-22  Bruno Haible  <bruno@clisp.org>
54288
54289         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
54290         is a pointer type.  Needed for HP-UX 10.
54291         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
54292         * doc/posix-functions/gmtime_r.texi: Likewise.
54293         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54294
54295 2008-02-24  Bruno Haible  <bruno@clisp.org>
54296
54297         * modules/environ-tests: New file.
54298         * tests/test-environ.c: New file.
54299
54300         New module 'environ'.
54301         * modules/environ: New file.
54302         * lib/unistd.in.h (environ): New declaration.
54303         * m4/environ.m4: New file.
54304         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
54305         after use.
54306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
54307         HAVE_DECL_ENVIRON.
54308         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
54309         HAVE_DECL_ENVIRON.
54310         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
54311         wrong claim that 'environ' is missing on some systems.
54312         * modules/execute (Depends-on): Add environ.
54313         * lib/execute.c (environ): Remove fallback declaration.
54314         * modules/pipe (Depends-on): Add environ.
54315         * lib/pipe.c (environ): Remove fallback declaration.
54316         * modules/setenv (Depends-on): Add environ.
54317         * lib/setenv.c (environ): Remove fallback declaration.
54318         * modules/unsetenv (Depends-on): Add environ.
54319         * lib/unsetenv.c (environ): Remove fallback declaration.
54320         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
54321         m4/environ.m4.
54322         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
54323         (gl_PREREQ_UNSETENV): Likewise.
54324
54325 2008-02-24  Bruno Haible  <bruno@clisp.org>
54326
54327         * doc/posix-functions/environ.texi: Document the MacOS X problem.
54328
54329 2008-02-20  Bob Proulx  <bob@proulx.com>
54330
54331         Enable use of older two part flavor 'git describe'.
54332         * build-aux/git-version-gen: If using the older two part flavor of
54333         git version then recreate the third part now present in the
54334         newer three part flavor of git describe.
54335
54336 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
54337
54338         * lib/fts.c (fts_build): Typo correction to comment.
54339
54340 2008-02-17  Bruno Haible  <bruno@clisp.org>
54341
54342         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
54343         generating no-op conflicts.
54344
54345 2008-02-17  Bruno Haible  <bruno@clisp.org>
54346
54347         Speed up by 10%.
54348         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
54349         result_entries, rather than an index-based loop.
54350
54351 2008-02-17  Bruno Haible  <bruno@clisp.org>
54352
54353         Speed up by 25%.
54354         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
54355         'hashcode_cached'.
54356         (entry_create): New function.
54357         (entry_hashcode): Use the cached hashcode if possible.
54358         (read_changelog_file, try_split_merged_entry): Use entry_create.
54359
54360 2008-02-17  Bruno Haible  <bruno@clisp.org>
54361
54362         Speed up from O(n^2) to O(n) for long ChangeLog files.
54363         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
54364         (read_changelog_file): Change implementation of entries_reversed list
54365         to rbtreehash.
54366         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
54367
54368 2008-02-17  Bruno Haible  <bruno@clisp.org>
54369
54370         New option --split-merged-entry.
54371         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
54372         (find_paragraph_end, try_split_merged_entry): New functions.
54373         (long_options): Add option --split-merged-entry.
54374         (usage): Document option --split-merged-entry.
54375         (main): Implement option --split-merged-entry.
54376         Reported by Eric Blake.
54377
54378 2008-02-17  Bruno Haible  <bruno@clisp.org>
54379
54380         * lib/git-merge-changelog.c: Include c-strstr.h.
54381         (main): Support the "git pull --rebase" situation.
54382         * modules/git-merge-changelog (Depends-on): Add c-strstr.
54383         Reported by Eric Blake.
54384
54385 2008-02-16  Eric Blake  <ebb9@byu.net>
54386
54387         Avoid doubling \ in common case of "c-maybe" quoting style.
54388         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
54389         eliding outer quotes.
54390         * lib/quotearg.h: Document this.
54391         * tests/test-quotearg.c (result_strings, inputs, results_g)
54392         (flag_results, locale_results): Test it by adding a new string to
54393         each test group.
54394         (compare_strings): Test new string.
54395
54396 2008-02-13  Eric Blake  <ebb9@byu.net>
54397
54398         Avoid trigraph quoting in default output.
54399         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
54400         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
54401         unless explicitly requested.
54402         * tests/test-quotearg.c (flag_results, main): Add additional tests.
54403
54404 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
54405
54406         Don't rely on signed integer overflowing to negative value.
54407         * lib/getugroups.c (getugroups): Include <limits.h>.
54408         Instead, compare against INT_MAX, and increment only if the test passes.
54409
54410 2008-02-13  Jim Meyering  <meyering@redhat.com>
54411         and Eric Blake  <ebb9@byu.net>
54412
54413         Avoid shadowing warning and compile errors on Linux.
54414         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
54415         forwarding macros on Linux.
54416         (dcgettext): Define a stub, for Linux.
54417         (results_g, main): Avoid warnings.
54418
54419 2008-02-12  Eric Blake  <ebb9@byu.net>
54420
54421         Silence warning in last patch.
54422         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
54423
54424         Quotearg part 4: add tests, fix c-maybe colon quoting.
54425         * lib/quotearg.h: Improve documentation.
54426         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
54427         escapes when adding outer quotes.  When quoting trigraphs, use
54428         valid C notation.  When quoting NUL, omit extra characters if next
54429         character is not digit.  Alter prototype.
54430         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
54431         callers.
54432         * modules/quotearg-tests: New module.
54433         * tests/test-quotearg.c: New test.
54434
54435 2008-02-07  Eric Blake  <ebb9@byu.net>
54436
54437         Quotearg part 3: add flag to control outer quote elision.
54438         * lib/quotearg.h (c_maybe_quoting_style): New style.
54439         (enum quoting_flags): Better documentation of flags.
54440         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
54441         c-maybe style.
54442         (quotearg_buffer_restyled): Handle new flag to elide outer
54443         quotes.
54444
54445         Quotearg part 2: add flag that can control NUL elision.
54446         * lib/quotearg.h (set_quoting_flags): New prototype.
54447         * lib/quotearg.c (struct quoting_options): Add flag field.
54448         (set_quoting_flags): New function.
54449         (quotearg_buffer_restyled): Add flags parameter.
54450         (quotearg_alloc_mem): Set the flag if length cannot be returned.
54451         (quotearg_n_options): Set the flag, since length cannot be
54452         returned.
54453         (quoting_options_from_style): Default flags correctly.
54454
54455         Quotearg part 1: more wrappers, restore quotearg_char state.
54456         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
54457         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
54458         (quotearg_colon_mem): New wrappers.
54459         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
54460         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
54461         functions.
54462         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
54463         (quotearg_colon_mem): New functions.
54464
54465 2008-02-11  Bruno Haible  <bruno@clisp.org>
54466
54467         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
54468         library in the current directory: it does not work with parallel make.
54469         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54470
54471 2008-02-11  Bruno Haible  <bruno@clisp.org>
54472
54473         * .gitattributes: New file.
54474
54475 2008-02-11  Jim Meyering  <meyering@redhat.com>
54476
54477         useless-if-before-free: Fix reversed exit values.
54478         * build-aux/useless-if-before-free: Use correct values
54479         for EXIT_MATCH and EXIT_NO_MATCH.
54480
54481         * build-aux/useless-if-before-free: Close stdout carefully.
54482
54483 2008-02-10  Bruno Haible  <bruno@clisp.org>
54484
54485         New module 'git-merge-changelog'.
54486         * modules/git-merge-changelog: New file.
54487         * lib/git-merge-changelog.c: New file.
54488
54489 2008-02-10  Jim Meyering  <meyering@redhat.com>
54490
54491         useless-if-before-free: New option: --list (-l).
54492
54493         useless-if-before-free: Don't exit immediately upon open failure.
54494         * build-aux/useless-if-before-free: Exit 2 for errors.
54495         Upon failure to open a file, don't exit immediately.
54496         Rather, just warn and continue with any remaining files.
54497
54498 2008-02-10  Bruno Haible  <bruno@clisp.org>
54499
54500         New abstract list operation 'node_set_value'.
54501         * lib/gl_list.h (gl_list_node_set_value): New function.
54502         (struct gl_list_implementation): New field node_set_value.
54503         * lib/gl_list.c (gl_list_node_set_value): New function.
54504         * lib/gl_array_list.c (gl_array_node_set_value): New function.
54505         (gl_array_list_implementation): Update.
54506         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
54507         (gl_carray_list_implementation): Update.
54508         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
54509         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54510         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54511         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
54512         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54513         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54514         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54515         Update.
54516         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54517         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
54518         (gl_sublist_list_implementation): Update.
54519
54520 2008-02-10  Bruno Haible  <bruno@clisp.org>
54521
54522         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
54523         Needed when ELEMENT is #defined to 'some_type *'.
54524
54525 2008-02-10  Jim Meyering  <meyering@redhat.com>
54526
54527         New script and module: useless-if-before-free
54528         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
54529         * build-aux/useless-if-before-free: New file.
54530         * modules/useless-if-before-free: New file.
54531
54532         * build-aux/gitlog-to-changelog: Use committer date, not author date.
54533
54534         xstrtol_error: Fix typo.
54535         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
54536         s/exit_failure/exit_status/.
54537
54538 2008-02-09  Jim Meyering  <meyering@redhat.com>
54539
54540         New script and module: gitlog-to-changelog
54541         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
54542         * modules/gitlog-to-changelog: New file.
54543         * build-aux/gitlog-to-changelog: New file.
54544
54545 2008-02-08  Jim Meyering  <meyering@redhat.com>
54546
54547         Avoid two "parameter unused" warnings.
54548         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
54549         Mark "st" as used.
54550
54551         Use "git COMMAND", not "git-COMMAND".
54552         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
54553         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
54554         * build-aux/git-version-gen: Use "git status", not "git-status".
54555
54556 2008-02-07  Bruno Haible  <bruno@clisp.org>
54557
54558         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
54559         Avoids a crash on Windows Vista.
54560         Reported by Adam Strzelecki <ono@java.pl> via
54561         Simon Josefsson <simon@josefsson.org>.
54562
54563 2008-02-06  Bruno Haible  <bruno@clisp.org>
54564
54565         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
54566         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
54567         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
54568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
54569         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54570         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54571         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
54572         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
54573         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54574         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54575         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54576         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54577         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54578         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54579         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54580         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
54581         left-adjust flag.
54582         * tests/test-snprintf-posix.h (test_function): Likewise.
54583         * tests/test-sprintf-posix.h (test_function): Likewise.
54584         * tests/test-vasprintf-posix.c (test_function): Likewise.
54585         * doc/posix-functions/fprintf.texi: Update.
54586         * doc/posix-functions/printf.texi: Update.
54587         * doc/posix-functions/snprintf.texi: Update.
54588         * doc/posix-functions/sprintf.texi: Update.
54589         * doc/posix-functions/vfprintf.texi: Update.
54590         * doc/posix-functions/vprintf.texi: Update.
54591         * doc/posix-functions/vsnprintf.texi: Update.
54592         * doc/posix-functions/vsprintf.texi: Update.
54593         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54594
54595 2008-02-06  Bruno Haible  <bruno@clisp.org>
54596
54597         Fix bug introduced on 2008-01-26.
54598         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
54599
54600 2008-02-06  Bruno Haible  <bruno@clisp.org>
54601
54602         Fix bug introduced on 2007-06-10.
54603         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
54604         !NEED_PRINTF_FLAG_ZERO.
54605
54606 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
54607
54608         getloadavg: use libperfstat on AIX5
54609         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
54610
54611 2008-02-03  Bruno Haible  <bruno@clisp.org>
54612
54613         * lib/diffseq.h: Add comments about required #includes.
54614         Reported by Michael Biggs <gnulib@doubleplum.net>.
54615
54616 2008-02-01  Bruno Haible  <bruno@clisp.org>
54617
54618         * users.txt: Add gnuit.
54619
54620 2008-01-31  Bruno Haible  <bruno@clisp.org>
54621
54622         * lib/md4.c (set_uint32): Mark as inline.
54623         * lib/md5.c (set_uint32): Likewise.
54624         * lib/sha1.c (set_uint32): Likewise.
54625         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
54626         * m4/md5.m4 (gl_MD5): Likewise.
54627         * m4/sha1.m4 (gl_SHA1): Likewise.
54628
54629 2008-01-31  Jim Meyering  <meyering@redhat.com>
54630
54631         Use "sizeof VAR", rather than a literal "4".
54632         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
54633         * lib/md4.c (md4_read_ctx): Likewise.
54634         * lib/sha1.c (sha1_read_ctx): Likewise.
54635
54636 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54637
54638         * tests/test-sha1.c: New file, based on test-md5.c.
54639
54640         * modules/crypto/sha1-tests: New file.
54641
54642 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54643
54644         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
54645
54646 2008-01-31  Jim Meyering  <meyering@redhat.com>
54647
54648         Prefer "sizeof v" over the equivalent "4".
54649         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
54650         * lib/md5.c (set_uint32): Likewise.
54651         * lib/sha1.c (set_uint32): Likewise.
54652
54653 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54654
54655         * lib/sha1.c (set_uint32): Mark function as static.
54656
54657 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54658
54659         md2: clarify comments to say that alignment is not required.
54660         * lib/md2.h: Remove warning about alignment in comment.
54661         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
54662         never been required.
54663
54664 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54665
54666         md4: adapt alignment constraint fix from sha1.
54667         * lib/md4.c (set_uint32): New function, from sha1.c
54668         (md4_read_ctx): Use it.
54669         (md4_finish_ctx): Doc fix.
54670         * lib/md4.h: Doc fix.
54671
54672 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54673
54674         md5: adapt alignment constraint fix from sha1.
54675         * lib/md5.c (set_uint32): New function, from sha1.c
54676         (md5_read_ctx): Use it.
54677         (md5_finish_ctx): Doc fix.
54678         * lib/md5.h: Doc fix.
54679
54680 2008-01-30  Peter Palfrader  <weasel@debian.org>
54681
54682         sha1: remove the result buffer alignment constraint
54683         * lib/sha1.c (set_uint32): New function.
54684         (sha1_read_ctx): Rewrite to remove the result buffer alignment
54685         constraint.
54686         (sha1_finish_ctx): Remove comment warning about alignment constraint.
54687         * lib/sha1.h: Likewise.
54688
54689 2008-01-30  Andreas Schwab  <schwab@suse.de>
54690             Bruno Haible  <bruno@clisp.org>
54691
54692         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
54693         correct definition of LDBL_MIN_EXP.
54694
54695 2008-01-30  Karl Berry  <karl@gnu.org>
54696
54697         * config/srclist-update: try to preserve x bit on updates.
54698         * config/srclistvars.sh: update for karl.
54699
54700 2008-01-29  Jim Meyering  <meyering@redhat.com>
54701
54702         vasnprintf.c: Avoid warning about unused label
54703         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
54704         "overflow" label definition and associated code with the
54705         same cpp condition that guards the sole use of that label.
54706
54707 2008-01-26  Bruno Haible  <bruno@clisp.org>
54708
54709         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
54710         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
54711         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
54712         * lib/isnanl-nolibm.h (isnanl): Likewise.
54713         Reported by Paul Eggert <eggert@cs.ucla.edu>.
54714
54715 2008-01-26  Bruno Haible  <bruno@clisp.org>
54716
54717         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
54718         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
54719
54720 2008-01-26  Bruno Haible  <bruno@clisp.org>
54721
54722         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
54723         GCC >= 4.0 built-in.
54724         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
54725
54726 2008-01-26  Bruno Haible  <bruno@clisp.org>
54727
54728         Rename isnan, applicable to 'double' only, to isnand.
54729         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
54730         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
54731         (configure.ac): Update.
54732         (Include): Replace "isnan.h" with "isnand.h".
54733         * m4/isnand.m4: Renamed from m4/isnan.m4.
54734         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
54735         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
54736         instead of isnan.c.
54737         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
54738         instead of HAVE_ISNAN_IN_LIBC.
54739         (isnand): Renamed from isnan.
54740         * lib/isnand.c: New file.
54741         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
54742         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
54743         (Makefile.am): Update.
54744         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
54745         Include isnand.h instead of isnan.h.
54746         (main): Test isnand instead of isnan.
54747         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
54748         isnan-nolibm.
54749         * modules/frexp (Depends-on): Likewise.
54750         * modules/frexp-tests (Depends-on): Likewise.
54751         * modules/frexp-nolibm (Depends-on): Likewise.
54752         * modules/frexp-nolibm-tests (Depends-on): Likewise.
54753         * modules/isfinite (Depends-on): Likewise.
54754         * modules/round-tests (Depends-on): Likewise.
54755         * modules/signbit (Depends-on): Likewise.
54756         * modules/signbit-tests (Depends-on): Likewise.
54757         * modules/snprintf-posix (Depends-on): Likewise.
54758         * modules/sprintf-posix (Depends-on): Likewise.
54759         * modules/trunc-tests (Depends-on): Likewise.
54760         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54761         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54762         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54763         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54764         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54765         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54766         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54767         * modules/vasnprintf-posix (Depends-on): Likewise.
54768         * modules/vasprintf-posix (Depends-on): Likewise.
54769         * modules/vfprintf-posix (Depends-on): Likewise.
54770         * modules/vsnprintf-posix (Depends-on): Likewise.
54771         * modules/vsprintf-posix (Depends-on): Likewise.
54772         * lib/frexp.c: Include isnand.h instead of isnan.h.
54773         (ISNAN): Set to isnand instead of isnan.
54774         * lib/isfinite.c: Include isnand.h instead of isnan.h.
54775         (gl_isfinited): Use isnand instead of isnan.
54776         * lib/signbitd.c: Include isnand.h instead of isnan.h.
54777         (gl_signbitd): Use isnand instead of isnan.
54778         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
54779         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
54780         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
54781         (main): Use isnand instead of isnan.
54782         * tests/test-round1.c: Include isnand.h.
54783         (main): Use isnand instead of isnan.
54784         * tests/test-round2.c: Include isnand.h instead of isnan.h.
54785         (ISNAN): Set to isnand instead of isnan.
54786         * tests/test-trunc1.c: Include isnand.h.
54787         (main): Use isnand instead of isnan.
54788         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
54789         (equal): Use isnand instead of isnan.
54790         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
54791         isnand-nolibm.
54792         * NEWS: Mention the change.
54793
54794 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54795             Bruno Haible  <bruno@clisp.org>
54796
54797         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
54798         the GCC builtins for signbits are present and set
54799         REPLACE_SIGNBIT_USING_GCC if so.
54800         * lib/math.in.h (signbit): Define using GCC builtins if
54801         REPLACE_SIGNBIT_USING_GCC is set.
54802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
54803         REPLACE_SIGNBIT_USING_GCC.
54804         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
54805
54806 2008-01-25  Jim Meyering  <meyering@redhat.com>
54807
54808         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
54809         * lib/poll.c: Include <config.h>, not "config.h".
54810         * tests/test-getaddrinfo.c: Likewise.
54811
54812 2008-01-25  Simon Josefsson  <simon@josefsson.org>
54813
54814         * modules/sockets-tests: New file.
54815
54816 2008-01-24  Simon Josefsson  <simon@josefsson.org>
54817
54818         * modules/sockets: New module, can be used to call WSA_Startup and
54819         WSA_Cleanup when needed.
54820
54821         * lib/sockets.h, lib/sockets.c: New files.
54822
54823         * m4/sockets.m4: New file.
54824
54825         * tests/test-sockets.c: New file.
54826
54827 2008-01-19  Bruno Haible  <bruno@clisp.org>
54828
54829         * doc/posix-headers: Renamed from doc/headers.
54830         * doc/posix-functions: Renamed from doc/functions.
54831         * doc/gnulib.texi: Update.
54832
54833 2008-01-19  Bruno Haible  <bruno@clisp.org>
54834
54835         * doc/glibc-functions/strcasestr.texi: Include contents of
54836         doc/functions/strcasestr.texi, fixing the list of platforms.
54837         * doc/functions/strcasestr.texi: Remove file.
54838
54839 2008-01-19  Bruno Haible  <bruno@clisp.org>
54840
54841         * doc/glibc-functions/memmem.texi: Include contents of
54842         doc/functions/memmem.texi.
54843         * doc/functions/memmem.texi: Remove file.
54844
54845 2008-01-18  Bruno Haible  <bruno@clisp.org>
54846
54847         * doc/glibc-functions/*.texi: New files.
54848         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
54849         to use the new files.
54850
54851 2008-01-17  Bruno Haible  <bruno@clisp.org>
54852
54853         * tests/test-gethostname.c (main): Fix printf statement.
54854
54855 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54856
54857         * modules/gethostname-tests: New file.
54858
54859         * tests/test-gethostname.c: New file.
54860
54861 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54862
54863         * lib/gethostname.c: Include string.h unconditionally, strncpy is
54864         used by the UNAME case.  Reported by Bruno Haible
54865         <bruno@clisp.org>.
54866
54867 2008-01-17  Eric Blake  <ebb9@byu.net>
54868
54869         Convert c-strcasestr to be more efficient.
54870         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
54871         (Depends-on): Add c-strcase, remove malloca, strnlen.
54872         * tests/test-c-strcasestr.c (main): Enhance test.
54873         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
54874
54875 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54876
54877         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
54878         Use it in creating po/Makevars.
54879
54880 2008-01-15  Simon Josefsson  <simon@josefsson.org>
54881
54882         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
54883         Applications that requires it should initialize libgcrypt
54884         manually.
54885
54886 2008-01-16  Simon Josefsson  <simon@josefsson.org>
54887
54888         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
54889
54890 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
54891
54892         Fix problem with getdate on mingw32 reported by Simon Josefsson
54893         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
54894         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
54895         tzname", when deciding whether to declare tzname.
54896         * lib/strftime.c (tzname): Likewise.
54897
54898 2008-01-15  Bruno Haible  <bruno@clisp.org>
54899
54900         Work around a MacOS X 10.5 bug in frexpl().
54901         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
54902         * doc/functions/frexpl.texi: Document the bug.
54903         Reported by Elias Pipping <pipping@gentoo.org>.
54904
54905 2008-01-14  Eric Blake  <ebb9@byu.net>
54906
54907         Touch up previous patch.
54908         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
54909         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
54910
54911         Convert strcasestr module to use Two-Way algorithm.
54912         * modules/strcasestr-simple: New module, based on the old
54913         strcasestr, but with Two-Way rather than KMP.
54914         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
54915         * lib/string.in.h (rpl_strcasestr): Declare.
54916         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
54917         performance.
54918         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
54919         * modules/string (Makefile.am): Support strcasestr.
54920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
54921         * modules/strcasestr-tests (Depends-on): Check for alarm.
54922         * tests/test-strcasestr.c: Augment test.
54923         * lib/str-two-way.h: Clean up stray macro.
54924         * NEWS: Document new module.
54925         * MODULES.html.sh (string handling): Likewise.
54926         * doc/functions/strcasestr.texi: New file.
54927         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
54928         here, since it is not a POSIX function.
54929
54930 2008-01-14  Colin Watson  <cjwatson@debian.org>
54931             Bruno Haible  <bruno@clisp.org>
54932
54933         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
54934         works fine; if not, set REPLACE_STRSIGNAL.
54935         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
54936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54937         REPLACE_STRSIGNAL.
54938         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
54939         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
54940         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
54941
54942 2008-01-14  Bruno Haible  <bruno@clisp.org>
54943
54944         * modules/strsignal (Include): Change to <string.h>.
54945
54946 2008-01-14  Colin Watson  <cjwatson@debian.org>
54947
54948         * modules/argp (Notice): Add a notice recommending to change
54949         XGETTEXT_OPTIONS.
54950         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
54951
54952 2008-01-13  Colin Watson  <cjwatson@debian.org>
54953
54954         * modules/strsignal-tests: New file.
54955         * tests/test-strsignal.c: New file.
54956
54957         * lib/strsignal.c: New file, from glibc with modifications.
54958         * lib/siglist.h: New file, from glibc with modifications.
54959         * lib/string.in.h (strsignal): New declaration.
54960         * m4/strsignal.m4: New file.
54961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54962         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
54963         * modules/strsignal: New file.
54964         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
54965         HAVE_DECL_STRSIGNAL.
54966
54967 2008-01-13  Bruno Haible  <bruno@clisp.org>
54968
54969         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
54970         locale encoding is not ASCII. Needed for OpenBSD 4.0.
54971         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54972         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54973
54974 2008-01-13  Bruno Haible  <bruno@clisp.org>
54975
54976         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
54977         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
54978         * lib/argp.h (__attribute__): Likewise.
54979         * lib/c-stack.c (__attribute__): Likewise.
54980         * lib/error.h (__attribute__): Likewise.
54981         * lib/fts.c (__attribute__): Likewise.
54982         * lib/openat.h (__attribute__): Likewise.
54983         * lib/stdio.in.h (__attribute__): Likewise.
54984         * lib/string.in.h (__attribute__): Likewise.
54985         * lib/utimens.c (__attribute__): Likewise.
54986         * lib/vasnprintf.h (__attribute__): Likewise.
54987         * lib/xalloc.h (__attribute__): Likewise.
54988         * lib/xprintf.h (__attribute__): Likewise.
54989         * lib/xstrtol.h (__attribute__): Likewise.
54990         * lib/xvasprintf.h (__attribute__): Likewise.
54991
54992 2008-01-12  Bruno Haible  <bruno@clisp.org>
54993
54994         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
54995         * doc/glibc-headers/a.out.texi: New file.
54996         * doc/glibc-headers/aliases.texi: New file.
54997         * doc/glibc-headers/alloca.texi: New file.
54998         * doc/glibc-headers/ar.texi: New file.
54999         * doc/glibc-headers/argp.texi: New file.
55000         * doc/glibc-headers/argz.texi: New file.
55001         * doc/glibc-headers/byteswap.texi: New file.
55002         * doc/glibc-headers/crypt.texi: New file.
55003         * doc/glibc-headers/endian.texi: New file.
55004         * doc/glibc-headers/envz.texi: New file.
55005         * doc/glibc-headers/err.texi: New file.
55006         * doc/glibc-headers/error.texi: New file.
55007         * doc/glibc-headers/execinfo.texi: New file.
55008         * doc/glibc-headers/fpu_control.texi: New file.
55009         * doc/glibc-headers/fstab.texi: New file.
55010         * doc/glibc-headers/fts.texi: New file.
55011         * doc/glibc-headers/getopt.texi: New file.
55012         * doc/glibc-headers/ieee754.texi: New file.
55013         * doc/glibc-headers/ifaddrs.texi: New file.
55014         * doc/glibc-headers/libintl.texi: New file.
55015         * doc/glibc-headers/mcheck.texi: New file.
55016         * doc/glibc-headers/mntent.texi: New file.
55017         * doc/glibc-headers/obstack.texi: New file.
55018         * doc/glibc-headers/paths.texi: New file.
55019         * doc/glibc-headers/printf.texi: New file.
55020         * doc/glibc-headers/pty.texi: New file.
55021         * doc/glibc-headers/resolv.texi: New file.
55022         * doc/glibc-headers/shadow.texi: New file.
55023         * doc/glibc-headers/sysexits.texi: New file.
55024         * doc/glibc-headers/ttyent.texi: New file.
55025
55026 2008-01-12  Jim Meyering  <meyering@redhat.com>
55027
55028         announce-gen: emit Gnulib's git-based version string.
55029         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
55030         New option --gnulib-version=V, where V is expected to be
55031         the output of running git describe in the gnulib directory.
55032         (get_tool_versions): Request feedback on xdelta.  I suspect it's
55033         not useful, and plan to stop publishing an xdelta file with each
55034         coreutils release.
55035
55036         * build-aux/announce-gen: Also check for lzma-compressed files.
55037
55038 2008-01-11  Bruno Haible  <bruno@clisp.org>
55039
55040         * tests/test-memmem.c (main): Increase maximum allowed time.
55041         * tests/test-strstr.c (main): Likewise.
55042
55043 2008-01-11  Bruno Haible  <bruno@clisp.org>
55044
55045         * doc/functions/memmem.texi: Add more precisions about platforms.
55046         * doc/functions/strstr.texi: Likewise.
55047
55048 2008-01-10  Eric Blake  <ebb9@byu.net>
55049
55050         * m4/strstr.m4: Delete cruft from copy-n-paste.
55051         Reported by Bruno Haible.
55052
55053 2008-01-10  Bruno Haible  <bruno@clisp.org>
55054
55055         Make c-strstr rely on strstr.
55056         * lib/c-strstr.c: Don't include str-kmp.h.
55057         (c_strstr): Define in terms of strstr.
55058         * modules/c-strstr (Files): Remove lib/str-kmp.h.
55059         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
55060
55061 2008-01-10  Bruno Haible  <bruno@clisp.org>
55062
55063         * doc/gnulib.texi (String Functions in C Locale): New section.
55064         * doc/c-ctype.texi: New file.
55065         * doc/c-strcase.texi: New file.
55066         * doc/c-strcaseeq.texi: New file.
55067         * doc/c-strcasestr.texi: New file.
55068         * doc/c-strstr.texi: New file.
55069         * doc/c-strtod.texi: New file.
55070         * doc/c-strtold.texi: New file.
55071
55072 2008-01-10  Eric Blake  <ebb9@byu.net>
55073
55074         * lib/relocatable.h: Fix a comment.
55075
55076 2008-01-10  Eric Blake  <ebb9@byu.net>
55077
55078         Share two-way algorithm.
55079         * lib/str-two-way.h: New file, merged from...
55080         * lib/memmem.c: ...here...
55081         * lib/strstr.c: ...and here.
55082         * modules/memmem (Files): Use it.
55083         * modules/strstr (Files): Likewise.
55084
55085         Avoid quadratic strstr implementations.
55086         * lib/strstr.c: New file.
55087         * m4/strstr.m4: Likewise.
55088         * modules/strstr: Likewise.
55089         * modules/strstr-tests: Likewise.
55090         * tests/test-strstr.c: Likewise.
55091         * lib/string.in.h (rpl_strstr): Declare.
55092         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
55093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
55094         * modules/string (Makefile.am): Likewise.
55095         * MODULES.html.sh (string handling): Mention new module.
55096         * doc/functions/strstr.texi (strstr): Document the bug.
55097
55098 2008-01-10  Bruno Haible  <bruno@clisp.org>
55099
55100         * lib/relocatable.h (relocate): State whether result is freshly
55101         allocated or not.
55102         * lib/relocatable.c (relocate): Return a freshly allocated string
55103         instead of a pointer to a privately held string.
55104         Reported by Sylvain Beucler <beuc@gnu.org>.
55105
55106 2008-01-10  Colin Watson  <cjwatson@debian.org>
55107
55108         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
55109         s/S_ISNLK/S_ISLNK/.
55110
55111 2008-01-09  Bruno Haible  <bruno@clisp.org>
55112
55113         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
55114         and other files.
55115         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
55116         if it's only a guess.
55117         * modules/memmem: Simplify by depending on memmem-simple.
55118
55119 2008-01-09  Bruno Haible  <bruno@clisp.org>
55120
55121         Work around OpenBSD 4.0 tdelete() bug.
55122         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
55123         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
55124         macros and don't redefine the enum values.
55125         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
55126         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
55127         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
55128
55129 2008-01-09  Bruno Haible  <bruno@clisp.org>
55130
55131         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
55132         (main): Don't perform the tests if setlocale did not install a UTF-8
55133         locale. Needed on OpenBSD 4.0.
55134         * modules/wcwidth-tests (Depends-on): Add localcharset.
55135
55136 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55137
55138         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
55139         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
55140         * NEWS: announce this.
55141         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
55142
55143 2008-01-09  Simon Josefsson  <simon@josefsson.org>
55144         and Eric Blake  <ebb9@byu.net>
55145
55146         Add memmem-simple module.
55147         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
55148         (gl_FUNC_MEMMEM): Separate performance from presence checks.
55149         * modules/memmem-simple: New file.
55150         * modules/memmem (Description): Tweak.
55151         * MODULES.html.sh (string handling): Mention new module.
55152         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
55153         addressed by memmem-simple.
55154         * NEWS: Document the difference.
55155
55156 2008-01-09  Eric Blake  <ebb9@byu.net>
55157
55158         Give gcc some memmem optimization hints.
55159         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
55160         (strcasestr): Declare as pure.
55161         * modules/memmem (Maintainer): Claim my implementation.
55162
55163 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55164
55165         Support AIX 6.1 and higher.
55166         * build-aux/config.libpath: Likewise.
55167         * build-aux/config.rpath: Likewise.
55168
55169 2008-01-08  Jim Meyering  <meyering@redhat.com>
55170             Bruno Haible  <bruno@clisp.org>
55171
55172         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
55173         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
55174         Reported by Peter Fales in
55175         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
55176
55177 2008-01-08  Bruno Haible  <bruno@clisp.org>
55178
55179         * modules/unictype/category-of (Depends-on): Add
55180         unictype/category-none.
55181         * modules/unictype/category-and-tests (Depends-on): Add
55182         unictype/category-{L,N,Lu,Nd}.
55183         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
55184         * modules/unictype/category-or-tests (Depends-on): Add
55185         unictype/category-{L,N}.
55186         * modules/unictype/category-name-tests (Depends-on): Add
55187         unictype/category-{Z,Nl}.
55188         Reported by Simon Josefsson.
55189
55190 2008-01-08  Bruno Haible  <bruno@clisp.org>
55191
55192         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
55193         convention better.
55194         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
55195         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
55196         Reported by Peter Miller <millerp@canb.auug.org.au>.
55197
55198 2008-01-08  Eric Blake  <ebb9@byu.net>
55199
55200         Rewrite memmem to guarantee linear complexity without malloc.
55201         * lib/memmem.c (memmem): Use Two-Way rather than
55202         Knuth-Morris-Pratt, to allow O(1) space usage.
55203         (critical_factorization, two_way_short_needle)
55204         (two_way_long_needle): New functions.
55205         (knuth_morris_pratt): Delete.
55206         * modules/memmem (Depends-on): No longer need malloca or stdbool.
55207         Add stdint.
55208         * tests/test-memmem.c (main): Add tests for periodic needle and
55209         sublinear performance.
55210         * doc/functions/memmem.texi (memmem): Document other deficiencies
55211         in cygwin and older glibc.
55212
55213 2008-01-08  Bruno Haible  <bruno@clisp.org>
55214
55215         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
55216         augmentation.
55217
55218 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
55219
55220         Add a configure time option: --disable-acl.
55221         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
55222         AC_ARG_ENABLE(acl).
55223
55224 2008-01-06  Simon Josefsson  <simon@josefsson.org>
55225
55226         * tests/test-localename.c: Don't include obsolete "setenv.h".
55227
55228         * modules/localename-tests (Depends-on): Need unsetenv.
55229
55230 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55231
55232         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
55233
55234 2008-01-06  Colin Watson  <cjwatson@debian.org>
55235
55236         * users.txt: Add man-db.
55237
55238 2008-01-07  Bruno Haible  <bruno@clisp.org>
55239
55240         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
55241         previous section name.
55242
55243 2008-01-07  Bruno Haible  <bruno@clisp.org>
55244
55245         * lib/progname.c (set_program_name): Don't strip off a leading
55246         "lt-" prefix outside a .libs directory.
55247         Suggested by Paul Eggert.
55248
55249 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
55250             Bruno Haible  <bruno@clisp.org>
55251
55252         Improve memory cleanup in 'relocatable' module.
55253         * lib/relocatable.h (compute_curr_prefix): Change return type to
55254         'char *'.
55255         * lib/relocatable.c (compute_curr_prefix): Change return type to
55256         'char *'. Free curr_installdir after use.
55257         (relocate): Free curr_prefix_better after use.
55258         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
55259
55260 2008-01-01  Bruno Haible  <bruno@clisp.org>
55261
55262         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
55263         failure on older glibc systems.
55264         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55265
55266 2008-01-05  Eric Blake  <ebb9@byu.net>
55267
55268         Avoid quadratic system memmem.
55269         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
55270         Reported by Ralf Wildenhues.
55271
55272         Fix memmem test for mingw.
55273         * modules/memmem-tests (configure.ac): Check for alarm.
55274         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
55275         it.
55276         * doc/functions/memmem.texi: New file.
55277         * doc/gnulib.texi (Function Substitutes): Add memmem.
55278         Reported by Bruno Haible.
55279
55280 2008-01-04  Bruno Haible  <bruno@clisp.org>
55281
55282         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
55283         Require gl_HEADER_STRINGS_H_DEFAULTS, not
55284         gl_HEADER_STRING_H_DEFAULTS.
55285
55286 2008-01-04  Eric Blake  <ebb9@byu.net>
55287
55288         Shorten duration of memmem test.
55289         * tests/test-memmem.c (main): Use alarm to declare failure if test
55290         is taking too long.
55291         Reported by Ralf Wildenhues.
55292
55293 2007-12-21  Simon Josefsson  <simon@josefsson.org>
55294
55295         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
55296         string, needed by strerror.
55297
55298 2008-01-03  Colin Watson  <cjwatson@debian.org>
55299             Bruno Haible  <bruno@clisp.org>
55300
55301         * doc/gnulib-tool.texi (Localization): New section.
55302
55303 2008-01-02  Bruno Haible  <bruno@clisp.org>
55304
55305         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
55306         variables to 'unsigned char *' type.
55307         Reported by Paul Eggert.
55308
55309 2008-01-02  Jim Meyering  <jim@meyering.net>
55310
55311         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
55312
55313 2007-12-31  Jim Meyering  <jim@meyering.net>
55314
55315         Avoid use of private FTS type name.
55316         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
55317
55318 2007-12-30  Karl Berry  <karl@gnu.org>
55319
55320         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
55321         work around defect in Texinfo and/or the standalone Info browser.
55322
55323 2007-12-30  Bruno Haible  <bruno@clisp.org>
55324
55325         Unify 5 copies of the KMP code.
55326         * lib/str-kmp.h: New file.
55327         * lib/c-strcasestr.c: Include str-kmp.h.
55328         (knuth_morris_pratt): Remove function.
55329         (c_strcasestr): Update.
55330         * lib/c-strstr.c: Include str-kmp.h.
55331         (knuth_morris_pratt): Remove function.
55332         (c_strcasestr): Update.
55333         * lib/mbscasestr.c: Include str-kmp.h.
55334         (knuth_morris_pratt_unibyte): Remove function.
55335         * lib/mbsstr.c: Include str-kmp.h.
55336         (knuth_morris_pratt_unibyte): Remove function.
55337         * lib/strcasestr.c: Include str-kmp.h.
55338         (knuth_morris_pratt): Remove function.
55339         (strcasestr): Update.
55340         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
55341         * modules/c-strstr (Files): Likewise.
55342         * modules/mbscasestr (Files): Likewise.
55343         * modules/mbsstr (Files): Likewise.
55344         * modules/strcasestr (Files): Likewise.
55345         Suggested by Paul Eggert.
55346
55347 2007-12-30  Bruno Haible  <bruno@clisp.org>
55348
55349         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
55350         defined.
55351
55352 2007-12-30  Bruno Haible  <bruno@clisp.org>
55353
55354         * lib/xmalloca.h: Include xalloc.h.
55355         (xnmalloca): New macro.
55356
55357 2007-12-30  Bruno Haible  <bruno@clisp.org>
55358
55359         * lib/malloca.h (nmalloca): New macro.
55360         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
55361         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
55362         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
55363         knuth_morris_pratt_multibyte): Likewise.
55364         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
55365         knuth_morris_pratt_multibyte): Likewise.
55366         * lib/memmem.c (knuth_morris_pratt): Likewise.
55367         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
55368
55369 2007-12-25  Bruno Haible  <bruno@clisp.org>
55370
55371         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
55372         * lib/glob.c: Don't include openat.h.
55373         (link_exists2_p): Add back the code that deals with the
55374         !GLOB_ALTDIRFUNC case.
55375         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
55376         let it do the filename concatenation.
55377         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
55378         * modules/glob (Depends-on): Remove openat.
55379
55380 2007-12-31  Bruno Haible  <bruno@clisp.org>
55381
55382         * modules/dirfd (License): Change to LGPLv2+.
55383         Approved by Jim Meyering.
55384
55385 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55386
55387         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
55388         when multiplying M by sizeof (size_t).
55389
55390 2007-12-10  Martin Lambers  <marlam@marlam.de>
55391
55392         Override getpagesize on mingw.
55393         * lib/getpagesize.c: New file.
55394         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
55395         * modules/getpagesize (Files): Add lib/getpagesize.c.
55396         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
55397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55398         REPLACE_GETPAGESIZE.
55399         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
55400
55401 2007-12-25  Bruno Haible  <bruno@clisp.org>
55402
55403         * modules/localcharset (Notice): New field.
55404         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
55405         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55406
55407 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55408             Bruno Haible  <bruno@clisp.org>
55409
55410         Avoid using the syntax symbol() in formatted documentation.
55411         * MODULES.html.sh (func_module): When replacing symbol() with a
55412         hyperlink, remove the parentheses. Show an error if some remain.
55413         Recognize and render the '...' syntax.
55414         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
55415         Rework. Add paragraph about GCC's inlining.
55416         * doc/alloca.texi: Likewise.
55417         * doc/error.texi: Remove parentheses from symbol reference.
55418         * doc/gnulib-intro.texi: Likewise.
55419         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
55420         * modules/fnmatch (Description): Reword to say "the ... function".
55421         * modules/full-read (Description): Likewise.
55422         * modules/full-write (Description): Likewise.
55423         * modules/safe-read (Description): Likewise.
55424         * modules/safe-write (Description): Likewise.
55425         * modules/strchrnul (Description): Likewise.
55426         * modules/trim (Description): Likewise.
55427         * modules/error (Description): Remove parentheses from symbol
55428         references.
55429         * modules/verror (Description): Likewise.
55430         Reported by Karl Berry.
55431
55432 2007-12-25  Bruno Haible  <bruno@clisp.org>
55433
55434         Fixup after 2007-10-16 commit.
55435         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
55436
55437 2007-12-24  Bruno Haible  <bruno@clisp.org>
55438
55439         Make --enable-relocatable work with DESTDIR.
55440         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
55441         to compute installdir from destprog.
55442         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
55443         also set the RELOC_DESTDIR variable.
55444         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55445
55446 2007-12-24  Bruno Haible  <bruno@clisp.org>
55447
55448         Fix link error due to xalloc_die().
55449         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
55450         of xreadlink.
55451         * lib/relocwrapper.c: Update comments.
55452         * build-aux/install-reloc: Remove xreadlink.c from file list.
55453         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
55454         xreadlink.c.
55455         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55456
55457 2007-12-24  Bruno Haible  <bruno@clisp.org>
55458
55459         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
55460         * lib/setenv.h: Remove file.
55461         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
55462         lib/setenv.h.
55463         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
55464         (Depends-on): Add stdlib.
55465         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
55466         gl_FUNC_UNSETENV.
55467         (Include): Replace setenv.h with <stdlib.h>.
55468         * modules/unsetenv: New file.
55469         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
55470         * lib/unsetenv.c: Include <stdlib.h> first.
55471         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
55472         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
55473         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
55474         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
55475         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
55476         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
55478         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55479         * doc/functions/unsetenv.texi: Update.
55480         * modules/xsetenv (Depends-on): Add unsetenv.
55481         * modules/getdate (Depends-on): Likewise.
55482         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
55483         * lib/xsetenv.c: Don't include setenv.h.
55484         * lib/getdate.y: Likewise.
55485         * lib/relocwrapper.c: Likewise.
55486         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
55487         (Depends-on): Add stdlib.
55488         * NEWS: Mention the changes.
55489         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55490
55491 2007-12-23  Bruno Haible  <bruno@clisp.org>
55492
55493         * lib/memmem.c (memmem): Use lowercase variable names. Tab
55494         indentation.
55495
55496 2007-12-23  Bruno Haible  <bruno@clisp.org>
55497
55498         * lib/c-strcasestr.c: Add more comments.
55499         * lib/c-strstr.c: Likewise.
55500         * lib/mbscasestr.c: Likewise.
55501         * lib/mbsstr.c: Likewise.
55502         * lib/strcasestr.c: Likewise.
55503         * lib/memmem.c: Likewise.
55504
55505 2007-12-23  Bruno Haible  <bruno@clisp.org>
55506
55507         * tests/test-memmem.c: Include <string.h> first.
55508
55509 2007-12-22  Bruno Haible  <bruno@clisp.org>
55510
55511         * gnulib-tool (func_create_testdir): Change $auxdir while generating
55512         the contents of $testsbase.
55513         Reported by Ralf Wildenhues.
55514
55515 2007-12-22  Bruno Haible  <bruno@clisp.org>
55516
55517         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
55518         two variables local_ldadd_before, local_ldadd_last.
55519
55520 2007-12-20  Eric Blake  <ebb9@byu.net>
55521
55522         Work around circular library issue when cross-compiling.
55523         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
55524         that progname.o does not need to pull in rpl_memcmp.
55525
55526 2007-12-19  Eric Blake  <ebb9@byu.net>
55527
55528         Fix memmem to avoid O(n^2) worst-case complexity.
55529         * lib/memmem.c (knuth_morris_pratt): New function.
55530         (memmem): Use it if first few naive iterations fail.
55531         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
55532         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
55533         * modules/memchr (License): Likewise.
55534         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
55535         malloca.
55536         * tests/test-memmem.c: Rewrite, borrowing ideas from
55537         test-mbsstr1.c; the old version wouldn't even compile!
55538         * modules/memmem-tests: New file.
55539         * lib/string.in.h (rpl_memmem): Add declaration.
55540         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
55541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
55542         REPLACE_MEMMEM.
55543
55544 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55545
55546         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
55547         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
55548         before any system include files, and undef after them all.  This
55549         should fix a problem on VMS reported by John E. Malmberg in
55550         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
55551
55552 2007-12-17  Eric Blake  <ebb9@byu.net>
55553
55554         Revert addition of verify, for BSD/OS.
55555         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
55556         can't handle large files, for the sake of obsolete platforms.
55557         * modules/fseeko (Depends-on): Remove verify.
55558         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
55559         * doc/functions/ftello.texi (ftello): Likewise.
55560         * doc/functions/fgetpos.texi (fgetpos): Likewise.
55561         Reported by Larry Jones.
55562
55563 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
55564
55565         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
55566         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
55567
55568 2007-12-17  Jim Meyering  <meyering@redhat.com>
55569
55570         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
55571         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
55572         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
55573         * modules/getcwd (Depends-on): Add openat.
55574         Reported by Petr Salinger.
55575
55576 2007-12-17  Bruno Haible  <bruno@clisp.org>
55577
55578         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
55579         avoid a segmentation fault of the configure test on x86_64 systems.
55580
55581 2007-12-15  Jim Meyering  <meyering@redhat.com>
55582
55583         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
55584
55585 2007-12-13  Eric Blake  <ebb9@byu.net>
55586
55587         Another fseek test.
55588         * tests/test-fseek.c (main): Also test ungetc handling.
55589         * tests/test-fseeko.c (main): Likewise.
55590         * modules/fseeko (Depends-on): Add verify.
55591         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
55592         large.
55593         Reported by Larry Jones.
55594
55595         Fix fseeko on mingw.
55596         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
55597         seek.
55598
55599         Beef up fseek tests.
55600         * tests/test-fseek.c (main): Also test eof handling.
55601         * tests/test-fseeko.c (main): Likewise.
55602         Reported by Larry Jones.
55603
55604 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
55605
55606         Fix fseeko on BSD-based platforms.
55607         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
55608         successful seek.
55609
55610 2007-12-12  Eric Blake  <ebb9@byu.net>
55611
55612         Allow circular dependency of separate libtests.a
55613         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
55614         when use_libtests.
55615
55616 2007-12-11  Eric Blake  <ebb9@byu.net>
55617
55618         Fix bug with -0.0L in previous patch.
55619         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
55620         * tests/test-isnan.c (main): Also test on zeroes.
55621         * tests/test-isnanf.c (main): Likewise.
55622         * tests/test-isnanl.h (main): Likewise.
55623
55624         Detect pseudo-denormals on x86 even when cross-compiling.
55625         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
55626         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
55627         invalid bit patterns that happen to satisfy ==.
55628
55629         Avoid link failures with separate libtests.a.
55630         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
55631         last, to satisfy circular dependencies.
55632
55633 2007-12-11  Eric Blake  <ebb9@byu.net>
55634         and Bruno Haible  <bruno@clisp.org>
55635
55636         Fix OpenBSD 4.0 <float.h> handling of long double.
55637         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
55638         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
55639         * doc/headers/float.texi (float.h): Document OpenBSD bug.
55640
55641 2007-12-11  Jim Meyering  <meyering@redhat.com>
55642
55643         * users.txt: Add libvirt.
55644
55645         Support versions of autoconf prior to 2.59c.
55646         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
55647         if it is not already defined.
55648
55649 2007-12-09  Bruno Haible  <bruno@clisp.org>
55650
55651         Let 'gnulib-tool --import' collect sources needed for the tests in
55652         tests/ rather than in lib/.
55653         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
55654         argument. If true, add rules to generate libtests.a, and put libtests.a
55655         into $(LDADD). Consider source files in subdirectories and set
55656         uses_subdirs.
55657         (func_emit_initmacro_start, func_emit_initmacro_end,
55658         func_emit_initmacro_done): Pass all arguments explicitly.
55659         (func_import): Determine two module lists main_modules,
55660         testsrelated_modules. Determine use_libtests. Determine two variables
55661         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
55662         instead of just sed_transform_lib_file. Determine two variables
55663         main_files and testsrelated_files. Compute 'files' as the union of
55664         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
55665         func_add_or_update. In the generated gnulib-comp.m4, collect the
55666         object files for tests/ in different variables than those for lib/.
55667         Substitute LIBTESTS_LIBDEPS.
55668         (func_create_testdir): Combine the uses_subdirs results from
55669         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
55670
55671 2007-12-09  Bruno Haible  <bruno@clisp.org>
55672
55673         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
55674         the build-aux directory.
55675
55676 2007-12-09  Bruno Haible  <bruno@clisp.org>
55677
55678         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
55679         introduced on 2006-09-09.
55680
55681 2007-12-07  Jim Meyering  <meyering@redhat.com>
55682
55683         Let these macros work also with autoconf-2.59.
55684         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
55685         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
55686         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55687
55688 2007-12-06  Jim Meyering  <meyering@redhat.com>
55689
55690         Avoid a configure-time syntax error in gl_FUNC_ACL.
55691         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
55692         function in each branch, before testing the cache variable.
55693
55694 2007-12-04  Eric Blake  <ebb9@byu.net>
55695
55696         Make scripts executable.
55697         * build-aux/config.guess: Add execute permissions.
55698         * build-aux/config.sub: Likewise.
55699         * build-aux/gendocs.sh: Likewise.
55700
55701         Fix frexp on mingw.
55702         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
55703         cross-compiling.
55704         * doc/functions/frexp.texi (frexp): Document the bug.
55705
55706         Make cygwin fseeko check more reliable.
55707         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
55708         version numbers, rather than unrelated feature check.
55709         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
55710         * doc/functions/ftello.texi (ftello): Likewise.
55711         Reported by Bruno Haible.
55712
55713         * m4/strerror.m4: Bump version number.
55714
55715 2007-12-03  Bruno Haible  <bruno@clisp.org>
55716
55717         * doc/functions/mprotect.texi: Mention the mingw problem.
55718
55719 2007-12-03  Eric Blake  <ebb9@byu.net>
55720
55721         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
55722         REPLACE_STRERROR is initialized before this macro.
55723
55724 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55725
55726         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
55727         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
55728         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
55729         put -lsec in even for programs other than 'ls'.  This fixes a problem
55730         for gettext reported by Bruno Haible in
55731         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
55732         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
55733         Add support for Solaris 10.  This isn't efficient, but should get the
55734         job done for now.
55735
55736 2007-12-03  James Youngman  <jay@gnu.org>
55737
55738         * doc/regexprops-generic.texi: change "an close-group" to "a
55739         close-group" and "illegal" to "not allowed".
55740
55741 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55742
55743         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
55744         pr_byname.h. Needed for the rare case when the maintainer has done
55745         "make maintainer-clean" in the source directory and then attempts a
55746         build outside the source directory.
55747         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
55748         scripts_byname.h.
55749
55750 2007-12-02  Martin Lambers <marlam@marlam.de>
55751             Bruno Haible  <bruno@clisp.org>
55752
55753         * lib/getpagesize.h: Remove file.
55754         * lib/unistd.in.h: Include declaration of getpagesize here.
55755         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
55756         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
55757         HAVE_SYS_PARAM_H.
55758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
55759         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55760         * modules/getpagesize (Files): Remove lib/getpagesize.h.
55761         (Depends-on): Add unistd.
55762         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55763         (Include): Use <unistd.h> instead of getpagesize.h.
55764         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
55765         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55766         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
55767         gl_GETPAGESIZE invocation, already handled by module dependency.
55768         * lib/pagealign_alloc.c: Don't include getpagesize.h.
55769
55770 2007-12-02  Bruno Haible  <bruno@clisp.org>
55771
55772         * modules/strings-tests: New file.
55773         * tests/test-strings.c: New file.
55774
55775         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
55776         * lib/strings.in.h: New file.
55777         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
55778         * m4/strings_h.m4: New file.
55779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
55780         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
55781         * modules/strings: New file.
55782         * modules/string (Makefile.am): Update.
55783         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
55784         Reported by Karl Berry.
55785
55786 2007-12-01  Eric Blake  <ebb9@byu.net>
55787
55788         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
55789         accomodate fix in cygwin 1.5.25.
55790
55791 2007-12-01  Jim Meyering  <meyering@redhat.com>
55792
55793         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
55794         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
55795         that would inhibit utf8-optimization of a regexp containing line-
55796         or buffer-anchors, e.g., `^', `$'.
55797
55798 2007-11-30  Bruno Haible  <bruno@clisp.org>
55799
55800         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
55801         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
55802         glthread_recursive_lock_init.
55803         * lib/lock.c (glthread_recursive_lock_init)
55804         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
55805         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55806
55807 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
55808
55809         New function qset_acl, like set_acl but with syscall semantics.
55810         * lib/acl.h (qset_acl): New decl.
55811         * lib/acl.c (qset_acl): New function.
55812         (set_acl): Use new function.  Use more-consistent diagnostics.
55813
55814 2007-11-28  Jim Meyering  <meyering@redhat.com>
55815
55816         * modules/physmem (License): Change from GPL to LGPLv2+.
55817
55818 2007-11-26  Bruno Haible  <bruno@clisp.org>
55819
55820         * lib/vasnprintf.c (decode_long_double): Don't abort if the
55821         'long double' type has excess precision.
55822         Reported by Jim Meyering in
55823         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
55824
55825 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55826
55827         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
55828         Sync from <http://gnu.org/licenses>.
55829         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
55830         with license text from same location.
55831         * doc/maintain.texi, doc/standards.texi:  Sync from
55832         <http://savannah.gnu.org/projects/gnustandards>.
55833
55834 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
55835         and Jim Meyering  <meyering@redhat.com>
55836
55837         Adjust getdate' grammar to accept a slightly more regular language.
55838         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
55839         Before, the former was rejected.
55840         * lib/getdate.y (digits_to_date_time): New function, factored
55841         out of ...
55842         (number): ...here.  Just call digits_to_date_time.
55843         (hybrid): New non-terminal to handle an <unsigned number,
55844         signed relative offset> sequence consistently.
55845
55846 2007-11-18  Jim Meyering  <meyering@redhat.com>
55847
55848         Pull my changes from coreutils:
55849         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
55850         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
55851         use of $gnulib_tool_option_extras, so that it's separated from the
55852         preceding argument.
55853
55854         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
55855         * build-aux/bootstrap (cp_mark_as_generated): Create any required
55856         parent destination directories before copying a file into place.
55857
55858 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55859
55860         bootstrap: work also with 4-argument variant of AC_INIT
55861         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
55862
55863 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55864
55865         Port test-getaddrinfo to Solaris.
55866         Problem reported by Bruno Haible in
55867         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
55868         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
55869         explanation of setting 'hints'.
55870         Don't reject an implementation merely because it returns EAI_SERVICE.
55871         (EAI_SERVICE): Define to 0 if not defined.
55872
55873 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55874
55875         The license of gnu-make and posix-shell is now "GPLed build tool".
55876         * modules/gnu-make (License): Likewise.
55877         * modules/posix-shell (License): Likewise.
55878
55879         New module posix-shell, for determining a POSIX shell
55880         or perhaps something that is close enough to a POSIX shell.
55881         * m4/posix-shell.m4: New file.
55882         * modules/posix-shell: New file.
55883
55884         * MODULES.html.sh: Mention new module.
55885
55886         New module gnu-make, for determining whether we're using GNU Make.
55887         * m4/gnu-make.m4: New file.
55888         * modules/gnu-make: New file.
55889         * MODULES.html.sh: Mention new module.
55890
55891 2007-11-14  Jim Meyering  <meyering@redhat.com>
55892
55893         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
55894         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
55895         use this macro to create a function _definition_.
55896         Remove useless "#undef ARGMATCH_DIE".
55897
55898 2007-11-14  Bruno Haible  <bruno@clisp.org>
55899
55900         * lib/config.charset: Update for OpenBSD 4.1.
55901         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
55902
55903 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
55904
55905         Document 64-bit #if problems in stdint.texi.
55906         * doc/headers/stdint.texi (stdint.h): Mention problems with
55907         64-bit-#if, and how to work around them.
55908
55909         Don't insist on 'long long int' support in the preprocessor.  It
55910         breaks too many things.  For example, PRIdMAX still uses a 'long
55911         long int' format with the latest Sun compiler, even though
55912         HAVE_LONG_LONG_INT isn't defined due to that compiler's
55913         preprocessor problem.  This causes the latest coreutils to dump
55914         core on Solaris 10 sparc with the Sun C compiler.
55915         Instead, fix the 2007-10-16 problem in a different way, by evaluating
55916         the troublesome expressions at configure-time, not at #if-time.
55917         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
55918         preprocessor.
55919         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
55920         compile-time C checks, done at 'configure'-time.
55921         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
55922         * modules/inttypes (Makefile): Substitute the new symbols that
55923         gl_INTTYPES_H now generates.
55924         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
55925
55926 2007-11-12  Bruno Haible  <bruno@clisp.org>
55927
55928         Tests for Unicode character classification functions.
55929
55930         * modules/unictype/bidicategory-byname-tests: New file.
55931         * modules/unictype/bidicategory-name-tests: New file.
55932         * modules/unictype/bidicategory-of-tests: New file.
55933         * modules/unictype/bidicategory-test-tests: New file.
55934         * modules/unictype/block-list-tests: New file.
55935         * modules/unictype/block-of-tests: New file.
55936         * modules/unictype/block-test-tests: New file.
55937         * modules/unictype/category-C-tests: New file.
55938         * modules/unictype/category-Cc-tests: New file.
55939         * modules/unictype/category-Cf-tests: New file.
55940         * modules/unictype/category-Cn-tests: New file.
55941         * modules/unictype/category-Co-tests: New file.
55942         * modules/unictype/category-Cs-tests: New file.
55943         * modules/unictype/category-L-tests: New file.
55944         * modules/unictype/category-Ll-tests: New file.
55945         * modules/unictype/category-Lm-tests: New file.
55946         * modules/unictype/category-Lo-tests: New file.
55947         * modules/unictype/category-Lt-tests: New file.
55948         * modules/unictype/category-Lu-tests: New file.
55949         * modules/unictype/category-M-tests: New file.
55950         * modules/unictype/category-Mc-tests: New file.
55951         * modules/unictype/category-Me-tests: New file.
55952         * modules/unictype/category-Mn-tests: New file.
55953         * modules/unictype/category-N-tests: New file.
55954         * modules/unictype/category-Nd-tests: New file.
55955         * modules/unictype/category-Nl-tests: New file.
55956         * modules/unictype/category-No-tests: New file.
55957         * modules/unictype/category-P-tests: New file.
55958         * modules/unictype/category-Pc-tests: New file.
55959         * modules/unictype/category-Pd-tests: New file.
55960         * modules/unictype/category-Pe-tests: New file.
55961         * modules/unictype/category-Pf-tests: New file.
55962         * modules/unictype/category-Pi-tests: New file.
55963         * modules/unictype/category-Po-tests: New file.
55964         * modules/unictype/category-Ps-tests: New file.
55965         * modules/unictype/category-S-tests: New file.
55966         * modules/unictype/category-Sc-tests: New file.
55967         * modules/unictype/category-Sk-tests: New file.
55968         * modules/unictype/category-Sm-tests: New file.
55969         * modules/unictype/category-So-tests: New file.
55970         * modules/unictype/category-Z-tests: New file.
55971         * modules/unictype/category-Zl-tests: New file.
55972         * modules/unictype/category-Zp-tests: New file.
55973         * modules/unictype/category-Zs-tests: New file.
55974         * modules/unictype/category-and-not-tests: New file.
55975         * modules/unictype/category-and-tests: New file.
55976         * modules/unictype/category-byname-tests: New file.
55977         * modules/unictype/category-name-tests: New file.
55978         * modules/unictype/category-none-tests: New file.
55979         * modules/unictype/category-of-tests: New file.
55980         * modules/unictype/category-or-tests: New file.
55981         * modules/unictype/category-test-withtable-tests: New file.
55982         * modules/unictype/combining-class-tests: New file.
55983         * modules/unictype/ctype-alnum-tests: New file.
55984         * modules/unictype/ctype-alpha-tests: New file.
55985         * modules/unictype/ctype-blank-tests: New file.
55986         * modules/unictype/ctype-cntrl-tests: New file.
55987         * modules/unictype/ctype-digit-tests: New file.
55988         * modules/unictype/ctype-graph-tests: New file.
55989         * modules/unictype/ctype-lower-tests: New file.
55990         * modules/unictype/ctype-print-tests: New file.
55991         * modules/unictype/ctype-punct-tests: New file.
55992         * modules/unictype/ctype-space-tests: New file.
55993         * modules/unictype/ctype-upper-tests: New file.
55994         * modules/unictype/ctype-xdigit-tests: New file.
55995         * modules/unictype/decimal-digit-tests: New file.
55996         * modules/unictype/digit-tests: New file.
55997         * modules/unictype/mirror-tests: New file.
55998         * modules/unictype/numeric-tests: New file.
55999         * modules/unictype/property-alphabetic-tests: New file.
56000         * modules/unictype/property-ascii-hex-digit-tests: New file.
56001         * modules/unictype/property-bidi-arabic-digit-tests: New file.
56002         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
56003         * modules/unictype/property-bidi-block-separator-tests: New file.
56004         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
56005         * modules/unictype/property-bidi-common-separator-tests: New file.
56006         * modules/unictype/property-bidi-control-tests: New file.
56007         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
56008         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
56009         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
56010         * modules/unictype/property-bidi-european-digit-tests: New file.
56011         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
56012         * modules/unictype/property-bidi-left-to-right-tests: New file.
56013         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
56014         * modules/unictype/property-bidi-other-neutral-tests: New file.
56015         * modules/unictype/property-bidi-pdf-tests: New file.
56016         * modules/unictype/property-bidi-segment-separator-tests: New file.
56017         * modules/unictype/property-bidi-whitespace-tests: New file.
56018         * modules/unictype/property-byname-tests: New file.
56019         * modules/unictype/property-combining-tests: New file.
56020         * modules/unictype/property-composite-tests: New file.
56021         * modules/unictype/property-currency-symbol-tests: New file.
56022         * modules/unictype/property-dash-tests: New file.
56023         * modules/unictype/property-decimal-digit-tests: New file.
56024         * modules/unictype/property-default-ignorable-code-point-tests: New file.
56025         * modules/unictype/property-deprecated-tests: New file.
56026         * modules/unictype/property-diacritic-tests: New file.
56027         * modules/unictype/property-extender-tests: New file.
56028         * modules/unictype/property-format-control-tests: New file.
56029         * modules/unictype/property-grapheme-base-tests: New file.
56030         * modules/unictype/property-grapheme-extend-tests: New file.
56031         * modules/unictype/property-grapheme-link-tests: New file.
56032         * modules/unictype/property-hex-digit-tests: New file.
56033         * modules/unictype/property-hyphen-tests: New file.
56034         * modules/unictype/property-id-continue-tests: New file.
56035         * modules/unictype/property-id-start-tests: New file.
56036         * modules/unictype/property-ideographic-tests: New file.
56037         * modules/unictype/property-ids-binary-operator-tests: New file.
56038         * modules/unictype/property-ids-trinary-operator-tests: New file.
56039         * modules/unictype/property-ignorable-control-tests: New file.
56040         * modules/unictype/property-iso-control-tests: New file.
56041         * modules/unictype/property-join-control-tests: New file.
56042         * modules/unictype/property-left-of-pair-tests: New file.
56043         * modules/unictype/property-line-separator-tests: New file.
56044         * modules/unictype/property-logical-order-exception-tests: New file.
56045         * modules/unictype/property-lowercase-tests: New file.
56046         * modules/unictype/property-math-tests: New file.
56047         * modules/unictype/property-non-break-tests: New file.
56048         * modules/unictype/property-not-a-character-tests: New file.
56049         * modules/unictype/property-numeric-tests: New file.
56050         * modules/unictype/property-other-alphabetic-tests: New file.
56051         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
56052         * modules/unictype/property-other-grapheme-extend-tests: New file.
56053         * modules/unictype/property-other-id-continue-tests: New file.
56054         * modules/unictype/property-other-id-start-tests: New file.
56055         * modules/unictype/property-other-lowercase-tests: New file.
56056         * modules/unictype/property-other-math-tests: New file.
56057         * modules/unictype/property-other-uppercase-tests: New file.
56058         * modules/unictype/property-paired-punctuation-tests: New file.
56059         * modules/unictype/property-paragraph-separator-tests: New file.
56060         * modules/unictype/property-pattern-syntax-tests: New file.
56061         * modules/unictype/property-pattern-white-space-tests: New file.
56062         * modules/unictype/property-private-use-tests: New file.
56063         * modules/unictype/property-punctuation-tests: New file.
56064         * modules/unictype/property-quotation-mark-tests: New file.
56065         * modules/unictype/property-radical-tests: New file.
56066         * modules/unictype/property-sentence-terminal-tests: New file.
56067         * modules/unictype/property-soft-dotted-tests: New file.
56068         * modules/unictype/property-space-tests: New file.
56069         * modules/unictype/property-terminal-punctuation-tests: New file.
56070         * modules/unictype/property-test-tests: New file.
56071         * modules/unictype/property-titlecase-tests: New file.
56072         * modules/unictype/property-unassigned-code-value-tests: New file.
56073         * modules/unictype/property-unified-ideograph-tests: New file.
56074         * modules/unictype/property-uppercase-tests: New file.
56075         * modules/unictype/property-variation-selector-tests: New file.
56076         * modules/unictype/property-white-space-tests: New file.
56077         * modules/unictype/property-xid-continue-tests: New file.
56078         * modules/unictype/property-xid-start-tests: New file.
56079         * modules/unictype/property-zero-width-tests: New file.
56080         * modules/unictype/scripts-tests: New file.
56081         * modules/unictype/syntax-c-ident-tests: New file.
56082         * modules/unictype/syntax-c-whitespace-tests: New file.
56083         * modules/unictype/syntax-java-ident-tests: New file.
56084         * modules/unictype/syntax-java-whitespace-tests: New file.
56085         * tests/unictype/test-bidi_byname.c: New file.
56086         * tests/unictype/test-bidi_name.c: New file.
56087         * tests/unictype/test-bidi_of.c: New file.
56088         * tests/unictype/test-bidi_test.c: New file.
56089         * tests/unictype/test-block_list.c: New file.
56090         * tests/unictype/test-block_of.c: New file.
56091         * tests/unictype/test-block_test.c: New file.
56092         * tests/unictype/test-categ_and.c: New file.
56093         * tests/unictype/test-categ_and_not.c: New file.
56094         * tests/unictype/test-categ_byname.c: New file.
56095         * tests/unictype/test-categ_name.c: New file.
56096         * tests/unictype/test-categ_none.c: New file.
56097         * tests/unictype/test-categ_of.c: New file.
56098         * tests/unictype/test-categ_or.c: New file.
56099         * tests/unictype/test-categ_test_withtable.c: New file.
56100         * tests/unictype/test-combining.c: New file.
56101         * tests/unictype/test-decdigit.c: New file.
56102         * tests/unictype/test-digit.c: New file.
56103         * tests/unictype/test-mirror.c: New file.
56104         * tests/unictype/test-numeric.c: New file.
56105         * tests/unictype/test-pr_byname.c: New file.
56106         * tests/unictype/test-pr_test.c: New file.
56107         * tests/unictype/test-predicate-part1.h: New file.
56108         * tests/unictype/test-predicate-part2.h: New file.
56109         * tests/unictype/test-scripts.c: New file.
56110         * tests/unictype/test-sy_c_ident.c: New file.
56111         * tests/unictype/test-sy_java_ident.c: New file.
56112
56113         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
56114         for Unicode 5.0.0.
56115         * tests/unictype/test-categ_Cc.c: Likewise.
56116         * tests/unictype/test-categ_Cf.c: Likewise.
56117         * tests/unictype/test-categ_Cn.c: Likewise.
56118         * tests/unictype/test-categ_Co.c: Likewise.
56119         * tests/unictype/test-categ_Cs.c: Likewise.
56120         * tests/unictype/test-categ_L.c: Likewise.
56121         * tests/unictype/test-categ_Ll.c: Likewise.
56122         * tests/unictype/test-categ_Lm.c: Likewise.
56123         * tests/unictype/test-categ_Lo.c: Likewise.
56124         * tests/unictype/test-categ_Lt.c: Likewise.
56125         * tests/unictype/test-categ_Lu.c: Likewise.
56126         * tests/unictype/test-categ_M.c: Likewise.
56127         * tests/unictype/test-categ_Mc.c: Likewise.
56128         * tests/unictype/test-categ_Me.c: Likewise.
56129         * tests/unictype/test-categ_Mn.c: Likewise.
56130         * tests/unictype/test-categ_N.c: Likewise.
56131         * tests/unictype/test-categ_Nd.c: Likewise.
56132         * tests/unictype/test-categ_Nl.c: Likewise.
56133         * tests/unictype/test-categ_No.c: Likewise.
56134         * tests/unictype/test-categ_P.c: Likewise.
56135         * tests/unictype/test-categ_Pc.c: Likewise.
56136         * tests/unictype/test-categ_Pd.c: Likewise.
56137         * tests/unictype/test-categ_Pe.c: Likewise.
56138         * tests/unictype/test-categ_Pf.c: Likewise.
56139         * tests/unictype/test-categ_Pi.c: Likewise.
56140         * tests/unictype/test-categ_Po.c: Likewise.
56141         * tests/unictype/test-categ_Ps.c: Likewise.
56142         * tests/unictype/test-categ_S.c: Likewise.
56143         * tests/unictype/test-categ_Sc.c: Likewise.
56144         * tests/unictype/test-categ_Sk.c: Likewise.
56145         * tests/unictype/test-categ_Sm.c: Likewise.
56146         * tests/unictype/test-categ_So.c: Likewise.
56147         * tests/unictype/test-categ_Z.c: Likewise.
56148         * tests/unictype/test-categ_Zl.c: Likewise.
56149         * tests/unictype/test-categ_Zp.c: Likewise.
56150         * tests/unictype/test-categ_Zs.c: Likewise.
56151         * tests/unictype/test-ctype_alnum.c: Likewise.
56152         * tests/unictype/test-ctype_alpha.c: Likewise.
56153         * tests/unictype/test-ctype_blank.c: Likewise.
56154         * tests/unictype/test-ctype_cntrl.c: Likewise.
56155         * tests/unictype/test-ctype_digit.c: Likewise.
56156         * tests/unictype/test-ctype_graph.c: Likewise.
56157         * tests/unictype/test-ctype_lower.c: Likewise.
56158         * tests/unictype/test-ctype_print.c: Likewise.
56159         * tests/unictype/test-ctype_punct.c: Likewise.
56160         * tests/unictype/test-ctype_space.c: Likewise.
56161         * tests/unictype/test-ctype_upper.c: Likewise.
56162         * tests/unictype/test-ctype_xdigit.c: Likewise.
56163         * tests/unictype/test-decdigit.h: Likewise.
56164         * tests/unictype/test-digit.h: Likewise.
56165         * tests/unictype/test-numeric.h: Likewise.
56166         * tests/unictype/test-pr_alphabetic.c: Likewise.
56167         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
56168         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56169         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56170         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
56171         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56172         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
56173         * tests/unictype/test-pr_bidi_control.c: Likewise.
56174         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
56175         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
56176         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56177         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
56178         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56179         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56180         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56181         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56182         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
56183         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
56184         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
56185         * tests/unictype/test-pr_combining.c: Likewise.
56186         * tests/unictype/test-pr_composite.c: Likewise.
56187         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56188         * tests/unictype/test-pr_dash.c: Likewise.
56189         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56190         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
56191         * tests/unictype/test-pr_deprecated.c: Likewise.
56192         * tests/unictype/test-pr_diacritic.c: Likewise.
56193         * tests/unictype/test-pr_extender.c: Likewise.
56194         * tests/unictype/test-pr_format_control.c: Likewise.
56195         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56196         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56197         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56198         * tests/unictype/test-pr_hex_digit.c: Likewise.
56199         * tests/unictype/test-pr_hyphen.c: Likewise.
56200         * tests/unictype/test-pr_id_continue.c: Likewise.
56201         * tests/unictype/test-pr_id_start.c: Likewise.
56202         * tests/unictype/test-pr_ideographic.c: Likewise.
56203         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
56204         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
56205         * tests/unictype/test-pr_ignorable_control.c: Likewise.
56206         * tests/unictype/test-pr_iso_control.c: Likewise.
56207         * tests/unictype/test-pr_join_control.c: Likewise.
56208         * tests/unictype/test-pr_left_of_pair.c: Likewise.
56209         * tests/unictype/test-pr_line_separator.c: Likewise.
56210         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
56211         * tests/unictype/test-pr_lowercase.c: Likewise.
56212         * tests/unictype/test-pr_math.c: Likewise.
56213         * tests/unictype/test-pr_non_break.c: Likewise.
56214         * tests/unictype/test-pr_not_a_character.c: Likewise.
56215         * tests/unictype/test-pr_numeric.c: Likewise.
56216         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56217         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
56218         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
56219         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56220         * tests/unictype/test-pr_other_id_start.c: Likewise.
56221         * tests/unictype/test-pr_other_lowercase.c: Likewise.
56222         * tests/unictype/test-pr_other_math.c: Likewise.
56223         * tests/unictype/test-pr_other_uppercase.c: Likewise.
56224         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
56225         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
56226         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
56227         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
56228         * tests/unictype/test-pr_private_use.c: Likewise.
56229         * tests/unictype/test-pr_punctuation.c: Likewise.
56230         * tests/unictype/test-pr_quotation_mark.c: Likewise.
56231         * tests/unictype/test-pr_radical.c: Likewise.
56232         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56233         * tests/unictype/test-pr_soft_dotted.c: Likewise.
56234         * tests/unictype/test-pr_space.c: Likewise.
56235         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56236         * tests/unictype/test-pr_titlecase.c: Likewise.
56237         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56238         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56239         * tests/unictype/test-pr_uppercase.c: Likewise.
56240         * tests/unictype/test-pr_variation_selector.c: Likewise.
56241         * tests/unictype/test-pr_white_space.c: Likewise.
56242         * tests/unictype/test-pr_xid_continue.c: Likewise.
56243         * tests/unictype/test-pr_xid_start.c: Likewise.
56244         * tests/unictype/test-pr_zero_width.c: Likewise.
56245         * tests/unictype/test-sy_c_whitespace.c: Likewise.
56246         * tests/unictype/test-sy_java_whitespace.c: Likewise.
56247
56248 2007-11-12  Bruno Haible  <bruno@clisp.org>
56249
56250         Unicode character classification functions.
56251         * lib/unictype.h: New file.
56252         * modules/unictype/base: New file.
56253         * modules/unictype/category-L: New file.
56254         * modules/unictype/category-Lu: New file.
56255         * modules/unictype/category-Ll: New file.
56256         * modules/unictype/category-Lt: New file.
56257         * modules/unictype/category-Lm: New file.
56258         * modules/unictype/category-Lo: New file.
56259         * modules/unictype/category-M: New file.
56260         * modules/unictype/category-Mn: New file.
56261         * modules/unictype/category-Mc: New file.
56262         * modules/unictype/category-Me: New file.
56263         * modules/unictype/category-N: New file.
56264         * modules/unictype/category-Nd: New file.
56265         * modules/unictype/category-Nl: New file.
56266         * modules/unictype/category-No: New file.
56267         * modules/unictype/category-P: New file.
56268         * modules/unictype/category-Pc: New file.
56269         * modules/unictype/category-Pd: New file.
56270         * modules/unictype/category-Ps: New file.
56271         * modules/unictype/category-Pe: New file.
56272         * modules/unictype/category-Pi: New file.
56273         * modules/unictype/category-Pf: New file.
56274         * modules/unictype/category-Po: New file.
56275         * modules/unictype/category-S: New file.
56276         * modules/unictype/category-Sm: New file.
56277         * modules/unictype/category-Sc: New file.
56278         * modules/unictype/category-Sk: New file.
56279         * modules/unictype/category-So: New file.
56280         * modules/unictype/category-Z: New file.
56281         * modules/unictype/category-Zs: New file.
56282         * modules/unictype/category-Zl: New file.
56283         * modules/unictype/category-Zp: New file.
56284         * modules/unictype/category-C: New file.
56285         * modules/unictype/category-Cc: New file.
56286         * modules/unictype/category-Cf: New file.
56287         * modules/unictype/category-Cs: New file.
56288         * modules/unictype/category-Co: New file.
56289         * modules/unictype/category-Cn: New file.
56290         * modules/unictype/category-or: New file.
56291         * modules/unictype/category-of: New file.
56292         * modules/unictype/category-test: New file.
56293         * modules/unictype/category-test-withtable: New file.
56294         * modules/unictype/category-byname: New file.
56295         * modules/unictype/category-none: New file.
56296         * modules/unictype/category-and: New file.
56297         * modules/unictype/category-and-not: New file.
56298         * modules/unictype/category-name: New file.
56299         * modules/unictype/combining-class: New file.
56300         * modules/unictype/category-all: New file.
56301         * modules/unictype/bidicategory-all: New file.
56302         * modules/unictype/bidicategory-byname: New file.
56303         * modules/unictype/bidicategory-name: New file.
56304         * modules/unictype/bidicategory-of: New file.
56305         * modules/unictype/bidicategory-test: New file.
56306         * modules/unictype/decimal-digit: New file.
56307         * modules/unictype/digit: New file.
56308         * modules/unictype/numeric: New file.
56309         * modules/unictype/mirror: New file.
56310         * modules/unictype/property-white-space: New file.
56311         * modules/unictype/property-alphabetic: New file.
56312         * modules/unictype/property-other-alphabetic: New file.
56313         * modules/unictype/property-not-a-character: New file.
56314         * modules/unictype/property-default-ignorable-code-point: New file.
56315         * modules/unictype/property-other-default-ignorable-code-point: New
56316         file.
56317         * modules/unictype/property-deprecated: New file.
56318         * modules/unictype/property-logical-order-exception: New file.
56319         * modules/unictype/property-variation-selector: New file.
56320         * modules/unictype/property-private-use: New file.
56321         * modules/unictype/property-unassigned-code-value: New file.
56322         * modules/unictype/property-uppercase: New file.
56323         * modules/unictype/property-other-uppercase: New file.
56324         * modules/unictype/property-lowercase: New file.
56325         * modules/unictype/property-other-lowercase: New file.
56326         * modules/unictype/property-titlecase: New file.
56327         * modules/unictype/property-soft-dotted: New file.
56328         * modules/unictype/property-id-start: New file.
56329         * modules/unictype/property-other-id-start: New file.
56330         * modules/unictype/property-id-continue: New file.
56331         * modules/unictype/property-other-id-continue: New file.
56332         * modules/unictype/property-xid-start: New file.
56333         * modules/unictype/property-xid-continue: New file.
56334         * modules/unictype/property-pattern-white-space: New file.
56335         * modules/unictype/property-pattern-syntax: New file.
56336         * modules/unictype/property-join-control: New file.
56337         * modules/unictype/property-grapheme-base: New file.
56338         * modules/unictype/property-grapheme-extend: New file.
56339         * modules/unictype/property-other-grapheme-extend: New file.
56340         * modules/unictype/property-grapheme-link: New file.
56341         * modules/unictype/property-bidi-control: New file.
56342         * modules/unictype/property-bidi-left-to-right: New file.
56343         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
56344         * modules/unictype/property-bidi-arabic-right-to-left: New file.
56345         * modules/unictype/property-bidi-european-digit: New file.
56346         * modules/unictype/property-bidi-eur-num-separator: New file.
56347         * modules/unictype/property-bidi-eur-num-terminator: New file.
56348         * modules/unictype/property-bidi-arabic-digit: New file.
56349         * modules/unictype/property-bidi-common-separator: New file.
56350         * modules/unictype/property-bidi-block-separator: New file.
56351         * modules/unictype/property-bidi-segment-separator: New file.
56352         * modules/unictype/property-bidi-whitespace: New file.
56353         * modules/unictype/property-bidi-non-spacing-mark: New file.
56354         * modules/unictype/property-bidi-boundary-neutral: New file.
56355         * modules/unictype/property-bidi-pdf: New file.
56356         * modules/unictype/property-bidi-embedding-or-override: New file.
56357         * modules/unictype/property-bidi-other-neutral: New file.
56358         * modules/unictype/property-hex-digit: New file.
56359         * modules/unictype/property-ascii-hex-digit: New file.
56360         * modules/unictype/property-ideographic: New file.
56361         * modules/unictype/property-unified-ideograph: New file.
56362         * modules/unictype/property-radical: New file.
56363         * modules/unictype/property-ids-binary-operator: New file.
56364         * modules/unictype/property-ids-trinary-operator: New file.
56365         * modules/unictype/property-zero-width: New file.
56366         * modules/unictype/property-space: New file.
56367         * modules/unictype/property-non-break: New file.
56368         * modules/unictype/property-iso-control: New file.
56369         * modules/unictype/property-format-control: New file.
56370         * modules/unictype/property-dash: New file.
56371         * modules/unictype/property-hyphen: New file.
56372         * modules/unictype/property-punctuation: New file.
56373         * modules/unictype/property-line-separator: New file.
56374         * modules/unictype/property-paragraph-separator: New file.
56375         * modules/unictype/property-quotation-mark: New file.
56376         * modules/unictype/property-sentence-terminal: New file.
56377         * modules/unictype/property-terminal-punctuation: New file.
56378         * modules/unictype/property-currency-symbol: New file.
56379         * modules/unictype/property-math: New file.
56380         * modules/unictype/property-other-math: New file.
56381         * modules/unictype/property-paired-punctuation: New file.
56382         * modules/unictype/property-left-of-pair: New file.
56383         * modules/unictype/property-combining: New file.
56384         * modules/unictype/property-composite: New file.
56385         * modules/unictype/property-decimal-digit: New file.
56386         * modules/unictype/property-numeric: New file.
56387         * modules/unictype/property-diacritic: New file.
56388         * modules/unictype/property-extender: New file.
56389         * modules/unictype/property-ignorable-control: New file.
56390         * modules/unictype/property-test: New file.
56391         * modules/unictype/property-byname: New file.
56392         * modules/unictype/property-all: New file.
56393         * modules/unictype/scripts: New file.
56394         * modules/unictype/scripts-all: New file.
56395         * modules/unictype/block-of: New file.
56396         * modules/unictype/block-test: New file.
56397         * modules/unictype/block-list: New file.
56398         * modules/unictype/block-all: New file.
56399         * modules/unictype/syntax-c-whitespace: New file.
56400         * modules/unictype/syntax-java-whitespace: New file.
56401         * modules/unictype/syntax-c-ident: New file.
56402         * modules/unictype/syntax-java-ident: New file.
56403         * modules/unictype/ctype-alnum: New file.
56404         * modules/unictype/ctype-alpha: New file.
56405         * modules/unictype/ctype-cntrl: New file.
56406         * modules/unictype/ctype-digit: New file.
56407         * modules/unictype/ctype-graph: New file.
56408         * modules/unictype/ctype-lower: New file.
56409         * modules/unictype/ctype-print: New file.
56410         * modules/unictype/ctype-punct: New file.
56411         * modules/unictype/ctype-space: New file.
56412         * modules/unictype/ctype-upper: New file.
56413         * modules/unictype/ctype-xdigit: New file.
56414         * modules/unictype/ctype-blank: New file.
56415         * lib/unictype/bidi_byname.c: New file.
56416         * lib/unictype/bidi_name.c: New file.
56417         * lib/unictype/bidi_of.c: New file.
56418         * lib/unictype/bidi_test.c: New file.
56419         * lib/unictype/bitmap.h: New file.
56420         * lib/unictype/block_test.c: New file.
56421         * lib/unictype/blocks.c: New file.
56422         * lib/unictype/categ_C.c: New file.
56423         * lib/unictype/categ_Cc.c: New file.
56424         * lib/unictype/categ_Cf.c: New file.
56425         * lib/unictype/categ_Cn.c: New file.
56426         * lib/unictype/categ_Co.c: New file.
56427         * lib/unictype/categ_Cs.c: New file.
56428         * lib/unictype/categ_L.c: New file.
56429         * lib/unictype/categ_Ll.c: New file.
56430         * lib/unictype/categ_Lm.c: New file.
56431         * lib/unictype/categ_Lo.c: New file.
56432         * lib/unictype/categ_Lt.c: New file.
56433         * lib/unictype/categ_Lu.c: New file.
56434         * lib/unictype/categ_M.c: New file.
56435         * lib/unictype/categ_Mc.c: New file.
56436         * lib/unictype/categ_Me.c: New file.
56437         * lib/unictype/categ_Mn.c: New file.
56438         * lib/unictype/categ_N.c: New file.
56439         * lib/unictype/categ_Nd.c: New file.
56440         * lib/unictype/categ_Nl.c: New file.
56441         * lib/unictype/categ_No.c: New file.
56442         * lib/unictype/categ_P.c: New file.
56443         * lib/unictype/categ_Pc.c: New file.
56444         * lib/unictype/categ_Pd.c: New file.
56445         * lib/unictype/categ_Pe.c: New file.
56446         * lib/unictype/categ_Pf.c: New file.
56447         * lib/unictype/categ_Pi.c: New file.
56448         * lib/unictype/categ_Po.c: New file.
56449         * lib/unictype/categ_Ps.c: New file.
56450         * lib/unictype/categ_S.c: New file.
56451         * lib/unictype/categ_Sc.c: New file.
56452         * lib/unictype/categ_Sk.c: New file.
56453         * lib/unictype/categ_Sm.c: New file.
56454         * lib/unictype/categ_So.c: New file.
56455         * lib/unictype/categ_Z.c: New file.
56456         * lib/unictype/categ_Zl.c: New file.
56457         * lib/unictype/categ_Zp.c: New file.
56458         * lib/unictype/categ_Zs.c: New file.
56459         * lib/unictype/categ_and.c: New file.
56460         * lib/unictype/categ_and_not.c: New file.
56461         * lib/unictype/categ_byname.c: New file.
56462         * lib/unictype/categ_name.c: New file.
56463         * lib/unictype/categ_none.c: New file.
56464         * lib/unictype/categ_of.c: New file.
56465         * lib/unictype/categ_or.c: New file.
56466         * lib/unictype/categ_test.c: New file.
56467         * lib/unictype/combining.c: New file.
56468         * lib/unictype/ctype_alnum.c: New file.
56469         * lib/unictype/ctype_alpha.c: New file.
56470         * lib/unictype/ctype_blank.c: New file.
56471         * lib/unictype/ctype_cntrl.c: New file.
56472         * lib/unictype/ctype_digit.c: New file.
56473         * lib/unictype/ctype_graph.c: New file.
56474         * lib/unictype/ctype_lower.c: New file.
56475         * lib/unictype/ctype_print.c: New file.
56476         * lib/unictype/ctype_punct.c: New file.
56477         * lib/unictype/ctype_space.c: New file.
56478         * lib/unictype/ctype_upper.c: New file.
56479         * lib/unictype/ctype_xdigit.c: New file.
56480         * lib/unictype/decdigit.c: New file.
56481         * lib/unictype/digit.c: New file.
56482         * lib/unictype/identsyntaxmap.h: New file.
56483         * lib/unictype/mirror.c: New file.
56484         * lib/unictype/numeric.c: New file.
56485         * lib/unictype/pr_alphabetic.c: New file.
56486         * lib/unictype/pr_ascii_hex_digit.c: New file.
56487         * lib/unictype/pr_bidi_arabic_digit.c: New file.
56488         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
56489         * lib/unictype/pr_bidi_block_separator.c: New file.
56490         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
56491         * lib/unictype/pr_bidi_common_separator.c: New file.
56492         * lib/unictype/pr_bidi_control.c: New file.
56493         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
56494         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
56495         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
56496         * lib/unictype/pr_bidi_european_digit.c: New file.
56497         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
56498         * lib/unictype/pr_bidi_left_to_right.c: New file.
56499         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
56500         * lib/unictype/pr_bidi_other_neutral.c: New file.
56501         * lib/unictype/pr_bidi_pdf.c: New file.
56502         * lib/unictype/pr_bidi_segment_separator.c: New file.
56503         * lib/unictype/pr_bidi_whitespace.c: New file.
56504         * lib/unictype/pr_byname.c: New file.
56505         * lib/unictype/pr_byname.gperf: New file.
56506         * lib/unictype/pr_combining.c: New file.
56507         * lib/unictype/pr_composite.c: New file.
56508         * lib/unictype/pr_currency_symbol.c: New file.
56509         * lib/unictype/pr_dash.c: New file.
56510         * lib/unictype/pr_decimal_digit.c: New file.
56511         * lib/unictype/pr_default_ignorable_code_point.c: New file.
56512         * lib/unictype/pr_deprecated.c: New file.
56513         * lib/unictype/pr_diacritic.c: New file.
56514         * lib/unictype/pr_extender.c: New file.
56515         * lib/unictype/pr_format_control.c: New file.
56516         * lib/unictype/pr_grapheme_base.c: New file.
56517         * lib/unictype/pr_grapheme_extend.c: New file.
56518         * lib/unictype/pr_grapheme_link.c: New file.
56519         * lib/unictype/pr_hex_digit.c: New file.
56520         * lib/unictype/pr_hyphen.c: New file.
56521         * lib/unictype/pr_id_continue.c: New file.
56522         * lib/unictype/pr_id_start.c: New file.
56523         * lib/unictype/pr_ideographic.c: New file.
56524         * lib/unictype/pr_ids_binary_operator.c: New file.
56525         * lib/unictype/pr_ids_trinary_operator.c: New file.
56526         * lib/unictype/pr_ignorable_control.c: New file.
56527         * lib/unictype/pr_iso_control.c: New file.
56528         * lib/unictype/pr_join_control.c: New file.
56529         * lib/unictype/pr_left_of_pair.c: New file.
56530         * lib/unictype/pr_line_separator.c: New file.
56531         * lib/unictype/pr_logical_order_exception.c: New file.
56532         * lib/unictype/pr_lowercase.c: New file.
56533         * lib/unictype/pr_math.c: New file.
56534         * lib/unictype/pr_non_break.c: New file.
56535         * lib/unictype/pr_not_a_character.c: New file.
56536         * lib/unictype/pr_numeric.c: New file.
56537         * lib/unictype/pr_other_alphabetic.c: New file.
56538         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
56539         * lib/unictype/pr_other_grapheme_extend.c: New file.
56540         * lib/unictype/pr_other_id_continue.c: New file.
56541         * lib/unictype/pr_other_id_start.c: New file.
56542         * lib/unictype/pr_other_lowercase.c: New file.
56543         * lib/unictype/pr_other_math.c: New file.
56544         * lib/unictype/pr_other_uppercase.c: New file.
56545         * lib/unictype/pr_paired_punctuation.c: New file.
56546         * lib/unictype/pr_paragraph_separator.c: New file.
56547         * lib/unictype/pr_pattern_syntax.c: New file.
56548         * lib/unictype/pr_pattern_white_space.c: New file.
56549         * lib/unictype/pr_private_use.c: New file.
56550         * lib/unictype/pr_punctuation.c: New file.
56551         * lib/unictype/pr_quotation_mark.c: New file.
56552         * lib/unictype/pr_radical.c: New file.
56553         * lib/unictype/pr_sentence_terminal.c: New file.
56554         * lib/unictype/pr_soft_dotted.c: New file.
56555         * lib/unictype/pr_space.c: New file.
56556         * lib/unictype/pr_terminal_punctuation.c: New file.
56557         * lib/unictype/pr_test.c: New file.
56558         * lib/unictype/pr_titlecase.c: New file.
56559         * lib/unictype/pr_unassigned_code_value.c: New file.
56560         * lib/unictype/pr_unified_ideograph.c: New file.
56561         * lib/unictype/pr_uppercase.c: New file.
56562         * lib/unictype/pr_variation_selector.c: New file.
56563         * lib/unictype/pr_white_space.c: New file.
56564         * lib/unictype/pr_xid_continue.c: New file.
56565         * lib/unictype/pr_xid_start.c: New file.
56566         * lib/unictype/pr_zero_width.c: New file.
56567         * lib/unictype/scripts.c: New file.
56568         * lib/unictype/sy_c_ident.c: New file.
56569         * lib/unictype/sy_c_whitespace.c: New file.
56570         * lib/unictype/sy_java_ident.c: New file.
56571         * lib/unictype/sy_java_whitespace.c: New file.
56572
56573         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
56574         Unicode 5.0.0.
56575         * lib/unictype/blocks.h: Likewise.
56576         * lib/unictype/categ_C.h: Likewise.
56577         * lib/unictype/categ_Cc.h: Likewise.
56578         * lib/unictype/categ_Cf.h: Likewise.
56579         * lib/unictype/categ_Cn.h: Likewise.
56580         * lib/unictype/categ_Co.h: Likewise.
56581         * lib/unictype/categ_Cs.h: Likewise.
56582         * lib/unictype/categ_L.h: Likewise.
56583         * lib/unictype/categ_Ll.h: Likewise.
56584         * lib/unictype/categ_Lm.h: Likewise.
56585         * lib/unictype/categ_Lo.h: Likewise.
56586         * lib/unictype/categ_Lt.h: Likewise.
56587         * lib/unictype/categ_Lu.h: Likewise.
56588         * lib/unictype/categ_M.h: Likewise.
56589         * lib/unictype/categ_Mc.h: Likewise.
56590         * lib/unictype/categ_Me.h: Likewise.
56591         * lib/unictype/categ_Mn.h: Likewise.
56592         * lib/unictype/categ_N.h: Likewise.
56593         * lib/unictype/categ_Nd.h: Likewise.
56594         * lib/unictype/categ_Nl.h: Likewise.
56595         * lib/unictype/categ_No.h: Likewise.
56596         * lib/unictype/categ_P.h: Likewise.
56597         * lib/unictype/categ_Pc.h: Likewise.
56598         * lib/unictype/categ_Pd.h: Likewise.
56599         * lib/unictype/categ_Pe.h: Likewise.
56600         * lib/unictype/categ_Pf.h: Likewise.
56601         * lib/unictype/categ_Pi.h: Likewise.
56602         * lib/unictype/categ_Po.h: Likewise.
56603         * lib/unictype/categ_Ps.h: Likewise.
56604         * lib/unictype/categ_S.h: Likewise.
56605         * lib/unictype/categ_Sc.h: Likewise.
56606         * lib/unictype/categ_Sk.h: Likewise.
56607         * lib/unictype/categ_Sm.h: Likewise.
56608         * lib/unictype/categ_So.h: Likewise.
56609         * lib/unictype/categ_Z.h: Likewise.
56610         * lib/unictype/categ_Zl.h: Likewise.
56611         * lib/unictype/categ_Zp.h: Likewise.
56612         * lib/unictype/categ_Zs.h: Likewise.
56613         * lib/unictype/categ_of.h: Likewise.
56614         * lib/unictype/combining.h: Likewise.
56615         * lib/unictype/ctype_alnum.h: Likewise.
56616         * lib/unictype/ctype_alpha.h: Likewise.
56617         * lib/unictype/ctype_blank.h: Likewise.
56618         * lib/unictype/ctype_cntrl.h: Likewise.
56619         * lib/unictype/ctype_digit.h: Likewise.
56620         * lib/unictype/ctype_graph.h: Likewise.
56621         * lib/unictype/ctype_lower.h: Likewise.
56622         * lib/unictype/ctype_print.h: Likewise.
56623         * lib/unictype/ctype_punct.h: Likewise.
56624         * lib/unictype/ctype_space.h: Likewise.
56625         * lib/unictype/ctype_upper.h: Likewise.
56626         * lib/unictype/ctype_xdigit.h: Likewise.
56627         * lib/unictype/decdigit.h: Likewise.
56628         * lib/unictype/digit.h: Likewise.
56629         * lib/unictype/mirror.h: Likewise.
56630         * lib/unictype/numeric.h: Likewise.
56631         * lib/unictype/pr_alphabetic.h: Likewise.
56632         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56633         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56634         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56635         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56636         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56637         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56638         * lib/unictype/pr_bidi_control.h: Likewise.
56639         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56640         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56641         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56642         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56643         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56644         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56645         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56646         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56647         * lib/unictype/pr_bidi_pdf.h: Likewise.
56648         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56649         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56650         * lib/unictype/pr_combining.h: Likewise.
56651         * lib/unictype/pr_composite.h: Likewise.
56652         * lib/unictype/pr_currency_symbol.h: Likewise.
56653         * lib/unictype/pr_dash.h: Likewise.
56654         * lib/unictype/pr_decimal_digit.h: Likewise.
56655         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56656         * lib/unictype/pr_deprecated.h: Likewise.
56657         * lib/unictype/pr_diacritic.h: Likewise.
56658         * lib/unictype/pr_extender.h: Likewise.
56659         * lib/unictype/pr_format_control.h: Likewise.
56660         * lib/unictype/pr_grapheme_base.h: Likewise.
56661         * lib/unictype/pr_grapheme_extend.h: Likewise.
56662         * lib/unictype/pr_grapheme_link.h: Likewise.
56663         * lib/unictype/pr_hex_digit.h: Likewise.
56664         * lib/unictype/pr_hyphen.h: Likewise.
56665         * lib/unictype/pr_id_continue.h: Likewise.
56666         * lib/unictype/pr_id_start.h: Likewise.
56667         * lib/unictype/pr_ideographic.h: Likewise.
56668         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56669         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56670         * lib/unictype/pr_ignorable_control.h: Likewise.
56671         * lib/unictype/pr_iso_control.h: Likewise.
56672         * lib/unictype/pr_join_control.h: Likewise.
56673         * lib/unictype/pr_left_of_pair.h: Likewise.
56674         * lib/unictype/pr_line_separator.h: Likewise.
56675         * lib/unictype/pr_logical_order_exception.h: Likewise.
56676         * lib/unictype/pr_lowercase.h: Likewise.
56677         * lib/unictype/pr_math.h: Likewise.
56678         * lib/unictype/pr_non_break.h: Likewise.
56679         * lib/unictype/pr_not_a_character.h: Likewise.
56680         * lib/unictype/pr_numeric.h: Likewise.
56681         * lib/unictype/pr_other_alphabetic.h: Likewise.
56682         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56683         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56684         * lib/unictype/pr_other_id_continue.h: Likewise.
56685         * lib/unictype/pr_other_id_start.h: Likewise.
56686         * lib/unictype/pr_other_lowercase.h: Likewise.
56687         * lib/unictype/pr_other_math.h: Likewise.
56688         * lib/unictype/pr_other_uppercase.h: Likewise.
56689         * lib/unictype/pr_paired_punctuation.h: Likewise.
56690         * lib/unictype/pr_paragraph_separator.h: Likewise.
56691         * lib/unictype/pr_pattern_syntax.h: Likewise.
56692         * lib/unictype/pr_pattern_white_space.h: Likewise.
56693         * lib/unictype/pr_private_use.h: Likewise.
56694         * lib/unictype/pr_punctuation.h: Likewise.
56695         * lib/unictype/pr_quotation_mark.h: Likewise.
56696         * lib/unictype/pr_radical.h: Likewise.
56697         * lib/unictype/pr_sentence_terminal.h: Likewise.
56698         * lib/unictype/pr_soft_dotted.h: Likewise.
56699         * lib/unictype/pr_space.h: Likewise.
56700         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56701         * lib/unictype/pr_titlecase.h: Likewise.
56702         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56703         * lib/unictype/pr_unified_ideograph.h: Likewise.
56704         * lib/unictype/pr_uppercase.h: Likewise.
56705         * lib/unictype/pr_variation_selector.h: Likewise.
56706         * lib/unictype/pr_white_space.h: Likewise.
56707         * lib/unictype/pr_xid_continue.h: Likewise.
56708         * lib/unictype/pr_xid_start.h: Likewise.
56709         * lib/unictype/pr_zero_width.h: Likewise.
56710         * lib/unictype/scripts.h: Likewise.
56711         * lib/unictype/scripts_byname.gperf: Likewise.
56712         * lib/unictype/sy_c_ident.h: Likewise.
56713         * lib/unictype/sy_c_whitespace.h: Likewise.
56714         * lib/unictype/sy_java_ident.h: Likewise.
56715         * lib/unictype/sy_java_whitespace.h: Likewise.
56716
56717         * lib/unictype/Makefile: New file.
56718         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
56719         glibc.
56720         * lib/unictype/3level.h: New file, copied from glibc.
56721         * lib/unictype/3levelbit.h: New file.
56722
56723 2007-11-11  Bruno Haible  <bruno@clisp.org>
56724
56725         * modules/gperf: New file.
56726         * modules/iconv_open (Depends-on): Add it.
56727         (Makefile.am): Remove the GPERF definition.
56728
56729 2007-11-11  Bruno Haible  <bruno@clisp.org>
56730
56731         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
56732         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
56733
56734 2007-11-11  Bruno Haible  <bruno@clisp.org>
56735
56736         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
56737         (usage): Remove function.
56738
56739 2007-11-11  Bruno Haible  <bruno@clisp.org>
56740
56741         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
56742         gl_FUNC_CEILF_LIBS.
56743         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
56744         gl_FUNC_CEIL_LIBS.
56745         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
56746         gl_FUNC_CEILL_LIBS.
56747         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
56748         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
56749         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
56750
56751 2007-11-11  Bruno Haible  <bruno@clisp.org>
56752
56753         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
56754         roundf were declared but do not exist on functions.
56755         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
56756         roundl were declared but do not exist on functions.
56757         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
56758         HAVE_FLOORL_AND_CEILL, respectively.
56759         Needed for Sun C on Solaris 10.
56760
56761 2007-11-11  Bruno Haible  <bruno@clisp.org>
56762
56763         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
56764         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
56765         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
56766         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
56767         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
56768         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
56769         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
56770         HAVE_DECL_ROUNDF.
56771         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
56772         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
56773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
56774         of HAVE_DECL_ROUND*.
56775         * modules/math (Makefile.am): Update.
56776
56777 2007-11-10  Bruno Haible  <bruno@clisp.org>
56778
56779         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
56780         ptrdiff_t as m4/intl.m4.
56781
56782 2007-11-10  Jim Meyering  <meyering@redhat.com>
56783
56784         Avoid link failure for the argmatch test.
56785         * tests/test-argmatch.c (usage): Define function to avoid a link
56786         failure: argmatch_die requires a usage function.
56787
56788 2007-11-09  Bruno Haible  <bruno@clisp.org>
56789
56790         * doc/functions/snprintf.texi: Mention BeOS deficiency.
56791         * doc/functions/vsnprintf.texi: Likewise.
56792         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
56793         with a size argument < 2.
56794
56795 2007-11-09  Bruno Haible  <bruno@clisp.org>
56796
56797         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
56798         buffer. Fixes an inefficiency introduced on 2007-11-03.
56799
56800 2007-11-09  Bruno Haible  <bruno@clisp.org>
56801
56802         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
56803         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
56804
56805 2007-11-08  Jim Meyering  <meyering@redhat.com>
56806
56807         Change cache variable name prefix "jm_" to "gl_" everywhere.
56808         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
56809         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
56810         * m4/uptime.m4: s/gl_/jm_/
56811
56812 2007-11-07  Bruno Haible  <bruno@clisp.org>
56813
56814         Update to GNU gettext 0.17.
56815         * m4/intl.m4: Update to GNU gettext 0.17.
56816         * m4/po.m4: Likewise.
56817         * modules/gettext (Files): Remove m4/ulonglong.m4.
56818         (configure.ac): Require gettext infrastructure from version 0.17.
56819
56820 2007-11-06  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
56823         symbolic values are not defined in a public header.
56824         * lib/freadable.c (freadable) [QNX]: Likewise.
56825         * lib/freadahead.c (freadahead) [QNX]: Likewise.
56826         * lib/freading.c (freading) [QNX]: Likewise.
56827         * lib/fseterr.c (fseterr) [QNX]: Likewise.
56828         * lib/fwritable.c (fwritable) [QNX]: Likewise.
56829         * lib/fwriting.c (fwriting) [QNX]: Likewise.
56830         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
56831         Reported by Alain Magloire.
56832
56833         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
56834
56835 2007-11-05  Bruno Haible  <bruno@clisp.org>
56836
56837         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
56838         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
56839         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
56840         Reported by Eric Blake.
56841
56842 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56843             Bruno Haible  <bruno@clisp.org>
56844
56845         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
56846         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
56847         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
56848         (malloc): Undefine also before including <stdlib.h>.
56849         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
56850         Needed on OSF/1 4.0.
56851
56852 2007-11-05  Jim Meyering  <meyering@redhat.com>
56853
56854         git-version-gen: sync from coreutils.
56855         * build-aux/git-version-gen: Add comments.
56856         Change the first '-' to '.' in the snapshot version string,
56857         e.g., 6.9-377-08144 -> 6.9.377-08144
56858         Remove first parameter.
56859         Don't declare a version "-dirty" merely because a time
56860         stamp has changed.
56861
56862 2007-11-04  Bruno Haible  <bruno@clisp.org>
56863
56864         * lib/lock.h: Protect all macro definitions containing an 'if'
56865         statement through a "do { ... } while (0)".
56866         * lib/tls.h: Likewise.
56867
56868 2007-11-04  Bruno Haible  <bruno@clisp.org>
56869
56870         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
56871
56872 2007-11-04  Bruno Haible  <bruno@clisp.org>
56873
56874         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
56875         * modules/fprintf-posix (Depends-on): Add nocrash.
56876         * modules/snprintf-posix (Depends-on): Likewise.
56877         * modules/sprintf-posix (Depends-on): Likewise.
56878         * modules/vasnprintf-posix (Depends-on): Likewise.
56879         * modules/vasprintf-posix (Depends-on): Likewise.
56880         * modules/vfprintf-posix (Depends-on): Likewise.
56881         * modules/vsnprintf-posix (Depends-on): Likewise.
56882         * modules/vsprintf-posix (Depends-on): Likewise.
56883         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56884         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56885         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56886         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56887         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56888         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56889         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56890
56891 2007-11-04  Bruno Haible  <bruno@clisp.org>
56892
56893         * modules/nocrash: New file.
56894         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
56895         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
56896
56897 2007-11-04  Bruno Haible  <bruno@clisp.org>
56898
56899         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
56900         precision handling.
56901         * tests/test-vasprintf-posix.c (test_function): Likewise.
56902         * tests/test-snprintf-posix.h (test_function): Likewise.
56903         * tests/test-sprintf-posix.h (test_function): Likewise.
56904
56905         Fix *printf behaviour for large precisions on mingw and BeOS.
56906         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
56907         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
56908         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
56909         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56910         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56911         gl_PRINTF_PRECISION and test its result. Invoke
56912         gl_PREREQ_VASNPRINTF_PRECISION.
56913         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56914         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56915         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56917         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56919         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56920         * doc/functions/fprintf.texi: Update.
56921         * doc/functions/printf.texi: Update.
56922         * doc/functions/snprintf.texi: Update.
56923         * doc/functions/sprintf.texi: Update.
56924         * doc/functions/vfprintf.texi: Update.
56925         * doc/functions/vprintf.texi: Update.
56926         * doc/functions/vsnprintf.texi: Update.
56927         * doc/functions/vsprintf.texi: Update.
56928
56929 2007-11-04  Bruno Haible  <bruno@clisp.org>
56930
56931         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
56932
56933 2007-11-04  Bruno Haible  <bruno@clisp.org>
56934
56935         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
56936         Reported by Sylvain Beucler <beuc@gnu.org>.
56937
56938 2007-11-03  Bruno Haible  <bruno@clisp.org>
56939
56940         * tests/test-fprintf-posix2.sh: New file.
56941         * tests/test-fprintf-posix2.c: New file.
56942         * modules/fprintf-posix-tests (Files): Add them.
56943         (TESTS): Add test-fprintf-posix2.sh.
56944         (configure.ac): Check for getrlimit and setrlimit.
56945         (check_PROGRAMS): Add test-fprintf-posix2.
56946
56947         * tests/test-printf-posix2.sh: New file.
56948         * tests/test-printf-posix2.c: New file.
56949         * modules/printf-posix-tests (Files): Add them.
56950         (TESTS): Add test-printf-posix2.sh.
56951         (configure.ac): Check for getrlimit and setrlimit.
56952         (check_PROGRAMS): Add test-printf-posix2.
56953
56954         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
56955         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
56956         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
56957         (decode_double): New function, copied from decode_long_double.
56958         (scale10_round_decimal_decoded): New function, extracted from
56959         scale10_round_decimal_long_double.
56960         (scale10_round_decimal_long_double): Use it.
56961         (scale10_round_decimal_double): New function.
56962         (floorlog10): New function.
56963         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
56964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
56965         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56966         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56967         gl_PRINTF_ENOMEM and test its result. Invoke
56968         gl_PREREQ_VASNPRINTF_ENOMEM.
56969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56971         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56972         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56973         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56974         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56975         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56976         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
56977         * modules/snprintf-posix (Depends-on): Likewise.
56978         * modules/sprintf-posix (Depends-on): Likewise.
56979         * modules/vasnprintf-posix (Depends-on): Likewise.
56980         * modules/vasprintf-posix (Depends-on): Likewise.
56981         * modules/vfprintf-posix (Depends-on): Likewise.
56982         * modules/vsnprintf-posix (Depends-on): Likewise.
56983         * modules/vsprintf-posix (Depends-on): Likewise.
56984         * doc/functions/fprintf.texi: Update.
56985         * doc/functions/printf.texi: Update.
56986         * doc/functions/snprintf.texi: Update.
56987         * doc/functions/sprintf.texi: Update.
56988         * doc/functions/vfprintf.texi: Update.
56989         * doc/functions/vprintf.texi: Update.
56990         * doc/functions/vsnprintf.texi: Update.
56991         * doc/functions/vsprintf.texi: Update.
56992
56993 2007-11-03  Bruno Haible  <bruno@clisp.org>
56994
56995         * modules/frexp-nolibm-tests: New file.
56996
56997         * modules/frexp-nolibm: New file.
56998         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
56999
57000 2007-11-03  Bruno Haible  <bruno@clisp.org>
57001
57002         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
57003         value is C99 compliant.
57004         Needed for OSF/1 5.1.
57005
57006 2007-11-03  Bruno Haible  <bruno@clisp.org>
57007
57008         Fix out-of-memory handling of vasnprintf.
57009         * lib/printf-parse.c: Include <errno.h>.
57010         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
57011         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
57012         is already set.
57013
57014 2007-11-02  Eric Blake  <ebb9@byu.net>
57015
57016         Fix tests on cygwin.
57017         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
57018
57019 2007-11-01  Bruno Haible  <bruno@clisp.org>
57020
57021         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
57022         warning.
57023         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
57024         needed for POSIX compatibility.
57025
57026 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57027
57028         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
57029         for compatibility with GNU.
57030
57031 2007-11-01  Bruno Haible  <bruno@clisp.org>
57032
57033         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
57034         (putenv): Renamed from rpl_putenv. Change argument type from
57035         'const char *' to 'char *'.
57036         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
57037         of defining putenv in config.h, just set REPLACE_PUTENV.
57038         * modules/putenv (Depends-on): Add stdlib.
57039         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57040         (Include): Use <stdlib.h>.
57041         * lib/stdlib.in.h (putenv): New declaration.
57042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
57043         REPLACE_PUTENV.
57044         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
57045         REPLACE_PUTENV.
57046         Needed for MacOS X 10.5.0.
57047         Reported by Peter O'Gorman <peter@pogma.com>.
57048
57049 2007-11-01  Jim Meyering  <meyering@redhat.com>
57050
57051         Treat an empty date string exactly like "0".
57052         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
57053         if the remaining date string (to be parsed) is empty, use "0".
57054         Reported by Mischa Molhoek and discussed in this thread:
57055         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
57056
57057 2007-10-31  Bruno Haible  <bruno@clisp.org>
57058
57059         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
57060         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
57061         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
57062         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
57063         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
57064         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
57065
57066 2007-10-31  Bruno Haible  <bruno@clisp.org>
57067
57068         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
57069         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
57070         (AC_TYPE_LONG_LONG_INT): Use it.
57071         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
57072         it as well.
57073         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
57074         to m4/longlong.m4.
57075         * modules/stdint (Files): Remove m4/ulonglong.m4.
57076         * modules/strtoull (Files): Use m4/longlong.m4 instead of
57077         m4/ulonglong.m4.
57078         * modules/strtoumax (Files): Likewise.
57079
57080 2007-10-30  Bruno Haible  <bruno@clisp.org>
57081
57082         * modules/xvasprintf-posix: New file.
57083         Suggested by Eric Blake.
57084
57085 2007-10-30  Bruno Haible  <bruno@clisp.org>
57086
57087         * modules/xprintf-posix-tests: New file.
57088         * tests/test-xprintf-posix.sh: New file.
57089         * tests/test-xprintf-posix.c: New file.
57090         * tests/test-xfprintf-posix.c: New file.
57091
57092         * modules/xprintf-posix: New file.
57093
57094 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57095
57096         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
57097         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
57098         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
57099
57100 2007-10-29  Bruno Haible  <bruno@clisp.org>
57101
57102         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
57103         contain the special marker '_cv_'.
57104         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
57105         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
57106         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
57107         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
57108         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
57109         Reported by Ralf Wildenhues.
57110
57111 2007-10-29  Bruno Haible  <bruno@clisp.org>
57112
57113         * gnulib-tool (func_import): When --lgpl is not specified, set
57114         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
57115         GPLv3.
57116         Reported by Simon Josefsson.
57117
57118 2007-10-28  Bruno Haible  <bruno@clisp.org>
57119
57120         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
57121         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
57122         HAVE_DECL_ISFINITE.
57123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57124         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
57125         HAVE_DECL_ISFINITE.
57126
57127 2007-10-28  Bruno Haible  <bruno@clisp.org>
57128
57129         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
57130         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
57131
57132 2007-10-28  Bruno Haible  <bruno@clisp.org>
57133
57134         Fix link errors with Sun C 5.0 on Solaris 10.
57135         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
57136         function is declared but not present in the compiler's libm.
57137         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
57138         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
57139         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
57140         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
57141         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
57142         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
57143         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
57144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57145         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
57146         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
57147         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
57148         HAVE_DECL_FLOORL.
57149
57150 2007-10-28  Bruno Haible  <bruno@clisp.org>
57151
57152         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
57153         gl_FUNC_FLOORL. Cache the result.
57154         (gl_FUNC_FLOORL): Use it.
57155         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
57156         gl_FUNC_CEILL. Cache the result.
57157         (gl_FUNC_CEILL): Use it.
57158
57159         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
57160         gl_FUNC_FLOOR. Cache the result.
57161         (gl_FUNC_FLOOR): Use it.
57162         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
57163         gl_FUNC_CEIL. Cache the result.
57164         (gl_FUNC_CEIL): Use it.
57165
57166         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
57167         gl_FUNC_FLOORF. Cache the result.
57168         (gl_FUNC_FLOORF): Use it.
57169         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
57170         gl_FUNC_CEILF. Cache the result.
57171         (gl_FUNC_CEILF): Use it.
57172
57173 2007-10-28  Bruno Haible  <bruno@clisp.org>
57174
57175         * gnulib-tool: Allow specifying the LGPL version number through
57176         --lgpl=2 or --lgpl=3.
57177         (func_usage): Document --lgpl with argument.
57178         Handle --lgpl=... arguments.
57179         (func_import): Recognize also gl_LGPL calls with an argument. When
57180         --lgpl=2 is used and the module's license is just LGPL, report an
57181         error. Set sed_transform_lib_file according to the lgpl variable. In
57182         the generated files, use --lgpl or gl_LGPL invocations with argument,
57183         if necessary.
57184         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
57185         an LGPv2+ license.
57186         * doc/gnulib-tool.texi (Modified imports): Update explanation of
57187         gl_LGPL macro.
57188
57189 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57190             Bruno Haible  <bruno@clisp.org>
57191
57192         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
57193         (u16_uctomb_aux): Likewise.
57194         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
57195         !HAVE_INLINE.
57196         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
57197
57198 2007-10-28  Bruno Haible  <bruno@clisp.org>
57199
57200         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
57201         Invoke AM_GETTEXT_OPTION if it exists.
57202         * modules/vasprintf: Likewise.
57203         * modules/verror: Likewise.
57204         * modules/xprintf: Likewise.
57205         * modules/xvasprintf: Likewise.
57206
57207 2007-10-27  Ben Pfaff  <blp@gnu.org>
57208
57209         * lib/math.in.h: Define isfinite macro and prototypes for
57210         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
57211         implementations.
57212         * m4/math_h.m4: New substitutions for isfinite module.
57213         * lib/isfinite.c: New file.
57214         * m4/isfinite.m4: New file.
57215         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
57216         * modules/isfinite: New file.
57217         * modules/isfinite-tests: New file.
57218         * tests/tests-isfinite.c: New file.
57219         * doc/functions/isfinite.texi: Mention isfinite module.
57220         * MODULES.html.sh: Mention new module.
57221
57222 2007-10-27  Ben Pfaff  <blp@gnu.org>
57223
57224         Ralf Wildenhues reported that Tru64 4.0D declares the round
57225         functions but does not have definitions.
57226         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
57227         cannot be found in any library, set the output variable to
57228         "missing" instead of "".
57229         * m4/round.m4: Also use our substitute if we cannot find round in
57230         any library, even if it is declared.
57231         * m4/roundf.m4: Likewise for roundf.
57232         * m4/roundl.m4: Likewise for roundl.
57233         * lib/math.in.h: Undefine roundf, round, roundl before defining
57234         their replacements, to allow for hypothetical systems where these
57235         may be defined as macros but not available in libraries.
57236
57237 2007-10-27  Bruno Haible  <bruno@clisp.org>
57238
57239         * doc/gnulib.texi: Invoke @firstparagraphindent.
57240         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
57241         changes in gnulib.
57242         (Source changes): New section.
57243
57244 2007-10-26  Bruno Haible  <bruno@clisp.org>
57245
57246         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
57247         borrowed from autoconf.
57248
57249 2007-10-26  Bruno Haible  <bruno@clisp.org>
57250
57251         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
57252         strerror returned the empty string. Needed on HP-UX 11.00.
57253
57254 2007-10-24  Micah Cowan  <micah@cowan.name>
57255
57256         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
57257         * build-aux/bootstrap: Remove support for now-unnecessary option,
57258         --cvs-user, and envvars CVS_USER, CVS_RSH.
57259
57260 2007-10-24  Jim Meyering  <meyering@redhat.com>
57261
57262         Avoid diagnostics from sha1sum when there is no cached checksum.
57263         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
57264         if the po.s1 file hasn't been created yet.
57265
57266         * build-aux/bootstrap: Sync from coreutils:
57267         2007-10-24  Jim Meyering  <meyering@redhat.com>
57268         Get gnulib from the git repository, not from an obsolete cvs one.
57269         * build-aux/bootstrap: Suggestion from Micah Cowan.
57270         2007-10-04  Jim Meyering  <jim@meyering.net>
57271         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
57272         (update_po_files): Work also when there are no .po files in po/.
57273
57274 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57275
57276         * README: Append ".git" to git and cg examples.
57277         Problem reported by Benoit Sigoure.
57278
57279 2007-10-23  Micah Cowan  <micah@cowan.name>
57280
57281         * users.txt: Add wget.
57282
57283 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57284
57285         Fix linking of some unistdio tests on FreeBSD.
57286         * modules/unistdio/u16-vsnprintf-tests
57287         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
57288         * modules/unistdio/u16-vsprintf-tests
57289         (test_u16_vsnprintf1_LDADD): Likewise.
57290         * modules/unistdio/u32-vsnprintf-tests
57291         (test_u32_vsnprintf1_LDADD): Likewise.
57292         * modules/unistdio/u32-vsprintf-tests
57293         (test_u32_vsprintf1_LDADD): Likewise.
57294         * modules/unistdio/u8-vsnprintf-tests
57295         (test_u8_vsnprintf1_LDADD): Likewise.
57296         * modules/unistdio/u8-vsprintf-tests
57297         (test_u8_vsprintf1_LDADD): Likewise.
57298         * modules/unistdio/ulc-vsnprintf-tests
57299         (test_ulc_vsnprintf1_LDADD): Likewise.
57300         * modules/unistdio/ulc-vsprintf-tests
57301         (test_ulc_vsprintf1_LDADD): Likewise.
57302
57303         Fix linking of some uniconv tests on FreeBSD.
57304         * modules/uniconv/u16-conv-from-enc-tests
57305         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
57306         * modules/uniconv/u16-conv-to-enc-tests
57307         (test_u16_conv_to_enc_LDADD): Likewise.
57308         * modules/uniconv/u16-strconv-from-enc-tests
57309         (test_u16_strconv_from_enc_LDADD): Likewise.
57310         * modules/uniconv/u16-strconv-to-enc-tests
57311         (test_u16_strconv_to_enc_LDADD): Likewise.
57312         * modules/uniconv/u32-conv-from-enc-tests
57313         (test_u32_conv_from_enc_LDADD): Likewise.
57314         * modules/uniconv/u32-conv-to-enc-tests
57315         (test_u32_conv_to_enc_LDADD): Likewise.
57316         * modules/uniconv/u32-strconv-from-enc-tests
57317         (test_u32_strconv_from_enc_LDADD): Likewise.
57318         * modules/uniconv/u32-strconv-to-enc-tests
57319         (test_u32_strconv_to_enc_LDADD): Likewise.
57320         * modules/uniconv/u8-conv-from-enc-tests
57321         (test_u8_conv_from_enc_LDADD): Likewise.
57322         * modules/uniconv/u8-conv-to-enc-tests
57323         (test_u8_conv_to_enc_LDADD): Likewise.
57324         * modules/uniconv/u8-strconv-from-enc-tests
57325         (test_u8_strconv_from_enc_LDADD): Likewise.
57326         * modules/uniconv/u8-strconv-to-enc-tests
57327         (test_u8_strconv_to_enc_LDADD): Likewise.
57328
57329 2007-10-22  Bruno Haible  <bruno@clisp.org>
57330
57331         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
57332         size.
57333
57334 2007-10-22  Eric Blake  <ebb9@byu.net>
57335
57336         Tweak x*printf documentation.
57337         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
57338         variable name and comments.
57339         Suggested by Bruno Haible.
57340
57341 2007-10-22  Bruno Haible  <bruno@clisp.org>
57342
57343         * lib/acl.c (copy_acl): Fix file name in comment.
57344
57345 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57346
57347         Fix Tru64 problem with stdbool.h.
57348         * lib/stdbool.in.h (false, true):
57349         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
57350         Don't declare as an enum in this situation; it runs afoul of Tru64.
57351         Problem reported by Steven M. Schweda in
57352         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
57353
57354 2007-10-22  Eric Blake  <ebb9@byu.net>
57355
57356         Also wrap vf?printf.
57357         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
57358         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
57359         (xvprintf, xvfprintf): New functions.
57360
57361 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57362
57363         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
57364         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
57365
57366         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
57367         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
57368
57369 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57370
57371         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
57372         by Bruno Haible.
57373
57374 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57375
57376         * lib/getloadavg.c
57377         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
57378         Undef `sys' after including sys/table.h, for Tru64 4.0D.
57379
57380         * tests/test-i-ring.c: Work for C89.
57381
57382 2007-10-22  Bruno Haible  <bruno@clisp.org>
57383
57384         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
57385         -1u, in preprocessor expression, so that we don't test for the bug
57386         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
57387         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
57388
57389 2007-10-22  Eric Blake  <ebb9@byu.net>
57390
57391         * tests/test-yesno.sh: Silence stderr during test.
57392
57393 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57394
57395         * modules/crypto/gc-camellia: New file.
57396
57397         * m4/gc-camellia.m4: New file.
57398
57399         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
57400
57401         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
57402
57403 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57404
57405         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
57406         --help to stdout.  Reported by sms@antinode.org (Steven
57407         M. Schweda).
57408
57409 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57410
57411         * users.txt: Fix link to libksba.
57412
57413 2007-10-21  Ben Pfaff  <blp@gnu.org>
57414
57415         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
57416         round.c roundf implementation that depends on floorf and ceilf to
57417         be tested unconditionally.
57418
57419 2007-10-21  Ben Pfaff  <blp@gnu.org>
57420
57421         * m4/check-libm-func.m4: Removed.
57422         * m4/check-math-lib.m4: New file.
57423         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
57424         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
57425         definition and lack of AC_LIBOBJ([roundf]).
57426         * m4/roundl.m4: Ditto, and similarly for roundl.
57427         * modules/round: Reference new m4 file.
57428         * modules/roundf: Ditto.
57429         * modules/roundl: Ditto.
57430         * tests/test-round2.c (main): Use ROUND instead of round.
57431         Bug report from Bruno Haible.
57432
57433 2007-10-21  Bruno Haible  <bruno@clisp.org>
57434
57435         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
57436         context.
57437
57438 2007-10-21  Bruno Haible  <bruno@clisp.org>
57439
57440         * tests/test-wcwidth.c (main): Allow negative result for some control
57441         characters.
57442
57443         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
57444         Needed on OSF/1 5.1.
57445
57446 2007-10-21  Bruno Haible  <bruno@clisp.org>
57447
57448         * tests/test-floorf1.c: Include isnanf.h.
57449         (main): Use isnanf() instead of isnan().
57450         * tests/test-ceilf1.c: Include isnanf.h.
57451         (main): Use isnanf() instead of isnan().
57452         * tests/test-truncf1.c: Include isnanf.h.
57453         (main): Use isnanf() instead of isnan().
57454         * tests/test-roundf1.c: Include isnanf.h.
57455         (main): Use isnanf() instead of isnan().
57456
57457 2007-10-21  Eric Blake  <ebb9@byu.net>
57458
57459         * users.txt: Update URL for m4.
57460
57461 2007-10-21  Bruno Haible  <bruno@clisp.org>
57462
57463         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
57464
57465 2007-10-21  Bruno Haible  <bruno@clisp.org>
57466
57467         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
57468         Git's management files if the CVS files are not present.
57469
57470 2007-10-20  Bruno Haible  <bruno@clisp.org>
57471
57472         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
57473         gcc-3.4.x.
57474
57475 2007-10-20  Ben Pfaff  <blp@gnu.org>
57476
57477         * lib/math.in.h: Declare round, roundf, roundl if we are providing
57478         implementations.
57479         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
57480         * lib/round.c: New file.
57481         * lib/roundf.c: New file.
57482         * lib/roundl.c: New file.
57483         * m4/round.m4: New file.
57484         * m4/roundf.m4: New file.
57485         * m4/roundl.m4: New file.
57486         * m4/check-libm-func-m4: New file.
57487         * modules/math: Replace round, roundf, roundl related @VARS@ in
57488         math.in.h.
57489         * modules/round: New file.
57490         * modules/round-tests: New file.
57491         * modules/roundf: New file.
57492         * modules/roundf-tests: New file.
57493         * modules/roundl: New file.
57494         * modules/roundl-tests: New file.
57495         * tests/test-round1.c: New file.
57496         * tests/test-round2.c: New file.
57497         * tests/test-roundf1.c: New file.
57498         * tests/test-roundf2.c: New file.
57499         * tests/test-roundl.c: New file.
57500         * doc/functions/round.texi: Mention round module.
57501         * doc/functions/roundf.texi: Mention roundf module.
57502         * doc/functions/roundl.texi: Mention roundl module.
57503         * MODULES.html.sh: Mention new modules.
57504         Thanks to Bruno Haible for suggestions.
57505
57506 2007-10-20  Jim Meyering  <meyering@redhat.com>
57507
57508         * lib/xprintf.c: Include <config.h> unconditionally.
57509
57510         Change xprintf's license to GPL.
57511         * modules/xprintf (License): s/LGPL/GPL/, since this module
57512         depends on modules (exit and exitfail) which are GPL.
57513         Suggestion from Bruno Haible.
57514
57515         xprintf fixes.
57516         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
57517         Use a clearer diagnostic.
57518         Patch from Bruno Haible.
57519
57520 2007-10-20  Bruno Haible  <bruno@clisp.org>
57521
57522         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
57523         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
57524         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57525
57526 2007-10-20  Bruno Haible  <bruno@clisp.org>
57527
57528         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
57529         precision in the comparison result > x - 1 or similar.
57530         * tests/test-ceilf2.c (correct_result_p): Likewise.
57531         * tests/test-truncf2.c (correct_result_p): Likewise.
57532         * tests/test-trunc2.c (correct_result_p): Likewise.
57533         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57534
57535 2007-10-20  Bruno Haible  <bruno@clisp.org>
57536
57537         * modules/ceil: New file.
57538         * m4/ceil.m4: New file.
57539         * doc/functions/ceil.texi: Mention the 'ceil' module.
57540
57541 2007-10-20  Bruno Haible  <bruno@clisp.org>
57542
57543         * modules/floor: New file.
57544         * m4/floor.m4: New file.
57545         * doc/functions/floor.texi: Mention the 'floor' module.
57546
57547 2007-10-20  Bruno Haible  <bruno@clisp.org>
57548
57549         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
57550         of %a.
57551         * modules/floorf-tests (Depends-on): Likewise.
57552         * modules/truncf-tests (Depends-on): Likewise.
57553         * modules/trunc-tests (Depends-on): Likewise.
57554         Reported by Ben Pfaff.
57555
57556 2007-10-19  Jim Meyering  <meyering@redhat.com>
57557
57558         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
57559         Don't bother testing specific errno values.  Just test ferror.
57560
57561         New module: xprintf
57562         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
57563
57564 2007-10-19  Bruno Haible  <bruno@clisp.org>
57565
57566         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
57567         syntax.
57568         * modules/javaexec (Makefile.am): Likewise.
57569         * modules/relocatable-prog (Makefile.am): Likewise.
57570         Suggested by Jim Meyering.
57571
57572 2007-10-18  Bruno Haible  <bruno@clisp.org>
57573
57574         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
57575         Reported by Jim Meyering.
57576
57577 2007-10-18  Eric Blake  <ebb9@byu.net>
57578
57579         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
57580
57581 2007-10-18  Bruno Haible  <bruno@clisp.org>
57582
57583         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
57584         the format string into writable memory. Needed in Fortify conditions.
57585
57586 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
57587             Bruno Haible  <bruno@clisp.org>
57588
57589         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
57590         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
57591         * modules/trim (Depends-on): Add mbchar.
57592         (configure.ac): Add gl_FUNC_MBRTOWC.
57593         (Makefile.am): Augment lib_SOURCES.
57594
57595 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57596
57597         Modify glob.c to use fstatat and dirfd, to simplify it.
57598         Suggested by Eric Blake.
57599         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
57600         Don't include <stdbool.h>; not used.
57601         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
57602         (link_exists_p): Simplify implementation, since we can now assume
57603         dirfd and fstatat.
57604         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
57605
57606 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57607
57608         * gnulib-tool (func_get_dependencies): Fix sed script to
57609         match only tests.
57610
57611 2007-10-17  Bruno Haible  <bruno@clisp.org>
57612
57613         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
57614         allow locale names without encoding suffix.
57615         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57616         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57617
57618 2007-10-16  Bruno Haible  <bruno@clisp.org>
57619
57620         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
57621         * lib/getgroups.c (getgroups): Likewise.
57622         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
57623
57624 2007-10-16  Bruno Haible  <bruno@clisp.org>
57625
57626         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
57627         * modules/malloc-posix (License): Likewise.
57628         * modules/realloc-posix (License): Likewise.
57629         * modules/calloc-posix (License): Likewise.
57630         * modules/intprops (License): Change from GPL to LGPL, with
57631         Paul Eggert's approval.
57632
57633 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57634
57635         Merge glibc changes into lib/glob.c.
57636
57637         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
57638         2007-10-15 04:59:03 UTC.  Here are the changes:
57639
57640         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
57641
57642         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
57643
57644         * lib/glob.c: Add some branch prediction throughout.
57645
57646         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
57647
57648         [BZ #5103]
57649         * lib/glob.c (glob): Recognize patterns starting \/.
57650
57651         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
57652
57653         [BZ #3996]
57654         * lib/glob.c (attribute_hidden): Define if not defined.
57655         (glob): Unescape dirname, filename or username when needed and not
57656         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
57657         is NULL.  Handle unescaped [ in pattern without closing ].
57658         Don't pass GLOB_CHECK down to recursive glob for directories.
57659         (__glob_pattern_type): New function.
57660         (__glob_pattern_p): Implement using __glob_pattern_type.
57661         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
57662         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
57663         Remove unreachable code.
57664
57665         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
57666
57667         * lib/glob.c (glob_in_dir): Add some comments and asserts to
57668         explain why there are no leaks.
57669
57670         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
57671
57672         [BZ #3253]
57673         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
57674         time, rather allocate increasingly bigger arrays of pointers, if
57675         possible with alloca, if too large with malloc.
57676
57677 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57678
57679         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
57680         Problem reported by H.Merijn Brand in
57681         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
57682         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
57683         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57684
57685 2007-10-15  Bruno Haible  <bruno@clisp.org>
57686
57687         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
57688         with explicit rpl_ prefix.
57689         * lib/fopen.c (fopen): Likewise.
57690         * lib/freopen.c (freopen): Likewise.
57691         * lib/iconv.c (iconv): Likewise.
57692         * lib/iconv_close.c (iconv_close): Likewise.
57693
57694 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57695
57696         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
57697
57698 2007-10-15  Bruno Haible  <bruno@clisp.org>
57699
57700         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
57701         <stddef.h> instead of <stdlib.h> since we only need NULL.
57702         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57703
57704 2007-10-15  Bruno Haible  <bruno@clisp.org>
57705
57706         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
57707         Replace paragraph talking about LIBOBJS.
57708         Reported by Colin Watson <cjwatson@debian.org>.
57709
57710 2007-10-15  Bruno Haible  <bruno@clisp.org>
57711
57712         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
57713         <stdlib.h> before using NULL.
57714
57715 2007-10-15  Simon Josefsson  <simon@josefsson.org>
57716
57717         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
57718         Reported by Albert Chin <china@thewrittenword.com>.
57719
57720 2007-10-14  Bruno Haible  <bruno@clisp.org>
57721
57722         * modules/iconv_open-utf-tests: New file.
57723         * tests/test-iconv-utf.c: New file.
57724
57725         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
57726         * modules/iconv_open-utf: New file.
57727         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
57728         (iconv, iconv_close): New declarations.
57729         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
57730         be defined.
57731         (iconv_open): Add special handling of conversion between UTF-8 and
57732         UTF-{16,32}{BE,LE}.
57733         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
57734         * lib/iconv_close.c: New file.
57735         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
57736         gl_FUNC_ICONV_OPEN.
57737         (gl_FUNC_ICONV_OPEN): Use it.
57738         (gl_FUNC_ICONV_OPEN_UTF): New macro.
57739         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
57740         and REPLACE_ICONV_UTF.
57741         * modules/iconv_open (Depends-on): Add c-strcase.
57742         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
57743         ICONV_CONST.
57744         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
57745
57746 2007-10-13  Albert Chin  <china@thewrittenword.com>
57747             Bruno Haible  <bruno@clisp.org>
57748
57749         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
57750         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
57751
57752 2007-10-13  Bruno Haible  <bruno@clisp.org>
57753
57754         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
57755         defined, use the ISO C99 inline semantics.
57756         * lib/argp.h (ARGP_EI): Likewise.
57757
57758 2007-10-13  Bruno Haible  <bruno@clisp.org>
57759
57760         Handle 'inline' change in gcc 4.3.0.
57761         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
57762         argp_fmtstream_write, argp_fmtstream_set_lmargin,
57763         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
57764         argp_fmtstream_point): Disable 'extern' declaration if the function
57765         definition is going to be provided inline.
57766         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
57767         semantics, not the ISO C99 inline semantics.
57768         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
57769         'extern' declaration if the function definition is going to be provided
57770         inline.
57771         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
57772         the GNU C inline semantics, not the ISO C99 inline semantics. With
57773         GCC 4.2, avoid a warning.
57774
57775 2007-10-13  Bruno Haible  <bruno@clisp.org>
57776
57777         * lib/freading.h (freading): Enable the use of __freading for
57778         glibc >= 2.7.
57779         * lib/freading.c (freading): Likewise.
57780
57781 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57782
57783         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
57784         "warning: C99 inline functions are not supported; using GNU89".
57785
57786 2007-10-12  Bruno Haible  <bruno@clisp.org>
57787
57788         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
57789         of 2.
57790         * tests/test-ceilf2.c: New file.
57791         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
57792
57793         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
57794         * modules/ceilf-tests: Update.
57795
57796 2007-10-12  Bruno Haible  <bruno@clisp.org>
57797
57798         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
57799         of 2.
57800         * tests/test-floorf2.c: New file.
57801         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
57802
57803         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
57804         * modules/floorf-tests: Update.
57805
57806 2007-10-12  Bruno Haible  <bruno@clisp.org>
57807
57808         * tests/test-trunc2.c: New file.
57809         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
57810
57811         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
57812         * modules/trunc-tests: Update.
57813
57814 2007-10-12  Bruno Haible  <bruno@clisp.org>
57815
57816         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
57817         of 2.
57818         * tests/test-truncf2.c: New file.
57819         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
57820
57821         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
57822         * modules/truncf-tests: Update.
57823
57824 2007-10-11  Eric Blake  <ebb9@byu.net>
57825
57826         Don't claim strerror is broken on Interix.
57827         * doc/functions/strerror.texi (strerror): Known broken systems are
57828         now Solaris 8, and not Interix.
57829         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
57830         Interix on cross-compile.
57831         Reported by Martin Koeppe in
57832         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
57833
57834 2007-10-11  Bruno Haible  <bruno@clisp.org>
57835
57836         * modules/i-ring-tests: New file.
57837         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
57838         instead of assert.
57839
57840 2007-10-11  Bruno Haible  <bruno@clisp.org>
57841
57842         * modules/filenamecat-tests: New file.
57843         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
57844         * lib/filenamecat.c: Remove test code.
57845
57846 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57847
57848         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
57849
57850         * lib/strerror.c: Include <string.h> always, to test interface,
57851         and to remove the need for the dummy.
57852         Include intprops.h to compute width instead of doing it ourselves
57853         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
57854         (strerror): Define it to return NULL if there's no system strerror.
57855         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
57856         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
57857         ancient pre-strerror Unix systems well any more.  Saying "unknown
57858         system error" is enough.
57859         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
57860         simpler strerror.c implementation.
57861         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
57862         Simplify the tests to reflect the simpler strerror implementation.
57863         * modules/strerror (Depends-on): Add intprops.
57864
57865 2007-10-09  Eric Blake  <ebb9@byu.net>
57866
57867         Silence test-fpending.
57868         * modules/fpending-tests (Files): Add wrapper script.
57869         * tests/test-fpending.sh: New file.
57870
57871 2007-10-09  Bruno Haible  <bruno@clisp.org>
57872
57873         * MODULES.html.sh (func_module): Don't create a hyperlink for
57874         function names like 'printf_frexp'.
57875         (Misc): Add crc, memxor.
57876         (Characteristics of floating types): New section.
57877         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
57878         isnanf-nolibm, signbit, trunc, truncf, truncl.
57879         (Enhancements for ISO C 99 functions): New subsection Input/output.
57880         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
57881         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
57882         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
57883         (Compatibility checks for POSIX:2001 functions): Add clock-time.
57884         (Enhancements for POSIX:2001 functions): Add chdir-long.
57885         (File system functions): Add areadlink, chdir-safer, read-file.
57886         Remove cycle-check.
57887         (File system as inode set): New section.
57888         (Date and time): Add gethrxtime.
57889         (Multithreading): Add openmp.
57890         (Internationalization functions): Add localename.
57891         (Unicode string functions): Add unistr/u*-mbsnlen.
57892         (Support for maintaining and releasing projects): Add git-version-gen.
57893         (Lone files): Remove directories.
57894
57895 2007-10-08  Ben Pfaff  <blp@gnu.org>
57896
57897         * lib/xmalloca.h: Fix typo in comment.
57898
57899 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57900
57901         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
57902         when avoiding problems with integer overflow.  Use a portable test
57903         instead.
57904
57905 2007-10-08  Simon Josefsson  <simon@josefsson.org>
57906
57907         * modules/dummy (License): Change to LGPLv2+.
57908         * modules/float (License): Likewise
57909         * modules/realloc (License): Likewise
57910         * modules/stdlib (License): Likewise
57911
57912 2007-10-07  Bruno Haible  <bruno@clisp.org>
57913
57914         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
57915         * floor.c (TWO_MANT_DIG): Likewise.
57916         * ceil.c (TWO_MANT_DIG): Likewise.
57917         Reported by Ben Pfaff.
57918
57919 2007-10-07  Bruno Haible  <bruno@clisp.org>
57920
57921         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
57922         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
57923         * lib/frexp.c (FUNC): Likewise.
57924         * lib/printf-frexp.h (printf_frexp): Likewise.
57925         * lib/printf-frexpl.h (printf_frexpl): Likewise.
57926         * lib/printf-frexp.c (FUNC): Likewise.
57927         Suggested by Jim Meyering.
57928
57929 2007-10-07  Jim Meyering  <meyering@redhat.com>
57930
57931         Make xnanosleep's integer overflow test more robust.
57932         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
57933         so that gcc-4.3.0 doesn't optimize away this test for overflow.
57934
57935 2007-10-07  Bruno Haible  <bruno@clisp.org>
57936
57937         * NEWS: Mention the license change.
57938
57939         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
57940         abbreviations in the modules files.
57941
57942         Change copyright notice from GPLv2+ to GPLv3+.
57943         * README: Change copyright notice.
57944         * MODULES.html.sh: Likewise.
57945         * build-aux/bootstrap.conf: Likewise.
57946         * build-aux/config.libpath: Likewise.
57947         * build-aux/csharpcomp.sh.in: Likewise.
57948         * build-aux/csharpexec.sh.in: Likewise.
57949         * build-aux/install-reloc: Likewise.
57950         * build-aux/javacomp.sh.in: Likewise.
57951         * build-aux/javaexec.sh.in: Likewise.
57952         * build-aux/ldd.sh.in: Likewise.
57953         * build-aux/reloc-ldflags: Likewise.
57954         * build-aux/relocatable.sh.in: Likewise.
57955         * build-aux/x-to-1.in: Likewise.
57956         * check-module: Likewise.
57957         * config/srclistvars.sh: Likewise.
57958         * gnulib-tool: Likewise.
57959         * lib/acl-internal.h: Likewise.
57960         * lib/acl.c: Likewise.
57961         * lib/acl.h: Likewise.
57962         * lib/acl_entries.c: Likewise.
57963         * lib/areadlink-with-size.c: Likewise.
57964         * lib/areadlink.c: Likewise.
57965         * lib/areadlink.h: Likewise.
57966         * lib/argmatch.c: Likewise.
57967         * lib/argmatch.h: Likewise.
57968         * lib/argp-ba.c: Likewise.
57969         * lib/argp-eexst.c: Likewise.
57970         * lib/argp-fmtstream.c: Likewise.
57971         * lib/argp-fmtstream.h: Likewise.
57972         * lib/argp-fs-xinl.c: Likewise.
57973         * lib/argp-help.c: Likewise.
57974         * lib/argp-namefrob.h: Likewise.
57975         * lib/argp-parse.c: Likewise.
57976         * lib/argp-pin.c: Likewise.
57977         * lib/argp-pv.c: Likewise.
57978         * lib/argp-pvh.c: Likewise.
57979         * lib/argp-xinl.c: Likewise.
57980         * lib/argp.h: Likewise.
57981         * lib/at-func.c: Likewise.
57982         * lib/atanl.c: Likewise.
57983         * lib/backupfile.c: Likewise.
57984         * lib/backupfile.h: Likewise.
57985         * lib/basename.c: Likewise.
57986         * lib/binary-io.h: Likewise.
57987         * lib/byteswap.in.h: Likewise.
57988         * lib/c-stack.c: Likewise.
57989         * lib/c-stack.h: Likewise.
57990         * lib/c-strcasestr.c: Likewise.
57991         * lib/c-strcasestr.h: Likewise.
57992         * lib/c-strstr.c: Likewise.
57993         * lib/c-strstr.h: Likewise.
57994         * lib/c-strtod.c: Likewise.
57995         * lib/calloc.c: Likewise.
57996         * lib/canon-host.c: Likewise.
57997         * lib/canon-host.h: Likewise.
57998         * lib/canonicalize-lgpl.c: Likewise.
57999         * lib/canonicalize.c: Likewise.
58000         * lib/canonicalize.h: Likewise.
58001         * lib/ceil.c: Likewise.
58002         * lib/ceilf.c: Likewise.
58003         * lib/ceill.c: Likewise.
58004         * lib/chdir-long.c: Likewise.
58005         * lib/chdir-long.h: Likewise.
58006         * lib/chdir-safer.c: Likewise.
58007         * lib/chdir-safer.h: Likewise.
58008         * lib/chown.c: Likewise.
58009         * lib/classpath.c: Likewise.
58010         * lib/classpath.h: Likewise.
58011         * lib/clean-temp.c: Likewise.
58012         * lib/clean-temp.h: Likewise.
58013         * lib/cloexec.c: Likewise.
58014         * lib/close-stream.c: Likewise.
58015         * lib/closein.c: Likewise.
58016         * lib/closein.h: Likewise.
58017         * lib/closeout.c: Likewise.
58018         * lib/closeout.h: Likewise.
58019         * lib/concat-filename.c: Likewise.
58020         * lib/copy-file.c: Likewise.
58021         * lib/copy-file.h: Likewise.
58022         * lib/count-one-bits.h: Likewise.
58023         * lib/crc.c: Likewise.
58024         * lib/crc.h: Likewise.
58025         * lib/creat-safer.c: Likewise.
58026         * lib/csharpcomp.c: Likewise.
58027         * lib/csharpcomp.h: Likewise.
58028         * lib/csharpexec.c: Likewise.
58029         * lib/csharpexec.h: Likewise.
58030         * lib/cycle-check.c: Likewise.
58031         * lib/cycle-check.h: Likewise.
58032         * lib/diacrit.c: Likewise.
58033         * lib/diacrit.h: Likewise.
58034         * lib/diffseq.h: Likewise.
58035         * lib/dirchownmod.c: Likewise.
58036         * lib/dirent.in.h: Likewise.
58037         * lib/dirfd.c: Likewise.
58038         * lib/dirfd.h: Likewise.
58039         * lib/dirname.c: Likewise.
58040         * lib/dirname.h: Likewise.
58041         * lib/dummy.c: Likewise.
58042         * lib/dup-safer.c: Likewise.
58043         * lib/dup2.c: Likewise.
58044         * lib/eealloc.h: Likewise.
58045         * lib/error.c: Likewise.
58046         * lib/error.h: Likewise.
58047         * lib/euidaccess.c: Likewise.
58048         * lib/exclude.c: Likewise.
58049         * lib/exclude.h: Likewise.
58050         * lib/execute.c: Likewise.
58051         * lib/execute.h: Likewise.
58052         * lib/exitfail.c: Likewise.
58053         * lib/exitfail.h: Likewise.
58054         * lib/expl.c: Likewise.
58055         * lib/fatal-signal.c: Likewise.
58056         * lib/fatal-signal.h: Likewise.
58057         * lib/fbufmode.c: Likewise.
58058         * lib/fbufmode.h: Likewise.
58059         * lib/fchdir.c: Likewise.
58060         * lib/fchmodat.c: Likewise.
58061         * lib/fchownat.c: Likewise.
58062         * lib/fcntl--.h: Likewise.
58063         * lib/fcntl-safer.h: Likewise.
58064         * lib/fcntl.in.h: Likewise.
58065         * lib/fd-safer.c: Likewise.
58066         * lib/fflush.c: Likewise.
58067         * lib/file-has-acl.c: Likewise.
58068         * lib/file-set.c: Likewise.
58069         * lib/file-type.c: Likewise.
58070         * lib/file-type.h: Likewise.
58071         * lib/fileblocks.c: Likewise.
58072         * lib/filemode.c: Likewise.
58073         * lib/filemode.h: Likewise.
58074         * lib/filename.h: Likewise.
58075         * lib/filenamecat.c: Likewise.
58076         * lib/filenamecat.h: Likewise.
58077         * lib/findprog.c: Likewise.
58078         * lib/findprog.h: Likewise.
58079         * lib/float.in.h: Likewise.
58080         * lib/floor.c: Likewise.
58081         * lib/floorf.c: Likewise.
58082         * lib/floorl.c: Likewise.
58083         * lib/fopen-safer.c: Likewise.
58084         * lib/fopen.c: Likewise.
58085         * lib/fpending.c: Likewise.
58086         * lib/fpending.h: Likewise.
58087         * lib/fprintf.c: Likewise.
58088         * lib/fprintftime.h: Likewise.
58089         * lib/fpucw.h: Likewise.
58090         * lib/fpurge.c: Likewise.
58091         * lib/fpurge.h: Likewise.
58092         * lib/freadable.c: Likewise.
58093         * lib/freadable.h: Likewise.
58094         * lib/freadahead.c: Likewise.
58095         * lib/freadahead.h: Likewise.
58096         * lib/freading.c: Likewise.
58097         * lib/freading.h: Likewise.
58098         * lib/free.c: Likewise.
58099         * lib/freopen.c: Likewise.
58100         * lib/frexp.c: Likewise.
58101         * lib/frexpl.c: Likewise.
58102         * lib/fseek.c: Likewise.
58103         * lib/fseterr.c: Likewise.
58104         * lib/fseterr.h: Likewise.
58105         * lib/fstatat.c: Likewise.
58106         * lib/fstrcmp.c: Likewise.
58107         * lib/fstrcmp.h: Likewise.
58108         * lib/fsusage.c: Likewise.
58109         * lib/fsusage.h: Likewise.
58110         * lib/ftell.c: Likewise.
58111         * lib/ftello.c: Likewise.
58112         * lib/fts-cycle.c: Likewise.
58113         * lib/fts.c: Likewise.
58114         * lib/fts_.h: Likewise.
58115         * lib/full-read.c: Likewise.
58116         * lib/full-read.h: Likewise.
58117         * lib/full-write.c: Likewise.
58118         * lib/full-write.h: Likewise.
58119         * lib/fwritable.c: Likewise.
58120         * lib/fwritable.h: Likewise.
58121         * lib/fwriteerror.c: Likewise.
58122         * lib/fwriteerror.h: Likewise.
58123         * lib/fwriting.c: Likewise.
58124         * lib/fwriting.h: Likewise.
58125         * lib/gcd.c: Likewise.
58126         * lib/gcd.h: Likewise.
58127         * lib/getcwd.c: Likewise.
58128         * lib/getdate.h: Likewise.
58129         * lib/getdate.y: Likewise.
58130         * lib/getdomainname.c: Likewise.
58131         * lib/getdomainname.h: Likewise.
58132         * lib/getgroups.c: Likewise.
58133         * lib/gethostname.c: Likewise.
58134         * lib/gethrxtime.c: Likewise.
58135         * lib/gethrxtime.h: Likewise.
58136         * lib/getloadavg.c: Likewise.
58137         * lib/getndelim2.c: Likewise.
58138         * lib/getndelim2.h: Likewise.
58139         * lib/getnline.c: Likewise.
58140         * lib/getnline.h: Likewise.
58141         * lib/getopt.c: Likewise.
58142         * lib/getopt.in.h: Likewise.
58143         * lib/getopt1.c: Likewise.
58144         * lib/getopt_int.h: Likewise.
58145         * lib/getpagesize.h: Likewise.
58146         * lib/getsubopt.c: Likewise.
58147         * lib/gettime.c: Likewise.
58148         * lib/getugroups.c: Likewise.
58149         * lib/getugroups.h: Likewise.
58150         * lib/getusershell.c: Likewise.
58151         * lib/gl_anyavltree_list1.h: Likewise.
58152         * lib/gl_anyavltree_list2.h: Likewise.
58153         * lib/gl_anyhash_list1.h: Likewise.
58154         * lib/gl_anyhash_list2.h: Likewise.
58155         * lib/gl_anylinked_list1.h: Likewise.
58156         * lib/gl_anylinked_list2.h: Likewise.
58157         * lib/gl_anyrbtree_list1.h: Likewise.
58158         * lib/gl_anyrbtree_list2.h: Likewise.
58159         * lib/gl_anytree_list1.h: Likewise.
58160         * lib/gl_anytree_list2.h: Likewise.
58161         * lib/gl_anytree_oset.h: Likewise.
58162         * lib/gl_anytreehash_list1.h: Likewise.
58163         * lib/gl_anytreehash_list2.h: Likewise.
58164         * lib/gl_array_list.c: Likewise.
58165         * lib/gl_array_list.h: Likewise.
58166         * lib/gl_array_oset.c: Likewise.
58167         * lib/gl_array_oset.h: Likewise.
58168         * lib/gl_avltree_list.c: Likewise.
58169         * lib/gl_avltree_list.h: Likewise.
58170         * lib/gl_avltree_oset.c: Likewise.
58171         * lib/gl_avltree_oset.h: Likewise.
58172         * lib/gl_avltreehash_list.c: Likewise.
58173         * lib/gl_avltreehash_list.h: Likewise.
58174         * lib/gl_carray_list.c: Likewise.
58175         * lib/gl_carray_list.h: Likewise.
58176         * lib/gl_linked_list.c: Likewise.
58177         * lib/gl_linked_list.h: Likewise.
58178         * lib/gl_linkedhash_list.c: Likewise.
58179         * lib/gl_linkedhash_list.h: Likewise.
58180         * lib/gl_list.c: Likewise.
58181         * lib/gl_list.h: Likewise.
58182         * lib/gl_oset.c: Likewise.
58183         * lib/gl_oset.h: Likewise.
58184         * lib/gl_rbtree_list.c: Likewise.
58185         * lib/gl_rbtree_list.h: Likewise.
58186         * lib/gl_rbtree_oset.c: Likewise.
58187         * lib/gl_rbtree_oset.h: Likewise.
58188         * lib/gl_rbtreehash_list.c: Likewise.
58189         * lib/gl_rbtreehash_list.h: Likewise.
58190         * lib/gl_sublist.c: Likewise.
58191         * lib/gl_sublist.h: Likewise.
58192         * lib/group-member.c: Likewise.
58193         * lib/group-member.h: Likewise.
58194         * lib/hard-locale.c: Likewise.
58195         * lib/hard-locale.h: Likewise.
58196         * lib/hash-pjw.c: Likewise.
58197         * lib/hash-pjw.h: Likewise.
58198         * lib/hash-triple.c: Likewise.
58199         * lib/hash.c: Likewise.
58200         * lib/hash.h: Likewise.
58201         * lib/human.c: Likewise.
58202         * lib/human.h: Likewise.
58203         * lib/i-ring.c: Likewise.
58204         * lib/i-ring.h: Likewise.
58205         * lib/idcache.c: Likewise.
58206         * lib/imaxabs.c: Likewise.
58207         * lib/imaxdiv.c: Likewise.
58208         * lib/inet_pton.c: Likewise.
58209         * lib/inet_pton.h: Likewise.
58210         * lib/intprops.h: Likewise.
58211         * lib/inttostr.c: Likewise.
58212         * lib/inttostr.h: Likewise.
58213         * lib/inttypes.in.h: Likewise.
58214         * lib/isapipe.c: Likewise.
58215         * lib/isdir.c: Likewise.
58216         * lib/isnan.c: Likewise.
58217         * lib/isnan.h: Likewise.
58218         * lib/isnanf.c: Likewise.
58219         * lib/isnanf.h: Likewise.
58220         * lib/isnanl-nolibm.h: Likewise.
58221         * lib/isnanl.c: Likewise.
58222         * lib/isnanl.h: Likewise.
58223         * lib/javacomp.c: Likewise.
58224         * lib/javacomp.h: Likewise.
58225         * lib/javaexec.c: Likewise.
58226         * lib/javaexec.h: Likewise.
58227         * lib/javaversion.c: Likewise.
58228         * lib/javaversion.h: Likewise.
58229         * lib/javaversion.java: Likewise.
58230         * lib/lbrkprop.h: Likewise.
58231         * lib/lchmod.h: Likewise.
58232         * lib/lchown.c: Likewise.
58233         * lib/ldexpl.c: Likewise.
58234         * lib/linebreak.c: Likewise.
58235         * lib/linebreak.h: Likewise.
58236         * lib/linebuffer.c: Likewise.
58237         * lib/linebuffer.h: Likewise.
58238         * lib/locale.in.h: Likewise.
58239         * lib/logl.c: Likewise.
58240         * lib/long-options.c: Likewise.
58241         * lib/long-options.h: Likewise.
58242         * lib/lstat.c: Likewise.
58243         * lib/lstat.h: Likewise.
58244         * lib/math.in.h: Likewise.
58245         * lib/mbchar.c: Likewise.
58246         * lib/mbchar.h: Likewise.
58247         * lib/mbfile.h: Likewise.
58248         * lib/mbiter.h: Likewise.
58249         * lib/mbscasecmp.c: Likewise.
58250         * lib/mbscasestr.c: Likewise.
58251         * lib/mbschr.c: Likewise.
58252         * lib/mbscspn.c: Likewise.
58253         * lib/mbslen.c: Likewise.
58254         * lib/mbsncasecmp.c: Likewise.
58255         * lib/mbsnlen.c: Likewise.
58256         * lib/mbspbrk.c: Likewise.
58257         * lib/mbspcasecmp.c: Likewise.
58258         * lib/mbsrchr.c: Likewise.
58259         * lib/mbssep.c: Likewise.
58260         * lib/mbsspn.c: Likewise.
58261         * lib/mbsstr.c: Likewise.
58262         * lib/mbstok_r.c: Likewise.
58263         * lib/mbswidth.c: Likewise.
58264         * lib/mbswidth.h: Likewise.
58265         * lib/mbuiter.h: Likewise.
58266         * lib/memcasecmp.c: Likewise.
58267         * lib/memcasecmp.h: Likewise.
58268         * lib/memchr.c: Likewise.
58269         * lib/memcmp.c: Likewise.
58270         * lib/memcoll.c: Likewise.
58271         * lib/memcoll.h: Likewise.
58272         * lib/memcpy.c: Likewise.
58273         * lib/memrchr.c: Likewise.
58274         * lib/mkancesdirs.c: Likewise.
58275         * lib/mkdir-p.c: Likewise.
58276         * lib/mkdir-p.h: Likewise.
58277         * lib/mkdir.c: Likewise.
58278         * lib/mkdirat.c: Likewise.
58279         * lib/mkdtemp.c: Likewise.
58280         * lib/mkstemp-safer.c: Likewise.
58281         * lib/mkstemp.c: Likewise.
58282         * lib/modechange.c: Likewise.
58283         * lib/modechange.h: Likewise.
58284         * lib/mountlist.c: Likewise.
58285         * lib/mountlist.h: Likewise.
58286         * lib/mpsort.c: Likewise.
58287         * lib/nanosleep.c: Likewise.
58288         * lib/obstack.c: Likewise.
58289         * lib/obstack.h: Likewise.
58290         * lib/open-safer.c: Likewise.
58291         * lib/open.c: Likewise.
58292         * lib/openat-die.c: Likewise.
58293         * lib/openat-priv.h: Likewise.
58294         * lib/openat-proc.c: Likewise.
58295         * lib/openat.c: Likewise.
58296         * lib/openat.h: Likewise.
58297         * lib/pagealign_alloc.c: Likewise.
58298         * lib/pagealign_alloc.h: Likewise.
58299         * lib/physmem.c: Likewise.
58300         * lib/physmem.h: Likewise.
58301         * lib/pipe-safer.c: Likewise.
58302         * lib/pipe.c: Likewise.
58303         * lib/pipe.h: Likewise.
58304         * lib/posixtm.c: Likewise.
58305         * lib/posixtm.h: Likewise.
58306         * lib/posixver.c: Likewise.
58307         * lib/printf-frexp.c: Likewise.
58308         * lib/printf-frexp.h: Likewise.
58309         * lib/printf-frexpl.c: Likewise.
58310         * lib/printf-frexpl.h: Likewise.
58311         * lib/printf.c: Likewise.
58312         * lib/progname.c: Likewise.
58313         * lib/progname.h: Likewise.
58314         * lib/progreloc.c: Likewise.
58315         * lib/putenv.c: Likewise.
58316         * lib/quote.c: Likewise.
58317         * lib/quote.h: Likewise.
58318         * lib/quotearg.c: Likewise.
58319         * lib/quotearg.h: Likewise.
58320         * lib/raise.c: Likewise.
58321         * lib/readline.c: Likewise.
58322         * lib/readline.h: Likewise.
58323         * lib/readlink.c: Likewise.
58324         * lib/readtokens.c: Likewise.
58325         * lib/readtokens.h: Likewise.
58326         * lib/readtokens0.c: Likewise.
58327         * lib/readtokens0.h: Likewise.
58328         * lib/readutmp.c: Likewise.
58329         * lib/readutmp.h: Likewise.
58330         * lib/realloc.c: Likewise.
58331         * lib/relocwrapper.c: Likewise.
58332         * lib/rename-dest-slash.c: Likewise.
58333         * lib/rename.c: Likewise.
58334         * lib/rmdir.c: Likewise.
58335         * lib/rpmatch.c: Likewise.
58336         * lib/safe-read.c: Likewise.
58337         * lib/safe-read.h: Likewise.
58338         * lib/safe-write.c: Likewise.
58339         * lib/safe-write.h: Likewise.
58340         * lib/same-inode.h: Likewise.
58341         * lib/same.c: Likewise.
58342         * lib/same.h: Likewise.
58343         * lib/save-cwd.c: Likewise.
58344         * lib/save-cwd.h: Likewise.
58345         * lib/savedir.c: Likewise.
58346         * lib/savedir.h: Likewise.
58347         * lib/savewd.c: Likewise.
58348         * lib/savewd.h: Likewise.
58349         * lib/search.in.h: Likewise.
58350         * lib/setenv.c: Likewise.
58351         * lib/setenv.h: Likewise.
58352         * lib/settime.c: Likewise.
58353         * lib/sh-quote.c: Likewise.
58354         * lib/sh-quote.h: Likewise.
58355         * lib/sig2str.c: Likewise.
58356         * lib/sig2str.h: Likewise.
58357         * lib/signal.in.h: Likewise.
58358         * lib/signbitd.c: Likewise.
58359         * lib/signbitf.c: Likewise.
58360         * lib/signbitl.c: Likewise.
58361         * lib/sigprocmask.c: Likewise.
58362         * lib/sincosl.c: Likewise.
58363         * lib/sleep.c: Likewise.
58364         * lib/sprintf.c: Likewise.
58365         * lib/sqrtl.c: Likewise.
58366         * lib/stat-time.h: Likewise.
58367         * lib/stdio--.h: Likewise.
58368         * lib/stdio-safer.h: Likewise.
58369         * lib/stdlib--.h: Likewise.
58370         * lib/stdlib-safer.h: Likewise.
58371         * lib/stdlib.in.h: Likewise.
58372         * lib/stpcpy.c: Likewise.
58373         * lib/stpncpy.c: Likewise.
58374         * lib/strchrnul.c: Likewise.
58375         * lib/strcspn.c: Likewise.
58376         * lib/strerror.c: Likewise.
58377         * lib/strftime.c: Likewise.
58378         * lib/strftime.h: Likewise.
58379         * lib/striconveh.c: Likewise.
58380         * lib/striconveh.h: Likewise.
58381         * lib/striconveha.c: Likewise.
58382         * lib/striconveha.h: Likewise.
58383         * lib/stripslash.c: Likewise.
58384         * lib/strnlen1.c: Likewise.
58385         * lib/strnlen1.h: Likewise.
58386         * lib/strtod.c: Likewise.
58387         * lib/strtoimax.c: Likewise.
58388         * lib/strtok_r.c: Likewise.
58389         * lib/strtol.c: Likewise.
58390         * lib/strtoll.c: Likewise.
58391         * lib/strtoul.c: Likewise.
58392         * lib/strtoull.c: Likewise.
58393         * lib/sysexits.in.h: Likewise.
58394         * lib/tempname.c: Likewise.
58395         * lib/tempname.h: Likewise.
58396         * lib/timespec.h: Likewise.
58397         * lib/tls.c: Likewise.
58398         * lib/tls.h: Likewise.
58399         * lib/tmpdir.c: Likewise.
58400         * lib/tmpdir.h: Likewise.
58401         * lib/tmpfile-safer.c: Likewise.
58402         * lib/tmpfile.c: Likewise.
58403         * lib/trigl.c: Likewise.
58404         * lib/trigl.h: Likewise.
58405         * lib/trim.c: Likewise.
58406         * lib/trim.h: Likewise.
58407         * lib/trunc.c: Likewise.
58408         * lib/truncf.c: Likewise.
58409         * lib/truncl.c: Likewise.
58410         * lib/tsearch.c: Likewise.
58411         * lib/unicodeio.c: Likewise.
58412         * lib/unicodeio.h: Likewise.
58413         * lib/unistd--.h: Likewise.
58414         * lib/unistd-safer.h: Likewise.
58415         * lib/unistdio/ulc-fprintf.c: Likewise.
58416         * lib/unistdio/ulc-vfprintf.c: Likewise.
58417         * lib/unlinkdir.c: Likewise.
58418         * lib/unlinkdir.h: Likewise.
58419         * lib/unlocked-io.h: Likewise.
58420         * lib/unsetenv.c: Likewise.
58421         * lib/userspec.c: Likewise.
58422         * lib/utime.c: Likewise.
58423         * lib/utimecmp.c: Likewise.
58424         * lib/utimecmp.h: Likewise.
58425         * lib/utimens.c: Likewise.
58426         * lib/verify.h: Likewise.
58427         * lib/verror.c: Likewise.
58428         * lib/verror.h: Likewise.
58429         * lib/version-etc-fsf.c: Likewise.
58430         * lib/version-etc.c: Likewise.
58431         * lib/version-etc.h: Likewise.
58432         * lib/vfprintf.c: Likewise.
58433         * lib/vprintf.c: Likewise.
58434         * lib/vsprintf.c: Likewise.
58435         * lib/w32spawn.h: Likewise.
58436         * lib/wait-process.c: Likewise.
58437         * lib/wait-process.h: Likewise.
58438         * lib/wcwidth.c: Likewise.
58439         * lib/write-any-file.c: Likewise.
58440         * lib/xalloc-die.c: Likewise.
58441         * lib/xalloc.h: Likewise.
58442         * lib/xasprintf.c: Likewise.
58443         * lib/xgetcwd.c: Likewise.
58444         * lib/xgetcwd.h: Likewise.
58445         * lib/xgetdomainname.c: Likewise.
58446         * lib/xgetdomainname.h: Likewise.
58447         * lib/xgethostname.c: Likewise.
58448         * lib/xmalloc.c: Likewise.
58449         * lib/xmalloca.c: Likewise.
58450         * lib/xmalloca.h: Likewise.
58451         * lib/xmemcoll.c: Likewise.
58452         * lib/xnanosleep.c: Likewise.
58453         * lib/xreadlink.c: Likewise.
58454         * lib/xreadlink.h: Likewise.
58455         * lib/xsetenv.c: Likewise.
58456         * lib/xsetenv.h: Likewise.
58457         * lib/xstriconv.c: Likewise.
58458         * lib/xstriconv.h: Likewise.
58459         * lib/xstrndup.c: Likewise.
58460         * lib/xstrndup.h: Likewise.
58461         * lib/xstrtod.c: Likewise.
58462         * lib/xstrtod.h: Likewise.
58463         * lib/xstrtol-error.c: Likewise.
58464         * lib/xstrtol.c: Likewise.
58465         * lib/xstrtol.h: Likewise.
58466         * lib/xtime.h: Likewise.
58467         * lib/xvasprintf.c: Likewise.
58468         * lib/xvasprintf.h: Likewise.
58469         * lib/yesno.c: Likewise.
58470         * lib/yesno.h: Likewise.
58471         * posix-modules: Likewise.
58472         * tests/test-alloca-opt.c: Likewise.
58473         * tests/test-arcfour.c: Likewise.
58474         * tests/test-arctwo.c: Likewise.
58475         * tests/test-argmatch.c: Likewise.
58476         * tests/test-argp-2.sh: Likewise.
58477         * tests/test-argp.c: Likewise.
58478         * tests/test-arpa_inet.c: Likewise.
58479         * tests/test-array_list.c: Likewise.
58480         * tests/test-array_oset.c: Likewise.
58481         * tests/test-atexit.c: Likewise.
58482         * tests/test-avltree_list.c: Likewise.
58483         * tests/test-avltree_oset.c: Likewise.
58484         * tests/test-avltreehash_list.c: Likewise.
58485         * tests/test-base64.c: Likewise.
58486         * tests/test-binary-io.c: Likewise.
58487         * tests/test-byteswap.c: Likewise.
58488         * tests/test-c-ctype.c: Likewise.
58489         * tests/test-c-strcasecmp.c: Likewise.
58490         * tests/test-c-strcasestr.c: Likewise.
58491         * tests/test-c-strncasecmp.c: Likewise.
58492         * tests/test-c-strstr.c: Likewise.
58493         * tests/test-canonicalize-lgpl.c: Likewise.
58494         * tests/test-canonicalize.c: Likewise.
58495         * tests/test-carray_list.c: Likewise.
58496         * tests/test-ceilf.c: Likewise.
58497         * tests/test-ceill.c: Likewise.
58498         * tests/test-count-one-bits.c: Likewise.
58499         * tests/test-crc.c: Likewise.
58500         * tests/test-dirname.c: Likewise.
58501         * tests/test-fbufmode.c: Likewise.
58502         * tests/test-fcntl.c: Likewise.
58503         * tests/test-fflush.c: Likewise.
58504         * tests/test-floorf.c: Likewise.
58505         * tests/test-floorl.c: Likewise.
58506         * tests/test-fopen.c: Likewise.
58507         * tests/test-fprintf-posix.c: Likewise.
58508         * tests/test-fprintf-posix.h: Likewise.
58509         * tests/test-fpurge.c: Likewise.
58510         * tests/test-freadable.c: Likewise.
58511         * tests/test-freadahead.c: Likewise.
58512         * tests/test-freading.c: Likewise.
58513         * tests/test-freopen.c: Likewise.
58514         * tests/test-frexp.c: Likewise.
58515         * tests/test-frexpl.c: Likewise.
58516         * tests/test-fseek.c: Likewise.
58517         * tests/test-fseeko.c: Likewise.
58518         * tests/test-fseterr.c: Likewise.
58519         * tests/test-fstrcmp.c: Likewise.
58520         * tests/test-ftell.c: Likewise.
58521         * tests/test-ftello.c: Likewise.
58522         * tests/test-fwritable.c: Likewise.
58523         * tests/test-fwriting.c: Likewise.
58524         * tests/test-getaddrinfo.c: Likewise.
58525         * tests/test-getpass.c: Likewise.
58526         * tests/test-gettimeofday.c: Likewise.
58527         * tests/test-hmac-md5.c: Likewise.
58528         * tests/test-hmac-sha1.c: Likewise.
58529         * tests/test-iconv.c: Likewise.
58530         * tests/test-iconvme.c: Likewise.
58531         * tests/test-inttypes.c: Likewise.
58532         * tests/test-isnan.c: Likewise.
58533         * tests/test-isnanf.c: Likewise.
58534         * tests/test-isnanl-nolibm.c: Likewise.
58535         * tests/test-isnanl.c: Likewise.
58536         * tests/test-isnanl.h: Likewise.
58537         * tests/test-ldexpl.c: Likewise.
58538         * tests/test-linked_list.c: Likewise.
58539         * tests/test-linkedhash_list.c: Likewise.
58540         * tests/test-locale.c: Likewise.
58541         * tests/test-localename.c: Likewise.
58542         * tests/test-lock.c: Likewise.
58543         * tests/test-lseek.c: Likewise.
58544         * tests/test-malloca.c: Likewise.
58545         * tests/test-math.c: Likewise.
58546         * tests/test-mbscasecmp.c: Likewise.
58547         * tests/test-mbscasestr1.c: Likewise.
58548         * tests/test-mbscasestr2.c: Likewise.
58549         * tests/test-mbscasestr3.c: Likewise.
58550         * tests/test-mbscasestr4.c: Likewise.
58551         * tests/test-mbschr.c: Likewise.
58552         * tests/test-mbscspn.c: Likewise.
58553         * tests/test-mbsncasecmp.c: Likewise.
58554         * tests/test-mbspbrk.c: Likewise.
58555         * tests/test-mbspcasecmp.c: Likewise.
58556         * tests/test-mbsrchr.c: Likewise.
58557         * tests/test-mbsspn.c: Likewise.
58558         * tests/test-mbsstr1.c: Likewise.
58559         * tests/test-mbsstr2.c: Likewise.
58560         * tests/test-mbsstr3.c: Likewise.
58561         * tests/test-md5.c: Likewise.
58562         * tests/test-memmem.c: Likewise.
58563         * tests/test-netinet_in.c: Likewise.
58564         * tests/test-open.c: Likewise.
58565         * tests/test-printf-frexp.c: Likewise.
58566         * tests/test-printf-frexpl.c: Likewise.
58567         * tests/test-printf-posix.c: Likewise.
58568         * tests/test-printf-posix.h: Likewise.
58569         * tests/test-rbtree_list.c: Likewise.
58570         * tests/test-rbtree_oset.c: Likewise.
58571         * tests/test-rbtreehash_list.c: Likewise.
58572         * tests/test-read-file.c: Likewise.
58573         * tests/test-rijndael.c: Likewise.
58574         * tests/test-search.c: Likewise.
58575         * tests/test-signbit.c: Likewise.
58576         * tests/test-sleep.c: Likewise.
58577         * tests/test-snprintf-posix.c: Likewise.
58578         * tests/test-snprintf-posix.h: Likewise.
58579         * tests/test-snprintf.c: Likewise.
58580         * tests/test-sprintf-posix.c: Likewise.
58581         * tests/test-sprintf-posix.h: Likewise.
58582         * tests/test-stat-time.c: Likewise.
58583         * tests/test-stdbool.c: Likewise.
58584         * tests/test-stdint.c: Likewise.
58585         * tests/test-stdio.c: Likewise.
58586         * tests/test-stdlib.c: Likewise.
58587         * tests/test-stpncpy.c: Likewise.
58588         * tests/test-strcasestr.c: Likewise.
58589         * tests/test-striconv.c: Likewise.
58590         * tests/test-striconveh.c: Likewise.
58591         * tests/test-striconveha.c: Likewise.
58592         * tests/test-string.c: Likewise.
58593         * tests/test-sys_select.c: Likewise.
58594         * tests/test-sys_socket.c: Likewise.
58595         * tests/test-sys_stat.c: Likewise.
58596         * tests/test-sys_time.c: Likewise.
58597         * tests/test-sysexits.c: Likewise.
58598         * tests/test-time.c: Likewise.
58599         * tests/test-tls.c: Likewise.
58600         * tests/test-trunc.c: Likewise.
58601         * tests/test-truncf.c: Likewise.
58602         * tests/test-truncl.c: Likewise.
58603         * tests/test-unistd.c: Likewise.
58604         * tests/test-vasnprintf-posix.c: Likewise.
58605         * tests/test-vasnprintf-posix2.c: Likewise.
58606         * tests/test-vasnprintf.c: Likewise.
58607         * tests/test-vasprintf-posix.c: Likewise.
58608         * tests/test-vasprintf.c: Likewise.
58609         * tests/test-verify.c: Likewise.
58610         * tests/test-vfprintf-posix.c: Likewise.
58611         * tests/test-vprintf-posix.c: Likewise.
58612         * tests/test-vsnprintf-posix.c: Likewise.
58613         * tests/test-vsnprintf.c: Likewise.
58614         * tests/test-vsprintf-posix.c: Likewise.
58615         * tests/test-wchar.c: Likewise.
58616         * tests/test-wctype.c: Likewise.
58617         * tests/test-wcwidth.c: Likewise.
58618         * tests/test-xstrtol.c: Likewise.
58619         * tests/test-xvasprintf.c: Likewise.
58620         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
58621         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
58622         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58623         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58624         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58625         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58626         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58627         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58628         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58629         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58630         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58631         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58632         * tests/uniname/test-uninames.c: Likewise.
58633         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58634         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
58635         * tests/unistdio/test-u16-printf1.h: Likewise.
58636         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58637         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58638         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58639         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58640         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58641         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58642         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58643         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
58644         * tests/unistdio/test-u32-printf1.h: Likewise.
58645         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58646         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58647         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58648         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58649         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58650         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58651         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58652         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
58653         * tests/unistdio/test-u8-printf1.h: Likewise.
58654         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58655         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58656         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58657         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58658         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58659         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58660         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58661         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
58662         * tests/unistdio/test-ulc-printf1.h: Likewise.
58663         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58664         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58665         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58666         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58667         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58668         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58669         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58670         * tests/uniwidth/test-u16-width.c: Likewise.
58671         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58672         * tests/uniwidth/test-u32-width.c: Likewise.
58673         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58674         * tests/uniwidth/test-u8-width.c: Likewise.
58675         * tests/uniwidth/test-uc_width.c: Likewise.
58676         * config/srclist-update: Likewise.
58677         (fixlicense): Update to GPLv3+.
58678
58679         Change copyright notice from LGPLv2.1+ to LGPLv3+.
58680         * tests/test-tsearch.c: Change copyright notice.
58681
58682         Change copyright notice from LGPLv2.0+ to LGPLv3+.
58683         * lib/c-strcaseeq.h: Change copyright notice.
58684         * lib/streq.h: Likewise.
58685         * lib/uniconv.h: Likewise.
58686         * lib/uniconv/u-conv-from-enc.h: Likewise.
58687         * lib/uniconv/u-conv-to-enc.h: Likewise.
58688         * lib/uniconv/u-strconv-from-enc.h: Likewise.
58689         * lib/uniconv/u-strconv-to-enc.h: Likewise.
58690         * lib/uniconv/u16-conv-from-enc.c: Likewise.
58691         * lib/uniconv/u16-conv-to-enc.c: Likewise.
58692         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
58693         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
58694         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
58695         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
58696         * lib/uniconv/u32-conv-from-enc.c: Likewise.
58697         * lib/uniconv/u32-conv-to-enc.c: Likewise.
58698         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
58699         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
58700         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
58701         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
58702         * lib/uniconv/u8-conv-from-enc.c: Likewise.
58703         * lib/uniconv/u8-conv-to-enc.c: Likewise.
58704         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
58705         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
58706         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
58707         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
58708         * lib/uniname.h: Likewise.
58709         * lib/uniname/uniname.c: Likewise.
58710         * lib/unistdio.h: Likewise.
58711         * lib/unistdio/u-asnprintf.h: Likewise.
58712         * lib/unistdio/u-asprintf.h: Likewise.
58713         * lib/unistdio/u-printf-args.c: Likewise.
58714         * lib/unistdio/u-printf-args.h: Likewise.
58715         * lib/unistdio/u-printf-parse.h: Likewise.
58716         * lib/unistdio/u-snprintf.h: Likewise.
58717         * lib/unistdio/u-sprintf.h: Likewise.
58718         * lib/unistdio/u-vasprintf.h: Likewise.
58719         * lib/unistdio/u-vsnprintf.h: Likewise.
58720         * lib/unistdio/u-vsprintf.h: Likewise.
58721         * lib/unistdio/u16-asnprintf.c: Likewise.
58722         * lib/unistdio/u16-asprintf.c: Likewise.
58723         * lib/unistdio/u16-printf-parse.c: Likewise.
58724         * lib/unistdio/u16-snprintf.c: Likewise.
58725         * lib/unistdio/u16-sprintf.c: Likewise.
58726         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
58727         * lib/unistdio/u16-u16-asprintf.c: Likewise.
58728         * lib/unistdio/u16-u16-snprintf.c: Likewise.
58729         * lib/unistdio/u16-u16-sprintf.c: Likewise.
58730         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
58731         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
58732         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
58733         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
58734         * lib/unistdio/u16-vasnprintf.c: Likewise.
58735         * lib/unistdio/u16-vasprintf.c: Likewise.
58736         * lib/unistdio/u16-vsnprintf.c: Likewise.
58737         * lib/unistdio/u16-vsprintf.c: Likewise.
58738         * lib/unistdio/u32-asnprintf.c: Likewise.
58739         * lib/unistdio/u32-asprintf.c: Likewise.
58740         * lib/unistdio/u32-printf-parse.c: Likewise.
58741         * lib/unistdio/u32-snprintf.c: Likewise.
58742         * lib/unistdio/u32-sprintf.c: Likewise.
58743         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
58744         * lib/unistdio/u32-u32-asprintf.c: Likewise.
58745         * lib/unistdio/u32-u32-snprintf.c: Likewise.
58746         * lib/unistdio/u32-u32-sprintf.c: Likewise.
58747         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
58748         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
58749         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
58750         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
58751         * lib/unistdio/u32-vasnprintf.c: Likewise.
58752         * lib/unistdio/u32-vasprintf.c: Likewise.
58753         * lib/unistdio/u32-vsnprintf.c: Likewise.
58754         * lib/unistdio/u32-vsprintf.c: Likewise.
58755         * lib/unistdio/u8-asnprintf.c: Likewise.
58756         * lib/unistdio/u8-asprintf.c: Likewise.
58757         * lib/unistdio/u8-printf-parse.c: Likewise.
58758         * lib/unistdio/u8-snprintf.c: Likewise.
58759         * lib/unistdio/u8-sprintf.c: Likewise.
58760         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
58761         * lib/unistdio/u8-u8-asprintf.c: Likewise.
58762         * lib/unistdio/u8-u8-snprintf.c: Likewise.
58763         * lib/unistdio/u8-u8-sprintf.c: Likewise.
58764         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
58765         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
58766         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
58767         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
58768         * lib/unistdio/u8-vasnprintf.c: Likewise.
58769         * lib/unistdio/u8-vasprintf.c: Likewise.
58770         * lib/unistdio/u8-vsnprintf.c: Likewise.
58771         * lib/unistdio/u8-vsprintf.c: Likewise.
58772         * lib/unistdio/ulc-asnprintf.c: Likewise.
58773         * lib/unistdio/ulc-asprintf.c: Likewise.
58774         * lib/unistdio/ulc-printf-parse.c: Likewise.
58775         * lib/unistdio/ulc-snprintf.c: Likewise.
58776         * lib/unistdio/ulc-sprintf.c: Likewise.
58777         * lib/unistdio/ulc-vasnprintf.c: Likewise.
58778         * lib/unistdio/ulc-vasprintf.c: Likewise.
58779         * lib/unistdio/ulc-vsnprintf.c: Likewise.
58780         * lib/unistdio/ulc-vsprintf.c: Likewise.
58781         * lib/unistr.h: Likewise.
58782         * lib/unistr/u-cpy-alloc.h: Likewise.
58783         * lib/unistr/u-cpy.h: Likewise.
58784         * lib/unistr/u-endswith.h: Likewise.
58785         * lib/unistr/u-move.h: Likewise.
58786         * lib/unistr/u-set.h: Likewise.
58787         * lib/unistr/u-startswith.h: Likewise.
58788         * lib/unistr/u-stpcpy.h: Likewise.
58789         * lib/unistr/u-stpncpy.h: Likewise.
58790         * lib/unistr/u-strcat.h: Likewise.
58791         * lib/unistr/u-strcpy.h: Likewise.
58792         * lib/unistr/u-strcspn.h: Likewise.
58793         * lib/unistr/u-strdup.h: Likewise.
58794         * lib/unistr/u-strlen.h: Likewise.
58795         * lib/unistr/u-strncat.h: Likewise.
58796         * lib/unistr/u-strncpy.h: Likewise.
58797         * lib/unistr/u-strnlen.h: Likewise.
58798         * lib/unistr/u-strpbrk.h: Likewise.
58799         * lib/unistr/u-strspn.h: Likewise.
58800         * lib/unistr/u-strstr.h: Likewise.
58801         * lib/unistr/u-strtok.h: Likewise.
58802         * lib/unistr/u16-check.c: Likewise.
58803         * lib/unistr/u16-chr.c: Likewise.
58804         * lib/unistr/u16-cmp.c: Likewise.
58805         * lib/unistr/u16-cpy-alloc.c: Likewise.
58806         * lib/unistr/u16-cpy.c: Likewise.
58807         * lib/unistr/u16-endswith.c: Likewise.
58808         * lib/unistr/u16-mblen.c: Likewise.
58809         * lib/unistr/u16-mbsnlen.c: Likewise.
58810         * lib/unistr/u16-mbtouc-aux.c: Likewise.
58811         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
58812         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
58813         * lib/unistr/u16-mbtouc.c: Likewise.
58814         * lib/unistr/u16-mbtoucr.c: Likewise.
58815         * lib/unistr/u16-move.c: Likewise.
58816         * lib/unistr/u16-next.c: Likewise.
58817         * lib/unistr/u16-prev.c: Likewise.
58818         * lib/unistr/u16-set.c: Likewise.
58819         * lib/unistr/u16-startswith.c: Likewise.
58820         * lib/unistr/u16-stpcpy.c: Likewise.
58821         * lib/unistr/u16-stpncpy.c: Likewise.
58822         * lib/unistr/u16-strcat.c: Likewise.
58823         * lib/unistr/u16-strchr.c: Likewise.
58824         * lib/unistr/u16-strcmp.c: Likewise.
58825         * lib/unistr/u16-strcpy.c: Likewise.
58826         * lib/unistr/u16-strcspn.c: Likewise.
58827         * lib/unistr/u16-strdup.c: Likewise.
58828         * lib/unistr/u16-strlen.c: Likewise.
58829         * lib/unistr/u16-strmblen.c: Likewise.
58830         * lib/unistr/u16-strmbtouc.c: Likewise.
58831         * lib/unistr/u16-strncat.c: Likewise.
58832         * lib/unistr/u16-strncmp.c: Likewise.
58833         * lib/unistr/u16-strncpy.c: Likewise.
58834         * lib/unistr/u16-strnlen.c: Likewise.
58835         * lib/unistr/u16-strpbrk.c: Likewise.
58836         * lib/unistr/u16-strrchr.c: Likewise.
58837         * lib/unistr/u16-strspn.c: Likewise.
58838         * lib/unistr/u16-strstr.c: Likewise.
58839         * lib/unistr/u16-strtok.c: Likewise.
58840         * lib/unistr/u16-to-u32.c: Likewise.
58841         * lib/unistr/u16-to-u8.c: Likewise.
58842         * lib/unistr/u16-uctomb-aux.c: Likewise.
58843         * lib/unistr/u16-uctomb.c: Likewise.
58844         * lib/unistr/u32-check.c: Likewise.
58845         * lib/unistr/u32-chr.c: Likewise.
58846         * lib/unistr/u32-cmp.c: Likewise.
58847         * lib/unistr/u32-cpy-alloc.c: Likewise.
58848         * lib/unistr/u32-cpy.c: Likewise.
58849         * lib/unistr/u32-endswith.c: Likewise.
58850         * lib/unistr/u32-mblen.c: Likewise.
58851         * lib/unistr/u32-mbsnlen.c: Likewise.
58852         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
58853         * lib/unistr/u32-mbtouc.c: Likewise.
58854         * lib/unistr/u32-mbtoucr.c: Likewise.
58855         * lib/unistr/u32-move.c: Likewise.
58856         * lib/unistr/u32-next.c: Likewise.
58857         * lib/unistr/u32-prev.c: Likewise.
58858         * lib/unistr/u32-set.c: Likewise.
58859         * lib/unistr/u32-startswith.c: Likewise.
58860         * lib/unistr/u32-stpcpy.c: Likewise.
58861         * lib/unistr/u32-stpncpy.c: Likewise.
58862         * lib/unistr/u32-strcat.c: Likewise.
58863         * lib/unistr/u32-strchr.c: Likewise.
58864         * lib/unistr/u32-strcmp.c: Likewise.
58865         * lib/unistr/u32-strcpy.c: Likewise.
58866         * lib/unistr/u32-strcspn.c: Likewise.
58867         * lib/unistr/u32-strdup.c: Likewise.
58868         * lib/unistr/u32-strlen.c: Likewise.
58869         * lib/unistr/u32-strmblen.c: Likewise.
58870         * lib/unistr/u32-strmbtouc.c: Likewise.
58871         * lib/unistr/u32-strncat.c: Likewise.
58872         * lib/unistr/u32-strncmp.c: Likewise.
58873         * lib/unistr/u32-strncpy.c: Likewise.
58874         * lib/unistr/u32-strnlen.c: Likewise.
58875         * lib/unistr/u32-strpbrk.c: Likewise.
58876         * lib/unistr/u32-strrchr.c: Likewise.
58877         * lib/unistr/u32-strspn.c: Likewise.
58878         * lib/unistr/u32-strstr.c: Likewise.
58879         * lib/unistr/u32-strtok.c: Likewise.
58880         * lib/unistr/u32-to-u16.c: Likewise.
58881         * lib/unistr/u32-to-u8.c: Likewise.
58882         * lib/unistr/u32-uctomb.c: Likewise.
58883         * lib/unistr/u8-check.c: Likewise.
58884         * lib/unistr/u8-chr.c: Likewise.
58885         * lib/unistr/u8-cmp.c: Likewise.
58886         * lib/unistr/u8-cpy-alloc.c: Likewise.
58887         * lib/unistr/u8-cpy.c: Likewise.
58888         * lib/unistr/u8-endswith.c: Likewise.
58889         * lib/unistr/u8-mblen.c: Likewise.
58890         * lib/unistr/u8-mbsnlen.c: Likewise.
58891         * lib/unistr/u8-mbtouc-aux.c: Likewise.
58892         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
58893         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
58894         * lib/unistr/u8-mbtouc.c: Likewise.
58895         * lib/unistr/u8-mbtoucr.c: Likewise.
58896         * lib/unistr/u8-move.c: Likewise.
58897         * lib/unistr/u8-next.c: Likewise.
58898         * lib/unistr/u8-prev.c: Likewise.
58899         * lib/unistr/u8-set.c: Likewise.
58900         * lib/unistr/u8-startswith.c: Likewise.
58901         * lib/unistr/u8-stpcpy.c: Likewise.
58902         * lib/unistr/u8-stpncpy.c: Likewise.
58903         * lib/unistr/u8-strcat.c: Likewise.
58904         * lib/unistr/u8-strchr.c: Likewise.
58905         * lib/unistr/u8-strcmp.c: Likewise.
58906         * lib/unistr/u8-strcpy.c: Likewise.
58907         * lib/unistr/u8-strcspn.c: Likewise.
58908         * lib/unistr/u8-strdup.c: Likewise.
58909         * lib/unistr/u8-strlen.c: Likewise.
58910         * lib/unistr/u8-strmblen.c: Likewise.
58911         * lib/unistr/u8-strmbtouc.c: Likewise.
58912         * lib/unistr/u8-strncat.c: Likewise.
58913         * lib/unistr/u8-strncmp.c: Likewise.
58914         * lib/unistr/u8-strncpy.c: Likewise.
58915         * lib/unistr/u8-strnlen.c: Likewise.
58916         * lib/unistr/u8-strpbrk.c: Likewise.
58917         * lib/unistr/u8-strrchr.c: Likewise.
58918         * lib/unistr/u8-strspn.c: Likewise.
58919         * lib/unistr/u8-strstr.c: Likewise.
58920         * lib/unistr/u8-strtok.c: Likewise.
58921         * lib/unistr/u8-to-u16.c: Likewise.
58922         * lib/unistr/u8-to-u32.c: Likewise.
58923         * lib/unistr/u8-uctomb-aux.c: Likewise.
58924         * lib/unistr/u8-uctomb.c: Likewise.
58925         * lib/unitypes.h: Likewise.
58926         * lib/uniwidth.h: Likewise.
58927         * lib/uniwidth/cjk.h: Likewise.
58928         * lib/uniwidth/u16-strwidth.c: Likewise.
58929         * lib/uniwidth/u16-width.c: Likewise.
58930         * lib/uniwidth/u32-strwidth.c: Likewise.
58931         * lib/uniwidth/u32-width.c: Likewise.
58932         * lib/uniwidth/u8-strwidth.c: Likewise.
58933         * lib/uniwidth/u8-width.c: Likewise.
58934         * lib/uniwidth/width.c: Likewise.
58935
58936 2007-10-07  Bruno Haible  <bruno@clisp.org>
58937
58938         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
58939         The file is still under LGPL (see modules/inttypes).
58940
58941 2007-10-06  Bruno Haible  <bruno@clisp.org>
58942
58943         * modules/trunc (Dependencies): Add 'extensions'.
58944         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
58945         Reported by Ben Pfaff <blp@gnu.org>.
58946
58947 2007-10-06  Bruno Haible  <bruno@clisp.org>
58948
58949         * modules/freopen-tests: New file.
58950         * tests/test-freopen.c: New file.
58951
58952         * modules/fopen-tests: New file.
58953         * tests/test-fopen.c: New file.
58954
58955         * modules/fopen: New file.
58956         * lib/fopen.c: New file.
58957         * m4/fopen.m4: New file.
58958         * modules/freopen: New file.
58959         * lib/freopen.c: New file.
58960         * m4/freopen.m4: New file.
58961         * lib/stdio.in.h (fopen, freopen): New declarations.
58962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
58963         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58964         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
58965         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58966         * doc/functions/fopen.texi: Mention the 'fopen' module.
58967         * doc/functions/freopen.texi: Mention the 'freopen' module.
58968
58969 2007-10-06  Bruno Haible  <bruno@clisp.org>
58970
58971         * modules/open-tests: New file.
58972         * tests/test-open.c: New file.
58973
58974         * modules/open: New file.
58975         * lib/open.c: New file.
58976         * m4/open.m4: New file.
58977         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
58978         lib/open.c does.
58979         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
58980         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
58981         macros.
58982         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
58983         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
58984         REPLACE_OPEN.
58985         * doc/functions/open.texi: Mention the 'open' module.
58986
58987 2007-10-04  Bruno Haible  <bruno@clisp.org>
58988
58989         * modules/ceill-tests: New file.
58990         * tests/test-ceill.c: New file.
58991
58992         * modules/ceill: New file.
58993         * lib/ceill.c: Replace entire file.
58994         * m4/ceill.m4: New file.
58995         * lib/math.in.h (ceill): Replace declaration.
58996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
58997         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
58998         * doc/functions/ceill.texi: Mention the 'ceill' module.
58999         * modules/mathl (Files): Remove lib/ceill.c.
59000         (Depends-on): Add ceill.
59001
59002 2007-10-04  Bruno Haible  <bruno@clisp.org>
59003
59004         * modules/ceilf-tests: New file.
59005         * tests/test-ceilf.c: New file.
59006
59007         * modules/ceilf: New file.
59008         * lib/ceil.c: New file.
59009         * lib/ceilf.c: New file.
59010         * m4/ceilf.m4: New file.
59011         * lib/math.in.h (ceilf): New declaration.
59012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
59013         HAVE_DECL_CEILF.
59014         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
59015         HAVE_DECL_CEILF.
59016         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
59017
59018 2007-10-04  Bruno Haible  <bruno@clisp.org>
59019
59020         * modules/floorl-tests: New file.
59021         * tests/test-floorl.c: New file.
59022
59023         * modules/floorl: New file.
59024         * lib/floorl.c: Replace entire file.
59025         * m4/floorl.m4: New file.
59026         * lib/math.in.h (floorl): Replace declaration.
59027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
59028         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
59029         * doc/functions/floorl.texi: Mention the 'floorl' module.
59030         * modules/mathl (Files): Remove lib/floorl.c.
59031         (Depends-on): Add floorl.
59032
59033 2007-10-04  Bruno Haible  <bruno@clisp.org>
59034
59035         * modules/floorf-tests: New file.
59036         * tests/test-floorf.c: New file.
59037
59038         * modules/floorf: New file.
59039         * lib/floor.c: New file.
59040         * lib/floorf.c: New file.
59041         * m4/floorf.m4: New file.
59042         * lib/math.in.h (floorf): New declaration.
59043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
59044         HAVE_DECL_FLOORF.
59045         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
59046         HAVE_DECL_FLOORF.
59047         * doc/functions/floorf.texi: Mention the 'floorf' module.
59048
59049 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
59050             Bruno Haible  <bruno@clisp.org>
59051
59052         Advertise for the Git server instead of the CVS server.
59053         * doc/gnulib-intro.texi (Steady Development): Mention the Git
59054         repository instead of the CVS one.
59055         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
59056         about all VCS systems generically.
59057         * doc/gnulib.texi (Introduction): Capitalize `Git'.
59058
59059 2007-10-04  Bruno Haible  <bruno@clisp.org>
59060
59061         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
59062         means.
59063         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
59064
59065 2007-10-04  Bruno Haible  <bruno@clisp.org>
59066
59067         * modules/truncl-tests: New file.
59068         * tests/test-truncl.c: New file.
59069
59070         * modules/truncl: New file.
59071         * lib/truncl.c: New file.
59072         * m4/truncl.m4: New file.
59073         * lib/math.in.h (truncl): New declaration.
59074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
59075         HAVE_DECL_TRUNCL.
59076         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
59077         HAVE_DECL_TRUNCL.
59078         * doc/functions/truncl.texi: Mention the 'truncl' module.
59079
59080 2007-10-04  Bruno Haible  <bruno@clisp.org>
59081
59082         * modules/truncf-tests: New file.
59083         * tests/test-truncf.c: New file.
59084
59085         * modules/truncf: New file.
59086         * lib/trunc.c: Make paramerizable through USE_* macros.
59087         * lib/truncf.c: New file.
59088         * m4/truncf.m4: New file.
59089         * lib/math.in.h (truncf): New declaration.
59090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
59091         HAVE_DECL_TRUNCF.
59092         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
59093         HAVE_DECL_TRUNCF.
59094         * doc/functions/truncf.texi: Mention the 'truncf' module.
59095
59096 2007-10-03  Bruno Haible  <bruno@clisp.org>
59097
59098         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59099         augmentation also for tests modules.
59100         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
59101         * modules/atexit-tests (Makefile.am): Likewise.
59102         * modules/binary-io-tests (Makefile.am): Likewise.
59103         * modules/c-strcase-tests (Makefile.am): Likewise.
59104         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
59105         * modules/canonicalize-tests (Makefile.am): Likewise.
59106         * modules/closein-tests (Makefile.am): Likewise.
59107         * modules/fprintf-posix-tests (Makefile.am): Likewise.
59108         * modules/freadahead-tests (Makefile.am): Likewise.
59109         * modules/fseek-tests (Makefile.am): Likewise.
59110         * modules/fseeko-tests (Makefile.am): Likewise.
59111         * modules/ftell-tests (Makefile.am): Likewise.
59112         * modules/ftello-tests (Makefile.am): Likewise.
59113         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
59114         * modules/isnanl-tests (Makefile.am): Likewise.
59115         * modules/lseek-tests (Makefile.am): Likewise.
59116         * modules/mbscasecmp-tests (Makefile.am): Likewise.
59117         * modules/mbscasestr-tests (Makefile.am): Likewise.
59118         * modules/mbschr-tests (Makefile.am): Likewise.
59119         * modules/mbscspn-tests (Makefile.am): Likewise.
59120         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
59121         * modules/mbspbrk-tests (Makefile.am): Likewise.
59122         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
59123         * modules/mbsrchr-tests (Makefile.am): Likewise.
59124         * modules/mbsspn-tests (Makefile.am): Likewise.
59125         * modules/mbsstr-tests (Makefile.am): Likewise.
59126         * modules/printf-posix-tests (Makefile.am): Likewise.
59127         * modules/snprintf-posix-tests (Makefile.am): Likewise.
59128         * modules/sprintf-posix-tests (Makefile.am): Likewise.
59129         * modules/tsearch-tests (Makefile.am): Likewise.
59130         * modules/uniname/uniname-tests (Makefile.am): Likewise.
59131         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
59132         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
59133         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
59134         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
59135         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
59136         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
59137         * modules/vprintf-posix-tests (Makefile.am): Likewise.
59138         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
59139         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
59140         * modules/xstrtoimax-tests (Makefile.am): Likewise.
59141         * modules/xstrtol-tests (Makefile.am): Likewise.
59142         * modules/xstrtoumax-tests (Makefile.am): Likewise.
59143         * modules/yesno-tests (Makefile.am): Likewise.
59144
59145 2007-10-03  Bruno Haible  <bruno@clisp.org>
59146
59147         * modules/trunc-tests: New file.
59148         * tests/test-trunc.c: New file.
59149
59150         * modules/trunc: New file.
59151         * lib/trunc.c: New file.
59152         * m4/trunc.m4: New file.
59153         * lib/math.in.h (trunc): New declaration.
59154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
59155         HAVE_DECL_TRUNC.
59156         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
59157         HAVE_DECL_TRUNC.
59158         * doc/functions/trunc.texi: Mention the 'trunc' module.
59159
59160 2007-10-03  Bruno Haible  <bruno@clisp.org>
59161
59162         * tests/test-fpending.c: New file, mostly copied
59163         from coreutils/lib/t-fpending.c.
59164         * modules/fpending-tests: New file.
59165
59166 2007-10-03  Bruno Haible  <bruno@clisp.org>
59167
59168         Port the stdio extensions to QNX (untested).
59169         * lib/fseterr.c (fseterr): Add support for QNX.
59170         * lib/fbufmode.c (fbufmode): Likewise.
59171         * lib/freadable.c (freadable): Likewise.
59172         * lib/fwritable.c (fwritable): Likewise.
59173         * lib/freading.c (freading): Likewise.
59174         * lib/fwriting.c (fwriting): Likewise.
59175         * lib/freadahead.c (freadahed): Likewise.
59176         * lib/fpurge.c (fpurge): Likewise.
59177         * lib/fseeko.c (rpl_fseeko): Likewise.
59178
59179 2007-10-03  Bruno Haible  <bruno@clisp.org>
59180             Jim Meyering  <jim@meyering.net>
59181             Eric Blake  <ebb9@byu.net>
59182
59183         * doc/relocatable.texi: Use @command instead of @program.
59184
59185 2007-10-02  Jim Meyering  <jim@meyering.net>
59186
59187         Perform one more "_.h" -> ".in.h" substitution.
59188         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
59189         instead of unistd_.h here, too.
59190
59191 2007-10-01  Bruno Haible  <bruno@clisp.org>
59192
59193         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
59194         Needed for the alloca-opt module.
59195
59196 2007-09-30  Bruno Haible  <bruno@clisp.org>
59197
59198         * lib/alloca.in.h: Renamed from lib/alloca_.h.
59199         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
59200         alloca_.h.
59201         * lib/argz.in.h: Renamed from lib/argz_.h.
59202         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
59203         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
59204         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
59205         byteswap_.h.
59206         * lib/dirent.in.h: Renamed from lib/dirent_.h.
59207         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
59208         dirent_.h.
59209         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
59210         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
59211         fcntl_.h.
59212         * lib/float.in.h: Renamed from lib/float_.h.
59213         * modules/float (Files, Makefile.am): Use float.in.h instead of
59214         float_.h.
59215         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
59216         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
59217         fnmatch_.h.
59218         * lib/getopt.in.h: Renamed from lib/getopt_.h.
59219         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
59220         getopt_.h.
59221         * lib/glob.in.h: Renamed from lib/glob_.h.
59222         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
59223         * lib/iconv.in.h: Renamed from lib/iconv_.h.
59224         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
59225         iconv_.h.
59226         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
59227         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
59228         inttypes_.h.
59229         * lib/locale.in.h: Renamed from lib/locale_.h.
59230         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
59231         locale_.h.
59232         * lib/math.in.h: Renamed from lib/math_.h.
59233         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
59234         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
59235         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
59236         of netinet_in_.h. Add dependency.
59237         * lib/poll.in.h: Renamed from lib/poll_.h.
59238         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
59239         * lib/search.in.h: Renamed from lib/search_.h.
59240         * modules/search (Files, Makefile.am): Use search.in.h instead of
59241         search_.h.
59242         * lib/signal.in.h: Renamed from lib/signal_.h.
59243         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
59244         _signal.h.
59245         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
59246         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
59247         stdbool_.h.
59248         * lib/stdint.in.h: Renamed from lib/stdint_.h.
59249         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
59250         stdint_.h.
59251         * lib/stdio.in.h: Renamed from lib/stdio_.h.
59252         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
59253         stdio_.h.
59254         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
59255         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
59256         stdlib_.h.
59257         * lib/string.in.h: Renamed from lib/string_.h.
59258         * modules/string (Files, Makefile.am): Use string.in.h instead of
59259         string_.h.
59260         * doc/gnulib-tool.texi (Initial import): Update.
59261         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
59262         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
59263         of sys_select_.h. Add dependency.
59264         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
59265         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
59266         of sys_socket_.h.
59267         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
59268         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
59269         sys_stat_.h.
59270         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
59271         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
59272         sys_time_.h.
59273         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
59274         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
59275         sysexits_.h.
59276         * lib/time.in.h: Renamed from lib/time_.h.
59277         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
59278         * lib/unistd.in.h: Renamed from lib/unistd_.h.
59279         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
59280         unistd_.h.
59281         * lib/wchar.in.h: Renamed from lib/wchar_.h.
59282         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
59283         wchar_.h.
59284         * lib/wctype.in.h: Renamed from lib/wctype_.h.
59285         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
59286         wctype_.h.
59287         * build-aux/bootstrap (slurp): Update.
59288         * lib/.cppi-disable: Update.
59289
59290 2007-09-30  Bruno Haible  <bruno@clisp.org>
59291
59292         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
59293         Needed on BeOS.
59294
59295 2007-09-30  Bruno Haible  <bruno@clisp.org>
59296
59297         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
59298
59299 2007-09-29  Bruno Haible  <bruno@clisp.org>
59300
59301         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
59302
59303 2007-09-29  Bruno Haible  <bruno@clisp.org>
59304
59305         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
59306         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
59307         * build-aux/install-reloc: Compile also areadlink.c.
59308         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
59309
59310 2007-09-29  Bruno Haible  <bruno@clisp.org>
59311
59312         * gnulib-tool (func_emit_initmacro_done): Indentation.
59313
59314 2007-09-29  Bruno Haible  <bruno@clisp.org>
59315
59316         * README: Add CVS checkout update instructions.
59317         Info from Bob Proulx <bob@proulx.com>.
59318
59319 2007-09-28  Eric Blake  <ebb9@byu.net>
59320
59321         Provide move-if-change.
59322         * build-aux/move-if-change: New file, based on best practice
59323         rather than any canonical upstream location.
59324
59325 2007-09-28  Jim Meyering  <jim@meyering.net>
59326
59327         Fix canonicalize loop-detection corner case.
59328         Do not attempt to stat the symlink values stored via seen_triple.
59329         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
59330         on linux-2.6.18, (but not 2.6.22).
59331         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
59332         triple_compare.  The former compares dev,ino,filename, while the latter
59333         would actually stat dirname(filename) when dev and ino were equal.
59334         * lib/hash-triple.c: Install <string.h>.
59335         (STREQ): Define.
59336         (triple_compare_ino_str): New function.
59337         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
59338
59339 2007-09-28  Eric Blake  <ebb9@byu.net>
59340
59341         Enforce that AC_REPLACE_FUNCS files exist.
59342         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
59343         override check for typos.
59344
59345         Fix test-closein on Solaris 10.
59346         * tests/test-closein.c (main): Don't assume stdin can be inherited
59347         closed on all systems.
59348         * tests/test-closein.sh: Likewise.
59349         Reported by Piotr Tarnowski.
59350
59351 2007-09-28  Jim Meyering  <jim@meyering.net>
59352
59353         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
59354
59355 2007-09-27  Jim Meyering  <jim@meyering.net>
59356
59357         canonicalize: Avoid a false-positive cycle failure.
59358         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
59359         Sort.  Remove cycle-check.
59360         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
59361         not cycle-check.h.
59362         (seen_triple): New function.
59363         (canonicalize_filename_mode): Use it instead of cycle-check.
59364         * tests/test-canonicalize.c: Add a test for this bug.
59365         * tests/test-canonicalize.sh: Set up and run the test.
59366
59367         New module, file-set, from coreutils.
59368         * modules/file-set: Define it.
59369         * lib/file-set.c, lib/file-set.h: Implement.
59370
59371         New module, hash-triple, from coreutils.
59372         * modules/hash-triple: Define it.
59373         * lib/hash-triple.c, lib/hash-triple.h: Implement.
59374
59375 2007-09-25  Eric Blake  <ebb9@byu.net>
59376
59377         Fix strerror on Interix.
59378         * lib/string_.h (strerror): Declare replacement.
59379         * doc/functions/strerror.texi (strerror): Document the Interix
59380         shortcoming.
59381         * modules/string (Makefile.am): Support new hooks.
59382         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
59383         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
59384         gl_FUNC_STRERROR_SEPARATE.
59385         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
59386         * lib/strerror.c (rpl_strerror): Provide replacement.
59387         * modules/strerror (Depends-on): Add string.
59388         (configure.ac): Detect use of module.
59389         * tests/test-strerror.c: New file.
59390         * modules/strerror-tests: New test module.
59391         * modules/argp (Depends-on): Add strerror.
59392         * modules/error (Depends-on): Likewise.
59393         Reported by Martin Koeppe.
59394
59395 2007-09-24  Bruno Haible  <bruno@clisp.org>
59396
59397         * README: Update git instructions.
59398
59399 2007-09-24  Eric Blake  <ebb9@byu.net>
59400
59401         Revert fpending breakage from 2007-09-08.
59402         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
59403         __fpending.c.
59404
59405 2007-09-24  Jim Meyering  <jim@meyering.net>
59406
59407         filenamecat.c: Add a test.
59408         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
59409         showing how the function works when DIR is the empty string.
59410
59411 2007-09-21  Simon Josefsson  <simon@josefsson.org>
59412
59413         * tests/test-canonicalize.sh: Turn on executable bit.
59414
59415 2007-09-19  Eric Blake  <ebb9@byu.net>
59416
59417         * README: Update CVS instructions.
59418
59419 2007-09-18  Bruno Haible  <bruno@clisp.org>
59420
59421         * modules/areadlink: New file.
59422         * lib/areadlink.h (areadlink): New declaration.
59423         * lib/areadlink.c: New file, based on lib/xreadlink.c.
59424
59425 2007-09-17  Jim Meyering  <jim@meyering.net>
59426
59427         * lib/savewd.c (ESTALE) [!defined]: Define.
59428         Reported to be required on Interix by Martin Koeppe.
59429
59430 2007-09-17  Bruno Haible  <bruno@clisp.org>
59431
59432         * gnulib-tool (func_version): Use $version.
59433
59434 2007-09-16  Bruno Haible  <bruno@clisp.org>
59435
59436         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
59437         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
59438         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
59439         Reported by Greg Schafer <gschafer@zip.com.au>.
59440
59441 2007-09-15  Bruno Haible  <bruno@clisp.org>
59442
59443         * gnulib-tool (sed): Try a little harder to make bash understand the
59444         alias.
59445         Reported by Bruce Korb <bruce.korb@gmail.com>.
59446
59447 2007-09-13  Eric Blake  <ebb9@byu.net>
59448
59449         * ChangeLog: Remove conflict markers.
59450
59451 2007-09-13  Simon Josefsson  <simon@josefsson.org>
59452
59453         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
59454         Reported by Bruno Haible <bruno@clisp.org>.
59455
59456 2007-09-12  Bruno Haible  <bruno@clisp.org>
59457
59458         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
59459         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
59460         is not defined.
59461
59462 2007-09-12  Eric Blake  <ebb9@byu.net>
59463
59464         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
59465         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
59466         Autoconf definition.
59467         * modules/euidaccess (Depends-on): Add extensions, for
59468         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
59469         * modules/fnmatch (Depends-on): Likewise.
59470         * modules/getaddrinfo (Depends-on): Likewise.
59471         * modules/getdelim (Depends-on): Likewise.
59472         * modules/getline (Depends-on): Likewise.
59473         * modules/getsubopt (Depends-on): Likewise.
59474         * modules/gettext (Depends-on): Likewise.
59475         * modules/group-member (Depends-on): Likewise.
59476         * modules/mbchar (Depends-on): Likewise.
59477         * modules/memmem (Depends-on): Likewise.
59478         * modules/mempcpy (Depends-on): Likewise.
59479         * modules/memrchr (Depends-on): Likewise.
59480         * modules/pagealign_alloc (Depends-on): Likewise.
59481         * modules/readutmp (Depends-on): Likewise.
59482         * modules/stpcpy (Depends-on): Likewise.
59483         * modules/stpncpy (Depends-on): Likewise.
59484         * modules/strchrnul (Depends-on): Likewise.
59485         * modules/strndup (Depends-on): Likewise.
59486         * modules/strsep (Depends-on): Likewise.
59487         * modules/strverscmp (Depends-on): Likewise.
59488         * modules/vasprintf (Depends-on): Likewise.
59489         * modules/wcwidth (Depends-on): Likewise.
59490         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
59491         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
59492         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
59493         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
59494         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59495         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59496         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
59497         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59498         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
59499         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
59500         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59501         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59502         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59503         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59504         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
59505         * m4/readutmp.m4 (gl_READUTMP): Likewise.
59506         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59507         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59508         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59509         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59510         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59511         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59512         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59513         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
59514         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
59515         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59516         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
59517         so that lock.m4 can be used in gettext without extensions module.
59518
59519 2007-09-11  Bruno Haible  <bruno@clisp.org>
59520
59521         * m4/isc-posix.m4: Remove file.
59522         Suggested by Eric Blake.
59523
59524 2007-09-11  Eric Blake  <ebb9@byu.net>
59525
59526         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
59527
59528 2007-09-10  Bruno Haible  <bruno@clisp.org>
59529
59530         * posix-modules: Fix typo in error message.
59531         Reported by Matt <mkraai@beckman.com>.
59532
59533 2007-09-09  Bruno Haible  <bruno@clisp.org>
59534
59535         * doc/functions/getdelim.texi: Update list of platforms lacking the
59536         function.
59537         * doc/functions/getline.texi: Likewise.
59538
59539 2007-09-09  Jim Meyering  <jim@meyering.net>
59540
59541         * lib/hash.c (hash_initialize): Detect calloc failure.
59542         Reported by Bruno Haible.
59543
59544 2007-09-09  Bruno Haible  <bruno@clisp.org>
59545
59546         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
59547         malloc or realloc fails.
59548
59549 2007-09-09  Bruno Haible  <bruno@clisp.org>
59550
59551         * modules/getcwd (Depends-on): Add malloc-posix.
59552         * modules/glob (Depends-on): Likewise.
59553         * modules/putenv (Depends-on): Likewise.
59554         * modules/strdup (Depends-on): Likewise.
59555         * modules/getdelim (Depends-on): Add realloc-posix.
59556         * modules/read-file (Depends-on): Likewise.
59557
59558 2007-09-09  Bruno Haible  <bruno@clisp.org>
59559
59560         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
59561         (gl_FUNC_MALLOC_POSIX): Require it.
59562         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
59563         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
59564         * modules/realloc (Files): Add m4/malloc.m4.
59565         * modules/calloc (Files): Likewise.
59566
59567 2007-09-09  Bruno Haible  <bruno@clisp.org>
59568
59569         * modules/malloc-posix: New file.
59570         * modules/malloc (Depends-on): Add malloc-posix.
59571         * lib/malloc.c: Include errno.h.
59572         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
59573         and a POSIX-compatible malloc into a single function. Set ENOMEM
59574         when returning NULL.
59575         * m4/malloc.m4: New file.
59576         * doc/functions/malloc.texi: Mention the malloc-posix module.
59577         * lib/stdlib_.h (malloc): New declaration.
59578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59579         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
59580         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
59581         and HAVE_MALLOC_POSIX.
59582
59583 2007-09-09  Bruno Haible  <bruno@clisp.org>
59584
59585         * modules/realloc-posix: New file.
59586         * modules/realloc (Depends-on): Add realloc-posix.
59587         * lib/realloc.c: Include errno.h.
59588         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
59589         and a POSIX-compatible realloc into a single function. Set ENOMEM
59590         when returning NULL.
59591         * m4/realloc.m4: New file.
59592         * doc/functions/realloc.texi: Mention the realloc-posix module.
59593         * lib/stdlib_.h (realloc): New declaration.
59594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59595         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
59596         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
59597         and HAVE_REALLOC_POSIX.
59598
59599 2007-09-09  Bruno Haible  <bruno@clisp.org>
59600
59601         * modules/calloc-posix: New file.
59602         * modules/calloc (Depends-on): Add calloc-posix.
59603         * lib/calloc.c: Include errno.h.
59604         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
59605         and a POSIX-compatible calloc into a single function. Set ENOMEM
59606         when returning NULL.
59607         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
59608         * doc/functions/calloc.texi: Mention the calloc-posix module.
59609         * lib/stdlib_.h (calloc): New declaration.
59610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59611         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
59612         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
59613         and HAVE_CALLOC_POSIX.
59614
59615 2007-09-09  Bruno Haible  <bruno@clisp.org>
59616
59617         Allow for modules to show an arbitrary notice.
59618         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
59619         * gnulib-tool: New option --extract-notice.
59620         (func_usage): Document it.
59621         (sed_extract_prog): Update.
59622         (func_get_notice): New function.
59623         (func_modules_notice): New function.
59624         (func_import, func_create_testdir): Invoke it.
59625         Suggested by Jim Meyering.
59626
59627 2007-09-09  Bruno Haible  <bruno@clisp.org>
59628
59629         * gnulib-tool: New options --verbose, --quiet.
59630         (func_usage): Document them.
59631         (verbose): New variable.
59632         (func_execute_command): New function.
59633         (func_import): Don't show the module list and the file list if
59634         $verbose < 0.
59635         (func_create_testdir): Likewise. Use func_execute_command.
59636         (func_create_megatestdir): Use func_execute_command.
59637
59638 2007-09-08  Bruno Haible  <bruno@clisp.org>
59639
59640         * gnulib-tool (func_import): Prefer rsync over wget when available,
59641         for fetching the PO files.
59642
59643 2007-09-08  Bruno Haible  <bruno@clisp.org>
59644
59645         * posix-modules: New file. Portions copied from gnulib-tool.
59646         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
59647
59648 2007-09-08  Jim Meyering  <jim@meyering.net>
59649
59650         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
59651         * lib/fpending.h: Rename from __fpending.h.
59652         * lib/fpending.c: Rename from __fpending.c.
59653         Include "fpending.h", not "__fpending.h".
59654         * lib/__fpending.h, lib/__fpending.c: Remove files.
59655         * modules/fpending (Files): Reflect new file names.
59656         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
59657
59658 2007-09-08  Bruno Haible  <bruno@clisp.org>
59659
59660         * m4/inttypes-h.m4: Remove stub file.
59661
59662 2007-09-07  Simon Josefsson  <simon@josefsson.org>
59663
59664         * doc/headers/stdint.texi: Discuss #include_next issue.
59665
59666 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59667
59668         * build-aux/bootstrap: Remove obsolete comment about wget --help.
59669
59670 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59671
59672         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
59673         in variable name.
59674
59675 2007-09-03  Jim Meyering  <jim@meyering.net>
59676
59677         New module: git-version-gen.
59678         * modules/git-version-gen: New file.
59679
59680         Import changes from coreutils for bootstrap script.
59681
59682         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
59683
59684         bootstrap: uses rsync to download the .po files
59685         * build-aux/bootstrap (po_download_command_format): New global.
59686         (download_po_files): Use rsync.
59687         (update_po_files): Don't remove .po files after download,
59688         so future rsync runs can take advantage of the copies.
59689
59690         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
59691
59692         Solve the unnecessary-.po-file-regeneration problem once and for all.
59693         * build-aux/bootstrap (download_po_files): New function, renamed from
59694         get_translations.  Now, downloads, but doesn't update LINGUAS.
59695         (update_po_files): New function.
59696
59697         bootstrap: Ignore more.
59698         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
59699         uniwidth to e.g., lib/.gitignore.
59700         (slurp): Handle the sys_stat_.h -> sys mapping, too.
59701
59702         * build-aux/bootstrap: New setting: vc_ignore.
59703         (insert_sorted_if_absent): Create $file if absent.
59704         Adapt to new, possibly empty, list: $vc_ignore.
59705
59706         bootstrap: generate more ignorable names
59707         * build-aux/bootstrap (slurp): When generating ignorable names,
59708         also map .sin to .sed, .gperf to .c, and .y to .c.
59709
59710 2007-09-03  Jim Meyering  <jim@meyering.net>
59711
59712         * build-aux/git-version-gen: New file, from coreutils.  For details, see
59713         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
59714
59715 2007-09-02  Bruno Haible  <bruno@clisp.org>
59716
59717         Fix mis-recognition of 'mcs' on QNX 6.
59718         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
59719         output contains the string "Mono".
59720         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
59721         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
59722
59723 2007-09-01  Bruno Haible  <bruno@clisp.org>
59724
59725         Fix collision between uniwidth/* and linebreak modules.
59726         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
59727         u32_width): Remove declarations.
59728         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
59729         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
59730         streq3, streq2, streq1, streq0): Remove functions.
59731         (STREQ): Remove macro.
59732         (is_cjk_encoding): Remove function.
59733         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
59734         (uc_width, u8_width, u16_width, u32_width): Remove functions.
59735         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
59736         * NEWS: Document the change.
59737
59738 2007-09-01  Bruno Haible  <bruno@clisp.org>
59739
59740         * lib/streq.h: Add double-inclusion guard.
59741
59742 2007-09-01  Karl Berry  <karl@gnu.org>
59743
59744         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
59745
59746 2007-08-28  Jim Meyering  <jim@meyering.net>
59747
59748         Rename mreadlink_with_size to areadlink_with_size.
59749         * NEWS: Document the change.
59750         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
59751         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
59752         * lib/mreadlink.h: Rename this to...
59753         * lib/areadlink.h: ...this.
59754         * modules/mreadlink-with-size: Rename this to...
59755         * modules/areadlink-with-size: ...this.
59756         * lib/canonicalize.c: Reflect the renaming.
59757         * modules/canonicalize: Likewise.
59758
59759 2007-08-26  Bruno Haible  <bruno@clisp.org>
59760
59761         * gnulib-tool (func_import): When deciding which files to remove,
59762         consider also dangling symbolic links.
59763         Reported by Eric Blake.
59764
59765 2007-08-26  Bruno Haible  <bruno@clisp.org>
59766
59767         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
59768
59769 2007-08-23  Simon Josefsson  <simon@josefsson.org>
59770
59771         * lib/readline.c: Don't include getline.h, the prototype is now
59772         found in stdio.h.
59773
59774 2007-08-23  Jim Meyering  <jim@meyering.net>
59775
59776         Getdelim touchup.
59777         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
59778         around the funlockfile call, since funlockfile never sets errno.
59779         Don't set errno upon failed realloc.
59780
59781 2007-08-22  Eric Blake  <ebb9@byu.net>
59782
59783         Getline touchups.
59784         * lib/getdelim.c (getdelim): Revert regression that required *n to
59785         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
59786         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
59787         getdelim, rather than whether implementation is missing.
59788         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
59789         * lib/stdio_.h (getline): Also declare if replacement is
59790         required.
59791         * doc/functions/getdelim.texi: New file.
59792         * doc/functions/getline.texi: Likewise.
59793         * doc/gnulib.texi (Function Substitutes): Add new files.
59794         Reported by Bruno Haible.
59795
59796 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
59797
59798         * users.txt: Add Guile.
59799
59800 2007-08-22  Eric Blake  <ebb9@byu.net>
59801
59802         * tests/test-getdelim.c (main): Use remove, not unlink.
59803         * tests/test-getline.c (main): Likewise.
59804
59805         Move getline and getdelim into stdio.h, per POSIX 200x.
59806         * modules/getline (Files): Remove getline.h.
59807         (Depends-on): Add stdio.
59808         (configure.ac): Add module indicator.
59809         * modules/getdelim (Files): Remove getdelim.h.
59810         (Depends-on): Add stdio.
59811         (configure.ac): Add module indicator.
59812         * modules/stdio (Makefile.am): Work with new indicators.
59813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
59814         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
59815         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59816         * lib/getdelim.h: Delete.
59817         * lib/getline.h: Delete.
59818         * lib/stdio_.h (getdelim, getline): Declare.
59819         * modules/getdelim-tests: New module.
59820         * modules/getline-tests: Likewise.
59821         * tests/test-getdelim.c: New file.
59822         * tests/test-getline.c: Likewise.
59823         * NEWS: Document the change.
59824         * lib/getline.c: Update choice of header.
59825         * lib/csharpcomp.c: Likewise.
59826         * lib/getpass.c: Likewise.
59827         * lib/javacomp.c: Likewise.
59828         * lib/javaversion.c: Likewise.
59829         * lib/yesno.c: Likewise.
59830         * lib/getdelim.c: Likewise.
59831         (getdelim): Set errno on failure, and avoid memory leak.
59832
59833 2007-08-19  Bruno Haible  <bruno@clisp.org>
59834
59835         * modules/closein (Depends-on): Add freadahead.
59836         * lib/closein.c: Include freadahead.h.
59837         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
59838         is zero.
59839
59840 2007-08-19  Bruno Haible  <bruno@clisp.org>
59841
59842         * modules/freadahead-tests: New file.
59843         * tests/test-freadahead.sh: New file.
59844         * tests/test-freadahead.c: New file.
59845
59846         * modules/freadahead: New file.
59847         * lib/freadahead.h: New file.
59848         * lib/freadahead.c: New file.
59849         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
59850         fbufmode, fpurge, freadable, fwritable.
59851
59852 2007-08-19  Eric Blake  <ebb9@byu.net>
59853
59854         Test yesno in combination with closein.
59855         * lib/yesno.c (yesno): Document use of stdin.
59856         * modules/yesno-tests (Files): New module.
59857         * tests/test-yesno.c (main): New file.
59858         * tests/test-yesno.sh: Likewise.
59859
59860 2007-08-19  Bruno Haible  <bruno@clisp.org>
59861
59862         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
59863         * lib/fseeko.c (rpl_fseeko): Likewise.
59864         * lib/fseterr.c (fseterr): Likewise.
59865
59866 2007-08-19  Bruno Haible  <bruno@clisp.org>
59867
59868         * tests/test-lseek.c (main): Disable a test for BeOS.
59869         * doc/functions/lseek.texi: Document the BeOS bug.
59870
59871 2007-08-19  Bruno Haible  <bruno@clisp.org>
59872             Eric Blake  <ebb9@byu.net>
59873
59874         * lib/lseek.c: Include <sys/stat.h>.
59875         (rpl_lseek): Add workaround code also for Unix platforms.
59876         Needed for BeOS.
59877         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
59878         * doc/functions/lseek.texi: Document BeOS definiency.
59879
59880 2007-08-18  Bruno Haible  <bruno@clisp.org>
59881
59882         * modules/fstrcmp-tests: New file.
59883         * tests/test-fstrcmp.c: New file.
59884
59885 2007-08-18  Bruno Haible  <bruno@clisp.org>
59886
59887         * modules/fstrcmp: New file, from GNU gettext with modifications.
59888         * lib/fstrcmp.h: New file, from GNU gettext.
59889         * lib/fstrcmp.c: New file, from GNU gettext.
59890         * MODULES.html.sh (String handling): Add fstrcmp.
59891
59892 2007-08-18  Bruno Haible  <bruno@clisp.org>
59893
59894         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
59895         'bool'.
59896         (diag, compareseq): Remove const from the ctxt argument.
59897         (USE_HEURISTIC): Undefine at the end.
59898
59899 2007-08-18  Jim Meyering  <jim@meyering.net>
59900
59901         New file: lib/idcache.h
59902         * NEWS: Mention the addition.
59903         * modules/idcache (Files): Add lib/idcache.h
59904         * lib/idcache.c: Include "idcache.h".
59905         Don't include <sys/types.h>.
59906         Add a FIXME comment.
59907         Move file-scoped "static" declarations to the top.
59908         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
59909
59910 2007-08-17  Bruno Haible  <bruno@clisp.org>
59911         and Paul Eggert  <eggert@cs.ucla.edu>
59912
59913         * MODULES.html.sh: Add diffseq.
59914         * modules/diffseq: New file.
59915         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
59916         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
59917
59918 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59919
59920         Import changes from coreutils for bootstrap script.
59921
59922         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
59923
59924         * build-aux/bootstrap (slurp): Work even in environments where
59925         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
59926         current code does not slurp files whose names start with ".", and
59927         this looks like it might be a troublesome area.
59928
59929         2007-07-11  Jim Meyering  <jim@meyering.net>
59930
59931         If there's a GPL vN copyright comment, require that N == 3.
59932
59933         2007-07-08  Jim Meyering  <jim@meyering.net>
59934
59935         Run the coreutils-specific code only if tests/Makefile.am.in exists.
59936         * build-aux/bootstrap (mam_template): Move definition out of loop.
59937
59938         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
59939
59940         * build-aux/bootstrap (symlink_to_dir): Rename function from
59941         symlink_to_gnulib.  Add a directory parameter.  Update all
59942         callers.
59943         (cp_mark_as_generated): Also check for -- and link to -- files in
59944         gl/.
59945
59946         2007-07-08  Jim Meyering  <jim@meyering.net>
59947
59948         Adapt to deeper hierarchy in gnulib.
59949         * build-aux/bootstrap (symlink_to_dir): If the destination
59950         directory doesn't exist, create it. This is required at least for
59951         "lib/uniwidth/cjk.h".
59952
59953         2007-05-15  Jim Meyering  <jim@meyering.net>
59954
59955         * build-aux/bootstrap: Now that generated Makefile.am files
59956         are no longer under version control, they must be created at
59957         bootstrap time.
59958
59959 2007-08-14  Ben Pfaff  <blp@gnu.org>
59960
59961         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
59962
59963 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59964
59965         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
59966         given the changes below.
59967         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
59968         even on hosts that have padding bits beyond the supported 64.
59969
59970 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59971
59972         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
59973         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
59974         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
59975         depends on it.
59976         (xstrtol_error): Remove.
59977         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
59978         but with a different signature.
59979         (ATTRIBUTE_NORETURN, __attribute__): New macros.
59980         * lib/xstrtol-error.c: Include exitfail.h.
59981         (xstrtol_fatal): New function, with a different signature from the
59982         old xstrtol_error, so that the caller need not worry about passing
59983         in an exit status, or about storage management of the option argument.
59984         (xstrtol_error): Now a static function.  Redo signature to
59985         implement xstrtol_fatal.  Output the correct number of hyphens in
59986         front of the option so that the caller need not worry about
59987         storage management.
59988         (N_): New macro.
59989         (_): Remove; not used now.
59990         * modules/xstrtol: Depend on getopt.
59991         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
59992         of old STRTOL_FATAL_ERROR macro.
59993         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
59994         of test program.
59995         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
59996         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
59997
59998 2007-08-08  Eric Blake  <ebb9@byu.net>
59999
60000         * lib/xstrtol-error.c: Add missing include.
60001
60002         Move xstrtol messages into gnulib domain, when --pobase is used.
60003         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
60004         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
60005         * modules/xstrtol (Files): Distribute new file.
60006         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
60007         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
60008         * tests/test-xstrtol.c: ...into new file.
60009         * tests/test-xstrtoul.c: Also test xstrtoul.
60010         * tests/test-xstrtoimax.c: Also test xstrtoimax.
60011         * tests/test-xstrtoumax.c: Also test xstrtoumax.
60012         * tests/test-xstrtol.sh: Drive the tests.
60013         * tests/test-xstrtoimax.sh: Likewise.
60014         * tests/test-xstrtoumax.sh: Likewise.
60015         * modules/xstrtol-tests: New module.
60016         * modules/xstrtoimax-tests: Likewise.
60017         * modules/xstrtoumax-tests: Likewise.
60018
60019 2007-08-08  Jim Meyering  <jim@meyering.net>
60020
60021         New function: mfile_name_concat.
60022         * lib/filenamecat.c (mfile_name_concat): New function, just like
60023         file_name_concat, but return NULL upon failure rather than exiting
60024         with a diagnostic.
60025         * lib/filenamecat.h: Declare it.
60026
60027 2007-08-07  Bruno Haible  <bruno@clisp.org>
60028
60029         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
60030         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
60031         warning from gcc.
60032         Reported by Eric Blake.
60033
60034 2007-08-07  Simon Josefsson  <simon@josefsson.org>
60035
60036         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
60037         * modules/crypto/arcfour (License): Likewise.
60038         * modules/crypto/des-tests (License): Likewise.
60039         * modules/crypto/gc-arctwo-tests (License): Likewise.
60040         * modules/crypto/gc-des-tests (License): Likewise.
60041         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
60042         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
60043         * modules/crypto/gc-md2-tests (License): Likewise.
60044         * modules/crypto/gc-md4-tests (License): Likewise.
60045         * modules/crypto/gc-md5-tests (License): Likewise.
60046         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
60047         * modules/crypto/gc-rijndael-tests (License): Likewise.
60048         * modules/crypto/gc-sha1-tests (License): Likewise.
60049         * modules/crypto/gc-tests (License): Likewise.
60050         * modules/crypto/hmac-md5 (License): Likewise.
60051         * modules/crypto/hmac-sha1 (License): Likewise.
60052         * modules/crypto/md2-tests (License): Likewise.
60053         * modules/crypto/md4-tests (License): Likewise.
60054         * modules/crypto/md5 (License): Likewise.
60055         * modules/crypto/rijndael (License): Likewise.
60056         * modules/crypto/sha1 (License): Likewise.
60057         * modules/memxor (License): Likewise.
60058
60059 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60060         and Bruno Haible  <bruno@clisp.org>
60061
60062         * NEWS: Describe interface changes to human, xstrtol.
60063         * lib/human.h: Include <xstrtol.h>.
60064         (human_options): Return enum strtol_error, not int.  Remove
60065         bool arg; take int * instead.
60066         * lib/human.c: Don't include "gettext.h".
60067         (_): Remove; no longer used.
60068         Don't include <xstrtol.h>, since human.h does it.
60069         (human_options): Adjust to abovementioned interface changes.
60070         Do not report error to stderr; that's now the caller's
60071         responsibility.
60072         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
60073         interface change.
60074         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
60075         Str, Argument_type_string.  All uses changed.  Put " argument"
60076         in diagnostics to make them clearer.  Change wording of suffix
60077         message for clarity.
60078         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
60079         Argument_type_string.
60080         (STRTOL_FATAL_WARN): Remove; no longer used.
60081         * modules/human (Depends-on): Remove gettext-h.
60082
60083 2007-08-06  Simon Josefsson  <simon@josefsson.org>
60084
60085         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
60086
60087 2007-07-31  Bruno Haible  <bruno@clisp.org>
60088
60089         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
60090         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
60091         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
60092
60093 2007-07-31  Bruno Haible  <bruno@clisp.org>
60094
60095         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
60096         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
60097
60098 2007-07-30  Bruno Haible  <bruno@clisp.org>
60099
60100         * modules/base64 (License): Use the synonymous term "LGPLv2+".
60101         * modules/c-ctype (License): Likewise.
60102         * modules/c-strcase (License): Likewise.
60103         * modules/check-version (License): Likewise.
60104         * modules/iconv (License): Likewise.
60105         * modules/iconv_open (License): Likewise.
60106         * modules/read-file (License): Likewise.
60107         * modules/striconv (License): Likewise.
60108         * modules/strverscmp (License): Likewise.
60109         * modules/vasprintf (License): Likewise.
60110         * modules/crypto/des (License): Likewise.
60111         * modules/crypto/gc (License): Likewise.
60112         * modules/crypto/gc-arcfour (License): Likewise.
60113         * modules/crypto/gc-arctwo (License): Likewise.
60114         * modules/crypto/gc-des (License): Likewise.
60115         * modules/crypto/gc-hmac-md5 (License): Likewise.
60116         * modules/crypto/gc-hmac-sha1 (License): Likewise.
60117         * modules/crypto/gc-md2 (License): Likewise.
60118         * modules/crypto/gc-md4 (License): Likewise.
60119         * modules/crypto/gc-md5 (License): Likewise.
60120         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
60121         * modules/crypto/gc-random (License): Likewise.
60122         * modules/crypto/gc-rijndael (License): Likewise.
60123         * modules/crypto/gc-sha1 (License): Likewise.
60124         * modules/crypto/md2 (License): Likewise.
60125         * modules/crypto/md4 (License): Likewise.
60126
60127 2007-07-30  Jim Meyering  <jim@meyering.net>
60128
60129         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
60130         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
60131         it has valid stat data.  This bug would cause du not to count the
60132         sizes of inaccessible directories.
60133         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
60134         in <http://bugzilla.redhat.com/250077>.
60135
60136 2007-07-25  Peter O'Gorman  <peter@pogma.com>
60137             Bruno Haible  <bruno@clisp.org>
60138
60139         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
60140         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
60141         #include_next, gives a diagnostic about it, but reports no error in
60142         the exit code.
60143         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
60144
60145 2007-07-24  Ben Pfaff  <blp@gnu.org>
60146
60147         Improve name: "count-one-bits" is better than "popcount".
60148         * MODULES.html.sh: Update name.
60149         * lib/popcount.h: Renamed lib/count-one-bits.h.
60150         (popcount): Renamed count_one_bits.
60151         (popcountl): Renamed count_one_bits_l.
60152         (popcountll): Renamed count_one_bits_ll.
60153         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
60154         * modules/popcount: Renamed module/count-one-bits.
60155         * modules/popcount-tests: Renamed module/count-one-bits-tests.
60156         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
60157
60158 2007-07-23  Ben Pfaff  <blp@gnu.org>
60159
60160         * lib/popcount.h (popcount32): Reduce size of constants, to allow
60161         better code generation, and add U to large constants to avoid
60162         warnings, in non-GCC case.
60163         Suggested by Bruno Haible.
60164
60165 2007-07-23  Ben Pfaff  <blp@gnu.org>
60166
60167         * lib/popcount.h: Use verify_true instead of if...abort.
60168         * modules/popcount: Depend on verify module.
60169         Suggested by Jim Meyering.
60170
60171 2007-07-23  Bruno Haible  <bruno@clisp.org>
60172
60173         * gnulib-tool (func_import): Create a .cvsignore file also when the
60174         directory is not yet in CVS but the toplevel directory is. When
60175         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
60176         Reported by Karl Berry.
60177
60178 2007-07-22  Ben Pfaff  <blp@gnu.org>
60179
60180         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
60181         case.
60182         Suggested by Eric Blake.
60183
60184 2007-07-22  Ben Pfaff  <blp@gnu.org>
60185
60186         New module: popcount.
60187         * MODULES.html.sh: Add popcount.
60188         * modules/popcount: New file.
60189         * modules/popcount-tests: New file.
60190         * tests/test-popcount.c: New file.
60191         * lib/popcount.h: New file.
60192         * m4/popcount.m4: New file.
60193
60194 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60195
60196         * build-aux/announce-gen: Update to GPLv3.
60197
60198         * build-aux/config.guess: Update from config.
60199
60200 2007-07-21  Bruno Haible  <bruno@clisp.org>
60201
60202         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
60203         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
60204
60205 2007-07-20  Jim Meyering  <jim@meyering.net>
60206
60207         * check-module: Diagnose a self-dependency.
60208
60209 2007-07-19  Bruno Haible  <bruno@clisp.org>
60210
60211         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
60212         empty.
60213         Reported by Eric Blake.
60214
60215 2007-07-18  Bruno Haible  <bruno@clisp.org>
60216
60217         * gnulib-tool: New options --po-base, --po-domain.
60218         (func_usage): Document them.
60219         (pobase, po_domain): New variables.
60220         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
60221         DEFAULT_TEXT_DOMAIN.
60222         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
60223         (func_import): Consider pobase and po_domain. Create a po/ directory.
60224         (func_create_testdir): Set pobase and po_domain to empty.
60225         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
60226         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
60227
60228 2007-07-18  Bruno Haible  <bruno@clisp.org>
60229
60230         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60231         EXTRA_DIST augmentation for files in build-aux/.
60232
60233 2007-07-16  Bruno Haible  <bruno@clisp.org>
60234
60235         * modules/lseek (License): Use the synonymous term "LGPLv2+".
60236         * modules/getdelim (License): Likewise.
60237
60238 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60239
60240         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
60241         * modules/d-type (License): Likewise.
60242         * modules/extensions (License): Likewise.
60243         * modules/fnmatch (License): Likewise.
60244         * modules/fseeko (License): Likewise.
60245         * modules/getaddrinfo (License): Likewise.
60246         * modules/getline (License): Likewise.
60247         * modules/getlogin_r (License): Likewise.
60248         * modules/getpass (License): Likewise.
60249         * modules/gettimeofday (License): Likewise.
60250         * modules/glob (License): Likewise.
60251         * modules/inet_ntop (License): Likewise.
60252         * modules/malloc (License): Likewise.
60253         * modules/malloca (License): Likewise.
60254         * modules/memmem (License): Likewise.
60255         * modules/mempcpy (License): Likewise.
60256         * modules/memset (License): Likewise.
60257         * modules/minmax (License): Likewise.
60258         * modules/mktime (License): Likewise.
60259         * modules/netinet_in (License): Likewise.
60260         * modules/pathmax (License): Likewise.
60261         * modules/poll (License): Likewise.
60262         * modules/regex (License): Likewise.
60263         * modules/snprintf (License): Likewise.
60264         * modules/stdbool (License): Likewise.
60265         * modules/stdint (License): Likewise.
60266         * modules/stdio (License): Likewise.
60267         * modules/strcase (License): Likewise.
60268         * modules/strcasestr (License): Likewise.
60269         * modules/strdup (License): Likewise.
60270         * modules/string (License): Likewise.
60271         * modules/strndup (License): Likewise.
60272         * modules/strnlen (License): Likewise.
60273         * modules/strpbrk (License): Likewise.
60274         * modules/strptime (License): Likewise.
60275         * modules/strsep (License): Likewise.
60276         * modules/sys_select (License): Likewise.
60277         * modules/sys_socket (License): Likewise.
60278         * modules/sys_stat (License): Likewise.
60279         * modules/sys_time (License): Likewise.
60280         * modules/time (License): Likewise.
60281         * modules/time_r (License): Likewise.
60282         * modules/timegm (License): Likewise.
60283         * modules/unistd (License): Likewise.
60284         * modules/vsnprintf (License): Likewise.
60285         * modules/wctype (License): Likewise.
60286
60287 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60288
60289         * modules/argz (License): LGPLv2+.
60290
60291 2007-07-15  Karl Berry  <karl@gnu.org>
60292
60293         * doc/gnulib.texi: revise node structure per new fdl.texi.
60294
60295 2007-07-14  Bruno Haible  <bruno@clisp.org>
60296
60297         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
60298         the output file.
60299         * lib/uniname/uninames.h: Regenerated.
60300
60301 2007-07-14  Karl Berry  <karl@gnu.org>
60302
60303         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
60304         omitting sectioning and index commands.
60305
60306 2007-07-13  Bruno Haible  <bruno@clisp.org>
60307
60308         New gnulib-tool option --more-symlinks.
60309         * gnulib-tool (func_usage): Document --more-symlinks.
60310         (do_copyrights): New variable.
60311         Recognize option --more-symlinks.
60312         (func_import): Don't add a copyright notice transform to
60313         sed_transform_lib_file if do_copyrights is empty.
60314
60315 2007-07-13  Bruno Haible  <bruno@clisp.org>
60316
60317         * lib/vasnprintf.c (decimal_point_char): Define also if
60318         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
60319         && !NEED_PRINTF_DIRECTIVE_A.
60320         Reported by Clemens Koller <clemens.koller@anagramm.de> via
60321         Gary V. Vaughan <gary@gnu.org>.
60322
60323 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
60324
60325         * lib/inttypes_.h: Undo previous change, since it was fixed
60326         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
60327
60328 2007-07-13  Bruno Haible  <bruno@clisp.org>
60329
60330         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
60331         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
60332
60333 2007-07-13  Jim Meyering  <jim@meyering.net>
60334
60335         df: Don't fail for Tru64's "file-on-file mount".
60336         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
60337         so we fall through and use statfs instead.  Details here:
60338         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
60339         Reported by Albert Chin.
60340
60341 2007-07-13  Bruno Haible  <bruno@clisp.org>
60342
60343         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
60344         * modules/configmake (License): Likewise.
60345         * modules/gettext (License): Likewise.
60346         * modules/gettext-h (License): Likewise.
60347         * modules/include_next (License): Likewise.
60348         * modules/link-warning (License): Likewise.
60349         * modules/localcharset (License): Likewise.
60350         * modules/localename (License): Likewise.
60351         * modules/lock (License): Likewise.
60352         * modules/relocatable-lib-lgpl (License): Likewise.
60353         * modules/size_max (License): Likewise.
60354         * modules/vasnprintf (License): Likewise.
60355         * modules/wchar (License): Likewise.
60356         * modules/xsize (License): Likewise.
60357
60358 2007-07-13  Bruno Haible  <bruno@clisp.org>
60359
60360         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
60361         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
60362
60363 2007-07-12  Bruno Haible  <bruno@clisp.org>
60364
60365         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
60366         in the modules files.
60367
60368 2007-07-11  Karl Berry  <karl@gnu.org>
60369
60370         * MODULES.html.sh (func_module): use
60371          sed -e '\|^'"${includefile}"'$|d'
60372          instead of /.../d, to avoid errors on $includefile's containing /.
60373
60374 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60375
60376         * gnulib-tool (func_import): Avoid duplication of --avoid
60377         statements
60378         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
60379         names to `_' in variable names.
60380
60381 2007-07-10  Eric Blake  <ebb9@byu.net>
60382
60383         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
60384         * NEWS: Document this change.
60385
60386 2007-07-08  Bruno Haible  <bruno@clisp.org>
60387
60388         Update to Unicode 5.0.
60389         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
60390         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
60391         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
60392         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
60393         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
60394         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
60395         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
60396         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
60397         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
60398         U+10A3F, U+1D242..U+1D244.
60399         (nonspacing_table_ind): Update.
60400         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
60401         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
60402
60403 2007-07-08  Bruno Haible  <bruno@clisp.org>
60404
60405         Update to Unicode 5.0.
60406         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
60407         code transform. Extend the name index field of unicode_name_to_code and
60408         unicode_code_to_name from 16 to 24 bits.
60409         * lib/uniname/uniname.c (unicode_character_name,
60410         unicode_name_character): Add the range 0x12xxx to the code transform.
60411         * lib/uniname/uninames.h: Regenerated.
60412         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
60413
60414 2007-07-07  Bruno Haible  <bruno@clisp.org>
60415
60416         * modules/wcwidth-tests: New file.
60417         * tests/test-wcwidth.c: New file.
60418
60419         Work around MacOS X wcwidth() bug.
60420         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
60421         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
60422         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
60423         original wcwidth in non-UTF-8 locales.
60424         * modules/wcwidth (Depends-on): Add localcharset, streq,
60425         uniwidth/width.
60426         * doc/functions/wcwidth.texi: Update.
60427
60428 2007-07-07  Bruno Haible  <bruno@clisp.org>
60429
60430         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
60431         (wcwidth): New declaration.
60432         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
60433         macros.
60434         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
60435         here. Prepare for creating <wchar.h> unconditionally.
60436         * modules/wchar (Depends-on): Add link-warning.
60437         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
60438         REPLACE_WCWIDTH, and GL_LINK_WARNING.
60439         * lib/wcwidth.h: Remove file.
60440         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
60441         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
60442         * modules/wcwidth (Files): Remove lib/wcwidth.h.
60443         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
60444         (Include): Replace wcwidth.h with <wchar.h>.
60445         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
60446         * lib/mbchar.h: Don't include wcwidth.h.
60447         * lib/mbswidth.c: Likewise.
60448         * NEWS: Mention the change.
60449
60450 2007-07-07  Bruno Haible  <bruno@clisp.org>
60451
60452         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
60453         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
60454         definition with an external declaration.
60455         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
60456         defined as a function. Remove AC_C_INLINE requirement.
60457         * modules/wcwidth (Files): Add lib/wcwidth.c.
60458         (Makefile.am): Remove redundant statement.
60459
60460 2007-07-07  Bruno Haible  <bruno@clisp.org>
60461
60462         * MODULES.html.sh (Unicode string functions): Add the new modules.
60463
60464         * tests/uniwidth/test-u32-strwidth.c: New file.
60465         * modules/uniwidth/u32-strwidth-tests: New file.
60466
60467         * lib/uniwidth/u32-strwidth.c: New file.
60468         * modules/uniwidth/u32-strwidth: New file.
60469
60470         * tests/uniwidth/test-u16-strwidth.c: New file.
60471         * modules/uniwidth/u16-strwidth-tests: New file.
60472
60473         * lib/uniwidth/u16-strwidth.c: New file.
60474         * modules/uniwidth/u16-strwidth: New file.
60475
60476         * tests/uniwidth/test-u8-strwidth.c: New file.
60477         * modules/uniwidth/u8-strwidth-tests: New file.
60478
60479         * lib/uniwidth/u8-strwidth.c: New file.
60480         * modules/uniwidth/u8-strwidth: New file.
60481
60482         * tests/uniwidth/test-u32-width.c: New file.
60483         * modules/uniwidth/u32-width-tests: New file.
60484
60485         * lib/uniwidth/u32-width.c: New file.
60486         * modules/uniwidth/u32-width: New file.
60487
60488         * tests/uniwidth/test-u16-width.c: New file.
60489         * modules/uniwidth/u16-width-tests: New file.
60490
60491         * lib/uniwidth/u16-width.c: New file.
60492         * modules/uniwidth/u16-width: New file.
60493
60494         * tests/uniwidth/test-u8-width.c: New file.
60495         * modules/uniwidth/u8-width-tests: New file.
60496
60497         * lib/uniwidth/u8-width.c: New file.
60498         * modules/uniwidth/u8-width: New file.
60499
60500         * tests/uniwidth/test-uc_width.c: New file.
60501         * modules/uniwidth/width-tests: New file.
60502
60503         * lib/uniwidth/width.c: New file, from GNU libiconv.
60504         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
60505         * modules/uniwidth/width: New file.
60506
60507         * lib/uniwidth.h: New file, from GNU libiconv.
60508         * modules/uniwidth/base: New file.
60509
60510 2007-07-07  Bruno Haible  <bruno@clisp.org>
60511
60512         * lib/uniname.h: New file, from GNU gettext.
60513         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
60514         * lib/uniname/uninames.h: New file, from GNU gettext.
60515         * lib/uniname/uniname.c: New file, from GNU gettext.
60516         * tests/uniname/test-uninames.sh: New file.
60517         * tests/uniname/test-uninames.c: New file, from GNU gettext.
60518         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
60519         * modules/uniname/base: New file.
60520         * modules/uniname/uniname: New file.
60521         * modules/uniname/uniname-tests: New file.
60522         * MODULES.html.sh (Unicode string functions): Add the new modules.
60523
60524 2007-07-06  Bruno Haible  <bruno@clisp.org>
60525
60526         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
60527
60528 2007-07-06  Bruno Haible  <bruno@clisp.org>
60529
60530         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
60531         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
60532         includes <cygwin/sys_time.h> which includes <sys/select.h> which
60533         include <sys/time.h>.
60534         Reported by Eric Blake.
60535
60536 2007-07-06  Eric Blake  <ebb9@byu.net>
60537
60538         Fix testing canonicalize on cygwin.
60539         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60540         Revert patch from 2007-06-19.
60541         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
60542         canonicalize module is also in use.
60543         * tests/test-canonicalize.c: New file.
60544         * tests/test-canonicalize.sh: Likewise.
60545         * modules/canonicalize-tests: Likewise.
60546
60547 2007-07-06  Jim Meyering  <jim@meyering.net>
60548
60549         * lib/getugroups.c (getugroups): Detect getgrent failure.
60550         Adjust comment to reflect reality: this function may return -1.
60551
60552 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
60553
60554         * build-aux/bootstrap (TP_URL,get_translations): Update to use
60555         the new TP address.
60556         (usage): Fix typo
60557         (gnulib_mk): New variable.
60558
60559 2007-07-05  Jim Meyering  <jim@meyering.net>
60560
60561         Don't let endgrent clobber errno, no matter how improbable.
60562         * lib/getugroups.c (getugroups): Save and restore errno around
60563         endgrent call.
60564
60565         Close the group DB even when failing with 2^31 or more members.
60566         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
60567
60568 2007-07-04  Jim Meyering  <jim@meyering.net>
60569
60570         * lib/getugroups.h: New file.
60571         * lib/getugroups.c: Include "getugroups.h".
60572         Remove uses of "register" keyword.
60573         Move local variable, "cp", down into scope where used.
60574         Give "username" parameter the "const" attribute.
60575         * modules/getugroups (Files): Add lib/getugroups.h
60576
60577 2007-07-04  Karl Berry  <karl@gnu.org>
60578
60579         * MODULES.html.sh (func_all_modules): Complete rename of
60580         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
60581
60582 2007-07-02  Bruno Haible  <bruno@clisp.org>
60583
60584         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
60585         mode, when inttypes.h comes from gnulib.
60586         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60587
60588 2007-07-02  Simon Josefsson  <simon@josefsson.org>
60589
60590         * NEWS: Mention lgpl module name change.
60591
60592         * modules/lgpl-2.1: Renamed from lgpl.
60593
60594         * NEWS: Mention gpl module name change.
60595
60596         * modules/gpl-3.0: New file, based on gpl-2.0.
60597
60598         * modules/gpl-2.0: Renamed from gpl.
60599
60600         * modules/gpl: Fix filename, doc/gpl.texi is now found at
60601         doc/gpl-2.0.texi.
60602
60603 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60604
60605         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
60606         #define __STDC_LIMIT_MACROS temporarily while including
60607         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
60608         Problem reported by Joel E. Denny in
60609         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
60610
60611 2007-07-01  Bruno Haible  <bruno@clisp.org>
60612
60613         * lib/unistdio.h: New file.
60614         * lib/unistdio/u-asnprintf.h: New file.
60615         * lib/unistdio/u-asprintf.h: New file.
60616         * lib/unistdio/u-printf-args.c: New file.
60617         * lib/unistdio/u-printf-args.h: New file.
60618         * lib/unistdio/u-printf-parse.h: New file.
60619         * lib/unistdio/u-snprintf.h: New file.
60620         * lib/unistdio/u-sprintf.h: New file.
60621         * lib/unistdio/u-vasprintf.h: New file.
60622         * lib/unistdio/u-vsnprintf.h: New file.
60623         * lib/unistdio/u-vsprintf.h: New file.
60624         * lib/unistdio/ulc-asnprintf.c: New file.
60625         * lib/unistdio/ulc-asprintf.c: New file.
60626         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
60627         * lib/unistdio/ulc-printf-parse.c: New file.
60628         * lib/unistdio/ulc-snprintf.c: New file.
60629         * lib/unistdio/ulc-sprintf.c: New file.
60630         * lib/unistdio/ulc-vasnprintf.c: New file.
60631         * lib/unistdio/ulc-vasprintf.c: New file.
60632         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
60633         * lib/unistdio/ulc-vsnprintf.c: New file.
60634         * lib/unistdio/ulc-vsprintf.c: New file.
60635         * lib/unistdio/u8-asnprintf.c: New file.
60636         * lib/unistdio/u8-asprintf.c: New file.
60637         * lib/unistdio/u8-printf-parse.c: New file.
60638         * lib/unistdio/u8-snprintf.c: New file.
60639         * lib/unistdio/u8-sprintf.c: New file.
60640         * lib/unistdio/u8-vasnprintf.c: New file.
60641         * lib/unistdio/u8-vasprintf.c: New file.
60642         * lib/unistdio/u8-vsnprintf.c: New file.
60643         * lib/unistdio/u8-vsprintf.c: New file.
60644         * lib/unistdio/u8-u8-asnprintf.c: New file.
60645         * lib/unistdio/u8-u8-asprintf.c: New file.
60646         * lib/unistdio/u8-u8-snprintf.c: New file.
60647         * lib/unistdio/u8-u8-sprintf.c: New file.
60648         * lib/unistdio/u8-u8-vasnprintf.c: New file.
60649         * lib/unistdio/u8-u8-vasprintf.c: New file.
60650         * lib/unistdio/u8-u8-vsnprintf.c: New file.
60651         * lib/unistdio/u8-u8-vsprintf.c: New file.
60652         * lib/unistdio/u16-asnprintf.c: New file.
60653         * lib/unistdio/u16-asprintf.c: New file.
60654         * lib/unistdio/u16-printf-parse.c: New file.
60655         * lib/unistdio/u16-snprintf.c: New file.
60656         * lib/unistdio/u16-sprintf.c: New file.
60657         * lib/unistdio/u16-vasnprintf.c: New file.
60658         * lib/unistdio/u16-vasprintf.c: New file.
60659         * lib/unistdio/u16-vsnprintf.c: New file.
60660         * lib/unistdio/u16-vsprintf.c: New file.
60661         * lib/unistdio/u16-u16-asnprintf.c: New file.
60662         * lib/unistdio/u16-u16-asprintf.c: New file.
60663         * lib/unistdio/u16-u16-snprintf.c: New file.
60664         * lib/unistdio/u16-u16-sprintf.c: New file.
60665         * lib/unistdio/u16-u16-vasnprintf.c: New file.
60666         * lib/unistdio/u16-u16-vasprintf.c: New file.
60667         * lib/unistdio/u16-u16-vsnprintf.c: New file.
60668         * lib/unistdio/u16-u16-vsprintf.c: New file.
60669         * lib/unistdio/u32-asnprintf.c: New file.
60670         * lib/unistdio/u32-asprintf.c: New file.
60671         * lib/unistdio/u32-printf-parse.c: New file.
60672         * lib/unistdio/u32-snprintf.c: New file.
60673         * lib/unistdio/u32-sprintf.c: New file.
60674         * lib/unistdio/u32-vasnprintf.c: New file.
60675         * lib/unistdio/u32-vasprintf.c: New file.
60676         * lib/unistdio/u32-vsnprintf.c: New file.
60677         * lib/unistdio/u32-vsprintf.c: New file.
60678         * lib/unistdio/u32-u32-asnprintf.c: New file.
60679         * lib/unistdio/u32-u32-asprintf.c: New file.
60680         * lib/unistdio/u32-u32-snprintf.c: New file.
60681         * lib/unistdio/u32-u32-sprintf.c: New file.
60682         * lib/unistdio/u32-u32-vasnprintf.c: New file.
60683         * lib/unistdio/u32-u32-vasprintf.c: New file.
60684         * lib/unistdio/u32-u32-vsnprintf.c: New file.
60685         * lib/unistdio/u32-u32-vsprintf.c: New file.
60686         * tests/unistdio/test-ulc-asnprintf1.c: New file.
60687         * tests/unistdio/test-ulc-asnprintf1.h: New file.
60688         * tests/unistdio/test-ulc-printf1.h: New file.
60689         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
60690         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
60691         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
60692         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
60693         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
60694         * tests/unistdio/test-ulc-vasprintf1.c: New file.
60695         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
60696         * tests/unistdio/test-ulc-vsprintf1.c: New file.
60697         * tests/unistdio/test-u8-asnprintf1.c: New file.
60698         * tests/unistdio/test-u8-asnprintf1.h: New file.
60699         * tests/unistdio/test-u8-printf1.h: New file.
60700         * tests/unistdio/test-u8-vasnprintf1.c: New file.
60701         * tests/unistdio/test-u8-vasnprintf2.c: New file.
60702         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
60703         * tests/unistdio/test-u8-vasnprintf3.c: New file.
60704         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
60705         * tests/unistdio/test-u8-vasprintf1.c: New file.
60706         * tests/unistdio/test-u8-vsnprintf1.c: New file.
60707         * tests/unistdio/test-u8-vsprintf1.c: New file.
60708         * tests/unistdio/test-u16-asnprintf1.c: New file.
60709         * tests/unistdio/test-u16-asnprintf1.h: New file.
60710         * tests/unistdio/test-u16-printf1.h: New file.
60711         * tests/unistdio/test-u16-vasnprintf1.c: New file.
60712         * tests/unistdio/test-u16-vasnprintf2.c: New file.
60713         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
60714         * tests/unistdio/test-u16-vasnprintf3.c: New file.
60715         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
60716         * tests/unistdio/test-u16-vasprintf1.c: New file.
60717         * tests/unistdio/test-u16-vsnprintf1.c: New file.
60718         * tests/unistdio/test-u16-vsprintf1.c: New file.
60719         * tests/unistdio/test-u32-asnprintf1.c: New file.
60720         * tests/unistdio/test-u32-asnprintf1.h: New file.
60721         * tests/unistdio/test-u32-printf1.h: New file.
60722         * tests/unistdio/test-u32-vasnprintf1.c: New file.
60723         * tests/unistdio/test-u32-vasnprintf2.c: New file.
60724         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
60725         * tests/unistdio/test-u32-vasnprintf3.c: New file.
60726         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
60727         * tests/unistdio/test-u32-vasprintf1.c: New file.
60728         * tests/unistdio/test-u32-vsnprintf1.c: New file.
60729         * tests/unistdio/test-u32-vsprintf1.c: New file.
60730         * modules/unistdio/base: New file.
60731         * modules/unistdio/u-printf-args: New file.
60732         * modules/unistdio/ulc-asnprintf: New file.
60733         * modules/unistdio/ulc-asprintf: New file.
60734         * modules/unistdio/ulc-fprintf: New file.
60735         * modules/unistdio/ulc-printf-parse: New file.
60736         * modules/unistdio/ulc-snprintf: New file.
60737         * modules/unistdio/ulc-sprintf: New file.
60738         * modules/unistdio/ulc-vasnprintf: New file.
60739         * modules/unistdio/ulc-vasprintf: New file.
60740         * modules/unistdio/ulc-vfprintf: New file.
60741         * modules/unistdio/ulc-vsnprintf: New file.
60742         * modules/unistdio/ulc-vsprintf: New file.
60743         * modules/unistdio/u8-asnprintf: New file.
60744         * modules/unistdio/u8-asprintf: New file.
60745         * modules/unistdio/u8-printf-parse: New file.
60746         * modules/unistdio/u8-snprintf: New file.
60747         * modules/unistdio/u8-sprintf: New file.
60748         * modules/unistdio/u8-vasnprintf: New file.
60749         * modules/unistdio/u8-vasprintf: New file.
60750         * modules/unistdio/u8-vsnprintf: New file.
60751         * modules/unistdio/u8-vsprintf: New file.
60752         * modules/unistdio/u8-u8-asnprintf: New file.
60753         * modules/unistdio/u8-u8-asprintf: New file.
60754         * modules/unistdio/u8-u8-snprintf: New file.
60755         * modules/unistdio/u8-u8-sprintf: New file.
60756         * modules/unistdio/u8-u8-vasnprintf: New file.
60757         * modules/unistdio/u8-u8-vasprintf: New file.
60758         * modules/unistdio/u8-u8-vsnprintf: New file.
60759         * modules/unistdio/u8-u8-vsprintf: New file.
60760         * modules/unistdio/u16-asnprintf: New file.
60761         * modules/unistdio/u16-asprintf: New file.
60762         * modules/unistdio/u16-printf-parse: New file.
60763         * modules/unistdio/u16-snprintf: New file.
60764         * modules/unistdio/u16-sprintf: New file.
60765         * modules/unistdio/u16-vasnprintf: New file.
60766         * modules/unistdio/u16-vasprintf: New file.
60767         * modules/unistdio/u16-vsnprintf: New file.
60768         * modules/unistdio/u16-vsprintf: New file.
60769         * modules/unistdio/u16-u16-asnprintf: New file.
60770         * modules/unistdio/u16-u16-asprintf: New file.
60771         * modules/unistdio/u16-u16-snprintf: New file.
60772         * modules/unistdio/u16-u16-sprintf: New file.
60773         * modules/unistdio/u16-u16-vasnprintf: New file.
60774         * modules/unistdio/u16-u16-vasprintf: New file.
60775         * modules/unistdio/u16-u16-vsnprintf: New file.
60776         * modules/unistdio/u16-u16-vsprintf: New file.
60777         * modules/unistdio/u32-asnprintf: New file.
60778         * modules/unistdio/u32-asprintf: New file.
60779         * modules/unistdio/u32-printf-parse: New file.
60780         * modules/unistdio/u32-snprintf: New file.
60781         * modules/unistdio/u32-sprintf: New file.
60782         * modules/unistdio/u32-vasnprintf: New file.
60783         * modules/unistdio/u32-vasprintf: New file.
60784         * modules/unistdio/u32-vsnprintf: New file.
60785         * modules/unistdio/u32-vsprintf: New file.
60786         * modules/unistdio/u32-u32-asnprintf: New file.
60787         * modules/unistdio/u32-u32-asprintf: New file.
60788         * modules/unistdio/u32-u32-snprintf: New file.
60789         * modules/unistdio/u32-u32-sprintf: New file.
60790         * modules/unistdio/u32-u32-vasnprintf: New file.
60791         * modules/unistdio/u32-u32-vasprintf: New file.
60792         * modules/unistdio/u32-u32-vsnprintf: New file.
60793         * modules/unistdio/u32-u32-vsprintf: New file.
60794         * modules/unistdio/ulc-asnprintf-tests: New file.
60795         * modules/unistdio/ulc-vasnprintf-tests: New file.
60796         * modules/unistdio/ulc-vasprintf-tests: New file.
60797         * modules/unistdio/ulc-vsnprintf-tests: New file.
60798         * modules/unistdio/ulc-vsprintf-tests: New file.
60799         * modules/unistdio/u8-asnprintf-tests: New file.
60800         * modules/unistdio/u8-vasnprintf-tests: New file.
60801         * modules/unistdio/u8-vasprintf-tests: New file.
60802         * modules/unistdio/u8-vsnprintf-tests: New file.
60803         * modules/unistdio/u8-vsprintf-tests: New file.
60804         * modules/unistdio/u16-asnprintf-tests: New file.
60805         * modules/unistdio/u16-vasnprintf-tests: New file.
60806         * modules/unistdio/u16-vasprintf-tests: New file.
60807         * modules/unistdio/u16-vsnprintf-tests: New file.
60808         * modules/unistdio/u16-vsprintf-tests: New file.
60809         * modules/unistdio/u32-asnprintf-tests: New file.
60810         * modules/unistdio/u32-vasnprintf-tests: New file.
60811         * modules/unistdio/u32-vasprintf-tests: New file.
60812         * modules/unistdio/u32-vsnprintf-tests: New file.
60813         * modules/unistdio/u32-vsprintf-tests: New file.
60814         * MODULES.html.sh (Unicode string functions): Add the new modules.
60815
60816 2007-07-01  Bruno Haible  <bruno@clisp.org>
60817
60818         * lib/sprintf.c (sprintf): Limit the available length estimation,
60819         to avoid address wraparound.
60820         * lib/vsprintf.c (vsprintf): Likewise.
60821         * modules/sprintf-posix (Dependencies): Add stdint.
60822         * modules/vsprintf-posix (Dependencies): Likewise.
60823
60824 2007-07-01  Bruno Haible  <bruno@clisp.org>
60825
60826         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
60827         Windows PATH as well. Conservative double-quoting. Comments.
60828
60829 2007-07-01  Bruno Haible  <bruno@clisp.org>
60830             Eric Blake  <ebb9@byu.net>
60831             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60832
60833         * gnulib-tool (self_abspathname): Fix algorithm to cope with
60834         empty components in $PATH, denoting '.'.
60835
60836 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60837
60838         * gnulib-tool: Fix indentation.
60839         (func_create_megatestdir): Likewise.
60840         Report by Bruno Haible.
60841
60842 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60843
60844         Sync from Automake.
60845         * build-aux/gnupload: Fix shell portability issues with for loops.
60846         Report by Karl Berry.
60847
60848 2007-06-29  Simon Josefsson  <simon@josefsson.org>
60849
60850         * build-aux/maint.mk (POURL): Use translationproject.org.
60851
60852 2007-06-27  Simon Josefsson  <simon@josefsson.org>
60853             Bruno Haible  <bruno@clisp.org>
60854
60855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
60856         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
60857         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
60858         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
60859         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
60860
60861 2007-06-27  Bruno Haible  <bruno@clisp.org>
60862
60863         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
60864         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
60865
60866 2007-06-26  Karl Berry  <karl@gnu.org>
60867
60868         * MODULES.html.sh: remove xreadlink-with-size.
60869
60870 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60871
60872         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
60873         method that I hope also handles the double-include problem noted
60874         by Bruno Haible in
60875         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
60876
60877 2007-06-23  Bruno Haible  <bruno@clisp.org>
60878
60879         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60880         Don't let the 'mostlyclean' target fail if the last subdirectory could
60881         not be removed.
60882         Reported by Karl Berry.
60883
60884 2007-06-23  Bruno Haible  <bruno@clisp.org>
60885
60886         * gnulib-tool (echo): Add a speedier workaround for ksh.
60887         * tests/test-echo.sh: Likewise.
60888
60889 2007-06-23  Bruno Haible  <bruno@clisp.org>
60890
60891         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
60892         * tests/test-echo.sh: Likewise.
60893
60894 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60895
60896         * gnulib-tool (IFS): Initialize early, so we don't set it to
60897         empty later.
60898         (self_abspathname): Rewrite algorithm to set it, reindent.
60899         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
60900         (func_create_megatestdir): Merge some sed scripts.
60901
60902 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60903
60904         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
60905         exposed by Sun Studio 11 cc on Solaris 8.
60906
60907 2007-06-22  Bruno Haible  <bruno@clisp.org>
60908
60909         * gnulib-tool (echo): Ensure the echo primitive does not interpret
60910         backslashes.
60911         * tests/test-echo.sh: New file.
60912
60913 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60914
60915         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
60916         simplify `sed_replace_build_aux' scripts, they are portable but
60917         echoing them with `echo' is not.
60918         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
60919
60920 2007-06-21  Karl Berry  <karl@gnu.org>
60921
60922         * config/srclist.txt: guess we can't handle the licenses via
60923         srclist at the moment.
60924
60925 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60926
60927         * MODULES.html.sh: Add include_next.
60928         * modules/include_next: New file.
60929
60930 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60931
60932         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
60933         INCLUDE_NEXT.
60934         (gl_CHECK_NEXT_HEADERS): New macro.
60935         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
60936         the obsolescent gl_ABSOLUTE_HEADER.
60937         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
60938         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
60939         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
60940         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60941         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
60942         * m4/math_h.m4 (gl_MATH_H): Likewise.
60943         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60944         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60945         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
60946         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60947         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
60948         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
60949         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
60950         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60951         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60952         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
60953         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
60954         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60955         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
60956         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60957         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60958         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60959         * m4/inttypes.m4 (gl_INTTYPES_H): Define
60960         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
60961         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
60962         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
60963         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
60964         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
60965         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
60966         * lib/float_.h: Likewise.
60967         * lib/inttypes_.h: Likewise.
60968         * lib/math_.h: Likewise.
60969         * lib/search_.h: Likewise.
60970         * lib/signal_.h: Likewise.
60971         * lib/stdint_.h: Likewise.
60972         * lib/stdio_.h: Likewise.
60973         * lib/stdlib_.h: Likewise.
60974         * lib/string_.h: Likewise.
60975         * lib/sys_stat_.h: Likewise.
60976         * lib/sys_time_.h: Likewise.
60977         * lib/time_.h: Likewise.
60978         * lib/unistd_.h: Likewise.
60979         * lib/wchar_.h: Likewise.
60980         * lib/wctype_.h: Likewise.
60981         * lib/dirent_.h: Likewise.
60982         * lib/iconv_.h: Likewise.
60983         * lib/locale_.h: Likewise.
60984         * lib/netinet_in_.h: Likewise.
60985         * lib/sys_select_.h: Likewise.
60986         * lib/sys_socket_.h: Likewise.
60987         * lib/sysexits_.h: Likewise.
60988         * modules/fcntl (Depends-on): Depend on include_next, not
60989         absolute_header.
60990         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
60991         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
60992         * modules/fchdir: Likewise.
60993         * modules/float: Likewise.
60994         * modules/iconv_open: Likewise.
60995         * modules/inttypes: Likewise.
60996         * modules/locale: Likewise.
60997         * modules/math: Likewise.
60998         * modules/netinet_in: Likewise.
60999         * modules/search: Likewise.
61000         * modules/signal: Likewise.
61001         * modules/stdint: Likewise.
61002         * modules/stdio: Likewise.
61003         * modules/stdlib: Likewise.
61004         * modules/string: Likewise.
61005         * modules/sys_select: Likewise.
61006         * modules/sys_socket: Likewise.
61007         * modules/sys_stat: Likewise.
61008         * modules/sys_time: Likewise.
61009         * modules/sysexits: Likewise.
61010         * modules/time: Likewise.
61011         * modules/unistd: Likewise.
61012         * modules/wchar: Likewise.
61013         * modules/wctype: Likewise.
61014         * modules/sys_stat: Change maintainer to "all".
61015         * modules/unistd: Likewise.
61016
61017 2007-06-20  Karl Berry  <karl@gnu.org>
61018
61019         * config/srclist.txt: track www changes in license files.
61020
61021 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
61022
61023         * build-aux/bootstrap: Remove stray dot.
61024         Make sure build_aux settings are honored when linking
61025         gnulib_extra_files.
61026
61027 2007-06-19  Eric Blake  <ebb9@byu.net>
61028
61029         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
61030         Allow compilation on cygwin.
61031
61032 2007-06-19  Jim Meyering  <jim@meyering.net>
61033
61034         xreadlink-with-size: Remove module.  No longer used.
61035         Ex-callers now use xreadlink or mreadlink-with-size.
61036         * modules/xreadlink-with-size: Remove module.
61037         * lib/xreadlink-with-size.c: Remove file.
61038         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
61039         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
61040         just before the function definition *is* accurate.
61041
61042         Eliminate one way canonicalize_filename_mode could exit.
61043         * lib/canonicalize.c (canonicalize_filename_mode):
61044         Use mreadlink_with_size, not xreadlink_with_size.
61045
61046 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
61047
61048         Detect porting problems to FreeBSD/arm, which has time_t wider than
61049         long int.  Original problem reported for GNU diff by Xin Li in
61050         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
61051         * modules/getdate (Depends-on): Add intprops, verify.
61052         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
61053         is an integer type no wider than long int.
61054
61055 2007-06-18  Jim Meyering  <jim@meyering.net>
61056
61057         New module: mreadlink-with-size.
61058         * MODULES.html.sh: Add mreadlink-with-size.
61059         * modules/mreadlink-with-size: New module
61060         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
61061         not xreadlink-with-size.
61062         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
61063
61064 2007-06-16  Bruno Haible  <bruno@clisp.org>
61065
61066         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
61067         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
61068         Reported by Gary V. Vaughan <gary@gnu.org>.
61069
61070 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
61071
61072         Revamp lchown so that it lives in unistd.h where it belongs.
61073         * lib/lchown.h: Remove.
61074         * lib/dirchownmod.c: Don't include lib/lchown.h.
61075         * lib/fchownat.c: Likewise.
61076         * lib/openat.c: Likewise.
61077         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
61078         does not follow symlinks.
61079         (EOPNOTSUPP): Define if not defined.
61080         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
61081         is defined to 0.
61082         (lchown): New decl.
61083         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
61084         Do not check for lchown decl.
61085         Set REPLACE_LCHOWN.
61086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
61087         REPLACE_LCHOWN.
61088         * modules/chown: Make it clear it follows symlinks.
61089         * modules/lchown: Make it clear it doesn't follow symlinks.
61090         (Files): Remove lib/lchown.h
61091         (Depends-on): Add unistd.
61092         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
61093         (Include): Include <unistd.h>, not "lchown.h".
61094         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
61095         REPLACE_LCHOWN.
61096
61097 2007-06-15  Jim Meyering  <jim@meyering.net>
61098
61099         Change license (GPL to LGPL) of fsusage and dependents.
61100         * modules/fsusage (License): Change to LGPL.
61101         * modules/full-read (License): Likewise.
61102         * modules/full-write (License): Likewise.
61103         * modules/safe-read (License): Likewise.
61104         * modules/safe-write (License): Likewise.
61105
61106 2007-06-14  Ben Pfaff  <blp@gnu.org>
61107
61108         Missing part of allocsa -> malloca transition.
61109         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
61110         gl_MALLOCA.
61111
61112 2007-06-12  Bruno Haible  <bruno@clisp.org>
61113
61114         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
61115         to ia64, x86_64, i386.
61116         Reported by Eric Blake.
61117
61118 2007-06-12  Bruno Haible  <bruno@clisp.org>
61119
61120         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
61121         cross-compiling to x86_64.
61122
61123 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
61124
61125         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
61126         glitch reported by Ralf Wildenhues in
61127         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
61128
61129         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
61130         Vin Shelton.
61131
61132 2007-06-11  Bruno Haible  <bruno@clisp.org>
61133
61134         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
61135         replacement string.
61136         Reported by Eric Blake.
61137
61138 2007-06-10  Bruno Haible  <bruno@clisp.org>
61139
61140         Prepare vasnprintf code for use with Unicode strings.
61141         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
61142         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
61143         TYPE_U32_STRING.
61144         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
61145         a_u32_string variants.
61146         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61147         * lib/printf-args.c: Don't include config.h and the specification
61148         header if PRINTF_FETCHARGS is already defined.
61149         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61150         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
61151         TYPE_U16_STRING, TYPE_U32_STRING.
61152         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
61153         u16_directive, u16_directives, u32_directive, u32_directives): New
61154         types.
61155         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
61156         New declarations.
61157         * lib/printf-parse.c: Don't include config.h and the specification
61158         header if PRINTF_PARSE is already defined. Eliminate the set of
61159         parameters for WIDE_CHAR_VERSION; the user of this file must provide
61160         them now. Include c-ctype.h.
61161         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
61162         directive and CHAR_T_ONLY_ASCII.
61163         * lib/vasnprintf.c: Don't include config.h and the specification header
61164         if VASNPRINTF is already defined.
61165         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
61166         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
61167         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
61168         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
61169         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
61170         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
61171         code accordingly.
61172         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
61173         pad_ourselves also in this case, with the 'c' and 's' directives, and
61174         with a different notion of "width".
61175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
61176
61177 2007-06-10  Bruno Haible  <bruno@clisp.org>
61178
61179         * modules/unistr/u32-mbsnlen: New file.
61180         * lib/unistr/u32-mbsnlen.c: New file.
61181
61182         * modules/unistr/u16-mbsnlen: New file.
61183         * lib/unistr/u16-mbsnlen.c: New file.
61184
61185         * modules/unistr/u8-mbsnlen: New file.
61186         * lib/unistr/u8-mbsnlen.c: New file.
61187
61188         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
61189         declarations.
61190
61191 2007-06-10  Bruno Haible  <bruno@clisp.org>
61192
61193         * lib/string_.h (mbsnlen): New declaration.
61194         * lib/mbsnlen.c: New file.
61195         * m4/mbsnlen.m4: New file.
61196         * modules/mbsnlen: New file.
61197         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
61198         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
61199         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
61200
61201 2007-06-10  Bruno Haible  <bruno@clisp.org>
61202
61203         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
61204
61205 2007-06-10  Bruno Haible  <bruno@clisp.org>
61206
61207         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
61208         * lib/mbuiter.h: Likewise.
61209
61210 2007-06-10  Bruno Haible  <bruno@clisp.org>
61211
61212         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
61213         declaration.
61214
61215 2007-06-10  Karl Berry  <karl@gnu.org>
61216
61217         * config/srclist.txt: remove gettext entries, Bruno prefers
61218         to update individually.
61219
61220 2007-06-10  Bruno Haible  <bruno@clisp.org>
61221
61222         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
61223         'maxlen'. Ensure only length + width bytes are allocated, not
61224         length + 1 + width.
61225
61226 2007-06-09  Bruno Haible  <bruno@clisp.org>
61227
61228         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
61229         (CHAR_T): Remove macro.
61230         (VASNPRINTF): Update.
61231
61232 2007-06-09  Bruno Haible  <bruno@clisp.org>
61233
61234         * MODULES.html.sh (Unicode string functions): Add the new modules.
61235
61236         * modules/uniconv/u32-conv-to-enc: New file.
61237         * lib/uniconv/u32-conv-to-enc.c: New file.
61238         * modules/uniconv/u32-conv-to-enc-tests: New file.
61239         * tests/uniconv/test-u32-conv-to-enc.c: New file.
61240
61241         * modules/uniconv/u16-conv-to-enc: New file.
61242         * lib/uniconv/u16-conv-to-enc.c: New file.
61243         * lib/uniconv/u-conv-to-enc.h: New file.
61244         * modules/uniconv/u16-conv-to-enc-tests: New file.
61245         * tests/uniconv/test-u16-conv-to-enc.c: New file.
61246
61247         * modules/uniconv/u8-conv-to-enc: New file.
61248         * lib/uniconv/u8-conv-to-enc.c: New file.
61249         * modules/uniconv/u8-conv-to-enc-tests: New file.
61250         * tests/uniconv/test-u8-conv-to-enc.c: New file.
61251
61252         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
61253         u32_conv_to_encoding): New declarations.
61254
61255 2007-06-09  Bruno Haible  <bruno@clisp.org>
61256
61257         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
61258
61259 2007-06-09  Bruno Haible  <bruno@clisp.org>
61260
61261         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
61262         * modules/malloca: Renamed from modules/allocsa, updated.
61263         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
61264         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
61265         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
61266         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
61267         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
61268         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
61269         * modules/xmalloca: Renamed from modules/xallocsa, updated.
61270         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
61271         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
61272         * modules/c-strcasestr (Depends-on): Update.
61273         * lib/c-strcasestr.c: Update.
61274         * modules/c-strstr (Depends-on): Update.
61275         * lib/c-strstr.c: Update.
61276         * modules/canonicalize-lgpl (Depends-on): Update.
61277         * lib/canonicalize-lgpl.c: Update.
61278         * modules/clean-temp (Depends-on): Update.
61279         * lib/clean-temp.c: Update.
61280         * modules/csharpcomp (Depends-on): Update.
61281         * lib/csharpcomp.c: Update.
61282         * modules/csharpexec (Depends-on): Update.
61283         * lib/csharpexec.c: Update.
61284         * modules/javacomp (Depends-on): Update.
61285         * lib/javacomp.c: Update.
61286         * modules/javaexec (Depends-on): Update.
61287         * lib/javaexec.c: Update.
61288         * modules/mbscasestr (Depends-on): Update.
61289         * lib/mbscasestr.c: Update.
61290         * modules/mbsstr (Depends-on): Update.
61291         * lib/mbsstr.c: Update.
61292         * modules/setenv (Depends-on): Update.
61293         * lib/setenv.c: Update.
61294         * modules/strcasestr (Depends-on): Update.
61295         * lib/strcasestr.c: Update.
61296         * modules/striconveha (Depends-on): Update.
61297         * lib/striconveha.c: Update.
61298         * modules/relocatable-prog-wrapper (Files): Update.
61299         * lib/relocwrapper.c: Update.
61300         * build-aux/install-reloc: Update.
61301         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
61302
61303 2007-06-08  Bruno Haible  <bruno@clisp.org>
61304
61305         Port to uClibc.
61306         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
61307         * lib/fpurge.c (fpurge): Likewise.
61308         * lib/freading.c (freading): Likewise.
61309         * lib/fseeko.c (rpl_fseeko): Likewise.
61310         * lib/fseterr.c (fseterr): Likewise.
61311         * lib/fwriting.c (fwriting): Likewise.
61312         * tests/test-fflush.c (main): Avoid a failure on uClibc.
61313
61314 2007-06-08  Bruno Haible  <bruno@clisp.org>
61315
61316         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
61317         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
61318         * modules/gettext (Files): Add m4/intlmacosx.m4.
61319
61320 2007-06-07  Bruno Haible  <bruno@clisp.org>
61321
61322         * modules/localename-tests: New file.
61323         * tests/test-localename.c: New file.
61324
61325         New module 'localename'.
61326         * lib/localename.h: New file.
61327         * lib/localename.c: New file, from GNU gettext.
61328         * m4/localename.m4: New file.
61329         * modules/localename: New file.
61330
61331 2007-06-07  Bruno Haible  <bruno@clisp.org>
61332
61333         Work around the lack of <wchar.h> on some builds of uClibc.
61334         * doc/headers/wchar.texi: Update.
61335         * lib/wchar_.h: Include <wchar.h> only if it exists.
61336         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
61337         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
61338         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
61339         doesn't exist.
61340         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
61341         * modules/mbfile (Depends-on): Add wchar.
61342         * modules/mbiter (Depends-on): Likewise.
61343         * modules/mbuiter (Depends-on): Likewise.
61344         Reported by Simon Josefsson.
61345
61346 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61347
61348         Work around problem reported by Steven M. Schweda in
61349         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
61350         Tru64 5.1B with the Compaq compiler environment installed declares
61351         an 'isblank' function but does not define it in the C library.
61352         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
61353         * lib/regex_internal.h (isblank): Likewise.
61354         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
61355         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61356
61357 2007-06-05  Bruno Haible  <bruno@clisp.org>
61358
61359         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
61360         ia64.
61361         * modules/printf-safe: New file.
61362         * modules/fprintf-posix (Depends-on): Add printf-safe.
61363         * modules/printf-posix (Depends-on): Likewise.
61364         * modules/snprintf-posix (Depends-on): Likewise.
61365         * modules/sprintf-posix (Depends-on): Likewise.
61366         * modules/vasnprintf-posix (Depends-on): Likewise.
61367         * modules/vasprintf-posix (Depends-on): Likewise.
61368         * modules/vfprintf-posix (Depends-on): Likewise.
61369         * modules/vprintf-posix (Depends-on): Likewise.
61370         * modules/vsnprintf-posix (Depends-on): Likewise.
61371         * modules/vsprintf-posix (Depends-on): Likewise.
61372         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
61373         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
61374         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
61375         "no" on i386, x86_64, ia64.
61376         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
61377         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61378         on i386, x86_64, ia64.
61379         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
61380         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61381         on i386, x86_64, ia64.
61382         * tests/test-vasnprintf-posix.c: Include float.h.
61383         (LDBL80_WORDS): New macro.
61384         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61385         on i386, x86_64, ia64.
61386         * tests/test-vasprintf-posix.c: Include float.h.
61387         (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-snprintf-posix.c: Include float.h.
61391         * tests/test-sprintf-posix.c: Likewise.
61392         * tests/test-vsnprintf-posix.c: Likewise.
61393         * tests/test-vsprintf-posix.c: Likewise.
61394
61395 2007-06-05  Bruno Haible  <bruno@clisp.org>
61396
61397         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
61398         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
61399         non-IEEE numbers on i386, x86_64, ia64.
61400         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
61401         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
61402         * tests/test-isnanl.h: Include float.h.
61403         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
61404
61405 2007-06-05  Bruno Haible  <bruno@clisp.org>
61406
61407         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
61408         also the %a / %A. Handle the %a / %A code before this extra handling.
61409
61410 2007-06-05  Bruno Haible  <bruno@clisp.org>
61411
61412         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
61413         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
61414
61415 2007-06-05  Bruno Haible  <bruno@clisp.org>
61416
61417         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
61418         typo in variable name.
61419
61420 2007-06-05  Eric Blake  <ebb9@byu.net>
61421
61422         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
61423         Reported by Simon Josefsson.
61424
61425 2007-06-04  Bruno Haible  <bruno@clisp.org>
61426
61427         Avoid test failures on some PowerPC platforms.
61428         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
61429         Define differently for PowerPC.
61430         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
61431         Reported by Gary V. Vaughan <gary@gnu.org>.
61432
61433 2007-06-02  Bruno Haible  <bruno@clisp.org>
61434
61435         Fix test-stdint failure on FreeBSD/ia64.
61436         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
61437         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
61438         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
61439         * doc/headers/stdint.texi: Update.
61440
61441 2007-06-01  Bruno Haible  <bruno@clisp.org>
61442
61443         * tests/test-binary-io.c (main): Pass a third argument to open().
61444         Reported by Gary V. Vaughan <gary@gnu.org>.
61445
61446 2007-06-01  Bruno Haible  <bruno@clisp.org>
61447
61448         * doc/functions/frexpl.texi: Update for mingw.
61449
61450 2007-06-01  Bruno Haible  <bruno@clisp.org>
61451
61452         * tests/test-lseek.c (main): Disable test of errno for invalid third
61453         argument.
61454         * doc/functions/lseek.texi: Update.
61455         Reported by Gary V. Vaughan <gary@gnu.org>.
61456
61457 2007-05-28  Bruno Haible  <bruno@clisp.org>
61458
61459         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
61460
61461 2007-05-31  Eric Blake  <ebb9@byu.net>
61462
61463         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
61464         cross compiling.
61465
61466 2007-05-30  Eric Blake  <ebb9@byu.net>
61467         and Bruno Haible  <bruno@clisp.org>
61468
61469         Work around mingw test failures exposed by m4-1.4.9b.
61470         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
61471         * tests/test-unistd.c: Disable uid_t and git_t tests for the
61472         moment.
61473
61474 2007-05-30  Bruno Haible  <bruno@clisp.org>
61475
61476         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
61477         assuming that they are closed. Needed on HP-UX 11.
61478
61479 2007-05-29  Bruno Haible  <bruno@clisp.org>
61480
61481         Fix a problem with #include_next.
61482         * lib/dirent_.h: Split the double-inclusion guard.
61483         * lib/fcntl_.h: Likewise.
61484         * lib/float_.h: Likewise.
61485         * lib/iconv_.h: Likewise.
61486         * lib/inttypes_.h: Likewise.
61487         * lib/locale_.h: Likewise.
61488         * lib/math_.h: Likewise.
61489         * lib/netinet_in_.h: Likewise.
61490         * lib/search_.h: Likewise.
61491         * lib/signal_.h: Likewise.
61492         * lib/stdint_.h: Likewise.
61493         * lib/stdio_.h: Likewise.
61494         * lib/stdlib_.h: Likewise.
61495         * lib/string_.h: Likewise.
61496         * lib/sys_select_.h: Likewise.
61497         * lib/sys_socket_.h: Likewise.
61498         * lib/sys_stat_.h: Likewise.
61499         * lib/sys_time_.h: Likewise.
61500         * lib/sysexits_.h: Likewise.
61501         * lib/time_.h: Likewise.
61502         * lib/unistd_.h: Likewise.
61503         * lib/wchar_.h: Likewise.
61504         * lib/wctype_.h: Likewise.
61505
61506 2007-05-29  Bruno Haible  <bruno@clisp.org>
61507
61508         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
61509         for the moment.
61510
61511 2007-05-29  Bruno Haible  <bruno@clisp.org>
61512
61513         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
61514         invocation.
61515         Reported by Eric Blake.
61516
61517 2007-05-29  Bruno Haible  <bruno@clisp.org>
61518
61519         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
61520         compiling case.
61521
61522 2007-05-29  Eric Blake  <ebb9@byu.net>
61523             Bruno Haible  <bruno@clisp.org>
61524
61525         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
61526         cross compiles.
61527
61528 2007-05-28  Eric Blake  <ebb9@byu.net>
61529
61530         * modules/closein-tests (test_closein_LDADD): Support test on
61531         cygwin with libtool.
61532
61533 2007-05-28  Bruno Haible  <bruno@clisp.org>
61534
61535         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
61536         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61537         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61538         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61539         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61540         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61541         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61542         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61543         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61544
61545 2007-05-28  Eric Blake  <ebb9@byu.net>
61546
61547         Unconditionally include <config.h> in unit tests.
61548         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
61549         * tests/test-allocsa.c, tests/test-arcfour.c,
61550         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
61551         tests/test-array_list.c, tests/test-array_oset.c,
61552         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
61553         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
61554         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
61555         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
61556         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
61557         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
61558         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
61559         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
61560         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
61561         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
61562         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
61563         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
61564         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
61565         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
61566         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
61567         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
61568         test-md5.c, test-memmem.c, test-printf-posix.c,
61569         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
61570         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
61571         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
61572         test-strcasestr.c, test-striconv.c, test-striconveh.c,
61573         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
61574         test-vasnprintf-posix2.c, test-vasnprintf.c,
61575         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
61576         test-vfprintf-posix.c, test-vprintf-posix.c,
61577         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
61578         test-xvasprintf.c: Likewise.
61579
61580 2007-05-28  Bruno Haible  <bruno@clisp.org>
61581
61582         * gnulib-tool (func_import): Remember the --with-tests command-line
61583         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
61584         Reported by Eric Blake.
61585
61586 2007-05-28  Bruno Haible  <bruno@clisp.org>
61587
61588         * modules/ftell-tests: New file.
61589         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
61590         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
61591
61592         * lib/ftell.c: New file.
61593         * modules/ftell: New file.
61594         * m4/ftell.m4: New file.
61595         * doc/functions/ftell.texi: Update.
61596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
61597         REPLACE_FTELL.
61598         * lib/stdio_.h (rpl_ftell): New declaration.
61599         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
61600         REPLACE_FTELL.
61601
61602 2007-05-28  Eric Blake  <ebb9@byu.net>
61603
61604         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
61605
61606 2007-05-28  Bruno Haible  <bruno@clisp.org>
61607
61608         * modules/fseek-tests: New file.
61609         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
61610         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
61611
61612         * lib/fseek.c: New file.
61613         * modules/fseek: New file.
61614         * m4/fseek.m4: New file.
61615         * doc/functions/fseek.texi: Update.
61616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
61617         REPLACE_FSEEK.
61618         * lib/stdio_.h (rpl_fseek): New declaration.
61619         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
61620         REPLACE_FSEEK.
61621
61622 2007-05-28  Bruno Haible  <bruno@clisp.org>
61623
61624         * lib/stdio_.h (fflush): More comments.
61625
61626 2007-05-28  Bruno Haible  <bruno@clisp.org>
61627
61628         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
61629         runtime test.
61630
61631 2007-05-28  Eric Blake  <ebb9@byu.net>
61632
61633         Improve lseek module.
61634         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
61635         * lib/unistd_.h (lseek): Scale back link warning message.
61636         * tests/test-lseek.c: Beef up test.
61637         * tests/test-lseek.sh: Exercise more facets of lseek.
61638         Reported by Bruno Haible.
61639
61640 2007-05-28  Bruno Haible  <bruno@clisp.org>
61641
61642         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
61643         to define.
61644
61645 2007-05-27  Bruno Haible  <bruno@clisp.org>
61646
61647         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
61648
61649 2007-05-27  Bruno Haible  <bruno@clisp.org>
61650
61651         * modules/openmp: New file.
61652         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
61653         Noah Misch.
61654
61655 2007-05-26  Bruno Haible  <bruno@clisp.org>
61656
61657         * modules/chdir-long (Depends-on): Add fchdir.
61658         * modules/chdir-safer (Depends-on): Likewise.
61659         * modules/fts (Depends-on): Likewise.
61660         * modules/fts-lgpl (Depends-on): Likewise.
61661         * modules/openat (Depends-on): Likewise.
61662         * modules/savewd (Depends-on): Likewise.
61663
61664 2007-05-24  Eric Blake  <ebb9@byu.net>
61665
61666         Fix lseek on mingw.
61667         * modules/lseek: New module.
61668         * m4/lseek.m4: New file.
61669         * lib/lseek.c: New file.
61670         * modules/lseek-tests: New file.
61671         * tests/test-lseek.c: New file.
61672         * tests/test-lseek.sh: New file.
61673         * MODULES.html.sh: Document lseek module.
61674         * modules/fflush (Depends-on): Add lseek, fseeko.
61675         * modules/fseeko (Depends-on): Likewise.
61676         * modules/ftello (Depends-on): Likewise.
61677         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
61678         broken.
61679         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
61680         broken.
61681         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
61682         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
61683         * lib/ftello.c (rpl_ftello): Likewise.
61684         * tests/test-fseeko.c (main): Test this.
61685         * tests/test-fseeko.sh: Likewise.
61686         * tests/test-ftello.c (main): Likewise.
61687         * tests/test-ftello.sh: Likewise.
61688         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
61689         implies replacing fseek.
61690         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
61691         HAVE_FTELLO.
61692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
61693         * modules/unistd (Makefile.am): Likewise.
61694         * lib/unistd_.h (lseek): Declare a replacement.
61695         * doc/functions/lseek.texi (lseek): Document this fix.
61696         * doc/functions/fseek.texi (fseek): Likewise.
61697         * doc/functions/ftell.texi (ftell): Likewise.
61698
61699 2007-05-24  Bruno Haible  <bruno@clisp.org>
61700
61701         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
61702         in the printed representation of a NaN.
61703         * tests/test-vasprintf-posix.c (test_function): Likewise.
61704         * tests/test-snprintf-posix.h (test_function): Likewise.
61705         * tests/test-sprintf-posix.h (test_function): Likewise.
61706         Reported by Eric Blake.
61707
61708 2007-05-23  Eric Blake  <ebb9@byu.net>
61709
61710         Fix fseeko/ftello on cygwin 1.5.24.
61711         * doc/functions/fseeko.texi (fseeko): Document the fix.
61712         * doc/functions/ftello.texi (ftello): Document the fix.
61713         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
61714         * doc/functions/stdout.text (stdout): New file.
61715         * doc/functions/stderr.text (stderr): New file.
61716         * doc/gnulib.texi (Function Substitutes): Use new files.
61717         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
61718         prior to 1.7.0.
61719         * tests/test-ftello.c (main): Likewise for ftello.
61720         * tests/test-fseeko.sh: New file.
61721         * tests/test-ftello.sh: New file.
61722         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
61723         with seekable stdin.
61724         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
61725         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
61726         (gl_REPLACE_FSEEKO): New macro.
61727         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
61728         * modules/fseeko (Files): Distribute fseeko.c.
61729         * modules/ftello (Files): Distribute ftello.c.
61730         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
61731         mode.
61732         * lib/ftello.c (rpl_ftello): New file.
61733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
61734         fseeko, ftello.
61735         (gl_STDIN_LARGE_OFFSET): New macro.
61736         * modules/stdio (Makefile.am): Perform the replacement.
61737         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
61738
61739 2007-05-23  Bruno Haible  <bruno@clisp.org>
61740
61741         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
61742         GNULIB_POSIXCHECK is defined.
61743
61744 2007-05-21  Bruno Haible  <bruno@clisp.org>
61745
61746         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
61747         Check also the output for NaN arguments. When cross-compiling, guess
61748         no on IRIX.
61749         * lib/vasnprintf.c: Update comments.
61750         * tests/test-vasnprintf-posix.c (strisnan): New function.
61751         (test_function): Use it.
61752         * tests/test-vasprintf-posix.c (strisnan): New function.
61753         (test_function): Use it.
61754         * tests/test-snprintf-posix.h (strisnan): New function.
61755         (test_function): Use it.
61756         * tests/test-sprintf-posix.h (strisnan): New function.
61757         (test_function): Use it.
61758         Reported by Eric Blake.
61759
61760 2007-05-20  Bruno Haible  <bruno@clisp.org>
61761
61762         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
61763         numbers that fails on BeOS.
61764         * doc/functions/frexpl.texi: Update.
61765
61766 2007-05-20  Jim Meyering  <jim@meyering.net>
61767
61768         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
61769         forced upon us by glibc-2.6.
61770
61771 2007-05-20  Bruno Haible  <bruno@clisp.org>
61772
61773         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
61774         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
61775         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
61776         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
61777         NEED_PRINTF_INFINITE.
61778         (is_infinitel): New function.
61779         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
61780         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
61781         gl_PREREQ_VASNPRINTF_INFINITE.
61782         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
61783         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61784         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
61785         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
61786         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
61787         gl_PREREQ_VASNPRINTF_INFINITE.
61788         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61789         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61790         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61791         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61792         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61793         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61794         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61795         * doc/functions/fprintf.texi: Update.
61796         * doc/functions/printf.texi: Update.
61797         * doc/functions/snprintf.texi: Update.
61798         * doc/functions/sprintf.texi: Update.
61799         * doc/functions/vfprintf.texi: Update.
61800         * doc/functions/vprintf.texi: Update.
61801         * doc/functions/vsnprintf.texi: Update.
61802         * doc/functions/vsprintf.texi: Update.
61803
61804 2007-05-20  Bruno Haible  <bruno@clisp.org>
61805
61806         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
61807         was not found in libc.
61808         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
61809
61810 2007-05-20  Bruno Haible  <bruno@clisp.org>
61811
61812         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61813         printed as "-nan" instead of "nan".
61814         * tests/test-vasprintf-posix.c (test_function): Likewise.
61815         * tests/test-snprintf-posix.h (test_function): Likewise.
61816         * tests/test-sprintf-posix.h (test_function): Likewise.
61817         Needed for HP-UX 11.
61818
61819 2007-05-20  Jim Meyering  <jim@meyering.net>
61820
61821         Fix buggy test for the fchownat-deref bug.
61822         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
61823         symlink required for the run-test.  Without it, this test would
61824         always declare that fchownat doesn't work, and client code would
61825         unnecessarily use the replacement function with fixed libc.
61826         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
61827         Reported by Greg Schafer.
61828
61829 2007-05-19  Bruno Haible  <bruno@clisp.org>
61830
61831         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
61832         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
61833         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
61834         Needed for IRIX 6.5 and Solaris 2.5.1.
61835
61836 2007-05-19  Bruno Haible  <bruno@clisp.org>
61837
61838         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
61839         (test_function): Skip tests involving -0.0 on platforms where
61840         -0.0 = 0.0.
61841         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
61842         (test_function): Skip tests involving -0.0 on platforms where
61843         -0.0 = 0.0.
61844         * tests/test-snprintf-posix.h (have_minus_zero): New function.
61845         (test_function): Skip tests involving -0.0 on platforms where
61846         -0.0 = 0.0.
61847         * tests/test-sprintf-posix.h (have_minus_zero): New function.
61848         (test_function): Skip tests involving -0.0 on platforms where
61849         -0.0 = 0.0.
61850         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
61851         tests.
61852         * tests/test-printf-posix.h (test_function): Likewise.
61853         * tests/test-printf-posix.output: Remove all -0.0 related results.
61854         Needed for IRIX 6.5.
61855
61856 2007-05-19  Bruno Haible  <bruno@clisp.org>
61857
61858         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61859         printed as "nan0x7fffffff" instead of "nan".
61860         * tests/test-vasprintf-posix.c (test_function): Likewise.
61861         * tests/test-snprintf-posix.h (test_function): Likewise.
61862         * tests/test-sprintf-posix.h (test_function): Likewise.
61863         * tests/test-fprintf-posix.h (NaN): Remove macro.
61864         (test_function): Remove all NaN related tests.
61865         * tests/test-printf-posix.h (NaN): Remove macro.
61866         (test_function): Remove all NaN related tests.
61867         * tests/test-printf-posix.output: Remove all NaN related results.
61868         Needed for IRIX 6.5.
61869
61870 2007-05-19  Bruno Haible  <bruno@clisp.org>
61871
61872         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
61873         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61874
61875 2007-05-19  Bruno Haible  <bruno@clisp.org>
61876
61877         * lib/float_.h: New file.
61878         * m4/float_h.m4: New file.
61879         * modules/float: New file.
61880         * modules/isnanl (Dependencies): Add float.
61881         * modules/isnanl-nolibm (Dependencies): Likewise.
61882         * modules/mathl (Dependencies): Likewise.
61883         * modules/printf-frexpl (Dependencies): Likewise.
61884         * modules/signbit (Dependencies): Likewise.
61885         * modules/vasnprintf (Dependencies): Likewise.
61886         * doc/headers/float.texi: Update.
61887
61888 2007-05-19  Jim Meyering  <jim@meyering.net>
61889
61890         * lib/utimens.c (gl_futimens): Rename from futimens,
61891         now that glibc-2.6 declares futimens.
61892         * lib/utimens.h: Likewise.
61893
61894 2007-05-19  Bruno Haible  <bruno@clisp.org>
61895
61896         Avoid test failures on mingw.
61897         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
61898         * tests/test-printf-posix.sh: Likewise.
61899         * tests/test-vfprintf-posix.sh: Likewise.
61900         * tests/test-vprintf-posix.sh: Likewise.
61901
61902 2007-05-19  Bruno Haible  <bruno@clisp.org>
61903
61904         Fix *printf result for NaN, Inf, -0.0 on mingw.
61905         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
61906         * lib/vasnprintf.c: Include math.h and isnan.h.
61907         (is_infinite_or_zero): New function.
61908         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
61909         values in the %f, %F, %e, %E, %g, %G directives.
61910         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
61911         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61912         gl_PRINTF_INFINITE and test its result. Invoke
61913         gl_PREREQ_VASNPRINTF_INFINITE.
61914         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61915         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61916         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61917         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61918         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61919         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61920         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61921         * doc/functions/fprintf.texi: Update.
61922         * doc/functions/printf.texi: Update.
61923         * doc/functions/snprintf.texi: Update.
61924         * doc/functions/sprintf.texi: Update.
61925         * doc/functions/vfprintf.texi: Update.
61926         * doc/functions/vprintf.texi: Update.
61927         * doc/functions/vsnprintf.texi: Update.
61928         * doc/functions/vsprintf.texi: Update.
61929
61930 2007-05-19  Bruno Haible  <bruno@clisp.org>
61931
61932         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
61933         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
61934         Instead of multiplying with 10^k, set extra_zeroes to k.
61935         (scale10_round_long_double): Remove function.
61936
61937 2007-05-18  Bruno Haible  <bruno@clisp.org>
61938
61939         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
61940         introduced on 2007-05-06.
61941
61942 2007-05-18  Bruno Haible  <bruno@clisp.org>
61943
61944         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
61945         %g directives.
61946         * tests/test-vasprintf-posix.c (test_function): Likewise.
61947         * tests/test-snprintf-posix.h (test_function): Likewise.
61948         * tests/test-sprintf-posix.h (test_function): Likewise.
61949
61950 2007-05-18  Bruno Haible  <bruno@clisp.org>
61951
61952         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
61953         (strmatch): New function.
61954         (test_function): Test the %f directive on numbers of various exponents.
61955         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
61956         (strmatch): New function.
61957         (test_function): Test the %f directive on numbers of various exponents.
61958         * tests/test-snprintf-posix.h (strmatch): New function.
61959         (test_function): Test the %f directive on numbers of various exponents.
61960         * tests/test-sprintf-posix.h (strmatch): New function.
61961         (test_function): Test the %f directive on numbers of various exponents.
61962         * tests/test-snprintf-posix.c (SIZEOF): New macro.
61963         * tests/test-sprintf-posix.c (SIZEOF): New macro.
61964         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
61965         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
61966
61967 2007-05-18  Bruno Haible  <bruno@clisp.org>
61968
61969         Add support for 'long double' number output.
61970         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
61971         * lib/vasnprintf.c: Include math.h and float+.h.
61972         (mp_limb_t): New type.
61973         (GMP_LIMB_BITS): New macro.
61974         (mp_twolimb_t): New type.
61975         (GMP_TWOLIMB_BITS): New macro.
61976         (mpn_t): New type.
61977         (multiply, divide, convert_to_decimal, decode_long_double,
61978         scale10_round_long_double, scale10_round_decimal_long_double,
61979         floorlog10l): New functions.
61980         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
61981         for the %f, %F, %e, %E, %g, %G directives.
61982         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
61983         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61984         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
61985         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
61986         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61987         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61988         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61989         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61990         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61991         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61992         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61993         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
61994         * modules/snprintf-posix (Depends-on): Likewise.
61995         * modules/sprintf-posix (Depends-on): Likewise.
61996         * modules/vasnprintf-posix (Depends-on): Likewise.
61997         * modules/vasprintf-posix (Depends-on): Likewise.
61998         * modules/vfprintf-posix (Depends-on): Likewise.
61999         * modules/vsnprintf-posix (Depends-on): Likewise.
62000         * modules/vsprintf-posix (Depends-on): Likewise.
62001         * modules/vasnprintf (Files): Add lib/float+.h.
62002         * doc/functions/fprintf.texi: Update.
62003         * doc/functions/printf.texi: Update.
62004         * doc/functions/snprintf.texi: Update.
62005         * doc/functions/sprintf.texi: Update.
62006         * doc/functions/vfprintf.texi: Update.
62007         * doc/functions/vprintf.texi: Update.
62008         * doc/functions/vsnprintf.texi: Update.
62009         * doc/functions/vsprintf.texi: Update.
62010
62011 2007-05-18  Bruno Haible  <bruno@clisp.org>
62012
62013         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
62014
62015 2007-05-18  Bruno Haible  <bruno@clisp.org>
62016
62017         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
62018         for printing 64-bit integers. Needed for mingw.
62019
62020 2007-05-18  Bruno Haible  <bruno@clisp.org>
62021
62022         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62023         gl_FUNC_FREXPL_WORKS.
62024         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
62025
62026 2007-05-18  Bruno Haible  <bruno@clisp.org>
62027
62028         * modules/frexpl-nolibm-tests: New file.
62029
62030         * modules/frexpl-nolibm: New file.
62031         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
62032
62033 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62034
62035         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
62036         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62037         GCC 4.2, which otherwise issues a lot of warnings.
62038         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
62039         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
62040         Likewise.
62041         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
62042         * modules/iconv_open (iconv.h): Likewise.
62043         * modules/locale (locale.h): Likewise.
62044         * modules/netinet_in (netinet/in.h): Likewise.
62045         * modules/sys_select (sys_select.h): Likewise.
62046         * modules/sys_socket (sys/socket.h): Likewise.
62047         * modules/sys_stat (sys/stat.h): Likewise.
62048         * modules/sysexits (sysexits.h): Likewise.
62049         * modules/unistd (unistd.h): Likewise.
62050
62051 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62052
62053         * modules/closein-tests (Makefile.am): Distribute
62054         `test-closein.sh'.
62055
62056 2007-05-17  Bruno Haible  <bruno@clisp.org>
62057
62058         * tests/test-printf-posix.output: Renamed from
62059         tests/test-fprintf-posix.out.
62060         * modules/fprintf-posix-tests: Update.
62061         * modules/printf-posix-tests: Update.
62062         * modules/vfprintf-posix-tests: Update.
62063         * modules/vprintf-posix-tests: Update.
62064         * tests/test-fprintf-posix.sh: Update.
62065         * tests/test-printf-posix.sh: Update.
62066         * tests/test-vfprintf-posix.sh: Update.
62067         * tests/test-vprintf-posix.sh: Update.
62068         Reported by Ralf Wildenhues.
62069
62070 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
62073         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62074         GCC 4.2, which otherwise issues a lot of warnings.
62075         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
62076         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
62077         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
62078         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
62079         it should no longer be needed.
62080         * lib/string_.h: Likewise.
62081         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
62082         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
62083         * modules/inttypes (inttypes.h): Likewise.
62084         * modules/math (math.h): Likewise.
62085         * modules/search (search.h): Likewise.
62086         * modules/signal (signal.h): Likewise.
62087         * modules/stdint (stdint.h): Likewise.
62088         * modules/stdio (stdio.h): Likewise.
62089         * modules/stdlib (stdlib.h): Likewise.
62090         * modules/string (string.h): Likewise.
62091         * modules/sys_time (sys/time.h): Likewise.
62092         * modules/time (time.h): Likewise.
62093         * modules/wchar (wchar.h): Likewise.
62094         * modules/wctype (wtype.h): Likewise.
62095
62096 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62097
62098         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
62099
62100 2007-05-13  Bruno Haible  <bruno@clisp.org>
62101
62102         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
62103         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62104         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
62105         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62106         (gl_PREREQ_STRTOK_R): Don't require it here.
62107
62108 2007-05-13  Bruno Haible  <bruno@clisp.org>
62109
62110         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
62111         when used in C++ mode.
62112
62113 2007-05-12  Bruno Haible  <bruno@clisp.org>
62114
62115         * lib/linebuffer.h: Tweak doc.
62116         * lib/linebuffer.c: Likewise.
62117
62118 2007-05-12  James Youngman  <jay@gnu.org>
62119
62120         * lib/linebuffer.c (readlinebuffer_delim): New function,
62121         like readlinebuffer, but use a caller-specified delimiter.
62122         (readlinebuffer): Just call readlinebuffer_delim with '\n'
62123         as the delimiter.
62124         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
62125
62126 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62127
62128         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
62129         * modules/openat (Files): Remove openat-die.c.
62130         (Depends-on): Add openat-die.
62131         * modules/openat-die: New module.
62132
62133 2007-05-06  Bruno Haible  <bruno@clisp.org>
62134
62135         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
62136         Update with info about Cygwin.
62137         * doc/functions/fprintf.texi: Update.
62138         * doc/functions/printf.texi: Update.
62139         * doc/functions/snprintf.texi: Update.
62140         * doc/functions/sprintf.texi: Update.
62141         * doc/functions/vfprintf.texi: Update.
62142         * doc/functions/vprintf.texi: Update.
62143         * doc/functions/vsnprintf.texi: Update.
62144         * doc/functions/vsprintf.texi: Update.
62145         Reported by Eric Blake.
62146
62147 2007-05-06  Bruno Haible  <bruno@clisp.org>
62148
62149         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
62150         padding ourselves for the floating-point directives.
62151         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
62152         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
62153         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62154         gl_PRINTF_FLAG_ZERO and test its result. Invoke
62155         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
62156         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62157         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62158         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62159         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62160         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62161         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62162         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62163         * tests/test-snprintf-posix.h (test_function): Also check the width
62164         and some flags in the %f directive.
62165         * tests/test-sprintf-posix.h (test_function): Likewise.
62166         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62167         * tests/test-vasprintf-posix.c (test_function): Likewise.
62168         * doc/functions/fprintf.texi: Update.
62169         * doc/functions/printf.texi: Update.
62170         * doc/functions/snprintf.texi: Update.
62171         * doc/functions/sprintf.texi: Update.
62172         * doc/functions/vfprintf.texi: Update.
62173         * doc/functions/vprintf.texi: Update.
62174         * doc/functions/vsnprintf.texi: Update.
62175         * doc/functions/vsprintf.texi: Update.
62176
62177 2007-05-06  Bruno Haible  <bruno@clisp.org>
62178
62179         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
62180         pass the ' flag character to sprintf or snprintf.
62181         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
62182         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
62183         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62184         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
62185         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
62186         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62187         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62188         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62189         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62190         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62191         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62192         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62193         * tests/test-snprintf-posix.h (test_function): Also check the grouping
62194         flag.
62195         * tests/test-sprintf-posix.h (test_function): Likewise.
62196         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62197         * tests/test-vasprintf-posix.c (test_function): Likewise.
62198         * doc/functions/fprintf.texi: Update.
62199         * doc/functions/printf.texi: Update.
62200         * doc/functions/snprintf.texi: Update.
62201         * doc/functions/sprintf.texi: Update.
62202         * doc/functions/vfprintf.texi: Update.
62203         * doc/functions/vprintf.texi: Update.
62204         * doc/functions/vsnprintf.texi: Update.
62205         * doc/functions/vsprintf.texi: Update.
62206
62207 2007-05-01  Bruno Haible  <bruno@clisp.org>
62208
62209         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
62210
62211 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
62212
62213         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
62214         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
62215
62216 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62217
62218         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
62219         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
62220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
62221
62222 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
62223
62224         * lib/argp-help.c (struct hol_entry): New member `ord'.
62225         (HOL_ENTRY_PTRCMP): Use ord for comparison
62226         (hol_sort): Initialize ord.
62227
62228 2007-05-01  Bruno Haible  <bruno@clisp.org>
62229
62230         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
62231         Reported by Eric Blake.
62232         * doc/gnulib.texi (Function Substitutes): Update.
62233
62234 2007-05-01  Bruno Haible  <bruno@clisp.org>
62235
62236         * doc/functions.texi: Remove file, now redundant through
62237         doc/functions/*.texi.
62238
62239 2007-05-01  Bruno Haible  <bruno@clisp.org>
62240
62241         * modules/argp (Depends-on): Add sleep.
62242
62243 2007-05-01  Bruno Haible  <bruno@clisp.org>
62244
62245         * modules/sleep-tests: New file.
62246         * tests/test-sleep.c: New file.
62247
62248         * modules/sleep: New file.
62249         * lib/sleep.c: New file.
62250         * m4/sleep.m4: New file.
62251         * lib/unistd_.h (sleep): New declaration.
62252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
62253         HAVE_SLEEP.
62254         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
62255         * doc/functions/sleep.texi: Document the sleep module.
62256
62257 2007-05-01  Bruno Haible  <bruno@clisp.org>
62258
62259         * lib/sigprocmask.h: Remove file.
62260         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
62261         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
62262         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
62263         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
62264         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
62265         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
62266         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
62267         HAVE_SIGSET_T as a shell variable.
62268         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
62269         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
62270         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
62271         (Depends-on): Add signal. Remove verify.
62272         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
62273         (Include): Mention <signal.h> instead of sigprocmask.h.
62274         * NEWS: Mention the change.
62275         * lib/fatal-signal.c: Don't include sigprocmask.h.
62276
62277 2007-05-01  Bruno Haible  <bruno@clisp.org>
62278
62279         * modules/signal: New file.
62280         * lib/signal_.h: New file.
62281         * m4/signal_h.m4: New file.
62282
62283 2007-05-01  Bruno Haible  <bruno@clisp.org>
62284
62285         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
62286         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
62287         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
62288         HAVE_WCTYPE_CTMP_BUG into wctype.h.
62289
62290 2007-05-01  Bruno Haible  <bruno@clisp.org>
62291
62292         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
62293         configure time.
62294         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
62295         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
62296         * modules/sys_stat (Makefile.am): Substitute their values into
62297         sys/stat.h.
62298
62299 2007-05-01  Bruno Haible  <bruno@clisp.org>
62300
62301         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
62302         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
62303         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
62304
62305 2007-05-01  Bruno Haible  <bruno@clisp.org>
62306
62307         * doc/header/assert.texi: Undo last change: don't mention the gnulib
62308         'assert' module here.
62309
62310 2007-05-01  Bruno Haible  <bruno@clisp.org>
62311
62312         * doc/functions/*.texi: New files.
62313         * doc/functions/google-ranking.txt: New file.
62314         * doc/gnulib.texi (Function Substitutes): New chapter.
62315         (ctime, inet_ntoa): Remove sections.
62316         * doc/ctime.texi: Remove file.
62317         * doc/inet_ntoa.texi: Remove file.
62318         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
62319         dependencies.
62320         (%.info): New rule, specifying a --reference-limit.
62321
62322 2007-05-01  Bruno Haible  <bruno@clisp.org>
62323
62324         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
62325
62326 2007-05-01  Bruno Haible  <bruno@clisp.org>
62327
62328         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
62329         the portability of 'mkdir' to mingw systems.
62330
62331 2007-05-01  Bruno Haible  <bruno@clisp.org>
62332
62333         * doc/headers/google-ranking.txt: New file.
62334
62335 2007-04-30  Eric Blake  <ebb9@byu.net>
62336
62337         Prefer fseeko to fseek.
62338         * modules/getpass (Depends-on): Add fseeko.
62339         * lib/getpass.c (getpass): Use fseeko, not fseek.
62340
62341 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
62342
62343         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
62344         assumes the sorting is stable, while most qsort implementations
62345         are not.  Use argument addresses to ensure they never compare as
62346         equal.
62347
62348         * tests/test-argp-2.sh (usage-indent test): Fix output
62349         (func_compare): Restore diff options
62350         * tests/test-argp.c: Restore #include "progname.h"
62351
62352 2007-04-29  Bruno Haible  <bruno@clisp.org>
62353
62354         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
62355         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62356         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
62357         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62358         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
62359         (configure.ac): Define CHECK_SNPRINTF_POSIX.
62360         (TESTS, check_PROGRAMS): Add test-snprintf.
62361         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
62362         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
62363         (TESTS, check_PROGRAMS): Add test-vsnprintf.
62364         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
62365         assertions that fail on HP-UX, OSF/1, or IRIX.
62366         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
62367
62368 2007-04-29  Bruno Haible  <bruno@clisp.org>
62369
62370         * MODULES.html.sh (posix_functions): Remove 'contents'.
62371
62372 2007-04-29  Karl Berry  <karl@gnu.org>
62373
62374         * config/srclist.txt (gendocs_template_min): new entry.
62375
62376 2007-04-29  Bruno Haible  <bruno@clisp.org>
62377
62378         Work around fpurge bug on BSD systems.
62379         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
62380         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
62381         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
62382         fpurge to rpl_fpurge if the system already has this function.
62383         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
62384         the case where the system already has this function. Correct invariants
62385         on BSD systems.
62386         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
62387         BSD systems.
62388
62389 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62390
62391         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
62392         proposed by Sven Verdoolaege.
62393
62394         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
62395         options.
62396         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
62397         (usage and help tests): Update
62398
62399 2007-04-29  Bruno Haible  <bruno@clisp.org>
62400
62401         * tests/test-fflush.c (main): Use a file of size 17, not 10.
62402         Print more information in case of failure. Disable a test on BeOS.
62403
62404 2007-04-29  Bruno Haible  <bruno@clisp.org>
62405
62406         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
62407         This helps debugging on systems on which no gdb is available.
62408
62409 2007-04-29  Bruno Haible  <bruno@clisp.org>
62410
62411         * lib/freading.h: Improve comments.
62412         * lib/fwriting.h: Likewise.
62413         * tests/test-freading.c (main): Don't check freading immediately after
62414         repositioning. Needed for glibc.
62415
62416 2007-04-29  Bruno Haible  <bruno@clisp.org>
62417
62418         * lib/freading.c (freading): Trivial simplification.
62419
62420 2007-04-28  Bruno Haible  <bruno@clisp.org>
62421
62422         * tests/test-fwriting.c (main): Also test the interaction between
62423         fflush and fwriting.
62424         * modules/fwriting-tests (Depends-on): Add fflush.
62425
62426         * tests/test-freading.c (main): Also test the interaction between
62427         fflush and freading.
62428         * modules/freading-tests (Depends-on): Add fflush.
62429
62430 2007-04-28  Bruno Haible  <bruno@clisp.org>
62431
62432         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
62433         fseeko and ftello.
62434         Suggested by Eric Blake.
62435
62436 2007-04-28  Jim Meyering  <jim@meyering.net>
62437
62438         Avoid false-negative in gl_STDINT_H's C99 conformance test.
62439         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
62440         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
62441
62442 2007-04-27  Eric Blake  <ebb9@byu.net>
62443
62444         * doc/headers/assert.texi (assert.h): Document assert module use.
62445
62446 2007-04-27  Bruno Haible  <bruno@clisp.org>
62447
62448         * doc/headers/*.texi: New files.
62449         * doc/gnulib.texi (Header File Substitutes): New chapter.
62450         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
62451         dependencies.
62452         (standards.info ,standards.html, standards.dvi): Update dependencies.
62453         (mostlyclean, clean): New targets.
62454
62455 2007-04-27  Bruno Haible  <bruno@clisp.org>
62456
62457         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
62458         * modules/sysexits (Files, Makefile.am): Update.
62459
62460         * lib/sys_socket_.h: Renamed from lib/socket_.h.
62461         * modules/sys_socket (Files, Makefile.am): Update.
62462
62463         * lib/sys_stat_.h: Renamed from lib/stat_.h.
62464         * modules/sys_stat (Files, Makefile.am): Update.
62465
62466 2007-04-27  Eric Blake  <ebb9@byu.net>
62467
62468         * lib/freading.h: Improve comments.
62469         * lib/fwriting.h: Likewise.
62470         * lib/fflush.c: Likewise.
62471
62472         Fix closein for mingw.
62473         * modules/closein-tests: Add tests for closein.
62474         * tests/test-closein.c: New file.
62475         * tests/test-closein.sh: Likewise.
62476         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
62477         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
62478
62479 2007-04-27  Bruno Haible  <bruno@clisp.org>
62480
62481         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
62482         version is < 6.
62483         * lib/math_.h [__DECC]: Likewise.
62484         * lib/stdio_.h [__DECC]: Likewise.
62485         * lib/stdlib_.h [__DECC]: Likewise.
62486         * lib/string_.h [__DECC]: Likewise.
62487         * lib/time_.h [__DECC]: Likewise.
62488         * lib/wchar_.h [__DECC]: Likewise.
62489         * lib/wctype_.h [__DECC]: Likewise.
62490
62491 2007-04-27  Bruno Haible  <bruno@clisp.org>
62492
62493         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
62494
62495 2007-04-27  Bruno Haible  <bruno@clisp.org>
62496
62497         * lib/fflush.c: Add comments.
62498         * modules/fpurge-tests (Depends-on): Add fflush.
62499         * modules/freadable-tests (Depends-on): Likewise.
62500         * modules/fwritable-tests (Depends-on): Likewise.
62501
62502 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
62503
62504         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
62505         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
62506         Report by Bruno Haible <bruno@clisp.org>.
62507
62508 2007-04-26  Eric Blake  <ebb9@byu.net>
62509
62510         Fix fflush on mingw.
62511         * modules/fflush (Depends-on): Add freading.
62512         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
62513         but unread data.
62514
62515 2007-04-26  Eric Blake  <ebb9@byu.net>
62516         and Bruno Haible  <bruno@clisp.org>
62517
62518         Implement freading and fwriting.
62519         * lib/freading.c: New file.
62520         * lib/freading.h: Likewise.
62521         * m4/freading.m4: Likewise.
62522         * modules/freading: Likewise.
62523         * modules/freading-tests: Likewise.
62524         * tests/test-freading.c: Likewise.
62525         * lib/fwriting.c: New file.
62526         * lib/fwriting.h: Likewise.
62527         * m4/fwriting.m4: Likewise.
62528         * modules/fwriting: Likewise.
62529         * modules/fwriting-tests: Likewise.
62530         * tests/test-fwriting.c: Likewise.
62531         * MODULES.html.sh (File stream based Input/Output): Mention them.
62532
62533 2007-04-26  Bruno Haible  <bruno@clisp.org>
62534
62535         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
62536         'long' when we assume it.
62537         Suggested by Eric Blake.
62538
62539 2007-04-26  Bruno Haible  <bruno@clisp.org>
62540
62541         Ensure fseeko, ftello are declared on glibc systems.
62542         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
62543         * modules/fseeko (configure.ac-early): Likewise.
62544         * modules/ftello (configure.ac-early): Likewise.
62545         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
62546         AC_FUNC_FSEEKO for this.
62547         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
62548         (gl_CHECK_FSEEKO): Remove macro.
62549
62550 2007-04-26  Bruno Haible  <bruno@clisp.org>
62551
62552         * tests/test-fflush.c (main): Also check the ftell result after
62553         fflush and fseek/fseeko.
62554         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
62555         file descriptor position cache in the stream.
62556         * lib/fseeko.c (rpl_fseeko): Likewise.
62557
62558 2007-04-26  Bruno Haible  <bruno@clisp.org>
62559
62560         * modules/fflush-tests (Depends-on): Add fseeko.
62561
62562 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
62563             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62564
62565         * lib/argz_.h: ensure error_t definition is obtained in same
62566         mechanism system argz.h would have.
62567         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
62568         argz facilities are known bad.  Err on the side of caution if
62569         cross-compiling.
62570
62571 2007-04-25  Eric Blake  <ebb9@byu.net>
62572
62573         * lib/fpurge.c (includes): Use stdlib.h for free.
62574         * tests/test-fflush.c (main): Also test fflush-fseeko.
62575
62576 2007-04-25  Bruno Haible  <bruno@clisp.org>
62577
62578         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
62579         * lib/fseeko.c: New file.
62580         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
62581         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
62582         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
62583         gl_FUNC_FSEEKO.
62584         (gl_FUNC_FSEEKO): Invoke it.
62585         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
62586         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
62587         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
62588
62589 2007-04-25  Bruno Haible  <bruno@clisp.org>
62590
62591         * modules/fflush (Depends-on): Add ftello.
62592
62593 2007-04-25  Bruno Haible  <bruno@clisp.org>
62594
62595         * modules/ftello-tests: New file.
62596         * tests/test-ftello.c: New file.
62597
62598         * modules/ftello: New file.
62599         * m4/ftello.m4: New file.
62600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
62601         HAVE_FTELLO.
62602         * lib/stdio_.h (ftello): New declaration.
62603         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
62604         HAVE_FTELLO.
62605
62606 2007-04-25  Bruno Haible  <bruno@clisp.org>
62607
62608         * modules/fseeko-tests: New file.
62609         * tests/test-fseeko.c: New file.
62610
62611         * modules/fseeko: New file.
62612         * m4/fseeko.m4: New file.
62613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
62614         HAVE_FSEEKO.
62615         * lib/stdio_.h (fseeko): New declaration.
62616         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
62617         HAVE_FSEEKO.
62618
62619 2007-04-25  Bruno Haible  <bruno@clisp.org>
62620
62621         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
62622
62623 2007-04-25  Bruno Haible  <bruno@clisp.org>
62624
62625         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
62626         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
62627         * tests/test-unistd.c: Likewise.
62628         * tests/test-fcntl.c: Likewise.
62629
62630 2007-04-23  Eric Blake  <ebb9@byu.net>
62631
62632         * lib/fflush.c: Fix missing include.
62633         Reported by Bruno Haible.
62634
62635 2007-04-23  Bruno Haible  <bruno@clisp.org>
62636
62637         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
62638         Reported by Eric Blake.
62639
62640 2007-04-23  Bruno Haible  <bruno@clisp.org>
62641
62642         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
62643
62644 2007-04-23  Bruno Haible  <bruno@clisp.org>
62645
62646         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
62647
62648 2007-04-23  Bruno Haible  <bruno@clisp.org>
62649
62650         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
62651         Needed on HP-UX 11.
62652
62653 2007-04-16  Eric Blake  <ebb9@byu.net>
62654
62655         Make fflush rely on fpurge.
62656         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
62657         open coding all variants.
62658         * modules/fflush (Depends-on): Add fpurge and unistd.
62659         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
62660         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
62661
62662         Fix --with-tests compilation on cygwin.
62663         * modules/argmatch-tests (Makefile.am): List gnulib library first
62664         in LDADD.
62665         * modules/argp-tests (Makefile.am): Likewise.
62666         * modules/array-list-tests (Makefile.am): Likewise.
62667         * modules/array-oset-tests (Makefile.am): Likewise.
62668         * modules/avltree-list-tests (Makefile.am): Likewise.
62669         * modules/avltree-oset-tests (Makefile.am): Likewise.
62670         * modules/avltreehash-list-tests (Makefile.am): Likewise.
62671         * modules/carray-list-tests (Makefile.am): Likewise.
62672         * modules/dirname-tests (Makefile.am): Likewise.
62673         * modules/frexp-tests (Makefile.am): Likewise.
62674         * modules/isnanl-tests (Makefile.am): Likewise.
62675         * modules/linked-list-tests (Makefile.am): Likewise.
62676         * modules/linkedhash-list-tests (Makefile.am): Likewise.
62677         * modules/lock-tests (Makefile.am): Likewise.
62678         * modules/rbtree-list-tests (Makefile.am): Likewise.
62679         * modules/rbtree-oset-tests (Makefile.am): Likewise.
62680         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
62681         * modules/tls-tests (Makefile.am): Likewise.
62682         * modules/tsearch-tests (Makefile.am): Likewise.
62683         * modules/xvasprintf-tests (Makefile.am): Likewise.
62684
62685         Fix fpurge for cygwin.
62686         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
62687         value.
62688         * modules/fpurge-tests (Depends-on): Clean up trash.
62689
62690 2007-04-16  Simon Josefsson  <simon@josefsson.org>
62691
62692         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
62693
62694         * m4/autobuild.m4: Re-indent.
62695
62696 2007-04-13  Bruno Haible  <bruno@clisp.org>
62697
62698         * modules/fpurge-tests: New file.
62699         * tests/test-fpurge.c: New file.
62700
62701         * modules/fpurge: New file.
62702         * lib/fpurge.h: New file.
62703         * lib/fpurge.c: New file.
62704         * m4/fpurge.m4: New file.
62705
62706 2007-04-13  Bruno Haible  <bruno@clisp.org>
62707
62708         * modules/fbufmode-tests: New file.
62709         * tests/test-fbufmode.c: New file.
62710
62711         * modules/fbufmode: New file.
62712         * lib/fbufmode.h: New file.
62713         * lib/fbufmode.c: New file.
62714         * m4/fbufmode.m4: New file.
62715
62716 2007-04-13  Bruno Haible  <bruno@clisp.org>
62717
62718         * modules/fwritable-tests: New file.
62719         * tests/test-fwritable.c: New file.
62720
62721         * modules/fwritable: New file.
62722         * lib/fwritable.h: New file.
62723         * lib/fwritable.c: New file.
62724         * m4/fwritable.m4: New file.
62725
62726 2007-04-13  Bruno Haible  <bruno@clisp.org>
62727
62728         * modules/freadable-tests: New file.
62729         * tests/test-freadable.c: New file.
62730
62731         * modules/freadable: New file.
62732         * lib/freadable.h: New file.
62733         * lib/freadable.c: New file.
62734         * m4/freadable.m4: New file.
62735
62736 2007-04-13  Bruno Haible  <bruno@clisp.org>
62737
62738         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
62739         MOSTLYCLEANFILES.
62740
62741 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62742
62743         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
62744         gzip bootstrap.conf to avoid dragging in i18n machinery.
62745         (gnulib_tool_option): Use it.
62746
62747 2007-04-13  Bruno Haible  <bruno@clisp.org>
62748
62749         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
62750         %F directives.
62751         * tests/test-vasprintf-posix.c (test_function): Likewise.
62752         * tests/test-snprintf-posix.h (test_function): Likewise.
62753         * tests/test-sprintf-posix.h (test_function): Likewise.
62754         * tests/test-fprintf-posix.h (test_function): Likewise.
62755         * tests/test-printf-posix.h (test_function): Likewise.
62756         * tests/test-fprintf-posix.out: Likewise.
62757
62758 2007-04-13  Bruno Haible  <bruno@clisp.org>
62759
62760         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
62761         * modules/tls-tests (configure.ac): Likewise.
62762         Reported by Arto C. Nirkko <anirkko@insel.ch>.
62763
62764 2007-04-13  Bruno Haible  <bruno@clisp.org>
62765
62766         * lib/tls.c (glthread_tls_get): Fix return type.
62767         Patch by Arto C. Nirkko <anirkko@insel.ch>.
62768
62769 2007-04-12  Eric Blake  <ebb9@byu.net>
62770
62771         * modules/gettime (Depends-on): Remove gettime.
62772         Reported by Dmitry V. Levin.
62773
62774 2007-04-12  Bruno Haible  <bruno@clisp.org>
62775
62776         * modules/fflush (Include): Mention <stdio.h>.
62777         * modules/strtoimax (Include): Mention <inttypes.h>.
62778         * modules/strtoumax (Include): Likewise.
62779
62780 2007-04-12  Eric Blake  <ebb9@byu.net>
62781
62782         * .cvsignore: New file.
62783         * .gitignore: Likewise.
62784
62785 2007-04-12  Bruno Haible  <bruno@clisp.org>
62786
62787         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
62788         not before, since $(LDADD) often contains libgnu.a.
62789         * modules/striconv-tests (test_striconv_LDADD): Likewise.
62790         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
62791         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
62792         Needed on Cygwin.
62793
62794 2007-04-12  Eric Blake  <ebb9@byu.net>
62795
62796         Work around glibc's failure to flush stdin on fclose.
62797         * lib/closein.c (close_stdin): Flush stdin before closing.
62798
62799         Work around glibc's failure to reset seekable stdin on exit.
62800         * modules/closein: New module.
62801         * lib/closein.c: New file.
62802         * lib/closein.h: Likewise.
62803         * m4/closein.m4: Likewise.
62804         * MODULES.html.sh (File stream based Input/Output): Document it.
62805
62806 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62807
62808         * gnulib-tool: Rename generated 'autobuild' script to
62809         'do-autobuild' in --create-megatestdir output.
62810
62811         * doc/gnulib.texi (Build robot for gnulib): Fix.
62812
62813 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62814
62815         * modules/sysexits (Depends-on): Add absolute-header.
62816
62817 2007-04-12  Eric Blake  <ebb9@byu.net>
62818
62819         No need to preserve errno on success.
62820         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
62821         Reported by Bruno Haible.
62822
62823 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62824
62825         * MODULES.html.sh (Support for maintaining and releasing
62826         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
62827
62828 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62829
62830         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
62831
62832 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62833
62834         * modules/autobuild: New module.
62835
62836         * m4/autobuild.m4: New file.
62837
62838 2007-04-11  Bruno Haible  <bruno@clisp.org>
62839
62840         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
62841         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
62842         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
62843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
62844         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62845         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62846         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62847         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62848         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62849         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62850         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
62851         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62852         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62853         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
62854         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62855         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62856         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
62857         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62858         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62859         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
62860         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62861         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62862         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
62863         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62864         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62865         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
62866         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62867         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62868         Reported by Eric Blake.
62869
62870 2007-04-11  Bruno Haible  <bruno@clisp.org>
62871
62872         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
62873
62874 2007-04-10  Bruno Haible  <bruno@clisp.org>
62875
62876         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
62877         for NaN and Infinity. Needed on FreeBSD 6.1.
62878         * tests/test-vasnprintf-posix.c (test_function): Undo last change
62879         regarding results for "%010a" of Infinity and NaN.
62880         * tests/test-vasprintf-posix.c (test_function): Likewise.
62881         * tests/test-snprintf-posix.h (test_function): Likewise.
62882         * tests/test-sprintf-posix.h (test_function): Likewise.
62883         * tests/test-fprintf-posix.h (test_function): Likewise.
62884         * tests/test-printf-posix.h (test_function): Likewise.
62885         * tests/test-fprintf-posix.out: Likewise.
62886
62887 2007-04-10  Bruno Haible  <bruno@clisp.org>
62888
62889         * modules/locale-tests: New file.
62890         * tests/test-locale.c: New file.
62891
62892         * modules/locale: New file.
62893         * lib/locale_.h: New file.
62894         * m4/locale_h.m4: New file.
62895
62896 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
62897             Bruno Haible  <bruno@clisp.org>
62898
62899         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
62900         be determined, test for availability of the copysignf, copysign,
62901         copysignl functions.
62902         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
62903         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
62904         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
62905
62906 2007-04-09  Eric Blake  <ebb9@byu.net>
62907
62908         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
62909         * modules/stdio (Makefile.am): Support fflush.
62910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62911         * modules/fflush: New file.
62912         * lib/fflush.c: Likewise.
62913         * m4/fflush.m4: Likewise.
62914         * modules/fflush-tests: New test.
62915         * tests/test-fflush.c: Likewise.
62916         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
62917
62918 2007-04-06  Bruno Haible  <bruno@clisp.org>
62919
62920         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
62921         (VASNPRINTF): Use signbit for faster determination whether to print a
62922         minus sign.
62923         * modules/vasnprintf (Files): Remove lib/float+.h.
62924         * modules/fprintf-posix (Depends-on): Add signbit.
62925         * modules/snprintf-posix (Depends-on): Likewise.
62926         * modules/sprintf-posix (Depends-on): Likewise.
62927         * modules/vasnprintf-posix (Depends-on): Likewise.
62928         * modules/vasprintf-posix (Depends-on): Likewise.
62929         * modules/vfprintf-posix (Depends-on): Likewise.
62930         * modules/vsnprintf-posix (Depends-on): Likewise.
62931         * modules/vsprintf-posix (Depends-on): Likewise.
62932
62933 2007-04-06  Bruno Haible  <bruno@clisp.org>
62934
62935         * tests/test-frexp.c (main): Test also the sign bit of zero results.
62936         * tests/test-frexpl.c (main): Likewise.
62937         * tests/test-ldexpl.c (main): Likewise.
62938         * modules/frexp-tests (Depends-on): Add signbit.
62939         * modules/frexpl-tests (Depdends-on): Likewise.
62940         * modules/ldexpl-tests (Depdends-on): Likewise.
62941
62942 2007-04-06  Bruno Haible  <bruno@clisp.org>
62943
62944         * modules/signbit-tests: New file.
62945         * tests/test-signbit.c: New file.
62946
62947         * modules/signbit: New file.
62948         * lib/signbitf.c: New file.
62949         * lib/signbitd.c: New file.
62950         * lib/signbitl.c: New file.
62951         * m4/signbit.m4: New file.
62952         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
62953         (signbit): New macro.
62954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
62955         REPLACE_SIGNBIT.
62956         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
62957         REPLACE_FREXPL into math.h.
62958
62959 2007-04-06  Bruno Haible  <bruno@clisp.org>
62960
62961         * modules/isnanf-nolibm-tests: New file.
62962         * tests/test-isnanf.c: New file.
62963
62964         * modules/isnanf-nolibm: New file.
62965         * lib/isnanf.h: New file.
62966         * lib/isnanf.c: New file.
62967         * lib/isnan.c: Consider the USE_FLOAT macro.
62968         * m4/isnanf.m4: New file.
62969
62970 2007-04-06  Bruno Haible  <bruno@clisp.org>
62971
62972         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
62973         (Link): New section.
62974
62975         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
62976
62977 2007-04-06  Bruno Haible  <bruno@clisp.org>
62978
62979         Assume the 'long double' type.
62980         * m4/longdouble.m4: Remove file.
62981         * config/srclist.txt: Don't mention longdouble.m4.
62982         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
62983         * lib/float+.h: Likewise.
62984         * lib/frexp.c: Likewise.
62985         * lib/printf-args.h: Likewise.
62986         * lib/printf-args.c: Likewise.
62987         * lib/printf-frexp.c: Likewise.
62988         * lib/printf-parse.c: Likewise.
62989         * lib/vasnprintf.c: Likewise.
62990         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
62991         * m4/intl.m4: Likewise.
62992         * m4/isnanl.m4: Likewise.
62993         * m4/printf.m4: Likewise.
62994         * m4/printf-frexpl.m4: Likewise.
62995         * m4/vasnprintf.m4: Likewise.
62996         * modules/allocsa (Files): Remove m4/longdouble.m4.
62997         * modules/gettext (Files): Likewise.
62998         * modules/relocatable-prog-wrapper (Files): Likewise.
62999         * modules/vasnprintf (Files): Likewise.
63000         * modules/isnanl (Files): Likewise.
63001         (Include): Simplify.
63002         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
63003         (Include): Simplify.
63004         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
63005         (Include): Simplify.
63006         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
63007         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63008         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
63009         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63010         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63011         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63012         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
63013         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63014         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63015         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63016         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
63017         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63018         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
63019         * tests/test-isnanl.c: Likewise.
63020         * tests/test-snprintf-posix.h: Likewise.
63021         * tests/test-sprintf-posix.h: Likewise.
63022         * tests/test-vasnprintf-posix.c: Likewise.
63023         * tests/test-vasnprintf-posix2.c: Likewise.
63024         * tests/test-vasprintf-posix.c: Likewise.
63025
63026 2007-04-06  Bruno Haible  <bruno@clisp.org>
63027
63028         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
63029         * lib/math_.h [__DECC]: Include the overridden include file through
63030         #include_next, outside the double-inclusion guard.
63031         * lib/stdio_.h [__DECC]: Likewise.
63032         * lib/stdlib_.h [__DECC]: Likewise.
63033         * lib/string_.h [__DECC]: Likewise.
63034         * lib/time_.h [__DECC]: Likewise.
63035         * lib/wchar_.h [__DECC]: Likewise.
63036         * lib/wctype_.h [__DECC]: Likewise.
63037         * lib/inttypes_.h [__DECC]: Likewise.
63038         Reported by Albert Chin <china@thewrittenword.com> in
63039         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
63040
63041 2007-04-04  Eric Blake  <ebb9@byu.net>
63042
63043         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
63044         1.5.x.
63045
63046 2007-04-04  Bruno Haible  <bruno@clisp.org>
63047
63048         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
63049         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
63050
63051 2007-04-04  Bruno Haible  <bruno@clisp.org>
63052
63053         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
63054         results for "%010a" of Infinity and NaN.
63055         * tests/test-vasprintf-posix.c (test_function): Likewise.
63056         * tests/test-snprintf-posix.h (test_function): Likewise.
63057         * tests/test-sprintf-posix.h (test_function): Likewise.
63058         * tests/test-fprintf-posix.h (test_function): Remove these tests.
63059         * tests/test-printf-posix.h (test_function): Likewise.
63060         * tests/test-fprintf-posix.out: Update.
63061         Needed for FreeBSD 6.1.
63062
63063 2007-04-04  Bruno Haible  <bruno@clisp.org>
63064
63065         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
63066         directly used by the gnulib modules nor by gnulib-tool.
63067
63068 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63069
63070         * DEPENDENCIES: Give overall description of version dependency
63071         desirability.  Use more-typical names for apps.
63072         Add shell, coreutils, diffutils, grep, tar, gzip.
63073
63074 2007-04-04  Simon Josefsson  <simon@josefsson.org>
63075
63076         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
63077
63078 2007-04-04  Karl Berry  <karl@gnu.org>
63079
63080         * MODULES.html.sh (func_module): missing '.
63081
63082 2007-04-03  Bruno Haible  <bruno@clisp.org>
63083
63084         * modules/argmatch-tests (Makefile.am): New variable
63085         test_argmatch_LDADD.
63086         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
63087         * modules/array-list-tests (Makefile.am): New variable
63088         test_array_list_LDADD.
63089         * modules/array-oset-tests (Makefile.am): New variable
63090         test_array_oset_LDADD.
63091         * modules/avltree-list-tests (Makefile.am): New variable
63092         test_avltree_list_LDADD.
63093         * modules/avltree-oset-tests (Makefile.am): New variable
63094         test_avltree_oset_LDADD.
63095         * modules/avltreehash-list-tests (Makefile.am): New variable
63096         test_avltreehash_list_LDADD.
63097         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
63098         test_canonicalize_lgpl_LDADD.
63099         * modules/carray-list-tests (Makefile.am): New variable
63100         test_carray_list_LDADD.
63101         * modules/dirname-tests (Makefile.am): New variable
63102         test_dirname_LDADD.
63103         * modules/linked-list-tests (Makefile.am): New variable
63104         test_linked_list_LDADD.
63105         * modules/linkedhash-list-tests (Makefile.am): New variable
63106         test_linkedhash_list_LDADD.
63107         * modules/rbtree-list-tests (Makefile.am): New variable
63108         test_rbtree_list_LDADD.
63109         * modules/rbtree-oset-tests (Makefile.am): New variable
63110         test_rbtree_oset_LDADD.
63111         * modules/rbtreehash-list-tests (Makefile.am): New variable
63112         test_rbtreehash_list_LDADD.
63113         * modules/xvasprintf-tests (Makefile.am): New variable
63114         test_xvasprintf_LDADD.
63115         Reported by Eric Blake.
63116
63117 2007-04-03  Eric Blake  <ebb9@byu.net>
63118
63119         * DEPENDENCIES: Weaken m4 requirements.
63120
63121 2007-04-03  Bruno Haible  <bruno@clisp.org>
63122
63123         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
63124         * modules/isnanl-tests (configure.ac): Likewise.
63125
63126 2007-04-03  Ben Pfaff  <blp@gnu.org>
63127
63128         * modules/iconv_open: Add $(srcdir)/ to source directory
63129         references in Makefile fragments that call gperf, to fix VPATH
63130         builds.
63131
63132 2007-04-03  Bruno Haible  <bruno@clisp.org>
63133
63134         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
63135         * lib/ldexpl.c: Undo last change.
63136
63137 2007-04-03  Bruno Haible  <bruno@clisp.org>
63138
63139         * modules/printf-frexpl (Depends-on): Undo last change.
63140         (Files): Add m4/ldexpl.m4.
63141
63142 2007-04-03  Bruno Haible  <bruno@clisp.org>
63143
63144         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
63145         * modules/isnanl (Link): New section.
63146
63147         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
63148         * modules/frexp (Link): New section.
63149
63150         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
63151         * modules/frexpl (Link): New section.
63152
63153         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
63154         * modules/ldexpl (Link): New section.
63155
63156 2007-04-03  Bruno Haible  <bruno@clisp.org>
63157
63158         * modules/TEMPLATE-EXTENDED: New file.
63159         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
63160
63161 2007-04-03  Bruno Haible  <bruno@clisp.org>
63162
63163         * DEPENDENCIES: New file.
63164         Suggested by Simon Josefsson.
63165
63166 2007-04-03  Bruno Haible  <bruno@clisp.org>
63167
63168         * doc/gnulib.texi: Escape @.
63169
63170 2007-04-03  James Youngman  <jay@gnu.org>
63171         and Paul Eggert  <eggert@cs.ucla.edu>
63172
63173         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
63174         birthtime on all systems that have birthtime, not just those which
63175         use st_birthtimensec rather than st_birthtim.  Putting zero in
63176         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
63177         that the birth time is not available for files on an NFS mount.
63178
63179 2007-04-03  Simon Josefsson  <simon@josefsson.org>
63180
63181         * modules/memxor: Move back from crypto/, suggested by Bruno.
63182         * modules/crypto/hmac-sha1: Fix memxor dependency.
63183
63184         * modules/crypto/gc: Moved from ../.
63185
63186 2007-04-02  Eric Blake  <ebb9@byu.net>
63187
63188         * lib/ldexpl.c (includes): Avoid libm.
63189
63190         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
63191
63192 2007-04-02  Bruno Haible  <bruno@clisp.org>
63193
63194         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
63195         on IRIX.
63196
63197 2007-04-02  Bruno Haible  <bruno@clisp.org>
63198
63199         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
63200         x86 or x86_64 platforms running MacOS X.
63201         Reported by Ryan Schmidt <@ryandesign.com>.
63202
63203 2007-04-02  Bruno Haible  <bruno@clisp.org>
63204
63205         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
63206         i386.
63207
63208 2007-04-01  Simon Josefsson  <simon@josefsson.org>
63209
63210         * modules/crypto/arcfour: Moved from ../.
63211         * modules/crypto/arcfour-tests: Moved from ../.
63212         * modules/crypto/arctwo: Moved from ../.
63213         * modules/crypto/arctwo-tests: Moved from ../.
63214         * modules/crypto/des: Moved from ../.
63215         * modules/crypto/des-tests: Moved from ../.
63216         * modules/crypto/gc-arcfour: Moved from ../.
63217         * modules/crypto/gc-arcfour-tests: Moved from ../.
63218         * modules/crypto/gc-arctwo: Moved from ../.
63219         * modules/crypto/gc-arctwo-tests: Moved from ../.
63220         * modules/crypto/gc-des: Moved from ../.
63221         * modules/crypto/gc-des-tests: Moved from ../.
63222         * modules/crypto/gc-hmac-md5: Moved from ../.
63223         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
63224         * modules/crypto/gc-hmac-sha1: Moved from ../.
63225         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
63226         * modules/crypto/gc-md2: Moved from ../.
63227         * modules/crypto/gc-md2-tests: Moved from ../.
63228         * modules/crypto/gc-md4: Moved from ../.
63229         * modules/crypto/gc-md4-tests: Moved from ../.
63230         * modules/crypto/gc-md5: Moved from ../.
63231         * modules/crypto/gc-md5-tests: Moved from ../.
63232         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
63233         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
63234         * modules/crypto/gc-random: Moved from ../.
63235         * modules/crypto/gc-rijndael: Moved from ../.
63236         * modules/crypto/gc-rijndael-tests: Moved from ../.
63237         * modules/crypto/gc-sha1: Moved from ../.
63238         * modules/crypto/gc-sha1-tests: Moved from ../.
63239         * modules/crypto/gc-tests: Moved from ../.
63240         * modules/crypto/hmac-md5: Moved from ../.
63241         * modules/crypto/hmac-md5-tests: Moved from ../.
63242         * modules/crypto/hmac-sha1: Moved from ../.
63243         * modules/crypto/hmac-sha1-tests: Moved from ../.
63244         * modules/crypto/md2: Moved from ../.
63245         * modules/crypto/md2-tests: Moved from ../.
63246         * modules/crypto/md4: Moved from ../.
63247         * modules/crypto/md4-tests: Moved from ../.
63248         * modules/crypto/md5: Moved from ../.
63249         * modules/crypto/md5-tests: Moved from ../.
63250         * modules/crypto/memxor: Moved from ../.
63251         * modules/crypto/rijndael: Moved from ../.
63252         * modules/crypto/rijndael-tests: Moved from ../.
63253         * modules/crypto/sha1: Moved from ../.
63254
63255 2007-03-30  James Youngman  <jay@gnu.org>
63256
63257         * tests/test-stat-time.c (prepare_test): use chmod() rather than
63258         rename() to change the ctime of a file (because ctime is unaffected
63259         by rename on jfs2 on AIX 5.1).
63260         (main): Start by doing cleanup, in case a previous run failed leaving
63261         test files behind.
63262
63263 2007-03-31  Bruno Haible  <bruno@clisp.org>
63264
63265         Support old proprietary implementations of iconv.
63266         * modules/iconv_open: New file.
63267         * lib/iconv_.h: New file.
63268         * m4/iconv_h.m4: New file.
63269         * lib/iconv_open.c: New file.
63270         * lib/iconv_open-aix.gperf: New file.
63271         * lib/iconv_open-hpux.gperf: New file.
63272         * lib/iconv_open-irix.gperf: New file.
63273         * lib/iconv_open-osf.gperf: New file.
63274         * m4/iconv_open.m4: New file.
63275         * modules/linebreak (Depends-on): Add iconv_open.
63276         * modules/striconv (Depends-on): Likewise.
63277         * modules/striconveh (Depends-on): Likewise.
63278         * modules/unicodeio (Depends-on): Likewise.
63279         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
63280         (iconv_t)(-1).
63281         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
63282         conversion if cd is (iconv_t)(-1).
63283         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
63284         is not possible.
63285
63286 2007-03-31  Bruno Haible  <bruno@clisp.org>
63287
63288         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63289         work on Solaris either. Protect also second use of "autodetect_jp".
63290
63291 2007-03-31  Bruno Haible  <bruno@clisp.org>
63292
63293         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
63294         the function is not present.
63295
63296 2007-03-31  Bruno Haible  <bruno@clisp.org>
63297
63298         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
63299         the function is not present.
63300
63301 2007-03-31  Bruno Haible  <bruno@clisp.org>
63302
63303         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
63304         a bug in HP-UX iconv_open().
63305
63306 2007-03-31  Bruno Haible  <bruno@clisp.org>
63307
63308         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
63309         (Mathematics <math.h>): New section, add fpieee.
63310         (Input/output <stdio.h>): Add fseterr.
63311         (Mathematics <math.h>): New section, add printf-frexp.
63312         (Container data structures): Add sublist.
63313         (Core language properties): Add fpucw, inline.
63314         (Functions for greatest-width integer types <inttypes.h>): Add
63315         imaxabs, imaxdiv, inttypes.
63316         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
63317         isnanl-nolibm, ldexp.
63318         (Mathematics <math.h>): New section, add printf-frexpl.
63319         (Support for systems lacking POSIX:2001): Add fprintf-posix,
63320         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
63321         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
63322         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
63323         (Unicode string functions): Add unistr/u*-mbtoucr.
63324         (Java): Add javacomp-script, javaexec-script.
63325         (C#): Add csharpcomp-script, csharpexec-script.
63326         (Support for building libraries and executables): Add havelib,
63327         relocatable-*.
63328         (Support for maintaining and releasing projects): Renamed from
63329         'Support for maintaining and release projects'. Add announce-gen.
63330
63331 2007-03-31  Bruno Haible  <bruno@clisp.org>
63332
63333         * README: Talk primarily about git.
63334         (git and CVS): Renamed from CVS.
63335         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
63336         gnulib is available through git.
63337         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
63338
63339 2007-03-30  Bruno Haible  <bruno@clisp.org>
63340
63341         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
63342         * lib/poll_.h: Likewise.
63343         * lib/stat_.h: Likewise.
63344         * lib/sys_time_.h: Likewise.
63345         * lib/sysexit_.h: Likewise.
63346         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
63347         * lib/stdbool_.h: Likewise.
63348         * lib/byteswap_.h: Add double-inclusion guard.
63349
63350 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
63351
63352         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
63353
63354 2007-03-30  Karl Berry  <karl@gnu.org>
63355
63356         * config/srclist-update: double space after USA in the license
63357         substitution, since that's how it's usually (?) written.
63358
63359 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
63360
63361         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
63362         reported by Bruno Haible.
63363
63364 2007-03-29  Bruno Haible  <bruno@clisp.org>
63365
63366         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
63367         a bug in AIX iconv().
63368
63369 2007-03-29  Bruno Haible  <bruno@clisp.org>
63370
63371         * modules/ldexpl-tests: New file.
63372         * tests/test-ldexpl.c: New file.
63373
63374 2007-03-29  Bruno Haible  <bruno@clisp.org>
63375
63376         * lib/ldexpl.c: Include fpucw.h.
63377         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
63378         multiplication.
63379         * modules/ldexpl (Depends-on): Add fpucw.
63380
63381 2007-03-29  Bruno Haible  <bruno@clisp.org>
63382
63383         * modules/ldexpl: New file.
63384         * m4/ldexpl.m4: New file.
63385         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
63386         set.
63387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
63388         REPLACE_LDEXPL.
63389         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
63390         REPLACE_LDEXPL.
63391         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63392         gl_FUNC_LDEXPL_WORKS.
63393         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
63394         * modules/mathl (Files): Remove lib/ldexpl.c.
63395         (Depends-on): Add ldexpl.
63396
63397 2007-03-29  Bruno Haible  <bruno@clisp.org>
63398
63399         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
63400
63401 2007-03-29  Bruno Haible  <bruno@clisp.org>
63402
63403         * tests/test-striconveh.c (main): Don't assume that a direct conversion
63404         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
63405         and possibly also HP-UX.
63406         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63407         work on AIX, IRIX, HP-UX, OSF/1.
63408         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63409         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63410         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63411         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63412         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
63413         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63414
63415 2007-03-29  Bruno Haible  <bruno@clisp.org>
63416
63417         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
63418
63419 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63420
63421         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
63422         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
63423
63424 2007-03-29  Eric Blake  <ebb9@byu.net>
63425
63426         * lib/acl-internal.h: Remove redundant include.
63427         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
63428         Cygwin when a file is locked.
63429
63430 2007-03-29  Bruno Haible  <bruno@clisp.org>
63431
63432         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
63433         file.
63434         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
63435
63436 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63437
63438         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
63439         try to remove a parent directory if the child couldn't be removed
63440         (except for the first rmdir, which could fail because the child
63441         doesn't exist).  Problem reported by Jeff Blaine in
63442         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
63443
63444 2007-03-28  Bruno Haible  <bruno@clisp.org>
63445
63446         * lib/striconveh.c (utf8conv_carefully): New function.
63447         (mem_cd_iconveh_internal): Invoke it.
63448
63449 2007-03-28  Bruno Haible  <bruno@clisp.org>
63450
63451         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
63452         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
63453         input.
63454         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
63455         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
63456         unistr/u8-uctomb.
63457
63458 2007-03-28  Bruno Haible  <bruno@clisp.org>
63459
63460         * modules/unistr/u8-mbtoucr: New file.
63461         * lib/unistr/u8-mbtoucr.c: New file.
63462         * modules/unistr/u16-mbtoucr: New file.
63463         * lib/unistr/u16-mbtoucr.c: New file.
63464         * modules/unistr/u16-mbtoucr: New file.
63465         * lib/unistr/u16-mbtoucr.c: New file.
63466         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
63467
63468 2007-03-27  Simon Josefsson  <simon@josefsson.org>
63469             Bruno Haible  <bruno@clisp.org>
63470
63471         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
63472         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
63473         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
63474
63475         * m4/stdio_h.m4: Add stubs for vasprintf too.
63476
63477         * modules/stdio: Support vasprintf in sed command.
63478
63479         * modules/vasprintf: Depend on stdio for prototypes.  Remove
63480         vasprintf.h.  Add stdio module indicator.
63481
63482         * lib/stdio_.h: Declare asprintf and vasprintf, based on
63483         vasprintf.h.
63484
63485         * lib/vasprintf.h: File removed.
63486
63487         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
63488         * lib/vasprintf.c: Ditto.
63489         * lib/xvasprintf.c: Ditto.
63490         * tests/test-vasprintf-posix.c: Ditto.
63491         * tests/test-vasprintf.c: Ditto.
63492
63493 2007-03-27  Bruno Haible  <bruno@clisp.org>
63494
63495         Make vasnprintf multithread-safe.
63496         * lib/vasnprintf.c (decimal_point_char): New function.
63497         (VASNPRINTF): Use it.
63498         Suggested by Simon Josefsson.
63499
63500 2007-03-27  Eric Blake  <ebb9@byu.net>
63501
63502         Support sub-second birthtime on cygwin.
63503         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
63504         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
63505         (get_stat_birthtime): Also work with st_birthtim.
63506
63507 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
63508
63509         * lib/stat-time.h (USE_BIRTHTIME): Remove.
63510         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
63511         (get_stat_birthtime_ns): Do not try to use "spare" fields.
63512         (get_stat_birthtime_ns): Simplify compile-time tests.
63513         (get_stat_birthtime): Change the API to look like
63514         get_stat_mtime etc., except return a negative tv_nsec on error.
63515         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
63516         Don't check for "spare" fields.
63517         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
63518         or for struct stat.st_birthtime, as these tests aren't used.
63519         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
63520
63521 2007-03-27  Bruno Haible  <bruno@clisp.org>
63522
63523         * lib/stat-time.h: Include <sys/stat.h>.
63524
63525 2007-03-27  James Youngman  <jay@gnu.org>
63526
63527         * lib/stat-time.h (get_stat_birthtime): New function for
63528           retrieving st_birthtime as provided by UFS2 (hence *BSD).
63529         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
63530           and its variants.
63531         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
63532         * modules/stat-time-test: New file.
63533         * tests/test-stat-time.c: New test, devised by Bruno Haible.
63534
63535 2007-03-26  Bruno Haible  <bruno@clisp.org>
63536
63537         Better support of signalling NaNs.
63538         * lib/atanl.c: Include isnanl.h.
63539         (atanl): Perform test for NaN at the beginning of the function and
63540         through a call to isnanl.
63541         * lib/cosl.c: Include isnanl.h.
63542         (cosl): Perform test for NaN at the beginning of the function and
63543         through a call to isnanl.
63544         * lib/ldexpl.c: Include isnanl.h.
63545         (ldexpl): Perform test for NaN through a call to isnanl.
63546         * lib/logl.c: Include isnanl.h.
63547         (logl): Perform test for NaN at the beginning of the function and
63548         through a call to isnanl.
63549         * lib/sinl.c: Include isnanl.h.
63550         (sinl): Perform test for NaN at the beginning of the function and
63551         through a call to isnanl.
63552         * lib/sqrtl.c: Include isnanl.h.
63553         (sqrtl): Perform test for NaN at the beginning of the function and
63554         through a call to isnanl.
63555         * lib/tanl.c: Include isnanl.h.
63556         (tanl): Perform test for NaN at the beginning of the function and
63557         through a call to isnanl.
63558         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
63559         * modules/mathl (Depends-on): Add isnanl.
63560
63561 2007-03-26  Eric Blake  <ebb9@byu.net>
63562
63563         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
63564         regression in logic sense of previous patch.
63565
63566 2007-03-26  Bruno Haible  <bruno@clisp.org>
63567
63568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
63569         unportable shell command "if ! ...".
63570         Reported by Ralf Wildenhues.
63571
63572 2007-03-25  Bruno Haible  <bruno@clisp.org>
63573
63574         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
63575         <sysexits.h> file, and only add EX_CONFIG.
63576         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
63577         absolute file name and whether it is sufficient. Substitute also
63578         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
63579         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
63580         ABSOLUTE_SYSEXITS_H into sysexits.h.
63581
63582 2007-03-25  Bruno Haible  <bruno@clisp.org>
63583
63584         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
63585         hints is NULL.
63586
63587 2007-03-25  Bruno Haible  <bruno@clisp.org>
63588
63589         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
63590         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
63591
63592 2007-03-25  Bruno Haible  <bruno@clisp.org>
63593
63594         * lib/vasnprintf.c: Include langinfo.h.
63595         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
63596         multithread-safe.
63597         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
63598         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
63599         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63600         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63601         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63602         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63603         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63604         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
63605         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63606         Reported by Simon Josefsson.
63607
63608 2007-03-25  Bruno Haible  <bruno@clisp.org>
63609
63610         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
63611         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
63612         * modules/vasnprintf (Depends-on): Add stdint.
63613
63614 2007-03-25  Bruno Haible  <bruno@clisp.org>
63615
63616         * modules/fpieee: New file.
63617         * m4/fpieee.m4: New file.
63618         * modules/isnan-nolibm (Depends-on): Add fpieee.
63619         * modules/isnanl-nolibm (Depends-on): Add fpieee.
63620         * modules/isnanl (Depends-on): Add fpieee.
63621
63622 2007-03-25  Bruno Haible  <bruno@clisp.org>
63623
63624         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
63625
63626 2007-03-25  Bruno Haible  <bruno@clisp.org>
63627
63628         Avoid test failures on IRIX 6.5.
63629         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
63630         (main): Use it.
63631         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
63632         macros.
63633         (main): Use them.
63634
63635 2007-03-25  Bruno Haible  <bruno@clisp.org>
63636
63637         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
63638         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
63639         exists but doesn't work.
63640         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
63641         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
63642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
63643         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
63644         math.h.
63645
63646 2007-03-25  Bruno Haible  <bruno@clisp.org>
63647
63648         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
63649         returns inf. Needed on IRIX 6.5.
63650
63651 2007-03-25  Bruno Haible  <bruno@clisp.org>
63652
63653         * tests/test-frexpl.c: Include isnanl-nolibm.h.
63654         (main): Use isnanl instead of x != x idiom.
63655         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
63656
63657         * tests/test-frexp.c: Include isnan.h.
63658         (main): Use isnan instead of x != x idiom.
63659         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
63660
63661 2007-03-25  Bruno Haible  <bruno@clisp.org>
63662
63663         * tests/test-frexp.c (NaN): New function/macro.
63664         (main): Use it instead of 0.0 / 0.0.
63665         * tests/test-isnan.c (NaN): New function/macro.
63666         (main): Use it instead of 0.0 / 0.0.
63667         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
63668         (test_function): Use it instead of 0.0 / 0.0.
63669         * tests/test-vasprintf-posix.c (NaN): New function/macro.
63670         (test_function): Use it instead of 0.0 / 0.0.
63671         * tests/test-snprintf-posix.h (NaN): New function/macro.
63672         (test_function): Use it instead of 0.0 / 0.0.
63673         * tests/test-sprintf-posix.h (NaN): New function/macro.
63674         (test_function): Use it instead of 0.0 / 0.0.
63675         * tests/test-fprintf-posix.h (NaN): New function/macro.
63676         (test_function): Use it instead of 0.0 / 0.0.
63677         * tests/test-printf-posix.h (NaN): New function/macro.
63678         (test_function): Use it instead of 0.0 / 0.0.
63679
63680         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
63681
63682 2007-03-25  Bruno Haible  <bruno@clisp.org>
63683
63684         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
63685
63686 2007-03-25  Bruno Haible  <bruno@clisp.org>
63687
63688         * lib/regexec.c (merge_state_with_log): Make static.
63689
63690 2007-03-25  Bruno Haible  <bruno@clisp.org>
63691
63692         * lib/trigl.c (kernel_rem_pio2): Make static.
63693
63694 2007-03-25  Bruno Haible  <bruno@clisp.org>
63695
63696         * lib/sincosl.c (sincosl_table): Make static.
63697
63698 2007-03-25  Bruno Haible  <bruno@clisp.org>
63699
63700         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
63701         if the compiler does not support C99.
63702
63703 2007-03-25  Bruno Haible  <bruno@clisp.org>
63704
63705         * modules/time (Makefile.am): Ensure all rule action lines start with a
63706         tab.
63707
63708 2007-03-24  Bruno Haible  <bruno@clisp.org>
63709
63710         * modules/tsearch-tests: New file.
63711         * tests/test-tsearch.sh: New file.
63712         * tests/test-tsearch.c: New file, mostly copied from glibc.
63713
63714         * modules/search-tests: New file.
63715         * tests/test-search.c: New file.
63716
63717         * modules/search: New file.
63718         * lib/search_.h: New file, incorporating lib/tsearch.h.
63719         * m4/search_h.m4: New file.
63720         * lib/tsearch.h: Remove file.
63721         * lib/tsearch.c: Include search.h instead of tsearch.h.
63722         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
63723         HAVE_TSEARCH.
63724         * modules/tsearch (Files): Remove lib/tsearch.h.
63725         (Depends-on): Add search.
63726         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
63727         (Include): Change tsearch.h into search.h.
63728
63729 2007-03-24  Bruno Haible  <bruno@clisp.org>
63730
63731         * modules/fpucw: New file.
63732         * lib/fpucw.h: New file.
63733         * lib/frexp.c: Include fpucw.h.
63734         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63735         (FUNC): Use them.
63736         * lib/printf-frexp.c: Include fpucw.h.
63737         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63738         (FUNC): Use them.
63739         * lib/vasnprintf.c: Include fpucw.h.
63740         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
63741         'long double' calculations.
63742         * tests/test-frexpl.c: Include fpucw.h.
63743         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63744         * tests/test-printf-frexpl.c: Include fpucw.h.
63745         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63746         * modules/frexpl (Depends-on): Add fpucw.
63747         * modules/printf-frexpl (Depends-on): Likewise.
63748         * modules/fprintf-posix (Depends-on): Likewise.
63749         * modules/snprintf-posix (Depends-on): Likewise.
63750         * modules/sprintf-posix (Depends-on): Likewise.
63751         * modules/vasnprintf-posix (Depends-on): Likewise.
63752         * modules/vasprintf-posix (Depends-on): Likewise.
63753         * modules/vfprintf-posix (Depends-on): Likewise.
63754         * modules/vsnprintf-posix (Depends-on): Likewise.
63755         * modules/vsprintf-posix (Depends-on): Likewise.
63756         * modules/frexpl-tests (Depends-on): Likewise.
63757         * modules/printf-frexpl-tests (Depends-on): Likewise.
63758
63759 2007-03-24  Bruno Haible  <bruno@clisp.org>
63760
63761         * lib/float+.h: New file.
63762         * lib/isnan.c: Include float+.h.
63763         (SIZE): New macro.
63764         (FUNC): Compare only SIZE bytes of the value.
63765         * lib/vasnprintf.c: Include float+.h.
63766         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
63767         SIZEOF_LDBL or SIZEOF_DBL bytes.
63768         * modules/isnan-nolibm (Files): Add lib/float+.h.
63769         * modules/isnanl-nolibm (Files): Add lib/float+.h.
63770         * modules/isnanl (Files): Add lib/float+.h.
63771         * modules/vasnprintf (Files): Add lib/float+.h.
63772
63773 2007-03-24  Bruno Haible  <bruno@clisp.org>
63774
63775         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
63776         include isnanl-nolibm.h.
63777
63778 2007-03-24  Bruno Haible  <bruno@clisp.org>
63779
63780         * tests/test-read-file.c (main): Don't produce spurious output for
63781         expected situations. Make the test fail if it encountered unexpected
63782         results.
63783
63784 2007-03-24  Bruno Haible  <bruno@clisp.org>
63785
63786         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
63787         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
63788
63789 2007-03-24  Bruno Haible  <bruno@clisp.org>
63790
63791         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
63792
63793 2007-03-24  Bruno Haible  <bruno@clisp.org>
63794
63795         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
63796         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
63797
63798         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
63799         * modules/utf8-ucs4: Turn into a symbolic link to module
63800         unistr/u8-mbtouc.
63801
63802         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
63803         utf8-ucs4-unsafe.
63804         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
63805         unistr/u8-mbtouc-unsafe.
63806
63807         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
63808         * modules/utf16-ucs4: Turn into a symbolic link to module
63809         unistr/u16-mbtouc.
63810
63811         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
63812         utf16-ucs4-unsafe.
63813         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
63814         unistr/u16-mbtouc-unsafe.
63815
63816         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
63817         * modules/ucs4-utf8: Turn into a symbolic link to module
63818         unistr/u8-ubtomb.
63819
63820         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
63821         * modules/ucs4-utf16: Turn into a symbolic link to module
63822         unistr/u16-ubtomb.
63823
63824 2007-03-24  Bruno Haible  <bruno@clisp.org>
63825
63826         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
63827         Enable the function only if HAVE_INLINE.
63828         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
63829         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63830         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
63831         Enable the function only if HAVE_INLINE.
63832         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
63833         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63834         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
63835         Enable the function only if HAVE_INLINE.
63836         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
63837         Enable the function only if HAVE_INLINE.
63838         * modules/utf8-ucs4: Update.
63839         * modules/utf8-ucs4-unsafe: Update.
63840         * modules/utf16-ucs4: Update.
63841         * modules/utf16-ucs4-unsafe: Update.
63842         * modules/ucs4-utf8: Update.
63843         * modules/ucs4-utf16: Update.
63844
63845 2007-03-24  Bruno Haible  <bruno@clisp.org>
63846
63847         * lib/utf8-ucs4.h: Remove file.
63848         * lib/utf8-ucs4-unsafe.h: Remove file.
63849         * lib/utf16-ucs4.h: Remove file.
63850         * lib/utf16-ucs4-unsafe.h: Remove file.
63851         * lib/ucs4-utf8.h: Remove file.
63852         * lib/ucs4-utf16.h: Remove file.
63853         * lib/unistr.h: Include their previous contents.
63854         * m4/utf-ucs4.m4: Remove file.
63855         * m4/ucs4-utf.m4: Remove file.
63856         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
63857         (Depends-on): Add unistr/base.
63858         (configure.ac): Remove gl_UTF_UCS4.
63859         (Makefile.am): Update.
63860         (Include): Change to unistr.h.
63861         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
63862         (Depends-on): Add unistr/base.
63863         (configure.ac): Remove gl_UTF_UCS4.
63864         (Makefile.am): Update.
63865         (Include): Change to unistr.h.
63866         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
63867         (Depends-on): Add unistr/base.
63868         (configure.ac): Remove gl_UTF_UCS4.
63869         (Makefile.am): Update.
63870         (Include): Change to unistr.h.
63871         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
63872         (Depends-on): Add unistr/base.
63873         (configure.ac): Remove gl_UTF_UCS4.
63874         (Makefile.am): Update.
63875         (Include): Change to unistr.h.
63876         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
63877         (Depends-on): Add unistr/base.
63878         (configure.ac): Remove gl_UCS4_UTF.
63879         (Makefile.am): Update.
63880         (Include): Change to unistr.h.
63881         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
63882         (Depends-on): Add unistr/base.
63883         (configure.ac): Remove gl_UCS4_UTF.
63884         (Makefile.am): Update.
63885         (Include): Change to unistr.h.
63886         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
63887         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
63888         utf8-ucs4-unsafe.h.
63889         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
63890         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
63891         utf16-ucs4-unsafe.h.
63892         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
63893         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
63894         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
63895         * lib/unistr/u8-strchr.c: Likewise.
63896         * lib/unistr/u8-strrchr.c: Likewise.
63897         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
63898         * lib/unistr/u16-strchr.c: Likewise.
63899         * lib/unistr/u16-strrchr.c: Likewise.
63900         * lib/striconveh.c: Update.
63901         * lib/linebreak.c: Update.
63902
63903 2007-03-24  Bruno Haible  <bruno@clisp.org>
63904
63905         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
63906         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
63907
63908 2007-03-22  Bruno Haible  <bruno@clisp.org>
63909
63910         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
63911
63912 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63913
63914         * MODULES.html.sh (File system functions): New module write-any-file.
63915         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
63916         * m4/write-any-file.m4: New files.
63917
63918 2007-03-23  Eric Blake  <ebb9@byu.net>
63919
63920         * gnulib-tool: Rearrange space-tab sequences, since some editors
63921         like to eat them.
63922
63923 2007-03-23  Eric Blake  <ebb9@byu.net>
63924
63925         * lib/version-etc.c (version_etc_va): Update license wording to
63926         be more concise.  Recommended by Richard Stallman.
63927
63928 2007-03-22  Bruno Haible  <bruno@clisp.org>
63929
63930         * lib/poll.c (MSG_PEEK): New fallback definition.
63931
63932 2007-03-22  Bruno Haible  <bruno@clisp.org>
63933
63934         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
63935         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
63936         (main): Update.
63937         Fixes a compilation error on BeOS.
63938
63939 2007-03-22  Bruno Haible  <bruno@clisp.org>
63940
63941         * modules/frexpl-tests: New file.
63942         * tests/test-frexpl.c: New file.
63943
63944         * modules/frexpl: New file.
63945         * m4/frexpl.m4: New file.
63946         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
63947         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
63948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
63949         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
63950         (Depends-on): Add frexpl. Remove isnanl-nolibm.
63951         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
63952
63953 2007-03-22  Bruno Haible  <bruno@clisp.org>
63954
63955         * lib/frexpl.c: Share code with lib/frexp.c.
63956         * modules/mathl (Files): Add lib/frexp.c.
63957         (Depends-on): Add isnanl-nolibm.
63958
63959 2007-03-22  Bruno Haible  <bruno@clisp.org>
63960
63961         * modules/printf-frexp (Files): Add m4/frexp.m4.
63962         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
63963         only if the found frexp function actually works.
63964
63965 2007-03-22  Bruno Haible  <bruno@clisp.org>
63966
63967         * lib/frexp.c: Remove older implementation that uses divisions.
63968
63969 2007-03-21  Bruno Haible  <bruno@clisp.org>
63970
63971         * modules/frexp-tests: New file.
63972         * tests/test-frexp.c: New file.
63973
63974         * modules/frexp: New file.
63975         * lib/frexp.c: New file.
63976         * m4/frexp.m4: New file.
63977         * lib/math_.h (frexp): New declaration.
63978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
63979         REPLACE_FREXP.
63980         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
63981
63982 2007-03-21  Bruno Haible  <bruno@clisp.org>
63983
63984         * modules/isnanl-tests: New file.
63985         * tests/test-isnanl.c: New file.
63986
63987         * modules/isnanl: New file.
63988         * lib/isnanl.h: New file.
63989         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
63990         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
63991         gl_FUNC_ISNANL_WORKS.
63992         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
63993         New macros.
63994
63995 2007-03-21  Bruno Haible  <bruno@clisp.org>
63996
63997         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
63998         lib/isnanl.h.
63999         (Include): Update.
64000         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
64001         * lib/vasnprintf.c: Update.
64002         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
64003         tests/test-isnanl.h, remove tests/test-isnanl.c.
64004         (Makefile.am): Update.
64005         * tests/test-isnanl-nolibm.c: New file.
64006         * tests/test-isnanl.h: New file.
64007         * tests/test-isnanl.c: Remove file.
64008
64009 2007-03-21  Jim Meyering  <jim@meyering.net>
64010
64011         When trying to open ".", treat ESTALE like EACCES.
64012         * lib/savewd.c (savewd_save): Resort to forking not just upon
64013         failure with EACCES, but also when errno is ESTALE.
64014
64015 2007-03-20  Bruno Haible  <bruno@clisp.org>
64016
64017         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
64018         Needed on AIX 5.1. Reported by Matthew Woehlke.
64019
64020 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64021
64022         Suggestions by Bruno Haible:
64023         * lib/acl-internal.h: Include "gettext.h" rather than rolling
64024         our own.
64025         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
64026         * modules/acl (Depends-on): Add gettext.
64027
64028 2007-03-19  Bruno Haible  <bruno@clisp.org>
64029
64030         * modules/iconvme: Remove file.
64031         * lib/iconvme.h: Remove file.
64032         * lib/iconvme.c: Remove file.
64033         * m4/iconvme.m4: Remove file.
64034
64035 2007-03-19  Bruno Haible  <bruno@clisp.org>
64036
64037         * doc/relocatable-maint.texi: Break long shell script line.
64038         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64039
64040 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64041
64042         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
64043         handle file_has_acl.
64044         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
64045         * lib/acl.c: Move header inclusions and related macro defns into
64046         lib/acl-internal.h.
64047         (S_ISLNK): Remove defn, since that's now done for us.
64048         (file_has_acl): Move to lib/file-has-acl.c.
64049         Call acl_trivial if available.  This is the crucial part of the fix.
64050         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
64051         shared within the library.  Rewrite a bit, partly to make it compatible
64052         with the GNU coding style.
64053         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
64054         Remove unnecessary double-quotes.
64055         Don't test for acl_to_text; the build will catch that.
64056         Replace acl_entries if it doesn't exist and it is needed.
64057         Check for -lsec and acl_trivial (as used on Solaris 10).
64058         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
64059         lib/file-has-acl.c.
64060         (Depends-on): Add sys_stat, for S_ISLNK.
64061
64062 2007-03-19  Ben Pfaff  <blp@gnu.org>
64063
64064         * doc/gnulib.texi: Fix typos.
64065         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64066
64067 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64068
64069         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
64070         If size is zero here, buf must be zero.
64071
64072 2007-03-19  Simon Josefsson  <simon@josefsson.org>
64073
64074         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
64075         <bruno@clisp.org>.
64076
64077 2007-03-18  Bruno Haible  <bruno@clisp.org>
64078
64079         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
64080         Suggested by Eric Blake.
64081
64082 2007-03-18  Ben Pfaff  <blp@gnu.org>
64083
64084         * doc/relocatable.texi: Recommend using as prefix a directory
64085         that does not exist and will never be created.  Based on
64086         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
64087         and others.
64088
64089 2007-03-17  Bruno Haible  <bruno@clisp.org>
64090
64091         * lib/fchownat.c: Include lchown.h.
64092
64093 2007-03-17  Bruno Haible  <bruno@clisp.org>
64094
64095         Fix endless loop when the given allocated size was > INT_MAX.
64096         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
64097         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
64098         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
64099         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
64100         * lib/sprintf.c (sprintf): Likewise.
64101
64102 2007-03-17  Bruno Haible  <bruno@clisp.org>
64103
64104         * tests/test-argp-2.sh (func_compare): Output a context diff.
64105
64106 2007-03-17  Bruno Haible  <bruno@clisp.org>
64107
64108         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
64109         locale's decimal-point character.
64110
64111 2007-03-17  Bruno Haible  <bruno@clisp.org>
64112
64113         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
64114         before comparing it. Needed because on some platforms (e.g. x86) a
64115         'long double' occupies less bytes than sizeof (long double).
64116
64117 2007-03-17  Bruno Haible  <bruno@clisp.org>
64118
64119         * tests/test-crc.c (main): Make printf statements 64-bit clean.
64120         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
64121         * tests/test-getaddrinfo.c (simple): Likewise.
64122         * tests/test-read-file.c (main): Likewise.
64123
64124 2007-03-17  Bruno Haible  <bruno@clisp.org>
64125
64126         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
64127
64128 2007-03-17  Bruno Haible  <bruno@clisp.org>
64129
64130         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
64131         unused variable.
64132
64133 2007-03-17  Bruno Haible  <bruno@clisp.org>
64134
64135         * tests/test-c-strcasecmp.c: Include c-strcase.h.
64136         * tests/test-c-strncasecmp.c: Likewise.
64137
64138 2007-03-17  Bruno Haible  <bruno@clisp.org>
64139
64140         * modules/stdlib (Depends-on): Add unistd.
64141         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
64142         Needed for MacOS X 10.3.
64143
64144 2007-03-17  Bruno Haible  <bruno@clisp.org>
64145
64146         * lib/unistr/u-strdup.h: Include <stdlib.h>.
64147
64148 2007-03-17  Bruno Haible  <bruno@clisp.org>
64149
64150         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
64151
64152 2007-03-17  Bruno Haible  <bruno@clisp.org>
64153
64154         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
64155         to reflect files copied from gnulib (with or without modifications).
64156         Suggested by Jim Meyering.
64157
64158 2007-03-17  Eric Blake  <ebb9@byu.net>
64159
64160         * NEWS: Document stdlib change from 2007-02-18.
64161
64162 2007-03-17  Jim Meyering  <jim@meyering.net>
64163
64164         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
64165         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
64166         someone uses a name containing shell meta-characters.
64167         Reported by Alfred M. Szmidt.
64168
64169         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
64170
64171 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64172
64173         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
64174         and copy gettext configuration files only if configure.ac contains
64175         a use of AM_GNU_GETTEXT_VERSION.
64176
64177 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64178
64179         * build-aux/bootstrap (gnulib_name): New variable.
64180         (gnulib_tool_options): Use it.
64181
64182 2007-03-13  Simon Josefsson  <simon@josefsson.org>
64183
64184         * tests/test-des.c: Use new namespace.
64185
64186 2007-03-15  Bruno Haible  <bruno@clisp.org>
64187
64188         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
64189         Reported by James Youngman <jay@gnu.org>.
64190
64191 2007-03-15  Bruno Haible  <bruno@clisp.org>
64192
64193         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
64194         declared prototype. Needed with cc on OSF/1 5.1.
64195
64196 2007-03-15  Bruno Haible  <bruno@clisp.org>
64197
64198         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
64199         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
64200         (struct gl_list_implementation): Add dispose_fn argument to the
64201         'create_empty', 'create' methods.
64202         (struct gl_list_impl_base): Add field 'dispose_fn'.
64203         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
64204         argument.
64205         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
64206         dispose_fn argument.
64207         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
64208         dispose_fn on the dropped values.
64209         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
64210         dispose_fn argument.
64211         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
64212         dropped values.
64213         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
64214         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64215         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
64216         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64217         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
64218         argument.
64219         (gl_tree_list_free): Call dispose_fn on the dropped values.
64220         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
64221         the dropped values.
64222         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64223         Add dispose_fn argument.
64224         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
64225         Call dispose_fn on the dropped values.
64226         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
64227         Add dispose_fn argument.
64228         (gl_sublist_create): Initialize the 'dispose_fn' field.
64229         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
64230         * tests/test-array_list.c (main): Update.
64231         * tests/test-carray_list.c (main): Update.
64232         * tests/test-avltree_list.c (main): Update.
64233         * tests/test-rbtree_list.c (main): Update.
64234         * tests/test-avltreehash_list.c (main): Update.
64235         * tests/test-rbtreehash_list.c (main): Update.
64236         * tests/test-linked_list.c (main): Update.
64237         * tests/test-linkedhash_list.c (main): Update.
64238         * tests/test-array_oset.c (main): Update.
64239
64240 2007-03-15  Bruno Haible  <bruno@clisp.org>
64241
64242         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
64243         (gl_oset_create_empty): Add dispose_fn argument.
64244         (struct gl_oset_implementation): Add dispose_fn argument to
64245         'create_empty' method.
64246         (struct gl_oset_impl_base): Add dispose_fn field.
64247         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
64248         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
64249         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
64250         values.
64251         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
64252         (gl_tree_oset_free): Call dispose_fn on the dropped values.
64253         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64254         dropped value.
64255         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64256         dropped value.
64257         * tests/test-array_oset.c (main): Update.
64258         * tests/test-avltree_oset.c (main): Update.
64259         * tests/test-rbtree_oset.c (main): Update.
64260         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
64261
64262 2007-03-13  Bruno Haible  <bruno@clisp.org>
64263
64264         * tests/test-stdbool.c (i): Update after last patch.
64265
64266 2007-03-12  Bruno Haible  <bruno@clisp.org>
64267
64268         * lib/quotearg.c: Include <wctype.h> early, before the definition of
64269         the iswprint macro. Needed on Solaris 2.5.1.
64270
64271 2007-03-12  Bruno Haible  <bruno@clisp.org>
64272
64273         * tests/test-printf-frexp.c (main): Declare x as volatile.
64274
64275 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64276
64277         * doc/gnulib.texi (Build robot for gnulib): New section.
64278
64279 2007-03-12  Jim Meyering  <jim@meyering.net>
64280
64281         * build-aux/bootstrap: New file.
64282         * build-aux/bootstrap.conf: New file, from coreutils.
64283
64284 2007-03-11  Bruno Haible  <bruno@clisp.org>
64285
64286         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
64287
64288 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64289
64290         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
64291         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
64292         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
64293
64294 2007-03-11  Bruno Haible  <bruno@clisp.org>
64295
64296         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
64297         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
64298
64299 2007-03-11  Bruno Haible  <bruno@clisp.org>
64300
64301         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
64302         formula. Needed for SunPRO C 5.0.
64303
64304 2007-03-11  Bruno Haible  <bruno@clisp.org>
64305
64306         * modules/long-options (Depends-on): Add getopt.
64307
64308 2007-03-11  Bruno Haible  <bruno@clisp.org>
64309
64310         * modules/modechange (Depends-on): Add stdbool.
64311
64312 2007-03-11  Bruno Haible  <bruno@clisp.org>
64313
64314         * modules/i-ring (Depends-on): Add stdbool.
64315
64316 2007-03-11  Bruno Haible  <bruno@clisp.org>
64317
64318         * modules/gc-des (Depends-on): Add stdbool.
64319
64320 2007-03-11  Bruno Haible  <bruno@clisp.org>
64321
64322         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
64323
64324 2007-03-11  Bruno Haible  <bruno@clisp.org>
64325
64326         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
64327
64328 2007-03-11  Bruno Haible  <bruno@clisp.org>
64329
64330         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
64331
64332 2007-03-11  Bruno Haible  <bruno@clisp.org>
64333
64334         * lib/vasnprintf.c (sprintf): Undefine.
64335
64336 2007-03-11  Bruno Haible  <bruno@clisp.org>
64337
64338         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
64339         initializers in SunPRO C and Compaq C compilers.
64340
64341 2007-03-11  Bruno Haible  <bruno@clisp.org>
64342
64343         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
64344         decrementing code ANSI C compliant.
64345
64346 2007-03-11  Bruno Haible  <bruno@clisp.org>
64347
64348         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
64349         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
64350
64351 2007-03-11  Bruno Haible  <bruno@clisp.org>
64352
64353         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
64354         <stdbool.h> substitute doesn't pass.
64355
64356 2007-03-11  Bruno Haible  <bruno@clisp.org>
64357
64358         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
64359
64360 2007-03-11  Bruno Haible  <bruno@clisp.org>
64361
64362         * gnulib-tool (func_create_megatestdir): Create also an autobuild
64363         script, for submission to autobuild.josefsson.org.
64364
64365 2007-03-10  Bruno Haible  <bruno@clisp.org>
64366
64367         * modules/canonicalize-lgpl-tests: New file.
64368         * tests/test-canonicalize-lgpl.sh: New file.
64369         * tests/test-canonicalize-lgpl.c: New file.
64370
64371         * modules/c-strcase-tests: New file.
64372         * tests/test-c-strcase.sh: New file.
64373         * tests/test-c-strcasecmp.c: New file.
64374         * tests/test-c-strncasecmp.c: New file.
64375
64376         * modules/atexit-tests: New file.
64377         * tests/test-atexit.sh: New file.
64378         * tests/test-atexit.c: New file.
64379
64380 2007-03-10  Bruno Haible  <bruno@clisp.org>
64381
64382         * tests/test-binary-io.sh: Use temporary filenames that are not so
64383         likely to clash with those of other tests (in a parallel make).
64384         * tests/test-binary-io.c: Likewise.
64385
64386 2007-03-10  Bruno Haible  <bruno@clisp.org>
64387
64388         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
64389         fallback; use #error instead.
64390         Suggested by Simon Josefsson.
64391
64392 2007-03-10  Bruno Haible  <bruno@clisp.org>
64393
64394         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
64395         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
64396         first and the last.
64397
64398 2007-03-10  Bruno Haible  <bruno@clisp.org>
64399
64400         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
64401
64402 2007-03-10  Bruno Haible  <bruno@clisp.org>
64403
64404         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
64405         "make distcheck".
64406         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
64407         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
64408         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
64409
64410 2007-03-10  Bruno Haible  <bruno@clisp.org>
64411
64412         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
64413         variable.
64414         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
64415         variable.
64416
64417 2007-03-09  Eric Blake  <ebb9@byu.net>
64418         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
64419
64420         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
64421         types are not being provided by gnulib.
64422         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
64423         types are supported.
64424
64425 2007-03-10  Bruno Haible  <bruno@clisp.org>
64426
64427         * lib/stdio_.h (__attribute__): New macro.
64428         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
64429         vsprintf): Specify __attribute__ __format__ for GCC.
64430         Suggested by Eric Blake.
64431
64432 2007-03-09  Bruno Haible  <bruno@clisp.org>
64433
64434         * modules/printf-posix-tests: New file.
64435         * tests/test-printf-posix.sh: New file.
64436         * tests/test-printf-posix.c: New file.
64437
64438         * modules/printf-posix: New file.
64439         * lib/printf.c: New file.
64440         * m4/printf-posix-rpl.m4: New file.
64441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
64442         REPLACE_PRINTF.
64443         * lib/stdio_.h (printf): New declaration.
64444         (format, __format__, ____printf____, ____scanf____, ____strftime____,
64445         ____strfmon____): New macros.
64446         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
64447         REPLACE_PRINTF.
64448
64449 2007-03-09  Bruno Haible  <bruno@clisp.org>
64450
64451         * tests/test-vasnprintf-posix2.sh: New file.
64452         * tests/test-vasnprintf-posix2.c: New file.
64453         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
64454         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64455         (Makefile.am): Activate test-vasnprintf-posix2.sh.
64456
64457         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
64458         a locale dependent decimal point, rather than always '.'.
64459
64460 2007-03-09  Eric Blake  <ebb9@byu.net>
64461
64462         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
64463         spite of platforms like Tandem/NSK that define it to -1.
64464
64465 2007-03-08  Bruno Haible  <bruno@clisp.org>
64466
64467         * modules/vprintf-posix-tests: New file.
64468         * tests/test-vprintf-posix.sh: New file.
64469         * tests/test-vprintf-posix.c: New file.
64470         * tests/test-printf-posix.h: New file.
64471
64472         * modules/vprintf-posix: New file.
64473         * lib/vprintf.c: New file.
64474         * m4/vprintf-posix.m4: New file.
64475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
64476         REPLACE_VPRINTF.
64477         * lib/stdio_.h (vprintf): New declaration.
64478         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
64479         REPLACE_VPRINTF.
64480
64481 2007-03-08  Bruno Haible  <bruno@clisp.org>
64482
64483         * modules/fprintf-posix-tests: New file.
64484         * tests/test-fprintf-posix.sh: New file.
64485         * tests/test-fprintf-posix.c: New file.
64486
64487         * modules/fprintf-posix: New file.
64488         * lib/fprintf.c: New file.
64489         * m4/fprintf-posix.m4: New file.
64490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
64491         REPLACE_FPRINTF.
64492         * lib/stdio_.h (fprintf): New declaration.
64493         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
64494         REPLACE_FPRINTF.
64495
64496 2007-03-08  Bruno Haible  <bruno@clisp.org>
64497
64498         * modules/vfprintf-posix-tests: New file.
64499         * tests/test-vfprintf-posix.sh: New file.
64500         * tests/test-vfprintf-posix.c: New file.
64501         * tests/test-fprintf-posix.h: New file.
64502         * tests/test-fprintf-posix.out: New file.
64503
64504         * modules/vfprintf-posix: New file.
64505         * lib/vfprintf.c: New file.
64506         * m4/vfprintf-posix.m4: New file.
64507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
64508         REPLACE_VFPRINTF.
64509         * lib/stdio_.h (vfprintf): New declaration.
64510         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
64511         REPLACE_VFPRINTF.
64512
64513 2007-03-08  Bruno Haible  <bruno@clisp.org>
64514
64515         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
64516
64517 2007-03-08  Bruno Haible  <bruno@clisp.org>
64518
64519         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
64520         instead of 'expr' invocations.
64521         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64522         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64523         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64526         Suggested by Paul Eggert.
64527
64528 2007-03-08  Bruno Haible  <bruno@clisp.org>
64529
64530         * modules/fseterr-tests: New file.
64531         * tests/test-fseterr.c: New file.
64532
64533         * modules/fseterr: New file.
64534         * lib/fseterr.h: New file.
64535         * lib/fseterr.c: New file.
64536
64537 2007-03-08  Bruno Haible  <bruno@clisp.org>
64538
64539         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
64540         * lib/getopt_.h: Likewise.
64541         * lib/mbswidth.h: Likewise.
64542         * lib/setenv.h: Likewise.
64543         * lib/vasnprintf.h: Likewise.
64544         * lib/vasprintf.h: Likewise.
64545         * lib/verror.h: Likewise.
64546         * lib/xsetenv.h: Likewise.
64547         * lib/xvasprintf.h: Likewise.
64548
64549 2007-03-08  Jim Meyering  <jim@meyering.net>
64550
64551         * users.txt: Add parted.
64552
64553         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
64554
64555 2007-03-07  Bruno Haible  <bruno@clisp.org>
64556
64557         * m4/printf.m4: Make the shell script snippets copy&pastable.
64558
64559 2007-03-02  Bruno Haible  <bruno@clisp.org>
64560
64561         * lib/netinet_in_.h: New file.
64562         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
64563         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
64564         * modules/netinet_in (Files): Add lib/netinet_in_.h.
64565         (Depends-on): Add absolute-header.
64566         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
64567         into netinet/in.h.
64568
64569 2007-03-03  Bruno Haible  <bruno@clisp.org>
64570
64571         * lib/sys_select_.h: New file.
64572         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
64573         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
64574         * modules/sys_select (Files): Add lib/sys_select_.h.
64575         (Depends-on): Add absolute-header.
64576         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
64577         into sys/select.h.
64578
64579 2007-03-02  Bruno Haible  <bruno@clisp.org>
64580
64581         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
64582         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
64583         values.
64584         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
64585         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
64586         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
64587         * modules/sys_socket (Depends-on): Add absolute-header.
64588         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
64589         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
64590         (Include): Remove requirement of inclusion of <sys/types.h>.
64591
64592 2007-03-02  Bruno Haible  <bruno@clisp.org>
64593
64594         * lib/byteswap_.h (bswap_32): Fix formula.
64595
64596 2007-03-06  Bruno Haible  <bruno@clisp.org>
64597
64598         * modules/sprintf-posix-tests: New file.
64599         * tests/test-sprintf-posix.c: New file.
64600
64601         * modules/sprintf-posix: New file.
64602         * lib/sprintf.c: New file.
64603         * m4/sprintf-posix.m4: New file.
64604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
64605         REPLACE_SPRINTF.
64606         * lib/stdio_.h (sprintf): New declaration.
64607         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
64608         REPLACE_SPRINTF.
64609
64610 2007-03-06  Bruno Haible  <bruno@clisp.org>
64611
64612         * modules/vsprintf-posix-tests: New file.
64613         * tests/test-vsprintf-posix.c: New file.
64614         * tests/test-sprintf-posix.h: New file.
64615
64616         * modules/vsprintf-posix: New file.
64617         * lib/vsprintf.c: New file.
64618         * m4/vsprintf-posix.m4: New file.
64619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
64620         REPLACE_VSPRINTF.
64621         * lib/stdio_.h (vsprintf): New declaration.
64622         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
64623         REPLACE_VSPRINTF.
64624
64625 2007-03-06  Bruno Haible  <bruno@clisp.org>
64626
64627         * modules/vsnprintf (Depend-on): Remove minmax.
64628
64629 2007-03-06  Bruno Haible  <bruno@clisp.org>
64630
64631         * modules/snprintf-posix-tests: New file.
64632         * tests/test-snprintf-posix.c: New file.
64633
64634         * modules/snprintf-posix: New file.
64635         * m4/snprintf-posix.m4: New file.
64636         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
64637         gl_FUNC_SNPRINTF.
64638         (gl_FUNC_SNPRINTF): Invoke it.
64639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
64640         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
64641         is set.
64642         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
64643
64644 2007-03-06  Bruno Haible  <bruno@clisp.org>
64645
64646         * modules/vsnprintf-posix-tests: New file.
64647         * tests/test-vsnprintf-posix.c: New file.
64648         * tests/test-snprintf-posix.h: New file.
64649
64650         * modules/vsnprintf-posix: New file.
64651         * m4/vsnprintf-posix.m4: New file.
64652         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
64653         gl_FUNC_VSNPRINTF.
64654         (gl_FUNC_VSNPRINTF): Invoke it.
64655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
64656         * lib/stdio_.h (vsnprintf): Define as a replacement if
64657         REPLACE_VSNPRINTF is set.
64658         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
64659
64660 2007-03-06  Bruno Haible  <bruno@clisp.org>
64661
64662         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
64663         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
64664
64665 2007-03-06  Bruno Haible  <bruno@clisp.org>
64666
64667         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
64668         (asinl): Declare also if HAVE_DECL_ASINL is set.
64669         (atanl): Declare also if HAVE_DECL_ATANL is set.
64670         (ceill): Declare also if HAVE_DECL_CEILL is set.
64671         (cosl): Declare also if HAVE_DECL_COSL is set.
64672         (expl): Declare also if HAVE_DECL_EXPL is set.
64673         (floorl): Declare also if HAVE_DECL_FLOORL is set.
64674         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
64675         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
64676         (logl): Declare also if HAVE_DECL_LOGL is set.
64677         (sinl): Declare also if HAVE_DECL_SINL is set.
64678         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
64679         (tanl): Declare also if HAVE_DECL_TANL is set.
64680         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
64681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
64682         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
64683         declaration of frexpl, ldexpl.
64684         * modules/printf-frexpl (Depends-on): Add math.
64685         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
64686
64687 2007-03-05  Bruno Haible  <bruno@clisp.org>
64688
64689         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
64690         frexpl and ldexpl are declared.
64691         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
64692
64693 2007-03-05  Bruno Haible  <bruno@clisp.org>
64694
64695         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
64696         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
64697
64698 2007-03-05  Bruno Haible  <bruno@clisp.org>
64699
64700         * lib/stdio_.h: Include <stddef.h>.
64701
64702 2007-03-05  Bruno Haible  <bruno@clisp.org>
64703
64704         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
64705
64706 2007-03-05  Bruno Haible  <bruno@clisp.org>
64707
64708         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
64709         NetBSD 4, from Ralf Wildenhues.
64710
64711 2007-03-04  Bruno Haible  <bruno@clisp.org>
64712
64713         * lib/vasprintf.h: Update #if logic for the case when the functions
64714         exist but are overridden.
64715
64716 2007-03-04  Bruno Haible  <bruno@clisp.org>
64717
64718         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
64719         implementations: glibc-2.4 and MacOS X 10.3.
64720         * tests/test-vasnprintf-posix.c (test_function): Test also the case
64721         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
64722         * tests/test-vasprintf-posix.c (test_function): Likewise.
64723
64724 2007-03-04  Bruno Haible  <bruno@clisp.org>
64725
64726         * modules/vasprintf-posix-tests: New file.
64727         * tests/test-vasprintf-posix.c: New file.
64728
64729         * modules/vasprintf-posix: New file.
64730         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
64731         defined.
64732         * m4/vasprintf-posix.m4: New file.
64733         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
64734         gl_FUNC_VASPRINTF.
64735         (gl_FUNC_VASPRINTF): Invoke it.
64736         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
64737         here.
64738         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
64739
64740 2007-03-04  Bruno Haible  <bruno@clisp.org>
64741
64742         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
64743         REPLACE_GETTIMEOFDAY.
64744         * modules/sys_time (Makefile.am): Likewise.
64745         * m4/sys_time_h.m4: Likewise.
64746         * m4/gettimeofday.m4: Likewise.
64747
64748 2007-03-04  Bruno Haible  <bruno@clisp.org>
64749
64750         * modules/vasnprintf-posix-tests: New file.
64751         * tests/test-vasnprintf-posix.c: New file.
64752
64753         * modules/vasnprintf-posix: New file.
64754         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
64755         printf-frexpl.h.
64756         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
64757         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
64758         REPLACE_VASNPRINTF is defined.
64759         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
64760         gl_FUNC_VASNPRINTF.
64761         (gl_FUNC_VASNPRINTF): Invoke it.
64762         * m4/vasnprintf-posix.m4: New file.
64763         * m4/printf.m4: New file.
64764
64765 2007-03-04  Bruno Haible  <bruno@clisp.org>
64766
64767         Compile progreloc.c only if --enable-relocatable is specified.
64768         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
64769         if --enable-relocatable was specified.
64770         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
64771         lib_SOURCES.
64772
64773 2007-03-04  Jim Meyering  <jim@meyering.net>
64774
64775         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
64776         Use it consistently, rather than enumerating errno constants.
64777
64778 2007-03-04  Bruno Haible  <bruno@clisp.org>
64779
64780         * modules/xvasprintf-tests: New file.
64781         * tests/test-xvasprintf.c: New file.
64782
64783         * modules/vasprintf-tests: New file.
64784         * tests/test-vasprintf.c: New file.
64785
64786         * modules/vasnprintf-tests: New file.
64787         * tests/test-vasnprintf.c: New file.
64788
64789         * modules/vsnprintf-tests: New file.
64790         * tests/test-vsnprintf.c: New file.
64791
64792         * modules/snprintf-tests: New file.
64793         * tests/test-snprintf.c: New file.
64794
64795 2007-03-04  Bruno Haible  <bruno@clisp.org>
64796
64797         Compile relocatable.c only if --enable-relocatable is specified.
64798         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
64799         gl_RELOCATABLE_LIBRARY.
64800         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
64801         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
64802         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
64803         gl_RELOCATABLE_LIBRARY.
64804         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
64805         (Makefile.am): Remove lib_SOURCES.
64806         * modules/relocatable-lib-lgpl (configure.ac): Invoke
64807         gl_RELOCATABLE_LIBRARY.
64808         (Makefile.am): Remove lib_SOURCES.
64809         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
64810         always.
64811         * modules/relocatable-prog-wrapper (configure.ac): Invoke
64812         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
64813
64814 2007-03-04  Bruno Haible  <bruno@clisp.org>
64815
64816         * modules/argmatch-tests: New file.
64817         * tests/test-argmatch.c: New file.
64818
64819         * tests/test-allocsa.c (main): Halve the number of loop runs.
64820
64821         * modules/alloca-opt-tests: New file.
64822         * tests/test-alloca-opt.c: New file.
64823
64824 2007-03-04  Jim Meyering  <jim@meyering.net>
64825
64826         Work around difference between Linux ACLs and Solaris 10 ZFS.
64827         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
64828         for EINVAL.
64829
64830 2007-03-03  Bruno Haible  <bruno@clisp.org>
64831
64832         * modules/relocatable-prog (Depends-on): Add back progreloc's
64833         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
64834
64835 2007-03-03  Bruno Haible  <bruno@clisp.org>
64836
64837         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
64838         * modules/relocatable-lib: New file.
64839
64840 2007-03-03  Bruno Haible  <bruno@clisp.org>
64841
64842         * modules/relocatable-prog: Renamed from modules/relocatable.
64843         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
64844
64845 2007-03-03  Bruno Haible  <bruno@clisp.org>
64846
64847         * modules/relocatable-script (Files): Add doc/relocatable.texi,
64848         m4/relocatable-lib.m4.
64849         (Depends-on): Remove 'relocatable'.
64850         (configure.ac): Add gl_RELOCATABLE_NOP.
64851
64852 2007-03-03  Bruno Haible  <bruno@clisp.org>
64853
64854         * modules/relocatable-prog-wrapper: New file.
64855         * modules/relocatable (Depends-on): Add it. Remove all other
64856         dependencies except progname.
64857         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
64858
64859         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
64860         (gl_FUNC_STRERROR): Nop.
64861         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
64862
64863         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
64864         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
64865
64866         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
64867         (gl_FUNC_READLINK): Update.
64868
64869         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
64870
64871 2007-03-03  Bruno Haible  <bruno@clisp.org>
64872
64873         * lib/xreadlink.c: Include <unistd.h> unconditionally.
64874         * modules/xreadlink (Depends-on): Add unistd.
64875         * modules/xreadlink-with-size (Depends-on): Likewise.
64876
64877 2007-03-03  Bruno Haible  <bruno@clisp.org>
64878
64879         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
64880         extracted from gt_FUNC_SETENV.
64881         (gt_FUNC_SETENV): Remove macro.
64882         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
64883         remove gt_FUNC_SETENV.
64884
64885 2007-03-03  Bruno Haible  <bruno@clisp.org>
64886
64887         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
64888         ENABLE_RELOCATABLE here.
64889         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
64890
64891 2007-03-03  Bruno Haible  <bruno@clisp.org>
64892
64893         * modules/rbtreehash-list-tests (Depends-on): Add progname.
64894         * tests/test-rbtreehash_list.c: Include progname.h.
64895         (main): Call set_program_name.
64896
64897         * modules/rbtree-oset-tests (Depends-on): Add progname.
64898         * tests/test-rbtree_oset.c: Include progname.h.
64899         (main): Call set_program_name.
64900
64901         * modules/rbtree-list-tests (Depends-on): Add progname.
64902         * tests/test-rbtree_list.c: Include progname.h.
64903         (main): Call set_program_name.
64904
64905         * modules/linked-list-tests (Depends-on): Add progname.
64906         * tests/test-linked_list.c: Include progname.h.
64907         (main): Call set_program_name.
64908
64909 2007-03-03  Bruno Haible  <bruno@clisp.org>
64910
64911         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
64912         All uses of __restrict changed to _Restrict_.
64913         * lib/glob_.h (__restrict): Remove macro.
64914
64915 2007-03-02  Bruno Haible  <bruno@clisp.org>
64916
64917         * modules/gettext (configure.ac): Require gettext infrastructure
64918         from version 0.16.1.
64919
64920 2007-03-02  Bruno Haible  <bruno@clisp.org>
64921
64922         * modules/linkedhash-list-tests (Depends-on): Add progname.
64923         * tests/test-linkedhash_list.c: Include progname.h.
64924         (main): Call set_program_name.
64925
64926         * modules/carray-list-tests (Depends-on): Add progname.
64927         * tests/test-carray_list.c: Include progname.h.
64928         (main): Call set_program_name.
64929
64930         * modules/avltreehash-list-tests (Depends-on): Add progname.
64931         * tests/test-avltreehash_list.c: Include progname.h.
64932         (main): Call set_program_name.
64933
64934         * modules/avltree-oset-tests (Depends-on): Add progname.
64935         * tests/test-avltree_oset.c: Include progname.h.
64936         (main): Call set_program_name.
64937
64938         * modules/avltree-list-tests (Depends-on): Add progname.
64939         * tests/test-avltree_list.c: Include progname.h.
64940         (main): Call set_program_name.
64941
64942         * modules/array-oset-tests (Depends-on): Add progname.
64943         * tests/test-array_oset.c: Include progname.h.
64944         (main): Call set_program_name.
64945
64946         * modules/array-list-tests (Depends-on): Add progname.
64947         * tests/test-array_list.c: Include progname.h.
64948         (main): Call set_program_name.
64949
64950         * modules/argp-tests (Depends-on): Add progname.
64951         * tests/test-argp.c: Include argp.h first. Include progname.h.
64952         (main): Call set_program_name.
64953
64954 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
64955
64956         * doc/gnulib-tool.texi (Initial import): Reword description of
64957         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
64958         limited effect even if defined after the first system include.
64959
64960 2007-03-01  Bruno Haible  <bruno@clisp.org>
64961
64962         * build-aux/config.libpath: Update to libtool-1.5.22.
64963         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64964
64965 2007-03-01  Bruno Haible  <bruno@clisp.org>
64966
64967         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
64968         foo_CFLAGS.
64969         Reported by Ralf Wildenhues.
64970
64971 2007-03-01  Bruno Haible  <bruno@clisp.org>
64972
64973         * build-aux/install-reloc: Remove object files left over by some
64974         compilers.
64975         Reported by Ralf Wildenhues.
64976
64977 2007-03-01  Bruno Haible  <bruno@clisp.org>
64978
64979         * build-aux/install-reloc: Break long lines.
64980
64981 2007-03-01  Bruno Haible  <bruno@clisp.org>
64982
64983         * doc/relocatable.texi: Document that it may not work on OpenBSD.
64984         Reported by Ralf Wildenhues.
64985
64986 2007-03-01  Bruno Haible  <bruno@clisp.org>
64987
64988         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
64989         include ordering constraints.
64990
64991 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64992
64993         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
64994         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
64995         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
64996         as another example.
64997         * lib/time_.h: Fix misspelling.
64998         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64999         Require gl_HEADER_TIME_H_DEFAULTS.
65000         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
65001         * m4/time_r.m4 (gl_TIME_R): Likewise.
65002         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
65003
65004 2007-03-01  Bruno Haible  <bruno@clisp.org>
65005
65006         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
65007         * m4/utimens.m4 (gl_UTIMENS): Likewise.
65008
65009 2007-03-01  Jim Meyering  <jim@meyering.net>
65010
65011         * modules/xreadlink (Maintainer): Add my name.
65012         * modules/xreadlink-with-size (Depends-on): Alphabetize.
65013
65014 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
65015             Bruno Haible  <bruno@clisp.org>
65016
65017         * build-aux/install-reloc: Compile also c-ctype.c.
65018         * build-aux/relocatable.sh.in: New file.
65019         * doc/relocatable.texi: New file.
65020         * doc/relocatable-maint.texi: New file.
65021         * doc/gnulib.texi: Include relocatable-maint.texi.
65022         * lib/progreloc.c: Include unistd.h unconditionally.
65023         * lib/relocwrapper.c: Include unistd.h unconditionally.
65024         Include c-ctype.h.
65025         (add_dotbin): Use c_tolower.
65026         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
65027         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
65028         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
65029         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
65030         to m4/relocatable-lib.m4.
65031         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
65032         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
65033         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
65034         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
65035         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
65036         * modules/relocatable: New file.
65037         * modules/relocatable-lib: New file.
65038         * modules/relocatable-script: New file.
65039
65040 2007-02-28  Bruno Haible  <bruno@clisp.org>
65041
65042         Import --enable-relocatable infrastructure.
65043         * build-aux/config.libpath: New file, from GNU gettext.
65044         * build-aux/install-reloc: New file, from GNU gettext.
65045         * build-aux/reloc-ldflags: New file, from GNU gettext.
65046         * lib/relocatable.h: New file, from GNU gettext.
65047         * lib/relocatable.c: New file, from GNU gettext.
65048         * lib/relocwrapper.c: New file, from GNU gettext.
65049         * m4/relocatable.m4: New file, from GNU gettext.
65050
65051 2007-02-28  Bruno Haible  <bruno@clisp.org>
65052
65053         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
65054
65055         * modules/xreadlink: New file, from GNU gettext with modifications.
65056         * lib/xreadlink.c: New file, from GNU gettext.
65057         * lib/xreadlink.h: Add comments.
65058         (xreadlink): New declaration.
65059
65060         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
65061         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
65062         lib/xreadlink-with-size.c.
65063         (configure.ac): Remove gl_XREADLINK invocation.
65064         (Makefile.am): Augment lib_SOURCES.
65065         * m4/xreadlink.m4: Remove file.
65066         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
65067         (xreadlink_with_size): Renamed from xreadink.
65068         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
65069         * modules/canonicalize (Depends-on): Replace xreadlink with
65070         xreadlink-with-size.
65071         * lib/canonicalize.c (canonicalize_filename_mode): Update.
65072
65073 2007-02-25  Jim Meyering  <jim@meyering.net>
65074
65075         * build-aux/announce-gen: When complaining about excess arguments,
65076         list them.
65077
65078 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65079
65080         * README: Document signed integer overflow situation more
65081         accurately.
65082
65083 2007-02-25  Bruno Haible  <bruno@clisp.org>
65084
65085         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
65086         'a' or 'A' conversion.
65087
65088 2007-02-25  Bruno Haible  <bruno@clisp.org>
65089
65090         * modules/filename: Renamed from modules/pathname.
65091         (Files): Replace lib/pathname.h with lib/filename.h. Replace
65092         lib/concatpath.c with lib/concat-filename.c.
65093         (Makefile.am): Update.
65094         (Include): Replace pathname.h with filename.h.
65095         * lib/filename.h: Renamed from lib/pathname.h.
65096         (concatenated_filename): Renamed from concatenated_pathname.
65097         * lib/concat-filename.c: Renamed from lib/concatpath.c.
65098         (concatenated_filename): Renamed from concatenated_pathname.
65099         * lib/findprog.c: Include filename.h instead of pathname.h.
65100         (find_in_path): Update.
65101         * lib/javacomp.c: Include filename.h instead of pathname.h.
65102         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
65103         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
65104         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
65105         is_oldgcj_14_13_usable, is_javac_usable): Update.
65106         * lib/javaexec.c: Include filename.h instead of pathname.h.
65107         (execute_java_class): Update.
65108         * modules/findprog: Update.
65109         * modules/javacomp: Update.
65110         * modules/javaexec: Update.
65111         * MODULES.html.sh (File system functions): Add 'filename', remove
65112         'pathname'.
65113
65114 2007-02-25  Bruno Haible  <bruno@clisp.org>
65115
65116         * modules/printf-frexpl-tests: New file.
65117         * tests/test-printf-frexpl.c: New file.
65118
65119         * modules/printf-frexpl: New file.
65120         * lib/printf-frexpl.h: New file.
65121         * lib/printf-frexpl.c: New file.
65122         * m4/printf-frexpl.m4: New file.
65123
65124 2007-02-25  Bruno Haible  <bruno@clisp.org>
65125
65126         * modules/printf-frexp-tests: New file.
65127         * tests/test-printf-frexp.c: New file.
65128
65129         * modules/printf-frexp: New file.
65130         * lib/printf-frexp.h: New file.
65131         * lib/printf-frexp.c: New file.
65132         * m4/printf-frexp.m4: New file.
65133
65134 2007-02-25  Bruno Haible  <bruno@clisp.org>
65135
65136         Assume automake >= 1.10 for the tests.
65137         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
65138         * modules/arctwo-tests: Likewise.
65139         * modules/argp-tests: Likewise.
65140         * modules/avltree-list-tests: Likewise.
65141         * modules/avltree-oset-tests: Likewise.
65142         * modules/avltreehash-list-tests: Likewise.
65143         * modules/carray-list-tests: Likewise.
65144         * modules/crc-tests: Likewise.
65145         * modules/des-tests: Likewise.
65146         * modules/gc-arcfour-tests: Likewise.
65147         * modules/gc-arctwo-tests: Likewise.
65148         * modules/gc-des-tests: Likewise.
65149         * modules/gc-hmac-md5-tests: Likewise.
65150         * modules/gc-hmac-sha1-tests: Likewise.
65151         * modules/gc-md2-tests: Likewise.
65152         * modules/gc-md4-tests: Likewise.
65153         * modules/gc-md5-tests: Likewise.
65154         * modules/gc-pbkdf2-sha1-tests: Likewise.
65155         * modules/gc-rijndael-tests: Likewise.
65156         * modules/gc-sha1-tests: Likewise.
65157         * modules/gc-tests: Likewise.
65158         * modules/getaddrinfo-tests: Likewise.
65159         * modules/hmac-md5-tests: Likewise.
65160         * modules/hmac-sha1-tests: Likewise.
65161         * modules/linked-list-tests: Likewise.
65162         * modules/linkedhash-list-tests: Likewise.
65163         * modules/lock-tests: Likewise.
65164         * modules/md2-tests: Likewise.
65165         * modules/md4-tests: Likewise.
65166         * modules/md5-tests: Likewise.
65167         * modules/rbtree-list-tests: Likewise.
65168         * modules/rbtree-oset-tests: Likewise.
65169         * modules/rbtreehash-list-tests: Likewise.
65170         * modules/read-file-tests: Likewise.
65171         * modules/rijndael-tests: Likewise.
65172         * modules/stdint-tests: Likewise.
65173         * modules/tls-tests: Likewise.
65174
65175 2007-02-24  Bruno Haible  <bruno@clisp.org>
65176
65177         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
65178         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
65179         function; instead check whether isnan with a double argument links.
65180         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
65181         function; instead check whether isnan with a 'long double' argument
65182         links.
65183         Reported by Eric Blake <ebb9@byu.net>.
65184
65185 2007-02-24  Bruno Haible  <bruno@clisp.org>
65186
65187         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
65188         defined.
65189         * lib/isnanl.c: Remove all code. Just include isnan.c.
65190         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
65191
65192 2007-02-25  Jim Meyering  <jim@meyering.net>
65193
65194         Avoid conflicting types for 'unsetenv' on FreeBSD.
65195         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
65196         conflicting with FreeBSD's (5.0 and 6.1) function declaration
65197         in stdlib.h.
65198
65199 2007-02-24  Bruno Haible  <bruno@clisp.org>
65200
65201         * modules/isnanl-nolibm-tests: New file.
65202         * tests/test-isnanl.c: New file.
65203
65204         * modules/isnanl-nolibm: New file.
65205         * lib/isnanl.h: New file.
65206         * lib/isnanl.c: New file.
65207         * m4/isnanl.m4: New file.
65208
65209 2007-02-24  Bruno Haible  <bruno@clisp.org>
65210
65211         * modules/isnan-nolibm-tests: New file.
65212         * tests/test-isnan.c: New file.
65213
65214         * modules/isnan-nolibm: New file.
65215         * lib/isnan.h: New file.
65216         * lib/isnan.c: New file.
65217         * m4/isnan.m4: New file.
65218
65219 2007-02-24  Bruno Haible  <bruno@clisp.org>
65220
65221         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
65222         assume that an exponent fits in 20 bits.
65223
65224 2007-02-24  Jim Meyering  <jim@meyering.net>
65225
65226         * m4/regex.m4: Update the description of the configure-time option,
65227         --without-included-regex, to state accurately what the defaults are,
65228         and perhaps to give people an idea why using this option is risky.
65229
65230 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65231
65232         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
65233         loops on small arguments.  This attempts to avoid the problem
65234         Bruno Haible reported for AIX 4.3.2 in
65235         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
65236
65237 2007-02-23  Bruno Haible  <bruno@clisp.org>
65238
65239         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
65240         Needed for help2man.
65241
65242 2007-02-23  Karl Berry  <karl@gnu.org>
65243
65244         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
65245         exists, foo.h should be cvs-ignored, not committed.
65246
65247 2007-02-23  Eric Blake  <ebb9@byu.net>
65248
65249         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
65250         * lib/stat-time.h (includes): Likewise.
65251         * lib/utimecmp.c (includes): Likewise.
65252         * lib/utimens.h (includes): Likewise.
65253         * lib/getdate.y (includes): Also include "timespec.h" for use
65254         internal to the module.
65255         * modules/utimens (Depends-on): Revert yesterday's patch.
65256         * modules/nanosleep (Depends-on): Add missing dependency.
65257
65258 2007-02-22  Bruno Haible  <bruno@clisp.org>
65259
65260         * lib/glob.c: Don't include getlogin_r.h.
65261
65262 2007-02-22  Jim Meyering  <jim@meyering.net>
65263
65264         * modules/utimens (Depends-on): Add timespec, required for
65265         utimens.h's inclusion of timespec.h.
65266
65267 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
65268
65269         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
65270         long unreadable paths in GNU/Linux.  Problem reported by Andreas
65271         Schwab in
65272         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
65273         I'll try to think of a better way to fix the Solaris problem.
65274
65275         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
65276         like glibc; on Solaris 10, it fails with errno == EINVAL.
65277         POSIX says the behavior is unspecified if the first argument is NULL,
65278         so play it safe and never pass NULL to the system getcwd.
65279
65280 2007-02-21  Jim Meyering  <jim@meyering.net>
65281
65282         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
65283         of gettimeofday.  It would conflict with the one now always
65284         provided via sys_time_.h.  Reported by Matthew Woehlke, as
65285         an IRIX 6.5 build failure.
65286
65287 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65288
65289         Minor fixups to port to Solaris 10 with Sun C 5.8.
65290         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
65291         * modules/getcwd (Depends-on): Add dirfd.
65292         * lib/putenv.c (putenv): #undef it.
65293         (rpl_putenv): New decl.
65294         (malloc, free): Include <stdlib.h> rather than prototyping separately.
65295
65296 2007-02-20  Bruno Haible  <bruno@clisp.org>
65297
65298         * modules/stdio-tests: New file.
65299         * tests/test-stdio.c: New file.
65300
65301         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
65302         (Depends-on): Add stdio.
65303         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65304         (Include): Use <stdio.h> instead of vsnprintf.h.
65305         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65306         HAVE_DECL_VSNPRINTF.
65307         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
65308
65309         * modules/snprintf (Files): Remove lib/snprintf.h.
65310         (Depends-on): Add stdio.
65311         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65312         (Include): Use <stdio.h> instead of snprintf.h.
65313         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65314         HAVE_DECL_SNPRINTF.
65315         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
65316         * lib/getaddrinfo.c: Likewise.
65317
65318         * modules/stdio: New file.
65319         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
65320         * lib/snprintf.h: Remove file.
65321         * lib/vsnprintf.h: Remove file.
65322         * lib/.cppi-disable: Remove snprintf.h.
65323         * m4/stdio_h.m4: New file.
65324         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
65325
65326 2007-02-20  Jim Meyering  <jim@meyering.net>
65327
65328         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
65329         used by e.g., mingw.  From Bruno Haible.
65330
65331 2007-02-19  Bruno Haible  <bruno@clisp.org>
65332
65333         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
65334         warnings.
65335         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65336
65337 2007-02-19  Bruno Haible  <bruno@clisp.org>
65338
65339         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
65340         from mingw users.
65341
65342 2007-02-19  Bruno Haible  <bruno@clisp.org>
65343
65344         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
65345         warnings.
65346         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
65347
65348 2007-02-19  Jim Meyering  <jim@meyering.net>
65349
65350         Don't use FD after a successful "fdopendir (fd)".
65351         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
65352         Reset it by calling dirfd on the just-obtained DIR*.
65353
65354         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
65355         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
65356
65357 2007-02-18  Bruno Haible  <bruno@clisp.org>
65358
65359         * lib/readlink.c: Include <unistd.h>.
65360         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
65361         HAVE_READLINK.
65362         * modules/readlink (Depends-on): Add unistd.
65363         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65364         (Include): Add <unistd.h>.
65365
65366         * lib/getlogin_r.h: Remove file.
65367         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
65368         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
65369         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
65370         HAVE_DECL_GETLOGIN_R.
65371         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
65372         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65373         (Include): Use <unistd.h> instead of getlogin_r.h.
65374
65375         * lib/getcwd.h: Remove file.
65376         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
65377         * lib/xgetcwd.c: Likewise.
65378         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
65379         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
65380         * modules/getcwd (Files): Remove lib/getcwd.h.
65381         (Depends-on): Add unistd.
65382         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65383         (Include): Use <unistd.h> instad of getcwd.h.
65384
65385         * lib/ftruncate.c: Include <unistd.h> first.
65386         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
65387         Set HAVE_FTRUNCATE.
65388         * modules/ftruncate (Depends-on): Add unistd.
65389         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65390
65391         * lib/fchdir.c: Include <unistd.h> first.
65392         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
65393         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
65394         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
65395         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65396         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
65397
65398         * lib/dup2.c: Include <unistd.h> first.
65399         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
65400         HAVE_DUP2.
65401         * modules/dup2 (Depends-on): Add unistd.
65402         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65403
65404         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
65405         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
65406         REPLACE_CHOWN. Don't define chown as a macro here.
65407         * modules/chown (Depends-on): Add unistd.
65408         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65409
65410         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
65411         Add definition for GL_LINK_WARNING.
65412         (chown, dup2): New declarations.
65413         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
65414         link warning.
65415         (ftruncate): New declaration.
65416         (getcwd): New declaration, taken from old getcwd.h.
65417         (getlogin_r): New declaration, taken from old getlogin_r.h.
65418         (readlink): New declaration.
65419         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
65420         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
65421         (gl_PREREQ_UNISTD): Remove macro.
65422         (gl_UNISTD_MODULE_INDICATOR): New macro.
65423         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
65424         many new variables. Don't set UNISTD_H.
65425         * modules/unistd (Description): Change.
65426         (Depends-on): Add link-warning.
65427         (configure.ac): Update.
65428         (Makefile.am): Create unistd.h always. Substitute many new variables
65429         into it.
65430
65431 2007-02-18  Bruno Haible  <bruno@clisp.org>
65432
65433         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
65434         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
65435         HAVE_GETSUBOPT.
65436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
65437         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
65438         * lib/getsubopt.h: Remove file.
65439         * modules/getsubopt (Files): Remove lib/getsubopt.h.
65440         (Depends-on): Add stdlib.
65441         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65442         (Includes): Use <stdlib.h> instead of getsubopt.h.
65443         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
65444         Set HAVE_GETSUBOPT.
65445         * lib/getsubopt.c: Don't include getsubopt.h.
65446
65447 2007-02-18  Bruno Haible  <bruno@clisp.org>
65448
65449         * modules/fchdir (Depends-on): Add dup2.
65450
65451 2007-02-18  Bruno Haible  <bruno@clisp.org>
65452
65453         * lib/stdlib_.h: Handle glibc's special invocation convention
65454         specially.
65455
65456 2007-02-18  Bruno Haible  <bruno@clisp.org>
65457
65458         * modules/stdlib-tests: New file.
65459         * tests/test-stdlib.c: New file.
65460
65461         * modules/mkstemp (Files): Remove lib/mkstemp.h.
65462         (Depends-on): Add stdlib.
65463         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65464         (Includes): Use <stdlib.h> instead of mkstemp.h.
65465         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65466         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
65467         * lib/mkstemp.c: Don't include mkstemp.h.
65468         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
65469         * lib/stdlib--.h: Don't include mkstemp.h.
65470
65471         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
65472         (Depends-on): Add stdlib.
65473         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65474         (Includes): Use <stdlib.h> instead of mkdtemp.h.
65475         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65476         HAVE_MKDTEMP.
65477         * lib/mkdtemp.c: Don't include mkdtemp.h.
65478         * lib/clean-temp.c: Don't include mkdtemp.h.
65479
65480         * modules/exit (Files): Remove lib/exit.h.
65481         (Depends-on): Add stdlib.
65482         (Makefile.am): Remove lib_SOURCES.
65483         (Include): Use <stdlib.h> instead of exit.h.
65484         * lib/argmatch.c: Don't include exit.h.
65485         * lib/execute.c: Likewise.
65486         * lib/pagealign_alloc.c: Likewise.
65487         * lib/pipe.c: Likewise.
65488         * lib/wait-process.c: Likewise.
65489         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
65490         * lib/exitfail.c: Likewise.
65491         * lib/savewd.c: Likewise.
65492         * lib/xsetenv.c: Likewise.
65493
65494         * modules/stdlib: New file.
65495         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
65496         and extra comments about mkstemp().
65497         * lib/exit.h: Remove file.
65498         * lib/mkdtemp.h: Remove file.
65499         * lib/mkstemp.h: Remove file.
65500         * m4/stdlib_h.m4: New file.
65501         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
65502
65503 2007-02-18  Bruno Haible  <bruno@clisp.org>
65504
65505         * modules/math-tests: New file.
65506         * tests/test-math.c: New file.
65507
65508         * modules/math: New file.
65509         * modules/mathl (Files): Remove lib/mathl.h.
65510         (Depends-on): Add math.
65511         (Makefile.am): Don't mention mathl.h.
65512         (Include): Use <math.h> instead of mathl.h.
65513         * lib/math_.h: New file.
65514         * lib/mathl.h: Remove file.
65515         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
65516         mathl.h.
65517         * lib/asinl.c: Likewise.
65518         * lib/atanl.c: Likewise.
65519         * lib/ceill.c: Likewise.
65520         * lib/cosl.c: Likewise.
65521         * lib/expl.c: Likewise.
65522         * lib/floorl.c: Likewise.
65523         * lib/frexpl.c: Likewise.
65524         * lib/ldexpl.c: Likewise.
65525         * lib/logl.c: Likewise.
65526         * lib/sincosl.c: Likewise.
65527         * lib/sinl.c: Likewise.
65528         * lib/sqrtl.c: Likewise.
65529         * lib/tanl.c: Likewise.
65530         * lib/trigl.c: Likewise.
65531         * m4/math_h.m4: New file.
65532         * MODULES.html.sh (Mathematics): Add math.
65533
65534 2007-02-17  Bruno Haible  <bruno@clisp.org>
65535
65536         * modules/wctype-tests: New file.
65537         * tests/test-wctype.c: New file.
65538
65539         * modules/wchar-tests: New file.
65540         * tests/test-wchar.c: New file.
65541
65542         * modules/unistd-tests: New file.
65543         * tests/test-unistd.c: New file.
65544
65545         * modules/time-tests: New file.
65546         * tests/test-time.c: New file.
65547
65548         * modules/sysexits-tests: New file.
65549         * tests/test-sysexits.c: New file.
65550
65551         * modules/sys_time-tests: New file.
65552         * tests/test-sys_time.c: New file.
65553
65554         * modules/sys_stat-tests: New file.
65555         * tests/test-sys_stat.c: New file.
65556
65557         * modules/sys_socket-tests: New file.
65558         * tests/test-sys_socket.c: New file.
65559
65560         * modules/sys_select-tests: New file.
65561         * tests/test-sys_select.c: New file.
65562
65563         * modules/string-tests: New file.
65564         * tests/test-string.c: New file.
65565
65566         * modules/stdbool-tests: New file.
65567         * tests/test-stdbool.c: New file.
65568
65569         * modules/netinet_in-tests: New file.
65570         * tests/test-netinet_in.c: New file.
65571
65572         * modules/inttypes-tests: New file.
65573         * tests/test-inttypes.c: New file.
65574
65575         * modules/fcntl-tests: New file.
65576         * tests/test-fcntl.c: New file.
65577
65578         * modules/byteswap-tests: New file.
65579         * tests/test-byteswap.c: New file.
65580
65581         * modules/arpa_inet-tests: New file.
65582         * tests/test-arpa_inet.c: New file.
65583
65584 2007-02-17  Bruno Haible  <bruno@clisp.org>
65585
65586         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
65587         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
65588         if the corresponding module is not enabled. Emit link warnings if
65589         the function is used nevertheless.
65590         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
65591         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
65592         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
65593         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
65594         * modules/inttypes (Depends-on): Add link-warning.
65595         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65596         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
65597         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
65598         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
65599         * modules/imaxdiv (configure.ac): Likewise.
65600         * modules/strtoimax (configure.ac): Likewise.
65601         * modules/strtoumax (configure.ac): Likewise.
65602
65603 2007-02-17  Bruno Haible  <bruno@clisp.org>
65604
65605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
65606         gl_STRING_MODULE_INDICATOR_DEFAULTS.
65607         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
65608         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
65609
65610 2007-02-17  Bruno Haible  <bruno@clisp.org>
65611
65612         * modules/link-warning: New file.
65613         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
65614         * lib/string_.h (GL_LINK_WARNING): Remove definition.
65615         * modules/string (Depends-on): Add link-warning.
65616         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65617         string.h.
65618         * MODULES.html.sh (Support for building libraries and executables): Add
65619         link-warning.
65620
65621 2007-02-17  Bruno Haible  <bruno@clisp.org>
65622
65623         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
65624         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
65625         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
65626         long lines.
65627
65628 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
65629             Bruno Haible  <bruno@clisp.org>
65630
65631         * modules/tmpfile: New file.
65632         * lib/tmpfile.c: New file.
65633         * m4/tmpfile.m4: New file.
65634         * MODULES.html.sh (func_all_modules): New section "Input/output".
65635
65636 2007-02-15  Bruno Haible  <bruno@clisp.org>
65637
65638         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
65639         (supports_delete_on_close): New function.
65640         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
65641
65642 2007-02-14  Bruno Haible  <bruno@clisp.org>
65643
65644         * modules/mbspcasecmp-tests: New file.
65645         * tests/test-mbspcasecmp.sh: New file.
65646         * tests/test-mbspcasecmp.c: New file.
65647
65648         New module mbspcasecmp.
65649         * modules/mbspcasecmp: New file.
65650         * lib/mbspcasecmp.c: New file.
65651         * lib/string_.h (strncasecmp): Change warning message.
65652         (mbspcasecmp): New declaration.
65653         * m4/mbspcasecmp.m4: New file.
65654         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65655         GNULIB_MBSPCASECMP.
65656         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
65657         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
65658
65659 2007-02-14  Bruno Haible  <bruno@clisp.org>
65660
65661         * modules/mbsncasecmp-tests: New file.
65662         * tests/test-mbsncasecmp.sh: New file.
65663         * tests/test-mbsncasecmp.c: New file.
65664
65665         New module mbsncasecmp.
65666         * modules/mbsncasecmp: New file.
65667         * lib/mbsncasecmp.c: New file.
65668         * lib/string_.h (mbsncasecmp): New declaration.
65669         * m4/mbsncasecmp.m4: New file.
65670         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65671         GNULIB_MBSNCASECMP.
65672         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
65673         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
65674
65675 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65676
65677         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
65678         Verify that it doesn't overlap with our flags.
65679         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
65680         do not have the desired effect in multibyte locales; instead, use
65681         mbscasecmp.
65682         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
65683         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
65684         we don't require GNU fnmatch ourselves (if our users require it, they
65685         should do so explicitly).
65686
65687         Fix regex code so it doesn't rely on strcasecmp.
65688         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
65689         Otherwise, include gnulib's langinfo.h.
65690         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
65691         undesirable behavior in non-C locales.  Instead, rely on localecharset.
65692         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
65693         * modules/regex (FILES): Remove m4/codeset.m4.
65694         (Depends-on): Add localcharset.  Remove strcase.
65695
65696 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65697
65698         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
65699         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
65700
65701 2007-02-13  Bruno Haible  <bruno@clisp.org>
65702
65703         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
65704         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65705
65706 2007-02-12  Bruno Haible  <bruno@clisp.org>
65707
65708         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65709         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
65710         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
65711         time warning rather than a link error.
65712
65713 2007-02-12  Bruno Haible  <bruno@clisp.org>
65714
65715         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
65716         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65717         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65718
65719 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65720
65721         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
65722         args, not 2.
65723
65724 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65725
65726         New module 'time', so that apps can include <time.h> as per
65727         POSIX and GNU instead of separate include files like time_r.h
65728         and timegm.h.  This implementation tries out a simpler approach
65729         for replacing decls in standard include files (as compared to
65730         the string module), somewhat as an experiment.
65731
65732         * config/srclist.txt: Comment out mktime.c for now.
65733         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
65734         since it doesn't apply any more.  Use generic wording instead.
65735         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
65736         'time'.
65737         * lib/time_.h, m4/time_h.m4, modules/time: New files.
65738         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
65739         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
65740         Don't include <sys/types.h>; no longer needed since we assume C89.
65741         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
65742         * lib/strftime.c: Likewise.
65743         * lib/time_r.c: Likewise.
65744         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
65745         * lib/nanosleep.c: Include <time.h> first, to check interface.
65746         * lib/strptime.c: Likewise.
65747         * lib/time_r.c: Likewise.
65748         * lib/timegm.c: Likewise.
65749         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
65750         needed.
65751         * lib/timegm.c: Don't include timegm.h; no longer needed.
65752         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
65753         time.h now handles any problems in that area.
65754         (struct timespec, nanosleep): Remove; time.h now arranges for these.
65755         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
65756         that time.h defines struct timespec.
65757         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
65758         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
65759         handles that.
65760         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
65761         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
65762         needed.  Set REPLACE_LOCALTIME.
65763         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
65764         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
65765         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
65766         nanosleep; time_h.m4 now does that.  Don't require
65767         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
65768         module handles this now.
65769         * modules/getdate (Depends-on): Remove timespec.  Add time.
65770         * modules/nanosleep (Depends-on): Likewise.
65771         * modules/stat-time (Depends-on): Likewise.
65772         * modules/nanosleep (Include): Include time.h, not timespec.h.
65773         * modules/strptime (Files): Remove lib/strptime.h.
65774         (Depends-on): Add extensions, time.
65775         (Include): Include time.h, not strptime.h.
65776         * modules/time_r (Files): Remove lib/time_r.h.
65777         (Depends-on): Add time.
65778         (Include): Include time.h, not time_r.h.
65779         * modules/timegm: Likewise.
65780         * modules/timespec (Description): Now does timespec-related decls
65781         of our own, instead of struct timespec itself.
65782         (Depends-on): Add time; remove extensions.
65783         (Maintainer): Add self.
65784         * modules/utimecmp (Depends-on): Add time; remove timespec.
65785         * modules/utimens (Depends-on): Likewise.
65786         * modules/xnanosleep (Depends-on): Likewise.
65787
65788 2007-02-11  Bruno Haible  <bruno@clisp.org>
65789
65790         * lib/c-strstr.c: Include allocsa.h.
65791         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65792         * lib/c-strcasestr.c: Include allocsa.h.
65793         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65794         * lib/strcasestr.c: Include allocsa.h.
65795         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65796         * lib/mbsstr.c: Include allocsa.h.
65797         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65798         allocsa/freesa instead of malloc/free.
65799         * lib/mbscasestr.c: Include allocsa.h.
65800         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65801         allocsa/freesa instead of malloc/free.
65802         * modules/c-strstr (Depends-on): Add allocsa.
65803         * modules/c-strcasestr (Depends-on): Likewise.
65804         * modules/strcasestr (Depends-on): Likewise.
65805         * modules/mbsstr (Depends-on): Likewise.
65806         * modules/mbscasestr (Depends-on): Likewise.
65807
65808 2007-02-11  Bruno Haible  <bruno@clisp.org>
65809
65810         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
65811
65812         * modules/mbsspn-tests: New file.
65813         * tests/test-mbsspn.sh: New file.
65814         * tests/test-mbsspn.c: New file.
65815
65816 2007-02-11  Bruno Haible  <bruno@clisp.org>
65817
65818         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
65819
65820         * modules/mbspbrk-tests: New file.
65821         * tests/test-mbspbrk.sh: New file.
65822         * tests/test-mbspbrk.c: New file.
65823
65824 2007-02-11  Bruno Haible  <bruno@clisp.org>
65825
65826         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
65827         unneeded cast.
65828
65829         * modules/mbscspn-tests: New file.
65830         * tests/test-mbscspn.sh: New file.
65831         * tests/test-mbscspn.c: New file.
65832
65833 2007-02-11  Bruno Haible  <bruno@clisp.org>
65834
65835         * modules/mbscasecmp-tests: New file.
65836         * tests/test-mbscasecmp.sh: New file.
65837         * tests/test-mbscasecmp.c: New file.
65838
65839 2007-02-11  Bruno Haible  <bruno@clisp.org>
65840
65841         Ensure O(n) worst-case complexity of mbscasestr.
65842         * lib/mbscasestr.c: Include stdbool.h.
65843         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65844         functions.
65845         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
65846         the bookkeeping indicates that it's worth it.
65847         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
65848
65849         * modules/mbscasestr-tests: New file.
65850         * tests/test-mbscasestr1.c: New file.
65851         * tests/test-mbscasestr2.sh: New file.
65852         * tests/test-mbscasestr2.c: New file.
65853         * tests/test-mbscasestr3.sh: New file.
65854         * tests/test-mbscasestr3.c: New file.
65855         * tests/test-mbscasestr4.sh: New file.
65856         * tests/test-mbscasestr4.c: New file.
65857         * m4/locale-tr.m4: New file.
65858
65859 2007-02-11  Bruno Haible  <bruno@clisp.org>
65860
65861         Ensure O(n) worst-case complexity of mbsstr.
65862         * lib/mbsstr.c: Include stdbool.h.
65863         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65864         functions.
65865         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
65866         bookkeeping indicates that it's worth it.
65867         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
65868
65869         * modules/mbsstr-tests: New file.
65870         * tests/test-mbsstr1.c: New file.
65871         * tests/test-mbsstr2.sh: New file.
65872         * tests/test-mbsstr2.c: New file.
65873         * tests/test-mbsstr3.sh: New file.
65874         * tests/test-mbsstr3.c: New file.
65875         * m4/locale-fr.m4: New file.
65876
65877 2007-02-11  Bruno Haible  <bruno@clisp.org>
65878
65879         * lib/mbsrchr.c (mbsrchr): Fix bug.
65880
65881         * modules/mbsrchr-tests: New file.
65882         * tests/test-mbsrchr.sh: New file.
65883         * tests/test-mbsrchr.c: New file.
65884
65885 2007-02-11  Bruno Haible  <bruno@clisp.org>
65886
65887         * lib/mbschr.c (mbschr): Fix bug.
65888
65889         * modules/mbschr-tests: New file.
65890         * tests/test-mbschr.sh: New file.
65891         * tests/test-mbschr.c: New file.
65892         * m4/locale-zh.m4: New file.
65893
65894 2007-02-11  Bruno Haible  <bruno@clisp.org>
65895
65896         Support for copying multibyte string iterators.
65897         * lib/mbiter.h: Include <string.h>.
65898         (mbiter_multi_copy): New function.
65899         (mbi_copy): New macro.
65900         * lib/mbuiter.h: Include <string.h>.
65901         (mbuiter_multi_copy): New function.
65902         (mbui_copy): New macro.
65903
65904 2007-02-11  Bruno Haible  <bruno@clisp.org>
65905
65906         New module mbslen.
65907         * modules/mbslen: New file.
65908         * lib/mbslen.c: New file.
65909         * lib/string_.h (mbslen): New declaration.
65910         * m4/mbslen.m4: New file.
65911         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65912         GNULIB_MBSLEN.
65913         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
65914         * MODULES.html.sh (Internationalization functions): Add mbslen.
65915
65916 2007-02-11  Bruno Haible  <bruno@clisp.org>
65917
65918         Ensure O(n) worst-case complexity of strcasestr substitute.
65919         * lib/strcasestr.c: Include stdbool.h.
65920         (knuth_morris_pratt): New function.
65921         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65922         bookkeeping indicates that it's worth it.
65923         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
65924
65925         * modules/strcasestr-tests: New file.
65926         * tests/test-strcasestr.c: New file.
65927
65928 2007-02-11  Bruno Haible  <bruno@clisp.org>
65929
65930         Ensure O(n) worst-case complexity of c_strcasestr.
65931         * lib/c-strcasestr.c: Include stdbool.h, string.h.
65932         (knuth_morris_pratt): New function.
65933         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
65934         the bookkeeping indicates that it's worth it.
65935         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
65936
65937         * modules/c-strcasestr-tests: New file.
65938         * tests/test-c-strcasestr.c: New file.
65939
65940 2007-02-11  Bruno Haible  <bruno@clisp.org>
65941
65942         Ensure O(n) worst-case complexity of c_strstr.
65943         * lib/c-strstr.c: Include stdbool.h, string.h.
65944         (knuth_morris_pratt): New function.
65945         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65946         bookkeeping indicates that it's worth it.
65947         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
65948
65949         * lib/c-strstr.c: Complete rewrite for maintainability.
65950
65951         * modules/c-strstr-tests: New file.
65952         * tests/test-c-strstr.c: New file.
65953
65954 2007-02-11  Bruno Haible  <bruno@clisp.org>
65955
65956         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
65957         5.2.1 and earlier, whereby \055 was treated just like the range
65958         delimiter '-'.
65959         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65960
65961 2007-02-08  Bruno Haible  <bruno@clisp.org>
65962
65963         * modules/regex (Depends-on): Add stdbool.
65964         Reported by Dalibor Topic <robilad@kaffe.org>.
65965
65966 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65967
65968         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
65969         Prefer returning from main to exiting from it.
65970         Remove unnecessary parens after sizeof.
65971
65972 2007-02-05  Bruno Haible  <bruno@clisp.org>
65973
65974         New module mbssep.
65975         * modules/mbssep: New file.
65976         * lib/mbssep.c: New file.
65977         * lib/string_.h (strsep): Add a conditional link warning.
65978         (mbssep): New declaration.
65979         * m4/mbssep.m4: New file.
65980         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65981         GNULIB_MBSSEP.
65982         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
65983         * MODULES.html.sh (Internationalization functions): Add mbssep.
65984
65985 2007-02-05  Bruno Haible  <bruno@clisp.org>
65986
65987         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
65988         Optimize search in case of 1 delimiter.
65989
65990 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65991
65992         * lib/acl.h: Include sys/types.h before sys/acl.h.
65993
65994 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65995
65996         Merge upstream fix for glibc bugzilla #3957:
65997
65998         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
65999
66000         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
66001         bit for RE_HAT_LISTS_NOT_NEWLINE.
66002         (build_charclass_op): Remove bogus comment.
66003
66004 2007-02-05  Simon Josefsson  <simon@josefsson.org>
66005
66006         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
66007
66008 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66009
66010         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
66011         * lib/memmem.c [!defined _LIBC]: Include config.h.
66012
66013 2007-02-04  Bruno Haible  <bruno@clisp.org>
66014
66015         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
66016         warning message.
66017
66018 2007-02-04  Bruno Haible  <bruno@clisp.org>
66019
66020         New module mbstok_r.
66021         * modules/mbstok_r: New file.
66022         * lib/mbstok_r.c: New file.
66023         * lib/string_.h (strtok_r): Change argument names to match the
66024         comments. Add a conditional link warning.
66025         (mbstok_r): New declaration.
66026         * m4/mbstok_r.m4: New file.
66027         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66028         GNULIB_MBSTOK_R.
66029         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
66030         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
66031
66032 2007-02-04  Bruno Haible  <bruno@clisp.org>
66033
66034         New module mbsspn.
66035         * modules/mbsspn: New file.
66036         * lib/mbsspn.c: New file.
66037         * lib/string_.h (strspn): Add a conditional link warning.
66038         (mbsspn): New declaration.
66039         * m4/mbsspn.m4: New file.
66040         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66041         GNULIB_MBSSPN.
66042         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
66043         * MODULES.html.sh (Internationalization functions): Add mbsspn.
66044
66045 2007-02-04  Bruno Haible  <bruno@clisp.org>
66046
66047         New module mbspbrk.
66048         * modules/mbspbrk: New file.
66049         * lib/mbspbrk.c: New file.
66050         * lib/string_.h (strpbrk): Add a conditional link warning.
66051         (mbspbrk): New declaration.
66052         * m4/mbspbrk.m4: New file.
66053         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66054         GNULIB_MBSPBRK.
66055         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
66056         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
66057
66058 2007-02-04  Bruno Haible  <bruno@clisp.org>
66059
66060         New module mbscspn.
66061         * modules/mbscspn: New file.
66062         * lib/mbscspn.c: New file.
66063         * lib/string_.h (strcspn): Add a conditional link warning.
66064         (mbscspn): New declaration.
66065         * m4/mbscspn.m4: New file.
66066         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66067         GNULIB_MBSCSPN.
66068         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
66069         * MODULES.html.sh (Internationalization functions): Add mbscspn.
66070
66071 2007-02-04  Bruno Haible  <bruno@clisp.org>
66072
66073         New module mbscasestr, reduced goal of strcasestr.
66074         * modules/mbscasestr: New file.
66075         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
66076         (mbscasestr): Renamed from strcasestr.
66077         * lib/strcasestr.c: Don't include mbuiter.h.
66078         (strcasestr): Remove support for multibyte locales.
66079         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
66080         Change the conditional link warning.
66081         (mbscasestr): New declaration.
66082         * m4/mbscasestr.m4: New file.
66083         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
66084         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
66085         REPLACE_STRCASESTR.
66086         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
66087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66088         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66089         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
66090         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
66091         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66092         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
66093         (Depends-on): Remove mbuiter.
66094         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
66095
66096 2007-02-04  Bruno Haible  <bruno@clisp.org>
66097
66098         Simplify handling of strncasecmp.
66099         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
66100         the conditional link warning.
66101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66102         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
66103         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
66104         * modules/strcase (configure.ac): Don't invoke
66105         gl_STRING_MODULE_INDICATOR.
66106         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
66107
66108 2007-02-04  Bruno Haible  <bruno@clisp.org>
66109
66110         New module mbscasecmp, reduced goal of strcasecmp.
66111         * modules/mbscasecmp: New file.
66112         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
66113         (mbscasecmp): Renamed from strcasecmp.
66114         * lib/strcasecmp.c: Don't include mbuiter.h.
66115         (strcasecmp): Remove support for multibyte locales.
66116         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
66117         Change the conditional link warning.
66118         (mbscasecmp): New declaration.
66119         * m4/mbscasecmp.m4: New file.
66120         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
66121         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
66122         REPLACE_STRCASECMP.
66123         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
66124         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66125         GNULIB_MBSCASECMP.
66126         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
66127         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
66128         * modules/strcase (Files): Remove m4/mbrtowc.m4.
66129         (Depends-on): Remove mbuiter.
66130         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
66131
66132 2007-02-04  Bruno Haible  <bruno@clisp.org>
66133
66134         New module mbsstr. Remove module strstr.
66135         * modules/mbsstr: New file.
66136         * modules/strstr: Remove file.
66137         * lib/mbsstr.c: Renamed from lib/strstr.c.
66138         (mbsstr): Renamed from strstr.
66139         * lib/string_.h (strstr): Remove declaration. Change the conditional
66140         link warning.
66141         (mbsstr): New declaration.
66142         * m4/mbsstr.m4: New file.
66143         * m4/strstr.m4: Remove file.
66144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66145         REPLACE_STRSTR.
66146         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
66147         Don't initialize GNULIB_STRSTR.
66148         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
66149         substitute GNULIB_STRSTR and REPLACE_STRSTR.
66150         * MODULES.html.sh (Internationalization functions): Add mbsstr.
66151         (Support for systems lacking ANSI C 89): Remove strstr.
66152
66153 2007-02-04  Bruno Haible  <bruno@clisp.org>
66154
66155         New module mbsrchr.
66156         * modules/mbsrchr: New file.
66157         * lib/mbsrchr.c: New file.
66158         * lib/string_.h (strrchr): Add a conditional link warning.
66159         (mbsrchr): New declaration.
66160         * m4/mbsrchr.m4: New file.
66161         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66162         GNULIB_MBSRCHR.
66163         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
66164         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
66165
66166 2007-02-04  Bruno Haible  <bruno@clisp.org>
66167
66168         New module mbschr.
66169         * modules/mbschr: New file.
66170         * lib/mbschr.c: New file.
66171         * lib/string_.h (strchr): Add a conditional link warning.
66172         (mbschr): New declaration.
66173         * m4/mbschr.m4: New file.
66174         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66175         GNULIB_MBSCHR.
66176         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
66177         * MODULES.html.sh (Internationalization functions): Add mbschr.
66178
66179 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66180
66181         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
66182
66183         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
66184
66185 2007-02-04  Bruno Haible  <bruno@clisp.org>
66186
66187         New module description section 'configure.ac-early'.
66188         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
66189         (func_get_autoconf_early_snippet): New function.
66190         (func_import, func_create_testdir): Use it. Remove special cases for
66191         modules 'extensions' and 'lock'.
66192         * modules/extensions (configure.ac-early): Require
66193         gl_USE_SYSTEM_EXTENSIONS.
66194         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
66195
66196 2007-02-04  Bruno Haible  <bruno@clisp.org>
66197
66198         Make use of gcj-4.3's -fsource and -ftarget option.
66199         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
66200         and if so try the options -fsource and -ftarget.
66201         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
66202         source_version, ftarget_option, target_version arguments.
66203         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
66204         (is_envjavac_oldgcj_14_14_usable): Renamed from
66205         is_envjavac_gcj_14_14_usable.
66206         (is_envjavac_oldgcj_14_13_usable): Renamed from
66207         is_envjavac_gcj_14_13_usable.
66208         (is_gcj_present): Update.
66209         (is_gcj_43, is_gcj43_usable): New functions.
66210         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
66211         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
66212         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
66213         try the options -fsource and -ftarget.
66214
66215 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66216
66217         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
66218         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
66219         larger value.
66220
66221 2007-02-03  Jim Meyering  <jim@meyering.net>
66222
66223         Give tools a better chance to allocate space for very large buffers.
66224         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
66225
66226         Make pwd and readlink work also when run with an unreadable parent dir
66227         on systems with openat support.
66228         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
66229         provided getcwd function, even when we have openat support.
66230         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
66231
66232 2007-02-02  Bruno Haible  <bruno@clisp.org>
66233
66234         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66235         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
66236         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
66237         portability problems if one of these functions is only used on specific
66238         platforms.
66239         Reported by Paul Eggert.
66240
66241 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
66242
66243         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
66244         is causing more trouble than it's curing.
66245         * lib/regex_internal.h (__mempcpy): Remove.
66246         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
66247         (and make the code a tad smaller to boot).
66248         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
66249
66250 2007-02-02  Jim Meyering  <jim@meyering.net>
66251
66252         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
66253         section, not in the Makefile.am: one.
66254
66255 2007-02-02  Eric Blake  <ebb9@byu.net>
66256
66257         * lib/strchrnul.c: Always include config.h first.
66258
66259         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
66260         gnulib strstr is not necessary here.
66261
66262 2007-02-02  Simon Josefsson  <simon@josefsson.org>
66263
66264         * m4/socklen.m4: Fix typo.
66265
66266 2007-02-02  Eric Blake  <ebb9@byu.net>
66267
66268         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
66269         * modules/netinet_in (Makefile.am): Likewise.
66270
66271 2007-02-01  Bruno Haible  <bruno@clisp.org>
66272
66273         * lib/string_.h (GL_LINK_WARNING): New macro.
66274         (strcasecmp, strstr, strcasestr): If provided by the system,
66275         conditionally define as a macro that leads to a warning instead of to
66276         an error.
66277         (strncasecmp): Conditionally define as a macro that leads to a warning.
66278
66279 2007-02-01  Karl Berry  <karl@gnu.org>
66280
66281         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
66282
66283 2007-02-01  Bruno Haible  <bruno@clisp.org>
66284
66285         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
66286         renamings.
66287
66288 2007-02-01  Eric Blake  <ebb9@byu.net>
66289
66290         * modules/regex (Depends-on): Revert dependence on mempcpy.
66291         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
66292         module's definition of mempcpy.
66293         Reported by Paul Eggert.
66294
66295 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66296
66297         * lib/string_.h: If the gnulib module XYZ is not present, undefine
66298         the symbol XYZ before redefining it.  This fixes a problem with
66299         programs that don't use XYZ, when compiled on systems that define
66300         XYZ to something else.
66301
66302 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
66303
66304         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
66305         occurs when "mkdir -m foo" creates a setgid directory that is (1)
66306         writeable to group or other and (2) is intended to have a special
66307         mode bit that is set or cleared.  In such a case, the directory
66308         should be neither group- nor other-writeable until the special
66309         mode bits are right.
66310
66311 2007-01-31  Eric Blake  <ebb9@byu.net>
66312
66313         * modules/mountlist (Depends-on): Add strstr.
66314
66315         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
66316         bug.
66317         * modules/string (Makefile.am): Remove redundant replacement.
66318         * modules/regex (Depends-on): Add mempcpy.
66319
66320 2007-01-31  Bruno Haible  <bruno@clisp.org>
66321
66322         New module description field 'Link'.
66323         * gnulib-tool (func_usage): Document --extract-link-directive.
66324         (sed_extract_prog): Recognize 'Link' directive.
66325         (func_get_link_directive): New function.
66326         (func_import): Show summary of link directives.
66327         Handle --extract-link-directive option.
66328         * modules/acl (Link): New section.
66329         * modules/clock-time (Link): New section.
66330         * modules/euidaccess (Link): New section.
66331         * modules/gettext (Link): New section.
66332         * modules/iconv (Link): New section.
66333         * modules/lock (Link): New section.
66334         * modules/nanosleep (Link): New section.
66335         * modules/readline (Link): New section.
66336
66337 2007-01-27  Bruno Haible  <bruno@clisp.org>
66338
66339         Enforce the use of gnulib modules for unportable <string.h> functions.
66340         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
66341         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
66342         (gl_HEADER_STRING_H_BODY): Require it.
66343         * lib/string_.h: If the gnulib module XYZ is not present, redefine
66344         the symbol XYZ to one that gives a link error.
66345         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
66346         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
66347         * modules/mempcpy (configure.ac): Likewise.
66348         * modules/memrchr (configure.ac): Likewise.
66349         * modules/stpcpy (configure.ac): Likewise.
66350         * modules/stpncpy (configure.ac): Likewise.
66351         * modules/strcase (configure.ac): Likewise.
66352         * modules/strcasestr (configure.ac): Likewise.
66353         * modules/strchrnul (configure.ac): Likewise.
66354         * modules/strdup (configure.ac): Likewise.
66355         * modules/strndup (configure.ac): Likewise.
66356         * modules/strnlen (configure.ac): Likewise.
66357         * modules/strpbrk (configure.ac): Likewise.
66358         * modules/strsep (configure.ac): Likewise.
66359         * modules/strstr (configure.ac): Likewise.
66360         * modules/strtok_r (configure.ac): Likewise.
66361
66362 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
66363
66364         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
66365
66366 2007-01-30  Jim Meyering  <jim@meyering.net>
66367
66368         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
66369
66370 2007-01-29  Bruno Haible  <bruno@clisp.org>
66371
66372         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
66373         * lib/execute.c: Likewise.
66374         * lib/pipe.c: Likewise.
66375         * lib/printf-args.h: Likewise.
66376         * lib/printf-args.c: Likewise.
66377         * lib/printf-parse.c: Likewise.
66378         * lib/vasnprintf.c: Likewise.
66379
66380 2007-01-29  Eric Blake  <ebb9@byu.net>
66381
66382         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
66383         declaration.
66384
66385 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
66386
66387         * lib/strptime.h (strptime): Use 'restrict' for args where
66388         POSIX requires this.
66389         * lib/strptime.c (strptime): Likewise.
66390         Change license notice from LGPL to GPL, since gnulib-tool will
66391         change this as needed.
66392         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
66393         defined.
66394         Include "strptime.h" first, to check interface.
66395         Do not #undef _LIBC and _NL_CURRENT.
66396         Do not include <stdlib.h>; no longer needed.
66397         Include "time_r.h" and declare ptime_locale_status
66398         only if _LIBC is not defined.
66399         (__P): Remove unused macro.
66400         (match_string): Bring back glibc version, but use it only if _LIBC
66401         is defined.
66402         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
66403         Remove unnecessary assertion and abort() call.
66404         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
66405         * m4/strptime.m4: Fix serial number comment.
66406         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
66407         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
66408         (Depends-on): Add time_r.
66409
66410 2007-01-29  Bruno Haible  <bruno@clisp.org>
66411
66412         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66413         strptime.
66414         * modules/strptime (Depends-on): Add stdbool.
66415         * lib/strptime.h: Include <time.h> always. Add comments.
66416
66417 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66418
66419         * modules/strptime: New file.
66420         * lib/strptime.h: New file.
66421         * lib/strptime.c: New file.
66422         * m4/strptime.m4: New file.
66423
66424 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66425
66426         * MODULES.html.sh: New module mpsort.
66427         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
66428
66429         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
66430         a circularity problem with HP-UX ia64 reported by Bob Proulx in
66431         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
66432         All uses changed.
66433         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
66434         All uses changed.
66435         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
66436         to _Restrict_.
66437         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
66438         the parameter matches the prototype.
66439
66440 2007-01-28  Jim Meyering  <jim@meyering.net>
66441
66442         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
66443         sys/time.h here, reverting that part of the previous patch:
66444         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
66445
66446 2007-01-28  Bruno Haible  <bruno@clisp.org>
66447
66448         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
66449         value of $(SYS_TIME_H).
66450         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
66451         remove it conditionally, too. [added by Jim Meyering]
66452         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
66453         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66454         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
66455         GETTIMEOFDAY_REPLACEMENT to 1.
66456
66457 2007-01-28  Bruno Haible  <bruno@clisp.org>
66458
66459         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
66460         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
66461         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
66462         Set UNISTD_H instead of UNISTD_H2.
66463         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
66464
66465 2007-01-28  Bruno Haible  <bruno@clisp.org>
66466
66467         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
66468         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
66469
66470 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66471
66472         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
66473         (func_create_testdir): Ensure C locale for `grep' and `tr'
66474         character ranges.
66475         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
66476         ACLOCAL_AMFLAGS parsing state machine.
66477
66478 2007-01-27  Bruno Haible  <bruno@clisp.org>
66479
66480         * modules/unistr/base: Update.
66481
66482 2007-01-27  Bruno Haible  <bruno@clisp.org>
66483
66484         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
66485         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
66486         * modules/unistr/u32-mbtouc-unsafe: Renamed from
66487         modules/unistr/u32-mbtouc.
66488         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
66489         * lib/unistr.h: Update.
66490         * lib/linebreak.c: Update.
66491         * modules/unistr/u32-mbtouc: Renamed from
66492         modules/unistr/u32-mbtouc-safe.
66493         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
66494         * lib/unistr.h: Update.
66495         * lib/unistr/u32-to-u8.c: Update.
66496         * lib/unistr/u32-to-u16.c: Update.
66497
66498 2007-01-27  Bruno Haible  <bruno@clisp.org>
66499
66500         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
66501         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
66502         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
66503         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
66504         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
66505         * modules/unistr/u16-mbtouc-unsafe: Renamed from
66506         modules/unistr/u16-mbtouc.
66507         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
66508         * lib/unistr.h: Update.
66509         * lib/linebreak.c: Update.
66510         * modules/linebreak: Update.
66511         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
66512         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
66513         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
66514         * modules/unistr/u16-mbtouc: Renamed from
66515         modules/unistr/u16-mbtouc-safe.
66516         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
66517         * lib/unistr.h: Update.
66518         * lib/unistr/u16-to-u8.c: Update.
66519         * modules/unistr/u16-to-u8: Update.
66520         * lib/unistr/u16-to-u32.c: Update.
66521         * modules/unistr/u16-to-u32: Update.
66522
66523 2007-01-27  Bruno Haible  <bruno@clisp.org>
66524
66525         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
66526         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
66527         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
66528         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
66529         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
66530         * modules/unistr/u8-mbtouc-unsafe: Renamed from
66531         modules/unistr/u8-mbtouc.
66532         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
66533         * lib/unistr.h: Update.
66534         * lib/striconveh.c: Update.
66535         * modules/striconveh: Update.
66536         * lib/linebreak.c: Update.
66537         * modules/linebreak: Update.
66538         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
66539         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
66540         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
66541         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
66542         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
66543         * lib/unistr.h: Update.
66544         * lib/striconveh.c: Update.
66545         * modules/striconveh: Update.
66546         * lib/unistr/u8-to-u16.c: Update.
66547         * modules/unistr/u8-to-u16: Update.
66548         * lib/unistr/u8-to-u32.c: Update.
66549         * modules/unistr/u8-to-u32: Update.
66550
66551 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66552
66553         Sync from Libtool.
66554         * lib/argz.c: Do not include strings.h nor memory.h, include
66555         string.h unconditionally.  Patch by Simon Josefsson.
66556
66557 2007-01-27  Bruno Haible  <bruno@clisp.org>
66558
66559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
66560         from gl_HEADER_STRING_H_BODY.
66561         (gl_HEADER_STRING_H_BODY): Require it.
66562         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
66563         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66564         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66565         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66566         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66567         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
66568         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66569         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66570         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
66571         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66572         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66573         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
66574         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66575         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
66576         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66577
66578 2007-01-27  Bruno Haible  <bruno@clisp.org>
66579
66580         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
66581         check_PROGRAMS into noinst_PROGRAMS.
66582         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
66583         check_PROGRAMS in this case.
66584         (func_import): Set for_test to false.
66585         (func_create_testdir): Set for_test to true.
66586
66587 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66588             Bruno Haible  <bruno@clisp.org>
66589
66590         * modules/strcasestr (Files): Remove lib/strcasestr.h.
66591         (Depends-on): Add string.
66592         (Includes): Use <string.h> instead of strcasestr.h.
66593         * modules/string (Makefile.am): Also substitute the value of
66594         REPLACE_STRCASESTR.
66595         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
66596         assume strcasestr is declared in <string.h> not <strings.h>. Also
66597         set REPLACE_STRCASESTR.
66598         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
66599         REPLACE_STRCASESTR.
66600         * lib/strcasestr.h: Remove file.
66601         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
66602         * lib/string_.h (strcasestr): New declaration.
66603
66604 2007-01-27  Bruno Haible  <bruno@clisp.org>
66605
66606         * lib/string_.h: Use 'extern'.
66607
66608 2007-01-27  Jim Meyering  <jim@meyering.net>
66609
66610         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
66611         of set-but-not-used local, "q".
66612
66613         * lib/mempcpy.c: Include <config.h> before <string.h>.
66614         This fixes a compilation error on HP-UX, due to the system's
66615         "restrict"-using mempcpy prototype.
66616
66617 2007-01-26  Bruno Haible  <bruno@clisp.org>
66618
66619         Small optimization.
66620         * lib/javacomp.c: Include c-strstr.h.
66621          (is_envjavac_gcj): Use c_strstr instead of strstr.
66622         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
66623
66624 2007-01-26  Bruno Haible  <bruno@clisp.org>
66625
66626         * MODULES.html.sh (Unicode string functions): Add the new modules.
66627
66628         * modules/uniconv/u32-strconv-to-locale: New file.
66629         * lib/uniconv/u32-strconv-to-locale.c: New file.
66630
66631         * modules/uniconv/u16-strconv-to-locale: New file.
66632         * lib/uniconv/u16-strconv-to-locale.c: New file.
66633
66634         * modules/uniconv/u8-strconv-to-locale: New file.
66635         * lib/uniconv/u8-strconv-to-locale.c: New file.
66636
66637         * modules/uniconv/u32-strconv-from-locale: New file.
66638         * lib/uniconv/u32-strconv-from-locale.c: New file.
66639
66640         * modules/uniconv/u16-strconv-from-locale: New file.
66641         * lib/uniconv/u16-strconv-from-locale.c: New file.
66642
66643         * modules/uniconv/u8-strconv-from-locale: New file.
66644         * lib/uniconv/u8-strconv-from-locale.c: New file.
66645
66646         * modules/uniconv/u32-strconv-to-enc: New file.
66647         * lib/uniconv/u32-strconv-to-enc.c: New file.
66648         * modules/uniconv/u32-strconv-to-enc-tests: New file.
66649         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
66650
66651         * modules/uniconv/u16-strconv-to-enc: New file.
66652         * lib/uniconv/u16-strconv-to-enc.c: New file.
66653         * lib/uniconv/u-strconv-to-enc.h: New file.
66654         * modules/uniconv/u16-strconv-to-enc-tests: New file.
66655         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
66656
66657         * modules/uniconv/u8-strconv-to-enc: New file.
66658         * lib/uniconv/u8-strconv-to-enc.c: New file.
66659         * modules/uniconv/u8-strconv-to-enc-tests: New file.
66660         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
66661
66662         * modules/uniconv/u32-strconv-from-enc: New file.
66663         * lib/uniconv/u32-strconv-from-enc.c: New file.
66664         * modules/uniconv/u32-strconv-from-enc-tests: New file.
66665         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
66666
66667         * modules/uniconv/u16-strconv-from-enc: New file.
66668         * lib/uniconv/u16-strconv-from-enc.c: New file.
66669         * modules/uniconv/u16-strconv-from-enc-tests: New file.
66670         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
66671
66672         * modules/uniconv/u8-strconv-from-enc: New file.
66673         * lib/uniconv/u8-strconv-from-enc.c: New file.
66674         * lib/uniconv/u-strconv-from-enc.h: New file.
66675         * modules/uniconv/u8-strconv-from-enc-tests: New file.
66676         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
66677
66678         * modules/uniconv/u32-conv-from-enc: New file.
66679         * lib/uniconv/u32-conv-from-enc.c: New file.
66680         * modules/uniconv/u32-conv-from-enc-tests: New file.
66681         * tests/uniconv/test-u32-conv-from-enc.c: New file.
66682
66683         * modules/uniconv/u16-conv-from-enc: New file.
66684         * lib/uniconv/u16-conv-from-enc.c: New file.
66685         * lib/uniconv/u-conv-from-enc.h: New file.
66686         * modules/uniconv/u16-conv-from-enc-tests: New file.
66687         * tests/uniconv/test-u16-conv-from-enc.c: New file.
66688
66689         * modules/uniconv/u8-conv-from-enc: New file.
66690         * lib/uniconv/u8-conv-from-enc.c: New file.
66691         * modules/uniconv/u8-conv-from-enc-tests: New file.
66692         * tests/uniconv/test-u8-conv-from-enc.c: New file.
66693
66694         * modules/uniconv/base: New file.
66695         * lib/uniconv.h: New file.
66696
66697 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66698
66699         * doc/gnulib-tool.texi (Initial import): Update to match current
66700         behavior with strdup module.
66701         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
66702         * lib/memmem.h: Remove; all uses removed.  This is now done
66703         by <string.h>.
66704         * lib/mempcpy.h: Likewise.
66705         * lib/memrchr.h: Likewise.
66706         * lib/stpcpy.h: Likewise.
66707         * lib/stpncpy.h: Likewise.
66708         * lib/strcase.h: Likewise.
66709         * lib/strchrnul.h: Likewise.
66710         * lib/strdup.h: Likewise.
66711         * lib/strndup.h: Likewise.
66712         * lib/strnlen.h: Likewise.
66713         * lib/strpbrk.h: Likewise.
66714         * lib/strsep.h: Likewise.
66715         * lib/strstr.h: Likewise.
66716         * lib/strtok_r.h: Likewise.
66717         * lib/string_.h: New file.
66718         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
66719         Rely on <string.h> instead.
66720         * lib/canon-host.c: Likewise.
66721         * lib/chdir-long.c: Likewise.
66722         * lib/concatpath.c: Likewise.
66723         * lib/exclude.c: Likewise.
66724         * lib/fchdir.c: Likewise.
66725         * lib/getaddrinfo.c: Likewise.
66726         * lib/getcwd.c: Likewise.
66727         * lib/getsubopt.c: Likewise.
66728         * lib/glob.c: Likewise.
66729         * lib/hard-locale.c: Likewise.
66730         * lib/iconvme.c: Likewise.
66731         * lib/javacomp.c: Likewise.
66732         * lib/mempcpy.c: Likewise.
66733         * lib/memrchr.c: Likewise.
66734         * lib/regex_internal.h: Likewise.
66735         * lib/stpncpy.c: Likewise.
66736         * lib/strcasecmp.c: Likewise.
66737         * lib/strchrnul.c: Likewise.
66738         * lib/strdup.c: Likewise.
66739         * lib/striconv.c: Likewise.
66740         * lib/striconveh.c: Likewise.
66741         * lib/striconveha.c: Likewise.
66742         * lib/strncasecmp.c: Likewise.
66743         * lib/strndup.c: Likewise.
66744         * lib/strnlen.c: Likewise.
66745         * lib/strsep.c: Likewise.
66746         * lib/strstr.c: Likewise.
66747         * lib/strtok_r.c: Likewise.
66748         * lib/userspec.c: Likewise.
66749         * lib/w32spawn.h: Likewise.
66750         * lib/xstrndup.c: Likewise.
66751         * lib/mountlist.c (strstr): Remove decl.
66752         * m4/string_h.m4: New file.
66753         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
66754         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
66755         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
66756         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
66757         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
66758         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
66759         Set REPLACE_STRCASECMP if necessary.
66760         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
66761         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
66762         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
66763         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
66764         HAVE_DECL_STRDUP if necessary.
66765         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
66766         since gl_FUNC_STRNDUP does that now.
66767         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
66768         Check for decl here...
66769         (gl_PREREQ_STRNLEN): ... not here.
66770         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
66771         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
66772         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
66773         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
66774         necessary.
66775         * modules/string: New file.
66776         * modules/memmem (Files): Remove special-purpose include file.
66777         (Depends-on): Add string.
66778         (Include): Include <string.h>, not the removed file.
66779         * modules/mempcpy: Likewise.
66780         * modules/memrchr: Likewise.
66781         * modules/stpcpy: Likewise.
66782         * modules/stpncpy: Likewise.
66783         * modules/strcase: Likewise.
66784         * modules/strchrnul: Likewise.
66785         * modules/strdup: Likewise.
66786         * modules/strndup: Likewise.
66787         * modules/strnlen: Likewise.
66788         * modules/strpbrk: Likewise.
66789         * modules/strsep: Likewise.
66790         * modules/strstr: Likewise.
66791         * modules/strtok_r: Likewise.
66792         * tests/test-dirname.c: Don't include "strdup.h", since
66793         <string.h> now suffices.
66794         * tests/test-memmem.c: Don't include "memmem.h", since
66795         <string.h> now suffices.
66796
66797 2007-01-25  Bruno Haible  <bruno@clisp.org>
66798
66799         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
66800         *resultp is 0.
66801
66802         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
66803         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
66804         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
66805         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
66806
66807         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
66808         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
66809         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
66810         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
66811         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
66812         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
66813
66814 2007-01-24  Bruno Haible  <bruno@clisp.org>
66815
66816         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
66817         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
66818         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
66819         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
66820         gl_FUNC_FTS_CORE.
66821         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
66822         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
66823         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66824         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
66825         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
66826         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
66827         gl_FUNC_FCHOWNAT.
66828         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
66829         gl_FUNC_STRFTIME.
66830         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
66831         Reported by Ralf Wildenhues.
66832
66833 2007-01-24  Bruno Haible  <bruno@clisp.org>
66834
66835         Drop AC_REQUIRE calls that are redundant with the module dependencies.
66836         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
66837         gl_GETADDRINFO.
66838         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
66839         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
66840         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
66841
66842 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
66843
66844         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
66845         Don't use 'exit'; just return from 'main'.
66846         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
66847
66848         * lib/fnmatch_.h: Readjust white space and comments to match
66849         glibc, to avoid spurious diffs.
66850
66851 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66852
66853         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
66854         2004-12-01 change by Jakub Jelinek, since this code won't compile
66855         if !LIBC.  Problem reported by Bob Proulx.
66856
66857 2007-01-23  Bruno Haible  <bruno@clisp.org>
66858
66859         * lib/striconveh.c: Include c-strcaseeq.h.
66860         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
66861         * modules/striconveh (Depends-on): Add c-strcaseeq.
66862
66863 2007-01-23  Bruno Haible  <bruno@clisp.org>
66864
66865         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
66866
66867         * modules/c-strcaseeq: New file.
66868         * lib/c-strcaseeq.h: New file.
66869
66870         * modules/streq: New file.
66871         * lib/streq.h: New file.
66872
66873 2007-01-23  Bruno Haible  <bruno@clisp.org>
66874
66875         * modules/striconveha-tests: New file.
66876         * tests/test-striconveha.c: New file.
66877
66878         * lib/striconveha.h: Include <stdbool.h>.
66879         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
66880         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
66881         (mem_iconveha_notranslit): Renamed from mem_iconveha.
66882         (mem_iconveha): New function.
66883         (str_iconveha_notranslit): Renamed from str_iconveha.
66884         (str_iconveha): New function.
66885         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
66886         c-strcase.
66887
66888 2007-01-23  Bruno Haible  <bruno@clisp.org>
66889
66890         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
66891         encodings without forgiving before trying any encoding with handler.
66892         (str_iconveha): Try all encodings without forgiving before trying any
66893         encoding with handler.
66894
66895 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66896
66897         Import the following changes from libc.
66898
66899         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66900
66901         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
66902
66903         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66904
66905         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
66906         normal_bracket label.
66907
66908         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
66909
66910         [BZ #361]
66911         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
66912         to normal_bracket after fetching the next character.
66913
66914 2007-01-22  Bruno Haible  <bruno@clisp.org>
66915
66916         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
66917         argument.
66918         * lib/striconveh.c (iconv_carefully_1): New function.
66919         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
66920         argument.
66921         (str_cd_iconveh): Update.
66922         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
66923         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
66924         * tests/test-striconveh.c (MAGIC): New macro.
66925         (new_offsets): New function.
66926         (main): Test call with and without offsets.
66927
66928 2007-01-22  Bruno Haible  <bruno@clisp.org>
66929
66930         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
66931         * modules/sys_select (Makefile.am): Likewise.
66932         * modules/sys_socket (Makefile.am): Likewise.
66933         * modules/sys_time (Makefile.am): Likewise.
66934
66935 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66936
66937         * modules/gettimeofday (License): Change from GPL to LGPL, since
66938         gettimeofday is a library function.
66939
66940 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66941
66942         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
66943
66944 2007-01-21  Bruno Haible  <bruno@clisp.org>
66945
66946         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
66947
66948 2007-01-21  Bruno Haible  <bruno@clisp.org>
66949
66950         * modules/striconveha: New file.
66951         * lib/striconveha.h: New file.
66952         * lib/striconveha.c: New file.
66953         * MODULES.html.sh (Internationalization functions): Add striconveha.
66954         * lib/striconv.c (str_iconv): Optimize the case of an empty input
66955         string.
66956         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
66957
66958 2007-01-21  Bruno Haible  <bruno@clisp.org>
66959
66960         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
66961         * lib/striconveh.c (str_iconveh): Likewise.
66962
66963 2007-01-21  Bruno Haible  <bruno@clisp.org>
66964
66965         * lib/striconveh.h (mem_iconveh): New declaration.
66966         * lib/striconveh.c (mem_iconveh): New function.
66967         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
66968
66969 2007-01-21  Bruno Haible  <bruno@clisp.org>
66970
66971         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
66972
66973         * lib/striconveh.h (mem_cd_iconveh): Change specification.
66974         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
66975         original result buffer.
66976         (str_cd_iconveh): Update.
66977         * tests/test-striconveh.c (main): Update.
66978
66979         * lib/striconv.h (mem_cd_iconv): Change specification.
66980         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
66981         result buffer.
66982         (str_cd_iconv): Update.
66983         * tests/test-striconv.c (main): Update.
66984
66985 2007-01-21  Bruno Haible  <bruno@clisp.org>
66986
66987         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
66988
66989 2007-01-20  Jim Meyering  <jim@meyering.net>
66990
66991         * lib/userspec.c (parse_with_separator): If a user or group string
66992         starts with "+", skip the corresponding name-to-ID look-up, since
66993         such a look-up must fail: user and group names may not include "+".
66994
66995 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66996
66997         * lib/poll.c: Include sys/time.h and time.h unconditionally,
66998         since we now assume the sys_time module.
66999         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
67000         check for sys/time.h; no longer needed.
67001         * modules/poll (Depends-on): Depend on sys_time.
67002
67003 2007-01-18  Bruno Haible  <bruno@clisp.org>
67004
67005         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
67006         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67007
67008         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
67009         gettimeofday.
67010
67011         * tests/test-gettimeofday.c: Include <time.h>.
67012         (dummy): Remove variable.
67013
67014         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
67015         gl_HEADER_SYS_TIME_H.
67016         (gl_HEADER_SYS_TIME_H): New macro.
67017
67018         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
67019         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67020         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
67021         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
67022         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67023         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
67024         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
67025         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67026         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
67027         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
67028         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67029
67030         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
67031         last change; it caused a compilation error when cross-compiling to
67032         Cygwin.
67033
67034 2007-01-18  Jim Meyering  <jim@meyering.net>
67035
67036         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
67037         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
67038         than the race-prone "test -d sys || mkdir sys".
67039         (configure.ac): Use AC_PROG_MKDIR_P.
67040         * modules/sys_select: Likewise.
67041         * modules/sys_socket: Likewise.
67042         * modules/sys_time: Likewise.
67043
67044 2007-01-18  Eric Blake  <ebb9@byu.net>
67045
67046         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
67047         replace gettimeofday.
67048         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
67049         name, to avoid infinite recursion.
67050
67051 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
67052
67053         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
67054         module sys_time.
67055         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
67056         assume timespec.h defines struct timeval.
67057         * lib/settime.c: Likewise.
67058         * lib/utimens.c: Likewise.
67059         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
67060         since we now assume the gettimeofday module.
67061         * lib/tempname.c (__gen_tempname): Likewise.
67062         * lib/gettimeofday.h: Remove.
67063         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
67064         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
67065         Include <time.h>, for 'time()'.
67066         (localtime_buffer_addr): Also use this workaround if
67067         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
67068         to simplify the uses.  All uses changed.
67069         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
67070         that #undef is inside {}, and 'const' follows type name consistently.
67071         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
67072         (gettimeofday): Do not use the maximum possible value for
67073         tv->tv_usec, since that might break usages other than ls.c.
67074         Instead, we'll leave ls.c alone.  This undoes today's patch
67075         by Bruno.  Add a compile-time warning for 1s-clock resolution;
67076         we've never observed the problem but might as well keep the
67077         canary.
67078         * lib/nanosleep.c: Include timespec.h first, for interface check.
67079         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
67080         now assume the sys_time module.
67081         * lib/tempname.c: Likewise.
67082         * lib/timespec.h: Likewise.
67083         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
67084         needed.
67085         * lib/strftime.c: Likewise.
67086         * lib/timespec.h: Likewise.
67087         * lib/posixtm.c: Include posixtm.h first, for interface check.
67088         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
67089         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
67090         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
67091         * lib/sys_time_.h: New file.
67092         * lib/timespec.h (struct timespec): Use long int, not long.
67093         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
67094         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
67095         Remove obsolescent call to AC_HEADER_TIME.
67096         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
67097         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67098         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67099         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
67100         Likewise.
67101         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
67102         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
67103         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
67104         into the sys_time module.  Check for gettimeofday just once.
67105         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
67106         for gettimeofday signature to just check the signature.  Merely
67107         compile it, since linking doesn't test signature.  Improve test for
67108         whether gettimeofday.o is actually needed.
67109         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
67110         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
67111         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
67112         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67113         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
67114         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
67115         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
67116         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
67117         than worrying about sys/time.h.
67118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67119         Don't bother worrying about TIME_WITH_SYS_TIME.
67120         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
67121         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
67122         * m4/sys_time_h.m4: New file.
67123         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
67124         Don't include sys/time.h.  Return from main rather than exiting.
67125         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
67126         all uses changed.
67127         * modules/gethrxtime (Depends-on): Add sys_time.
67128         * modules/gettime (Depends-on): Likewise.
67129         * modules/gettimeofday (Depends-on): Likewise.
67130         * modules/nanosleep (Depends-on): Likewise.
67131         * modules/settime (Depends-on): Likewise.
67132         * modules/tempname (Depends-on): Likewise.
67133         * modules/utimens (Depends-on): Likewise.
67134         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
67135         (Include): Change back to <sys/time.h>.
67136         (Maintainer): Add self.
67137         * modules/sys_time: New file.
67138         * modules/tempname (Depends-on): Add gettimeofday.
67139         * tests/test-gettimeofday.c: Include <sys/time.h>
67140         rather than gettimeofday.h.
67141
67142 2007-01-17  Bruno Haible  <bruno@clisp.org>
67143
67144         * gnulib-tool (func_get_license): Revert last patch. Instead, let
67145         the license default to GPL.
67146         (func_create_testdir): Don't complain if a module is LGPL and its
67147         tests module depends on GPLed modules.
67148
67149 2007-01-17  Bruno Haible  <bruno@clisp.org>
67150
67151         * lib/gettimeofday.c (gettimeofday): Add code for the case
67152         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
67153         maximum possible value for tv->tv_usec, rather than the minimum one.
67154
67155 2005-10-08  Martin Lambers  <marlam@marlam.de>
67156 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67157 2007-01-16  Bruno Haible  <bruno@clisp.org>
67158
67159         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
67160         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
67161         gl_FUNC_GETTIMEOFDAY.
67162         (Include): Add gettimeofday.h.
67163         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
67164         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
67165         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
67166         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
67167         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
67168         * lib/gettimeofday.h: New file.
67169         * lib/gettimeofday.c: Include <sys/timeb.h>.
67170         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
67171         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67172         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
67173         fall back on time().
67174
67175         * tests/test-gettimeofday.c: New file.
67176         * modules/gettimeofday-tests: New file.
67177
67178 2007-01-16  Eric Blake  <ebb9@byu.net>
67179
67180         * modules/fnmatch (Depends-on): Depend on wchar.
67181         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
67182         * m4/fnmatch.m4: Likewise.
67183         * modules/mbchar (Makefile.am): Assume <wchar.h>.
67184         * m4/mbchar.m4: Likewise.
67185         * modules/mbswidth (Depends-on): Depend on wchar.
67186         * lib/mbswidth.c: Assume <wchar.h>.
67187         * m4/mbswidth.m4: Likewise.
67188         * modules/quotearg (Depends-on): Depend on wchar.
67189         * lib/quotearg.c: Assume <wchar.h>.
67190         * m4/quotearg.m4: Likewise.
67191         * modules/regex (Depends-on): Depend on wchar.
67192         * lib/regex_internal.h: Assume <wchar.h>.
67193         * m4/regex.m4: Likewise.
67194         * modules/stdint (Depends-on): Depend on wchar.
67195         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
67196         * m4/stdint.m4: Likewise.
67197         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
67198         * modules/strftime (Depends-on): Depend on wchar.
67199         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
67200         * modules/strtol (Depends-on): Depend on wchar.
67201         * lib/strtol.c: Assume <wchar.h>.
67202         * modules/wcwidth (Depends-on): Depend on wchar.
67203         * lib/wcwidth.h: Assume <wchar.h>.
67204         * m4/wcwidth.m4: Likewise.
67205
67206 2007-01-16  Bruno Haible  <bruno@clisp.org>
67207
67208         * modules/csharpexec-script: New, created from...
67209         * modules/csharpexec: ... this.
67210
67211 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
67212
67213         * modules/javaexec-script: New, created from...
67214         * modules/javaexec: ... this.
67215
67216 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67217
67218         * modules/poll (Dependencies): Add sys_select.
67219
67220 2007-01-15  Jim Meyering  <jim@meyering.net>
67221
67222         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
67223         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
67224         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
67225         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
67226
67227 2007-01-15  Bruno Haible  <bruno@clisp.org>
67228
67229         * modules/striconveh: New file.
67230         * lib/striconveh.h: New file.
67231         * lib/striconveh.c: New file.
67232         * MODULES.html.sh (Internationalization functions): Add striconveh.
67233
67234         * modules/striconveh-tests: New file.
67235         * tests/test-striconveh.c: New file.
67236
67237 2007-01-15  Bruno Haible  <bruno@clisp.org>
67238
67239         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
67240         not from GNU libiconv or GNU libc.
67241
67242 2007-01-15  Bruno Haible  <bruno@clisp.org>
67243
67244         * doc/gnulib-intro.texi (Copyright): Explain the different license
67245         terms for module descriptions, autoconf macros, tests, documentation.
67246
67247 2007-01-14  Bruno Haible  <bruno@clisp.org>
67248
67249         * modules/striconv-tests: New file.
67250         * tests/test-striconv.c: New file.
67251
67252 2007-01-14  Bruno Haible  <bruno@clisp.org>
67253
67254         * modules/iconv-tests: New file.
67255         * tests/test-iconv.c: New file.
67256
67257 2007-01-14  Bruno Haible  <bruno@clisp.org>
67258
67259         * gnulib-tool (func_get_license): For test modules, use the license of
67260         the main module.
67261
67262 2007-01-14  Bruno Haible  <bruno@clisp.org>
67263
67264         * modules/iconv (Include): Clarify that <iconv.h> can only be included
67265         if iconv is found to exist.
67266
67267 2007-01-14  Bruno Haible  <bruno@clisp.org>
67268
67269         * modules/c-ctype-tests: New file.
67270         * tests/test-c-ctype.c: New file.
67271
67272 2007-01-14  Bruno Haible  <bruno@clisp.org>
67273
67274         * modules/binary-io-tests: New file.
67275         * tests/test-binary-io.sh: New file.
67276         * tests/test-binary-io.c: New file.
67277
67278 2007-01-14  Bruno Haible  <bruno@clisp.org>
67279
67280         * modules/array-oset-tests: New file.
67281         * tests/test-array_oset.c: New file.
67282
67283 2007-01-14  Bruno Haible  <bruno@clisp.org>
67284
67285         * modules/array-list-tests: New file.
67286         * tests/test-array_list.c: New file.
67287
67288 2007-01-14  Bruno Haible  <bruno@clisp.org>
67289
67290         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
67291         and make.
67292         Reported by Simon Josefsson in
67293         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
67294
67295 2007-01-14  Bruno Haible  <bruno@clisp.org>
67296
67297         * modules/allocsa-tests: New file.
67298         * tests/test-allocsa.c: New file.
67299
67300 2007-01-14  Bruno Haible  <bruno@clisp.org>
67301
67302         * modules/fchdir (Depends-on): Add absolute-header.
67303         * modules/unistd (Depends-on): Likewise.
67304
67305 2006-12-30  Bruno Haible  <bruno@clisp.org>
67306
67307         * modules/fchdir: New file.
67308         * modules/unistd (Files): Add lib/unistd_.h.
67309         (Makefile.am): Generate unistd.h from unistd_.h.
67310         * lib/fchdir.c: New file.
67311         * lib/dirent_.h: New file.
67312         * lib/unistd_.h: New file.
67313         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
67314         * m4/fchdir.m4: New file.
67315         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
67316         (gl_HEADER_UNISTD): Invoke it.
67317         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
67318         function.
67319         * lib/backupfile.c (opendir, closedir): Undefine.
67320         * lib/chown.c (open, close): Undefine.
67321         * lib/clean-temp.c (open, close): Undefine.
67322         * lib/copy-file.c (open, close): Undefine.
67323         * lib/execute.c (open, close): Undefine.
67324         * lib/fsusage.c (open, close): Undefine.
67325         * lib/gc-gnulib.c (open, close): Undefine.
67326         * lib/getcwd.c (opendir, closedir): Undefine.
67327         * lib/glob.c (opendir, closedir): Undefine.
67328         * lib/javacomp.c (open, close): Undefine.
67329         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
67330         * lib/openat-proc.c (open, close): Undefine.
67331         * lib/pagealign_alloc.c (open, close): Undefine.
67332         * lib/pipe.c (open, close): Undefine.
67333         * lib/progreloc.c (open, close): Undefine.
67334         * lib/savedir.c (opendir, closedir): Undefine.
67335         * lib/utime.c (open, close): Undefine.
67336         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
67337
67338 2007-01-10  Bruno Haible  <bruno@clisp.org>
67339
67340         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
67341
67342 2007-01-12  Eric Blake  <ebb9@byu.net>
67343
67344         Provide a robust <wchar.h>.  Further simplifications are now
67345         possible in other modules, but not included here.
67346         * modules/wchar: New module.
67347         * m4/wchar.m4: New file.
67348         * lib/wchar_.h: Likewise.
67349         * modules/mbchar (Depends-on): Depend on wchar, as the first use
67350         of the new module.
67351         * MODULES.html.sh (Extended multibyte and wide character utilities):
67352         New section.
67353
67354 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
67355
67356         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
67357         to a reasonable default for memory allocation.
67358         (xreadlink): Don't allocate a huge buffer, to work around a buggy
67359         file system that reports garbage st_size values for symlinks.
67360         Problem reported by Liyang Hu.
67361
67362 2007-01-11  Simon Josefsson  <simon@josefsson.org>
67363
67364         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
67365         Emacs .#* auto-save files).
67366
67367 2007-01-11  Bruno Haible  <bruno@clisp.org>
67368
67369         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
67370         directory.
67371
67372 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67373
67374         Use @...@ consistently in lib/wctype_.h.
67375         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
67376         on it being set to 1 or 0.
67377         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
67378         go back to AC_SUBSTing it.
67379         * modules/wctype (Makefile.am): Undo previous change.
67380
67381 2007-01-10  Eric Blake  <ebb9@byu.net>
67382
67383         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
67384         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
67385         * modules/wctype (Makefile.am): Likewise.
67386         Reported by Chris McGuire.
67387
67388 2007-01-10  Jim Meyering  <jim@meyering.net>
67389
67390         fts.c: a small readability/maintainability improvement
67391         * lib/fts.c (fts_read): Make this code slightly more readable and
67392         maintainable by hoisting the "sp->fts_cur = p" assignments to
67393         immediately follow the statements that set P.  Derived from
67394         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
67395
67396 2007-01-10  Eric Blake  <ebb9@byu.net>
67397
67398         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
67399         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
67400         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67401         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67402         Reported by Chris McGuire.
67403
67404 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67405
67406         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
67407         in sed script.
67408
67409 2007-01-09  Bruno Haible  <bruno@clisp.org>
67410
67411         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
67412         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
67413         variables.
67414         (func_module): Use them.
67415
67416 2007-01-09  Bruno Haible  <bruno@clisp.org>
67417
67418         * modules/unistr/base: New file.
67419         * lib/unistr.h: New file.
67420
67421         * modules/unistr/u8-to-u16: New file.
67422         * lib/unistr/u8-to-u16.c: New file.
67423
67424         * modules/unistr/u8-to-u32: New file.
67425         * lib/unistr/u8-to-u32.c: New file.
67426
67427         * modules/unistr/u16-to-u8: New file.
67428         * lib/unistr/u16-to-u8.c: New file.
67429
67430         * modules/unistr/u16-to-u32: New file.
67431         * lib/unistr/u16-to-u32.c: New file.
67432
67433         * modules/unistr/u32-to-u8: New file.
67434         * lib/unistr/u32-to-u8.c: New file.
67435
67436         * modules/unistr/u32-to-u16: New file.
67437         * lib/unistr/u32-to-u16.c: New file.
67438
67439         * modules/unistr/u8-check: New file.
67440         * modules/unistr/u16-check: New file.
67441         * modules/unistr/u32-check: New file.
67442         * lib/unistr/u8-check.c: New file.
67443         * lib/unistr/u16-check.c: New file.
67444         * lib/unistr/u32-check.c: New file.
67445
67446         * modules/unistr/u8-chr: New file.
67447         * modules/unistr/u16-chr: New file.
67448         * modules/unistr/u32-chr: New file.
67449         * lib/unistr/u8-chr.c: New file.
67450         * lib/unistr/u16-chr.c: New file.
67451         * lib/unistr/u32-chr.c: New file.
67452
67453         * modules/unistr/u8-cmp: New file.
67454         * modules/unistr/u16-cmp: New file.
67455         * modules/unistr/u32-cmp: New file.
67456         * lib/unistr/u8-cmp.c: New file.
67457         * lib/unistr/u16-cmp.c: New file.
67458         * lib/unistr/u32-cmp.c: New file.
67459
67460         * modules/unistr/u8-cpy: New file.
67461         * modules/unistr/u16-cpy: New file.
67462         * modules/unistr/u32-cpy: New file.
67463         * lib/unistr/u8-cpy.c: New file.
67464         * lib/unistr/u16-cpy.c: New file.
67465         * lib/unistr/u32-cpy.c: New file.
67466         * lib/unistr/u-cpy.h: New file.
67467
67468         * modules/unistr/u8-cpy-alloc: New file.
67469         * modules/unistr/u16-cpy-alloc: New file.
67470         * modules/unistr/u32-cpy-alloc: New file.
67471         * lib/unistr/u8-cpy-alloc.c: New file.
67472         * lib/unistr/u16-cpy-alloc.c: New file.
67473         * lib/unistr/u32-cpy-alloc.c: New file.
67474         * lib/unistr/u-cpy-alloc.h: New file.
67475
67476         * modules/unistr/u8-endswith: New file.
67477         * modules/unistr/u16-endswith: New file.
67478         * modules/unistr/u32-endswith: New file.
67479         * lib/unistr/u8-endswith.c: New file.
67480         * lib/unistr/u16-endswith.c: New file.
67481         * lib/unistr/u32-endswith.c: New file.
67482         * lib/unistr/u-endswith.h: New file.
67483
67484         * modules/unistr/u8-mblen: New file.
67485         * modules/unistr/u16-mblen: New file.
67486         * modules/unistr/u32-mblen: New file.
67487         * lib/unistr/u8-mblen.c: New file.
67488         * lib/unistr/u16-mblen.c: New file.
67489         * lib/unistr/u32-mblen.c: New file.
67490
67491         * modules/unistr/u8-mbtouc: New file.
67492         * modules/unistr/u16-mbtouc: New file.
67493         * modules/unistr/u32-mbtouc: New file.
67494         * lib/unistr/u8-mbtouc.c: New file.
67495         * lib/unistr/u16-mbtouc.c: New file.
67496         * lib/unistr/u32-mbtouc.c: New file.
67497
67498         * modules/unistr/u8-mbtouc-safe: New file.
67499         * modules/unistr/u16-mbtouc-safe: New file.
67500         * modules/unistr/u32-mbtouc-safe: New file.
67501         * lib/unistr/u8-mbtouc-safe.c: New file.
67502         * lib/unistr/u16-mbtouc-safe.c: New file.
67503         * lib/unistr/u32-mbtouc-safe.c: New file.
67504
67505         * modules/unistr/u8-move: New file.
67506         * modules/unistr/u16-move: New file.
67507         * modules/unistr/u32-move: New file.
67508         * lib/unistr/u8-move.c: New file.
67509         * lib/unistr/u16-move.c: New file.
67510         * lib/unistr/u32-move.c: New file.
67511         * lib/unistr/u-move.h: New file.
67512
67513         * modules/unistr/u8-next: New file.
67514         * modules/unistr/u16-next: New file.
67515         * modules/unistr/u32-next: New file.
67516         * lib/unistr/u8-next.c: New file.
67517         * lib/unistr/u16-next.c: New file.
67518         * lib/unistr/u32-next.c: New file.
67519
67520         * modules/unistr/u8-prev: New file.
67521         * modules/unistr/u16-prev: New file.
67522         * modules/unistr/u32-prev: New file.
67523         * lib/unistr/u8-prev.c: New file.
67524         * lib/unistr/u16-prev.c: New file.
67525         * lib/unistr/u32-prev.c: New file.
67526
67527         * modules/unistr/u8-set: New file.
67528         * modules/unistr/u16-set: New file.
67529         * modules/unistr/u32-set: New file.
67530         * lib/unistr/u8-set.c: New file.
67531         * lib/unistr/u16-set.c: New file.
67532         * lib/unistr/u32-set.c: New file.
67533         * lib/unistr/u-set.h: New file.
67534
67535         * modules/unistr/u8-startswith: New file.
67536         * modules/unistr/u16-startswith: New file.
67537         * modules/unistr/u32-startswith: New file.
67538         * lib/unistr/u8-startswith.c: New file.
67539         * lib/unistr/u16-startswith.c: New file.
67540         * lib/unistr/u32-startswith.c: New file.
67541         * lib/unistr/u-startswith.h: New file.
67542
67543         * modules/unistr/u8-stpcpy: New file.
67544         * modules/unistr/u16-stpcpy: New file.
67545         * modules/unistr/u32-stpcpy: New file.
67546         * lib/unistr/u8-stpcpy.c: New file.
67547         * lib/unistr/u16-stpcpy.c: New file.
67548         * lib/unistr/u32-stpcpy.c: New file.
67549         * lib/unistr/u-stpcpy.h: New file.
67550
67551         * modules/unistr/u8-stpncpy: New file.
67552         * modules/unistr/u16-stpncpy: New file.
67553         * modules/unistr/u32-stpncpy: New file.
67554         * lib/unistr/u8-stpncpy.c: New file.
67555         * lib/unistr/u16-stpncpy.c: New file.
67556         * lib/unistr/u32-stpncpy.c: New file.
67557         * lib/unistr/u-stpncpy.h: New file.
67558
67559         * modules/unistr/u8-strcat: New file.
67560         * modules/unistr/u16-strcat: New file.
67561         * modules/unistr/u32-strcat: New file.
67562         * lib/unistr/u8-strcat.c: New file.
67563         * lib/unistr/u16-strcat.c: New file.
67564         * lib/unistr/u32-strcat.c: New file.
67565         * lib/unistr/u-strcat.h: New file.
67566
67567         * modules/unistr/u8-strchr: New file.
67568         * modules/unistr/u16-strchr: New file.
67569         * modules/unistr/u32-strchr: New file.
67570         * lib/unistr/u8-strchr.c: New file.
67571         * lib/unistr/u16-strchr.c: New file.
67572         * lib/unistr/u32-strchr.c: New file.
67573
67574         * modules/unistr/u8-strcmp: New file.
67575         * modules/unistr/u16-strcmp: New file.
67576         * modules/unistr/u32-strcmp: New file.
67577         * lib/unistr/u8-strcmp.c: New file.
67578         * lib/unistr/u16-strcmp.c: New file.
67579         * lib/unistr/u32-strcmp.c: New file.
67580
67581         * modules/unistr/u8-strcpy: New file.
67582         * modules/unistr/u16-strcpy: New file.
67583         * modules/unistr/u32-strcpy: New file.
67584         * lib/unistr/u8-strcpy.c: New file.
67585         * lib/unistr/u16-strcpy.c: New file.
67586         * lib/unistr/u32-strcpy.c: New file.
67587         * lib/unistr/u-strcpy.h: New file.
67588
67589         * modules/unistr/u8-strcspn: New file.
67590         * modules/unistr/u16-strcspn: New file.
67591         * modules/unistr/u32-strcspn: New file.
67592         * lib/unistr/u8-strcspn.c: New file.
67593         * lib/unistr/u16-strcspn.c: New file.
67594         * lib/unistr/u32-strcspn.c: New file.
67595         * lib/unistr/u-strcspn.h: New file.
67596
67597         * modules/unistr/u8-strdup: New file.
67598         * modules/unistr/u16-strdup: New file.
67599         * modules/unistr/u32-strdup: New file.
67600         * lib/unistr/u8-strdup.c: New file.
67601         * lib/unistr/u16-strdup.c: New file.
67602         * lib/unistr/u32-strdup.c: New file.
67603         * lib/unistr/u-strdup.h: New file.
67604
67605         * modules/unistr/u8-strlen: New file.
67606         * modules/unistr/u16-strlen: New file.
67607         * modules/unistr/u32-strlen: New file.
67608         * lib/unistr/u8-strlen.c: New file.
67609         * lib/unistr/u16-strlen.c: New file.
67610         * lib/unistr/u32-strlen.c: New file.
67611         * lib/unistr/u-strlen.h: New file.
67612
67613         * modules/unistr/u8-strmblen: New file.
67614         * modules/unistr/u16-strmblen: New file.
67615         * modules/unistr/u32-strmblen: New file.
67616         * lib/unistr/u8-strmblen.c: New file.
67617         * lib/unistr/u16-strmblen.c: New file.
67618         * lib/unistr/u32-strmblen.c: New file.
67619
67620         * modules/unistr/u8-strmbtouc: New file.
67621         * modules/unistr/u16-strmbtouc: New file.
67622         * modules/unistr/u32-strmbtouc: New file.
67623         * lib/unistr/u8-strmbtouc.c: New file.
67624         * lib/unistr/u16-strmbtouc.c: New file.
67625         * lib/unistr/u32-strmbtouc.c: New file.
67626
67627         * modules/unistr/u8-strncat: New file.
67628         * modules/unistr/u16-strncat: New file.
67629         * modules/unistr/u32-strncat: New file.
67630         * lib/unistr/u8-strncat.c: New file.
67631         * lib/unistr/u16-strncat.c: New file.
67632         * lib/unistr/u32-strncat.c: New file.
67633         * lib/unistr/u-strncat.h: New file.
67634
67635         * modules/unistr/u8-strncmp: New file.
67636         * modules/unistr/u16-strncmp: New file.
67637         * modules/unistr/u32-strncmp: New file.
67638         * lib/unistr/u8-strncmp.c: New file.
67639         * lib/unistr/u16-strncmp.c: New file.
67640         * lib/unistr/u32-strncmp.c: New file.
67641
67642         * modules/unistr/u8-strncpy: New file.
67643         * modules/unistr/u16-strncpy: New file.
67644         * modules/unistr/u32-strncpy: New file.
67645         * lib/unistr/u8-strncpy.c: New file.
67646         * lib/unistr/u16-strncpy.c: New file.
67647         * lib/unistr/u32-strncpy.c: New file.
67648         * lib/unistr/u-strncpy.h: New file.
67649
67650         * modules/unistr/u8-strnlen: New file.
67651         * modules/unistr/u16-strnlen: New file.
67652         * modules/unistr/u32-strnlen: New file.
67653         * lib/unistr/u8-strnlen.c: New file.
67654         * lib/unistr/u16-strnlen.c: New file.
67655         * lib/unistr/u32-strnlen.c: New file.
67656         * lib/unistr/u-strnlen.h: New file.
67657
67658         * modules/unistr/u8-strpbrk: New file.
67659         * modules/unistr/u16-strpbrk: New file.
67660         * modules/unistr/u32-strpbrk: New file.
67661         * lib/unistr/u8-strpbrk.c: New file.
67662         * lib/unistr/u16-strpbrk.c: New file.
67663         * lib/unistr/u32-strpbrk.c: New file.
67664         * lib/unistr/u-strpbrk.h: New file.
67665
67666         * modules/unistr/u8-strrchr: New file.
67667         * modules/unistr/u16-strrchr: New file.
67668         * modules/unistr/u32-strrchr: New file.
67669         * lib/unistr/u8-strrchr.c: New file.
67670         * lib/unistr/u16-strrchr.c: New file.
67671         * lib/unistr/u32-strrchr.c: New file.
67672
67673         * modules/unistr/u8-strspn: New file.
67674         * modules/unistr/u16-strspn: New file.
67675         * modules/unistr/u32-strspn: New file.
67676         * lib/unistr/u8-strspn.c: New file.
67677         * lib/unistr/u16-strspn.c: New file.
67678         * lib/unistr/u32-strspn.c: New file.
67679         * lib/unistr/u-strspn.h: New file.
67680
67681         * modules/unistr/u8-strstr: New file.
67682         * modules/unistr/u16-strstr: New file.
67683         * modules/unistr/u32-strstr: New file.
67684         * lib/unistr/u8-strstr.c: New file.
67685         * lib/unistr/u16-strstr.c: New file.
67686         * lib/unistr/u32-strstr.c: New file.
67687         * lib/unistr/u-strstr.h: New file.
67688
67689         * modules/unistr/u8-strtok: New file.
67690         * modules/unistr/u16-strtok: New file.
67691         * modules/unistr/u32-strtok: New file.
67692         * lib/unistr/u8-strtok.c: New file.
67693         * lib/unistr/u16-strtok.c: New file.
67694         * lib/unistr/u32-strtok.c: New file.
67695         * lib/unistr/u-strtok.h: New file.
67696
67697         * modules/unistr/u8-uctomb: New file.
67698         * modules/unistr/u16-uctomb: New file.
67699         * modules/unistr/u32-uctomb: New file.
67700         * lib/unistr/u8-uctomb.c: New file.
67701         * lib/unistr/u16-uctomb.c: New file.
67702         * lib/unistr/u32-uctomb.c: New file.
67703
67704         * MODULES.html.sh (Unicode string functions): Add the new modules.
67705
67706 2007-01-08  Bruno Haible  <bruno@clisp.org>
67707
67708         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
67709         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
67710         subdirectories.
67711
67712 2007-01-08  Karl Berry  <karl@gnu.org>
67713
67714         * doc/error.texi: mention that main() fns must set program_name
67715         when progname is used.
67716
67717 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
67718
67719         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
67720         WCTYPE_H is empty, for the benefit of builds from non-distclean
67721         directories.  Problem reported by Eric Blake in
67722         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
67723
67724 2007-01-08  Bruno Haible  <bruno@clisp.org>
67725
67726         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
67727         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
67728         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
67729         PROVIDE_CANONICALIZE_FILENAME_MODE.
67730         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
67731
67732 2007-01-08  Bruno Haible  <bruno@clisp.org>
67733
67734         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
67735         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
67736         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
67737         * lib/fts.c: Likewise.
67738         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
67739
67740 2006-12-25  Bruno Haible  <bruno@clisp.org>
67741
67742         * modules/utf8-ucs4-safe: New file.
67743         * lib/utf8-ucs4-safe.h: New file.
67744         * lib/unistr/utf8-ucs4-safe.c: New file.
67745
67746         * modules/utf16-ucs4-safe: New file.
67747         * lib/utf16-ucs4-safe.h: New file.
67748         * lib/unistr/utf16-ucs4-safe.c: New file.
67749
67750         * MODULES.html.sh (Unicode string functions): Add the new modules.
67751
67752 2007-01-08  Bruno Haible  <bruno@clisp.org>
67753
67754         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
67755         (Depends-on): Add unitypes.
67756         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67757         (u8_mbtouc_aux): Move out to separate file.
67758         (u8_mbtouc): Use ucs4_t, uint8_t types.
67759         * lib/unistr/utf8-ucs4.c: New file.
67760
67761         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
67762         (Depends-on): Add unitypes.
67763         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67764         (u16_mbtouc_aux): Move out to separate file.
67765         (u16_mbtouc): Use ucs4_t, uint16_t types.
67766         * lib/unistr/utf16-ucs4.c: New file.
67767
67768         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
67769         (Depends-on): Add unitypes.
67770         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
67771         (u8_uctomb_aux): Move out to separate file.
67772         (u8_uctomb): Use ucs4_t, uint8_t types.
67773         * lib/unistr/ucs4-utf8.c: New file.
67774
67775         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
67776         (Depends-on): Add unitypes.
67777         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
67778         (u16_uctomb_aux): Move out to separate file.
67779         (u16_uctomb): Use ucs4_t, uint16_t types.
67780         * lib/unistr/ucs4-utf16.c: New file.
67781
67782 2006-12-25  Bruno Haible  <bruno@clisp.org>
67783
67784         * modules/unitypes: New file.
67785         * lib/unitypes.h: New file.
67786         * MODULES.html.sh (func_all_modules): New section "Unicode string
67787         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
67788         this section. Add unitypes.
67789
67790 2007-01-08  Bruno Haible  <bruno@clisp.org>
67791
67792         Avoid variable names that conflict with those from libtool.
67793         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
67794         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
67795         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
67796         library_names_spec to acl_library_names_spec, hardcode_* to
67797         acl_hardcode_*.
67798         Reported by Ralf Wildenhues.
67799
67800 2007-01-08  Bruno Haible  <bruno@clisp.org>
67801
67802         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
67803         definition.
67804         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
67805         definition.
67806         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
67807         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
67808         definition.
67809         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
67810         definition.
67811         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
67812         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
67813         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
67814         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
67815         definition.
67816         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
67817         definition.
67818         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
67819         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
67820         GC_USE_<algorithm>.
67821         * lib/gc-libgcrypt.c: Likewise.
67822         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
67823         * modules/gc-arctwo (configure.ac): Likewise.
67824         * modules/gc-des (configure.ac): Likewise.
67825         * modules/gc-hmac-md5 (configure.ac): Likewise.
67826         * modules/gc-hmac-sha1 (configure.ac): Likewise.
67827         * modules/gc-md2 (configure.ac): Likewise.
67828         * modules/gc-md4 (configure.ac): Likewise.
67829         * modules/gc-md5 (configure.ac): Likewise.
67830         * modules/gc-random (configure.ac): Likewise.
67831         * modules/gc-rijndael (configure.ac): Likewise.
67832         * modules/gc-sha1 (configure.ac): Likewise.
67833
67834 2007-01-08  Bruno Haible  <bruno@clisp.org>
67835
67836         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
67837         macro definition.
67838         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
67839         definition.
67840         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
67841         definition.
67842         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
67843         * modules/fcntl-safer (configure.ac): Likewise.
67844         * modules/fopen-safer (configure.ac): Likewise.
67845         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
67846         GNULIB_FWRITEERROR macro definition.
67847
67848 2007-01-08  Bruno Haible  <bruno@clisp.org>
67849
67850         * m4/gnulib-common.m4: New file.
67851         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
67852         (func_get_filelist): Add m4/gnulib-common.m4.
67853
67854 2007-01-08  Bruno Haible  <bruno@clisp.org>
67855
67856         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
67857         command.
67858
67859 2007-01-08  Jim Meyering  <jim@meyering.net>
67860
67861         Use a more robust test for a "can't happen" condition.
67862         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
67863         narrowed the st_size value.  Presuming the "can't happen" condition
67864         is true, that narrowing could conceivably convert an invalid st_size
67865         value into a valid one.  Instead, use a change based on Matthew
67866         Woehlke's original patch.
67867
67868         Slight readability improvement: use an assert-like macro
67869         in place of literal "abort ()" uses.
67870         * lib/fts.c (fts_assert): Define.
67871         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
67872         Use this macro instead of a bare 'abort'.
67873
67874 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
67875
67876         Don't worry about using IRIX 5.3's wctype.h broken definitions;
67877         simply work around them.
67878         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
67879         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
67880         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
67881         declaring.
67882         Don't bother to define as macros, since the standard doesn't require it.
67883         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
67884         longer worry about IRIX 5.3.
67885         (HAVE_WCTYPE_CTMP_BUG): Remove.
67886
67887 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67888
67889         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
67890         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
67891         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67892         Problems reported by Georg Schwarz for IRIX 5.3.
67893
67894         * gnulib-tool (autoconf_minversion): Take the maximum version number
67895         found, not the minimum.  Problem reported by James Youngman.
67896
67897 2007-01-03  Karl Berry  <karl@gnu.org>
67898
67899         * doc/error.texi: new file, explaining interaction with progname.
67900         * doc/gnulib.texi: include it.  Update copyright.
67901
67902 2007-01-03  Simon Josefsson  <simon@josefsson.org>
67903
67904         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
67905         AC_CANONICAL_HOST, to improve autobuild outputs.
67906
67907 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
67908             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67909
67910         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
67911         sockets, server sockets, and other file descriptors.  Count errors
67912         to compute the return value.  Reorder the code a bit to be easier
67913         to follow.  Don't set event bits that were not requested (except
67914         POLLERR and POLLHUP).
67915
67916 2007-01-01  Bruno Haible  <bruno@clisp.org>
67917
67918         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
67919
67920 2007-01-03  Jim Meyering  <jim@meyering.net>
67921
67922         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
67923
67924 2007-01-02  Bruno Haible  <bruno@clisp.org>
67925
67926         * modules/settime (Include): Require timespec.h.
67927         * modules/nanosleep (Include): Likewise.
67928
67929 2007-01-01  Bruno Haible  <bruno@clisp.org>
67930
67931         * gnulib-tool (func_emit_copyright_notice): Bump year.
67932         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
67933
67934 2007-01-01  Bruno Haible  <bruno@clisp.org>
67935
67936         Improve support for OpenBSD.
67937         * build-aux/config.rpath (libname_spec): Export.
67938         (library_names_spec): New variable. Export.
67939         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
67940         library_names_spec from the config.rpath output. Locate shared library
67941         through the name pattern in library_names_spec.
67942
67943 2007-01-01  Eric Blake  <ebb9@byu.net>
67944
67945         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
67946
67947 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
67948
67949         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
67950         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
67951         assume the C locale, and avoid an "eval" that could cause trouble.
67952         Problem with SORT reported by Bob Proulx.
67953
67954         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
67955         Define.  Trivial patch from Henning Nielsen Lund, originally
67956         sent to bug-grep@gnu.org today.
67957
67958 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
67959
67960         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
67961         struct stat.  Problem reported by Henning Nielsen Lund.
67962         * lib/acl.c: Include acl.h first, to check interface.  Don't
67963         bother to include sys/types.h and sys/stat.h again.
67964
67965 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67966
67967         Import the following change from libc; problem reported by
67968         Sven Verdoolaege.
67969
67970         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
67971
67972         [BZ #1373]
67973         * lib/argp.h: Remove __NTH for __argp_usage inline function.
67974
67975 2006-12-28  Jim Meyering  <jim@meyering.net>
67976
67977         * build-aux/announce-gen: Do not assume that the package
67978         builds any of tar.gz, tar.bz2, and .xdelta files.
67979         Suggestion from Simon Josefsson.
67980
67981 2006-12-28  Simon Josefsson  <simon@josefsson.org>
67982
67983         * modules/announce-gen: New file.
67984
67985 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
67986
67987         * lib/mbchar.h: Just include <wctype.h>; the wctype module
67988         handles its gotchas now.
67989         * lib/mbswidth.c: Likewise.
67990         * lib/wcwidth.h: Likewise.
67991         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
67992         and iswcntrl; the wctype module does this stuff now.
67993         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67994         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67995         * modules/mbchar (Depends-on): Add wctype.
67996         * modules/mbswidth (Depends-on): Likewise.
67997         * modules/wcwidth (Depends-on): Likewise.
67998
67999 2006-12-27  Eric Blake  <ebb9@byu.net>
68000
68001         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
68002         module uses more than what <wctype.h> is required to provide.
68003
68004 2006-12-26  Eric Blake  <ebb9@byu.net>
68005
68006         * gnulib-tool (sed_extract_prog): Avoid space-tab.
68007
68008 2006-12-26  Eric Blake  <ebb9@byu.net>
68009
68010         * modules/absolute-header: New module.
68011         * modules/fcntl (Depends-on): Depend on it.
68012         * modules/inttypes (Depends-on): Likewise.
68013         * modules/stdint (Depends-on): Likewise.
68014         * modules/sys_stat (Depends-on): Likewise.
68015         * modules/wctype (Depends-on): Likewise.
68016         * MODULES.html.sh (Support for building libraries and
68017         executables): Document it.
68018
68019 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
68020
68021         * gnulib-tool (SED): Remove, undoing previous change.
68022         The problem was that it broke coreutils on Solaris, because
68023         "sed --posix" leaked into a makefile.
68024         (sed): New alias, if 'alias' and GNU sed.
68025
68026 2006-12-24  Jim Meyering  <jim@meyering.net>
68027
68028         Work around an fchownat bug in glibc-2.4:
68029         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
68030         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
68031         in spite of the -P option.
68032         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
68033         New macros.
68034         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
68035         * modules/openat (Files): Add lib/fchownat.c.
68036         * lib/openat.c (fchownat): Don't define here.  Move to...
68037         * lib/fchownat.c: ...this new file.
68038
68039 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68040
68041         Fix bug reported by Bruno Haible in
68042         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
68043         where quotearg.c didn't compile on Mac OS X 10.2 because it
68044         lacks <wchar.h> and wint_t.
68045         * lib/wctype_.h (__wctype_wint_t): New type.
68046         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
68047         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
68048         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
68049         Arg is now of type __wctype_wint_t, not wint_t.
68050         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
68051         substitute HAVE_WINT_T.
68052         * modules/wctype (Files): Add m4/wint_t.m4.
68053         (wctype.h): Substitute HAVE_WINT_T.
68054
68055 2006-12-23  Bruno Haible  <bruno@clisp.org>
68056
68057         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
68058
68059 2006-12-23  Bruno Haible  <bruno@clisp.org>
68060
68061         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
68062         S_ISLNK.
68063         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
68064         mingw.
68065
68066 2006-12-22  Bruno Haible  <bruno@clisp.org>
68067
68068         * lib/copy-file.c: Include acl.h.
68069         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
68070         Close the file descriptors only after being done with copy_acl.
68071         * modules/copy-file (Depends-on): Add acl.
68072
68073 2006-12-22  Bruno Haible  <bruno@clisp.org>
68074
68075         * gnulib-tool (SED): New variable.
68076         Use $SED instead of sed everywhere.
68077
68078 2006-12-22  Bruno Haible  <bruno@clisp.org>
68079
68080         * modules/no-c++: New file.
68081         * m4/no-c++.m4: New file.
68082         * MODULES.html.sh (Support for building libraries and executables):
68083         Add no-c++.
68084
68085 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
68086
68087         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68088         Include <limits.h>, and use its INT_MAX to rewrite the
68089         j loop so that it does not overflow 'int'.  Problem reported by
68090         Ralf Wildenhues in
68091         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
68092         Play it safe by shifting left by 1 rather than multiplying by 2,
68093         as GCC is less likely to optimize this away when the value
68094         is signed (when it assumes overflow leads to undefined behavior).
68095         Also, don't assume time_t uses two's complement.
68096
68097 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
68098
68099         * MODULES.html.sh: New module wctype.
68100         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
68101         * lib/fnmatch.c: Don't bother to include <wchar.h> before
68102         <wctype.h>, since the new wctype module should fix this.
68103         * lib/quotearg.c: Include <wctype.h> unconditionally, since
68104         the wctype module should arrange for it.
68105         * lib/regex_internal.h: Likewise.
68106         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
68107         since the wctype module should handle this now.
68108         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
68109         * modules/fnmatch (Depends-on): Add wctype.
68110         * modules/quotearg (Depends-on): Likewise.
68111         * modules/regex (Depends-on): Likewise.
68112
68113 2006-12-19  Bruno Haible  <bruno@clisp.org>
68114
68115         * lib/strdup.h [C++]: Wrap definitions in extern "C".
68116         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
68117
68118 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68119
68120         * modules/savewd (Depends-on): Fix dependency on fcntl.
68121
68122 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68123
68124         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
68125         conforms to C99, rather than relying on the user's environment
68126         setting of STDINT_H.
68127
68128 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68129         and Eric Blake  <ebb9@byu.net>
68130
68131         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
68132         This is more consistent with the other defines here.
68133         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
68134         Port to z/OS.  Problem reported by Paul Gilmartin.
68135         Change local vars to use gl_ prefix rather than ac_.
68136         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
68137         with other defines.
68138         * modules/double-slash-root: New module.
68139         * modules/dirname (Files): Remove m4/double-slash-root.m4.
68140         (Depends-on): Add double-slash-root.
68141         * MODULES.html.sh (File system functions): Mention new module.
68142
68143 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
68144
68145         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
68146         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
68147         This is for the benefit of gzip, which doesn't do i18n.
68148
68149 2006-12-12  Jim Meyering  <jim@meyering.net>
68150
68151         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
68152         Reported by Andreas Schwab <schwab@suse.de>.
68153
68154 2006-12-12  Bruno Haible  <bruno@clisp.org>
68155
68156         Merge these changes.
68157         2006-09-05  Bruno Haible  <bruno@clisp.org>
68158         * lib/iconvme.c (iconv_string): No need to save and restore errno when
68159         iconv_alloc succeeded.
68160         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
68161         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
68162         test for " && dest " at the end - dest is always != NULL there. Call
68163         iconv with 4xNULL arguments initially, to reset the state. Call iconv
68164         with 2xNULL arguments, also to flush the state storage. Handle the
68165         IRIX iconv behaviour. Realloc the final result, to throw away unused
68166         memory.
68167
68168 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
68169
68170         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
68171         and fchmodat unconditionally, since glibc 2.4 has them.
68172         Problem reported by Arkadiusz Miskiewicz.
68173
68174 2006-12-10  Bruno Haible  <bruno@clisp.org>
68175
68176         * gnulib-tool (func_import): Show the include files only for those
68177         modules that are copied and specified.
68178         Reported by Karl Berry.
68179
68180 2006-12-08  Jim Meyering  <jim@meyering.net>
68181
68182         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
68183         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
68184
68185         * build-aux/announce-gen: Add two new options, both optional:
68186         --bootstrap-tools=TOOL_LIST
68187               a comma-separated list of tools, e.g.,
68188               autoconf,automake,bison,gnulib
68189         --gnulib-snapshot-date=DATE
68190               if gnulib is in the bootstrap tool list,
68191               then report this as the snapshot date.
68192               If not specified, use the current date/time.
68193               If you specify a date here, be sure it's UTC.
68194
68195 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68196
68197         * tests/test-argp-2.sh: Fix test to match actual output.
68198         (func_compare): Fix sed script to be portable.
68199
68200 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
68201
68202         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
68203         workaround for this case.  It is not autoconfigured now; offhand
68204         it's hard to see how to autoconfigure it.
68205
68206 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
68207
68208         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
68209         a directory that is about to be chowned.  Such a directory's
68210         initial file permissions should permit the owner only and this
68211         should not be changed until after the chown, since the group and
68212         other bits would be incorrect if they granted permission before
68213         the chown.
68214
68215         Fix porting problem for iswctype reported by Georg Schwarz in:
68216         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
68217         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
68218         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
68219         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
68220         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68221
68222 2006-12-03  Jim Meyering  <jim@meyering.net>
68223
68224         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
68225         p->fts_statp may not yet be defined.
68226         (fts_read): Instead, set it in the caller, once p->fts_statp is
68227         sure to be defined, and corresponds to a top-level directory.
68228         This bug made du -x fail.  Here's the coreutils test case:
68229         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
68230         Reported by Mike Frysinger.
68231
68232 2006-12-01  Jim Meyering  <jim@meyering.net>
68233
68234         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
68235         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
68236         Reported by Simon Josefsson.
68237
68238 2006-11-30  Jim Meyering  <jim@meyering.net>
68239
68240         * m4/warning.m4: Use the all-permissive copyright notice
68241         recommended by RMS (rather than LGPL).
68242         * m4/vararrays.m4: Likewise.
68243         * m4/flexmember.m4: Likewise.
68244
68245 2006-11-29  Bruno Haible  <bruno@clisp.org>
68246
68247         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68248         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
68249         using +=.
68250         Reported by Simon Josefsson <simon@josefsson.org>.
68251
68252 2006-11-28  James Youngman <jay@gnu.org>
68253
68254         * README: Advise users that they might find the bug-gnulib@gnu.org
68255         and autotools-announce@gnu.org mailing lists useful.
68256
68257 2006-11-28  Bruno Haible  <bruno@clisp.org>
68258
68259         * m4/ptrdiff_max.m4: Remove file.
68260
68261 2006-11-21  Bruno Haible  <bruno@clisp.org>
68262
68263         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
68264         _AC_COMPUTE_INT.
68265         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68266         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
68267         _AC_COMPUTE_INT.
68268         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68269         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
68270         _AC_COMPUTE_INT.
68271         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68272
68273 2006-11-28  Jim Meyering  <jim@meyering.net>
68274
68275         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
68276         warning from "gcc -Wshadow" about shadowing the builtin.
68277
68278 2006-11-27  Bruno Haible  <bruno@clisp.org>
68279
68280         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): 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-27  Bruno Haible  <bruno@clisp.org>
68285             Paul Eggert  <eggert@cs.ucla.edu>
68286
68287         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
68288
68289 2006-11-26  Bruno Haible  <bruno@clisp.org>
68290
68291         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68292         noinst_LTLIBRARIES.
68293
68294 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68295             Bruno Haible  <bruno@clisp.org>
68296
68297         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
68298         if compiling with "gcc -ansi".
68299
68300 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68301
68302         Fix some incompatibilities with gcc -ansi -pedantic.
68303         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
68304         if compiling pedantically with GCC, unless it's C99 or later.
68305         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
68306         it mishandles gcc -ansi -pedantic as well.
68307         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
68308         if gcc -pedantic.
68309         * lib/regexec.c (check_node_accept_bytes): Don't use auto
68310         initializers for struct if -pedantic, unless it's C99 or later.
68311
68312 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
68313
68314         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
68315         Don't close an fd more than once. Identical atimes indicate
68316         success, not failure.
68317
68318 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
68319
68320         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
68321
68322 2006-11-23  Jim Meyering  <jim@meyering.net>
68323
68324         * build-aux/announce-gen: New file.  From coreutils.
68325
68326 2006-11-22  Jim Meyering  <jim@meyering.net>
68327
68328         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
68329         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
68330         (fts_read): Use a temporary to narrow the overused st_size member
68331         before using it in a switch statement.  Reported by Matthew Woehlke.
68332
68333         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
68334         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68335
68336 2006-11-20  Bruno Haible  <bruno@clisp.org>
68337
68338         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
68339         changequote instead of pairs of brackets.
68340         Reported by Andreas Schwab <schwab@suse.de>.
68341
68342 2006-11-21  Jim Meyering  <jim@meyering.net>
68343
68344         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
68345         so as to remain compatible with older compilers.
68346         Patch from Michael Deutschmann.
68347
68348 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68349
68350         * MODULES.html.sh (File system functions): Add openat.
68351
68352         * lib/openat.h (rpl_fstatat): New macro, if
68353         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
68354         (fstatat): Define to rpl_fstatat under the same conditions,
68355         unless COMPILING_FSTATAT.
68356         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
68357         seems to have the bug.
68358         * lib/fstatat.c: New file.
68359         * modules/openat (Files): Add it.
68360
68361 2006-11-20  Bruno Haible  <bruno@clisp.org>
68362
68363         * Makefile: New file.
68364
68365 2006-11-20  Jim Meyering  <jim@meyering.net>
68366
68367         The beginnings of syntax-related checks for gnulib.
68368         * lib/Makefile: New file.
68369         * lib/t-idcache: New script.  Ensure that the two halves of
68370         idcache.c stay in sync.
68371
68372         * lib/idcache.c: Adjust comments in user- and group- portions to
68373         be more accurate, and to be consistent with one another.
68374
68375 2006-11-20  Jim Meyering  <jim@meyering.net>
68376
68377         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
68378         continue using the flexible array member (thus, this module performs
68379         half as many malloc calls), with the addition that...
68380         (getgroup, getuser): Consistently record a non-match via an empty
68381         "name" string, and map an empty string match to a NULL return value.
68382         * modules/idcache (Depends-on): Re-add flexmember.
68383
68384         * lib/idcache.c (getuser): Remove all uses of the register keyword.
68385         (getuidbyname, getgroup, getgidbyname): Likewise.
68386
68387         Use cleaner syntax: NULL rather than 0.
68388         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
68389
68390 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68391
68392         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
68393         It mishandled the case where the group was missing.
68394         Problem reported by Greg Schafer.
68395         * modules/idcache: Likewise.
68396
68397 2006-11-18  Jim Meyering  <jim@meyering.net>
68398
68399         * check-module (%exempt_header): Add exception for some
68400         conditionally-included headers.
68401
68402         * modules/i-ring (Depends-on): Add verify.
68403         (License): Change to LGPL.
68404
68405 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68406
68407         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
68408         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
68409         and inttostr.h.  Use snprintf rather than uinttostr, so that
68410         LGPLed code doesn't depend on GPLed.
68411
68412 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68413
68414         * modules/inline (License): Change from GPL to LGPL.
68415
68416 2006-11-17  Jim Meyering  <jim@meyering.net>
68417
68418         * modules/d-type (License): Switch to LGPL.
68419
68420 2006-11-15  Bruno Haible  <bruno@clisp.org>
68421
68422         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
68423
68424 2006-11-15  Eric Blake  <ebb9@byu.net>
68425
68426         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
68427         the module dependency.
68428
68429 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68430             Bruno Haible  <bruno@clisp.org>
68431
68432         * gnulib-tool (func_create_testdir): Add license consistency check.
68433
68434 2006-11-15  Eric Blake  <ebb9@byu.net>
68435
68436         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
68437         random "(cached)" in configure output.
68438
68439 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68440
68441         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
68442         test for conforming inttypes.h is both announced and cached.
68443
68444         * MODULES.html.sh (seen_modules, seen_files): New variables.
68445         (func_module): Rewrite to use a few less gnulib-tool and sed
68446         invocations.  Avoid a couple of quadratic algorithms for ...
68447         (missed_modules, missed_files): ... these, with ...
68448         (func_append, func_tmpdir): ... these new functions, from
68449         gnulib-tool.  Analogously, install traps for cleanup.
68450
68451         * tests/test-gc.c (main): Remove unused variables.
68452         * tests/test-read-file.c: Include stdlib.h, for 'free'.
68453
68454 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
68455
68456         * modules/inttostr (License): Change to LGPL.
68457
68458 2006-11-14  Eric Blake  <ebb9@byu.net>
68459
68460         * modules/tempname (License): Change to LGPL.
68461
68462 2006-11-14  Eric Blake  <ebb9@byu.net>
68463
68464         * doc/functions.texi (Function Portability): *printf functions on
68465         Cygwin now understand all POSIX size specifiers.
68466
68467 2006-11-14  Bruno Haible  <bruno@clisp.org>
68468
68469         * modules/c-ctype (License): Change to LGPL.
68470
68471 2006-11-12  Bruno Haible  <bruno@clisp.org>
68472
68473         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
68474         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
68475         for GNOME libraries, for which the include files are installed in
68476         subdirectories of $prefix/include.
68477
68478 2006-11-12  Bruno Haible  <bruno@clisp.org>
68479
68480         * m4/lib-link.m4: Require at least autoconf-2.54.
68481         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
68482         name to underscores for the --with option.
68483
68484 2006-11-13  Bruno Haible  <bruno@clisp.org>
68485
68486         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
68487         the tests directory.
68488         Reported by Ralf Wildenhues.
68489
68490 2006-11-13  Bruno Haible  <bruno@clisp.org>
68491
68492         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
68493         (func_emit_initmacro_end): Undo the override here.
68494         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
68495         Works around the famous automake error in coreutils.
68496
68497 2006-11-13  Eric Blake  <ebb9@byu.net>
68498
68499         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
68500         element, not its node.
68501
68502 2006-11-12  Bruno Haible  <bruno@clisp.org>
68503
68504         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
68505         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
68506
68507 2006-11-12  Bruno Haible  <bruno@clisp.org>
68508
68509         * gnulib-tool: New option --local-symlink.
68510         (func_usage): Document it.
68511         (lsymbolic): New variable.
68512         (func_import, func_create_testdir): If --symlink was not specified,
68513         test whether --local-symlink was specified and the file comes from
68514         the local_gnulib_dir.
68515
68516 2006-11-12  Bruno Haible  <bruno@clisp.org>
68517
68518         * gnulib-tool (func_ln): New function.
68519         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
68520
68521 2006-11-12  Bruno Haible  <bruno@clisp.org>
68522
68523         Finish support for source files in subdirectories.
68524         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
68525         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
68526         AUTOMAKE_OPTIONS.
68527         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
68528
68529 2006-11-12  Bruno Haible  <bruno@clisp.org>
68530
68531         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68532         EXTRA_lib_SOURCES augmentation.
68533         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
68534
68535 2006-11-12  Jim Meyering  <jim@meyering.net>
68536
68537         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
68538         file descriptors.  This also averts a failure on systems with
68539         native openat support when a traversed directory lacks "x" access.
68540         * lib/fts_.h: Include "i-ring.h"
68541         (struct FTS) [fts_fd_ring]: New member.
68542         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
68543         (FCHDIR): Add parentheses.
68544         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
68545         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
68546         When descending, rather than simply closing the previous
68547         fts_cwd_fd value, push that file descriptor onto the ring.
68548         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
68549         (fts_open): Initialize the new fd_ring member.
68550         (fts_close): Clear the ring.
68551         (fts_safe_changedir): When possible, use our new fd_ring to skip
68552         the diropen and fstat and dev/ino comparison that would normally
68553         accompany a virtual `chdir ("..")'.
68554
68555         * modules/fts (Depends-on): Add i-ring.
68556         * modules/i-ring: New module.
68557         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
68558         * m4/i-ring.m4: New file.
68559
68560 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68561
68562         * gnulib-tool (func_create_testdir): Fix replacement of
68563         `build-aux' in configure.ac.  Run autotools in gltests
68564         subdirectory.
68565         (func_create_testdir, func_create_megatestdir, test): There is
68566         no need for '--force' in most autotool invocations in a new
68567         tree.  Actually fail the whole test if any of the tools, or the
68568         configure or make stages fail.
68569
68570         Sync from Automake.
68571         * build-aux/gnupload: Revert last change.  Add pointer to upload
68572         instructions of the GNU Maintenance Instructions.
68573         Suggestion by Karl Berry.
68574
68575 2006-11-10  Jim Meyering  <jim@meyering.net>
68576
68577         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
68578
68579 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68580
68581         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
68582         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
68583         (bind_textdomain_codeset) [! ENABLE_NLS]:
68584         Evaluate all the arguments.  That way, callers get compatible behavior
68585         if the arguments have side effects.  Also, it avoids some GCC
68586         diagnostics in some cases; Joel E. Denny reported problems when Bison
68587         was configured with --enable-gcc-warnigs.
68588
68589 2006-11-10  Jim Meyering  <jim@meyering.net>
68590
68591         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
68592         relevant options in CFLAGS (like -O, -fno-inline) are taken into
68593         account.
68594
68595 2006-11-10  Jim Meyering  <jim@meyering.net>
68596
68597         * modules/inline: New file/module.
68598         * modules/xalloc (Files): Remove m4/inline.m4.
68599         (Depends-on): Add inline, instead.
68600         * modules/oset: Likewise.
68601         * modules/list: Likewise.
68602
68603 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68604
68605         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
68606         Problem reported by Matthew Woehlke.
68607
68608 2006-11-09  Bruno Haible  <bruno@clisp.org>
68609
68610         * lib/tempname.c (gen_tempname): Remove variant that invokes
68611         __gen_tempname.
68612         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
68613         __gen_tempname.
68614
68615 2006-11-08  Bruno Haible  <bruno@clisp.org>
68616
68617         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
68618         to 'yes' instead of 'cross-compiling'.
68619
68620 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
68621
68622         * lib/quotearg.h (quotearg_free): New decl.
68623         * lib/quotearg.c (quotearg_free): New function.
68624         (slot0, nslots, slotvec0, slotvec):
68625         Now file-scope so that quotearg_free can get at them.
68626
68627 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68628
68629         Sync from Automake.
68630         * build-aux/gnupload: Add missing 'gnu' to example URL.
68631         Report by Karl Berry.
68632
68633 2006-11-08  Bruno Haible  <bruno@clisp.org>
68634
68635         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
68636         Suggested by Paul Eggert.
68637
68638 2006-11-08  Jim Meyering  <jim@meyering.net>
68639
68640         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
68641         It's already included if !_LIBC.
68642         (fts_safe_changedir): Add a comment.
68643
68644 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68645
68646         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
68647         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
68648         Matthew Woehlke.
68649
68650         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
68651         definitions up, to avoid colliding with change below.
68652         (static_inline) [HAVE_INLINE]: New macro.
68653         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
68654         Provide extern decls when !HAVE_INLINE.  Do not define unless
68655         static_inline is defined, either by us or by xmalloc.c.  Use
68656         static_inline rather than static inline.
68657         (XCALLOC): Optimize sizeof(T) = 1 case.
68658         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
68659
68660 2006-11-07  Bruno Haible  <bruno@clisp.org>
68661
68662         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
68663         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
68664         AC_C_INLINE.
68665         * modules/xalloc (Files): Add m4/inline.m4.
68666
68667 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68668
68669         * README: Fix typo.
68670         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
68671         (Miscellanous Notes): ...from this.
68672
68673 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68674
68675         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
68676         Mention that offsetof should be used instead of sizeof.
68677         From Bruno Haible.
68678
68679 2006-11-07  Bruno Haible  <bruno@clisp.org>
68680
68681         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
68682
68683 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68684
68685         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68686         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
68687         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68688         (gl_tree_add_before, gl_tree_add_after):
68689         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
68690         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
68691         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68692         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
68693         (gl_linked_add_after, gl_linked_add_at): Likewise.
68694         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
68695         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68696         (gl_tree_add_before, gl_tree_add_after): Likewise.
68697         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
68698         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
68699         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
68700
68701 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68702
68703         * lib/gl_oset.h: Use C comment style, not C++ comment style.
68704
68705 2006-11-06  Bruno Haible  <bruno@clisp.org>
68706
68707         * m4/inline.m4: New file.
68708         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
68709         * modules/list (Files): Add m4/inline.m4.
68710         * modules/oset (Files): Likewise.
68711
68712 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68713
68714         * lib/idcache.c: Include <stddef.h>, for offsetof.
68715         (struct userid.name): Change from char * to a flexible array member.
68716         All uses changed.
68717         * modules/idcache (Depends-on): Add flexmember.
68718
68719         * MODULES.html.sh (Core language properties): New module flexmember.
68720         * modules/flexmember, m4/flexmember.m4: New files.
68721
68722         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
68723         inline functions that are identical with the old xnmalloc_inline,
68724         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
68725         that we can avoid some unnecessary integer multiplications and
68726         divisions in the common case where the element size is known at
68727         compile time.
68728         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
68729         needed.
68730         (xnboundedmalloc): Remove.
68731         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
68732         arguments, for consistency with rest of this header.
68733         (xcharalloc): Rewrite using XNMALLOC.
68734         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
68735         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
68736         versions have been moved to lib/xalloc.h and renamed to be the
68737         non-*_inline versions.
68738         (xmalloc, xrealloc): Implement without reference to the xnmalloc
68739         and xnrealloc functions, since those functions are now inline and
68740         now call us.
68741         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
68742         renaming described above.
68743         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
68744         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
68745         captures the dependency in AC_C_INLINE.
68746
68747         New module canonicalize-lgpl, proposed by Charles Wilson in
68748         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
68749         with a few small changes afterwards.
68750         * MODULES.html.sh (File system functions): New module
68751         canonicalize-lgpl.
68752         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
68753         and canonicalize_file_name.
68754         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
68755         * modules/canonicalize-lgpl: New files.
68756
68757 2006-11-05  Bruno Haible  <bruno@clisp.org>
68758
68759         * gnulib-tool (func_import, func_create_testdir): Create directories
68760         also for files in subdirectories of lib/.
68761
68762 2006-11-05  Bruno Haible  <bruno@clisp.org>
68763
68764         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
68765         ANSI C compliant.
68766
68767 2006-11-03  Bruno Haible  <bruno@clisp.org>
68768
68769         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68770         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
68771         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
68772         (xnboundedmalloc): New inline function.
68773         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
68774         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
68775         xmalloc.
68776         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
68777         xmalloc.
68778         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
68779         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
68780         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
68781         xmalloc.
68782         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68783         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
68784         xmalloc.
68785         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
68786         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68787         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
68788         xmalloc.
68789         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68790         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
68791         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68792         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
68793         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
68794         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
68795         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
68796
68797 2006-11-03  Bruno Haible  <bruno@clisp.org>
68798
68799         * lib/c-ctype.h [C++]: Define functions without name mangling.
68800         * lib/fwriteerror.h [C++]: Likewise.
68801         * lib/gcd.h [C++]: Likewise.
68802         * lib/linebreak.h [C++]: Likewise.
68803
68804 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
68807         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
68808         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
68809         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68810         Check for functions and headers just once.
68811         Check for declaration of canonicalize_file_name.
68812         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
68813
68814 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68815
68816         * gnulib-tool (func_import): Fix typo in actioncmd.
68817
68818 2006-11-02  Bruno Haible  <bruno@clisp.org>
68819
68820         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
68821         newline sequence in the Makefile.am snippet as a space, like "make"
68822         does.
68823         Reported by Roger Persson <perrog@gmail.com>.
68824
68825 2006-11-01  Bruno Haible  <bruno@clisp.org>
68826
68827         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
68828         already declared in <string.h>.
68829         * lib/strcase.h (strncasecmp): Don't declare it if yes.
68830
68831 2006-11-01  Bruno Haible  <bruno@clisp.org>
68832
68833         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
68834         * lib/strcase.h: Include <string.h>.
68835         (strcasecmp): Define to rpl_strcasecmp here.
68836
68837 2006-11-01  Bruno Haible  <bruno@clisp.org>
68838
68839         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
68840
68841 2006-11-01  Eric Blake  <ebb9@byu.net>
68842
68843         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
68844
68845         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
68846
68847 2006-10-29  Bruno Haible  <bruno@clisp.org>
68848
68849         Make it compile in C++ mode.
68850         * lib/full-write.c (full_rw): Add a cast.
68851
68852 2006-11-01  Bruno Haible  <bruno@clisp.org>
68853
68854         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
68855         be POSIX compliant.
68856         Reported by Roger Persson <perrog@gmail.com>.
68857
68858 2006-11-01  Eric Blake  <ebb9@byu.net>
68859
68860         * lib/getopt_.h: Fix comments.
68861
68862 2006-10-31  Eric Blake  <ebb9@byu.net>
68863
68864         * modules/tmpdir (Depends-on): Add sys_stat.
68865         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
68866         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
68867         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
68868         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
68869         tempname.
68870
68871 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
68872
68873         Avoid some C++ diagnostics reported by Bruno Haible.
68874         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
68875         xmalloc.
68876         (quotearg_alloc): Use xcharalloc rather than xmalloc.
68877         (struct slotvec): Move to top level.
68878         (quotearg_n_options): Rewrite to avoid xmalloc.
68879         * lib/xalloc.h (xcharalloc): New function.
68880         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
68881         [defined __cplusplus]: Add function template that provides result
68882         type propagation.  This part of the change is from Bruno Haible.
68883
68884 2006-10-29  Bruno Haible  <bruno@clisp.org>
68885
68886         Make it compile in C++ mode.
68887         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
68888         * lib/strnlen1.c (strnlen1): Cast memchr result.
68889         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
68890         * lib/clean-temp.c (string_equals, string_hash): Add casts.
68891         (create_temp_dir): Rename local variable 'template'.
68892         (compile_csharp_using_sscli): Add cast.
68893         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
68894         * lib/findprog.c (find_in_path): Likewise.
68895         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
68896         * lib/wait-process.c (register_slave_subprocess): Likewise.
68897
68898 2006-10-22  Bruno Haible  <bruno@clisp.org>
68899
68900         * modules/tsearch: New file.
68901         * lib/tsearch.h: New file.
68902         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
68903         * m4/tsearch.m4: New file.
68904         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
68905
68906 2006-10-29  Eric Blake  <ebb9@byu.net>
68907
68908         * lib/arcfour.c: Assume config.h.
68909         * lib/arctwo.c: Likewise.
68910         * lib/base64.c: Likewise.
68911         * lib/check-version.c: Likewise.
68912         * lib/crc.c: Likewise.
68913         * lib/des.c: Likewise.
68914         * lib/gc-gnulib.c: Likewise.
68915         * lib/gc-libgcrypt.c: Likewise.
68916         * lib/gc-pbkdf2-sha1.c: Likewise.
68917         * lib/getaddrinfo.c: Likewise.
68918         * lib/getdelim.c: Likewise.
68919         * lib/getline.c: Likewise.
68920         * lib/hmac-md5.c: Likewise.
68921         * lib/hmac-sha1.c: Likewise.
68922         * lib/iconvme.c: Likewise.
68923         * lib/md2.c: Likewise.
68924         * lib/md4.c: Likewise.
68925         * lib/memxor.c: Likewise.
68926         * lib/read-file.c: Likewise.
68927         * lib/readline.c: Likewise.
68928         * lib/rijndael-alg-fst.c: Likewise.
68929         * lib/rijndael-api-fst.c: Likewise.
68930         * lib/xgetdomainname.c: Likewise.
68931
68932 2006-10-28  Eric Blake  <ebb9@byu.net>
68933
68934         * lib/xstrndup.c: Assume config.h.
68935
68936 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68937
68938         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
68939         stat-macros.h is now for our own macros, whereas stat_h is for
68940         macros in the <sys/stat.h> name space.
68941         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
68942         (STAT_MACROS_H): Remove.
68943         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
68944         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
68945         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
68946         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
68947         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
68948         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
68949         Move these macros to ...
68950         * lib/stat_.h: here.  Don't include stat-macros.h.
68951         * lib/canonicalize.c: Don't include stat-macros.h.
68952         * lib/chown.c: Likewise.
68953         * lib/euidaccess.c: Likewise.
68954         * lib/file-type.c: Likewise.
68955         * lib/filemode.c: Likewise.
68956         * lib/glob.c: Likewise.
68957         * lib/isapipe.c: Likewise.
68958         * lib/lchown.c: Likewise.
68959         * lib/lstat.c: Likewise.
68960         * lib/mkdir-p.c: Likewise.
68961         * lib/rmdir.c: Likewise.
68962         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
68963         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
68964         unless mkdir isn't declared, to speed up 'configure'.
68965         Always create sys/stat.h, since it's unlikely any real sys/stat.h
68966         would define all the S_* symbols.
68967         * modules/canonicalize (Depends-on):
68968         Depend on sys_stat, not stat-macros.
68969         * modules/chown: Likewise.
68970         * modules/euidaccess: Likewise.
68971         * modules/filemode: Likewise.
68972         * modules/file-type: Likewise.
68973         * modules/glob: Likewise.
68974         * modules/isapipe: Likewise.
68975         * modules/lchown: Likewise.
68976         * modules/lstat: Likewise.
68977         * modules/mkancesdirs: Likewise.
68978         * modules/rmdir: Likewise.
68979         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
68980         * modules/modechange: Likewise.
68981         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
68982         (configure.ac): Remove gl_STAT_MACROS.
68983         * modules/sys_stat (Depends-on): Remove stat-macros.
68984
68985 2006-10-27  Bruno Haible  <bruno@clisp.org>
68986
68987         * m4/signed.m4: Remove file.
68988         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
68989         invocation.
68990         * modules/vasnprintf (Files): Remove m4/signed.m4.
68991
68992 2006-10-27  Bruno Haible  <bruno@clisp.org>
68993
68994         Update to GNU gettext 0.16.
68995         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
68996         m4/inttypes-h.m4, m4/signed.m4.
68997         * m4/gettext.m4: Update to GNU gettext 0.16.
68998         * m4/intl.m4: New file, from GNU gettext.
68999         * m4/intldir.m4: New file, from GNU gettext.
69000         * config/srclist.txt: Update
69001
69002 2006-10-27  Eric Blake  <ebb9@byu.net>
69003
69004         * MODULES.html.sh: Document tempname.
69005         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
69006         dependencies.
69007         (Files): Move lib/tempname.c...
69008         * modules/tempname: ...to this new module.
69009         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
69010         (gl_PREREQ_TEMPNAME): Move...
69011         * m4/tempname.m4: ...to this new file.
69012         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
69013         * modules/sys_stat (Depends-on): Add stat-macros.
69014         * lib/stat_.h (includes): Pick up stat macros.
69015         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
69016         if stat macros are broken.
69017         * lib/tempname.c (includes): No need to include "stat-macros.h".
69018         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
69019         (direxists, __path_search) [!_LIBC]: Don't compile these in
69020         gnulib; the tmpdir module covers that.
69021         * lib/tempname.h: New file.
69022
69023 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
69024
69025         * COPYING: Explain how gnulib-tool converts licence headers.
69026         Almost all wording by Eric Blake.
69027
69028 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
69029
69030         * lib/mbchar.h (is_basic_table): Make read-only.
69031         * lib/mbchar.c (is_basic_table): Likewise.
69032         Reported by John Darrington.
69033
69034 2006-10-25  Bruno Haible  <bruno@clisp.org>
69035
69036         * lib/progname.h (set_program_name): Undefine before defining.
69037
69038 2006-10-25  Bruno Haible  <bruno@clisp.org>
69039
69040         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
69041         false for non-gcc C++ compilers.
69042         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
69043
69044 2006-10-24  Bruno Haible  <bruno@clisp.org>
69045
69046         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
69047         iconv implementations like Irix iconv.
69048
69049 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69050
69051         * modules/vararrays: New file.
69052         * m4/vararrays.m4: New file, taken from diffutils.
69053         * MODULES.html.sh: New module vararrays.
69054
69055 2006-10-24  Karl Berry  <karl@gnu.org>
69056
69057         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
69058         Don't call GNU Unix.
69059
69060 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69061
69062         * users.txt: Add Libtool.
69063
69064         Sync from Libtool:
69065
69066         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69067
69068         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
69069         to gnulib's policy of including config.h unconditionally.
69070
69071 2006-10-24  Bruno Haible  <bruno@clisp.org>
69072
69073         * modules/wcwidth (Files): Add m4/wint_t.m4.
69074         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
69075         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
69076
69077 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69078
69079         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
69080         to pacify GCC with some -W flags enabled.  Problem reported by
69081         Bruno Haible.
69082
69083 2006-10-24  Jim Meyering  <jim@meyering.net>
69084
69085         * MODULES.html.sh: Remove uinttostr.  It's not a module.
69086         Reported by Karl Berry.
69087
69088 2006-10-23  Bruno Haible  <bruno@clisp.org>
69089
69090         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
69091
69092 2006-10-24  Bruno Haible  <bruno@clisp.org>
69093
69094         * lib/gl_list.h: Use C comment style, not C++ comment style.
69095
69096 2006-10-23  Eric Blake  <ebb9@byu.net>
69097
69098         * lib/getaddrinfo.c (includes): Add missing include.
69099
69100 2006-10-23  Bruno Haible  <bruno@clisp.org>
69101             Paul Eggert  <eggert@cs.ucla.edu>
69102
69103         Ability to rename obstack_free.
69104         * lib/obstack.h (__obstack_free): New macro. Declare instead of
69105         obstack_free.
69106         (obstack_free): Invoke the __obstack_free macro.
69107         * lib/obstack.c (obstack_free): Use __obstack_free macro.
69108
69109 2006-10-23  Bruno Haible  <bruno@clisp.org>
69110             Paul Eggert  <eggert@cs.ucla.edu>
69111
69112         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
69113         __argc, __argv from the declaration. (They are defined as macros on
69114         mingw.)
69115
69116 2006-10-22  Bruno Haible  <bruno@clisp.org>
69117
69118         * doc/gnulib-intro.texi: New file.
69119         * doc/gnulib.texi: Include it.
69120
69121 2006-10-21  Bruno Haible  <bruno@clisp.org>
69122
69123         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
69124         "Introduction", "Miscellanous Notes", "Particular Modules".
69125
69126 2006-10-21  Bruno Haible  <bruno@clisp.org>
69127
69128         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69129         Change mostlyclean-local rule to avoid sh syntax error from bash
69130         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
69131
69132 2006-10-23  Jim Meyering  <jim@meyering.net>
69133
69134         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
69135         in place of snprintf.
69136
69137         * modules/inttostr (Files): Add lib/uinttostr.c.
69138         * lib/uinttostr.c (inttostr): New file/function.
69139         * lib/inttostr.h (uinttostr): Declare.
69140         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
69141         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69142         Add uinttostr.
69143         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
69144
69145 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69146
69147         * lib/canonicalize.c (ELOOP): Define if not already defined.
69148         Problem reported by Bruno Haible in
69149         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
69150
69151 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69152
69153         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
69154         Problem reported by Perry Smith and Ville Laurikari.
69155
69156         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
69157         uses.
69158
69159 2006-10-19  Bruno Haible  <bruno@clisp.org>
69160
69161         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
69162         for mingw.
69163
69164 2006-10-19  Bruno Haible  <bruno@clisp.org>
69165
69166         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
69167         Needed for mingw.
69168
69169 2006-10-19  Bruno Haible  <bruno@clisp.org>
69170
69171         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
69172
69173 2006-10-19  Bruno Haible  <bruno@clisp.org>
69174
69175         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
69176         it.
69177
69178 2006-10-19  Bruno Haible  <bruno@clisp.org>
69179
69180         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
69181         invocation.
69182
69183 2006-10-19  Bruno Haible  <bruno@clisp.org>
69184
69185         * gnulib-tool (func_create_testdir): Don't include ftruncate and
69186         mountlist by default.
69187
69188 2006-10-16  Bruno Haible  <bruno@clisp.org>
69189
69190         * lib/c-strstr.c: Include c-strstr.h.
69191
69192 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69193
69194         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
69195         in a slash.
69196
69197 2006-10-18  Bruno Haible  <bruno@clisp.org>
69198
69199         * lib/lock.h [C++]: Wrap definitions in extern "C".
69200
69201 2006-10-18  Bruno Haible  <bruno@clisp.org>
69202
69203         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
69204         gl_LIBOBJS list.
69205
69206 2006-10-18  Bruno Haible  <bruno@clisp.org>
69207
69208         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
69209
69210 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
69211
69212         * lib/xstrtol.h: Include gettext.h.
69213         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
69214         Problem reported by Eric Blake.
69215         * modules/xstrtol (Depends-on): Add gettext-h.
69216
69217 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
69218
69219         * lib/strftime.c (advance): New macro.
69220         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
69221         incomplete type, so you can't add 0 to it.  Problem and patch
69222         reported by Eelco Dolstra for dietlibc.
69223
69224 2006-10-18  Jim Meyering  <jim@meyering.net>
69225
69226         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
69227         type for a local, and rename it: s/up/user_proc/.
69228
69229 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
69230
69231         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
69232         READ_UTMP_USER_PROCESS.
69233         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
69234
69235 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69236
69237         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
69238         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
69239
69240 2006-10-17  Eric Blake  <ebb9@byu.net>
69241
69242         * lib/sigprocmask.c (sigprocmask): Fix typo.
69243
69244         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
69245
69246         * modules/clean-temp (Makefile.am): Don't add to make output...
69247         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
69248         config.h.
69249
69250 2006-10-17  Bruno Haible  <bruno@clisp.org>
69251
69252         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
69253         differently if DEFAULT_TEXT_DOMAIN is set.
69254
69255 2006-10-16  Bruno Haible  <bruno@clisp.org>
69256
69257         * lib/clean-temp.c: Include fwriteerror.h.
69258
69259 2006-10-16  Bruno Haible  <bruno@clisp.org>
69260
69261         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
69262
69263 2006-10-16  Bruno Haible  <bruno@clisp.org>
69264
69265         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
69266         * lib/sigprocmask.h: Include <sys/types.h>.
69267         (sigset_t): Use the system's definition if present.
69268
69269 2006-10-17  Eric Blake  <ebb9@byu.net>
69270
69271         * lib/xvasprintf.c (includes): Assume config.h.
69272         * lib/xasprintf.c (includes): Likewise.
69273
69274 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
69275
69276         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
69277         at least as wide as intmax_t.
69278
69279 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
69280
69281         (Imported from Automake.)
69282         * build-aux/gnupload: Update to version 1.1 of directive file.
69283
69284 2006-10-16  Eric Blake  <ebb9@byu.net>
69285
69286         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
69287         match Automake 1.10a.
69288
69289 2006-10-14  Bruno Haible  <bruno@clisp.org>
69290
69291         * modules/sigprocmask: New file.
69292         * lib/sigprocmask.h: New file.
69293         * lib/sigprocmask.c: New file.
69294         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
69295         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
69296         request sigprocmask.o.
69297         (gl_PREREQ_SIGPROCMASK): New macro.
69298         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
69299         (Depends-on): Add sigprocmask.
69300         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
69301         gt_SIGNALBLOCKING. Test for 'raise' only once.
69302         * lib/fatal-signal.c: Include sigprocmask.h.
69303         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
69304         unblock_fatal_signals): Define always.
69305         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69306         sigprocmask.
69307
69308 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69309
69310         Sync from Automake.
69311         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
69312         which incorrectly sets the mode of an existing destination
69313         directory.  In some cases the unpatched install-sh could do the
69314         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
69315         system.  We hope this is rare in practice, but it's clearly worth
69316         fixing.  Problem reported by Alex Unleashed in
69317         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
69318         Also, don't bother to check for -m bugs unless we're using -m;
69319         suggested by Stepan Kasal.
69320
69321 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69322
69323         Sync from Automake.
69324         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
69325         `-c' flag, so they appear at the same position as in %FASTDEP%
69326         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
69327         which ignores unknown options only after the first non-option.
69328         Bug report against M4 by Nelson H. F. Beebe.
69329
69330 2006-10-13  Jim Meyering  <jim@meyering.net>
69331
69332         Fix a bug in yesterday's change.
69333         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
69334         p->fts_statp->st_dev would be used uninitialized.
69335         Ensures that we always call fts_stat on the very first entry.
69336         Miklos Szeredi reported that find -xdev stopped working.
69337
69338 2006-10-12  Bruno Haible  <bruno@clisp.org>
69339
69340         * gnulib-tool (func_get_automake_snippet): Append an automatically
69341         computed EXTRA_DIST augmentation.
69342         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
69343         * modules/alloca-opt (Makefile.am): Likewise.
69344         * modules/allocsa (Makefile.am): Likewise.
69345         * modules/arcfour (Makefile.am): Likewise.
69346         * modules/arctwo (Makefile.am): Likewise.
69347         * modules/argmatch (Makefile.am): Likewise.
69348         * modules/argz (Makefile.am): Likewise.
69349         * modules/atexit (Makefile.am): Likewise.
69350         * modules/backupfile (Makefile.am): Likewise.
69351         * modules/byteswap (Makefile.am): Likewise.
69352         * modules/c-strtod (Makefile.am): Likewise.
69353         * modules/c-strtold (Makefile.am): Likewise.
69354         * modules/calloc (Makefile.am): Likewise.
69355         * modules/canon-host (Makefile.am): Likewise.
69356         * modules/canonicalize (Makefile.am): Likewise.
69357         * modules/chdir-long (Makefile.am): Likewise.
69358         * modules/chdir-safer (Makefile.am): Likewise.
69359         * modules/check-version (Makefile.am): Likewise.
69360         * modules/chown (Makefile.am): Likewise.
69361         * modules/cloexec (Makefile.am): Likewise.
69362         * modules/close-stream (Makefile.am): Likewise.
69363         * modules/closeout (Makefile.am): Likewise.
69364         * modules/crc (Makefile.am): Likewise.
69365         * modules/csharpexec (Makefile.am): Likewise.
69366         * modules/cycle-check (Makefile.am): Likewise.
69367         * modules/des (Makefile.am): Likewise.
69368         * modules/dev-ino (Makefile.am): Likewise.
69369         * modules/dirfd (Makefile.am): Likewise.
69370         * modules/dirname (Makefile.am): Likewise.
69371         * modules/dup2 (Makefile.am): Likewise.
69372         * modules/eealloc (Makefile.am): Likewise.
69373         * modules/error (Makefile.am): Likewise.
69374         * modules/euidaccess (Makefile.am): Likewise.
69375         * modules/exclude (Makefile.am): Likewise.
69376         * modules/exitfail (Makefile.am): Likewise.
69377         * modules/fcntl-safer (Makefile.am): Likewise.
69378         * modules/fcntl (Makefile.am): Likewise.
69379         * modules/file-type (Makefile.am): Likewise.
69380         * modules/fileblocks (Makefile.am): Likewise.
69381         * modules/filemode (Makefile.am): Likewise.
69382         * modules/filenamecat (Makefile.am): Likewise.
69383         * modules/fnmatch (Makefile.am): Likewise.
69384         * modules/fopen-safer (Makefile.am): Likewise.
69385         * modules/fpending (Makefile.am): Likewise.
69386         * modules/fprintftime (Makefile.am): Likewise.
69387         * modules/free (Makefile.am): Likewise.
69388         * modules/fsusage (Makefile.am): Likewise.
69389         * modules/ftruncate (Makefile.am): Likewise.
69390         * modules/fts (Makefile.am): Likewise.
69391         * modules/gc-arcfour (Makefile.am): Likewise.
69392         * modules/gc-des (Makefile.am): Likewise.
69393         * modules/gc-hmac-md5 (Makefile.am): Likewise.
69394         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
69395         * modules/gc-md4 (Makefile.am): Likewise.
69396         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69397         * modules/gc-sha1 (Makefile.am): Likewise.
69398         * modules/gc (Makefile.am): Likewise.
69399         * modules/getaddrinfo (Makefile.am): Likewise.
69400         * modules/getcwd (Makefile.am): Likewise.
69401         * modules/getdelim (Makefile.am): Likewise.
69402         * modules/getdomainname (Makefile.am): Likewise.
69403         * modules/getgroups (Makefile.am): Likewise.
69404         * modules/gethostname (Makefile.am): Likewise.
69405         * modules/gethrxtime (Makefile.am): Likewise.
69406         * modules/getline (Makefile.am): Likewise.
69407         * modules/getloadavg (Makefile.am): Likewise.
69408         * modules/getlogin_r (Makefile.am): Likewise.
69409         * modules/getndelim2 (Makefile.am): Likewise.
69410         * modules/getopt (Makefile.am): Likewise.
69411         * modules/getpagesize (Makefile.am): Likewise.
69412         * modules/getpass-gnu (Makefile.am): Likewise.
69413         * modules/getpass (Makefile.am): Likewise.
69414         * modules/getsubopt (Makefile.am): Likewise.
69415         * modules/gettime (Makefile.am): Likewise.
69416         * modules/gettimeofday (Makefile.am): Likewise.
69417         * modules/getugroups (Makefile.am): Likewise.
69418         * modules/getusershell (Makefile.am): Likewise.
69419         * modules/glob (Makefile.am): Likewise.
69420         * modules/group-member (Makefile.am): Likewise.
69421         * modules/hard-locale (Makefile.am): Likewise.
69422         * modules/hash (Makefile.am): Likewise.
69423         * modules/hmac-md5 (Makefile.am): Likewise.
69424         * modules/hmac-sha1 (Makefile.am): Likewise.
69425         * modules/human (Makefile.am): Likewise.
69426         * modules/idcache (Makefile.am): Likewise.
69427         * modules/imaxabs (Makefile.am): Likewise.
69428         * modules/imaxdiv (Makefile.am): Likewise.
69429         * modules/inet_ntop (Makefile.am): Likewise.
69430         * modules/inet_pton (Makefile.am): Likewise.
69431         * modules/intprops (Makefile.am): Likewise.
69432         * modules/inttostr (Makefile.am): Likewise.
69433         * modules/inttypes (Makefile.am): Likewise.
69434         * modules/isapipe (Makefile.am): Likewise.
69435         * modules/javaversion (Makefile.am): Likewise.
69436         * modules/lchmod (Makefile.am): Likewise.
69437         * modules/lchown (Makefile.am): Likewise.
69438         * modules/localcharset (Makefile.am): Likewise.
69439         * modules/long-options (Makefile.am): Likewise.
69440         * modules/lstat (Makefile.am): Likewise.
69441         * modules/malloc (Makefile.am): Likewise.
69442         * modules/mathl (Makefile.am): Likewise.
69443         * modules/mbchar (Makefile.am): Likewise.
69444         * modules/md2 (Makefile.am): Likewise.
69445         * modules/md4 (Makefile.am): Likewise.
69446         * modules/md5 (Makefile.am): Likewise.
69447         * modules/memcasecmp (Makefile.am): Likewise.
69448         * modules/memchr (Makefile.am): Likewise.
69449         * modules/memcmp (Makefile.am): Likewise.
69450         * modules/memcoll (Makefile.am): Likewise.
69451         * modules/memcpy (Makefile.am): Likewise.
69452         * modules/memmem (Makefile.am): Likewise.
69453         * modules/memmove (Makefile.am): Likewise.
69454         * modules/mempcpy (Makefile.am): Likewise.
69455         * modules/memrchr (Makefile.am): Likewise.
69456         * modules/memset (Makefile.am): Likewise.
69457         * modules/memxor (Makefile.am): Likewise.
69458         * modules/mkancesdirs (Makefile.am): Likewise.
69459         * modules/mkdir-p (Makefile.am): Likewise.
69460         * modules/mkdir (Makefile.am): Likewise.
69461         * modules/mkdtemp (Makefile.am): Likewise.
69462         * modules/mkstemp (Makefile.am): Likewise.
69463         * modules/mktime (Makefile.am): Likewise.
69464         * modules/modechange (Makefile.am): Likewise.
69465         * modules/mountlist (Makefile.am): Likewise.
69466         * modules/nanosleep (Makefile.am): Likewise.
69467         * modules/obstack (Makefile.am): Likewise.
69468         * modules/openat (Makefile.am): Likewise.
69469         * modules/pagealign_alloc (Makefile.am): Likewise.
69470         * modules/pathmax (Makefile.am): Likewise.
69471         * modules/physmem (Makefile.am): Likewise.
69472         * modules/poll (Makefile.am): Likewise.
69473         * modules/posixtm (Makefile.am): Likewise.
69474         * modules/posixver (Makefile.am): Likewise.
69475         * modules/putenv (Makefile.am): Likewise.
69476         * modules/quote (Makefile.am): Likewise.
69477         * modules/quotearg (Makefile.am): Likewise.
69478         * modules/raise (Makefile.am): Likewise.
69479         * modules/read-file (Makefile.am): Likewise.
69480         * modules/readline (Makefile.am): Likewise.
69481         * modules/readlink (Makefile.am): Likewise.
69482         * modules/readtokens (Makefile.am): Likewise.
69483         * modules/readutmp (Makefile.am): Likewise.
69484         * modules/realloc (Makefile.am): Likewise.
69485         * modules/regex (Makefile.am): Likewise.
69486         * modules/rename-dest-slash (Makefile.am): Likewise.
69487         * modules/rename (Makefile.am): Likewise.
69488         * modules/rijndael (Makefile.am): Likewise.
69489         * modules/rmdir (Makefile.am): Likewise.
69490         * modules/rpmatch (Makefile.am): Likewise.
69491         * modules/safe-read (Makefile.am): Likewise.
69492         * modules/safe-write (Makefile.am): Likewise.
69493         * modules/same-inode (Makefile.am): Likewise.
69494         * modules/same (Makefile.am): Likewise.
69495         * modules/save-cwd (Makefile.am): Likewise.
69496         * modules/savedir (Makefile.am): Likewise.
69497         * modules/setenv (Makefile.am): Likewise.
69498         * modules/settime (Makefile.am): Likewise.
69499         * modules/sha1 (Makefile.am): Likewise.
69500         * modules/sig2str (Makefile.am): Likewise.
69501         * modules/snprintf (Makefile.am): Likewise.
69502         * modules/stat-macros (Makefile.am): Likewise.
69503         * modules/stat-time (Makefile.am): Likewise.
69504         * modules/stdbool (Makefile.am): Likewise.
69505         * modules/stdint (Makefile.am): Likewise.
69506         * modules/stdlib-safer (Makefile.am): Likewise.
69507         * modules/stpcpy (Makefile.am): Likewise.
69508         * modules/stpncpy (Makefile.am): Likewise.
69509         * modules/strcase (Makefile.am): Likewise.
69510         * modules/strcasestr (Makefile.am): Likewise.
69511         * modules/strchrnul (Makefile.am): Likewise.
69512         * modules/strcspn (Makefile.am): Likewise.
69513         * modules/strdup (Makefile.am): Likewise.
69514         * modules/strerror (Makefile.am): Likewise.
69515         * modules/strftime (Makefile.am): Likewise.
69516         * modules/strndup (Makefile.am): Likewise.
69517         * modules/strnlen (Makefile.am): Likewise.
69518         * modules/strpbrk (Makefile.am): Likewise.
69519         * modules/strsep (Makefile.am): Likewise.
69520         * modules/strstr (Makefile.am): Likewise.
69521         * modules/strtod (Makefile.am): Likewise.
69522         * modules/strtoimax (Makefile.am): Likewise.
69523         * modules/strtok_r (Makefile.am): Likewise.
69524         * modules/strtol (Makefile.am): Likewise.
69525         * modules/strtoll (Makefile.am): Likewise.
69526         * modules/strtoul (Makefile.am): Likewise.
69527         * modules/strtoull (Makefile.am): Likewise.
69528         * modules/strtoumax (Makefile.am): Likewise.
69529         * modules/strverscmp (Makefile.am): Likewise.
69530         * modules/sys_socket (Makefile.am): Likewise.
69531         * modules/sys_stat (Makefile.am): Likewise.
69532         * modules/sysexits (Makefile.am): Likewise.
69533         * modules/time_r (Makefile.am): Likewise.
69534         * modules/timegm (Makefile.am): Likewise.
69535         * modules/timespec (Makefile.am): Likewise.
69536         * modules/tmpfile-safer (Makefile.am): Likewise.
69537         * modules/trim (Makefile.am): Likewise.
69538         * modules/unistd-safer (Makefile.am): Likewise.
69539         * modules/unlinkdir (Makefile.am): Likewise.
69540         * modules/unlocked-io (Makefile.am): Likewise.
69541         * modules/userspec (Makefile.am): Likewise.
69542         * modules/utime (Makefile.am): Likewise.
69543         * modules/utimecmp (Makefile.am): Likewise.
69544         * modules/utimens (Makefile.am): Likewise.
69545         * modules/vasnprintf (Makefile.am): Likewise.
69546         * modules/vasprintf (Makefile.am): Likewise.
69547         * modules/vsnprintf (Makefile.am): Likewise.
69548         * modules/xalloc (Makefile.am): Likewise.
69549         * modules/xgetcwd (Makefile.am): Likewise.
69550         * modules/xnanosleep (Makefile.am): Likewise.
69551         * modules/xreadlink (Makefile.am): Likewise.
69552         * modules/xstrtod (Makefile.am): Likewise.
69553         * modules/xstrtol (Makefile.am): Likewise.
69554         * modules/xstrtold (Makefile.am): Likewise.
69555         * modules/yesno (Makefile.am): Likewise.
69556         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
69557
69558 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69559
69560         * modules/error (Makefile.am): Distribute files through
69561         EXTRA_DIST, not lib_SOURCES.
69562
69563 2006-10-12  Eric Blake  <ebb9@byu.net>
69564
69565         * modules/error (Makefile.am): Distribute files in /lib.
69566         * modules/obstack (Makefile.am): Likewise.
69567
69568 2006-10-12  Bruno Haible  <bruno@clisp.org>
69569
69570         * modules/acl (Makefile.am): Distribute all files in lib/ through
69571         EXTRA_DIST.
69572         * modules/arcfour (Makefile.am): Likewise.
69573         * modules/arctwo (Makefile.am): Likewise.
69574         * modules/argmatch (Makefile.am): Likewise.
69575         * modules/argz (Makefile.am): Likewise.
69576         * modules/atexit (Makefile.am): Likewise.
69577         * modules/backupfile (Makefile.am): Likewise.
69578         * modules/c-strtod (Makefile.am): Likewise.
69579         * modules/c-strtold (Makefile.am): Likewise.
69580         * modules/calloc (Makefile.am): Likewise.
69581         * modules/canon-host (Makefile.am): Likewise.
69582         * modules/canonicalize (Makefile.am): Likewise.
69583         * modules/chdir-long (Makefile.am): Likewise.
69584         * modules/chdir-safer (Makefile.am): Likewise.
69585         * modules/check-version (Makefile.am): Likewise.
69586         * modules/chown (Makefile.am): Likewise.
69587         * modules/cloexec (Makefile.am): Likewise.
69588         * modules/close-stream (Makefile.am): Likewise.
69589         * modules/closeout (Makefile.am): Likewise.
69590         * modules/crc (Makefile.am): Likewise.
69591         * modules/cycle-check (Makefile.am): Likewise.
69592         * modules/des (Makefile.am): Likewise.
69593         * modules/dirfd (Makefile.am): Likewise.
69594         * modules/dirname (Makefile.am): Likewise.
69595         * modules/dup2 (Makefile.am): Likewise.
69596         * modules/euidaccess (Makefile.am): Likewise.
69597         * modules/exclude (Makefile.am): Likewise.
69598         * modules/exitfail (Makefile.am): Likewise.
69599         * modules/fcntl-safer (Makefile.am): Likewise.
69600         * modules/file-type (Makefile.am): Likewise.
69601         * modules/fileblocks (Makefile.am): Likewise.
69602         * modules/filemode (Makefile.am): Likewise.
69603         * modules/filenamecat (Makefile.am): Likewise.
69604         * modules/fnmatch (Makefile.am): Likewise.
69605         * modules/fopen-safer (Makefile.am): Likewise.
69606         * modules/fpending (Makefile.am): Likewise.
69607         * modules/fprintftime (Makefile.am): Likewise.
69608         * modules/free (Makefile.am): Likewise.
69609         * modules/fsusage (Makefile.am): Likewise.
69610         * modules/ftruncate (Makefile.am): Likewise.
69611         * modules/fts (Makefile.am): Likewise.
69612         * modules/gc (Makefile.am): Likewise.
69613         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69614         * modules/getaddrinfo (Makefile.am): Likewise.
69615         * modules/getcwd (Makefile.am): Likewise.
69616         * modules/getdelim (Makefile.am): Likewise.
69617         * modules/getdomainname (Makefile.am): Likewise.
69618         * modules/getgroups (Makefile.am): Likewise.
69619         * modules/gethostname (Makefile.am): Likewise.
69620         * modules/gethrxtime (Makefile.am): Likewise.
69621         * modules/getline (Makefile.am): Likewise.
69622         * modules/getloadavg (Makefile.am): Likewise.
69623         * modules/getlogin_r (Makefile.am): Likewise.
69624         * modules/getopt (Makefile.am): Likewise.
69625         * modules/getpass (Makefile.am): Likewise.
69626         * modules/getpass-gnu (Makefile.am): Likewise.
69627         * modules/getsubopt (Makefile.am): Likewise.
69628         * modules/gettime (Makefile.am): Likewise.
69629         * modules/gettimeofday (Makefile.am): Likewise.
69630         * modules/getugroups (Makefile.am): Likewise.
69631         * modules/getusershell (Makefile.am): Likewise.
69632         * modules/glob (Makefile.am): Likewise.
69633         * modules/group-member (Makefile.am): Likewise.
69634         * modules/hard-locale (Makefile.am): Likewise.
69635         * modules/hash (Makefile.am): Likewise.
69636         * modules/hmac-md5 (Makefile.am): Likewise.
69637         * modules/hmac-sha1 (Makefile.am): Likewise.
69638         * modules/human (Makefile.am): Likewise.
69639         * modules/idcache (Makefile.am): Likewise.
69640         * modules/imaxabs (Makefile.am): Likewise.
69641         * modules/imaxdiv (Makefile.am): Likewise.
69642         * modules/inet_ntop (Makefile.am): Likewise.
69643         * modules/inet_pton (Makefile.am): Likewise.
69644         * modules/inttostr (Makefile.am): Likewise.
69645         * modules/isapipe (Makefile.am): Likewise.
69646         * modules/lchown (Makefile.am): Likewise.
69647         * modules/long-options (Makefile.am): Likewise.
69648         * modules/lstat (Makefile.am): Likewise.
69649         * modules/malloc (Makefile.am): Likewise.
69650         * modules/mathl (Makefile.am): Likewise.
69651         * modules/mbchar (Makefile.am): Likewise.
69652         * modules/md2 (Makefile.am): Likewise.
69653         * modules/md4 (Makefile.am): Likewise.
69654         * modules/md5 (Makefile.am): Likewise.
69655         * modules/memcasecmp (Makefile.am): Likewise.
69656         * modules/memchr (Makefile.am): Likewise.
69657         * modules/memcmp (Makefile.am): Likewise.
69658         * modules/memcoll (Makefile.am): Likewise.
69659         * modules/memcpy (Makefile.am): Likewise.
69660         * modules/memmem (Makefile.am): Likewise.
69661         * modules/memmove (Makefile.am): Likewise.
69662         * modules/mempcpy (Makefile.am): Likewise.
69663         * modules/memrchr (Makefile.am): Likewise.
69664         * modules/memset (Makefile.am): Likewise.
69665         * modules/memxor (Makefile.am): Likewise.
69666         * modules/mkancesdirs (Makefile.am): Likewise.
69667         * modules/mkdir (Makefile.am): Likewise.
69668         * modules/mkdir-p (Makefile.am): Likewise.
69669         * modules/mkdtemp (Makefile.am): Likewise.
69670         * modules/mkstemp (Makefile.am): Likewise.
69671         * modules/mktime (Makefile.am): Likewise.
69672         * modules/modechange (Makefile.am): Likewise.
69673         * modules/mountlist (Makefile.am): Likewise.
69674         * modules/nanosleep (Makefile.am): Likewise.
69675         * modules/openat (Makefile.am): Likewise.
69676         * modules/pagealign_alloc (Makefile.am): Likewise.
69677         * modules/physmem (Makefile.am): Likewise.
69678         * modules/poll (Makefile.am): Likewise.
69679         * modules/posixtm (Makefile.am): Likewise.
69680         * modules/posixver (Makefile.am): Likewise.
69681         * modules/putenv (Makefile.am): Likewise.
69682         * modules/quote (Makefile.am): Likewise.
69683         * modules/quotearg (Makefile.am): Likewise.
69684         * modules/raise (Makefile.am): Likewise.
69685         * modules/read-file (Makefile.am): Likewise.
69686         * modules/readline (Makefile.am): Likewise.
69687         * modules/readlink (Makefile.am): Likewise.
69688         * modules/readtokens (Makefile.am): Likewise.
69689         * modules/readutmp (Makefile.am): Likewise.
69690         * modules/realloc (Makefile.am): Likewise.
69691         * modules/regex (Makefile.am): Likewise.
69692         * modules/rename (Makefile.am): Likewise.
69693         * modules/rename-dest-slash (Makefile.am): Likewise.
69694         * modules/rijndael (Makefile.am): Likewise.
69695         * modules/rmdir (Makefile.am): Likewise.
69696         * modules/rpmatch (Makefile.am): Likewise.
69697         * modules/safe-read (Makefile.am): Likewise.
69698         * modules/safe-write (Makefile.am): Likewise.
69699         * modules/same (Makefile.am): Likewise.
69700         * modules/save-cwd (Makefile.am): Likewise.
69701         * modules/savedir (Makefile.am): Likewise.
69702         * modules/setenv (Makefile.am): Likewise.
69703         * modules/settime (Makefile.am): Likewise.
69704         * modules/sha1 (Makefile.am): Likewise.
69705         * modules/sig2str (Makefile.am): Likewise.
69706         * modules/snprintf (Makefile.am): Likewise.
69707         * modules/stdlib-safer (Makefile.am): Likewise.
69708         * modules/stpcpy (Makefile.am): Likewise.
69709         * modules/stpncpy (Makefile.am): Likewise.
69710         * modules/strcase (Makefile.am): Likewise.
69711         * modules/strcasestr (Makefile.am): Likewise.
69712         * modules/strchrnul (Makefile.am): Likewise.
69713         * modules/strcspn (Makefile.am): Likewise.
69714         * modules/strdup (Makefile.am): Likewise.
69715         * modules/strerror (Makefile.am): Likewise.
69716         * modules/strftime (Makefile.am): Likewise.
69717         * modules/strndup (Makefile.am): Likewise.
69718         * modules/strnlen (Makefile.am): Likewise.
69719         * modules/strpbrk (Makefile.am): Likewise.
69720         * modules/strsep (Makefile.am): Likewise.
69721         * modules/strstr (Makefile.am): Likewise.
69722         * modules/strtod (Makefile.am): Likewise.
69723         * modules/strtoimax (Makefile.am): Likewise.
69724         * modules/strtok_r (Makefile.am): Likewise.
69725         * modules/strtol (Makefile.am): Likewise.
69726         * modules/strtoll (Makefile.am): Likewise.
69727         * modules/strtoul (Makefile.am): Likewise.
69728         * modules/strtoull (Makefile.am): Likewise.
69729         * modules/strtoumax (Makefile.am): Likewise.
69730         * modules/strverscmp (Makefile.am): Likewise.
69731         * modules/time_r (Makefile.am): Likewise.
69732         * modules/timegm (Makefile.am): Likewise.
69733         * modules/tmpfile-safer (Makefile.am): Likewise.
69734         * modules/unistd-safer (Makefile.am): Likewise.
69735         * modules/unlinkdir (Makefile.am): Likewise.
69736         * modules/userspec (Makefile.am): Likewise.
69737         * modules/utime (Makefile.am): Likewise.
69738         * modules/utimecmp (Makefile.am): Likewise.
69739         * modules/utimens (Makefile.am): Likewise.
69740         * modules/vasnprintf (Makefile.am): Likewise.
69741         * modules/vasprintf (Makefile.am): Likewise.
69742         * modules/vsnprintf (Makefile.am): Likewise.
69743         * modules/xalloc (Makefile.am): Likewise.
69744         * modules/xgetcwd (Makefile.am): Likewise.
69745         * modules/xnanosleep (Makefile.am): Likewise.
69746         * modules/xreadlink (Makefile.am): Likewise.
69747         * modules/xstrtod (Makefile.am): Likewise.
69748         * modules/xstrtol (Makefile.am): Likewise.
69749         * modules/xstrtold (Makefile.am): Likewise.
69750         * modules/yesno (Makefile.am): Likewise.
69751
69752 2006-10-12  Jim Meyering  <jim@meyering.net>
69753
69754         * m4/getloadavg.m4: Revert the change below.
69755
69756         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
69757         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
69758         fail with a symlink, which is what coreutils' ./bootstrap now
69759         creates by default.
69760
69761 2006-10-12  Bruno Haible  <bruno@clisp.org>
69762
69763         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
69764         mingw.
69765         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
69766         MSVC and mingw explicitly.
69767
69768 2006-10-11  Simon Josefsson  <jas@extundo.com>
69769             Bruno Haible  <bruno@clisp.org>
69770
69771         Add support for multiple gnulib-tool invocations in the scope of a
69772         single configure.ac file.
69773         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
69774         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
69775         with the same contents as the _LIBADD variable.
69776         (func_emit_initmacro_start, func_emit_initmacro_end,
69777         func_emit_initmacro_done): New functions.
69778         (func_import, func_create_testdir): Invoke them. Allow the identifiers
69779         gl_LIBOBJS and gl_LTLIBOBJS.
69780
69781 2006-10-11  Bruno Haible  <bruno@clisp.org>
69782
69783         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
69784         (func_create_testdir): Don't create po/Makefile.am, don't invoke
69785         autoreconf. Instead, invoke autopoint explicitly but move back the
69786         *.m4 files from gnulib.
69787
69788 2006-10-11  Bruno Haible  <bruno@clisp.org>
69789
69790         * gnulib-tool (func_usage): Make module names after --create-testdir
69791         optional.
69792         (func_create_testdir): If no module was specified, use nearly all
69793         modules.
69794
69795 2006-10-12  Jim Meyering  <jim@meyering.net>
69796
69797         Big performance improvement for fts-based tools that use FTS_NOSTAT.
69798         Avoid spurious inode-mismatch problems on non-POSIX file systems.
69799         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
69800         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
69801         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
69802         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
69803         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
69804         (fts_set_stat_required): New function.
69805         (fts_open): Defer the calls to fts_stat, if possible or requested.
69806         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
69807         into fts_stat itself.
69808         (fts_read): Perform any required (deferred) fts_stat call.
69809         (fts_build): Likewise, for the directory we're about to open and read.
69810         In the readdir loop, carefully decide whether each entry will require
69811         an eventual call to fts_stat, using dirent.d_type info if available.
69812         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
69813         a command line argument into this function.  Update all callers.
69814         Map a return value of FTS_DOT to FTS_D for a command line argument.
69815         * modules/fts (Depends-on): Add d-type.  Alphabetize.
69816         Thanks to Miklos Szeredi for his tenacity and for the initial
69817         bug report about "find" failing on a FUSE-based file system.
69818
69819         * lib/fts.c (fts_open): Use consistent indentation.
69820
69821 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69822
69823         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
69824         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
69825         reported by Jim Meyering.  All uses of cache variables renamed
69826         to match Autoconf's.
69827         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
69828         the other one.
69829
69830         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
69831         Fix misspelling in diagnostic.
69832
69833 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69834
69835         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
69836         defined.  Problem reported by Matthew Woehlke.
69837
69838         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
69839         Add support for Tandem NonStop R series.
69840         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
69841         Use new macro.
69842
69843         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
69844         (has_trailing_slash): Omit size arg; all callers changed.
69845         Omit 'inline', since it doesn't help performance and we'd
69846         need to configure it.
69847         Don't count //, ///, etc. as having a trailing slash.
69848         As a side effect, this removes a C99ism reported by Matthew Woehlke.
69849         (rpl_rename_dest_slash): On failure, use rename's errno rather
69850         than (in some cases) an incorrect or junk errno.
69851         Simplify code by removing need to compute length; this does
69852         cause it to make two passes instead of one over the file name,
69853         but it's worth it.
69854
69855         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
69856         change, since Autoconf's version may no longer be appropriate now
69857         that we are using CVS Autoconf's version.  Add support for Tandem.
69858
69859 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69860             Bruno Haible  <bruno@clisp.org>
69861
69862         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
69863         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
69864         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
69865         gl_AC_TYPE_LONG_LONG.
69866
69867         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
69868         instead of HAVE_LONG_LONG.
69869         * lib/printf-args.c (printf_fetchargs): Likewise.
69870         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
69871         * lib/vasnprintf.c (VASNPRINTF): Likewise.
69872         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
69873         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
69874         gl_AC_TYPE_LONG_LONG.
69875
69876 2006-10-11  Bruno Haible  <bruno@clisp.org>
69877
69878         * m4/longlong.m4: Add comments.
69879         * m4/ulonglong.m4: Likewise.
69880
69881 2006-10-10  Bruno Haible  <bruno@clisp.org>
69882
69883         Make it possible to #define stpcpy, strdup to aliases.
69884         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
69885         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
69886
69887 2006-10-10  Bruno Haible  <bruno@clisp.org>
69888
69889         Make it possible to #define gcd to an alias.
69890         * lib/gcd.c: Include config.h.
69891
69892 2006-10-10  Bruno Haible  <bruno@clisp.org>
69893
69894         Make it possible to #define c_isascii to an alias.
69895         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
69896         defined. Undefine the macros before defining them, to avoid gcc
69897         warnings.
69898         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
69899         define NO_C_CTYPE_MACROS early.
69900
69901 2006-10-10  Bruno Haible  <bruno@clisp.org>
69902
69903         Make it possible to #define set_program_name to an alias.
69904         * lib/progname.c: Don't undefine set_program_name; instead, undefine
69905         ENABLE_RELOCATABLE early.
69906
69907 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69908
69909         Port to Tandem NSK OSS, which has 64-bit signed int but at most
69910         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
69911         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
69912         More generally, don't assume that 64-bit signed int is available
69913         if unsigned int is, and vice versa.
69914         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
69915         unsigned symbols, not on their signed counterparts.
69916         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
69917         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
69918         (UINT64_C, UINTMAX_C):
69919         Likewise.
69920         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
69921         unsigned counterparts.
69922         (Have_long_long, Unsigned): New macros.
69923         (Int): Renamed from INT.
69924         (strtoimax): Use the new macros.
69925         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
69926         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
69927         * modules/inttypes (inttypes.h): Substitute
69928         HAVE_UNSIGNED_LONG_LONG_INT.
69929         * modules/stdint (stdint.h): Likewise.
69930         (Files): Add m4/ulonglong.m4.
69931
69932 2006-10-10  Bruno Haible  <bruno@clisp.org>
69933
69934         Fix a gcc -Wshadow warning.
69935         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
69936         to 'bucket'.
69937         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
69938         gl_linked_indexof_from_to): Likewise.
69939         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
69940         Likewise.
69941         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
69942         Likewise.
69943         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
69944         Reported by Eric Blake.
69945
69946 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
69947
69948         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
69949         for NetBSD.  Problem reported by Bruno Haible.
69950
69951 2006-10-09  Jim Meyering  <jim@meyering.net>
69952
69953         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
69954         Patch from Bruno Haible.
69955
69956 2006-10-09  Jim Meyering  <jim@meyering.net>
69957
69958         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
69959         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
69960         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
69961
69962 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         Don't include <config.h> twice; this doesn't work in some cases,
69965         e.g., when config.h has "#define intmax_t long long int" and
69966         we include <config.h>, <inttypes.h>, <config.h> in that order.
69967         Problem reported by Matthew Woehlke in:
69968         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
69969         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
69970         * lib/fts-cycle.c: Don't include config.h.
69971         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
69972         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
69973         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
69974         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
69975         inttypes.h.
69976         * lib/xstrtoumax.c: Likewise.
69977         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
69978         __strtol and the like, so that this module is more like its siblings.
69979         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
69980         Remove; no longer needed now that we assume gnulib inttypes.h.
69981
69982 2006-10-08  Bruno Haible  <bruno@clisp.org>
69983
69984         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
69985         option.
69986
69987 2006-10-07  Jim Meyering  <jim@meyering.net>
69988
69989         * modules/inttypes (inttypes.h): Revert what seems to have been
69990         an inadvertent part of today's change: use "|", not "/" in the
69991         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
69992
69993 2006-10-07  Bruno Haible  <bruno@clisp.org>
69994
69995         * modules/sublist: New file.
69996
69997 2006-10-07  Bruno Haible  <bruno@clisp.org>
69998
69999         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
70000         * modules/argz (argz.h): Likewise.
70001         * modules/arpa_inet (arpa/inet.h): Likewise.
70002         * modules/byteswap (byteswap.h): Likewise.
70003         * modules/configmake (configmake.h): Likewise.
70004         * modules/fcntl (fcntl.h): Likewise.
70005         * modules/fnmatch (fnmatch.h): Likewise.
70006         * modules/getopt (getopt.h): Likewise.
70007         * modules/glob (glob.h): Likewise.
70008         * modules/inttypes (inttypes.h): Likewise.
70009         * modules/netinet_in (netinet/in.h): Likewise.
70010         * modules/poll (poll.h): Likewise.
70011         * modules/stdbool (stdbool.h): Likewise.
70012         * modules/stdint (stdint.h): Likewise.
70013         * modules/sys_select (sys/select.h): Likewise.
70014         * modules/sys_socket (sys/socket.h): Likewise.
70015         * modules/sys_stat (sys/stat.h): Likewise.
70016         * modules/sysexits (sysexits.h): Likewise.
70017         * modules/unistd (unistd.h): Likewise.
70018         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70019         Add a "DO NOT EDIT" comment to the generated file.
70020         (func_import): Likewise for gnulib-comp.m4.
70021
70022 2006-10-07  Bruno Haible  <bruno@clisp.org>
70023
70024         * lib/gl_sublist.h: New file.
70025         * lib/gl_sublist.c: New file.
70026
70027 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70028
70029         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
70030         name (relative to the original working directory) and the file
70031         name component (relative to the temporary working directory).  All
70032         callers changed.
70033         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
70034         * lib/mkdir-p.c (make_dir_parents): Likewise.
70035         * lib/mkdir-p.h (make_dir_parents): Likewise.
70036
70037 2006-10-06  Eric Blake  <ebb9@byu.net>
70038
70039         Define several macros for use by the clean-temp module.
70040         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
70041         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
70042         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
70043
70044         * lib/clean-temp.h (close_stream_temp): New declaration.
70045         * lib/clean-temp.c (includes): Pull in headers according to what
70046         other modules are in use.
70047         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
70048
70049 2006-10-06  Bruno Haible  <bruno@clisp.org>
70050
70051         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
70052         instead of fopen, fwriteerror.
70053
70054 2006-10-06  Bruno Haible  <bruno@clisp.org>
70055
70056         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
70057         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
70058         int.
70059         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
70060         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
70061         Return an error indicator.
70062         Suggested by Eric Blake.
70063
70064 2006-10-06  Bruno Haible  <bruno@clisp.org>
70065
70066         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
70067         Reported by Eric Blake.
70068
70069 2006-10-06  Bruno Haible  <bruno@clisp.org>
70070
70071         * modules/closeout (Description): Mention stderr too.
70072
70073 2006-10-06  Bruno Haible  <bruno@clisp.org>
70074         and Paul Eggert  <eggert@cs.ucla.edu>
70075
70076         * lib/closeout.c (close_stdout): Also close stderr.
70077         * lib/closeout.h: Update comment.
70078
70079 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70080
70081         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
70082         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
70083         * lib/dirchownmod.c: Include lchown.h.
70084         * lib/lchown.c: Don't include files that lchown.h now includes.
70085         Don't declare chown, since lchown.h now does that.
70086         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
70087         (lchown): Define to rpl_chown if lchown is declared but
70088         does not exist.  Declare using a prototype if lchown is not
70089         declared.  Add a copyright notice.
70090         * lib/mkstemp.h: Include <unistd.h>.
70091         * lib/openat.c: Include lchown.h.
70092
70093         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
70094         we now test for that separately.
70095         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
70096         rather than O_NOFOLLOW, when testing whether it's possible to
70097         avoid a race condition reliably.
70098         * lib/savewd.c (savewd_chdir): Likewise.
70099
70100         Remove macros that are no longer needed now that stdint.h is
70101         reliable.
70102         * lib/fsusage.c (UINTMAX_MAX): Remove.
70103         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
70104         * lib/utimecmp.c (SIZE_MAX): Remove.
70105
70106         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
70107
70108         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
70109         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
70110         O_NOATIME works.
70111
70112 2006-10-05  Bruno Haible  <bruno@clisp.org>
70113
70114         * lib/gl_list.h (gl_sortedlist_search_from_to,
70115         gl_sortedlist_indexof_from_to): New declarations.
70116         (gl_list_implementation): New fields sortedlist_search_from_to,
70117         sortedlist_indexof_from_to.
70118         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
70119         inline functions.
70120         * lib/gl_list.c (gl_sortedlist_search_from_to,
70121         gl_sortedlist_indexof_from_to): New functions.
70122         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
70123         function.
70124         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
70125         (gl_array_sortedlist_search_from_to): New function.
70126         (gl_array_list_implementation): Update.
70127         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
70128         function.
70129         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
70130         (gl_carray_sortedlist_search_from_to): New function.
70131         (gl_carray_list_implementation): Update.
70132         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
70133         gl_linked_sortedlist_indexof_from_to): New functions.
70134         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70135         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70136         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
70137         gl_tree_sortedlist_indexof_from_to): New functions.
70138         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70139         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70140         Update.
70141         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70142         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
70143         Update.
70144
70145 2006-10-05  Bruno Haible  <bruno@clisp.org>
70146
70147         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
70148         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
70149         (struct gl_list_implementation): Add fields search_from_to,
70150         indexof_from_to. Remove fields search, indexof.
70151         (gl_list_search): Use the search_from_to method.
70152         (gl_list_search_from, gl_list_search_from_to): New functions.
70153         (gl_list_indexof): Use the indexof_from_to method.
70154         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70155         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
70156         (gl_list_search_from, gl_list_search_from_to): New functions.
70157         (gl_list_indexof): Use the indexof_from_to method.
70158         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70159         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
70160         gl_array_indexof. Add start_index, end_index arguments.
70161         (gl_array_search_from_to): Renamed from gl_array_search. Add
70162         start_index, end_index arguments.
70163         (gl_array_remove, gl_array_list_implementation): Update.
70164         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
70165         gl_carray_indexof. Add start_index, end_index arguments.
70166         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
70167         start_index, end_index arguments.
70168         (gl_carray_remove, gl_carray_list_implementation): Update.
70169         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
70170         gl_linked_search. Add start_index, end_index arguments.
70171         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
70172         start_index, end_index arguments.
70173         (gl_linked_remove): Update.
70174         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70175         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70176         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
70177         field to 'size_t'.
70178         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
70179         gl_tree_search. Add start_index, end_index arguments.
70180         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70181         start_index, end_index arguments.
70182         (gl_tree_remove): Update.
70183         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70184         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70185         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
70186         function.
70187         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
70188         gl_tree_search. Add start_index, end_index arguments.
70189         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70190         start_index, end_index arguments.
70191         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70192         Update.
70193         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
70194
70195 2006-10-05  Bruno Haible  <bruno@clisp.org>
70196
70197         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
70198
70199         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
70200         fwriteerror_temp): New declarations.
70201         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
70202         (descriptors): New variable.
70203         (cleanup): First, close the descriptors.
70204         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
70205         fclose_temp, fwriteerror_temp): New functions.
70206
70207 2006-10-04  Jim Meyering  <jim@meyering.net>
70208
70209         * lib/fts.c (fts_open): Tiny comment change.
70210
70211 2006-10-04  Bruno Haible  <bruno@clisp.org>
70212
70213         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
70214         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
70215         gl_LOCK_BODY.
70216         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
70217         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
70218         gl_LOCK_EARLY_BODY.
70219         (gl_LOCK): Require gl_LOCK_BODY.
70220
70221 2006-10-04  Bruno Haible  <bruno@clisp.org>
70222
70223         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
70224         (gl_oset_search_atleast): New declaration.
70225         (struct gl_oset_implementation): Add field 'search_atleast'.
70226         (gl_oset_search_atleast): New inline function.
70227         * lib/gl_oset.c (gl_oset_search_atleast): New function.
70228         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
70229         (gl_array_oset_implementation): Update.
70230         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
70231         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
70232         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
70233
70234 2006-10-04  Bruno Haible  <bruno@clisp.org>
70235
70236         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
70237
70238 2006-10-03  Bruno Haible  <bruno@clisp.org>
70239
70240         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
70241         from gl_avltreehash_list_implementation.
70242
70243 2006-10-03  Bruno Haible  <bruno@clisp.org>
70244
70245         * lib/gl_oset.c (gl_oset_add): Fix return type.
70246
70247 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
70248
70249         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
70250
70251 2006-10-02  Eric Blake  <ebb9@byu.net>
70252
70253         * modules/strnlen (Depends-on): Add extensions.
70254
70255 2006-10-02  Eric Blake  <ebb9@byu.net>
70256
70257         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
70258         definition in 2.60+.
70259
70260 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70261
70262         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
70263         checks.
70264
70265 2006-10-02  Bruno Haible  <bruno@clisp.org>
70266
70267         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
70268         to the AUTOMAKE_OPTIONS.
70269         Reported by Jim Meyering.
70270
70271 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70272
70273         Work around bug in Solaris 10 /proc file system:
70274         /proc/self/fd/NNN/.. isn't the parent directory of
70275         the directory whose file descriptor is NNN.  This needs to
70276         be worked around at run time, not compile time, since a
70277         program might be built on Solaris 8, where things work, and
70278         run on Solaris 10.
70279         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
70280         to use the following interface instead:
70281         (OPENAT_BUFFER_SIZE): New macro.
70282         (openat_proc_name): New function.
70283         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
70284         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
70285         Likewise.
70286         * lib/openat-proc.c: New file.
70287         * modules/openat (Files): Add lib/openat-proc.c.
70288         (Depends-on): Add same-inode, stdbool.
70289         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
70290
70291 2006-09-29  Bruno Haible  <bruno@clisp.org>
70292
70293         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
70294         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
70295         argument. Set stdout_closed before testing for ferror, not after.
70296         (fwriteerror, fwriteerror_no_ebadf): New functions.
70297
70298 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70299
70300         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
70301
70302 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
70303
70304         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
70305         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
70306
70307 2006-09-28  Jim Meyering  <jim@meyering.net>
70308
70309         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
70310         Include <unistd.h>.
70311
70312 2006-09-28  Bruno Haible  <bruno@clisp.org>
70313
70314         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
70315         * modules/linkedhash-list (Depends-on): Likewise.
70316         * modules/rbtreehash-list (Depends-on): Likewise.
70317
70318 2006-09-28  Bruno Haible  <bruno@clisp.org>
70319
70320         * lib/strndup.h: Simplify the redefinition of strndup.
70321         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
70322         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
70323
70324 2006-09-28  Bruno Haible  <bruno@clisp.org>
70325
70326         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
70327         * lib/gl_linkedhash_list.c: Likewise.
70328         * lib/gl_rbtreehash_list.c: Likewise.
70329
70330 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70331
70332         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
70333         getaddrinfo.
70334
70335         * lib/__fpending.h: Don't include <stdio_ext.h> unless
70336         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
70337         it causes <stdio_ext.h> to cause a compile-time error.
70338         Problem reported by Nelson H. F. Beebe.
70339         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
70340         of HAVE_DECL___PENDING.
70341
70342         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
70343         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
70344         declaration.
70345
70346 2006-09-27  Jim Meyering  <jim@meyering.net>
70347
70348         This file could end up with a definition for a function
70349         named __strndup, rather than rpl_strndup on a system with
70350         incomplete weak_alias support.
70351         * lib/strndup.c (strndup): Rename from __strndup.
70352         Remove #defines that used to map __strndup to strndup.
70353         Don't use K&R prototypes.
70354         Remove LIBC-related code, since this file is not sync'd with glibc.
70355         * lib/strndup.h: Revamp, accordingly.
70356         * m4/strndup.m4: Modernize.
70357
70358 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70359
70360         * modules/savewd (Depends-on): Add 'raise'.
70361         * lib/savewd.c: Include <signal.h>, for 'raise'.
70362
70363 2006-09-26  Jim Meyering  <jim@meyering.net>
70364
70365         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
70366         when we detect Darwin 8.7.0's acl_get_file bug.
70367         Rearrange to perform the new (below) run-test while $LIBS
70368         contains any acl-related library.  Set USE_ACL at the end.
70369         (gl_ACL_GET_FILE): New function.
70370
70371 2006-09-26  Eric Blake  <ebb9@byu.net>
70372
70373         * lib/verror.c: Include <config.h> unconditionally.
70374
70375 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
70376
70377         * modules/clock-time (Maintainer): Add self.
70378         * modules/getlogin_r (Depends-on): Add extensions.
70379
70380 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70381
70382         * modules/clock-time: New module.
70383         * modules/nanosleep (Depends-on): Add clock-time.
70384         * modules/gethrxtime (Depends-on): Likewise.
70385         * modules/gettime (Depends-on): Likewise.
70386         * modules/settime (Depends-on): Likewise.
70387
70388         * modules/fts-lgpl: Depend on openat.
70389         * modules/mkancesdirs: Depend on savewd.
70390         * modules/mkdir-p: Likewise.
70391
70392 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70393
70394         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
70395
70396         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
70397         `gl_have_arbitrary_file_name_length_limit' to
70398         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
70399         actually works between configure runs.
70400
70401 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70402             Bruno Haible  <bruno@clisp.org>
70403
70404         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
70405
70406 2006-09-25  Jim Meyering  <jim@meyering.net>
70407
70408         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
70409         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
70410
70411 2006-09-25  Eric Blake  <ebb9@byu.net>
70412
70413         * gnulib-tool (func_import, func_create_testdir): Fix typos in
70414         exec's in 2006-09-18 patch when shuffling fds.
70415
70416 2006-09-25  Bruno Haible  <bruno@clisp.org>
70417
70418         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
70419         Reported by Jim Meyering.
70420
70421 2006-09-24  Jim Meyering  <jim@meyering.net>
70422
70423         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
70424         compare a pointer against a literal "0".  That caused failures with
70425         at least HP-UX's hpcc.
70426
70427 2006-09-22  Simon Josefsson  <jas@extundo.com>
70428
70429         * modules/gc-sha1:
70430         * modules/gc-md4:
70431         * modules/gc-hmac-sha1:
70432         * modules/gc-hmac-md5:
70433         * modules/gc-des:
70434         * modules/gc-arcfour: Distribute more files.
70435
70436 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70437
70438         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
70439         (gl_linked_iterator_from_to): Initialize struct completely.
70440         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
70441         (gl_tree_iterator_from_to): Likewise
70442         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
70443         * lib/gl_array_list.c [lint] (gl_array_iterator)
70444         (gl_array_iterator_from_to): Likewise.
70445         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
70446         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
70447         (gl_carray_iterator_from_to): Likewise.
70448
70449         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
70450         * lib/md4.c (md4_process_block): Remove unused variable.
70451         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
70452         parentheses for clarity.
70453
70454 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70455
70456         * modules/bison-i18n (Depends-on): Add gettext.
70457
70458 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70459
70460         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
70461         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
70462         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
70463         also add missing comma that caused broken test.
70464         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
70465         stdlib.h, for `abort'.
70466         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
70467         variables.
70468         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
70469         include unistd.h if present, for `rmdir'.
70470         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
70471         variables.
70472         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
70473         in the process include standard headers for prototypes.
70474         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
70475         gets declared on GNU/Linux.
70476         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
70477         unistd.h, for `rmdir'.
70478         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
70479
70480         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
70481         always true.
70482         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
70483
70484         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
70485
70486 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70487
70488         * gnulib-tool (func_version): Create output all at once.  This
70489         may help avoid triggering unnecessary SIGPIPEs, and at any
70490         rate it doesn't hurt.
70491
70492 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70493             Bruno Haible  <bruno@clisp.org>
70494
70495         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
70496         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70497         * m4/signed.m4 (bh_C_SIGNED): Likewise.
70498
70499         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
70500         (gl_FUNC_VASPRINTF): Invoke it.
70501
70502 2006-09-22  Bruno Haible  <bruno@clisp.org>
70503
70504         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
70505         getloadavg.c as first argument.
70506
70507 2006-09-22  Bruno Haible  <bruno@clisp.org>
70508
70509         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
70510         at the beginning of the gl_INIT macro.
70511         * modules/getloadavg (configure.ac): Pass $gl_source_base to
70512         gl_GETLOADAVG.
70513
70514 2006-09-22  Bruno Haible  <bruno@clisp.org>
70515
70516         * gnulib-tool (func_create_megatestdir): Don't include the config-h
70517         module.
70518         Suggested by Ralf Wildenhues.
70519
70520 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70521
70522         Import this patch from libc:
70523
70524         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
70525
70526         * lib/regex_internal.c (re_string_reconstruct): Handle
70527         offset < pstr->valid_raw_len && pstr->offsets_needed case.
70528         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
70529         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
70530         re_string_context_at.
70531
70532         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
70533         now requires it.
70534         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
70535         gl_REGEX now does it for us.
70536         (gl_REGEX): Add test taken from
70537         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
70538
70539         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
70540         Check that large offsets work.  Modernize Autoconf usages.
70541         Prefer "yes" to mean a good thing rather than a bad.
70542         Don't put "#define mkstemp" in config.h, as this might interfere
70543         with standard system headers that "#define mkstemp mkstemp64".
70544
70545         * modules/mkstemp (Depends-on): Add extensions, so that
70546         mkstemp is visible on some platforms.
70547         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
70548         (Include): Change to "mkstemp.h" from <stdlib.h>.
70549         (Files): Add mkstemp.h.
70550
70551         * lib/mkstemp.h: New file, since some standard headers
70552         #define mkstemp.
70553         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
70554         Include "mkstemp.h".
70555         Make the _LIBC code resemble glibc original more,
70556         e.g., use K&R style.
70557         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
70558         (mkstemp): Remove, since mkstemp.h does this for us.
70559         * lib/stdlib--.h: Include mkstemp.h.
70560
70561         Import this patch from libc:
70562
70563         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70564
70565         * lib/tempname.c (__gen_tempname): Change attempts_min
70566         into a macro.  Use preprocessor to decide how to initialize
70567         attempts [Coverity CID 67].
70568
70569 2006-09-20  Bruno Haible  <bruno@clisp.org>
70570
70571         * lib/mkdtemp.c: Import from libc.
70572         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70573                 * sysdeps/posix/tempname.c (__gen_tempname): Change
70574                 attempts_min into a macro.  Use preprocessor to decide how to
70575                 initialize attempts [Coverity CID 67].
70576         2001-11-27  Paul Eggert  <eggert@twinsun.com>
70577                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
70578                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
70579
70580 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70581
70582         * gnulib-tool (func_exit): New function, to allow to pass the
70583         exit status portably through the trap.  Use everywhere.
70584         (--help, --version): Signal a write error.
70585         (trap): catch SIGPIPE, for write errors.
70586         Exit at the end of the trap, with the correct exit status.
70587
70588 2006-09-19  Karl Berry  <karl@gnu.org>
70589
70590         * doc/gnulib.texi: note about the license texinfo files.
70591
70592 2006-09-19  Eric Blake  <ebb9@byu.net>
70593
70594         * gnulib-tool: Avoid space-tab.
70595
70596 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70597
70598         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
70599         that prevented coreutils 6.1 from building.  Problem reported
70600         by Petter Reinholdtsen.
70601
70602 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70603
70604         * gnulib-tool (avoidlist): Fix typo that broke options like
70605         --avoid=lock that are used by coreutils bootstrap.
70606
70607 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
70608
70609         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
70610         more systematically.
70611
70612 2006-09-18  Jim Meyering  <jim@meyering.net>
70613
70614         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
70615
70616 2006-09-18  Bruno Haible  <bruno@clisp.org>
70617
70618         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
70619
70620 2006-09-18  Bruno Haible  <bruno@clisp.org>
70621
70622         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
70623         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
70624         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
70625         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
70626         * m4/gettext.m4: Require autoconf >= 2.52.
70627         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
70628         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
70629         of gl_cv_header_inttypes_h.
70630
70631 2006-09-18  Bruno Haible  <bruno@clisp.org>
70632
70633         * lib/javaversion.c: Include configmake.h.
70634
70635 2006-09-18  Bruno Haible  <bruno@clisp.org>
70636
70637         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
70638         avoid that the while loops be executed in a subshell.
70639
70640 2006-09-18  Bruno Haible  <bruno@clisp.org>
70641
70642         * MODULES.html.sh (func_module): Break long lines.
70643         Suggested by Bruce Korb <bkorb@gnu.org>.
70644
70645 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70646
70647         Speed up by a factor of 1.12.
70648         * gnulib-tool (nl): New variable.
70649         (func_import): Rewrite include directive extraction to only read each
70650         directive once.
70651
70652 2006-09-17  Bruno Haible  <bruno@clisp.org>
70653
70654         * modules/javaversion (Makefile.am): Remove DEFS setting.
70655         (Depends-on): Add configmake, for PKGDATADIR definition.
70656
70657 2006-09-17  Bruno Haible  <bruno@clisp.org>
70658
70659         * gnulib-tool (func_create_testdir): Rewrite all files at once.
70660
70661 2006-09-17  Bruno Haible  <bruno@clisp.org>
70662
70663         * gnulib-tool (func_append): New function, stolen from libtool.m4.
70664         (func_modules_transitive_closure, func_modules_add_dummy,
70665         func_modules_to_filelist, func_import, func_create_testdir,
70666         func_create_megatestdir, ...): Use it wherever possible.
70667         Suggested by Ralf Wildenhues.
70668
70669 2006-09-16  Karl Berry  <karl@gnu.org>
70670
70671         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
70672         to avoid sectioning errors.
70673         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
70674         [ifinfo]: blank line after @center-ed titles.
70675         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
70676         Spell FSF address consistently with others.
70677         (These changes approved by rms.)
70678
70679 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70680
70681         Speed up by a factor of 1.61.
70682         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
70683         already checked module names again.
70684
70685 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70686
70687         Speed up by a factor of 1.13.
70688         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
70689         for new_files, and the input to func_add_or_update.
70690
70691 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70692
70693         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
70694         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
70695
70696 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70697
70698         * modules/mkancesdirs (Depends-on): Add fcntl.
70699         * modules/savewd: New file.
70700         * MODULES.html.sh (File system functions): Add savewd.
70701
70702         * modules/configmake (Makefile.am): Add support for the
70703         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
70704
70705 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70706
70707         * m4/savewd.m4: New file.
70708
70709 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70710
70711         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
70712         (dirchownmod): New arg FD.  All callers changed.
70713         Use FD rather than opening the directory ourself, as opening is
70714         now the caller's responsibility.
70715         * lib/dirchownmod.h: Likewise.
70716         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
70717         hosts that require <sys/types.h> before <sys/stat.h>.  Include
70718         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
70719         (test_dir): Remove.
70720         (mkancesdirs): Return length of prefix of FILE that has already
70721         been made, or -2 if there is a child doing the work.  Redo
70722         algorithm so that it is O(N) rather than O(N**2).  Optimize away
70723         ".", and treat ".." specially since it might stray back into
70724         already-created areas.  Use a subprocess if necessary.  New arg
70725         WD; all users changed.  MAKE_DIR function should now return 1
70726         if it creates a directory that is not readable.  Return -2 if
70727         a child process is spun off.
70728         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
70729         Adjust signature to match code.
70730         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
70731         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
70732         all users changed.
70733         * lib/savewd.c, lib/savewd.h: New files.
70734
70735 2006-09-15  Jim Meyering  <jim@meyering.net>
70736
70737         * modules/rename-dest-slash: New module.
70738         * MODULES.html.sh (posix_compat): Add it here.
70739
70740         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
70741
70742 2006-09-15  Jim Meyering  <jim@meyering.net>
70743
70744         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
70745         file.
70746
70747         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
70748
70749 2006-09-15  Jim Meyering  <jim@meyering.net>
70750
70751         * lib/rename-dest-slash.c (has_trailing_slash): Use
70752         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
70753         (rpl_rename_dest_slash): Perform the cheaper trailing slash
70754         test before testing whether SRC is a directory.
70755         Suggestions from Bruno Haible.
70756
70757         Avoid a warning about an unused variable.
70758         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
70759         into the #ifdef block where it's used.
70760
70761         * lib/rename-dest-slash.c: New file.
70762
70763 2006-09-14  Bruno Haible  <bruno@clisp.org>
70764
70765         * lib/allocsa.c: Include <config.h> unconditionally.
70766         * lib/asnprintf.c: Likewise.
70767         * lib/asprintf.c: Likewise.
70768         * lib/c-strcasecmp.c: Likewise.
70769         * lib/c-strcasestr.c: Likewise.
70770         * lib/c-strncasecmp.c: Likewise.
70771         * lib/c-strstr.c: Likewise.
70772         * lib/classpath.c: Likewise.
70773         * lib/clean-temp.c: Likewise.
70774         * lib/concatpath.c: Likewise.
70775         * lib/copy-file.c: Likewise.
70776         * lib/csharpcomp.c: Likewise.
70777         * lib/csharpexec.c: Likewise.
70778         * lib/execute.c: Likewise.
70779         * lib/fatal-signal.c: Likewise.
70780         * lib/findprog.c: Likewise.
70781         * lib/fwriteerror.c: Likewise.
70782         * lib/gl_array_list.c: Likewise.
70783         * lib/gl_array_oset.c: Likewise.
70784         * lib/gl_avltree_list.c: Likewise.
70785         * lib/gl_avltree_oset.c: Likewise.
70786         * lib/gl_avltreehash_list.c: Likewise.
70787         * lib/gl_carray_list.c: Likewise.
70788         * lib/gl_linked_list.c: Likewise.
70789         * lib/gl_linkedhash_list.c: Likewise.
70790         * lib/gl_list.c: Likewise.
70791         * lib/gl_oset.c: Likewise.
70792         * lib/gl_rbtree_list.c: Likewise.
70793         * lib/gl_rbtree_oset.c: Likewise.
70794         * lib/gl_rbtreehash_list.c: Likewise.
70795         * lib/imaxabs.c: Likewise.
70796         * lib/imaxdiv.c: Likewise.
70797         * lib/javacomp.c: Likewise.
70798         * lib/javaexec.c: Likewise.
70799         * lib/javaversion.c: Likewise.
70800         * lib/linebreak.c: Likewise.
70801         * lib/localcharset.c: Likewise.
70802         * lib/lock.c: Likewise.
70803         * lib/mbchar.c: Likewise.
70804         * lib/mbswidth.c: Likewise.
70805         * lib/mkdtemp.c: Likewise.
70806         * lib/pipe.c: Likewise.
70807         * lib/printf-args.c: Likewise.
70808         * lib/printf-parse.c: Likewise.
70809         * lib/progname.c: Likewise.
70810         * lib/progreloc.c: Likewise.
70811         * lib/readlink.c: Likewise.
70812         * lib/sh-quote.c: Likewise.
70813         * lib/stpcpy.c: Likewise.
70814         * lib/stpncpy.c: Likewise.
70815         * lib/strcasecmp.c: Likewise.
70816         * lib/strcasestr.c: Likewise.
70817         * lib/strcspn.c: Likewise.
70818         * lib/striconv.c: Likewise.
70819         * lib/strncasecmp.c: Likewise.
70820         * lib/strnlen1.c: Likewise.
70821         * lib/strstr.c: Likewise.
70822         * lib/strtok_r.c: Likewise.
70823         * lib/tls.c: Likewise.
70824         * lib/tmpdir.c: Likewise.
70825         * lib/unicodeio.c: Likewise.
70826         * lib/unsetenv.c: Likewise.
70827         * lib/vasnprintf.c: Likewise.
70828         * lib/vasprintf.c: Likewise.
70829         * lib/wait-process.c: Likewise.
70830         * lib/xallocsa.c: Likewise.
70831         * lib/xsetenv.c: Likewise.
70832         * lib/xstriconv.c: Likewise.
70833
70834 2006-09-13  Simon Josefsson  <jas@extundo.com>
70835
70836         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
70837         that internally, suggested by Ralf Wildenhues
70838         <Ralf.Wildenhues@gmx.de>.
70839
70840 2006-09-13  Simon Josefsson  <jas@extundo.com>
70841
70842         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
70843         @LIBOBJS@.
70844         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70845
70846 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70847
70848         * lib/_fpending.c: Include <config.h> unconditionally, since we no
70849         longer worry about uses that don't define HAVE_CONFIG_H.
70850         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
70851         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
70852         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
70853         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
70854         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
70855         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
70856         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
70857         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
70858         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
70859         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
70860         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
70861         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
70862         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
70863         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
70864         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
70865         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
70866         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
70867         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
70868         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
70869         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
70870         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
70871         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
70872         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
70873         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
70874         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
70875         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
70876         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
70877         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
70878         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
70879         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
70880         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
70881         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
70882         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
70883         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
70884         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
70885         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
70886         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
70887         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
70888         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
70889         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
70890         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
70891         Likewise.
70892
70893 2006-09-13  Eric Blake  <ebb9@byu.net>
70894
70895         * lib/getopt.c: Fix typo in last commit.
70896
70897 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70898
70899         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
70900         dgettext.
70901
70902 2006-09-12  Jim Meyering  <jim@meyering.net>
70903
70904         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
70905         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
70906         Reported by Nelson H. F. Beebe.
70907
70908 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70909
70910         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
70911         program_invocation_name and program_invocation_short_name are
70912         initialized.
70913         * lib/argp-namefrob.h: Move declarations of program_invocation_name
70914         and program_invocation_short_name to argp.h, so they are visible
70915         to user programs.
70916         * lib/argp.h: Likewise
70917
70918 2006-09-10  Bruno Haible  <bruno@clisp.org>
70919
70920         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70921         m4/inttypes_h.m4, m4/uintmax_t.m4.
70922
70923 2006-09-10  Bruno Haible  <bruno@clisp.org>
70924
70925         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
70926         gl_AC_TYPE_UINTMAX_T.
70927
70928 2006-09-10  Bruno Haible  <bruno@clisp.org>
70929
70930         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
70931
70932 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70933
70934         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
70935         convention.  Text proposed by Bruno Haible.
70936         (struct argp_option): Document the use of N_() wrappers.
70937
70938         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
70939         '\v', and translate the two parts separately, instead of feeding
70940         the whole string to gettext.  This allows to exclude
70941         '\v' from the strings visible to the translator by writing doc
70942         strings as N_("..") "\v" N_("..").
70943
70944 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
70945
70946         * config/srclist.txt: Undo latest change; the bug was fixed.
70947
70948 2006-09-09  Bruno Haible  <bruno@clisp.org>
70949
70950         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
70951         assignments if building a library without libtool.
70952         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
70953         in func_emit_lib_Makefile_am.
70954         (func_import): When building a static library libfoo.a, arrange to
70955         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
70956         (func_create_testdir): Likewise.
70957         * modules/gc (configure.ac, Makefile.am): If building statically,
70958         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
70959         * modules/iconvme (configure.ac, Makefile.am): Likewise.
70960         * modules/striconv (configure.ac, Makefile.am): Likewise.
70961         Based on a suggestion by Ralf Wildenhues.
70962
70963 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70964
70965         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70966         Check for unistd.h too, since Autoconf doesn't assume POSIX.
70967         Also:
70968
70969         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70970         Add year_2050_test to catch glibc bug 2821
70971         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70972
70973         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70974         Prefer #ifdef to #if.
70975
70976         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
70977         Return from 'main' instead of calling 'exit'.
70978
70979 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70980
70981         * lib/mktime.c (guess_time_tm): Fix bug where mktime
70982         returned the maximum time_t value rather than (time_t) -1.
70983         Problem originally reported by William Bardwell
70984         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70985
70986         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70987         Moved to here ...
70988         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70989         ... from here.
70990
70991 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70992
70993         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
70994         2821 is fixed.
70995
70996 2006-09-08  Jim Meyering  <jim@meyering.net>
70997
70998         Don't make generated files read-only.  That would bother too many
70999         people.  However, do retain the ability to work when targets are
71000         read-only: remove the destination and temporary files before writing
71001         them (when generated via sed or echo), or by using the -f option for
71002         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
71003         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71004         * modules/byteswap, modules/configmake, modules/fcntl:
71005         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71006         * modules/localcharset, modules/netinet_in, modules/poll:
71007         * modules/stdbool, modules/stdint, modules/sys_select:
71008         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71009
71010 2006-09-08  Jim Meyering  <jim@meyering.net>
71011
71012         Avoid new build failure on FreeBSD 6.0.
71013         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
71014         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
71015         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
71016
71017 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71018
71019         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
71020
71021 2006-09-07  Jim Meyering  <jim@meyering.net>
71022
71023         Fix global typo in last change: use chmod u-w, not chmod u-x.
71024         Spotted by Paul Eggert and Bruce Korb.
71025         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71026         * modules/byteswap, modules/configmake, modules/fcntl:
71027         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71028         * modules/localcharset, modules/netinet_in, modules/poll:
71029         * modules/stdbool, modules/stdint, modules/sys_select:
71030         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71031
71032 2006-09-06  Jim Meyering  <jim@meyering.net>
71033
71034         Make generated files be read-only.
71035         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
71036         Ensure that each generated file is now read-only.
71037         * modules/argz: Likewise.
71038         * modules/arpa_inet: Likewise.
71039         * modules/byteswap: Likewise.
71040         * modules/configmake: Likewise.
71041         * modules/fcntl: Likewise.
71042         * modules/fnmatch: Likewise.
71043         * modules/getopt: Likewise.
71044         * modules/glob: Likewise.
71045         * modules/inttypes: Likewise.
71046         * modules/netinet_in: Likewise.
71047         * modules/poll: Likewise.
71048         * modules/stdbool: Likewise.
71049         * modules/stdint: Likewise.
71050         * modules/sys_select: Likewise.
71051         * modules/sys_socket: Likewise.
71052         * modules/sys_stat: Likewise.
71053         * modules/sysexits: Likewise.
71054         * modules/localcharset: Same as above, but continue using temporary
71055         file named "t-$@" (why different?) rather than the "$@-t" used
71056         everywhere else.
71057
71058         * modules/sysexits (Makefile.am): Replace literal occurrences
71059         of "sysexit.h" more readable, and more consistent, "$@".
71060
71061 2006-09-06  Bruno Haible  <bruno@clisp.org>
71062
71063         * modules/striconv: New file.
71064         * modules/xstriconv: New file.
71065         * MODULES.html.sh (Internationalization functions): Add striconv,
71066         xstriconv.
71067
71068 2006-09-06  Bruno Haible  <bruno@clisp.org>
71069
71070         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
71071         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
71072         not using libtool correctly.
71073
71074 2006-09-06  Bruno Haible  <bruno@clisp.org>
71075
71076         * lib/striconv.h: New file.
71077         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
71078         iconvstring.c.
71079         * lib/xstriconv.h: New file.
71080         * lib/xstriconv.c: New file.
71081
71082 2006-09-06  Bruno Haible  <bruno@clisp.org>
71083
71084         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71085         lib_..._LDFLAGS.
71086
71087 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71088
71089         * lib/argz_.h: Sync from Libtool.
71090
71091         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
71092                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71093
71094         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
71095
71096 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71097
71098         * modules/trim: New file.
71099
71100 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71101
71102         * lib/trim.h: New file.
71103         * lib/trim.c: New file.
71104
71105 2006-09-05  Bruno Haible  <bruno@clisp.org>
71106
71107         * MODULES.html.sh (String handling): Add trim.
71108
71109 2006-09-04  Karl Berry  <karl@gnu.org>
71110
71111         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
71112         until next release.
71113
71114 2006-09-03  Bruno Haible  <bruno@clisp.org>
71115
71116         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
71117         correctly.
71118
71119 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71120
71121         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
71122         not gl_GETLOADAVG.  Omit unneeded semicolons.
71123         Problems reported by Ralf Wildenhues in
71124         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71125         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
71126         at the end, which is the usual gnulib style.
71127
71128         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
71129         of doing all the work ourselves.
71130         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
71131         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
71132
71133 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71134
71135         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
71136         Problem reported by Ralf Wildenhues in
71137         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71138
71139         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
71140         HAVE_STRUCT_STATFS_F_FSTYPENAME.
71141
71142 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71143
71144         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
71145         yesterday's patch by changing test -n to test -z.
71146
71147 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         * modules/getloadavg (Files): Add m4/getloadavg.m4.
71150         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
71151         the former is now obsolescent.
71152
71153         * modules/chdir-long (Depends-on): Add fcntl.
71154
71155 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71156
71157         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
71158         obsolescent, and programs should use gnulib instead.
71159         * m4/getloadavg.m4: New file, with contents taken from Autoconf
71160         but with prefixes changed.
71161
71162 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71163
71164         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
71165         or stdbool.h, because they might not exist while configuring.
71166
71167         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
71168         Don't include unistd.h or limits.h; not needed, since chdir-long.h
71169         does that for us.
71170         (O_DIRECTORY): Remove.
71171
71172 2006-08-31  Eric Blake  <ebb9@byu.net>
71173
71174         * gnulib-tool: Don't let emacs change spaces to TAB.
71175
71176 2006-08-31  Bruno Haible  <bruno@clisp.org>
71177
71178         * gnulib-tool: When calling func_import more than once, do it in a
71179         subshell.
71180         Reported by Eric Blake <ebb9@byu.net>.
71181
71182 2006-08-31  Bruno Haible  <bruno@clisp.org>
71183
71184         * gnulib-tool (nl): Remove variable.
71185         (sed_transform_lib_file): Use more robust test for config-h module.
71186         (func_import): Fix typo in 2006-08-25 patch.
71187
71188 2006-08-31  Bruno Haible  <bruno@clisp.org>
71189
71190         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
71191         specified, augment Makefile.am variables instead of assigning them.
71192
71193 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71194
71195         Work around a bug in both the Linux and SunOS 64-bit kernels:
71196         nanosleep mishandles sleeps for longer than 2**31 seconds.
71197         Problem reported by Frank v Waveren in
71198         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71199         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
71200         Check for nanosleep bug.
71201         (LIB_NANOSLEEP): Append clock_gettime library if needed.
71202
71203 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71204
71205         Work around a bug in both the Linux and SunOS 64-bit kernels:
71206         nanosleep mishandles sleeps for longer than 2**31 seconds.
71207         Problem reported by Frank v Waveren in
71208         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71209         * lib/nanosleep.c (BILLION): New constant.
71210         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
71211         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
71212         implementation.
71213
71214 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71215
71216         * modules/nanosleep (Depends-on): Add gettime.
71217
71218 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71219         and Simon Josefsson  <jas@extundo.com>
71220         and Oskar Liljeblad  <oskar@osk.mine.nu>
71221
71222         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
71223         * gnulib-tool (func_import): New license type 'unmodifiable license
71224         text'.
71225         * modules/fdl: Use it.  Longer description.
71226         * module/gpl, module/lgpl: New files.
71227
71228 2006-08-30  Jim Meyering  <jim@meyering.net>
71229
71230         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
71231         shadowing the parameter.
71232
71233 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71234
71235         Sync from Libtool:
71236
71237         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71238
71239         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
71240         sharing with gnulib.  Report by Eric Blake.
71241
71242 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71243
71244         * modules/isapipe: New file.
71245         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
71246
71247 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71248
71249         * modules/configmake (Makefile.am): Add a comment, and omit
71250         the CONFIGMAKE_ prefix from generated macro names.  Suggested
71251         by Bruno Haible.
71252
71253 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71254
71255         * m4/isapipe.m4: New file.
71256
71257 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71258
71259         * lib/isapipe.c, lib/isapipe.h: New files.
71260
71261 2006-08-29  Jim Meyering  <jim@meyering.net>
71262
71263         * modules/configmake (Makefile.am): Make configmake.h depend on
71264         Makefile.  Otherwise, a stale configmake.h could hang around.
71265
71266 2006-08-29  Eric Blake  <ebb9@byu.net>
71267
71268         * lib/error.c (error_at_line, print_errno_message): Match libc, after
71269         resolution of upstream bug 3044.
71270
71271 2006-08-29  Bruno Haible  <bruno@clisp.org>
71272
71273         * modules/localcharset (Depends-on): Add configmake.
71274         (Makefile.am): Remove setting of LIBDIR through DEFS.
71275
71276 2006-08-29  Bruno Haible  <bruno@clisp.org>
71277
71278         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
71279         defined.
71280
71281 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71282
71283         * modules/fcntl: New file.
71284         * modules/chdir-safer (Depends-on): Add fcntl.
71285         * modules/fts: Likewise.
71286         * modules/mkdir-p: Likewise.
71287
71288         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
71289         This undoes the most recent change, since we're now addressing the
71290         problem in a different way.
71291
71292         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
71293         into output, since the output might be called Makefile.am even
71294         if $makefile_name is something different.
71295         (func_import): Use $makefile_am rather than
71296         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
71297         empty.
71298
71299         * modules/inttypes (Files): Add m4/inttypes-h.m4.
71300
71301 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71302
71303         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
71304         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
71305         recent change to stdint.m4, since we're now addressing the problem in a
71306         different way.
71307
71308 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71309
71310         * m4/fcntl_h.m4: New file.
71311
71312 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71313
71314         * lib/fcntl_.h: New file.
71315         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
71316         the fcntl module.
71317         * lib/dirchownmod.c: Likewise.
71318         * lib/fts.c: Likewise.
71319
71320         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
71321         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
71322         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
71323         just before including <inttypes.h>, to avoid circular inclusion.
71324
71325 2006-08-28  Jim Meyering  <jim@meyering.net>
71326
71327         * doc/visibility.texi: Actually read and correct the grammar of the
71328         sentence affected by yesterday's change.
71329
71330 2006-08-28  Eric Blake  <ebb9@byu.net>
71331
71332         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
71333         needs wrapper.
71334
71335 2006-08-28  Eric Blake  <ebb9@byu.net>
71336
71337         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
71338
71339 2006-08-28  Eric Blake  <ebb9@byu.net>
71340
71341         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
71342
71343 2006-08-28  Bruno Haible  <bruno@clisp.org>
71344
71345         * modules/c-strstr: New file, from GNU gettext.
71346         * MODULES.html.sh (String handling): Add c-strstr.
71347
71348 2006-08-28  Bruno Haible  <bruno@clisp.org>
71349
71350         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
71351         macros.
71352         Reported by Eric Blake.
71353
71354 2006-08-28  Bruno Haible  <bruno@clisp.org>
71355
71356         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
71357         (VASNPRINTF): Return a string of length > INT_MAX without failing.
71358         * lib/vasprintf.c: Include errno.h, limits.h.
71359         (EOVERFLOW): New fallback definition.
71360         (vasprintf): Test here whether the string length is > INT_MAX.
71361         * lib/vsnprintf.c: Include errno.h, limits.h.
71362         (EOVERFLOW): New fallback definition.
71363         (vsnprintf): Fix bug when generated string was too long for the buffer.
71364         Test here whether the string length is > INT_MAX.
71365
71366 2006-08-28  Bruno Haible  <bruno@clisp.org>
71367
71368         * lib/inttypes_.h (SCNX*): Remove definitions.
71369         Reported by Eric Blake.
71370
71371 2006-08-28  Bruno Haible  <bruno@clisp.org>
71372
71373         * lib/c-strstr.h: New file, from GNU gettext.
71374         * lib/c-strstr.c: New file, from GNU gettext.
71375
71376 2006-08-28  Bruno Haible  <bruno@clisp.org>
71377
71378         * gnulib-tool: Reorder some statements.
71379
71380 2006-08-28  Bruno Haible  <bruno@clisp.org>
71381
71382         * gnulib-tool: New option --makefile-name.
71383         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
71384         $makefile_name.
71385         (func_import): Write $makefile_name to the cache file, and read it from
71386         there unless explicitly specified. Use $makefile_name as file name
71387         instead of Makefile.am. Adjust the recommendations accordingly.
71388
71389 2006-08-28  Bruno Haible  <bruno@clisp.org>
71390
71391         * gnulib-tool (func_verify_module): Check against misapplying patch.
71392
71393 2006-08-28  Bruno Haible  <bruno@clisp.org>
71394
71395         * gnulib-tool (func_relativize, func_relconcat): New functions.
71396         Give an error if --local-dir is given with --update.
71397         Remove trailing slashes from $local_gnulib_dir.
71398         (func_import): Store the relativized $local_gnulib_dir in
71399         gnulib-cache.m4, and read it from there if not specified explicitly.
71400
71401 2006-08-28  Bruno Haible  <bruno@clisp.org>
71402
71403         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
71404         is the current directory. Respect also $local_gnulib_dir.
71405
71406 2006-08-28  Bruno Haible  <bruno@clisp.org>
71407             Simon Josefsson  <jas@extundo.com>
71408
71409         BeOS portability.
71410         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
71411
71412 2006-08-27  Jim Meyering  <jim@meyering.net>
71413
71414         * doc/visibility.texi: Remove duplicate word: "pointer".
71415
71416 2006-08-26  Bruno Haible  <bruno@clisp.org>
71417
71418         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
71419         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
71420         (Makefile.am): Create inttypes.h from inttypes_.h.
71421         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
71422
71423         * modules/imaxabs: New file.
71424
71425         * modules/imaxdiv: New file.
71426
71427 2006-08-26  Bruno Haible  <bruno@clisp.org>
71428
71429         * m4/inttypes.m4: New file.
71430         * m4/_inttypes_h.m4: Remove file.
71431         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
71432         PRI_MACROS_BROKEN.
71433         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
71434
71435         * m4/imaxabs.m4: New file.
71436
71437         * m4/imaxdiv.m4: New file.
71438
71439 2006-08-26  Bruno Haible  <bruno@clisp.org>
71440
71441         * lib/inttypes_.h: New file.
71442         * lib/inttypes.h: Remove file.
71443         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
71444
71445         * lib/imaxabs.c: New file.
71446
71447         * lib/imaxdiv.c: New file.
71448
71449 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71450
71451         New config-h module, so that "make" output needn't be cluttered
71452         by -DHAVE_CONFIG_H.
71453         * MODULES.html.sh (Support for building libraries and executables):
71454         Add config-h.
71455         * modules/config-h: New file.
71456         * gnulib-tool (nl, sed_transform_lib_file): New vars.
71457         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
71458         the config-h module is used.
71459
71460         New configmake module, so that "make" output needn't be cluttered
71461         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
71462         * MODULES.html.sh (Support for building libraries and executables):
71463         Add configmake.
71464         * modules/configmake: New file.
71465
71466 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         * m4/config-h.m4: New file.
71469
71470 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71471
71472         * config/srclist.txt: Add elisp-comp.
71473
71474 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71475
71476         * MODULES.html.sh (Support for building libraries and executables):
71477         Add elisp-comp.
71478         * build-aux/elisp-comp: New file.
71479         * modules/elisp-comp: New file.
71480
71481 2006-08-24  Bruno Haible  <bruno@clisp.org>
71482
71483         * gnulib-tool (func_create_testdir): Use non-default values of
71484         sourcebase and m4base.
71485
71486 2006-08-24  Bruno Haible  <bruno@clisp.org>
71487
71488         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
71489         HTML structure.
71490
71491 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71492
71493         * modules/openat (Depends-on): Add lchown.
71494
71495 2006-08-23  Bruno Haible  <bruno@clisp.org>
71496
71497         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
71498         of gl_LOCK_EARLY instead of gl_LOCK.
71499
71500 2006-08-23  Bruno Haible  <bruno@clisp.org>
71501
71502         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
71503         on OSF/1 to no.
71504         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
71505
71506 2006-08-23  Bruno Haible  <bruno@clisp.org>
71507
71508         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
71509         as unusable.
71510
71511         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
71512         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
71513         (gl_LOCK): New macro.
71514
71515 2006-08-22  Simon Josefsson  <jas@extundo.com>
71516
71517         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
71518         to md5 module.
71519
71520 2006-08-22  Simon Josefsson  <jas@extundo.com>
71521
71522         * MODULES.html.sh: Add "Support for maintaining and release
71523         projects".
71524
71525         * build-aux/gnupload: New file, from coreutils.
71526
71527 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71528
71529         Avoid the need for AC_LIBSOURCES in m4 macros.
71530         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
71531         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
71532         * modules/check-version (EXTRA_DIST): Add check-version.h.
71533         * modules/crc (EXTRA_DIST): Add crc.h.
71534         * modules/des (EXTRA_DIST): Add des.h.
71535         * modules/gc (EXTRA_DIST): Add gc.h.
71536         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
71537         * modules/getline (EXTRA_DIST): Add getline.h.
71538         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
71539         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
71540         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
71541         * modules/md2 (EXTRA_DIST): Add md2.h.
71542         * modules/md4 (EXTRA_DIST): Add md4.h.
71543         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
71544         * modules/read-file (EXTRA_DIST): Add read-file.h.
71545         * modules/readline (EXTRA_DIST): Add readline.h.
71546         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
71547         rijndael-api-fst.h.
71548
71549 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71550
71551         * m4/rijndael.m4 (gl_ARCFOUR):
71552         * m4/arctwo.m4 (gl_ARCTWO):
71553         * m4/check-version.m4 (gl_CHECK_VERSION):
71554         * m4/crc.m4 (gl_CRC):
71555         * m4/des.m4 (gl_DES):
71556         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
71557         * m4/gc.m4 (gl_GC):
71558         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
71559         * m4/getline.m4 (gl_FUNC_GETLINE):
71560         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
71561         * m4/hmac-md5.m4 (gl_HMAC_MD5):
71562         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
71563         * m4/md2.m4 (gl_MD2):
71564         * m4/md4.m4 (gl_MD4):
71565         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
71566         * m4/read-file.m4 (gl_FUNC_READ_FILE):
71567         * m4/readline.m4 (gl_FUNC_READLINE):
71568         * m4/rijndael.m4 (gl_RIJNDAEL):
71569         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71570         to get the necessary .h files and whatnot.
71571
71572 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
71575         gnulib rather than the other way around.
71576         * config/srclistvars.sh (COREUTILS): Remove.
71577
71578 2006-08-22  Jim Meyering  <jim@meyering.net>
71579
71580         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
71581
71582         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
71583
71584 2006-08-22  Eric Blake  <ebb9@byu.net>
71585
71586         * modules/regexprops-generic: New file.
71587         * MODULES.html.sh (Support for building documentation): List it.
71588
71589 2006-08-22  Eric Blake  <ebb9@byu.net>
71590
71591         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
71592         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71593         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
71594         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
71595
71596 2006-08-22  Bruno Haible  <bruno@clisp.org>
71597
71598         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
71599         and lib_LTLIBRARIES like the other lib_* variables.
71600
71601 2006-08-22  Bruno Haible  <bruno@clisp.org>
71602
71603         * build-aux/x-to-1.in: New file, from GNU gettext.
71604
71605 2006-08-22  Bruno Haible  <bruno@clisp.org>
71606
71607         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
71608         <utmpx.h> exists.
71609
71610 2006-08-22  Bruno Haible  <bruno@clisp.org>
71611
71612         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
71613         <utmpx.h> exists.
71614
71615 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71616
71617         BeOS portability.
71618         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
71619         exist.
71620         Problem reported by Bruno Haible.
71621
71622 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71623
71624         Avoid the need for AC_LIBSOURCES in m4 macros.
71625         * modules/acl (EXTRA_DIST): Add acl.h.
71626         * modules/argmatch (Files): Add m4/argmatch.m4.
71627         (configure.ac): Add gl_ARGMATCH.
71628         (EXTRA_DIST): Renamed from lib_SOURCES, for
71629         consistency with the other modules.  Remove argmatch.c.
71630         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
71631         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
71632         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
71633         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
71634         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
71635         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
71636         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
71637         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
71638         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
71639         * modules/closeout (EXTRA_DIST): Add closeout.h.
71640         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
71641         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
71642         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
71643         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
71644         dirname.h; remove basename.c and stripslash.c.
71645         * modules/exclude (EXTRA_DIST): Add exclude.h.
71646         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
71647         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
71648         * modules/file-type (EXTRA_DIST): Add file-type.h.
71649         * modules/filemode (EXTRA_DIST): Add filemode.h.
71650         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
71651         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71652         * modules/fpending (EXTRA_DIST): Add __fpending.h.
71653         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
71654         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
71655         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
71656         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
71657         * modules/getdate (EXTRA_DIST): Add getdate.c.
71658         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
71659         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
71660         * modules/getpass (EXTRA_DIST): Add getpass.h.
71661         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
71662         * modules/group-member (EXTRA_DIST): Add group-member.h.
71663         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
71664         * modules/hash (EXTRA_DIST): Add hash.h.
71665         * modules/human (EXTRA_DIST): Add human.h.
71666         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
71667         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
71668         * modules/lchown (EXTRA_DIST): Add lchown.h.
71669         * modules/long-options (EXTRA_DIST): Add long-options.h.
71670         * modules/lstat (EXTRA_DIST): Add lstat.h.
71671         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
71672         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
71673         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
71674         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
71675         * modules/memxor (EXTRA_DIST): Add memxor.h.
71676         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
71677         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
71678         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
71679         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
71680         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
71681         * modules/physmem (EXTRA_DIST): Add physmem.h.
71682         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
71683         * modules/posixver (EXTRA_DIST): Add posixver.h.
71684         * modules/quote (EXTRA_DIST): Add quote.h.
71685         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
71686         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
71687         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
71688         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
71689         regex_internal.h regexec.c.
71690         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
71691         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
71692         * modules/same (EXTRA_DIST): Add same.h.
71693         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
71694         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
71695         * modules/savedir (EXTRA_DIST): Add savedir.h.
71696         * modules/sha1 (EXTRA_DIST): Add sha1.h.
71697         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
71698         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
71699         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
71700         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
71701         * modules/strdup (EXTRA_DIST): Add strdup.h.
71702         * modules/strftime (EXTRA_DIST): Add strftime.h.
71703         * modules/strndup (EXTRA_DIST): Add strndup.h.
71704         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
71705         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
71706         * modules/time_r (EXTRA_DIST): Add time_r.h.
71707         * modules/timespec (EXTRA_DIST): Add timespec.h.
71708         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71709         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
71710         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
71711         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
71712         * modules/userspec (EXTRA_DIST): Add userspec.h.
71713         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
71714         * modules/utimens (EXTRA_DIST): Add utimens.h.
71715         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
71716         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
71717         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
71718         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
71719         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
71720         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
71721         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
71722         * modules/yesno (EXTRA_DIST): Add yesno.h.
71723
71724 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71725
71726         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
71727
71728         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
71729         * m4/dev-ino.m4, same-inode.m4: Remove.
71730
71731         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
71732         * m4/acl.m4 (AC_FUNC_ACL):
71733         * m4/backupfile.m4 (gl_BACKUPFILE):
71734         * m4/c-strtod.m4 (gl_C99_STRTOLD):
71735         * m4/canon-host.m4 (gl_CANON_HOST):
71736         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71737         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
71738         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
71739         * m4/cloexec.m4 (gl_CLOEXEC):
71740         * m4/close-stream.m4 (gl_CLOSE_STREAM):
71741         * m4/closeout.m4 (gl_CLOSEOUT):
71742         * m4/dirfd.m4 (gl_FUNC_DIRFD):
71743         * m4/dirname.m4 (gl_DIRNAME):
71744         * m4/exclude.m4 (gl_EXCLUDE):
71745         * m4/exitfail.m4 (gl_EXITFAIL):
71746         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
71747         * m4/file-type.m4 (gl_FILE_TYPE):
71748         * m4/filemode.m4 (gl_FILEMODE):
71749         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
71750         * m4/fpending.m4 (gl_FUNC_FPENDING):
71751         * m4/fprintftime.m4 (gl_FPRINTFTIME):
71752         * m4/fts.m4 (gl_FUNC_FTS):
71753         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
71754         * m4/getdate.m4 (gl_GETDATE):
71755         * m4/gethrxtime.m4 (gl_GETHRXTIME):
71756         * m4/getpagesize.m4 (gl_GETPAGESIZE):
71757         * m4/getpass.m4 (gl_FUNC_GETPASS):
71758         * m4/gettime.m4 (gl_GETTIME):
71759         * m4/getugroups.m4 (gl_GETUGROUPS):
71760         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
71761         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
71762         * m4/hard-locale.m4 (gl_HARD_LOCALE):
71763         * m4/hash.m4 (gl_HASH):
71764         * m4/idcache.m4 (gl_IDCACHE):
71765         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
71766         * m4/lchown.m4 (gl_FUNC_LCHOWN):
71767         * m4/long-options.m4 (gl_LONG_OPTIONS):
71768         * m4/lstat.m4 (gl_FUNC_LSTAT):
71769         * m4/md5.m4 (gl_MD5):
71770         * m4/memcasecmp.m4 (gl_MEMCASECMP):
71771         * m4/memcoll.m4 (gl_MEMCOLL):
71772         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
71773         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
71774         * m4/memxor.m4 (gl_MEMXOR):
71775         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
71776         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
71777         * m4/modechange.m4 (gl_MODECHANGE):
71778         * m4/mountlist.m4 (gl_MOUNTLIST):
71779         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71780         * m4/openat.m4 (gl_FUNC_OPENAT):
71781         * m4/pathmax.m4 (gl_PATHMAX):
71782         * m4/physmem.m4 (gl_PHYSMEM):
71783         * m4/posixtm.m4 (gl_POSIXTM):
71784         * m4/posixver.m4 (gl_POSIXVER):
71785         * m4/quote.m4 (gl_QUOTE):
71786         * m4/quotearg.m4 (gl_QUOTEARG):
71787         * m4/readtokens.m4 (gl_READTOKENS):
71788         * m4/readutmp.m4 (gl_READUTMP):
71789         * m4/regex.m4 (gl_REGEX):
71790         * m4/safe-read.m4 (gl_SAFE_READ):
71791         * m4/safe-write.m4 (gl_SAFE_WRITE):
71792         * m4/same.m4 (gl_SAME):
71793         * m4/save-cwd.m4 (gl_SAVE_CWD):
71794         * m4/savedir.m4 (gl_SAVEDIR):
71795         * m4/settime.m4 (gl_SETTIME):
71796         * m4/sha1.m4 (gl_SHA1):
71797         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
71798         * m4/stat-macros.m4 (gl_STAT_MACROS):
71799         * m4/stat-time.m4 (gl_STAT_TIME):
71800         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
71801         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
71802         * m4/strdup.m4 (gl_FUNC_STRDUP):
71803         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
71804         * m4/strndup.m4 (gl_FUNC_STRNDUP):
71805         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
71806         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
71807         * m4/time_r.m4 (gl_TIME_R):
71808         * m4/timespec.m4 (gl_TIMESPEC):
71809         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
71810         * m4/unlinkdir.m4 (gl_UNLINKDIR):
71811         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
71812         * m4/userspec.m4 (gl_USERSPEC):
71813         * m4/utimecmp.m4 (gl_UTIMECMP):
71814         * m4/utimens.m4 (gl_UTIMENS):
71815         * m4/xalloc.m4 (gl_XALLOC):
71816         * m4/xgetcwd.m4 (gl_XGETCWD):
71817         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
71818         * m4/xreadlink.m4 (gl_XREADLINK):
71819         * m4/xstrtod.m4 (gl_XSTRTOD):
71820         * m4/yesno.m4 (gl_YESNO):
71821         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71822         to get the necessary .h files and whatnot.
71823
71824 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
71825             Bruno Haible  <bruno@clisp.org>
71826
71827         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
71828         /bin/sh understanding of '!' conditional negation.
71829
71830 2006-08-21  Jim Meyering  <jim@meyering.net>
71831
71832         * modules/openat (Depends-on): Really alphabetize.
71833
71834         * modules/acl (Depends-on): Add error and quote.
71835
71836         * check-module (find_included_lib_files): Add at-func.c to the
71837         ok-to-include-more-than-once white list.
71838
71839         * modules/openat (Depends-on): Add lstat.  Alphabetize.
71840
71841 2006-08-21  Bruno Haible  <bruno@clisp.org>
71842
71843         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71844         Emit a pkgdata_DATA variable only if some snippets add contents to it.
71845         Reported by Martin Lambers <marlam@marlam.de>.
71846
71847 2006-08-21  Bruno Haible  <bruno@clisp.org>
71848
71849         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
71850         specify an installation location, don't emit a noinst_LIBRARIES or
71851         noinst_LTLIBRARIES assignment.
71852
71853 2006-08-21  Bruno Haible  <bruno@clisp.org>
71854
71855         BeOS portability.
71856         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
71857         BeOS has mbrtowc() but no <wctype.h>.
71858
71859 2006-08-21  Bruno Haible  <bruno@clisp.org>
71860
71861         BeOS portability.
71862         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
71863         exist.
71864
71865 2006-08-21  Bruno Haible  <bruno@clisp.org>
71866
71867         BeOS portability.
71868         * lib/mbchar.h: Include <wctype.h> only if it exists.
71869
71870 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71871
71872         Remove files that are no longer needed by their respective modules.
71873         * m4/obstack.m4: Remove.
71874         * m4/strerror_r.m4: Remove.
71875         * m4/uint32_t.m4: Remove.
71876         * m4/uintptr_t.m4: Remove.
71877         * m4/ullong_max.m4: Remove.
71878         * m4/xstrtoimax.m4: Remove.
71879         * m4/xstrtoumax.m4: Remove.
71880
71881         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
71882         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
71883         dependencies now capture this.
71884
71885         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
71886         Do not use AC_LIBSOURCES, since gnulib modules now do this.
71887         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
71888         * m4/human.m4 (gl_HUMAN): Likewise.
71889         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
71890         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
71891
71892         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
71893
71894         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
71895         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
71896         stdint.
71897         * m4/human.m4 (gl_HUMAN): Likewise.
71898         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
71899         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
71900         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71901         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71902         * m4/xstrtol (gl_XSTRTOL): Likewise.
71903
71904         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
71905         AC_TYPE_LONG_LONG_INT.
71906         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71907         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
71908         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
71909         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71910
71911         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
71912         on stdbool.
71913
71914         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
71915         (gl_PREREQ_XSTRTOUL): Remove.
71916
71917         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
71918
71919         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
71920         mode.
71921
71922 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71923
71924         Add and change modules to make it easier for coreutils to use
71925         gnulib-tool.
71926         * modules/backupfile (Files): Remove m4/d-ino.m4.
71927         (Depends-on): Add d-ino.
71928         * modules/cycle-check (Depends-on): Add stdint.
71929         (lib_SOURCES): Add cycle-check.h.
71930         * modules/d-ino: New module.
71931         * modules/d-type: New module.
71932         * modules/error (Files): Remove m4/strerror_r.m4.
71933         * modules/filemode (Files): Add m4/st_dm_mode.m4.
71934         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71935         m4/inttypes_h.m4, m4/uintmax_t.m4.
71936         (Depends-on): Add stdint.
71937         (lib_SOURCES): Add fsusage.h.
71938         * modules/getcwd (Files): Remove d-ino.m4.
71939         (Depends-on): Add d-ino.
71940         * modules/getndelim2 (Depends-on): Add stdint.
71941         * modules/glob (Files): Remove m4/d-type.m4.
71942         (Depends-on): Add d-type.
71943         * modules/host-os: New module.
71944         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
71945         m4/inttypes_h.m4, m4/uintmax_t.m4.
71946         * Depends-on: Add stdint.
71947         (lib_SOURCES): Add human.h.
71948         * modules/inttostr (Files): Remove m4/intmax_t.m4,
71949         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
71950         m4/uintmax_t.m4, m4/ulonglong.m4.
71951         (Depends-on): Add stdint.
71952         (EXTRA_DIST): Add inttostr.h.
71953         * modules/lchmod: New module.
71954         * modules/link-follow: New module.
71955         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
71956         (Depends-on): Add lchmod.
71957         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
71958         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
71959         (Depends-on): Add stdint.
71960         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
71961         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
71962         (Depends-on): Add stdint.
71963         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
71964         * modules/perl: New module.
71965         * modules/regex (Depends-on): Add stdint.
71966         * modules/rmdir-errno: New module.
71967         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71968         m4/intmax_t.m4.
71969         (Depends-on): Add stdint.
71970         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71971         m4/uintmax_t.m4.
71972         (Depends-on): Add stdint.
71973         * modules/unlink-busy: New module.
71974         * modules/utimecmp (Depends-on): Add stdint.
71975         * modules/uptime: New module.
71976         * modules/winsz-ioctl: New module.
71977         * modules/winsz-termios: New module.
71978         * modules/xnanosleep (Depends-on): Add nanosleep.
71979         * modules/ullong_max: Remove.
71980         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
71981         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
71982         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
71983         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
71984         (Depends-on): Add inttypes.
71985         (lib_SOURCES): Add xstrtol.h.
71986         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
71987         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
71988         * MODULES.html.sh: Move 'assert' into the assert section.
71989         Move 'dummy' into the linking section.
71990         Remove ullong_max.
71991         Add section for compatibility checks for POSIX:2001 functions,
71992         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
71993         winsz-ioctl, and winsz-termios into it.
71994         Add lchmod.
71995         Add top-level Misc section and put host-os, perl, and uptime
71996         into it.
71997
71998 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71999
72000         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
72001         now assume the stdint module.  Do not include inttypes.h.
72002         * lib/fsusage.h: Likewise.
72003         * lib/getndelim2.c: Likewise.
72004         * lib/human.h: Likewise.
72005         * lib/inttostr.h: Likewise.
72006         * lib/obstack.c: Likewise.
72007         * lib/regex_internal.h: Likewise.
72008         * lib/tempname.c: Likewise.
72009         * lib/utimecmp.c: Likewise.
72010         * lib/xstrtol.h: Likewise.
72011
72012         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
72013
72014         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
72015         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
72016         * lib/xtime.h: Likewise.
72017
72018 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72019
72020         * modules/openat (Files): Add lib/fchmodat.c.
72021         Fixes problem reported by Jay Youngman.
72022
72023 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72024
72025         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
72026         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
72027
72028 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
72029             Bruno Haible  <bruno@clisp.org>
72030
72031         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
72032         and is a script that invokes bison. Tighten the code. Add comments.
72033
72034 2006-08-18  Jim Meyering  <jim@meyering.net>
72035
72036         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
72037         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
72038         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
72039         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
72040
72041 2006-08-18  Bruno Haible  <bruno@clisp.org>
72042
72043         * modules/bison-i18n: New file.
72044         * MODULES.html.sh (Internationalization functions): Add it.
72045
72046 2006-08-18  Bruno Haible  <bruno@clisp.org>
72047
72048         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
72049         sys/statvfs.h. When getmntinfo was found, check its declaration and
72050         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
72051
72052 2006-08-18  Bruno Haible  <bruno@clisp.org>
72053
72054         * m4/bison-i18n.m4: New file, from bison.
72055
72056 2006-08-18  Bruno Haible  <bruno@clisp.org>
72057
72058         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
72059         (ME_DUMMY): Treat "kernfs" as a dummy.
72060         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
72061
72062 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72063
72064         Update from coreutils.
72065
72066         2006-08-15  Jim Meyering  <jim@meyering.net>
72067
72068         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
72069
72070         2006-01-17  Jim Meyering  <jim@meyering.net>
72071
72072         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
72073
72074         2006-01-11  Jim Meyering  <jim@meyering.net>
72075
72076         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
72077         Check for the lchmod function.
72078
72079 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72080
72081         Update from coreutils.
72082
72083         * lib/__fpending.h: Add copyright notice.
72084         * lib/fprintftime.h: Likewise.
72085         * lib/savedir.c: Use (C) in copyright notice.
72086         * lib/savedir.h: Likewise.
72087
72088         2006-08-15  Jim Meyering  <jim@meyering.net>
72089
72090         * lib/at-func.c: New file, with the logic of all emulated at-functions.
72091         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
72092         in support of the EXPECTED_ERRNO macro.
72093         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
72094         definitions.  Instead, define the appropriate symbols and include
72095         "at-func.c".
72096         * lib/mkdirat.c (mkdirat): Likewise.
72097         * lib/fchmodat.c (fchmodat): Likewise.
72098         (ENOSYS): Remove definition.
72099         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
72100         it.  Don't include "unistd--.h" -- it wasn't ever used.
72101
72102         2006-01-17  Jim Meyering  <jim@meyering.net>
72103
72104         Rewrite fts.c not to change the current working directory,
72105         by using openat, fstatat, fdopendir, etc..
72106
72107         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
72108         (HAVE_OPENAT_SUPPORT): Define.
72109         [_LIBC] (fchdir): Don't undef or define; no longer used.
72110         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
72111         Now, this `function' always succeeds, and consumes its file descriptor
72112         parameter -- so callers must not close such FDs.  Update callers.
72113         (diropen_fd, opendirat, cwd_advance_fd): New functions.
72114         (diropen): Add parameter, SP.  Adjust all callers.
72115         Implement using diropen_fd, rather than open.
72116         (fts_open): Initialize new member, fts_cwd_fd.
72117         Remove fts_rft-setting code.
72118         (fts_close): Close fts_cwd_fd, if necessary.
72119         (__opendir2): Define in terms of opendir or opendirat,
72120         depending on whether the FST_NOCHDIR flag is set.
72121         (fts_build): Since fts_safe_changedir consumes its FD, and since
72122         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
72123         and close the dup'd file descriptor upon failure.
72124         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
72125         (fts_safe_changedir): Tweak semantics to reflect that this function
72126         now calls cwd_advance_fd and hence consumes its FD argument.
72127         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
72128         [struct FTS] (fts_rft): Remove now-unused member.
72129         [struct FTS] (fts_cycle.state): Improve comment.
72130
72131         * lib/openat.c (openat_needs_fchdir): New function.
72132         * lib/openat.h (openat_needs_fchdir): Declare it.
72133
72134 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72135
72136         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
72137         Problem and fix reported by Pádraig Brady in
72138         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
72139
72140 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72141
72142         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
72143
72144 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72145
72146         * lib/memcoll.c (memcoll): Optimize for the common case where the
72147         arguments are bytewise equal.
72148
72149 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72150
72151         * doc/regexprops-generic.texi: Add a copyright notice.
72152
72153 2006-08-15  Bruno Haible  <bruno@clisp.org>
72154
72155         * modules/tmpdir (License): Change to LGPL.
72156
72157 2006-08-15  Bruno Haible  <bruno@clisp.org>
72158
72159         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
72160         module.
72161
72162 2006-08-14  Simon Josefsson  <jas@extundo.com>
72163
72164         * config/srclist.txt: Add gnupload.
72165
72166 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72167
72168         Change copyright notice from LGPL 2 to GPL 2, since that's the
72169         standard form used in the gnulib repository.
72170         * tests/test-lock.c: Likewise.
72171         * tests/test-stdint.c: Likewise.
72172         * tests/test-tls.c: Likewise.
72173
72174         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
72175         prelude-manager.  User shorter URLs for GNU projects, without '?'.
72176         Add copyright notice.
72177
72178         * check-module: Add copyright notice.  Output a copyright
72179         notice if "--version" is specified.
72180         * modules/COPYING: New file.
72181         * tests/test-getaddrinfo.c: Add copyright notice.
72182         * tests/test-verify.c: Likewise.
72183
72184 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72185
72186         Change copyright notice from LGPL 2 to GPL 2, since that's the
72187         standard form used in the gnulib repository.
72188         * lib/lock.c: LGPL -> GPL.
72189         * lib/lock.h: Likewise.
72190         * lib/strnlen1.c: Likewise.
72191         * lib/strnlen1.h: Likewise.
72192         * lib/tls.c: Likewise.
72193         * lib/tls.h: Likewise.
72194         * lib/tmpdir.c: Likewise.
72195
72196         * lib/TODO: Remove; this belongs only in coreutils.
72197
72198 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72199
72200         Add copyright notices to long-enough files that lack them, since
72201         otherwise the files aren't clearly free.  Use the same notice that
72202         getdate.texi already uses.
72203         * doc/alloca-opt.texi: Add copyright notice.
72204         * doc/alloca.texi: Likewise.
72205         * doc/ctime.texi: Likewise.
72206         * doc/functions.texi: Likewise.
72207         * doc/gcd.texi: Likewise.
72208         * doc/gnulib-tool.texi: Likewise.
72209         * doc/inet_ntoa.texi: Likewise.
72210         * doc/visibility.texi: Likewise.
72211
72212         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
72213         * doc/quote.texi: Add copyright notice.
72214
72215         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
72216         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
72217         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
72218         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
72219         is now obsolete, and give a pointer to the Sun list.
72220         Add copyright notice.
72221
72222 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72223
72224         * config/srclistvars.sh: Add copyright notice.
72225
72226 2006-08-14  Eric Blake  <ebb9@byu.net>
72227
72228         Import the following change from libc:
72229
72230         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
72231
72232         Upstream bug 2997.
72233         * lib/misc/error.c: Add space between program name and message if file
72234         name is missing.
72235
72236 2006-08-12  Karl Berry  <karl@gnu.org>
72237
72238         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
72239         remove, these originate in gnulib now.
72240
72241 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72242
72243         * doc/Makefile (standards.info standards.html standards.dvi):
72244         Also depend on make-stds.texi.
72245
72246 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72247
72248         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
72249         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
72250
72251         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
72252         in wchar_t.  Problem reported by Eric Blake.
72253
72254         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
72255         LEN is smaller than SIZE.  Suggested by Bruno Haible.
72256         Also, help the compiler to keep LEN in a register.
72257
72258 2006-08-11  Eric Blake  <ebb9@byu.net>
72259
72260         * users.txt: Sort.  Add tar.
72261
72262 2006-08-11  Bruno Haible  <bruno@clisp.org>
72263
72264         * users.txt: New file.
72265
72266 2006-08-11  Bruno Haible  <bruno@clisp.org>
72267
72268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
72269         before <wchar.h>. Needed for OSF/1 and BSD/OS.
72270
72271 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72272
72273         * modules/snprintf (Depends-on): Remove minmax.
72274         (Maintainer): Add self and Bruno.
72275
72276 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72277
72278         * lib/.cppi-disable: Add snprintf.h, socket_.h.
72279         * lib/snprintf.c: Include <errno.h> and <limits.h>.
72280         (EOVERFLOW): Define if the system does not.
72281         Do not include "minmax.h"; it wasn't used.
72282         (snprintf): Don't assume size_t promotes to an unsigned type.
72283         Fix bug when generated string was too long for the buffer: the
72284         buffer's contents are supposed to be the initial prefix of the
72285         output.  Don't assume vasnprintf returns EOVERFLOW if the size
72286         exceeds INT_MAX; do the check ourselves.
72287
72288         Import the following changes from libc:
72289
72290         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
72291
72292         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
72293         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
72294         set wc to the byte which couldn't be converted.
72295         (re_string_reconstruct): Don't clear valid_raw_len before calling
72296         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
72297         tip_context using re_string_context_at.
72298
72299         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
72300
72301         * lib/posix/regex.h: g++ still cannot handled [restrict].
72302
72303         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
72304
72305         * lib/posix/regex.h: Remove special handling for VMS.
72306
72307 2006-08-10  Jim Meyering  <jim@meyering.net>
72308
72309         * modules/same-inode: New module.
72310         * modules/dev-ino: New module.
72311         * modules/cycle-check: Depend on these modules, rather than simply
72312         including their .h files.
72313         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
72314         required via m4/cycle-check.m4.
72315         * modules/same: Depend on new same-inode module, rather than
72316         including same-inode.h.
72317         * modules/chdir-safer: New file.
72318
72319         * modules/chown (Depends-on): Add stat-macros.
72320
72321 2006-08-10  Jim Meyering  <jim@meyering.net>
72322
72323         * m4/cycle-check.m4: New file.
72324         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
72325         * m4/dev-ino.m4, m4/same-inode.m4: New files.
72326
72327 2006-08-10  Eric Blake  <ebb9@byu.net>
72328
72329         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
72330         in from original proposal.
72331
72332 2006-08-10  Eric Blake  <ebb9@byu.net>
72333         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72334
72335         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
72336         namespace.
72337
72338 2006-08-10  Bruno Haible  <bruno@clisp.org>
72339
72340         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
72341         as well.
72342
72343 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72344
72345         Sync from coreutils.
72346
72347         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
72348
72349         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
72350         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
72351
72352 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72353
72354         * modules/restrict: Remove; no longer needed now that we assume
72355         Autoconf 2.59 or later.
72356         * MODULES.html.sh: Remove 'restrict'.
72357         * modules/argp (Depends-on): Remove 'restrict'.
72358         * modules/base64 (Depends-on): Likewise.
72359         * modules/gc (Depends-on): Likewise.
72360         * modules/getaddrinfo (Depends-on): Likewise.
72361         * modules/glob (Depends-on): Likewise.
72362         * modules/inet_ntop (Depends-on): Likewise.
72363         * modules/inet_pton (Depends-on): Likewise.
72364         * modules/memxor (Depends-on): Likewise.
72365         * modules/regex (Depends-on): Likewise.
72366         * modules/strtok_r (Depends-on): Likewise.
72367         * modules/time_r (Depends-on): Likewise.
72368
72369 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72370
72371         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
72372         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
72373         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72374         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
72375         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
72376         * m4/memxor.m4 (gl_MEMXOR): Likewise.
72377         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
72378         gl_C_RESTRICT replaced by AC_C_RESTRICT.
72379
72380         Merge from coreutils.
72381         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
72382         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
72383         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72384         * m4/time_r.m4 (gl_TIME_R): Likewise.
72385
72386 2006-08-09  Karl Berry  <karl@gnu.org>
72387
72388         * config/srclist.txt: no more gettext-tools, per Bruno.
72389
72390 2006-08-08  Eric Blake  <ebb9@byu.net>
72391
72392         * modules/verror: New module.
72393         * MODULES.html.sh: Document it.
72394
72395 2006-08-08  Eric Blake  <ebb9@byu.net>
72396
72397         * lib/verror.h, lib/verror.c: New files.
72398
72399 2006-08-08  Eric Blake  <ebb9@byu.net>
72400
72401         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
72402         verror_at_line output complies with GNU Coding Standards even when
72403         file is NULL.
72404
72405 2006-08-07  Bruno Haible  <bruno@clisp.org>
72406
72407         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
72408         versions of AIX.
72409         Reported by Ralf Wildenhues.
72410
72411 2006-08-07  Bruno Haible  <bruno@clisp.org>
72412
72413         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
72414         in an AC_DEFUN. Needed so that the autoconf snippets can use
72415         AC_REQUIRE.
72416
72417 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72418
72419         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72420         Initialize pkgdata_DATA.
72421         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
72422         overriding it.
72423
72424 2006-08-06  Eric Blake  <ebb9@byu.net>
72425
72426         * lib/error.h: Fold in some upstream changes from glibc.
72427         * lib/error.c: Likewise.
72428
72429 2006-08-04  Bruno Haible  <bruno@clisp.org>
72430
72431         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72432         Make the mostlyclean-local rule depend on mostlyclean-generic.
72433         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
72434
72435 2006-07-31  Bruno Haible  <bruno@clisp.org>
72436
72437         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
72438         <stdlib.h>, <string.h>.
72439
72440 2006-07-30  Bruno Haible  <bruno@clisp.org>
72441
72442         * modules/readlink (License): Change to LGPL.
72443
72444 2006-07-30  Bruno Haible  <bruno@clisp.org>
72445
72446         * modules/javaversion (Makefile.am): Distribute javaversion.java and
72447         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
72448         set PKGDATADIR to point to it.
72449
72450 2006-07-30  Bruno Haible  <bruno@clisp.org>
72451
72452         * modules/csharpexec (configure.ac): Comment out macro invocation.
72453         * modules/javaexec (configure.ac): Likewise.
72454         * modules/javacomp-script (configure.ac): Likewise.
72455
72456         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
72457
72458 2006-07-30  Bruno Haible  <bruno@clisp.org>
72459
72460         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
72461         linked-list.
72462
72463 2006-07-30  Bruno Haible  <bruno@clisp.org>
72464
72465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
72466
72467 2006-07-30  Bruno Haible  <bruno@clisp.org>
72468
72469         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72470         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
72471         get removed.
72472
72473 2006-07-29  Bruno Haible  <bruno@clisp.org>
72474
72475         Make it possible for gnulib-tool to work with locally modified or
72476         augmented gnulib repositories.
72477         * gnulib-tool (func_usage): Document --local-dir option.
72478         (local_gnulib_dir): New variable.
72479         Handle --local-dir option.
72480         (func_lookup_file): New function.
72481         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
72482         (func_get_description, func_get_filelist, func_get_description,
72483         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
72484         func_get_automake_snippet, func_get_include_directive,
72485         func_get_license, func_get_maintainer): Use func_lookup_file.
72486         (func_import, func_create_testdir): Use func_lookup_file.
72487
72488 2006-07-29  Bruno Haible  <bruno@clisp.org>
72489
72490         * modules/setenv (Depends-on): Add unistd.
72491
72492 2006-07-29  Bruno Haible  <bruno@clisp.org>
72493
72494         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
72495
72496 2006-07-29  Bruno Haible  <bruno@clisp.org>
72497
72498         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
72499
72500 2006-07-29  Bruno Haible  <bruno@clisp.org>
72501
72502         * gnulib-tool (import, update): If there is no Makefile.am, look at
72503         aclocal.m4, instead of bailing out.
72504
72505 2006-07-29  Bruno Haible  <bruno@clisp.org>
72506
72507         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
72508         Categorize the options by when they are useful.
72509
72510 2006-07-29  Bruno Haible  <bruno@clisp.org>
72511
72512         * gnulib-tool (func_usage): Document option --no-libtool.
72513         Handle option --no-libtool.
72514         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
72515         for changed semantics of $libtool variable.
72516         (func_import): Likewise. If libtool is not used, show this through
72517         an option --no-libtool.
72518         (func_create_testdir): Update.
72519
72520 2006-07-29  Bruno Haible  <bruno@clisp.org>
72521
72522         * gnulib-tool (func_import): Extend error message about missing
72523         --doc-base.
72524
72525 2006-07-29  Bruno Haible  <bruno@clisp.org>
72526
72527         * gnulib-tool (func_import): Don't create the $docbase directory if
72528         there is no file to store there.
72529
72530 2006-07-29  Bruno Haible  <bruno@clisp.org>
72531
72532         * gnulib-tool (autoconf_minversion): If a --dir option is given and
72533         relevant, look for configure.ac there, not in the current directory.
72534         Also use a simple search for AC_PREREQ, not "autoconf --trace".
72535
72536 2006-07-29  Bruno Haible  <bruno@clisp.org>
72537
72538         * gnulib-tool (SORT): New variable.
72539         (func_usage): Undocument --assume-autoconf option.
72540         Remove --assume-autoconf option handling.
72541         (autoconf_minversion): Determine from the contents of configure.ac.
72542         (func_import): Remove autoconf_minversion handling.
72543         Suggested by Eric Blake.
72544
72545 2006-07-29  Bruno Haible  <bruno@clisp.org>
72546
72547         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
72548
72549 2006-07-29  Bruno Haible  <bruno@clisp.org>
72550
72551         * config/srclist.txt (*setenv.[ch]): Remove rules.
72552
72553 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72554
72555         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
72556
72557 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72558
72559         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
72560         arpa/inet.h.
72561
72562 2006-07-28  Simon Josefsson  <jas@extundo.com>
72563
72564         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
72565         * modules/inet_pton (Depends-on): Likewise.
72566
72567 2006-07-28  Simon Josefsson  <jas@extundo.com>
72568
72569         * m4/netinet_in_h.m4: New file.
72570
72571 2006-07-28  Simon Josefsson  <jas@extundo.com>
72572
72573         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
72574         #include's.
72575
72576 2006-07-28  Simon Josefsson  <jas@extundo.com>
72577
72578         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
72579         #include's.
72580
72581 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
72582
72583         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
72584         setgid on directories only if they set these bits.
72585         * lib/modechange.h: Remove obsolete comment about masks.
72586
72587 2006-07-28  Eric Blake  <ebb9@byu.net>
72588
72589         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
72590         macro expansion.
72591
72592 2006-07-28  Bruno Haible  <bruno@clisp.org>
72593
72594         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
72595
72596 2006-07-28  Bruno Haible  <bruno@clisp.org>
72597
72598         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
72599
72600 2006-07-28  Bruno Haible  <bruno@clisp.org>
72601
72602         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
72603         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
72604         Define fallbacks.
72605         Avoids link error on FreeBSD 4.x.
72606         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72607
72608         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
72609         encoding.
72610         * lib/mbswidth.c (iswcntrl): Likewise.
72611
72612 2006-07-27  Bruno Haible  <bruno@clisp.org>
72613
72614         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
72615         test.
72616
72617 2006-07-27  Bruno Haible  <bruno@clisp.org>
72618
72619         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
72620         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
72621         defined.
72622
72623 2006-07-26  Eric Blake  <ebb9@byu.net>
72624
72625         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
72626
72627 2006-07-26  Eric Blake  <ebb9@byu.net>
72628
72629         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
72630         like mingw that lack mkstemp.
72631         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
72632         avoid compilation warning on mingw.
72633
72634 2006-07-26  Bruno Haible  <bruno@clisp.org>
72635
72636         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
72637         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
72638         INT_FAST*_MIN, INTPTR_MIN.
72639
72640 2006-07-25  Bruno Haible  <bruno@clisp.org>
72641
72642         * modules/version-etc (Depends-on): Add stdarg.
72643
72644 2006-07-25  Bruno Haible  <bruno@clisp.org>
72645
72646         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
72647         complex commands.
72648
72649 2006-07-25  Bruno Haible  <bruno@clisp.org>
72650
72651         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
72652         defined in <stdarg.h> or config.h.
72653
72654 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72655
72656         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
72657         (gl_STDIO_SAFER): Remove.
72658
72659 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72660
72661         * MODULES.html.sh (File stream based Input/Output):
72662         Add fopen-safer, tmpfile-safer; remove stdio-safer.
72663         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
72664         * modules/fopen-safer, modules/tmpfile-safer: New files.
72665         * modules/stdio-safer: Remove.
72666
72667 2006-07-24  Bruno Haible  <bruno@clisp.org>
72668
72669         * modules/tmpdir: New file.
72670         * MODULES.html.sh (File system functions): Add it.
72671
72672 2006-07-24  Bruno Haible  <bruno@clisp.org>
72673
72674         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
72675         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
72676
72677 2006-07-24  Bruno Haible  <bruno@clisp.org>
72678
72679         * modules/clean-temp: New file.
72680
72681 2006-07-24  Bruno Haible  <bruno@clisp.org>
72682
72683         * m4/tmpdir.m4: New file, from GNU gettext.
72684
72685 2006-07-24  Bruno Haible  <bruno@clisp.org>
72686
72687         * lib/tmpdir.h: New file, from GNU gettext.
72688         * lib/tmpdir.c: New file, from GNU gettext.
72689
72690 2006-07-24  Bruno Haible  <bruno@clisp.org>
72691
72692         * lib/clean-temp.h: New file, from GNU gettext.
72693         * lib/clean-temp.c: New file, from GNU gettext.
72694
72695 2006-07-23  Eric Blake  <ebb9@byu.net>
72696
72697         * modules/stdio-safer (Files): Add tmpfile-safer.c.
72698         (Depends-on): Add binary-io.
72699
72700 2006-07-23  Eric Blake  <ebb9@byu.net>
72701
72702         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
72703
72704 2006-07-23  Eric Blake  <ebb9@byu.net>
72705
72706         * lib/tmpfile-safer.c: New file.
72707         * lib/stdio-safer.h (fopen_safer): Add prototype.
72708         * lib/stdio--.h (tmpfile): Make safer.
72709
72710 2006-07-23  Bruno Haible  <bruno@clisp.org>
72711
72712         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
72713         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
72714         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
72715         gl_linked_remove_at): Use it.
72716
72717 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72718         and Simon Josefsson <jas@extundo.com>
72719
72720         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
72721
72722         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
72723
72724 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72725
72726         * modules/close-stream: New file.
72727         * modules/closeout (Description): Make it clear that it exits
72728         with a diagnostic on error.
72729         (Depends-on): Add close-stream.  Remove fpending, stdbool.
72730         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
72731
72732 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72733
72734         * m4/close-stream.m4: New file.
72735
72736 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72737
72738         * lib/close-stream.c, lib/close-stream.h: New files.
72739
72740 2006-07-22  Bruno Haible  <bruno@clisp.org>
72741
72742         Merge from GNU gettext 0.15.
72743
72744         2006-05-01  Bruno Haible  <bruno@clisp.org>
72745
72746                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
72747
72748         2006-07-22  Bruno Haible  <bruno@clisp.org>
72749
72750                 * modules/javaversion: New file.
72751                 * MODULES.html.sh (Java): Add javaversion.
72752
72753         2006-03-12  Bruno Haible  <bruno@clisp.org>
72754
72755                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
72756
72757         2005-12-04  Bruno Haible  <bruno@clisp.org>
72758
72759                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
72760                 (untested).
72761
72762         2006-06-21  Bruno Haible  <bruno@clisp.org>
72763
72764                 Avoid warnings from recent versions of mcs.
72765                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
72766                 -o, -L, -r any more. Use options documented since mcs-1.0
72767                 instead. Similarly for -g.
72768
72769         2005-12-04  Bruno Haible  <bruno@clisp.org>
72770
72771                 * build-aux/csharpcomp.sh.in: Suffix for resources is
72772                 .resources, not .resource.
72773
72774         2005-07-09  Bruno Haible  <bruno@clisp.org>
72775
72776                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
72777                 add a .dll suffix.
72778                 Reported by Mark Junker <mjscod@gmx.de>.
72779
72780         2006-07-22  Bruno Haible  <bruno@clisp.org>
72781
72782                 * modules/gettext: Upgrade to gettext-0.15.
72783                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
72784                 m4/visibility.m4.
72785                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
72786
72787 2006-07-22  Bruno Haible  <bruno@clisp.org>
72788
72789         Merge from GNU gettext 0.15.
72790
72791         2006-03-25  Bruno Haible  <bruno@clisp.org>
72792
72793                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
72794
72795         2006-07-21  Bruno Haible  <bruno@clisp.org>
72796
72797                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
72798                 "1.1".
72799
72800         2006-05-09  Bruno Haible  <bruno@clisp.org>
72801
72802                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
72803                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
72804                 for the conftestver execution.
72805
72806         2006-05-01  Bruno Haible  <bruno@clisp.org>
72807
72808                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
72809                 optional target-version argument. Verify that the compiler
72810                 groks source of the specified source-version, or add -source
72811                 option as necessary. Verify that the compiler produces
72812                 bytecode in the specified target-version, or add -target and
72813                 -source options as necessary. Make the result of the test
72814                 available as variable CONF_JAVAC. Also log error output in
72815                 config.log.
72816
72817         2006-03-11  Bruno Haible  <bruno@clisp.org>
72818
72819                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
72820
72821         2006-05-09  Bruno Haible  <bruno@clisp.org>
72822
72823                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
72824                 CLASSPATH_SEPARATOR to a semicolon.
72825
72826         2006-03-12  Bruno Haible  <bruno@clisp.org>
72827
72828                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
72829                 available as variable CONF_JAVA, for subsequent autoconf
72830                 tests. Also log error output in config.log.
72831
72832         2006-07-19  Bruno Haible  <bruno@clisp.org>
72833
72834                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
72835                 that getline works on glibc2 systems. Needed to avoid trouble
72836                 in relocatable.c.
72837                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
72838
72839         2005-12-04  Bruno Haible  <bruno@clisp.org>
72840
72841                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
72842                 launcher (untested).
72843
72844         2005-12-04  Bruno Haible  <bruno@clisp.org>
72845
72846                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
72847
72848         2006-07-22  Bruno Haible  <bruno@clisp.org>
72849
72850                 * gettext.m4: Update from GNU gettext-0.15.
72851                 * nls.m4: Likewise.
72852                 * po.m4: Likewise.
72853                 * inttypes-pri.m4: Likewise.
72854                 * inttypes-h.m4: Renamed from inttypes.m4.
72855                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
72856
72857 2006-07-22  Bruno Haible  <bruno@clisp.org>
72858
72859         Merge from GNU gettext 0.15.
72860
72861         2005-07-05  Bruno Haible  <bruno@clisp.org>
72862
72863                 * printf-args.c (printf_fetchargs): Work around broken
72864                 definition of wint_t on mingw.
72865
72866         2005-02-12  Bruno Haible  <bruno@clisp.org>
72867
72868                 * xallocsa.h: Add extern "C" for C++.
72869
72870         2006-05-17  Bruno Haible  <bruno@clisp.org>
72871
72872                 Cygwin portability.
72873                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
72874
72875         2006-04-30  Bruno Haible  <bruno@clisp.org>
72876
72877                 * progreloc.c: Include <mach-o/dyld.h> if available.
72878                 (find_executable): Use _NSGetExecutablePath when possible.
72879
72880         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72881
72882                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
72883                 function.
72884
72885         2005-12-29  Bruno Haible  <bruno@clisp.org>
72886
72887                 * progreloc.c (set_program_name_and_installdir): Fix
72888                 compilation error.
72889
72890         2005-12-04  Bruno Haible  <bruno@clisp.org>
72891
72892                 Cygwin portability.
72893                 * progreloc.c: Include <windows.h> also on Cygwin.
72894                 (find_executable): Add support for Cygwin.
72895                 (set_program_name_and_installdir): Handle also platforms with
72896                 nonempty EXEEXT.
72897
72898         2006-07-11  Bruno Haible  <bruno@clisp.org>
72899
72900                 * javacomp.c: Fix a comment.
72901                 Reported by Jim Meyering.
72902
72903         2006-04-30  Bruno Haible  <bruno@clisp.org>
72904
72905                 * javacomp.h (compile_java_class): Add source_version,
72906                 target_version arguments.
72907                 * javacomp.c: Rewritten to choose only a compiler that
72908                 respects the specified source_version and target_version.
72909
72910         2006-06-27  Bruno Haible  <bruno@clisp.org>
72911
72912                 Assume correct S_ISDIR macro.
72913                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
72914
72915         2006-07-22  Bruno Haible  <bruno@clisp.org>
72916
72917                 * javaversion.h: New file, from GNU gettext.
72918                 * javaversion.c: New file, from GNU gettext.
72919                 * javaversion.java: New file, from GNU gettext.
72920                 * javaversion.class: New file, from GNU gettext.
72921
72922         2006-05-17  Bruno Haible  <bruno@clisp.org>
72923
72924                 Cygwin portability.
72925                 * javaexec.c (execute_java_class): Test for jview program
72926                 also on Cygwin.
72927
72928         2006-04-09  Bruno Haible  <bruno@clisp.org>
72929
72930                 * fatal-signal.c: Don't include string.h.
72931                 (at_fatal_signal): Use a copying loop instead of memcpy.
72932
72933         2005-12-04  Bruno Haible  <bruno@clisp.org>
72934
72935                 * csharpexec.c: Add support for 'clix' launcher (untested).
72936                 (execute_csharp_using_sscli): New function.
72937                 (execute_csharp_program): Call it.
72938
72939         2006-06-21  Bruno Haible  <bruno@clisp.org>
72940
72941                 Avoid warnings from recent versions of mcs.
72942                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
72943                 -o, -L, -r any more. Use options documented since mcs-1.0
72944                 instead. Similarly for -g.
72945
72946         2005-07-09  Bruno Haible  <bruno@clisp.org>
72947
72948                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
72949                 add a .dll suffix.
72950                 Reported by Mark Junker <mjscod@gmx.de>.
72951
72952         2006-06-17  Bruno Haible  <bruno@clisp.org>
72953
72954                 * config.charset: Update for NetBSD 3.0.
72955
72956         2006-05-17  Bruno Haible  <bruno@clisp.org>
72957
72958                 Cygwin portability.
72959                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
72960
72961         2006-05-16  Bruno Haible  <bruno@clisp.org>
72962
72963                 * localcharset.c [CYGWIN]: Include <windows.h>.
72964                 (get_charset_aliases): For Cygwin, return the same CPxxx
72965                 aliases list as under WIN32.
72966                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
72967                 the environment variables. Fall back to GetACP().
72968
72969         2006-04-05  Bruno Haible  <bruno@clisp.org>
72970
72971                 * config.charset: Update Juan Manuel Guerrero's address.
72972
72973         2005-02-12  Bruno Haible  <bruno@clisp.org>
72974
72975                 * allocsa.h: Add extern "C" for C++.
72976
72977         2005-02-10  Bruno Haible  <bruno@clisp.org>
72978
72979                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
72980                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
72981
72982         2006-07-22  Bruno Haible  <bruno@clisp.org>
72983
72984                 * gettext.h: Update to GNU gettext-0.15.
72985
72986 2006-07-22  Bruno Haible  <bruno@clisp.org>
72987
72988         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
72989         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
72990         lib-prefix.m4, longdouble.m4, ssize_t.m4.
72991
72992 2006-07-21  Eric Blake  <ebb9@byu.net>
72993
72994         * modules/stdlib-safer: New file.
72995         * MODULES.html.sh (File stream based Input/Output): Add
72996         stdlib-safer.
72997
72998 2006-07-21  Eric Blake  <ebb9@byu.net>
72999
73000         * lib/stdlib-safer.h: New file from coreutils, required by
73001         stdlib--.h.
73002
73003 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
73004
73005         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
73006
73007 2006-07-20  Bruno Haible  <bruno@clisp.org>
73008
73009         * gnulib-tool: Recognize new option --assume-autoconf.
73010         (autoconf_minversion): New variable.
73011         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
73012
73013 2006-07-20  Bruno Haible  <bruno@clisp.org>
73014
73015         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
73016
73017 2006-07-19  Derek R. Price  <derek@ximbiot.com>
73018
73019         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
73020         Reindent and repaginate.
73021
73022 2006-07-19  Derek Price  <derek@ximbiot.com>
73023
73024         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
73025         Correct grammar.
73026
73027 2006-07-17  Bruno Haible  <bruno@clisp.org>
73028
73029         * modules/list: New file.
73030         * modules/array-list: New file.
73031         * modules/carray-list, modules/carray-list-tests: New files.
73032         * modules/linked-list, modules/linked-list-tests: New files.
73033         * modules/avltree-list, modules/avltree-list-tests: New files.
73034         * modules/rbtree-list, modules/rbtree-list-tests: New files.
73035         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
73036         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
73037         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
73038         * modules/oset: New file.
73039         * modules/array-oset: New file.
73040         * modules/avltree-oset, modules/avltree-oset-tests: New files.
73041         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
73042         * tests/test-carray_list.c: New file.
73043         * tests/test-linked_list.c: New file.
73044         * tests/test-avltree_list.c: New file.
73045         * tests/test-rbtree_list.c: New file.
73046         * tests/test-linkedhash_list.c: New file.
73047         * tests/test-avltreehash_list.c: New file.
73048         * tests/test-rbtreehash_list.c: New file.
73049         * tests/test-avltree_oset.c: New file.
73050         * tests/test-rbtree_oset.c: New file.
73051         * MODULES.html.sh (Container data structures): New section.
73052
73053 2006-07-17  Bruno Haible  <bruno@clisp.org>
73054
73055         * m4/gl_list.m4: New file.
73056
73057 2006-07-17  Bruno Haible  <bruno@clisp.org>
73058
73059         * lib/gl_list.h: New file.
73060         * lib/gl_list.c: New file.
73061         * lib/gl_array_list.h: New file.
73062         * lib/gl_array_list.c: New file.
73063         * lib/gl_carray_list.h: New file.
73064         * lib/gl_carray_list.c: New file.
73065         * lib/gl_linked_list.h: New file.
73066         * lib/gl_linked_list.c: New file.
73067         * lib/gl_anylinked_list1.h: New file.
73068         * lib/gl_anylinked_list2.h: New file.
73069         * lib/gl_avltree_list.h: New file.
73070         * lib/gl_avltree_list.c: New file.
73071         * lib/gl_anyavltree_list1.h: New file.
73072         * lib/gl_anyavltree_list2.h: New file.
73073         * lib/gl_rbtree_list.h: New file.
73074         * lib/gl_rbtree_list.c: New file.
73075         * lib/gl_anyrbtree_list1.h: New file.
73076         * lib/gl_anyrbtree_list2.h: New file.
73077         * lib/gl_anytree_list1.h: New file.
73078         * lib/gl_anytree_list2.h: New file.
73079         * lib/gl_linkedhash_list.h: New file.
73080         * lib/gl_linkedhash_list.c: New file.
73081         * lib/gl_anyhash_list1.h: New file.
73082         * lib/gl_anyhash_list2.h: New file.
73083         * lib/gl_avltreehash_list.h: New file.
73084         * lib/gl_avltreehash_list.c: New file.
73085         * lib/gl_rbtreehash_list.h: New file.
73086         * lib/gl_rbtreehash_list.c: New file.
73087         * lib/gl_anytreehash_list1.h: New file.
73088         * lib/gl_anytreehash_list2.h: New file.
73089
73090         * lib/gl_oset.h: New file.
73091         * lib/gl_oset.c: New file.
73092         * lib/gl_array_oset.h: New file.
73093         * lib/gl_array_oset.c: New file.
73094         * lib/gl_avltree_oset.h: New file.
73095         * lib/gl_avltree_oset.c: New file.
73096         * lib/gl_rbtree_oset.h: New file.
73097         * lib/gl_rbtree_oset.c: New file.
73098         * lib/gl_anytree_oset.h: New file.
73099
73100 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73101
73102         * m4/mkancesdirs.m4: New file.
73103         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
73104         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
73105         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
73106         it.
73107
73108 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73109
73110         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
73111         * lib/mkancesdirs.h: New files.
73112         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
73113         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
73114         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
73115         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
73116         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
73117         callers changed.  Revamp internals significantly, by not
73118         attempting to create directories that are temporarily more
73119         permissive than the final results.  Do not attempt to use
73120         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
73121         This removes some race conditions, fixes some bugs, and simplifies
73122         things.  Use new dirchownmod function to do owner and mode changes.
73123         * lib/mkdir-p.h: Likewise.
73124         * lib/modechange.c (octal_to_mode): New function.
73125         (struct mode_change): New member mentioned.
73126         (make_node_op_equals): New arg mentioned.  All callers changed.
73127         (mode_compile): Keep track of which mode bits the user has explicitly
73128         mentioned.
73129         (mode_adjust): New arg DIR, so that we implement the X op correctly.
73130         New arg PMODE_BITS, to keep track of which mode bits the user
73131         mentioned; it treats S_ISUID and S_ISGID speciall.
73132         All callers changed.
73133         * lib/modechange.h: Likewise.
73134
73135 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73136
73137         * MODULES.html.sh: Add mkancestors.
73138         * modules/mkancesdirs: New module.
73139         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
73140         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
73141         The chdir-safer and afs files are now orphans; I'll remove them
73142         unless someone speaks up.
73143         Add lib/dirchownmod.c, lib/dirchownmod.h.
73144         (Depends-on): Remove alloca, chown, save-cwd, dirname.
73145         Add lchown, mkancesdirs.
73146         (Maintainer): Add self.
73147
73148 2006-07-15  Karl Berry  <karl@gnu.org>
73149
73150         * gnulib-tool: help message wording/arrangement.
73151
73152 2006-07-14  Simon Josefsson  <jas@extundo.com>
73153
73154         * doc/gnulib.texi (Libtool and Windows): New section.
73155
73156 2006-07-12  Simon Josefsson  <jas@extundo.com>
73157
73158         * modules/gendocs (License): Fix license, approved by Karl.
73159
73160 2006-07-12  Eric Blake  <ebb9@byu.net>
73161
73162         * MODULES.html.sh: Add gendocs.
73163
73164 2006-07-11  Eric Blake  <ebb9@byu.net>
73165
73166         * modules/fdl: New module, to install doc/fdl.texi.
73167         * MODULES.html.sh: Add new section for documentation modules.
73168         * gnulib-tool: Avoid space-tab.
73169         (--doc-base): New option, to manage files from doc.
73170
73171 2006-07-11  Eric Blake  <ebb9@byu.net>
73172
73173         * m4/absolute-header.m4: Fix comments to match recent change.
73174
73175 2006-07-11  Eric Blake  <ebb9@byu.net>
73176
73177         * gnulib-tool: List --doc-base before --tests-base.
73178
73179 2006-07-11  Derek R. Price  <derek@ximbiot.com>
73180
73181         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
73182
73183 2006-07-11  Bruno Haible  <bruno@clisp.org>
73184
73185         * README: Mention where to put documentation.
73186
73187 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73188
73189         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
73190
73191 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73192
73193         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
73194         to stdint.m4.
73195
73196 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73197
73198         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
73199         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
73200         "no/such/file/stdint.h" when there is no such file, so that
73201         the resulting C code can be parsed by dodgy compilers.
73202         Problems reported by Bob Proulx.
73203
73204 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73205
73206         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
73207         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73208         macros into the GNU _D_EXACT_NAMLEN.
73209         * lib/savedir.c:  Likewise.
73210         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
73211
73212 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73213         and Paul Eggert  <eggert@cs.ucla.edu>
73214
73215         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
73216         * m4/savedir.m4:
73217         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73218         macros into the GNU _D_EXACT_NAMLEN.
73219
73220 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73221
73222         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
73223         around the absolute name, to work around a problem with the HP-UX
73224         11.23 native C compiler, reported by Bob Proulx.
73225
73226 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73227
73228         * doc/maintain.texi, make-stds.texi: Sync from
73229         <http://savannah.gnu.org/projects/gnustandards>.
73230
73231 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73232
73233         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
73234
73235 2006-07-09  Jim Meyering  <jim@meyering.net>
73236
73237         * m4/glob.m4: Remove a doubled word in a comment.
73238
73239 2006-07-09  Jim Meyering  <jim@meyering.net>
73240
73241         * lib/argp-pv.c: Remove a doubled word in a comment.
73242         * lib/check-version.c (check_version): Likewise.
73243         * lib/javacomp.c (compile_java_class): Likewise.
73244
73245 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73246
73247         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
73248         for the benefit of people using Autoconf 2.60.  If you want to
73249         support older Autoconf versions you can copy m4/onceonly_2_57.m4
73250         (or m4/onceonly.m4, if pre-2.57) manually.
73251
73252 2006-07-08  Jim Meyering  <jim@meyering.net>
73253
73254         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
73255         comment.
73256         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
73257         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
73258         comment.
73259
73260 2006-07-08  Jim Meyering  <jim@meyering.net>
73261
73262         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
73263
73264 2006-07-07  Simon Josefsson  <jas@extundo.com>
73265
73266         * tests/test-crc.c: Change expected crc value, the test vector
73267         were probably computed using the old broken crc.c?
73268
73269 2006-07-06  Simon Josefsson  <jas@extundo.com>
73270
73271         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
73272         now the canonical place for the M4 file).
73273
73274         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
73275         from the sys_socket dependency now.
73276
73277         * modules/inet_pton (Files): Ditto.
73278
73279         * modules/inet_ntop (Files): Ditto.
73280
73281 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73282
73283         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
73284         not gl_PREREQ_GETUSERSHELL.
73285
73286 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73287
73288         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
73289         with only one argument, for Autoconf 2.60.
73290         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
73291         expand to nothing, so add a shell command to avoid syntax error.
73292         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73293
73294 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73295
73296         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
73297
73298 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73299
73300         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
73301         no longer needed.  Check for isblank decl.
73302         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
73303         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
73304         of existence.
73305
73306 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73307
73308         * lib/getloadavg.c: Use __VMS, not VMS.
73309         * lib/getopt.c: Likewise.
73310         * lib/getpagesize.h: Likewise.
73311         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
73312         and probably does not work.
73313
73314 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73315
73316         * lib/.cppi-disable: Add wcwidth.
73317         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
73318         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
73319         (ISGRAPH): Remove.  All uses changed to isgraph.
73320         (FOLD) [!defined _LIBC]: Remove special case.
73321         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
73322         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
73323         HAVE_ISBLANK.
73324         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
73325         case.
73326
73327 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73328
73329         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
73330         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
73331         brackets.  Other minor changes to suppress some compiler
73332         warnings.
73333
73334 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73335         and Paul Eggert  <eggert@cs.ucla.edu>
73336
73337         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
73338         of invoking obsolescent AC_HEADER_DIRENT macro.
73339         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
73340         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
73341         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
73342         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73343         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
73344         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73345         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
73346         * m4/readdir.m4: Remove; no longer needed.
73347
73348 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73349         and Paul Eggert  <eggert@cs.ucla.edu>
73350
73351         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
73352         Don't worry about this obsolete case any more.
73353         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
73354         directories.
73355         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
73356         worry about this obsolete case any more.
73357         * lib/fts.c: Likewise.
73358         * lib/getcwd.c: Likewise.
73359         * lib/glob.h: Likewise.
73360         * lib/savedir.c: Likewise.
73361
73362 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73363
73364         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
73365         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
73366         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
73367         needed.
73368         All uses removed.
73369         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73370         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73371         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
73372         needed.
73373         * m4/getdate.m4 (gl_GETDATE): Likewise.
73374         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73375         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73376         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73377         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73378         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73379         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73380         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
73381         needed.
73382
73383 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73384
73385         * lib/memcasecmp.c: Include <limits.h>.
73386         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
73387         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
73388         Don't assume isdigit succeeds only on '0' through '9'.
73389
73390 2006-07-05  Eric Blake  <ebb9@byu.net>
73391
73392         * modules/getaddrinfo (Depends-on): Add snprintf.
73393
73394 2006-07-05  Eric Blake  <ebb9@byu.net>
73395
73396         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
73397         to avoid 'header present but could not be compiled' on cygwin.
73398
73399 2006-07-05  Eric Blake  <ebb9@byu.net>
73400
73401         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
73402         missing from netdb.h.
73403         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
73404
73405 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73406
73407         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
73408         no longer needed.
73409         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
73410         * m4/getdate.m4 (gl_GETDATE): Likewise.
73411         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73412         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73413         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73414         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73415         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73416
73417 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73418
73419         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
73420         All uses of is_space replaced by isspace.
73421         * lib/exit.h: Don't talk about STDC_HEADERS.
73422         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
73423         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
73424         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
73425         replaced by isprint etc.
73426         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
73427         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73428         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
73429         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
73430         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
73431         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73432
73433 2006-07-05  Bruno Haible  <bruno@clisp.org>
73434
73435         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
73436         the function exists, before testing against AIX.
73437         Reported by Martin Lambers <marlam@marlam.de>.
73438
73439 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73440
73441         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
73442         From Mark D. Baushke.
73443
73444 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73445
73446         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
73447         to the absolute name, not just one, to bypass Sun C 5.8's
73448         "warning: #include of /usr/include/... may be non-portable".
73449
73450 2006-07-04  Eric Blake  <ebb9@byu.net>
73451
73452         * modules/dirname-tests: New test module.
73453         * tests/test-dirname.c: New file, replacing dirname.c
73454         TEST_DIRNAME section that was recently deleted.
73455
73456 2006-07-04  Bruno Haible  <bruno@clisp.org>
73457
73458         Assume ANSI C header files and <ctype.h> functions.
73459         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
73460         (mbsnwidth): Use isprint, iscntrl instead.
73461
73462 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73463
73464         Merge from coreutils.
73465         * MODULES.html.sh: Add xstrtold.
73466         * modules/xstrtold: New file.
73467         * modules/cycle-check (Files): Add lib/same-inode.h.
73468         * modules/dirname (Files): Add m4/double-slash-root.m4.
73469         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
73470         * modules/mkdir-p (Files): Add lib/same-inode.h.
73471         * modules/same (Files): Add lib/same-inode.h.
73472
73473 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73474
73475         * m4/absolute-header.m4: Renamed from full-header-path.m4.
73476         This is to keep the terminology clean; POSIX talks about
73477         "absolute pathnames", not "full pathnames", but the GNU
73478         Coding Standards say to use "path" for something else;
73479         so use "absolute" to keep both sides happy.
73480         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
73481         Set gl_absolute_header, not gl_full_header_path.
73482         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
73483         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
73484         All uses changed.
73485
73486         Merge from coreutils.
73487
73488         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73489
73490         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
73491         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
73492         want to require the building of c-strtod.o.
73493         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
73494         needs -lm directly.
73495         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
73496
73497         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73498
73499         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
73500         --as-needed option if available.  Problem reported by Albert Chin in
73501         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
73502         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
73503         cc merely issues a bunch of annoying warnings for --as-needed
73504         (this problem was reported by Bob Proulx).  Also, try linking with
73505         -lm to detect a bug in binutils 2.16 (this problem was reported
73506         by Ralf Wildenhues).
73507
73508         2006-06-18  Jim Meyering  <jim@meyering.net>
73509
73510         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
73511         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
73512         macro.
73513         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
73514         also check for glibc-2.4's abort-inducing bug.
73515
73516         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
73517         Low-probability clean-up should be to use rmdir to get rid of
73518         the just-created directory, not unlink.
73519
73520         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
73521         configure fail, and request a bug report to inform us about it.
73522         Add a comment that, barring reports to the contrary, in 2007 we'll
73523         assume ftruncate is universally available.
73524
73525         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73526
73527         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
73528
73529         2006-03-12  Jim Meyering  <jim@meyering.net>
73530
73531         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
73532         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
73533         * m4/same.m4 (gl_SAME): Likewise.
73534         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
73535
73536         2006-03-11  Eric Blake  <ebb9@byu.net>
73537
73538         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
73539         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
73540         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
73541         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
73542
73543 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73544
73545         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
73546         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
73547         reported by Mark D. Baushke, one in
73548         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
73549
73550         Merge from coreutils.
73551
73552         * lib/.cppi-disable: Add stdint_.h.
73553         * lib/.cvsignore: Add stdint.h.
73554
73555         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73556
73557         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
73558         both double and long double versions.
73559         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
73560         * lib/xstrtold.c: New file.
73561         * lib/xstrtod.h (xstrtold): New decl.
73562
73563         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73564
73565         * lib/filemode.c (setst): Remove.
73566         (strmode): Rewrite to avoid setst.  This makes the code shorter,
73567         (arguably) clearer, and the generated code is a bit smaller on my
73568         Debian GNU/Linux stable x86 host.
73569
73570         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73571
73572         * lib/filemode.c: Include "filemode.h" first, to test the interface.
73573         Assume that filemode.h includes sys/types.h and sys/stat.h.
73574         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
73575         (ftypelet): Reorder to put common cases first, for efficiency.
73576         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
73577         to do 'M'.
73578         (strmode): Renamed from mode_string, and now stores 12 bytes instead
73579         of 10, for compatibility with FreeBSD.  All callers changed.
73580         (filemodestring): Now stores 12 bytes instead of 10, and sets file
73581         types that can't be deduced solely from st_mode.  First arg is now a
73582         const pointer.
73583         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
73584         (strmode): Renamed from mode_string.
73585         (filemodestring): New decl.
73586         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
73587         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
73588         needed.
73589         (S_ISPORT, S_ISWHT): New macros, if not already defined.
73590
73591         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73592
73593         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
73594         fsusage.h now does that.  Include fsusage.h first, to test interface.
73595         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
73596         at most one method (the old code could have generated decls that
73597         didn't conform to C89, not that this was ever exercised).
73598         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
73599
73600         2006-03-19  Jim Meyering  <jim@meyering.net>
73601
73602         Work even in a chroot where d_ino values for entries in "/"
73603         don't match the stat.st_ino values for the same names.
73604         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
73605         number, iterate through all entries again, using lstat instead.
73606         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
73607         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
73608
73609         * lib/getcwd.c (__getcwd): Clarify a comment.
73610         Use memcpy in place of a call to strcpy.
73611
73612         2006-03-12  Jim Meyering  <jim@meyering.net>
73613
73614         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
73615         matches that of the current directory (which we're about to chdir ".."
73616         out of), then save the dev-ino of the parent, instead.
73617
73618         * lib/same-inode.h (SAME_INODE): New file/macro.
73619         * lib/chdir-safer.c (SAME_INODE): Remove definition.
73620         Include "same-inode.h", instead.
73621         * lib/same.c: Likewise.
73622         * lib/cycle-check.h: Include "same-inode.h".
73623         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
73624         * lib/cycle-check.c (SAME_INODE): Remove definition.
73625         * lib/root-dev-ino.h: Include "same-inode.h".
73626
73627         2006-03-11  Eric Blake  <ebb9@byu.net>
73628
73629         * lib/same.c (same_name): s/base_name/last_component/
73630         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
73631         * lib/filenamecat.c (file_name_concat): Likewise.
73632
73633         2006-03-11  Eric Blake  <ebb9@byu.net>,
73634                     Paul Eggert  <eggert@cs.ucla.edu>
73635
73636         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
73637         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
73638         drive prefix.
73639         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
73640         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
73641         (last_component): New method.
73642         * lib/dirname.c (dir_len): Determine when drive letters need a
73643         subsequent slash.  Preserve // when it is special.
73644         (dir_name): Don't append dot when drive letter is absolute.
73645         [TEST_DIRNAME]: Move into a full-blown gnulib test.
73646         * lib/basename.c (base_name): New semantics - malloc the result.
73647         Preserve // when it is special.  Preserve relative files that look
73648         like drive letters.
73649         (base_len): Preserve // when it is special.
73650         (last_component): New method, similar to old base_name semantics.
73651         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
73652         base_name.  Strip redundant slashes from ///.
73653
73654 2006-07-03  Jim Meyering  <jim@meyering.net>
73655
73656         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
73657         macro is used before the first cycle_check call.
73658
73659 2006-07-03  Eric Blake  <ebb9@byu.net>
73660
73661         * modules/dirname (Depends-on): Add xstrndup.
73662
73663 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73664
73665         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
73666         test cases, so that config.log is a bit easier to follow.
73667
73668 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73669
73670         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
73671         both are 64 bits, since this seems to be the tradition, and this
73672         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
73673         we ever run into a host that prefers long long to long in this
73674         case, we'll need another configure-time test.  Problem reported by
73675         Jim Meyering.
73676
73677 2006-07-02  Eric Blake  <ebb9@byu.net>
73678
73679         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
73680
73681 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73682
73683         * modules/inttypes (Depends-on): No longer depends on stdint.
73684         * modules/stdint (Description): Say more about assumptions.
73685         Say that the fast types might differ.  Say macros are used.
73686         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
73687         (Makefile.am): Revise list of substituted symbols to match
73688         new stdint.m4.
73689         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
73690         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
73691         * tests/test-stdint.c (verify_same_types)
73692         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
73693         the code conforms to C99/C89.
73694         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
73695         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
73696
73697 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73698
73699         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
73700         but fix a bug, by requiring at least 64 bits.
73701         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
73702         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
73703         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
73704         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73705
73706         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
73707         changes.  Make 2.59 a prerequisite.  Check and substitute for
73708         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
73709         inttypes.h.  Do not use special include files; just use the
73710         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
73711         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
73712         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
73713         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
73714         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
73715         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
73716         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
73717         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
73718         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
73719         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
73720         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
73721         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
73722         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
73723         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
73724         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
73725         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
73726         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
73727         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
73728         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
73729         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
73730         WINT_MAX.  Check for C99 conformance more strictly, by detecting
73731         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
73732         not check for things that C99 does not require, e.g., int8_t.  If
73733         a test isn't needed unless <stdint.h> isn't working, and is
73734         unlikely to be needed for any other reason, then don't do it
73735         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
73736         size_t, since we assume C89 freestanding at least.  Do not check
73737         for sig_atomic_t, wchar_t, or wint_t, since the code now does
73738         the right thing even if the types are not defined.  Instead use:
73739         (gl_STDINT_TYPE_PROPERTIES): New macro.
73740         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
73741         testing whether <sys/types.h> clashes, as Autoconf does this for
73742         us now.  All uses removed.
73743         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
73744         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
73745         (gl_CHECK_TYPE_SAME):
73746         Remove; no longer needed.
73747         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
73748         exists, since we'll return 0 anyway in that case.
73749         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
73750
73751 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73752
73753         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
73754         possible collision with system files.
73755         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
73756         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
73757         WCHAR_MIN and WCHAR_MAX in this case.
73758         (<stddef.h>): Do not include; no longer needed.
73759         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
73760         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
73761         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
73762         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
73763         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
73764         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
73765         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
73766         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
73767         !defined(__c99))]: Include in this case too, since it's harmless
73768         now.
73769         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
73770         dangerous to do so.
73771         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
73772         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
73773         (_STDINT_MIN, _STDINT_MAX): New macros.
73774         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
73775         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
73776         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
73777         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
73778         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
73779         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
73780         macros, not typedefs; this simplifies things quite a bit.
73781         Use long int for all types narrower than int64_t.
73782         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
73783         Define in terms of long long int or int64_t or long int,
73784         not int64_t or int32_t.  This saves some compile-time testing.
73785         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
73786         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
73787         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
73788         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
73789         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
73790         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
73791         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
73792         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
73793         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
73794         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
73795         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73796         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73797         undef any previous version and define our own version, for
73798         simplicity and consistency with the new macros for types.
73799         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73800         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73801         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
73802         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
73803         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
73804         @WINT_T_SUFFIX@ to keep things simple here.
73805         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
73806         Simplify by assuming typical 8/16/32/64 host, since we're
73807         already doing that elsewhere anyway.
73808         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
73809         and assume long long int is 64 bits if available.  This
73810         speeds up 'configure'.
73811
73812 2006-07-01  Eric Blake  <ebb9@byu.net>
73813
73814         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
73815         Reported by Andreas Buening.
73816
73817 2006-07-01  Eric Blake  <ebb9@byu.net>
73818
73819         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
73820
73821 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73822
73823         * lib/getaddrinfo.c: fixed typo
73824
73825 2006-06-29  Jim Meyering  <jim@meyering.net>
73826
73827         * modules/strftime (Maintainer): Add my name, since with the
73828         FPRINTFTIME changes strftime.c has forked from glibc.
73829
73830 2006-06-29  Eric Blake  <ebb9@byu.net>
73831
73832         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
73833
73834 2006-06-29  Eric Blake  <ebb9@byu.net>
73835
73836         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
73837
73838 2006-06-29  Eric Blake  <ebb9@byu.net>
73839
73840         * lib/stat_.h: New file.
73841
73842 2006-06-29  Eric Blake  <ebb9@byu.net>
73843
73844         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
73845         unused static function.
73846
73847 2006-06-29  Eric Blake  <ebb9@byu.net>
73848
73849         * doc/functions.texi (Function Portability): Document missing lstat
73850         on mingw.
73851
73852 2006-06-29  Eric Blake  <ebb9@byu.net>
73853
73854         * MODULES.html.sh: Add sys_stat.
73855         * modules/sys_stat: New module.
73856         * modules/mkstemp (Depends-on): Add sys_stat.
73857
73858 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73859
73860         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
73861
73862 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73863
73864         * m4/c-bs-a.m4: Removed.
73865
73866 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73867
73868         * lib/strftime.c: Assume strftime() exists.
73869
73870 2006-06-29  Derek Price  <derek@ximbiot.com>
73871
73872         * modules/c-bs-a: Removed - \a is C89.
73873         * MODULES.html.sh: Remove c-bs-a.
73874
73875 2006-06-29  Bruno Haible  <bruno@clisp.org>
73876
73877         * modules/wcwidth (License): Change to LGPL.
73878
73879 2006-06-28  Simon Josefsson  <jas@extundo.com>
73880
73881         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
73882         on _WIN32.
73883
73884         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
73885         getnameinfo.
73886
73887 2006-06-28  Simon Josefsson  <jas@extundo.com>
73888
73889         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
73890
73891 2006-06-28  Simon Josefsson  <jas@extundo.com>
73892
73893         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
73894         functions there.  It will succeed on Windows XP, but on Windows
73895         2000 and (presumably) earlier, it will fail, and use the internal
73896         re-implementation.
73897         (use_win32_p): New function.
73898         (getaddrinfo): Use strtoul on servname, to support numeric ports.
73899         Support AI_NUMERICSERV to disable getservbyname.
73900         (getnameinfo): New function, only supports
73901         NI_NUMERICHOST|NI_NUMERICSERV for now.
73902
73903         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
73904         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
73905         getnameinfo.
73906
73907 2006-06-28  Eric Blake  <ebb9@byu.net>
73908
73909         * modules/wcwidth: New file.
73910         * modules/mbchar (Depends-on): Add wcwidth.
73911         * modules/mbswidth (Depends-on): Add wcwidth.
73912         * MODULES.html.sh: Add wcwidth.
73913
73914 2006-06-28  Eric Blake  <ebb9@byu.net>
73915
73916         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
73917         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
73918
73919 2006-06-28  Eric Blake  <ebb9@byu.net>
73920
73921         * lib/xvasprintf.h: Fix comments.
73922
73923 2006-06-28  Eric Blake  <ebb9@byu.net>
73924
73925         * lib/mbchar.h (wcwidth): Include wcwidth.h.
73926         * lib/mbswidth.c (wcwidth): Move from here...
73927         * lib/wcwidth.h: ...to this new file.
73928
73929 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73930
73931         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
73932
73933         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
73934         it's obsolete.
73935         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
73936
73937 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73938
73939         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
73940         Autoconf 2.60 says this stuff was obsolete.
73941
73942 2006-06-28  Bruno Haible  <bruno@clisp.org>
73943
73944         * modules/wcwidth (Files): Add m4/wchar_t.m4.
73945
73946 2006-06-28  Bruno Haible  <bruno@clisp.org>
73947
73948         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
73949         gt_TYPE_WCHAR_T.
73950
73951 2006-06-28  Bruno Haible  <bruno@clisp.org>
73952
73953         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
73954         declaration for wcwidth.
73955         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
73956
73957 2006-06-28  Bruno Haible  <bruno@clisp.org>
73958
73959         * lib/mkdtemp.c [MINGW]: Include <io.h>.
73960         (mkdir): Define using _mkdir.
73961
73962 2006-06-28  Bruno Haible  <bruno@clisp.org>
73963
73964         * lib/getaddrinfo.h: Fix POSIX URL.
73965         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
73966         _WIN32.
73967         (use_win32_p): Make static.
73968         (getaddrinfo): Reject service name if it is empty or does not consist
73969         solely of decimal digits, or if its value is > 65535.
73970         (getnameinfo): Remove useless casts.
73971
73972 2006-06-27  Simon Josefsson  <jas@extundo.com>
73973
73974         * modules/sys_select: New file, suggested by Bruno Haible, Paul
73975         Eggert and Martin Lambers.
73976
73977 2006-06-27  Simon Josefsson  <jas@extundo.com>
73978
73979         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
73980         Eggert and Martin Lambers.
73981
73982 2006-06-27  Bruno Haible  <bruno@clisp.org>
73983
73984         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
73985         result to 0, not to empty.
73986         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
73987
73988 2006-06-27  Bruno Haible  <bruno@clisp.org>
73989
73990         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
73991
73992 2006-06-26  Simon Josefsson  <jas@extundo.com>
73993
73994         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
73995         present.
73996
73997 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
73998
73999         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
74000         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
74001         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
74002
74003 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
74004
74005         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
74006
74007 2006-06-26  Bruno Haible  <bruno@clisp.org>
74008
74009         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
74010
74011 2006-06-26  Bruno Haible  <bruno@clisp.org>
74012
74013         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
74014
74015 2006-06-26  Bruno Haible  <bruno@clisp.org>
74016
74017         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
74018         SGI C compiler in pre-C99 mode.
74019         Suggested by Mark D. Baushke and Larry Jones.
74020
74021 2006-06-26  Bruno Haible  <bruno@clisp.org>
74022
74023         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
74024         WCHAR_MAX.
74025         Reported by Mark D. Baushke and Larry Jones.
74026
74027 2006-06-26  Bruno Haible  <bruno@clisp.org>
74028
74029         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
74030         in pre-C99 mode.
74031         Suggested by Mark D. Baushke and Larry Jones.
74032
74033 2006-06-23  Simon Josefsson  <jas@extundo.com>
74034             Bruno Haible  <bruno@clisp.org>
74035
74036         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
74037         Emit mostlyclean-local rule.
74038         (func_emit_tests_Makefile_am): Likewise.
74039         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
74040
74041 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
74042
74043         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
74044
74045 2006-06-23  Bruno Haible  <bruno@clisp.org>
74046
74047         * tests/test-stdint.c: Update to match ISO C 99 Technical
74048         Corrigendum 1.
74049
74050 2006-06-23  Bruno Haible  <bruno@clisp.org>
74051
74052         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
74053
74054 2006-06-23  Bruno Haible  <bruno@clisp.org>
74055
74056         * lib/stdint_.h: Treat IRIX like OpenBSD.
74057
74058 2006-06-23  Bruno Haible  <bruno@clisp.org>
74059
74060         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
74061         ISO C 99 Technical Corrigendum 1.
74062
74063 2006-06-22  Simon Josefsson  <jas@extundo.com>
74064
74065         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
74066         MinGW.
74067
74068 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74069
74070         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
74071         needed.  Some compiler complained about some of them.  Problem reported
74072         by Larry Jones in
74073         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
74074
74075 2006-06-21  Simon Josefsson  <jas@extundo.com>
74076
74077         * tests/test-getaddrinfo.c: New file.
74078
74079         * modules/getaddrinfo-tests: New file.
74080
74081         * MODULES.html.sh: Add inet_pton.
74082
74083         * modules/inet_pton: New file.
74084
74085 2006-06-21  Simon Josefsson  <jas@extundo.com>
74086
74087         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
74088         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
74089         of using the (limited) gnulib implementation on Windows XP.
74090
74091         * m4/inet_pton.m4: New file.
74092
74093 2006-06-21  Simon Josefsson  <jas@extundo.com>
74094
74095         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
74096         variable.
74097
74098         * lib/socket_.h: Don't define WINVER.
74099
74100         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
74101         slightly modified to work in gnulib.
74102
74103 2006-06-21  Simon Josefsson  <jas@extundo.com>
74104
74105         * doc/gnulib.texi (Windows sockets): Add.
74106
74107 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
74108
74109         * lib/read-file.c (fread_file): Start with buffer allocation of
74110         0 bytes rather than 1 byte; this simplifies the code.
74111         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
74112         code to free buffer and save/restore errno.
74113         (internal_read_file): Remove unused local.
74114
74115 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
74116
74117         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
74118         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
74119         Problem reported by Denis Excoffier in
74120         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
74121
74122 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74123
74124         * modules/sys_socket, modules/socklen: Include sys/types since
74125         FreeBSD 4.x's sys/socket.h needs it.
74126
74127 2006-06-19  Simon Josefsson  <jas@extundo.com>
74128
74129         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
74130
74131 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
74134
74135 2006-06-19  Bruno Haible  <bruno@clisp.org>
74136
74137         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
74138         and FULL_PATH_INTTYPES_H in angle brackets.
74139         Reported by Mark D. Baushke <mdb@gnu.org>.
74140
74141 2006-06-17  Eric Blake  <ebb9@byu.net>
74142
74143         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
74144         errno.
74145
74146 2006-06-17  Bruno Haible  <bruno@clisp.org>
74147
74148         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
74149         <sys/inttypes.h>.
74150
74151 2006-06-17  Bruno Haible  <bruno@clisp.org>
74152
74153         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
74154         whether errno is declared. Assume <errno.h> declares errno.
74155
74156 2006-06-17  Bruno Haible  <bruno@clisp.org>
74157
74158         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
74159
74160 2006-06-17  Bruno Haible  <bruno@clisp.org>
74161
74162         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
74163         problem on Solaris 2.5.1.
74164
74165 2006-06-16  Eric Blake  <ebb9@byu.net>
74166
74167         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
74168         * lib/unicodeio.c [!defined errno]: Likewise.
74169         * lib/strtol.c [!defined errno]: Likewise.
74170         * lib/strtod.c [!defined errno]: Likewise.
74171
74172 2006-06-15  Eric Blake  <ebb9@byu.net>
74173
74174         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
74175
74176 2006-06-15  Eric Blake  <ebb9@byu.net>
74177
74178         * config/srclist.txt (ssize_t.m4): Lose sync.
74179
74180 2006-06-15  Bruno Haible  <bruno@clisp.org>
74181
74182         * modules/stdint (Files): Include m4/full-header-path.m4,
74183         m4/size_max.m4, m4/wchar_t.m4.
74184         (Makefile.am): Many more substitutions.
74185         * modules/stdint-tests: New file.
74186         * tests/test-stdint.c: New file.
74187
74188 2006-06-15  Bruno Haible  <bruno@clisp.org>
74189
74190         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
74191         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
74192         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
74193         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
74194         gl_CHECK_TYPE_SAME): New macros.
74195
74196 2006-06-15  Bruno Haible  <bruno@clisp.org>
74197
74198         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
74199
74200 2006-06-15  Bruno Haible  <bruno@clisp.org>
74201
74202         * lib/stdint_.h: Rewritten to be fully auto-configured.
74203         Fixes bug on HP-UX/IA64.
74204
74205 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
74206
74207         * lib/getdate.y (__attribute__): Don't define if already defined.
74208         Problem reported by Larry Jones.
74209         * lib/utimens.c (__attribute__): Likewise.
74210
74211 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
74212
74213         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
74214         reported by Andreas Schwab.
74215
74216 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74217             Bruno Haible  <bruno@clisp.org>
74218
74219         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
74220         check for the declaration of strnlen and a run test that exposes the
74221         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
74222         rpl_strndup.
74223
74224 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74225             Bruno Haible  <bruno@clisp.org>
74226
74227         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
74228
74229 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74230
74231         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
74232         compile test, for Tru64 4.0D.
74233
74234 2006-05-28  Karl Berry  <karl@gnu.org>
74235
74236         * config/srclist.txt (printf-args.c): lose sync.
74237
74238 2006-05-26  Martin Lambers  <marlam@marlam.de>
74239
74240         * lib/getpass.c: Updates the test for the native W32 API, and adds
74241         missing includes, thus fixing compilation warnings.
74242
74243 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74244
74245         * lib/exclude.c (exclude_fnmatch): New function.
74246         (excluded_file_name): Call exclude_fnmatch.
74247         * lib/exclude.h (excluded_file_name): New prototype
74248
74249 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
74250
74251         * lib/tempname.c (small_open, large_open): New macros.
74252         (__open, __open64) [!_LIBC]: Remove.
74253         (__gen_tempname): Use small_open and large_open instead of __open
74254         and __open64.  This fixes a portability bug on HP-UX 11.11i
74255         reported by Simon Wing-Tang in
74256         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
74257
74258 2006-05-24  Bruno Haible  <bruno@clisp.org>
74259
74260         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
74261         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
74262         Reported by Thorsten Maerz <torte@netztorte.de> via
74263         Aaron Stone <aaron@serendipity.cx>.
74264
74265 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74266
74267         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
74268         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
74269         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
74270         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
74271         not really conditional on the cache.
74272         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
74273
74274 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74275
74276         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
74277         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
74278         (my_usleep): Don't mishandle maximum value.
74279
74280 2006-05-19  Jim Meyering  <jim@meyering.net>
74281
74282         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
74283
74284 2006-05-17  Bruno Haible  <bruno@clisp.org>
74285
74286         Cygwin portability.
74287         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
74288
74289 2006-05-17  Bruno Haible  <bruno@clisp.org>
74290
74291         * lib/stdint_.h: Fix recognition of Cygwin.
74292
74293 2006-05-15  Bruno Haible  <bruno@clisp.org>
74294
74295         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
74296         on libtool patch by Ralf Wildenhues.
74297
74298 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74299
74300         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
74301         test for C99 conformance; (bool) 0.5 is an integer constant
74302         expression, but (bool) -0.5 is not.  Problem reported by Fedor
74303         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
74304
74305 2006-05-11  Simon Josefsson  <jas@extundo.com>
74306
74307         * m4/xvasprintf.m4: Fix obvious typo.
74308
74309 2006-05-11  Jim Meyering  <jim@meyering.net>
74310
74311         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
74312         James Lemley.
74313
74314 2006-05-10  Simon Josefsson  <jas@extundo.com>
74315
74316         * lib/md4.c: Typo fix, update copyright years.
74317         (K1, K2): Don't use L because it turn computations into 64-bit on
74318         64-bit platforms.
74319
74320 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
74321
74322         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
74323         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
74324         unwanted sign propagation, e.g., on hosts with 64-bit int.
74325         There still are some problems with reeelly weird theoretical hosts
74326         (e.g., 33-bit int) but it's not worth worrying about now.
74327         * lib/sha1.c (rol): Likewise.
74328         (K1, K2, K3, K4): Remove unnecessary L suffix.
74329
74330 2006-05-10  Bruno Haible  <bruno@clisp.org>
74331
74332         * lib/des.c: Cast to avoid warnings.
74333
74334 2006-05-09  Bruno Haible  <bruno@clisp.org>
74335
74336         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
74337         (Depends-on): Depend also on xsize, stdarg.
74338         (configure.ac): Add gl_XVASPRINTF.
74339
74340 2006-05-09  Bruno Haible  <bruno@clisp.org>
74341
74342         * m4/xvasprintf.m4: New file.
74343
74344 2006-05-09  Bruno Haible  <bruno@clisp.org>
74345
74346         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
74347         (EOVERFLOW): Define fallback value.
74348         (xstrcat): New function.
74349         (xvasprintf): Recognize the special case of a string concatenation.
74350
74351 2006-05-08  Eric Blake  <ebb9@byu.net>
74352
74353         * gnulib-tool (func_version): Base copyright year on CVS date.
74354         (func_emit_copyright_notice): New function.
74355         (func_emit_lib_Makefile_am): Use it.
74356         (func_emit_tests_Makefile_am): Likewise.
74357         (func_import): Likewise.
74358
74359 2006-05-08  Bruno Haible  <bruno@clisp.org>
74360
74361         * modules/stdarg: New file.
74362         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
74363
74364 2006-05-08  Bruno Haible  <bruno@clisp.org>
74365
74366         * m4/stdarg.m4: New file, from GNU gettext.
74367
74368 2006-05-08  Bruno Haible  <bruno@clisp.org>
74369
74370         * config/srclist.txt (build-aux/config.rpath): different from latest
74371         release.
74372
74373 2006-05-08  Bruno Haible  <bruno@clisp.org>
74374
74375         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
74376
74377 2006-05-05  Jim Meyering  <jim@meyering.net>
74378
74379         * m4/warning.m4: New file, derived from bison's file by the same name.
74380
74381 2006-05-03  Bruno Haible  <bruno@clisp.org>
74382
74383         * lib/stdint_.h: Shorter URL.
74384         * lib/inttypes.h: Likewise.
74385
74386 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74387
74388         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
74389
74390 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74391
74392         * lib/verify.h: Document the internals better.  Most of this change
74393         was written by Bruno Haible.
74394
74395 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74396
74397         * doc/verify.texi: New file, partly based on a proposal by
74398         Bruno Haible.
74399
74400 2006-05-02  Bruno Haible  <bruno@clisp.org>
74401
74402         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
74403         test from here...
74404         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
74405
74406 2006-04-29  Bruno Haible  <bruno@clisp.org>
74407
74408         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
74409         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
74410
74411 2006-04-29  Bruno Haible  <bruno@clisp.org>
74412
74413         * gnulib-tool: Make --update option actually work.
74414
74415 2006-04-29  Bruno Haible  <bruno@clisp.org>
74416
74417         * doc/gcd.texi: New file.
74418         * doc/gnulib.texi: Include it.
74419
74420 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
74421
74422         * lib/getdate.y (get_date): When adding relative date, start with the
74423         initial time, not with the result of the first mktime call.
74424
74425 2006-04-25  Bruno Haible  <bruno@clisp.org>
74426
74427         * gnulib-tool (func_import): Output the include directives in three
74428         blocks, sorted separately.
74429         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74430
74431 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74432
74433         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
74434         to define main with arguments, for C++.  Reported by Eric Blake.
74435         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
74436         Prefer 'int main ()' to 'int main (void)', for C++.
74437         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
74438         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
74439         for 'main', for C99 and C++.
74440
74441 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74442
74443         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
74444         Don't assume that exit status -1 is valid.
74445         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74446         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74447         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
74448         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
74449         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
74450         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
74451         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
74452         functions can be used without declaring them, or that you can
74453         exit with status -1.
74454         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
74455
74456 2006-04-24  Karl Berry  <karl@gnu.org>
74457
74458         * config/srclist.txt (longdouble.m4): sync lost.
74459
74460 2006-04-24  Eric Blake  <ebb9@byu.net>
74461
74462         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
74463
74464 2006-04-24  Bruno Haible  <bruno@clisp.org>
74465
74466         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
74467         poll() implementation in AIX.
74468         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74469
74470 2006-04-24  Bruno Haible  <bruno@clisp.org>
74471
74472         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
74473         assigned exactly once.
74474
74475 2006-04-23  Claudio Fontana  <claudio@gnu.org>
74476             Bruno Haible  <bruno@clisp.org>
74477
74478         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
74479         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
74480         for AM_CPPFLAGS.
74481
74482 2006-04-23  Bruno Haible  <bruno@clisp.org>
74483
74484         * modules/copy-file: Depend on unistd.
74485         * modules/execute: Likewise.
74486         * modules/fatal-signal: Likewise.
74487         * modules/findprog: Likewise.
74488         * modules/mkdtemp : Likewise.
74489         * modules/pipe: Likewise.
74490         * modules/wait-process: Likewise.
74491
74492 2006-04-23  Bruno Haible  <bruno@clisp.org>
74493
74494         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
74495         condition was already detected.
74496         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74497
74498 2006-04-23  Bruno Haible  <bruno@clisp.org>
74499
74500         * lib/copy-file.c: Include <unistd.h> unconditionally.
74501         * lib/execute.c: Likewise.
74502         * lib/fatal-signal.c: Likewise.
74503         * lib/findprog.c: Likewise.
74504         * lib/mkdtemp.c: Likewise.
74505         * lib/pipe.h: Likewise.
74506         * lib/pipe.c: Likewise.
74507         * lib/wait-process.h: Likewise.
74508
74509 2006-04-23  Bruno Haible  <bruno@clisp.org>
74510
74511         * gnulib-tool (func_usage): Fix --import description. Document
74512         --update.
74513         (func_import): Create temporary file in a temporary directory, if
74514         --dry-run is specified. Silence errors from 'grep' when there are no
74515         m4 files in $m4dir.
74516         (func_create_testdir): Silence errors from 'grep' when there are no
74517         m4 files in $m4dir.
74518         Reported by Karl Berry <karl@freefriends.org>.
74519
74520 2006-04-20  Bruno Haible  <bruno@clisp.org>
74521
74522         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
74523         one argument, so that the code will be portable to Autoconf 2.60.
74524         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
74525         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74526         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
74527
74528 2006-04-19  Derek Price  <derek@ximbiot.com>
74529             Eric Blake  <ebb9@byu.net>
74530
74531         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
74532         rather than "/full/path.h".  Update comment to match.  Shorten &
74533         generalize m4_translit call via AS_TR_CPP.
74534
74535 2006-04-19  Derek Price  <derek@ximbiot.com>
74536             Eric Blake  <ebb9@byu.net>
74537
74538         * lib/inttypes.h: Correct grammar in comment.
74539
74540 2006-04-18  Derek Price  <derek@ximbiot.com>
74541             Paul Eggert  <eggert@cs.ucla.edu>
74542
74543         * modules/inttypes: New file.
74544         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
74545
74546 2006-04-18  Derek Price  <derek@ximbiot.com>
74547             Paul Eggert  <eggert@cs.ucla.edu>
74548
74549         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
74550         New files.
74551
74552 2006-04-18  Derek Price  <derek@ximbiot.com>
74553             Paul Eggert  <eggert@cs.ucla.edu>
74554
74555         * lib/inttypes.h: New file.
74556         * lib/strtoimax.c: Assume <inttypes.h>.
74557
74558 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
74559
74560         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
74561         isn't mounted.  Problem reported by Kir Kolyshkin.
74562
74563 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74564
74565         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
74566         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
74567         Derek R. Price.
74568         * lib/regex.h (RE_DUP_MAX): Update comment to match current
74569         implementation.
74570
74571 2006-04-12  Eric Blake  <ebb9@byu.net>
74572
74573         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
74574         is now done automatically by the corresponding Autoconf macro.
74575
74576 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
74577
74578         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
74579         time_r.h.
74580
74581 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74582
74583         Merge regex changes from libc, removing some of our
74584         POSIX-conformance changes that were rejected and redoing them in a
74585         less-intrusive way.
74586
74587         * lib/regcomp.c (re_compile_internal, init_dfa):
74588         Length arg is now size_t, not Idx.  All uses changed.
74589         (peek_token): Forward decl now says internal_function.
74590         (__re_error_msgid, __re_error_msgid_idx):
74591         Now static rather than extern with attribute_hidden.
74592         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
74593         For some reason libc prefers K&R style defns for external functions.
74594         (regerror) [!defined _LIBC]: Likewise.
74595         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
74596         (seek_collating_symbol_entry, lookup_collation_sequence_value):
74597         (build_range_exp, build_collating_symbol):
74598         Use K&R-style defn.
74599         (re_compile_fastmap): Use '\0' to memset, not 0.
74600         (utf8_sb_map): Make the calculations more obvious.
74601         (init_dfa, parse_bracket_exp, build_charclass_op):
74602         Call calloc and cast result, as glibc does.
74603         (init_word_char, fetch_token, peek_token, peek_token_bracket):
74604         (build_range_exp, build_collating_symbol):
74605         Now internal functions.
74606
74607         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
74608
74609         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
74610         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
74611         Don't depend on VMS; depend on __VMS instead, for POSIX
74612         namespace cleanness.
74613         (regoff_t): Define to ssize_t, not long int.
74614
74615         Remove the REG_ macros named below.  Instead, make the old names
74616         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
74617         __USE_GNU_REGEX.
74618         (REG_BACKSLASH_ESCAPE_IN_LISTS):
74619         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
74620         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
74621         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
74622         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
74623         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
74624         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
74625         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
74626         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
74627         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
74628         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
74629         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
74630         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
74631         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
74632         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
74633         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
74634         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
74635         (REG_NREGS):
74636         Remove.  All uses replaced by the old RE_* names.
74637         (RE_BACKSLASH_ESCAPE_IN_LISTS):
74638         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
74639         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
74640         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
74641         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
74642         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
74643         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
74644         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
74645         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
74646         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
74647         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
74648         Don't bother having these macros be independent of each others'
74649         values, since they no longer exist in the POSIX name space.
74650
74651         Rename the following member names back to their old names,
74652         unless !__USE_GNU_REGEX.  All uses changed back.
74653         (buffer): Renamed from re_buffer.
74654         (allocated): Renamed from re_allocated.
74655         (used): Renamed from re_used.
74656         (syntax): Renamed from re_syntax.
74657         (fastmap): Renamed from re_fastmap.
74658         (translate): Renamed from re_translate.
74659         (can_be_null): Renamed from re_can_be_null.
74660         (regs_allocated): Renamed from re_regs_allocated.
74661         (fastmap_accurate): Renamed from re_fastmap_accurate.
74662         (no_sub): Renamed from re_no_sub.
74663         (not_bol): Renamed from re_not_bol.
74664         (not_eol): Renamed from re_not_eol.
74665         (newline_anchor): Renamed from re_newline_anchor.
74666         (num_regs): Renamed from rm_num_regs.
74667         (start): Renamed from rm_start.
74668         (end): Renamed from rm_end.
74669
74670         (free_state): Move up a bit.
74671
74672         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
74673         #define to be empty.
74674         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
74675         when that is what is intended.
74676         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
74677         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
74678         (MAX): New macro.
74679         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
74680         All uses changed back to re_malloc, etc.  It's now the caller's
74681         responsibility to check for overflow; all callers changed.
74682         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
74683         (re_x2nrealloc): Remove.
74684         (free_state): Remove decl.
74685
74686         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
74687         (re_set_registers, re_exec):
74688         Use K&R-style defn.
74689
74690         2006-01-31  Roland McGrath  <roland@redhat.com>
74691
74692         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
74693         Reported by Mike Frysinger <vapier@gentoo.org>.
74694
74695         2006-01-15  Andreas Jaeger  <aj@suse.de>
74696
74697         [BZ #1950]
74698         * lib/regex_internal.c (re_string_reconstruct): Adjust for
74699         build_wcs_upper_buffer change.
74700         (build_wcs_upper_buffer): Change return type.
74701
74702         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
74703
74704         * lib/regex_internal.h: Include <stdint.h> if available.
74705
74706         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
74707
74708         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
74709
74710         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74711
74712         * lib/regcomp.c: Adjust for changed secondary hash function.
74713
74714         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
74715
74716         * lib/regex.h: Pretty printing.
74717         Clean up namespace a bit.
74718
74719         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
74720
74721         * lib/regexec.c (update_cur_sifted_state, check_arrival,
74722         check_arrival_add_next_nodes): Avoid using uninitialized variable.
74723
74724         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74725                     Ulrich Drepper  <drepper@redhat.com>
74726
74727         [BZ #1302]
74728         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
74729         changed.
74730         (bitset_word_t): Renamed from bitset_word.  All uses changed.
74731
74732         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
74733
74734         [BZ #281]
74735         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
74736         * lib/regcomp.c: Remove unnecessary uses of
74737         unsigned RE_TRANSLATE_TYPE.
74738         * lib/regex_internal.h: Likewise.
74739         * lib/regex_internal.c: Likewise.
74740         * lib/regexec.c: Likewise.
74741         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
74742
74743         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
74744
74745         * lib/regexec.c (find_recover_state): Remove unnecessary
74746         initialization.
74747         (transit_state_bkref): Make DFA a const pointer.
74748         (get_subexp): Likewise.
74749         (check_arrival): Likewise.
74750         (update_cur_sifted_state): Likewise.
74751         (re_search_internal): Likewise.
74752         (prune_impossible_nodes): Likewise.
74753         (acquire_init_state_context): Likewise.
74754         (proceed_next_node): Likewise.
74755         (set_regs): Likewise.
74756         (free_fail_stack_return): Likewise.
74757         (check_arrival_expand_ecl): Mark DFA parameter as const.
74758         (check_arrival_expand_ecl_sub): Likewise.
74759         (check_subexp_limits): Likewise.
74760         (sub_epsilon_src_nodes):  Likewise.
74761         (add_epsilon_src_nodes):  Likewise.
74762         (merge_state_array): Likewise.
74763         (update_regs): Likewise.
74764         (build_trtable): Likewise.
74765         (sift_states_backward): Mark MCTX parameter as const.
74766         (build_sifted_states): Likewise.
74767         (update_cur_sifted_state): Likewise.
74768         (sift_states_mkref): Likewise.
74769         (check_arrival_expand_ecl): Mark eclosure as const.
74770         (check_dst_limits_calc_pos_1): Likewise.
74771         * lib/regex_internal.h (re_match_context_t): Make dfa a const
74772         pointer.
74773
74774         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
74775
74776         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
74777         (transit_state_sb): Likewise.
74778         (transit_state_mb): Likewise.
74779         (sift_states_iter_mb): Likewise.
74780         (check_arrival_add_next_nodes): Likewise.
74781         (check_node_accept_bytes): Change first parameter to pointer-to-const.
74782         [_LIBC] (re_search_2_stub): Use mempcpy.
74783
74784         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
74785         mbrtowc for very simple UTF-8 case.
74786
74787         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
74788         a pointer-to-const.
74789         (re_acquire_state_context): Likewise.
74790         * lib/regex_internal.h: Adjust prototypes.
74791
74792         * lib/regex.c: Prevent using C++ compilers.
74793
74794         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
74795         (re_acquire_state_context): Likewise.
74796
74797 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74798
74799         * modules/regex (Depends-on): Add ssize_t.
74800
74801 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74802
74803         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
74804         translation table.
74805
74806 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74807
74808         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
74809
74810 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
74811             Bruno Haible  <bruno@clisp.org>
74812
74813         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
74814         <sys/types.h> and <inttypes.h>.
74815
74816 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74817
74818         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
74819         `__error_t_defined', so argp.h will not typedef the former.
74820
74821 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
74822
74823         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
74824         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
74825         glibc names.  Even if glibc is changed to conform to POSIX, the
74826         traditional names will be available anyway, since regex depends on
74827         the extensions module.  Also, fix a longstanding typo in the
74828         implementation of Spencer ERE test #75 from grep 2.3.  Problems
74829         reported by Emanuele Giaquinta.  Also, change sense of cached
74830         variable, so that the message makes sense.
74831
74832 2006-03-24  Simon Josefsson  <jas@extundo.com>
74833
74834         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
74835         including some doc fixes.
74836         (base64_encode_alloc): Fix +1 bug on allocation failures.
74837
74838 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74839
74840         * lib/base64.c (base64_encode): Do not read past end of array with
74841         unsanitized input on systems with CHAR_BIT > 8.
74842
74843 2006-03-24  Eric Blake  <ebb9@byu.net>
74844
74845         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
74846
74847 2006-03-22  Karl Berry  <karl@gnu.org>
74848
74849         * config/srclist.txt (*setenv.[ch]): get from coreutils.
74850         * config/srclistvars.sh (COREUTILS): new var.
74851
74852 2006-03-17  Jim Meyering  <jim@meyering.net>
74853
74854         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
74855         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
74856
74857 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74858
74859         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
74860         no longer needs it.  Instead, check that regoff_t is as least
74861         as wide as ptrdiff_t.
74862
74863         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
74864         so that our regex.h stays compatible with the installed regex.
74865         This is helpful for installers who configure --without-included-regex.
74866         Problem reported by Emanuele Giaquinta.
74867
74868 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74869
74870         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
74871         Typedef to long int, not to off_, as POSIX will likely change
74872         in that direction.
74873
74874 2006-03-15  Eric Blake  <ebb9@byu.net>
74875
74876         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
74877
74878 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74879
74880         * lib/argp-help.c (validate_uparams): Fix typo
74881         * lib/argp-parse.c (argp_default_options): Consistently begin help
74882         messages with a lowercase letter.
74883
74884 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
74885
74886         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
74887         overrun buffers and shouldn't be used (much as gets shouldn't be
74888         used).
74889         * lib/time_r.c (asctime_r, ctime_r): Likewise.
74890
74891 2006-03-08  Simon Josefsson  <jas@extundo.com>
74892
74893         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
74894         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74895
74896 2006-03-08  Simon Josefsson  <jas@extundo.com>
74897
74898         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
74899         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74900
74901 2006-03-08  Simon Josefsson  <jas@extundo.com>
74902
74903         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
74904         signal that configure disabled the device.
74905
74906 2006-03-08  Simon Josefsson  <jas@extundo.com>
74907
74908         * build-aux/maint.mk: Fix refresh-po, to handle no translated
74909         languages.
74910
74911 2006-03-07  Simon Josefsson  <jas@extundo.com>
74912
74913         * modules/getopt (Depends-on): Add unistd.
74914
74915         * modules/unistd: New file.
74916
74917 2006-03-07  Simon Josefsson  <jas@extundo.com>
74918
74919         * modules/gc-random: New file.
74920
74921 2006-03-07  Simon Josefsson  <jas@extundo.com>
74922
74923         * m4/unistd_h.m4: New file.
74924
74925 2006-03-07  Simon Josefsson  <jas@extundo.com>
74926
74927         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
74928         test to be side-effect free by storing the result in the cache
74929         variable gl_cv_lib_readline, and moving the assignment of
74930         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
74931         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74932
74933 2006-03-07  Simon Josefsson  <jas@extundo.com>
74934
74935         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
74936         error on missing devices (the functions will return an error).
74937
74938         * m4/gc.m4: Move random stuff to gc-random.m4
74939
74940 2006-03-07  Simon Josefsson  <jas@extundo.com>
74941
74942         * lib/unistd_.h: New file.
74943
74944 2006-03-07  Simon Josefsson  <jas@extundo.com>
74945
74946         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
74947
74948 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74949
74950         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
74951         Problem reported by Juan Manuel Guerrero.
74952
74953 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74954
74955         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
74956         the unistd module.
74957         * lib/getlogin_r.c: Likewise.
74958         * lib/getlogin_r.h: Likewise.
74959         * lib/glob.c: Likewise.
74960         * lib/pagealign_alloc.c: Likewise.
74961         * lib/unistd_.h: Remove; no longer needed.
74962
74963 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74964
74965         * MODULES.html.sh (Support for systems lacking POSIX:2001):
74966         Add unistd.
74967         * modules/c-stack (Depends-on): Add unistd.
74968         * modules/getlogin_r: Likewise.
74969         * modules/glob: Likewise.
74970         * modules/pagealign_alloc: Likewise.
74971         * modules/unistd (Files): Remove lib/unistd_.h.
74972         (EXTRA_DIST): Remove.
74973         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
74974         need unistd_.h.
74975         (MOSTLYCLEANFILES): Remove unistd.h-t.
74976
74977 2006-03-03  Simon Josefsson  <jas@extundo.com>
74978
74979         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
74980
74981 2006-03-03  Simon Josefsson  <jas@extundo.com>
74982
74983         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
74984         libidn and bison.
74985
74986 2006-03-03  Simon Josefsson  <jas@extundo.com>
74987
74988         * build-aux/maint.mk: Add indent target.
74989
74990 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
74991
74992         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
74993         our replacement poll.h in any case, to avoid a differing
74994         declaration from a system header.  Seen on AIX.
74995
74996 2006-03-01  Simon Josefsson  <jas@extundo.com>
74997
74998         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
74999         <kasal@ucw.cz>.
75000
75001 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75002
75003         * modules/gettime (Depends-on): Add extensions module.
75004         * modules/nanosleep (Depends-on): Likewise.
75005         * modules/settime (Depends-on): Likewise.
75006
75007 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75008
75009         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
75010         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
75011         pedantically.
75012         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75013         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
75014
75015         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
75016         not "==".  Reported by Ralf Wildenhues.
75017
75018 2006-03-01  Karl Berry  <karl@gnu.org>
75019
75020         * doc/Copyright/request-*: new files, synced from gnuorg.
75021
75022 2006-03-01  Karl Berry  <karl@gnu.org>
75023
75024         * config/srclist.txt (Copyright/*): new entries.
75025
75026 2006-02-28  Simon Josefsson  <jas@extundo.com>
75027
75028         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
75029
75030 2006-02-27  Simon Josefsson  <jas@extundo.com>
75031
75032         * lib/base64.h: Indent #define's.  From Jim Meyering
75033         <jim@meyering.net>.
75034
75035 2006-02-27  Jim Meyering  <jim@meyering.net>
75036
75037         Revert the change of 2006-02-24, so these files can continue
75038         to be sync'd from gettext.
75039         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
75040         of `config.h'.
75041
75042 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75043
75044         * modules/intprops: New file.
75045         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75046         Add intprops.
75047         * modules/getloadavg (Files): Remove lib/intprops.h.
75048         (Depends-on): Add intprops.
75049         * modules/human: Likewise.
75050         * modules/inttostr: Likewise.
75051         * modules/openat: Likewise.
75052         * modules/sig2str: Likewise.
75053         * modules/userspec: Likewise.
75054         * modules/utimecmp: Likewise.
75055         * modules/xnanosleep: Likewise.
75056         * modules/xstrtol: Likewise.
75057
75058 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
75059
75060         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
75061         * modules/lock-tests (TESTS): Use $(EXEEXT).
75062         * modules/tls-tests: Likewise.
75063         * modules/argp-tests: Likewise.
75064         (check_PROGRAMS): New var, replacing...
75065         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
75066
75067 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75068
75069         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
75070         `config.h'.
75071
75072 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
75073
75074         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
75075
75076 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75077
75078         Sync from coreutils.
75079         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
75080         gl_CHDIR_SAFER.
75081
75082 2006-02-22  Jim Meyering  <jim@meyering.net>
75083
75084         Sync from coreutils.
75085         * m4/chdir-safer.m4: New file.
75086
75087 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
75088
75089         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
75090         AT_FDCWD exceeds INT_MAX.
75091         * lib/openat.h (AT_FDCWD): Likewise.
75092
75093 2006-02-17  Eric Blake  <address@hidden>
75094
75095         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
75096
75097 2006-02-16  Simon Josefsson  <jas@extundo.com>
75098
75099         * modules/getaddrinfo (Depends-on): Add sys_socket.
75100
75101 2006-02-15  Simon Josefsson  <jas@extundo.com>
75102
75103         * build-aux/maint.mk: Add dsyntax-check rule.
75104
75105 2006-02-15  Eric Blake  <ebb9@byu.net>
75106
75107         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
75108         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
75109         'present but cannot compile' warnings on cygwin.
75110         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
75111         use ws2tcpip.h if sys/socket.h works.
75112         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
75113         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
75114
75115 2006-02-14  Simon Josefsson  <jas@extundo.com>
75116
75117         * modules/maintainer-makefile (Files): Rename.
75118
75119         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
75120         and (the local) Makefile.cfg to maint-cfg.mk.
75121
75122         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
75123         to the latter.
75124
75125         * modules/maintainer-makefile: New module.
75126
75127         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
75128         severaly stripped to make it possible to build it up from scratch
75129         with reliable tests.
75130
75131         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
75132         fixes to permit overriding the default actions when configure and
75133         makefile are not available.
75134
75135 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
75136
75137         Sync from coreutils.
75138         * modules/lstat (Depends-on): Don't depend on xalloc.
75139         (License): Change from GPL to LGPL, since this is now simply a
75140         replacement for a libc function.
75141
75142 2006-02-14  Jim Meyering  <jim@meyering.net>
75143
75144         Sync from coreutils.
75145
75146         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
75147         failure on deficient systems, and simplify gnulib lgpl dependencies.
75148         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
75149         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
75150
75151         * lib/xalloc-die.c: Remove unused definition of N_.
75152
75153 2006-02-14  Jim Meyering  <jim@meyering.net>
75154
75155         Sync from coreutils.
75156         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
75157         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
75158         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
75159         double-quote uses of that variable, to accommodate the rare case in
75160         which getmntent is available in none of the libraries checked.  This
75161         happens at least on FreeBSD 5.0.
75162
75163 2006-02-13  Simon Josefsson  <jas@extundo.com>
75164
75165         * gnulib-tool (Usage): Fix --import, from
75166         karl@freefriends.org (Karl Berry).
75167
75168 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75169
75170         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
75171
75172 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
75173
75174         * lib/argp-namefrob.h: Restore changes accidentally lost during the
75175         "autoupdate" on 2005-12-12.
75176
75177 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75178
75179         * modules/closeout (Depends-on): Remove atexit.
75180
75181 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75182
75183         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
75184         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
75185
75186 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
75187
75188         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
75189         __EXTENSIONS__ if this causes compilation to fail.  Problem
75190         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
75191         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
75192
75193 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
75194
75195         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
75196         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
75197         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
75198         All uses changed.
75199
75200 2006-01-26  Simon Josefsson  <jas@extundo.com>
75201
75202         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
75203         prototype is visible on mingw32.
75204
75205         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
75206         for mingw32.
75207
75208         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
75209         mingw32).
75210
75211 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75212
75213         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
75214         attempt to open for write; this always fails, at least on POSIX
75215         hosts.  This reinstates the 2006-01-09 change, which was
75216         inadvertently removed.
75217
75218 2006-01-26  Bruno Haible  <bruno@clisp.org>
75219
75220         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
75221         Reported by Paul Eggert.
75222
75223 2006-01-26  Bruno Haible  <bruno@clisp.org>
75224             Paul Eggert  <eggert@cs.ucla.edu>
75225
75226         * lib/stdbool_.h (_Bool)
75227         [(! (defined __cplusplus || defined __BEOS__)
75228           && !defined __GNUC__
75229           && !(defined __HP_cc || defined __xlc__
75230                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
75231                || defined __sgi))]:
75232         #define to signed char in these cases too; this simplifies
75233         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
75234         etc., separately) and makes it more conservative.
75235
75236 2006-01-25  Simon Josefsson  <jas@extundo.com>
75237
75238         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
75239         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
75240         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
75241
75242 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75243
75244         * lib/argp-namefrob.h: Bugfix. Remove stray #
75245
75246 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
75247
75248         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
75249         so that we test the test.
75250         Check for yet another HP-UX cc bug involving *bool |= bool.
75251
75252 2006-01-25  Karl Berry  <karl@gnu.org>
75253
75254         * config/srclist.txt (vasnprintf.c): sync lost.
75255
75256 2006-01-25  Jim Meyering  <jim@meyering.net>
75257
75258         Sync from the stable (b5) branch of coreutils:
75259
75260         * lib/fts.c (fts_children): Don't let close() clobber errno from
75261         failed fchdir().
75262
75263         * lib/fts.c (fts_stat): When following a symlink-to-directory,
75264         don't necessarily interpret stat-fails+lstat-succeeds as indicating
75265         a dangling symlink.  That can also happen at least for ELOOP.
75266         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
75267         FYI, this bug predates the inclusion of fts.c in coreutils.
75268
75269         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
75270         in their own block, so pre-c99 compilers don't object.
75271
75272         Avoid the double-free (first in fts_read, second in fts_close) that
75273         would occur when an `active' directory is made inaccessible (e.g.,
75274         via chmod a-x) during a traversal.
75275         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75276         before returning.  Reproduce this failure by
75277         mkdir -p a/b; cd a; chmod a-x . b
75278         Reported by Stavros Passas.
75279
75280 2006-01-25  Jim Meyering  <jim@meyering.net>
75281
75282         * lib/fileblocks.c: Remove more useless parentheses.
75283         * lib/readutmp.h: Likewise.
75284
75285 2006-01-25  Bruno Haible  <bruno@clisp.org>
75286
75287         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
75288         warnings.
75289         Reported by Paul Eggert.
75290
75291 2006-01-25  Bruno Haible  <bruno@clisp.org>
75292
75293         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
75294         rid of a trap command. For Solaris sh.
75295         Reported by Mark D. Baushke <mdb@gnu.org>.
75296
75297 2006-01-24  Simon Josefsson  <jas@extundo.com>
75298
75299         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
75300         Bruno.
75301
75302 2006-01-24  Karl Berry  <karl@gnu.org>
75303
75304         * config/srclist.txt (argp-namefrob.h): sync lost.
75305
75306 2006-01-24  Jim Meyering  <jim@meyering.net>
75307
75308         * modules/openat (Files): Add lib/intprops.h.
75309         From Mark D. Baushke.
75310
75311 2006-01-24  Jim Meyering  <jim@meyering.net>
75312
75313         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
75314         Reported by Mark D. Baushke.
75315
75316 2006-01-24  Jim Meyering  <jim@meyering.net>
75317
75318         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
75319
75320 2006-01-24  Bruno Haible  <bruno@clisp.org>
75321
75322         * modules/strnlen (Maintainer): Change from glibc to all.
75323
75324 2006-01-24  Bruno Haible  <bruno@clisp.org>
75325
75326         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
75327         Patch by Paul Eggert.
75328
75329 2006-01-24  Bruno Haible  <bruno@clisp.org>
75330
75331         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
75332         already has it.
75333         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
75334         2005-11-26.
75335
75336         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
75337         'signed char' to avoid problems with the built-in _Bool type.
75338         Reported by Paul Eggert on 2005-11-26.
75339
75340 2006-01-24  Bruno Haible  <bruno@clisp.org>
75341
75342         * gnulib-tool (func_import): Avoid constructing complicated sed
75343         expressions inside backquote.
75344         Report and solution by Mark D. Baushke <mdb@gnu.org>.
75345
75346 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
75347
75348         These changes imported from libc.
75349         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
75350         test and two separate function calls.
75351         * lib/strndup.c (__strndup): Add libc_hidden_def.
75352
75353 2006-01-23  Simon Josefsson  <jas@extundo.com>
75354
75355         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
75356         Remove the test_*_SOURCES variable: automake infers it by default.
75357         * modules/tls-tests: Likewise.
75358
75359 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75360
75361         Work around porting bugs reported by Dieter in
75362         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
75363         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
75364         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
75365         Include "getopt.h" first, to check interface.
75366         (getenv): Declare only if defined HAVE_DECL_GETENV &&
75367         !HAVE_DECL_GETENV.
75368         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
75369         (__strndup): Revert to K&R-style function dfns, the glibc style.
75370         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
75371         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
75372         Include strnlen.h first, to get prototype properly.
75373         (strnlen): Renamed from __strnlen.
75374         Remove weak alias.
75375
75376 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75377
75378         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
75379
75380 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75381
75382         * config/srclist.txt: Adjust to reflect glibc reorganization.
75383         This affects only comments.
75384
75385 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75386
75387          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
75388          Reported by Bruce Korb <bkorb@gnu.org>.
75389
75390 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75391
75392         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
75393         to pacify gcc -Wswitch-default.
75394
75395 2006-01-22  Bruno Haible  <bruno@clisp.org>
75396
75397         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
75398         temporary buffer for sprintf, take into account the precision also
75399         for 'd', 'i', 'u', 'o', 'x', 'X'.
75400
75401 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75402
75403         * modules/argp-tests: New module
75404         * tests/test-argp.c: New file
75405         * tests/test-argp-2.sh: New file
75406
75407 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75408
75409         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
75410         (__argp_base_name): Removed
75411         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
75412         typo.
75413         (__argp_base_name): Provide macro definition or extern declaration
75414         depending on the configuration
75415
75416 2006-01-20  Simon Josefsson  <jas@extundo.com>
75417
75418         * modules/inet_ntop (Depends-on): Depend on sys_socket.
75419
75420 2006-01-20  Simon Josefsson  <jas@extundo.com>
75421
75422         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
75423
75424 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75425
75426         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
75427         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
75428         Suggested by Bruno Haible.
75429
75430 2006-01-20  Karl Berry  <karl@gnu.org>
75431
75432         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
75433         until changes propagate, I guess.
75434
75435 2006-01-19  Simon Josefsson  <jas@extundo.com>
75436
75437         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
75438
75439 2006-01-19  Simon Josefsson  <jas@extundo.com>
75440
75441         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
75442
75443 2006-01-19  Simon Josefsson  <jas@extundo.com>
75444
75445         * gnulib-tool: Set check_PROGRAMS.
75446
75447         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75448         modules/des-tests, modules/gc-arcfour-tests,
75449         modules/gc-arctwo-tests, modules/gc-des-tests,
75450         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75451         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75452         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75453         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75454         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75455         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
75456         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
75457         test_*_SOURCES.
75458
75459 2006-01-18  Simon Josefsson  <jas@extundo.com>
75460
75461         * modules/socklen (Depends-on): Depend on sys_socket.
75462
75463 2006-01-18  Simon Josefsson  <jas@extundo.com>
75464
75465         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75466         modules/des-tests, modules/gc-arcfour-tests,
75467         modules/gc-arctwo-tests, modules/gc-des-tests,
75468         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75469         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75470         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75471         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75472         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75473         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
75474         $(EXEEXT) to automake TESTS variable, for mingw32.
75475
75476 2006-01-17  Simon Josefsson  <jas@extundo.com>
75477
75478         * modules/socklen (Include): Need sys/socket.h.
75479
75480 2006-01-17  Bruno Haible  <bruno@clisp.org>
75481
75482         * modules/ssize_t (Include): Add <sys/types.h>.
75483
75484 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
75485
75486         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
75487         it's not portable and it doesn't work with cross-compiles.
75488         Problem reported by Bruno Haible.  Fix missing-$ typo in
75489         'test "gl_cv_ignore_unused_libraries" ...' that prevented
75490         -zignore from being used with Sun's C compiler.
75491
75492 2006-01-12  Simon Josefsson  <jas@extundo.com>
75493
75494         * lib/base64.c: Fix warning, reported by Bruno Haible
75495         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
75496
75497 2006-01-12  Bruno Haible  <bruno@clisp.org>
75498
75499         * modules/ldd: New file.
75500         * build-aux/ldd.sh.in: New file.
75501         * MODULES.html.sh (Support for building libraries and executables): Add
75502         ldd.
75503
75504 2006-01-12  Bruno Haible  <bruno@clisp.org>
75505
75506         * m4/ldd.m4: New file.
75507
75508 2006-01-12  Bruno Haible  <bruno@clisp.org>
75509
75510         * gnulib-tool (func_import, func_create_testdir): Don't go into an
75511         endless loop while replacing $auxdir with build-aux.
75512
75513 2006-01-11  Simon Josefsson  <jas@extundo.com>
75514
75515         * lib/stdint_.h (SIZE_MAX): Add missing (.
75516
75517 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
75518
75519         Sync from coreutils.
75520         * lib/md5.c: Fix commentary typos.
75521         (alignof, UNALIGNED_P): No need for a GCC-specific version.
75522         * lib/md5.h (__attribute__): Remove; unused.
75523         * lib/sha1.c: Fix commentary to match md5 better.
75524         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
75525         so that we don't need to worry about alignment.  All uses changed.
75526         This merges the 2005-10-28 md5 change into sha1.
75527
75528 2006-01-11  Jim Meyering  <jim@meyering.net>
75529
75530         Sync from coreutils.
75531         * lib/md5.c (OP): Fix spacing.
75532
75533 2006-01-11  Bruno Haible  <bruno@clisp.org>
75534
75535         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75536         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
75537         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
75538
75539 2006-01-11  Bruno Haible  <bruno@clisp.org>
75540
75541         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75542         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
75543         the "early" section as well.
75544
75545 2006-01-11  Bruno Haible  <bruno@clisp.org>
75546
75547         Avoid "ar: no archive members specified" error on MacOS X.
75548         * gnulib-tool (func_modules_add_dummy): New function.
75549         (func_import, func_create_testdir): Invoke it.
75550
75551 2006-01-11  Bruno Haible  <bruno@clisp.org>
75552
75553         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
75554         with $auxdir in AC_CONFIG_FILES statements.
75555
75556 2006-01-11  Bruno Haible  <bruno@clisp.org>
75557
75558         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75559         Initialize also noinst_HEADERS to empty.
75560
75561 2006-01-11  Bruno Haible  <bruno@clisp.org>
75562
75563         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
75564         variables.
75565         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
75566         autoreconf.
75567
75568 2006-01-11  Bruno Haible  <bruno@clisp.org>
75569
75570         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
75571         overridable by the user.
75572         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75573
75574 2006-01-10  Simon Josefsson  <jas@extundo.com>
75575
75576         * modules/sys_socket: New file.
75577
75578 2006-01-10  Simon Josefsson  <jas@extundo.com>
75579
75580         * m4/sys_socket_h.m4: New file.
75581
75582 2006-01-10  Simon Josefsson  <jas@extundo.com>
75583
75584         * lib/socket_.h: New file.
75585
75586 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75587
75588         * modules/readutmp (Maintainer): Add myself.
75589
75590 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75591
75592         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
75593         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
75594         People who are still concerned with buggy memcmp implementations
75595         can invoke gl_FUNC_MEMCMP themselves.
75596
75597 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75598
75599         * lib/regex_internal.h (BITSET_WORD_BITS):
75600         Work around a bug in 64-bit PGC (before version 6.1-2), where the
75601         preprocessor mishandles large unsigned values as if they were signed.
75602         Problem reported by Claudio Fontana in
75603         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
75604
75605 2006-01-10  Jim Meyering  <jim@meyering.net>
75606
75607         Avoid the double-free (first in fts_read, second in fts_close) that
75608         would occur when an `active' directory is made inaccessible (e.g.,
75609         via chmod a-x) during a traversal.
75610         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75611         before returning.  Reproduce this failure by
75612         mkdir -p a/b; cd a; chmod a-x . b
75613         Reported by Stavros Passas.
75614
75615         Sync from coreutils.
75616         * lib/sha1.c: Tweak grammar in a comment.
75617
75618 2006-01-10  Jim Meyering  <jim@meyering.net>
75619
75620         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
75621         Patch by Joerg Sonnenberger.
75622
75623 2006-01-10  Bruno Haible  <bruno@clisp.org>
75624
75625         * modules/readutmp: Depend on module free.
75626         * modules/strtok_r: Depend on module restrict.
75627
75628 2006-01-10  Bruno Haible  <bruno@clisp.org>
75629
75630         * modules/gettext (configure.ac): Add an invocation of
75631         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
75632
75633 2006-01-10  Bruno Haible  <bruno@clisp.org>
75634
75635         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
75636         Reported by Werner Lemberg <wl@gnu.org>.
75637
75638 2006-01-10  Bruno Haible  <bruno@clisp.org>
75639
75640         * lib/localcharset.c: Update from GNU gettext.
75641
75642 2006-01-10  Bruno Haible  <bruno@clisp.org>
75643
75644         * lib/argp.h (__const): Remove macro. Use const instead.
75645         * lib/argp-fmtstream.h (__const): Likewise.
75646         * lib/glob_.h (__const): Remove macro.
75647         * lib/glob-libc.h: Use const instead of __const.
75648
75649 2006-01-10  Bruno Haible  <bruno@clisp.org>
75650
75651         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
75652         variable.
75653         Needed to avoid an automake error regarding the 'gettext' module.
75654
75655 2006-01-09  Simon Josefsson  <jas@extundo.com>
75656
75657         * modules/inet_ntop (Depends-on): Add restrict.
75658
75659 2006-01-09  Simon Josefsson  <jas@extundo.com>
75660
75661         * modules/gc-rijndael-tests (License): Put under LGPL.
75662
75663         * modules/gc-des-tests (License): Likewise.
75664
75665         * modules/gc-arcfour-tests (License): Likewise.
75666
75667         * modules/gc-arctwo-tests (License): Likewise.
75668
75669         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
75670
75671         * modules/gc-hmac-sha1-tests (Files): Likewise.
75672
75673         * modules/gc-hmac-md5-tests (License): Likewise.
75674
75675         * modules/gc-sha1-tests (License): Likewise.
75676
75677         * modules/gc-md5-tests (License): Likewise.
75678
75679         * modules/gc-md4-tests (License): Likewise.
75680
75681         * modules/gc-md2-tests (License): Likewise.
75682
75683         * modules/gc-tests (License): Likewise.
75684
75685         * modules/des-tests (License): Likewise.
75686
75687         * modules/md4-tests (License): Likewise.
75688
75689         * modules/md2-tests (License): Likewise.
75690
75691 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75692
75693         Sync from coreutils:
75694
75695         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
75696         * modules/lib-ignore: New file.
75697         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
75698         chdir-safer.m4, lchmod.m4.
75699         * modules/openat: Add mkdirat.c, openat-priv.h.
75700
75701 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75702
75703         Sync from coreutils.
75704         * m4/lib-ignore.m4: New file.
75705         * m4/lchmod.m4: New file.
75706
75707 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75708
75709         Sync from coreutils.
75710         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
75711         for write access: POSIX says that must fail.
75712         * lib/fts.c (diropen): Likewise.
75713         * lib/save-cwd.c (save_cwd): Likewise.
75714         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
75715         well, for minor improvements on hosts that lack O_DIRECTORY.
75716         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
75717         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
75718         Fall back on chown if open failed with EACCES.
75719
75720         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
75721         Report an error at compile-time if only a 1-second nominal clock
75722         resolution is found.
75723
75724         * lib/lchmod.h: New file.
75725         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
75726         (make_dir_parents): Use lchown rather than chown, and
75727         lchmod rather than chmod.
75728
75729         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
75730         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
75731         "proc" reported by n0dalus.
75732
75733         * lib/mountlist.c: Include <limits.h>.
75734         (dev_from_mount_options)
75735         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
75736         New function.  It no longer assumes "dev=" has the System V meaning
75737         on Linux (since it doesn't).  It also parses "dev=" more carefully.
75738         (read_file_system_list)
75739         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
75740         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
75741         dev= in that case.
75742
75743         * lib/posixtm.h (PDS_PRE_2000): New macro.
75744         * lib/posixtm.c (year): Arg is now syntax_bits rather than
75745         allow_century.  All usages changed.  Reject dates outside the range
75746         1969-1999 if PDS_PRE_2000 is used.
75747
75748 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75749
75750         Sync from coreutils.
75751         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
75752         (Time of day items): Mention the possibility of leap seconds.
75753         Problem reported by Dr. David Alan Gilbert.
75754
75755 2006-01-09  Jim Meyering  <jim@meyering.net>
75756
75757         Sync from coreutils.
75758
75759         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
75760
75761         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
75762
75763         * lib/modechange.c (mode_compile): Reject an invalid mode string
75764         that starts with an octal digit.  From Andreas Gruenbacher.
75765
75766         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
75767         and dup to open_safer and dup_safer, respectively.
75768         (openat_permissive): Fix typo in comment.
75769
75770         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
75771         "gettext.h"; either no longer needed or are guaranteed by openat.h.
75772         (_): Remove; no longer needed.
75773         (openat): Renamed from rpl_openat; no need for rpl_openat
75774         since openat.h renames openat for us.
75775         Replace most of the body with a call to openat_permissive,
75776         to avoid duplicate code.
75777         Port to (probably hypothetical) environments were mode_t is
75778         wider than int.
75779         (openat_permissive): Require mode arg, so that we can check
75780         types better.  Put it just after flags.  Change cwd failure
75781         indicator from pointer-to-bool to pointer-to-errno-value.
75782         All callers changed.
75783         Invoke openat_save_fail and/or openat_restore_fail if
75784         cwd_errno is null, so that openat can call us.
75785         (openat_permissive, fdopendir, fstatat, unlinkat):
75786         Simplify errno handling to avoid some duplicate code,
75787         as it's OK to set errno on success.
75788         * lib/openat.h: Revamp code so that function macros depend on
75789         __OPENAT_PREFIX only, not also on AT_FDCWD.
75790         (openat_ro): Remove.  Caller changed to use openat_permissive.
75791         (openat_permissive): Now a macro, if not a function.
75792         (openat_restore_fail, openat_save_fail): Now always functions,
75793         since mkdirat needs them even if __OPENAT_PREFIX is defined.
75794
75795         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
75796         and openat.c.
75797         * lib/mkdirat.c: Include openat-priv.h.
75798         Remove definitions of macros defined therein.
75799         * lib/openat.c: Likewise.
75800
75801         * lib/mkdirat.c (mkdirat): New file and function.
75802         * lib/openat.h (mkdirat): Declare.
75803
75804         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
75805
75806         * lib/openat.h (openat_permissive): Declare.
75807         (openat_ro): Define.
75808
75809         * lib/openat.c (EXPECTED_ERRNO): New macro.
75810         (openat_permissive): New function -- used in remove.c rewrite.
75811         (all functions): Set errno just before returning, only if there
75812         was an actual failure.
75813         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
75814
75815         Emulate openat-family functions using Linux's procfs, if possible.
75816         Idea and some code based on Ulrich Drepper's glibc changes.
75817
75818         * lib/openat.c: (BUILD_PROC_NAME): New macro.
75819         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
75820         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
75821         before falling back on save_cwd and restore_cwd.
75822         (fdopendir, fstatat, unlinkat): Likewise.
75823
75824         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
75825         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
75826
75827         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
75828         as second argument to va_arg.  Otherwise, some versions of gcc
75829         warn that `if this code is reached, the program will abort'.
75830
75831 2006-01-09  Jim Meyering  <jim@meyering.net>
75832
75833         Sync from coreutils.
75834         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
75835         Require openat-priv.h.
75836
75837 2006-01-09  Bruno Haible  <bruno@clisp.org>
75838
75839         * modules/strnlen (Include): Use strnlen.h.
75840
75841 2006-01-09  Bruno Haible  <bruno@clisp.org>
75842
75843         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
75844
75845 2006-01-09  Bruno Haible  <bruno@clisp.org>
75846
75847         * lib/sysexit_.h (EX_OK): New macro.
75848         Suggested by Martin Lambers <marlam@marlam.de>.
75849
75850 2006-01-09  Bruno Haible  <bruno@clisp.org>
75851
75852         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
75853         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
75854
75855 2006-01-09  Bruno Haible  <bruno@clisp.org>
75856
75857         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
75858         numbers.
75859
75860 2006-01-09  Bruno Haible  <bruno@clisp.org>
75861
75862         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
75863         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
75864         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
75865         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
75866
75867 2006-01-09  Bruno Haible  <bruno@clisp.org>
75868
75869         * build-aux/javacomp.sh.in: New file, moved from lib/.
75870         * modules/javacomp-script (Files): Update.
75871         (configure.ac): Add AC_CONFIG_FILES invocation.
75872         (EXTRA_DIST): Remove variable.
75873
75874         * build-aux/javaexec.sh.in: New file, moved from lib/.
75875         * modules/javaexec (Files): Update.
75876         (configure.ac): Add AC_CONFIG_FILES invocation.
75877         (EXTRA_DIST): Remove javaexec.sh.in.
75878
75879         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
75880         * modules/csharpcomp-script (Files): Update.
75881         (configure.ac): Add AC_CONFIG_FILES invocation.
75882         (EXTRA_DIST): Remove variable.
75883
75884         * build-aux/csharpexec.sh.in: New file, moved from lib/.
75885         * modules/csharpexec (Files): Update.
75886         (configure.ac): Add AC_CONFIG_FILES invocation.
75887         (EXTRA_DIST): Remove csharpexec.sh.in.
75888
75889 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75890
75891         Sync from coreutils.
75892
75893         Add POSIX ACL support
75894         * lib/acl.h (copy_acl, set_acl): Add declarations.
75895         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
75896         systems other than Linux.
75897         (chmod_or_fchmod): New function: use fchmod when possible,
75898         and chmod otherwise.
75899         (file_has_acl): Add a POSIX ACL implementation, with a
75900         Linux-specific subcase.
75901         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
75902         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
75903         acls are unsupported.
75904         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
75905         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
75906         are unsupported.
75907
75908 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75909
75910         Sync from coreutils.
75911         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
75912
75913 2006-01-07  Bruno Haible  <bruno@clisp.org>
75914
75915         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
75916         gl_EARLY.
75917
75918 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75919
75920         * lib/strftime.c (tzname): Don't declare if it is already #defined.
75921         Problem reported for Mingw by Mark Junker.
75922
75923 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75924
75925         * README: Gnulib normally doesn't generate a tarball.
75926
75927 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
75928
75929         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
75930         long int, not int, for nanosecond counts, so that people who are
75931         used to POSIX struct timespec won't be surprised.  Reported by Jim
75932         Meyering.
75933
75934 2005-12-28  Bruno Haible  <bruno@clisp.org>
75935
75936         * build-aux/config.rpath: Update from GNU gettext.
75937
75938 2005-12-16  Jim Meyering  <jim@meyering.net>
75939
75940         * modules/fprintftime: New module.
75941         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
75942
75943 2005-12-16  Jim Meyering  <jim@meyering.net>
75944
75945         * m4/fprintftime.m4: New file.
75946
75947 2005-12-16  Jim Meyering  <jim@meyering.net>
75948
75949         * lib/fprintftime.c, lib/fprintftime.h: New files.
75950
75951 2005-12-15  Simon Josefsson  <jas@extundo.com>
75952
75953         * modules/socklen (configure.ac): Fix M4 macro name, to align with
75954         new m4/socklen.m4.
75955
75956 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75957
75958         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
75959         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
75960
75961 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75962
75963         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
75964         * lib/argp-help.c (fill_in_uparams): Check if the constructed
75965         struct uparams is valid. Fall back to the default values if it is
75966         not.
75967
75968 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75969
75970         * modules/argp (Files): Add argp-pin.c
75971         (Depends-on): dirname
75972         (lib_SOURCES): Add argp-pin.c
75973
75974 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75975
75976         * m4/argp.m4:  Check if program_invocation_name and
75977         program_invocation_short_name are declared and define appropriate
75978         macros if they are not.
75979
75980 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75981
75982         * lib/argp-help.c (__argp_base_name): New function
75983         (__argp_short_program_name): Rewrite using __argp_base_name
75984         * lib/argp-namefrob.h: Define program_invocation_name and
75985         program_invocation_short_name if requested
75986         (__argp_base_name): Add prototype
75987         * lib/argp-parse.c (argp_def): Use gettext wrappers
75988         (argp_default_parser): Use __argp_base_name
75989         * lib/argp-pin.c: New file. Defines program_invocation_name and
75990         program_invocation_short_name on systems that lack them.
75991
75992 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75993
75994         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
75995         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75996         porting problem reported by Georg Schwarz in
75997         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75998
75999 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
76002         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76003         porting problem reported by Georg Schwarz in
76004         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76005
76006 2005-12-05  Bruno Haible  <bruno@clisp.org>
76007
76008         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
76009         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
76010         Reported by Mark Junker <mjscod@gmx.de>.
76011
76012 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
76013
76014         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
76015         Use implementation from Albert Chin, with some
76016         comments/corrections by Stepan Kasal and myself.
76017
76018 2005-12-02  Bruno Haible  <bruno@clisp.org>
76019
76020         * gnulib-tool (func_import): Accept GPLed build tool modules when
76021         --lgpl is given.
76022         * modules/csharpcomp-script: New file.
76023         * modules/csharpcomp: Depend on it.
76024         * modules/javacomp-script: New file.
76025         * modules/javacomp: Depend on it.
76026         Suggested by Simon Josefsson.
76027
76028 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
76029
76030         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
76031         statement, to work around an HP-UX 10.20 compiler bug reported by
76032         Peter O'Gorman.
76033
76034 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76035
76036         * modules/savedir (Depends-on): Add openat.
76037
76038 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76039
76040         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
76041         (uintmax_t) [defined uintmax_t]: Do not declare.
76042         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
76043         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
76044         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
76045         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
76046         sake of portability to weird hosts that C allows (though we don't
76047         know of any practical examples).
76048
76049         * lib/savedir.h (fdsavedir): New decl.
76050         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
76051         contains most of the former guts of savedir.
76052         (savedir): Use savedirstream.
76053         Include "openat.h".
76054
76055 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76056
76057         * modules/obstack (Files): Add m4/ulonglong.m4.
76058         Problem reported by Davide Angelocola.
76059
76060 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
76061
76062         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
76063         coreutils no longer futzes with rounding modes.
76064
76065 2005-11-14  Jim Meyering  <jim@meyering.net>
76066
76067         * lib/mkstemp-safer.c: Include <config.h>, required for possible
76068         replacement of mkstemp.
76069
76070 2005-11-10  Simon Josefsson  <jas@extundo.com>
76071
76072         * lib/readline.c: Remove EOL.
76073
76074 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76075
76076         * modules/gethrxtime (Depends-on): Add gettime.
76077
76078 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76079
76080         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
76081         or gettimeofday; no longer needed.
76082
76083 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76084
76085         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
76086         time business.
76087         (gethrxtime) [! (HAVE_NANOUPTIME
76088         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
76089         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
76090         our own approximation.
76091
76092 2005-11-08  Eric Blake  <ebb9@byu.net>
76093
76094         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76095
76096 2005-11-08  Eric Blake  <ebb9@byu.net>
76097
76098         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76099
76100 2005-11-04  Bruno Haible  <bruno@clisp.org>
76101
76102         * gnulib-tool: Implement --update mode.
76103
76104 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76105
76106         Fix porting problem reported by Theodoros V. Kalamatianos.
76107         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
76108         Don't assume that futimes failing means we must fail.
76109
76110 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76111
76112         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
76113         variables to suggest the intended function of the PATH_MAX check.
76114
76115 2005-10-30  Kean Johnston  <jkj@sco.com>
76116
76117         Trivial changes to support SCO systems.
76118         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
76119         as PATH_MAX.
76120         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
76121         where __ptr is null when no I/O is pending.
76122
76123 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76124
76125         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
76126         leave errno alone.  Problem reported by Dmitry V. Levin.
76127
76128 2005-10-28  Simon Josefsson  <jas@extundo.com>
76129
76130         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
76131         Test more.
76132
76133         * tests/test-gc-md2.c, tests/test-md2.c: New files.
76134
76135         * modules/md2, modules/md2-tests: New files.
76136
76137 2005-10-28  Simon Josefsson  <jas@extundo.com>
76138
76139         * m4/inet_ntop.m4: More tests.
76140
76141         * m4/gc-md2.m4, md2.m4: New file.
76142
76143 2005-10-28  Simon Josefsson  <jas@extundo.com>
76144
76145         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
76146         "restrict" keywords, as per POSIX.  Protect the function
76147         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
76148         Don't use K&R prototypes.  Check the sprintf return values.
76149         Re-define EAFNOSUPPORT if not present.  Indent.
76150
76151         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
76152         suggested by Bruno Haible <bruno@clisp.org>.
76153
76154         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
76155
76156         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
76157
76158         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
76159         libgcrypt).
76160
76161         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
76162
76163         * lib/md2.h, lib/md2.c: New files.
76164
76165 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
76166
76167         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
76168         errno alone.  Problem reported by Frederic Jolliton.
76169
76170 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76171
76172         * modules/verify (License): Change from GPL to LGPL.  This is a
76173         tiny module and there are apparently near-equivalents that are
76174         under the BSD license.
76175
76176 2005-10-24  Simon Josefsson  <jas@extundo.com>
76177
76178         * modules/sha1: Relicense to LGPL.
76179
76180 2005-10-24  Simon Josefsson  <jas@extundo.com>
76181
76182         * lib/md4.h: Shrink buffer size, now that we changed the type.
76183
76184 2005-10-23  Simon Josefsson  <jas@extundo.com>
76185
76186         * gnulib-tool (func_import): Fix --tests-base.
76187
76188 2005-10-22  Simon Josefsson  <jas@extundo.com>
76189
76190         * modules/arcfour (Depends-on): Need stdint.
76191
76192 2005-10-22  Simon Josefsson  <jas@extundo.com>
76193
76194         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
76195         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
76196
76197 2005-10-22  Simon Josefsson  <jas@extundo.com>
76198
76199         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
76200         suggested by Bruno Haible <bruno@clisp.org>.
76201
76202 2005-10-22  Simon Josefsson  <jas@extundo.com>
76203
76204         * lib/crc.h: Include stddef.h, for size_t.
76205
76206 2005-10-22  Simon Josefsson  <jas@extundo.com>
76207
76208         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
76209         arcfour_context struct (simplify test vector testing in GNU
76210         Shishi).
76211
76212 2005-10-21  Simon Josefsson  <jas@extundo.com>
76213
76214         * modules/des, modules/des-tests: New files.
76215
76216         * modules/gc-des, modules/gc-des-tests: New files.
76217
76218         * tests/test-des.c, tests/test-gc-des.c: New file.
76219
76220 2005-10-21  Simon Josefsson  <jas@extundo.com>
76221
76222         * modules/arctwo, modules/arctwo-tests: New files.
76223
76224         * tests/test-arctwo.c: New file.
76225
76226         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
76227
76228         * tests/test-gc-arctwo.c: New file.
76229
76230 2005-10-21  Simon Josefsson  <jas@extundo.com>
76231
76232         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
76233         Bruno Haible <bruno@clisp.org>.
76234
76235         * m4/gc-des.m4: New file.
76236
76237 2005-10-21  Simon Josefsson  <jas@extundo.com>
76238
76239         * m4/arctwo.m4: New file.
76240
76241         * m4/gc-arctwo.m4: New file.
76242
76243 2005-10-21  Simon Josefsson  <jas@extundo.com>
76244
76245         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
76246         block.
76247
76248 2005-10-21  Simon Josefsson  <jas@extundo.com>
76249
76250         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
76251         <bruno@clisp.org>.
76252
76253         * lib/hmac-sha1.c (hmac_sha1): Likewise.
76254
76255         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
76256         Bruno Haible <bruno@clisp.org>.
76257
76258         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
76259         <bruno@clisp.org>.
76260
76261 2005-10-21  Simon Josefsson  <jas@extundo.com>
76262
76263         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
76264
76265 2005-10-21  Simon Josefsson  <jas@extundo.com>
76266
76267         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
76268
76269 2005-10-21  Simon Josefsson  <jas@extundo.com>
76270
76271         * lib/des.h, lib/des.c: New files.
76272
76273         * lib/gc-gnulib.c: Support DES.c
76274
76275 2005-10-21  Simon Josefsson  <jas@extundo.com>
76276
76277         * lib/arctwo.h, lib/arctwo.c: New files.
76278
76279         * lib/gc-gnulib.c: Support ARCTWO.
76280
76281 2005-10-21  Simon Josefsson  <jas@extundo.com>
76282
76283         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
76284         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76285
76286 2005-10-21  Simon Josefsson  <jas@extundo.com>
76287
76288         * gnulib-tool (func_import, func_create_testdir): Define automake
76289         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
76290         Makefile.am snippet),
76291         suggested by Bruno Haible <bruno@clisp.org>.
76292
76293         * modules/gc (Makefile.am): Use it.
76294
76295 2005-10-21  Bruno Haible  <bruno@clisp.org>
76296
76297         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
76298         patch.
76299
76300 2005-10-19  Simon Josefsson  <jas@extundo.com>
76301
76302         * tests/test-gc-rijndael.c: New file.
76303
76304         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
76305
76306 2005-10-19  Simon Josefsson  <jas@extundo.com>
76307
76308         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
76309         interface too.
76310
76311 2005-10-19  Simon Josefsson  <jas@extundo.com>
76312
76313         * tests/test-gc-arcfour.c: New file.
76314
76315         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
76316
76317 2005-10-19  Simon Josefsson  <jas@extundo.com>
76318
76319         * modules/gc-md4, modules/gc-md4-tests: New file.
76320
76321         * tests/test-gc-md4.c: New file.
76322
76323 2005-10-19  Simon Josefsson  <jas@extundo.com>
76324
76325         * m4/gc-md4.m4: New file.
76326
76327 2005-10-19  Simon Josefsson  <jas@extundo.com>
76328
76329         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
76330         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
76331         <kasal@ucw.cz>.
76332
76333 2005-10-19  Simon Josefsson  <jas@extundo.com>
76334
76335         * m4/gc-arcfour.m4: New file.
76336
76337         * m4/gc-rijndael.m4: New file.
76338
76339 2005-10-19  Simon Josefsson  <jas@extundo.com>
76340
76341         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
76342
76343 2005-10-19  Simon Josefsson  <jas@extundo.com>
76344
76345         * lib/gc-gnulib.c: Support ARCFOUR.
76346
76347 2005-10-19  Simon Josefsson  <jas@extundo.com>
76348
76349         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
76350         support.
76351
76352         * lib/gc.h: Add ECB enum type.
76353
76354         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
76355
76356 2005-10-18  Simon Josefsson  <jas@extundo.com>
76357
76358         * tests/test-md5.c: New file.
76359
76360         * modules/md5-tests: New file.
76361
76362 2005-10-18  Simon Josefsson  <jas@extundo.com>
76363
76364         * tests/test-md4.c: New file.
76365
76366         * modules/md4, modules/md4-tests: New files.
76367
76368 2005-10-18  Simon Josefsson  <jas@extundo.com>
76369
76370         * m4/md4.m4: New file.
76371
76372 2005-10-18  Simon Josefsson  <jas@extundo.com>
76373
76374         * lib/md4.h, lib/md4.c: New files, based on md5.?.
76375
76376 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
76377
76378         * gnulib-tool (func_create_testdir): Omit the second check whether
76379         BUILT_SOURCES in nonempty.
76380
76381 2005-10-17  Simon Josefsson  <jas@extundo.com>
76382
76383         * tests/test-rijndael.c: New file.
76384
76385 2005-10-17  Simon Josefsson  <jas@extundo.com>
76386
76387         * modules/sha1: Depend on stdint instead of md5.
76388
76389         * modules/md5: Depend on stdint, remove uint32_t.
76390
76391 2005-10-17  Simon Josefsson  <jas@extundo.com>
76392
76393         * modules/gc-sha1-tests: New file.
76394
76395         * tests/test-gc-sha1.c: New file.
76396
76397 2005-10-17  Simon Josefsson  <jas@extundo.com>
76398
76399         * m4/md5.m4: Remove call to uint32_t.m4.
76400
76401 2005-10-17  Simon Josefsson  <jas@extundo.com>
76402
76403         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
76404
76405         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
76406         md5.h.
76407
76408         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
76409
76410         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
76411
76412 2005-10-17  Simon Josefsson  <jas@extundo.com>
76413
76414         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
76415
76416 2005-10-17  Simon Josefsson  <jas@extundo.com>
76417
76418         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
76419
76420 2005-10-17  Simon Josefsson  <jas@extundo.com>
76421
76422         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
76423
76424         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
76425
76426 2005-10-17  Bruno Haible  <bruno@clisp.org>
76427
76428         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
76429         that it can also be used in a test.
76430
76431 2005-10-16  Bruno Haible  <bruno@clisp.org>
76432
76433         * gnulib-tool (func_emit_tests_Makefile_am): Also define
76434         TESTS_ENVIRONMENT, so that individual tests can augment it.
76435
76436         * gnulib-tool (func_create_testdir): Use an intermediate target for
76437         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
76438         macros, like $(ALLOCA_H), which cannot be passed through the command
76439         line.
76440
76441 2005-10-15  Simon Josefsson  <jas@extundo.com>
76442
76443         * modules/rijndael-tests: New file.
76444
76445         * modules/rijndael: New file.
76446
76447 2005-10-15  Simon Josefsson  <jas@extundo.com>
76448
76449         * m4/rijndael.m4: New file.
76450
76451 2005-10-15  Simon Josefsson  <jas@extundo.com>
76452
76453         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
76454
76455         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
76456
76457 2005-10-14  Simon Josefsson  <jas@extundo.com>
76458
76459         * tests/test-arcfour.c: New file.
76460
76461         * modules/arcfour, modules/arcfour-tests: New files.
76462
76463 2005-10-14  Simon Josefsson  <jas@extundo.com>
76464
76465         * m4/arcfour.m4: New file.
76466
76467 2005-10-14  Simon Josefsson  <jas@extundo.com>
76468
76469         * lib/arcfour.h, lib/arcfour.c: New files.
76470
76471 2005-10-14  Roland McGrath  <roland@redhat.com>
76472
76473         Import from libc.  [BZ #1331]
76474         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
76475         macro argument.
76476         Reported by Matej Vela <vela@debian.org>.
76477
76478 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76479
76480         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
76481         include <wchar.h>; no longer needed.
76482
76483 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76484
76485         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
76486
76487 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
76488         and  Ulrich Drepper  <drepper@redhat.com>
76489
76490         Import from libc.
76491         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
76492         instead of inline stream orientation test and two separate
76493         function calls.  Pay no attention to USE_IN_LIBIO.
76494
76495 2005-10-13  Simon Josefsson  <jas@extundo.com>
76496
76497         * modules/gc-hmac-md5-tests: New file.
76498
76499         * tests/test-gc-hmac-sha1.c: New file.
76500
76501         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
76502
76503         * modules/gc-hmac-md5-tests: New file.
76504
76505         * tests/test-gc-md5.c: New file.
76506
76507         * modules/gc-md5-tests: New file.
76508
76509 2005-10-13  Simon Josefsson  <jas@extundo.com>
76510
76511         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
76512         Move memory allocation outside of loop.
76513
76514 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
76515
76516         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
76517         intermediate directory is in a read-only file system.  Problem
76518         reported by Eric Blake.
76519
76520 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
76521
76522         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
76523
76524 2005-10-12  Simon Josefsson  <jas@extundo.com>
76525
76526         * tests/test-hmac-sha1.c: New file.
76527
76528         * modules/hmac-sha1-tests: New file.
76529
76530         * modules/hmac-sha1: New file.
76531
76532 2005-10-12  Simon Josefsson  <jas@extundo.com>
76533
76534         * modules/gc-sha1: New file.
76535
76536 2005-10-12  Simon Josefsson  <jas@extundo.com>
76537
76538         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
76539
76540         * tests/test-gc-pbkdf2-sha1.c: New file.
76541
76542 2005-10-12  Simon Josefsson  <jas@extundo.com>
76543
76544         * modules/gc-md5, modules/gc-hmac-md5: New files.
76545
76546         * modules/gc (Files): Remove md5, memxor and hmac files.
76547
76548 2005-10-12  Simon Josefsson  <jas@extundo.com>
76549
76550         * m4/gc-pbkdf2-sha1.m4: New file.
76551
76552         * m4/gc-hmac-sha1.m4: New file.
76553
76554         * m4/gc-sha1: New file.
76555
76556         * m4/hmac-sha1.m4: New file.
76557
76558 2005-10-12  Simon Josefsson  <jas@extundo.com>
76559
76560         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
76561
76562         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
76563
76564 2005-10-12  Simon Josefsson  <jas@extundo.com>
76565
76566         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
76567         suggested by Bruno Haible <bruno@clisp.org>.
76568
76569 2005-10-12  Simon Josefsson  <jas@extundo.com>
76570
76571         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
76572
76573 2005-10-12  Simon Josefsson  <jas@extundo.com>
76574
76575         * lib/gc-pbkdf2-sha1.c: New file.
76576
76577         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
76578
76579 2005-10-12  Simon Josefsson  <jas@extundo.com>
76580
76581         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
76582
76583         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
76584
76585 2005-10-12  Simon Josefsson  <jas@extundo.com>
76586
76587         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
76588         GC_USE_HMAC_MD5, respectively.
76589
76590         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
76591         (gc_md5): Fix typo.
76592
76593         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
76594
76595         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
76596
76597         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
76598
76599 2005-10-12  Bruno Haible  <bruno@clisp.org>
76600
76601         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
76602         Reported by Stepan Kasal <kasal@ucw.cz>.
76603
76604 2005-10-11  Simon Josefsson  <jas@extundo.com>
76605
76606         * tests/test-crc.c: New file.
76607
76608         * modules/crc, modules/crc-tests: New files.
76609
76610 2005-10-11  Simon Josefsson  <jas@extundo.com>
76611
76612         * m4/crc.m4: New file.
76613
76614 2005-10-11  Simon Josefsson  <jas@extundo.com>
76615
76616         * lib/gc.h: Add gc_hash and gc_hash_buffer.
76617
76618         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
76619
76620         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
76621
76622 2005-10-11  Simon Josefsson  <jas@extundo.com>
76623
76624         * lib/crc.h, lib/crc.c: New files.
76625
76626         * lib/gc.h (gc_hash_buffer): Add doc.
76627
76628 2005-10-11  Bruno Haible  <bruno@clisp.org>
76629
76630         * modules/c-strcasestr: New file.
76631         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
76632
76633 2005-10-11  Bruno Haible  <bruno@clisp.org>
76634
76635         * modules/c-strcase: New file.
76636         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
76637
76638 2005-10-11  Bruno Haible  <bruno@clisp.org>
76639
76640         * lib/strcasecmp.c: Include limits.h.
76641         (strcasecmp): Avoid integer overflow on exotic platforms.
76642         * lib/strncasecmp.c: Include limits.h.
76643         (strncasecmp): Avoid integer overflow on exotic platforms.
76644         Reported by Paul Eggert.
76645
76646 2005-10-11  Bruno Haible  <bruno@clisp.org>
76647
76648         * lib/c-strcasestr.h: New file, from GNU gettext.
76649         * lib/c-strcasestr.c: New file, from GNU gettext.
76650
76651 2005-10-11  Bruno Haible  <bruno@clisp.org>
76652
76653         * lib/c-strcase.h: New file, from GNU gettext.
76654         * lib/c-strcasecmp.c: New file, from GNU gettext.
76655         * lib/c-strncasecmp.c: New file, from GNU gettext.
76656
76657 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76658
76659         * modules/mempcpy (License): GPL -> LGPL.
76660         * modules/strchrnul (License): Likewise.
76661         * modules/sysexits (License): Likewise.
76662
76663 2005-10-08  Simon Josefsson  <jas@extundo.com>
76664
76665         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
76666
76667 2005-10-07  Simon Josefsson  <jas@extundo.com>
76668
76669         * m4/memxor.m4: Remove gl_C_RESTRICT call.
76670
76671 2005-10-06  Simon Josefsson  <jas@extundo.com>
76672
76673         * tests/test-hmac-md5.c: New file.
76674
76675         * modules/hmac-md5-tests: New file.
76676
76677         * modules/hmac-md5: New file.
76678
76679 2005-10-06  Simon Josefsson  <jas@extundo.com>
76680
76681         * m4/hmac-md5.m4: New file.
76682
76683         * m4/memxor.m4: Require gl_C_RESTRICT.
76684
76685 2005-10-06  Simon Josefsson  <jas@extundo.com>
76686
76687         * lib/memxor.c (memxor): Avoid casts and warnings.
76688
76689 2005-10-06  Simon Josefsson  <jas@extundo.com>
76690
76691         * lib/hmac-md5.c: New file.
76692
76693         * lib/hmac.h: New file.
76694
76695 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76696
76697         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
76698         promotes to int, not unsigned int, to catch the AIX 5.3
76699         compiler bug.
76700
76701 2005-10-05  Simon Josefsson  <jas@extundo.com>
76702
76703         * modules/memxor: New file.
76704
76705         * modules/iconv (Files): Move config.rpath to havelib, it is used
76706         there.
76707
76708         * modules/havelib (Files): Add config.rpath.
76709
76710 2005-10-05  Simon Josefsson  <jas@extundo.com>
76711
76712         * m4/memxor.m4: New file.
76713
76714 2005-10-05  Simon Josefsson  <jas@extundo.com>
76715
76716         * lib/memxor.c (memxor): Fix compiler error.
76717
76718         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
76719         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
76720
76721         * lib/memxor.h, lib/memxor.c: New files.
76722
76723         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
76724         we assume all systems have it, suggested by Jim Meyering
76725         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
76726         any systems lack sys/socket.h; mingw32 is known to lack it, but we
76727         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
76728         same reasons.
76729
76730 2005-10-05  Simon Josefsson  <jas@extundo.com>
76731
76732         * config/srclist.txt: Add glibc bug 1423 for md5.h.
76733
76734 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76735
76736         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
76737         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
76738         needed, since the source code now assumes these .h files.
76739
76740 2005-10-05  Derek Price  <derek@ximbiot.com>
76741
76742         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
76743
76744 2005-10-05  Bruno Haible  <bruno@clisp.org>
76745
76746         * modules/stdint (License): Change to LGPL.
76747
76748 2005-10-04  Simon Josefsson  <jas@extundo.com>
76749
76750         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
76751         D. Baushke" <mdb@gnu.org>.
76752
76753 2005-10-04  Bruno Haible  <bruno@clisp.org>
76754
76755         * lib/verify.h (verify_true): Provide alternative definition for C++.
76756
76757 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
76758
76759         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
76760         (SSIZE_MAX): New macro, if not already defined.
76761         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
76762         than 2 GiB.
76763
76764 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76765
76766         Sync from coreutils.
76767         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
76768         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
76769         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
76770         ULLONG_MAX doesn't work with 2.7.2.1.
76771
76772 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76773
76774         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
76775         From Ben Pfaff.
76776
76777         * modules/exclude (Depends-on): Depend on verify.
76778         * modules/strtoimax (Depends-on): Likewise.
76779         * modules/utimecmp (Depends-on): Likewise.
76780
76781 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76782
76783         * lib/exclude.c: Include verify.h.
76784         (verify): Remove.  All callers changed to use verify.h's version.
76785         * lib/strtoimax.c: Likewise.
76786         * lib/utimecmp.c: Likewis.e
76787
76788         Sync from coreutils.
76789         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
76790         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
76791         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
76792         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
76793         bother returning ENOSYS if settimeofday or stime fails; just let
76794         them return whatever errno they want to return.
76795         * lib/utimens.c: Include unistd.h, for dup2.
76796         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
76797         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
76798
76799 2005-10-02  Jim Meyering  <jim@meyering.net>
76800
76801         Sync from coreutils.
76802         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
76803         from glibc-2.2.5 that fails for read-only files.
76804
76805 2005-10-02  Jim Meyering  <jim@meyering.net>
76806
76807         Sync from coreutils.
76808         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
76809         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
76810         `#if HAVE_CONFIG_H'.
76811         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
76812         Remove AT_FDCWD test.
76813         Do not consume the fd unless successful.
76814         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
76815         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
76816         block, so that we don't even try to compile it if settimeofday is
76817         available.  This works around a compilation failure on OSF1 V5.1,
76818         due to stime requiring a `long int*' while tv_sec is `int'.
76819
76820 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
76821
76822         Sync from coreutils.
76823         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
76824         against `yes', rather than just testing for nonempty.
76825
76826 2005-10-01  Simon Josefsson  <jas@extundo.com>
76827
76828         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
76829         and Darwin.
76830
76831         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
76832         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
76833         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
76834         freeaddrinfo and gai_strerror are declared by the POSIX headers.
76835         Check if struct addrinfo is declared.
76836
76837 2005-10-01  Simon Josefsson  <jas@extundo.com>
76838
76839         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
76840         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
76841         AI_* and EAI_* definitions.  Protect function declarations.
76842
76843 2005-10-01  Jim Meyering  <jim@meyering.net>
76844
76845         Sync from coreutils.
76846
76847         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
76848         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
76849         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
76850         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76851         in the inet and nsl libraries.  Required on Solaris 5.7.
76852
76853 2005-10-01  Jim Meyering  <jim@meyering.net>
76854
76855         Sync from coreutils.
76856         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76857         in the inet and nsl libraries.  Required on Solaris 5.7.
76858
76859 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
76860
76861         * lib/getdelim.c (getdelim): Remove unused variables.
76862
76863 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76864
76865         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
76866         so that the code works even with ancient cpp.  Portability problem
76867         with GCC 2.7.2.1 reported by Thomas M.Ott.
76868
76869 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76870
76871         * modules/regex (Depends-on): Add strcase.
76872
76873         * modules/gethostname (Licence): Change from GPL to LGPL, since
76874         gethostname.c is a trivial implementation of a standard library
76875         function.
76876         * modules/poll (License): Change from GPL to LGPL, since it's
76877         derived from LGPL code.
76878
76879 2005-09-27  Jim Meyering  <jim@meyering.net>
76880
76881         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
76882         HAVE_CONFIG_H.
76883
76884         * lib/intprops.h (signed_type_or_expr__): Define.
76885         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
76886         for unsigned types.
76887
76888 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76889
76890         * lib/verify.h (verify_expr): Remove, replacing with:
76891         (verify_true): New macro that returns true instead of void.
76892         (verify_type__): Remove.
76893         (verify): Use verify_true rather than verify_type__.
76894
76895 2005-09-26  Bruno Haible  <bruno@clisp.org>
76896
76897         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
76898         is necessary.
76899         (lib_SOURCES): Remove mbchar.c.
76900         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
76901         (Files): Add m4/mbrtowc.m4.
76902         * modules/mbiter: Likewise.
76903         * modules/mbuiter: Likewise.
76904
76905 2005-09-26  Bruno Haible  <bruno@clisp.org>
76906
76907         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
76908         compile mbchar.c if they are not both present.
76909         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
76910         * m4/mbiter.m4 (gl_MBITER): Likewise.
76911         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
76912         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
76913         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
76914
76915 2005-09-25  Jim Meyering  <jim@meyering.net>
76916
76917         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
76918         also uses socklen_t.
76919
76920 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
76921
76922         * lib/utimens.c (ENOSYS): Define if not already defined.
76923         (futimens): Support having a null PATH if the file descriptor
76924         is nonnegative.
76925
76926         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
76927         Remove.
76928         (__attribute): Define to empty unless GCC 3.1 or later.
76929         This works around a core dump on OpenBSD 3.4, which has GCC
76930         2.95.3, which dumps core when given __attribute__(()).  It also
76931         simplifies other tests, since we really don't want to bother with
76932         worrying about which ancient version of GCC supported what.
76933         Original problem reported by Yoann Vandoorselaere, with part of
76934         the fix suggested by Derek Price.
76935
76936 2005-09-24  Jim Meyering  <jim@meyering.net>
76937
76938         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
76939         so we can once again use a positive bitfield width of 1 -- now we
76940         don't have to explain why we were using a bitfield width of 2.
76941
76942 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76943
76944         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
76945         and similarly for the other external symbols.  Problem reported
76946         by James Gallager.
76947
76948         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
76949         bug reported by Jim Meyering.
76950
76951         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
76952         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
76953         not needed, since socklen is a prerequisite module.
76954
76955 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76956
76957         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
76958         Problem reported by Eric Blake.
76959         (getaddrinfo): Initialize se so that it's not garbage.
76960         Redo internal storage allocation so that it doesn't make unportable
76961         assumptions about alignment.
76962         Fix a memory leak.
76963
76964         * lib/utimens.c (futimens): Use futimesat if available.
76965         Prefer it to futimes since it doesn't have the futimes bug.
76966
76967         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
76968         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
76969         Instead, declare a function that returns a pointer to an array,
76970         and use verify_type__ to declare the size of the array.
76971         Problem and germ of a solution reported by Bruno Haible.
76972         (verify_type__): Use 2, not 1, for bitfield size, to avoid
76973         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
76974
76975 2005-09-23  Jim Meyering  <jim@meyering.net>
76976
76977         Sync from coreutils.
76978         Correct build failure (socklen_t not defined) on at least
76979         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
76980         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
76981
76982 2005-09-23  Jim Meyering  <jim@meyering.net>
76983
76984         * modules/getaddrinfo (Depends-on): Add socklen.
76985
76986 2005-09-23  Bruno Haible  <bruno@clisp.org>
76987
76988         * tests/test-verify.c: New file.
76989
76990 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76991
76992         Sync from coreutils.
76993
76994         * modules/argmatch (Depends-on): Add verify.
76995         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
76996         unistd-safer.
76997         * modules/save-cwd (Depends-on): Likewise.
76998
76999         * modules/openat (Files): Add lib/openat-die.c.
77000         (Depends-on): Remove error, exitfail.
77001         Add dirname.
77002
77003         * modules/verify: New file.
77004         * MODULES.html.sh (Diagnostics <assert.h>): New section,
77005         with "verify" module.
77006
77007 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77008
77009         Sync from coreutils.
77010
77011         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
77012         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
77013         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
77014         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
77015         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
77016         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
77017         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
77018         Don't bother checking for string.h, stdlib.h, unistd.h.
77019         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
77020         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
77021         module's job.
77022         * m4/jm-macros.m4 (gl_MACROS): Likewise.
77023         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
77024
77025         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
77026         (gl_GETDATE): Use it.
77027
77028         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
77029
77030 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         Sync from coreutils.
77033
77034         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
77035         stat-time.h.
77036         * lib/argmatch.h: Include verify.h
77037         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
77038         (ARGMATCH_ASSERT): Remove; unused.
77039         * lib/canonicalize.c: Assume STDC_HEADERS.
77040         * lib/exclude.c: Include "strcase.h".
77041         * lib/regex_internal.h [!defined _LIBC]: Likewise.
77042         * lib/getusershell.c: Include stdio--.h rather than stdio.h
77043         and stdio-safer.h.
77044         (getusershell): Call fopen, not fopen_safer.
77045         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
77046         Do not include unistd-safer.h.
77047         (save_cwd): Don't call fd_safer; no longer needed
77048         now that we include fcntl--.h.
77049
77050         * lib/getdate.y (relative_time): New type.
77051         (RELATIVE_TIME_0): New constant.
77052         (parser_control): Use relative_time instead of doing it ourselves.
77053         (%union): Add new relative_time rel member.
77054         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
77055         Now typeless.
77056         (relunit, relunit_snumber): Now of type rel.
77057         (zone, rel, relunit, get_date): Adjust to above changes.
77058
77059         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
77060         Do not include unistd-safer.h.
77061         (getloadavg): Don't call fd_safer; no longer needed
77062         now that we include fcntl--.h.
77063
77064         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
77065         (make_dir_parents): Treat ENOSYS like EEXIST.
77066
77067         Improve quality of diagnostics on restore_cwd failure.
77068         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
77069         (make_dir_parents): Last arg is now int * (for errno), not bool *.
77070         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
77071         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
77072         each time through the loop.  Do not diagnose restore_cwd failure;
77073         that is the caller's job (and perhaps the caller does not care).
77074
77075         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
77076         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
77077         If the file already exists but is not a directory, don't bother
77078         to try to make its parents.
77079         Close potential file descriptor leak if we can't chdir("/") (!).
77080         Don't always return true if chdir($PWD) fails; return true only
77081         if the requested action was done successfully (except for the
77082         chdir($PWD)).
77083         Don't log final directory unless we actually made it.
77084         Refactor to avoid duplicate code to fix up permissions.
77085         Don't attempt to fix up parent permissions if chdir($PWD) fails.
77086
77087         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
77088         to make it a bit faster and (I hope) clearer.
77089         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
77090         Fix bug in formats like %2N.
77091
77092         * lib/verify.h: New file.
77093
77094 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         Sync from coreutils.
77097         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
77098
77099 2005-09-22  Jim Meyering  <jim@meyering.net>
77100
77101         Sync from coreutils.
77102
77103         * m4/lstat.m4 (gl_FUNC_LSTAT):
77104         Use AC_LIBSOURCES to require lstat.c and lstat.h.
77105         Remove obsolete comment.
77106         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
77107         * m4/xstrtod.m4: Likewise.
77108
77109         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
77110
77111 2005-09-22  Jim Meyering  <jim@meyering.net>
77112
77113         Sync from coreutils.
77114
77115         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
77116
77117         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
77118         the .tm_year member, since otherwise gcc-4.0 would now warn about
77119         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
77120
77121         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
77122         order to avoid an unsuppressible warning from gcc on 64-bit systems.
77123
77124         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
77125         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
77126         when run in a time zone for which daylight savings time is in effect
77127         for the starting date.
77128
77129         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
77130         stop us from restricting permissions of just-created absolute-named
77131         directories.
77132         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
77133         to restore initial working directory.
77134         * lib/mkdir-p.c (make_dir_parents): New parameter:
77135         different_working_dir, to tell caller if/when we change the working
77136         directory and are unable to return to the initial one.
77137         * lib/mkdir-p.h (make_dir_parents): Update prototype.
77138         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
77139         `return false'.  This fixes a bug introduced on 2004-07-30.
77140
77141         * lib/openat.c (fdopendir): Be sure to close the supplied
77142         file descriptor before returning.  This makes our replacement
77143         implementation a little closer to Solaris's, where fdopendir
77144         ties the file descriptor to the returned DIR* pointer.
77145         * lib/openat.c (unlinkat): New function.
77146         * lib/openat.h (unlinkat): Add prototype.
77147         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
77148         (openat_restore_fail): Rename from openat_restore_die.
77149         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
77150
77151         Provide an alternative to exiting immediately upon save_cwd or
77152         restore_cwd failure.  Now, an application can arrange e.g.,
77153         to perform a longjump in that case.
77154         * lib/openat.c: Include dirname.h.
77155         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
77156         (rpl_openat, fdopendir, fstatat): Call openat_save_die
77157         and openat_restore_die rather than calling error directly.
77158         Don't include "error.h" or "exitfail.h"; they're no longer needed.
77159
77160         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
77161         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
77162         define.
77163
77164         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
77165         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
77166                             int utc, int nanoseconds);
77167         Background:
77168         date should not have to allocate a megabyte of virtual memory to
77169         handle a format argument like +%1048575T.  When implemented with
77170         strftime, it must allocate such a buffer, use strftime to fill it
77171         in, print it, then free it.
77172         With fprintftime, it simply prints everything and exits.
77173         With no need for memory allocation, that's one fewer way to fail.
77174         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
77175         optional field width, not before, so we accept %9:z, not %:9z.
77176         (my_strftime): Be sure to use L_('x') for literals.
77177
77178         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
77179         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
77180         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
77181         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
77182         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
77183         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
77184         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
77185         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
77186         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
77187         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
77188         * lib/xgethostname.c, lib/xreadlink.c:
77189         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
77190
77191         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
77192         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
77193         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
77194         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77195         and don't include <sys/file.h>).
77196
77197 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
77198
77199         Sync from coreutils.
77200
77201         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
77202         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
77203         [!LDAV_DONE]: Avoid unused variable warning.
77204
77205 2005-09-21  Bruno Haible  <bruno@clisp.org>
77206
77207         * lib/unicodeio.h (unicode_to_mb): New declaration.
77208
77209 2005-09-20  Derek Price  <derek@ximbiot.com>
77210
77211         * lib/getaddrinfo.c: Don't include <netdb.h> included from
77212         getaddrinfo.h.
77213
77214 2005-09-20  Bruno Haible  <bruno@clisp.org>
77215
77216         * gnulib-tool: Remove trailing slashes from the values specified for
77217         --source-base, --m4-base, --tests-base, --aux-dir.
77218         Suggested by Simon Josefsson <jas@extundo.com>.
77219
77220 2005-09-20  Bruno Haible  <bruno@clisp.org>
77221
77222         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
77223         func_modules_to_filelist, func_import, func_create_testdir): Make all
77224         sorting results locale-independent, so that gnulib-cache.m4 doesn't
77225         change when gnulib-tool is invoked in a different locale.
77226
77227 2005-09-19  Simon Josefsson  <jas@extundo.com>
77228
77229         * m4/socklen.m4: Fix typo.
77230
77231 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77232
77233         Use a consistent style for including <config.h>.
77234         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
77235         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
77236         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
77237         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
77238         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
77239         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
77240         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
77241         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
77242         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
77243         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
77244         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
77245         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
77246         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
77247         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
77248         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
77249         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
77250         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
77251         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
77252         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
77253         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
77254         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
77255         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
77256         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
77257         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
77258         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
77259         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
77260         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
77261         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
77262         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
77263         lib/xstrtoumax.c, lib/yesno.c:
77264         Standardize inclusion of config.h.
77265         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
77266         lib/inttostr.h:  Removed inclusion of config.h from header files.
77267         * lib/inttostr.c:  Adjusted in-tree users.
77268         * lib/timespec.h: Remove superfluous warning to include config.h.
77269         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
77270         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
77271         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
77272         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
77273         config.h with HAVE_CONFIG_H.
77274
77275 2005-09-19  Jim Meyering  <jim@meyering.net>
77276
77277         * modules/pathmax (License): Change to LGPL.
77278
77279 2005-09-19  Derek Price  <derek@ximbiot.com>
77280
77281         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
77282
77283 2005-09-19  Bruno Haible  <bruno@clisp.org>
77284
77285         * gnulib-tool (import): Provide default for --tests-base.
77286
77287 2005-09-19  Bruno Haible  <bruno@clisp.org>
77288
77289         * doc/quote.texi: New file, extracted from gnulib.texi.
77290         * doc/ctime.texi: New file, extracted from gnulib.texi.
77291         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
77292         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
77293         * doc/gnulib.texi: Include them.
77294
77295 2005-09-18  Bruno Haible  <bruno@clisp.org>
77296
77297         Portability fix.
77298         * gnulib-tool (func_readlink): New function.
77299         (func_ln_if_changed): Use it.
77300
77301 2005-09-18  Bruno Haible  <bruno@clisp.org>
77302
77303         * gnulib-tool: Support --with-tests also with --import.
77304         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
77305         (func_import): Use variables $testsbase and $inctests. Emit a
77306         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
77307         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
77308         SUBDIRS += $testsdir.
77309         (func_create_testdir): Update.
77310
77311 2005-09-18  Bruno Haible  <bruno@clisp.org>
77312
77313         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
77314         instead of $dry_run.
77315         (func_cp_if_changed, func_mv_if_changed): Remove functions.
77316         (func_ln_if_changed): Don't handle dry-run here.
77317         (func_import): In dry-run mode, detect more precisely which actions
77318         would be performed, and don't use "...ing" verbs.
77319
77320 2005-09-18  Bruno Haible  <bruno@clisp.org>
77321
77322         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
77323         (func_import): Use join on two temporary files instead of three nested
77324         loops, in order to determine which files are new or old.
77325
77326 2005-09-18  Bruno Haible  <bruno@clisp.org>
77327
77328         * gnulib-tool (func_import): Comment out code that spits out the
77329         new files with --dry-run.
77330
77331 2005-09-18  Bruno Haible  <bruno@clisp.org>
77332
77333         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
77334
77335 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77336
77337         * lib/stat-time.h: New file.
77338         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
77339         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
77340         in a different way.
77341         (timespec_cmp): New function.
77342         * lib/utimecmp.c: Include stat-time.h.
77343         (SYSCALL_RESOLUTION): Depend on whether various struct stat
77344         members exist, not on the obsolescent ST_MTIM_NSEC.
77345         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
77346
77347 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77348
77349         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
77350
77351 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77352
77353         * MODULES.html.sh (File system functions): Add stat-time.
77354         * modules/stat-time: New file.
77355         * modules/timespec (Files): Remove m4/st_mtim.m4; this
77356         is now done in a different way, by the stat-time module.
77357         * modules/utimecmp (Depends-on): Add stat-time.
77358
77359 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77360
77361         * m4/st_mtim.m4: Remove.  Superseded by...
77362         * m4/stat-time.m4: New file.
77363         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
77364         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
77365
77366 2005-09-15  Derek Price  <derek@ximbiot.com>
77367
77368         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
77369
77370 2005-09-15  Derek Price  <derek@ximbiot.com>
77371
77372         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
77373         * lib/regex_internal.c: Ditto, using this...
77374         (__GNUC_PREREQ): ...new macro.
77375         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
77376         using...
77377         (__GNUC_PREREQ): ...this new macro.
77378
77379         * lib/strstr.h: Include string.h. Define strstr as a macro here.
77380
77381 2005-09-15  Derek Price  <derek@ximbiot.com>
77382             Paul Eggert  <eggert@cs.ucla.edu>
77383
77384         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
77385         changes, consolidating in...
77386         * lib/regex_internal.h: ...this file.
77387
77388 2005-09-13  Jim Meyering  <jim@meyering.net>
77389
77390         * lib/canon-host.c: Filter through gnu indent and reword comments
77391         slightly.
77392         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
77393
77394 2005-09-13  Derek Price  <derek@ximbiot.com>
77395
77396         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
77397         failure.
77398         Reported by Jim Meyering  <jim@meyering.net>.
77399
77400 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77401
77402         * lib/base64.c: Typo.
77403         (base64_encode): Put b64str in initialized data section.
77404
77405 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
77406
77407         Merge glibc and coreutils changes into gnulib, plus a few
77408         extra fixes.
77409         * lib/md5.c: Use #error rather than a string.
77410         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
77411         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
77412         (__attribute__): Define to empty for non recent-GCC.
77413         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
77414         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
77415         Renamed from their non-__ counterparts, with new macros replacing
77416         them if not _LIBC.  Add __THROW attribute.
77417         (rol): Remove.
77418         (struct md5_ctx): Align buffer if using GCC.
77419         * lib/sha1.h (struct sha1_ctx): Likewise.
77420         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
77421         The old name was backwards.
77422         (NOTSWAP): Remove; not used.
77423         (rol): New macro, moved here from md5.h.
77424         (sha1_process_block): Remove a FIXME that doesn't make sense.
77425
77426 2005-09-12  Derek Price  <derek@ximbiot.com>
77427
77428         Return usable errors from canon-host.
77429         * lib/canon-host.h: New file.
77430         * lib/canon-host.c (canon_host): Wrap...
77431         (canon_host_r): ...this new function, which now relies exclusively on
77432         getaddrinfo.
77433         (ch_strerror): New function.
77434         (last_cherror): New global.
77435         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
77436         interface.
77437         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
77438         void *.
77439         (freeaddrinfo): Free ai->ai_canonname when set.
77440
77441 2005-09-12  Derek Price  <derek@ximbiot.com>
77442
77443         Make canon-host require getaddrinfo.
77444         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
77445         AC_LIBSOURCE canon-host.h.  Call...
77446         (gl_PREREQ_CANON_HOST): ...this new function, which requires
77447         gl_GETADDRINFO.
77448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
77449
77450 2005-09-12  Derek Price  <derek@ximbiot.com>
77451
77452         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
77453         LGPL.
77454         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
77455
77456 2005-09-12  Derek Price  <derek@ximbiot.com>
77457
77458         * lib/gai_strerror.c: Include config.h when available.  Include
77459         getaddrinfo.h before other headers to test interface.
77460         Reported by Larry Jones <lawrence.jones@ugs.com>.
77461
77462 2005-09-12  Derek Price  <derek@ximbiot.com>
77463             Paul Eggert  <eggert@cs.ucla.edu>
77464
77465         * modules/glob (Files): Add glob-libc.h.
77466
77467 2005-09-12  Derek Price  <derek@ximbiot.com>
77468             Paul Eggert  <eggert@cs.ucla.edu>
77469
77470         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
77471         glob_.h, glob-libc.h.
77472         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
77473
77474 2005-09-12  Derek Price  <derek@ximbiot.com>
77475             Paul Eggert  <eggert@cs.ucla.edu>
77476
77477         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
77478         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
77479         protecting things that should be done only in gnulib contexts.
77480         * lib/glob_.h: New file, containing only the glob things needed for
77481         gnulib.
77482         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
77483         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
77484         (glob, globfree, glob_pattern_p): Now defined simply in terms of
77485         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
77486         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
77487         and to respect the namespace rules better.
77488
77489 2005-09-08  Simon Josefsson  <jas@extundo.com>
77490
77491         * modules/socklen: New file.
77492
77493 2005-09-08  Simon Josefsson  <jas@extundo.com>
77494
77495         * m4/socklen.m4: New file.
77496
77497 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77498
77499         * modules/utimens (Files): Add m4/utimbuf.m4, since
77500         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
77501         Reported by Sergey Poznyakoff.
77502
77503 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77504
77505         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
77506         definitions, since that's the preferred style in glibc.
77507         Fix a minor spacing issue, and update copyright notice to match
77508         glibc's.
77509
77510 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77511
77512         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
77513
77514 2005-09-06  Simon Josefsson  <jas@extundo.com>
77515
77516         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
77517         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
77518
77519 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
77522         warning.
77523
77524 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77525
77526         * config/srclist.txt: Add glibc bug 1302.
77527
77528 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
77529
77530         Change bitset word type from unsigned int to unsigned long int,
77531         as this has better performance on typical 64-bit hosts.
77532         Port bitset code to hosts with unusual word sizes.
77533         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
77534         (build_collating_symbol):
77535         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
77536         argument is a bitset.  This is merely a style issue, but it makes
77537         it clearer that an entire array is expected.
77538         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
77539         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
77540         Port to the case where bitset_word is not the same as unsigned int.
77541         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77542         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
77543         Likewise.
77544         * lib/regexec.c (check_dst_limits_calc_pos_1,
77545         check_subexp_matching_top):
77546         (build_trtable, group_nodes_into_DFAstates):
77547         Likewise.
77548         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
77549         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
77550         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
77551         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
77552         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
77553         * lib/regcomp.c (optimize_subexps, lower_subexp):
77554         Work even if bitset_word has holes in its bitwise representation.
77555         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
77556         * lib/regexec.c (check_dst_limits_calc_pos_1,
77557         check_subexp_matching_top):
77558         Likewise.
77559         * lib/regex_internal.c (re_string_reconstruct):
77560         Don't assume UCHAR_MAX == 255.
77561         * lib/regex_internal.h (bitset_set_all): Likewise.
77562         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
77563         All uses changed.
77564         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
77565         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
77566         All uses changed.
77567         (BITSET_WORD_MAX): New macro.
77568         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
77569         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
77570         (bitset_empty, bitset_copy):
77571         Prefer sizeof (bitset) to multiplying it out ourselves.
77572         (bitset_not_merge): Remove; unused.
77573         (bitset_contain): Return bool, not unsigned int with one bit on.
77574         All callers changed.
77575         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
77576         alignment than re_node_set; do this by defining a new internal
77577         type struct dests_alloc and using it to allocate memory.
77578
77579 2005-09-05  Bruno Haible  <bruno@clisp.org>
77580
77581         * gnulib-tool (func_import): Fix comparison in handling of symbolic
77582         links.
77583
77584 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
77585
77586         * modules/size_max (Makefile.am): Add size_max.h
77587
77588 2005-09-04  Derek Price  <derek@ximbiot.com>
77589
77590         * gnulib-tool (func_import): Fix reversed $symbolic logic.
77591
77592 2005-09-03  Simon Josefsson  <jas@extundo.com>
77593
77594         * gnulib-tool: Fix typo.
77595
77596 2005-09-03  Simon Josefsson  <jas@extundo.com>
77597
77598         * config/srclist.txt: Add glibc bug 1293.
77599
77600 2005-09-03  Derek Price  <derek@ximbiot.com>
77601
77602         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
77603         From Larry Jones <lawrence.jones@ugs.com>.
77604
77605 2005-09-02  Simon Josefsson  <jas@extundo.com>
77606
77607         * modules/socklen: New file.
77608
77609 2005-09-02  Simon Josefsson  <jas@extundo.com>
77610
77611         * modules/havelib: New module.
77612
77613         * modules/gettext, modules/iconv, modules/lock, modules/readline:
77614         Use havelib.
77615
77616 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77617
77618         Check for arithmetic overflow when calculating sizes, to prevent
77619         some buffer-overflow issues.  These patches are conservative, in the
77620         sense that when I couldn't determine whether an overflow was possible,
77621         I inserted a run-time check.
77622         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
77623         macros.
77624         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
77625         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
77626         (re_xnrealloc, re_x2nrealloc): New inline functions.
77627         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
77628         parse_bracket_exp):
77629         (build_equiv_class, build_charclass): Check for arithmetic overflow
77630         in size expression calculations.
77631         * lib/regex_internal.c (re_string_realloc_buffers):
77632         (build_wcs_upper_buffer, re_node_set_add_intersect):
77633         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
77634         (re_dfa_add_node, register_state): Likewise.
77635         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
77636         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
77637         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
77638         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
77639
77640 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77641
77642         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77643         m4/ulonglong.m4.  Problem reported by Martin Lambers.
77644
77645 2005-09-02  Bruno Haible  <bruno@clisp.org>
77646
77647         Support for lib vs. lib64 distinction on biarch platforms.
77648         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
77649         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
77650         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
77651
77652 2005-09-02  Bruno Haible  <bruno@clisp.org>
77653
77654         * gnulib-tool (import): In the other first-use case, provide defaults
77655         as well.
77656
77657 2005-09-02  Bruno Haible  <bruno@clisp.org>
77658
77659         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
77660         patches not yet found in the latest gettext release.
77661
77662 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77663
77664         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
77665         to avoid a collision with bits/local_lim.h in glibc.
77666         All uses changed.  Problem reported by Dmitry V. Levin in
77667         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
77668
77669         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
77670         bugs in int versus size_t comparisons.
77671         (re_string_context_at): Fix bug where the code assumed that
77672         Idx is signed.
77673
77674         Use bool where appropriate.
77675         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
77676         All callers changed.
77677         (calc_eclosure_iter): Likewise, for ROOT arg.
77678         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
77679         (build_charclass_op): Likewise, for NON_MATCH arg.
77680         * lib/regex_internal.c (re_string_allocate, re_string_construct):
77681         (re_string_construct_common): Likewise, for ICASE arg.
77682         * lib/regexec.c (re_search_2_stub, re_search_stub):
77683         Likewise, for RET_LEN arg.
77684         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
77685         (set_regs): Likewise, for FL_BACKTRACK arg.
77686         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
77687         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
77688         (calc_eclosure_iter, parse_bracket_exp):
77689         Use bool for internal variables that are booleans.
77690         * lib/regexec.c (re_search_internal, check_matching,
77691         proceed_next_node):
77692         (set_regs, build_sifted_states, sift_states_bkref):
77693         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
77694         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77695         (find_collation_sequence_value):
77696         Likewise.
77697         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
77698         (re_node_set_compare):
77699         Return bool, not int. All callers changed.
77700         * lib/regexec.c (check_halt_node_context, check_dst_limits):
77701         (build_trtable, check_node_accept): Likewise.
77702         * lib/regex_internal.h: Include stdbool.h.
77703
77704         Fix bugs uncovered when converting to bool.
77705         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
77706         failure instead of charging ahead blindly.
77707         * lib/regex_internal.c (register_state): Likewise.
77708         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
77709         for freeing internal storage.
77710         (group_nodes_into_DFA_states): Use unsigned int, not int, for
77711         bitset pieces used as boolean, to avoid undefined behavior
77712         on hosts that do int overflow checking.
77713
77714 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         * config/srclist.txt: Add glibc bugs 1285-1287.
77717
77718 2005-09-01  Jim Meyering  <jim@meyering.net>
77719
77720         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
77721         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
77722         Require gl_STAT_MACROS, too.
77723
77724 2005-09-01  Bruno Haible  <bruno@clisp.org>
77725
77726         * gnulib-tool (import): In the first-use case, provide defaults.
77727
77728 2005-09-01  Bruno Haible  <bruno@clisp.org>
77729
77730         * gnulib-tool (func_import): Remove the .tmp files.
77731
77732 2005-09-01  Bruno Haible  <bruno@clisp.org>
77733
77734         * gnulib-tool (func_import): Fix handling of symbolic links.
77735
77736 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77737
77738         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
77739         old glibc regex code mishandles strings longer than 2**31 bytes.
77740         This patch fixes this when the regex code is used in gnulib
77741         (i.e., outside glibc).
77742
77743         This patch should not affect the use of the regex code inside
77744         glibc.  No doubt this problem also needs to be handled for glibc
77745         as well, but the result will be an incompatible change to the
77746         glibc ABI, and the old ABI will have to be supported too.  That
77747         can be the the subject for another patch.
77748
77749         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
77750         governing whether the rest of this patch is active.  By default,
77751         the macro is disabled and the patch has no effect.
77752         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
77753         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
77754         (struct re_pattern_buffer, re_search, re_search_2, re_match):
77755         (re_match_2, re_set_registers): Use the new types.
77756         * lib/regex_internal.h (Idx, re_hashval_t): New types.
77757         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
77758         New macros.
77759         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
77760         (re_string_context_at, bin_tree_t, re_dfastate_t):
77761         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
77762         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
77763         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
77764         (re_string_char_size_at, re_string_wchar_at):
77765         (re_string_elem_size_at):
77766         Use the new types and macros to port to 64-bit hosts.
77767         Use unsigned types for internal values, so that the code
77768         mostly works even for arrays larger than SSIZE_MAX.
77769         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
77770         (search_duplicated_node, calc_eclosure_iter, fetch_number):
77771         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
77772         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
77773         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
77774         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
77775         (calc_inveclosure, parse_dup_op, build_range_exp):
77776         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
77777         (fetch_number, create_token_tree, mark_opt_subexp):
77778         Likewise.
77779         * lib/regex_internal.c (re_string_construct_common,
77780         create_ci_newstate):
77781         (create_cd_newstate, re_string_allocate, re_string_construct):
77782         (re_string_realloc_buffers, build_wcs_upper_buffer):
77783         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77784         (re_string_reconstruct, re_string_peek_byte_case):
77785         (re_string_fetch_byte_case, re_string_context_at):
77786         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77787         (re_node_set_init_copy, re_node_set_add_intersect):
77788         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77789         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77790         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77791         (re_acquire_state, re_acquire_state_context, register_state):
77792         Likewise.
77793         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
77794         search_cur_bkref_entry):
77795         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
77796         (re_search_internal, re_search_2_stub, re_search_stub)
77797         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
77798         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
77799         (update_cur_sifted_state, check_dst_limits):
77800         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77801         (check_subexp_limits, sift_states_bkref, merge_state_array):
77802         (check_subexp_matching_top, get_subexp, get_subexp_sub):
77803         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
77804         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77805         (expand_bkref_cache, check_node_accept_bytes):
77806         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
77807         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
77808         (acquire_init_state_context, check_halt_node_context):
77809         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
77810         (sift_states_backward, clean_state_log_if_needed):
77811         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
77812         (find_recover_state, transit_state_sb, transit_state_mb):
77813         (transit_state_bkref, build_trtable, match_ctx_clean):
77814         Likewise.
77815         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
77816         to work around an assumption that REG_MISSING is negative.
77817
77818         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
77819         (seek_collating_symbol_entry) [defined _LIBC]:
77820         (lookup_collation_sequence_value) [defined _LIBC]:
77821         (build_range_exp, build_collating_symbol) [defined _LIBC]:
77822         Use prototypes rather than old-style function definitions.
77823         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
77824         (transit_state_sb) [0]:
77825         (find_collation_sequence_value) [defined _LIBC]: Likewise.
77826
77827         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
77828         rm_eo.
77829
77830         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
77831         (optimize_subexps, lower_subexp):
77832         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
77833         since the signed shift might overflow.  Use 1u<<31 instead.
77834         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77835         Likewise.
77836         * lib/regexec.c (check_dst_limits_calc_pos_1,
77837         check_subexp_matching_top): Likewise.
77838
77839         * lib/regcomp.c (optimize_subexps, lower_subexp):
77840         Use CHAR_BIT rather than 8, for clarity.
77841         * lib/regexec.c (check_dst_limits_calc_pos_1):
77842         (check_subexp_matching_top): Likewise.
77843         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
77844         have to worry about portability issues when shifting it left.
77845         Remove no-longer-needed test for table_size > 0.
77846         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
77847         in a word, as the resulting behavior is undefined.
77848         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
77849         in one case, a <= should have been an <, and in another case the
77850         whole test was missing.
77851         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
77852         the standard name CHAR_BIT.
77853         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
77854         this is not true on one's complement and signed-magnitude hosts.
77855
77856         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
77857         next_last_offset.
77858         (struct re_dfa_t): Remove unused member states_alloc.
77859         * lib/regcomp.c (init_dfa): Don't initialize unused members.
77860
77861 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77862
77863         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
77864         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
77865         and large-file glibc and in 32-bit large-file Solaris.
77866
77867 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77868
77869         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
77870         lengths fit in regoff_t; this isn't true if regoff_t is the same
77871         width as size_t.
77872         * lib/regex.c (re_search_internal): 5th arg is LAST_START
77873         (= START + RANGE) instead of RANGE.  This avoids overflow
77874         problems when regoff_t is the same width as size_t.
77875         All callers changed.
77876         (re_search_2_stub): Check for overflow when adding the
77877         sizes of the two strings.
77878         (re_search_stub): Check for overflow when adding START
77879         to RANGE; if it occurs, substitute the extreme value.
77880
77881 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77882
77883         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
77884
77885 2005-08-31  Jim Meyering  <jim@meyering.net>
77886
77887         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
77888         a pointer-to-const.
77889         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
77890         (register_state): Likewise.
77891         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
77892         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77893         (group_nodes_into_DFAstates): Likewise.
77894
77895 2005-08-31  Jim Meyering  <jim@meyering.net>
77896
77897         * check-module: Add a FIXME comment.
77898
77899 2005-08-31  Eric Blake  <ebb9@byu.net>
77900
77901         * modules/unistd-safer (Files): Add unistd--.h.
77902         * modules/stdio-safer (Files): Add stdio--.h.
77903
77904 2005-08-31  Derek Price  <derek@ximbiot.com>
77905
77906         * lib/getdelim.c (getdelim): Return EOF on EOF.
77907         Reported by Larry Jones <lawrence.jones@ugs.com>.
77908
77909 2005-08-31  Bruno Haible  <bruno@clisp.org>
77910
77911         Avoid unnecessary diffs in the generated lib/Makefile.am.
77912         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
77913         the generated files.
77914         (func_import): Don't set cmd.
77915
77916 2005-08-31  Bruno Haible  <bruno@clisp.org>
77917
77918         * lib/strstr.c: Include <stddef.h>, for NULL.
77919         * lib/strcasestr.c: Likewise.
77920         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77921
77922 2005-08-31  Bruno Haible  <bruno@clisp.org>
77923
77924         * gnulib-tool: New option --macro-prefix.
77925         (func_import): Use macro_prefix.
77926         (import): Handle option --macro-prefix.
77927
77928 2005-08-31  Bruno Haible  <bruno@clisp.org>
77929
77930         * gnulib-tool (import): Rename most ac_* variables to cached_*.
77931         Also use new variables cached_lgpl, cached_libtool.
77932
77933 2005-08-31  Bruno Haible  <bruno@clisp.org>
77934
77935         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
77936         always instantiating them.
77937
77938 2005-08-31  Bruno Haible  <bruno@clisp.org>
77939
77940         * gnulib-tool (func_import): Read the previous cached settings
77941         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
77942         earlier added by gnulib but are now dropped. Warn when a gnulib file
77943         overwrites a non-gnulib file.
77944
77945 2005-08-31  Bruno Haible  <bruno@clisp.org>
77946
77947         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
77948         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
77949         projects that don't keep autogenerated files in CVS. Put into
77950         actioncmd only the specified modules, not the transitive closure.
77951
77952 2005-08-31  Bruno Haible  <bruno@clisp.org>
77953
77954         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
77955         Create directories that shall be filled.
77956         (import): Don't look for gl_* macros in configure.ac. Recurse across
77957         all directories containing a gnulib-cache.m4 files, if meaningful.
77958
77959 2005-08-31  Bruno Haible  <bruno@clisp.org>
77960
77961         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
77962         (import): Set seen_libtool when we see gl_LIBTOOL.
77963
77964 2005-08-31  Bruno Haible  <bruno@clisp.org>
77965
77966         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
77967         declaration macro definitions from generated gnulib.m4.
77968
77969 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
77970
77971         * lib/iconvme.h: Add prototype for iconv_alloc.
77972
77973 2005-08-29  Simon Josefsson  <jas@extundo.com>
77974
77975         * lib/iconvme.c: Fix errno.
77976
77977 2005-08-29  Bruno Haible  <bruno@clisp.org>
77978
77979         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
77980         that it works when the directory contains spaces.
77981
77982 2005-08-29  Bruno Haible  <bruno@clisp.org>
77983
77984         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
77985
77986 2005-08-29  Bruno Haible  <bruno@clisp.org>
77987
77988         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
77989         Emit more advice.
77990
77991 2005-08-29  Bruno Haible  <bruno@clisp.org>
77992         and Stepan Kasal  <kasal@ucw.cz>
77993
77994         * check-module: If more parameters are given, check each of them
77995         separately; add more exceptions, as noted by Jim Meyering.
77996         (check_module): New procedure.
77997         (%exempt_header): Now contains all exceptions.
77998
77999 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
78000
78001         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
78002
78003 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78004
78005         * lib/iconvme.c: Split iconv_string into iconv_alloc.
78006
78007 2005-08-28  Bruno Haible  <bruno@clisp.org>
78008
78009         * m4/gnulib-tool.m4: New file.
78010
78011 2005-08-27  Jim Meyering  <jim@meyering.net>
78012
78013         * modules/unistd-safer (Files): Add pipe-safer.c.
78014         * modules/fcntl-safer (Files): Add creat-safer.c.
78015
78016 2005-08-27  Jim Meyering  <jim@meyering.net>
78017
78018         * m4/stdlib-safer.m4: New file.  From coreutils.
78019         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
78020         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
78021         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
78022         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
78023         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
78024
78025 2005-08-27  Jim Meyering  <jim@meyering.net>
78026
78027         * lib/fopen-safer.c: Merge minor changes from coreutils.
78028         * lib/dup-safer.c: Likewise.
78029         * lib/fd-safer.c: Likewise.
78030
78031         Merge from coreutils.
78032         * lib/stdio--.h: New file.
78033         * lib/stdlib--.h: New file.
78034         * lib/mkstemp-safer.c: New file.
78035
78036         GNU tar needs these.
78037         * lib/pipe-safer.c: New file.
78038         * lib/creat-safer.c: New file.
78039         * lib/fcntl--.h (creat): Define to creat_safer.
78040         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
78041         * lib/unistd--.h (pipe): Define to pipe_safer.
78042         * lib/unistd-safer.h: Declare pipe_safer.
78043
78044 2005-08-26  Simon Josefsson  <jas@extundo.com>
78045
78046         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
78047         Haible <bruno@clisp.org>.
78048
78049 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
78050
78051         * lib/regex_internal.h: Remove all references to
78052         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
78053         or better.
78054         (bitset_not, bitset_merge, bitset_not_merge):
78055         (bitset_mask, re_string_allocate, re_string_construct):
78056         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
78057         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
78058         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
78059         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
78060         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78061         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78062         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
78063         (re_acquire_state_context):
78064         Remove unnecessary forward decls.
78065         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
78066         Put __attribute at function definition,
78067         now that the function decl has been removed.
78068         * lib/regex_internal.c (re_string_peek_byte_case):
78069         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
78070         Likewise.
78071
78072 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
78073
78074         * m4/regex.m4: Add AC_PREREQ(2.50).
78075         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
78076
78077 2005-08-25  Simon Josefsson  <jas@extundo.com>
78078
78079         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
78080         __fsetlocking.
78081
78082 2005-08-25  Simon Josefsson  <jas@extundo.com>
78083
78084         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
78085         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
78086         GLIBC specific code.
78087
78088 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78089
78090         Make regex safe for g++.  This fixes one real bug (an "err"
78091         that should have been "*err").  g++ problem reported by
78092         Sam Steingold.
78093         * lib/regex_internal.h (re_calloc): New macro, consistent with
78094         re_malloc etc.  All callers of calloc changed to use re_calloc.
78095         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
78096         not int.  All callers changed.
78097         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
78098         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
78099         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
78100         (find_recover_state): Change "err" to "*err"; this fixes what
78101         appears to be a real bug.
78102         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
78103         versus int.
78104
78105 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78106
78107         * modules/regex (Depends-on): Add malloc, since the code
78108         assumes that !malloc(0) means failure.
78109
78110 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78111
78112         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
78113
78114         alloca modernization/simplification for regex.
78115         * lib/regex.c: Remove portability cruft for alloca.  This no longer
78116         needs to be at the start of the file, and can be moved into
78117         regex_internal.h and simplified.
78118         * lib/regex_internal.h: Include <alloca.h>.
78119         (__libc_use_alloca) [!defined _LIBC]: New macro.
78120         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
78121         now works outside glibc.
78122
78123 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78124
78125         * config/srclist.txt: Add glibc bugs 1241, 1245.
78126
78127 2005-08-25  Jim Meyering  <jim@meyering.net>
78128
78129         * lib/open-safer.c: Include <config.h>.
78130         Otherwise, we'd lose LARGEFILE support in any file using
78131         e.g. "fcntl--.h"
78132
78133 2005-08-25  Bruno Haible  <bruno@clisp.org>
78134
78135         * m4/minmax.m4: Require autoconf 2.52.
78136         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
78137         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
78138         alternatives of translit over the alphabet.
78139         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
78140
78141 2005-08-24  Simon Josefsson  <jas@extundo.com>
78142
78143         * tests/test-getpass.c: New file.
78144
78145 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78146
78147         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
78148         for GNU regex features.
78149
78150 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78151
78152         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
78153         * lib/regex.h (regerror): Likewise.
78154
78155         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
78156         requires this.  (The code never needed it.)
78157
78158         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
78159         All uses of recently-renamed identifiers changed to use the new,
78160         POSIX-compliant names.  The code will build and run just fine
78161         without these changes, but it's better to eat our own dog food
78162         and use the standard-conforming names.
78163
78164         * lib/regex.h: Fix a multitude of POSIX name space violations.
78165         These changes have an effect only for programs that define
78166         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
78167         do not change anything for programs compiled in the normal way.
78168         Also, there is no effect on the ABI.
78169
78170         (_REGEX_SOURCE): New macro.
78171         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
78172         defined and _GNU_SOURCE is not; this fixes a name space violation.
78173
78174         Rename the following macros to obey POSIX requirements.
78175         The old names are still visible as macros if _REGEX_SOURCE is defined.
78176         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
78177         RE_BACKSLASH_ESCAPE_IN_LISTS.
78178         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
78179         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
78180         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
78181         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
78182         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
78183         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
78184         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
78185         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
78186         (REG_INTERVALS): renamed from RE_INTERVALS.
78187         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
78188         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
78189         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
78190         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
78191         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
78192         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
78193         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
78194         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
78195         RE_UNMATCHED_RIGHT_PAREN_ORD.
78196         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
78197         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
78198         (REG_DEBUG): renamed from RE_DEBUG.
78199         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
78200         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
78201         unusual, since we can't clash with the POSIX REG_ICASE.
78202         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
78203         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
78204         (REG_NO_SUB): renamed from RE_NO_SUB.
78205         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
78206         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
78207         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
78208         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
78209         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
78210         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
78211         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
78212         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
78213         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
78214         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
78215         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
78216         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
78217         RE_SYNTAX_POSIX_MINIMAL_BASIC.
78218         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
78219         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
78220         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
78221         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
78222         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
78223         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
78224         (REG_FIXED): Renamed from REGS_FIXED.
78225         (REG_NREGS): Renamed from RE_NREGS.
78226
78227         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
78228         of other REG_* macros, since POSIX says the user is allowed to
78229         #undef these macros selectively.
78230
78231         (reg_errcode_t): Update comment stating what other tables need
78232         to be consistent.
78233
78234         Rename the following enum values to obey POSIX requirements.
78235         The old names are still visible as macros.
78236         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
78237         is not defined, since GNU is supposed to be a superset of POSIX as
78238         much as possible, and since we want reg_errcode_t to be a signed
78239         type for implementation consistency.
78240         (_REG_NOERROR): Renamed from REG_NOERROR.
78241         (_REG_NOMATCH): Renamed from REG_NOMATCH.
78242         (_REG_BADPAT): Renamed from REG_BADPAT.
78243         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
78244         (_REG_ECTYPE): Renamed from REG_ECTYPE.
78245         (_REG_EESCAPE): Renamed from REG_EESCAPE.
78246         (_REG_ESUBREG): Renamed from REG_ESUBREG.
78247         (_REG_EBRACK): Renamed from REG_EBRACK.
78248         (_REG_EPAREN): Renamed from REG_EPAREN.
78249         (_REG_EBRACE): Renamed from REG_EBRACE.
78250         (_REG_BADBR): Renamed from REG_BADBR.
78251         (_REG_ERANGE): Renamed from REG_ERANGE.
78252         (_REG_ESPACE): Renamed from REG_ESPACE.
78253         (_REG_BADRPT): Renamed from REG_BADRPT.
78254         (_REG_EEND): Renamed from REG_EEND.
78255         (_REG_ESIZE): Renamed from REG_ESIZE.
78256         (_REG_ERPAREN): Renamed from REG_ERPAREN.
78257         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
78258         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
78259         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
78260         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
78261
78262         (_REG_RE_NAME, _REG_RM_NAME): New macros.
78263         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
78264         changed.  But support the old name if the new one is not defined
78265         and if _REGEX_SOURCE.
78266
78267         Change the following member names in struct re_pattern_buffer.
78268         The old names are still supported if !_REGEX_SOURCE.
78269         The new names are always supported, regardless of _REGEX_SOURCE.
78270         (re_buffer): Renamed from buffer.
78271         (re_allocated): Renamed from allocated.
78272         (re_used): Renamed from used.
78273         (re_syntax): Renamed from syntax.
78274         (re_fastmap): Renamed from fastmap.
78275         (re_translate): Renamed from translate.
78276         (re_can_be_null): Renamed from can_be_null.
78277         (re_regs_allocated): Renamed from regs_allocated.
78278         (re_fastmap_accurate): Renamed from fastmap_accurate.
78279         (re_no_sub): Renamed from no_sub.
78280         (re_not_bol): Renamed from not_bol.
78281         (re_not_eol): Renamed from not_eol.
78282         (re_newline_anchor): Renamed from newline_anchor.
78283
78284         Change the following member names in struct re_registers.
78285         The old names are still supported if !_REGEX_SOURCE.
78286         The new names are always supported, regardless of _REGEX_SOURCE.
78287         (rm_num_regs): Renamed from num_regs.
78288         (rm_start): Renamed from start.
78289         (rm_end): Renamed from end.
78290
78291         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
78292         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
78293         Prepend __ to parameter names.
78294
78295         Undo yesterday's changes.
78296
78297 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78298
78299         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
78300         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
78301         lib/regex.c.
78302
78303 2005-08-24  Jim Meyering  <jim@meyering.net>
78304
78305         Sync from coreutils.
78306         * m4/fcntl-safer.m4: New file.
78307
78308         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
78309         and object files for this module.
78310
78311 2005-08-24  Jim Meyering  <jim@meyering.net>
78312
78313         Sync from coreutils.
78314         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
78315
78316 2005-08-24  Jim Meyering  <jim@meyering.net>
78317
78318         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
78319         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
78320
78321 2005-08-24  Jim Meyering  <jim@meyering.net>
78322
78323         * modules/fcntl-safer: New module.
78324         * modules/fts (Depends-on): Add fcntl-safer.
78325         * MODULES.html.sh (File descriptor based Input/Output):
78326         Add fcntl-safer.
78327
78328 2005-08-24  Bruno Haible  <bruno@clisp.org>
78329
78330         Support for unit test modules.
78331         * modules/README: Mention tests modules.
78332         * modules/TEMPLATE-TESTS: New file.
78333         * gnulib-tool: New options --extract-tests-module, --with-tests and
78334         --tests-base (unused for the moment).
78335         (testsbase, inctests): New variables.
78336         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
78337         (func_verify_module): Exclude TEMPLATE-TESTS.
78338         (func_verify_nontests_module, func_verify_tests_module): New functions.
78339         (func_get_dependencies): Add implicit dependency for tests modules.
78340         (func_get_tests_module): New function.
78341         (func_modules_transitive_closure): When --with-tests was specified,
78342         include the unit tests as well, unless explicitly avoided.
78343         (func_emit_lib_Makefile_am): Ignore the tests modules here.
78344         (func_emit_tests_Makefile_am): New function.
78345         (func_create_testdir): When --with-tests was specified, emit a
78346         tests/ directory.
78347         * MODULES.html.sh (Future developments): Update.
78348
78349 2005-08-24  Bruno Haible  <bruno@clisp.org>
78350
78351         * modules/tls-tests: New file.
78352         * tests/test-tls.c: New file, from GNU gettext.
78353
78354 2005-08-24  Bruno Haible  <bruno@clisp.org>
78355
78356         * modules/lock-tests: New file.
78357         * tests/test-lock.c: New file, from GNU gettext.
78358
78359 2005-08-24  Bruno Haible  <bruno@clisp.org>
78360
78361         * lib/lock.h: Add multiple inclusion guard.
78362         * lib/tls.h: Add multiple inclusion guard.
78363
78364 2005-08-24  Bruno Haible  <bruno@clisp.org>
78365
78366         * gnulib-tool: Add support for the --aux-dir option to
78367         --create-testdir, --create-megatestdir, --test, --megatest.
78368         (func_create_testdir, func_create_megatestdir): Optionally emit a
78369         AC_CONFIG_AUX_DIR directive.
78370         (create-testdir, create-megatestdir, test, megatest): Provide a
78371         default value for $auxdir.
78372
78373 2005-08-24  Bruno Haible  <bruno@clisp.org>
78374
78375         * gnulib-tool (import): Use compound statement instead of subshell
78376         where possible.
78377
78378 2005-08-24  Bruno Haible  <bruno@clisp.org>
78379
78380         * gnulib-tool (import): Change --aux-dir default to "build-aux".
78381
78382 2005-08-24  Bruno Haible  <bruno@clisp.org>
78383
78384         * gnulib-tool (func_version): Update.
78385
78386 2005-08-24  Bruno Haible  <bruno@clisp.org>
78387
78388         * gnulib-tool (func_import, func_create_testdir,
78389         func_create_megatestdir): Quote all autoconf macro arguments.
78390
78391 2005-08-24  Bruno Haible  <bruno@clisp.org>
78392
78393         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
78394         option --force, because --force causes the aclocal.m4 of each
78395         subdirectory to be newer than the corresponding config.h.in.
78396
78397 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78398
78399         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
78400         All contents moved to gl_REGEX.
78401         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
78402         assume that it does.
78403
78404 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78405
78406         * lib/regex.h (REG_NOSYS)
78407         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
78408         Define, since POSIX requires it as of 2001.
78409         (_REG_ENOSYS)
78410         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
78411         New private symbol, used to keep the enum signed in all cases.
78412         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
78413         Youngman in
78414         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
78415
78416         * lib/regex_internal.c (re_string_skip_chars, register_state):
78417         (calc_state_hash):
78418         Remove forward decls; no longer needed now that we use prototypes.
78419         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
78420         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
78421         (clean_state_log_if_needed): Likewise.
78422
78423 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78424
78425         * config/srclist.txt: Add glibc bugs 1231-1233.
78426
78427 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78428
78429         Fix problems reported by Sam Steingold in
78430         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
78431         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
78432         assumed that reg_errcode_t is a signed type, which is not
78433         necessarily true if _XOPEN_SOURCE is not defined.
78434         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
78435         since some compilers warn about it otherwise.
78436
78437 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78438
78439         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
78440         (init_word_char, create_initial_state, duplicate_node_closure):
78441         (fetch_token, peek_token_bracket, build_range_exp):
78442         (build_collating_symbol): Remove forward decls; no longer needed
78443         now that we use prototypes.
78444
78445         * lib/regcomp.c:
78446         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
78447         (re_compile_fastmap_iter, regcomp, regerror, regfree):
78448         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
78449         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
78450         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
78451         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
78452         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
78453         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
78454         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
78455         (build_range_exp, build_collating_symbol, parse_bracket_exp):
78456         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
78457         (build_charclass, build_charclass_op, fetch_number, create_tree):
78458         (create_token_tree, mark_opt_subexp, duplicate_tree):
78459         Use prototypes rather than old-style definitions.
78460
78461         * lib/regex_internal.c:
78462         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
78463         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
78464         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78465         (re_string_reconstruct, re_string_peek_byte_case):
78466         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
78467         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78468         (re_node_set_init_copy, re_node_set_add_intersect):
78469         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78470         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78471         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78472         (re_acquire_state, re_acquire_state_context, register_state):
78473         (create_ci_newstate, create_cd_newstate, free_state):
78474         Likewise.
78475         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
78476         re_search_2):
78477         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
78478         (re_search_internal, prune_impossible_nodes):
78479         (acquire_init_state_context, check_matching, static):
78480         (check_halt_node_context, check_halt_state_context, proceed_next_node):
78481         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
78482         (update_regs, sift_states_backward, build_sifted_states):
78483         (clean_state_log_if_needed, merge_state_array):
78484         (update_cur_sifted_state, add_epsilon_src_nodes):
78485         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
78486         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
78487         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
78488         (find_recover_state, check_subexp_matching_top, transit_state_mb):
78489         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
78490         (check_arrival, check_arrival_add_next_nodes):
78491         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78492         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78493         (check_node_accept_bytes, check_node_accept, extend_buffers):
78494         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
78495         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
78496         (sift_ctx_init):
78497         Likewise.
78498
78499         * lib/regex_internal.h:
78500         (re_string_allocate, re_string_construct, re_string_reconstruct):
78501         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
78502         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
78503         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
78504         (re_string_context_at, re_string_peek_byte_case):
78505         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
78506         is defined, since we now use prototypes always.
78507
78508         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
78509         C89 or better.  All uses removed.
78510
78511 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78512
78513         * config/srclist.txt: Add glibc bugs 1220-1227.
78514
78515 2005-08-20  Jim Meyering  <jim@meyering.net>
78516
78517         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
78518         of unused local, dfa.
78519
78520 2005-08-20  Bruno Haible  <bruno@clisp.org>
78521
78522         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
78523
78524 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78525
78526         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
78527         (re_node_set_insert_last, re_dfa_add_node):
78528         Rename local variables to avoid GCC shadowing warnings.
78529
78530 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78531
78532         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
78533         [defined lint]: Suppress bogus uninitialized-variable warnings.
78534
78535         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
78536         and let the caller return REG_ESPACE if out of space.  This
78537         removes an uninitialied-variable warning with GCC 4.0.1, and also
78538         avoids taking the address of a local variable.  All callers
78539         changed.
78540
78541 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78542
78543         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
78544         $LIBCSRC/posix/regexec.c.
78545         Add glibc bug 1217 for regcomp.c.
78546
78547 2005-08-19  Jim Meyering  <jim@meyering.net>
78548
78549         * lib/regexec.c (proceed_next_node): Redo local variables to
78550         avoid GCC shadowing warnings.
78551
78552 2005-08-18  Bruno Haible  <bruno@clisp.org>
78553
78554         * lib/strstr.c (strstr): Fix return value in multibyte case.
78555         * lib/strcasestr.c (strcasestr): Likewise.
78556
78557 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78558
78559         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
78560
78561 2005-08-17  Jim Meyering  <jim@meyering.net>
78562
78563         Make the %s format (seconds since the epoch) work for a negative
78564         number and when used with a zero-padded field width, e.g. %015s.
78565
78566         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
78567         label so that it precedes the code to set `digits'.  Otherwise,
78568         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
78569         print `00-22'.  Now, it prints `-0022', as it should.
78570
78571 2005-08-17  Bruno Haible  <bruno@clisp.org>
78572
78573         * modules/strstr (Files): Add m4/mbrtowc.m4.
78574         (Depends-on): Add mbuiter.
78575
78576 2005-08-17  Bruno Haible  <bruno@clisp.org>
78577
78578         * modules/strcasestr: New file.
78579         * MODULES.html.sh (String handling, based on ANSI C 89): Add
78580         strcasestr.
78581
78582 2005-08-17  Bruno Haible  <bruno@clisp.org>
78583
78584         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
78585
78586 2005-08-17  Bruno Haible  <bruno@clisp.org>
78587
78588         * modules/mbuiter: New file.
78589         * MODULES.html.sh (Extended multibyte and wide character utilities):
78590         Add mbuiter.
78591
78592 2005-08-17  Bruno Haible  <bruno@clisp.org>
78593
78594         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
78595         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
78596
78597 2005-08-17  Bruno Haible  <bruno@clisp.org>
78598
78599         * m4/strcasestr.m4: New file.
78600
78601 2005-08-17  Bruno Haible  <bruno@clisp.org>
78602
78603         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
78604         * lib/strstr.c: Completely rewritten, with multibyte locale support.
78605
78606 2005-08-17  Bruno Haible  <bruno@clisp.org>
78607
78608         * lib/strcasestr.h: New file.
78609         * lib/strcasestr.c: New file.
78610
78611 2005-08-17  Bruno Haible  <bruno@clisp.org>
78612
78613         * lib/strcasecmp.c: Use mbuiter.h.
78614
78615 2005-08-17  Bruno Haible  <bruno@clisp.org>
78616
78617         * lib/mbuiter.h: New file.
78618
78619 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78620
78621         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
78622         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
78623         and gl_GETOPT are both invoked via different paths (as happens
78624         with GNU tar CVS because it uses both argp and getopt), the former
78625         wins.
78626
78627 2005-08-16  Bruno Haible  <bruno@clisp.org>
78628
78629         * modules/tls: New file.
78630         * MODULES.html.sh (Multithreading): Add tls.
78631
78632 2005-08-16  Bruno Haible  <bruno@clisp.org>
78633
78634         * modules/strnlen1: New file.
78635         * MODULES.html.sh (String handling): Add strnlen1.
78636
78637 2005-08-16  Bruno Haible  <bruno@clisp.org>
78638
78639         * modules/strcase (Files): Add m4/mbrtowc.m4.
78640         (Depends-on): Add strnlen1, mbchar.
78641
78642 2005-08-16  Bruno Haible  <bruno@clisp.org>
78643
78644         * modules/mbiter: New file.
78645         * MODULES.html.sh (Extended multibyte and wide character utilities):
78646         Add mbiter.
78647
78648 2005-08-16  Bruno Haible  <bruno@clisp.org>
78649
78650         * modules/mbfile: New file.
78651         * MODULES.html.sh (Extended multibyte and wide character utilities):
78652         Add mbfile.
78653
78654 2005-08-16  Bruno Haible  <bruno@clisp.org>
78655
78656         * modules/mbchar: New file.
78657         * MODULES.html.sh (Extended multibyte and wide character utilities):
78658         New section.
78659
78660 2005-08-16  Bruno Haible  <bruno@clisp.org>
78661
78662         * m4/tls.m4: New file, from GNU gettext.
78663
78664 2005-08-16  Bruno Haible  <bruno@clisp.org>
78665
78666         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
78667         always.
78668         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
78669
78670 2005-08-16  Bruno Haible  <bruno@clisp.org>
78671
78672         * m4/mbiter.m4: New file.
78673
78674 2005-08-16  Bruno Haible  <bruno@clisp.org>
78675
78676         * m4/mbfile.m4: New file.
78677
78678 2005-08-16  Bruno Haible  <bruno@clisp.org>
78679
78680         * m4/mbchar.m4: New file.
78681
78682 2005-08-16  Bruno Haible  <bruno@clisp.org>
78683
78684         * lib/tls.h: New file, from GNU gettext.
78685         * lib/tls.c: New file, from GNU gettext.
78686
78687 2005-08-16  Bruno Haible  <bruno@clisp.org>
78688
78689         * lib/strnlen1.h: New file.
78690         * lib/strnlen1.c: New file.
78691
78692 2005-08-16  Bruno Haible  <bruno@clisp.org>
78693
78694         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
78695         (mbi_init): Update.
78696         (mbi_avail, mbi_advance): Let the iteration end before the terminating
78697         NUL byte, not after it.
78698
78699 2005-08-16  Bruno Haible  <bruno@clisp.org>
78700
78701         * lib/strcase.h (strcasecmp): Add note in comments.
78702         * lib/strncasecmp.c: Use code from strcasecmp.c.
78703         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
78704         (strcasecmp): Work correctly in multibyte locales.
78705
78706 2005-08-16  Bruno Haible  <bruno@clisp.org>
78707
78708         * lib/mbiter.h: New file.
78709
78710 2005-08-16  Bruno Haible  <bruno@clisp.org>
78711
78712         * lib/mbfile.h: New file.
78713
78714 2005-08-16  Bruno Haible  <bruno@clisp.org>
78715
78716         * lib/mbchar.h: New file.
78717         * lib/mbchar.c: New file.
78718
78719 2005-08-16  Bruno Haible  <bruno@clisp.org>
78720
78721         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
78722         the valid ones. Makes the comparison operations transitive:
78723         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
78724         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
78725
78726 2005-08-15  Simon Josefsson  <jas@extundo.com>
78727
78728         * modules/ssize_t (License): Change to 'unlimited'.
78729
78730         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
78731
78732 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78733
78734         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
78735         Add comments for each pending glibc patch.
78736
78737 2005-08-15  Bruno Haible  <bruno@clisp.org>
78738
78739         * lib/regex.h (__restrict_arr): Don't define to __restrict if
78740         __cplusplus is defined.
78741
78742 2005-08-14  Jim Meyering  <jim@meyering.net>
78743
78744         Sync from coreutils.
78745
78746         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
78747         Use the hash-table-based cycle-detection code not just when
78748         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
78749         Reported by James Youngman in
78750         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
78751         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
78752         FTS_TIGHT_CYCLE_CHECK.
78753         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
78754         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
78755         once again.
78756         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
78757         * lib/fts.c (fd_safer): Remove decl.
78758         Include fcntl--.h rather than unistd-safer.h
78759         (fts_safe_changedir): Don't call fd_safer; no longer needed
78760         now that we include fcntl--.h.
78761
78762 2005-08-12  Simon Josefsson  <jas@extundo.com>
78763
78764         * modules/getndelim2: Use ssize_t module.
78765         * modules/getnline: Likewise.
78766         * modules/safe-read: Likewise.
78767         * modules/xreadlink: Likewise.
78768
78769         * modules/ssize_t: New file.
78770
78771 2005-08-12  Simon Josefsson  <jas@extundo.com>
78772
78773         * m4/readline.m4: Look for termcap, curses or ncurses if required.
78774
78775 2005-08-12  Simon Josefsson  <jas@extundo.com>
78776
78777         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78778         ssize_t.
78779
78780 2005-08-12  Simon Josefsson  <jas@extundo.com>
78781
78782         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
78783         readline, getdelim and check_version.
78784         (Support for systems lacking ISO C 99: Sizes of integer types):
78785         Add size_max.
78786
78787 2005-08-12  Bruno Haible  <bruno@clisp.org>
78788
78789         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
78790
78791 2005-08-11  Simon Josefsson  <jas@extundo.com>
78792
78793         * modules/readline: New file.
78794
78795         * modules/strnlen (Files): Add strnlen.h.
78796
78797 2005-08-11  Simon Josefsson  <jas@extundo.com>
78798
78799         * m4/readline.m4: New file.
78800
78801 2005-08-11  Simon Josefsson  <jas@extundo.com>
78802
78803         * lib/readline.h, readline.c: New file.
78804
78805 2005-08-11  Simon Josefsson  <jas@extundo.com>
78806
78807         * doc/gnulib.texi (Initial import, Finishing touches): Mention
78808         gl_AVOID.
78809
78810 2005-08-11  Bruno Haible  <bruno@clisp.org>
78811
78812         * lib/strnlen.h (strnlen): Change parameter name to match comment.
78813
78814 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
78815
78816         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
78817
78818 2005-08-10  Simon Josefsson  <jas@extundo.com>
78819
78820         * tests/test-iconvme.c: New file.
78821
78822 2005-08-10  Simon Josefsson  <jas@extundo.com>
78823
78824         * m4/strnlen.m4: New file.
78825
78826         * m4/strndup.m4: Don't check for strnlen declaration, done in
78827         strnlen.m4.
78828
78829 2005-08-10  Simon Josefsson  <jas@extundo.com>
78830
78831         * lib/strndup.c: Use strnlen.h.
78832
78833         * lib/strnlen.h: New file.
78834
78835 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78836
78837         * README: Typos.
78838
78839 2005-08-02  Simon Josefsson  <jas@extundo.com>
78840
78841         * modules/readline: New file.
78842
78843 2005-08-02  Simon Josefsson  <jas@extundo.com>
78844
78845         * modules/getdelim: New file.
78846
78847         * modules/getline: Rewrite, don't use getndelim2.
78848
78849 2005-08-02  Simon Josefsson  <jas@extundo.com>
78850
78851         * m4/getline.m4: Separate out getdelim stuff into separate module.
78852
78853         * m4/getdelim.m4: New file.
78854
78855 2005-08-02  Simon Josefsson  <jas@extundo.com>
78856
78857         * lib/getline.h, getline.c: Rewrite.
78858
78859         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
78860
78861 2005-07-31  Bruno Haible  <bruno@clisp.org>
78862
78863         * lib/lock.h (gl_lock_initializer): New macro.
78864         (gl_lock_define_initialized): Use it.
78865         (gl_rwlock_initializer): New macro.
78866         (gl_rwlock_define_initialized): Use it.
78867         (gl_recursive_lock_initializer): New macro.
78868         (gl_recursive_lock_define_initialized): Use it.
78869
78870 2005-07-30  Karl Berry  <karl@gnu.org>
78871
78872         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
78873         Report from Ben Pfaff, regarding getopt.
78874
78875 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
78876
78877         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
78878         normal way.
78879         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
78880         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
78881         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
78882         (gl_GETOPT): Use the new macros.  Most of the implementation
78883         is moved to the new macros.  This is for programs like Emacs
78884         that don't want all the functionality of gl_GETOPT.
78885
78886 2005-07-26  Bruno Haible  <bruno@clisp.org>
78887
78888         * m4/lock.m4: Update from GNU gettext.
78889
78890 2005-07-26  Bruno Haible  <bruno@clisp.org>
78891
78892         * lib/lock.h: Update from GNU gettext.
78893         * lib/lock.c: Update from GNU gettext.
78894
78895 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
78896
78897         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
78898         obsolescent AC_TRY_RUN.  Include the default includes files, for
78899         'exit'.
78900
78901 2005-07-24  Bruno Haible  <bruno@clisp.org>
78902
78903         * modules/visibility: New file.
78904         * MODULES.html.sh (Misc): Add visibility.
78905
78906 2005-07-24  Bruno Haible  <bruno@clisp.org>
78907
78908         * m4/visibility.m4: New file.
78909
78910 2005-07-24  Bruno Haible  <bruno@clisp.org>
78911
78912         * doc/visibility.texi: New file.
78913
78914 2005-07-22  Bruno Haible  <bruno@clisp.org>
78915
78916         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
78917         $(ALLOCA_H), redundant through BUILT_SOURCES.
78918         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
78919         redundant through BUILT_SOURCES.
78920         * modules/byteswap (Makefile.am): Remove explicit dependency on
78921         $(BYTESWAP_H), redundant through BUILT_SOURCES.
78922         * modules/fnmatch (Makefile.am): Remove explicit dependency on
78923         $(FNMATCH_H), redundant through BUILT_SOURCES.
78924         * modules/getopt (Makefile.am): Remove explicit dependency on
78925         $(GETOPT_H), redundant through BUILT_SOURCES.
78926         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
78927         redundant through BUILT_SOURCES.
78928         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
78929         redundant through BUILT_SOURCES.
78930         * modules/stdbool (Makefile.am): Remove explicit dependency on
78931         $(STDBOOL_H), redundant through BUILT_SOURCES.
78932         * modules/stdint (Makefile.am): Remove explicit dependency on
78933         $(STDINT_H), redundant through BUILT_SOURCES.
78934         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
78935         Remove explicit dependency on $(SYSEXITS_H).
78936         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
78937
78938 2005-07-18  Simon Josefsson  <jas@extundo.com>
78939
78940         * lib/check-version.c (check_version): Accept identical versions too.
78941
78942 2005-07-18  Bruno Haible  <bruno@clisp.org>
78943
78944         * modules/lock: New file.
78945         * MODULES.html.sh (Multithreading): New section.
78946
78947 2005-07-18  Bruno Haible  <bruno@clisp.org>
78948
78949         * m4/lock.m4: New file, from GNU gettext.
78950
78951 2005-07-18  Bruno Haible  <bruno@clisp.org>
78952
78953         * lib/lock.h: New file, from GNU gettext.
78954         * lib/lock.c: New file, from GNU gettext.
78955
78956 2005-07-18  Bruno Haible  <bruno@clisp.org>
78957
78958         * lib/lock.h (gl_once_t): New type.
78959         (gl_once_define, gl_once): New macros.
78960         * lib/lock.c (fresh_once): New variable.
78961         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
78962         functions.
78963
78964 2005-07-16  Simon Josefsson  <jas@extundo.com>
78965
78966         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
78967         workaround, suggested by Bruno.
78968
78969 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78970
78971         * modules/xalloc (Depends-on): Add xalloc-die.
78972         * modules/xvasprintf (Depends-on): Add xalloc-die.
78973
78974 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78975
78976         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
78977         with a minor change.
78978
78979 2005-07-15  Bruno Haible  <bruno@clisp.org>
78980
78981         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
78982         When using lib/poll.c, define poll as rpl_poll.
78983
78984 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
78985
78986         * modules/argp (Depends-on): Remove unlocked-io.
78987
78988 2005-07-14  Derek Price  <derek@ximbiot.com>
78989
78990         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
78991         for glob symlink bug.
78992
78993 2005-07-14  Bruno Haible  <bruno@clisp.org>
78994
78995         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
78996         Instead, test for *_unlocked function declarations directly.
78997
78998 2005-07-11  Simon Josefsson  <jas@extundo.com>
78999
79000         * modules/size_max: New file.
79001
79002         * modules/xsize: Depend on size_max module for size_max.m4.
79003
79004 2005-07-11  Simon Josefsson  <jas@extundo.com>
79005
79006         * lib/size_max.h: New file.
79007
79008 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
79009
79010         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
79011         copyright symbol and the year.
79012         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
79013         (version_etc_va): Use parameterized copyright notice.
79014         Reword to conform to the current GNU coding standards.
79015
79016 2005-07-11  Karl Berry  <karl@gnu.org>
79017
79018         * doc/gnulib.texi (Quoting): new node.
79019         (Initial import): more info, from Patrice.
79020
79021 2005-07-11  Bruno Haible  <bruno@clisp.org>
79022
79023         * gnulib-tool (func_usage): Document option --avoid.
79024         (Command line options): Handle --avoid.
79025         (func_acceptable): New function.
79026         (func_modules_transitive_closure): Use it.
79027
79028 2005-07-11  Bruno Haible  <bruno@clisp.org>
79029
79030         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
79031         Reported by Jim Meyering.
79032
79033 2005-07-10  Bruno Haible  <bruno@clisp.org>
79034
79035         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
79036         Needed when size_t is smaller than 'unsigned int'.
79037         Reported by Paul Eggert.
79038
79039 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79040
79041         * modules/argp (Depends-on): Add unlocked-io
79042
79043 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79044
79045         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
79046         block of defines.
79047
79048 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79049
79050         * config/srclist.txt: Comment out regcomp.c, since we have a porting
79051         fix now.
79052
79053 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
79054         and Paul Eggert  <eggert@cs.ucla.edu>
79055
79056         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
79057         in wint_t, not wchar_t.  Remove now-unnecessary cast.
79058
79059 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79060
79061         * modules/regex (Files): Add lib/regex_internal.c,
79062         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
79063         (Depends-on): Add extensions.
79064         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
79065
79066 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79067
79068         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
79069         pathconf.
79070         * m4/same.m4 (gl_SAME): Likewise.
79071         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
79072
79073         * m4/regex.m4: Adjust to new libc regex implementation.
79074         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
79075         all the .c and .h parts of (the new) regex.
79076         Quote the m4 stuff better.
79077         Check for RE_ICASE bug of old gnulib.
79078         Check for REG_STARTEND of recent libc.
79079         Rename local variables from jm_* to gl_*.
79080         Quote operand of "test -f".
79081         Say "recent enough" version of libc, not "version 2".
79082         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
79083         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
79084         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
79085         Remove check for btowc, isascii.
79086         Require AM_LANGINFO_CODESET.
79087
79088 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79089
79090         * lib/regex.c, regex.h: Sync from libc.
79091         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
79092         * lib/regexec.c:
79093         New files, synced from libc, except that regex_internal.h
79094         currently has a small porting fix.
79095
79096 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79097
79098         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
79099         regex_internal.c, regexec.c.
79100         Add regex_internal.h too, but as a comment, since the libc version
79101         is currently broken in gnulib mode.
79102
79103 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79104
79105         Support programs like Emacs that use gnulib but not gettext.
79106         * MODULES.html.sh (Internationalization functions): Add gettext-h.
79107         * modules/gettext-h: New file.
79108         * modules/gettext (Files): Remove lib/gettext.h.
79109         (Depends-on): Add gettext-h.
79110         (Makefile.am): Remove lib_SOURCES.
79111         * modules/argmatch, modules/c-stack, modules/closeout:
79112         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
79113         * modules/execute, modules/file-type, modules/getaddrinfo:
79114         * modules/getopt, modules/human, modules/javacomp:
79115         * modules/javaexec, modules/mkdir-p, modules/obstack:
79116         * modules/openat, modules/pagealign_alloc, modules/pipe:
79117         * modules/quotearg, modules/regex, modules/rpmatch:
79118         * modules/unicodeio, modules/userspec, modules/version-etc:
79119         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
79120         * modules/xsetenv:
79121         Depend on gettext-h, not gettext.
79122
79123 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79124
79125         * gnulib-tool (func_import): Add support for 'public domain' license.
79126         * modules/alloca, modules/atexit, modules/memmove:
79127         Now public domain, not GPL.
79128         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
79129         * modules/realloc, modules/strerror, modules/strtod:
79130         Now LGPL, not GPL.
79131
79132 2005-07-05  Bruno Haible  <bruno@clisp.org>
79133
79134         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
79135         autoconf CVS. Needed for mingw.
79136
79137 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79138
79139         Remove the dependency of the strftime module on the tzset module.
79140         * modules/strftime (Depends-on): Remove dependency on tzset.
79141
79142 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79143
79144         Remove the dependency of the strftime module on the tzset module.
79145         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
79146         gl_FUNC_TZSET_CLOBBER.
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         * lib/strftime.c (my_strftime)
79152         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
79153         Copy the input structure, to work around some of the bug with
79154         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
79155         Solaris releases, you should also use the tzset module, but we won't
79156         require it as a dependency any more since we don't want LGPLed code
79157         to depend on GPLed code.
79158
79159 2005-07-02  Jim Meyering  <jim@meyering.net>
79160
79161         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
79162         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
79163         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
79164         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
79165
79166 2005-07-02  Jim Meyering  <jim@meyering.net>
79167
79168         * lib/backupfile.c (backup_args): Change a `0' to NULL.
79169
79170 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79171
79172         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
79173         declares only 'struct timespec;' (!).
79174
79175 2005-07-01  Jim Meyering  <jim@meyering.net>
79176
79177         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
79178         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
79179         * lib/save-cwd.c, tempname.c:
79180         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79181         and don't include <sys/file.h>).
79182
79183 2005-06-29  Jim Meyering  <jim@meyering.net>
79184
79185         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
79186         type name.  Use the variable name instead.
79187         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
79188         Likewise.
79189
79190 2005-06-28  Simon Josefsson  <jas@extundo.com>
79191
79192         * modules/check-version (Files): Add check-version.m4.
79193
79194 2005-06-28  Simon Josefsson  <jas@extundo.com>
79195
79196         * m4/check-version.m4: New file, suggested by Jim Meyering
79197         <jim@meyering.net>.
79198
79199 2005-06-28  Simon Josefsson  <jas@extundo.com>
79200
79201         * lib/check-version.h, lib/check-version.c: New files.
79202
79203 2005-06-28  Simon Josefsson  <jas@extundo.com>
79204
79205         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
79206         collision with global variable.  Better indentation.  Don't
79207         increment buffer pointer beyond buffer end.  Based on comments
79208         from Paul Eggert <eggert@cs.ucla.edu>.
79209
79210         * lib/base64.h: Indent.
79211
79212 2005-06-28  Simon Josefsson  <jas@extundo.com>
79213
79214         * doc/gnulib.texi (Library version handling): New section.
79215
79216 2005-06-28  Jim Meyering  <jim@meyering.net>
79217
79218         * check-module (find_included_lib_files): Hard-code another
79219         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
79220         but modules/fts-lgpl (correctly) does not list those files.
79221
79222         * modules/canonicalize (Files): Add lib/pathmax.h.
79223
79224 2005-06-25  Simon Josefsson  <jas@extundo.com>
79225
79226         * modules/check-version: New file.
79227
79228 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
79229
79230         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
79231         initializer of struct addrinfo, as an indication that we don't
79232         care how many members the structure has.
79233
79234 2005-06-24  Derek Price  <derek@ximbiot.com>
79235         and Bruno Haible  <bruno@clisp.org>
79236
79237         Remove stat module & update lstat.
79238         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
79239         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79240         * m4/stat.m4: Remove this file.
79241
79242 2005-06-24  Derek Price  <derek@ximbiot.com>
79243         and Bruno Haible  <bruno@clisp.org>
79244
79245         Remove stat module & update lstat.
79246         * lib/stat.c: Remove this file...
79247         (slash_aware_lstat): ...moving this content and its support...
79248         * lib/lstat.c (rpl_lstat): ...into here.
79249         * lib/lstat.h: New file.
79250
79251 2005-06-24  Derek Price  <derek@ximbiot.com>
79252         and Bruno Haible  <bruno@clisp.org>
79253
79254         Remove stat module & update lstat.
79255         * config/srclist.txt (libc sources): Remove stat.
79256
79257 2005-06-24  Derek Price  <derek@ximbiot.com>
79258         and Bruno Haible  <bruno@clisp.org>
79259
79260         Remove stat module & update lstat.
79261         * MODULES.html.sh (stat): Remove.
79262         * MODULES.html: Regenerated.
79263         * modules/lstat (Description): Correct function name.
79264         (Files): Add "lstat.h".
79265         (Depends-on): Remove stat, add xalloc, stat-macros.
79266         * modules/stat: Remove this file.
79267         (Include): Add "lstat.h", remove <sys/stat.h>.
79268
79269 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
79270
79271         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
79272         (ranged_convert): Don't save conversion in a temporary struct.
79273         This causes a warning with GCC 4.0.0, and anyway in the typical
79274         case it's not worth the extra 100 bytes or so of code.
79275         (ranged_convert, __mktime_internal): When calling a function via a
79276         pointer P, use P () rather than (*P) (), as we now assume C89 or
79277         better.
79278
79279 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79280
79281         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
79282         "who -r" failed to give output.  Problem reported by Tim Waugh.
79283
79284         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
79285         (xcalloc): Use it to avoid needless tests.
79286         Problem reported by Jim Meyering.
79287
79288 2005-06-20  Derek Price  <derek@ximbiot.com>
79289
79290         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
79291         unnecessary for Autoconfs > 2.59c.
79292
79293 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79294
79295         * lib/argp.h (__option_is_short): Check upper limit of
79296         __key. Isprint() requires its argument to have the value
79297         of an unsigned char or EOF.
79298
79299 2005-06-16  Jim Meyering  <jim@meyering.net>
79300
79301         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
79302         when either N or S is zero.
79303
79304 2005-06-16  Derek Price  <derek@ximbiot.com>
79305
79306         * m4/bison.m4: Declare YACC & YFLAGS precious.
79307
79308 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
79309
79310         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
79311         multibyte string or pattern, fall back on unibyte matching.
79312         Problem reported by James Youngman.
79313
79314 2005-06-08  Bruno Haible  <bruno@clisp.org>
79315
79316         * modules/csharpcomp: New file.
79317         * MODULES.html.sh (C#): Add csharpcomp.
79318
79319 2005-06-08  Bruno Haible  <bruno@clisp.org>
79320
79321         * m4/csharpcomp.m4: New file, from GNU gettext.
79322
79323 2005-06-08  Bruno Haible  <bruno@clisp.org>
79324
79325         * lib/csharpcomp.h: New file, from GNU gettext.
79326         * lib/csharpcomp.c: New file, from GNU gettext.
79327         * lib/csharpcomp.sh.in: New file, from GNU gettext.
79328
79329 2005-06-08  Bruno Haible  <bruno@clisp.org>
79330
79331         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
79332         warning on mingw.
79333
79334 2005-06-07  Derek Price  <derek@ximbiot.com>
79335
79336         Sync from CVS.
79337         * lib/glob_.h: Indent nested #ifdef.
79338
79339 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79340
79341         Sync from coreutils.
79342         Use "file name" when talking about file names, instead of "filename"
79343         or "path", as per the GNU coding standards.
79344         * lib/mkdir-p.c: Renamed from makepath.c.
79345         (make_dir_parents): Renamed from make_path.  All callers changed.
79346         * lib/mkdir-p.h: Likewise.  All includers changed.
79347         * lib/filenamecat.c: Renamed from path-concat.c.
79348         (file_name_concat): Renamed from path_concat.  All callers changed.
79349         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
79350         * lib/filenamecat.h: Likewise.  All includers changed.
79351         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
79352         in comments or local variable names.
79353         * lib/basename.c: Likewise.
79354         * lib/canonicalize.c, canonicalize.h: Likewise.
79355         * lib/dirname.c, dirname.h: Likewise.
79356         * lib/euidaccess.c: Likewise.
79357         * lib/exclude.c: Likewise
79358         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
79359         * lib/fsusage.c, fsuage.h: Likewise.
79360         * lib/fts.c, fts_.h: Likewise.
79361         * lib/getcwd.c: Likewise.
79362         * lib/getloadavg.c: Likewise.
79363         * lib/mkstemp.c: Likewise.
79364         * lib/mountlist.c, mountlist.h: Likewise.
79365         * lib/openat.c, openat.h: Likewise.
79366         * lib/readlink-stub.c: Likewise.
79367         * lib/readutmp.c, readutmp.h: Likewise.
79368         * lib/rename.c: Likewise.
79369         * lib/rmdir.c: Likewise.
79370         * lib/same.c: Likewise.
79371         * lib/savedir.c: Likewise.
79372         * lib/stripslash.c: Likewise.
79373         * lib/tempname.c: Likewise.
79374         * lib/xreadlink.c: Likewise.
79375         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
79376         All uses changed.
79377         * lib/exclude.h: Likewise.
79378
79379         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
79380         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79381         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
79382         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79383         * lib/pathmax.h: Include <limits.h> unconditionally, since other
79384         files have been getting away with it for years (MORE/BSD 4.3
79385         is extinct now).
79386         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
79387         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79388
79389         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
79390         Define to 256, not 255, as per modern POSIX.
79391
79392 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79393
79394         Sync from coreutils.
79395         Use "file name" when talking about file names, instead of "filename"
79396         or "path", as per the GNU coding standards.
79397         * MODULES.html.sh: mkdir-p renamed from makepath.
79398         filenamecat renamed from path-concat.
79399         * modules/filenamecat: Renamed from modules/path-concat.
79400         (Files): filenamecat.h and filenamecat.c renamed from
79401         path-concat.h and path-concat.c.
79402         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
79403         (Include): filenamecat.h, not path-concat.h.
79404         * modules/mkdir-p: Renamed from modules/makepath.
79405         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
79406         makepath.c.
79407         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
79408         (Include): mkdir-p.h, not makepath.h.
79409
79410 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79411
79412         Sync from coreutils.
79413         * m4/mkdir-p.m4: Renamed from makepath.m4.
79414         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
79415         Rename files from makepath.c to mkdir-p.c, and from
79416         makepath.h to mkdir-p.h.
79417         * m4/filenamecat.m4: Renamed from path-concat.m4.
79418         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
79419         Rename files from path-concat.c to filenamecat.c,
79420         and from path-concat.h to filenamecat.h.
79421         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
79422         "file name" in local variables or comments.
79423         * m4/rename.m4: Likewise.
79424
79425 2005-06-01  Bruno Haible  <bruno@clisp.org>
79426
79427         * modules/csharpexec: New file.
79428         * MODULES.html.sh (C#): New section.
79429
79430 2005-06-01  Bruno Haible  <bruno@clisp.org>
79431
79432         * m4/csharp.m4: New file, from GNU gettext.
79433         * m4/csharpexec.m4: New file, from GNU gettext.
79434
79435 2005-06-01  Bruno Haible  <bruno@clisp.org>
79436
79437         * lib/csharpexec.h: New file, from GNU gettext.
79438         * lib/csharpexec.c: New file, from GNU gettext.
79439         * lib/csharpexec.sh.in: New file, from GNU gettext.
79440
79441 2005-05-31  Derek Price  <derek@ximbiot.com>
79442             Paul Eggert  <eggert@cs.ucla.edu>
79443
79444         Sync from cvs.
79445         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79446
79447 2005-05-31  Derek Price  <derek@ximbiot.com>
79448             Paul Eggert  <eggert@cs.ucla.edu>
79449
79450         Sync from cvs.
79451         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79452
79453 2005-05-29  Derek Price  <derek@ximbiot.com>
79454
79455         * config/srclist.txt (glob_.h, glob.c): Add these files.
79456
79457 2005-05-29  Derek Price  <derek@ximbiot.com>
79458
79459         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
79460         * modules/glob: New file.
79461         * modules/getlogin_r: Add link to POSIX spec in description.
79462
79463 2005-05-29  Derek Price  <derek@ximbiot.com>
79464             Paul Eggert  <eggert@cs.ucla.edu>
79465
79466         * m4/glob.m4: New file.
79467
79468 2005-05-29  Derek Price  <derek@ximbiot.com>
79469             Paul Eggert  <eggert@cs.ucla.edu>
79470
79471         * lib/glob_.h, lib/glob.c: New files.
79472
79473 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79474
79475         * modules/fts (Files): Remove m4/inttypes-pri.m4.
79476         * modules/fts-lgpl (Depends-on): Remove gettext.
79477
79478 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79479
79480         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
79481         and don't require gt_INTTYPES_PRI.
79482
79483 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79484
79485         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
79486
79487         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
79488         the configuration hassle isn't worth it.
79489         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
79490         (LONGEST_MODIFIER, PRIuMAX): Remove.
79491
79492 2005-05-27  Bruno Haible  <bruno@clisp.org>
79493
79494         * lib/getlogin_r.h: Remove second include of <stddef.h>.
79495
79496 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
79497
79498         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
79499         _POSIX_PTHREAD_SEMANTICS for Solaris.
79500
79501 2005-05-25  Derek Price  <derek@ximbiot.com>
79502
79503         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
79504
79505 2005-05-25  Derek Price  <derek@ximbiot.com>
79506             Paul Eggert  <eggert@cs.ucla.edu>
79507
79508         * modules/getlogin_r, m4/getlogin_r.m4: New files.
79509         * lib/getlogin_r.c, getlogin_r.h: New files.
79510
79511 2005-05-25  Bruno Haible  <bruno@clisp.org>
79512             Derek Price  <derek@ximbiot.com>
79513
79514         * lib/getlogin_r.h: Simplify API documentation.
79515
79516 2005-05-23  Derek Price  <derek@ximbiot.com>
79517
79518         * modules/minmax (Files): Add m4/minmax.m4.
79519         (configure.ac): Add gl_MINMAX.
79520
79521 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79522
79523         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
79524         so that unistd-safer.h (GPL'ed code) need not be included.
79525
79526 2005-05-22  Bruno Haible  <bruno@clisp.org>
79527
79528         * m4/minmax.m4: New file.
79529         Based on a patch by Derek Price <derek@ximbiot.com>.
79530
79531 2005-05-22  Bruno Haible  <bruno@clisp.org>
79532
79533         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
79534         (INT64_MIN): Fix definition.
79535         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
79536
79537         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
79538         NEED_SIGNED_INT_TYPES.
79539
79540         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
79541         HAVE_SYSTEM_INTTYPES.
79542
79543 2005-05-22  Bruno Haible  <bruno@clisp.org>
79544
79545         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
79546         Also include <sys/param.h> if it defines MIN, MAX.
79547         Based on a patch by Derek Price <derek@ximbiot.com>.
79548
79549 2005-05-21  Jim Meyering  <jim@meyering.net>
79550
79551         * modules/fts (Files): Add m4/inttypes-pri.m4.
79552         (Depends-on): Add lstat and remove gettext.  Alphabetize.
79553
79554 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79555
79556         New fts module.
79557         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
79558         (setup_dir, free_dir): New functions.
79559         (enter_dir, leave_dir): Define trivial
79560         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
79561         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
79562         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
79563         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
79564         Move to fts-cycle.c.
79565         (fts_open): Use setup_dir.
79566         (fts_close): Use free_dir.
79567         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
79568         This adds a label and some gotos, but the alternatives were messier.
79569         Check for memory allocation failure when entering a dir.
79570         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
79571         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
79572         (FTS): New member fts_cycle, that is a union that contains the
79573         old active_dir_ht and cycle_state.  All uses changed to mention
79574         fts_cycle.ht and fts_cycle.state.
79575         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
79576         fts.c, with the following changes:
79577         (setup_dir, free_dir): New functions.
79578         (enter_dir): Now returns bool.  Return true if successful, false
79579         if memory exhausted.  All callers changed.
79580         Do not bother partly cleaning up on
79581         memory allocation failure; that is free_dir's job.
79582         However, free ad if hash_insert fails, to avoid memory leak.
79583         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
79584         fts->fts_options to see which union member to use.
79585
79586 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79587
79588         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
79589         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
79590
79591 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
79594
79595 2005-05-20  Jim Meyering  <jim@meyering.net>
79596
79597         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
79598         Now a macro, to pacify GCC.
79599
79600 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79601
79602         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
79603         of -1.
79604
79605 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79606
79607         * lib/chown.c (rpl_chown): Return -1 on failure.
79608
79609 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79610
79611         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
79612         Don't check for stddef.h.
79613         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
79614         don't use its results.
79615         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
79616         since we include them unconditionally.  Don't require
79617         AM_STDBOOL_H, since stdbool is a prerequisite.
79618         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
79619         since we assume C89 or better.
79620         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
79621         as we don't use their results.
79622         Don't check for fchdir, memmove, memset, strrchr, as we use
79623         them unconditionally.
79624         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
79625         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
79626
79627 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79628
79629         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
79630         Include <stddef.h> unconditionally, since we assume C89 now.
79631         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
79632         * lib/fts.c: Include fts_.h first, to check interface.
79633         Do not include intprops.h; no longer needed.
79634         Include cycle-check.h and hash.h, since fts_.h no longer does.
79635         Remove unnecessary casts of closedir to void.
79636         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
79637         decide whether to decrement nlinks.
79638         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
79639         (FTS): Use struct hash_table * instead of Hash_table, so that
79640         we no longer need to include hash.h here.
79641
79642 2005-05-18  Jim Meyering  <jim@meyering.net>
79643
79644         * modules/dirfd (License): Change to LGPL.  Most of the code
79645         is already in the public domain.
79646
79647 2005-05-18  Jim Meyering  <jim@meyering.net>
79648
79649         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
79650         Reported by Yoann Vandoorselaere.
79651
79652 2005-05-17  Jim Meyering  <jim@meyering.net>
79653
79654         * m4/fts.m4: New file, from coreutils.
79655
79656 2005-05-17  Jim Meyering  <jim@meyering.net>
79657
79658         * lib/fts.c, lib/fts_.h: New files, from coreutils.
79659
79660 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79661
79662         Sync from coreutils.
79663         * m4/unlinkdir.m4: New file.
79664
79665 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79666
79667         Sync from coreutils.
79668         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
79669         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
79670         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
79671         White space changes only.
79672         * lib/makepath.c (make_path): Port to hosts where leading "//" is
79673         special.
79674         * lib/yesno.c: Include getline.h, not ctype.h.
79675         (yesno): Don't remove leading white space; POSIX doesn't allow it.
79676         Use getline to remove arbitrary restriction on response length.
79677
79678 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79679
79680         * config/srclist-update: Spell out "Street" in FSF postal
79681         mail address; this is the style the FSF seems to prefer.
79682
79683         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
79684         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
79685         this updates FSF postal mail address.
79686
79687         Sync from coreutils.
79688         * modules/unlinkdir: New file.
79689         * modules/yesno (Depends-on): Add getline.
79690         * MODULES.html.sh (File system functions): Add unlinkdir.
79691
79692 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79693
79694         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
79695         lib/strsep.h:
79696         Change the initial comment to refer to GPL, not LGPL.
79697         gnulib-tool will change it to LGPL as needed.
79698
79699         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
79700         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
79701         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
79702         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
79703         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
79704         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
79705         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
79706         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
79707         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
79708         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
79709         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
79710         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
79711         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
79712         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
79713         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
79714         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
79715         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
79716         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
79717         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
79718         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
79719         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
79720         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
79721         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
79722         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
79723         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
79724         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
79725         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
79726         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
79727         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
79728         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
79729         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
79730         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
79731         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
79732         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
79733         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
79734         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
79735         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
79736         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
79737         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
79738         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
79739         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
79740         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
79741         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
79742         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
79743         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
79744         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
79745         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
79746         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
79747         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
79748         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
79749         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79750         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
79751         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
79752         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
79753         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
79754         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
79755         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
79756         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
79757         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
79758         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
79759         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
79760         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
79761         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
79762         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
79763         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
79764         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
79765         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
79766         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
79767         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
79768         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
79769         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
79770         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
79771         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
79772         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
79773         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
79774         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
79775         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
79776         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
79777         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
79778         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
79779         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
79780         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
79781         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
79782         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
79783         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
79784         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
79785         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
79786         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
79787         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
79788         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
79789         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
79790         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
79791         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
79792         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
79793         lib/yesno.c, lib/yesno.h:
79794         Update FSF postal mail address.
79795
79796 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79797
79798         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
79799         tests/test-memmem.c, tests/test-stpncpy.c:
79800         Update FSF postal mail address.
79801
79802 2005-05-13  Bruno Haible  <bruno@clisp.org>
79803
79804         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
79805         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
79806         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
79807         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
79808         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
79809         Add support for 64-bit integers in the MSVC compiler.
79810
79811 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79812
79813         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
79814
79815 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
79816
79817         * gnulib-tool (func_import): Sort and uniquify recommended includes.
79818
79819 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
79820
79821         * doc/getdate.texi (General date syntax): Don't say that date
79822         date --iso-8601=ns generates acceptable dates; it doesn't yet.
79823         Problem reported by Nic Ferrier.
79824
79825 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79826
79827         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
79828         specified in ai_socktype. Fix invalid ai_protocol
79829         check. ai_protocol is usually set to 0 or depending on
79830         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
79831         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
79832         ai_socktype / ai_protocol in the returned addrinfo structure.
79833
79834 2005-05-10  Simon Josefsson  <jas@extundo.com>
79835
79836         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
79837         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79838
79839 2005-05-10  Karl Berry  <karl@gnu.org>
79840
79841         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
79842         (from http://www.gnu.org/licenses).
79843         * doc/COPYING.LIB: also rename to COPYING.LESSER.
79844         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
79845         fdl.texi suffices.
79846
79847 2005-05-10  Karl Berry  <karl@gnu.org>
79848
79849         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
79850         (COPYING.DOC): remove.
79851
79852         * config/srclist-update: new FSF address.
79853
79854 2005-05-10  Derek Price  <derek@ximbiot.com>
79855
79856         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
79857         possible.
79858
79859 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79860             Bruno Haible  <bruno@clisp.org>
79861
79862         * modules/inet_ntop: New file.
79863         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79864         inet_ntop.
79865
79866 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79867             Bruno Haible  <bruno@clisp.org>
79868
79869         * m4/inet_ntop.m4: New file.
79870
79871 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79872             Bruno Haible  <bruno@clisp.org>
79873
79874         * lib/inet_ntop.h: New file.
79875         * lib/inet_ntop.c: New file, from glibc with modifications.
79876
79877 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
79878
79879         * modules/time_r (License): Change to LGPL.
79880         * modules/extensions (License): Change to LGPL.  Actually,
79881         the license is more permissive than that, but currently gnulib-tool
79882         doesn't know how to handle more-permissive licenses.
79883
79884         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
79885         Problem reported by Dave Love.
79886
79887 2005-05-08  Jim Meyering  <jim@meyering.net>
79888
79889         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
79890         blank.
79891
79892 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79893
79894         * modules/argmatch (Depends-on): Add stdbool.
79895         * modules/backupfile (Depends-on): Likewise.
79896         * modules/chdir-long (Depends-on): Likewise.
79897         * modules/closeout (Depends-on): Likewise.
79898         * modules/cycle-check (Depends-on): Likewise.
79899         * modules/dirname (Depends-on): Likewise.
79900         * modules/fnmatch (Depends-on): Likewise.
79901         * modules/fsusage (Depends-on): Likewise.
79902         * modules/fwriteerror (Depends-on): Likewise.
79903         * modules/getcwd (Depends-on): Likewise.
79904         * modules/getloadavg (Depends-on): Likewise.
79905         * modules/hard-locale (Depends-on): Likewise.
79906         * modules/makepath (Depends-on): Likewise.
79907         * modules/mountlist (Depends-on): Likewise.
79908         * modules/nanosleep (Depends-on): Likewise.
79909         * modules/posixtm (Depends-on): Likewise.
79910         * modules/quotearg (Depends-on): Likewise.
79911         * modules/readtokens (Depends-on): Likewise.
79912         * modules/readtokens0 (Depends-on): Likewise.
79913         * modules/readutmp (Depends-on): Likewise.
79914         * modules/save-cwd (Depends-on): Likewise.
79915         * modules/strftime (Depends-on): Likewise.
79916         * modules/userspec (Depends-on): Likewise.
79917         * modules/utimecmp (Depends-on): Likewise.
79918         * modules/xgetcwd (Depends-on): Likewise.
79919         * modules/xnanosleep (Depends-on): Likewise.
79920         * modules/xstrtod (Depends-on): Likewise.
79921         * modules/yesno (Depends-on): Likewise.
79922
79923 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
79924
79925         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
79926         needless checks.
79927
79928 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79929
79930         Merge from coreutils.  Among other things,
79931         add bulletproofing for cases where stdin, stdout, or stderr are closed.
79932         * lib/fd-safer.c: New file.
79933         * lib/fcntl-safer.h, open-safer.c: Remove.
79934         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
79935         * lib/dup-safer.c: Include unistd-safer.h first.
79936         Don't include errno.h.
79937         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
79938         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
79939         * lib/file-type.c: Rely on file-type.h change.
79940         * lib/getloadavg.c: Include unistd-safer.h.
79941         (getloadavg): Use safer open.
79942         * lib/getusershell.c: Include "stdio-safer.h".
79943         (getusershell): Use safer fopen.
79944         * lib/long-options.c (long_options): Use NULL rather than 0.
79945         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
79946         'free'.
79947         * lib/modechange.c: Likewise.
79948         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
79949         (MODE_DONE): New constant.
79950         (struct mode_change): Remove 'next' member.
79951         (make_node_op_equals): New function; like the old one of the
79952         same name, except it allocates an array.
79953         (mode_compile, mode_create_from_ref): Use it.
79954         (mode_compile): Allocate result as an array, not a linked list.
79955         Parse octal string ourself, so that we catch mistakes like "+0".
79956         (mode_adjust): Arg is an array, not a linked list.
79957         * lib/modechange.c: Include stat-macros.h, xalloc.h.
79958         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
79959         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
79960         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
79961         Remove.  This is now stat-macros.h's job.
79962         (talloc): Remove.  All callers replaced by xalloc, so that
79963         our invokers don't have to worry about reporting memory failures.
79964         (make_node_op_equals): Remove.
79965         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79966         New constants.
79967         (struct mode_change): Moved here from modechange.h.
79968         (mode_append_entry): Remove.
79969         (mode_compile): Remove MASKED_OPS arg, since it encouraged
79970         apps to have incorrect behavior.  Use simpler algorithm for head
79971         and tail.  Don't futz with umask; that's now the job of mode_adjust.
79972         Detect more invalid usages rather than having somewhat-random behavior.
79973         Don't insert an "a=" action, as that leads to incorrect behavior.
79974         (mode_compile, mode_create_from_ref): Return NULL on error instead
79975         of an enum, since now there's only one way to have an error.  All
79976         callers changed.
79977         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
79978         at the correct time.  Simplify calculation of "+u" and its ilk.
79979         Don't mishandle "+X".
79980         (mode_free): Remove "register" and localize decls.
79981         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79982         (struct mode_change): Move to modechange.c; callers don't
79983         need to see this stuff.
79984         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
79985         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
79986         (mode_change, mode_adjust): Reflect the new signatures noted above.
79987         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
79988         that might redefine system include files.
79989         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
79990         (my_usleep): Use NULL rather than (void *) 0.
79991         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
79992         Use siginterrupt to specify that system calls should be interrupted.
79993         (rpl_nanosleep): Move initialization of suspended closer to call of
79994         my_usleep.
79995         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
79996         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
79997         (desirable_utmp_entry): New function.
79998         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
79999         using x2nrealloc, to simplify logic.
80000         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
80001         size calculation.  Do not assume utmp file is a regular file.
80002         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
80003         (READ_UTMP_CHECK_PIDS): New constant.
80004         * lib/save-cwd.c: Include unistd-safer.h.
80005         (save_cwd): Use fd_safer.
80006         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
80007         [!_LIBC] Include "stat-macros.h" instead.
80008         * lib/unistd-safer.h (fd_safer): New decl.
80009
80010 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80011
80012         * modules/getloadavg (Depends-on): Add unistd-safer.
80013         * modules/getusershell (Depends-on): Add stdio-safer.
80014         * modules/lstat (Depends-on): Remove xalloc.
80015         * modules/mkstemp (Depends-on): Add stat-macros.
80016         * modules/modechange (Depends-on): Remove xstrtol.
80017         Add stat-macros, xalloc.
80018         * modules/save-cwd (Depends-on): Add unistd-safer.
80019         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
80020         * modules/unistd-safer (Files): Add lib/fd-safer.c
80021         (Makefile.am): Remove lib_SOURCES.
80022
80023         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
80024         Remove fcntl-safer; unistd-safer supersedes it.
80025
80026 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80027
80028         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
80029         AC_HEADER_STAT.
80030         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
80031         (gl_PREREQ_CHOWN): Remove.
80032         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
80033         it.  Don't require AC_HEADER_STAT.
80034         (gl_PREREQ_LSTAT): Remove.
80035         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
80036         Don't require AC_HEADER_STAT.
80037         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
80038         (gl_PREREQ_RMDIR): Remove.
80039         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
80040         mention stat-macros.h or AC_HEADER_STAT, since we'll make
80041         the stat-macros module a prerequisite.
80042         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
80043         * m4/filemode.m4 (gl_FILEMODE): Likewise.
80044         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
80045         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
80046         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
80047         variable names.
80048         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
80049         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
80050         variable prefixes.
80051         * m4/fcntl-safer.m4: Remove.
80052         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
80053         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
80054         Invoke gl_PREREQ_FD_SAFER.
80055         (gl_PREREQ_FD_SAFER): New macro.
80056         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
80057         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
80058         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
80059         Remove duplicate call to AC_LIBOBJ(readutmp).
80060         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
80061
80062         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
80063         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
80064
80065 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80066
80067         * MODULES.html.sh (Misc): Add byteswap.
80068
80069 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80070
80071         * modules/getcwd (Depends-on): Add extensions.
80072         * modules/openat (Depends-on): Likewise.
80073
80074 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80075
80076         * modules/byteswap: New file.
80077
80078 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80079
80080         * m4/byteswap.m4: New file.
80081
80082 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80083
80084         * lib/byteswap_.h: New file.
80085
80086 2005-04-25  Karl Berry  <karl@gnu.org>
80087
80088         * m4/gettext.m4: Update from GNU gettext 0.14.4.
80089
80090 2005-04-25  Albert Chin  <china@thewrittenword.com>
80091
80092         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
80093         Toolkit C bug.
80094
80095 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
80096
80097         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
80098         (func_ln_if_changed): Remove forcibly for no error message
80099         in case file does not exist.
80100
80101 2005-04-19  Simon Josefsson  <jas@extundo.com>
80102
80103         * gnulib-tool (Options): Make --symlink mean --symbolic.
80104
80105 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
80106
80107         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
80108
80109 2005-04-16  Simon Josefsson  <jas@extundo.com>
80110
80111         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
80112
80113 2005-04-15  Simon Josefsson  <jas@extundo.com>
80114
80115         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
80116
80117 2005-04-15  Simon Josefsson  <jas@extundo.com>
80118
80119         * gnulib-tool: Rename --symlink to --symbolic.
80120
80121 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
80122
80123         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
80124         symbolic links to files instead of copying/moving.  Add --aux-dir,
80125         specifying directory relative --dir where auxiliary build tools
80126         are placed.
80127
80128 2005-04-14  Bruno Haible  <bruno@clisp.org>
80129
80130         * modules/allocsa (License): Change to LGPL.
80131         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
80132
80133 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80134
80135         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
80136         that "UTC +1 second" continues to work.  Problem reported
80137         by Dmitry V. Levin.
80138         (relunit_snumber): New rule.
80139         (relunit): Use it.
80140
80141 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80142
80143         * lib/getdate.y (universal_time_zone_table): New constant.
80144         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
80145         universal_time_zone_table.
80146         (lookup_zone): Prefer universal_time_zone_table to
80147         local_time_zone_table, so that "GMT" time stamps are allowed in
80148         London during the summer.  Problem reported by Ian Abbott.
80149
80150 2005-04-12  Jim Meyering  <jim@meyering.net>
80151
80152         * lib/human.c (humblock): Set *options even when returning due to
80153         xstrtoumax conversion failure.  Thanks to a used-uninitialized
80154         warning from gcc-4.
80155
80156 2005-04-09  Jim Meyering  <jim@meyering.net>
80157
80158         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
80159         -Wuninitialized: initialize tm0.tm_year.
80160
80161 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
80162
80163         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
80164         count, since there's no maximum.  All uses changed.
80165         Add member dsts_seen.
80166         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
80167         not being INT_MAX.
80168         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
80169         Use pc_rels_seen to decide whther a date is absolute.
80170
80171         * lib/getdate.y (number): Don't overwrite year.
80172         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
80173         check.
80174
80175 2005-04-02  Simon Josefsson  <jas@extundo.com>
80176
80177         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
80178         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
80179
80180 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
80181
80182         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
80183         where no absolute path name can be longer than PATH_MAX.
80184
80185 2005-03-27  Jim Meyering  <jim@meyering.net>
80186
80187         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
80188
80189 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
80190
80191         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
80192         "one's complement" -> "ones' complement" in comment, as per Knuth.
80193         "value of type" -> "type or expression" in comment.
80194         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
80195
80196 2005-03-26  Jim Meyering  <jim@meyering.net>
80197
80198         Comment nits.
80199         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
80200         Correct typos: s/or/of/.
80201
80202 2005-03-26  Jim Meyering  <jim@meyering.net>
80203
80204         * modules/check-include-files: Move to ../ and rename to...
80205         * check-module: ...this.
80206
80207 2005-03-25  Jim Meyering  <jim@meyering.net>
80208
80209         * modules/xvasprintf (Files): Add xalloc.h.
80210
80211 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
80212
80213         * modules/gettext (Files): config/config.rpath ->
80214         build-aux/config.rpath
80215         * modules/iconv (Files): Likewise.
80216         Problem reported by Oskar Liljeblad.
80217
80218 2005-03-23  Jim Meyering  <jim@meyering.net>
80219
80220         * modules/check-include-files: New script to check for
80221         missing dependencies, multiple includes, etc.
80222
80223         * modules/c-strtold (Depends-on): Add xalloc.
80224         * modules/c-strtod (Depends-on): Add xalloc.
80225         * modules/hash (Depends-on): Add xalloc.
80226         (Files): Remove lib/xalloc.h.
80227
80228         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
80229         * modules/userspec (Files): Add lib/inttostr.h.
80230
80231 2005-03-23  Jim Meyering  <jim@meyering.net>
80232
80233         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
80234
80235 2005-03-22  Jim Meyering  <jim@meyering.net>
80236
80237         * modules/stat-macros: New module.
80238         * modules/canonicalize, modules/euidaccess, modules/file-type,
80239         * modules/filemode, modules/lchown, modules/makepath,
80240         * modules/rmdir, modules/stat: Depend on new stat-macros module
80241         rather than listing lib/stat-macros.h manually.
80242         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
80243
80244 2005-03-22  Jim Meyering  <jim@meyering.net>
80245
80246         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
80247
80248 2005-03-22  Bruno Haible  <bruno@clisp.org>
80249
80250         * config/srclist.txt: Replace target directory 'config' with
80251         'build-aux'.
80252         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
80253         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
80254         ../build-aux/.
80255
80256 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
80257
80258         * modules/chdir-long (Depends-on): Add mempcpy.
80259
80260         * modules/acl, modules/backupfile, modules/c-strtod,
80261         modules/c-strtold, modules/canon-host, modules/canonicalize,
80262         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
80263         modules/exclude, modules/exitfail, modules/file-type,
80264         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
80265         modules/getdate, modules/getline, modules/getpagesize,
80266         modules/getpass, modules/getugroups, modules/group-member,
80267         modules/hard-locale, modules/hash, modules/human, modules/idcache,
80268         modules/inttostr, modules/long-options, modules/makepath,
80269         modules/md5, modules/memcasecmp, modules/memcoll,
80270         modules/modechange, modules/mountlist, modules/path-concat,
80271         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
80272         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
80273         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
80274         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
80275         modules/strftime, modules/strndup, modules/strverscmp,
80276         modules/timespec, modules/unlocked-io, modules/userspec,
80277         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
80278         modules/yesno:
80279         Remove lib_SOURCES line from Makefile.am section, as this is now
80280         done automatically by the corresponding Autoconf macro.
80281
80282 2005-03-21  Jim Meyering  <jim@meyering.net>
80283
80284         Changes imported from coreutils.
80285
80286         * lib/cycle-check.c: Don't include xalloc.h.
80287
80288         * lib/path-concat.c: Don't include assert.h.
80289         (path_concat): Remove assertion that would have triggered
80290         for ABASE starting with more than one slash.
80291         Reported by Andreas Schwab.
80292
80293         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
80294         properly when ABASE is an absolute file name.
80295         Correct the description of this function.
80296         Include <assert.h>.
80297         Add an assertion and a test driver.
80298         This fixes a bug introduced on 2004-07-02.
80299         Andreas Schwab reported the resulting failure of cp --parents:
80300         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
80301
80302 2005-03-21  Jim Meyering  <jim@meyering.net>
80303
80304         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
80305         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
80306
80307 2005-03-21  Jim Meyering  <jim@meyering.net>
80308         and  Paul Eggert  <eggert@cs.ucla.edu>
80309
80310         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
80311         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
80312         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
80313         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
80314         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
80315         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
80316         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
80317         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
80318         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
80319         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
80320         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
80321         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
80322         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
80323         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
80324         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
80325         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
80326         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
80327         for these modules.
80328
80329 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
80330
80331         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
80332         (which shouldn't happen), generate nothing instead of returning 0
80333         immediately, so that nstrftime (NULL, ...) doesn't return 0.
80334
80335 2005-03-16  Bruno Haible  <bruno@clisp.org>
80336
80337         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
80338         HAVE_LONGLONG_64BIT.
80339
80340 2005-03-16  Bruno Haible  <bruno@clisp.org>
80341
80342         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
80343         HAVE_LONGLONG_64BIT.
80344
80345 2005-03-16  Bruno Haible  <bruno@clisp.org>
80346
80347         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
80348         HAVE_LONGLONG_64BIT.
80349
80350 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80351
80352         * lib/strftime.c (my_strftime): Prepend space to format so that we can
80353         reliably distinguish strftime failure from empty output on POSIX
80354         hosts.
80355
80356 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80357
80358         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
80359         (iconv_string): Don't guess a size-zero buffer, as that might cause
80360         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
80361         result would be 'too large', where 'too large' is (heuristically)
80362         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
80363         overflow concerns.  This will prevent some unwanted malloc failures
80364         when the inputs are very large.
80365
80366 2005-03-15  Karl Berry  <karl@gnu.org>
80367
80368         * config/srclist.txt (config.rpath): from gettext.
80369         * config/config.rpath: update.
80370
80371 2005-03-15  Bruno Haible  <bruno@clisp.org>
80372
80373         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
80374         to 'negate'.
80375
80376         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
80377         variable.
80378
80379         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
80380         results.
80381
80382 2005-03-14  Simon Josefsson  <jas@extundo.com>
80383
80384         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
80385         <fx@gnu.org>.
80386
80387 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
80388
80389         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
80390         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
80391         intprops.h.
80392         * lib/strtol.c: Likewise.
80393
80394 2005-03-14  Jim Meyering  <jim@meyering.net>
80395
80396         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
80397         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
80398         to be nonzero so that we (and caller) can detect the difference
80399         between a valid zero-length expansion and an error return, even
80400         when the underlying strftime fails before writing anything into
80401         that location.
80402
80403 2005-03-14  Bruno Haible  <bruno@clisp.org>
80404
80405         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
80406         Update from GNU gettext 0.14.3.
80407
80408 2005-03-10  Jim Meyering  <jim@meyering.net>
80409
80410         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
80411
80412 2005-03-10  Jim Meyering  <jim@meyering.net>
80413
80414         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
80415         so that this module works on systems without fchdir.
80416
80417 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80418
80419         Factor int-properties macros into a single file, except for
80420         glibc-related files.
80421         * lib/intprops.h: New file.
80422         * lib/getloadavg.c: Include it instead of limits.h.
80423         (INT_STRLEN_BOUND): Remove.
80424         * lib/human.c: Include intprops.h.
80425         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
80426         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
80427         302/1000.
80428         * lib/inttostr.h: Include intprops.h instead of limits.h.
80429         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
80430         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
80431         for consistency with intprops.h.
80432         (time_t_is_integer, twos_complement_arithmetic): Use them.
80433         * lib/sig2str.h: Include <signal.h>, intprops.h.
80434         (INT_STRLEN_BOUND): Remove.
80435         * lib/strftime.c (TYPE_SIGNED): Remove.
80436         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
80437         * lib/strtol.c: Adjust comments to match intprops.h.
80438         * lib/userspec.c: Include intprops.h.
80439         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
80440         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
80441         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
80442         instead of rolling our own expressions.
80443         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
80444
80445         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
80446         instead of int.
80447         (my_strftime): Do not mishandle years close to INT_MAX, by doing
80448         the right thing even if adding 1900 would overflow.  Similarly
80449         for tm_mon + 1 and tm_yday + 1.
80450         Make %Y always equivalent to %C%y, and similarly for %G and %g.
80451         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
80452         (DO_SIGNED_NUMBER): New macro.
80453         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
80454
80455 2005-03-07  Bruno Haible  <bruno@clisp.org>
80456
80457         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
80458
80459 2005-03-07  Bruno Haible  <bruno@clisp.org>
80460
80461         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
80462
80463 2005-03-04  Derek R. Price  <derek@ximbiot.com>
80464
80465         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
80466         (func_import): Only replace files via --import when they have actually
80467         changed.
80468
80469 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80470
80471         * m4/mmap-anon.m4: New file.
80472         * m4/pagealign_alloc.m4: New file.
80473
80474 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80475             Bruno Haible  <bruno@clisp.org>
80476
80477         * modules/pagealign_alloc: New file.
80478         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
80479
80480 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80481             Bruno Haible  <bruno@clisp.org>
80482
80483         * lib/pagealign_alloc.h: New file.
80484         * lib/pagealign_alloc.c: New file.
80485
80486 2005-03-03  Bruno Haible  <bruno@clisp.org>
80487
80488         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
80489         Use an all-permissive copyright notice, recommended by RMS.
80490
80491 2005-03-02  Bruno Haible  <bruno@clisp.org>
80492
80493         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
80494         of AIX, the replacement has to be done only after <string.h> is
80495         included, therefore not in config.h. stpncpy.h does the replacement,
80496         and stpncpy.c uses it.
80497
80498 2005-03-02  Bruno Haible  <bruno@clisp.org>
80499
80500         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
80501         stpncpy.c uses it.
80502
80503 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80504
80505         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
80506         The workaround isn't strictly needed for POSIX conformance, and
80507         it's too much of a pain to configure and maintain.  We'll ask
80508         people to fix their kernels instead.
80509         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
80510         (NANOSLEEP_BUG_WORKAROUND): Remove.
80511         (xnanosleep): Remove the workaround.
80512
80513 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80514
80515         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
80516         Reported by Derek Price.
80517         (Include): Add "timespec.h".
80518
80519         * modules/xnanosleep (Depends-on): Remove gethrxtime.
80520
80521 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80522
80523         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
80524         to detect nanosleep bug.
80525
80526 2005-03-01  Bruno Haible  <bruno@clisp.org>
80527
80528         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
80529
80530 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80531
80532         * modules/gethrxtime: New file.
80533         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
80534         (Depends-on): Add gethrxtime.
80535         (configure.ac): Add gl_XNANOSLEEP.
80536         (Makefile.am): Remove lib_SOURCES line.
80537
80538 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80539
80540         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
80541         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
80542
80543 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80544
80545         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
80546         * lib/timespec.h (gettime): Return void, since it always
80547         succeeds now.  All uses changed.
80548         * lib/gettime.c (gettime): Likewise.
80549         [HAVE_NANOTIME]: Prefer nanotime.
80550         Assume gettimeofday succeeds, as POSIX requires.
80551         Assime time () succeeds, since other code already does.
80552         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
80553         (timespec_subtract): Remove.
80554         (NANOSLEEP_BUG_WORKAROUND): New constant.
80555         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
80556         things considerably.  Use it only on GNU/Linux hosts, since the
80557         workaround shouldn't be needed elsewhere.
80558
80559 2005-02-24  Bruno Haible  <bruno@clisp.org>
80560
80561         * modules/gettext (Files): Add m4/glibc2.m4.
80562
80563 2005-02-24  Bruno Haible  <bruno@clisp.org>
80564
80565         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
80566         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
80567         * m4/progtest.m4:
80568         Update from GNU gettext 0.14.2.
80569         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
80570
80571 2005-02-24  Bruno Haible  <bruno@clisp.org>
80572
80573         * lib/localcharset.c: Update from GNU gettext 0.14.2.
80574         * lib/config.charset: Update from GNU gettext 0.14.2.
80575
80576 2005-02-24  Bruno Haible  <bruno@clisp.org>
80577
80578         * lib/gettext.h: Update from GNU gettext 0.14.2.
80579
80580 2005-02-23  Simon Josefsson  <jas@extundo.com>
80581
80582         * m4/iconvme.m4: New file.
80583
80584 2005-02-23  Jim Meyering  <jim@meyering.net>
80585
80586         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
80587         change.
80588         Thanks to Bruno Haible for catching it.
80589
80590 2005-02-22  Simon Josefsson  <jas@extundo.com>
80591
80592         * modules/iconvme: New file.
80593
80594         * MODULES.html.sh: Add iconvme.
80595
80596 2005-02-22  Simon Josefsson  <jas@extundo.com>
80597
80598         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
80599
80600 2005-02-22  Simon Josefsson  <jas@extundo.com>
80601
80602         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
80603
80604 2005-02-22  Jim Meyering  <jim@meyering.net>
80605
80606         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
80607         s/ifndef/ifdef/.
80608
80609 2005-02-20  Neil Conway  <neilc@samurai.com>
80610
80611         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
80612         returned by OSX/Darwin if the specified buffer is not large
80613         enough for the hostname.
80614
80615 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80616
80617         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
80618         pass it to _help, otherwise the latter coredumps trying to
80619         dereference state.root_argp.
80620
80621 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80622
80623         * modules/chdir-long (Depends-on): Add memrchr.
80624         * modules/memrchr (Files): Add lib/memrchr.h.
80625         (Include): "memrchr.h".
80626
80627 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80628
80629         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
80630
80631 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80632
80633         * lib/memrchr.h: New file.
80634         * lib/chdir-long.c: Include it.
80635         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
80636         Don't bother including stddef.h.
80637
80638 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
80639
80640         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
80641         inclusion.
80642         Include <sys/types.h>, for dev_t.
80643         (ME_DUMMY, ME_REMOTE): Move from here....
80644         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
80645         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
80646         Dmitry V. Levin.
80647         Include mountlist.h first, to test the interface.
80648
80649 2005-01-29  Bruno Haible  <bruno@clisp.org>
80650
80651         * lib/progname.c (program_name): Initialize.
80652         Needed when linking statically on MacOS X.
80653
80654 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80655
80656         Sync from coreutils.
80657         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
80658         (Depends-on): Add c-strtod.
80659         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
80660
80661 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80662
80663         Sync from coreutils.
80664         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
80665
80666         Remove files that are specific to coreutils.
80667         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
80668
80669 2005-01-28  Bruno Haible  <bruno@clisp.org>
80670
80671         * modules/javacomp: New file.
80672         * MODULES.html.sh (Java): Add javacomp.
80673
80674 2005-01-28  Bruno Haible  <bruno@clisp.org>
80675
80676         * m4/javacomp.m4: New file, from GNU gettext.
80677
80678 2005-01-28  Bruno Haible  <bruno@clisp.org>
80679
80680         * lib/javacomp.sh.in: New file, from GNU gettext.
80681         * lib/javacomp.h: New file, from GNU gettext.
80682         * lib/javacomp.c: New file, from GNU gettext.
80683
80684 2005-01-26  Simon Josefsson  <jas@extundo.com>
80685
80686         * lib/gai_strerror.c: Use GPL in header.
80687
80688 2005-01-26  Bruno Haible  <bruno@clisp.org>
80689
80690         * modules/javaexec: New file.
80691         * MODULES.html.sh (Java): Add javaexec.
80692
80693 2005-01-26  Bruno Haible  <bruno@clisp.org>
80694
80695         * m4/javaexec.m4: New file, from GNU gettext.
80696
80697 2005-01-26  Bruno Haible  <bruno@clisp.org>
80698
80699         * lib/javaexec.sh.in: New file, from GNU gettext.
80700         * lib/javaexec.h: New file, from GNU gettext.
80701         * lib/javaexec.c: New file, from GNU gettext.
80702
80703 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80704
80705         * modules/lchown (Depends-on): Remove lchown.h
80706
80707 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80708
80709         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
80710         must be defined if the header file was not found, in order
80711         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
80712
80713 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80714
80715         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
80716         initializers for struct pentry_state.
80717         (__argp_error): Check return value of __asprintf
80718         (__argp_failure): Translate error message
80719
80720         * lib/argp-parse.c: Removed braces around the expansion of N_()
80721
80722 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80723
80724         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
80725         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
80726         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
80727         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
80728         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
80729         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
80730         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
80731         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
80732         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
80733         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
80734         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
80735         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
80736         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
80737         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
80738         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
80739         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
80740         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
80741         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
80742         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
80743         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
80744         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
80745         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
80746         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
80747         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
80748         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
80749         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
80750         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
80751         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
80752         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
80753         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
80754         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
80755         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
80756         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
80757         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
80758         xstrtol.m4, xstrtoumax.m4, yesno.m4:
80759         Use an all-permissive copyright notice, recommended by RMS.
80760
80761 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
80762
80763         * modules/chdir-long (Depends-on): Remove mempcpy.
80764
80765 2005-01-21  Jim Meyering  <jim@meyering.net>
80766
80767         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
80768         same value as for Solaris 9.
80769
80770         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
80771         component length.  This included changing the parameter to be
80772         of type `char *' rather than `char const *'.
80773         * lib/chdir-long.h (chdir_long): Update prototype.
80774
80775         * lib/openat.c (fdopendir, fstatat): New functions.
80776         * lib/openat.h: Include headers required for use of DIR and struct
80777         stat.
80778         [AT_SYMLINK_NOFOLLOW]: Define.
80779         (fdopendir, fstatat): Add prototypes.
80780
80781 2005-01-21  Bruno Haible  <bruno@clisp.org>
80782
80783         * modules/classpath: New file.
80784         * MODULES.html.sh (Java): Add classpath.
80785
80786 2005-01-21  Bruno Haible  <bruno@clisp.org>
80787
80788         * lib/classpath.h: New file, from GNU gettext.
80789         * lib/classpath.c: New file, from GNU gettext.
80790
80791 2005-01-20  Simon Josefsson  <jas@extundo.com>
80792
80793         * modules/version-etc-fsf: New file.
80794
80795 2005-01-20  Simon Josefsson  <jas@extundo.com>
80796
80797         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
80798         * lib/version-etc.c: Remove version_etc_copyright.
80799         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
80800         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
80801
80802 2005-01-20  Simon Josefsson  <jas@extundo.com>
80803
80804         * lib/base64.h (isbase64): Add.
80805
80806         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
80807         using a unsigned prototype, don't inline.
80808         (base64_decode): Use it.
80809
80810 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80811
80812         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
80813         it.
80814
80815 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80816
80817         * lib/save-cwd.c (save_cwd): Remove code to support the case
80818         where fchdir is missing or flaky.
80819
80820 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80821
80822         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
80823
80824 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
80825
80826         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
80827         AC_LIBSOURCES now does this.
80828         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
80829         with new ullong_max module.
80830
80831 2005-01-19  Bruno Haible  <bruno@clisp.org>
80832
80833         * modules/sh-quote: New file.
80834         * MODULES.html.sh (Executing programs): Add sh-quote.
80835
80836 2005-01-19  Bruno Haible  <bruno@clisp.org>
80837
80838         * lib/sh-quote.h: New file, from GNU gettext.
80839         * lib/sh-quote.c: New file, from GNU gettext.
80840
80841 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80842
80843         Merge from coreutils.
80844         * m4/ullong_max.m4: New file.
80845         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
80846         (gl_MACROS): Assume localeconv exists.
80847
80848 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80849
80850         Merge changes from coreutils, as described below in several
80851         changelogs dated today.
80852
80853         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
80854         (O_DIRECTORY): Remove; not needed here, since "." must be
80855         a directory.  All uses removed.
80856         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
80857         universal on Suns, and we also need to test for IRIX.
80858         Revamp code to use 'if' rather than '#if'.
80859         Avoid unnecessary comparison of cwd->desc to 0.
80860
80861         * lib/utimens.c (futimens): Robustify the previous patch, by checking
80862         for known valid error numbers rather than observed invalid ones.
80863
80864 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80865
80866         * modules/ullong_max: New file.
80867
80868         * modules/chdir-long, modules/openat: New files.
80869         * modules/save-cwd (Depends-on): Depend on chdir-long.
80870         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
80871
80872 2005-01-18  Jim Meyering  <jim@meyering.net>
80873
80874         Merge from coreutils.
80875         * m4/chdir-long.m4, m4/openat.m4: New files.
80876         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
80877         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
80878         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
80879         is sane and DOES follow symlinks.  Besides, testing 20 different
80880         systems found no broken chown implementations.
80881         Prompted by a change in rsync's copy of this macro.
80882         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
80883
80884         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
80885
80886         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
80887         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
80888         NULL-means-set-to-current-time semantics.
80889         Remove temporary file immediately, rather than waiting
80890         for configure's at-exit trap code to do it.
80891
80892 2005-01-18  Jim Meyering  <jim@meyering.net>
80893
80894         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80895
80896         * lib/utimens.c (futimens): Account for the fact that futimes
80897         can also fail with errno == ENOSYS or errno == ENOENT.
80898         Patch from Dmitry V. Levin.
80899
80900         Change the name of the robust chdir function from chdir to chdir_long.
80901         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
80902         (restore_cwd): Use chdir_long, not chdir.
80903         * lib/chdir-long.c: Renamed from chdir.c.
80904         * lib/chdir-long.h: Renamed from chdir.h.
80905         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
80906         Hurd.
80907
80908 2005-01-18  Bruno Haible  <bruno@clisp.org>
80909
80910         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
80911         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
80912         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
80913         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
80914         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
80915         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
80916         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
80917         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
80918         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
80919         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
80920         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
80921         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
80922         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
80923         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
80924         Use an all-permissive copyright notice, recommended by RMS.
80925
80926 2005-01-18  Bob Proulx  <bob@proulx.com>
80927
80928         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
80929         simplify offsetof() macro construct to avoid compile failure with
80930         native HP-UX 11.0 ANSI C compiler.
80931
80932 2005-01-17  Bruno Haible  <bruno@clisp.org>
80933
80934         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
80935         redundant because stpncpy.m4 takes care of it.
80936
80937 2005-01-17  Bruno Haible  <bruno@clisp.org>
80938
80939         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
80940
80941 2005-01-17  Bruno Haible  <bruno@clisp.org>
80942
80943         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
80944         used.
80945
80946 2005-01-17  Bruno Haible  <bruno@clisp.org>
80947
80948         * lib/fwriteerror.h (fwriteerror): Change specification to include
80949         fclose.
80950         * lib/fwriteerror.c: Include <stdbool.h>.
80951         (fwriteerror): At the end, close the file stream. Record whether
80952         stdout was already closed.
80953
80954 2005-01-17  Bruno Haible  <bruno@clisp.org>
80955
80956         * lib/execute.c (environ): Declare if needed.
80957         * lib/pipe.c (environ): Likewise.
80958         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
80959
80960 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80961
80962         * modules/argp: Depend on vsnprintf
80963
80964 2005-01-10  Jim Meyering  <jim@meyering.net>
80965
80966         * modules/closeout (Depends-on): Add atexit.
80967
80968 2005-01-06  Bruno Haible  <bruno@clisp.org>
80969
80970         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
80971
80972 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80973
80974         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
80975         definitions to be after all include files, to avoid collisions.
80976         Problem reported by Bob Proulx.
80977
80978 2005-01-04  Jim Meyering  <jim@meyering.net>
80979
80980         Changes imported from coreutils.
80981         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
80982         as the mkstemp template, use a temporary directory and an
80983         8.3-friendly template to avoid trouble on systems like DJGPP.
80984         Reported by Juan M. Guerrero via Stepan Kasal.
80985         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
80986         close. Remove the temporary directory right away, rather than waiting
80987         for configure's at-exit trap code to do it.
80988         Suggestion from Stepan Kasal.
80989
80990 2005-01-01  Simon Josefsson  <jas@extundo.com>
80991
80992         * gnulib-tool: Print #include directives when --import'ing.
80993
80994 2004-12-28  Simon Josefsson  <jas@extundo.com>
80995
80996         * tests/test-base64.c: Include required header files.  Remove
80997         unused variables.
80998
80999 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81000
81001         * modules/error (Depends-on): Remove gettext.
81002
81003 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81004
81005         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
81006         not needed.  This removes a dependency on the gettext module.
81007         [defined _LIBC]: Do not include <libintl.h>; not needed.
81008
81009 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81010
81011         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
81012         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
81013
81014 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81015
81016         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
81017         HAVE_DECL_STRTOLD.
81018
81019 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81020
81021         * modules/getdate (Depends-on): Remove alloca-opt.
81022
81023 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81024
81025         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
81026
81027 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81028
81029         * lib/argp-parse.c: Include <stddef.h>.
81030         (alignof, alignto): New macros.
81031         (parser_init): Don't assume that void * is aligned sufficiently
81032         for struct option.
81033
81034         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
81035         need to extend the stack.
81036         (YYINITDEPTH): New macro, so that the initial stack isn't overly
81037         large.
81038
81039 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81040
81041         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
81042
81043 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81044
81045         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
81046         (2004-10-24) change.  Apparently this was a false alarm.
81047
81048         * modules/getdate: Depend on alloca-opt, not alloca.
81049
81050 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81051
81052         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
81053         Remove now-obsolete comment about AIX.
81054         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
81055         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
81056         (YYMAXDEPTH): New macro.
81057
81058 2004-12-18  Simon Josefsson  <jas@extundo.com>
81059
81060         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
81061
81062 2004-12-18  Bruno Haible  <bruno@clisp.org>
81063
81064         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
81065
81066 2004-12-18  Bruno Haible  <bruno@clisp.org>
81067
81068         * lib/fatal-signal.c (fatal_signals): Make non-const.
81069         (init_fatal_signals): New function.
81070         (uninstall_handlers, install_handlers): Ignore signals that were set to
81071         SIG_IGN.
81072         (at_fatal_signal): Call init_fatal_signals.
81073         (init_fatal_signal_set): Likewise. Ignore signals that were set to
81074         SIG_IGN.
81075         Reported by Paul Eggert.
81076
81077 2004-12-18  Bruno Haible  <bruno@clisp.org>
81078
81079         * doc/alloca.texi: New file.
81080         * doc/alloca-opt.texi: New file.
81081
81082 2004-12-17  Jim Meyering  <jim@meyering.net>
81083
81084         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
81085         Otherwise, install-sh could exit with improper exit status when
81086         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
81087
81088 2004-12-16  Simon Josefsson  <jas@extundo.com>
81089
81090         * tests/test-base64.c: Add license.
81091
81092 2004-12-15  Stepan Kasal  <address@hidden>
81093
81094         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
81095
81096 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
81097
81098         * modules/getcwd (Files): Add m4/d-ino.m4.
81099         Suggested by Mark D. Baushke.
81100
81101 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81102
81103         * lib/getdate.y (textint): New member "negative".
81104         (time_zone_hhmm): New function.
81105         Expect 14 shift-reduce conflicts, not 13.
81106         (o_colon_minutes): New rule.
81107         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
81108         (yylex): Set the "negative" member of signed numbers.
81109
81110 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81111
81112         * doc/getdate.texi (Time of day items, Time zone items):
81113         Describe new formats +00:00, UTC+00:00.
81114
81115 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81116
81117         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
81118         spurious "-l"s.  Problem reported by Stepan Kasal.
81119
81120 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
81121
81122         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
81123         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
81124
81125 2004-12-04  Simon Josefsson  <jas@extundo.com>
81126
81127         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
81128         Vandoorselaere <yoann@prelude-ids.org>.
81129
81130 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81131
81132         Changes imported from coreutils.
81133         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
81134         exist.
81135         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
81136
81137 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81138
81139         Changes imported from coreutils.
81140         * lib/hard-locale.c: Assume <locale.h> exists.
81141         Include "strdup.h".
81142         (GLIBC_VERSION): New macro.
81143         (hard_locale): Assume setlocale exists.
81144         Rewrite to avoid #ifdef.
81145         Use strdup rather than malloc + strcpy.
81146         * lib/human.c: Assume <locale.h> exists.
81147         (human_readable): Assume localeconv exists.
81148
81149 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81150
81151         * modules/hard-locale (Depends-on): Add strdup.
81152
81153 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
81154
81155         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
81156         convert T2, not T.  (Imported from libc.)
81157
81158 2004-11-30  Simon Josefsson  <jas@extundo.com>
81159
81160         * modules/restrict (License): Change to LGPL.
81161
81162 2004-11-30  Simon Josefsson  <jas@extundo.com>
81163
81164         * m4/restrict.m4: Add copyright and copying conditions.
81165
81166 2004-11-30  Simon Josefsson  <jas@extundo.com>
81167
81168         * m4/base64.m4: New file.
81169
81170 2004-11-30  Simon Josefsson  <jas@extundo.com>
81171
81172         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
81173         base64.
81174
81175         * tests/test-base64.c: New file.
81176
81177         * modules/base64: New file.
81178
81179 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81180
81181         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
81182         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
81183
81184         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
81185
81186 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81187
81188         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
81189         (__getcwd.c): Don't restore errno; glibc doesn't.
81190         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
81191         first, falling back to our code only if its results look suspicious.
81192         Ensure that the resulting buffer is only as large as necessary.
81193
81194         * lib/readutmp.c: Include readutmp.h first.
81195         Include <errno.h>, since readutmp.h no longer does that.
81196         * lib/readutmp.h: Don't include <errno.h>,
81197         <sys/param.h>, <time.h>; not needed to establish interface.
81198         (errno): Remove decl.
81199         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
81200         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
81201         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
81202
81203 2004-11-28  Simon Josefsson  <jas@extundo.com>
81204
81205         * lib/base64.h, base64.c: New file.
81206
81207 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
81208
81209         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
81210
81211 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
81212
81213         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
81214         (Depends-on): Remove pathmax, same.  Add mempcpy.
81215         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
81216         (Makefile.am): Append getcwd.h to lib_SOURCES.
81217         (Include): Add getcwd.h.
81218         (Maintainer): Change from Jim Meyering to "all, glibc",
81219         since getdate now uses intended-for-glibc code.
81220         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
81221         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
81222
81223 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81224
81225         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
81226         HP's ANSI C compiler.
81227         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
81228         Declaring int functions causes warnings on some modern systems and
81229         shouldn't be needed to compile on ancient ones.
81230         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
81231         defined.
81232
81233         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
81234         with the following changes.
81235         (__set_errno): Parenthesize properly.
81236         Include <stdbool.h>.
81237         (MIN, MAX, MATCHING_INO): New macros.
81238         (__getcwd): Define with prototype, not K&R form.
81239         Use heuristics to allocate default buffer on stack if possible.
81240         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
81241         behavior, and to avoid the PATH_MAX limit when computing
81242         ../../../../...
81243         Use MATCHING_INO to compare inode number to file.
81244         Check for arithmetic overflow in size calculations.
81245         Fix bug in reallocation of dot array that caused getcwd to fail
81246         on directories nested deeper than 75.
81247         Be more careful about saving errno on error.
81248         Do not use realloc; use only free+malloc, as this is a bit
81249         more flexible and avoids a needless copy operation.
81250         Do not inspect st_dev and st_ino for symbolic links; POSIX
81251         doesn't specify the latter.
81252         Check for closedir errors.
81253         Avoid needless casts.
81254         Use "#ifdef weak_alias" around weak_alias, to be like other
81255         glibc code.
81256         The following changes to getcwd.c have effect only when used in
81257         gnulib; they have no effect inside glibc proper.
81258         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
81259         as alloca isn't used.
81260         (alloca, __alloca): Likewise.
81261         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
81262         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81263         unconditionally, as gnulib assumes C89 or better.
81264         Do not include <sys/param.h>.
81265         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
81266         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
81267         better.
81268         (NULL) [!defined NULL]: Remove; we assume C89 or better.
81269         Include <dirent.h> in a way that is compatible with modern Autoconf.
81270         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
81271         New macros, if not already defined.
81272         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
81273         Use "_LIBC", not "defined _LIBC", for consistency.
81274         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
81275         a mempcpy module.
81276         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
81277         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
81278         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
81279         credit only to Jim Meyering and adjust the copyright dates.
81280         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
81281         <stdlib.h>, <unistd.h>, "pathmax.h".
81282         Instead, include "xgetcwd.h" (first) and "getcwd.h".
81283         (INITIAL_BUFFER_SIZE): Remove.
81284         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
81285
81286 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81287
81288         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
81289         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
81290         Use the _ONCE methods, for efficiency.
81291         Check for fcntl.h.  In test program, include <errno.h>
81292         and <fcntl.h> if available.  Remove old K&R cruft from
81293         test program.  Check for common errors in GNU/Linux,
81294         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
81295         don't do AC_LIBOBJ, as that's getcwd.m4's job.
81296         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
81297         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
81298         name accordingly.
81299         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
81300         accommodate new getcwd.c.
81301         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
81302         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
81303         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
81304         that's all we need now.
81305
81306 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81307
81308         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
81309         argp-parse.c depends on getopt internals, that means we should
81310         always use our getopt, to be on the safe side.
81311         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
81312         order not to spoil the result of an eventual previous invocation
81313         of gl_GETOPT_SUBSTITUTE.
81314
81315 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81316
81317         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
81318         redefinition warnings. To avoid them, include the defines
81319         in `#if !defined __need_getopt ... #endif'. The only place
81320         where __getopt_argv_const is used is in definitions
81321         of getopt_long and getopt_long_only below, which are as well
81322         protected by `#ifndef __need_getopt'.
81323         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
81324         __need_getopt after including <stdio.h> and <unistd.h> These
81325         headers might have defined it.
81326
81327 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81328
81329         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
81330
81331 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81332
81333         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
81334         (futimens): New function, which uses futimes if available.
81335         (futimens, utimens): Support timespec==NULL, with same semantics
81336         as utime and utimens.
81337         * lib/utimens.h (futimens): New decl.
81338
81339 2004-11-23  Jim Meyering  <jim@meyering.net>
81340
81341         * lib/getopt_.h: Remove trailing blanks.
81342
81343 2004-11-23  Jim Meyering  <jim@meyering.net>
81344
81345         * lib/__fpending.c: Add comment.
81346
81347 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
81348
81349         * modules/canonicalize (Depends-on): Add xreadlink.
81350         Problem reported by James Youngman.
81351
81352 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
81353
81354         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
81355         New macros.
81356         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
81357         optopt): Use them instead of invoking ## directly; otherwise, the
81358         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
81359
81360 2004-11-19  Bruno Haible  <bruno@clisp.org>
81361
81362         * lib/strtok_r.c: Move comments from here...
81363         * lib/strtok_r.h: ... to here.
81364
81365 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81366
81367         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
81368         implementations that mishandle size_t overflow.
81369
81370 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81371
81372         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
81373         might fail.  Problem reported by Yoann Vandoorselaere.
81374         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
81375         implementations that mishandle size_t overflow.
81376
81377 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81378
81379         * modules/canon-host (Depends-on): Add strdup.
81380
81381 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81382
81383         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
81384
81385 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81386
81387         * lib/canon-host.c: Include "strdup.h".
81388         (canon_host): Use getaddrinfo if available, so that IPv6 works.
81389         Use strdup instead of malloc/strcpy to duplicate strings.
81390
81391         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
81392         (human_space_before_unit): New constant.
81393         * lib/human.c (human_readable): Support it.
81394
81395         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
81396         (xgetcwd): Set errno correctly when failing.
81397         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
81398         the failure is actually due to a PATH_MAX problem.
81399
81400         Further getopt changes to make it more likely that glibc will
81401         buy the changes back.
81402         * lib/getopt.c (POSIXLY_CORRECT): New constant.
81403         (getopt): Use it, so to preserve glibc semantic
81404         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
81405         when compiling for libc.
81406         * lib/getopt_.h (__getopt_argv_const): Bring it back.
81407         (getopt_long, getopt_long_only): Use it.
81408
81409         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81410         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
81411         (getopt): Argv is now char * const *, as per standard.
81412         (_getopt_internal_r, _getopt_internal): Argv is now char **,
81413         not char *__getopt_argv_const *.
81414         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81415         _getopt_long_only_r): Likewise.
81416         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
81417         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81418         _getopt_long_r, _getopt_long_only_r): Likewise.
81419         * lib/getopt_.h (__getopt_argv_const): Remove.
81420         (getopt): Argv is now char * const *, as per standard.
81421
81422         * lib/getdate.y (tORDINAL): New token.
81423         (day, relunit): Allow it for relative times.
81424         (relative_time_table): Use tORDINAL for ordinals.
81425
81426 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81427
81428         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
81429         Document that "second" isn't allowed as an ordinal number.
81430
81431 2004-11-16  Jim Meyering  <jim@meyering.net>
81432
81433         * modules/closeout (Depends-on): Add fpending.
81434
81435 2004-11-15  Jim Meyering  <jim@meyering.net>
81436
81437         * lib/closeout.c: Include "__fpending.h" once again.
81438         Include <stdbool.h>.
81439         (close_stdout): Don't fail just because stdout was closed initially,
81440         since some programs don't write to stdout in the normal course of
81441         operation (other than --version and --help), and we don't want this
81442         function to make e.g. `touch file >&-' fail.
81443         But do fail if it was closed and someone has tried to write to it.
81444         E.g., `printf foo >&-' must fail.
81445
81446 2004-11-13  Jim Meyering  <jim@meyering.net>
81447
81448         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
81449
81450 2004-11-12  Simon Josefsson  <jas@extundo.com>
81451
81452         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
81453         small doc fix is still pending.
81454
81455 2004-11-11  Simon Josefsson  <jas@extundo.com>
81456
81457         * modules/strtok_r: New file.
81458
81459         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81460         strtok_r.
81461
81462 2004-11-11  Simon Josefsson  <jas@extundo.com>
81463
81464         * m4/strtok_r.m4: New file.
81465
81466         * m4/getopt.m4: Replace opterr.
81467
81468 2004-11-11  Simon Josefsson  <jas@extundo.com>
81469
81470         * lib/strtok_r.h, strtok_r.c: New file.
81471
81472 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81473
81474         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
81475         of replacing opterr, getopt, etc.  This should handle the
81476         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
81477
81478 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81479
81480         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
81481         we can stop lying to compilers about the constness of argv when we
81482         are compiled outside glibc.
81483         (getopt, getopt_long, getopt_long_only): Use it.
81484         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81485         _getopt_internal, getopt): Likewise.
81486         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81487         _getopt_long_only_r): Likewise.
81488         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81489         _getopt_long_r, _getopt_long_only_r): Likewise.
81490
81491         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
81492         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
81493         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
81494         the other external symbols.
81495         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
81496         declaration, since the above renaming now works around collisions.
81497
81498 2004-11-11  Jim Meyering  <jim@meyering.net>
81499
81500         * lib/linebreak.c: Remove trailing blanks.
81501         * lib/alloca_.h: Likewise.
81502         * lib/acosl.c: Likewise.
81503         * lib/euidaccess.c: Likewise.
81504         * lib/allocsa.h: Likewise.
81505
81506 2004-11-10  Simon Josefsson  <jas@extundo.com>
81507
81508         * m4/getaddrinfo.m4: New file.
81509
81510 2004-11-10  Simon Josefsson  <jas@extundo.com>
81511
81512         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
81513
81514 2004-11-10  Simon Josefsson  <jas@extundo.com>
81515
81516         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81517         getaddrinfo.
81518
81519         * modules/getaddrinfo: New file.
81520
81521 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81522
81523         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
81524
81525 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81526
81527         * lib/mktime.c (SHR): New macro, which is a portable
81528         substitute for >> that should work even on Crays.
81529         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
81530         Problem reported by Mark D. Baushke in
81531         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
81532         * lib/getdate.y (SHR): Likewise.
81533         (tm_diff): Use it.
81534         * lib/strftime.c (SHR): Likewise.
81535         (tm_diff): Use it.
81536         * lib/quotearg.c (struct quoting_options): Use unsigned int for
81537         quote_these_too, so that right shifts are well defined.  All uses
81538         changed.
81539
81540 2004-11-10  Jim Meyering  <jim@meyering.net>
81541
81542         Ensure that no close failure goes unreported.
81543         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
81544         return early when it seems there's nothing to flush.
81545         Don't include __fpending.h.
81546
81547 2004-11-10  Jim Meyering  <jim@meyering.net>
81548
81549         * modules/closeout (Depends-on): Remove fpending.
81550
81551 2004-11-10  Jim Meyering  <jim@meyering.net>
81552
81553         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
81554
81555 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81556
81557         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
81558         gl_FUNC_STRFTIME.
81559         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
81560         and AC_REQUIRE when possible, to avoid duplicate checks.
81561         Check for <wchar.h>.
81562
81563 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81564
81565         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
81566
81567 2004-11-09  Bruno Haible  <bruno@clisp.org>
81568
81569         * m4/sockpfaf.m4: New file.
81570
81571 2004-11-05  Bruno Haible  <bruno@clisp.org>
81572
81573         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
81574         Reported by Mark D. Baushke <mdb@cvshome.org>.
81575
81576 2004-11-04  Bruno Haible  <bruno@clisp.org>
81577
81578         2004-09-11  Bruno Haible  <bruno@clisp.org>
81579                 * allocsa.valgrind: New file.
81580         2004-02-06  Bruno Haible  <bruno@clisp.org>
81581                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
81582                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
81583                 Reported by Christopher Seip <chris.seip@hp.com>.
81584
81585 2004-11-04  Bruno Haible  <bruno@clisp.org>
81586
81587         * modules/allocsa (Files): Add lib/allocsa.valgrind.
81588         (Makefile.am): Distribute it.
81589
81590 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
81591
81592         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
81593         with errno == ERANGE if the buffer is too small.
81594         Problem reported by Mark D. Baushke.
81595
81596 2004-11-03  Albert Chin  <china@thewrittenword.com>
81597             Paul Eggert  <eggert@cs.ucla.edu>
81598
81599         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
81600         equivalent, substitute $ac_type for equivalent type rather than
81601         blindly using uint32_t *always* which won't work if uint32_t is not
81602         available.  Define _UINT32_T to work around typedef of uint32_t if
81603         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
81604         2.5.1.
81605
81606 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81607
81608         * m4/jm-macros.m4: Sync from coreutils.
81609         (gl_MACROS): Check for mbrlen, for pathchk.
81610         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
81611
81612 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81613
81614         * lib/xreadlink.c (MAXSIZE): New macro.
81615         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
81616         size does not exceed MAXSIZE.  Avoid cast.
81617         As suggested by Mark D. Baushke in
81618         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
81619         if readlink fails with buffer size just under MAXSIZE, try again
81620         with MAXSIZE.
81621
81622 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81623
81624         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
81625
81626 2004-11-02  Derek R. Price  <derek@ximbiot.com>
81627         and  Paul Eggert  <eggert@cs.ucla.edu>
81628
81629         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
81630         (get_date): Overparenthesize to avoid GCC warning.
81631
81632 2004-11-02  Bruno Haible  <bruno@clisp.org>
81633
81634         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
81635         returns void.
81636
81637 2004-11-02  Bruno Haible  <bruno@clisp.org>
81638
81639         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
81640         function returns void.
81641
81642 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81643
81644         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
81645         fflush_unlocked, flockfile, funlockfile, funlockfile,
81646         fputs_unlocked, putc_unlocked.
81647
81648 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81649
81650         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81651         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
81652         already declared.
81653
81654 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81655
81656         * modules/getdate (Files): Add doc/getdate.texi.
81657         (Depends-on): Add setenv, xalloc.
81658
81659 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81660
81661         * lib/getdate.y: Add support for TZ="foo" within a date string.
81662         Fix some bugs near time_t boundaries.  Reject dates with
81663         out-of-range components, e.g., "Sept 31".
81664         Include <stdlib.h>, "setenv.h", "xalloc.h".
81665         (ISDIGIT_LOCALE): Remove; unused.
81666         Note that the TZ and time functions used here are not reentrant.
81667         (mktime_ok, get_tz): New functions.
81668         (TZBUFSIZE): New constant.
81669         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
81670         This requires that we sometimes generate our own TZ="XXX..." setting.
81671
81672 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81673
81674         * doc/getdate.texi: New file, from coreutils with modifications for
81675         the new TZ parsing.
81676
81677 2004-10-27  Derek R. Price  <derek@ximbiot.com>
81678
81679         * lib/mktime.c (not_equal_tm): Remove redundant check.
81680
81681 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81682
81683         * modules/regex (lib_SOURCES): Add regex.c.
81684         Reported by James Youngman in
81685         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
81686
81687 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81688
81689         * lib/getdate.y: Use Bison 1.875 features, and some minor
81690         code cleanups.  This change does not affect semantics.
81691         Don't include <stdlib.h>; no longer needed.
81692         Don't include unlocked-io.h; only the "#if TEST" code uses
81693         stdio, and performance isn't crucial there.
81694         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
81695         Bison 1.875 features as described below.
81696         All uses of "PC." replaced by "pc->".
81697         (YYSTYPE): Add a forward declaration.
81698         (yylex, yyerror): Use full prototypes in forward decls.
81699         Use "%pure-parser" rather than obsolescent "%pure_parser".
81700         Use %parse-param and %lex-param instead of obsolescent
81701         YYPARSE_PARAM and YYLEX_PARAM.
81702         (meridian_table, month_and_day_table, time_units_table,
81703         relative_time_table, time_zone_table, military_table,
81704         lookup_zone, lookup_word, get_date):
81705         Use NULL instead of 0 where appropriate.
81706         (to_hour): Avoid abort (), to avoid a dependency on
81707         stdlib.h.
81708         (yyerror, yylex): Now accepts parser_control * arg.
81709         (main) [TEST]: Use '\0' rather than 0 for char.
81710
81711 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81712
81713         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
81714
81715 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81716
81717         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
81718         It's now the caller's responsibility to handle the case where
81719         !HAVE_GETPAGESIZE && !defined getpagesize.
81720
81721         * lib/mktime.c (leapyear): Arg is long int, not int.
81722
81723 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
81724
81725         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
81726
81727 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81728
81729         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
81730         missing.  Problem reported by James Youngman.
81731
81732 2004-10-16  Simon Josefsson  <jas@extundo.com>
81733
81734         * gnulib-tool: Fix comments.  Fix parse problem.
81735         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
81736
81737 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
81738
81739         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
81740         implementation of getopt_long.  Problem reported by Alexander Taler in:
81741         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
81742
81743 2004-10-15  Bruno Haible  <bruno@clisp.org>
81744
81745         * gnulib-tool: Untabify. Initialize supplied_libname.
81746         (func_usage): More homogenous output.
81747         (func_modules_transitive_closure, func_modules_to_filelist,
81748         func_emit_lib_Makefile_am): New functions.
81749         (func_import): New function, extracted from big case statement. Use
81750         func_get_license, func_modules_transitive_closure,
81751         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
81752         opt_lgpl. Don't use test -a, as it's not portable.
81753         (func_create_testdir): Use func_modules_transitive_closure,
81754         func_modules_to_filelist, func_emit_lib_Makefile_am.
81755
81756 2004-10-15  Bruno Haible  <bruno@clisp.org>
81757
81758         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
81759
81760 2004-10-15  Bruno Haible  <bruno@clisp.org>
81761
81762         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
81763         the portions belonging to each module.
81764         Suggested by Derek Robert Price <derek@ximbiot.com>.
81765
81766 2004-10-12  Simon Josefsson  <jas@extundo.com>
81767
81768         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81769         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
81770         to real functions.
81771
81772 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81773
81774         * modules/vsnprintf: New file.
81775
81776 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81777
81778         * m4/vsnprintf.m4: New file.
81779
81780 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81781
81782         * lib/vsnprintf.h: New file.
81783         * lib/vsnprintf.c: New file.
81784
81785 2004-10-11  Bruno Haible  <bruno@clisp.org>
81786
81787         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
81788         vsnprintf.
81789
81790 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81791
81792         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
81793
81794 2004-10-07  Bruno Haible  <bruno@clisp.org>
81795
81796         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
81797         fits into the provided buffer.
81798
81799 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81800
81801         * lib/diacrit.c, diacrit.h: Add GPL notice.
81802
81803         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
81804         notice.
81805         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
81806         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
81807         This avoids a potential constant-folding bug.
81808
81809 2004-10-05  Bruno Haible  <bruno@clisp.org>
81810
81811         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
81812         for the declaration of strsep.
81813
81814 2004-10-05  Bruno Haible  <bruno@clisp.org>
81815
81816         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
81817
81818 2004-10-04  Simon Josefsson  <jas@extundo.com>
81819
81820         * modules/memmem: New file.
81821         * tests/test-memmem.c: New file.
81822         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
81823
81824 2004-10-04  Simon Josefsson  <jas@extundo.com>
81825
81826         * m4/memmem.m4: New file.
81827
81828 2004-10-04  Simon Josefsson  <jas@extundo.com>
81829
81830         * lib/memmem.h: New file.
81831         * lib/memmem.c: New file, taken from glibc.
81832
81833 2004-10-04  Simon Josefsson  <jas@extundo.com>
81834
81835         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
81836         '#ifdef USE_UNLOCKED_IO'.
81837
81838 2004-10-04  Simon Josefsson  <jas@extundo.com>
81839
81840         * config/srclist.txt: Add memmem from glibc.
81841
81842 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81843
81844         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
81845
81846         * modules/argmatch, modules/argp, modules/closeout, modules/error,
81847         modules/exclude, modules/getdate, modules/getline,
81848         modules/getndelim2, modules/getpass, modules/getpass-gnu,
81849         modules/getusershell, modules/linebuffer, modules/md5,
81850         modules/mountlist, modules/posixtm, modules/readtokens,
81851         modules/readutmp, modules/regex, modules/sha1,
81852         modules/version-etc, modules/yesno:
81853         Remove dependency on unlocked-io.
81854
81855 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81856
81857         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
81858
81859         * m4/unlocked-io.m4: Add copyright notice.
81860         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
81861
81862 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81863
81864         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
81865         * lib/xmalloc.c (xmemdup): Likewise.
81866         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
81867         XFREE): Remove these long-obsolescent macros.
81868         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
81869         * lib/xstrdup.c: Remove.
81870
81871         * lib/regex.c (re_comp): Cast gettext return value to char *,
81872         Problem reported by Martin Neitzel via Mark D. Baushke.
81873
81874 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81875
81876         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
81877         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
81878         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
81879         regex.c, sha1.c, version-etc.c, yesno.c:
81880         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
81881         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
81882         the includer's responsibility.
81883
81884         Sync from coreutils.
81885
81886         * lib/modechange.c (mode_compile): Don't decrement a pointer that
81887         points to the start of a string, as the C Standard says the
81888         resulting behavior is undefined.
81889
81890         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
81891         simple -> simple_backups, numbered_existing ->
81892         numbered_existing_backups, numbered -> numbered_backups
81893         to avoid shadowing problems.  All uses changed.
81894         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
81895         * lib/backupfile.c (check_extension, numbered_backup):
81896         Rename locals to avoid shadowing 'basename'.
81897         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
81898         once.
81899
81900         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
81901         * lib/.cvsignore: Add getopt.h.
81902
81903 2004-10-04  Bruno Haible  <bruno@clisp.org>
81904
81905         * modules/README: New file.
81906         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
81907         not a module.
81908
81909 2004-10-02  Jim Meyering  <jim@meyering.net>
81910
81911         * lib/dirfd.h, getpagesize.h: Add copyright notice.
81912
81913 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81914
81915         * modules/strsep: New file.
81916
81917 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81918
81919         * m4/strsep.m4: New file.
81920
81921 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81922
81923         * lib/strsep.h: New file.
81924         * lib/strsep.c: New file.
81925
81926 2004-10-01  Simon Josefsson  <jas@extundo.com>
81927
81928         * lib/snprintf.c (snprintf): Handle size==0.
81929
81930 2004-10-01  Simon Josefsson  <jas@extundo.com>
81931             Bruno Haible  <bruno@clisp.org>
81932
81933         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
81934         (snprintf): Declare 'args'.
81935
81936 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
81937
81938         * lib/snprintf.c: Remove comments as to why each header is needed.
81939
81940 2004-10-01  Bruno Haible  <bruno@clisp.org>
81941
81942         * MODULES.html.sh: Add strsep.
81943
81944 2004-09-30  Simon Josefsson  <jas@extundo.com>
81945
81946         * modules/snprintf: New file.
81947
81948 2004-09-30  Simon Josefsson  <jas@extundo.com>
81949
81950         * m4/snprintf.m4: New file.
81951
81952 2004-09-30  Simon Josefsson  <jas@extundo.com>
81953
81954         * lib/snprintf.h, lib/snprintf.c: New files.
81955
81956 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81957
81958         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
81959         (hol_entry_help): Never translate an empty string.
81960         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
81961         * lib/argp.h (OPTION_NO_TRANS): New option.
81962
81963 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81964
81965         * modules/argp (Maintainer): Replace Simon Josefsson
81966         by Sergey Poznyakoff.
81967
81968 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81969
81970         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
81971         changes merged back into glibc.
81972
81973 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81974
81975         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
81976
81977 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81978
81979         * lib/xvasprintf.c: Include xalloc.h.
81980         (xvasprintf): Use xalloc_die, not xmalloc_die.
81981
81982 2004-09-29  Bruno Haible  <bruno@clisp.org>
81983
81984         * modules/alloca-opt: New file, derived from modules/alloca.
81985         * modules/allocsa: Depend on alloca-opt instead of alloca.
81986         * modules/setenv: Likewise.
81987         * modules/vasnprintf: Likewise.
81988         * MODULES.html.sh: Add alloca-opt.
81989
81990 2004-09-28  Simon Josefsson  <jas@extundo.com>
81991
81992         * gnulib-tool: New parameter --lgpl, to asseert that modules are
81993         LGPL, and to replace license template from GPL to LGPL.
81994
81995 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81996
81997         * modules/dummy: Change license to LGPL.
81998
81999 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82000
82001         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
82002
82003 2004-09-24  Simon Josefsson  <jas@extundo.com>
82004
82005         * modules/minmax (License): Change from GPL to LGPL.
82006
82007 2004-09-23  Simon Josefsson  <jas@extundo.com>
82008
82009         * gnulib-tool (--import): Typo.
82010
82011 2004-09-23  Simon Josefsson  <jas@extundo.com>
82012
82013         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
82014
82015 2004-09-22  Bruno Haible  <bruno@clisp.org>
82016
82017         * modules/*: Add 'License' field.
82018         * gnulib-tool: Accept --extract-license option.
82019         (func_get_license): New function.
82020
82021 2004-09-21  Bruno Haible  <bruno@clisp.org>
82022
82023         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
82024         Reported by Simon Josefsson.
82025
82026 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82027
82028         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
82029         gl_AC_TYPE_LONG_LONG.
82030
82031 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82032
82033         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
82034
82035 2004-09-18  Simon Josefsson  <jas@extundo.com>
82036         and  Paul Eggert  <eggert@cs.ucla.edu>
82037
82038         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
82039         calls with autoreconf.  Define GL_LIB.
82040
82041 2004-09-14  Karl Berry  <karl@gnu.org>
82042
82043         * config/srclist.txt: unsync setenv.c, sigh.
82044
82045 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82046
82047         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
82048         Problem reported by Bruno Haible in:
82049         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
82050
82051 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82052
82053         * config/srclist.txt: Comment out argp-pvh.c.
82054
82055 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
82056
82057         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
82058         in case some system header has #define'd it.  Problem reported by
82059         Soeren D. Schulze in
82060         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
82061
82062 2004-09-09  Karl Berry  <karl@gnu.org>
82063
82064         * regex.[ch]: delete from the root.  These were supposed to be
82065                 synced with emacs cvs, but this has not happened for about
82066                 a year, and anyway nothing else uses emacs regex.[ch].
82067                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
82068                 lib/regex[.ch] is untouched.
82069
82070 2004-09-09  Bruno Haible  <bruno@clisp.org>
82071
82072         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
82073
82074 2004-09-09  Bruno Haible  <bruno@clisp.org>
82075
82076         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
82077         modifications.
82078         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
82079
82080 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82081
82082         * modules/xvasprintf: New file.
82083         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
82084
82085 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82086
82087         * lib/xvasprintf.h: New file.
82088         * lib/xvasprintf.c: New file.
82089         * lib/xasprintf.c: New file.
82090
82091 2004-09-08  Bruno Haible  <bruno@clisp.org>
82092
82093         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
82094
82095 2004-09-08  Bruno Haible  <bruno@clisp.org>
82096
82097         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
82098         length is > INT_MAX.
82099         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
82100         more.
82101
82102 2004-09-08  Bruno Haible  <bruno@clisp.org>
82103
82104         * lib/stdint_.h: New file, taken from GNU clisp.
82105
82106 2004-09-08  Bruno Haible  <bruno@clisp.org>
82107             Oskar Liljeblad  <oskar@osk.mine.nu>
82108
82109         * modules/stdint: New file.
82110         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
82111
82112 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82113
82114         Import from coreutils.
82115         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
82116         strings on unbounded length.  alloca's performance benefits aren't
82117         that important here.
82118         (V_STRDUP): Remove.
82119         (parse_with_separator): New function, with most of the internals
82120         of the old parse_user_spec.  Allow user to omit both user and group,
82121         for compatibility with FreeBSD.
82122         Clone only the user name, not the entire spec.
82123         Do not set *uid, *gid unless entirely successful.
82124         Avoid memory leak in some failing cases.
82125         Fix regression for USER.GROUP reported by Dmitry V. Levin in
82126         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
82127         (parse_user_spec): Rewrite to use parse_with_separator.
82128
82129 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82130
82131         * modules/userspec: Don't depend on alloca.
82132
82133 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82134
82135         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
82136
82137 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82138
82139         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
82140         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
82141         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
82142
82143 2004-08-16  Simon Josefsson  <jas@extundo.com>
82144
82145         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
82146         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
82147         Add --dry-run for --import.
82148         Let user provided command line parameters override configure.ac
82149         settings.
82150
82151 2004-08-12  Simon Josefsson  <jas@extundo.com>
82152
82153         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
82154         as discussed with Paul Eggert in threads rooted at
82155         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
82156         and
82157         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
82158         Before, the test was empty, and relied on ELIDE_CODE in source
82159         code.)
82160         (gl_PREREQ_GETOPT): New macro.
82161         (gl_GETOPT): Use them.
82162
82163 2004-08-12  Simon Josefsson  <jas@extundo.com>
82164
82165         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
82166         * lib/getopt_.h: Renamed from getopt.h.
82167
82168 2004-08-12  Simon Josefsson  <jas@extundo.com>
82169
82170         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
82171         Change default library name from libfoo to libgnu.
82172         Now, if you have a configure.ac that says:
82173                 gl_SOURCE_BASE(gl)
82174                 gl_M4_BASE(gl/m4)
82175                 gl_MODULES(error getopt etcetera)
82176                 gl_INIT
82177         you can import all you need by running:
82178                 ../gnulib/gnulib-tool --import
82179
82180         * modules/getopt (Files): Rename getopt.h to getopt_.h.
82181         (Makefile.am): Rewrite, use logic from argz.
82182         (Include): Use <getopt.h> instead of "getopt.h".
82183
82184 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82185
82186         * modules/argp (Files): Add m4/unlocked-io.m4.
82187         (Depends-on): Add extensions.
82188
82189 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82190
82191         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
82192         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
82193         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
82194         Check for program_invocation_name, program_invocation_short_name,
82195         flockfile, funlockfile, features.h, _getopt_long_only_r.
82196
82197 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82198
82199         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
82200         its complicated substitute.
82201         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
82202         and program_invocation_name.
82203         (__argp_basename) [!_LIBC]: Remove; the only use was
82204         replaced by its body.
82205         (__argp_short_program_name): Change condition from
82206         !defined __argp_short_program_name to
82207         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
82208         to match argp-namefrob.h.
82209         (__argp_failure): Don't assume strerror_r returns char *.
82210         * lib/argp-parse.c (N_): Define unconditionally.
82211         (argp_default_options): Fill out initializers with 0 to avoid
82212         gcc warnings.
82213
82214 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82215
82216         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
82217         getopt1.c.
82218
82219 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82220
82221         Merge from coreutils.
82222
82223         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
82224
82225         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
82226         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
82227
82228 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82229
82230         Merge from coreutils.
82231
82232         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
82233         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
82234         for Reliant Unix 5.43.
82235
82236         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
82237         (union fooround): Use uintmax_t, not long int.
82238         The rest is a merge from libc:
82239         [defined _LIBC]: Include <shlib-compat.h>.
82240         (_obstack) [defined _LIBC]: Remove after 2.3.4.
82241
82242         * lib/settime.c (settime): Recode to avoid warning with
82243         Sun Forte C 6U2.
82244
82245         * lib/strverscmp.c: Convert to UTF-8.
82246
82247 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82248
82249         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82250         m4/uintmax_t.m4.
82251
82252 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82253
82254         * modules/xalloc-die: New file.
82255         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
82256
82257         * modules/md5 (Files): Add m4/uint32_t.m4.
82258         * modules/sha1: Renamed from modules/sha.
82259         (Files):
82260         Rename lib/sha.h to lib/sha1.h.
82261         Rename lib/sha.c to lib/sha1.c.
82262         Rename m4/sha.m4 to m4/sha1.m4.
82263         (lib_SOURCES): Likewise.
82264         (configure.ac): Rename gl_SHA to gl_SHA1.
82265         (Include): sha.h -> sha1.h.
82266
82267 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82268
82269         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
82270         * m4/sha1.m4: Renamed from sha.m4.
82271         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
82272
82273 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82274
82275         * lib/obstack.h (obstack_empty_p):
82276         Don't assume that chunk->contents is suitably aligned.
82277         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
82278         Likewise. Problem reported by Benno in
82279         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
82280
82281         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
82282         readable.  This could be improved further but it'd take some work.
82283
82284 2004-08-08  Simon Josefsson  <jas@extundo.com>
82285
82286         * modules/xgethostname (Depends-on): Remove exit and error (not
82287         used).
82288
82289         * modules/getpass-gnu: Add getpass.h.
82290         (Depends-on): Add stdbool.
82291         * modules/getpass: Add getpass.h.
82292
82293 2004-08-08  Simon Josefsson  <jas@extundo.com>
82294
82295         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
82296         Check getpass declaration.
82297
82298 2004-08-08  Simon Josefsson  <jas@extundo.com>
82299
82300         * lib/xgethostname.c: Don't include error.h (not used).
82301
82302         * lib/getpass.h: Add.
82303         * lib/getpass.c: Include getpass.h first.
82304
82305 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
82306
82307         * lib/xalloc-die.c: New file.
82308         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
82309         All uses removed.
82310         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
82311         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
82312         xalloc-die.c.
82313         (_, N_, xalloc_die): Move to xalloc-die.c.
82314         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
82315         so that we needn't mess with xalloc_msg_memory_exhausted.
82316
82317         * lib/sha1.h: Renamed from sha.h.
82318         (SHA1_H): Renamed from _SHA_H.
82319         (sha1_ctx): Renamed from sha_ctx.
82320         (sha1_init_ctx): Renamed from sha_init_ctx.
82321         (sha1_process_block): Renamed from sha_process_block.
82322         (sha1_process_bytes): Renamed from sha_process_bytes.
82323         (sha1_finish_ctx): Renamed from sha_finish_ctx.
82324         (sha1_read_ctx): Renamed from sha_read_ctx.
82325         (sha1_stream): Renamed from sha_stream.
82326         (sha1_buffer): Renamed from sha_buffer.
82327         * lib/sha1.c: Likewise; renamed from sha.c.
82328         Do not include <sys/types.h>.
82329         Include <stddef.h> rather than <stdlib.h>.
82330
82331 2004-08-08  Bruno Haible  <bruno@clisp.org>
82332
82333         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
82334         FILESYSTEM_PREFIX_LEN.
82335         * lib/progreloc.c: Likewise.
82336         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
82337
82338 2004-08-06  Simon Josefsson  <jas@extundo.com>
82339
82340         * modules/progname (Depends-on): Don't depend on stdbool.
82341
82342 2004-08-06  Simon Josefsson  <jas@extundo.com>
82343
82344         * modules/getsubopt: New file.
82345         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82346         getsubopt.
82347
82348 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82349
82350         More merge from coreutils.
82351
82352         * m4/utimens.m4, m4/utimecmp.m4: New files.
82353         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
82354         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
82355         prereq.m4, sha.m4: Import changes from coreutils.
82356
82357 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82358
82359         More merge from coreutils.
82360         * modules/raise, modules/readtokens0, modules/utimens:
82361         * modules/utimecmp, module/xnanosleep: New files.
82362         * modules/strftime: Add lib/strftime.h.
82363         Change include from <time.h> to "strftime.h".
82364         * modules/yesno: Add lib/yesno.h.
82365         * modules/backupfile: Remove lib/addext.c.
82366         * modules/euidaccess: Add stat-macros.h.
82367         * modules/canonicalize, modules/euidaccess,
82368         modules/filemode, modules/lchown, modules/makepath,
82369         modules/rmdir, modules/stat: Likewise.
82370
82371 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82372
82373         Merge from tar.
82374         * lib/argp-help.c (make_hol, hol_append): Don't assume that
82375         SIZE_MAX is a valid preprocessor constant.
82376         (__argp_basename): Change from "#ifndef _LIBC"
82377         to "#ifndef __argp_short_program_name", so that
82378         we don't compile these functions for tar.
82379
82380         More merges from coreutils.
82381         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
82382         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
82383         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
82384         * lib/addext.c: Remove; no longer needed.
82385         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
82386         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
82387         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
82388         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
82389         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
82390         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
82391         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
82392         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
82393         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
82394         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82395         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
82396         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
82397         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
82398         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
82399         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
82400         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
82401         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
82402         Import changes from coreutils.
82403
82404 2004-08-05  Simon Josefsson  <jas@extundo.com>
82405
82406         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
82407
82408 2004-08-05  Simon Josefsson  <jas@extundo.com>
82409
82410         * m4/getsubopt.m4: New file.
82411
82412 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82413
82414         Merge from coreutils.
82415
82416         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
82417         * m4/getcwd-path-max.m4: New files.
82418
82419         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
82420         FILESYSTEM_PREFIX_LEN ->
82421         FILE_SYSTEM_PREFIX_LEN.
82422         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
82423         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
82424         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
82425         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
82426
82427         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
82428         prerequisite modules now handle the DOS stuff.
82429         Don't check for unistd.h.
82430
82431 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82432
82433         Merge from coreutils.
82434
82435         * lib/.gdb-history: Remove; this doesn't belong here.
82436
82437         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
82438         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
82439         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
82440         * lib/getcwd.c: New files.
82441
82442         * lib/dirname.h: Include <stdbool.h>.
82443         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
82444         for consistency with POSIX terminology.  All uses changed.
82445         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
82446         (strip_trailing_slashes): Use bool for booleans.
82447         * lib/stripslash.c (strip_trailing_slashes): Likewise.
82448
82449         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
82450         sometimes returns a positive errno value even when it succeeds.
82451         (print_errno_message) [!LIBC]: Fall back on strerror if
82452         __strerror_r fails.
82453
82454         * lib/path-concat.c (mempcpy): Don't define if a system header defines
82455         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
82456         (longest_relative_suffix): New function.
82457         (path_concat): Use it.  Assume first argument is not NULL.
82458         Port to DOS.  Omit redundant separators.
82459         Report an error instead of returning NULL.
82460         Use mempcpy instead of memcpy.
82461         (xpath_concat): Remove: not declared or used.
82462
82463         * lib/same.h: Include <stdbool.h>
82464         (same_name): Return bool, not int.
82465         * lib/same.c (same_name): Likewise.
82466         (errno): Don't declare; we assume C89 or better now.
82467
82468         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
82469         if not already defined.
82470
82471         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
82472         * lib/dup-safer.c (errno): Likewise.
82473
82474 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82475
82476         Merge from coreutils.
82477         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
82478         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
82479         * modules/path-concat: Don't depend on strdup.
82480
82481 2004-08-03  Simon Josefsson  <jas@extundo.com>
82482
82483         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
82484         * lib/progname.h: Don't include stdbool.h.
82485
82486 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82487
82488         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
82489         * MODULES.html.sh (func_all_modules): Remove fatal.
82490
82491 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82492
82493         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
82494
82495 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82496
82497         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
82498         working.
82499
82500 2004-08-02  Simon Josefsson  <jas@extundo.com>
82501
82502         * lib/getsubopt.h: New file, with comments from Bruno Haible.
82503         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
82504         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
82505
82506 2004-08-01  Simon Josefsson  <jas@extundo.com>
82507
82508         * lib/xgetdomainname.c: Include stdlib.h, for free().
82509
82510 2004-07-19  Bruno Haible  <bruno@clisp.org>
82511
82512         * MODULES.html.sh (func_all_modules): Add dummy.
82513
82514 2004-07-16  Simon Josefsson  <jas@extundo.com>
82515
82516         * modules/dummy: New file.
82517
82518 2004-07-16  Simon Josefsson  <jas@extundo.com>
82519
82520         * lib/dummy.c: New file.
82521
82522 2004-07-16  Bruno Haible  <bruno@clisp.org>
82523
82524         * lib/backupfile.h: Add extern "C" for C++.
82525         * lib/closeout.h: Likewise.
82526         * lib/copy-file.h: Likewise.
82527         * lib/findprog.h: Likewise.
82528         * lib/full-write.h: Likewise.
82529         * lib/pathname.h: Likewise.
82530         * lib/progname.h: Likewise.
82531         * lib/stpcpy.h: Likewise.
82532         * lib/stpncpy.h: Likewise.
82533         * lib/strcase.h: Likewise.
82534         * lib/strstr.h: Likewise.
82535         * lib/xalloc.h: Likewise.
82536
82537         * lib/mbswidth.h: Add extern "C" for C++.
82538         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
82539
82540 2004-07-13  Robert Millan  <robertmh@gnu.org>
82541
82542         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
82543
82544 2004-07-09  Simon Josefsson  <jas@extundo.com>
82545
82546         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
82547         failed without this.)
82548
82549 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82550
82551         * modules/chown (Files): Add lib/fchown-stub.c, since
82552         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
82553
82554 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82555
82556         * lib/fchown-stub.c: New file.
82557
82558 2004-06-24  Jim Meyering  <jim@meyering.net>
82559
82560         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
82561
82562 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82563
82564         * modules/argz: Omit "#include".
82565
82566         * MODULES.html.sh (func_all_modules): Add calloc, to match
82567         2004-06-01 addition of calloc module.
82568
82569 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82570
82571         * m4/argz.m4: New file, which is autoupdated from libtool.
82572
82573 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82574
82575         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
82576         libtool.
82577
82578 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82579
82580         * config/srclist-update: Don't insist on "USA." before the
82581         close-comment, as libtool omits the period and puts the */ on a
82582         separate line.
82583         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
82584         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
82585
82586 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
82587
82588         * modules/argz: New file.
82589         * MODULES.html.sh (func_all_modules): Add argz.
82590
82591 2004-06-12  Jim Meyering  <jim@meyering.net>
82592         and  Paul Eggert  <eggert@cs.ucla.edu>
82593
82594         * modules/hash (Files): Add lib/xalloc.h.
82595         * modules/pipe (Depends-on): Add wait-process.
82596         * modules/stat (Depends-on): Add xalloc.
82597         * modules/userspec (Files): Add lib/userspec.h.
82598         * modules/xstrto
82599
82600         Upgrade from gettext-0.13.
82601         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
82602         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
82603         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
82604
82605 2004-06-10  Jim Meyering  <jim@meyering.net>
82606
82607         * lib/calloc.c: New file.
82608
82609 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
82610
82611         * lib/getdate.y (yylex): Allow space between sign and number.
82612         Problem reported by Dan Jacobson.
82613
82614 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82615
82616         Merge from coreutils CVS.
82617
82618         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
82619         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
82620         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
82621         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
82622         xstrtol.m4: Fix copyright date and/or serial number.
82623
82624         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
82625         See if we need an fchown replacement.
82626         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
82627         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
82628         and use the replacement function if we detect either defect.
82629
82630         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
82631         gl_UTIMECMP.
82632
82633 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82634         and  Jim Meyering  <jim@meyering.net>
82635
82636         Merge from coreutils CVS.
82637
82638         * lib/stat-macros.h: New file, with contents from file-type.h
82639         and coreutils' system.h.
82640         * lib/file-type.c: Include "stat-macros.h".
82641         * lib/file-type.h (file_type): Move all macro definitions to new file,
82642         stat-macros.h.
82643
82644         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
82645         Wrap old code with this conditional.
82646         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
82647         function that does not dereference symlinks.
82648         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
82649
82650         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
82651         dependency problems.
82652         (xreadlink): Accept new arg SIZE, for efficiency.
82653         All decls and uses changed.
82654         * lib/xreadlink.h: Include <stddef.h>, for size_t.
82655
82656         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
82657         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
82658
82659         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
82660         sysexits.h.
82661
82662 2004-06-01  Jim Meyering  <jim@meyering.net>
82663
82664         * m4/calloc.m4: New file.
82665
82666 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
82667
82668         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
82669         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
82670         Also, fix a typo in a diagnostic.
82671
82672 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82673
82674         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
82675         or AC_FUNC_REALLOC.
82676
82677 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82678
82679         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
82680         macros to be defined.
82681         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
82682         the allocator returns NULL because the requested size is zero.
82683
82684 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82685
82686         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
82687         var.  Add comment explaining why libc still defines it.  This
82688         merges the following patch from glibc:
82689         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
82690
82691 2004-05-20  Andreas Schwab  <schwab@suse.de>
82692
82693         * m4/free.m4: Replace free if it not known to work, not the other
82694         way round.
82695
82696 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82697
82698         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
82699         present in glibc since revision 1.1 of this file.
82700         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
82701         obstack_alignment_mask, obstack_alloc, obstack_base,
82702         obstack_blank, obstack_blank_fast, obstack_chunk_size,
82703         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
82704         obstack_grow0, obstack_init, obstack_int_grow,
82705         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
82706         obstack_next_free, obstack_object_size, obstack_ptr_grow,
82707         obstack_ptr_grow_fast, obstack_room): Remove declarations of
82708         nonexistent functions.
82709
82710 2004-05-18  Karl Berry  <karl@gnu.org>
82711
82712         * config/srclist.txt: break link for vasnprintf.c.
82713
82714 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82715
82716         Port obstack to the AS/400, where pointers are 16 bytes wide and
82717         you cannot cast an integer to a valid pointer.  This patch is
82718         currently waiting to be integrated into glibc; see
82719         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
82720
82721         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
82722         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
82723         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
82724         (struct obstack): temp member is now a union of a pointer and
82725         an integer, instead of an integer.  All integer uses changed.
82726         This does not affect the physical layout of struct obstack,
82727         except on hosts (like the AS/400) where the size or alignment of
82728         void * is greater than that of ptrdiff_t.
82729         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
82730         __STDC__)]: Store temporary in pointer member of union, not
82731         integer member.
82732         * lib/obstack.c: Include <stddef.h>, for offsetof.
82733         (struct fooalign): Remove; it doesn't need a name.
82734         (union fooround): Change double to long double, and add void *.
82735         (DEFAULT_ALIGNMENT): Use offsetof to compute.
82736         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
82737         not a macro.  Hence the values are always int; so remove all
82738         casts-to-int in uses.
82739
82740 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82741
82742         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
82743         we can get this patch merged into glibc.
82744
82745 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82746             Paul Eggert  <eggert@cs.ucla.edu>
82747
82748         * m4/argp: Depend on alloca.
82749
82750 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82751             Paul Eggert  <eggert@cs.ucla.edu>
82752
82753         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
82754         freecoding.
82755
82756 2004-05-17  Bruno Haible  <bruno@clisp.org>
82757
82758         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
82759         precision that consists of a '.' followed by an empty digit string.
82760         Patch by Tor Lillqvist <tml@iki.fi>.
82761
82762 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82763
82764         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
82765         for backward compatibility with older code.  We need our own
82766         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
82767         it under some other name, and our alloca.h will define it.
82768
82769 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82770             Derek Price  <derek@ximbiot.com>
82771
82772         * lib/alloca.c: Include <alloca.h>, to get our interface.
82773         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
82774         include <alloca.h> first.  Use C89 prototype for alloca; this
82775         requires including <stddef.h> for size_t.  Use extern "C" if C++.
82776         Use #elif for simplicity, since we can assume C89 now.
82777         Don't try to source the system alloca.h since it will not be found
82778         and to prevent recursively including its replacement.
82779         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
82780         * lib/regex.c: Likewise.
82781
82782 2004-05-16  Derek Price  <derek@ximbiot.com>
82783             Paul Eggert  <eggert@cs.ucla.edu>
82784
82785         getline cleanup.  This changes the getndelim2 API: both order of
82786         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
82787         no delimiter).
82788
82789         * lib/getline.c: Don't include stddef.h or stdio.h, since our
82790         interface does that.
82791         (getline): Always use getdelim, so that we don't have two
82792         copies of this code.
82793         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
82794         if available.
82795         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
82796         (GETNDELIM2_MAXIMUM): New macro.
82797         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
82798         instead of the old practice of delim2==0.  All callers changed.
82799         Return -1 on overflow, instead of returning junk.
82800         Do not set *linesize unless allocation succeeds.
82801         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
82802         that we include sys/types.h.
82803         * lib/getnline.h: Likewise.
82804         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
82805         (getndelim2): Reorder arguments.
82806         * lib/getnline.c (getnline, getndelim):
82807         Don't discard the NMAX argument.
82808         (getnline): Invoke getndelim, to avoid code duplication.
82809         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
82810         of (size_t) -1 by callers of the getnline family.
82811
82812 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82813
82814         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
82815         Check for gettimeofday.
82816         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
82817         Check for settimeofday, stime.
82818
82819 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82820
82821         * lib/nanosleep.c (suspended): Change its type from int to
82822         sig_atomic_t volatile.
82823         (first_call): Make it private to rpl_nanosleep, and have it
82824         be zero initially as that's a bit faster.
82825         (my_usleep): Round up fractional times instead of truncating them,
82826         as this is the usual meaning for 'sleep'.
82827
82828         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
82829         doesn't work.
82830         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
82831         (ENOSYS): Define if not defined.
82832         (settime): Fall back on stime if it exists and settimeofday fails.
82833         But don't bother with fallbacks if a method fails with errno == EPERM.
82834
82835 2004-05-11  Jim Meyering  <jim@meyering.net>
82836
82837         Prior to this change, the save_cwd caller required read access to the
82838         current directory on most systems (ones with the fchdir function).
82839
82840         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
82841         fails, try write-only, and finally, resort to using xgetcwd.
82842
82843 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82844
82845         * lib/obstack.c, obstack.h: Import changes from libc.
82846
82847 2004-04-28  Bruno Haible  <bruno@clisp.org>
82848
82849         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
82850         also implicitly appends .exe to executables.
82851         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
82852         accepts Windows pathnames.
82853         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82854         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82855         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82856         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82857         Reported by Derek Robert Price <derek@ximbiot.com>.
82858
82859 2004-04-21  Karl Berry  <karl@gnu.org>
82860
82861         * config/srclist.txt (localcharset.c): break sync.
82862
82863 2004-04-20  Paul Eggert  <eggert@twinsun.com>
82864
82865         * m4/host-os.m4: Add a copyright notice.
82866
82867 2004-04-20  Jim Meyering  <jim@meyering.net>
82868
82869         Change UTILS_ to gl_ in AC_DEFINE'd names.
82870         Change utils_- and jm_-prefixed variables, too.
82871         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
82872         UTILS_FUNC_MKDIR_TRAILING_SLASH.
82873         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
82874
82875         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
82876         Don't emit trailing blanks.
82877         Also rename jm_-prefixed variables to have gl_ prefix.
82878
82879         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
82880         Also rename jm_-prefixed variables to have gl_ prefix.
82881
82882         * m4/jm-macros.m4: Reflect the renamings.
82883         * m4/prereq.m4: Likewise.
82884
82885 2004-04-20  Jim Meyering  <jim@meyering.net>
82886
82887         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
82888         memory.
82889
82890 2004-04-20  Jim Meyering  <jim@meyering.net>
82891             Bruno Haible  <bruno@clisp.org>
82892
82893         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
82894         memory when realloc fails.
82895
82896 2004-04-19  Jim Meyering  <jim@meyering.net>
82897
82898         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
82899         now that readutmp.c may call `free (0)'.
82900
82901 2004-04-19  Bruno Haible  <bruno@clisp.org>
82902
82903         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
82904         * m4/inttypes_h.m4: Likewise.
82905         * m4/stdint_h.m4: Likewise.
82906         * m4/intmax_t.m4: Likewise.
82907         * m4/uintmax_t.m4: Likewise.
82908
82909 2004-04-18  Jim Meyering  <jim@meyering.net>
82910
82911         * m4/prereq.m4: Don't forbid jm_ prefix.
82912
82913         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
82914         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
82915         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
82916         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
82917         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
82918         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
82919         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
82920         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
82921         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
82922         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
82923         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
82924         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
82925         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
82926         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
82927         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
82928         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
82929         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
82930         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
82931         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
82932
82933 2004-04-18  Jim Meyering  <jim@meyering.net>
82934
82935         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
82936         failure, don't leak memory and do call END_UTMP_ENT.
82937
82938 2004-04-16  Jim Meyering  <jim@meyering.net>
82939
82940         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
82941         coreutils' stat program.
82942         (gl_PREREQ): Don't require jm_PREREQ_STAT.
82943
82944 2004-04-11  Paul Eggert  <eggert@twinsun.com>
82945
82946         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
82947         C89.
82948         (CHAR_BIT): Remove, since we assume C89.
82949         Include <stdint.h> if available, as per current Autoconf CVS advice.
82950
82951 2004-03-31  Jim Meyering  <jim@meyering.net>
82952
82953         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
82954         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
82955         * m4/xalloc.m4: Likewise.
82956
82957 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82958
82959         Merge from coreutils.
82960
82961         * m4/inttostr.m4: New file.
82962         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
82963         Require AM_STDBOOL_H and gl_TIMESPEC instead.
82964         Require gl_CLOCK_TIME.
82965         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
82966
82967 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82968
82969         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
82970         not bool, to be more consistent with Unix conventions.
82971         Suggested by Bruno Haible.
82972
82973         Merge from coreutils.
82974
82975         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
82976         * lib/umaxtostr.c: New files.
82977
82978         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
82979         the usual <time.h> dance.
82980         (get_date): Change signature to support fractional time stamps.
82981         All callers changed.
82982         * lib/getdate.y: Include "getdate.h" first, as we can now
82983         assume C89 and don't need to worry about 'const'.
82984         Similarly, include "unlocked-io.h" near start, not in middle.
82985         Include <limits.h>.
82986         (textint.value): Use long int rather than int.
82987         (textint.digits): Use size_t rather than int.
82988         (BILLION, LOG10_BILLION): New constants.
82989         (parser_control): New member rel_ns.  Members day_ordinal,
82990         time_zone, month, day, hour, minutes, rel_year, rel_month,
82991         rel_day, rel_hour, rel_minutes, rel_seconds
82992         are now long int, not int.  Member seconds is now struct timespec,
82993         not int.  New member timespec_seen.  Members dates_seen, days_seen,
82994         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
82995         not int.
82996         (%union.intval): Now long int, not int.
82997         New member timespec.
82998         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
82999         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
83000         (spec): Now is a timespec or an item list.
83001         (timespec, items): New nonterminals.
83002         (time, rel, relunit, number, get_date):
83003         Add support for fractional seconds.
83004         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
83005         (gmtime, localtime, mktime): Remove decls; not needed with C89.
83006         (to_hour): First arg is now long int, not int.
83007         (to_year): Returns long int, not int.
83008         Don't treat year -70 like 70.
83009         (tm_diff): Returns long int, not int.
83010         (lookup_word): Use bool instead of int when appropriate.
83011         (yylex): Use size_t for count, not int.
83012         Detect overflow when parsing large integer constants.
83013         Add support for fractions.
83014         (get_date): Make pointers 'const' if possible.
83015         Use more-portable code to detect integer overflow.
83016         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
83017         Don't use ctime; it's not reliable if the year has >4 digits.
83018
83019         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
83020         This is for compatibility with BSD.
83021
83022         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
83023         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
83024         From coreutils' system.h.
83025
83026         * lib/userspec.c: Don't include "posixver.h".
83027         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
83028         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
83029         compatible extension.  Simplify code by removing a boolean int
83030         that was always nonzero if a string was nonnull.
83031
83032 2004-03-30  Jim Meyering  <jim@meyering.net>
83033
83034         Merge from coreutils.
83035
83036         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
83037         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
83038         on some systems one must include <grp.h> before it.
83039         Reported by Christian Krackowizer.
83040
83041 2004-03-30  Jim Meyering  <jim@meyering.net>
83042
83043         Merge from coreutils.
83044
83045         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
83046
83047         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
83048         an empty input stream.
83049
83050         * lib/readtokens.c: Include <stdbool.h>.
83051         (readtoken): Use `size_t' rather than int/long.
83052         All callers adjusted.
83053         Use `bool' rather than `int' where appropriate.
83054         Use memset rather than an explicit loop.
83055         Use x2nrealloc rather than xrealloc.
83056         Allow the use of `\0' as a delimiter.
83057         (readtokens): Likewise.
83058         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
83059
83060 2004-03-30  Jim Meyering  <jim@meyering.net>
83061
83062         * m4/realloc.m4: Remove file, since now it does no more than
83063         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
83064         the `configure.ac' section of module/realloc.
83065         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
83066
83067 2004-03-30  Bruno Haible  <bruno@clisp.org>
83068
83069         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
83070         nonnull.
83071
83072 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83073
83074         Merge changes to getloadavg.c from coreutils and Emacs.
83075
83076         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
83077         Define to an expression, not to the empty string.
83078         Include cloexec.h and xalloc.h.
83079         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
83080         Use set_cloexec_flag rather than rolling our own.
83081         * lib/cloexec.c, lib/cloexec.h: New files.
83082
83083 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83084
83085         * m4/cloexec.m4: New file.
83086
83087 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83088
83089         * lib/getopt.h: Sync with libc CVS.
83090
83091 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83092             Bruno Haible  <bruno@clisp.org>
83093
83094         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
83095         mbswidth.
83096
83097 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83098             Bruno Haible  <bruno@clisp.org>
83099
83100         * lib/mbswidth.h: Include <wchar.h> only if
83101         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
83102         <wchar.h>.
83103         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
83104
83105 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83106
83107         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
83108         Sync with libc CVS.
83109         * lib/getopt_int.h: New file, also synced from libc.
83110
83111 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83112
83113         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
83114         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
83115         Bring back getopt.c, getopt.h, getopt1.c.
83116
83117 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83118
83119         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
83120         All uses changed.  Check for sa_sigaction member; this fixes
83121         a bug first reported by Jason Andrade in
83122         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83123
83124 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83125
83126         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
83127         '#if' expressions.  Unlike the code it replaces, it does not
83128         depend on (defined _SC_PAGESIZE).  However, it does depend on
83129         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
83130         first reported by Jason Andrade in
83131         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83132
83133 2004-02-25  Simon Josefsson  <jas@extundo.com>
83134
83135         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
83136
83137 2004-02-25  Simon Josefsson  <jas@extundo.com>
83138
83139         * lib/strdup.h: New file.
83140         * lib/strdup.c: Include it.
83141         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
83142         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
83143
83144 2004-02-23  Karl Berry  <karl@gnu.org>
83145
83146         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
83147         (from fencepost.gnu.org:/gd/gnuorg).
83148
83149 2004-02-23  Karl Berry  <karl@gnu.org>
83150
83151         * config/srclistvars.sh (GNUORG) [karl]: redefine.
83152         * config/srclist.txt: add maintain/standards documents.
83153
83154 2004-02-18  Bruno Haible  <bruno@clisp.org>
83155
83156         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
83157         Reported by Derek Robert Price <derek@ximbiot.com>.
83158
83159 2004-02-16  Karl Berry  <karl@gnu.org>
83160
83161         * config/mkinstalldirs, install-sh: update from automake.
83162
83163 2004-02-06  Karl Berry  <karl@gnu.org>
83164
83165         * m4/po.m4: update from gettext 0.14.1.
83166
83167 2004-02-06  Karl Berry  <karl@gnu.org>
83168
83169         * lib/config.charset: update from gettext 0.14.1.
83170
83171 2004-02-05  Paul Eggert  <eggert@twinsun.com>
83172
83173         Add comments and code, prompted by suggestions from Bruno Haible
83174         for sh-quote.
83175         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
83176         describing the enum quoting_style values.
83177         * lib/quotearg.c (quotearg_alloc): New function.
83178         (quotearg_buffer_restyled): Treat lone { and } as special.
83179         Treat = as special.  Work around bug with older shells
83180         that "see" a '\' that is really the 2nd byte of a multibyte char.
83181         Quote empty string with shell_quoting_style.
83182
83183 2004-02-03  Bruno Haible  <bruno@clisp.org>
83184
83185         * m4/pipe.m4: New file, from GNU gettext.
83186
83187 2004-02-03  Bruno Haible  <bruno@clisp.org>
83188
83189         * lib/pipe.h: New file, from GNU gettext.
83190         * lib/pipe.c: New file, from GNU gettext.
83191
83192 2004-01-27  Bruno Haible  <bruno@clisp.org>
83193
83194         * m4/execute.m4: New file, from GNU gettext.
83195
83196 2004-01-27  Bruno Haible  <bruno@clisp.org>
83197
83198         * lib/execute.h: New file, from GNU gettext.
83199         * lib/execute.c: New file, from GNU gettext.
83200         * lib/w32spawn.h: New file, from GNU gettext.
83201
83202 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83203
83204         Merge from diffutils.
83205
83206         * lib/file-type.c (file_type): Add typed memory objects.
83207         * lib/file-type.h (S_TYPEISTMO): New macro.
83208
83209         * lib/c-stack.h (c_stack_action): Remove argv argument.
83210         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
83211         (die): Don't calculate message unless segv_action returns.
83212         (get_stack_location, min_address_from_argv, max_address_from_argv,
83213         volatile stack_base, volatile_stack_size): Remove.
83214         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
83215         that every segmentation violation is a stack overflow.  (Ouch!)
83216         See Debian bug 136249 (still outstanding) for more info about why
83217         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
83218
83219 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83220
83221         Exit-status fix from coreutils.
83222
83223         Use exit_failure consistently in place of EXIT_FAILURE,
83224         so that program exit statuses are consistent on failure.
83225
83226         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
83227         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
83228         * lib/argmatch.h: Comment fix to match the above.
83229         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
83230         Now a macro referring to exit_failure, instead of a separate
83231         variable.  Include "exitfail.h" to get it.
83232         * lib/xstrtol.h: Include "exitfail.h".
83233         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
83234
83235         * lib/long-options.c (parse_long_options): Use prototype
83236         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
83237         for clarity.
83238
83239 2004-01-21  Jim Meyering  <jim@meyering.net>
83240
83241         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
83242         so as not to conflict with a different-sized __mktime_internal
83243         function in GNU libc.
83244         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
83245         Problem building statically-linked `ls' reported by Michael Brunnbauer.
83246
83247 2004-01-20  Karl Berry  <karl@gnu.org>
83248
83249         * config/config.guess: update from config.
83250
83251         * config/srclistvars.sh: GNUWWWLICENSES for karl.
83252
83253 2004-01-20  Bruno Haible  <bruno@clisp.org>
83254
83255         Safer stack allocation.
83256         * lib/setenv.c: Include allocsa.h.
83257         (alloca): Remove fallback definition.
83258         (freea): Remove macro.
83259         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
83260         instead of freea.
83261
83262 2004-01-20  Bruno Haible  <bruno@clisp.org>
83263
83264         * m4/eealloc.m4: New file, from GNU gettext.
83265
83266 2004-01-20  Bruno Haible  <bruno@clisp.org>
83267
83268         * m4/allocsa.m4: New file, from GNU gettext.
83269
83270 2004-01-20  Bruno Haible  <bruno@clisp.org>
83271
83272         * lib/xallocsa.h: New file, from GNU gettext.
83273         * lib/xallocsa.c: New file, from GNU gettext.
83274
83275 2004-01-20  Bruno Haible  <bruno@clisp.org>
83276
83277         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
83278
83279 2004-01-20  Bruno Haible  <bruno@clisp.org>
83280
83281         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
83282         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
83283         specially.
83284
83285 2004-01-20  Bruno Haible  <bruno@clisp.org>
83286
83287         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
83288         patch.
83289
83290 2004-01-20  Bruno Haible  <bruno@clisp.org>
83291
83292         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
83293
83294 2004-01-20  Bruno Haible  <bruno@clisp.org>
83295
83296         * lib/eealloc.h: New file.
83297
83298 2004-01-20  Bruno Haible  <bruno@clisp.org>
83299
83300         * lib/binary-io.h: Avoid warnings on Cygwin.
83301
83302 2004-01-20  Bruno Haible  <bruno@clisp.org>
83303
83304         * lib/allocsa.h: New file, from GNU gettext.
83305         * lib/allocsa.c: New file, from GNU gettext.
83306
83307 2004-01-18  Karl Berry  <karl@gnu.org>
83308
83309         * doc/gpl.texi, doc/lgpl.texi: new files.
83310
83311 2004-01-18  Karl Berry  <karl@gnu.org>
83312
83313         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
83314         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
83315
83316 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83317
83318         Merge from coreutils.
83319
83320         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
83321         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
83322         (gl_DEFAULT_POSIX2_VERSION): Move
83323         the documentation from 'configure' into 'config.hin',
83324         so that 'configure --help' isn't burdened by it and
83325         we don't have to worry about its formatting there.
83326         Reword the documentation so that it's more succinct
83327         and can be run together into a single paragraph.
83328         * m4/same.m4 (gl_SAME): Check for pathconf.
83329
83330 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83331
83332         Merge from coreutils.
83333
83334         * lib/posixver.c: Include posixver.h.
83335
83336         * lib/same.c: Include <stdbool.h>, <limits.h>.
83337         (_POSIX_NAME_MAX): Define if not defined.
83338         (MIN): New macro.
83339         (same_name): If file names are silently truncated, report
83340         that the file names are the same if they are the same after
83341         the silent truncation.
83342
83343         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
83344         conversion function.
83345         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
83346         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
83347         longer needed.
83348
83349 2004-01-15  Jim Meyering  <jim@meyering.net>
83350
83351         Merge from coreutils.
83352
83353         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
83354         if no library is required.
83355         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
83356         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
83357         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
83358         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
83359         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
83360         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
83361         value, $ac_cv_search_crypt, if it's "none required".
83362         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
83363         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
83364         not gl_FUNC_GETLOADAVG.
83365         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
83366         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
83367
83368 2004-01-15  Jim Meyering  <jim@meyering.net>
83369
83370         Merge from coreutils.
83371
83372         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
83373         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
83374         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
83375
83376         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
83377         optional configure-time default.
83378
83379         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83380
83381         * lib/xreadlink.c (xreadlink): Correct outdated comment.
83382
83383 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
83384
83385         Merge from coreutils.
83386
83387         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
83388         value, $ac_cv_search_nanosleep, if it's "none required".
83389
83390 2004-01-14  Paul Eggert  <eggert@twinsun.com>
83391
83392         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
83393         with like-named macro in fnmatch.c.
83394         (EXT): Use an internal constant instead.
83395
83396         Merge fnmatch patches from glibc.
83397         * lib/fnmatch.c (mbsinit): Remove define.
83398         Add libc_hidden_ver (__fnmatch, fnmatch).
83399         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
83400         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
83401
83402 2004-01-14  Karl Berry  <karl@gnu.org>
83403
83404         * config/install-sh: update from automake.
83405
83406 2004-01-13  Karl Berry  <karl@gnu.org>
83407
83408         * config/install-sh: update from automake.
83409
83410 2004-01-09  Karl Berry  <karl@gnu.org>
83411
83412         * config/install-sh: update from automake.
83413
83414 2004-01-05  Karl Berry  <karl@gnu.org>
83415
83416         * config/config.{sub,guess}: update from config.
83417
83418 2003-12-31  Karl Berry  <karl@gnu.org>
83419
83420         * config/depcomp: update from automake.
83421
83422 2003-12-14  Karl Berry  <karl@gnu.org>
83423
83424         * lib/config.charset: update from gettext-runtime.
83425
83426 2003-12-03  Paul Eggert  <eggert@twinsun.com>
83427
83428         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
83429         Bug reported by Alfred M. Szmidt.
83430
83431 2003-12-03  Bruno Haible  <bruno@clisp.org>
83432
83433         * m4/gettext.m4: Upgrade from gettext-0.13.
83434         * m4/po.m4: Upgrade from gettext-0.13.
83435         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
83436         * m4/intmax.m4: New file, from gettext-0.13.
83437         * m4/printf-posix.m4: New file, from gettext-0.13.
83438
83439 2003-11-29  Karl Berry  <karl@gnu.org>
83440
83441         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
83442
83443 2003-11-25  Paul Eggert  <eggert@twinsun.com>
83444             Bruno Haible  <bruno@clisp.org>
83445
83446         * lib/printf-parse.h: Don't include sys/types.h.
83447         (ARG_NONE): New macro.
83448         (char_directive): Change type of *arg_index fields to size_t.
83449         * lib/printf-parse.c: Don't include sys/types.h.
83450         (SSIZE_MAX): Remove macro.
83451         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
83452         Remove unnecessary overflow check.
83453         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
83454         fields.
83455
83456 2003-11-25  Bruno Haible  <bruno@clisp.org>
83457
83458         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
83459
83460 2003-11-25  Bruno Haible  <bruno@clisp.org>
83461
83462         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
83463         gt_TYPE_SSIZE_T.
83464
83465 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83466
83467         * modules/alloca: Remove dependency on xalloc.
83468
83469 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83470
83471         * lib/alloca.c: Remove dependency on xalloc module.
83472         (xalloc_die): Remove.
83473         (memory_full) [!defined emacs]: New macro.
83474         [!defined emacs]: Don't include xalloc.h.
83475         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
83476         address arithmetic overflows.  Change datatypes a bit to avoid
83477         unnecessary casts.
83478
83479 2003-11-22  Jim Meyering  <jim@meyering.net>
83480
83481         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
83482         s/size/size_t/.
83483
83484 2003-11-21  Karl Berry  <karl@gnu.org>
83485
83486         * config/config.{sub,guess}: update from config.
83487
83488 2003-11-18  Karl Berry  <karl@gnu.org>
83489
83490         * config/config.{sub,guess}: update from config.
83491
83492         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
83493
83494 2003-11-17  Paul Eggert  <eggert@twinsun.com>
83495
83496         * README: Mention that S+T cannot overflow if S is the size of
83497         an existing object and T is sufficiently small.
83498
83499 2003-11-17  Jim Meyering  <jim@meyering.net>
83500
83501         On systems without utime and without a utimes function capable of
83502         dealing with a NULL struct utimbuf* argument, this utime replacement
83503         could -- in unusual circumstances -- leak a file descriptor.
83504         * lib/utime.c: Include <unistd.h> and <errno.h>.
83505         (utime_null): Be sure to close `fd' and to preserve errno.
83506         Reported by Geoff Collyer via Arnold Robbins.
83507
83508 2003-11-17  Bruno Haible  <bruno@clisp.org>
83509
83510         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
83511         (Depends-on): Add xsize.
83512
83513 2003-11-17  Bruno Haible  <bruno@clisp.org>
83514
83515         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
83516
83517 2003-11-17  Bruno Haible  <bruno@clisp.org>
83518
83519         * lib/vasnprintf.c (alloca): Remove fallback definition.
83520         (freea): Remove definition.
83521         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
83522         Reported by Paul Eggert.
83523
83524 2003-11-16  Paul Eggert  <eggert@twinsun.com>
83525             Bruno Haible  <bruno@clisp.org>
83526
83527         Protect against address arithmetic overflow.
83528         * lib/printf-args.h: Include stddef.h.
83529         (arguments): Change type of field 'count' to size_t.
83530         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
83531         'unsigned int' where appropriate.
83532         * lib/printf-parse.h: Include sys/types.h.
83533         (char_directive): Change type of *arg_index fields to ssize_t.
83534         (char_directives): Change type of fields 'count', max_*_length to
83535         size_t.
83536         * lib/printf-parse.c: Include sys/types.h and xsize.h.
83537         (SSIZE_MAX): Define fallback value.
83538         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
83539         instead of 'int' where appropriate. Check a_allocated, d_allocated
83540         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
83541         * lib/vasnprintf.c: Include xsize.h.
83542         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
83543         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
83544         overflow. Avoid wraparound when converting a width or precision from
83545         decimal to binary.
83546
83547 2003-11-16  Bruno Haible  <bruno@clisp.org>
83548
83549         Update from GNU gettext.
83550         * lib/printf-parse.c: Generalize to it can be compiled for wide
83551         strings.
83552         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
83553         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
83554         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
83555         SNPRINTF): New macros.
83556         Don't include <alloca.h> if the file is used inside libintl.
83557         (local_wcslen): New function, for Solaris 2.5.1.
83558         (VASNPRINTF): Use it instead of wcslen.
83559
83560 2003-11-16  Bruno Haible  <bruno@clisp.org>
83561
83562         * lib/xsize.h (xmax): New function.
83563         (xsum, xsum3, xsum4): Declare as "pure" functions.
83564
83565 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83566
83567         * modules/xalloc (Files): Undo latest change, since xalloc.h
83568         no longer needs SIZE_MAX or PTRDIFF_MAX.
83569
83570 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83571
83572         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
83573         gl_PTRDIFF_MAX.
83574
83575 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83576
83577         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
83578         "return", to pacify some unknown compiler.  Problem reported
83579         by Joerg Schilling.
83580
83581 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83582
83583         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
83584         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
83585         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
83586         heuristic is just as accurate as far as we know, and it removes a
83587         dependency on size_max.m4 and ptrdiff_max.m4.
83588
83589 2003-11-11  Bruno Haible  <bruno@clisp.org>
83590
83591         * modules/xsize (Files): Add m4/size_max.m4.
83592         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
83593
83594 2003-11-11  Bruno Haible  <bruno@clisp.org>
83595
83596         * m4/size_max.m4: New file.
83597         * m4/ptrdiff_max.m4: New file.
83598         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
83599         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
83600         (gl_XALLOC): Invoke it.
83601
83602 2003-11-11  Bruno Haible  <bruno@clisp.org>
83603
83604         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
83605         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
83606         defined.
83607
83608 2003-11-10  Paul Eggert  <eggert@twinsun.com>
83609
83610         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
83611         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
83612         rejected some allocations of exactly SIZE_MAX - 2 bytes.
83613         From Bruno Haible.
83614         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
83615         not (size_t) -1, since it's defined here.
83616
83617 2003-11-09  Karl Berry  <karl@gnu.org>
83618
83619         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
83620
83621 2003-11-06  Paul Eggert  <eggert@twinsun.com>
83622
83623         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
83624         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
83625         Reject sizes of exactly SIZE_MAX bytes.
83626         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
83627         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
83628
83629 2003-11-05  Bruno Haible  <bruno@clisp.org>
83630
83631         * lib/xsize.h: Include limits.h, to avoid a possible collision with
83632         SIZE_MAX defined in <limits.h> on Solaris.
83633
83634 2003-11-04  Jim Meyering  <jim@meyering.net>
83635
83636         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
83637         variable names, rather than @VAR@.
83638         * modules/poll: Likewise.
83639
83640 2003-11-04  Bruno Haible  <bruno@clisp.org>
83641
83642         * modules/xsize: New file.
83643         * modules/linebreak: Depend on xsize.
83644         * MODULES.html.sh (func_all_modules): Add xsize.
83645
83646 2003-11-04  Bruno Haible  <bruno@clisp.org>
83647
83648         * m4/xsize.m4: New file.
83649
83650 2003-11-04  Bruno Haible  <bruno@clisp.org>
83651
83652         * lib/xsize.h: New file.
83653         * lib/linebreak.c: Include xsize.h.
83654         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
83655         argument for overflow.
83656         Suggested by Paul Eggert.
83657
83658 2003-11-03  Karl Berry  <karl@gnu.org>
83659
83660         * config/config.{guess,sub}: update from config.
83661
83662 2003-11-03  Jim Meyering  <jim@meyering.net>
83663
83664         * modules/userspec (lib_SOURCES): Add userspec.h.
83665         (Include): Add "userspec.h".
83666         Improve description.
83667
83668 2003-11-03  Jim Meyering  <jim@meyering.net>
83669
83670         * lib/userspec.c: Include "userspec.h".
83671         * lib/userspec.h: New file.
83672
83673 2003-11-03  Bruno Haible  <bruno@clisp.org>
83674
83675         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
83676
83677 2003-11-03  Bruno Haible  <bruno@clisp.org>
83678
83679         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
83680         available, to avoid (extremely rare) race condition.
83681         Suggested by Paul Eggert.
83682
83683 2003-11-02  Karl Berry  <karl@gnu.org>
83684
83685         * config/srclist.txt (vasprintf.c): sync broken, sigh.
83686
83687 2003-10-31  Paul Eggert  <eggert@twinsun.com>
83688
83689         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
83690         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
83691         (read_filesystem_list): Set and use me_type_malloced.
83692         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
83693         whatever the type happens to be), for brevity and consistency.
83694         Check for size calculation overflow on Alphas running OSF/1.
83695
83696 2003-10-31  Jim Meyering  <jim@meyering.net>
83697
83698         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
83699
83700         * lib/linebuffer.c: Include <string.h> for declaration of memset.
83701
83702 2003-10-30  Paul Eggert  <eggert@twinsun.com>
83703             Bruno Haible  <bruno@clisp.org>
83704
83705         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
83706         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
83707
83708 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83709
83710         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
83711         netbsd*-gnu*.  Suggested by Robert Millan.
83712
83713 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83714
83715         * modules/group-member: Depend on stdbool.
83716
83717 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83718
83719         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
83720
83721 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83722
83723         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
83724         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
83725         after the 'gnu' in these cases.  This fixes some bugs in the
83726         previous change, and is based on suggestions by Robert Millan.
83727
83728 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83729
83730         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
83731         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
83732         no longer needed.
83733         * lib/quotearg.c (quotearg_n_options): Use it.
83734         * lib/group-member.c: Include <stdbool.h>.
83735         (free_group_info): Arg is now const *; don't free arg.
83736         (get_group_info): Now returns bool and accepts struct group_info *,
83737         rather than returning a malloc'ed struct group_info *.
83738         All uses changed.  Check for overflow in internal size calculation.
83739
83740         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
83741         rather than xmalloc/xrealloc.
83742         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
83743         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
83744         conformance bug: the old code used a pointer after freeing the
83745         storage that it addressed.
83746         * lib/hash.c (hash_initialize): Simplify the code by using
83747         xalloc_oversized rather than doing it by hand.
83748         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
83749         the buffer preserved.  Use free and xmalloc instead.
83750         * lib/quotearg.c (quotearg_n_options): Likewise.
83751         Use a simpler test for size overflow.  Don't use xalloc_oversized
83752         because unsigned int might be wider than size_t (!); this suggests
83753         that we should switch from unsigned int to size_t for slot numbers.
83754
83755 2003-10-28  Paul Eggert  <eggert@twinsun.com>
83756
83757         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
83758         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
83759         NetBSD kernels.  Requested by Richard Stallman.
83760
83761 2003-10-27  Paul Eggert  <eggert@twinsun.com>
83762
83763         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
83764         to allocate the returned structure.  Do not allocate a subarray,
83765         as x2nrealloc will do that.
83766         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
83767         instead of xnrealloc.
83768         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
83769
83770 2003-10-27  Bruno Haible  <bruno@clisp.org>
83771
83772         * lib/stdbool_.h: Better support for BeOS.
83773
83774 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83775
83776         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
83777         now uses inline.
83778
83779 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83780
83781         * lib/xalloc.h (xalloc_oversized): New static inline function, for
83782         callers that want to do their own size-overflow checking.  Include
83783         <stdbool.h>, since xalloc_oversized returns bool.
83784         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
83785         to use xalloc_oversized.
83786
83787         Add two functions x2realloc, x2nrealloc, for programs that grow
83788         arrays dynamically by doubling their sizes.
83789         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
83790         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
83791         New functions.
83792
83793         Port to C99 semantics for 'inline' of external functions.
83794         Bug reported by Bruno Haible.
83795         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
83796         with the old contents of xnmalloc.
83797         (xnmalloc, xmalloc): Use it.
83798         (xnrealloc_inline): New static inline function,
83799         with the old contents of xnrealloc.
83800         (xnrealloc, xrealloc): Use it.
83801
83802         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
83803         that.
83804
83805 2003-10-26  Karl Berry  <karl@gnu.org>
83806
83807         * config/srclist.txt (COPYING.DOC): no longer available from
83808         /gd/gnuorg; don't know where the ultimate source is.
83809
83810 2003-10-25  Paul Eggert  <eggert@twinsun.com>
83811
83812         Fix several address-calculation bugs in the hash modules,
83813         plus some minor code cleanup.
83814
83815         * lib/hash.h: Include <stdbool.h>, for bool.
83816         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
83817         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
83818         hash_get_n_entries, hash_get_max_bucket_length,
83819         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
83820         hash_rehash): Use size_t rather than unsigned.
83821         * lib/hash.c (struct hash_table, hash_get_n_buckets,
83822         hash_get_n_buckets_used, hash_get_n_entries,
83823         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
83824         hash_get_entries, hash_do_for_each, hash_string, is_prime,
83825         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
83826         Likewise.
83827         (SIZE_MAX): Define if not defined.
83828         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
83829         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
83830         hash_print):
83831         Use const * when possible.
83832         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
83833         (check_tuning): Fix bug: if tuning parameters were very close to
83834         0 or 1, rounding errors could have caused subscript violations.
83835         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
83836         (hash_initialize): Add 'fail:' label
83837         to free table and return NULL, and use it to simplify code.
83838         Use calloc rather than clearing the storage ourself.
83839         (hash_initialize, hash_rehash): Check for arithmetic overflow in
83840         buffer size calculations.
83841         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
83842         Include <stddef.h>, for size_t.
83843         * lib/hash-pjw.c (hash_pjw): Likewise.
83844         Switch to method described by Bruno Haible.
83845         Include <limits.h>, for CHAR_BIT.
83846         (SIZE_BITS): New macro.
83847
83848 2003-10-23  Paul Eggert  <eggert@twinsun.com>
83849
83850         * m4/getline.m4 (AM_FUNC_GETLINE):
83851         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
83852         hosts.  Problem reported by Derek Robert Price in
83853         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
83854         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
83855         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
83856
83857 2003-10-21  Paul Eggert  <eggert@twinsun.com>
83858
83859         * lib/getndelim2.c (getndelim2): When size calculation overflows,
83860         ceiling the allocation at NMAX bytes rather than silently
83861         discarding input bytes before NMAX is reached.  This makes
83862         a difference only if NMAX exceeds SIZE_MAX / 2.
83863
83864         * lib/obstack.c: Merge from glibc.
83865         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
83866         Add libc_hidden_def (_obstack_newchunk).
83867         (_obstack_free) [! defined _LIBC]: Remove.
83868         [defined _LIBC]: Make a strong alias from obstack_free, rather than
83869         a clone of the function body.
83870         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
83871         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
83872
83873         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
83874         glibc.
83875         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
83876         arg to memcpy.
83877
83878         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
83879         (obstack_ptr_grow_fast, obstack_int_grow_fast):
83880         Don't use lvalue casts, as GCC plans to remove support for them
83881         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
83882         was also present in the non-GCC version, indicating that this
83883         code had always been buggy and had never been widely used.
83884         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
83885         Use the fast variant of each macro, rather than copying the
83886         definiens of the fast variant; that way, we'll be more likely to
83887         catch future bugs in the fast variants.
83888
83889 2003-10-20  Bruno Haible  <bruno@clisp.org>
83890
83891         * modules/wait-process: New file.
83892         * MODULES.html.sh (func_all_modules): Add wait-process.
83893
83894 2003-10-20  Bruno Haible  <bruno@clisp.org>
83895
83896         * m4/wait-process.m4: New file.
83897
83898 2003-10-20  Bruno Haible  <bruno@clisp.org>
83899
83900         * lib/wait-process.h: New file, from GNU gettext.
83901         * lib/wait-process.c: New file, from GNU gettext.
83902
83903 2003-10-19  Jim Meyering  <jim@meyering.net>
83904
83905         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
83906         HPUX 10.20.
83907
83908 2003-10-18  Karl Berry  <karl@gnu.org>
83909
83910         * config/config.guess: update from config.
83911
83912 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83913
83914         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
83915         (getgroups): First arg is int, not size_t.
83916         Don't let 'free' mangle errno.
83917
83918 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83919
83920         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
83921
83922 2003-10-16  Karl Berry  <karl@gnu.org>
83923
83924         * config/config.{guess,sub}: update from config.
83925
83926 2003-10-16  Jim Meyering  <jim@meyering.net>
83927
83928         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
83929         memcpy.
83930
83931 2003-10-15  Paul Eggert  <eggert@twinsun.com>
83932
83933         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
83934         (SIZE_MAX): Remove.
83935         (new_exclude, add_exclude_file): Initial size no longer needs to
83936         be a power of 2.
83937         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
83938         our own address arithmetic overflow checking.
83939
83940         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
83941         (fnmatch): Do not alloca more than 2000 wide characters;
83942         instead, use malloc for large buffers.
83943         Check for address arithmetic overflow, and return -1
83944         with errno set to ENOMEM in that case.
83945         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
83946         (NEW_PATTERN): Do not alloca more than 8000 bytes;
83947         instead, return -1.  Check for address arithmetic overflow.
83948
83949 2003-10-14  Paul Eggert  <eggert@twinsun.com>
83950
83951         Handle invalid suffixes and overflow independently, so that
83952         callers can treat them independently as needed.  Fix some bugs in
83953         suffix handling, e.g., "100k@" was not diagnosed as an invalid
83954         suffix for a human-readable blocksize.  The major caller-visible
83955         change is the addition of a new
83956         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
83957         that both overflow and suffix chars were found.
83958
83959         * lib/human.c (humblock): Don't check separately for invalid suffix
83960         char; that is xstrtoumax's job (now that its bug is fixed).
83961         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
83962         INTMAX_MAX]: New macros.
83963         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
83964         TYPE_MAXIMUM): New macros.
83965         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
83966         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
83967         if overflow occurs, as it's what __strtol does and it's more useful
83968         in practice.
83969         (__xstrtol): If __strtol reports some error other than ERANGE,
83970         reflect it to the caller as LONGINT_INVALID.  If it reports
83971         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
83972         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
83973         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
83974         value.
83975         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
83976         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
83977         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
83978         [defined UINTMAX_MAX]: New macros.
83979
83980 2003-10-14  Bruno Haible  <bruno@clisp.org>
83981
83982         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
83983
83984 2003-10-14  Bruno Haible  <bruno@clisp.org>
83985
83986         * m4/sig_atomic_t: New file, from GNU gettext.
83987         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
83988
83989 2003-10-14  Bruno Haible  <bruno@clisp.org>
83990
83991         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
83992         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
83993         Also use volatile where needed.
83994
83995 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83996
83997         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
83998         Change maintainer from Bruno Haible to 'all'.
83999
84000 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84001
84002         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
84003
84004 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84005
84006         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
84007         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
84008         and define in terms of the other primitives.
84009         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
84010         (SIZE_MAX): Define if not already defined.
84011         (array_size_overflow): New function.
84012         (xalloc_die): Abort instead of exiting if 'error' returns.
84013         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
84014         (xmalloc, xrealloc): Use them.
84015         (xcalloc): Check for address arithmetic overflow.
84016         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
84017         a bit faster than strcpy.
84018
84019 2003-10-10  Simon Josefsson  <jas@extundo.com>
84020
84021         * modules/argp (Depends-on): Add restrict and strcase.
84022
84023 2003-10-10  Simon Josefsson  <jas@extundo.com>
84024
84025         * m4/argp.m4: Add AC_C_INLINE.
84026
84027 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84028
84029         Merge getpass from libc, plus a few fixes.
84030
84031         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
84032         Include <stdbool.h>.
84033         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
84034         __fsetlocking to empty.
84035         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
84036         do include <bits/libc-lock.h>.
84037         Do not include <fcntl.h>; not needed.
84038         [_LIBC]: Include <wchar.h>.
84039         (NOTCANCEL_MODE): New macro.
84040         (flockfile, funlockfile) [_LIBC]: New macros.
84041         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
84042         [!_LIBC]: New macros.
84043         (call_fclose): New function.
84044         (getpass): Use it.  Save tty stream separately; this simplifies the
84045         code and makes it more reliable if stdin happens to equal stdout.
84046         Invoke __fsetlocking on tty.
84047         Handle thread cancellation if needed.
84048         Namespace cleanup (use __tcgetattr, __getline).
84049         Use bool for Booleans.
84050         [USE_IN_LIBIO]: Handle wide streams.
84051         [!_LIBC]: Unconditionally do the fseek, since we don't know what
84052         stream might go where.
84053
84054         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
84055         doesn't have to include <stdio.h> before us.
84056         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
84057         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
84058         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
84059         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
84060         if not declared, so that we can use getpass.c code from libc without
84061         rewriting it.
84062         (flockfile, ftrylockfile, funlockfile): New macros.
84063
84064 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84065
84066         * modules/getpass: Depend on stdbool.
84067
84068 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84069
84070         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
84071
84072 2003-10-07  Karl Berry  <karl@gnu.org>
84073
84074         * config/config.{guess,sub}: update from config.
84075
84076 2003-10-06  Jim Meyering  <jim@meyering.net>
84077             Bruno Haible  <bruno@clisp.org>
84078
84079         This lets translators provide better translations for the
84080         "Written by ..." part of --version output.
84081         * lib/version-etc.h: Include stdarg.h.
84082         (version_etc_copyright): Declare as readonly.
84083         (version_etc): Make this function variadic with a NULL-terminated list
84084         of author name strings.
84085         (version_etc_va): New declaration.
84086         * lib/version-etc.c: Include stdarg.h, stdlib.h.
84087         (version_etc_copyright): Declare as readonly.
84088         (version_etc_va): New function. Provide a different translatable string
84089         for each possible number of authors < 10. Abbreviate when there are 10
84090         authors or more.
84091         (version_etc): Make this function variadic. Call version_etc_va.
84092         Suggestion from Gary V. Vaughan.
84093
84094         * lib/long-options.h (parse_long_options): Change prototype: the
84095         authors string is moved to the end and becomes variadic.
84096         * lib/long-options.c: Include stdarg.h.
84097         (parse_long_options): Make this function variadic, too.
84098         Call version_etc_va, not version_etc.
84099
84100 2003-10-06  Bruno Haible  <bruno@clisp.org>
84101
84102         * modules/version-etc-2: Remove file.
84103         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
84104
84105 2003-10-06  Bruno Haible  <bruno@clisp.org>
84106
84107         * modules/fatal-signal: New file.
84108         * MODULES.html.sh (func_all_modules): Add fatal-signal.
84109
84110 2003-10-06  Bruno Haible  <bruno@clisp.org>
84111
84112         * m4/fatal-signal.m4: New file.
84113         * m4/signalblocking.m4: New file, from GNU gettext.
84114
84115 2003-10-06  Bruno Haible  <bruno@clisp.org>
84116
84117         * lib/version-etc-2.h: Remove file.
84118         * lib/version-etc-2.c: Remove file.
84119
84120 2003-10-06  Bruno Haible  <bruno@clisp.org>
84121
84122         * lib/fatal-signal.h: New file, from GNU gettext.
84123         * lib/fatal-signal.c: New file, from GNU gettext.
84124
84125 2003-10-05  Paul Eggert  <eggert@twinsun.com>
84126
84127         * README: Rework advice for preventing empty .o files.
84128         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
84129         not <sys/types.h>.
84130
84131 2003-10-04  Karl Berry  <karl@gnu.org>
84132
84133         * lib/argp*: update from libc.
84134
84135 2003-10-04  Karl Berry  <karl@gnu.org>
84136
84137         * config/config.{guess,sub}: update from config.
84138
84139 2003-10-02  Bruno Haible  <bruno@clisp.org>
84140
84141         * modules/lchown (Include): Add lchown.h.
84142         * modules/time_r (Include): Use "..." syntax.
84143         * modules/xgetdomainname (Include): Add xgetdomainname.h.
84144
84145 2003-10-01  Simon Josefsson  <jas@extundo.com>
84146
84147         * MODULES.html.sh (func_all_modules): Move gethostname from section
84148         'based on' to section 'lacking' POSIX:2001.
84149
84150 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
84151
84152         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
84153         to output mode on the same stream.
84154
84155 2003-09-29  Paul Eggert  <eggert@twinsun.com>
84156
84157         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
84158         Fix arg typo in previous patch.
84159
84160 2003-09-28  Jim Meyering  <jim@meyering.net>
84161
84162         * lib/error.c: Correct cpp indentation.
84163
84164 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84165
84166         * modules/free: New file.
84167
84168 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84169
84170         * m4/free.m4: New file.
84171
84172 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84173
84174         * lib/minmax.h (MIN, MAX)
84175         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
84176         Omit the special code that used __typeof__, since we worry that
84177         it could be more trouble than it's worth.  See:
84178         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
84179         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
84180
84181         * lib/free.c: New file.
84182
84183 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
84184
84185         Trivial fixes to Makefile.am parts of module listings.
84186         * modules/strstr: Append strstr.h to lib_SOURCES.
84187         * modules/strcase: Likewise, for strcase.h.
84188
84189 2003-09-27  Karl Berry  <karl@gnu.org>
84190
84191         * config/mkinstalldirs: update from automake.
84192
84193 2003-09-26  Paul Eggert  <eggert@twinsun.com>
84194
84195         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
84196         (error_tail): Do not loop, reallocating temporary buffer, since
84197         the output cannot contain more wide characters than the input
84198         contains bytes, the size must be big enough already.  This avoids
84199         one potential size overflow calculation.  Check for size overflow
84200         when calculating temporary buffer size.  Free temporary buffer
84201         when done, if it was allocated with malloc; this plugs a memory
84202         leak.  Remove casts from void * to pointers, that are no longer
84203         needed now that we're assuming C89 or better.
84204
84205         Merge error changes from glibc.
84206
84207         * lib/error.c, error.h: Update copyright notice header to match glibc.
84208         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
84209         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
84210         Disable cancellation while printing error.
84211         * lib/error.h: Prepend __ to parameter names.
84212
84213 2003-09-26  Jim Meyering  <jim@meyering.net>
84214
84215         * lib/error.c (error_tail): Move some declarations
84216         into inner scope where the local variables are used.
84217
84218 2003-09-26  Bruno Haible  <bruno@clisp.org>
84219
84220         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
84221         stpncpy().
84222         Don't define stpncpy through config.h; it's now done through stpncpy.h.
84223
84224 2003-09-26  Bruno Haible  <bruno@clisp.org>
84225
84226         * lib/stpncpy.h (gnu_stpncpy): New declaration.
84227         (stpncpy): Define as alias for gnu_stpncpy.
84228         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
84229
84230 2003-09-25  Simon Josefsson  <jas@extundo.com>
84231
84232         * lib/xgetdomainname.h: New file.
84233         * lib/xgetdomainname.c: New file.
84234
84235 2003-09-25  Simon Josefsson  <jas@extundo.com>
84236             Bruno Haible  <bruno@clisp.org>
84237
84238         * modules/getdomainname: New file.
84239         * modules/xgetdomainname: New file.
84240         * MODULES.html.sh (func_all_modules): Add getdomainname,
84241         xgetdomainname.
84242
84243 2003-09-25  Simon Josefsson  <jas@extundo.com>
84244             Bruno Haible  <bruno@clisp.org>
84245
84246         * m4/getdomainname.m4: New file.
84247
84248 2003-09-25  Simon Josefsson  <jas@extundo.com>
84249             Bruno Haible  <bruno@clisp.org>
84250
84251         * lib/getdomainname.h: New file.
84252         * lib/getdomainname.c: New file.
84253
84254 2003-09-25  Karl Berry  <karl@gnu.org>
84255
84256         * lib/argp-fmtstream.c, argp-help.c: update from libc.
84257
84258 2003-09-25  Karl Berry  <karl@gnu.org>
84259
84260         * config/install-sh: update from automake.
84261
84262 2003-09-25  Bruno Haible  <bruno@clisp.org>
84263
84264         * modules/version-etc-2: New file, from modules/version-etc with
84265         modifications.
84266         * MODULES.html.sh (func_all_modules): Add version-etc-2.
84267
84268 2003-09-25  Bruno Haible  <bruno@clisp.org>
84269
84270         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
84271         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
84272
84273 2003-09-24  Simon Josefsson  <jas@extundo.com>
84274
84275         * modules/xgethostname: Add xgethostname.h.
84276
84277 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84278
84279         * lib/linebuffer.c (freebuffer): Don't free the argument, just
84280         the buffer associated with the argument.  Bug reported by
84281         Simon Josefsson.
84282
84283 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84284
84285         * README: Document assumptions that 'int' is at least 32 bits
84286         wide, that integer arithmetic is 2's complement without overflow,
84287         that there are no holes in integer values, that adding sizes of
84288         two nonoverlapping objects can't overflow, and that all-bits-zero
84289         yields scalar zero.  Fix spelling and capitalization typos.
84290
84291 2003-09-19  Karl Berry  <karl@gnu.org>
84292
84293         * lib/argp.h: update from libc.
84294
84295 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84296
84297         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
84298         to avoid spurious warnings like "AC_RUN_IFELSE was called before
84299         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
84300
84301 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84302
84303         * gnulib-tool: Use "test -h", not "test -L", for portability
84304         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
84305         (tags_regexp): Remove, since \| doesn't conform to POSIX.
84306         (sed_extract_prog): Issue s commands one-by-one, rather than
84307         using \| in one s command.
84308
84309 2003-09-16  Paul Eggert  <eggert@twinsun.com>
84310
84311         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
84312         input error, instead of returning NULL the next time we are called
84313         (and therefore losing track of errno).
84314
84315 2003-09-16  Bruno Haible  <bruno@clisp.org>
84316
84317         * gnulib-tool (func_create_testdir): Warn about duplicated
84318         dependencies.
84319
84320 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84321
84322         * modules/argmatch, modules/fatal, modules/obstack,
84323         modules/xalloc, modules/xgethostname: Sort dependencies by
84324         importance, not alphabetically.
84325
84326 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84327
84328         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
84329         fails, so that the caller gets the proper errno.
84330
84331         * lib/readutmp.c (read_utmp): Likewise.
84332         Check for fstat error.  Close stream and free storage
84333         when failing.
84334
84335 2003-09-14  Karl Berry  <karl@gnu.org>
84336
84337         * config/srclist.txt (strdup.c): disable for c89 changes.
84338
84339 2003-09-14  Jim Meyering  <jim@meyering.net>
84340
84341         * lib/getloadavg.c: Correct cpp indentation.
84342         * lib/strdup.c: Likewise.
84343         * lib/vasnprintf.c: Likewise.
84344
84345 2003-09-14  Bruno Haible  <bruno@clisp.org>
84346
84347         * modules/fwriteerror: New file.
84348         * MODULES.html.sh (func_all_modules): Add fwriteerror.
84349
84350 2003-09-14  Bruno Haible  <bruno@clisp.org>
84351
84352         * lib/fwriteerror.h: New file.
84353         * lib/fwriteerror.c: New file.
84354
84355 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84356
84357         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
84358         modules/xgethostname, modules/xalloc: Depend on exit.
84359
84360 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84361
84362         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
84363
84364         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
84365         and AC_MINIX, too, so that their extensions are available.
84366
84367         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
84368         This macro has been superseded by gl_BACKUPFILE.
84369
84370         More patches to assume C89 or better.
84371
84372         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
84373
84374         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
84375         unconditionally.
84376         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
84377         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
84378         Include <string.h>, <stdlib.h> unconditionally.
84379         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
84380         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
84381         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
84382         headers or for string.h.
84383         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
84384         or strtoul.
84385
84386         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
84387         headers.
84388         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
84389         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84390         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
84391         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
84392         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84393         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
84394         memcpy, memset.
84395         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
84396         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
84397         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
84398         strtol.
84399         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
84400         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
84401         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
84402         strtoul.
84403
84404 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84405
84406         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
84407         * lib/obstack.c [!defined _LIBC]: Likewise.
84408         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
84409         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
84410         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
84411
84412         More changes to assume C89 or better.
84413
84414         * lib/error.c (error_tail): Assume vprintf.
84415
84416         * lib/argmatch.c (getenv): Remove decl.
84417         * lib/progreloc.c (get_full_program_name): Define via prototype.
84418         * lib/setenv.c (clearenv): Likewise.
84419         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
84420         needed.
84421         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
84422         (malloc, memcpy): Remove decls.
84423         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
84424         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
84425         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84426         (memcpy): Remove macro.
84427         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
84428         (__P): Remove.  All uses removed.
84429         (PTR): Remove.  All uses changed to void *.
84430         (CHAR_BIT, NULL): Remove.
84431         (spaces, zeros, memset_space, memset_zero)
84432         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
84433         Remove.
84434         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
84435         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
84436         Define with prototype.
84437         Remove now-unnecessary prototype decl.
84438         (extra_args_spec): Assume ANSI C.  All uses changed.
84439         (extra_args_spec_iso): Remove.
84440         (my_strftime, emacs_strftimeu): Define via prototype.
84441         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
84442         unconditionally.
84443         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
84444         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
84445         (strtoul, strtol): Remove decls.
84446         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
84447         LONG_MAX): Remove.
84448         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84449         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
84450         (LOCALE_PARAM_PROTO): New macro.
84451         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
84452         (INTERNAL (strtol), strtol): Define with a prototype.
84453         (PARAMS): Remove.  All uses removed.
84454         * lib/tempname.c: Include <string.h> unconditionally.
84455         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
84456         * lib/xgethostname.c (main): Define with a prototype.
84457         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
84458         Include <stdlib.h> unconditionally.
84459         (calloc, malloc, realloc, free): Remove decls.
84460         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
84461         Include <stdlib.h> unconditionally.  Sort include file names.
84462         (strtod): Remove.
84463         (xstrtod): Define with a prototype.
84464         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
84465         (strtol, strtoul): Remove decls.
84466
84467 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84468
84469         More patches to assume C89 or better.
84470         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
84471         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
84472         string.h, memchr, STDC_HEADERS.
84473
84474 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84475
84476         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
84477         Include <stdlib.h>, <string.h> unconditionally.
84478         Remove now-unnecessary cast to char *.
84479         * lib/strnlen.c: Include <string.h> unconditionally.
84480         * lib/yesno.c (yesno): Define with a prototype.
84481
84482 2003-09-11  Bruno Haible  <bruno@clisp.org>
84483
84484         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
84485
84486 2003-09-10  Jim Meyering  <jim@meyering.net>
84487
84488         * lib/error.c: Correct indentation of cpp directives.
84489
84490 2003-09-10  Bruno Haible  <bruno@clisp.org>
84491
84492         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
84493         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
84494         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
84495         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
84496         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
84497         <stdlib.h> and <string.h> checks.
84498         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
84499         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
84500
84501 2003-09-10  Bruno Haible  <bruno@clisp.org>
84502
84503         * lib/strcspn.c: Include <string.h> unconditionally.
84504         * lib/strpbrk.c: Include <string.h> unconditionally.
84505         * lib/strstr.c: Include <string.h> unconditionally.
84506         * lib/unicodeio.c: Include <string.h> unconditionally.
84507         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
84508         * lib/unsetenv.c: Likewise.
84509         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
84510         * lib/yesno.c: Include <stdlib.h> unconditionally.
84511         (rpmatch): Add prototype.
84512
84513 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84514
84515         More patches to assume C89 or better.
84516         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
84517         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
84518         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
84519         or for string.h.
84520         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
84521         stdlib.h.
84522         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
84523         C headers.
84524         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
84525         string.h.
84526         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
84527         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
84528         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
84529         or for string.h.
84530         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
84531         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
84532         C headers.
84533         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
84534         memcpy.
84535         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
84536         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
84537         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
84538         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
84539         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
84540         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
84541         string.h, free.
84542         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
84543         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
84544         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
84545         C headers, or for string.h.
84546         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
84547         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
84548         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
84549         headers, memory.h, stdlib.h, string.h, strings.h.
84550         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
84551         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
84552         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
84553         strchr.
84554         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
84555         headers, memory.h, string.h.
84556         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
84557         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
84558         free.
84559         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
84560         headers.
84561         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
84562         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
84563         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
84564         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
84565         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
84566
84567 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84568
84569         More K&R removal.
84570
84571         * lib/acosl.c (main): Use a prototype.
84572         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
84573         tanl.c: Likewise.
84574
84575         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
84576
84577         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
84578         (getopt, etopt_long, getopt_long_only, _getopt_internal)
84579         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
84580         with a prototype.
84581         * lib/getopt.c (const): Remove macro.
84582         Include <string.h> unconditionally.
84583         (my_index): Remove; all uses changed to strchr.
84584         (strlen): Remove decl.
84585         (exchange): Remove forward decl; no longer needed.
84586         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
84587         Define with prototype.
84588         * lib/getopt1.c (const): Remove macro.
84589         (getopt_long, getopt_long_only, main): Define with prototype.
84590
84591         * lib/getugroups.c: Include <string.h> unconditionally.
84592
84593         * lib/getusershell.c: Include <stdlib.h> unconditionally.
84594         (getusershell, setusershell, endusershell, readname, main):
84595         Define with prototypes.
84596
84597         * lib/group-member.c: Include group-member.h first.
84598         Include <stdlib.h> unconditionally.
84599
84600         * lib/hard-locale.c: Include hard-locale.h first.
84601         Include <stdlib.h>, <string.h> unconditionally.
84602
84603         * lib/hash.c (free, malloc): Remove decls.
84604         Include <stdlib.h> unconditionally.
84605
84606         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
84607         (getenv): Do not declare.
84608
84609         * lib/idcache.c: Include <string.h> unconditionally.
84610
84611         * lib/long-options.c: Include long-options.h first, to test interface.
84612         Include <stdlib.h> unconditionally.
84613
84614         * lib/makepath.c: Include makepath.h first, to test interface.
84615         Include <stdlib.h> and <string.h> unconditionally.
84616
84617         * lib/linebuffer.c: Include <stdlib.h>.
84618         (free): Remove decl.
84619
84620         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
84621         stddef.h. rpl_malloc returns void *, not char *.
84622         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
84623         prototype.
84624
84625         * lib/md5.h: Include <limits.h> unconditionally.
84626         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
84627         (__P): Remove; all uses removed.
84628         * lib/md5.c: Include "md5.h" first.
84629         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
84630         md5_buffer, md5_process_bytes, md5_process_block):
84631         Define with prototypes.
84632         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
84633         * lib/sha.c: Include "sha.h" first.
84634         Include <stdlib.h>, <string.h> unconditionally.
84635
84636         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
84637         * lib/memcmp.c (__ptr_t): Likewise.
84638         * lib/memrchr.c (__ptr_t): Likewise.
84639         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
84640         Include <string.h> unconditionally.
84641         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
84642         * lib/memchr.c: Include <stdlib.h> unconditionally.
84643         * lib/memchr.c (LONG_MAX): Remove.
84644         * lib/memrchr.c (LONG_MAX): Likewise.
84645         * lib/memchr.c (__memchr): Define via a prototype.
84646         * lib/memrchr.c (__memrchr): Likewise.
84647         * lib/memcmp.c (__P): Remove, and remove all uses.
84648         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
84649         Remove forward decls; no longer needed.
84650         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
84651         Use types required by C89 in prototype.
84652
84653         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
84654         * lib/savedir.c: Likewise.
84655         * lib/mkdir.c (free): Remove decl.
84656         * lib/rmdir.c (rmdir): Define with a prototype.
84657         * lib/savedir.c: Include savedir.h first, to test interface.
84658
84659         * lib/mktime.c (STDC_HEADERS): Remove.
84660         Include <stdlib.h>, <string.h> unconditionally.
84661
84662         * lib/modechange.c: Include <stdlib.h> unconditionally.
84663         (malloc): Remove decl.
84664
84665         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
84666         (free): Remove decl.
84667
84668         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
84669         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
84670         (This type really should be intptr_t, but that's a C99ism.)
84671         (_obstack_memcpy): Remove: all uses changed to memcpy.
84672         Include <string.h> unconditionally.
84673         (struct obstack): Assume __STDC__ for types of members
84674         chunkfun, freefun, extra_arg.
84675         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
84676         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
84677         obstack_begin, obstack_specify_allocation,
84678         obstack_specify_allocation_with_arg, obstack_chunkfun,
84679         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
84680         Remove unprototyped decls and the macros that use them.
84681         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
84682         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
84683         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
84684         (defined __STDC__ && __STDC__)]:
84685         Remove nonprototyped code.
84686         Include <stdlib.h> unconditionally.
84687         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
84688         _obstack_allocated_p, _obstack_free, obstack_free,
84689         _obstack_memory_used, print_and_abort):
84690         Define using prototypes.
84691         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
84692         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
84693         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
84694         obstack_next_free, obstack_object_size, obstack_room) [0]:
84695         Remove unused, unprototyped code.
84696
84697         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
84698
84699         * lib/physmem.c (physmem_total, physmem_available, main): Define
84700         with prototypes.
84701
84702         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
84703         (main): Define with a prototype.
84704
84705         * lib/posixver.c (getenv): Remove decl.
84706
84707         * lib/putenv.c (malloc): Returns void *, not char *.
84708         Include <string.h> unconditionally.
84709         (strchr, memcpy, NULL): Do not define.
84710
84711         * lib/readtokens.c: Include readtokens.h first, to test interface.
84712         Include <stdlib.h>, <string.h> unconditionally.
84713         (init_tokenbuffer): Define with a prototype.
84714
84715         * lib/regex.c (PARAMS): Remove.  All uses removed.
84716         All uses of _RE_ARGS removed, too.
84717         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84718         unconditionally.
84719         (bzero): Assume memset exists.
84720         (memcmp, memcpy, NULL): Remove.
84721         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
84722         char, or assignments to local vars of type signed char.
84723         (init_syntax_once, PREFIX(extract_number_and_incr),
84724         PREFIX(print_partial_compiled_pattern),
84725         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
84726         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
84727         PREFIX(regex_grow_registers), PREFIX(regex_compile),
84728         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
84729         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
84730         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
84731         wcs_compile_range, byte_compile_range, truncate_wchar,
84732         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
84733         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
84734         count_mbs_length, wcs_re_match_2_internal,
84735         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
84736         PREFIX(alt_match_null_string_p),
84737         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
84738         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
84739         regfree, PREFIX(extract_number)): Define with prototype.  Remove
84740         now-unnecessary declaration, if any.
84741         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
84742         regcomp, regexec):
84743         Remove now-unnecessary casts among pointer types.
84744         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
84745
84746         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
84747         (free): Remove decl.
84748
84749         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
84750
84751         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
84752         (free): Remove decl.
84753
84754         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
84755         * lib/xgetcwd.c: Likewise.
84756
84757         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
84758         (free): Remove decl.
84759
84760         * lib/strchrnul.c (strchrnul): Define with a prototype.
84761         Fix bug: c_in was not converted to char before searching.
84762
84763         The following changes are not K&R related:
84764
84765         * lib/group-member.h: Include <sys/types.h>, so that this file is
84766         self-contained.
84767         * lib/makepath.h: Likewise.
84768
84769         * lib/getusershell.c (readname, default_index, line_size, readname):
84770         Use size_t, not int, for sizes.
84771         (readname): If the size overflows, report an error instead of
84772         looping forever.
84773
84774 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84775
84776         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
84777         libc.
84778
84779 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84780
84781         * README: New section: portability guidelines.
84782
84783 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84784
84785         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
84786         C89 spec.
84787
84788 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84789
84790         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
84791
84792 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84793
84794         Assume C89 or better; remove K&R cruft.
84795         A few of these changes were first proposed by Derek Robert Price
84796         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
84797
84798         * lib/addext.c: Include <string.h> unconditionally.
84799         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
84800         Don't declare getenv or malloc.
84801
84802         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
84803         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
84804         (NULL): Remove.
84805         (find_stack_direction, alloca): Use prototypes.
84806
84807         * lib/atexit.c (atexit): Define using a prototype.
84808
84809         * lib/basename.c, dirname.c, stripslash.c:
84810         Include <string.h> unconditionally.
84811
84812         * lib/bcopy.c: Include <stddef.h>.
84813         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
84814
84815         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
84816
84817         * lib/error.h (error, error_at_line, error_print_progname)
84818         [! (defined (__STDC__) && __STDC__)]: Remove decls.
84819         * lib/error.c: Include error.h first, to check interface.
84820         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84821         (VA_START): Remove; all uses changeed to va_start.
84822         (exit, strerror): Remove decls.
84823         (error_print_progname): Prototype uncondionally.
84824         Don't include <errno.h>; no longer needed.
84825         (private_strerror): Remove.
84826         (error_tail): Always define.
84827         (error, error_at_line): Assume C89 or better; always use prototypes.
84828         * lib/fatal.c: Include "fatal.h" first, to test interface.
84829         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84830         (VA_START): Remove; all uses changed to va_start.
84831         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
84832         this case.
84833         (exit): Remove decl.
84834         (fatal): Prototype unconditionally.  Assume va_start works.
84835         Abort at end, to pacify gcc.
84836
84837         * lib/euidaccess.c (main): Define with a prototype.
84838
84839         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
84840
84841         * lib/exitfail.c: Include <stdlib.h> unconditionally.
84842
84843         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
84844         prototypes.
84845         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
84846         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
84847         (getenv): Remove decl.
84848         (fnmatch): Define using a prototype.
84849         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
84850         (FCT): Define using a prototype.
84851
84852         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
84853
84854         * lib/gethostname.c: Include <stddef.h>.
84855         (gethostname): Define with prototype.  Length is size_t, not int.
84856
84857 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84858
84859         Assume C89 or better; remove K&R cruft.
84860         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
84861         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
84862         string.h, getenv, malloc.
84863         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
84864         headers.
84865         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
84866         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
84867         do not check for strerror.
84868         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
84869         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
84870         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
84871         do not check for doprnt or vprintf.
84872         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
84873         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
84874
84875 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84876
84877         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
84878         getversion.c should have been removed then, but was accidentally
84879         preserved.
84880
84881         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
84882         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
84883
84884 2003-09-08  Karl Berry  <karl@gnu.org>
84885
84886         * config/config.sub, config.guess, srclistvars.sh: update from savannah
84887                 config, forget about prep.
84888
84889         * config/depcomp, missing: update from automake.
84890
84891 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84892
84893         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
84894         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84895
84896 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84897
84898         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
84899         copy_tm_result.  Bug reported by Simon Josefsson in
84900         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84901
84902 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84903
84904         * m4/time_r.m4: New file.
84905         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
84906         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
84907         is. Check for timegm declaration.
84908         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
84909         Do not check for gmtime_r.
84910         Replace mktime if __mktime_internal does not exist and if mktime
84911         hasn't been replaced already.
84912
84913 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84914
84915         * lib/time_r.c, lib/time_r.h: New files.
84916
84917         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
84918         __localtime_r.
84919         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
84920         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
84921
84922         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
84923         __gmtime_r.
84924         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
84925         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
84926         Include <time_r.h>.
84927
84928         * lib/timegm.c: Switch to glibc implementation, with the following
84929         changes:
84930         [defined HAVE_CONFIG_H]: Include <config.h>.
84931         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
84932         (__mktime_internal) [!defined _LIBC]: New decl.
84933         (__gmtime_r) [!defined _LIBC]: New macro and function.
84934         (timegm): Use a prototype, since gnulib assumes C89.
84935         Do not bother declaring tmp to be const, as it's not really usefu.
84936         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
84937         (timegm): Declare only if HAVE_DECL_TIMEGM.
84938
84939 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84940
84941         * MODULES.html.sh (func_all_modules): Add time_r.
84942         * modules/time_r: New file.
84943         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
84944         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
84945
84946 2003-09-03  Paul Eggert  <eggert@twinsun.com>
84947
84948         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
84949         Bug reported by Lute Kamstra in
84950         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
84951
84952         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
84953         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
84954         course with correspondingly smaller numbers for tomorrow and
84955         yesterday.  From Tadayoshi Funaba.  Originally installed into
84956         sh-utils on 1999-08-07, but the patch got lost (I guess during the
84957         coreutils merge?).
84958
84959 2003-08-31  Simon Josefsson  <jas@extundo.com>
84960
84961         * modules/timegm: New file.
84962         * MODULES.html.sh (func_all_modules): Add timegm.
84963
84964 2003-08-31  Simon Josefsson  <jas@extundo.com>
84965
84966         * m4/timegm.m4: New file.
84967
84968 2003-08-31  Simon Josefsson  <jas@extundo.com>
84969
84970         * lib/timegm.h: New file.
84971         * lib/timegm.c: New file.  Based on
84972         wget-1.8.2/src/http.c:mktime_from_utc.
84973
84974 2003-08-31  Karl Berry  <karl@gnu.org>
84975
84976         * lib/argp.h: update from libc.
84977
84978 2003-08-28  Bruno Haible  <bruno@clisp.org>
84979
84980         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
84981         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
84982         followed by '#define fnmatch fnmatch_posix' gives an error.
84983
84984 2003-08-28  Bruno Haible  <bruno@clisp.org>
84985
84986         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
84987         warning on QNX, which defines O_BINARY to 000000.
84988
84989 2003-08-27  Jim Meyering  <jim@meyering.net>
84990
84991         * m4/mkstemp.m4: Require that the system mkstemp be able to create
84992         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
84993         would fail after 32.  Reported by Danny Levinson.  Details here:
84994         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
84995
84996 2003-08-24  Bruno Haible  <bruno@clisp.org>
84997
84998         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
84999         MSVC7 <stdio.h> is included later.
85000
85001 2003-08-22  Simon Josefsson  <jas@extundo.com>
85002
85003         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
85004
85005 2003-08-20  Karl Berry  <karl@gnu.org>
85006
85007         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
85008
85009 2003-08-20  Bruno Haible  <bruno@clisp.org>
85010
85011         * modules/progname: New file.
85012         * MODULES.html.sh (func_all_modules): Add progname.
85013
85014 2003-08-20  Bruno Haible  <bruno@clisp.org>
85015
85016         * lib/progname.h: New file, from GNU gettext.
85017         * lib/progname.c: New file, from GNU gettext.
85018         * lib/progreloc.c: New file, from GNU gettext.
85019
85020 2003-08-19  Jim Meyering  <jim@meyering.net>
85021
85022         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
85023         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
85024
85025 2003-08-19  Bruno Haible  <bruno@clisp.org>
85026
85027         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
85028         more.
85029
85030 2003-08-19  Bruno Haible  <bruno@clisp.org>
85031
85032         * lib/xstrdup.c: Assume <string.h> exists.
85033
85034 2003-08-18  Paul Eggert  <eggert@twinsun.com>
85035
85036         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
85037         in makefile rules.
85038
85039 2003-08-18  Jim Meyering  <jim@meyering.net>
85040
85041         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
85042         * m4/lib-ld.m4: Likewise.
85043
85044 2003-08-18  Jim Meyering  <jim@meyering.net>
85045
85046         * lib/setenv.h: Indent nested cpp directive.
85047         * lib/vasnprintf.c: Remove trailing blanks.
85048
85049 2003-08-17  Simon Josefsson  <jas@extundo.com>
85050
85051         * modules/xstrndup: New file.
85052         * MODULES.html.sh (func_all_modules): Add xstrndup.
85053
85054 2003-08-17  Simon Josefsson  <jas@extundo.com>
85055
85056         * modules/argp: Fix autoconf macro name. Add more dependencies.
85057
85058 2003-08-17  Simon Josefsson  <jas@extundo.com>
85059
85060         * m4/xstrndup.m4: New file.
85061
85062 2003-08-17  Simon Josefsson  <jas@extundo.com>
85063
85064         * m4/argp.m4: New file.
85065
85066 2003-08-17  Simon Josefsson  <jas@extundo.com>
85067             Bruno Haible  <bruno@clisp.org>
85068
85069         * lib/xstrndup.h: New file.
85070         * lib/xstrndup.c: New file.
85071
85072 2003-08-17  Bruno Haible  <bruno@clisp.org>
85073
85074         * modules/strndup (Files, Include): Add lib/strndup.h.
85075
85076 2003-08-17  Bruno Haible  <bruno@clisp.org>
85077
85078         * modules/euidaccess (Files): Add lib/euidaccess.h.
85079
85080 2003-08-17  Bruno Haible  <bruno@clisp.org>
85081
85082         * lib/strndup.h: New file.
85083
85084 2003-08-17  Bruno Haible  <bruno@clisp.org>
85085
85086         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
85087         like AC_GNU_SOURCE.
85088         * modules/extensions (configure.ac): Comment out the invocation of
85089         gl_USE_SYSTEM_EXTENSIONS.
85090
85091 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85092
85093         Merges from coreutils, etc.
85094         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
85095         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
85096         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
85097         fixing a typo.
85098         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
85099         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
85100
85101 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85102
85103         Document merge from coreutils.
85104         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
85105         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
85106         * modules/utime: Add m4/utimes-null.m4.
85107
85108 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85109
85110         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
85111         space, undoing this 2003-08-12 change:
85112         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85113
85114 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85115
85116         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
85117         strtoul.c from libc, undoing this 2003-08-12 change:
85118         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85119
85120 2003-08-16  Jim Meyering  <jim@meyering.net>
85121
85122         Merges from coreutils.
85123         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
85124         prefix.  Adjust cache variables similarly.  Create 500 rather than
85125         just 300 files, to exercise bug on Darwin6.5, too.
85126         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
85127         $missing_dir.
85128         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
85129         AM_SYS_POSIX_TERMIOS.
85130         Reported by mkc@mathdogs.com.
85131         Also change use of $am_cv_sys_posix_termios
85132         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
85133         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
85134         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
85135         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
85136         in /proc/mounts until it finds one with matching device number.  This
85137         is unnecessary when the FILE argument *is* a mount point.  No stat call
85138         is necessary in that case.  So, disable the statvfs-testing code on
85139         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
85140         as RedHat bug# 84846.
85141         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85142         to 1MB, so as not to render systems with no stack size limit (e.g.,
85143         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85144         Include <unistd.h>.  On some systems,
85145         it is required for the definition of _SC_PAGESIZE.
85146
85147 2003-08-16  Jim Meyering  <jim@meyering.net>
85148
85149         Merge from coreutils.
85150         * lib/xstrtoimax.c: #else #if -> #elif.
85151         * lib/xstrtoumax.c: Likewise.
85152
85153 2003-08-16  Jim Meyering  <jim@meyering.net>
85154
85155         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
85156         * m4/utimes.m4: Removed.
85157         * m4/utimes-null.m4: Renamed from utimes.m4.
85158
85159         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85160         to 1MB, so as not to render systems with no stack size limit (e.g.,
85161         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85162         Include <unistd.h>.  On some systems,
85163         it is required for the definition of _SC_PAGESIZE.
85164
85165 2003-08-16  Jim Meyering  <jim@meyering.net>
85166         and Paul Eggert  <eggert@cs.ucla.edu>
85167
85168         Merges from coreutils, etc.
85169
85170         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
85171         using the latest version from cvs.  This avoids problems with #line
85172         directives using a vendor (Sun) compiler.
85173         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
85174         Don't set GETGROUPS_LIB here; now it's
85175         done via getgroups.m4's wrapper function.
85176         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
85177         rather than just in sh-util/configure.in, so that the
85178         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
85179         same.
85180         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
85181         AC_FUNC_GETLOADAVG where to find getloadavg.c.
85182         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
85183         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
85184         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
85185         Remove code that is now done by the newly-required macros.
85186         Append $(EXEEXT) to DF_PROG.
85187         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
85188         Do not invoke or require the following here,
85189         since prereq.m4 or some gnulib .m4 now does this for us:
85190         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
85191         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
85192         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
85193         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
85194         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
85195         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
85196         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
85197         AC_FUNC_OBSTACK.
85198         Do not replace the following functions, as this is now the job
85199         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
85200         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
85201         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
85202         atexit getpass, strdup, getpagesize.
85203         Replace 'raise'.
85204         Do not check for the following functions, as this is now the job
85205         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
85206         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
85207         setregid.
85208         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
85209         Check for sys/sysctl.h.
85210         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
85211         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
85212         of checking for ssize_t ourselves.
85213
85214         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
85215         Require every macro that gnulib/modules/* suggests for us.
85216         (jm_PREREQ_ADDEXT): New macro.
85217         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
85218         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
85219
85220         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
85221         (gl_PHYSMEM): Use it.
85222         Also check for `table' function.
85223         Check for new headers and functions.
85224         Add check for sys/sysmp.h.
85225         With suggestions from Kaveh Ghazi.
85226         Ignore headers that are present but cannot be compiled.  This
85227         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
85228         C 5.4.
85229
85230 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85231
85232         Document merge from coreutils.
85233         * modules/userspec: Depend on posixver.
85234         * modules/strftime: Depend on tzset.
85235
85236 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85237
85238         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
85239         rather than tab, after '#' in shell-script copyright notices.
85240         Suggested by Bruno Haible.
85241
85242 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85243
85244         * config/srclist-update: Use three spaces, rather than tab, after '#'
85245         in shell-script copyright notices.  Suggested by Bruno Haible.
85246         Remove unnecessary parenthesization in regular expression.
85247
85248 2003-08-15  Jim Meyering  <jim@meyering.net>
85249
85250         Merge from coreutils.
85251         * lib/xgethostname.c: Include <stdlib.h>.
85252         (xghostname): Don't exit for anything other than memory-related
85253         failure; just return NULL.
85254         * lib/userspec.c: Include "posixver.h".
85255         (parse_user_spec): Accept `.' as a separator only
85256         in pre-POSIX-200112 mode.
85257         * lib/strtoimax.c: Use #elif rather than #else #if.
85258         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
85259         Remove function, now that we can rely on a working tzset function.
85260         [!_LIBC]: Ensure that the required autoconf test has been run.
85261         [!defined _NL_CURRENT && HAVE_STRFTIME]:
85262         Use underlying_strftime for %r.
85263         * lib/sha.c: Merge in some clean-up and optimization changes from
85264         glibc.
85265         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
85266         Ensure that it is a multiple of 64.
85267         Rearrange loop exit tests so as to avoid performing an
85268         additional fread after encountering an error or EOF.
85269         * lib/realloc.c: Update copyright date.
85270
85271 2003-08-15  Jim Meyering  <jim@meyering.net>
85272         and Paul Eggert  <eggert@twinsun.com>
85273
85274         Merge from coreutils.
85275         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
85276         member but strut utmpx does not.  Needed for AIX 4.3.3.
85277         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
85278
85279 2003-08-15  Jim Meyering  <jim@meyering.net>
85280         and Paul Eggert  <eggert@cs.ucla.edu>
85281
85282         Merges from coreutils, etc.
85283         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
85284         Require gl_FUNC_TZSET_CLOBBER.
85285         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
85286         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
85287         members.
85288
85289 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85290
85291         Help the merge from coreutils.
85292         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
85293         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
85294         * m4/tzset.m4: Use it too.
85295
85296 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85297
85298         * modules/tzset: New file.
85299
85300 2003-08-14  Jim Meyering  <jim@meyering.net>
85301
85302         Merges from coreutils.
85303         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
85304         variable names, rather than @FNMATCH_H@.
85305         * modules/alloca: Likewise for $(ALLOCA_H).
85306
85307         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
85308         the three copies of the literal target, `fnmatch.h'.
85309         * modules/alloca (alloca.h): Likewise.
85310
85311 2003-08-14  Jim Meyering  <jim@meyering.net>
85312
85313         Merge from coreutils.
85314         * m4/tzset.m4: New file.
85315         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
85316         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
85317         otherwise, AIX 5.1 systems would end up using the latter.
85318         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
85319         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
85320         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
85321         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
85322
85323 2003-08-14  Jim Meyering  <jim@meyering.net>
85324
85325         Merge from coreutils.
85326         * lib/obstack.h: Whitespace changes.
85327         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
85328         and xcalloc return values.
85329         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
85330         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
85331         hang on OSF/1 5.1 for DIR on both local and remote file systems.
85332         Reported by (and fix confirmed by) Nelson H. F. Beebe.
85333         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85334         error from mntctl.
85335         Use mntctl's return value to drive the entry-processing loop, since
85336         we can't rely on the value of the vmt_length member in the last
85337         entry.  On some systems doing so could result in exhausting
85338         virtual memory.  Based in part on a patch from Mike Jetzer.
85339
85340 2003-08-14  Jim Meyering  <jim@meyering.net>
85341         and Paul Eggert  <eggert@twinsun.com>
85342
85343         Merges from coreutils, plus other fixes.
85344         * lib/physmem.c: Merge in portability changes from gcc/libiberty
85345         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
85346         for credits and details.  Thanks to Kaveh Ghazi for helping
85347         to keep these files in sync.
85348         (ARRAY_SIZE): Define it.
85349         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
85350         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
85351         (memcasecmp): Don't assume size_t fits in unsigned int.
85352         Remove casts and duplicate code.
85353         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
85354         (memcpy): Remove definition.
85355         Merge in some clean-up and optimization changes from glibc.
85356         [BLOCKSIZE]: Move definition to top of file.
85357         Ensure that it is a multiple of 64.
85358         Rearrange loop exit tests so as to avoid performing an
85359         additional fread after encountering an error or EOF.
85360         * lib/md5.h (md5_uintptr): Define.
85361         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
85362         return to the initial working directory.  Preserve errno
85363         for caller.
85364         * lib/idcache.c: Include "xalloc.h".
85365         (xmalloc, xrealloc): Remove decls.
85366         (getuser): Remove casts no longer required in C89.
85367         * lib/human.c: Include stdio.h, for sprintf.
85368         * lib/group-member.c: Include "xalloc.h".
85369         (xmalloc, xrealloc): Remove decls.
85370         (get_group_info): Remove casts no longer required in C89.
85371         * lib/getusershell.c (readname): Remove casts no longer required in
85372         C89.
85373         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
85374         * lib/getline.c: Whitespace fix, from coreutils.
85375
85376 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85377
85378         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
85379         Check for isascii.
85380
85381         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85382         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85383         Undo previous (whitespace-only) change.
85384
85385 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85386
85387         * lib/exclude.c: Include <ctype.h>
85388         (IN_CTYPE_DOMAIN): New macro.
85389         (is_space): New fn.
85390         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
85391         and empty lines.
85392
85393         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85394         Undo previous (whitespace-only) change.
85395
85396 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85397
85398         * config/srclist-update: Change update back to the old behavior,
85399         leaving whitespace alone.  Use one 'sed' command rather than a
85400         pipeline.
85401         (fixlicense): Now a variable, not a function.
85402         (remove_trailing_blanks): Remove.
85403         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
85404         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85405         Undo previous (whitespace-only) change.
85406
85407 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85408
85409         Merge from coreutils.
85410         * modules/euidaccess: Add lib_SOURCES, include for new
85411         file euidaccess.h
85412
85413 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85414
85415         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85416         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85417         Normalize leading white space and remove trailing white space.
85418
85419         Merge from coreutils
85420         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
85421
85422         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
85423         0.12.1.  These files are now being upgraded automatically by
85424         ../config/srclist-update.
85425
85426 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85427
85428         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85429         Normalize leading white space and remove trailing white space.
85430         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
85431         notice, as per ../config/srclist-update.
85432
85433         Merge from coreutils.
85434         * lib/euidaccess.h: New file.
85435         * lib/euidaccess.c: Include it.
85436         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
85437         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
85438         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
85439
85440 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85441
85442         * config/srclist-update: Add copyright notice.
85443         (remove_id_lines, remove_trailing_blanks): New constants.
85444         (fixfile): Use them to normalize spacing a bit in copied files.
85445         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85446         Normalize leading white space and remove trailing white space.
85447
85448         * config/texinfo.tex: Sync with texinfo.
85449
85450         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
85451         strtoul.c from libc, to merge coreutils whitespace changes.
85452
85453         * config/srclist.txt: Get the following m4 files from gettext:
85454         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
85455         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
85456         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
85457         wint_t.m4.
85458
85459 2003-08-12  Karl Berry  <karl@gnu.org>
85460
85461         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
85462         been made.
85463
85464 2003-08-11  Paul Eggert  <eggert@twinsun.com>
85465
85466         * modules/gnu-source, m4/gnu-source.m4:
85467         Remove; we're assuming Autoconf 2.54 or later now.
85468         Suggested by Bruno Haible.
85469         * MODULES.html.sh (func_all_modules): Remove gnu-source.
85470
85471 2003-08-11  Bruno Haible  <bruno@clisp.org>
85472
85473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
85474
85475 2003-08-11  Bruno Haible  <bruno@clisp.org>
85476
85477         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
85478         (vasnprintf): Use it instead of wcslen.
85479
85480 2003-08-11  Bruno Haible  <bruno@clisp.org>
85481
85482         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
85483         value to ensure that _Bool promotes to int. Use #define for _Bool when
85484         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
85485
85486 2003-08-10  Karl Berry  <karl@gnu.org>
85487
85488         * lib/regex.h: update from libc (whitespace fix).
85489
85490 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85491
85492         Merge some files from coreutils.  These changes were
85493         originally made by Jim Meyering.
85494         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
85495         many older Unixes require this.
85496         * lib/alloca.c (alloca): Remove cast to argument of free;
85497         no longer needed in C89.
85498         * lib/alloca_.h, regex.h: Fix white space to match
85499         what GNU indent does.
85500
85501 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85502
85503         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
85504         apparently Emacs's Unicode mode got confused before my 2003-08-05
85505         checkin.
85506
85507 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85508
85509         * m4/extensions.m4: New file.
85510         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
85511         Require gl_USE_SYSTEM_EXTENSIONS.
85512         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
85513         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
85514
85515 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85516
85517         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
85518         * modules/extensions, modules/gnu-source: New files.
85519         * modules/timespec, modules/unlocked-io: Depend on extensions.
85520
85521 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85522
85523         * modules/restrict: New file.
85524         * MODULES.html.sh (func_all_modules): Add restrict.
85525         * modules/regex: Depend on restrict.
85526
85527 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85528
85529         * m4/restrict.m4: New file.
85530         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
85531
85532 2003-08-07  Bruno Haible  <bruno@clisp.org>
85533
85534         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
85535         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
85536
85537 2003-08-07  Bruno Haible  <bruno@clisp.org>
85538
85539         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
85540         makes the module 'getndelim2' compatible with the module 'getline'.
85541
85542 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85543
85544         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
85545         byte with "\201" to avoid glitches when editing that source file
85546         with multi-gnome-terminal.
85547
85548 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85549
85550         * lib/bumpalloc.h: Remove.
85551
85552 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85553
85554         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
85555         * modules/bumpalloc: Remove.
85556
85557 2003-08-04  Paul Eggert  <eggert@twinsun.com>
85558
85559         * lib/getloadavg.c: Change copyright notice and spacing to conform to
85560         GNU coding style.
85561
85562         Merge from coreutils.
85563         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
85564         1. From glibc.
85565         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
85566         from Karl Berry, implemented by Jim Meyering.
85567         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
85568         from Dmitry V. Levin.
85569         Remove anachronistic cast of xrealloc.
85570         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
85571         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
85572         type. Otherwise, it wouldn't compile with at least /bin/cc on
85573         ymp-cray-unicos9.0.2.X.
85574         Combine two mostly-identical uses of alloca into one.
85575         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
85576
85577 2003-08-04  Dave Love  <d.love@dl.ac.uk>
85578
85579         [From Emacs.]
85580
85581         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
85582         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
85583         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
85584         obsolete NLIST_NAME_UNION.
85585         [__GNU__]: Undef BSD and FSCALE.
85586         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
85587
85588 2003-08-03  Paul Eggert  <eggert@twinsun.com>
85589
85590         * lib/stdbool_.h (_Bool): Make it signed char, instead of
85591         an enum type, so that it's guaranteed to promote to int.  See:
85592         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
85593
85594 2003-08-03  Karl Berry  <karl@gnu.org>
85595
85596         * config/depcomp: update from automake.
85597
85598 2003-07-31  Paul Eggert  <eggert@twinsun.com>
85599
85600         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
85601         (strerror): Don't assume that a printable int fits in 14 bytes.
85602
85603 2003-07-31  Bruno Haible  <bruno@clisp.org>
85604
85605         * modules/getpass-gnu: New file.
85606         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
85607
85608 2003-07-31  Bruno Haible  <bruno@clisp.org>
85609
85610         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
85611
85612 2003-07-24  Karl Berry  <karl@gnu.org>
85613
85614         * config/missing: update from automake.
85615
85616 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
85617             Bruno Haible  <bruno@clisp.org>
85618
85619         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
85620         * lib/getline.c (getline, getdelim): Likewise.
85621         Remove _GNU_SOURCE define; now it's defined in config.h through
85622         m4/getline.m4.
85623
85624 2003-07-23  Karl Berry  <karl@gnu.org>
85625
85626         * config/config.sub: update from prep.
85627
85628 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85629
85630         * modules/xalloc (Depends-on): Add exitfail.
85631         * modules/xmemcoll: Likewise.
85632
85633 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85634
85635         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
85636         over-parenthesization in macros.
85637
85638         Sync with coreutils.
85639
85640         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
85641         required by C99.
85642
85643         Use `exit_failure' for xalloc and xmemcoll instead of their own
85644         private exit-failure variables.
85645         * lib/xalloc.h (xalloc_exit_failure): Remove.
85646         * lib/xmalloc.c: Likewise.  Include exitfail.h.
85647         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
85648         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
85649         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
85650         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
85651
85652 2003-07-20  Jim Meyering  <jim@meyering.net>
85653
85654         * modules/closeout (Depends-on): Add exitfail.
85655         Suggestion from Bruno Haible.
85656
85657 2003-07-19  Karl Berry  <karl@gnu.org>
85658
85659         * config/config.sub: update from prep.
85660
85661 2003-07-18  Paul Eggert  <eggert@twinsun.com>
85662
85663         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
85664         Remove.
85665         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
85666         to test that it can stand by itself.  Include "exitfail.h".
85667         Clients should set exit_failure instead.
85668         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
85669
85670 2003-07-18  Bruno Haible  <bruno@clisp.org>
85671
85672         * modules/getndelim2: New file.
85673         * modules/getline: Share files with module getndelim2.
85674         * modules/getnline: Depend on getndelim2 instead of sharing files with
85675         it. Add getnline.c to lib_SOURCES.
85676         * MODULES.html.sh (func_all_modules): Add getndelim2.
85677
85678 2003-07-18  Bruno Haible  <bruno@clisp.org>
85679
85680         * m4/getndelim2.m4: New file.
85681         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
85682         invoke gl_PREREQ_GETNDELIM2.
85683         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
85684         gl_PREREQ_GETNDELIM2.
85685         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
85686         gl_GETNDELIM2.
85687
85688 2003-07-18  Bruno Haible  <bruno@clisp.org>
85689
85690         * lib/getndelim2.h: New file.
85691         * lib/getndelim2.c: Make into a module of its own. Include config.h,
85692         getndelim2.h.
85693         (getndelim2): Make non-static. Change return type to ssize_t.
85694         * lib/getline.h: Change argument names.
85695         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
85696         * lib/getnline.c: Include getndelim2.h.
85697
85698 2003-07-18  Andreas Schwab  <schwab@suse.de>
85699
85700         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
85701
85702 2003-07-17  Karl Berry  <karl@gnu.org>
85703
85704         * config/config.sub: update from prep.
85705
85706 2003-07-17  Bruno Haible  <bruno@clisp.org>
85707
85708         * modules/getnline: New file.
85709         * modules/getline: Add lib/getndelim2.c to source file list.
85710         * MODULES.html.sh (func_all_modules): Add getnline.
85711
85712 2003-07-17  Bruno Haible  <bruno@clisp.org>
85713
85714         * m4/getnline.m4: New file.
85715
85716 2003-07-17  Bruno Haible  <bruno@clisp.org>
85717
85718         * m4/Makefile.am.in: Remove file.
85719         * m4/Makefile.am: Remove file.
85720         * m4/Makefile.in: Remove file.
85721
85722 2003-07-17  Bruno Haible  <bruno@clisp.org>
85723
85724         * lib/getnline.h: New file.
85725         * lib/getnline.c: New file.
85726         * lib/getndelim2.c: New file, extracted from getline.c.
85727         (getndelim2): Renamed from getdelim2, with added nmax argument.
85728         * lib/getline.c: Include getndelim2.c.
85729         (getdelim2): Moved out to getndelim2.c.
85730         (getline, getdelim): Update.
85731
85732 2003-07-17  Bruno Haible  <bruno@clisp.org>
85733
85734         * lib/Makefile.am: Remove file.
85735         * lib/Makefile.in: Remove file.
85736
85737 2003-07-17  Bruno Haible  <bruno@clisp.org>
85738
85739         * configure.in: Remove file.
85740         * Makefile.in: Remove file.
85741
85742 2003-07-17  Bruno Haible  <bruno@clisp.org>
85743
85744         * MODULES.html.sh: Put the </BODY> right before </HTML>.
85745
85746 2003-07-16  Karl Berry  <karl@gnu.org>
85747
85748         * config/srclist-update: was running fixlicense twice, which caused
85749                 texinfo.tex to be nullified for some reason.  Simplify,
85750                 $gplsrc is no longer needed as far as I can see?
85751
85752 2003-07-16  Jim Meyering  <jim@meyering.net>
85753
85754         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
85755
85756 2003-07-15  Paul Eggert  <eggert@twinsun.com>
85757
85758         * config/srclist.txt: Get the following files from gettext-runtime/intl
85759         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
85760         ref-del.sin.  From Bruno Haible.
85761         * config/srclist-update (fixfile): Change grep pattern again, since the
85762         previous fix didn't work (there was another trailing $).  Use
85763         '[$]' to escape the $s.
85764
85765 2003-07-15  Karl Berry  <karl@gnu.org>
85766
85767         * lib/vasnprintf.c: update from gettext.
85768
85769 2003-07-15  Karl Berry  <karl@gnu.org>
85770
85771         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
85772         gets expanded when surrounded by '$'.
85773
85774 2003-07-15  Jim Meyering  <jim@meyering.net>
85775
85776         * modules/save-cwd: Don't depend on error.  From Derek Price.
85777
85778 2003-07-15  Jim Meyering  <jim@meyering.net>
85779
85780         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
85781
85782 2003-07-14  Simon Josefsson  <jas@extundo.com>
85783
85784         * modules/mempcpy: New file.
85785         * MODULES.html.sh (func_all_modules): Add mempcpy.
85786
85787 2003-07-14  Simon Josefsson  <jas@extundo.com>
85788
85789         * m4/mempcpy.m4: New file.
85790
85791 2003-07-14  Simon Josefsson  <jas@extundo.com>
85792
85793         * lib/mempcpy.h: New file.
85794         * lib/mempcpy.c: New file.
85795
85796 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85797
85798         * modules/getdate, modules/posixtm: Depend on mktime.
85799
85800 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85801
85802         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
85803         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
85804         unicodeio.c, unicodeio.h, unlocked-io.h:
85805         Switch from LGPL to GPL.
85806
85807 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85808
85809         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
85810         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
85811         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
85812         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
85813         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
85814         updated automatically by ../config/srclist-update.  This changes
85815         their license from LPGL to GPL.
85816
85817 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85818
85819         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
85820         assumed to refer to the root of the most recent stable gettext version.
85821         * config/srclistvars.sh: Add defaults for eggert.
85822         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
85823         Match "This program" as well as "The program".  This is needed
85824         for gettext.
85825
85826 2003-07-14  Jim Meyering  <jim@meyering.net>
85827
85828         Don't emit diagnostics.  Let callers do that.
85829         * lib/save-cwd.c: Don't include "error.h".
85830         (save_cwd): Don't call error.  Ensure that errno is valid
85831         when returning nonzero.
85832
85833         * lib/save-cwd.h (restore_cwd): Update prototype.
85834         * lib/save-cwd.c (restore_cwd): Remove two parameters.
85835         Simplify.  Don't call error upon failure.  Let callers do that.
85836         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
85837         when auditing is enabled.  But don't bother updating the #if.
85838
85839 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
85840
85841         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
85842         it breaks C++ compilation.
85843         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
85844
85845 2003-07-10  Simon Josefsson  <jas@extundo.com>
85846
85847         * modules/strchrnul (Makefile.am): Add strchrnul.h.
85848
85849 2003-07-10  Jim Meyering  <jim@meyering.net>
85850
85851         * m4/clock_time.m4: Remove trailing blank.
85852         * m4/intmax_t.m4: Likewise.
85853
85854 2003-07-10  Jim Meyering  <jim@meyering.net>
85855
85856         * lib/vasnprintf.c: Remove trailing blanks.
85857         Make cpp indentation consistent.
85858
85859 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85860
85861         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
85862         posixver.c, strftime.c, strnlen.c, strverscmp.c:
85863         Switch from LGPL to GPL.
85864
85865 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85866
85867         * config/srclist.txt: Sort sublists.  Add
85868         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
85869         that differ from gnulib for one reason or another; we'd like this list
85870         to be smaller but for now let's document what we have.
85871
85872 2003-07-08  Paul Eggert  <eggert@twinsun.com>
85873
85874         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
85875         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
85876         and sweeter "eval x=$x".
85877         * config/srclist.txt: Get lib/argp* from glibc.
85878
85879 2003-07-07  Paul Eggert  <eggert@twinsun.com>
85880
85881         * lib/mktime.c: Fix some boundary cases and remove need for floating
85882         point.
85883
85884         Issue a compile-time diagnostic if time_t is floating point, or if
85885         two's complement arithmetic is not in effect, or if arithmetic
85886         right shift does not propagate the sign.  These assumptions were
85887         all in the original code but they weren't checked.
85888
85889         (TIME_T_MIDPOINT, verify): New macros.
85890         (__isleap): Remove; it has integer overflow problems.
85891         (leapyear): New function, without those problems.
85892         (ydhms_tm_diff): Remove; splitting into two parts.
85893         (ydhms_diff): New function, containing the arithmetic part of
85894         the old ydhms_tm_diff function.  Issue a compile-time
85895         diagnostic if we are not using C99 integer division.
85896         Avoid casts when possible.
85897         (guess_time_tm): New function, containing the checking part of
85898         the old ydhms_tm_diff function.  Return the new value, rather than
85899         the difference between it and the old.  Accept a new argument T
85900         so that *T specifies the old value.  Check for overflow in the result.
85901
85902         (__mktime_internal): Use a time_t offset, not a long int offset.
85903         This undoes the 2003-06-04 change, which is no longer needed now
85904         that we have better overflow checking.
85905         (localtime_offset): Likewise.
85906
85907         (__mktime_internal): Avoid harmful overflow on hosts where time_t
85908         and long are 64-bit but int is only 32-bit.
85909         (ydhms_diff): Use long int to store year1 and yday1.
85910         Issue a compile-time diagnostic if long int is not wide enough.
85911
85912         (__mktime_internal): Use long int to store adjusted year and yday.
85913         Use plain C rather than preprocessor commands, if that doesn't
85914         affect efficiency.
85915         Check for overflow (and try to repair) after each probe
85916         rather than checking only at the very end.  This avoids some bugs
85917         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
85918         does not equal GMT offset at maximum time).
85919         Use integer to check for overflow rather than floating point; this
85920         is more portable to non-IEEE hosts, and is a tad faster.
85921         When we detect that we are oscillating between two values,
85922         don't check whether tm_isdst has the requested value, since
85923         we already know the answer.  When tm_isdst has the wrong value,
85924         use a different heuristic to find the right one, based on the
85925         extreme values actually observed in practice in tz2003a,
85926         rather than the (overly optimistic) "previous 3 calendar quarters".
85927
85928         (not_equal_tm, print_tm, check_result): Use "const T" rather than
85929         "T const" to accommodate glibc style.
85930         (check_result): Use less-confusing report format.  "long" -> "long int.
85931         (main): Likewise.
85932         Don't loop if the iteration overflows time_t.
85933         Allow a negative step in the iteration.
85934
85935 2003-07-06  Karl Berry  <karl@gnu.org>
85936
85937         * config/depcomp: update from automake.
85938         * config/config.sub: update from prep.
85939
85940 2003-07-03  Karl Berry  <karl@gnu.org>
85941
85942         * config/config.guess: update from prep.
85943
85944 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85945
85946         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
85947         xreadlink.c now includes it unconditionally.
85948
85949 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85950
85951         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
85952         having it depend on HAVE_SYS_TYPES_H.
85953
85954 2003-07-01  Bruno Haible  <bruno@clisp.org>
85955
85956         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
85957         <sys/types.h> should be sufficient.
85958         Reported by Paul Eggert.
85959
85960 2003-06-26  Karl Berry  <karl@gnu.org>
85961
85962         * config/depcomp: update from automake.
85963
85964 2003-06-26  Bruno Haible  <bruno@clisp.org>
85965
85966         * modules/human: Depend on module stdbool.
85967
85968 2003-06-25  Bruno Haible  <bruno@clisp.org>
85969
85970         * modules/readlink: New file.
85971         * modules/xreadlink: Depend on it.
85972         * MODULES.html.sh (func_all_modules): Add readlink.
85973
85974 2003-06-25  Bruno Haible  <bruno@clisp.org>
85975
85976         * m4/readlink.m4: New file.
85977
85978 2003-06-25  Bruno Haible  <bruno@clisp.org>
85979
85980         * lib/readlink.c: New file.
85981
85982 2003-06-22  Karl Berry  <karl@gnu.org>
85983
85984         * config/srclist.txt: update mkinstalldirs from automake.
85985         * config/mkinstalldirs: update.
85986
85987 2003-06-22  Bruno Haible  <bruno@clisp.org>
85988
85989         Portability to mingw32.
85990         * m4/ssize_t.m4: New file, from GNU gettext.
85991         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
85992         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
85993
85994 2003-06-22  Bruno Haible  <bruno@clisp.org>
85995
85996         * modules/safe-read: Add m4/ssize_t.m4.
85997         * modules/xreadlink: Add m4/ssize_t.m4.
85998
85999 2003-06-20  Bruno Haible  <bruno@clisp.org>
86000
86001         Assume C89, so PARAMS isn't needed.
86002         * lib/unicodeio.h (PARAMS): Remove.
86003         * lib/unicodeio.c: Don't use PARAMS.
86004
86005 2003-06-18  Karl Berry  <karl@gnu.org>
86006
86007         * config/config.{guess,sub}: update from prep.
86008
86009 2003-06-18  Jim Meyering  <jim@meyering.net>
86010
86011         Merge changes from coreutils.
86012         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
86013         Remove explicit declarations of xmalloc and realloc.
86014         Include xalloc.h.
86015         (read_utmp): Remove anachronistic cast of xmalloc.
86016
86017 2003-06-17  Paul Eggert  <eggert@twinsun.com>
86018
86019         Assume C89, so PARAMS isn't needed.
86020         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
86021         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
86022         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
86023         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
86024         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
86025         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
86026         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
86027         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
86028         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
86029         lib/xstrtod.h, lib/xstrtol.h: Likewise.
86030         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
86031         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
86032         no longer needed. Anyway, config.h should always be included before any
86033         other file.
86034
86035 2003-06-11  Simon Josefsson  <jas@extundo.com>
86036
86037         * modules/sysexits: New file.
86038         * MODULES.html.sh (func_all_modules): Add sysexits.
86039
86040 2003-06-11  Simon Josefsson  <jas@extundo.com>
86041
86042         * lib/sysexit_.h: New file.
86043
86044 2003-06-11  Derek Price  <derek@ximbiot.com>
86045
86046         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
86047         necessary.
86048
86049 2003-06-11  Bruno Haible  <bruno@clisp.org>
86050
86051         * m4/sysexits.m4: New file.
86052
86053 2003-06-10  Simon Josefsson  <jas@extundo.com>
86054
86055         * lib/argp.h: New file, from glibc.
86056         * lib/argp-ba.c: New file, from glibc.
86057         * lib/argp-eexst.c: New file, from glibc.
86058         * lib/argp-fmtstream.c: New file, from glibc.
86059         * lib/argp-fmtstream.h: New file, from glibc.
86060         * lib/argp-fs-xinl.c: New file, from glibc.
86061         * lib/argp-help.c: New file, from glibc.
86062         * lib/argp-namefrob.h: New file, from glibc.
86063         * lib/argp-parse.c: New file, from glibc.
86064         * lib/argp-pv.c: New file, from glibc.
86065         * lib/argp-pvh.c: New file, from glibc.
86066         * lib/argp-xinl.c: New file, from glibc.
86067
86068 2003-06-10  Simon Josefsson  <jas@extundo.com>
86069
86070         * modules/strchrnul: New file.
86071
86072 2003-06-10  Simon Josefsson  <jas@extundo.com>
86073
86074         * modules/argp: New file.
86075
86076 2003-06-10  Simon Josefsson  <jas@extundo.com>
86077
86078         * m4/strchrnul.m4: New file.
86079
86080 2003-06-10  Simon Josefsson  <jas@extundo.com>
86081
86082         * lib/strchrnul.h: New file.
86083         * lib/strchrnul.c: New file.
86084
86085 2003-06-10  Bruno Haible  <bruno@clisp.org>
86086
86087         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
86088
86089 2003-06-07  Karl Berry  <karl@gnu.org>
86090
86091         * config/config.{guess,sub}: update from prep.
86092
86093 2003-06-07  Jim Meyering  <jim@meyering.net>
86094
86095         * modules/strtod: Use $(...) notation, not @...@ for
86096         AC_REPLACE'd variables.
86097         * modules/localcharset: Likewise.
86098
86099 2003-06-07  Jim Meyering  <jim@meyering.net>
86100
86101         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
86102         in place of my name in the copyright comment.
86103         Remove definition and uses of __P.
86104
86105         From coreutils.
86106         * lib/stat.c: Don't declare xmalloc explicitly.
86107         Instead, include "xalloc.h".
86108         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
86109         xrealloc, and xcalloc return values.
86110         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
86111         Improve comment.
86112         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
86113
86114 2003-06-07  Bruno Haible  <bruno@clisp.org>
86115
86116         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
86117         avoid AC_CONFIG_LINKS.
86118         * modules/fnmatch (Makefile.am): Use explicit creation rule for
86119         fnmatch.h, to avoid AC_CONFIG_LINKS.
86120         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
86121
86122 2003-06-07  Bruno Haible  <bruno@clisp.org>
86123
86124         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
86125         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
86126         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86127         directory.
86128         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
86129         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86130         directory.
86131
86132 2003-06-06  Jim Meyering  <jim@meyering.net>
86133
86134         Merge from coreutils.
86135         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
86136         Consolidate declarations and initializations of *_base* locals.
86137
86138         Merge from coreutils.
86139         This avoids a core dump on systems without GNU putenv,
86140         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
86141         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
86142         (unsetenv): New static function, from GNU libc.
86143         (rpl_putenv): Use it.
86144
86145         * lib/modechange.c: Remove trailing blanks.
86146
86147         Merge from coreutils.
86148         * lib/fsusage.c: Remove declaration of statfs.
86149         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
86150
86151         * lib/posixtm.c: Include <stdbool.h> unconditionally.
86152
86153 2003-06-06  Jim Meyering  <jim@meyering.net>
86154
86155         * lib/stdbool_.h: Renamed from stdbool.h.in.
86156
86157 2003-06-06  Jim Meyering  <jim@meyering.net>
86158             Bruno Haible  <bruno@clisp.org>
86159
86160         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
86161         Adjust Makefile.am snippet not to redirect directly to target.
86162         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
86163
86164 2003-06-05  Paul Eggert  <eggert@twinsun.com>
86165
86166         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
86167         mismatch, look in future quarters as well as past.  This fixes a
86168         bug when processing fall-backwards gaps immediately after a long
86169         period of daylight-saving time.
86170
86171         * lib/mktime.c: Assume freestanding C89 or better.
86172         (HAVE_LIMITS_H): Remove.  Assume it's 1.
86173         (__P): Remove; not used.
86174         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
86175         (mktime, not_equal_tm, print_tm, check_result,
86176         main): Use prototypes.  Use const * where appropriate.
86177         (main): Fix typo in testing code that uncovered by above changes.
86178         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
86179
86180 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86181
86182         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
86183         locale.h, localeconv.  This merges changes from coreutils.
86184
86185         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
86186         It can be removed after the next Autoconf is released.
86187         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
86188         needed.
86189
86190 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86191
86192         * lib/mktime.c: Fix Debian bug 177940
86193         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
86194         (localtime_offset): Now long int, not time_t, because we want it
86195         to be guaranteed to be signed.  All uses changed.
86196         (__mktime_internal): If overflow would occur when adding offset,
86197         don't add it.
86198
86199         Merge 'human' changes from coreutils.  Rewrite to support
86200         locale-specific notations like thousands separators.
86201         * lib/human.c: Simplify authorship notice.
86202         Include human.h immediately after config.h.
86203         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
86204         <limits.h>: Do not include, since human.h does.
86205         (SIZE_MAX, UINTMAX_MAX): New macros.
86206         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
86207         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
86208         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
86209         (power_letter): Renamed from suffixes.
86210         (generate_suffix_backwards): Remove.
86211         (adjust_value): Now takes int style (because of human.h changes)
86212         and long double value (for greater precision on some platforms).
86213         (group_number): New function.
86214         (human_readable): Use it.  Use integer options, not enum.
86215         Put the options before the sizes in the arg list.
86216         Support all the new options.
86217         The old human_readable function has been removed;
86218         use inttostr.h instead.
86219         (human_readable, default_block_size, humblock):
86220         Use uintmax_t, not int, for block sizes.
86221         (human_readable_inexact, block_size_types): Remove.
86222         (block_size_opts): New constant.
86223         (human_options): Renamed from human_block_size, with new signature
86224         that allows block sizes up to UINTMAX_MAX.  All callers changed.
86225         * lib/human.h: Add copyright and authorship notice.
86226         Include <limits.h> and <stdbool.h> unconditionally.
86227         (PARAMS): Remove.  All uses removed.
86228         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
86229         (enum human_inexact_style): Remove tag; now a nameless enum.
86230         (human_floor, human_ceiling, human_round_to_even): Now have
86231         values 2, 0, 1 rather than -1, 1, 0.
86232         (human_group_digits, human_suppress_point_zero, human_autoscale,
86233         human_base_1024, human_SI, human_B): New constants.
86234         (human_readable_inexact, human_block_size): Remove.
86235         (human_readable): Size args are now uintmax_t, not int.
86236         (human_options): New decl.
86237
86238         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
86239         unnecessary now that we assume C89 or better.  This change
86240         imported from coreutils.
86241
86242         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86243         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
86244         in the 2003-05-30 sync from glibc.
86245
86246         .h files should stand alone, but we shouldn't include <sys/types.h>
86247         if we can get away with just <stddef.h>.
86248
86249         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
86250         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
86251         rather than <sys/types.h>, as we merely need size_t.
86252         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
86253         to get size_t.
86254         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
86255         Include <stdio.h>, to get FILE.
86256         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
86257         memcasecmp.h has included <stddef.h> and all we need is size_t.
86258         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
86259         our interface, instead of including <sys/types.h>
86260
86261 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86262
86263         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
86264         now, as glibc mktime is buggy on non-glibc systems.
86265
86266 2003-06-03  Karl Berry  <karl@gnu.org>
86267
86268         * config/config.sub: update from prep.
86269
86270 2003-06-02  Paul Eggert  <eggert@twinsun.com>
86271
86272         [from coreutils]
86273         Fix some minor time-related bugs with POSIX time arguments.
86274         Some valid time stamps were being rejected (notably -1, and
86275         time stamps before 1900 on 64-bit hosts).  And some invalid
86276         time stamps were being accepted, e.g. September 31.
86277
86278         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
86279         that we can return (time_t) -1 successfully.
86280         * lib/posixtm.c: Likewise.
86281         [HAVE_STDBOOL_H]: Include <stdbool.h>.
86282         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
86283         (t): Remove static var.
86284         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
86285         of static var.  All uses changed.
86286         (year): Do not reject years before 1900; they can occur with
86287         64-bit time_t.
86288         (posix_time_parse): Do not check for out-of-range components;
86289         that is now the caller's responsibility, since our checks were
86290         only approximations.
86291         (posixtime): Use mktime to check for out-of-range components,
86292         since it knows them exactly.
86293         If mktime returns (time_t) -1, check whether an error actually occurred
86294         by invoking localtime on -1.
86295         (main) [TEST_POSIXTIME]: Check for input data errors, and report
86296         posixtime failures better.
86297         Improve the test data (in comments only).
86298
86299 2003-06-02  Karl Berry  <karl@gnu.org>
86300
86301         * config/mkinstalldirs (version): new variable.
86302         (--version): new option.
86303         (usage): improve message.
86304
86305 2003-05-30  Karl Berry  <karl@gnu.org>
86306
86307         * lib/mktime.c: update from libc.
86308
86309 2003-05-30  Bruno Haible  <bruno@clisp.org>
86310
86311         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
86312         * config/config.rpath: Upgrade to gettext-0.12.1.
86313
86314 2003-05-30  Bruno Haible  <bruno@clisp.org>
86315
86316         * m4/gettext.m4: Upgrade to gettext-0.12.1.
86317         * m4/nls.m4: New file, from gettext-0.12.1.
86318         * m4/po.m4: New file, from gettext-0.12.1.
86319         * m4/progtest.m4: Upgrade to gettext-0.12.1.
86320
86321 2003-05-30  Bruno Haible  <bruno@clisp.org>
86322
86323         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
86324         * lib/localcharset.h: Likewise.
86325         * lib/localcharset.c: Likewise.
86326
86327 2003-05-29  Karl Berry  <karl@gnu.org>
86328
86329         * config/config.rpath: update from gettext.
86330
86331 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86332
86333         Assume the headers required for C89 freestanding compilers.
86334         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
86335         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
86336         * m4/human.m4 (gl_HUMAN): Likewise.
86337         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
86338         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
86339         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86340         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
86341         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86342         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
86343
86344 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86345
86346         Assume the headers required for C89 freestanding compilers.
86347         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
86348         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
86349         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
86350         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
86351         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
86352         define, since <limits.h> is guaranteed to do that.
86353         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
86354         * lib/exclude.c: Include <stdbool.h> unconditionally.
86355         * lib/tempname.c: Include <stddef.h> unconditionally.
86356         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
86357         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
86358         <stddef.h> does that.
86359         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
86360         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
86361         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
86362         needed.
86363         * lib/xstrtol.c: Likewise.
86364         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
86365         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
86366
86367         * lib/addext.c (addext): Use assignment rather than cast, to avoid
86368         warnings on some platforms.
86369
86370         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86371         arbitrarily.
86372
86373 2003-05-26  Jim Meyering  <jim@meyering.net>
86374
86375         Merge in a change from coreutils:
86376         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
86377         that is guaranteed to be `no'.  Use `no_such_member' to indicate
86378         that condition, rather than `-1' which is slightly misleading.
86379         Change the name of the cache variable to have the gl_ prefix.
86380         Prompted by a patch from Richard Dawe for DJGPP.
86381
86382 2003-05-24  Karl Berry  <karl@gnu.org>
86383
86384         * config/config.guess: update from prep.
86385
86386 2003-05-22  Karl Berry  <karl@gnu.org>
86387
86388         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
86389
86390 2003-05-20  Karl Berry  <karl@gnu.org>
86391
86392         * config/config.guess: update from prep.
86393
86394 2003-05-18  Karl Berry  <karl@gnu.org>
86395
86396         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
86397         might actually be set by the user.
86398
86399         * config/depcomp, install-sh, mdate-sh: update from automake.
86400
86401 2003-05-17  Bruno Haible  <bruno@clisp.org>
86402
86403         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
86404         invalid expansion for AC_EGREP_CPP.
86405         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
86406         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
86407         Suggested by Akim Demaille <akim@epita.fr> in
86408         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
86409
86410 2003-05-12  Jim Meyering  <jim@meyering.net>
86411
86412         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
86413         the space-padded-by-default conversion specifiers, %e, %k, %l.
86414
86415 2003-05-12  Bruno Haible  <bruno@clisp.org>
86416
86417         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
86418         the string is longer than 4 KB.
86419
86420 2003-05-11  Karl Berry  <karl@gnu.org>
86421
86422         * config/config.{guess,sub}: update from prep.
86423
86424 2003-05-09  Bruno Haible  <bruno@clisp.org>
86425
86426         * modules/error: Add m4/strerror_r.m4 to file list.
86427
86428 2003-05-03  Bruno Haible  <bruno@clisp.org>
86429
86430         Upgrade to Unicode-4.0.
86431         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
86432         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
86433         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
86434         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
86435         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
86436         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
86437         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
86438         Change width of U+E0100..U+E01EF from 1 to 0.
86439
86440 2003-04-25  Jim Meyering  <jim@meyering.net>
86441
86442         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
86443         of type size_t, not int.
86444
86445 2003-04-25  Bruno Haible  <bruno@clisp.org>
86446
86447         * lib/copy-file.c: Include <stddef.h>, for size_t.
86448
86449 2003-04-21  Paul Eggert  <eggert@twinsun.com>
86450
86451         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
86452         code which expansion is under static control.  Patch imported from
86453         Akim Demaille's patch to Bison; see
86454         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
86455
86456 2003-04-14  Bruno Haible  <bruno@clisp.org>
86457
86458         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
86459
86460 2003-04-11  Jim Meyering  <jim@meyering.net>
86461
86462         Merge changes from Coreutils.
86463
86464         2003-03-22  Jim Meyering  <jim@meyering.net>
86465
86466         * lib/strftime.c (widen): Cast alloca return value to proper type.
86467
86468         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
86469
86470         From GNU libc.
86471         * lib/strftime.c (my_strftime): Handle very large width
86472         specifications for numeric values correctly.  Improve checks for
86473         overflow.
86474
86475         2003-01-19  Jim Meyering  <jim@meyering.net>
86476
86477         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
86478         definitions.
86479         (nl_get_alt_digit) [! defined my_strftime]: Define.
86480         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
86481         _nl_get_alt_digit and _nl_get_walt_digit.
86482
86483         * lib/strftime.c (my_strftime): Merge in locale-related changes from
86484         libc. These changes have no effect outside of _LIBC.
86485
86486 2003-04-10  Bruno Haible  <bruno@clisp.org>
86487
86488         * modules/findprog: New file.
86489         * MODULES.html.sh (func_all_modules): Add it.
86490
86491 2003-04-10  Bruno Haible  <bruno@clisp.org>
86492
86493         * m4/findprog.m4: New file.
86494         * m4/eaccess.m4: New file.
86495
86496 2003-04-10  Bruno Haible  <bruno@clisp.org>
86497
86498         * lib/findprog.h: New file, from GNU gettext.
86499         * lib/findprog.c: New file, from GNU gettext.
86500
86501 2003-04-05  Jim Meyering  <jim@meyering.net>
86502
86503         Merge changes from Coreutils.
86504
86505         * lib/exclude.h (PARAMS): Remove definition and uses.
86506         * lib/exclude.c: Remove uses of `PARAMS'.
86507
86508         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
86509         Add test-cases for DOS filenames. Declare program_name.
86510         (main): Set up program_name.  Patch by Rich Dawe.
86511
86512         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86513         error from mntctl.
86514         Use mntctl's return value to drive the entry-processing loop, since
86515         we can't rely on the value of the vmt_length member in the last
86516         entry.  On some systems doing so could result in exhausting
86517         virtual memory.  Based in part on a patch from Mike Jetzer.
86518
86519 2003-04-04  Bruno Haible  <bruno@clisp.org>
86520
86521         * modules/linebreak: New file.
86522         * MODULES.html.sh (func_all_modules): Add it.
86523
86524 2003-04-04  Bruno Haible  <bruno@clisp.org>
86525
86526         * m4/linebreak.m4: New file.
86527
86528 2003-04-04  Bruno Haible  <bruno@clisp.org>
86529
86530         * lib/linebreak.h: New file, from GNU gettext.
86531         * lib/linebreak.c: New file, from GNU gettext with slight
86532         modifications.
86533         * lib/lbrkprop.h: New file, from GNU gettext.
86534
86535 2003-04-03  Bruno Haible  <bruno@clisp.org>
86536
86537         * modules/utf8-ucs4: New file.
86538         * modules/utf16-ucs4: New file.
86539         * modules/ucs4-utf8: New file.
86540         * modules/ucs4-utf16: New file.
86541         * MODULES.html.sh (func_all_modules): Add them.
86542
86543 2003-04-03  Bruno Haible  <bruno@clisp.org>
86544
86545         * m4/utf-ucs4.m4: New file.
86546         * m4/ucs4-utf.m4: New file.
86547
86548 2003-04-03  Bruno Haible  <bruno@clisp.org>
86549
86550         * lib/utf8-ucs4.h: New file, from GNU gettext.
86551         * lib/utf16-ucs4.h: New file, from GNU gettext.
86552         * lib/ucs4-utf8.h: New file, from GNU gettext.
86553         * lib/ucs4-utf16.h: New file, from GNU gettext.
86554
86555 2003-04-02  Bruno Haible  <bruno@clisp.org>
86556
86557         * modules/binary-io: New file.
86558         * MODULES.html.sh (func_all_modules): Add it.
86559
86560 2003-04-02  Bruno Haible  <bruno@clisp.org>
86561
86562         * lib/binary-io.h: New file, from GNU gettext.
86563
86564 2003-04-01  Bruno Haible  <bruno@clisp.org>
86565
86566         * modules/pathname: New file.
86567         * MODULES.html.sh (func_all_modules): Add it.
86568
86569 2003-04-01  Bruno Haible  <bruno@clisp.org>
86570
86571         * lib/pathname.h: New file, from GNU gettext.
86572         * lib/concatpath.c: New file, from GNU gettext.
86573
86574 2003-03-30  Bruno Haible  <bruno@clisp.org>
86575
86576         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
86577
86578 2003-03-30  Bruno Haible  <bruno@clisp.org>
86579
86580         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
86581         function chown() doesn't exist.
86582
86583 2003-03-28  Bruno Haible  <bruno@clisp.org>
86584
86585         * modules/copy-file: New file.
86586         * MODULES.html.sh (func_all_modules): Add it.
86587
86588 2003-03-28  Bruno Haible  <bruno@clisp.org>
86589
86590         * m4/copy-file.m4: New file.
86591
86592 2003-03-28  Bruno Haible  <bruno@clisp.org>
86593
86594         * lib/copy-file.h: New file, from GNU gettext.
86595         * lib/copy-file.c: New file, from GNU gettext.
86596
86597 2003-03-18  Jim Meyering  <jim@meyering.net>
86598
86599         * lib/quote.c (quote_n): Fix typo in comment.
86600
86601 2003-03-18  Bruno Haible  <bruno@clisp.org>
86602
86603         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
86604         checking.
86605         * m4/onceonly_2_57.m4: Likewise.
86606
86607 2003-03-17  Bruno Haible  <bruno@clisp.org>
86608
86609         * m4/onceonly.m4: Require autoconf 2.54 or newer.
86610         (m4_quote): Remove macro.
86611         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
86612
86613 2003-03-14  Jim Meyering  <jim@meyering.net>
86614
86615         Merge changes from Coreutils.
86616         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
86617         to be const, in order to avoid warnings.
86618         (obstack_room): Likewise.
86619         (obstack_empty_p): Likewise.
86620
86621 2003-03-14  Bruno Haible  <bruno@clisp.org>
86622
86623         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
86624         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
86625
86626 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86627
86628         Merge changes from Bison.
86629         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
86630         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
86631         when compiling Bison 1.875's `bitset bset = obstack_alloc
86632         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
86633         * lib/hash.c: Include <stdbool.h> unconditionally.
86634
86635 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86636
86637         * m4/onceonly.m4 (m4_quote): New macro.
86638         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
86639         Quote AC_FOREACH variable-expansions properly.
86640
86641 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86642
86643         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
86644
86645 2003-03-09  Paul Eggert  <eggert@twinsun.com>
86646
86647         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
86648         Reported by Bruce Becker; see:
86649         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
86650
86651 2003-03-03  Paul Eggert  <eggert@twinsun.com>
86652             Bruno Haible  <bruno@clisp.org>
86653
86654         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
86655         Reported by John Hughes, see
86656         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
86657
86658 2003-02-20  Bruno Haible  <bruno@clisp.org>
86659
86660         * MODULES.html.sh (func_all_modules): Add poll.
86661
86662 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86663
86664         * modules/poll: New file.
86665
86666 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86667
86668         * lib/poll_.h: New file.
86669         * lib/poll.c: New file.
86670
86671 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86672
86673         * m4/poll.m4: New file.
86674
86675 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86676
86677         * modules/mathl: New file.
86678
86679 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86680
86681         * lib/mathl.h: New file.
86682         * lib/acosl.c: New file.
86683         * lib/asinl.c: New file.
86684         * lib/atanl.c: New file.
86685         * lib/ceill.c: New file.
86686         * lib/cosl.c: New file.
86687         * lib/expl.c: New file.
86688         * lib/floorl.c: New file.
86689         * lib/frexpl.c: New file.
86690         * lib/ldexpl.c: New file.
86691         * lib/logl.c: New file.
86692         * lib/sincosl.c: New file.
86693         * lib/sinl.c: New file.
86694         * lib/sqrtl.c: New file.
86695         * lib/tanl.c: New file.
86696         * lib/trigl.c: New file.
86697         * lib/trigl.h: New file.
86698
86699 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86700
86701         * m4/mathl.m4: New file.
86702
86703 2003-02-18  Bruno Haible  <bruno@clisp.org>
86704
86705         * MODULES.html.sh (func_all_modules): Add mathl.
86706
86707 2003-02-17  Bruno Haible  <bruno@clisp.org>
86708
86709         * modules/mkdtemp: New module.
86710         * MODULES.html.sh (func_all_modules): Add it.
86711
86712 2003-02-17  Bruno Haible  <bruno@clisp.org>
86713
86714         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
86715
86716 2003-02-17  Bruno Haible  <bruno@clisp.org>
86717
86718         * lib/mkdtemp.h: New file, from GNU gettext.
86719         * lib/mkdtemp.c: New file, from GNU gettext.
86720
86721 2003-02-02  Jim Meyering  <jim@meyering.net>
86722
86723         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
86724         e.g. glibc-2.2.93.
86725
86726 2003-01-31  Bruno Haible  <bruno@clisp.org>
86727
86728         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
86729         'rpl_rename'.
86730         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
86731         'rpl_strnlen'.
86732         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
86733         'rpl_strtod'.
86734         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
86735         'rpl_utime'.
86736
86737 2003-01-31  Bruno Haible  <bruno@clisp.org>
86738
86739         * lib/rename.c: #undef rename before defining rpl_rename.
86740         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
86741
86742 2003-01-30  Bruno Haible  <bruno@clisp.org>
86743
86744         * modules/vasnprintf, modules/vasprintf: New modules.
86745         * MODULES.html.sh (func_all_modules): Add them.
86746
86747 2003-01-30  Bruno Haible  <bruno@clisp.org>
86748
86749         * m4/signed.m4: New file, from GNU gettext.
86750         * m4/longdouble.m4: New file, from GNU gettext.
86751         * m4/wchar_t.m4: New file, from GNU gettext.
86752         * m4/wint_t.m4: New file, from GNU gettext.
86753         * m4/vasnprintf.m4: New file.
86754         * m4/vasprintf.m4: New file.
86755
86756 2003-01-30  Bruno Haible  <bruno@clisp.org>
86757
86758         * lib/printf-args.h: New file, from GNU gettext.
86759         * lib/printf-args.c: New file, from GNU gettext.
86760         * lib/printf-parse.h: New file, from GNU gettext.
86761         * lib/printf-parse.c: New file, from GNU gettext.
86762         * lib/vasnprintf.h: New file, from GNU gettext.
86763         * lib/vasnprintf.c: New file, from GNU gettext.
86764         * lib/asnprintf.c: New file, from GNU gettext.
86765         * lib/vasprintf.h: New file, from GNU gettext with modifications.
86766         * lib/vasprintf.c: New file, from GNU gettext.
86767         * lib/asprintf.c: New file, from GNU gettext.
86768
86769 2003-01-29  Bruno Haible  <bruno@clisp.org>
86770
86771         * modules/stpncpy: New module.
86772         * MODULES.html.sh (func_all_modules): Add it.
86773
86774 2003-01-29  Bruno Haible  <bruno@clisp.org>
86775
86776         * m4/stpncpy.m4: New file.
86777
86778 2003-01-29  Bruno Haible  <bruno@clisp.org>
86779
86780         * lib/stpncpy.h: New file, from GNU gettext with modifications.
86781         * lib/stpncpy.c: New file, from GNU gettext with modifications.
86782
86783 2003-01-28  Bruno Haible  <bruno@clisp.org>
86784
86785         * modules/c-ctype: New module.
86786         * MODULES.html.sh (func_all_modules): Add it.
86787
86788 2003-01-28  Bruno Haible  <bruno@clisp.org>
86789
86790         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
86791         Paul Eggert.
86792         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
86793         Paul Eggert.
86794
86795 2003-01-27  Bruno Haible  <bruno@clisp.org>
86796
86797         * modules/xsetenv: New module.
86798         * MODULES.html.sh (func_all_modules): Add it.
86799
86800 2003-01-27  Bruno Haible  <bruno@clisp.org>
86801
86802         * lib/xsetenv.h: New file, from GNU gettext.
86803         * lib/xsetenv.c: New file, from GNU gettext.
86804
86805 2003-01-23  Jim Meyering  <jim@meyering.net>
86806
86807         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
86808         from working on systems without dirfd (at least Irix and OSF1/Tru64).
86809
86810 2003-01-23  Bruno Haible  <bruno@clisp.org>
86811
86812         * modules/minmax: New module.
86813         * MODULES.html.sh (func_all_modules): Add it.
86814
86815 2003-01-23  Bruno Haible  <bruno@clisp.org>
86816
86817         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
86818         Eggert.
86819
86820 2003-01-22  Bruno Haible  <bruno@clisp.org>
86821
86822         * modules/exit: New module.
86823         * MODULES.html.sh (func_all_modules): Add it.
86824
86825 2003-01-22  Bruno Haible  <bruno@clisp.org>
86826
86827         * lib/exit.h: New file, from GNU gettext.
86828
86829 2003-01-19  Bruno Haible  <bruno@clisp.org>
86830
86831         * gnulib-tool: Recognize option --extract-maintainer.
86832         (func_get_maintainer): New function.
86833         * modules/*: Add Maintainer entry.
86834
86835 2003-01-16  Jim Meyering  <jim@meyering.net>
86836
86837         * m4/regex.m4: The `regex' struct is both input and output.
86838         Initialize it before each use.  Patch by Tim Waugh.
86839
86840 2003-01-16  Bruno Haible  <bruno@clisp.org>
86841
86842         * MODULES.html.sh: Add a table of contents. Add the module name as
86843         leftmost column. Add hyperlinks.
86844
86845 2003-01-15  Bruno Haible  <bruno@clisp.org>
86846
86847         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
86848
86849 2003-01-15  Bruno Haible  <bruno@clisp.org>
86850
86851         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
86852         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
86853         suffix.
86854
86855 2003-01-15  Bruno Haible  <bruno@clisp.org>
86856
86857         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
86858
86859 2003-01-15  Bruno Haible  <bruno@clisp.org>
86860
86861         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
86862         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
86863
86864 2003-01-14  Jim Meyering  <jim@meyering.net>
86865
86866         * lib/same.c (same_name): Tweak a comment.
86867
86868 2003-01-14  Bruno Haible  <bruno@clisp.org>
86869
86870         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
86871         when a string comparison is sufficient.
86872
86873 2003-01-14  Bruno Haible  <bruno@clisp.org>
86874
86875         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
86876         'unsigned int'.
86877
86878 2003-01-14  Bruno Haible  <bruno@clisp.org>
86879
86880         * lib/hash-pjw.c: Add comment about low quality of this function.
86881
86882 2003-01-13  Bruno Haible  <bruno@clisp.org>
86883
86884         * modules/stpcpy: Distribute lib/stpcpy.h.
86885         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
86886
86887 2003-01-13  Bruno Haible  <bruno@clisp.org>
86888
86889         * modules/*: Add a description.
86890         * modules/strpbrk: Fix Makefile.am snippet.
86891         * modules/strtoimax: Fix dependencies.
86892         * modules/strtoumax: Likewise.
86893
86894 2003-01-13  Bruno Haible  <bruno@clisp.org>
86895
86896         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
86897         * modules/alloca (Makefile.am): All object files depend on alloca.h.
86898         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
86899
86900 2003-01-13  Bruno Haible  <bruno@clisp.org>
86901
86902         * gnulib-tool (func_create_testdir): Store config/* files in the main
86903         directory.
86904         * config.rpath: Move to ...
86905         * config/config.rpath: ... here.
86906         * modules/gettext: Contains config/config.rpath, not config.rpath.
86907         * modules/iconv: Likewise.
86908
86909 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86910
86911         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86912         to avoid collisions with libcurses and libreadline.
86913
86914         * m4/getstr.m4: Remove.
86915         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
86916
86917 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86918
86919         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86920         to avoid collisions with libcurses and libreadline.
86921
86922         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
86923         * lib/getstr.h, getstr.c: Remove.
86924         * lib/getline.c: Include "getline.h", to check interface.
86925         Move body of old getstr.c here: this defines MIN_CHUNK and
86926         declares getdelim2, which is renamed from getstr.
86927         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
86928
86929         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
86930         All uses changed.
86931         * lib/linebuffer.h: Likewise.
86932         (readline): Remove backward-compatibility macro.
86933
86934 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86935
86936         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86937         to avoid collisions with libcurses and libreadline.
86938         * getstr: Remove.
86939         * MODULES.html.sh: Remove getstr.
86940         * modules/getline: Depend on unlocked-io, not getstr.
86941
86942 2003-01-12  Jim Meyering  <jim@meyering.net>
86943
86944         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
86945
86946 2003-01-10  Bruno Haible  <bruno@clisp.org>
86947
86948         * modules/alloca: Change Makefile.am requirements. Simplify Include
86949         requirements. Add lib/alloca_.h to file list.
86950
86951 2003-01-10  Bruno Haible  <bruno@clisp.org>
86952
86953         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
86954
86955 2003-01-10  Bruno Haible  <bruno@clisp.org>
86956
86957         * lib/alloca_.h: New file.
86958         * lib/getdate.y: Unconditionally include alloca.h.
86959         * lib/makepath.c: Likewise.
86960         * lib/setenv.c: Likewise.
86961         * lib/userspec.c: Likewise.
86962
86963 2003-01-09  Karl Berry  <karl@gnu.org>
86964
86965         * MODULES.html.sh: include `dirname $0` in PATH, to find
86966         gnulib-tool.
86967
86968 2003-01-09  Bruno Haible  <bruno@clisp.org>
86969
86970         * modules/stdbool: Change configure.ac, Makefile.am requirements.
86971         Simplify Include requirements. Add lib/stdbool.h.in to file list.
86972
86973 2003-01-09  Bruno Haible  <bruno@clisp.org>
86974
86975         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
86976
86977 2003-01-09  Bruno Haible  <bruno@clisp.org>
86978
86979         * lib/stdbool.h.in: New file.
86980
86981 2003-01-09  Bruno Haible  <bruno@clisp.org>
86982
86983         * gnulib-tool (func_all_modules): Ignore files ending in ~.
86984         * MODULES.html.sh: Likewise.
86985
86986 2003-01-08  Jim Meyering  <jim@meyering.net>
86987
86988         * lib/full-write.c: Undefine and define-away `const' after inclusion
86989         of errno.h, not before.  Suggestion from Bruno Haible.
86990
86991 2003-01-08  Bruno Haible  <bruno@clisp.org>
86992
86993         * modules/full-read: Depend on full-write.
86994
86995 2003-01-08  Bruno Haible  <bruno@clisp.org>
86996
86997         * lib/safe-read.c: Include specification header first, to ensure its
86998         selfcontainedness.
86999         * lib/full-write.c: Likewise.
87000
87001 2003-01-07  Jim Meyering  <jim@meyering.net>
87002
87003         * lib/full-write.c: Rework so that it may serve to define full_read,
87004         too.
87005         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
87006
87007 2003-01-07  Bruno Haible  <bruno@clisp.org>
87008
87009         * lib/strtoimax.c: Include <stdint.h> as an alternative to
87010         <inttypes.h>.
87011         * lib/xstrtol.h: Likewise.
87012         * lib/xstrtoimax.c: Likewise.
87013         * lib/xstrtoumax.c: Likewise.
87014         * lib/human.h: Likewise.
87015
87016         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
87017         on systems that have <inttypes.h> but not <stdint.h>.
87018
87019 2003-01-07  Bruno Haible  <bruno@clisp.org>
87020
87021         * MODULES.html.sh: Add copyright notice.
87022         (missed_files): Omit CVS directory entries.
87023         (func_module): Make it work with sed-3.02.
87024         * MODULES.txt: Remove file.
87025
87026 2003-01-06  Jim Meyering  <jim@meyering.net>
87027
87028         * lib/version-etc.c: Update year in translatable copyright string.
87029
87030 2003-01-03  Karl Berry  <karl@gnu.org>
87031
87032         * config/config.{guess,sub}: update from prep.
87033
87034 2003-01-02  Karl Berry  <karl@gnu.org>
87035
87036         * doc/COPYING.DOC: belatedly updated to 1.2.
87037
87038 2003-01-01  Karl Berry  <karl@gnu.org>
87039
87040         * gnulib-tool (func_verify_module): report module name $module in
87041         error message, not $1.
87042         * gnulib-tool (create-testdir): don't complain if destdir couldn't
87043         be created, only if it doesn't exist.
87044         * gnulib-tool (last_checkin_date): don't expand the $Date here.
87045
87046 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87047
87048         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
87049
87050 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87051
87052         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
87053         memcmp if strcoll doesn't work.
87054
87055 2002-12-31  Bruno Haible  <bruno@clisp.org>
87056
87057         * lib/utime.c (utime_null): No need to call ftruncate if the file was
87058         nonempty.
87059
87060 2002-12-31  Bruno Haible  <bruno@clisp.org>
87061
87062         * lib/memcoll.c (STRCOLL): New macro.
87063         (memcoll): Use it.
87064
87065 2002-12-31  Bruno Haible  <bruno@clisp.org>
87066
87067         * lib/localcharset.h: New file.
87068         * lib/localcharset.c: Include it.
87069         * lib/unicodeio.c: Likewise.
87070
87071 2002-12-31  Bruno Haible  <bruno@clisp.org>
87072
87073         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
87074         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
87075
87076 2002-12-31  Bruno Haible  <bruno@clisp.org>
87077
87078         * lib/getline.h: Include <stddef.h>, for size_t.
87079
87080         * lib/unicodeio.h: Include <stddef.h>, for size_t.
87081         * lib/unicodeio.c: Don't include <stddef.h>.
87082
87083 2002-12-31  Bruno Haible  <bruno@clisp.org>
87084
87085         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
87086         HAVE_TM_ZONE.
87087
87088 2002-12-24  Karl Berry  <karl@gnu.org>
87089
87090         * config/config.guess: update from prep.
87091
87092 2002-12-24  Bruno Haible  <bruno@clisp.org>
87093
87094         General infrasructure.
87095         * m4/README: Rewritten.
87096         * m4/onceonly.m4: New file.
87097         * m4/onceonly_2_57.m4: New file.
87098
87099         Module atexit.
87100         * m4/atexit.m4: New file.
87101
87102         Module strtod.
87103         * m4/strtod.m4: New file.
87104
87105         Module strtol.
87106         * m4/strtol.m4: New file.
87107
87108         Module strtoul.
87109         * m4/strtoul.m4: New file.
87110
87111         Module memchr.
87112         * m4/memchr.m4: New file.
87113
87114         Module memcmp.
87115         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
87116         (jm_FUNC_MEMCMP): Invoke it.
87117
87118         Module memcpy.
87119         * m4/memcpy.m4: New file.
87120
87121         Module memmove.
87122         * m4/memmove.m4: New file.
87123
87124         Module memset.
87125         * m4/memset.m4: New file.
87126
87127         Module strcspn.
87128         * m4/strcspn.m4: New file.
87129
87130         Module strpbrk.
87131         * m4/strpbrk.m4: New file.
87132
87133         Module strstr.
87134         * m4/strstr.m4: New file.
87135
87136         Module strerror.
87137         * m4/strerror.m4: New file.
87138
87139         Module mktime.
87140         * m4/mktime.m4: Renamed from jm-mktime.m4.
87141         (gl_PREREQ_MKTIME): New macro.
87142         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
87143
87144         Module malloc.
87145         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
87146         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
87147         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
87148
87149         Module realloc.
87150         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
87151         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
87152         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
87153
87154         Module strftime.
87155         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
87156         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
87157         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
87158         gl_TM_GMTOFF.
87159         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
87160
87161         Module xalloc.
87162         * m4/xalloc.m4: New file.
87163
87164         Module alloca.
87165         * m4/alloca.m4: New file.
87166
87167         Module putenv.
87168         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
87169         (jm_FUNC_PUTENV): Invoke it.
87170
87171         Module setenv.
87172         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
87173         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
87174         when invoked twice.
87175         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
87176         gt_FUNC_SETENV.
87177
87178         Module memrchr.
87179         * m4/memrchr.m4: New file.
87180
87181         Module stpcpy.
87182         * m4/stpcpy.m4: New file.
87183
87184         Module strcase.
87185         * m4/strcase.m4: New file.
87186
87187         Module strdup.
87188         * m4/strdup.m4: New file.
87189
87190         Module strnlen.
87191         * m4/strnlen.m4: New file.
87192
87193         Module strndup.
87194         * m4/strndup.m4: New file.
87195
87196         Module xstrtod.
87197         * m4/xstrtod.m4: New file.
87198
87199         Module xstrtol.
87200         * m4/xstrtol.m4: New file.
87201
87202         Module getdate.
87203         * m4/getdate.m4: New file.
87204
87205         Module unlocked-io.
87206         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
87207         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
87208         * m4/jm-glibc-io.m4n: Remove file.
87209
87210         Module long-options.
87211         * m4/long-options.m4: New file.
87212
87213         Module md5.
87214         * m4/md5.m4: New file.
87215
87216         Module sha.
87217         * m4/sha.m4: New file.
87218
87219         Module getstr.
87220         * m4/getstr.m4: New file.
87221
87222         Module getline.
87223         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
87224         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
87225         <sys/types.h>, for size_t. Use the function name gnu_getline, not
87226         simply getline. Infoke gl_PREREQ_GETLINE.
87227
87228         Module obstack.
87229         * m4/obstack.m4: New file.
87230
87231         Module hash.
87232         * m4/hash.m4: New file.
87233
87234         Module readtokens.
87235         * m4/readtokens.m4: New file.
87236
87237         Module strverscmp.
87238         * m4/strverscmp.m4: New file.
87239
87240         Module stdbool.
87241         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
87242         OSF/1.
87243
87244         Module strtoll.
87245         * m4/strtoll.m4: New file.
87246
87247         Module strtoull.
87248         * m4/strtoull.m4: New file.
87249
87250         Module strtoimax.
87251         * m4/strtoimax.m4: New file.
87252
87253         Module strtoumax.
87254         * m4/strtoumax.m4: New file.
87255
87256         Module xstrtoimax.
87257         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
87258         jm_AC_PREREQ_XSTRTOIMAX.
87259         Moved the strtol prerequisites to strtol.m4.
87260         Moved the strtoll prerequisites to strtoll.m4.
87261         Moved the strtoimax prerequisites to strtoimax.m4.
87262
87263         Module xstrtoumax.
87264         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
87265         jm_AC_PREREQ_XSTRTOUMAX.
87266         Moved the strtoul prerequisites to strtoul.m4.
87267         Moved the strtoull prerequisites to strtoull.m4.
87268         Moved the strtoumax prerequisites to strtoumax.m4.
87269
87270         Module chown.
87271         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
87272         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
87273
87274         Module dup2.
87275         * m4/dup2.m4: New file.
87276
87277         Module ftruncate.
87278         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
87279         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
87280
87281         Module getgroups.
87282         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
87283         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
87284
87285         Module gettimeofday.
87286         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
87287         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
87288         gl_PREREQ_GETTIMEOFDAY.
87289
87290         Module mkdir.
87291         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
87292         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
87293
87294         Module mkstemp.
87295         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
87296         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
87297         jm_AC_TYPE_UINTMAX_T.
87298         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
87299
87300         Module stat.
87301         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
87302         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
87303
87304         Module lstat.
87305         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
87306         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
87307
87308         Module timespec.
87309         * m4/timespec.m4 (gl_TIMESPEC): New macro.
87310         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
87311         * m4/st_mtim.m4: Indentation.
87312
87313         Module nanosleep.
87314         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
87315         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
87316         gl_PREREQ_NANOSLEEP.
87317
87318         Module regex.
87319         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
87320         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
87321         (gl_REGEX): New macro.
87322
87323         Module rename.
87324         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
87325         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
87326
87327         Module rmdir.
87328         * m4/rmdir.m4: New file.
87329
87330         Module utime.
87331         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
87332         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
87333         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
87334
87335         Module dirname.
87336         * m4/dirname.m4: New file.
87337
87338         Module getopt.
87339         * m4/getopt.m4: New file.
87340
87341         Module unistd-safer.
87342         * m4/unistd-safer.m4: New file.
87343
87344         Module fnmatch.
87345         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
87346         declaration.
87347         (gl_PREREQ_FNMATCH_EXTRA): New macro.
87348         (gl_FUNC_FNMATCH_POSIX): New macro.
87349         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
87350         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
87351         simply fnmatch.
87352
87353         Module exclude.
87354         * m4/exclude.m4: New file.
87355
87356         Module human.
87357         * m4/human.m4: New file.
87358
87359         Module acl.
87360         * m4/acl.m4: Nop.
87361
87362         Module backupfile.
87363         * m4/backupfile.m4: New file.
87364         * m4/d-ino.m4: Indentation.
87365
87366         Module fsusage.
87367         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
87368         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
87369         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
87370
87371         Module dirfd.
87372         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
87373         requirements.
87374
87375         Module euidaccess.
87376         * m4/euidaccess.m4: New file.
87377
87378         Module file-type.
87379         * m4/file-type.m4: New file.
87380
87381         Module fileblocks.
87382         * m4/fileblocks.m4: New file.
87383
87384         Module filemode.
87385         * m4/filemode.m4: New file.
87386
87387         Module isdir.
87388         * m4/isdir.m4: New file.
87389
87390         Module lchown.
87391         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
87392         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
87393
87394         Module makepath.
87395         * m4/makepath.m4: New file.
87396
87397         Module modechange.
87398         * m4/modechange.m4: New file.
87399
87400         Module mountlist.
87401         * m4/mountlist.m4: New file.
87402         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
87403         Indentation.
87404
87405         Module path-concat.
87406         * m4/path-concat.m4: New file.
87407
87408         Module pathmax.
87409         * m4/pathmax.m4: New file.
87410
87411         Module same.
87412         * m4/same.m4: New file.
87413
87414         Module save-cwd.
87415         * m4/save-cwd.m4: New file.
87416
87417         Module savedir.
87418         * m4/savedir.m4: New file.
87419
87420         Module xgetcwd.
87421         * m4/xgetcwd.m4: New file.
87422         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
87423
87424         Module xreadlink.
87425         * m4/xreadlink.m4: New file.
87426
87427         Module safe-read.
87428         * m4/safe-read.m4: New file.
87429
87430         Module safe-write.
87431         * m4/safe-write.m4: New file.
87432
87433         Module closeout.
87434         * m4/closeout.m4: New file.
87435
87436         Module stdio-safer.
87437         * m4/stdio-safer.m4: New file.
87438
87439         Module getpass.
87440         * m4/getpass.m4: New file.
87441
87442         Module getugroups.
87443         * m4/getugroups.m4: New file.
87444
87445         Module group-member.
87446         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
87447         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
87448
87449         Module idcache.
87450         * m4/idcache.m4: New file.
87451
87452         Module userspec.
87453         * m4/userspec.m4: New file.
87454
87455         Module gettime.
87456         * m4/clock_time.m4: New file.
87457         * m4/gettime.m4: New file.
87458
87459         Module settime.
87460         * m4/settime.m4: New file.
87461
87462         Module posixtm.
87463         * m4/posixtm.m4: New file.
87464
87465         Module gethostname.
87466         * m4/gethostname.m4: New file.
87467
87468         Module canon-host.
87469         * m4/canon-host.m4: New file.
87470
87471         Module gettext.
87472         * m4/codeset.m4: New file, from gettext-0.11.5.
87473         * m4/gettext.m4: New file, from gettext-0.11.5.
87474         * m4/glibc21.m4: New file, from gettext-0.11.5.
87475         * m4/iconv.m4: New file, from gettext-0.11.5.
87476         * m4/intdiv0.m4: New file, from gettext-0.11.5.
87477         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
87478         * m4/inttypes.m4: New file, from gettext-0.11.5.
87479         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
87480         * m4/isc-posix.m4: New file, from gettext-0.11.5.
87481         * m4/lcmessage.m4: New file, from gettext-0.11.5.
87482         * m4/lib-ld.m4: New file, from gettext-0.11.5.
87483         * m4/lib-link.m4: New file, from gettext-0.11.5.
87484         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
87485         * m4/progtest.m4: New file, from gettext-0.11.5.
87486         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
87487         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
87488         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
87489
87490         Module localcharset.
87491         * m4/localcharset.m4: New file.
87492
87493         Module hard-locale.
87494         * m4/hard-locale.m4: New file.
87495
87496         Module mbswidth.
87497         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
87498         onceonly macros.
87499         * m4/mbrtowc.m4: Add comment.
87500
87501         Module memcasecmp.
87502         * m4/memcasecmp.m4: New file.
87503
87504         Module memcoll.
87505         * m4/memcoll.m4: New file.
87506
87507         Module unicodeio.
87508         * m4/unicodeio.m4: New file.
87509
87510         Module rpmatch.
87511         * m4/rpmatch.m4: New file.
87512
87513         Module yesno.
87514         * m4/yesno.m4: New file.
87515
87516         Module exitfail.
87517         * m4/exitfail.m4: New file.
87518
87519         Module c-stack.
87520         * m4/c-stack.m4 (gl_C_STACK): New macro.
87521         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
87522
87523         Module error.
87524         * m4/error.m4 (gl_ERROR): New macro.
87525         (jm_PREREQ_ERROR): Use onceonly macros.
87526
87527         Module fatal.
87528         * m4/fatal.m4: New file.
87529
87530         Module getloadavg.
87531         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
87532         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
87533
87534         Module getpagesize.
87535         * m4/getpagesize.m4: New file.
87536
87537         Module getusershell.
87538         * m4/getusershell.m4: New file.
87539
87540         Module physmem.
87541         * m4/physmem.m4: New file.
87542
87543         Module posixver.
87544         * m4/posixver.m4: New file.
87545
87546         Module quotearg.
87547         * m4/quotearg.m4: New file.
87548
87549         Module quote.
87550         * m4/quote.m4: New file.
87551
87552         Module readutmp.
87553         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
87554
87555         Module sig2str.
87556         * m4/sig2str.m4: New file.
87557
87558         Other.
87559         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
87560         ulonglong.m4.
87561         * m4/intmax_t.m4: New file.
87562         * m4/d-type.m4: Indentation.
87563         * m4/jm-macros.m4: Update.
87564         * m4/prereq.m4 (jm_PREREQ): Update.
87565         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
87566         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
87567         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
87568         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
87569         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
87570         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
87571         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
87572         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
87573         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
87574         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
87575         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
87576         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
87577         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
87578         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
87579         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
87580         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
87581         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
87582         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
87583         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
87584
87585 2002-12-24  Bruno Haible  <bruno@clisp.org>
87586
87587         * MODULES.txt: Update according to m4/ changes.
87588
87589         Module gettext.
87590         * config.rpath: New file, from gettext-0.11.5.
87591
87592         * modules/*: New module descriptions.
87593         * gnulib-tool: New file.
87594         * MODULES.html.sh: New file.
87595
87596 2002-12-21  Karl Berry  <karl@gnu.org>
87597
87598         * doc/fdl.texi: update to version 1.2.
87599
87600 2002-12-19  Karl Berry  <karl@gnu.org>
87601
87602         * config/config.guess: update from prep.
87603
87604 2002-12-18  Bruno Haible  <bruno@clisp.org>
87605
87606         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
87607         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
87608
87609 2002-12-17  Bruno Haible  <bruno@clisp.org>
87610
87611         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
87612         stdlib.h, string.h.
87613
87614 2002-12-17  Bruno Haible  <bruno@clisp.org>
87615
87616         * lib/canon-host.c (strdup): Remove unused declaration.
87617
87618         * lib/fsusage.c: Include full_read.h.
87619         (get_fs_usage): Use full_read instead of safe_read.
87620
87621         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
87622
87623 2002-12-12  Karl Berry  <karl@gnu.org>
87624
87625         * config/config.guess: update from prep.
87626
87627 2002-12-11  Bruno Haible  <bruno@clisp.org>
87628
87629         * m4/setenv.m4: New file, from gettext-0.11.5.
87630
87631 2002-12-11  Bruno Haible  <bruno@clisp.org>
87632
87633         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
87634         not unsetenv().
87635         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
87636         modifications:
87637
87638         2002-12-11  Bruno Haible  <bruno@clisp.org>
87639
87640                 * setenv.c (alloca): Fall back to malloc.
87641                 (freea): New macro.
87642                 (setenv): Use freea() to free memory allocated with alloca().
87643
87644         2002-11-13  Bruno Haible  <bruno@clisp.org>
87645
87646                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
87647                 function declarations.
87648                 * unsetenv.c (unsetenv): Likewise.
87649
87650         2002-03-04  Bruno Haible  <bruno@clisp.org>
87651
87652                 Portability to AIX 4.3.3.
87653                 * unsetenv.c: New file, extracted from setenv.c.
87654                 * setenv.c: Move the unsetenv() function to unsetenv.c.
87655
87656         2001-12-20  Bruno Haible  <bruno@clisp.org>
87657
87658                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
87659                 use malloc instead. For SunOS 4.
87660
87661         2001-12-11  Bruno Haible  <bruno@clisp.org>
87662
87663                 * setenv.c: Declare alloca.
87664                 (compar_fn_t): New typedef.
87665                 (KNOWN_VALUE, STORE_VALUE): Use it.
87666
87667         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
87668         setenv.h.
87669
87670 2002-12-10  Paul Eggert  <eggert@twinsun.com>
87671
87672         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
87673         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
87674         Choose values that are less likely to collide with system fnmatch
87675         options.
87676         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
87677         defined (e.g., a pure POSIX system).
87678         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
87679         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
87680
87681 2002-12-06  Paul Eggert  <eggert@twinsun.com>
87682
87683         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
87684         a pain in practice to deal with generated m4 files.  This change
87685         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
87686
87687         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
87688         and jm-glibc-io.m4, as they are no longer a special case.
87689         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
87690         kludge and the auto-generation stuff.  Check only whether the
87691         functions are declared, not whether they exist, since older hosts
87692         that don't declare the functions can't use the optimization anyway.
87693
87694 2002-12-06  Jim Meyering  <jim@meyering.net>
87695
87696         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
87697
87698         Merge in changes from libc's misc/error.c, in preparation
87699         for the merge of gnulib's changes back into libc.
87700
87701         * lib/error.c (_): Define only if not already defined.
87702         Move definition to follow all #include directives.
87703         Include unlocked-io.h only if !_LIBC.
87704         [_LIBC]: Include <libio/libioP.h>.
87705         [USE_IN_LIBIO]: Include <libio/iolibio.h>
87706         (fflush): Tweak definition to use INTUSE.
87707         (putc): Define.
87708
87709 2002-12-05  Paul Eggert  <eggert@twinsun.com>
87710
87711         * lib/alloca.c [defined emacs]: Include "lisp.h".
87712         (xalloc_die) [defined emacs]: New macro.
87713         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
87714         [! defined emacs]: Include <xalloc.h>.
87715         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
87716         (pointer): Typedef to POINTER_TYPE *.
87717         (malloc): Remove decl; we now always use xmalloc.
87718         (alloca): Use old-style definition, since Emacs needs this.
87719         Check for arithmetic overflow when computing combined size.
87720
87721 2002-12-04  Paul Eggert  <eggert@twinsun.com>
87722
87723         Do not generate unlocked-io.h automatically, since it's easier to
87724         maintain it by hand.
87725
87726         * lib/unlocked-io.h: New file, from GNU diffutils,
87727         but with proper copyright notice and attribution.
87728         * lib/gen-uio: Remove.
87729         * lib/Makefile.am: Add copyright notice.
87730         (libfetish_a_SOURCES): Add unlocked-io.h.
87731         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
87732         (DISTCLEANFILES, io_functions): Remove macros.
87733         (EXTRA_DIST): Remove gen_uio.
87734         (unlocked-io.h): Remove rule.
87735
87736 2002-12-04  Jim Meyering  <jim@meyering.net>
87737
87738         Reflect the fact that stat.c and lstat.c are no longer generated.
87739         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
87740         (DISTCLEANFILES): Likewise.
87741         (EXTRA_DIST): Likewise.
87742         (all_local): Don't depend on stat.c or lstat.c.
87743         (stat.c, lstat.c): Remove rules.
87744         (EXTRA_DIST): Remove xstat.in.
87745
87746         * lib/xstat.in: Remove file.  Contents moved into stat.c.
87747         * lib/stat.c: New file.  Contents mostly from xstat.in.
87748         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
87749         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
87750
87751         * lib/safe-read.c: Rework so that it may serve to define safe_write,
87752         too.
87753         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
87754
87755 2002-12-03  Jim Meyering  <jim@meyering.net>
87756
87757         * lib/safe-read.c, safe-write.c: Change variable names and comments,
87758         but not semantics, to minimize the differences between these two files.
87759         (safe_read): Change comment to mention SAFE_READ_ERROR.
87760
87761         * lib/safe-read.c (IS_EINTR): Define.
87762         (safe_read): Use IS_EINTR in place of in-function cpp directives.
87763
87764 2002-12-02  Jim Meyering  <jim@meyering.net>
87765
87766         * lib/safe-read.c (EINTR): Define.
87767         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87768         (INT_MAX): Provide fallback.
87769         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
87770
87771         * lib/safe-read.h (SAFE_READ_ERROR): Define.
87772
87773 2002-12-02  Bruno Haible  <bruno@clisp.org>
87774
87775         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
87776         Define, taken from safe-read.c.
87777         (INT_MAX): Provide fallback.
87778         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
87779         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
87780
87781         * lib/safe-read.c (EINTR): Remove definition.
87782         (safe_read): Don't use EINTR if it is absent.
87783
87784 2002-12-01  Jim Meyering  <jim@meyering.net>
87785
87786         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
87787         zero.
87788         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
87789
87790 2002-11-27  Paul Eggert  <eggert@twinsun.com>
87791
87792         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
87793         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
87794         with `if (! (value < limit)) abort ();', for readability.
87795
87796 2002-11-26  Karl Berry  <karl@gnu.org>
87797
87798         * lib/strdup.c: copy from libc again, with jim's ok.
87799         * lib/.cppi-disable: re-add strdup.c
87800
87801 2002-11-25  Karl Berry  <karl@gnu.org>
87802
87803         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
87804         instead of "strtol.c".
87805
87806 2002-11-25  Karl Berry  <karl@gnu.org>
87807
87808         * config/install-sh: update from automake for variable quoting, $0 in
87809         error msgs, etc.
87810
87811         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
87812         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
87813         entry.
87814
87815 2002-11-25  Jim Meyering  <jim@meyering.net>
87816
87817         * lib/mktime.c: Sync from libc, now that it has the latest fix.
87818
87819 2002-11-24  Karl Berry  <karl@gnu.org>
87820
87821         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
87822         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
87823
87824 2002-11-24  Jim Meyering  <jim@meyering.net>
87825
87826         Update from coreutils:
87827
87828         * lib/mktime.c: Merge in changes from libc.
87829
87830         Avoid a link-time failure on some Linux systems.
87831         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
87832         (otherwise).
87833         (__mon_yday): Declare with the STATIC attribute.
87834         (__mktime_internal): Likewise.
87835         Based on a report from Greg Schafer.
87836
87837 2002-11-23  Jim Meyering  <jim@meyering.net>
87838
87839         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
87840         Use `unsigned', not `int', as type of index.
87841
87842         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
87843
87844         * lib/fsusage.c: Remove unneeded parentheses around operands of
87845         `defined'.
87846
87847 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87848
87849         * lib/quotearg.h: Allow multiple inclusion by surrounding with
87850         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
87851         so that we can be included first.
87852         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
87853         * lib/quotearg.c: Include quotearg.h immediately after config.h.
87854         No need to include stddef.h or sys/types.h any more.
87855         Surround local include files with "", not "<>".
87856         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
87857         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
87858         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
87859         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
87860         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
87861         (ISPRINT): Remove; no longer needed now that we assume C89.
87862
87863         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
87864         Preserve errno.
87865
87866         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
87867         quotearg_char): Use SIZE_MAX rather than
87868         (size_t) -1 when we are talking about "infinity".
87869
87870         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
87871
87872 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87873
87874         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
87875         hint that one should use `if (! x) abort ();' rather than `assert
87876         (x);', and anyway it's one less thing to worry about configuring.
87877         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
87878         hash_rehash, hash_insert): Use abort rather than assert.
87879
87880 2002-11-22  Bruno Haible  <bruno@clisp.org>
87881
87882         * lib/safe-read.h: Assume C89. Add comments.
87883         (safe_read): Change return type to size_t.
87884         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
87885         byte counts > SSIZE_MAX correctly.
87886         * lib/safe-write.h: New file.
87887         * lib/safe-write.c: New file.
87888         * lib/full-read.h: New file.
87889         * lib/full-read.c: New file.
87890         * lib/full-write.h: Assume C89. Add comments.
87891         * lib/full-write.c: Include safe-write.h.
87892         (full_write): Rewritten to use safe_write.
87893         Suggested by Jim Meyering and Paul Eggert.
87894
87895 2002-11-21  Jim Meyering  <jim@meyering.net>
87896
87897         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
87898
87899         Merge in changes from the coreutils.
87900
87901         2002-09-25  Paul Eggert  <eggert@twinsun.com>
87902         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
87903         <stdint.h>.
87904         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
87905         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
87906         int.  Work more efficiently if X is the same width as uintmax_t.
87907         Do not compare X to -1, to avoid bogus compiler warning.
87908         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
87909         Don't assume that f_frsize and f_bsize are the same type.
87910
87911         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
87912         warning on FreeBSD.
87913
87914         * lib/makepath.c (make_path): Restore umask *before* creating the final
87915         component.
87916         (make_path): Minor reformatting.
87917
87918         * lib/xmalloc.c: Adjust to work with new autoconf macros,
87919         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
87920         HAVE_MALLOC/HAVE_REALLOC.
87921
87922         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
87923         dummy ones.  At least on GNU/Linux systems, `auto' means something
87924         else.
87925         From Michael Stone.
87926
87927 2002-11-21  Bruno Haible  <bruno@clisp.org>
87928
87929         Remove case insensitive option matching.
87930         * lib/argmatch.h (argcasematch): Remove declaration.
87931         (ARGCASEMATCH): Remove macro.
87932         (__xargmatch_internal): Remove case_sensitive argument.
87933         (XARGMATCH): Update.
87934         (XARGCASEMATCH): Remove macro.
87935         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
87936         case_sensitive argument.
87937         (argcasematch): Remove function.
87938         (__xargmatch_internal): Remove case_sensitive argument.
87939         (main): Use XARGMATCH instead of XARGCASEMATCH.
87940
87941         * lib/xmalloc.c: Change compile-time error message. Add comment about
87942         required autoconf version.
87943
87944 2002-11-20  Paul Eggert  <eggert@twinsun.com>
87945
87946         Merge argmatch cleanups from Bison.  Assume C89.
87947
87948         * lib/argmatch.c: Include config.h here, not in argmatch.h.
87949         Include stdlib.h, for EXIT_FAILURE.
87950         Always include <string.h>, since we assume C89.
87951         (EXIT_FAILURE): Remove pre-C89 bug workaround.
87952         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
87953         Include <stddef.h> instead, since it's all we need for size_t.
87954         (PARAMS): Remove.  All uses removed.
87955         (ARRAY_CARDINALITY): Do not bother to #undef.
87956         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
87957         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87958         Remove unnecessary parentheses.
87959         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87960         Insert necessary parentheses.
87961         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
87962         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
87963
87964 2002-11-19  Bruno Haible  <bruno@clisp.org>
87965
87966         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
87967         * lib/mbswidth.h: Include <stddef.h>, for size_t.
87968
87969         * lib/mbswidth.h (PARAMS): Remove macro.
87970         (mbswidth, mbsnwidth): Use ANSI C function declarations.
87971         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
87972
87973         * lib/gcd.h (PARAMS): Remove macro.
87974         (gcd): Use ANSI C function declarations.
87975         * lib/gcd.c (gcd): Likewise.
87976
87977 2002-11-15  Bruno Haible  <bruno@clisp.org>
87978
87979         * lib/strcspn.c: Include <stddef.h>.
87980         (strcspn): Use ANSI C function declaration. Change return type to
87981         size_t. Use NULL.
87982         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
87983         (strpbrk): Use NULL.
87984         * lib/strpbrk.h (PARAMS): Remove macro.
87985         (strpbrk): Use ANSI C function declaration.
87986         * lib/strstr.c: Don't include <sys/types.h>.
87987         * lib/strstr.h (PARAMS): Remove macro.
87988         (strstr): Use ANSI C function declarations.
87989
87990 2002-11-14  Karl Berry  <karl@gnu.org>
87991
87992         * config/mkinstalldirs: `do' on separate line, instead of
87993         `for var; do'.
87994
87995 2002-11-06  Bruno Haible  <bruno@clisp.org>
87996
87997         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
87998         * lib/gcd.c (gcd): Likewise.
87999
88000 2002-11-05  Bruno Haible  <bruno@clisp.org>
88001
88002         * lib/gcd.h: New file, from gettext-0.11.5.
88003         * lib/gcd.c: New file, from gettext-0.11.5.
88004
88005 2002-11-05  Bruno Haible  <bruno@clisp.org>
88006
88007         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88008         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88009         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88010         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88011
88012         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
88013         <libintl.h>.
88014         * lib/makepath.c: Include gettext.h instead of <locale.h> and
88015         <libintl.h>.
88016
88017         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
88018         * lib/human.c: Include gettext.h instead of <libintl.h>.
88019         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
88020         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
88021         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
88022         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
88023         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
88024         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
88025         (textdomain): Remove definition.
88026         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
88027
88028         * lib/long-options.c: Remove include of <libintl.h> and definition of
88029         _.
88030         * lib/same.c: Remove include of <libintl.h> and definition of _.
88031
88032 2002-11-04  Owen Taylor  <otaylor@redhat.com>
88033
88034         * lib/config.charset: A few additions for Solaris.
88035
88036 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88037
88038         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
88039         * lib/localcharset.c (locale_charset): Declare as extern "C".
88040
88041 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88042
88043         * lib/config.charset: msdos in uk_UA uses CP1125.
88044
88045 2002-11-04  Bruno Haible  <bruno@clisp.org>
88046
88047         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
88048         * lib/strcase.h: New file, from GNU gettext-0.11.5.
88049         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
88050         * lib/strstr.h: New file, from GNU gettext-0.11.5.
88051         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
88052
88053 2002-11-04  Bruno Haible  <bruno@clisp.org>
88054
88055         * lib/localcharset.c (locale_charset): Don't return an empty string.
88056
88057 2002-11-04  Bruno Haible  <bruno@clisp.org>
88058
88059         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
88060         aliases.
88061
88062 2002-11-04  Bruno Haible  <bruno@clisp.org>
88063
88064         * lib/config.charset: Update for newest glibc. Add canonical names
88065         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
88066
88067 2002-11-04  Bruno Haible  <bruno@clisp.org>
88068
88069         * lib/config.charset: Add support for NetBSD.
88070
88071 2002-11-04  Bruno Haible  <bruno@clisp.org>
88072
88073         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
88074
88075 2002-11-01  Bruno Haible  <bruno@clisp.org>
88076
88077         * configure.in: Add AC_CONFIG_AUX_DIR call.
88078         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
88079         test/Makefile.
88080         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
88081
88082 2002-09-28  Karl Berry  <karl@gnu.org>
88083
88084         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
88085         installed automake until the next release, since changes have been
88086         made.
88087
88088 2002-09-25  Karl Berry  <karl@gnu.org>
88089
88090         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
88091         * lib/getopt*: copy from libc/posix.
88092         * lib/gettext.h: copy from gettext.
88093         * lib/.cppi-disable: add strdup.c, gettext.h.
88094
88095 2002-09-25  Karl Berry  <karl@gnu.org>
88096
88097         * config/srclist.txt: enable gettext.h check.
88098         * config/config.{guess,sub}: update from prep.
88099         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
88100                 from automake 1.6.3.
88101         See srclist*.
88102
88103 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
88104
88105         * regex.c (PATFETCH): Remove the translating fetch.
88106         (PATFETCH_RAW): Rename to PATFETCH.
88107         (set_image_of_range): New fun.
88108         (SET_RANGE_TABLE_WORK_AREA): Use it.
88109         (regex_compile): Don't translate the pattern chars so eagerly.
88110         Only do it when inserting an `exactn' bytecode or when handling
88111         a char-range.
88112         (mutually_exclusive_p): Avoid empty statement.
88113
88114 2002-07-06  Jim Meyering  <meyering@lucent.com>
88115
88116         * m4/README: Don't mention Makefile.am.in.
88117         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
88118
88119 2002-07-01  Jim Meyering  <meyering@lucent.com>
88120
88121         * lib/c-stack.c: Include sys/time.h.
88122         From Volker Borchert.
88123
88124 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88125
88126         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
88127
88128 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88129
88130         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
88131         New macro.  Use it uniformly instead of
88132         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
88133         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
88134         reported by Vin Shelton.
88135
88136 2002-06-22  Paul Eggert  <eggert@twinsun.com>
88137
88138         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
88139         Do not assume SA_SIGINFO behavior.
88140         Bug reported by Jim Meyering on NetBSD 1.5.2.
88141
88142 2002-06-22  Jim Meyering  <meyering@lucent.com>
88143
88144         * m4/c-stack.m4: New file, from diffutils-2.8.2.
88145         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
88146
88147         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
88148         now that configure.ac uses AC_GNU_SOURCE.
88149         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
88150         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
88151
88152         Update to latest tools.  Suggestions from Paul Eggert.
88153         * m4/stdbool.m4: New file, from diffutils-2.8.2.
88154         * m4/gnu-source.m4: Update from diffutils-2.8.2.
88155         * m4/fnmatch.m4: Likewise.
88156         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
88157         to AC_HEADER_STDBOOL
88158
88159 2002-06-22  Jim Meyering  <meyering@lucent.com>
88160
88161         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
88162         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
88163
88164 2002-06-22  Jim Meyering  <meyering@lucent.com>
88165
88166         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
88167
88168         * lib/exitfail.c, exitfail.h: Likewise.
88169         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
88170
88171         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
88172         of fnmatch.h.
88173         (EXTRA_DIST): Add fnmatch_loop.c.
88174         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
88175
88176         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
88177         * lib/fnmatch.c: Update from diffutils-2.8.2.
88178         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
88179         * lib/fnmatch.h: Remove file.
88180
88181 2002-06-21  Jim Meyering  <meyering@lucent.com>
88182
88183         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
88184         * m4/mbrtowc.m4: Likewise.
88185
88186         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
88187         * m4/mbswidth.m4: Reflect name change:
88188         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
88189         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88190
88191         * m4/lib-link.m4: Update from gettext-0.11.2.
88192         * m4/gettext.m4: Likewise.
88193
88194         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
88195         From Alfred M. Szmidt.
88196
88197 2002-06-18  Paul Eggert  <eggert@twinsun.com>
88198
88199         * lib/file-type.h: Report an error if neither S_ISREG nor
88200         S_IFREG is defined, instead of using a test specific to glibc
88201         2.2.  This should be safe, since POSIX requires S_ISREG and
88202         Unix Version 7 had S_IFREG.  We don't need to check for
88203         <sys/types.h> since we don't use any symbols that it defines.
88204
88205 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
88206
88207         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
88208         $@-t, so that each temporary file name is unique and valid in the first
88209         8 characters, for operation under DOS.
88210
88211 2002-06-15  Paul Eggert  <eggert@twinsun.com>
88212
88213         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
88214
88215 2002-06-15  Jim Meyering  <meyering@lucent.com>
88216
88217         Work even with DJGPP 2.03, which lacks support for symlinks.
88218         From Richard Dawe.
88219         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
88220         is defined.
88221         * lib/lchown.c (S_ISLNK): Likewise.
88222
88223 2002-06-15  Jim Meyering  <meyering@lucent.com>
88224
88225         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
88226         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
88227         have been included before this file.
88228
88229 2002-06-14  Jim Meyering  <meyering@lucent.com>
88230
88231         * lib/file-type.h: Use the version from diffutils-2.8.2.
88232         * lib/file-type.c: Likewise.
88233
88234 2002-06-07  Jim Meyering  <meyering@lucent.com>
88235
88236         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
88237         They're needed at least for NetBSD 1.5.2.
88238         ($statxfs_includes): Include those same headers.
88239         ($statxfs_includes): Include sys/vfs.h if available.
88240         ($statxfs_includes): Likewise for sys/statvfs.h.
88241         Check for the following members in both structs statfs and statvfs:
88242         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
88243
88244 2002-06-01  Jim Meyering  <meyering@lucent.com>
88245
88246         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
88247         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
88248
88249 2002-05-28  Jim Meyering  <meyering@lucent.com>
88250
88251         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
88252         Reported by Volker Borchert.
88253
88254 2002-05-27  Jim Meyering  <meyering@lucent.com>
88255
88256         Fix a problem seen only on nonconforming systems whereby ls.c's
88257         use of localtime, and then of gettimeofday would cause trouble:
88258         the localtime call used to initialize rpl_gettimeofday's save
88259         mechanism would clobber ls's current local time information so
88260         that in any long listing the first file would always be listed
88261         with date 1970-01-01.  Analysis by Volker Borchert.
88262
88263         * lib/gettimeofday.c (localtime): Undefine.
88264         (rpl_localtime): New function.
88265
88266 2002-05-27  Jim Meyering  <meyering@lucent.com>
88267
88268         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
88269         localtime.
88270
88271         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
88272         use the replacement function; it wouldn't resolve at link time.
88273         Reported by Volker Borchert.
88274
88275 2002-05-22  Jim Meyering  <meyering@lucent.com>
88276
88277         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
88278         file-type.h.
88279         * lib/file-type.h: New file.
88280         * lib/file-type.c (file_type): New file/function.  Extracted from
88281         diffutils.
88282
88283 2002-04-30  Jim Meyering  <meyering@lucent.com>
88284
88285         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
88286
88287 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88288
88289         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
88290
88291 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88292
88293         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
88294         Do not check for alloca.h (no longer used) or stdbool.h (was never
88295         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
88296
88297 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88298
88299         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
88300
88301 2002-04-29  Jim Meyering  <meyering@lucent.com>
88302
88303         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
88304         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
88305         Use AC_FUNC_STRNLEN here instead.
88306
88307         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
88308         With autoconf-2.53a, it's part of AC_PROG_CC.
88309
88310 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88311
88312         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
88313         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
88314
88315 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88316
88317         * lib/sig2str.h, lib/sig2str.c: New files.
88318         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
88319
88320 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88321
88322         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
88323         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
88324         of 127, since 64 is the largest conceivable number for ancient
88325         nonstandard hosts.
88326         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
88327
88328 2002-04-28  Jim Meyering  <meyering@lucent.com>
88329
88330         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
88331
88332 2002-04-24  Jim Meyering  <meyering@lucent.com>
88333
88334         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
88335         (jm_PREREQ): Use it.
88336
88337         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
88338         mach/mach.h fcntl.h.
88339         Check for this function: setlocale.
88340
88341 2002-04-24  Jim Meyering  <meyering@lucent.com>
88342
88343         * lib/gettext.h: New file, from Gettext.
88344         * lib/Makefile.am (INCLUDES): Remove -I../intl.
88345         (libfetish_a_SOURCES): Add gettext.h.
88346
88347 2002-04-16  Jim Meyering  <meyering@lucent.com>
88348
88349         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
88350         ut_pid, ut_id, ut_exit.
88351
88352 2002-04-16  Jim Meyering  <meyering@lucent.com>
88353
88354         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
88355         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
88356         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
88357
88358 2002-04-12  Jim Meyering  <meyering@lucent.com>
88359
88360         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
88361         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
88362         existence of the getmntinfo function.  Needed for Darwin 5.3.
88363
88364         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
88365         This is necessary at least on Darwin 5.3.
88366
88367         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
88368         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
88369         strnlen.o in the library, and that makes some versions of ranlib
88370         object.
88371
88372 2002-04-12  Jim Meyering  <meyering@lucent.com>
88373
88374         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
88375
88376 2002-04-09  Jim Meyering  <meyering@lucent.com>
88377
88378         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
88379         to be more precise.  Rather than saying we're checking whether the
88380         function `works', say what we're testing.
88381         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
88382         Reported by Bruno Haible.
88383
88384 2002-03-10  Jim Meyering  <meyering@lucent.com>
88385
88386         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
88387         Suggestion from Santiago Vila.
88388
88389 2002-03-08  Jim Meyering  <meyering@lucent.com>
88390
88391         * lib/rename.c: Mention that this wrapper is needed also on
88392         mips-dec-ultrix4.4 systems.
88393
88394 2002-03-02  Jim Meyering  <meyering@lucent.com>
88395
88396         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
88397         not HAVE_CLOCK_SETTIME.
88398
88399 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88400
88401         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
88402         Check for clock_settime.
88403
88404 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88405
88406         * lib/nanosleep.h: Rename to....
88407         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
88408
88409         * lib/gettime.c: New file.
88410         * lib/settime.c: New file.
88411         * lib/stime.c: Remove.
88412
88413         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
88414         timespec.h.  Remove nanosleep.h.
88415
88416 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88417
88418         * m4/acl.m4: New file.
88419         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
88420         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
88421
88422 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88423
88424         * lib/acl.c, lib/acl.h: New files.
88425         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
88426
88427 2002-02-24  Jim Meyering  <meyering@lucent.com>
88428
88429         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
88430         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
88431         cause trouble.  Reported by Nelson Beebe.
88432
88433 2002-02-23  Paul Eggert  <eggert@twinsun.com>
88434
88435         * lib/path-concat.c (xpath_concat): Reorder code to pacify
88436         compilers that don't know that xalloc_die never returns.
88437
88438 2002-02-20  Jim Meyering  <meyering@lucent.com>
88439
88440         * lib/getdate.c: Regenerate using bison-1.33.
88441
88442 2002-02-17  Jim Meyering  <meyering@lucent.com>
88443
88444         * config/config.guess (main): Don't use `head -1'; it's no longer
88445         portable. Use `sed 1q' instead.
88446
88447 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
88448
88449         * m4/codeset.m4: Upgrade to gettext-0.11.
88450         * m4/gettext.m4: Upgrade to gettext-0.11.
88451         * m4/glibc21.m4: Upgrade to gettext-0.11.
88452         * m4/iconv.m4: Upgrade to gettext-0.11.
88453         * m4/isc-posix.m4: Upgrade to gettext-0.11.
88454         * m4/lcmessage.m4: Upgrade to gettext-0.11.
88455         * m4/lib-ld.m4: New file, from gettext-0.11.
88456         * m4/lib-link.m4: New file, from gettext-0.11.
88457         * m4/lib-prefix.m4: New file, from gettext-0.11.
88458         * m4/progtest.m4: Upgrade to gettext-0.11.
88459
88460 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88461
88462         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
88463         (jm_PREREQ): Use it.
88464
88465 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88466
88467         * lib/posixver.c, lib/posixver.h: New files.
88468         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88469
88470 2002-02-02  Paul Eggert  <eggert@twinsun.com>
88471             Bruno Haible  <bruno@clisp.org>
88472
88473         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
88474         (fwrite_success_callback): New declaration.
88475         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
88476         print_unicode_char. Call failure callback instead of error.
88477         (fwrite_success_callback): New function.
88478         (exit_failure_callback): New function.
88479         (fallback_failure_callback): New function.
88480         (print_unicode_char): Call unicode_to_mb.
88481
88482 2002-01-26  Jim Meyering  <meyering@lucent.com>
88483
88484         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
88485         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
88486
88487 2002-01-26  Jim Meyering  <meyering@lucent.com>
88488
88489         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
88490
88491 2002-01-22  Paul Eggert  <eggert@twinsun.com>
88492
88493         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
88494
88495 2002-01-22  Jim Meyering  <meyering@lucent.com>
88496
88497         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
88498         Otherwise, some versions of automake would omit the rule that makes
88499         Makefile from Makefile.in.
88500
88501 2002-01-21  Paul Eggert  <eggert@twinsun.com>
88502
88503         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
88504         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88505         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
88506         (memcoll): Set errno to zero if there is no error.
88507
88508         * lib/quotearg.c (quotearg_buffer_restyled):
88509         Fix bug with quoting buffers containing NUL when backslashing escapes.
88510         This bug was exposed by the other changes in this patch.
88511         (quotearg_n_options): New arg ARGSIZE.
88512         All callers changed.
88513         (quoting_options_from_style): New function.
88514         (quotearg_n_style): Use it.
88515         (quotearg_n_style_mem): New function.
88516
88517         * lib/quotearg.h (quotearg_n_style_mem): New function.
88518
88519 2002-01-19  Jim Meyering  <meyering@lucent.com>
88520
88521         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
88522         Remove useless quotes: DF_PROG="df".
88523         * m4/strnlen.m4: New file.
88524
88525 2002-01-16  Paul Eggert  <eggert@twinsun.com>
88526
88527         * lib/backupfile.c (ISDIGIT): Comment fix.
88528         * lib/getdate.y (ISDIGIT): Likewise.
88529         * lib/posixtm.c (ISDIGIT, year): Likewise.
88530         * lib/strverscmp.c (ISDIGIT): Likewise.
88531         * lib/userspec.c (ISDIGIT): Likewise.
88532
88533 2002-01-16  Jim Meyering  <meyering@lucent.com>
88534
88535         * lib/getdate.y: Add three semicolons, each just before a closing
88536         brace. Bison (as of version 1.31) no longer papers over that mistake.
88537
88538 2002-01-05  Jim Meyering  <meyering@lucent.com>
88539
88540         * lib/version-etc.c (version_etc_copyright): Update copyright year.
88541
88542 2001-12-19  Paul Eggert  <eggert@twinsun.com>
88543
88544         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
88545         not silently exit merely because the output buffer happens to
88546         have nothing pending.
88547
88548 2001-12-18  Paul Eggert  <eggert@twinsun.com>
88549
88550         See the big note in ../ChangeLog.
88551         * lib/human.c (suffixes): Prefer K to k for 1024.
88552         (generate_suffix_backwards): New function.
88553         (human_readable_inexact): Use it.
88554         * lib/xstrtol.c (__xstrtol): If there is no number but there
88555         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
88556         Accept 'K' as well as 'k'.
88557
88558 2001-12-15  Jim Meyering  <meyering@lucent.com>
88559
88560         * lib/regex.h (__restrict_arr): Update from libc.
88561
88562         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
88563         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
88564         (STREQ): Define.
88565
88566 2001-12-14  Jim Meyering  <meyering@lucent.com>
88567
88568         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
88569         Suggestion from Bruno Haible.
88570
88571 2001-12-10  Jim Meyering  <meyering@lucent.com>
88572
88573         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
88574         xrealloc, Instead, include "xalloc.h".
88575         (initbuffer): Don't cast xmalloc return value to char*.
88576         (readline): Reword comment.
88577         Don't cast xrealloc return value to char*
88578         Return NULL, not 0.
88579
88580 2001-12-09  Jim Meyering  <meyering@lucent.com>
88581
88582         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
88583         about `signed and unsigned type in conditional expression'.
88584         * lib/posixtm.c (posix_time_parse): Likewise.
88585
88586         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
88587
88588         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
88589         to avoid a pedantic warning.
88590
88591         * lib/getstr.c: Don't include assert.h.
88592         (getstr): Remove warning-evoking assertions.
88593         Return -1 if offset parameter is out of bounds.
88594         Change the type of a local from int to size_t.
88595
88596         * lib/strftime.c (my_strftime_localtime_r): Include this function
88597         definition in the `#if ! HAVE_TM_GMTOFF' block.
88598
88599         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
88600         Include xalloc.h instead.
88601
88602 2001-12-02  Jim Meyering  <meyering@lucent.com>
88603
88604         * lib/tempname.c: Don't declare getenv, thus reverting the change of
88605         2001-11-18.  It's no longer necessary, now that stdlib.h is always
88606         included.
88607
88608         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
88609         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
88610
88611 2001-11-30  Akim Demaille  <akim@epita.fr>
88612
88613         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
88614         before being defined.
88615
88616 2001-11-27  Paul Eggert  <eggert@twinsun.com>
88617
88618         * lib/quotearg.h (quotearg_n, quotearg_n_style):
88619         First arg is int, not unsigned.
88620         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
88621         (SIZE_MAX, UINT_MAX): New macros.
88622         (quotearg_n_options): Abort if N is negative.
88623         Avoid overflow check on hosts where size_t is 64 bits and int
88624         is 32 bits, as overflow is impossible there.
88625         Fix off-by-one typo that caused unnecessary reallocation.
88626
88627 2001-11-27  Jim Meyering  <meyering@lucent.com>
88628
88629         * lib/tempname.c: Merge with version from libc.
88630         * lib/regex.c: Likewise.
88631
88632         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
88633         systems for which STDC_HEADERS is 0, it was not included, resulting in
88634         a warning about an integer-to-pointer conversion problem with getenv.
88635         Reported by Volker Borchert.
88636
88637 2001-11-26  Jim Meyering  <meyering@lucent.com>
88638
88639         * lib/gtod.h: Remove file.
88640         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
88641         * lib/gettimeofday.c: Don't include gtod.h.
88642         (GTOD_init): Remove function.
88643         (rpl_gettimeofday): Do its job here instead, rather than aborting.
88644         Suggestion from Volker Borchert.
88645
88646 2001-11-23  Jim Meyering  <meyering@lucent.com>
88647
88648         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
88649         it.
88650         * lib/hash.c (struct hash_table): Define it here instead.
88651
88652 2001-11-22  Jim Meyering  <meyering@lucent.com>
88653
88654         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
88655
88656 2001-11-20  Jim Meyering  <meyering@lucent.com>
88657
88658         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
88659         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
88660
88661 2001-11-19  Jim Meyering  <meyering@lucent.com>
88662
88663         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
88664         directory.  Use "conftestXXXXXX" as the template.
88665         Suggestion from Paul Eggert.
88666
88667         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
88668         immediately, so the test doesn't mistakenly hit the max-open-files
88669         limit.
88670
88671 2001-11-18  Paul Eggert  <eggert@twinsun.com>
88672
88673         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
88674         (TEMPORARIES): New macro.
88675         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
88676         removes an artificial limitation (e.g. HP-UX 10.20, where
88677         TMP_MAX is 17576).
88678
88679 2001-11-18  Jim Meyering  <meyering@lucent.com>
88680
88681         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
88682
88683 2001-11-18  Jim Meyering  <meyering@lucent.com>
88684
88685         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
88686         on SunOS 4.
88687
88688         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
88689         files will be created before anything else.
88690
88691 2001-11-17  Paul Eggert  <eggert@twinsun.com>
88692
88693         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
88694         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
88695
88696 2001-11-17  Jim Meyering  <meyering@lucent.com>
88697
88698         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
88699         Prompted by a report from Bob Proulx.
88700
88701         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
88702         Instead, require UTILS_FUNC_MKSTEMP.
88703
88704 2001-11-17  Jim Meyering  <meyering@lucent.com>
88705
88706         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
88707         Now, that's done as part of AC_FUNC_STRTOD.
88708
88709 2001-11-17  Jim Meyering  <meyering@lucent.com>
88710
88711         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
88712         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
88713         rather than group writable.  Patch by Juan F. Codagnone.
88714
88715         * lib/readtokens.c: Remove explicit declarations of xmalloc and
88716         xrealloc, Instead, include "xalloc.h".
88717
88718         * lib/mountlist.c: Include unlocked-io.h after all system headers.
88719         Remove explicit declarations of xmalloc, xrealloc,
88720         and xstrdup.  Instead, include "xalloc.h".
88721
88722         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
88723         unlocked-io.h.
88724         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
88725         Likewise.
88726         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
88727
88728         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
88729         Reported by Padraig Brady.
88730
88731         * lib/mkstemp.c: #undef mkstemp.
88732         Include config.h.
88733         (rpl_mkstemp): Rename from mkstemp.
88734         Protoize.
88735
88736 2001-11-16  Jim Meyering  <meyering@lucent.com>
88737
88738         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
88739         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
88740         determine the amount of total physical memory, use pstat_getstatic.
88741         HPUX-11 doesn't define _SC_PHYS_PAGES.
88742         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
88743         If sysconf couldn't be used to determine the amount of available
88744         physical memory, use both pstat_getstatic and pstat_getdynamic.
88745         Based on a patch from Bob Proulx.
88746
88747 2001-11-10  Jim Meyering  <meyering@lucent.com>
88748
88749         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
88750         (jm_PREREQ): Use it.
88751
88752 2001-11-09  Jim Meyering  <meyering@lucent.com>
88753
88754         * m4/jm-macros.m4: Require autoconf-2.52f.
88755         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
88756         Use these AC_-prefixed names, not the AM_-prefixed ones.
88757
88758         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
88759
88760 2001-11-05  Jim Meyering  <meyering@lucent.com>
88761
88762         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
88763
88764 2001-11-04  Jim Meyering  <meyering@lucent.com>
88765
88766         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
88767         $DEFS.
88768
88769 2001-11-03  Jim Meyering  <meyering@lucent.com>
88770
88771         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
88772         of AC_DEFUN.
88773
88774         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
88775         know the name of the variable in the macro definition.
88776
88777 2001-11-03  Jim Meyering  <meyering@lucent.com>
88778
88779         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
88780         in argmatch_to_argument call.
88781
88782         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
88783         argument.
88784
88785         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
88786         e.g., a fault due to an attempt to free a NULL pointer.
88787
88788 2001-11-01  Jim Meyering  <meyering@lucent.com>
88789
88790         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
88791         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
88792
88793 2001-11-01  Jim Meyering  <meyering@lucent.com>
88794
88795         * lib/dirfd.c, lib/dirfd.h: New files.
88796         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
88797
88798         * lib/hash.c (hash_print) [TESTING]: Clean up.
88799
88800 2001-10-22  Paul Eggert  <eggert@twinsun.com>
88801
88802         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
88803         to avoid a warning if -Wall.
88804
88805 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
88806
88807         * README: New file
88808         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
88809         (per RMS's instructions, this is now the canonical source)
88810         * lgpl/, gpl/: New directories.
88811
88812 2001-10-21  Paul Eggert  <eggert@twinsun.com>
88813
88814         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
88815
88816 2001-10-21  Jim Meyering  <meyering@lucent.com>
88817
88818         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
88819         this code would end up calling gettext even in packages built
88820         with --disable-nls.
88821         * lib/getopt.c (_): Likewise.
88822         * lib/regex.c (_): Likewise.
88823
88824 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88825
88826         * m4/error.m4 (jm_PREREQ_ERROR):
88827         Do not invoke AC_CHECK_FUNCS with strerror_r, as
88828         AC_FUNC_STRERROR_R does that.
88829         Check for strerror declaration.
88830
88831         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
88832         are supposed to have them these days.
88833         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
88834         Merge changes from latest Autoconf CVS.
88835         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
88836         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
88837         POSIX decided to standardize on the int flavor of strerror_r.
88838
88839 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88840
88841         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
88842         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
88843         Use strerror_r that is only a macro, even if it is not a function.
88844         (strerror): Check for HAVE_DECL_STRERROR before declaring.
88845         (private_strerror): Use prototypes, not old-style function definition.
88846         (print_errno_message): New function.
88847         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
88848         char*-flavored one.
88849         (error_tail, error, error_at_line): Use it.
88850
88851 2001-10-11  Jim Meyering  <meyering@lucent.com>
88852
88853         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
88854         and quote_n (1, ... to avoid clobbering a buffer.
88855
88856 2001-10-05  Jim Meyering  <meyering@lucent.com>
88857
88858         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
88859         hash-pjw.h.
88860         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
88861         * lib/hash-pjw.h: New file.
88862
88863 2001-09-30  Jim Meyering  <meyering@lucent.com>
88864
88865         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
88866         `struct fsstat' has the `f_fstypename' member.
88867         Use that to define FS_TYPE, which is now used to make
88868         the getfsstat link test tighter.
88869
88870 2001-09-30  Jim Meyering  <meyering@lucent.com>
88871
88872         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
88873         Include <sys/ucred.h>, for Apple Darwin.
88874         Include sys/mount.h and sys/fs_types.h only if available.
88875         (FS_TYPE): Define.
88876         (read_filesystem_list): Use FS_TYPE.
88877
88878 2001-09-29  Paul Eggert  <eggert@twinsun.com>
88879
88880         * lib/exclude.c (excluded_filename): 0 -> false, since it's
88881         a boolean context.
88882
88883 2001-09-29  Jim Meyering  <meyering@lucent.com>
88884
88885         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88886         [one-argument getmntent function]): Include stdio.h before mntent.h.
88887         SunOS 4.1.x needs it for the declaration of `FILE'.
88888         Patch by Volker Borchert.
88889
88890         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88891         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
88892         sys/fs_types.h, and make the link-test for getfsstat guard #include
88893         directives with appropriate #if HAVE_*_H tests so that we can
88894         detect getfsstat on Apple Darwin1.3.7 systems.
88895         Reported by Nelson Beebe.
88896         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
88897
88898 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88899
88900         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88901         #defines strtoimax.  Also treat the other strto* functions
88902         like strtoimax.
88903
88904         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88905         Check for strtoul and strtoumax,
88906         as those declarations are made even in the signed case.
88907         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
88908         Likewise, for strtol and strtoimax.
88909
88910 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88911
88912         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88913         #defines strtoimax.  Also treat the other strto* functions
88914         like strtoimax.
88915
88916         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
88917         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
88918         (strtoimax, strtoumax): Do not declare if already defined as a macro.
88919
88920 2001-09-26  Jim Meyering  <meyering@lucent.com>
88921
88922         Most macros in unlocked-io.h had the wrong number of arguments.
88923         * lib/gen-uio: New script.
88924         (USE_UNLOCKED_IO): Define to 1 if not already defined.
88925         * lib/unlocked-io.hin: Remove file.
88926         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
88927         rather than trying to embed it here.
88928         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
88929         Reported by Padraig Brady.
88930
88931 2001-09-25  Volker Borchert  <bt@teknon.de>
88932
88933         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
88934         `result'.
88935
88936 2001-09-24  Jim Meyering  <meyering@lucent.com>
88937
88938         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
88939
88940 2001-09-23  Jim Meyering  <meyering@lucent.com>
88941
88942         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
88943         instead of the mere test for existence of mntent.h.  The latter
88944         would get a false-positive on AIX 3.4 systems.
88945         In the outer getmntent if-block, don't die if neither of the getmntent
88946         tests succeeds.  Instead, just fall through and continue with the
88947         remaining tests.
88948
88949 2001-09-23  Jim Meyering  <meyering@lucent.com>
88950
88951         * lib/mountlist.c: Remove useless parentheses in #if directives.
88952         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
88953         the deprecated MOUNTED symbol is no longer defined in mntent.h.
88954
88955 2001-09-22  Jim Meyering  <meyering@lucent.com>
88956
88957         * m4/gettext.m4: New file.  From gettext.
88958         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
88959         * m4/progtest.m4: Likewise
88960         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
88961         * m4/glibc21.m4: Likewise.
88962
88963         * m4/libintl.m4: Remove.  No longer used.
88964
88965 2001-09-22  Jim Meyering  <meyering@lucent.com>
88966
88967         * lib/localcharset.c: Update from latest gettext.
88968         * lib/config.charset: Likewise.
88969
88970 2001-09-20  Jim Meyering  <meyering@lucent.com>
88971
88972         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
88973         strtoimax.
88974         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
88975         strtoumax.
88976
88977 2001-09-20  Jim Meyering  <meyering@lucent.com>
88978
88979         * lib/xstrtol.c (strtoimax): Guard declaration with
88980         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
88981         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
88982         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
88983         (strtoumax): Likewise, for completeness (it wasn't necessary).
88984
88985 2001-09-17  Paul Eggert  <eggert@twinsun.com>
88986
88987         * lib/strtoimax.c (HAVE_LONG_LONG):
88988         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
88989         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
88990         to work around bug in IBM C compiler.
88991
88992 2001-09-17  Jim Meyering  <meyering@lucent.com>
88993
88994         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
88995         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
88996         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
88997         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
88998         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
88999         whenever the right hand side need not be expanded by the shell.
89000
89001 2001-09-16  Paul Eggert  <eggert@twinsun.com>
89002
89003         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
89004         library.  It's not correct, as some older glibcs are buggy.
89005         fnmatch wasn't fixed until glibc 2.2.
89006
89007         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
89008         special shell magic here.
89009
89010 2001-09-16  Jim Meyering  <meyering@lucent.com>
89011
89012         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
89013         * m4/jm-macros.m4: Require it.
89014
89015 2001-09-16  Jim Meyering  <meyering@lucent.com>
89016
89017         * lib/mkdir.c: New file.
89018
89019 2001-09-15  Jim Meyering  <meyering@lucent.com>
89020
89021         * m4/jm-macros.m4: Check for help2man.
89022
89023 2001-09-11  Jim Meyering  <meyering@lucent.com>
89024
89025         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
89026         The body, by Paul Eggert, was moved here from configure.in.
89027         * m4/jm-macros.m4: Require UTILS_HOST_OS.
89028
89029 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89030
89031         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
89032         (jm_PREREQ): Use it.
89033
89034 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89035
89036         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
89037         Use ssize_t, not int, to store result of readlink.
89038         Check for ssize_t overflow as well as size_t overflow,
89039         as POSIX says the result of readlink is implementation-defined
89040         when ssize_t overflows.
89041         Remove unnecessary cast to char*.
89042         Use free+malloc instead of realloc, as the storage doesn't need
89043         to be preserved and it's clearer and can be more efficient that way.
89044         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
89045         * lib/xreadlink.h (xreadlink): Update prototype.
89046
89047 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89048
89049         * lib/xgetcwd.c: Revert some of the previous change; intead,
89050         fix the HAVE_GETCWD_NULL code to behave more like the
89051         !HAVE_GETCWD_NULL code used to.
89052
89053         Include "xalloc.h".
89054         (xgetcwd): Do not return NULL when memory is exhausted; instead,
89055         invoke xalloc_die.
89056
89057 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89058
89059         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
89060         sys/param.h, as pathmax.h includes them.
89061
89062 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89063
89064         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
89065         (jm_PREREQ_XGETCWD): New macro.
89066
89067         * m4/getcwd.m4: New file.
89068
89069 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89070
89071         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
89072         like the HAVE_GETCWD_NULL code.
89073         Include pathmax.h if not HAVE_GETCWD.
89074         Do not include xalloc.h.
89075         (INITIAL_BUFFER_SIZE): New symbol.
89076         Do not use xmalloc / xrealloc, since the caller is responsible for
89077         handling errors.  Preserve errno around `free' during failure.
89078         Do not overrun buffer when using getwd.
89079
89080 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89081
89082         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
89083         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
89084         getcwd (NULL, 0).
89085
89086 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89087
89088         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
89089         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
89090         spotted by Jim Meyering.
89091
89092 2001-09-03  Jim Meyering  <meyering@lucent.com>
89093
89094         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
89095         failure.
89096
89097 2001-09-02  Jim Meyering  <meyering@lucent.com>
89098
89099         * lib/error.c: Update from GNU libc.
89100
89101 2001-09-01  Jim Meyering  <meyering@lucent.com>
89102
89103         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
89104         Used by df.
89105
89106 2001-09-01  Jim Meyering  <meyering@lucent.com>
89107
89108         * lib/xreadlink.c: New file.
89109         * lib/xreadlink.h: New file.
89110         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
89111         xreadlink.h.
89112
89113         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
89114         doesn't conflict with sparc Solaris 7's definition in
89115         /usr/include/sys/int_types.h.
89116
89117         * lib/exclude.c: Use `""', not `<>' to #include non-system header
89118         files.
89119         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
89120         and strncasecmp as r-values.  Unixware didn't have declarations.
89121
89122 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89123
89124         * lib/xstrtol.h: Add copyright notice.
89125         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
89126         LONGINT_INVALID_SUFFIX_CHAR.
89127
89128 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89129
89130         * lib/xstrtol.c (strtoimax): New decl.
89131
89132 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89133
89134         * lib/xgetcwd.c: Don't include pathmax.h.
89135         Include stdlib.h and unistd.h if available.
89136         Include xalloc.h.
89137         (xmalloc, xstrdup, free): Remove decls.
89138         (xgetcwd): Don't assume sizes fit in unsigned.
89139         Check for overflow when computing sizes.
89140         Simplify reallocation code.
89141
89142 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89143
89144         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
89145         a directory's st_size can have an arbitrary value, so the old
89146         usage could waste an arbitrary amount of memory.  All uses
89147         changed.
89148         * lib/savedir.h: Update prototype.
89149
89150 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89151
89152         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
89153
89154         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
89155         old strtoimax.c.
89156
89157         Also, make the following further changes to make this file's
89158         configuration more similar to that of strtol.c:
89159         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
89160         (strtoumax, uintmax_t, strtoull, strtol): Remove.
89161         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
89162         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
89163         changed to signed values.
89164
89165         And make the following changes as well:
89166         Fix copyright notice, as 1999 was missing.
89167         (verify): New macro.
89168         (strtoimax): Check sizes at compile-time, not run-time.
89169         Prefer strtol to strtoll if both work.
89170         (main): Remove; it was not that useful and was a pain to maintain.
89171
89172         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
89173
89174 2001-08-31  Jim Meyering  <meyering@lucent.com>
89175
89176         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
89177         Use an initial, malloc'd, buffer of length 128 rather than
89178         a statically allocated one of length 1024.
89179
89180 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89181
89182         Simplify code, partly by assuming autoconf 2.52 semantics.
89183
89184         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
89185
89186         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
89187         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
89188         All uses removed.
89189         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
89190         Move AC_REQUIRE to next-to-top level, to avoid confusion.
89191         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
89192         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
89193         jm_AC_HEADER_INTTYPES_H.
89194         * m4/jm-macros.m4 (jm_MACROS): Likewise.
89195
89196         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
89197
89198         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89199         Quote first arg of AC_DEFUN.
89200         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
89201         since they are needed to parse the include file even if we need
89202         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
89203         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
89204         but with opposite signedness.
89205
89206 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89207
89208         Merge 'exclude' changes from tar 1.13.22.
89209         This fixes one or two unlikely storage allocation overflow bugs,
89210         but doesn't change user-visible behavior otherwise.
89211
89212 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89213
89214         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
89215         (jm_PREREQ_EXCLUDE): New macro.
89216
89217 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89218
89219         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
89220         tm to be declared.
89221
89222 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89223
89224         * lib/hash.c: Remove '2001' from copyright notice.
89225
89226 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89227
89228         * lib/full-write.h: New file.
89229         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
89230         * lib/full-write.c: Correct credits, as cccp.c no longer
89231         exists and anyway it was so heavily changed from the old cccp
89232         code as to be unrecognizable.  Include full-write.h.
89233         (full_write): Return size_t, with short writes meaning failure.
89234         All callers changed.  This fixes a bug with large buffers
89235         on 64-bit hosts.
89236         * lib/utime.c: Include full-write.h.
89237
89238 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89239
89240         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
89241         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
89242         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
89243         Include if available.
89244         (<xalloc.h>): Include
89245         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
89246         (verify): New macro.  Use it to verify that EXCLUDE macros do not
89247         collide with FNM macros.
89248         (struct patopts): New struct.
89249         (struct exclude): Use it, as exclude patterns now come with options.
89250         (new_exclude): Support above changes.
89251         (new_exclude, add_exclude_file):
89252         Initial size must now be a power of two to simplify overflow checking.
89253         (free_exclude, fnmatch_no_wildcards): New function.
89254         (excluded_filename): No longer requires options arg, as the options
89255         are determined by add_exclude.  Now returns bool, not int.
89256         (excluded_filename, add_exclude):
89257         Add support for the fancy new exclusion options.
89258         (add_exclude, add_exclude_file): Now takes int options arg.
89259         Check for arithmetic overflow when computing sizes.
89260         (add_exclude_file): xrealloc might modify errno, so don't
89261         realloc until after errno might be used.
89262
89263         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
89264         New macros.
89265         (free_exclude): New decl.
89266         (add_exclude, add_exclude_file): Now takes int options arg.
89267         (excluded_filename): No longer requires options arg, as the options
89268         are determined by add_exclude.  Now returns bool, not int.
89269
89270 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89271
89272         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
89273
89274 2001-08-27  Jim Meyering  <meyering@lucent.com>
89275
89276         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
89277
89278         * lib/version-etc.c (N_): Remove definition.
89279         Revert most of last change.
89280         Instead, simply don't mark the `Copyright...' string for translation.
89281         Based on advice from Paul Eggert.
89282
89283         * lib/strtoxmax.c: Tweak comment.
89284
89285 2001-08-26  Jim Meyering  <meyering@lucent.com>
89286
89287         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
89288
89289         * m4/xstrtoimax.m4: New file.
89290         * m4/xstrtoumax.m4: Add comments explaining why we
89291         AC_REPLACE_FUNCS(strtol).
89292
89293 2001-08-26  Jim Meyering  <meyering@lucent.com>
89294
89295         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
89296         of copyright with `%s' so translators don't get an untranslated
89297         message in 2002.
89298         (COPYRIGHT_YEAR): Define.
89299         (version_etc): Use fprintf rather than fputs.
89300         Suggestion from Ulrich Drepper.
89301
89302         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
89303
89304         * lib/strtoll.c: New file, from GNU libc.
89305         * lib/xstrtoimax.c: New file.
89306
89307         * lib/xstrtol.h: Add xstrtoimax.
89308         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
89309         * lib/strtoimax.c: New file.  Likewise, but first define
89310         STRTOUXMAX_SIGNED.
89311
89312         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
89313         ...
89314         * lib/strtoxmax.c: ... then renamed to this.
89315
89316 2001-08-18  Paul Eggert  <eggert@twinsun.com>
89317
89318         * m4/inttypes.m4: Add AC_PREREQ(2.13).
89319         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
89320         (jm_AC_TYPE_INTMAX_T): New macro.
89321         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
89322
89323         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
89324
89325         * m4/longlong.m4: Renamed from ulonglong.m4.
89326         * m4/inttypes.m4: Renamed from inttypes_h.m4.
89327         * m4/uintmax_t.m4: Removed.
89328
89329 2001-08-13  Paul Eggert  <eggert@twinsun.com>
89330
89331         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
89332         Port to Solaris 8, where 'sed' requires a space after the 'r'
89333         command, and where sh dislikes "$/".  Clean up the spacing a bit.
89334         Redirect output to $tmp just once.
89335
89336 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
89337
89338         * lib/addext.c (<errno.h>): Include.
89339         (errno): Declare if not defined.
89340         (addext): Work correctly when pathconf returns -1 and leaves
89341         errno alone because there is no limit.  Also, work even if
89342         pathconf returns a value greater than SIZE_MAX.
89343
89344 2001-08-12  Jim Meyering  <meyering@lucent.com>
89345
89346         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
89347         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
89348         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
89349         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
89350         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
89351         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
89352         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
89353         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
89354         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
89355         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
89356         utime.m4, utimes.m4, xstrtoumax.m4:
89357         Quote the first argument in each use of AC_DEFUN.
89358
89359 2001-08-12  Jim Meyering  <meyering@lucent.com>
89360
89361         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
89362         Simply `return getcwd (NULL, 0);'.
89363         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
89364         Use 1300 as initial value for length, not PATH_MAX.
89365
89366         * lib/pathmax.h: Clean up cpp syntax.
89367
89368 2001-08-12  Jim Meyering  <meyering@lucent.com>
89369
89370         * lib/gettimeofday.c: New file.
89371         * lib/gtod.h: New file.
89372         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
89373
89374 2001-08-05  Jim Meyering  <meyering@lucent.com>
89375
89376         * m4/jm-macros.m4: Require autoconf-2.52.
89377
89378 2001-08-04  Jim Meyering  <meyering@lucent.com>
89379
89380         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
89381         stmt, to get in sync with glibc.
89382
89383 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89384
89385         The following changes are from gettext 0.10.39 as maintained by
89386         Bruno Haible.
89387
89388         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
89389         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
89390         with inverted sense.  All uses changed.
89391
89392         * lib/mbswidth.c: Don't include <limits.h>.
89393         Include <stdlib.h> and <string.h> unconditionally.
89394         (iswcntrl, mbsinit, ISCNTRL): New macros.
89395         (mbsnwidth): Use K&R style function declarations.
89396         Don't bother checking for MB_LEN_MAX == 1, since the compiler
89397         can optimize it when MB_CUR_MAX == 1.
89398         The width of control characters is zero, not 1.
89399
89400 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89401
89402         The following changes are from gettext 0.10.39 as maintained by
89403         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
89404
89405         * m4/codeset.m4: Upgrade to serial AM1.
89406         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
89407         all uses changed.  Quote first arg of AC_DEFUN.
89408         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
89409
89410         * m4/iconv.m4: Upgrade to serial AM2.
89411         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
89412         Add --with-libconv-prefix.
89413         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
89414         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
89415         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
89416         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
89417         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
89418
89419         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
89420         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
89421         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
89422         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
89423         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
89424         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
89425         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
89426         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
89427         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
89428
89429         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
89430         string.h any more.
89431
89432         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
89433         not the default value.
89434
89435         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
89436         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
89437         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
89438         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
89439         Also check for iswcntrl, used for wcwidth fallback.
89440         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
89441         to Autoconf 2.13.
89442
89443 2001-08-03  Jim Meyering  <meyering@lucent.com>
89444
89445         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
89446         as it was in the original.  Reported by Paul Eggert.
89447
89448 2001-07-16  Jim Meyering  <meyering@lucent.com>
89449
89450         * m4/gettimeofday.m4: New file.
89451         Prompted by a report from Bernhard Baehr.
89452
89453 2001-07-15  Jim Meyering  <meyering@lucent.com>
89454
89455         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
89456         stuff. Now it's in ../Makefile.cfg.
89457
89458 2001-07-15  Jim Meyering  <meyering@lucent.com>
89459
89460         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
89461         (BUILT_SOURCES): Add unlocked-io.h.
89462         (io_functions): Define.
89463         (unlocked-io.h): New rule.
89464         (DISTCLEANFILES): Add unlocked-io.h.
89465         (all-local): Depend on unlocked-io.h, to ensure it is created.
89466
89467         * lib/unlocked-io.hin: New file
89468
89469         * lib/regex.c: Update from glibc.
89470
89471 2001-07-05  Jim Meyering  <meyering@lucent.com>
89472
89473         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
89474         recommendation.
89475         (libfetish_a_SOURCES): Put all .h files here instead.
89476         Remove a thus-exposed (better checks in automake) duplicate and
89477         two unnecessary .h files.
89478
89479 2001-07-04  Jim Meyering  <meyering@lucent.com>
89480
89481         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
89482         that generates jm-glibc-io.m4 so that it doesn't trigger any make
89483         distcheck failure.
89484
89485 2001-07-02  Jim Meyering  <meyering@lucent.com>
89486
89487         The following changes were prompted by suggestions from Bruno Haible.
89488
89489         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
89490         is now generated.
89491         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
89492         definition of EXTRA_DIST.
89493         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
89494         ensure that the generated file is created/updated whenever the list
89495         of $(unlocked_functions) is changed.
89496         (jm-glibc-io.m4): New rule.
89497         (unlocked-io.h): New rule -- currently unused.
89498
89499 2001-06-24  Jim Meyering  <meyering@lucent.com>
89500
89501         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
89502         unmatched right bracket, rather than kludging it with an extra,
89503         falsely-matching quote in a comment.  Patch by Akim Demaille.
89504
89505 2001-06-11  Jim Meyering  <meyering@lucent.com>
89506
89507         * lib/regex.c: Update from GNU libc.
89508
89509 2001-05-27  Jim Meyering  <meyering@lucent.com>
89510
89511         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
89512         Check for ut_type in struct utmp.
89513
89514 2001-05-27  Jim Meyering  <meyering@lucent.com>
89515
89516         * lib/readutmp.h (UT_TYPE): Define.
89517
89518 2001-05-24  Jim Meyering  <meyering@lucent.com>
89519
89520         * lib/argmatch.c: Include "quote.h".
89521         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
89522         quote function.  Reported by Göran Uddeborg.
89523
89524 2001-05-22  Jim Meyering  <meyering@lucent.com>
89525
89526         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
89527         now that we use the package-supplied version unconditionally.
89528         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
89529
89530 2001-05-21  Jim Meyering  <meyering@lucent.com>
89531
89532         * m4/regex.m4: Change a couple backticks to single quotes to avoid
89533         shell syntax errors.
89534
89535 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89536
89537         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
89538
89539 2001-05-20  Paul Eggert  <eggert@twinsun.com>
89540
89541         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
89542         Don't bother to check library strftime, since
89543         we'll be using our own my_strftime function anyway.
89544         Define my_strftime instead of strftime.
89545
89546 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
89547
89548         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
89549         which is not yet declared.
89550
89551 2001-05-15  Jim Meyering  <meyering@lucent.com>
89552
89553         * m4/regex.m4: Use proper quoting so brackets appear in the test
89554         program.
89555         Reported by, and with help from, Bruno Haible.
89556
89557 2001-05-13  Jim Meyering  <meyering@lucent.com>
89558
89559         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
89560         undefined.
89561
89562 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89563
89564         dirname code cleanup.  base_name now behaves more compatibly
89565         with POSIX basename when given file names that have trailing
89566         slashes, and similarly for dir_name.  Add new primitives
89567         base_len and dir_len.  Put the directory-name-related decls
89568         into dirname.h.
89569
89570         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
89571         * lib/backupfile.c (base_name): Likewise.
89572         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
89573         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
89574         * lib/makepath.c (strip_trailing_slashes): Likewise.
89575         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
89576         ISSLASH): Likewise.
89577         * lib/rename.c (strip_trailing_slashes): Likewise.
89578         * lib/same.c (base_name): Likewise.
89579         * lib/stripslash.c (ISSLASH): Likewise.
89580
89581         * lib/addext.c: Include <dirname.h> after size_t is defined.
89582         * lib/backupfile.c: Likewise.
89583
89584         * lib/addext.c (addext): Use base_len to trim redundant
89585         trailing slashes instead of doing it ourselves.
89586         But do not trim the last slash if it is not redundant.
89587
89588         * lib/backupfile.c (find_backup_file_name,
89589         max_backup_version): Use base_len instead of rolling it ourselves.
89590         Handle the case of "" and (on DOS) "C:" correctly.
89591
89592         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
89593         needed. Include <string.h>, <dirname.h>.
89594         (base_name): Allow file names ending in slashes, other than names
89595         that are all slashes.  In this case, return the basename followed
89596         by the slashes.  This is more general, and can be used in places
89597         where the original base_name purposely had an assertion failure.
89598         (base_len): New function.
89599
89600         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
89601         Do not include <assert.h>; no longer needed.
89602         Include xalloc.h.
89603         (memrchr): Remove decl.
89604         (dir_name_r): Remove.
89605         (dir_len): Renamed from dirlen.  All callers changed.
89606         Rewrite in terms of base_name, for simplicity and consistency.
89607         (dir_name): Never return NULL.  All callers changed.
89608         Do not include <stdlib.h> in test program; no longer needed.
89609         return 0; is fine for test program.
89610
89611         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
89612         New macros.
89613         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
89614
89615         * lib/path-concat.c (path_concat): Use base_len to compute
89616         base length, not strlen; this means we cannot rely on memcpy
89617         to null-terminate.
89618
89619         * lib/same.c (STREQ): Remove.
89620         (same_name): Handle the case where the basename ends in trailing '/'.
89621
89622         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
89623         a slash was stripped.  Do not strip the last slash after a
89624         file system prefix.
89625
89626 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89627
89628         * lib/Makefile.am (libfetish_a_SOURCES):
89629         Add strftime.c, since we now compile it on all hosts.
89630
89631         * lib/strftime.c (my_strftime):
89632         Define to nstrftime if emacs, but only if my_strftime is not defined.
89633         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
89634         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
89635         Add one more extra argument: a nanoseconds value.
89636         All uses changed.
89637         (ns): New macro.
89638         (my_strftime function): Add %N format.
89639         (emacs_strftimeu): Renamed from emacs_strftime,
89640         with extra ut argument.
89641
89642 2001-05-09  Paul Eggert  <eggert@twinsun.com>
89643
89644         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
89645
89646 2001-04-21  Jim Meyering  <meyering@lucent.com>
89647
89648         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
89649         doesn't interfere.
89650
89651 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89652
89653         * m4/ftruncate.m4: Check for chsize.
89654         Link with ftruncate.o unconditionally if ftruncate is missing.
89655         This was required when cross-compiling to i586-mingw32msvc.
89656
89657 2001-04-08  Jim Meyering  <meyering@lucent.com>
89658
89659         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
89660         recomputed; that's necessary when the offset spans a DST transition.
89661         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
89662
89663 2001-04-02  Jim Meyering  <meyering@lucent.com>
89664
89665         * lib/regex.h, regex.c: Update from GNU libc.
89666
89667 2001-03-24  Jim Meyering  <meyering@lucent.com>
89668
89669         * m4/jm-macros.m4: Require autoconf-2.49d.
89670
89671 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
89672
89673         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
89674
89675 2001-03-19  Paul Eggert  <eggert@twinsun.com>
89676
89677         * lib/version-etc.c (version_etc_copyright): Update to 2001.
89678
89679 2001-03-17  Jim Meyering  <meyering@lucent.com>
89680
89681         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
89682         now that the version in autoconf is equivalent.
89683         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
89684
89685         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
89686         Suggestion from Akim Demaille.
89687
89688         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
89689         (jm_PREREQ_TEMPNAME): New function.
89690
89691 2001-03-16  Paul Eggert  <eggert@twinsun.com>
89692
89693         * lib/tempname.c (uint64_t): Define to uintmax_t if
89694         not defined, and if UINT64_MAX is not defined.
89695         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
89696         Reported by John David Anglin.
89697
89698 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
89699
89700         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
89701         resolve alias if codeset is empty.
89702         * lib/config.charset (BeOS): Use wildcard syntax.
89703
89704 2001-03-13  Jim Meyering  <meyering@lucent.com>
89705
89706         * lib/path-concat.c (path_concat)
89707         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
89708         concatenating e.g., `C:' and `foo'.
89709         From Bruno Haible.
89710
89711 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89712
89713         * lib/localcharset.c (locale_charset): Don't use
89714         setlocale(LC_CTYPE,NULL). Don't return NULL.
89715         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
89716
89717 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89718
89719         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
89720         support for DOS/DJGPP.
89721
89722 2001-03-01  Paul Eggert  <eggert@twinsun.com>
89723
89724         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
89725         lacks mkstemp.  Compile our own tempname.c if we compile our own
89726         mkstemp.c, as mkstemp relies on tempname.
89727
89728 2001-03-01  Jim Meyering  <meyering@lucent.com>
89729
89730         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
89731         AH_VERBATIM really does output its argument verbatim.
89732
89733 2001-02-28  Paul Eggert  <eggert@twinsun.com>
89734
89735         * lib/Makefile.am (libfetish_a_SOURCES):
89736         Add dup-safer.c, fopen-safer.c.
89737         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
89738
89739         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
89740         * lib/unistd-safer.h: New files.
89741
89742 2001-02-25  Paul Eggert  <eggert@twinsun.com>
89743
89744         The mkstemp replacement is taken from glibc 2.2.2, with some
89745         portability fixes for use outside glibc, as follows:
89746
89747         * lib/tempname.c (struct_stat64): New macro.
89748         (direxists, __gen_tempname): Use it.
89749         This avoids a portability problem with Solaris 8.
89750
89751         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
89752         (<stddef.h>, <stdint.h>, <string.h>):
89753         Include only if STDC_HEADERS || _LIBC.
89754         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
89755         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
89756         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
89757         (__set_errno): Define this macro if <errno.h> doesn't.
89758         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
89759         Define these macros if <stdio.h> doesn't.
89760         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
89761         Define these macros if <sys/stat.h>
89762         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
89763         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
89764         __xstat64): Define if not _LIBC.
89765         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
89766         (__gen_tempname): Invoke gettimeofday only if
89767         HAVE_GETTIMEOFDAY || _LIBC;
89768         otherwise, fall back on plain "time".
89769         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
89770
89771         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
89772
89773         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
89774
89775 2001-02-18  Paul Eggert  <eggert@twinsun.com>
89776
89777         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
89778
89779 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89780
89781         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
89782         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
89783         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
89784         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89785
89786 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89787
89788         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
89789         Remove workaround macros for hosts that have mbrtowc but not
89790         mbstate_t, as we now insist on proper declarations for both
89791         before using mbrtowc.
89792
89793 2001-02-17  Jim Meyering  <meyering@lucent.com>
89794
89795         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
89796         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
89797         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
89798         UnixWare 7.1.1.
89799
89800         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
89801         rather than AC_CACHE_VAL.
89802
89803 2001-02-17  Jim Meyering  <meyering@lucent.com>
89804
89805         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
89806         around included file name.
89807
89808         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
89809
89810         * lib/strftime.c: Update from GNU libc (the only changes were to
89811         comments).
89812
89813 2001-02-17  Jim Meyering  <meyering@lucent.com>
89814
89815         * lib/regex.c: Update from libc.
89816
89817 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
89818
89819         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
89820         clash.
89821
89822 2001-02-16  Paul Eggert  <eggert@twinsun.com>
89823
89824         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
89825         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
89826         Reported by Mark Hounschell via Paul Eggert.
89827
89828 2001-02-07  Jim Meyering  <meyering@lucent.com>
89829
89830         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
89831
89832 2001-02-05  Jim Meyering  <meyering@lucent.com>
89833
89834         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
89835         it includes the patch required for `large file' support with at least
89836         HP-UX's 10.20 /bin/cc.
89837
89838 2001-02-03  Jim Meyering  <meyering@lucent.com>
89839
89840         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
89841         AS_IF, now that it works once again (mysteriously).
89842         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89843
89844 2001-01-30  Jim Meyering  <meyering@lucent.com>
89845
89846         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
89847         * m4/chown.m4: Rename conftestchown to conftest.chown.
89848         * m4/rename.m4: s/conftestdir/conftest.d1/ and
89849         s/conftestdir2/conftest.d2/.
89850         * m4/utimes.m4: s/conftestdata/conftest.data/
89851         Inspired by Pavel Roskin's change in autoconf.
89852
89853 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
89854
89855         * lib/config.charset: Update for FreeBSD 4.2.
89856
89857 2001-01-27  Jim Meyering  <meyering@lucent.com>
89858
89859         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
89860         a use of AS_IF.
89861         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89862
89863 2001-01-26  Jim Meyering  <meyering@lucent.com>
89864
89865         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
89866         quotearg.c includes it.
89867
89868 2001-01-26  Jim Meyering  <meyering@lucent.com>
89869
89870         * lib/quotearg.c: Include stddef.h.
89871         * lib/quote.c: Include stddef.h.
89872         Reported by Axel Kittenberger.
89873
89874         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
89875         line in double quotes so that it evokes a better diagnostic.
89876         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
89877         Reported by Axel Kittenberger.
89878
89879 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
89880
89881         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
89882         as if it was a `charset'.
89883
89884 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89885
89886         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
89887         has const.
89888
89889 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89890
89891         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
89892         to avoid a warning.  Add back 'const' to inptr.
89893
89894 2001-01-20  Jim Meyering  <meyering@lucent.com>
89895
89896         Be sure that headers are checked before used in code compiled
89897         for the type checks.
89898         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
89899         In place of that, invoke jm_CHECK_ALL_TYPES.
89900         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
89901         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
89902         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
89903         The check for ssize_t was mistakenly run before the test for unistd.h.
89904
89905         The configure-time check for stdbool.h was missing.
89906         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
89907         (jm_PREREQ_HASH): New function.
89908
89909 2001-01-17  Jim Meyering  <meyering@lucent.com>
89910
89911         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
89912         for autoconf-2.49c.
89913         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
89914
89915 2001-01-16  Jim Meyering  <meyering@lucent.com>
89916
89917         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
89918         From Bruno Haible.
89919
89920 2001-01-14  Jim Meyering  <meyering@lucent.com>
89921
89922         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
89923         foo and bar.  Create conftestdir/ in the script, not in the C code.
89924         Remove directories in the script, not in the C code.
89925         Remove conftestdir{,2} before trying to create the directory.
89926         Make the entire configure script fail if the mkdir fails.
89927
89928 2001-01-14  Jim Meyering  <meyering@lucent.com>
89929
89930         * lib/rename.c: New file.  From Volker Borchert.
89931         Include stdlib.h, string.h or strings.h, and xalloc.h.
89932         Use strip_trailing_slashes rather than open-coding it.
89933
89934 2001-01-03  Paul Eggert  <eggert@twinsun.com>
89935
89936         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
89937
89938 2001-01-03  Jim Meyering  <meyering@lucent.com>
89939
89940         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
89941         of local `inptr' to avoid warning with some system declarations of
89942         iconv.
89943
89944 2001-01-02  Volker Borchert  <bt@teknon.de>
89945
89946         * m4/rename.m4: New file.
89947         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
89948
89949 2001-01-01  Jim Meyering  <meyering@lucent.com>
89950
89951         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
89952         even on systems with utmpx.h.  It's necessary for the declaration of
89953         utmp's ut_user member.  Reported by Andreas Jaeger.
89954
89955         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
89956         available. They are required for the declarations of getgrgid and
89957         getpwuid resp.
89958         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
89959         Reported by Andreas Jaeger.
89960
89961 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
89962
89963         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
89964         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
89965         so `make install' also works in VPATH builds.
89966
89967 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
89968
89969         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
89970         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
89971         can be used in subdirectories.
89972
89973 2000-12-29  Paul Eggert  <eggert@twinsun.com>
89974
89975         * lib/modechange.c: Do not assume that mode_t uses the
89976         traditional octal encoding.  E.g. "chmod 1 FOO" should set
89977         the other-execute bit of FOO even if S_IXOTH != 1.
89978
89979         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
89980         WOTH, XOTH, ALLM): New macros.
89981         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
89982          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
89983         Use them.
89984         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
89985         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
89986         (mode_compile):
89987         No need to use uintmax_t; unsigned long is long enough.
89988         Don't bother to get suffix since we don't use it.
89989
89990 2000-12-26  Jim Meyering  <meyering@lucent.com>
89991
89992         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
89993         better with autoheader.
89994
89995 2000-12-24  Jim Meyering  <meyering@lucent.com>
89996
89997         * lib/hash.c (is_prime): Return explicit boolean values.
89998         (hash_get_first): Return NULL to appease Irix5.6's 89.
89999         Reported by Nelson Beebe.
90000
90001 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
90002
90003         * lib/localcharset.c (locale_charset): Add support for Win32.
90004
90005 2000-12-18  Paul Eggert  <eggert@twinsun.com>
90006
90007         * lib/physmem.h, lib/physmem.c: New files.
90008
90009         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
90010         (noinst_HEADERS): Add physmem.h.
90011
90012         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
90013         't' for compatibility with Solaris 8 sort.
90014
90015 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
90016
90017         * lib/config.charset: Add support for BeOS.
90018
90019 2000-12-17  Jim Meyering  <meyering@lucent.com>
90020
90021         * m4/dos.m4 (jm_AC_DOS): New file and macro.
90022         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
90023
90024 2000-12-16  Jim Meyering  <meyering@lucent.com>
90025
90026         This bug had a serious impact on chown: `chown N:M FILE' (for integer
90027         N and M) would have treated it like `chown N:N FILE'.
90028
90029         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
90030
90031 2000-12-16  Jim Meyering  <meyering@lucent.com>
90032
90033         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
90034         SHELLS_FILE to a file name that's useful on djgpp systems.
90035         Include stdlib.h.
90036         (ADDITIONAL_DEFAULT_SHELLS): Define.
90037         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
90038         Based mostly on a patch from Prashant TR.
90039
90040 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
90041
90042         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
90043         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
90044         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
90045
90046 2000-12-08  Andreas Schwab  <schwab@suse.de>
90047
90048         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
90049         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
90050
90051 2000-12-07  Jim Meyering  <meyering@lucent.com>
90052
90053         * lib/stripslash.c (ISSLASH): Define.
90054         (strip_trailing_slashes): Use ISSLASH rather than comparing against
90055         `/'.
90056         From Prashant TR.
90057
90058         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
90059         (dir_name_r): Declare this function as static.
90060         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
90061         manifest itself on a name containing a mix of slashes and
90062         backslashes.
90063         Make this function work with names starting with a DOS-style
90064         drive letter and colon prefix.
90065         (dir_name): Append `.' if necessary.
90066         Based mostly on patches from Prashant TR and Eli Zaretskii.
90067
90068         * lib/dirname.h (dir_name_r): Remove prototype.
90069
90070 2000-12-06  Paul Eggert  <eggert@twinsun.com>
90071
90072         * m4/off_t-format.m4: Remove this file.
90073         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
90074
90075 2000-12-06  Jim Meyering  <meyering@lucent.com>
90076
90077         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
90078         replacement strtoull, we may well need the replacement strtoul, too.
90079         Check for declarations of strtoul and strtoull.
90080         Check for strtol.  Mainly as a cue to cause automake to include
90081         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
90082         Check for limits.h -- strtol.c needs it.
90083
90084 2000-12-05  Jim Meyering  <meyering@lucent.com>
90085
90086         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
90087
90088 2000-12-04  Jim Meyering  <meyering@lucent.com>
90089
90090         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
90091         Also include memory.h, stdlib.h, unistd.h if appropriate.
90092         Reported by Andreas Jaeger (conflicting declaration of malloc).
90093
90094 2000-12-02  Jim Meyering  <meyering@lucent.com>
90095
90096         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
90097         * m4/jm-macros.m4 (jm_MACROS): require it.
90098
90099 2000-12-02  Jim Meyering  <meyering@lucent.com>
90100
90101         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
90102
90103 2000-12-01  Paul Eggert  <eggert@twinsun.com>
90104
90105         * lib/memrchr.c: Include <config.h> before any system include file.
90106
90107 2000-11-30  Jim Meyering  <meyering@lucent.com>
90108
90109         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
90110
90111 2000-11-30  Jim Meyering  <meyering@lucent.com>
90112
90113         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
90114
90115 2000-11-29  Paul Eggert  <eggert@twinsun.com>
90116
90117         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
90118
90119 2000-11-26  Jim Meyering  <meyering@lucent.com>
90120
90121         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
90122
90123 2000-11-22  Paul Eggert  <eggert@twinsun.com>
90124
90125         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
90126         size of (size_t) -1; it's not portable.
90127
90128 2000-11-17  Jim Meyering  <meyering@lucent.com>
90129
90130         * lib/strstr.c: Update from GNU libc.
90131
90132 2000-11-17  Akim Demaille  <akim@epita.fr>
90133
90134         * lib/obstack.h: Formatting changes.
90135         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
90136         prevent type checking.
90137         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
90138         cast the value to (void *): assigning a `foo *' to a `void *'
90139         variable is valid.
90140         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
90141
90142 2000-11-16  Jim Meyering  <meyering@lucent.com>
90143
90144         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
90145
90146 2000-11-11  Jim Meyering  <meyering@lucent.com>
90147
90148         * lib/error.c: Add a couple #includes, merging from GNU libc version.
90149
90150 2000-11-10  Jim Meyering  <meyering@lucent.com>
90151
90152         * lib/obstack.h: Update from GNU libc.
90153         * lib/obstack.c: Likewise.
90154
90155 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
90156
90157         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
90158
90159 2000-11-06  Paul Eggert  <eggert@twinsun.com>
90160
90161         * lib/getusershell.c (setusershell): Use rewind rather than
90162         fseek/fseeko, to avoid configuration hassles with fseeko.
90163         Don't bother opening SHELLS_FILE if shellstream is NULL;
90164         it's not necessary.
90165
90166 2000-11-05  Jim Meyering  <meyering@lucent.com>
90167
90168         * lib/makepath.h (make_dir): Declare.
90169         * lib/makepath.c (make_dir): Remove `static' attribute.
90170         Tweak a comment.
90171
90172 2000-11-04  Jim Meyering  <meyering@lucent.com>
90173
90174         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
90175
90176 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
90177
90178         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
90179         last one in a bucket, advance to the next bucket.
90180
90181 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
90182
90183         * lib/fnmatch.c: Do not comment out all the code if we are using
90184         the GNU C library, because in some cases we are replacing buggy
90185         code in the GNU C library itself.
90186
90187 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
90188
90189         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
90190         (regex_compile): Catch bogus \(\1\).
90191
90192 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90193
90194         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
90195         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
90196         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
90197
90198 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90199
90200         * lib/error.h, getline.h, modechange.h:
90201         Remove "2000" from Copyright line, as the file hasn't been
90202         changed this year other than in the copyright notice.
90203
90204         * lib/xalloc.h: Add "2000" to Copyright line, as this file
90205         was changed this year.
90206
90207 2000-10-29  Jim Meyering  <meyering@lucent.com>
90208
90209         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
90210         renaming.
90211         * m4/ls-mntd-fs.m4: Likewise
90212
90213 2000-10-29  Jim Meyering  <meyering@lucent.com>
90214
90215         * lib/xstat.in: Fix grammar in comment.
90216
90217 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
90218
90219         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
90220         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
90221         doesn't define __restrict_arr.
90222
90223 2000-10-28  Jim Meyering  <meyering@lucent.com>
90224
90225         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
90226         (jm_PREREQ_MEMCHR): New function.
90227
90228 2000-10-28  Jim Meyering  <meyering@lucent.com>
90229
90230         * lib/memchr.c: Update from libc.
90231         Adjust for portability:
90232         [HAVE_STDLIB_H]: Include stdlib.h.
90233         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
90234         Undef __memchr, too.
90235         [!weak_alias]: Define __memchr to memchr.
90236
90237         * lib/regex.c: Update from libc.
90238         * lib/regex.h: Likewise.
90239         * lib/getopt1.c: Likewise.
90240         * lib/memcmp.c: Likewise.
90241
90242         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
90243         Avoid using fseek, when possible -- it's broken by design.
90244         Patch by Ulrich Drepper.
90245
90246 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
90247
90248         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
90249         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
90250         Giving in to popular pressure to shut up the compiler with casts.
90251
90252 2000-10-26  Jim Meyering  <meyering@lucent.com>
90253
90254         * lib/strftime.c: Update from libc.
90255
90256 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
90257
90258         * regex.c: More `unsigned char' -> `re_char' changes.
90259         Also change several `int' into `re_wchar_t'.
90260         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
90261         (PUSH_FAILURE_POINTER): Don't cast any more.
90262         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
90263         We want GCC to complain, since this piece of code makes
90264         re_match non-reentrant, which *should* be fixed.
90265         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
90266         (EXTEND_BUFFER): Use RETALLOC.
90267         (SET_LIST_BIT): Don't cast.
90268         (re_wchar_t): New type.
90269         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
90270         that those two functions will always properly return.
90271         (IMMEDIATE_QUIT_CHECK): Cast to void.
90272         (analyse_first): Use recursion rather than an explicit stack.
90273         (re_compile_fastmap): Can't fail anymore.
90274         (re_search_2): Don't check re_compile_fastmap for failure.
90275         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
90276         Now also sets the new value (passed in a new argument).
90277         (re_match_2_internal): Use it.
90278         Also, use a new var `reg' of type size_t when looping through regs
90279         rather than reuse the inappropriate `mcnt'.
90280
90281 2000-10-25  Jim Meyering  <meyering@lucent.com>
90282
90283         * lib/obstack.c: Update from libc.
90284
90285 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
90286
90287         * regex.c (regex_compile): Change the way of handling a range from
90288         a char less than 256 to a char not less than 256.
90289
90290 2000-10-24  Andrew Innes  <andrewi@gnu.org>
90291
90292         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
90293         NT-Emacs only.
90294         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
90295         so that re_search functions only quit when callers expect them to.
90296
90297 2000-10-23  Jim Meyering  <meyering@lucent.com>
90298
90299         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
90300         wrong.  That set_locale call must not have any side effects.
90301         From Paul Eggert.
90302
90303 2000-10-22  Jim Meyering  <meyering@lucent.com>
90304
90305         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
90306         [CYCLIC]: Remove now-unused definition.
90307
90308         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
90309         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
90310         Suggestion from Ulrich Drepper.
90311
90312 2000-10-21  Jim Meyering  <meyering@lucent.com>
90313
90314         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
90315         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
90316         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
90317
90318 2000-10-21  Jim Meyering  <meyering@lucent.com>
90319
90320         * lib/dirname.c (memrchr): Declare if necessary.
90321         (dir_name): Remove the restriction that there be no
90322         trailing slashes.  Now, this code skips past them, effectively
90323         ignoring them.
90324         [TEST_DIRNAME] (main): New unit tests.
90325
90326         * lib/memrchr.c: New file from GNU libc.
90327         Undef __memrchr, too.
90328         [!weak_alias]: Define __memrchr to memrchr.
90329         Guard weak_alias use with `#ifdef weak_alias'.
90330
90331 2000-10-21  Jim Meyering  <meyering@lucent.com>
90332
90333         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
90334         (dir_name): Use dir_name_r.
90335         * lib/dirname.h (dir_name_r): Declare it.
90336
90337 2000-10-17  Jim Meyering  <meyering@lucent.com>
90338
90339         * lib/quote.h (PARAMS): Define and use.
90340         Reported by Akim Demaille.
90341
90342         * lib/getopt.c: Update from libc.
90343
90344 2000-10-16  Jim Meyering  <meyering@lucent.com>
90345
90346         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
90347         setlocale.
90348         From Jan Fedak.
90349
90350 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
90351
90352         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
90353
90354 2000-09-25  Jim Meyering  <meyering@lucent.com>
90355
90356         * lib/md5.h (rol): Define (from GnuPG).
90357
90358         * lib/sha.c: Give credit (GnuPG) where due.
90359         (M): Use rol rather than open-coding it.
90360         Add a FIXME comment.
90361
90362 2000-09-21  Jim Meyering  <meyering@lucent.com>
90363
90364         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
90365         Reported by Michael Stone.
90366
90367 2000-09-20  Jim Meyering  <meyering@lucent.com>
90368
90369         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
90370         (noinst_HEADERS): Add sha.h.
90371         Based on code from Scott G. Miller and from GnuPG.
90372
90373 2000-09-18  Jim Meyering  <meyering@lucent.com>
90374
90375         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
90376         LIBS. Otherwise, everyone ends up linking with -lelf for some
90377         configurations.
90378         Reported by Mike Stone.
90379
90380 2000-09-15  Jim Meyering  <meyering@lucent.com>
90381
90382         * lib/regex.c: Update from libc.
90383
90384 2000-09-10  Jim Meyering  <meyering@lucent.com>
90385
90386         * lib/getopt.c (_getopt_internal): Update from glibc.
90387
90388 2000-09-09  Jim Meyering  <meyering@lucent.com>
90389
90390         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
90391         think it should be used as a general replacement for isascii.
90392         * lib/fnmatch.c: Likewise.
90393         * lib/mbswidth.c: Likewise
90394         * lib/regex.c: Likewise.
90395
90396         Don't use atoi.
90397         * lib/userspec.c: Include sys/param.h and limits.h.
90398         Include xstrtol.h.
90399         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90400         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
90401         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
90402         UID, GID.  Check range.
90403
90404 2000-09-06  Jim Meyering  <meyering@lucent.com>
90405
90406         * lib/getopt.c (_getopt_internal): Update from glibc.
90407
90408 2000-08-30  Jim Meyering  <meyering@lucent.com>
90409
90410         * lib/strftime.c: Merge in changes from GNU libc.
90411
90412 2000-08-26  Jim Meyering  <meyering@lucent.com>
90413
90414         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
90415         * m4/fpending.m4: New file.
90416
90417 2000-08-26  Jim Meyering  <meyering@lucent.com>
90418
90419         * lib/closeout.c: Include "__fpending.h".
90420         (close_stdout_status): Return right away if there's nothing to flush.
90421
90422         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
90423         * lib/__fpending.c: New file.
90424         * lib/__fpending.h: New file.
90425
90426 2000-08-20  Jim Meyering  <meyering@lucent.com>
90427
90428         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
90429         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
90430         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
90431
90432 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
90433
90434         Improve fileutils installation on systems where running
90435         programs (like install) can't be unlinked.
90436         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
90437         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
90438
90439 2000-08-07  Paul Eggert  <eggert@twinsun.com>
90440
90441         Standardize on "memory exhausted" instead of "Memory exhausted"
90442         or "virtual memory exhausted".
90443         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
90444         "virtual memory exhausted".
90445         * lib/same.c (same_name): Invoke xalloc_die instead of printing
90446         our own message.
90447         * lib/userspec.c (parse_user_spec): Likewise.
90448         * lib/bumpalloc.h: comment fix
90449         * lib/same.c, userspec.c: Include xalloc.h.
90450
90451         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
90452         not char *const and pointing to a constant array.
90453         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
90454         (xrealloc): Comment fix.
90455
90456         * lib/userspec.c (parse_user_spec):
90457         Don't translate a message until just before returning,
90458         to avoid unnecessary translation.
90459
90460 2000-08-07  Jim Meyering  <meyering@lucent.com>
90461
90462         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
90463         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
90464         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
90465         getgroups.c, gethostname.c, getopt.h, group-member.c,
90466         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
90467         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
90468         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
90469         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
90470         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
90471         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
90472         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
90473         yesno.c: Back out Copyright date changes for each file with no change
90474         this year.  This eases coordination with other programs using the same
90475         source code modules.  From Paul Eggert.
90476
90477 2000-08-06  Paul Eggert  <eggert@twinsun.com>
90478
90479         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
90480         not char, for compatibility with glibc 2.1.3 strftime.c.
90481
90482 2000-08-03  Greg McGary  <greg@mcgary.org>
90483
90484         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
90485         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
90486         (EXTEND_BUFFER): Use them.
90487
90488 2000-08-01  Jim Meyering  <meyering@lucent.com>
90489
90490         * lib/dirname.c (ISSLASH): Define.
90491         (BACKSLASH_IS_PATH_SEPARATOR): Define.
90492         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
90493         both `\' and `/' may be use as path separators.
90494         Based on a patch from Prashant TR.
90495
90496 2000-07-31  Paul Eggert  <eggert@twinsun.com>
90497
90498         * lib/quotearg.c (quotearg_n_options): Don't make the initial
90499         slot vector a constant, since it might get modified.
90500
90501 2000-07-31  Jim Meyering  <meyering@lucent.com>
90502
90503         * lib/xmalloc.c: Use `virtual memory exhausted', not
90504         `Memory exhausted'.
90505         * lib/obstack.c (print_and_abort): Likewise.
90506
90507 2000-07-30  Paul Eggert  <eggert@twinsun.com>
90508
90509         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
90510         buffer, so that the caller can always quote one small
90511         component of a "memory exhausted" message in slot 0.
90512         From a suggestion by Jim Meyering.
90513
90514 2000-07-30  Jim Meyering  <meyering@lucent.com>
90515
90516         * lib/makepath.c (make_path): Quote the other instance, too.
90517
90518         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
90519         (STATIC_BUF_SIZE): Define.
90520         (quotearg_n_options): Use only statically allocated storage when
90521         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
90522         than STATIC_BUF_SIZE.
90523
90524 2000-07-29  Jim Meyering  <meyering@lucent.com>
90525
90526         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
90527         * lib/dirname.c (dir_name): Likewise.
90528
90529         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
90530         `/'.
90531
90532         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
90533         (dir_name): Assert that there are no trailing slashes.
90534
90535 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
90536
90537         * lib/mbswidth.h (mbswidth): Add a flags argument.
90538         (mbswidth): New declaration.
90539         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
90540         * lib/mbswidth.c (mbswidth): Add a flags argument.
90541         (mbsnwidth): New function.
90542
90543 2000-07-24  Jim Meyering  <meyering@lucent.com>
90544
90545         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
90546
90547 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90548
90549         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
90550
90551 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90552
90553         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
90554         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
90555         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
90556         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
90557         invoke multibyte primitives.
90558
90559 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90560
90561         * lib/quotearg.c:
90562         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
90563         so that mbstate_t is always defined.
90564
90565         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
90566         be 1 in at least one GCC installation, and this configuration
90567         error is likely to be common.  Ignoring MB_LEN_MAX hurts
90568         performance on hosts that have mbrtowc but have only unibyte
90569         locales, but I assume these hosts are rare.
90570
90571 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90572
90573         * lib/mbswidth.c (_XOPEN_SOURCE):
90574         Don't define; this causes problems on Solaris 7.
90575         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
90576
90577 2000-07-23  Jim Meyering  <meyering@lucent.com>
90578
90579         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
90580         too: getgrgid, getpwuid, getuid.
90581
90582 2000-07-23  Jim Meyering  <meyering@lucent.com>
90583
90584         * lib/basename.c (base_name): Add an assertion.
90585
90586 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
90587
90588         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
90589         shadow its mbsinit function.
90590
90591 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90592
90593         * lib/mbswidth.h: New file.
90594         * lib/mbswidth.c: New file.
90595         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
90596         (noinst_HEADERS): Add mbswidth.h.
90597
90598 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90599
90600         * lib/config.charset: Add support for FreeBSD. Improve support for
90601         HP-UX and IRIX 6.
90602
90603 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
90604
90605         * m4/mbswidth.m4: New file.
90606         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
90607
90608 2000-07-15  Jim Meyering  <meyering@lucent.com>
90609
90610         * lib/makepath.c: Include quote.h.
90611         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
90612         corresponding argument in a `quote (...)' call.
90613         Give better diagnostics.
90614
90615         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
90616         (noinst_HEADERS): Add quote.h.
90617
90618         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
90619         from tar's src/misc.c.
90620         * lib/quote.h: New file.  Prototypes for same.
90621
90622 2000-07-14  Paul Eggert  <eggert@twinsun.com>
90623
90624         From a suggestion by Bruno Haible.
90625         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
90626         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
90627         to decide whether to define the BeOS workaround macro;
90628         this adjusts to the change to AC_MBSTATE_T.
90629
90630 2000-07-14  Jim Meyering  <meyering@lucent.com>
90631
90632         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
90633         jm_AC_TYPE_UINTMAX_T.
90634
90635 2000-07-13  Paul Eggert  <eggert@twinsun.com>
90636
90637         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
90638
90639         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
90640         quotearg_buffer_restyled): Add support for
90641         clocale_quoting_style.  Undo previous change to
90642         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
90643         and "{RIGHT QUOTATION MARK}" msgids.
90644
90645 2000-07-10  Paul Eggert  <eggert@twinsun.com>
90646
90647         From a suggestion by Bruno Haible.
90648         * m4/mbstate_t.m4 (AC_MBSTATE_T):
90649         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
90650         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
90651         and mbstate_t, to a single-part test that simply defines mbstate_t.
90652         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
90653         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
90654
90655 2000-07-10  Jim Meyering  <meyering@lucent.com>
90656
90657         * m4/strerror_r.m4: Mirror the correction made in autoconf.
90658
90659         * m4/gnu-source.m4: Output to confdefs.h directly.
90660         Suggestion from Akim Demaille.
90661
90662 2000-07-09  Paul Eggert  <eggert@twinsun.com>
90663
90664         The old behavior of quoting `like this' doesn't look good with
90665         newer, ISO-style fonts.  See:
90666         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
90667
90668         Instead, quote "like this" by default.  Let the translator
90669         tailor the locale-specific quoting behavior by providing
90670         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
90671
90672         * lib/quotearg.c (N_): New macro.
90673         (gettext_default): New function.
90674         (quotearg_buffer_restyled): Use
90675         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
90676         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
90677
90678 2000-07-09  Jim Meyering  <meyering@lucent.com>
90679
90680         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
90681         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
90682
90683         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
90684         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
90685
90686 2000-07-09  Jim Meyering  <meyering@lucent.com>
90687
90688         * lib/Most files: Update copyright dates to include 2000.
90689
90690 2000-07-08  Jim Meyering  <meyering@lucent.com>
90691
90692         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
90693         if not defined.
90694         (xgethostname): Remove now-unnecessary #ifdef.
90695         Move declaration of `err' into loop where it's used.
90696
90697 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90698         and Bruno Haible  <haible@clisp.cons.org>
90699
90700         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
90701         only if the test for an object-type mbstate_t fails.  This
90702         prevents us from mistakenly reporting that mbstate_t is a
90703         system object type after we "#define mbstate_t int" to work
90704         around its lack.
90705
90706 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90707         and Bruno Haible  <haible@clisp.cons.org>
90708
90709         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
90710
90711 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90712
90713         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
90714         to strerror_r.
90715         Include <ctype.h> for use of isalpha.
90716
90717 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90718
90719         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
90720         by allocating a larger buffer. Test the gethostname return value for
90721         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
90722         returns an error and ENAMETOOLONG isn't defined.
90723
90724 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90725
90726         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
90727         dimension.
90728
90729 2000-07-04  Jim Meyering  <meyering@lucent.com>
90730
90731         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
90732         of the deprecated AC_CHECKING.
90733
90734 2000-07-04  Jim Meyering  <meyering@lucent.com>
90735
90736         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
90737         Reported by Bruno Haible.
90738
90739 2000-07-04  Jim Meyering  <meyering@lucent.com>
90740
90741         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
90742         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
90743         lacks mbrtowc.
90744
90745 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90746
90747         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
90748         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
90749
90750 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90751         and Bruno Haible  <haible@clisp.cons.org>
90752
90753         * lib/quotearg.c (mbrtowc):
90754         Assign to *pwc, and return 1 only if result is nonzero.
90755         (iswprint): Use ISPRINT when substituting our own mbrtowc.
90756
90757 2000-07-03  Jim Meyering  <meyering@lucent.com>
90758
90759         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
90760
90761 2000-07-03  Jim Meyering  <meyering@lucent.com>
90762
90763         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
90764         This is necessary to get a definition of e.g., UTMP_FILE on
90765         HP-UX 10.20.
90766         From Bob Proulx.
90767
90768 2000-07-02  Jim Meyering  <meyering@lucent.com>
90769
90770         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
90771
90772         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
90773         AC_LIBOBJ(function_name).
90774         * m4/chown.m4: Likewise.
90775         * m4/fnmatch.m4: Likewise.
90776         * m4/ftruncate.m4: Likewise.
90777         * m4/getgroups.m4: Likewise.
90778         * m4/getline.m4: Likewise.
90779         * m4/group-member.m4: Likewise.
90780         * m4/jm-macros.m4: Likewise.
90781         * m4/lstat.m4: Likewise.
90782         * m4/malloc.m4: Likewise.
90783         * m4/memcmp.m4: Likewise.
90784         * m4/nanosleep.m4: Likewise.
90785         * m4/putenv.m4: Likewise.
90786         * m4/realloc.m4: Likewise.
90787         * m4/regex.m4: Likewise.
90788         * m4/stat.m4: Likewise.
90789         * m4/strftime.m4: Likewise.
90790
90791 2000-07-02  Jim Meyering  <meyering@lucent.com>
90792
90793         * lib/quotearg.c (mbstate_t): Don't define here.
90794
90795 2000-07-02  Jim Meyering  <meyering@lucent.com>
90796
90797         * lib/nanosleep.c (SIGCONT): Define if not already defined.
90798
90799 2000-07-01  Jim Meyering  <meyering@lucent.com>
90800
90801         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
90802
90803 2000-07-01  Jim Meyering  <meyering@lucent.com>
90804
90805         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
90806         problem.
90807
90808 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90809
90810         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
90811         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
90812
90813 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90814
90815         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
90816         per change in ../m4/ls-mntd-fs.m4.
90817         (read_filesystem_list): Ignore symbolic links.
90818
90819 2000-06-29  Jim Meyering  <meyering@lucent.com>
90820
90821         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
90822         for declaration of strcmp.
90823
90824         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
90825
90826         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
90827         Avoid warning by casting result to `char *' to remove `const'.
90828
90829 2000-06-28  Jim Meyering  <meyering@lucent.com>
90830
90831         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
90832         included by quotearg.c, for which we perform this test.  From
90833         Bruno Haible.
90834
90835 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90836
90837         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
90838         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
90839         <utmpx.h> exists, put readutmp.o into LIBOBJS.
90840
90841 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90842
90843         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
90844
90845 2000-06-26  Paul Eggert  <eggert@twinsun.com>
90846
90847         savedir now sets errno on failure and invokes xmalloc to get memory.
90848         Fix a couple of other minor bugs while we're at it.
90849
90850         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
90851         (NAMLEN): Remove macro.
90852         (malloc, realloc): Remove decls.
90853         (stpcpy): Likewise.
90854         ("xalloc.h"): Include.
90855         (NAME_SIZE_DEFAULT): New macro.
90856         (savedir): Use xmalloc / xrealloc to allocate memory.
90857         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
90858         Skip "" directory entries.
90859         Use strlen to calculate directory entry length, since the old method
90860         is rarely used these days and isn't worth supporting.
90861         Don't use a pointer after freeing it.
90862         Check for integer overflow when calculating allocation size.
90863         Use memcpy to copy entries, instead of stpcpy.
90864         Set errno properly when returning NULL.
90865         Check for readdir error.
90866
90867 2000-06-26  Jim Meyering  <meyering@lucent.com>
90868
90869         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
90870
90871 2000-06-25  Jim Meyering  <meyering@lucent.com>
90872
90873         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
90874         Linux header bug when _XOPEN_SOURCE is defined to 500.
90875
90876 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90877
90878         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
90879         deficiency.
90880
90881 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90882
90883         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
90884         Include xalloc.h.
90885         Don't include <stdlib.h>.  Don't declare malloc, realloc.
90886
90887 2000-06-24  Jim Meyering  <meyering@lucent.com>
90888
90889         * m4/strerror_r.m4: Revive this file -- to try out an experimental
90890         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
90891         for which strerror does return char*, but which lacks a conveniently
90892         accessible declaration of the function.  If the compile-test says
90893         strerror_r doesn't work, then resort to a `run'-test that works on
90894         BeOS and segfaults on DEC Unix.
90895
90896 2000-06-24  Jim Meyering  <meyering@lucent.com>
90897
90898         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
90899
90900 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90901
90902         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
90903         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
90904
90905 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90906
90907         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
90908         (mbrtowc, mbstate_t): Define substitutes if
90909         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
90910         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
90911         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
90912
90913 2000-06-23  Jim Meyering  <meyering@lucent.com>
90914
90915         * m4/afs.m4: Add missing AC_MSG_RESULT.
90916         Reported by Bruno Haible.
90917
90918         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
90919         Suggestion from Bruno Haible.
90920
90921 2000-06-23  Jim Meyering  <meyering@lucent.com>
90922
90923         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
90924
90925 2000-06-21  Jim Meyering  <meyering@lucent.com>
90926
90927         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
90928
90929 2000-06-21  Jim Meyering  <meyering@lucent.com>
90930
90931         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
90932         (noinst_HEADERS): Add getstr.h.
90933
90934         * lib/getline.c (getstr): Move into a separate file.
90935         * lib/getstr.c (getstr): New file, extracted from getline.c, with
90936         the following changes: new parameter, delim2; both delim[12]
90937         parameters have type `int', not `char'.  The latter would lose
90938         with 8-bit delimiters.
90939         * lib/getstr.h: New file.
90940
90941 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90942
90943         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
90944         than 1024, return a memory chunk of least possible size, instead
90945         of size PATH_MAX + 2. In the loop, increment the size proportionally.
90946         Use free/xmalloc instead of xrealloc to avoid copying for very long
90947         paths.
90948
90949 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90950
90951         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
90952         the empty string.
90953
90954 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90955
90956         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
90957         address, not strdup.  Include <stdlib.h> and don't declare free().
90958
90959 2000-06-19  Jim Meyering  <meyering@lucent.com>
90960
90961         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
90962
90963 2000-06-18  Jim Meyering  <meyering@lucent.com>
90964
90965         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
90966
90967         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
90968         `checking whether...' message to be consistent with that of the
90969         lstat test.
90970
90971 2000-06-18  Jim Meyering  <meyering@lucent.com>
90972
90973         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
90974         Besides, these days every porting target provides a mkdir function.
90975
90976         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
90977         needed. (this snippet comes from src/system.h).
90978
90979 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
90980
90981         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
90982
90983 2000-06-15  Paul Eggert  <eggert@twinsun.com>
90984
90985         * lib/human.c (adjust_value): New function.
90986         (human_readable_inexact): Apply rounding style even when
90987         printing approximate values.
90988
90989 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90990
90991         * lib/human.c (human_readable_inexact): Allow an input block
90992         size that is not a multiple of the output block size, and vice versa.
90993         Reported by Piergiorgio Sartor.
90994
90995 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90996
90997         * lib/getdate.y (get_date): Apply relative times after time
90998         zone indicator, not before.  Reported by Todd A. Jacobs.
90999
91000 2000-06-13  Jim Meyering  <meyering@lucent.com>
91001
91002         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
91003
91004         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
91005
91006 2000-06-12  Paul Eggert  <eggert@twinsun.com>
91007
91008         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
91009
91010 2000-06-12  Jim Meyering  <meyering@lucent.com>
91011
91012         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
91013         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
91014         optional argument.
91015         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
91016         the optional argument, `lib'.
91017
91018 2000-06-08  Jim Meyering  <meyering@lucent.com>
91019
91020         * m4/largefile.m4: Remove file (now that it's part of autoconf).
91021
91022 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91023
91024         Rewrite largefile configuration so that we don't need to run
91025         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
91026         AC_CANONICAL_HOST in configure.in -- jmm]
91027
91028         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
91029         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
91030         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
91031         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
91032         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
91033         All uses changed.
91034         Instead of inspecting the output of getconf, try to compile the
91035         test program without and with the macro definition.
91036         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
91037         for getconf.  Instead, check for the needed flags by compiling
91038         test programs.
91039
91040 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91041
91042         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
91043
91044 2000-06-04  Jim Meyering  <meyering@lucent.com>
91045
91046         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
91047         SunOS 4.1.4 for which gid_t is an unsigned type.
91048
91049 2000-06-03  Jim Meyering  <meyering@lucent.com>
91050
91051         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
91052         now that autoconf requires that.
91053
91054         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
91055         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
91056         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
91057
91058 2000-06-03  Jim Meyering  <meyering@lucent.com>
91059
91060         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
91061
91062 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91063
91064         * m4/glibc21.m4: New file.
91065         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
91066
91067 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91068
91069         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
91070         newer, don't install charset.alias.
91071         * lib/config.charset: Change the Linux/glibc rules so they become empty
91072         on glibc-2.1 or newer.
91073
91074 2000-06-02  Jim Meyering  <meyering@lucent.com>
91075
91076         * lib/mountlist.c: Back out last change.  Instead, do this...
91077         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
91078         me_dummy member using the same `ignore'-testing code.
91079         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
91080         fs_type strings.
91081         From Mark D. Roth.
91082
91083 2000-05-29  Jim Meyering  <meyering@lucent.com>
91084
91085         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
91086         mounts with the `ignore' attribute.  Based on a patch from
91087         Mark D. Roth.
91088
91089 2000-05-28  Jim Meyering  <meyering@lucent.com>
91090
91091         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
91092         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91093         * m4/stat.m4: Likewise.
91094         * m4/lstat.m4: Likewise.
91095         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
91096
91097         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
91098         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
91099
91100 2000-05-26  Jim Meyering  <meyering@lucent.com>
91101
91102         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
91103
91104 2000-05-24  Jim Meyering  <meyering@lucent.com>
91105
91106         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
91107         autoconf requires that.
91108         * m4/lib-check.m4: Likewise.
91109         * m4/jm-macros.m4: Likewise.
91110         * m4/strftime.m4: Likewise.
91111
91112         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
91113         AC_CHECK_DECLS, now that autoconf requires that.
91114
91115 2000-05-22  Jim Meyering  <meyering@lucent.com>
91116
91117         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91118         * m4/lstat.m4: Likewise.
91119
91120 2000-05-22  Jim Meyering  <meyering@lucent.com>
91121
91122         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
91123
91124 2000-05-20  Jim Meyering  <meyering@lucent.com>
91125
91126         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
91127         (jm_PREREQ): Use it.
91128
91129 2000-05-18  Jim Meyering  <meyering@lucent.com>
91130
91131         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
91132         back, too, since it may have been modified by allocate_entry.
91133         (hash_delete): Rewrite to use neither the assignment operator
91134         nor the comma operator in an if-expression.
91135
91136 2000-05-15  Paul Eggert  <eggert@twinsun.com>
91137
91138         * lib/closeout.c:
91139         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
91140         Remove; no longer needed.
91141         "quotearg.h": Add include.
91142         (file_name): Do not bother to explicitly initialize to NULL; it's less
91143         efficient on some hosts.
91144         (close_stdout_status): Remove test as to whether stdout was already
91145         closed; it breaks for the case "echo x | sort >&-".
91146         Quote file name colons.
91147         Do not assume that _("write error") lacks format strings.
91148
91149 2000-05-15  Jim Meyering  <meyering@lucent.com>
91150
91151         * lib/version-etc.c (version_etc_copyright): Update the copyright
91152         string used in all --version output.
91153
91154 2000-05-14  Jim Meyering  <meyering@lucent.com>
91155
91156         * lib/closeout.c (close_stdout_set_file_name): New function.
91157         (close_stdout_status): Use new file-scoped global.
91158         Return right away if fstat says the stdout file descriptor is invalid.
91159         * lib/closeout.h (close_stdout_set_file_name): Declare.
91160
91161 2000-05-10  Jim Meyering  <meyering@lucent.com>
91162
91163         * lib/closeout.c [default_exit_status]: New file-scoped variable.
91164         (close_stdout_set_status): New function.
91165         * lib/closeout.h (close_stdout_set_status): Declare.
91166
91167 2000-05-09  Jim Meyering  <meyering@lucent.com>
91168
91169         * m4/gettext.m4: Rename this...
91170         * m4/libintl.m4: ...to this.
91171
91172 2000-05-08  Jim Meyering  <meyering@lucent.com>
91173
91174         * lib/long-options.c: Don't include closeout.h.
91175         (parse_long_options): Don't call close_stdout for --version.
91176
91177 2000-05-06  Paul Eggert  <eggert@twinsun.com>
91178
91179         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
91180         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
91181         2.1.3 bug.  This avoids a clash when files like regex.c define
91182         _GNU_SOURCE.
91183
91184 2000-05-06  Jim Meyering  <meyering@lucent.com>
91185
91186         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
91187         (AC_REPLACE_FUNCS): Add strnlen.
91188
91189         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
91190         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
91191
91192         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
91193         AC_SEARCH_LIBS call for nanosleep.
91194         (LIB_NANOSLEEP): Set and AC_SUBST.
91195
91196 2000-05-06  Jim Meyering  <meyering@lucent.com>
91197
91198         * lib/strnlen.c: Undefine __strnlen and strnlen.
91199         [!weak_alias]: Define __strnlen to strnlen.
91200
91201         * lib/atexit.c: New file, from libiberty.
91202
91203 2000-05-06  Jim Meyering  <meyering@lucent.com>
91204
91205         * lib/closeout.c (close_stdout_status): Also check for errors on the
91206         stderr stream.
91207
91208 2000-05-05  Jim Meyering  <meyering@lucent.com>
91209
91210         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
91211         AC_SEARCH_LIBS call for clock_gettime.
91212         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
91213
91214         * m4/search-libs.m4: Update from autoconf.
91215
91216         su doesn't work on Solaris 2.6.
91217         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
91218         <shadow.h>.  Reported by Dragos Harabor.
91219
91220 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
91221
91222         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
91223         memcpy instead of xmalloc, xrealloc, path_concat.
91224         (locale_charset): Treat empty environment variables as absent.
91225         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
91226
91227 2000-05-04  Jim Meyering  <meyering@lucent.com>
91228
91229         * lib/getopt.c: Update from glibc.
91230         * lib/obstack.c: Likewise.
91231         * lib/obstack.h: Likewise.
91232         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
91233         file
91234
91235         * lib/regex.h: Likewise.
91236         * lib/strndup.c: Likewise.
91237         * lib/strnlen.c: New file, from glibc.
91238
91239 2000-05-03  Jim Meyering  <meyering@lucent.com>
91240
91241         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
91242
91243 2000-05-02  Paul Eggert  <eggert@twinsun.com>
91244
91245         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
91246         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
91247         compile-time test, rather than inspecting host and OS, to
91248         decide whether to define _LARGEFILE_SOURCE.
91249
91250 2000-05-01  Jim Meyering  <meyering@lucent.com>
91251
91252         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
91253
91254         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
91255         Based on a patch from Bruno Haible.
91256
91257 2000-05-01  Jim Meyering  <meyering@lucent.com>
91258
91259         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
91260
91261 2000-04-29  Jim Meyering  <meyering@lucent.com>
91262
91263         * lib/path-concat.c: Declare strdup only if it's not defined.
91264         * lib/canon-host.c: Likewise.
91265
91266 2000-04-28  Jim Meyering  <meyering@lucent.com>
91267
91268         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
91269         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
91270         is included first, then limits.h is included by locale.h by libintl.h.
91271         From John David Anglin.
91272
91273 2000-04-25  Jim Meyering  <meyering@lucent.com>
91274
91275         * lib/makepath.c (S_IRWXUGO): Define.
91276         (make_path): Always perform explicit chmod if MODE specifies any
91277         of the `special' permission bits.  Prompted by a bug report against
91278         install from Mate Wierdl and Joost van Baal.
91279
91280 2000-04-18  Jim Meyering  <meyering@lucent.com>
91281
91282         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
91283         (jm_PREREQ): Use it.
91284
91285 2000-04-18  Jim Meyering  <meyering@lucent.com>
91286
91287         * lib/README: New file.
91288
91289         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
91290         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
91291
91292 2000-04-17  Jim Meyering  <meyering@lucent.com>
91293
91294         Get it right :-)
91295         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
91296         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
91297         Suggestion from Akim Demaille.
91298
91299 2000-04-17  Jim Meyering  <meyering@lucent.com>
91300
91301         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
91302         the definition of it to rpl_strftime also defined-away the system's
91303         declaration.
91304
91305 2000-04-15  Jim Meyering  <meyering@lucent.com>
91306
91307         Use `C' to denote so-called `contiguous' files, the same way
91308         that tar does.
91309         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
91310         (ftypelet): Use S_ISCTG.
91311         From Michael Deutschmann.
91312
91313 2000-04-14  Jim Meyering  <meyering@lucent.com>
91314
91315         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
91316         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
91317         clobbered.
91318
91319 2000-04-14  Jim Meyering  <meyering@lucent.com>
91320
91321         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
91322
91323 2000-04-13  Jim Meyering  <meyering@lucent.com>
91324
91325         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
91326         AH_VERBATIM to insert required #ifndef into config.h.in.
91327         Suggestion from Akim Demaille.
91328
91329 2000-04-12  Jim Meyering  <meyering@lucent.com>
91330
91331         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
91332         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
91333         Christian Krackowizer.
91334
91335         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
91336         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
91337         (AC_SYS_LARGEFILE): Require.
91338         (AM_C_PROTOTYPES): Require.
91339
91340 2000-04-08  Jim Meyering  <meyering@lucent.com>
91341
91342         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
91343         names don't conflict.  Reported by Eli Zaretskii.
91344
91345 2000-04-07  Jim Meyering  <meyering@lucent.com>
91346
91347         * lib/putenv.c: Move inclusion of errno.h so it follows that of
91348         sys/types.h, to work around system header problems on AIX 3.2.5.
91349         From Bruno Haible.
91350
91351 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
91352
91353         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
91354         bug.  Deal with the different error behavior of Irix iconv.
91355
91356 2000-04-05  Paul Eggert  <eggert@twinsun.com>
91357
91358         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
91359         IRIX if the installer said otherwise.
91360
91361 2000-04-05  Jim Meyering  <meyering@lucent.com>
91362
91363         Portability tweaks required for ultrix4.3.
91364         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
91365         (jm_CHECK_DECLS): Add getutent to the list of functions.
91366         (_jm_DECL_HEADERS): Add utmpx.h.
91367         From John David Anglin.
91368
91369         * m4/strftime.m4: Back out the 2000-04-02 change.
91370         Instead of that change, simply undefine putenv in the test program.
91371
91372 2000-04-05  Jim Meyering  <meyering@lucent.com>
91373
91374         Portability tweaks required for ultrix4.3.
91375         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
91376         getutent.
91377         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
91378         * lib/canon-host.c: Declare strdup.
91379         * lib/path-concat.c: Likewise.
91380         From John David Anglin.
91381
91382 2000-04-04  Jim Meyering  <meyering@lucent.com>
91383
91384         Be more DOS 8.3-friendly.
91385         * lib/ref-add.sin: Renamed from ref-add.sed.in.
91386         * lib/ref-del.sin: Renamed from ref-del.sed.in.
91387         * lib/Makefile.am: Reflect renaming.
91388         Reported by Eli Zaretskii.
91389
91390         Use a temporary file name that won't clash with `charset.alias'
91391         in the DOS 8.3 name space.
91392         * lib/Makefile.am (charset_tmp): Define.
91393         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
91394         (uninstall-local): Likewise.
91395         Reported by Eli Zaretskii.
91396
91397 2000-04-03  Jim Meyering  <meyering@lucent.com>
91398
91399         * m4/gettext.m4: Fix typo in comment.
91400
91401         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
91402         textutils/configure.in).  Suggestion from Paul Eggert.
91403         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
91404
91405 2000-04-02  Paul Eggert  <eggert@twinsun.com>
91406
91407         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
91408         variable in the shell rather than using putenv, which isn't
91409         portable.  This avoids the configure-time inter-test dependency
91410         on the potentially-renamed putenv function.
91411
91412 2000-03-30  Paul Eggert  <eggert@twinsun.com>
91413
91414         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
91415         before checking struct stat.st_blksize, so that
91416         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
91417
91418 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91419
91420         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
91421         since strftime.c uses HAVE_STRFTIME to decide whether to use
91422         the underlying strftime.
91423
91424 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91425
91426         * lib/time/strftime.c (my_strftime): Make sure we call the system
91427         strftime, not ourselves, when invoking the underlying strftime.
91428
91429 2000-03-24  Jim Meyering  <meyering@lucent.com>
91430
91431         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
91432         (charset_alias): Define.
91433         (install-exec-local): Factor out common code.
91434         (uninstall-local): Split lines longer than 80.
91435         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
91436         (SUFFIXES): Define.
91437         (.sed.in.sed): New rule.  Don't redirect directly to $@.
91438         (CLEANFILES): Add ref-add.sed and ref-del.sed.
91439
91440 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
91441
91442         * lib/config.charset: Output a line containing "Packages using this
91443         file".
91444         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
91445         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
91446         ref-del.sed): New rules.
91447
91448 2000-03-17  Jim Meyering  <meyering@lucent.com>
91449
91450         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
91451         Otherwise, include <strings.h>
91452
91453 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
91454
91455         * lib/unicodeio.c (utf8_wctomb): New function.
91456         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
91457         format instead of in UCS-4 with platform dependent endianness.
91458
91459 2000-03-10  Jim Meyering  <meyering@lucent.com>
91460
91461         * m4/lib-check.m4: Look for getspnam in -lgen, too.
91462         From Marco Franzen.
91463
91464 2000-03-07  Paul Eggert  <eggert@twinsun.com>
91465
91466         * lib/savedir.c (savedir): Work even if directory size is
91467         negative; this can happen with some screwy NFS configurations.
91468
91469 2000-03-06  Jim Meyering  <meyering@lucent.com>
91470
91471         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
91472         if it's NULL (because we ran out of memory).  From Bruno Haible.
91473
91474 2000-03-05  Jim Meyering  <meyering@lucent.com>
91475
91476         * lib/localcharset.c ("path-concat.h"): Include.
91477         (get_charset_aliases): Use path_concat instead of ANSI string
91478         concatenation.
91479
91480         * lib/unicodeio.h (PARAMS): Define.
91481         Use it to guard prototype.
91482
91483 2000-03-04  Jim Meyering  <meyering@lucent.com>
91484
91485         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
91486         for lib/localcharset.c.
91487
91488 2000-03-04  Jim Meyering  <meyering@lucent.com>
91489
91490         * lib/Makefile.am (install-exec-local): Create $(libdir) before
91491         installing into it.
91492         (uninstall-local): Uncomment this rule so `make distcheck' works
91493         once again.
91494
91495         * lib/unicodeio.c (<errno.h>): Include it.
91496         (errno): Declare if not defined.
91497
91498         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
91499
91500         * lib/config.charset: New version, incorporating remarks from a linux
91501         i18n mailing list.  From Bruno Haible.
91502
91503 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
91504
91505         * m4/codeset.m4: New file.
91506         * m4/iconv.m4: New file.
91507         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
91508
91509 2000-03-03  Jim Meyering  <meyering@lucent.com>
91510
91511         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
91512
91513 2000-03-02  Jim Meyering  <meyering@lucent.com>
91514
91515         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
91516         the messages come out on separate lines.
91517
91518         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
91519         rather than jm_CHECK_DECLARATIONS.
91520         * m4/decl.m4: Remove now-unused file.
91521
91522         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
91523         geteuid.
91524
91525 2000-03-02  Jim Meyering  <meyering@lucent.com>
91526
91527         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
91528
91529 2000-03-01  Jim Meyering  <meyering@lucent.com>
91530
91531         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
91532         * lib/unicodeio.c: Likewise.
91533
91534 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
91535
91536         * lib/config.charset: New file.
91537         * lib/localcharset.c: New file.
91538         * lib/unicodeio.h, lib/unicodeio.c: New files.
91539         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
91540         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
91541         (noinst_HEADERS): Add unicodeio.h.
91542         (all-local, install-exec-local, charset.alias): New targets.
91543
91544 2000-02-28  Paul Eggert  <eggert@twinsun.com>
91545
91546         * lib/quotearg.c (ALERT_CHAR): New macro.
91547         (quotearg_buffer_restyled): Use it.
91548
91549 2000-02-27  Jim Meyering  <meyering@lucent.com>
91550
91551         * m4/check-decl.m4: Add getenv to the list.
91552
91553 2000-02-27  Jim Meyering  <meyering@lucent.com>
91554
91555         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
91556         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
91557
91558         * lib/backupfile.c: Guard inclusion of stdlib.h with
91559         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
91560         Declare malloc if needed.
91561
91562         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
91563         `#ifndef HAVE_DECL..'
91564         now that autoconf always defines the HAVE_DECL_ symbols.
91565         * lib/human.c: Likewise.
91566         * lib/same.c: Likewise.
91567         * lib/strtoumax.c: Likewise.
91568
91569         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
91570         declaration check was not run.
91571         * lib/hash.c: Likewise.
91572         * lib/human.c: Likewise.
91573         * lib/same.c: Likewise.
91574         * lib/strtoumax.c: Likewise.
91575
91576         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
91577         `.', then first look up the entire `.'-containing string as a login
91578         name.
91579
91580 2000-02-23  Jim Meyering  <meyering@lucent.com>
91581
91582         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
91583         in place of my hack.
91584
91585 2000-02-18  Paul Eggert  <eggert@twinsun.com>
91586
91587         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
91588         (textint): New typedef.
91589         (parser_control): Member year changed from int to textint.
91590         All uses changed.
91591         (YYSTYPE): Removed; replaced by %union with int and textint members.
91592         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
91593         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
91594         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
91595         (tSNUMBER, tUNUMBER): Now of type <textintval>.
91596         (date, number, to_year): Use width of number in digits, not its value,
91597         to determine whether it's a 2-digit year, or a 2-digit time.
91598         (yylex): Store number of digits of numeric tokens.
91599         Reported by John Kendall.
91600
91601         (parser_control): Changed from struct parser_control to typedef (for
91602         consistency).  All uses changed.
91603
91604         (tID): Removed; not used.
91605         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
91606
91607 2000-02-14  Paul Eggert  <eggert@twinsun.com>
91608
91609         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
91610         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
91611
91612 2000-02-12  Jim Meyering  <meyering@lucent.com>
91613
91614         * lib/userspec.c (ISDIGIT): Define it.
91615         (isdigit): Remove definition.
91616         (is_number): Use ISDIGIT, not isdigit.
91617         <libintl.h>: Include.
91618         (_ and N_): Define.
91619         (parse_user_spec): Mark translatable strings.
91620
91621 2000-02-10  Jim Meyering  <meyering@lucent.com>
91622
91623         With these changes, nanosleep.[ch] are finally enough like the other
91624         lib/* replacement files to compile on a few more losing systems.
91625
91626         * lib/nanosleep.h: Don't include config.h.
91627         Remove prototype from declaration of nanosleep.
91628         (PARAMS): Remove now-unneeded definition.
91629         * lib/nanosleep.c: #undef nanosleep.
91630         (rpl_nanosleep): Rename from nanosleep.
91631
91632 2000-02-10  Jim Meyering  <meyering@lucent.com>
91633
91634         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
91635         gnu_nanosleep to rpl_nanosleep.
91636
91637 2000-02-09  Jim Meyering  <meyering@lucent.com>
91638
91639         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
91640         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
91641
91642 2000-02-08  Akim Demaille  <akim@epita.fr>
91643
91644         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
91645         `[' and `]' and remove uses of `changequote'.
91646         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
91647         (AC_SYS_LARGEFILE): Likewise.
91648         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
91649         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
91650         of changequote.
91651         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
91652         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
91653         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
91654         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
91655
91656 2000-02-05  Jim Meyering  <meyering@lucent.com>
91657
91658         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
91659         Remove explicit use of AC_HEADER_TIME.  It is required by
91660         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
91661         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
91662         in autoconf whereby the expansion of the latter ended up preceding
91663         the expansion of its prerequisite, AC_HEADER_TIME.
91664         Reported by Volker Borchert.
91665
91666 2000-02-03  Jim Meyering  <meyering@lucent.com>
91667
91668         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
91669
91670 2000-02-03  Jim Meyering  <meyering@lucent.com>
91671
91672         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
91673         rather than with `#if HAVE_UTMPNAME'.
91674
91675 2000-02-02  Jim Meyering  <meyering@lucent.com>
91676
91677         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
91678         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
91679         Reported by Eli Zaretskii.
91680
91681 2000-02-01  Jim Meyering  <meyering@lucent.com>
91682
91683         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
91684
91685 2000-01-31  Jim Meyering  <meyering@lucent.com>
91686
91687         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
91688         functions.  Add the time.h and sys/time.h headers along with the
91689         AC_REQUIRE'ment of AC_HEADER_TIME.
91690
91691 2000-01-31  Jim Meyering  <meyering@lucent.com>
91692
91693         * lib/nanosleep.h (nanosleep): Guard declaration with
91694         `#if ! HAVE_DECL_NANOSLEEP'.
91695         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
91696         the declaration in that vendor's sys/timers.h.
91697         Reported by Christian Krackowizer.
91698
91699         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
91700         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
91701         (ISPRINT): Likewise.
91702         Reported by Tom Tromey.
91703
91704 2000-01-30  Jim Meyering  <meyering@lucent.com>
91705
91706         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
91707
91708         * m4/prereq.m4 (utmp_includes): Define.
91709         Check for ut_user and ut_name members in both struct utmpx
91710         and struct utmp.
91711
91712 2000-01-30  Jim Meyering  <meyering@lucent.com>
91713
91714         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
91715         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
91716         header files where only utmpx.ut_user is declared.
91717
91718         * lib/readutmp.h (UT_USER): Define.
91719
91720 2000-01-29  Jim Meyering  <meyering@lucent.com>
91721
91722         * m4/lib-check.m4: New file containing library-related checks from
91723         fileutils and sh-utils (textutils had none).
91724
91725 2000-01-28  Jim Meyering  <meyering@lucent.com>
91726
91727         * m4/perl.m4: Change format of warning message to look more like that
91728         from the missing script.  Suggestion from François Pinard.
91729
91730 2000-01-25  Jim Meyering  <meyering@lucent.com>
91731
91732         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
91733         well as time.h in the compile check.
91734         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
91735         Fix typo in cross-compiling case: s/yes/no/.
91736
91737 2000-01-23  Jim Meyering  <meyering@lucent.com>
91738
91739         * m4/jm-macros.m4: Move df-related tests here from
91740         fileutils/configure.in
91741
91742         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
91743         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
91744
91745         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
91746         s/space/ac_fsusage_space/.
91747         (jm_FILE_SYSTEM_USAGE): Take two parameters.
91748
91749         * m4/ftruncate.m4: New file (derived from part of
91750         fileutils/configure.in).
91751         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
91752         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
91753
91754         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
91755         AC_SUBST these here, rather than just in sh-util/configure.in, so
91756         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
91757         all the same.
91758         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
91759         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
91760         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
91761         (AC_SUBST(POW_LIBM)): Likewise.
91762         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
91763
91764 2000-01-23  Jim Meyering  <meyering@lucent.com>
91765
91766         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
91767         obstack.c.
91768
91769 2000-01-22  Jim Meyering  <meyering@lucent.com>
91770
91771         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
91772
91773         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
91774
91775         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
91776         configure.in
91777         (AC_CHECK_HEADERS): Likewise for sh-utils.
91778         (AC_CHECK_HEADERS): Likewise for textutils.
91779         Merge the three lists of headers.
91780
91781         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
91782         from fileutils' configure.in.
91783
91784         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
91785         code. Moved tests into their own function (_jm_DECL_HEADERS) in
91786         check-decl.m4.
91787
91788         * m4/check-decl.m4: Use #if rather than #ifdef.
91789         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
91790         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
91791         (_jm_DECL_HEADERS): Define new function.
91792         (jm_CHECK_DECLARATIONS): Require it.
91793
91794 2000-01-22  Jim Meyering  <meyering@lucent.com>
91795
91796         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
91797         [! HAVE_DECL_STRTOULL]: Declare strtoull.
91798         Required for some AIX systems.  Reported by Christian Krackowizer.
91799         [TESTING] (main): New function.
91800
91801         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
91802         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
91803         letters.
91804
91805         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
91806         iswprint.
91807
91808         * lib/strverscmp.c (ISDIGIT): Define.
91809         (strverscmp): Use ISDIGIT, not isdigit.
91810
91811 2000-01-19  Jim Meyering  <meyering@lucent.com>
91812
91813         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
91814         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
91815         defines `struct timespec' in <sys/time.h>
91816
91817         * m4/c-bs-a.m4: Remove uses of changequote altogether.
91818         Thanks to Akim for explaining.
91819
91820 2000-01-17  Paul Eggert  <eggert@twinsun.com>
91821
91822         * lib/nanosleep.c (nanosleep):
91823         Don't use SA_INTERRUPT to decide whether to call sigaction, as
91824         POSIX.1 doesn't require SA_INTERRUPT and some systems
91825         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
91826         it's been part of POSIX.1 since day 1 (in 1988).
91827
91828 2000-01-17  Jim Meyering  <meyering@lucent.com>
91829
91830         * lib/interlock: Remove unused file.  Reported by François Pinard.
91831
91832 2000-01-16  Paul Eggert  <eggert@twinsun.com>
91833
91834         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
91835         alert, backslash, formfeed, and vertical tab unnecessarily in
91836         shell quoting style.
91837
91838 2000-01-16  Jim Meyering  <meyering@lucent.com>
91839
91840         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
91841         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
91842         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
91843         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
91844
91845 2000-01-16  Jim Meyering  <meyering@lucent.com>
91846
91847         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
91848         because the latter didn't work.
91849
91850 2000-01-15  Jim Meyering  <meyering@lucent.com>
91851
91852         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
91853         (AC_REPLACE_FUNCS): Add memcpy and memset.
91854         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
91855         Add strpbrk.
91856         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
91857
91858 2000-01-12  Jim Meyering  <meyering@lucent.com>
91859
91860         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
91861         (jm_PREREQ): Use it.
91862         (jm_PREREQ_READUTMP): New macro.
91863         (jm_PREREQ): Use it.
91864
91865 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91866
91867         Quote multibyte characters correctly.
91868         * m4/c-bs-a.m4: New file.
91869         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
91870         (jm_PREREQ): Use it.
91871
91872 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91873
91874         * m4/uintmax_t.m4: Port to autoconf 2.13.
91875
91876 2000-01-08  Jim Meyering  <meyering@ascend.com>
91877
91878         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
91879         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
91880
91881 2000-01-04  Jim Meyering  <meyering@ascend.com>
91882
91883         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
91884         jm_STRUCT_DIRENT_D_TYPE.
91885         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
91886         jm_STRUCT_DIRENT_D_INO.
91887         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
91888         jm_STRUCT_UTIMBUF.
91889         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
91890         renamings.
91891         * m4/utime.m4: Likewise.
91892
91893         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
91894         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
91895
91896 2000-01-03  Paul Eggert  <eggert@twinsun.com>
91897
91898         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
91899         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
91900
91901 2000-01-02  Jim Meyering  <meyering@ascend.com>
91902
91903         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
91904         remember if this is necessary.
91905
91906 1999-12-26  Jim Meyering  <meyering@ascend.com>
91907
91908         * m4/jm-macros.m4: Use it here.
91909         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
91910
91911 1999-12-23  Jim Meyering  <meyering@ascend.com>
91912
91913         * m4/jm-macros.m4: Check for clock_gettime (moved from
91914         fileutils/configure.in)
91915         Check for gettimeofday.
91916
91917 1999-12-20  Jim Meyering  <meyering@ascend.com>
91918
91919         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
91920         autoconf-2.14a-1999-12-20.
91921
91922 1999-12-19  Jim Meyering  <meyering@ascend.com>
91923
91924         * m4/lstat-slash.m4: New file.
91925         * m4/jm-macros.m4: Use the new macro:
91926         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91927
91928 1999-12-07  Jim Meyering  <meyering@ascend.com>
91929
91930         * m4/perl.m4: Require that File::Compare be available, too.
91931         Too many systems seem to lack it.
91932
91933         * m4/strftime.m4: Add checks for most of the cpp macros tested in
91934         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
91935
91936 1999-11-18  Paul Eggert  <eggert@twinsun.com>
91937
91938         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
91939         problem with the QNX 4.25 shell, which doesn't propagate exit
91940         status of failed commands inside shell assignments.
91941
91942 1999-11-17  Jim Meyering  <meyering@ascend.com>
91943
91944         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
91945
91946 1999-11-07  Jim Meyering  <meyering@ascend.com>
91947
91948         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
91949
91950 1999-11-06  Jim Meyering  <meyering@ascend.com>
91951
91952         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
91953         * m4/jm-macros.m4 (jm_MACROS): Use it here.
91954
91955 1999-11-05  Jim Meyering  <meyering@ascend.com>
91956
91957         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
91958         configure.in of textutils, fileutils, and sh-utils into this one
91959         (shared between those packages) file.
91960         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
91961         AC_STRUCT_ST_BLKSIZE.
91962
91963 1999-11-03  Jim Meyering  <meyering@ascend.com>
91964
91965         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
91966         of AC_CHECK_TYPE checks includes unistd.h.
91967         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
91968         Suggestion from Akim Demaille.
91969
91970 1999-10-30  Jim Meyering  <meyering@ascend.com>
91971
91972         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
91973         m4-quoted string.
91974         * m4/ls-mntd-fs.m4: Likewise.
91975         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
91976         * m4/jm-winsz1.m4: Likewise.
91977
91978         * m4/const.m4: Remove file, since the fix made it into the experimental
91979         version of autoconf.
91980         * m4/mktime.m4: Likewise.
91981
91982         * m4/check-type.m4: Remove file, now that the latest version of
91983         AC_CHECK_TYPE takes a third arg to specify additional #includes.
91984
91985         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
91986         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
91987         AC_CHECK_TYPE.
91988
91989 1999-10-04  Jim Meyering  <meyering@ascend.com>
91990
91991         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
91992
91993 1999-09-22  Paul Eggert  <eggert@twinsun.com>
91994
91995         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
91996         2.95.1 bug with HP-UX 10.20.
91997
91998 1999-09-17  Jim Meyering  <meyering@ascend.com>
91999
92000         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
92001         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
92002         due to missing strdup (against sh-utils-2.0).
92003
92004 1999-08-29  Jim Meyering  <meyering@ascend.com>
92005
92006         * m4/jm-macros.m4: Require jm_BISON.
92007         * m4/bison.m4: New file.
92008
92009 1999-08-17  Paul Eggert  <eggert@twinsun.com>
92010
92011         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
92012         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
92013
92014 1999-08-05  Jim Meyering  <meyering@ascend.com>
92015
92016         * m4/getline.m4: Rename test file from conftestdata to conftest.data
92017         to avoid conflicts with `conftest' on 8+3 filesystems.
92018         Suggestion from Eli Zaretskii.
92019
92020 1999-08-04  Jim Meyering  <meyering@ascend.com>
92021
92022         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
92023         fileutils and sh-utils (textutils's getline test was inadequate).
92024         (AM_FUNC_GETLINE): Run this test.
92025         (AC_CHECK_FUNCS): Check for getdelim.
92026         Reported by Bob Proulx.
92027
92028 1999-08-02  Jim Meyering  <meyering@ascend.com>
92029
92030         * m4/jm-macros.m4: Add a comment.
92031
92032 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92033
92034         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
92035         <inttypes.h> defines strtoumax as a macro (and not as a
92036         function).
92037
92038 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92039
92040         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
92041         that we can shift, multiply and divide unsigned long long
92042         values; Ultrix cc can't do it.
92043
92044 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92045
92046         * m4/mktime.m4: New file, which is a preview of what should appear
92047         in the next public autoconf release.
92048
92049 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92050
92051         * m4/lfs.m4: Remove this file.
92052         * m4/largefile.m4: New file.  It contains the old contents of
92053         lfs.m4, except that all names with prefix AC_LFS have been
92054         changed to use the prefix AC_SYS_LARGEFILE instead, to be
92055         compatible with future autoconf versions.  Also, some minor m4
92056         quoting problems have been fixed.
92057
92058 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92059
92060         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
92061         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
92062         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
92063         and simplify the shell code.
92064
92065 1999-08-01  Jim Meyering  <meyering@ascend.com>
92066
92067         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
92068         m4.
92069
92070 1999-07-20  Jim Meyering  <meyering@ascend.com>
92071
92072         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
92073
92074 1999-07-15  Jim Meyering  <meyering@ascend.com>
92075
92076         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
92077
92078 1999-05-22  Jim Meyering  <meyering@ascend.com>
92079
92080         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
92081
92082 1999-05-20  Jim Meyering  <meyering@ascend.com>
92083
92084         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
92085         Add a colon after each `then' in case $4 is empty.
92086
92087 1999-05-16  Jim Meyering  <meyering@ascend.com>
92088
92089         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
92090
92091 1999-05-10  Jim Meyering  <meyering@ascend.com>
92092
92093         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
92094
92095         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
92096         AC_FUNC_MKTIME.
92097
92098 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
92099
92100         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
92101
92102 1999-05-04  Paul Eggert  <eggert@twinsun.com>
92103
92104         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
92105         not CPPFLAGS, so that linking works correctly in IRIX.
92106
92107 1999-04-30  Paul Eggert  <eggert@twinsun.com>
92108
92109         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
92110
92111 1999-04-20  Paul Eggert  <eggert@twinsun.com>
92112
92113         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
92114         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
92115         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
92116         jm_AC_TYPE_UNSIGNED_LONG_LONG.
92117         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
92118
92119         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
92120
92121 1999-04-20  Jim Meyering  <meyering@ascend.com>
92122
92123         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
92124         AC_REPLACE xstroull if necessary.  From Paul Eggert.
92125         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
92126
92127 1999-04-18  Jim Meyering  <meyering@ascend.com>
92128
92129         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
92130         * m4/jm-macros.m4: Use it.
92131
92132 1999-04-06  Jim Meyering  <meyering@ascend.com>
92133
92134         * m4/strftime.m4: Remove test for %f.
92135
92136 1999-03-29  Jim Meyering  <meyering@ascend.com>
92137
92138         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
92139         superset of the AC_TYPE_* checks in the textutils, fileutils,
92140         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
92141         AC_TYPE_PID_T.
92142
92143 1999-03-28  Jim Meyering  <meyering@ascend.com>
92144
92145         * m4/jm-macros.m4: Define GNU_PACKAGE here.
92146         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
92147         replaced e.g., in the *.sh files of the sh-utils.
92148
92149 1999-03-20  Jim Meyering  <meyering@ascend.com>
92150
92151         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
92152         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
92153         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
92154
92155 1999-03-19  Jim Meyering  <meyering@ascend.com>
92156
92157         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
92158
92159 1999-03-12  Jim Meyering  <meyering@ascend.com>
92160
92161         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
92162
92163 1999-03-07  Jim Meyering  <meyering@ascend.com>
92164
92165         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
92166         declared.
92167
92168 1999-02-17  Jim Meyering  <meyering@ascend.com>
92169
92170         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
92171         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
92172
92173 1999-02-07  Jim Meyering  <meyering@ascend.com>
92174
92175         * m4/group-member.m4: New file -- extracted from sh-utils'
92176         configure.in.
92177
92178         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
92179         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
92180
92181 1999-02-06  Jim Meyering  <meyering@ascend.com>
92182
92183         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
92184         * m4/fnmatch.m4: Likewise.
92185         * m4/getgroups.m4: Likewise.
92186         * m4/lstat.m4: Likewise.
92187         * m4/malloc.m4: Likewise.
92188         * m4/putenv.m4: Likewise.
92189         * m4/realloc.m4: Likewise.
92190         * m4/regex.m4: Likewise.
92191         * m4/stat.m4: Likewise.
92192         * m4/strftime.m4: Likewise.
92193         Suggestion from Alain Magloire.
92194
92195         * m4/chown.m4: Use `.$ac_objext', not `.o'.
92196         * m4/fnmatch.m4: Likewise.
92197         * m4/getgroups.m4: Likewise.
92198         * m4/getline.m4: Likewise.
92199         * m4/lstat.m4: Likewise.
92200         * m4/malloc.m4: Likewise.
92201         * m4/memcmp.m4: Likewise.
92202         * m4/putenv.m4: Likewise.
92203         * m4/realloc.m4: Likewise.
92204         * m4/regex.m4: Likewise.
92205         * m4/stat.m4: Likewise.
92206         * m4/strftime.m4: Likewise.
92207         Suggestion from Alain Magloire.
92208
92209         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
92210         an argument.
92211
92212         * m4/regex.m4: Add a run-time Test for proper operation of
92213         re_compile_pattern.
92214
92215 1999-01-31  Jim Meyering  <meyering@ascend.com>
92216
92217         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
92218
92219 1999-01-30  Jim Meyering  <meyering@ascend.com>
92220
92221         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
92222
92223         * m4/jm-mktime.m4: Make this a wrapper around the official
92224         AM_FUNC_MKTIME rather than my private copy, now that the official one
92225         is up to date.
92226         * m4/mktime.m4: Remove file.
92227
92228         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
92229         * m4/uptime.m4: Likewise.
92230         * m4/uintmax_t.m4: Likewise.
92231
92232 1999-01-28  Jim Meyering  <meyering@ascend.com>
92233
92234         * m4/jm-macros.m4: Use jm_AFS.
92235         * m4/afs.m4: New file (from fileutils' configure.in).
92236
92237         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
92238         * m4/chown.m4: Likewise.
92239         * m4/d-ino.m4: Likewise.
92240         * m4/d-type.m4: Likewise.
92241         * m4/fnmatch.m4: Likewise.
92242         * m4/getgroups.m4: Likewise.
92243         * m4/gettext.m4: Likewise.
92244         * m4/jm-mktime.m4: Likewise.
92245         * m4/jm-winsz2.m4: Likewise.
92246         * m4/lcmessage.m4: Likewise.
92247         * m4/ls-mntd-fs.m4: Likewise.
92248         * m4/malloc.m4: Likewise.
92249         * m4/memcmp.m4: Likewise.
92250         * m4/putenv.m4: Likewise.
92251         * m4/realloc.m4: Likewise.
92252         * m4/st_mtim.m4: Likewise.
92253         * m4/strftime.m4: Likewise.
92254
92255 1999-01-16  Jim Meyering  <meyering@ascend.com>
92256
92257         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
92258         (ARGMATCH_DIE_DECL): Define.
92259
92260 1999-01-12  Jim Meyering  <meyering@ascend.com>
92261
92262         * m4/Makefile.am.in: Rewrite to avoid using fmt.
92263         Reported by Lars Hecking.
92264
92265 1999-01-10  Jim Meyering  <meyering@ascend.com>
92266
92267         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
92268         gross kludge.
92269         * m4/inttypes_h.m4: Likewise.
92270         * m4/lstat.m4: Likewise.
92271         * m4/malloc.m4: Likewise.
92272         * m4/readdir.m4: Likewise.
92273         * m4/realloc.m4: Likewise.
92274         * m4/st_dm_mode.m4: Likewise.
92275         * m4/stat.m4: Likewise.
92276         * m4/utimbuf.m4: Likewise.
92277         * m4/utimes.m4: Likewise.
92278
92279         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
92280         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
92281         comments in config.h.in are meaningful.
92282
92283         * m4/jm-macros.m4: Require autoconf-2.13 here.
92284
92285         * m4/regex.m4: By default, don't use the included regex.c on systems
92286         with glibc 2.  Suggestion from Uli Drepper.
92287
92288 1999-01-02  Jim Meyering  <meyering@ascend.com>
92289
92290         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
92291
92292 1998-12-18  Jim Meyering  <meyering@ascend.com>
92293
92294         * m4/Makefile.am.in (Makefile.am): Simplify rule.
92295         Based on a suggestion from Lars Hecking.
92296
92297 1998-11-16  Paul Eggert  <eggert@twinsun.com>
92298
92299         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
92300
92301 1998-11-16  Jim Meyering  <meyering@ascend.com>
92302
92303         * m4/lfs.m4: Double-quote the `uname...` expression.
92304
92305 1998-11-14  Jim Meyering  <meyering@ascend.com>
92306
92307         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
92308         * m4/stat.m4: Likewise.
92309
92310 1998-11-03  Jim Meyering  <meyering@ascend.com>
92311
92312         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
92313         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
92314
92315 1998-10-18  Jim Meyering  <meyering@ascend.com>
92316
92317         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
92318
92319 1998-10-17  Jim Meyering  <meyering@ascend.com>
92320
92321         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
92322         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
92323         calls for those previously hard-coded headers.  Instead, take a new
92324         parameter.
92325         (jm_CHECK_DECLARATIONS): Reflect interface change.
92326         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
92327         (jm_CHECK_DECL_LOCALTIME_R): New macro.
92328
92329         * m4/mktime.m4: Test for spring-forward gap before long-running test.
92330
92331 1998-10-14  Jim Meyering  <meyering@ascend.com>
92332
92333         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
92334         instead of "TZ=America/Vancouver".  From Paul Eggert.
92335
92336 1998-10-11  Jim Meyering  <meyering@ascend.com>
92337
92338         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
92339         This adds a test for a recently added compatibility fix for mktime.c.
92340         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
92341
92342 1998-09-27  Jim Meyering  <meyering@ascend.com>
92343
92344         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
92345
92346         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
92347         ../configure.in, including a change from Gordon Matzigkeit to allow
92348         cross-compiling for the Hurd.
92349
92350         * m4/glibc.m4: New file/macro to test for the GNU C Library
92351         versions 1 and 2.  From Gordon Matzigkeit.
92352         Indent.
92353
92354 1998-09-21  Jim Meyering  <meyering@ascend.com>
92355
92356         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
92357
92358 1998-08-18  Paul Eggert  <eggert@twinsun.com>
92359
92360         Port nanosecond-resolution times to UnixWare 2.1.2 and
92361         pedantic Solaris 2.6.
92362
92363         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
92364         AC_STRUCT_ST_MTIM.
92365         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
92366         Generate name of ns member, instead of just 1 or undef.
92367         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
92368
92369 1998-08-15  Jim Meyering  <meyering@ascend.com>
92370
92371         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
92372         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
92373         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
92374         instead of jm_TYPE_SSIZE_T.
92375
92376 1998-08-12  Jim Meyering  <meyering@ascend.com>
92377
92378         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
92379
92380 1998-08-02  Jim Meyering  <meyering@ascend.com>
92381
92382         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
92383         in acconfig.h manually.
92384
92385 1998-07-31  Paul Eggert  <eggert@twinsun.com>
92386
92387         * m4/st_mtim.m4: New file.
92388
92389 1998-07-28  Jim Meyering  <meyering@ascend.com>
92390
92391         * m4/utimes.m4: Undef stat.
92392
92393 1998-07-25  Jim Meyering  <meyering@ascend.com>
92394
92395         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
92396         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
92397
92398 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
92399
92400         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
92401         uid and gid actually remain unchanged.
92402
92403 1998-07-07  Jim Meyering  <meyering@ascend.com>
92404
92405         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
92406
92407 1998-07-04  Jim Meyering  <meyering@ascend.com>
92408
92409         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
92410         to prove that this macro can be used in packages without regex.c.
92411
92412 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
92413
92414         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
92415         is to be used.
92416
92417 1998-07-03  Jim Meyering  <meyering@ascend.com>
92418
92419         * m4/gettext.m4: Add -lintl if it's found to be necessary.
92420
92421         * m4/gettext.m4: New file -- from gettext-0.10.35.
92422         * m4/lcmessage.m4: Likewise.
92423         * m4/progtest.m4: Likewise.
92424
92425         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
92426         * m4/jm-macros.m4: Require the new macro.
92427
92428 1998-06-29  Jim Meyering  <meyering@ascend.com>
92429
92430         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
92431         for the definition of NGROUPS (used in a system header included
92432         by sys/mount.h).
92433
92434 1998-06-28  Jim Meyering  <meyering@ascend.com>
92435
92436         * m4/ls-mntd-fs.m4: New file.
92437         * m4/fstypename.m4: New file.
92438
92439         * m4/jm-macros.m4: Require the new macro.
92440         * m4/jm-glibc-io.m4: New file.
92441
92442 1998-05-19  Jim Meyering  <meyering@ascend.com>
92443
92444         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
92445         * m4/lchown.m4: New file.
92446
92447         * m4/Makefile.am.in: New file.
92448         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
92449
92450 1998-05-14  Jim Meyering  <meyering@ascend.com>
92451
92452         * m4/Makefile.am (EXTRA_DIST): Add them.
92453         * m4/jm-macros.m4: New file.
92454         * m4/utimbuf.m4: New file.
92455
92456 1998-05-12  Jim Meyering  <meyering@ascend.com>
92457
92458         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
92459
92460 1998-05-11  Jim Meyering  <meyering@ascend.com>
92461
92462         * m4/isc-posix.m4: New file.
92463
92464 1998-05-10  Jim Meyering  <meyering@ascend.com>
92465
92466         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
92467
92468 1998-05-09  Jim Meyering  <meyering@ascend.com>
92469
92470         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
92471         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
92472         with automake.
92473
92474         * m4/ssize_t.m4: New file.
92475         * m4/mktime.m4: Remove file -- the new automake has this now.
92476
92477 1998-04-26  Jim Meyering  <meyering@ascend.com>
92478
92479         * m4/assert.m4: New file.
92480         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
92481
92482 1998-04-05  Jim Meyering  <meyering@ascend.com>
92483
92484         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
92485         (jm_PREREQ): Use it here.
92486
92487 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
92488
92489         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
92490         in acconfig.h.
92491
92492 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
92493
92494         * m4/prereq.m4: New file.
92495         * m4/error.m4: New file.
92496         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
92497
92498 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
92499
92500         * m4/getline.m4: Don't set am_cv_func_working_getline before the
92501         cache-check for the same variable -- that defeated the purpose of
92502         the test; the test program was never run.  This was a problem only
92503         on systems with losing getline functions -- HP-UX 10.20 is one.
92504         Reported by Bjorn Helgaas.
92505
92506 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
92507
92508         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
92509
92510 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
92511
92512         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
92513
92514         * m4/const.m4: New file.  Use an initializer in this declaration
92515         typedef int charset[2]; const charset x;
92516         Reported by Bob Glickstein.
92517
92518 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
92519
92520         * m4/chown.m4: Fix reversed types on -1 args to chown.
92521         From Kaveh Ghazi.
92522
92523 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
92524
92525         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
92526         Add lseek and memchr.
92527
92528         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
92529         T.E.Dickey <dickey@clark.net> said that some older preprocessors
92530         have a 20-character limit on names.
92531
92532 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
92533
92534         * m4/inttypes_h.m4: New file.
92535         * m4/uintmax_t.m4: New file.
92536         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
92537
92538
92539         -----
92540
92541         Local Variables:
92542         coding: utf-8
92543         End:
92544
92545         Copyright (C) 1997-2012 Free Software Foundation, Inc.
92546
92547         Copying and distribution of this file, with or without
92548         modification, are permitted provided the copyright notice
92549         and this notice are preserved.